/* /tech shop floor — only layout the shared sheets don't have. Colors/radii/shadows all come from app.css variables. */
body.tech .wrap{max-width:1500px;margin:0 auto;padding:16px 16px 60px}
body.tech .ptitle{margin:6px 0 10px}
body.tech .chips button b{margin-left:4px;opacity:.7}
.tk-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:12px}
.tk-card{display:block;text-align:left;background:var(--card,#fff);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);padding:14px;cursor:pointer;color:var(--ink);min-width:0}
.tk-card:hover,.tk-card:focus-visible{border-color:var(--ink);outline:none}
.tk-card:active{transform:scale(.99)}
.tk-card.isdone{opacity:.8}
.tk-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tk-no{font-weight:900;font-size:15px;letter-spacing:.03em;color:var(--muted)}
.tk-days{margin-left:auto;font-size:15px;font-weight:700;color:var(--muted)}
.tk-days.old{color:var(--red)}
.tk-nm{font-weight:800;font-size:19px;line-height:1.25;margin:6px 0 2px;overflow-wrap:anywhere}
.tk-cu{font-size:17px;overflow-wrap:anywhere}
.tk-pr{font-size:16px;color:var(--muted);margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-line}
.tk-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:10px}
.tk-meta .tk-grab{margin-left:auto}
.tk-chip{display:inline-block;font-size:14px;font-weight:700;padding:3px 10px;border-radius:999px;background:var(--paper);border:1px solid var(--line);color:var(--ink)}
.tk-chip.warn{background:#fef3c7;border-color:#fde68a;color:#92400e}
.tk-chip.good{background:#dcfce7;border-color:#bbf7d0;color:#166534}
.wopill{font-size:13px}
.wopill.tk-todo{background:#e7e5e4;color:#444}
.wopill.tk-working{background:#dbeafe;color:#1e40af}
.wopill.tk-waiting_parts{background:#fef3c7;color:#92400e}
.wopill.tk-waiting_approval{background:#ede9fe;color:#5b21b6}
.wopill.tk-done{background:#dcfce7;color:#166534}
.tk-h{font-size:21px;margin:22px 0 10px}.tk-h small{font-size:15px;color:var(--muted);font-weight:500;margin-left:6px}
.tk-more{margin:18px 0}
.tk-none{color:var(--muted);padding:10px 2px}
.tk-skel{height:240px;border-radius:var(--r);background:var(--line);opacity:.5}
/* who are you */
.tk-who{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;margin-top:10px}
.tk-whobtn{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:92px;padding:16px;border-radius:var(--r);border:1px solid var(--line);background:var(--card,#fff);box-shadow:var(--shadow);font:inherit;color:var(--ink);cursor:pointer;text-align:left}
.tk-whobtn b{font-size:26px}.tk-whobtn span{font-size:15px;color:var(--muted)}
.tk-whobtn:hover{border-color:var(--red)}.tk-whobtn.alt{background:transparent;box-shadow:none;border-style:dashed}
/* board */
.tk-board{display:grid;grid-template-columns:repeat(5,minmax(190px,1fr));gap:12px;align-items:start;overflow-x:auto}
.tk-col{background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:10px;min-width:0}
.tk-col h3{margin:2px 4px 10px;font-size:17px;display:flex;justify-content:space-between;align-items:center}
.tk-col h3 b{background:var(--card,#fff);border:1px solid var(--line);border-radius:999px;padding:0 10px;font-size:15px}
.tk-col-working{border-top:4px solid #3b82f6}.tk-col-waiting_parts{border-top:4px solid #f59e0b}.tk-col-waiting_approval{border-top:4px solid #8b5cf6}.tk-col-done{border-top:4px solid #22c55e}.tk-col-todo{border-top:4px solid #a8a29e}
.tk-colbody{display:grid;gap:10px;max-height:calc(100vh - 230px);overflow-y:auto;padding-right:2px}
.tk-col .tk-card{padding:12px}.tk-col .tk-nm{font-size:17px}
.tk-tabs button{flex:0 0 auto}
/* detail */
.tk-jhead{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tk-title{font-size:26px;line-height:1.2;margin:10px 0 4px;overflow-wrap:anywhere}
.tk-sub{font-size:17px;color:var(--muted);margin-bottom:14px}.tk-sub b{color:var(--ink)}
.tk-sts{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.tk-st{min-height:68px;border-radius:var(--r);border:2px solid var(--line);background:var(--card,#fff);font:inherit;font-weight:800;font-size:18px;color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 10px;line-height:1.15}
.tk-st:disabled{opacity:.6}
.tk-st:hover{border-color:var(--ink)}
.tk-st.on{color:#fff;border-color:transparent}
.tk-st-working.on{background:#2563eb}.tk-st-waiting_parts.on{background:#d97706}.tk-st-waiting_approval.on{background:#7c3aed}.tk-st-done.on{background:#16a34a}
.tk-ck{font-size:20px}.tk-ck:empty{display:none}
.tk-sthint{margin:8px 0 14px}
.tk-cols{display:grid;grid-template-columns:1fr;gap:14px}
.tk-colA,.tk-colB{display:grid;gap:14px;align-content:start;min-width:0}
.tk-sec{padding:16px}.tk-sec h2{margin:0 0 10px;font-size:20px;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.tk-sec h2 small{font-size:15px;font-weight:600;color:var(--muted)}
.tk-h3{font-size:18px;margin:16px 0 8px}
.tk-dl{display:grid;grid-template-columns:90px 1fr;gap:4px 12px;margin:0 0 10px}.tk-dl dt{color:var(--muted)}.tk-dl dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.tk-prob{white-space:pre-line;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:12px;font-size:18px;overflow-wrap:anywhere}
.tk-assign{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.tk-assign select{flex:1;min-width:160px;width:auto}
.tk-cavu{margin-top:10px;font-size:16px;white-space:pre-line}.tk-cavu b{display:block;color:var(--muted);font-size:14px;text-transform:uppercase;letter-spacing:.04em}
.tk-row{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.tk-row input{flex:1;min-width:140px;width:auto}
.tk-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.tk-note,.tk-hist{border-top:1px solid var(--line);padding:10px 0;overflow-wrap:anywhere}.tk-note:first-child{margin-top:8px}
.tk-nh{color:var(--muted);font-size:15px;margin-bottom:2px}
.tk-trow{display:flex;gap:10px;align-items:baseline;border-top:1px solid var(--line);padding:8px 0;flex-wrap:wrap}.tk-trow i{margin-left:auto;font-style:normal;color:var(--muted);font-size:14px}
.tk-prow{display:flex;gap:10px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:8px 0}.tk-prow>span{white-space:nowrap;font-weight:700}
.tk-prow:first-child{border-top:0}
.tk-pres{display:grid;gap:8px;margin-top:10px}.tk-pres .prow .btn.sm{min-height:44px}
.tk-lbl{font-size:14px;margin:10px 0 6px;text-transform:uppercase;letter-spacing:.04em}
.tk-common{display:flex;flex-wrap:wrap;gap:8px}.tk-common .tk-lbl{flex:0 0 100%;margin:8px 0 0}
.tk-cchip{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:8px 12px;border-radius:12px;border:1px solid var(--line);background:var(--card,#fff);font:inherit;color:var(--ink);cursor:pointer;min-height:48px;text-align:left}
.tk-cchip span{font-size:14px;color:var(--muted)}
.tk-diag{margin-top:12px;width:100%}
.tk-toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 20px;border-radius:999px;font-weight:700;z-index:3000;max-width:92vw;text-align:center;box-shadow:0 6px 24px rgba(0,0,0,.25)}
.tk-demo{background:#fde68a;color:#78350f;text-align:center;padding:8px 12px;font-weight:800;font-size:16px;position:sticky;top:0;z-index:2000;border-bottom:2px solid #f59e0b}
@media(min-width:960px){.tk-cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:700px){
  body.tech .wrap{padding:12px 12px 70px}
  .tk-grid{grid-template-columns:1fr}
  .tk-sts{grid-template-columns:1fr 1fr}.tk-st{min-height:64px;font-size:17px}
  .tk-title{font-size:23px}
  .tk-quick{grid-template-columns:1fr 1fr}
  .tk-row input,.tk-row .btn{flex:1 1 100%}
  .tk-dl{grid-template-columns:80px 1fr}
}

.tk-col .tk-top .wopill{display:none}

/* dark: same two switches oneapp.css uses (system dark, or the Dark theme button) */
@media (prefers-color-scheme:dark){
  html.one:not([data-theme=light]) body.tech .wopill.tk-todo{background:#2c2c2e;color:#d4d4d8}
  html.one:not([data-theme=light]) body.tech .wopill.tk-working{background:#172554;color:#bfdbfe}
  html.one:not([data-theme=light]) body.tech .wopill.tk-waiting_parts,html.one:not([data-theme=light]) body.tech .tk-chip.warn{background:#422006;color:#fde68a;border-color:#713f12}
  html.one:not([data-theme=light]) body.tech .wopill.tk-waiting_approval{background:#2e1065;color:#ddd6fe}
  html.one:not([data-theme=light]) body.tech .wopill.tk-done,html.one:not([data-theme=light]) body.tech .tk-chip.good{background:#14532d;color:#bbf7d0;border-color:#166534}
  html.one:not([data-theme=light]) body.tech .tk-demo{background:#422006;color:#fde68a;border-color:#92400e}
  html.one:not([data-theme=light]) body.tech .tk-toast{background:#fff;color:#111}
}
html.one[data-theme=dark] body.tech .wopill.tk-todo{background:#2c2c2e;color:#d4d4d8}
html.one[data-theme=dark] body.tech .wopill.tk-working{background:#172554;color:#bfdbfe}
html.one[data-theme=dark] body.tech .wopill.tk-waiting_parts,html.one[data-theme=dark] body.tech .tk-chip.warn{background:#422006;color:#fde68a;border-color:#713f12}
html.one[data-theme=dark] body.tech .wopill.tk-waiting_approval{background:#2e1065;color:#ddd6fe}
html.one[data-theme=dark] body.tech .wopill.tk-done,html.one[data-theme=dark] body.tech .tk-chip.good{background:#14532d;color:#bbf7d0;border-color:#166534}
html.one[data-theme=dark] body.tech .tk-demo{background:#422006;color:#fde68a;border-color:#92400e}
html.one[data-theme=dark] body.tech .tk-toast{background:#fff;color:#111}

.tk-nav{margin:0 0 14px;align-items:center;flex-wrap:wrap}
.tk-nav button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.tk-nav .s{display:none}
.tk-nav b{background:var(--red);color:#fff;border-radius:999px;min-width:22px;padding:0 7px;font-size:14px;line-height:22px;text-align:center;opacity:1}
.tk-nav b.warn{background:#d97706}
.tk-nav button.on{background:var(--inv,#1a1a1a);color:var(--on-inv,#fff);border-color:var(--inv,#1a1a1a)}
.tk-foot{margin-top:28px;text-align:center}
.tk-set{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.tk-set select{flex:1 1 220px;max-width:100%;width:auto}
html[data-device=phone] body.tech .tk-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-left:0;margin-right:0;padding:0;overflow:visible}
html[data-device=phone] body.tech .tk-nav button{padding:8px 4px;min-width:0;font-size:15px;position:relative}
html[data-device=phone] body.tech .tk-nav .l{display:none}html[data-device=phone] body.tech .tk-nav .s{display:inline}
html[data-device=phone] body.tech .tk-nav b{position:absolute;top:-6px;right:-2px;min-width:20px;line-height:20px;padding:0 5px;font-size:12px}
#whoSwitch{font-weight:800}
.tk-set{margin:0 0 12px;font-size:15px}
.tk-hwho{display:flex;align-items:center;gap:6px;padding-right:8px}.tk-hwho .btn{min-height:40px;border:1px solid var(--line);background:var(--card,#fff)}
