/* Screen-only workspace styling. Legal paper geometry and typography stay isolated. */
@media screen{
:root{--green:#087f68;--ink:#20332f;--muted:#71817a;--line:#e2e9e5;--bg:#f4f7f5;--surface:#fff;--shadow:0 4px 24px #193e2f05}
@font-face{font-family:'WorkspaceSans';src:url('fonts/noto-sans-bengali.ttf') format('truetype');font-weight:100 900;font-display:swap}
body{font-family:'WorkspaceSans',sans-serif;font-size:14px;line-height:1.65;-webkit-font-smoothing:antialiased}
aside{width:252px;padding:28px 16px 0;background:linear-gradient(165deg,#102e29,#0d2421);border-right:1px solid #ffffff09;scrollbar-width:thin;scrollbar-color:#35554a transparent}
.brand{padding:0 12px 25px;gap:11px;font-size:28px;letter-spacing:-.7px}.brand small{font-size:10px;letter-spacing:0;margin-top:5px}.logo{transform:none;border-radius:13px;width:42px;height:46px;background:#d5eee2;box-shadow:0 3px 12px #0002}
.workspace{padding:14px 12px;background:#ffffff04;border:1px solid #ffffff0c;border-radius:12px;margin:0 4px 6px}.workspace small{margin-top:3px}.navlabel{font-size:10px;font-weight:600;letter-spacing:.4px;color:#789b8f;margin:22px 15px 9px}
aside nav a{padding:11px 13px;gap:12px;margin:3px 0;border:1px solid transparent;border-radius:9px;color:#a1b9ae;min-height:43px}nav a span{font-size:13px;font-weight:450}nav a:hover{background:#ffffff07;color:#e1f1e8}nav a.active{background:#245145;color:#f0fff6;border-color:#49745c55;box-shadow:0 3px 10px #0001}nav a.active span{font-weight:600}nav b{background:#ffffff12;color:#c2e4d2;border-radius:6px;font-weight:550}.ui-icon{width:19px;height:19px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;align-self:center}
.profile{padding:18px 8px;border-color:#ffffff0b}.profile small{margin-top:3px}.shell{margin-left:252px}header{height:72px;padding:0 38px;background:#ffffffde;color:#7a8981}header b{font-weight:600;color:#344e43}.save-indicator{font-size:11px;background:#eff7f2;padding:5px 11px;border:1px solid #deeee3;border-radius:30px;color:#488268}.topright .avatar{border:3px solid white;box-shadow:0 0 0 1px #e1e9e3}.icon{border-radius:9px}
main{max-width:1500px;padding:34px 38px 44px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:1.7px;color:#81958b;margin-bottom:7px}.titlebar{margin-bottom:25px;gap:20px}.titlebar h1{font-size:29px;line-height:1.5;font-weight:650;letter-spacing:-.5px}.titlebar p{font-size:12px;color:#7a8981;margin-top:5px}.btn{border-radius:9px;padding:10px 16px;min-height:40px;font-size:12px;font-weight:550;background:var(--surface);border-color:var(--line);box-shadow:0 1px 2px #163c2510;justify-content:center;transition:background .16s,box-shadow .16s,border-color .16s}.btn:hover{background:#f2f7f4;border-color:#a7c6b6;box-shadow:0 3px 7px #163c250a}.btn.primary{background:#087f68;border-color:#087f68;color:white;box-shadow:0 4px 10px #087f681c}.btn.primary:hover{background:#066752;border-color:#066752}.btn:disabled{box-shadow:none}
.welcome{padding:25px 30px;background:linear-gradient(112deg,#e7f1e9,#f1f6ef);border:1px solid #d9e6dc;border-radius:15px;margin-bottom:22px}.welcome h2{font-size:20px;line-height:1.6;font-weight:600;color:#284e3c}.welcome p{font-size:12px;color:#72877a}.welcome a{font-size:11px;font-weight:600}.illustration{opacity:.85}.paper-art{box-shadow:7px 7px 0 #cfdfd1}
.stats{gap:16px;margin-bottom:31px}.stat{padding:21px 23px;border-radius:13px;background:var(--surface);border-color:var(--line);box-shadow:var(--shadow);align-items:flex-start}.stat small{font-size:11px;font-weight:500;color:#7c8d82}.stat strong{font-family:'WorkspaceSans',sans-serif;font-size:30px;line-height:1.3;font-weight:600;margin-top:13px;letter-spacing:-.8px;color:#274b3b}.stat .badgeicon{width:36px;height:36px;background:#eff5f1;border:1px solid #e7efe9;border-radius:10px;color:#66937c}.sectionline h2{font-weight:600;font-size:17px}.sectionline span{font-size:10px}.sectionline h2 span{display:inline-block!important;font-size:10px;font-weight:450;color:#809086}
.toolbar{gap:12px;margin-bottom:20px}.toolbar input,.toolbar select{min-height:45px;padding:10px 15px;border-radius:10px;background:var(--surface);border-color:var(--line);font-size:12px;box-shadow:0 1px 2px #163c2503}.toolbar input::placeholder{color:#9aa69f}.tabs{gap:26px}.tabs button{font-size:12px;font-weight:500;padding:0 2px 13px}.tabs button.active{font-weight:600;border-bottom-width:3px}.tabs em{font-size:10px;border-radius:5px;padding:2px 6px;background:#e8f0eb}
.tablewrap{border-radius:0 0 12px 12px;box-shadow:var(--shadow)}.tablewrap th{background:#f9fbfa;font-size:10px;font-weight:550;color:#89998f;padding:15px 18px}.tablewrap td{font-size:12px;padding:19px 18px;border-color:#edf1ee}.tablewrap tbody tr{transition:background .15s}.tablewrap tbody tr:hover{background:#f8fbf9}.tablewrap .deed-marked,.tablewrap .deed-marked:hover{background:#eaf4ef}.deedname{gap:13px}.deedname strong{font-size:12px;font-weight:550;color:var(--ink)}.deedname small{font-size:10px;color:#98a69d;margin-top:5px}.docicon{border-radius:8px;background:#f1f6f2;border-color:#e0ebe2;color:#739780}.pill{border-radius:6px;font-size:10px;padding:4px 9px}.openlink{font-size:11px;font-weight:550}.archivebtn{min-width:28px;min-height:30px;border-radius:6px}.archivebtn:hover{background:#e9f2ec}.rowstatus{font-size:10px;border-radius:7px;min-height:29px;color:#5e7c6c;border-color:#e0e9e3}.tablefoot{font-size:10px;padding:15px 18px;border-radius:0 0 12px 12px}.bulk-deed-actions{background:#eaf4ef;border-color:#c5e0d2;border-radius:10px;font-size:12px}.bulk-deed-actions .btn{min-height:34px;padding:7px 13px;font-size:11px}.selection-cell input,.selection-head input{width:16px;height:16px}
.card{border-radius:14px;box-shadow:var(--shadow);padding:26px}.card h2{font-size:19px;font-weight:600}.card p{font-size:12px;line-height:1.9}.formpanel{border-radius:12px;box-shadow:var(--shadow)}.formpanel h2{font-weight:600;font-size:17px}.fields{gap:20px}.fields label{font-size:12px;font-weight:500;color:#566d60}.fields input,.fields select,.fields textarea{border-radius:8px;background:#fdfefd;border-color:#dfe7e1;padding:11px 12px;font-weight:400;font-size:13px;transition:border-color .15s,box-shadow .15s}.fields input:not([type=checkbox]),.fields select{min-height:43px}.fields input::placeholder,.fields textarea::placeholder{color:#9daaa1}.fields input[readonly]{background:#f1f5f2}.subcard{border-radius:11px;background:#f8faf8;padding:21px;border-color:#e3ebe4}.checkline{font-weight:400!important;line-height:1.8}.fields input[type=checkbox]{accent-color:var(--green)}.formbottom{padding-top:20px}.stepnav{border-radius:11px;padding:6px}.stepnav button{font-size:11px;padding:10px 12px;min-height:38px;font-weight:500}.stepnav button.active{border-radius:7px;background:#e8f3ec;color:#08775d;box-shadow:0 1px 4px #123c2110}.guide details{border-radius:11px}.guide summary{font-size:14px;font-weight:550}.listitem{gap:18px}.notice{border:1px solid #e9dfc5;border-radius:8px;font-size:11px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:2px solid #48a487;outline-offset:3px}.fields input:focus,.fields textarea:focus,.fields select:focus,.toolbar input:focus,.toolbar select:focus{outline:none;border-color:#62a58a;box-shadow:0 0 0 3px #087f6810}dialog{border-radius:16px;box-shadow:0 24px 90px #102f2b35}dialog::backdrop{background:#102f2b66;backdrop-filter:blur(3px)}#toast{border-radius:11px;box-shadow:0 8px 30px #102f2b26;font-size:13px;padding:13px 22px}footer{margin:0 38px;color:#98a59b;font-size:10px}
html[data-theme=dark]{--surface:#1b2c24;--bg:#122019;--line:#304337;--ink:#e2eee6;--muted:#9caf9f}html[data-theme=dark] header{background:#192a21}html[data-theme=dark] .save-indicator{background:#233e2c;border-color:#35513d;color:#a2c6ac}html[data-theme=dark] .welcome{background:linear-gradient(110deg,#253e2d,#203528);border-color:#3b5442}html[data-theme=dark] .welcome h2{color:#d1e6d4}html[data-theme=dark] .tablewrap th{background:#19291f;color:#a1b4a7}html[data-theme=dark] .tablewrap tbody tr:hover{background:#243b2c}html[data-theme=dark] .tablewrap .deed-marked{background:#294a36}html[data-theme=dark] .tablewrap td{border-color:#2b4031}html[data-theme=dark] .subcard{background:#192b21;border-color:#314739}html[data-theme=dark] .fields label{color:#b0c7b7}html[data-theme=dark] .bulk-deed-actions{background:#244332;border-color:#3a654b}html[data-theme=dark] .stat strong{color:#d0e6d6}html[data-theme=dark] .btn:hover{background:#2a4734}html[data-theme=dark] .fields input[readonly]{background:#25392c}
@media(min-width:1500px){main{padding-top:40px}.welcome{padding:28px 32px}}
@media(max-width:1100px){aside{width:216px;padding:24px 12px 0}.shell{margin-left:216px}main{padding:28px 25px}header{padding:0 25px}.stat{padding:18px}.sectionline>span{display:none}.toolbar{gap:8px}}
@media(max-width:700px){aside{position:static;width:auto;padding:16px 14px 8px;background:#102e29}.shell{margin-left:0}.brand{padding:0 4px 12px;font-size:25px}.brand .logo{width:34px;height:37px;font-size:24px}aside nav a{padding:9px 12px;min-height:38px;gap:7px;flex-shrink:0}aside nav a span{font-size:11px}.ui-icon{width:16px;height:16px}header{height:52px;padding:0 18px}main{padding:25px 18px}.titlebar h1{font-size:24px}.titlebar p{font-size:11px}.titlebar .btn{font-size:11px;padding:9px 12px}.welcome{padding:20px;border-radius:12px}.welcome h2{font-size:17px}.welcome p{font-size:11px}.stats{gap:10px;margin-bottom:25px}.stat{padding:17px}.stat strong{font-size:27px}.stat .badgeicon{width:30px;height:30px}.toolbar select{flex:1;font-size:11px}.sectionline h2{font-size:16px}.fields{gap:18px}.card{padding:23px}.tablewrap td{padding:16px}.bulk-deed-actions{gap:8px}.bulk-deed-actions strong{width:100%}.editing-deed .titlebar h1{font-size:21px}footer{margin:0 18px}.eyebrow{font-size:8px;letter-spacing:1.3px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
}
@media screen{.btn.reset-deed{color:#a4483b;border-color:#ead5d0;background:#fffaf8}.btn.reset-deed:hover{background:#fff0ea;border-color:#d8aaa0}.reset-symbol{width:44px;height:44px;display:grid;place-items:center;background:#fff1e9;color:#a44d37;border-radius:12px;font-size:29px;margin-bottom:18px}#modal .reset-hint{font-size:12px;background:#f3f7f4;padding:12px 14px;border-radius:9px;margin:16px 0}.reset-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:25px}.btn.reset-confirm{background:#a94b3c;border-color:#a94b3c;color:white}.btn.reset-confirm:hover{background:#8f3e31}html[data-theme=dark] .btn.reset-deed{background:#382b25;color:#edb2a3;border-color:#614237}html[data-theme=dark] #modal .reset-hint{background:#24392b}html[data-theme=dark] .reset-symbol{background:#423026;color:#e9b29b}}
@media screen{
.clause-location{font-size:11px;color:#36816a;background:#edf6f0;border:1px solid #d6e9de;border-radius:8px;padding:10px 12px;margin-bottom:20px;line-height:1.8}.clause-reference{display:inline-block;font-size:9px;font-weight:500;color:#528674;background:#edf5f0;border-radius:5px;padding:1px 6px;margin:5px 0 0}.clause-heading-number{color:#168268}.fields label:focus-within{color:#087b60}.fields label:focus-within .clause-reference{background:#d6ede0;color:#075e48}.legal-value.guide-value-active{background:#fff0b9!important;outline:2px solid #d6a637;outline-offset:2px;border-radius:2px;box-shadow:0 0 0 4px #e7bc3720}.guide-value-active{transition:background-color .18s ease,outline-color .18s ease}.btn,aside nav a{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease}.btn:active:not(:disabled){box-shadow:inset 0 2px 4px #102f2b12}.formpanel{animation:form-reveal .18s ease-out}.card,.stat{transition:border-color .2s ease,box-shadow .2s ease}.card:hover{border-color:#c4d8cb;box-shadow:0 6px 22px #153c2b08}dialog[open]{animation:dialog-reveal .18s ease-out}.field-attention{animation:none!important}html[data-theme=dark] .clause-location{background:#223e2f;border-color:#355941;color:#b4d9c3}html[data-theme=dark] .clause-reference{background:#2c4736;color:#a3ccb4}@keyframes form-reveal{from{opacity:.6}to{opacity:1}}@keyframes dialog-reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.formpanel,dialog[open]{animation:none!important}}
}
@media print{.clause-location,.clause-reference{display:none!important}.guide-value-active{outline:none!important;box-shadow:none!important;background:transparent!important}}

@media screen{.fields label>.clause-reference{display:inline;background:none!important;color:inherit!important;padding:0;margin:0 5px 0 0;border-radius:0;font:inherit;font-weight:650;vertical-align:baseline}.fields label>.clause-reference+input[type=checkbox]{display:inline-block}.checkline>.clause-reference{flex-shrink:0}.clause-heading-number{font:inherit;color:inherit!important}}
@media screen{.form-clause-section{margin-bottom:30px}.form-clause-section>h2{font-size:17px!important;line-height:1.65;margin:0 0 20px!important;padding:0 0 12px!important;border-bottom:1px solid var(--line);font-weight:600}.form-clause-section>.fields+.fields{margin-top:18px}.form-clause-section>.fields:empty{display:none}.form-clause-section>.clause-editor{margin-top:20px}.form-clause-section>.btn{margin-top:12px}.clause-note{font-size:12px;line-height:1.9;margin:8px 0 15px;color:var(--muted)}.form-clause-section .subcard h2{border:0!important;padding:0!important;font-size:15px!important}.form-clause-section>label{display:block;font-size:12px;margin-bottom:16px}.form-clause-section>label select{display:block;width:100%;margin-top:7px}}
@media screen{.applicability-check{justify-content:flex-start;font-size:13px!important;gap:9px;padding:0 0 12px!important}.applicability-check input{width:17px!important;height:17px!important;accent-color:var(--green)}.applicability-help{color:#8c9f94;font-size:13px;cursor:help}.attorney-detail-label textarea{display:block;width:100%;min-height:150px;resize:vertical;border:1px solid var(--line);border-radius:9px;padding:13px 14px;font:inherit;line-height:1.8;background:var(--surface);color:var(--ink)}.attorney-detail-label textarea::placeholder{color:#91a297}.attorney-detail-label textarea:focus{outline:none;border-color:#62a58a;box-shadow:0 0 0 3px #087f6810}}
@media screen{.ownership-draft{grid-column:1/-1;border:1px solid var(--line);border-radius:13px;padding:19px;background:var(--surface);min-width:0}.ownership-draft-title{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.ownership-draft-title>span{font-size:10px;background:#e4f4ec;color:#1d8d67;padding:3px 8px;border-radius:20px;white-space:nowrap}.ownership-intro{font-size:12px;margin:13px 0 17px;line-height:1.9}.ownership-capacity{padding:12px 14px;border:1px solid #d9be6a;border-radius:9px;background:#fcf8e9;color:#92731a;font-size:11px;line-height:1.9;margin-bottom:17px}.ownership-capacity-full{background:#eef6f0;border-color:#a1c6aa;color:#447c50}.ownership-editor-frame{border:1px solid var(--line);border-radius:10px;overflow:hidden}.ownership-editor-frame:focus-within{border-color:#70aa92;box-shadow:0 0 0 3px #087f680a}.ownership-tools{display:flex;flex-wrap:wrap;gap:6px;padding:10px;background:#f7faf8;border-bottom:1px solid var(--line);align-items:center}.ownership-tools button{font:inherit;font-size:11px;padding:5px 8px;border:1px solid #dce6df;border-radius:6px;color:#5b7567;background:var(--surface);min-height:30px}.ownership-tools button:hover{background:#eaf4ee;color:var(--green)}.ownership-tools button:disabled{opacity:.4;cursor:not-allowed}.ownership-tool-divider{height:22px;width:1px;background:var(--line);margin:0 2px}.ownership-tools button.ownership-clear{color:#b14e44;margin-left:auto;border-color:transparent;background:transparent}#ownership-rich-input{min-height:300px;max-height:560px;overflow:auto;padding:17px 15px;font-size:14px;font-weight:400;line-height:1.95;color:var(--ink);outline:none;white-space:pre-wrap;overflow-wrap:anywhere}#ownership-rich-input:empty:before{content:attr(data-placeholder);color:#98a69d;pointer-events:none}#ownership-rich-input ul{padding-left:22px;margin:0}#ownership-rich-input p,#ownership-rich-input div{margin:0}.ownership-editor-footer{display:flex;justify-content:space-between;gap:12px;padding:9px 13px;border-top:1px solid var(--line);font-size:10px;color:#8a9a90}.ownership-paste{width:100%;margin-top:14px;box-shadow:none}.ownership-voice-note{font-size:11px;margin-top:12px}.ownership-tools button[aria-pressed=true]{color:#b3443b;background:#fbece7;border-color:#e8ada0}html[data-theme=dark] .ownership-tools{background:#1b2b21}html[data-theme=dark] .ownership-tools button{background:#243b2d;color:#bfd4c6;border-color:#3c5343}html[data-theme=dark] .ownership-capacity{background:#383521;color:#e1cc8c;border-color:#6c6031}html[data-theme=dark] .ownership-draft-title>span{background:#214735;color:#88d3b4}@media(max-width:700px){.ownership-draft{padding:13px}.ownership-draft-title{font-size:12px}.ownership-tools{gap:5px;padding:8px}.ownership-tools button{font-size:10px;padding:5px 7px}#ownership-rich-input{min-height:250px}}}
@media screen{.baina-catalog-actions{display:flex;flex-wrap:wrap;gap:9px}.baina-catalog-actions .btn{font-size:11px;padding:9px 12px}}
@media screen{.baina-edit-values{margin:0 0 20px}.formpanel input[data-path][readonly]{cursor:default}}
