:root {
  --ink:#18342e; --muted:#596e66; --line:#dbe4dc; --paper:#fff; --ground:#f3f6f2;
  --green:#185344; --deep:#113d34; --lime:#daeea5; --round:16px;
  font-family:Inter,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif; color:var(--ink); background:var(--ground);
  font-synthesis:none; font-size:15px; line-height:1.55;
}
* { box-sizing:border-box; }
body { margin:0; }
a { color:inherit; text-decoration:none; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:transparent; }
button,summary,select { cursor:pointer; }
:focus-visible { outline:3px solid #369b7d; outline-offset:3px; }
[hidden] { display:none !important; }
h1,h2,p,dl,dd,fieldset { margin:0; }
h1 { font-size:clamp(27px,3.5vw,41px); line-height:1.22; letter-spacing:-.045em; }
h2 { font-size:19px; letter-spacing:-.025em; line-height:1.4; }
small { font-size:12px; font-weight:400; color:var(--muted); }
button { border:0; }
.brand,.brand>span,.person,.actions,.panel-head,.topbar,.pagination,.search-inline,.summary-line { display:flex; align-items:center; }
.brand { gap:12px; font-weight:750; font-size:25px; line-height:1; letter-spacing:-1.2px; }
.brand>span { gap:10px; }
.brand-sub { padding-left:10px; border-left:1px solid currentColor; font-size:12px; font-weight:550; letter-spacing:1px; }
.brandmark { display:inline-block; width:26px; height:31px; flex:none; background:currentColor; color:inherit; position:relative; clip-path:polygon(0 0,76% 0,100% 22%,100% 100%,85% 90%,69% 100%,52% 90%,35% 100%,18% 90%,0 100%); }
.brandmark:after { content:""; position:absolute; left:20%; top:34%; width:53%; height:2px; background:var(--deep); box-shadow:0 6px var(--deep); }
.login-wrap { min-height:100svh; display:grid; place-items:center; padding:48px 30px; background:radial-gradient(ellipse at 15% 22%,#e2eade,transparent 54%),#f0f3ed; }
.login-box { display:grid; grid-template-columns:.93fr 1.07fr; width:min(1030px,100%); min-height:590px; border-radius:24px; overflow:hidden; background:white; box-shadow:0 24px 75px #1b3e2b18; border:1px solid #dbe4d9; }
.login-art { color:#f0f5e2; isolation:isolate; overflow:hidden; position:relative; padding:38px 42px; display:flex; flex-direction:column; justify-content:space-between; background:linear-gradient(139deg,#10382f 10%,#1b5140 76%,#366449); }
.login-art:before { content:""; position:absolute; z-index:-1; inset:0; opacity:.18; background-image:linear-gradient(90deg,transparent 98%,#a0c290 98%),linear-gradient(transparent 98%,#a0c290 98%); background-size:44px 44px; }
.login-art:after { content:""; z-index:-1; position:absolute; width:540px; height:540px; border-radius:50%; border:1px solid #c1d4a636; right:-360px; bottom:-355px; box-shadow:0 0 0 20px #c1d4a611,0 0 0 41px #c1d4a614,0 0 0 64px #c1d4a619; }
.art-inner { margin:35px auto; width:min(100%,298px); }
.art-inner h2 { color:#d3e3d1; font-size:14px; letter-spacing:.14em; font-weight:500; margin:0 0 23px 1px; }
.receipt { transform:rotate(-3deg); color:var(--ink); background:#f7f6e9; border-radius:6px 6px 1px 1px; padding:20px 24px 27px; position:relative; box-shadow:8px 13px 0 #0d342c65; }
.receipt:after { content:""; position:absolute; top:100%; left:0; right:0; height:8px; background:linear-gradient(135deg,#f7f6e9 25%,transparent 25%) -6px 0,linear-gradient(225deg,#f7f6e9 25%,transparent 25%) -6px 0; background-size:12px 12px; }
.receipt-head { display:flex; justify-content:space-between; align-items:center; font-weight:700; font-size:14px; }
.receipt-icon { font-size:17px; border:1px solid #879885; border-radius:50%; width:27px; height:27px; text-align:center; }
.receipt-total { padding:19px 0 13px; border-bottom:1px dashed #acbaaa; }
.receipt-total strong { display:block; font-size:37px; letter-spacing:-2px; font-variant-numeric:tabular-nums; line-height:1.25; }
.receipt-total em { font-style:normal; font-weight:500; font-size:22px; margin-right:4px; }
.receipt dl { font-size:13px; margin:14px 0; }
.receipt dl>div { display:flex; justify-content:space-between; padding:3px 0; }
.receipt dd { font-weight:700; }
.perforation { width:45%; height:13px; opacity:.62; background:repeating-linear-gradient(90deg,#335345 0 2px,transparent 2px 5px,#335345 5px 6px,transparent 6px 9px); }
.art-foot { font-size:12px; color:#d2e5d0; letter-spacing:.09em; display:flex; align-items:center; gap:8px; }
.art-foot i { width:7px; height:7px; border-radius:50%; background:var(--lime); }
.login-main { display:grid; place-items:center; padding:48px clamp(30px,5vw,75px); }
.login-content { width:100%; max-width:370px; }
.login-content h1 { margin:15px 0 11px; }
.login-icon { display:grid; place-items:center; width:43px; height:43px; border-radius:12px; background:#edf3e3; color:var(--green); }
.login-icon .brandmark { width:17px; height:21px; }
.login-icon .brandmark:after { background:#edf3e3; box-shadow:0 4px #edf3e3; height:1.5px; }
.intro,.muted,.page-title p,.login-note { color:var(--muted); }
.intro { margin-bottom:28px; }
.login-note { font-size:12px; margin-top:22px; }
.stack { display:flex; flex-direction:column; gap:20px; }
label,legend { display:block; color:var(--ink); font-weight:600; font-size:14px; }
label>small { margin-left:4px; }
input:not([type=checkbox]),select,textarea { display:block; width:100%; min-width:0; background:#fff; border:1px solid #cdd9d0; border-radius:9px; padding:10px 12px; color:var(--ink); margin-top:7px; min-height:44px; font-size:14px; }
textarea { resize:vertical; }
input::placeholder,textarea::placeholder { color:#78887e; }
input:focus,textarea:focus,select:focus { border-color:#3c7963; }
input[readonly] { background:#f3f6f1; }
input[type=file] { font-size:12px; }
input::file-selector-button { color:var(--green); background:#edf3eb; border:0; border-radius:4px; padding:4px 8px; margin-right:10px; }
.password-wrap { display:block; position:relative; }
.password-wrap input { padding-right:55px; }
.password-wrap button { position:absolute; right:8px; top:5px; bottom:5px; color:var(--green); background:transparent; font-size:12px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:42px; border-radius:9px; padding:9px 16px; font-weight:650; font-size:14px; border:1px solid transparent; cursor:pointer; }
.button.primary { color:#fff; background:var(--green); }
.button.primary:hover { background:#103d31; }
.button.secondary { background:#fff; border-color:#bfcfc1; color:var(--green); }
.button.secondary:hover { background:#f2f6ee; }
.button.light { background:var(--lime); color:var(--deep); }
.button.wide { width:100%; margin-top:4px; justify-content:space-between; }
.link { font-size:14px; color:var(--green); font-weight:650; border:0; background:transparent; padding:0; }
.link:hover,.topbar a:hover,.ref:hover { text-decoration:underline; }
.subdued { color:var(--muted); }
.shell { min-height:100vh; display:grid; grid-template-columns:224px minmax(0,1fr); }
.sidebar { position:sticky; top:0; height:100vh; display:flex; flex-direction:column; color:#edf4e8; background:var(--deep); padding:27px 16px 17px; }
.brand-link { padding:5px 7px 24px; }
.sidebar nav { display:flex; flex-direction:column; gap:5px; margin-top:7px; }
.sidebar nav a { display:flex; align-items:center; gap:13px; padding:10px 14px; border-radius:8px; font-size:14px; color:#d6e5dc; white-space:nowrap; }
.sidebar nav i { font-style:normal; width:19px; text-align:center; font-size:19px; line-height:20px; }
.sidebar nav a:hover { background:#255347; }
.sidebar nav a.active { background:var(--lime); color:var(--deep); font-weight:700; }
.side-account { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid #ffffff28; padding:16px 4px 0; }
.person { gap:8px; min-width:0; }
.person b,.person small { display:block; }
.person b { font-size:13px; overflow-wrap:anywhere; } .person small,.side-account .link { color:#c8d9ce; font-size:12px; }
.avatar { display:grid; place-items:center; background:#436858; color:#edf4e0; border-radius:50%; width:33px; height:33px; flex:none; }
.workspace { min-width:0; }
.topbar { justify-content:space-between; height:62px; border-bottom:1px solid var(--line); padding:0 clamp(18px,4vw,57px); color:var(--muted); font-size:13px; background:#fafcf8; }
.content { padding:clamp(22px,3.4vw,48px) clamp(16px,4vw,57px) 65px; max-width:1520px; margin:auto; }
.page-title { margin-bottom:25px; }
.page-title p { margin-top:8px; font-size:14px; }
.panel,.stat { background:#fff; border:1px solid var(--line); border-radius:var(--round); }
.panel { padding:clamp(18px,2.2vw,28px); min-width:0; }
.panel>h2:first-child:not(:only-child) { margin-bottom:14px; }
.panel-head,.summary-line,.pagination { justify-content:space-between; gap:12px; }
.panel-head { flex-wrap:wrap; }
.panel-head + .table-wrap,.panel-head + .detail-grid { margin-top:15px; }
.narrow { max-width:620px; }
.two-col { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(245px,.85fr); gap:20px; align-items:start; }
.estimate { background:#f9fbf3; }
.estimate p { font-size:13px; margin:8px 0 16px; }
.big-price { font-size:clamp(30px,3.6vw,43px); font-weight:680; letter-spacing:-.05em; line-height:1.3; display:block; }
.amount-label { display:block; font-size:13px; color:var(--muted); margin-top:22px; }
.kv { margin:18px 0; border-top:1px solid var(--line); }
.kv>div,.summary-line { display:flex; justify-content:space-between; gap:10px; padding:9px 0; font-size:14px; border-bottom:1px solid var(--line); }
.kv dt,.detail-grid dt { color:var(--muted); }
.kv dd,.summary-line b { font-weight:600; }
.fields,.detail-grid,.stats { display:grid; gap:16px; }
.fields { grid-template-columns:repeat(2,minmax(0,1fr)); }.full { grid-column:1/-1; }
.section-title,.action-form { border-top:1px solid var(--line); padding-top:19px; }
.quick-fill { display:grid; gap:8px; padding:16px; border:1px solid var(--line); border-radius:12px; background:#f4f8f3; }
.quick-fill textarea { margin:0; }
.quick-fill p { font-size:14px; }
.quick-fill [role=status]:empty { display:none; }
.topbar-actions { display:flex; align-items:center; gap:15px; }
.notice-bell { position:relative; display:inline-grid; place-items:center; width:44px; height:44px; color:var(--green); border-radius:50%; }
.notice-bell:hover { background:#e9f0e9; }
.notice-count { position:absolute; top:0; right:-4px; min-width:17px; padding:0 4px; border-radius:20px; background:#a73b32; color:white; text-align:center; font-size:11px; font-weight:700; }
.notice-dialog { width:min(440px,calc(100% - 32px)); max-height:85dvh; overflow:auto; padding:25px; border:1px solid var(--line); border-radius:var(--round); color:var(--ink); box-shadow:0 18px 70px #112e3033; font-size:15px; }
.notice-dialog::backdrop { background:#112e306b; }
.notice-dialog h2 { margin-top:5px; overflow-wrap:anywhere; }
.notice-dialog .actions { justify-content:flex-end; }
.notice-body { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.notice-item { display:grid; gap:10px; padding:18px 0; }
.notice-item:first-child { padding-top:0; }.notice-item:last-child { padding-bottom:0; }
.notice-item + .notice-item { border-top:1px solid var(--line); }
.notice-item h2 { min-width:0; overflow-wrap:anywhere; }
.notice-groups { display:flex; flex-wrap:wrap; gap:10px 20px; padding:12px 16px; border:1px solid var(--line); border-radius:9px; }
.notice-groups legend { padding:0 5px; }
.notice-cell { min-width:145px; max-width:310px; white-space:normal; overflow-wrap:anywhere; }
.notice-cell summary { cursor:pointer; font-weight:600; }
.notice-cell .notice-body { margin-top:8px; }
.detail-grid { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); padding:10px 0; gap:17px; }
.detail-grid dt { font-size:12px; margin-bottom:3px; }.detail-grid dd { overflow-wrap:anywhere; }
.check { display:inline-flex; align-items:center; gap:8px; font-weight:500; }
.check input { accent-color:var(--green); width:17px; height:17px; }
fieldset { border:0; padding:0; } legend { margin-bottom:7px; }
.actions,.search-inline,.filters { flex-wrap:wrap; gap:12px; }
.stats { grid-template-columns:repeat(auto-fit,minmax(135px,1fr)); }
.stat { display:flex; flex-direction:column; gap:8px; color:var(--muted); padding:20px; font-size:13px; }
.stat strong,.dash-banner strong { color:var(--ink); font-size:30px; line-height:1.3; font-variant-numeric:tabular-nums; letter-spacing:-.04em; }
.dash-banner { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:18px; color:#fff; background:var(--deep); border-radius:var(--round); padding:25px 28px; }
.dash-banner h2 { font-size:23px; }.dash-banner p { color:#dce8d9; font-size:14px; margin-top:5px; }.dash-banner strong { color:#eff5dd; }
.table-wrap { overflow-x:auto; }
table { border-collapse:collapse; width:100%; text-align:left; font-size:14px; }
th { color:var(--muted); background:#f4f7f2; font-weight:600; font-size:12px; }
th,td { padding:13px 11px; border-bottom:1px solid var(--line); white-space:nowrap; }
td small,.file-list small { display:block; margin-top:3px; }
.num,.ref,code { font-variant-numeric:tabular-nums; }
.ref { color:var(--green); font-weight:650; }
.tag { display:inline-flex; border-radius:30px; padding:3px 9px; font-size:12px; font-weight:600; white-space:nowrap; }
.tag.green { background:#def0df; color:#225b3c; }.tag.amber { background:#f8edcf; color:#745712; }.tag.gray { background:#edf0ed; color:#53625b; }
.empty { text-align:center; color:var(--muted); padding:29px 10px; font-size:14px; }
.empty-icon { display:inline-grid; place-items:center; width:38px; height:38px; border-radius:12px; background:#edf3eb; margin-bottom:10px; font-size:22px; color:#718971; }
.filters { display:flex; align-items:end; margin-bottom:20px; }.filters label:first-child { min-width:195px; flex:1; }.filters label:nth-child(2) { min-width:145px; }
.alert,.hint { border-radius:9px; padding:12px 15px; font-size:14px; background:#eaf3e7; color:#264f3d; }
.alert { margin-bottom:16px; }.error { background:#fbece7; color:#893d2e; }.hint { background:#f6f3e6; color:#655725; }
code { display:block; word-break:break-all; color:var(--green); font-size:13px; }
.file-list>div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.file-list>div>span:first-child { min-width:0; overflow-wrap:anywhere; }
.faq details,.reject { border-bottom:1px solid var(--line); }
.faq summary,.reject summary { padding:15px 0; font-weight:640; }.faq p { color:var(--muted); padding:0 0 18px; }
.faq-examples { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; padding:0 0 22px; }
.faq-example { display:grid; gap:8px; align-content:start; }
.faq-example img { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:8px; cursor:zoom-in; }
.faq-example:hover .link { text-decoration:underline; }
.faq-tutorial { margin-top:18px; }
.faq-tutorial video { display:block; width:100%; height:auto; aspect-ratio:16/9; margin-top:14px; border-radius:9px; background:#10342d; }
.pagination { margin-top:16px; justify-content:flex-end; font-size:13px; }.search-inline input { width:auto; margin:0; }
@media(max-width:930px) {
  .shell { grid-template-columns:185px minmax(0,1fr); }.sidebar { padding-left:10px; padding-right:10px; }
  .two-col { grid-template-columns:minmax(0,1.5fr) minmax(185px,.8fr); gap:12px; }
  .brand-sub { font-size:11px; }.login-art { padding:30px; }
}
@media(max-width:720px) {
  .faq-examples { grid-template-columns:1fr; }
  .login-wrap { padding:16px; }.login-box { grid-template-columns:1fr; min-height:0; max-width:470px; border-radius:17px; }
  .login-art { padding:20px 26px; }.login-art .art-inner,.art-foot { display:none; }
  .login-main { padding:30px 26px 35px; }.login-icon { display:none; }
  .shell { display:block; }.sidebar { position:static; height:auto; gap:8px; padding:12px 14px 9px; }
  .sidebar .brand-link { padding:0; align-self:start; }.sidebar .brand { font-size:20px; }.sidebar .brandmark { width:19px; height:23px; }
  .sidebar nav { flex-direction:row; overflow-x:auto; margin:0; gap:4px; scrollbar-width:thin; }
  .sidebar nav a { padding:6px 9px; font-size:13px; }.sidebar nav i { display:none; }
  .side-account { position:absolute; right:15px; top:12px; padding:0; border:0; margin:0; }.side-account .person { display:none; }
  .topbar { height:37px; padding:0 16px; font-size:11px; }.content { padding:21px 14px 40px; }
  .topbar:has(.notice-bell) { height:46px; }
  .two-col { grid-template-columns:1fr; }.stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .stack { gap:15px; }.panel { padding:17px; }.page-title { margin-bottom:18px; }
  .stat { padding:14px; }.stat strong { font-size:25px; }.dash-banner { padding:19px; }
  .detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:420px) {
  .fields { grid-template-columns:1fr; }.full { grid-column:auto; }.filters label:nth-child(2) { min-width:0; }
  .actions { gap:9px; }.search-inline { width:100%; }.search-inline input { flex:1; width:90px; }
}

.admin-portal { --deep:#1b3944; --green:#215668; --lime:#c3e5d8; }
.admin-portal .sidebar { background:#193944; }
.admin-portal .login-art { background:linear-gradient(145deg,#14313b,#315d67); }
.admin-portal .topbar { border-top:3px solid #366a77; }
.brand-sub { white-space:nowrap; }.sidebar .brand { gap:8px; }.sidebar .brand>span { gap:7px; }
.range-tabs,.bulk-actions,.row-toolbar,.import-form,.chart-key,.queue-list a { display:flex;align-items:center;gap:12px;flex-wrap:wrap; }
.range-tabs a { padding:6px 14px;border-radius:7px;color:var(--muted); }
.range-tabs a.chosen { color:var(--green);background:#e0ece4;font-weight:700; }
.dashboard-kpis { display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));gap:12px; }
@media(min-width:721px) and (max-width:1530px) { .dashboard-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.dashboard-kpis .stat { min-width:0;padding:16px; }
.dashboard-kpis strong { font-size:clamp(20px,2vw,31px);overflow-wrap:anywhere; }
.board-grid { display:grid;grid-template-columns:minmax(0,1.8fr) minmax(220px,1fr);gap:16px; }
[data-trend] { width:100%;height:188px;display:block;margin:12px 0; }
.chart-key { font-size:12px;color:var(--muted); }
.chart-key span:before { content:"";display:inline-block;width:9px;height:9px;background:#18684e;margin-right:5px; }
.chart-key span:last-child:before { background:#a3bb58; }
.queue-list a,.title-item { padding:14px 0;border-bottom:1px solid var(--line); }
.queue-list a { justify-content:space-between; }.queue-list a:hover { color:var(--green); }
.title-item h3 { margin:0;font-size:16px; }.title-item .muted { margin:5px 0 10px; }
.bulk-actions { margin:12px 0; }.bulk-actions input,.table-wrap input[type=checkbox] { width:17px;height:17px;accent-color:var(--green); }
button:disabled { opacity:.48;cursor:default; }.inline-action { display:inline-block;margin-left:9px; }.danger-link { color:#973c39; }
.batch-row { border:1px solid var(--line);padding:14px 16px;margin:12px 0;border-radius:10px;min-width:0; }
.batch-row legend { padding:0 7px;color:var(--green); }.row-toolbar { justify-content:space-between;align-items:end;margin:0 0 12px; }
.batch-fields { grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); }.import-form { align-items:end;margin-top:12px; }.import-form label,.row-toolbar .title-picker { flex:1; }
.sidebar nav { min-height:0;overflow:auto; }.board-grid details summary { color:var(--green);font-size:13px; }
@media(max-width:720px) { .board-grid { grid-template-columns:1fr; }.dashboard-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.bulk-actions { align-items:stretch; }.range-tabs {gap:2px;} }
