:root{color-scheme:light;--ink:#202426;--paper:#f8f5ef;--panel:#fdfbf7;--line:#d8d1c5;--warm:#eee7da;--muted:#66635c;--gold:#9d641a;--light-gold:#f3e2c1;--dark:#1f2426;--dark-2:#2b3031;--ok:#456349;--shadow:0 4px 18px #3b30200b;font-family:"Instrument Sans","Aptos","Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--paper)}
button,input,textarea,select{font:inherit;color:inherit}
button,a,input,textarea,select{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.65}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #b67b30;outline-offset:3px}
.symbol-bank{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}
.initial{padding:3rem}
.shell{display:grid;grid-template-columns:229px minmax(0,1fr) minmax(310px,28.5vw);min-height:100vh}
.sidebar{background:var(--dark);color:#f9f5ed;padding:23px 15px 19px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;overflow:auto}
.brand{display:block;margin:0 auto 18px;width:165px;height:123px;object-fit:contain}
.eastern{width:min(174px,100%);height:90px;object-fit:contain;display:block;margin:13px auto 15px}
.nav-rule{border:0;border-top:1px solid #ede6d335;margin:0 1px}
.nav{display:flex;flex-direction:column;gap:5px;margin-top:18px}
.nav-button{display:flex;align-items:center;gap:12px;text-align:left;border:0;padding:12px;border-radius:7px;background:none;color:inherit;min-height:47px;width:100%;font-size:.96rem;font-weight:550}
.nav-button:hover{background:var(--dark-2)}
.nav-button[aria-current=page]{background:#94621e;color:#fff}
.nav-label{color:#dfd2be;font-size:.83rem;margin:17px 12px 0;line-height:1.3}
.nav .job-title{font-weight:700;color:#fff;line-height:1.3}
.nav-spacer{flex:1;min-height:20px}
.powered{margin:13px auto 0;width:177px;text-align:center}
.powered i{font-size:.81rem}
.powered img{width:168px;display:block;margin:9px auto 0}
.workspace{padding:0 25px 32px;min-width:0}
.breadcrumb{display:flex;align-items:center;gap:7px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:13px 0;font-size:.92rem;color:var(--muted)}
.breadcrumb strong{color:var(--ink)}
.crumb{border:0;background:none;padding:0;color:inherit}
.crumb:hover{text-decoration:underline}
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:20px 0 18px}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(1.9rem,2.5vw,2.65rem);line-height:1.06;letter-spacing:-.045em;margin-bottom:7px}
h2{font-size:1.23rem;letter-spacing:-.025em;margin-bottom:9px}
h3{font-size:1rem;margin-bottom:5px}
.subtitle,.muted{color:var(--muted)}
.subtitle{margin:0;line-height:1.5}
.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;min-height:38px;white-space:normal;border-radius:7px;background:#faf7f0;border:1px solid #c9c0b1;font-size:.89rem;font-weight:650;text-decoration:none;color:inherit}
.button:hover{background:#f1e9d9}
.button.primary{background:var(--gold);border-color:var(--gold);color:#fff}
.button.primary:hover{background:#805015}
.button.ghost{background:transparent;border-color:transparent}
.button.icon-only{width:39px;padding:6px}
.button .icon{width:18px;height:18px}
.modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;border-bottom:2px solid #b47a32;margin:20px 0 17px}
.module{background:#f1ece3;border:1px solid var(--line);border-radius:8px 8px 0 0;padding:11px 6px;text-align:center;font-size:clamp(.79rem, 1vw,.98rem);font-weight:600}
.module[aria-current=page]{background:var(--gold);border-color:var(--gold);color:white}
.module:hover:not([aria-current=page]){background:#eae0cc}
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 10px;padding:0}
.tab{background:none;border:1px solid transparent;border-radius:7px;padding:7px 10px;min-height:35px;font-weight:600;color:#625d54}
.tab[aria-selected=true]{background:#ede6d8;color:#383127;border-color:#ddd0bb}
.tab:hover{background:#efe8db}
.card{border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:var(--shadow);overflow:hidden;margin:0 0 17px}
.card-head{padding:12px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f5f0e7;border-bottom:1px solid var(--line)}
.card-head h2{margin:0}
.card-body{padding:15px;line-height:1.55}
.card-body p:last-child{margin-bottom:0}
.table-container{overflow:auto}
table{border-collapse:collapse;width:100%;font-size:.91rem;line-height:1.35}
th{background:#ece5d8;text-align:left;color:#332d24;font-weight:700}
td,th{padding:10px 13px;border-bottom:1px solid #e5ded1;vertical-align:top}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#f8f0e3}
.amount,.number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.total-line{padding:12px 14px;display:flex;justify-content:space-between;border-top:1px solid var(--line);background:#f0e8d8;font-weight:750}
.text-link{border:0;background:none;padding:0;color:#7a4c18;text-decoration:underline;text-underline-offset:2px;line-height:1.4;text-align:left;font-weight:650}
.pill{display:inline-block;background:#ede5d7;color:#684a24;font-size:.78rem;font-weight:650;border-radius:6px;padding:4px 7px;line-height:1.3}
.pill.done{background:#e3eadb;color:#38543d}
.notes-list{margin:0;padding:0;list-style:none}
.notes-list li{padding:12px 14px;border-bottom:1px solid var(--line)}
.notes-list li:last-child{border:0}
.notes-list p{margin:5px 0;line-height:1.4;font-size:.91rem}
.note-heading{display:flex;gap:7px;align-items:center;justify-content:space-between}
.source{color:var(--muted);font-size:.82rem;line-height:1.35}
.document-toolbar{display:flex;gap:4px;align-items:center}
.viewer{width:100%;height:400px;overflow:auto;background:#eeebe5;display:flex;align-items:flex-start;justify-content:center;padding:10px}
.viewer img{display:block;object-fit:contain;width:100%;max-width:none;flex:none;border:1px solid var(--line)}
.viewer iframe{border:0;width:100%;height:100%;background:#fff}
.viewer:fullscreen{height:100vh}
.file-row{display:flex;gap:11px;align-items:center;justify-content:space-between;min-height:48px}
.file-row div:first-of-type{flex:1;min-width:0;overflow-wrap:anywhere}
.job-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.job-card{border:1px solid var(--line);border-radius:9px;padding:17px;background:var(--panel);text-align:left;display:flex;align-items:flex-start;gap:11px;min-height:108px}
.job-card:hover{border-color:#aa7b47;background:#fff9ee}
.job-card strong,.job-card span{display:block}
.job-card strong{margin:0 0 6px}
.ash-panel{border-left:1px solid var(--line);background:#f4efe7;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;min-width:0;overflow:hidden}
.ash-head{display:flex;align-items:center;gap:12px;padding:16px 17px 11px}
.ash-head img{width:57px;height:57px;border-radius:50%;border:1px solid #d5c9b7}
.ash-head h2{font-size:1.7rem;line-height:1;margin:0 0 4px;letter-spacing:.02em}
.ash-head p{margin:0;font-size:.92rem}
.ash-hero{object-fit:cover;object-position:center;width:calc(100% - 22px);height:clamp(105px,17vh,184px);display:block;margin:0 11px;border-radius:11px}
.chat-context{padding:10px 14px;font-size:.82rem;color:var(--muted);border-bottom:1px solid #dfd6c7;overflow-wrap:anywhere}
.chat-body{min-height:0;flex:1;overflow:auto;padding:12px}
.msg{display:flex;gap:7px;margin:0 0 11px;align-items:flex-start}
.msg img{width:31px;height:31px;flex:none;border-radius:50%}
.msg .bubble{background:#ebe4d8;border:1px solid #e1d7c7;border-radius:12px;padding:10px 12px;font-size:.93rem;line-height:1.45;overflow-wrap:anywhere}
.message-text{white-space:pre-wrap}
.msg.staff{justify-content:flex-end;padding-left:24px}
.msg.staff .bubble{background:#e7dfcc}
.draft{margin-top:9px;background:#f7f1e5;border-left:3px solid #ab7326;padding:9px;white-space:normal}
.draft p{margin-bottom:7px}
.quick{margin:10px 0 0;display:grid;gap:5px}
.quick button{text-align:left;justify-content:flex-start;font-weight:550}
.chat-form{margin:8px 11px 12px}
.chat-options{display:flex;gap:6px;align-items:center;justify-content:space-between;margin-bottom:6px}
.chat-options .button{min-height:30px;padding:4px 8px;font-size:.81rem}
.composer{display:flex;gap:6px;background:#fdfaf5;border:1px solid #b9aa98;border-radius:10px;padding:5px;align-items:flex-end}
.composer textarea{resize:vertical;max-height:120px;min-height:43px;width:100%;border:0;background:none;padding:10px 9px;font-size:.94rem}
.composer textarea:focus{outline:0}
.composer:focus-within{outline:2px solid #a77337}
.file-chip{font-size:.78rem;color:var(--muted);overflow-wrap:anywhere}
.readonly{padding:12px;background:#efe6d6;border:1px solid #dfceb3;border-radius:8px;margin:13px 0;font-size:.92rem;line-height:1.45}
dialog{background:var(--panel);border:1px solid #bcad95;border-radius:12px;padding:18px;width:min(560px,calc(100vw - 28px));max-height:88vh;color:inherit;box-shadow:0 20px 80px #0e0b0950}
dialog::backdrop{background:#1d2122aa}
dialog h2{margin:0 0 12px}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
label span{display:block;font-size:.84rem;font-weight:650;margin-bottom:5px}
fieldset{border:1px solid var(--line);border-radius:8px;margin:0 0 12px;padding:11px;min-width:0}
input:not([type=checkbox]),select,textarea{width:100%;border:1px solid #cbbda9;border-radius:7px;background:#fffdf7;padding:8px;min-height:38px}
textarea{line-height:1.4}
.field{display:block;margin:9px 0}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.error{color:#912f1b}
#toast{position:fixed;bottom:15px;left:50%;transform:translateX(-50%);z-index:4;background:#242625;color:#fff;padding:12px 18px;border-radius:8px;display:none;max-width:90vw}
.login{min-height:100vh;display:grid;grid-template-columns:minmax(300px,38%) 1fr;background:#f8f4eb}
.login aside{background:var(--dark);display:flex;align-items:center;justify-content:center;flex-direction:column;padding:40px;gap:16px}
.login aside .brand{width:min(280px,75%);height:auto;margin:0 auto}
.login aside .eastern{width:min(250px,75%);height:auto}
.login aside .powered{color:#ede7d8;margin:5vh auto 0}
.login article{padding:42px;align-self:center;max-width:650px}
.login h1{font-size:clamp(2.4rem,5vw,4.7rem)}
.login p{max-width:445px;line-height:1.5}
.login .button{margin-top:4px}
@media(max-width:1230px){.shell{grid-template-columns:190px minmax(0,1fr) 315px}.workspace{padding-left:17px;padding-right:17px}.page-heading{flex-direction:column;gap:9px}}
@media(max-width:960px){.shell{grid-template-columns:157px minmax(0,1fr)}.ash-panel{grid-column:2;position:static;height:570px;border-top:1px solid var(--line)}.sidebar{grid-row:span 2;padding:15px 8px}.brand,.eastern{width:125px;height:auto}.powered{width:132px}.powered img{width:132px}.nav-button{padding:9px 6px;font-size:.87rem;gap:7px}.ash-hero{height:115px;object-fit:contain}}
@media(max-width:650px){.shell{display:block}.sidebar{height:auto;position:static;display:grid;grid-template-columns:87px 1fr;align-items:center;gap:6px;padding:9px 12px}.brand{width:72px;margin:0}.sidebar .nav-rule,.sidebar .eastern,.sidebar .powered,.nav-spacer,.nav-label,.nav .job-title{display:none}.nav{margin:0;display:flex;flex-direction:row;flex-wrap:wrap;gap:0}.nav-button{width:auto;min-height:36px}.workspace{padding:0 10px 20px}.job-grid{grid-template-columns:1fr}.ash-panel{border-left:0}.modules{margin-top:13px}.form-grid{grid-template-columns:1fr}.login{display:block}.login aside{padding:25px;gap:0}.login aside .brand{width:125px}.login aside .eastern{width:130px}.login aside .powered{display:none}.login article{padding:25px}}
