
html,body{margin:0;min-height:100%;background:#15241a;font-family:'Segoe UI',Arial,sans-serif}body{padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}#legal-mobile [hidden]{display:none!important}#legal-mobile #message{padding:12px 18px;background:var(--mil-soft);overflow-wrap:anywhere}#legal-mobile .form-error{color:light-dark(#b32124,#ffb4ad)}#legal-mobile button:disabled{opacity:.5;cursor:wait}#legal-mobile .document-row{padding:10px 0;border-bottom:1px solid var(--mil-line)}
#legal-mobile {font-family:Arial,sans-serif;color:light-dark(#182b39,#e8eef4);color-scheme:light dark;max-width:600px;margin:auto;background:light-dark(#f2f5f7,#14212c);border-radius:12px;overflow:hidden;border:1px solid light-dark(#d5dfe6,#354552)}
#legal-mobile *{box-sizing:border-box} #legal-mobile header{padding:24px 22px 18px;background:light-dark(#fff,#1e303e)}
#legal-mobile .brand{letter-spacing:2px;color:light-dark(#316b68,#95d3cd);font-size:12px} #legal-mobile h2{font-size:25px;margin:10px 0;font-weight:500} #legal-mobile h3{font-size:18px;font-weight:500;margin:0 0 10px} #legal-mobile p{line-height:1.5;margin:7px 0} #legal-mobile small{font-size:12px;color:light-dark(#536775,#aec0cc)}
#legal-mobile main{padding:18px;min-height:390px} #legal-mobile button,#legal-mobile input,#legal-mobile textarea,#legal-mobile select{font:inherit} #legal-mobile button{cursor:pointer;border:0;border-radius:12px;min-height:44px;padding:10px 12px;background:light-dark(#e2ecec,#304b51);color:inherit} #legal-mobile .primary{background:light-dark(#215f5a,#9bd6cd);color:light-dark(#fff,#132e2c);width:100%;margin-top:12px} #legal-mobile .item{display:block;width:100%;text-align:left;background:light-dark(#fff,#1e303e);padding:17px;margin-bottom:12px;border-radius:16px;overflow-wrap:anywhere} #legal-mobile .item strong{font-size:17px;font-weight:500;display:block} #legal-mobile .item p{font-size:14px} #legal-mobile .tag{display:inline-block;margin-top:9px;padding:5px 8px;border-radius:6px;background:light-dark(#eaf1f1,#29454b);font-size:12px} #legal-mobile nav{display:flex;gap:4px;padding:12px;background:light-dark(#fff,#1e303e)} #legal-mobile nav button{flex:1;padding:10px 4px;font-size:13px;background:transparent} #legal-mobile nav button[aria-pressed=true]{background:light-dark(#e2ecec,#304b51)} #legal-mobile label{display:block;margin:12px 0;font-size:14px} #legal-mobile input,#legal-mobile textarea,#legal-mobile select{display:block;width:100%;padding:12px;border:1px solid light-dark(#bbcbd4,#53707e);background:light-dark(#fff,#1e303e);color:inherit;border-radius:8px;margin-top:6px;min-width:0;font-size:16px} #legal-mobile .grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;margin:12px 0} #legal-mobile .grid button{padding:0;min-height:42px;font-size:14px;background:light-dark(#fff,#1e303e)} #legal-mobile .grid button.selected{background:light-dark(#215f5a,#9bd6cd);color:light-dark(#fff,#132e2c)} #legal-mobile .grid button.event{text-decoration:underline;text-underline-offset:5px} #legal-mobile .grid small{text-align:center;padding:6px 0} #legal-mobile .row{display:flex;align-items:center;justify-content:space-between;gap:8px} #legal-mobile .back{margin-bottom:14px} #legal-mobile .notice{padding:10px 18px;font-size:12px;background:light-dark(#e7eeee,#233b43);color:light-dark(#45616a,#bacdd5)}
#legal-mobile{--mil-bg:light-dark(#eae8de,#191e18);--mil-surface:light-dark(#faf9f2,#252c22);--mil-ink:light-dark(#283021,#f0efdf);--mil-muted:light-dark(#59604c,#bdc4aa);--mil-line:light-dark(#c3c7b2,#535e45);--mil-soft:light-dark(#e1e5d4,#36402e);--mil-accent:light-dark(#485b32,#b6c78c);--mil-on-accent:light-dark(#fffdf2,#202a17);background:var(--mil-bg);color:var(--mil-ink);border-color:var(--mil-line);border-radius:12px;font-family:'Segoe UI',Arial,sans-serif}
#legal-mobile header{background-color:light-dark(#303d29,#202c1b);background-image:linear-gradient(125deg,transparent 65%,#b5bf8c12 65%,#b5bf8c12 78%,transparent 78%),repeating-linear-gradient(0deg,transparent,transparent 23px,#b5bf8c0b 23px,#b5bf8c0b 24px);border-bottom:4px solid light-dark(#a49b66,#b8b07b);color:#f5f3e3;padding:24px 22px 20px}
#legal-mobile .brand{display:flex;align-items:center;gap:10px;letter-spacing:1.5px;color:#dbdfbf;font-family:'Courier New',monospace;font-size:12px}
#legal-mobile .brand i,#legal-mobile .brand svg{flex-shrink:0}
#legal-mobile .company-emblem{display:block;width:76px;height:76px;object-fit:contain;flex-shrink:0;border-radius:5px}
#legal-mobile .brand>div{min-width:0}
@media(max-width:360px){#legal-mobile .company-emblem{width:60px;height:60px}#legal-mobile .brand-name{font-size:17px;letter-spacing:.5px}#legal-mobile .brand-subtitle{letter-spacing:.5px}}
#legal-mobile .brand-name{display:block;font-size:20px;font-weight:500;letter-spacing:1px;overflow-wrap:anywhere}
#legal-mobile .brand-subtitle{display:block;margin-top:5px;font-size:12px;letter-spacing:1.5px}
#legal-mobile header h2{letter-spacing:.3px;margin-top:16px}
#legal-mobile header small{color:#d1d7c1}
#legal-mobile small{color:var(--mil-muted)}
#legal-mobile .notice{background:var(--mil-soft);color:var(--mil-muted);border-bottom:1px solid var(--mil-line)}
#legal-mobile button{background:var(--mil-soft);color:var(--mil-ink);border-radius:5px}
#legal-mobile .item{background:var(--mil-surface);border:1px solid var(--mil-line);border-left:3px solid var(--mil-accent);border-radius:5px;padding:17px}
#legal-mobile .tag{background:var(--mil-soft);color:var(--mil-ink);border-radius:2px;font-family:'Courier New',monospace}
#legal-mobile .primary{background:var(--mil-accent);color:var(--mil-on-accent);letter-spacing:.3px;border:1px solid var(--mil-accent)}
#legal-mobile input,#legal-mobile textarea,#legal-mobile select{background:var(--mil-surface);color:var(--mil-ink);border-color:var(--mil-line);border-radius:4px;accent-color:var(--mil-accent)}
#legal-mobile input::placeholder,#legal-mobile textarea::placeholder{color:var(--mil-muted);opacity:1}
#legal-mobile nav{background:var(--mil-surface);border-top:1px solid var(--mil-line)}
#legal-mobile nav button{background:transparent;border-radius:3px;border-bottom:3px solid transparent}
#legal-mobile nav button[aria-pressed=true]{background:var(--mil-soft);border-bottom-color:var(--mil-accent)}
#legal-mobile .grid button{background:var(--mil-surface);color:var(--mil-ink);border-radius:3px;font-variant-numeric:tabular-nums}
#legal-mobile .grid button.selected{background:var(--mil-accent);color:var(--mil-on-accent)}
#legal-mobile header{background-color:#0e2419;background-image:radial-gradient(ellipse at 12% 22%,#29452b80,transparent 65%),linear-gradient(120deg,#102719,#0b2018);border-bottom:3px solid #c1a55b;color:#f1e5ba}
#legal-mobile header .brand{color:#e5cb80}
#legal-mobile header .brand-name{color:#ebd18b}
#legal-mobile header .brand-subtitle{color:#d6c48d}
#legal-mobile header h2{color:#f1e5ba}
#legal-mobile header small{color:#d4c9a2}
#legal-mobile .company-emblem{border-radius:50%;box-shadow:0 0 0 1px #b49b5866,0 2px 12px #00000040}
#legal-mobile .case-notes,#legal-mobile .work-description{white-space:pre-wrap;overflow-wrap:anywhere}
#legal-mobile .work-history{list-style:none;padding:0;margin:16px 0}
#legal-mobile .work-history li{border-left:2px solid var(--mil-line);padding:0 0 18px 12px;margin-left:5px}
#legal-mobile .work-history li:last-child{padding-bottom:0}
#legal-mobile .work-step{display:block;color:var(--mil-muted);margin-bottom:6px;font-size:12px}
#legal-mobile{position:relative}
#legal-mobile .calendar-notice{position:absolute;top:12px;left:12px;right:12px;z-index:10;background:var(--mil-surface);color:var(--mil-ink);border:1px solid var(--mil-line);border-top:3px solid #c1a55b;border-radius:12px;padding:14px;box-shadow:0 8px 28px #00000040;overflow-wrap:anywhere}
#legal-mobile .calendar-notice[hidden]{display:none}
#legal-mobile .calendar-notice .notice-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
#legal-mobile .calendar-notice .notice-heading strong{font-size:13px;font-weight:500}
#legal-mobile .calendar-notice p{font-size:14px}
#legal-mobile .grid button.due-soon{color:light-dark(#b32124,#ffb4ad);background:light-dark(#fbe9e5,#472423);box-shadow:inset 0 0 0 1px light-dark(#bd3434,#ec9990);animation:legal-due-pulse 2s ease-in-out infinite}
#legal-mobile .grid button.due-soon.selected{box-shadow:inset 0 0 0 3px light-dark(#b32124,#ffb4ad)}
@keyframes legal-due-pulse{0%,100%{opacity:1}50%{opacity:.65}}
@media(prefers-reduced-motion:reduce){#legal-mobile .grid button.due-soon{animation:none}}

#legal-mobile #navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}#legal-mobile #navigation[hidden]{display:none}#legal-mobile #navigation button{min-width:0;padding:12px 4px;font-size:13px}.library-document{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:16px;margin:18px 0;padding:16px;background:#f8f6eb;color:#152419;border-radius:10px}#library-search,#reader-search{margin:20px 0}#legal-mobile a{color:#d6c685}

#legal-mobile .document-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
#legal-mobile .client-viewer{box-sizing:border-box;width:min(96vw,960px);max-width:96vw;height:90vh;height:90dvh;max-height:94dvh;margin:auto;padding:16px;border:1px solid #8f9c73;border-radius:10px;background:var(--mil-bg);color:var(--mil-ink);overflow:auto}
.client-viewer::backdrop{background:#000a}
#legal-mobile .viewer-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#legal-mobile .viewer-heading h3{overflow-wrap:anywhere;margin:0;font-size:17px}
#legal-mobile .viewer-heading button{flex-shrink:0}
#legal-mobile .viewer-pages{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px 0;position:sticky;top:0;background:var(--mil-bg);padding:8px 0;z-index:1}
#legal-mobile .viewer-paper{background:#fff;color:#19251d;overflow:auto;border-radius:4px}
#legal-mobile .viewer-paper img{display:block;width:100%;height:auto}
#legal-mobile .viewer-paper pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:16px;font:16px/1.6 'Segoe UI',sans-serif}
#legal-mobile [data-view=share-panel]:not(:empty){padding:12px;border:1px solid var(--mil-line);border-radius:6px;margin:12px 0}

#legal-mobile{overflow:clip}
#legal-mobile #history-controls{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;gap:12px;padding:10px 18px;background:var(--mil-surface);border-bottom:1px solid var(--mil-line)}
#legal-mobile #history-controls button{min-width:110px}
#legal-mobile button:disabled{cursor:default}
#legal-mobile .law-title{line-height:1.45;overflow-wrap:anywhere}
#legal-mobile .law-badge{font-size:13px;color:var(--mil-muted)}
#legal-mobile .law-edition{margin:14px 0;padding:12px;border:1px solid var(--mil-line);border-radius:5px}
#legal-mobile summary{cursor:pointer;min-height:32px;line-height:1.6}
#legal-mobile #law-search{margin:18px 0}
#legal-mobile #law-search button{margin:0 6px 6px 0}
#legal-mobile .law-reading-controls{display:flex;justify-content:space-between;align-items:center;gap:6px;margin:18px 0}
#legal-mobile .law-reading-controls span{text-align:center;font-size:12px;flex:1}
#legal-mobile .law-reading-controls button{flex-shrink:0}
#legal-mobile .law-text{white-space:pre-wrap;overflow-wrap:anywhere;font:17px/1.8 Georgia,'Times New Roman',serif;background:var(--mil-surface);padding:16px;border:1px solid var(--mil-line);border-radius:5px;margin:12px 0 20px}
#legal-mobile .law-toc-item{line-height:1.5;font-size:15px}
#legal-mobile a{color:light-dark(#485b32,#d6c685)}
@media(max-width:380px){#legal-mobile .viewer-heading{flex-wrap:wrap}#legal-mobile .viewer-pages{gap:5px;font-size:13px}}

#legal-mobile .regulation-text{white-space:normal;padding:12px;min-width:0;font-family:'Segoe UI',Arial,sans-serif;font-size:16px;line-height:1.7}
#legal-mobile .regulation-text p{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}
#legal-mobile .reg-table{min-width:0;max-width:100%;margin:16px 0}
#legal-mobile .table-mode{display:flex;flex-wrap:wrap;gap:8px}
#legal-mobile .table-mode [aria-pressed=true]{background:var(--mil-accent);color:var(--mil-on-accent)}
#legal-mobile .table-help,#legal-mobile .table-headers{font-size:13px;line-height:1.5;color:var(--mil-muted)}
#legal-mobile .table-row-card{border:1px solid var(--mil-line);border-radius:5px;padding:12px;margin:12px 0;max-width:100%;background:var(--mil-bg)}
#legal-mobile .table-row-card h4{margin:0 0 10px;font-size:14px}
#legal-mobile .table-row-card dl{margin:0}
#legal-mobile .table-row-card dl>div+div{border-top:1px solid var(--mil-line);padding-top:8px;margin-top:8px}
#legal-mobile .table-row-card dt{font-size:13px;line-height:1.5;color:var(--mil-muted);overflow-wrap:anywhere}
#legal-mobile .table-row-card dd{font-size:16px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 0}
#legal-mobile .table-scroll{overflow-x:auto;max-width:100%;width:100%;overscroll-behavior-x:contain;border:1px solid var(--mil-line);border-radius:4px}
#legal-mobile .regulation-text table{border-collapse:collapse;width:100%;min-width:640px;font-size:15px;line-height:1.5}
#legal-mobile .regulation-text td,#legal-mobile .regulation-text th{padding:10px;min-width:78px;max-width:340px;vertical-align:top;border:1px solid var(--mil-line);overflow-wrap:anywhere}
#legal-mobile .regulation-text td p,#legal-mobile .regulation-text th p{margin:0}
@media(max-width:380px){#legal-mobile .regulation-text{padding:8px}#legal-mobile .table-row-card{padding:10px}}

/* Main menu approved 2026-10-04. */
#legal-mobile.home-screen{background:#faf9f2;color:#143e2d}
#legal-mobile.home-screen header{padding-bottom:18px}
#legal-mobile.home-screen #title{position:absolute;left:-10000px}
#legal-mobile.home-screen #connection{display:none}
#legal-mobile.home-screen #history-controls,#legal-mobile.home-screen #navigation{display:none}
#legal-mobile.home-screen main:before{content:'Главное меню';display:block;font-size:30px;font-weight:750;margin:8px 0}
#legal-mobile .home-intro{font-size:17px;color:#59604c;margin:0 0 24px}
#legal-mobile .home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#legal-mobile .home-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:16px;min-height:180px;padding:18px 16px;border:1.5px solid #194733;background:#fffefa;color:#143e2d;border-radius:14px}
#legal-mobile .home-icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:#f4eed8;flex-shrink:0}
#legal-mobile .home-icon svg{width:38px;height:38px}
#legal-mobile .home-label strong{display:block;font-size:21px;font-weight:700}
#legal-mobile .home-label small{display:block;font-size:14px;color:#59604c;line-height:1.4;margin-top:5px}
#legal-mobile .home-arrow{position:absolute;right:14px;top:42px;color:#b99b48;font-size:34px;line-height:1}
#legal-mobile .home-team{grid-column:1/-1;flex-direction:row;align-items:center;min-height:104px;padding-right:42px}
#legal-mobile .home-team .home-arrow{top:34px}
#legal-mobile .home-logout{width:100%;border:1px solid #194733;background:transparent;color:#143e2d;margin-top:20px;min-height:50px}
#legal-mobile .home-tile:hover,#legal-mobile .home-logout:hover{background:#f4eed8}
#legal-mobile .home-tile:focus-visible,#legal-mobile .home-logout:focus-visible{outline:3px solid #b99b48;outline-offset:3px}
#legal-mobile #navigation{flex-wrap:wrap}
#legal-mobile #navigation button{flex:1 0 24%;min-height:44px}
@media(max-width:360px){#legal-mobile .home-tile{padding:14px 12px;gap:12px}#legal-mobile .home-label strong{font-size:19px}#legal-mobile .home-label small{font-size:13px}#legal-mobile .home-icon{width:54px;height:54px}#legal-mobile .home-arrow{right:10px;top:30px}}

/* Assignment preparation control and compact top navigation. */
#legal-mobile #history-controls{gap:6px;padding:10px 12px}
#legal-mobile #history-controls button{min-width:0;flex:1;padding:10px 4px;font-size:14px}
#legal-mobile .client-on-control{color:#b42328}
#legal-mobile .control-notice{background:#fff1ed;border-left:3px solid #b42328;padding:12px;margin:12px 0;overflow-wrap:anywhere}
#legal-mobile .control-label{color:#a12628;font-size:13px}
#legal-mobile .control-reminder{border-left-color:#b42328}
#legal-mobile .grid .control-day{outline:2px solid #b42328;outline-offset:-3px}
#legal-mobile .danger{border:1px solid #b42328;background:#fff7f5;color:#a31c22}

#legal-mobile .scan-dialog{box-sizing:border-box;width:min(680px,96vw);max-height:94dvh;overflow:auto;background:var(--mil-surface,#faf9f2);color:#163c28;border:1px solid #697947;border-radius:12px;padding:18px}
#legal-mobile .scan-dialog::backdrop{background:#07190edb}
#legal-mobile .scan-heading{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
#legal-mobile .scan-heading h3{width:100%;margin:0 0 8px}
#legal-mobile .scan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
#legal-mobile .scan-page{border:1px solid #bdc6ac;padding:8px;border-radius:8px;min-width:0}
#legal-mobile .scan-thumb{height:155px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:white;margin:8px 0}
#legal-mobile .scan-thumb img{max-width:95%;max-height:95%;object-fit:contain}
#legal-mobile .scan-page button{padding:8px;min-width:34px;margin:2px}
#legal-mobile .scan-choices{display:grid;gap:10px}
#legal-mobile .scan-dialog input{box-sizing:border-box;max-width:100%}

/* Shared status semantics; compact cards remain the mobile presentation. */
#legal-mobile #profile-label{display:none}
#legal-mobile .client-reassigned{color:light-dark(#946000,#f5ca66)}
#legal-mobile .client-on-control{color:light-dark(#b42328,#ffaaa4)}
#legal-mobile .control-notice{color:#641d21}
#legal-mobile .yellow-notice{background:#fff5d6;border-left-color:#b67c08;color:#684905}
#legal-mobile .client-filters{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
#legal-mobile .client-filters [aria-pressed=true]{background:var(--mil-accent);color:var(--mil-on-accent)}
#legal-mobile .clients-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
#legal-mobile .clients-toolbar h2{margin:0 0 6px}
#legal-mobile .clients-toolbar .primary{width:auto;margin:0}
#legal-mobile .client-table-heading,#legal-mobile #client-peek{display:none}
#legal-mobile .client-result>span{display:block}
#legal-mobile .client-summary{display:block;font-size:14px;line-height:1.5;margin-top:8px}
#legal-mobile .client-lawyer{font-size:14px;margin:12px 0}
#legal-mobile .status-pill{display:inline-block;padding:6px 8px;margin:3px 3px 3px 0;background:var(--mil-soft);border-radius:4px;font-size:12px;line-height:1.5}
#legal-mobile .status-pill.red{background:#ffe4e0;color:#a12628}
#legal-mobile .status-pill.yellow{background:#fff0c9;color:#825504}
#legal-mobile .client-result:focus-visible{outline:3px solid #c1a55b;outline-offset:2px}
#legal-mobile .control-notice small{color:inherit}
#legal-mobile .desktop-heading{display:none}
#legal-mobile .control-dialog{max-width:min(480px,92vw);border:1px solid #a7af99;border-radius:8px;padding:24px;background:var(--mil-surface);color:var(--mil-ink)}
#legal-mobile .control-dialog::backdrop{background:#0009}
@media(max-width:999px){#legal-mobile .clients-toolbar h2{display:none}}

/* Desktop is a full-width workspace; phones keep the existing mobile layout. */
@media(min-width:1000px){
 body{background:#f3f3eb}
 #legal-mobile.authenticated{--mil-bg:#f3f3eb;--mil-surface:#fffef8;--mil-ink:#183b2a;--mil-muted:#586555;--mil-line:#d0d5c3;--mil-soft:#e8ecdF;--mil-accent:#485b32;--mil-on-accent:#fffdf2;color-scheme:light;max-width:none;min-height:100vh;margin:0;border:0;border-radius:0;display:grid;grid-template-columns:210px minmax(0,1fr);grid-template-rows:auto auto auto 1fr;overflow:visible}
 #legal-mobile.authenticated>header{grid-column:1/-1;display:flex;align-items:center;gap:24px;min-height:112px;padding:16px 30px;border-bottom-width:2px}
 #legal-mobile.authenticated .company-emblem{width:76px;height:76px}
 #legal-mobile.authenticated .brand{gap:18px;min-width:320px;font-family:'Segoe UI',Arial,sans-serif}
 #legal-mobile.authenticated .brand-name{font-size:27px;letter-spacing:2px}
 #legal-mobile.authenticated .brand-subtitle{font-size:12px;letter-spacing:3px}
 #legal-mobile.authenticated #profile-label{display:block;margin-left:auto;max-width:280px;overflow-wrap:anywhere;font-size:14px}
 #legal-mobile.authenticated #title{position:absolute;left:-10000px}
 #legal-mobile.authenticated #connection{font-size:12px;max-width:210px}
 #legal-mobile.authenticated #message{grid-column:2;grid-row:2}
 #legal-mobile.authenticated #history-controls{display:flex;grid-column:2;grid-row:3;position:sticky;top:0;justify-content:flex-start;padding:14px 26px;background:#fafbf5}
 #legal-mobile.authenticated #history-controls button{flex:0 0 auto;min-width:110px;padding:10px 18px}
 #legal-mobile.authenticated #navigation{display:flex;grid-column:1;grid-row:2/5;flex-direction:column;justify-content:flex-start;align-self:stretch;border-top:0;border-right:1px solid var(--mil-line);gap:8px;padding:22px 12px;background:#fafbf5}
 #legal-mobile.authenticated #navigation button{flex:0 0 auto;min-height:52px;text-align:left;padding:12px 20px;font-size:16px;border:0;border-radius:6px}
 #legal-mobile.authenticated #navigation button[aria-pressed=true]{background:#485b32;color:#fffdf2}
 #legal-mobile.authenticated #navigation #logout{margin-top:24px;border-top:1px solid var(--mil-line);border-radius:0}
 #legal-mobile.authenticated main{grid-column:2;grid-row:4;min-width:0;padding:28px;min-height:calc(100vh - 185px)}
 #legal-mobile.authenticated .desktop-heading{display:block;margin:0 0 16px}
 #legal-mobile.authenticated main>form{max-width:850px;padding:24px;background:var(--mil-surface);border:1px solid var(--mil-line);border-radius:8px}
 #legal-mobile.authenticated .home-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1150px;gap:20px}
 #legal-mobile.authenticated .home-team{grid-column:auto;flex-direction:column;align-items:flex-start;min-height:180px}
 #legal-mobile.authenticated .home-logout{max-width:320px}
 #legal-mobile.authenticated .home-intro{margin-bottom:30px}
 #legal-mobile.authenticated .clients-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,32%);gap:24px;margin-top:20px;align-items:start}
 #legal-mobile.authenticated .clients-list{min-width:0}
 #legal-mobile.authenticated #client-peek{display:block;min-width:0;padding:24px;background:var(--mil-surface);border:1px solid var(--mil-line);border-radius:8px;overflow-wrap:anywhere}
 #legal-mobile.authenticated #client-peek h3{font-size:17px;margin:22px 0 10px;font-weight:600}
 #legal-mobile.authenticated #client-peek h3:first-child{margin-top:0}
 #legal-mobile.authenticated #client-peek h2{font-size:22px}
 #legal-mobile.authenticated .client-table-heading,#legal-mobile.authenticated .client-result{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1.2fr);gap:14px;align-items:center;padding:18px 16px}
 #legal-mobile.authenticated .client-table-heading{font-size:13px;font-weight:600;background:#e8ebdf;border:1px solid var(--mil-line);border-bottom:0;border-radius:6px 6px 0 0}
 #legal-mobile.authenticated .client-result{margin:0;border:1px solid var(--mil-line);border-left:1px solid var(--mil-line);border-radius:0;background:#fffef8;border-bottom:0}
 #legal-mobile.authenticated .client-result:last-child{border-bottom:1px solid var(--mil-line);border-radius:0 0 6px 6px}
 #legal-mobile.authenticated .client-result:hover,#legal-mobile.authenticated .chosen-client{background:#edf0e4}
 #legal-mobile.authenticated .client-result strong{font-size:16px;font-weight:650}
 #legal-mobile.authenticated .client-result .tag{display:none}
 #legal-mobile.authenticated .client-lawyer{font-size:13px;margin:0}
 #legal-mobile.authenticated .client-status{min-width:0}
 #legal-mobile.authenticated .client-on-control{color:#b42328}
 #legal-mobile.authenticated .client-reassigned{color:#946000}
 #legal-mobile.authenticated .grid{max-width:850px;gap:8px}
 #legal-mobile.authenticated .grid button{min-height:65px;font-size:17px}
 #legal-mobile.authenticated[data-screen=card] #content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-content:start;align-items:start}
 #legal-mobile.authenticated[data-screen=card] #content>.back{grid-column:1/-1;justify-self:start;margin:0}
 #legal-mobile.authenticated[data-screen=card] #content>.item{margin:0}
 #legal-mobile.authenticated .law-text,#legal-mobile.authenticated .library-document{max-width:1150px}
}
