/* Datik: local Persian typography, strong contrast and distinct writing surfaces. */
@font-face{font-family:Vazirmatn;src:url("fonts/Vazirmatn.f6d31671339d.woff2") format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--navy:#182f43;--navy-light:#24455d;--ink:#172f43;--muted:#536678;--teal:#255e62;--teal-dark:#18484d;--teal-pale:#dfede9;--gold:#b39a62;--gold-pale:#f1e8d5;--line:#c9d4d8;--canvas:#f6f5f0;--paper:#edf2f4;--danger:#922e36;font-family:Vazirmatn,Tahoma,"Segoe UI",sans-serif;font-size:15px}
body{line-height:1.95;background:var(--canvas);color:var(--ink)}
h1{font-size:29px;font-weight:750;letter-spacing:-.5px}h2{font-size:20px;font-weight:720}h3{font-size:16px;font-weight:700}h4{font-size:15px}small{font-size:12px}
a{color:#205c66}button,input,select,textarea{font-family:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #886921;outline-offset:3px}
.hint{font-size:13px;line-height:2.05;color:var(--muted)}.muted{color:var(--muted)}.tiny-label,.overline{font-size:12px;letter-spacing:0}.overline{color:#6e5b36;font-weight:650}
.button{font-size:14px;min-height:44px;padding:10px 18px;border-radius:7px;background:#e6edf0;border-color:#bdcbd2;box-shadow:0 1px 1px #18304305}.button:hover{background:#dce7e8;border-color:#91a9b2}.button.primary{background:#255b60;border-color:#255b60}.button.primary:hover{background:#16454b}.button.secondary{background:#dcebe7;border-color:#bad2c9;color:#214e48}.button.small{font-size:12px;min-height:36px;padding:7px 12px}.button.danger{background:#f4e4e3;border-color:#d9b9b9}.text-button{font-size:13px;color:#205d65}.icon-button{background:#e8eef0;border-color:#c6d1d7}.pill{font-size:12px;line-height:1.8;padding:3px 9px;border-radius:4px;background:#e0e8ee;color:#365468}.pill.gold{background:#ede0bf;color:#6c5222}.pill.green{background:#dcebe3;color:#245440}.pill.red{background:#f1dedd;color:#883640}
.app-layout{grid-template-columns:258px minmax(0,1fr)}.sidebar{padding:28px 22px 0;background:linear-gradient(165deg,#1c354a,#122738);border-left:1px solid #2c4357}.brand{gap:14px}.brand-mark{width:56px;height:60px;display:grid;place-items:center;line-height:1;border:1px solid #b6a06b;background:#c8b27b0c;border-radius:5px;color:#d8c58c;flex-shrink:0}.brand-mark svg{width:46px;height:46px;stroke-width:1.55}.brand strong{font-size:27px;font-weight:750;letter-spacing:0}.brand small{font-size:13px;color:#c6d2dc;margin-top:0}.sidebar-create{margin:28px 0 22px;background:#bfa56f!important;border-color:#bfa56f!important;color:#1a2d3d!important;min-height:46px;font-size:14px}.sidebar-create:hover{background:#d0b982!important}.main-nav{gap:6px}.nav-button{font-size:14px;color:#c1ced8;padding:11px 12px;min-height:46px;border-radius:5px;line-height:1.8}.nav-button.active{background:#304c61;color:#fff;box-shadow:inset -3px 0 #cbb27a}.nav-button:hover{background:#284358;color:#fff}.nav-button b{font-size:12px;background:#416075;color:#f1f5f8;padding:0 7px}.nav-button>span{font-size:21px}.sidebar-note{padding:27px 5px 25px;color:#b1c2ce}.sidebar-note .tiny-label{color:#d4bd87;font-size:12px}.sidebar-note p{font-size:12px;line-height:2.1;margin-top:10px}.note-line{background:#b39a62}.sidebar-account{margin:0 -22px;padding:18px;border-color:#334b60;background:#122738;gap:12px}.avatar{width:38px;height:38px;flex-basis:38px;background:#345268;border:1px solid #5d7787;font-size:16px}.sidebar-account strong{font-size:13px;max-width:145px}.sidebar-account small{font-size:12px;color:#afc1ce}.logout-button{color:#c7d5df}
.topbar{height:92px;padding:0 38px;background:#e8eceb;border-bottom:1px solid #bcc8cc;border-top:4px solid #b39a62}.topbar-start{gap:14px}.office-title{display:block;font-size:19px;font-weight:750;color:#193449;line-height:1.7}.breadcrumb{display:block;font-size:12px;color:#5b6d76;max-width:380px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar time{font-size:12px;color:#435b6d}.network-label{font-size:12px;padding-left:22px;border-color:#bac9ce;color:#425d62}.topbar-end{gap:20px}#main{max-width:1500px;padding:33px 38px 42px;min-height:calc(100vh - 152px)}.page-footer{padding:16px 38px;background:#eeefea;color:#576c75;border-color:#cbd3d2;font-size:11px}.page-heading{margin-bottom:24px;align-items:center}.page-heading p{font-size:14px;color:#526574;line-height:2}.page-heading .overline{margin-bottom:3px}.page-heading h1{font-size:28px}.hero{margin:23px 0 18px;padding:29px 34px;border-radius:9px;background:linear-gradient(115deg,#233f53,#183044);border:1px solid #40556a;border-right:4px solid #bda66f;min-height:226px}.hero .overline{color:#d4c395;font-size:12px}.hero h2{font-size:29px;font-weight:600;line-height:1.75;max-width:75%;color:#fff}.hero p{font-size:14px;color:#d1dde2;max-width:73%;margin-top:10px;line-height:2}.hero-seal{width:116px;height:116px;border-color:#bfa77366;border-radius:50%;left:55px;color:#d0b982;background:#bba66d08}.hero-seal svg{width:68px;height:68px;stroke-width:1.25}.hero-seal:before,.hero-seal:after{border-color:#bfa77333}.hero-seal:before{inset:-29px}.hero-seal:after{inset:-14px}
.ai-dashboard{display:flex;justify-content:space-between;gap:18px;align-items:center;border:1px solid #bfcfc9;border-radius:8px;background:#e4ede7;padding:17px 20px}.ai-dashboard .row{gap:14px}.ai-dashboard h3{font-size:15px}.ai-dashboard p{font-size:12px;color:#456258;line-height:1.9;margin-top:3px}.ai-dashboard .button{white-space:nowrap}.ai-badge{width:42px;height:42px;flex:0 0 42px;border:1px solid #b7cabc;border-radius:9px;display:grid;place-items:center;color:#2e6255;background:#d2e3d8}.ai-badge svg{width:23px;height:23px}.stats-grid{gap:15px;margin:22px 0}.stat-card{background:#e5edf2;border-color:#c5d2dc;padding:18px 22px;gap:17px;border-radius:8px}.stat-card:nth-child(2){background:#efe8d9;border-color:#d8ceb8}.stat-card:nth-child(3){background:#e4ede7;border-color:#c2d4c8}.stat-icon{background:#d1e0e8;border-radius:7px;color:#375f74}.stat-card:nth-child(2) .stat-icon{background:#e5d7b9;color:#79602f}.stat-card:nth-child(3) .stat-icon{background:#cfe1d5;color:#416654}.stat-card b{font-size:28px;font-weight:600;color:#223c4e}.stat-card span{font-size:12px;color:#4f6471;line-height:1.8}.section-heading{margin:28px 0 14px}.section-heading h2{font-size:19px}.section-heading p{font-size:13px;color:#556b78}.panel{background:#ecf1f3;border-color:#c6d2d9;border-radius:8px;padding:25px;box-shadow:0 3px 10px #19374803}.panel>.section-heading:first-child{margin-top:0}.panel h2{color:#203f55}.table-wrap{background:#eaf0f3;border-color:#bfced7;border-radius:8px}.case-table th{background:#dbe5eb;color:#334e60;font-size:12px;font-weight:600;border-color:#bdcdd6;padding:14px 19px}.case-table td{font-size:13px;padding:18px 19px;border-color:#cad7df}.case-table tbody tr:nth-child(even){background:#e3ecf1}.case-table tbody tr:hover{background:#dbe8eb}.case-title-button{font-size:14px;color:#193f56;max-width:340px;font-weight:650}.case-title-cell small{font-size:12px;color:#526b7b;max-width:330px}.case-icon{background:#d8e5ec;border-color:#b9ced7;color:#365e70;width:39px;height:42px}.quick-steps{gap:15px}.step-card{background:#e8ebe3;border-color:#cbd4c4;border-radius:8px;padding:20px 18px;gap:14px}.step-number{font-size:26px;color:#7d876e}.step-card h3{font-size:14px;color:#324d40}.step-card p{font-size:12px;color:#536851;line-height:2;margin-top:5px}.empty-state{background:#eaf0ed;border:1px dashed #aabeb2;padding:40px 24px;border-radius:8px}.empty-state h3{font-size:18px;color:#274638}.empty-state p{font-size:14px;color:#526958;max-width:560px}.empty-state .empty-symbol{background:#d6e6dd;color:#4a7763;border:1px solid #b6cdc0}.initial-loading{font-size:14px}
.case-back{font-size:13px}.case-heading h1{font-size:26px}.case-meta{font-size:13px;gap:12px;color:#4c6878}.tabs{gap:5px;padding:5px 6px;background:#e2e9ed;border:1px solid #bdccd5;border-radius:7px;margin-bottom:24px}.tab-button{font-size:14px;border:0;border-radius:4px;padding:10px 15px;color:#425c6e;line-height:1.8}.tab-button:hover{background:#d4e1e7}.tab-button.active{background:#244d61;color:#fff;font-weight:650;box-shadow:0 1px 3px #19334420}.tab-button .tab-count{font-size:11px;background:#cddce3;color:#3d5d6d;padding:0 5px}.tab-button.active .tab-count{background:#456b7b;color:white}.two-columns{grid-template-columns:minmax(0,1.9fr) minmax(270px,1fr);gap:22px}.field{gap:8px;margin-bottom:20px}.form-grid{gap:20px}label{font-size:14px;color:#24485a;font-weight:650}input:not([type=checkbox]):not([type=hidden]),select,textarea{background:#e0eaf0;border:1px solid #aebfca;border-radius:6px;padding:11px 13px;min-height:47px;font-size:15px;color:#15354c;line-height:1.9}input:hover,select:hover,textarea:hover{border-color:#7596a7}input:focus,select:focus,textarea:focus{background:#edf3f5;border-color:#547e91}input::placeholder,textarea::placeholder{font-size:13px;color:#647b89;line-height:1.9}textarea{line-height:2.15;min-height:135px}input[type=file]{font-size:12px!important;direction:rtl}input[type=file]::file-selector-button{font-family:inherit;background:#cddde5;color:#24485c;border:1px solid #afc2cd;border-radius:4px;padding:6px 10px;margin-left:12px;cursor:pointer}input[type=checkbox]{width:18px;height:18px;flex-basis:18px;margin-top:4px}.consent{font-size:13px;font-weight:450;color:#3f5a64;line-height:2.1;gap:10px;padding:13px 14px;background:#e0e8e2;border:1px solid #bbcbbf;border-radius:6px;margin:18px 0}.optional-analysis{background:#dfebe4}.form-footer{border-color:#bdcdd5;gap:15px}.save-label{font-size:12px;color:#4f6f61}.save-label.dirty{color:#7d5c1c}.info-card{background:#e6eadd;border-color:#c6d0b7;border-radius:8px;padding:22px}.info-card h3{font-size:15px;color:#344b37}.info-card p{font-size:13px;color:#4e6447;line-height:2.1}.info-card dl{font-size:13px}.info-card dt{font-size:12px;color:#596e53}.info-card dd{color:#345137}.side-card{background:#e7edf1;border-color:#bfced7;border-radius:8px;padding:22px}.side-card h3{font-size:15px;color:#284b60}.side-card .button{font-size:13px}.access-list{font-size:14px}.notice{background:#f0e7d1;border:1px solid #d6c392;border-right:4px solid #a38647;color:#69532a;font-size:13px;line-height:2.1;padding:13px 16px;border-radius:5px}.notice.danger{background:#f2dfdc;border-color:#dbb6b1;color:#853c3c}.notice.success{background:#dfebe1;border-color:#abc8b3;color:#345e3e}.document-card,.source-card{background:#eaf0f3;border:1px solid #bfced7;border-radius:8px;padding:22px}.card-header h3{font-size:16px;color:#244a60}.document-text,.source-text{background:#dce7ec;border:1px solid #b9cdd6;font-size:15px;color:#213f52;line-height:2.25;padding:18px;border-radius:5px}.source-meta{font-size:12px;color:#506a79}.mono{font-size:12px;color:#54717e}details{font-size:13px}summary{color:#235c68;font-size:14px;line-height:2;padding:5px 0}.editor-layout{grid-template-columns:minmax(0,1fr) 290px;gap:21px}.editor-wrap{background:#e5edf1;border-color:#b7c9d3;border-radius:8px}.editor-toolbar{background:#d9e5eb;border-color:#adc3ce;padding:15px 20px}.editor-toolbar strong{font-size:15px}.writing-editor{background:#e8efe9!important;color:#203d33;min-height:580px;padding:26px 30px;font-size:16px;line-height:2.4}.editor-status{font-size:12px;background:#dfe8ec;border-color:#b6c9d2;color:#536f7b}.citation{border-color:#c1d1d9}.citation strong{font-size:13px;color:#335d5b}.citation p{font-size:13px;color:#45626a;line-height:2}.version-row{font-size:12px;color:#4c6a78;padding:10px 0;border-color:#c2d1d9}.draft-preview{background:#e8ece1;border-color:#c6d1b9;color:#304634;font-size:16px;line-height:2.4;border-radius:8px}.checklist li{font-size:13px;color:#355365;border-color:#c5d5dc}.guide-grid h2{font-size:18px}.guide-grid p,.guide-grid li{font-size:14px;color:#456272;line-height:2.2}.search input{background:#e1eaf0}.search svg{color:#526f80;top:16px}.search-hint{font-size:12px;color:#59717e}.ai-panel>summary{font-size:14px;color:#2a5667}.research-result a{font-size:14px}.research-result p{font-size:12px;color:#536b79}.account-card{background:#e8eff2;border-color:#c2d2db}.password-change-form label{font-size:14px}.password-change-form .helptext,.password-change-form ul{font-size:12px}
dialog{background:#edf2f3;border-color:#afc3cb;border-radius:9px;padding:26px 28px}dialog::backdrop{background:#10293b80}.dialog-header{border-color:#bdcdd4}.dialog-header h2{font-size:21px}.dialog-actions{border-color:#bdcdd4}.toast{font-size:14px;max-width:590px;line-height:2;background:#203e52;border-color:#718895;border-radius:7px}.toast.error{background:#783941;border-color:#a9767b}.toast.success{background:#29574a;border-color:#6d9688}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}
.login-page{background:#f4f2ea}.login-shell{grid-template-columns:1.05fr 1fr}.login-story{background:linear-gradient(150deg,#233f54,#142c40);padding:52px 62px;border-left:4px solid #ae925a}.login-story .brand strong{font-size:25px}.login-story .brand small{font-size:13px}.login-message{padding:55px 0}.login-message .overline{font-size:14px;color:#dccba3}.login-message h1{font-size:42px;font-weight:600;line-height:1.85;margin:17px 0 24px}.login-message h1 em{color:#dec68d}.login-message>p{font-size:16px;color:#d2dce3;line-height:2.3;max-width:440px}.login-features{gap:29px;margin-top:38px}.login-features span{font-size:13px;color:#dce4e8;border-color:#9c8b68;padding-right:14px}.login-features b{font-size:12px;color:#d1b97e;margin-bottom:6px}.login-story-footer{font-size:12px;color:#b6c9d4}.login-ornament{border-color:#89977940;width:600px;height:600px;left:-415px}.login-ornament span{border-color:#89977940}.login-form-section{padding:42px;background:radial-gradient(ellipse at top,#e9ece4,#f3f2eb 68%)}.login-form-wrap{width:420px;max-width:100%;padding:32px;background:#e7ece8;border:1px solid #bbc9c0;border-radius:9px;box-shadow:0 18px 50px #183b2910}.login-form-wrap h2{font-size:26px;line-height:1.7;color:#223f48}.login-description{font-size:14px;color:#4c645e;line-height:2.1;margin:12px 0 26px}.login-form input:not([type=hidden]){background:#dce7e2;border:1px solid #9fb8ab;min-height:49px;font-size:16px}.login-form label{color:#315449}.login-form .login-submit{min-height:49px;margin-top:9px}.login-help{font-size:13px;color:#53685b;margin:22px 0}.login-footnote{font-size:12px;color:#4d6857;border-color:#bccdbc;line-height:2;padding-top:19px}.login-bottom{font-size:12px;color:#526b61;bottom:20px}.login-mobile-brand{color:#684f22;font-size:20px;font-weight:750}
.settings-layout{grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr)}.settings-status{display:flex;align-items:center;gap:13px;padding:17px;background:#dce8e2;border:1px solid #b6cfc0;border-radius:6px;margin-bottom:25px}.settings-status>svg{width:27px;height:27px;flex:0 0 27px;color:#3a6751}.settings-status strong{font-size:15px;color:#2a5340}.settings-status p{font-size:12px;color:#4a6a57;margin-top:4px}.settings-status>.pill{margin-right:auto}.advanced-settings{padding:14px 17px;background:#dde7ed;border:1px solid #b7cbd5;border-radius:5px}.advanced-settings[open] summary{margin-bottom:16px}.remove-key{margin-top:25px;padding-top:20px;border-top:1px solid #bacbd3;display:flex;gap:20px;align-items:center;justify-content:space-between}.remove-key .button{white-space:nowrap}.ai-unavailable strong{display:block;font-size:14px;margin-bottom:4px}.ai-unavailable p{margin-bottom:5px}.analysis-layout{display:flex;flex-direction:column;gap:19px}.analysis-intro .section-heading{margin:0 0 19px}.analysis-intro .dialog-actions{margin-top:14px;padding-top:14px}.analysis-intro .consent{margin-bottom:0}.analysis-layout>.notice{margin-bottom:0}.analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:17px 0}.analysis-card{padding:23px;border:1px solid #bdced6;background:#e1ebf0;border-radius:7px}.analysis-card h3{font-size:17px;color:#244c62;margin-bottom:14px;padding-bottom:11px;border-bottom:1px solid #b7cbd6}.analysis-card p,.analysis-card li{font-size:15px;line-height:2.2;white-space:pre-wrap;overflow-wrap:anywhere}.analysis-card ul{padding-right:20px;margin:0}.analysis-card li{padding:5px 0}.analysis-card.summary{grid-column:1/-1;background:#dfeae4;border-color:#b5cbbb}.analysis-card.summary h3{color:#2d5642;border-color:#b7cdbd}.analysis-card.ambiguities,.analysis-card.limitations{background:#eee5d1;border-color:#d3c39b}.analysis-card.ambiguities h3,.analysis-card.limitations h3{color:#6c552d;border-color:#d3c39b}.analysis-card.next-steps{background:#e5e9db;border-color:#c1cba9}.report-meta{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:12px;color:#526b77}.coverage-details{padding:14px 18px;border:1px solid #c0cfcf;border-radius:6px;background:#e7ece8;margin-top:16px}.coverage-details summary{font-size:13px;color:#365850}.coverage-details p{margin-top:9px}.stale-notice{border-right-color:#9e7127}
.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:21px;align-items:start}.chat-main{min-width:0}.chat-transcript{display:flex;flex-direction:column;gap:19px;min-height:270px;margin-bottom:20px}.chat-welcome{background:#e7edf0;border:1px solid #c0ced7;border-top:3px solid #b7a06b;border-radius:8px;padding:32px 29px;text-align:center}.chat-emblem{width:58px;height:62px;display:grid;place-items:center;margin:0 auto 15px;color:#806b3e;border:1px solid #c7b98f;border-radius:5px;background:#eee7d6}.chat-emblem svg{width:39px;height:39px;stroke-width:1.3}.chat-welcome h2{font-size:21px;color:#29485d}.chat-welcome p{font-size:14px;color:#506c7d;line-height:2;margin:8px 0 20px}.prompt-examples{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.prompt-examples .button{background:#dce6ec;border-color:#b6cbd7;font-weight:500}.chat-message{padding:20px 23px;border-radius:8px;border:1px solid #b6c9d6;background:#e0eaf0;max-width:96%;min-width:60%}.chat-message.from-user{background:#e3ebdf;border-color:#bed1b9;align-self:flex-start;border-top-right-radius:0}.chat-message.from-assistant{align-self:flex-end;border-top-left-radius:0}.message-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #b9cbd4}.from-user .message-heading{border-color:#bed0b9}.message-heading strong{font-size:14px;color:#345c55}.message-heading time{font-size:11px;color:#52727d}.message-text{font-size:15px;line-height:2.25;white-space:pre-wrap;overflow-wrap:anywhere;color:#203f51}.chat-composer{padding:23px}.chat-composer textarea{min-height:125px}.chat-composer .dialog-actions{margin-top:18px}.chat-context{display:flex;gap:9px;align-items:center;background:#d6e4e5;border:1px solid #afc6c7;border-radius:5px;font-size:13px;color:#345961;padding:10px 13px;margin-bottom:19px;overflow-wrap:anywhere}.conversation-sidebar{background:#e8ebe2;border:1px solid #c7d0b9;border-radius:7px;padding:20px 16px}.conversation-sidebar .section-heading{margin:0 0 9px}.conversation-sidebar h2{font-size:17px}.conversation-sidebar>.hint{font-size:12px;color:#586c4d}.conversation-list{display:flex;flex-direction:column;gap:9px;margin-top:18px;max-height:600px;overflow-y:auto}.conversation-item{display:flex;text-align:right;gap:10px;align-items:center;border:1px solid #c7d1bb;background:#e1e7d9;border-radius:5px;padding:12px;color:#355146;font:inherit;width:100%}.conversation-item>svg{flex-shrink:0}.conversation-item span{min-width:0}.conversation-item strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px;font-weight:650}.conversation-item small{display:block;font-size:11px;color:#566f5e}.conversation-item:hover{background:#d7e0cc}.conversation-item.active{background:#cdddcf;border-color:#8eab94;box-shadow:inset -3px 0 #4e785c}.request-progress{position:fixed;left:28px;top:105px;z-index:120;display:flex;align-items:center;gap:12px;border:1px solid #819eaa;background:#e3edf2;padding:13px 18px;color:#254d60;border-radius:7px;box-shadow:0 8px 25px #17334520;font-size:13px}.request-progress .spinner{width:19px;height:19px;flex-shrink:0}
@media(min-width:1700px){#main{padding-top:40px}.hero{min-height:238px}.topbar{padding-left:55px;padding-right:55px}}
@media(max-width:1200px){.app-layout{grid-template-columns:230px minmax(0,1fr)}.sidebar{padding-right:17px;padding-left:17px}.sidebar-account{margin-right:-17px;margin-left:-17px}.brand strong{font-size:24px}.brand-mark{width:51px;height:55px}.nav-button{font-size:13px;padding:10px}.topbar{padding:0 25px}#main{padding:28px 25px}.two-columns,.settings-layout{grid-template-columns:minmax(0,1.5fr) minmax(245px,1fr)}.editor-layout{grid-template-columns:minmax(0,1fr) 250px}.hero h2{font-size:26px}.hero-seal{left:36px;width:100px;height:100px}.hero-seal svg{width:60px;height:60px}.hero p{max-width:72%}.stat-card{padding:17px 16px;gap:12px}.stat-card span{font-size:12px}.network-label{display:none}.chat-layout{grid-template-columns:minmax(0,1fr) 225px}.conversation-item strong{max-width:142px}.login-story{padding:44px 37px}.login-message h1{font-size:37px}.login-message>p{font-size:15px}.login-story .brand strong{font-size:23px}.login-form-section{padding:32px}.login-features{gap:16px}}
@media(max-width:1000px){.two-columns,.editor-layout,.settings-layout{grid-template-columns:1fr}.editor-aside{display:grid;grid-template-columns:1fr 1fr;gap:17px}.stats-grid{gap:10px}.stat-card{padding:15px 12px;gap:10px}.stat-icon{width:36px;height:38px}.stat-card b{font-size:25px}.hero{padding:25px}.hero h2{font-size:25px}.hero-seal{left:28px;width:85px;height:85px}.hero-seal svg{width:52px;height:52px}.hero p{max-width:75%;font-size:13px}.quick-steps{grid-template-columns:1fr}.step-card{padding:16px 19px}.guide-grid{grid-template-columns:1fr}.ai-dashboard{align-items:flex-start;flex-direction:column;gap:13px}.ai-dashboard .button{align-self:flex-end;font-size:12px;min-height:38px;padding:7px 12px}.chat-layout{grid-template-columns:1fr}.conversation-sidebar{order:2}.conversation-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:260px}.conversation-item strong{max-width:none}.case-table th:nth-child(3),.case-table td:nth-child(3){display:none}.analysis-grid{grid-template-columns:1fr}.analysis-card.summary{grid-column:auto}.login-message h1{font-size:32px}.login-story .brand strong{font-size:20px}.login-story .brand small{font-size:12px}.login-features{gap:17px}.login-features span{font-size:12px}.login-form-wrap{padding:25px}.login-form-wrap h2{font-size:23px}.tabs{gap:3px}.tab-button{font-size:13px;padding:9px 11px}}
@media(max-width:740px){.app-layout{display:block}.sidebar{position:fixed;width:270px;height:100dvh;right:0;top:0;z-index:30;transform:translateX(100%);overflow-y:auto;box-shadow:-20px 0 60px #10233570;padding:24px 21px 0}.sidebar.open{transform:translateX(0)}.sidebar-account{margin:0 -21px}.sidebar-note{padding:28px 5px}.sidebar-create{margin-top:23px}.brand strong{font-size:26px}.nav-button{font-size:14px}.menu-toggle{display:grid;width:38px;height:38px;font-size:19px;flex-shrink:0}.topbar{height:83px;padding:0 18px;border-top-width:3px}.office-title{font-size:17px}.breadcrumb{font-size:11px;max-width:220px}.topbar-start{gap:12px}.topbar-end{display:none}#main{padding:24px 18px 32px}.page-heading{flex-wrap:wrap;gap:14px;margin-bottom:22px}.page-heading h1{font-size:25px}.page-heading p{font-size:13px}.page-heading .button{font-size:12px;padding:8px 13px;min-height:40px}.hero{padding:23px;min-height:215px;margin-top:20px}.hero .overline{font-size:11px}.hero h2{font-size:25px;max-width:76%}.hero p{font-size:13px;max-width:76%;line-height:2}.hero-seal{left:18px;width:63px;height:63px}.hero-seal svg{width:41px;height:41px}.hero-seal:before{inset:-16px}.hero-seal:after{inset:-8px}.stats-grid{gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}.stat-card{padding:15px 11px;display:block;border-radius:6px}.stat-icon{width:32px;height:32px;margin-bottom:10px}.stat-card b{font-size:25px}.stat-card span{font-size:11px;display:block;line-height:1.9}.section-heading h2{font-size:18px}.section-heading p{font-size:12px}.ai-dashboard{padding:16px}.ai-dashboard h3{font-size:14px}.ai-dashboard p{font-size:12px}.panel{padding:20px}.case-heading h1{font-size:24px}.case-meta{font-size:12px;gap:8px}.tabs{gap:3px;padding:5px;max-width:100%;border-radius:6px}.tab-button{font-size:13px;padding:9px 13px}.two-columns{gap:19px}.form-grid{gap:18px}.field{margin-bottom:19px}input:not([type=checkbox]):not([type=hidden]),select,textarea{font-size:16px}.form-footer{flex-wrap:wrap}.editor-aside{display:block}.writing-editor{font-size:16px;line-height:2.35;padding:22px;min-height:490px}.editor-status{font-size:11px;flex-wrap:wrap}.case-table th,.case-table td{padding:15px 12px;font-size:12px}.case-title-button{max-width:195px;font-size:14px}.case-title-cell small{max-width:195px;font-size:11px}.case-icon{display:none}.case-table th:nth-child(2),.case-table td:nth-child(2),.case-table th:nth-child(4),.case-table td:nth-child(4){display:none}.case-table .button{font-size:12px;padding:7px 9px;min-height:35px}.case-title-cell{gap:0}.card-header{align-items:flex-start;gap:10px;flex-wrap:wrap}.card-header h3{font-size:15px}.card-header .pill{font-size:11px}.document-card,.source-card{padding:18px}.document-text,.source-text{font-size:15px;padding:15px;line-height:2.15}.toast{left:14px;right:14px;bottom:14px;font-size:13px;max-width:none;padding:13px 17px}.page-footer{padding:15px 18px;font-size:11px}.page-footer span:last-child{display:none}.login-shell{display:block}.login-story{display:none}.login-form-section{padding:28px 20px;min-height:100dvh}.login-form-wrap{width:430px;padding:26px;box-shadow:none}.login-mobile-brand{display:block;margin-bottom:24px;color:#355647;font-size:20px;padding-bottom:19px;border-bottom:1px solid #b4c7b8}.login-form-wrap h2{font-size:24px}.login-bottom{position:static;margin-top:20px}.login-description{font-size:14px}.login-form .field{margin-bottom:20px}.settings-status{flex-wrap:wrap;padding:14px;gap:10px}.settings-status>.pill{margin-right:0}.settings-status>div{flex:1;min-width:170px}.remove-key{flex-direction:column;align-items:flex-start;gap:13px}.report-meta{flex-wrap:wrap;font-size:12px}.analysis-card{padding:19px}.analysis-card h3{font-size:16px}.analysis-card p,.analysis-card li{font-size:15px}.chat-message{padding:18px;max-width:100%}.message-text{font-size:15px}.chat-welcome{padding:27px 18px}.chat-welcome h2{font-size:19px}.chat-welcome p{font-size:13px}.chat-composer{padding:19px}.chat-context{align-items:flex-start}.conversation-list{grid-template-columns:1fr}.request-progress{top:94px;right:16px;left:16px;font-size:12px;justify-content:center}dialog{padding:23px 20px}.dialog-header h2{font-size:19px}.session-expired{padding:25px;margin-top:25px}}
@media(max-width:420px){.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.hero-seal{display:none}.hero h2,.hero p{max-width:100%}.page-heading h1{font-size:23px}.hero{min-height:auto}.hero h2{font-size:26px}.stat-card{padding:13px 10px}.stat-card span{font-size:11px}.office-title{font-size:16px}.sidebar{width:260px}.login-form-wrap{padding:23px}.login-form-wrap h2{font-size:22px}.form-footer .button{width:100%}.dialog-actions .button{width:100%}.ai-dashboard .button{align-self:stretch}.tab-count{display:none}.case-title-button,.case-title-cell small{max-width:175px}}
@media print{body{background:white;color:black}.sidebar,.topbar,.page-footer,.tabs,.button,.text-button,.editor-aside,.toast,.request-progress{display:none!important}.app-layout,.content-shell{display:block}#main{padding:0}.draft-preview,.analysis-card{background:white;color:black;border:1px solid #aaa}.case-heading h1{font-size:22px}.analysis-grid{display:block}.analysis-card{break-inside:avoid;margin:14px 0}}
