@font-face { font-family: "Trade Sans"; src: url("/static/noto-sc-regular.otf") format("opentype"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Trade Sans"; src: url("/static/noto-sc-bold.otf") format("opentype"); font-weight: 601 900; font-display: swap; }
:root {
  font-family: "Trade Sans", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: #172d30;
  background: #f2f5f3;
  font-size: 14px;
  line-height: 1.6;
  --ink: #172d30;
  --muted: #526864;
  --line: #dce6e2;
  --accent: #12665a;
  --accent-dark: #074c45;
  --panel: #fff;
  --soft: #eef6f2;
  --warn: #8a4418;
  --sidebar: #102b30;
  --shadow: 0 8px 26px rgba(16,44,46,.08);
}
* { box-sizing: border-box; }
body { margin:0; min-width:310px; }
button,input,select,textarea { font:inherit; font-size:14px; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }
button { cursor:pointer; border:1px solid transparent; }
button:disabled { cursor:wait; opacity:.62; }
:focus-visible { outline:2px solid #348f7c; outline-offset:2px; }
button:focus:not(:focus-visible) { outline:0; }
.initial { padding:48px; }
.layout { min-height:100vh; display:grid; grid-template-columns:228px minmax(0,1fr); }
.rail { background:linear-gradient(165deg,#18383b,var(--sidebar) 46%,#0c232b); color:#e3f1e9; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; padding:26px 15px 18px; overflow:auto; }
.brand { display:flex; gap:11px; align-items:center; padding:0 8px 31px; color:#f6fbf6; }
.brand b { font-weight:750; font-size:17px; letter-spacing:.07em; display:block; }
.brand small { display:block; color:#a7c2b7; font-size:11px; letter-spacing:.06em; }
.mark { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; background:linear-gradient(145deg,#c3f0db,#86ccb8); color:#11352d; font-size:19px; font-weight:800; flex:none; }
.rail-title { color:#a1b9b0; font-size:11px; padding:0 11px 7px; }
.nav { display:grid; gap:4px; }
.nav a { display:flex; align-items:center; gap:11px; border-radius:8px; text-decoration:none; color:#bed3cb; padding:8px 10px; min-height:41px; border-left:2px solid transparent; }
.nav a:hover { background:#25453f; color:white; }
.nav a.active { color:#edfaee; background:#254b49; border-left-color:#92dac1; font-weight:700; }
.nav a.active svg { color:#a1dec8; }
.nav-count { margin-left:auto; min-width:1.45em; padding:0 .35em; border-radius:999px; text-align:center; background:#ccedb8; color:#183b32; font-weight:700; }
.nav-count[hidden] { display:none; }
.flow-order { border-top:1px solid var(--line); }
.flow-order.urgent-order { border-inline-start:4px solid #bc471e; background:#fff7ee; }
.chip.urgent { color:#8b2312; background:#ffdfce; font-weight:700; }
.evidence-files { display:flex; flex-wrap:wrap; gap:8px; }
.evidence-files a { display:grid; gap:3px; max-width:180px; overflow-wrap:anywhere; }
.evidence-photo { width:86px; height:64px; object-fit:contain; border:1px solid var(--line); border-radius:6px; }
.flow-order > summary { cursor:pointer; padding:12px 16px; }
.flow-stages { display:inline-flex; flex-wrap:wrap; gap:5px; margin:3px 0 3px 10px; }
.flow-link { padding:10px 16px; }
[data-batch-controls][hidden] { display:none; }
[data-record-table] :is(th,td):first-child { width:42px; }
.product-photo-large { display:block; max-width:min(100%,360px); max-height:240px; width:auto; height:auto; object-fit:contain; border-radius:8px; }
.product-upload .product-photo-large { margin:0 0 8px; }
.catalog-table tbody tr { height:112px; }
.catalog-table tbody td { vertical-align:middle; }
.catalog-table .photo { width:72px; height:58px; }
.catalog-table td:last-child .btn.ghost { min-height:26px; padding:2px 5px; font-size:12px; }
.catalog-prices { list-style:none; padding:0; margin:0; min-width:120px; }
.catalog-prices li { line-height:22px; }
.catalog-prices li+li { border-top:1px solid var(--line); margin-top:4px; padding-top:4px; }
.catalog-prices strong { white-space:nowrap; }
.catalog-prices small { display:block; line-height:18px; color:var(--muted); }
.supplier-quote-link { padding:0; border:0; background:none; color:var(--accent); font:inherit; text-align:left; }
.supplier-quote-link:hover, .supplier-quote-link:focus-visible { text-decoration:underline; }
.catalog-sale-prices { max-height:89px; overflow:auto; }
.catalog-sale-prices .price-label { color:var(--muted); font-size:12px; }
.catalog-sale-prices .price-warning { color:var(--warn); }
.catalog-sale-prices .btn.ghost { min-height:24px; padding:1px 4px; font-size:12px; }
.catalog-more summary { cursor:pointer; color:var(--accent); }
.nav svg,.metric svg,.btn svg,.rail-footer svg { width:17px; height:17px; flex:none; }
.rail-footer { margin-top:auto; padding:20px 9px 1px; }
.rail-footer button { background:transparent; color:#c4d9d0; padding:8px 0; display:flex; gap:8px; align-items:center; }
.rail-user { border-top:1px solid #35534b; padding-top:13px; word-break:break-all; }
.rail-user small { color:#adc6ba; display:block; }
.workspace { min-width:0; }
.top { height:62px; border-bottom:1px solid var(--line); background:#fff; display:flex; align-items:center; justify-content:space-between; padding:0 31px; }
.top .loc { font-weight:700; }
.top .date { color:var(--muted); font-size:12px; display:flex; gap:8px; align-items:center; }
.top .date:before { content:""; width:6px; height:6px; border-radius:50%; background:#2d8977; }
.main { max-width:1680px; padding:31px 32px 48px; margin:auto; min-width:0; }
h1,h2,h3,p { margin:0; }
h1 { font-weight:780; letter-spacing:-.045em; font-size:35px; line-height:1.25; }
h2 { font-size:17px; font-weight:740; letter-spacing:-.015em; }
h3 { font-size:15px; font-weight:730; }
small,.muted { color:var(--muted); }
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:21px; flex-wrap:wrap; }
.page-head p { margin-top:7px; color:var(--muted); }
.hero { background:#e3eee4; border:1px solid #d4e5d7; border-radius:15px; padding:23px 24px; margin-bottom:20px; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.hero p { margin-top:7px; color:#465f53; }
.metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:12px; margin-bottom:21px; }
.metric { border:1px solid var(--line); background:white; border-radius:14px; padding:17px 18px; box-shadow:0 3px 12px rgba(16,44,46,.035); }
.metric > span { color:var(--muted); display:flex; align-items:center; justify-content:space-between; gap:7px; }
.metric svg { color:var(--accent); background:var(--soft); padding:7px; width:32px; height:32px; border-radius:9px; }
.metric strong { display:block; font-size:28px; line-height:1.3; margin-top:4px; letter-spacing:-.035em; }
.number, .metric strong, .amount, .mono { font-variant-numeric:tabular-nums; }
.mono { font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace; font-weight:650; font-size:.95em; }
.panel { border:1px solid var(--line); background:var(--panel); border-radius:14px; margin-bottom:20px; min-width:0; box-shadow:0 4px 16px rgba(16,44,46,.035); }
.panel-head { padding:15px 18px; display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; min-height:57px; }
.panel-body { padding:15px 17px; }
.panel-head + .panel-body { padding-top:0; }
.panel-head small { color:var(--muted); display:block; }
.actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.btn { display:inline-flex; gap:7px; align-items:center; justify-content:center; min-height:35px; padding:6px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); font-weight:650; white-space:nowrap; text-decoration:none!important; }
.btn:hover { background:#f2f7f2; border-color:#b5cfc2; }
.btn.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
.btn.primary:hover { background:var(--accent-dark); }
.btn.ghost { min-height:30px; padding:3px 7px; border-color:transparent; color:var(--accent); }
.btn.danger { color:#9f3a2a; }
.grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(225px,1fr); gap:16px; align-items:start; }
.scroll { overflow:auto; border-radius:0 0 12px 12px; }
table { border-collapse:collapse; width:100%; white-space:nowrap; }
th { font-size:12px; font-weight:700; background:#edf4f1; color:#3b5752; text-align:left; }
td,th { padding:10px 13px; border-top:1px solid var(--line); }
tr:last-child td { border-bottom:0; }
tbody tr:nth-child(even) { background:#fafcfb; }
tbody tr:hover { background:#eff7f3; }
td a { font-weight:700; }
td .sub { display:block; font-size:12px; color:var(--muted); }
td.num,th.num { text-align:right; font-variant-numeric:tabular-nums; }
.strong { font-weight:750; }
.chip { display:inline-block; background:#ecf3ed; color:#33614f; font-size:11px; border-radius:100px; padding:2px 8px; font-weight:700; }
.chip.warn { background:#fff1e4; color:var(--warn); }
.chip.info { background:#e5f0f7; color:#315d72; }
.empty { padding:24px 17px; color:var(--muted); border-top:1px solid var(--line); }
.form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 14px; }
label { display:grid; gap:4px; font-weight:650; min-width:0; }
label.full,.form .full { grid-column:1/-1; }
input,select,textarea { width:100%; min-width:0; background:white; border:1px solid #cbd9d1; color:var(--ink); border-radius:7px; padding:7px 9px; min-height:37px; }
input[type=checkbox] { width:auto; min-height:0; }
label.check { display:flex; gap:7px; align-items:center; }
textarea { min-height:76px; resize:vertical; }
.search { display:flex; gap:6px; width:min(100%,340px); }
.search input { min-width:0; }
.catalog-filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; padding:12px; margin:0 17px 15px; border:1px solid var(--line); border-radius:10px; background:#f5f9f7; }
.catalog-filters label { flex:1 1 135px; font-size:12px; color:var(--muted); }
.catalog-filters .catalog-keyword { flex:2 1 230px; }
.catalog-filters :is(input,select) { font-size:14px; }
.catalog-filter-actions { display:flex; align-items:center; gap:6px; }
.form-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:17px; }
.catalog-pagination { align-items:center; flex-wrap:wrap; margin:0; padding:12px 17px; border-top:1px solid var(--line); }
.error { color:#9f3a2a; margin-top:9px; }
.notice { padding:9px 12px; border-radius:7px; background:#fff1e4; color:#804319; margin:8px 0; }
.dialog-title { margin-bottom:14px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.dialog-title h2 { font-size:20px; }
dialog { border:1px solid var(--line); border-radius:13px; padding:18px 20px; color:var(--ink); width:min(680px,calc(100vw - 30px)); max-height:calc(100vh - 45px); overflow:auto; box-shadow:var(--shadow); }
dialog::backdrop { background:rgba(13,35,33,.52); }
.direct-batch-dialog { width:min(1040px,calc(100vw - 24px)); }
.direct-purchase-search { align-items:flex-end; margin-bottom:10px; }
.direct-purchase-search label:first-child { flex:1 1 220px; }
.direct-purchase-pages { margin:8px 0; justify-content:flex-end; }
.direct-product-results { max-height:260px; overflow:auto; border:1px solid var(--line); border-radius:8px; }
.direct-product-results [data-quantity-id] { width:90px; }
.direct-batch-dialog [data-review-id] { min-width:155px; max-width:270px; }
.direct-batch-dialog [data-sales-price] { width:112px; }
.direct-batch-dialog [data-sales-customer][hidden] { display:none; }
#toast { position:fixed; bottom:19px; right:20px; z-index:5; }
#toast:not(:empty) { background:#173e35; color:white; padding:11px 16px; border-radius:9px; box-shadow:var(--shadow); }
.log { list-style:none; padding:0; margin:0; }
.log li { display:grid; gap:1px; padding:8px 0 8px 12px; border-left:2px solid #d6e8db; }
.log li + li { margin-top:3px; }
.file-drop { padding:15px; border:1px dashed #93b4a7; border-radius:8px; background:#f4f9f3; min-height:82px; }
.file-drop.over { background:#daefe0; }
.file-drop input { margin-top:8px; min-height:auto; padding:6px; background:white; }
.auth { min-height:100vh; min-height:100svh; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); padding:16px; background:#f9fbf9; }
.auth-art { position:relative; isolation:isolate; overflow:hidden; border-radius:20px; min-height:520px; background:#0c222d; }
.auth-art::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(180deg,rgba(4,20,26,.66),transparent 30%,transparent 78%,rgba(4,20,26,.26)); pointer-events:none; }
.auth-scene { position:absolute; z-index:-2; inset:0; overflow:hidden; }
.auth-scene::before { content:""; position:absolute; inset:0; background:url("/static/login-sports-car.webp") center 54% / cover no-repeat; transform:scale(1.015); animation:car-arrival 4.4s cubic-bezier(.18,.64,.32,1) both; }
.auth-scene::after { content:""; position:absolute; inset:-30% -45%; transform:translateX(-56%); background:linear-gradient(118deg,transparent 42%,rgba(170,253,235,.13) 51%,transparent 60%); opacity:0; animation:car-light-pass 3.5s .5s ease-out both; }
.auth-art .brand { padding:0; margin:clamp(22px,4vw,52px); }
.auth-art .brand b { font-size:20px; }
.auth-art .brand small { color:#d2e4e2; }
.auth-content { display:grid; place-items:center; padding:44px clamp(24px,6vw,85px); }
.auth article { width:min(410px,100%); }
.auth h1 { color:#0e3034; font-size:clamp(32px,3.25vw,48px); }
.auth h1::before { content:""; display:block; width:37px; height:4px; border-radius:2px; background:#2a8f7c; margin-bottom:21px; }
.auth article > p { color:var(--muted); font-size:15px; margin:10px 0 29px; }
.auth .form { grid-template-columns:1fr; gap:17px; }
.auth .form label { gap:6px; }
.auth input { min-height:48px; border-radius:9px; padding:9px 12px; }
.auth input:focus { border-color:var(--accent); }
.auth-password { display:grid; grid-template-columns:1fr auto; align-items:center; margin-top:6px; }
.auth-password > * { grid-row:1; }
.auth-password input { grid-column:1/-1; padding-right:89px; }
.auth-reveal { grid-column:2; z-index:1; margin-right:7px; padding:7px; border-radius:6px; background:transparent; color:var(--accent); font-size:12px; font-weight:700; }
.auth-reveal:hover { background:var(--soft); }
.auth .error:empty { display:none; }
.auth .error { border-radius:7px; background:#fff0ea; padding:8px 10px; }
.auth-submit { width:100%; min-height:49px; margin-top:22px; padding:10px 15px; justify-content:space-between; border-radius:9px; background-image:linear-gradient(100deg,#0d5c53,#16796c); box-shadow:0 5px 14px rgba(15,98,83,.18); }
.auth-submit[disabled] { box-shadow:none; }
.auth-submit [aria-hidden] { font-size:18px; }
@keyframes car-arrival { from { transform:scale(1.075) translateX(1%); } to { transform:scale(1.015); } }
@keyframes car-light-pass { 0% { opacity:0; transform:translateX(-56%); } 30% { opacity:.82; } 80%,100% { opacity:0; transform:translateX(56%); } }
@media(prefers-reduced-motion:reduce) { .auth-scene::before,.auth-scene::after { animation:none; } }
.photo { width:43px; height:35px; object-fit:contain; background:#f4f6f3; border-radius:5px; vertical-align:middle; }
.stack > *+* { margin-top:8px; }
.choice { display:grid; grid-template-columns:2fr 1fr 1fr; gap:7px; margin:7px 0; }
.pre { white-space:pre-wrap; word-break:break-word; max-height:290px; overflow:auto; border:1px solid var(--line); padding:9px; }
@media(max-width:1050px) {
  .layout { grid-template-columns:180px minmax(0,1fr); }
  .main { padding:20px 21px 40px; }
  .top { padding:0 21px; }
}
@media(max-width:760px) {
  .auth { display:flex; flex-direction:column; padding:10px; }
  .auth-art { min-height:clamp(185px,30svh,300px); border-radius:15px; }
  .auth-scene::before { background-position:center 55%; }
  .auth-art .brand { margin:16px; }
  .auth-art .brand b { font-size:16px; }
  .auth-content { padding:28px 16px 36px; }
  .auth h1::before { margin-bottom:13px; }
  .auth article > p { margin:7px 0 21px; }
  .layout { display:block; }
  .rail { position:static; height:auto; padding:11px 11px 8px; }
  .brand { padding:0 3px 8px; }
  .rail-title,.rail-user { display:none; }
  .nav { display:flex; overflow:auto; gap:3px; }
  .nav a { white-space:nowrap; padding:5px 8px; min-height:34px; }
  .nav svg { display:none; }
  .rail-footer { position:absolute; right:11px; top:12px; padding:0; }
  .top { height:38px; padding:0 13px; }
  .main { padding:16px 12px 28px; }
  .hero { padding:15px; align-items:flex-start; flex-direction:column; }
  h1 { font-size:26px; }
  .grid { display:block; }
  .metrics { grid-template-columns:repeat(2,1fr); }
  td,th { padding:8px 9px; }
  .choice { grid-template-columns:1fr; }
}
@media(max-width:420px) { .form { grid-template-columns:1fr; } }
