:root{--ink:#173a34;--muted:#6f817a;--green:#1e5b4d;--light:#eef4ef;--line:#dfe7e1;--paper:#fbfcfa;--orange:#a46627;--red:#b2453d;font:14px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:#f3f5f1}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid transparent;background:var(--green);color:white;border-radius:9px;padding:10px 17px;font-weight:600}button:hover{filter:brightness(.94)}button:disabled{opacity:.55;cursor:wait}button.secondary{background:#fff;color:var(--ink);border-color:var(--line)}button.ghost{background:transparent;color:var(--green);padding:6px 9px}button.danger{background:#fff2ef;color:var(--red)}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}h1{font-size:27px;letter-spacing:-.5px}h2{font-size:19px}h3{font-size:15px}p+p{margin-top:8px}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{letter-spacing:2px;text-transform:uppercase;font-size:11px;color:var(--muted);font-weight:700}.loading{padding:20vh 15vw}.layout{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100dvh}.sidebar{background:var(--ink);color:#fff;padding:30px 18px;position:sticky;top:0;height:100dvh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:0 12px 25px}.brand img{width:39px}.brand strong{font-size:20px;letter-spacing:3px}.brand small{display:block;color:#b9cdc3;font-size:10px;letter-spacing:1px}.navlabel{font-size:11px;color:#9fb7ad;margin:18px 14px 9px;letter-spacing:2px}.navbutton{width:100%;text-align:left;display:flex;align-items:center;gap:13px;color:#c9d9d0;background:none;font-weight:400;padding:11px 14px;margin:2px 0}.navbutton.active{background:#e4efd6;color:#143f36;font-weight:700}.navicon{font-size:17px;opacity:.85;min-width:20px}.sidebar-foot{margin-top:auto;border-top:1px solid #ffffff25;padding:22px 12px 0;color:#b4c7bb;font-size:12px}.sidebar-foot b{color:#e4efd6;display:block;margin-bottom:5px}.main{min-width:0}.topbar{height:78px;background:#ffffffb3;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:16px}.profile{display:flex;align-items:center;gap:12px}.avatar{height:32px;width:32px;display:grid;place-items:center;border-radius:50%;background:#e2eadf;color:var(--green);font-weight:700}.content{padding:32px 36px 50px;max-width:1660px;margin:auto}.pagehead{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:20px}.pagehead p{margin-top:5px;color:var(--muted)}.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.notice{padding:13px 17px;border:1px solid #e8d7b8;border-radius:11px;background:#fbf7ed;color:#81602c;margin-bottom:22px;font-size:13px}.card{background:white;border:1px solid var(--line);border-radius:16px;padding:24px;margin-bottom:20px}.cardhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.hero{display:grid;grid-template-columns:1fr 240px;background:#e6eddf;position:relative;overflow:hidden;min-height:187px}.hero h2{font-size:25px;margin:12px 0 10px}.hero p{max-width:630px;color:#4c6655}.hero-art{display:flex;align-items:center;justify-content:center;transform:rotate(-9deg);font-size:96px;color:#9fba92;font-family:serif}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.stat .value{font-size:34px;line-height:1.4;font-weight:600;margin:10px 0 3px;font-variant-numeric:tabular-nums}.stat .label{font-size:13px;color:var(--muted)}.stat .hint{font-size:12px;color:var(--muted)}.twocol{display:grid;grid-template-columns:1.25fr 1fr;gap:20px}.step{display:flex;align-items:flex-start;gap:14px;padding:17px 0;border-bottom:1px solid var(--line)}.step:last-child{border-bottom:0}.step-number{border:1px solid var(--line);min-width:29px;height:29px;border-radius:8px;display:grid;place-items:center;font-size:12px}.step p{font-size:13px;color:var(--muted);margin-top:4px}.tablewrap{overflow:auto;max-height:580px;border:1px solid var(--line);border-radius:11px}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{font-weight:600;color:#648076;background:#f1f5ef;position:sticky;top:0;z-index:1;white-space:nowrap}th,td{padding:13px 14px;border-bottom:1px solid var(--line);vertical-align:middle}td{max-width:270px;overflow-wrap:anywhere}tr:last-child td{border-bottom:0}tr:hover td{background:#fafcf8}.empty{text-align:center;padding:58px 22px;color:var(--muted)}.empty .symbol{font-size:30px;color:#9bb39b;margin-bottom:12px}.empty strong{display:block;color:var(--ink);margin-bottom:6px}.badge{font-size:11px;background:#edf3e9;color:#587048;padding:4px 9px;border-radius:20px;white-space:nowrap;display:inline-block}.badge.pending,.badge.draft{background:#faf1db;color:#8b6b2d}.badge.returned,.badge.review,.badge.voided{background:#f9e9e5;color:#a1594b}.badge.closed,.badge.withdrawn{background:#efefee;color:#7a817b}.filter{display:flex;gap:12px;margin-bottom:17px;align-items:center}.filter input{max-width:350px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}.field label{font-size:13px;font-weight:600}.field small{color:var(--muted);font-size:12px}input,select,textarea{width:100%;border:1px solid #d3dfd5;background:white;border-radius:8px;padding:10px 12px;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #1e5b4d15}input[type=checkbox]{width:16px;height:16px;accent-color:var(--green)}textarea{min-height:95px;resize:vertical}.check{display:flex;gap:9px;align-items:flex-start;font-size:13px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.span2{grid-column:1/-1}.error{color:var(--red);background:#fff2ef;padding:10px 14px;border-radius:8px;font-size:13px;margin:12px 0;white-space:pre-wrap}.error:empty{display:none}.formfooter{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:18px;margin-top:12px}dialog{width:min(820px,calc(100% - 28px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:26px;box-shadow:0 25px 100px #08291a38}dialog::backdrop{background:#102b2259;backdrop-filter:blur(3px)}.modalhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.modalhead button{padding:3px 12px;font-size:20px}.sectiontitle{padding:15px 0 10px;font-size:14px;font-weight:700;border-top:1px solid var(--line);margin:8px 0}.permissions th,.permissions td{padding:8px 12px}.permissions select{padding:5px;min-width:110px}.receipt{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.detailgrid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.detailgrid small{color:var(--muted);display:block}.detailgrid p{overflow-wrap:anywhere;white-space:pre-wrap}.timeline{border-left:2px solid #d6e5cf;padding-left:18px;margin-top:14px}.timeline p{margin:8px 0 18px}.line{display:grid;grid-template-columns:1fr 155px 38px;gap:8px;margin-bottom:9px}.line button{padding:4px}.login-page{min-height:100dvh;display:grid;grid-template-columns:minmax(320px,.92fr) 1fr;background:#fafbf8}.login-story{background:#173d34;color:white;display:flex;flex-direction:column;padding:48px 9%;position:relative;overflow:hidden}.login-story .brand{padding:0}.login-story h1{font-size:46px;line-height:1.4;letter-spacing:1px;margin-top:16vh;font-weight:500}.login-story p{color:#b8cec0;margin-top:22px;line-height:1.9;max-width:350px}.login-story .story-bottom{margin-top:auto;padding-top:45px;color:#98b5a2;font-size:12px}.login-story .leaf{position:absolute;font-family:serif;font-size:260px;transform:rotate(-30deg);bottom:0;right:-10px;opacity:.06;pointer-events:none}.login-form{display:flex;align-items:center;justify-content:center;padding:40px 8%}.login-box{width:min(100%,430px)}.login-box h2{font-size:27px;margin:12px 0 6px}.login-box .intro{color:var(--muted);margin:0 0 28px}.login-box button[type=submit]{width:100%;padding:13px}.login-box form{margin-top:20px}.login-foot{font-size:12px;color:var(--muted);margin-top:22px;text-align:center}.chat-response{white-space:pre-wrap;background:#f2f6ee;padding:22px;border-radius:12px;line-height:1.9;margin-top:20px}.hidden{display:none!important}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:200;padding:12px 24px;background:#183f35;color:white;border-radius:10px;box-shadow:0 5px 20px #0002;display:none;max-width:90vw}.loading-inline{padding:30px;color:var(--muted)}.mono{font-family:monospace;overflow-wrap:anywhere}.nowrap{white-space:nowrap}.mobile-menu{display:none}.connection{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.dot{background:#7d9b68;border-radius:100%;width:6px;height:6px}.steps-inline{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.note{font-size:12px;color:var(--muted);margin:15px 0}.widebutton{width:100%}
.login-story h1{font-size:clamp(25px,3.1vw,46px)}
.sidebar nav{scrollbar-width:thin;scrollbar-color:#819b8b transparent}.permission-group{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:10px 0}.permission-group summary{font-weight:600;cursor:pointer}.permission-group .permissions{margin-top:10px}.permission-group td label{display:block;font-size:12px}.permission-group td input{margin-bottom:4px}.inventory-table table{font-size:12px}.inventory-table th,.inventory-table td{padding:10px 11px}#fin-panel>details{margin:14px 0}#fin-panel>details>summary{font-weight:600;cursor:pointer;padding:8px 0}[role=tablist]{margin-bottom:15px}[role=tablist] button{padding:8px 12px;font-size:13px}
.filter{flex-wrap:wrap}.filter input{flex:1 1 180px;min-width:140px}.filter select{flex:0 1 180px;width:auto}.filter button{flex:0 0 auto;white-space:nowrap}.formfooter{flex-wrap:wrap}#source-table th,#source-table td{padding:10px;font-size:12px}#source-table td:nth-child(2){min-width:115px}#source-table td:nth-child(4),#source-table td:last-child{white-space:nowrap}.sidebar nav{overflow:auto;min-height:0}.sidebar-foot{flex-shrink:0}
button{white-space:nowrap}.pagehead>div:first-child{min-width:0}
@media(max-width:760px){.pagehead{flex-direction:column;gap:12px}.pagehead>.actions{width:100%;justify-content:flex-start!important}.tablewrap table{min-width:560px}input,select,textarea{font-size:16px}button{min-height:40px}.cardhead{flex-wrap:wrap;gap:10px}}
.workspace-link{color:var(--ink);text-align:left;display:flex;align-items:center;gap:12px;margin:0;box-shadow:none}.workspace-link:hover{background:#edf3e9;color:#173d34}.workspace-link .muted{margin-left:auto;font-size:12px}.workspace-link .navicon{color:#2d604e}.workspace-link strong{font-size:15px}fieldset{border:1px solid var(--line);border-radius:9px;margin:14px 0;padding:14px}fieldset legend{font-weight:600;padding:0 6px}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:380px;overflow:auto;font-size:12px}
@media(min-width:1500px){.content{padding:42px 55px}.topbar{padding:0 55px}}@media(max-width:1100px){.layout{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:25px 12px}.content{padding:25px}.topbar{padding:0 25px}.twocol{grid-template-columns:1fr}.hero{grid-template-columns:1fr 100px}.hero-art{font-size:70px}.grid{gap:12px}.card{padding:20px}}@media(max-width:760px){.layout{display:block}.sidebar{position:fixed;left:0;top:0;z-index:20;width:230px;transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}.mobile-menu{display:block}.topbar{padding:0 16px;height:66px}.content{padding:20px 14px}.profile .username,.connection{display:none}.pagehead{align-items:flex-start}.pagehead h1{font-size:23px}.pagehead .actions{justify-content:flex-end}.grid{grid-template-columns:1fr}.stat{margin-bottom:0;display:grid;grid-template-columns:1fr auto}.stat .value{grid-row:1/3;grid-column:2;margin:0;font-size:29px}.grid{margin-bottom:18px}.hero{grid-template-columns:1fr}.hero-art{display:none}.hero h2{font-size:22px}.formgrid,.detailgrid{grid-template-columns:1fr}.span2{grid-column:auto}.login-page{display:block}.login-story{padding:24px}.login-story h1{font-size:25px;margin-top:25px}.login-story p{margin:10px 0}.login-story .story-bottom{display:none}.login-form{padding:32px 22px}.login-story .leaf{font-size:170px}.line{grid-template-columns:1fr 100px 30px}th,td{padding:10px}dialog{padding:20px}.tablewrap{max-height:520px}}
/* Discoverable owner setup entries never imply access to business data. */
.navbutton.setup-only{opacity:.78}.navbutton>span:nth-child(2){flex:1;text-align:left}.nav-status{font-size:10px;white-space:nowrap;opacity:.75}.sidebar nav .navlabel{margin:20px 12px 8px;font-size:10px;letter-spacing:.1em}.access-pending{margin-top:24px}.access-pending .actions{gap:8px}.permission-group[hidden]{display:none}.permission-group summary{cursor:pointer}.crm-reference-row,.meeting-budget-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:end}.crm-reference-row select,.meeting-budget-row input{min-width:0;width:100%}.planning-summary{display:flex;gap:16px;flex-wrap:wrap;padding:14px 0}.planning-summary strong{font-size:20px}.sidebar .navbutton{gap:8px}
.navgroup{margin:8px 0;border-top:1px solid #ffffff14;padding-top:6px}.navgroup-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:10px 12px;border-radius:9px;color:#d9e6df;font-size:13px;font-weight:600;cursor:pointer;list-style:none;user-select:none}.navgroup-heading::-webkit-details-marker{display:none}.navgroup-heading::marker{content:''}.navgroup-heading:hover{background:#ffffff0d}.navgroup-heading:focus-visible,.sidebar .navbutton:focus-visible{outline:2px solid #dcebc5;outline-offset:-2px}.navgroup.has-current>.navgroup-heading{color:#e4efd6;background:#ffffff08}.navgroup-toggle{width:23px;height:23px;flex-shrink:0;border:1px solid #ffffff30;border-radius:6px;display:grid;place-items:center;font-size:18px;line-height:1;font-weight:400}.navgroup-minus{display:none}.navgroup[open]>.navgroup-heading .navgroup-plus{display:none}.navgroup[open]>.navgroup-heading .navgroup-minus{display:inline}.navgroup-items{border-left:1px solid #ffffff25;margin:4px 0 8px 12px;padding-left:4px}.navgroup:not([open])>.navgroup-items{display:none}.navgroup-items .navbutton{padding:9px 8px;font-size:12px;min-height:40px}.navgroup-items .navicon{min-width:16px;font-size:15px}.navgroup-items .nav-status{font-size:9px}.sidebar nav{flex:1}
@media(max-width:700px){.crm-reference-row,.meeting-budget-row{grid-template-columns:1fr}.access-pending .actions button{width:100%;text-align:left}.permission-group .permissions{max-width:100%;overflow:auto}}
.sidebar nav{overflow-x:hidden}.navgroup,.navgroup-items{min-width:0}.navgroup-items .navbutton>span:nth-child(2){min-width:0;overflow-wrap:anywhere;white-space:normal}
.topbar{position:sticky;top:0;z-index:10;background:#fbfcfaf5}#global-assistant{flex-shrink:0}.workspace-basics,.workspace-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:14px 0 26px}.workspace-basics .workspace-link{align-items:flex-start;flex-direction:column;white-space:normal}.workspace-basics .muted{margin-left:0}.workspace-groups .card{margin:0}.workspace-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.workspace-shortcuts button{font-weight:500;white-space:normal;text-align:left}.workspace-more{margin-top:14px}.workspace-more summary,.library-audit summary{cursor:pointer;color:var(--muted)}.library-folders{margin-bottom:20px}.library-folders [aria-pressed=true]{background:var(--green);color:white}.library-audit{margin:18px 0;overflow-wrap:anywhere}#knowledge-list{margin-top:20px}.assistant-dialog{margin:12px 12px 12px auto;width:min(780px,calc(100% - 24px));height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:24px}.assistant-dialog>.modalhead{position:sticky;top:-24px;background:var(--paper);padding:16px 0;z-index:2}.assistant-dialog .pagehead h1{font-size:22px}.assistant-dialog .check{margin:10px 0}.assistant-dialog .chat-response{overflow-wrap:anywhere}.assistant-dialog .pagehead{flex-wrap:wrap}.modalhead [data-modal-assistant]{font-size:14px;padding:7px 12px}
@media(max-width:760px){.workspace-basics,.workspace-groups{grid-template-columns:1fr}.topbar>.actions>.small{display:none}.profile{gap:8px}.profile .avatar{display:none}.assistant-dialog{padding:18px}.assistant-dialog>.modalhead{top:-18px}.assistant-dialog .formgrid{grid-template-columns:1fr}}
/* Five-section workspace: nested groups keep native keyboard/collapse behavior. */
.sidebar .navgroup[data-nav-depth="0"]>.navgroup-heading{font-size:14px;min-height:46px}.sidebar .navgroup .navgroup{border-top:0;margin:3px 0;padding-top:0}.sidebar .navgroup .navgroup-heading{font-size:12px;padding:8px 7px;min-height:40px;gap:5px}.sidebar .navgroup .navgroup-heading>span:first-child{min-width:0;overflow-wrap:anywhere}.sidebar .navgroup .navgroup-toggle{width:20px;height:20px;font-size:16px}.sidebar .navgroup .navgroup-items{margin-left:7px;padding-left:3px}.sidebar .navgroup[data-nav-depth="2"] .navbutton{padding-left:4px}.sidebar .navgroup .navbutton .navicon{min-width:14px;font-size:14px}
.personal-home{min-width:0}.personal-home .personal-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.personal-home .card{min-width:0}.personal-home .personal-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;margin:22px 0 0}.personal-home dt{font-size:12px;color:var(--muted)}.personal-home dd{margin:4px 0 0;overflow-wrap:anywhere;font-weight:600}.personal-home .personal-wages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0 22px}.personal-home .personal-wages dd{font-size:clamp(20px,2vw,27px);font-variant-numeric:tabular-nums}.personal-home .personal-payroll-details{border-top:1px solid var(--line);padding-top:14px}.personal-home .personal-payroll-details>summary{cursor:pointer;min-height:36px;font-weight:600}.personal-home .personal-payroll-details>summary:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:3px}.personal-home .personal-components{list-style:none;margin:8px 0;padding:0;max-height:280px;overflow:auto;scrollbar-width:thin}.personal-home .personal-components li{display:flex;align-items:start;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}.personal-home .personal-components li>div{min-width:0;overflow-wrap:anywhere}.personal-home .personal-components strong{font-weight:500}.personal-home .personal-components small{display:block;color:var(--muted)}.personal-home .personal-components li>span{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right;max-width:50%}.personal-home .personal-empty{margin:24px 0 10px;color:var(--muted)}.personal-home .personal-quicklinks>.actions{margin-top:16px}.personal-home .personal-quicklinks button{white-space:normal;text-align:left}.personal-home .personal-quicklinks .workspace-shortcuts{padding-top:14px;border-top:1px solid var(--line)}.personal-home .personal-load-error p{margin:10px 0 16px;overflow-wrap:anywhere}
@media(max-width:1100px){.personal-home .personal-overview{grid-template-columns:1fr;gap:0}}@media(max-width:760px){.personal-home .personal-fields{gap:14px 16px}.personal-home .personal-quicklinks>.actions{align-items:stretch}.personal-home .personal-quicklinks>.actions button{flex:1 1 150px}.personal-home .personal-wages dd{font-size:23px}.personal-home .personal-components{max-height:240px}}
.personal-home .personal-corrections{margin-top:14px}.personal-home .personal-correction{margin-top:16px;padding:14px;background:var(--paper);border:1px solid var(--line);border-radius:10px}.personal-home .personal-correction .personal-wages dd{font-size:20px}
.camera{width:100%;max-width:420px;border-radius:12px;background:#000;display:block}.camera-preview{width:100%;max-width:420px;border-radius:12px;display:block}.orgunit{margin:8px 0}.orgunit-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.orgunit-children{margin-left:14px;border-left:1px solid var(--line);padding-left:14px}.orgkind{font-size:11px;background:#edf3e9;color:#587048;border-radius:6px;padding:2px 7px}.orgpos{border:1px solid var(--line);border-radius:10px;padding:11px 13px;margin:9px 0 0 8px}.orgpos-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.orgpos-head strong{margin-right:8px}.granttag{display:inline-block;font-size:11px;background:#eef4ef;color:#3b6d11;border-radius:6px;padding:2px 7px;margin:3px 5px 0 0}
.chatwrap{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:start}.chatlist{background:#fff;border:1px solid var(--line);border-radius:16px;padding:9px;max-height:70dvh;overflow:auto}.chatroom{display:grid;grid-template-columns:1fr auto;gap:2px 8px;width:100%;text-align:left;background:none;color:var(--ink);border:0;border-radius:10px;padding:9px 10px;font-weight:400}.chatroom:hover{filter:none;background:#f4f8f1}.chatroom.active{background:#e4efd6;color:#143f36}.chatroom-title{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatroom-last{grid-column:1/2;font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chatroom-time{grid-column:2/3;grid-row:2;font-size:11px;color:var(--muted)}.chatmain{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;min-height:62dvh;display:flex;flex-direction:column}.chathead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:10px}.chatthread{flex:1;overflow:auto;max-height:54dvh;padding:2px 4px}.chatmsg{margin:10px 0;max-width:78%}.chatmsg.mine{margin-left:auto}.chatmsg-head{display:flex;gap:8px;font-size:11px;color:var(--muted);margin-bottom:3px}.chatmsg.mine .chatmsg-head{justify-content:flex-end}.chatmsg-body{background:#f2f6ee;border-radius:10px;padding:9px 12px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.chatmsg.mine .chatmsg-body{background:#e4efd6}.chatform{display:flex;gap:8px;align-items:flex-end;border-top:1px solid var(--line);padding-top:10px;margin-top:10px}.chatform textarea{min-height:44px;max-height:120px}.chatempty{display:grid;place-items:center;min-height:50dvh}.chatpick{max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:10px;display:grid;gap:6px}
.personal-checkin{display:flex;justify-content:space-between;align-items:center;gap:16px}.personal-checkin h2{margin-bottom:4px}@media(max-width:760px){.personal-checkin{flex-direction:column;align-items:flex-start}.personal-checkin button{width:100%}}.orgloose{margin:2px 0 0 8px}.chipx{margin-left:5px;border:0;background:none;color:#a1594b;font-weight:700;padding:0 2px;line-height:1}.chipx:hover{filter:none;color:#b2453d}.hist-map{border:1px solid var(--line);border-radius:11px;padding:4px 14px;margin:6px 0 14px}.hist-map>summary{cursor:pointer;font-weight:600;padding:8px 0}.hist-map td{max-width:none}.hist-map td select{padding:6px 8px;min-width:220px}.hist-map td select+select{margin-top:6px}
.hist-map .tablewrap{max-height:none}
.hist-cols{list-style:none;margin:0 0 10px;padding:0;border:1px solid var(--line);border-radius:10px;max-height:440px;overflow:auto}.hist-col{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border-bottom:1px solid var(--line)}.hist-col:last-child{border-bottom:0}.hist-col.on{background:#f6faf3}.hist-col .check{align-items:center;margin:0;min-width:0}.hist-col .check span{overflow-wrap:anywhere}.hist-col select{width:auto;max-width:48%;padding:6px 8px}.hist-missing{color:var(--orange);font-size:13px;margin:6px 0 12px}.hist-more{margin:8px 0}@media(max-width:760px){.hist-col{flex-wrap:wrap}.hist-col select{max-width:100%;width:100%}}
/* 进销存台账：列多，单元格不换行，表格左右滑动 */
.ledger-table th,.ledger-table td{white-space:nowrap}
.ledger-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:6px}.ledger-stats .card{margin-bottom:12px;padding:18px}.ledger-stats .value{font-size:24px}.ledger-backfill{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.order-lines select,.order-lines input:not([type=checkbox]){min-width:130px}.order-lines input[type=date]{min-width:145px}.needs-check{border-color:var(--orange)!important;background:#fbf7ed!important}dialog:has(.order-lines){width:min(1180px,calc(100% - 28px))}@media(max-width:760px){.ledger-stats{grid-template-columns:1fr 1fr}}
.sheet-toolbar{display:flex;flex-wrap:wrap;gap:10px 16px;justify-content:space-between;align-items:center;margin-bottom:14px}.sheet-filter{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.sheet-filter label{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);white-space:nowrap}.sheet-filter input,.sheet-filter select{width:auto;padding:7px 10px}.sheet-filter input[type=search]{width:220px}.sheet-toolbar button{padding:8px 13px}
.sheet{max-height:70vh;border-radius:6px;border-color:#cfd9d1}.sheet table{border-collapse:separate;border-spacing:0;font-size:13px}.sheet th,.sheet td{padding:7px 10px;border-bottom:1px solid #e3e9e4;border-right:1px solid #e3e9e4;white-space:nowrap;max-width:none}.sheet th{background:#eaf0e8;color:#3f5a51;text-align:center;font-weight:600}.sheet th[data-sort]{cursor:pointer;user-select:none}.sheet th[data-sort]:hover{background:#dde8d9}.sheet td.num,.sheet td .num{text-align:right;font-variant-numeric:tabular-nums}.sheet tr:last-child td{border-bottom:1px solid #e3e9e4}
.sheet .rownum{position:sticky;left:0;z-index:2;background:#f3f6f1;color:var(--muted);text-align:center;min-width:46px;font-size:12px}.sheet thead .rownum{z-index:3;background:#eaf0e8}.sheet .rownum.imported{box-shadow:inset 3px 0 0 #9fba92}
.sheet tfoot td{position:sticky;bottom:0;background:#f5f8f3;font-weight:600;border-top:2px solid #cfd9d1;z-index:1}.sheet tfoot .rownum{z-index:3}.sheet tbody tr:hover td{background:#f6faf3}.sheet tbody tr:hover .rownum{background:#ecf2e9}
.sheet tr.editing td{background:#fffbea;padding:4px 5px}.sheet tr.editing input,.sheet tr.editing select{padding:5px 7px;border-radius:5px;font-size:13px;min-width:92px}.sheet tr.editing input[type=date]{min-width:132px}.sheet tr.editing select{min-width:130px;max-width:220px}.sheet tr.editing td.num input{text-align:right;min-width:86px;width:96px}
.sheet .sheet-acts{white-space:nowrap}.sheet .sheet-acts button{padding:4px 9px;font-size:12px}.sheet tr.editing .sheet-acts button{padding:6px 11px;margin-right:4px}.sheet .sheet-empty{text-align:center;color:var(--muted);padding:34px;white-space:normal}
.sheet-msg{min-height:20px;font-size:12px;color:var(--orange);margin:8px 2px}.sheet-msg.error{color:var(--red);background:none;padding:0}.sheet-flags{margin:0 0 10px}
.fin-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-bottom:16px}.fin-toolbar select{width:auto}.fin-split-title{display:flex;justify-content:space-between;align-items:center}.fin-split-title button{padding:6px 12px;font-size:12px}.fin-cats h3{margin:0 0 8px;font-size:14px;color:var(--muted)}.fin-monthly th,.fin-monthly td{text-align:right}.fin-monthly th:first-child,.fin-monthly td:first-child{text-align:left}
.fin-reminders{list-style:none;margin:0;padding:0}.fin-reminder{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;padding:13px 0;border-bottom:1px solid var(--line)}.fin-reminder:last-child{border-bottom:0}.fin-reminder p{color:var(--muted);font-size:13px;margin-top:3px}.fin-reminder button{padding:6px 12px;font-size:12px}.fin-reminder .badge{margin-top:2px}.fin-all-clear{color:var(--muted);padding:12px 0}
.fin-brief .chat-response{margin-top:16px}.fin-brief-form .formgrid{grid-template-columns:200px 1fr}.fin-brief-form .actions .small{max-width:520px}.fin-books-link{text-align:right;margin-top:-6px}.fin-home-card .cardhead{margin-bottom:6px}.fin-classify{max-height:60vh}.fin-classify select{padding:5px 8px;min-width:120px}
@media(max-width:760px){.sheet-filter input[type=search]{width:100%}.fin-brief-form .formgrid{grid-template-columns:1fr}.fin-reminder{grid-template-columns:auto 1fr}.fin-reminder button{grid-column:2;justify-self:start}}
.drive{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px;align-items:start}.drive-side{border:1px solid var(--line);border-radius:12px;padding:14px;background:#fbfcfa;position:sticky;top:12px}.drive-side-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.drive-side-head button{padding:6px 10px;font-size:12px}#drive-search input{padding:7px 10px;font-size:13px;margin-bottom:10px}
.drive-folders{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;max-height:60vh;overflow:auto}.drive-folder{width:100%;display:flex;align-items:center;gap:9px;background:none;color:var(--ink);font-weight:500;padding:9px 10px;border-radius:8px;border:1px dashed transparent;text-align:left}.drive-folder:hover{background:#eef4ef;filter:none}.drive-folder.active{background:#e4efd6;font-weight:700}.drive-folder.drop{border-color:var(--green);background:#e4efd6}.drive-folder-name{flex:1;overflow-wrap:anywhere}.drive-count{font-size:11px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:10px;padding:0 7px}
.drive-icon{display:inline-block;flex:none;vertical-align:-2px;margin-right:7px}.drive-icon.folder{width:18px;height:13px;background:#d9b554;border-radius:2px 3px 3px 3px;position:relative;margin-top:3px}.drive-icon.folder::before{content:'';position:absolute;left:0;top:-3px;width:8px;height:4px;background:#d9b554;border-radius:2px 2px 0 0}.drive-folder .drive-icon{margin-right:0}.drive-icon.file{width:12px;height:15px;border:1.5px solid #8aa597;border-radius:2px;background:#fff}
.drive-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.drive-bar h2{display:flex;align-items:center;overflow-wrap:anywhere}.drive-bar button,.drive-bar .button-like{padding:8px 13px}.button-like{display:inline-block;cursor:pointer;border-radius:9px;background:var(--green);color:#fff;font-weight:600;padding:10px 17px}.button-like:hover{filter:brightness(.94)}.button-like:focus-within{outline:2px solid var(--green);outline-offset:2px}
.drive-drop{border:2px dashed #cfdccf;border-radius:12px;padding:16px;text-align:center;color:var(--muted);font-size:13px;margin-bottom:12px;transition:background .15s,border-color .15s}.drive-drop.drop{border-color:var(--green);background:#eef6e9;color:var(--green)}.drive-progress{min-height:18px;font-size:12px;color:var(--green);margin-bottom:6px}.drive-files tr[draggable=true]{cursor:grab}.drive-files th,.drive-files td{padding:10px 12px}.drive-files td:not(:first-child),.drive-files th{white-space:nowrap}.drive-files td:first-child{min-width:220px}.drive-files td:first-child .drive-icon{vertical-align:-3px}.drive-acts{white-space:nowrap}.drive-acts button{padding:4px 8px;font-size:12px}.drive-empty{padding:28px 4px}.drive-fails{margin:0;padding-left:18px;line-height:1.9}
.drive-main,.drive-side{min-width:0}@media(max-width:900px){.drive{grid-template-columns:minmax(0,1fr)}.drive-side{position:static}.drive-folders{max-height:none}}
.catalog-sheet td{white-space:normal;min-width:90px}.catalog-sheet td:nth-child(2){min-width:190px}.catalog-sheet td:nth-child(3){min-width:170px}.catalog-sheet td:nth-child(4),.catalog-sheet td:nth-child(5){white-space:nowrap}.catalog-sheet td:nth-child(8){min-width:110px}.catalog-sheet td.wrap{min-width:180px;max-width:320px}.catalog-sheet tr.stopped td{color:var(--muted);background:#f7f7f5}.catalog-sheet tr.editing input{min-width:110px}.catalog-sheet tr.editing button[data-pick-hospitals]{padding:5px 9px;font-size:12px;min-width:110px;max-width:220px;white-space:normal;text-align:left}
.hospital-picks{max-height:50vh;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px 16px;margin:12px 0}#hospital-filter{margin-bottom:4px}
.org-map-card{overflow:hidden}.org-company{text-align:center;color:var(--muted);font-size:13px;margin-bottom:4px}.org-map{overflow-x:auto;padding:4px 4px 16px}
.org-tree,.org-tree ul{display:flex;justify-content:center;list-style:none;margin:0;padding:22px 0 0;position:relative}.org-tree{min-width:max-content;margin:0 auto;padding-top:0}
.org-tree li{display:flex;flex-direction:column;align-items:center;position:relative;padding:22px 10px 0}.org-tree>li{padding-top:0}
.org-tree li::before,.org-tree li::after{content:'';position:absolute;top:0;right:50%;width:50%;height:22px;border-top:2px solid #b9cdbf}.org-tree li::after{right:auto;left:50%;border-left:2px solid #b9cdbf}
.org-tree li:only-child::before,.org-tree li:only-child::after{display:none}.org-tree li:only-child{padding-top:0}.org-tree li:first-child::before,.org-tree li:last-child::after{border:0 none}
.org-tree li:last-child::before{border-right:2px solid #b9cdbf;border-radius:0 8px 0 0}.org-tree li:first-child::after{border-radius:8px 0 0 0}
.org-tree ul::before{content:'';position:absolute;top:0;left:50%;border-left:2px solid #b9cdbf;height:22px}.org-tree ul>li:only-child{padding-top:22px}.org-tree ul>li:only-child::before{display:block;border:0;border-right:2px solid #b9cdbf;width:0;right:50%;height:22px;border-radius:0}
.org-tree ul>li.org-pos::before,.org-tree ul>li.org-pos::after{display:none}
.org-node{background:#fff;border:2px solid #cfe0d2;border-radius:14px;padding:10px 12px;min-width:170px;max-width:260px;box-shadow:0 2px 8px #1e5b4d10;text-align:left}.org-tree>li>.org-node{border-color:var(--green);background:#f1f7ef}
.org-node.inactive{opacity:.6;border-style:dashed}.org-node-title{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.org-node-title strong{font-size:15px}.org-count{font-size:12px;color:var(--muted);white-space:nowrap}
.org-tree .org-positions{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;justify-content:flex-start;gap:6px}.org-tree .org-positions::before{display:none}.org-tree ul>li.org-pos{display:block;padding:6px 8px;border-radius:9px;background:#f6f9f5;border:1px solid var(--line);position:relative}.org-pos.inactive{opacity:.6}
.org-pos-title{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600}.org-people{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.org-person{display:inline-flex;align-items:center;gap:2px;font-size:12px;background:#e4efd6;color:#2f5a3c;border-radius:12px;padding:2px 8px}
.org-person .chipx{padding:0 2px;margin-left:2px;background:none;color:#6f817a;font-size:13px;line-height:1;border:0}
.org-node{position:relative}.org-acts{display:flex;opacity:0;pointer-events:none;transition:opacity .12s;flex-wrap:nowrap;gap:2px;position:absolute;right:6px;bottom:-16px;z-index:5;background:#fff;border:1px solid var(--line);border-radius:9px;padding:2px 4px;box-shadow:0 4px 14px #0f2a2218;white-space:nowrap}.org-acts button{padding:2px 6px;font-size:12px}
.org-node:hover>.org-acts,.org-node:focus-within>.org-acts,.org-pos:hover>.org-acts,.org-pos:focus-within>.org-acts{opacity:1;pointer-events:auto}.org-pos .org-acts{bottom:-14px;z-index:6}
@media(hover:none){.org-acts{opacity:1;pointer-events:auto;position:static;box-shadow:none;border:0;padding:0;margin-top:6px;flex-wrap:wrap}}
.draft-title{display:flex;align-items:center;gap:8px;color:var(--orange)}.draft-sheet{margin-bottom:18px;border-color:#e8d7b8}.draft-sheet th{background:#fbf3e2}.draft-sheet td{vertical-align:top;padding:6px}.draft-sheet input{padding:5px 7px;font-size:13px;border-radius:5px;min-width:110px}.draft-sheet input[type=date]{min-width:132px}.draft-sheet .draft-source{min-width:170px;font-size:12px}.draft-sheet button[data-draft-hospitals]{padding:5px 9px;font-size:12px;min-width:100px;white-space:normal;text-align:left}
.gen-file{padding:4px 0}
.stack-item{line-height:1.6;white-space:nowrap}.stack-item+.stack-item{border-top:1px dashed #e3e9e4;margin-top:2px;padding-top:2px}
.multi{display:flex;flex-direction:column;gap:3px;min-width:150px}.multi-item{display:flex;align-items:center;justify-content:space-between;gap:6px;background:#eef4ef;border-radius:6px;padding:2px 2px 2px 8px;font-size:12px;white-space:nowrap}.multi-item .chipx{background:none;border:0;color:#6f817a;padding:0 5px;font-size:14px;line-height:1}
.multi select,.multi input{padding:4px 6px;font-size:12px;border-radius:5px;min-width:140px}.multi.needs-check{outline:2px solid var(--orange);outline-offset:2px;border-radius:6px;background:#fbf7ed}
.sheet td small.ledger-note{display:block;min-width:200px;max-width:320px;white-space:normal;color:#8a5a00;line-height:1.5}
