:root {
  --bg:#f5f7f6; --panel:#fff; --ink:#18211c; --muted:#66746c; --line:#dde4df;
  --pine:#2f5d46; --pine-soft:#e4eee8; --stop:#c2412d; --stop-soft:#fbe7e3; --note:#2f63b0; --note-soft:#e5edf9;
  --shut:#7a7f86; --shut-soft:#eceef0; --on-brand:#fff;
  font-family:"PingFang SC","Noto Sans SC","Microsoft YaHei",system-ui,sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) {
  --bg:#111613; --panel:#18201b; --ink:#e5ece7; --muted:#9aa9a0; --line:#2b3730;
  --pine:#7cc49c; --pine-soft:#1d2d24; --stop:#ec7a66; --stop-soft:#35201c; --note:#86ade8; --note-soft:#1c2738;
  --shut:#a3a8ae; --shut-soft:#262b30; --on-brand:#111613; color-scheme:dark; } }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-size:14px; line-height:1.55; }
a { color:var(--pine); }
.top { display:flex; flex-wrap:wrap; align-items:center; gap:16px; padding:10px max(16px,env(safe-area-inset-left)); background:var(--panel); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:5; }
.brand { display:flex; align-items:baseline; gap:8px; text-decoration:none; color:var(--ink); }
.brand b { background:var(--pine); color:var(--on-brand); border-radius:6px; padding:1px 7px; }
.brand span { color:var(--muted); font-size:12px; }
.brand .word { display:flex; flex-direction:column; line-height:1.1; color:var(--ink); font-size:17px; font-weight:600; letter-spacing:.12em; padding-right:12px; margin-right:4px; border-right:1px solid var(--line); }
.brand .word small { font-size:10px; letter-spacing:.3em; color:var(--muted); font-weight:500; margin-top:3px; }
.brand img.logo { height:30px; width:auto; margin-right:-2px; }
.brand { align-items:center; }
.top nav { display:flex; gap:4px; flex:1; }
.top nav a { text-decoration:none; color:var(--ink); padding:5px 10px; border-radius:8px; }
.top nav a.on { background:var(--pine-soft); color:var(--pine); font-weight:600; }
.who { display:flex; gap:6px; align-items:center; font-size:12px; color:var(--muted); }
main { max-width:1200px; margin:0 auto; padding:16px max(16px,env(safe-area-inset-right)) 32px; display:grid; gap:12px; }
footer { text-align:center; color:var(--muted); font-size:12px; padding:0 16px 24px; }
h1 { font-size:22px; margin:0; } h1 small { font-size:15px; color:var(--muted); font-weight:500; margin-left:6px; }
h2 { font-size:15px; margin:0 0 8px; }
.muted { color:var(--muted); } .small { font-size:12px; }
.flash { margin:0; padding:8px 12px; border-radius:8px; }
.flash.ok { background:var(--pine-soft); } .flash.bad { background:var(--stop-soft); color:var(--stop); }
.card { background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px 16px; min-width:0; }
.card.narrow { max-width:560px; }
button, input, select { font:inherit; border:1px solid var(--line); border-radius:8px; padding:6px 10px; background:var(--panel); color:var(--ink); }
button { cursor:pointer; }
button.primary { background:var(--pine); color:var(--on-brand); border-color:var(--pine); }
button.danger { color:var(--stop); border-color:var(--stop); }
button:disabled { opacity:.45; cursor:not-allowed; }
:focus-visible { outline:2px solid var(--note); outline-offset:2px; }
.bar { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; align-items:center; }
.tabs { display:flex; gap:4px; flex-wrap:wrap; }
.tabs a { text-decoration:none; color:var(--ink); padding:5px 12px; border-radius:999px; border:1px solid var(--line); background:var(--panel); }
.tabs a.on { background:var(--pine); color:var(--on-brand); border-color:var(--pine); }
.tabs i { font-style:normal; opacity:.75; font-size:12px; }
.search { display:flex; gap:6px; } .search input { width:240px; max-width:60vw; }
.table-wrap { overflow-x:auto; background:var(--panel); border:1px solid var(--line); border-radius:12px; }
table.rows { width:100%; border-collapse:collapse; }
.rows th, .rows td { text-align:left; padding:7px 10px; border-bottom:1px solid var(--line); white-space:nowrap; }
.rows th { font-size:12px; color:var(--muted); font-weight:500; }
.rows tr:last-child td { border-bottom:0; }
.rows .clip { display:inline-block; vertical-align:bottom; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rows .addr .clip { max-width:150px; } .rows .items .clip { max-width:150px; } .rows .site .clip { max-width:130px; }
.rows td.at { white-space:normal; min-width:150px; }
.rows td.at .pill { margin:1px 4px 1px 0; }
.num { text-align:right !important; font-variant-numeric:tabular-nums; }
.no { font-weight:600; font-variant-numeric:tabular-nums; }
.pill { display:inline-block; font-size:12px; border-radius:999px; padding:1px 9px; margin-right:4px; white-space:nowrap; }
.pill.at { background:var(--pine-soft); color:var(--pine); font-weight:600; }
.pill.done { background:var(--pine); color:var(--on-brand); }
.pill.shut { background:var(--shut-soft); color:var(--shut); }
.pill.stop { background:var(--stop-soft); color:var(--stop); }
.pill.note { background:var(--note-soft); color:var(--note); }
.head { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; align-items:flex-end; }
.state { display:flex; flex-wrap:wrap; gap:4px; }
ol.line { list-style:none; display:flex; flex-wrap:wrap; margin:0 0 12px; padding:0; gap:0; }
ol.line li { position:relative; flex:1 1 90px; text-align:center; padding:26px 4px 0; font-size:13px; color:var(--muted); }
ol.line li::before { content:""; position:absolute; top:10px; left:0; right:0; height:3px; background:var(--line); }
ol.line li:first-child::before { left:50%; } ol.line li:last-child::before { right:50%; }
ol.line li::after { content:""; position:absolute; top:4px; left:50%; transform:translateX(-50%); width:15px; height:15px; border-radius:50%; background:var(--panel); border:3px solid var(--line); }
ol.line li.done { color:var(--ink); } ol.line li.done::before { background:var(--pine); } ol.line li.done::after { background:var(--pine); border-color:var(--pine); }
ol.line li.now { color:var(--pine); font-weight:700; } ol.line li.now::after { border-color:var(--pine); box-shadow:0 0 0 4px var(--pine-soft); }
ol.line li.paused { color:var(--shut); font-weight:700; } ol.line li.paused::after { border-color:var(--shut); border-style:dashed; }
ol.line li.gate::after { border-color:var(--stop); } ol.line li.done.gate::after { background:var(--stop); border-color:var(--stop); }
ol.line small { display:block; font-size:11px; color:var(--stop); font-weight:400; }
.line-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.line-actions .right { margin-left:auto; }
.inline { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:6px 0; }
.inline input { min-width:0; flex:1 1 140px; }
details.mini summary { cursor:pointer; color:var(--muted); font-size:13px; }
.cols { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
.chips { list-style:none; padding:0; margin:0 0 6px; display:flex; flex-wrap:wrap; gap:6px; }
.chips li { display:flex; align-items:center; gap:4px; background:var(--pine-soft); border-radius:8px; padding:3px 4px 3px 10px; }
.chips form { margin:0; } .chips button { border:0; background:transparent; padding:0 6px; color:var(--muted); }
dl.money { display:grid; grid-template-columns:auto 1fr; gap:4px 14px; margin:0 0 8px; font-variant-numeric:tabular-nums; }
dl.money dt { color:var(--muted); } dl.money dd { margin:0; font-weight:600; }
ol.log { list-style:none; margin:0; padding:0; display:grid; gap:4px; font-size:13px; }
ol.log li { display:flex; gap:10px; } ol.log time { color:var(--muted); font-variant-numeric:tabular-nums; flex:none; } ol.log b { flex:none; font-weight:600; }
.grid-form { display:grid; grid-template-columns:110px 1fr; gap:8px 12px; align-items:center; margin-top:12px; }
@media (max-width:760px) { .cols { grid-template-columns:1fr; } .grid-form { grid-template-columns:1fr; } }
.link-note { margin:2px 0; font-size:13px; }
.mini-table { width:100%; border-collapse:collapse; font-size:13px; margin-bottom:6px; }
.mini-table td { padding:5px 6px; border-bottom:1px solid var(--line); vertical-align:middle; }
.inline.tight { margin:0; } .inline.tight input { flex:0 1 110px; }
.lamps { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.lamp { display:flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--panel); text-decoration:none; color:var(--muted); }
.lamp i { width:10px; height:10px; border-radius:50%; background:var(--line); flex:none; }
.lamp span { flex:1; font-size:13px; font-weight:600; } .lamp b { font-size:18px; }
.lamp.on { color:var(--ink); border-color:#e8a317; } .lamp.on i { background:#e8a317; box-shadow:0 0 0 4px rgba(232,163,23,.2); }
.lamp-list summary { cursor:pointer; } .table-wrap.flat { border:0; margin-top:8px; }
@media (max-width:760px) { .lamps { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.mini-table td:first-child { white-space:nowrap; width:1%; }
.mini-table td:nth-child(2) { white-space:nowrap; }
.mini-table .inline.tight { flex-wrap:nowrap; justify-content:flex-end; }
.mini-table .inline.tight input { flex:0 1 96px; min-width:70px; padding:4px 8px; }
.mini-table .inline.tight input[type=date] { flex-basis:132px; }
.mini-table button { padding:4px 10px; white-space:nowrap; }
.files-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.button-link { text-decoration:none; border:1px solid var(--pine); color:var(--pine); border-radius:8px; padding:4px 10px; font-size:13px; }
.files-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px; margin:8px 0; }
.file-cat { border:1px solid var(--line); border-radius:10px; padding:8px 10px; min-width:0; }
.file-cat h3 { margin:0 0 4px; font-size:13px; }
.file { font-size:13px; padding:3px 0; border-top:1px dashed var(--line); overflow-wrap:anywhere; }
.file:first-of-type { border-top:0; }
.file.voided { color:var(--muted); }
.inline-void { display:inline-block; } .inline-void summary { font-size:12px; }
.upload input[type=file] { flex:1 1 220px; }
.chips-row { display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 8px; }
.check { display:inline-flex; gap:4px; align-items:center; font-size:13px; }
.warn-card { border-color:var(--stop); }
.sheet-head { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.sheet-head p { margin:2px 0; }
.qr { text-align:center; } .qr svg { width:160px; height:160px; } .qr small { display:block; }
.sheet-steps { width:100%; border-collapse:collapse; margin-top:12px; } .sheet-steps td { border:1px solid var(--ink); padding:10px; height:70px; vertical-align:top; }
@media print { .top, footer, .no-print, .flash { display:none !important; } body { background:#fff; } .card { border:0; } }
.scan-body { background:var(--bg); } .scan { max-width:460px; margin:0 auto; padding:16px; display:grid; gap:12px; }
.scan-steps { display:grid; gap:10px; } button.big { width:100%; padding:14px; font-size:17px; }
.scan-done { background:var(--pine-soft); border-radius:10px; padding:12px 14px; font-weight:600; color:var(--pine); }
.scan-done small { display:block; font-weight:400; color:var(--muted); }
.scan input { width:100%; margin:8px 0; padding:12px; font-size:17px; }
.check { white-space:nowrap; }
/* 粗加工 */
.tabs.kinds a { padding:3px 10px; font-size:13px; }
.tabs.kinds a.on { background:var(--pine-soft); color:var(--pine); border-color:var(--pine); }
.grid-form.wide { grid-template-columns:120px minmax(0,420px); }
@media (max-width:760px) { .grid-form.wide { grid-template-columns:1fr; } }
.grid-form .lbl { color:var(--ink); }
.warn-list { margin:8px 0; padding:8px 12px 8px 28px; background:var(--note-soft); border-radius:8px; font-size:13px; }
.edit-table input, .edit-table select { width:100%; min-width:0; padding:4px 6px; }
.edit-table td.num input { width:5.5em; text-align:right; }
.edit-table input.need { border-color:var(--stop); background:var(--stop-soft); }
.link-button { background:none; border:0; color:var(--muted); text-decoration:underline; padding:0; cursor:pointer; font-size:13px; }
.edit-table td:first-child { min-width:200px; }
.edit-table td:last-child { min-width:220px; max-width:340px; }
.top nav { flex-wrap:wrap; }
.top nav a { white-space:nowrap; }
/* 生产排期 */
.sched td.due { min-width:170px; }
.sched tr.due-late td.due b { color:var(--stop); }
.sched .pill { margin:1px 2px 1px 0; }
/* 待我处理 */
.todo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:12px; }
.todo-grid .card { margin:0; }
.todo h2 .count { display:inline-block; min-width:1.8em; text-align:center; border-radius:999px; background:var(--shut-soft); color:var(--muted); font-size:12px; padding:0 6px; }
.todo.on h2 .count { background:var(--stop-soft); color:var(--stop); }
.todo:not(.on) { opacity:.75; }

/* ---------- 皮肤：每个账号自己选，记在账号上。只换底色、线条和主色，红 / 蓝提醒色不动 ---------- */
/* 公司主题色：睿森家居品牌色系统
   奶油白 #F6F3EB（主 60%）· 森林绿 #2F5D4B（辅 30%）· 金棕 #B78557（点缀 10%）· 原木色 #DBB892 · 岩灰 #4B4A47 */
:root[data-skin="company"] {
  --bg:#F6F3EB; --panel:#FDFBF7; --ink:#2B2A27; --muted:#6F6B63; --line:#E6DED0;
  --pine:#2F5D4B; --pine-soft:#E3ECE6; --gold:#B78557; --wood:#DBB892; --wood-soft:#F1E7D9;
  font-family:"HarmonyOS Sans SC","Source Han Sans SC","Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
}
@media (prefers-color-scheme: dark) { :root[data-skin="company"]:not([data-mode="light"]) {
  --bg:#121815; --panel:#19211D; --ink:#EDE8DE; --muted:#A39C90; --line:#2C3631;
  --pine:#86BFA3; --pine-soft:#1F2E27; --gold:#D3A676; --wood:#B8946B; --wood-soft:#2A241C; --on-brand:#121815; } }
:root[data-skin="company"] .top { border-bottom:1px solid var(--line); box-shadow:0 1px 0 color-mix(in srgb, var(--gold) 35%, transparent);
  background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='70' viewBox='0 0 520 70'%3E%3Cg fill='none' stroke='%23B78557' stroke-opacity='.35' stroke-width='1'%3E%3Cpath d='M0 60 C120 60 160 18 260 22 S420 58 520 10'/%3E%3Cpath d='M20 66 C140 64 180 28 270 30 S430 62 520 20'/%3E%3Cpath d='M40 70 C160 68 200 38 280 38 S440 66 520 30'/%3E%3C/g%3E%3C/svg%3E") right bottom / 520px 70px no-repeat; }
:root[data-skin="company"] .card { border-radius:14px; box-shadow:0 1px 2px rgba(75,74,71,.05); }
:root[data-skin="company"] .rows th { background:var(--wood-soft); }
:root[data-skin="company"] .rows tr:first-child th:first-child { border-top-left-radius:8px; }
:root[data-skin="company"] h1 { letter-spacing:.02em; }
:root[data-skin="company"] h1::after { content:""; display:block; width:28px; height:2px; background:var(--gold); margin-top:6px; border-radius:2px; }
:root[data-skin="company"] .bar h1::after { display:none; }
:root[data-skin="company"] .tabs a.on { box-shadow:0 1px 0 var(--gold); }
:root[data-skin="wood"] { --bg:#f7f3ee; --line:#e6ddd2; --pine:#8a5a2b; --pine-soft:#f3e8dc; --muted:#76695c; --ink:#2a2018; }
:root[data-skin="mist"] { --bg:#f3f5f8; --line:#dce2ea; --pine:#3c5a7a; --pine-soft:#e3eaf3; --muted:#66707c; --ink:#1b222b; }
@media (prefers-color-scheme: dark) {
  :root[data-skin="wood"]:not([data-mode="light"]) { --bg:#16120e; --panel:#1f1914; --line:#352b22; --pine:#d6a46e; --pine-soft:#2e2318; --muted:#a8998a; --ink:#ede4da; --on-brand:#1f1914; }
  :root[data-skin="mist"]:not([data-mode="light"]) { --bg:#0f1318; --panel:#171c23; --line:#2a323d; --pine:#8fb0d6; --pine-soft:#1c2633; --muted:#99a4b2; --ink:#e3e9f0; --on-brand:#171c23; }
}
.skin-pick { display:flex; gap:4px; align-items:center; }
.skin-pick > button { width:18px; height:18px; padding:0; border-radius:50%; border:2px solid var(--panel); outline:1px solid var(--line); cursor:pointer; }
.skin-pick > button.on { outline:2px solid var(--ink); }
/* 导航项多了以后一行放得下 */
.top { gap:12px; }
.top nav { gap:2px; }
.top nav a { padding:5px 8px; font-size:13.5px; }
@media (max-width:1360px) { .brand > span:not(.word) { display:none; } }
.card.narrow { margin-left:auto; margin-right:auto; width:100%; }
.card.login { margin-top:8vh; max-width:440px; }
/* 椒图：图片在 static/jiaotu/，换图只要用同名文件替换 */
.login-wrap { display:flex; align-items:flex-end; justify-content:center; gap:8px; margin-top:6vh; flex-wrap:wrap; }
.login-wrap .card.login { margin:0; }
.jt-gate { width:150px; height:auto; }
.jt-rest { text-align:center; padding:8px 0 0; }
.jt-rest img { width:220px; height:auto; }
.jt-rest p { margin:4px 0 0; color:var(--muted); }
.jt-ava { width:26px; height:26px; object-fit:contain; border-radius:50%; background:var(--wood-soft, var(--pine-soft)); padding:1px; }
@media (max-width:560px) { .jt-gate { width:110px; } }

/* 手动选「深色」时用的夜间配色（和上面跟随系统的夜间配色同一套） */
:root[data-mode="dark"] {
  --bg:#111613; --panel:#18201b; --ink:#e5ece7; --muted:#9aa9a0; --line:#2b3730;
  --pine:#7cc49c; --pine-soft:#1d2d24; --stop:#ec7a66; --stop-soft:#35201c; --note:#86ade8; --note-soft:#1c2738;
  --shut:#a3a8ae; --shut-soft:#262b30; --on-brand:#111613; color-scheme:dark; }
:root[data-skin="company"][data-mode="dark"] {
  --bg:#121815; --panel:#19211D; --ink:#EDE8DE; --muted:#A39C90; --line:#2C3631;
  --pine:#86BFA3; --pine-soft:#1F2E27; --gold:#D3A676; --wood:#B8946B; --wood-soft:#2A241C; --on-brand:#121815; }
:root[data-skin="wood"][data-mode="dark"] { --bg:#16120e; --panel:#1f1914; --line:#352b22; --pine:#d6a46e; --pine-soft:#2e2318; --muted:#a8998a; --ink:#ede4da; --on-brand:#1f1914; }
:root[data-skin="mist"][data-mode="dark"] { --bg:#0f1318; --panel:#171c23; --line:#2a323d; --pine:#8fb0d6; --pine-soft:#1c2633; --muted:#99a4b2; --ink:#e3e9f0; --on-brand:#171c23; }
.mode-pick { display:flex; gap:0; margin-left:6px; border:1px solid var(--line); border-radius:999px; overflow:hidden; }
.mode-pick button { white-space:nowrap; line-height:1.6; border:0; background:none; color:var(--muted); font-size:12px; padding:2px 8px; cursor:pointer; }
.mode-pick button.on { background:var(--pine-soft); color:var(--pine); font-weight:600; }
.accounts td { vertical-align:top; }
.accounts form.inline { margin:0; }
.handover summary { cursor:pointer; color:var(--pine); font-size:13px; margin-top:4px; }
.handover form { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin-top:6px; max-width:360px; }
.handover p { margin:0 0 4px; font-size:12px; }
.accounts td form.inline input[name="name"] { width:120px; }
ol.line li small.ok { color:var(--pine); }
.pick-q { display:block; width:100%; max-width:260px; margin-bottom:4px; font-size:13px; }
.pick-sug { display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; font-size:12px; color:var(--muted); }
.pick-sug button { font-size:12px; padding:2px 8px; border-radius:999px; }
.stock-q { width:100%; margin:4px 0 8px; }
td.late { color:var(--stop); font-weight:600; }
/* 仓管手机版：大按钮、不横着滚 */
.ship-checks { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 0; }
.wh h1 { font-size:22px; margin:0 0 4px; }
.wh-who { font-size:16px; line-height:1.6; margin:4px 0; }
.wh-line { list-style:none; display:flex; flex-wrap:wrap; gap:4px; padding:0; margin:8px 0 0; }
.wh-line li { font-size:13px; padding:3px 8px; border-radius:999px; background:var(--bg); color:var(--muted); }
.wh-line li.done { background:var(--pine-soft); color:var(--pine); }
.wh-line li.now { background:var(--pine); color:var(--on-brand); font-weight:600; }
.wh-checks { list-style:none; padding:0; margin:0 0 12px; font-size:16px; line-height:2; }
.wh-checks .ok { color:var(--pine); } .wh-checks .no { color:var(--stop); font-weight:600; }
button.big, .button-link.big { display:block; width:100%; min-height:52px; font-size:17px; text-align:center; box-sizing:border-box; }
.button-link.big { line-height:52px; padding:0 12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.big-file { display:block; min-height:56px; line-height:56px; text-align:center; font-size:17px; font-weight:600; border-radius:12px;
  background:var(--pine); color:var(--on-brand); cursor:pointer; }
.big-file input { position:absolute; width:1px; height:1px; opacity:0; }
.wh-photos { display:grid; grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); gap:6px; margin-bottom:10px; }
.wh-photos img { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:8px; border:1px solid var(--line); }
.wh-buys { list-style:none; padding:0; margin:0; }
.wh-buys li { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid var(--line); font-size:16px; }
.wh-buys li:last-child { border-bottom:0; } .wh-buys button { min-height:44px; padding:0 18px; font-size:16px; }
.ok-line { color:var(--pine); font-size:16px; font-weight:600; }
.small-btn { font-size:12px; }
/* 老爸手机版 */
.dad-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.dad-tabs a { text-align:center; padding:12px 0; border-radius:12px; background:var(--panel); border:1px solid var(--line); color:var(--ink); text-decoration:none; font-size:17px; font-weight:600; }
.dad-tabs a.on { background:var(--pine); border-color:var(--pine); color:var(--on-brand); }
.dad-tabs i { font-style:normal; font-weight:400; font-size:13px; opacity:.8; }
.dad-search { display:flex; gap:6px; } .dad-search input { flex:1; min-height:42px; font-size:16px; } .dad-search button { min-width:56px; }
.dad-rows { list-style:none; padding:0; margin:0; background:var(--panel); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.dad-rows li { border-bottom:1px solid var(--line); } .dad-rows li:last-child { border-bottom:0; }
.dad-rows a { display:grid; grid-template-columns:1fr auto; gap:2px 8px; padding:12px 14px; color:var(--ink); text-decoration:none; }
.dad-rows .no { font-weight:700; font-size:17px; } .dad-rows .st { justify-self:end; }
.dad-rows .who { font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .dad-rows .date { justify-self:end; font-size:13px; }
.dad-rows .empty { padding:16px; }
.dad h1 { font-size:22px; margin:0 0 6px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.dad-info { font-size:16px; line-height:1.6; margin:4px 0; }
.dad-mats { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; } .dad-mats span { background:var(--bg); border-radius:8px; padding:3px 8px; font-size:14px; }
.pdf-pages { display:grid; gap:8px; } .pdf-pages img { width:100%; display:block; border:1px solid var(--line); border-radius:6px; background:#fff; }
.dad-photos { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.dad-photos img { width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:8px; border:1px solid var(--line); }
.dad-note { display:flex; gap:6px; } .dad-note input { flex:1; min-height:42px; font-size:16px; }
.dad-files { list-style:none; padding:0; margin:0; line-height:2; word-break:break-all; }
.dad h1::after { display:none; }
.dad-note button, .dad-search button { white-space:nowrap; min-width:64px; }
/* 车间大屏（电视，横屏，远看） */
body.tv { background:var(--bg); font-size:22px; margin:0; }
.tv-head { display:flex; align-items:center; gap:24px; padding:14px 28px; background:var(--pine); color:var(--on-brand); }
.tv-brand { display:flex; align-items:center; gap:12px; font-size:28px; font-weight:700; flex:1; }
.tv-brand img { height:40px; background:#fff; border-radius:8px; padding:2px; }
.tv-time { font-size:26px; font-weight:600; } .tv-time small { font-size:14px; opacity:.75; font-weight:400; margin-left:6px; }
.tv-out { background:transparent; border:1px solid currentColor; color:inherit; border-radius:8px; padding:4px 10px; font-size:14px; text-decoration:none; opacity:.7; }
.tv-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; padding:20px 28px; max-width:none; }
@media (max-width:1100px) { .tv-grid { grid-template-columns:1fr; } }
.tv-col h2 { font-size:30px; margin:0 0 12px; display:flex; align-items:baseline; gap:12px; }
.tv-col h2 span { font-size:20px; color:var(--muted); font-weight:500; }
.tv-row { display:grid; grid-template-columns:120px 1fr auto; gap:16px; align-items:center; background:var(--panel); border:1px solid var(--line);
  border-left:8px solid var(--pine); border-radius:12px; padding:12px 16px; margin-bottom:10px; }
.tv-row.tone-today { border-left-color:var(--gold); } .tv-row.tone-late { border-left-color:var(--stop); background:color-mix(in srgb, var(--stop) 7%, var(--panel)); }
.tv-row.tone-none { border-left-color:var(--line); }
.tv-due b { display:block; font-size:30px; line-height:1.1; } .tv-due span { font-size:17px; color:var(--muted); }
.tv-no { font-size:28px; font-weight:700; } .tv-cust { font-weight:500; font-size:24px; margin-left:8px; }
.tv-no em { font-style:normal; font-size:16px; background:var(--gold); color:#fff; border-radius:6px; padding:2px 8px; margin-left:10px; vertical-align:middle; }
.tv-sub { font-size:18px; color:var(--muted); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tv-steps { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.tv-steps span { font-size:17px; padding:2px 10px; border-radius:999px; background:var(--bg); color:var(--muted); }
.tv-steps span.ok { background:var(--pine-soft); color:var(--pine); font-weight:600; }
.tv-left { font-size:26px; font-weight:700; text-align:right; white-space:nowrap; }
.tone-late .tv-left { color:var(--stop); } .tone-today .tv-left { color:var(--gold); } .tone-ok .tv-left { color:var(--pine); }
.tv-empty { font-size:22px; color:var(--muted); }
.chip-pick { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 8px; }
.chip-pick form { margin:0; }
.chip-pick button { border-radius:999px; padding:6px 14px; font-size:14px; background:var(--panel); border:1px solid var(--line); color:var(--ink); }
.chip-pick button.on { background:var(--pine); border-color:var(--pine); color:var(--on-brand); font-weight:600; }
.opt-form { display:grid; gap:6px; margin-top:12px; } .opt-form h2 { margin:0; } .opt-form textarea { width:100%; font-size:15px; line-height:1.6; }
.chip-pick + p + h2.site-h, .card > p + h2.site-h, ul.chips + h2.site-h, .chip-pick ~ h2.site-h { margin-top:14px; }
.card h2.site-h:not(:first-child) { margin-top:14px; }
/* 粗加工板材多的时候换行，不把整页撑宽（11-21） */
.rows .mats { max-width:260px; white-space:normal; line-height:1.5; }
.rows .mats span { white-space:nowrap; }
.rows .site .pill.clip { max-width:160px; vertical-align:middle; }
main:has(table.rows) { max-width:1440px; }   /* 订单列表在大屏上放宽，少挤 */
/* 生产排期在手机上：一单一张卡片，不左右滑（11-21，老爸用手机看） */
@media (max-width:720px) {
  .sched .table-wrap { overflow:visible; }
  .sched table.rows, .sched table.rows tbody { display:block; }
  .sched table.rows thead { display:none; }
  .sched table.rows tr { display:grid; grid-template-columns:auto 1fr; gap:4px 12px; padding:12px 2px; border-bottom:1px solid var(--line); }
  .sched table.rows tr:last-child { border-bottom:0; }
  .sched table.rows td { display:block; padding:0; border:0; white-space:normal; font-size:16px; }
  .sched table.rows td.due { grid-column:1 / -1; font-size:17px; }
  .sched table.rows td.addr, .sched table.rows td:nth-last-child(2), .sched table.rows td:last-child { grid-column:1 / -1; }
  .sched table.rows td:nth-last-child(2) { color:var(--muted); font-size:14px; }
  .sched table.rows td .no { font-size:18px; }
  .sched details.mini summary { display:inline-block; margin-top:6px; padding:6px 14px; border:1px solid var(--line); border-radius:999px; font-size:15px; color:var(--pine); }
  .sched details.mini form { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
  .sched details.mini input, .sched details.mini select, .sched details.mini button { min-height:42px; font-size:16px; }
  .sched details.mini input[type=date] { min-width:170px; flex:1; }
}
