
:root {
  --bg: #f0efea;
  --surface: #fbfaf7;
  --subtle: #f4f3ee;
  --hover: #ebe9e2;
  --border: #e2dfd7;
  --border-strong: #cdc9bf;
  --text: #141413;
  --text-2: #3a3834;
  --muted: #74706a;
  --faint: #a6a29a;
  --primary: #141413;
  --primary-hover: #2b2926;
  --primary-fg: #fbfaf7;
  --accent: #d61f1f;
  --accent-bg: #fce6e5;
  --team: #2563eb;
  --team-bg: #e7eefd;
  --ok: #1f8a4c;
  --warn: #b2540b;
  --warn-bg: #fbf0e2;
  --warn-border: #f0cf9f;
  --danger: #c81e1e;
  --danger-bg: #fbe5e2;
  --emph: #9a6a00;
  --emph-bg: #fbf3d6;
  --ring: rgba(214, 31, 31, .2);
  --shadow-sm: none;
  --shadow-lg: 0 24px 60px rgba(28, 24, 18, .16), 0 2px 8px rgba(28, 24, 18, .06);
  --radius: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", "Noto Sans TC", -apple-system, "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0e; --surface: #191817; --subtle: #1f1e1c; --hover: #282624; --border: #2c2a27; --border-strong: #403d39;
    --text: #f2f0ea; --text-2: #d5d1c9; --muted: #9f9a91; --faint: #6d6962; --primary: #f2f0ea; --primary-hover: #ffffff; --primary-fg: #141413;
    --accent: #ff3b33; --accent-bg: #2e1211; --team: #5b9cff; --team-bg: #15233b; --ok: #4cc27c; --warn: #f39a3c; --warn-bg: #2a1c0d; --warn-border: #5b3a14; --danger: #f2554d; --danger-bg: #351511;
    --emph: #f2c94c; --emph-bg: #2b2408; --ring: rgba(255, 59, 51, .28); --shadow-sm: none; --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f0e; --surface: #191817; --subtle: #1f1e1c; --hover: #282624; --border: #2c2a27; --border-strong: #403d39;
  --text: #f2f0ea; --text-2: #d5d1c9; --muted: #9f9a91; --faint: #6d6962; --primary: #f2f0ea; --primary-hover: #ffffff; --primary-fg: #141413;
  --accent: #ff3b33; --accent-bg: #2e1211; --team: #5b9cff; --team-bg: #15233b; --ok: #4cc27c; --warn: #f39a3c; --warn-bg: #2a1c0d; --warn-border: #5b3a14; --danger: #f2554d; --danger-bg: #351511;
  --emph: #f2c94c; --emph-bg: #2b2408; --ring: rgba(255, 59, 51, .28); --shadow-sm: none; --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 600; }
h1 { font-size: 22px; letter-spacing: -.01em; }
h2 { font-size: 14px; }
h3 { font-size: 13px; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.i { display: block; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); font-size: 13px; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.topbar { background: var(--surface); position: sticky; top: 0; z-index: 10; }
.topbar-in { max-width: 1440px; margin: 0 auto; padding: 0 24px; height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.topbar-right { grid-column: 3; display: flex; align-items: center; gap: 4px; justify-self: end; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; justify-self: start; }
.brand-mark { width: 24px; height: 24px; border-radius: 6px; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.nav { display: flex; gap: 2px; }
.nav[hidden] { display: none; }
.nav a { padding: 6px 12px; border-radius: 6px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); background: var(--subtle); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--subtle); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); flex: none; }
.icon-btn.tb { width: 36px; height: 36px; border-radius: 8px; }
.icon-btn.tb[aria-expanded="true"] { background: var(--hover); color: var(--text); }
.pop-wrap { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 6px); width: 260px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 30; animation: pop .12s ease-out; }
.pop-h { font-size: 12px; font-weight: 500; color: var(--muted); padding: 4px 6px 8px; }
.seg.block { display: flex; width: 100%; }
.seg.block .seg-item { flex: 1; border: 0; background: none; padding: 0 6px; }
.pop-user { display: flex; align-items: center; gap: 10px; padding: 6px; }
.pop-user-main { min-width: 0; }
.pop-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-mail { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-role { display: inline-block; margin: 2px 6px 6px 48px; font-size: 11.5px; font-weight: 500; color: var(--text-2); border: 1px solid var(--border); border-radius: 5px; padding: 0 6px; }
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; margin-top: 4px; padding: 10px 8px 6px; color: var(--text-2); cursor: pointer; text-align: left; }
.pop-item:hover { color: var(--text); }
.container { max-width: 1440px; margin: 0 auto; padding: 28px 24px 120px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head .sub { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; margin-bottom: 8px; margin-left: -2px; }
.crumb:hover { color: var(--text); }
.order-head { align-items: flex-start; }
.order-head .status { margin-top: 30px; }
.oh-main { min-width: 0; }
.oh-main h1 { overflow-wrap: anywhere; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.main { display: grid; gap: 16px; min-width: 0; }
.side { display: grid; gap: 16px; position: sticky; top: 80px; }
@media (max-width: 1056px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
}
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; min-height: 0; }
.panel-meta { color: var(--muted); font-size: 12.5px; }
.panel-body { padding: 14px 20px 20px; }
.panel-sec { padding: 4px 20px 20px; }
.panel-sec h3 { display: flex; justify-content: space-between; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-bottom: 8px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--subtle); border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; }
.panel-foot > .btn:only-child { margin-left: auto; }
.foot-note { color: var(--muted); font-size: 12.5px; }
.btns { display: flex; gap: 8px; margin-left: auto; }
.lead { color: var(--text-2); margin-bottom: 16px; }
.sub-h { font-size: 12.5px; font-weight: 500; color: var(--muted); margin: 20px 0 8px; }
.sub-h > .num { margin-left: 8px; }
.tag { font-size: 12px; font-weight: 500; color: var(--muted); padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; white-space: nowrap; }
.tag.client { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-bg); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.status.mine i { background: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.status.mine { color: var(--accent); font-weight: 500; }
.status.wait i { background: var(--accent); }
.status.done i { background: var(--ok); }
.status.rejected { color: var(--muted); }
.status.rejected i { background: var(--danger); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--hover); }
.btn:focus-visible, .icon-btn:focus-visible, .tab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--danger); }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 40px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 6px; cursor: pointer; flex: none; }
.icon-btn:hover:not(:disabled) { background: var(--hover); color: var(--text); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 13px; margin-left: auto; white-space: nowrap; }
.tabs { display: flex; gap: 20px; margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 640px) { .tabs:not(.inset) { mask-image: linear-gradient(to right, #000 82%, transparent); } }
.tab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 10px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); border-bottom-color: var(--text); }
.tab .count { font-size: 11.5px; color: var(--muted); background: var(--subtle); border-radius: 10px; padding: 0 7px; line-height: 18px; font-variant-numeric: tabular-nums; }
.tabs.inset { margin: 0 -20px 4px; padding: 0 20px; gap: 18px; }
.tab.sm { font-size: 13px; padding: 8px 0; }
.pills { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pills::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: var(--border-strong); color: var(--text); }
.pill:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.pill .count { font-size: 11.5px; color: var(--muted); }
.pill.hot .count { color: var(--accent); font-weight: 600; }
.pill.on { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.pill.on .count { color: inherit; opacity: .7; }
.prog-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; min-width: 0; }
.prog-now { font-size: 18px; font-weight: 700; color: var(--warn); white-space: nowrap; }
.prog-head .prog-now { color: var(--accent); }
.prog-head.rejected .prog-now, .prog-head:not(.p-c):not(.p-t) .prog-now { color: var(--text); }
.prog-head.rejected .prog-now { color: var(--danger); }
.prog-who { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.prog-head.mine .prog-who { color: var(--accent); font-weight: 600; }
.prog-n { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.track { --d: 28px; list-style: none; margin: 0; padding: 0; display: flex; min-width: 0; }
.node { flex: 1 1 0; min-width: 0; position: relative; }
.node::before { content: ""; position: absolute; top: calc(var(--d) / 2 - 1.5px); right: 50%; width: 100%; height: 3px; background: var(--text); }
.node:first-child::before { display: none; }
.node.todo::before { background: var(--border-strong); height: 2px; top: calc(var(--d) / 2 - 1px); }
.node.rejected::before { background: var(--border-strong); }
.node.cur::before { background: linear-gradient(90deg, var(--text), var(--accent)); }
.node-btn { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: default; }
.node-btn:focus-visible { outline: none; }
.node-btn:focus-visible .dot { box-shadow: 0 0 0 4px var(--ring); }
.dot { width: var(--d); height: var(--d); border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .12s; }
.node.done .dot { width: 22px; height: 22px; margin: 3px 0; background: var(--text); color: var(--surface); }
.node.todo .dot { width: 14px; height: 14px; margin: 7px 0; border: 2px solid var(--border-strong); background: var(--surface); }
.node.todo:is(.p-c, .p-t) .dot { border-color: color-mix(in srgb, var(--accent) 60%, var(--border-strong)); background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.node.rejected .dot { background: var(--danger); color: #fff; }
.node.cur .dot { background: var(--surface); border: 3px solid var(--accent); }
.node.cur .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.node.cur.mine .dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--ring); animation: beat 2s ease-in-out infinite; }
.node.cur.mine .dot::after { background: #fff; }
@keyframes beat { 50% { box-shadow: 0 0 0 9px transparent; } }
@media (prefers-reduced-motion: reduce) { .node.cur.mine .dot { animation: none; } }
.node.cur .node-btn { cursor: pointer; }
.node.cur .node-btn:hover .dot { transform: scale(1.1); }
.node-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.node.done .node-label { color: var(--text-2); }
.node.todo .node-label { color: var(--faint); }
.node.cur .node-label { color: var(--accent); font-weight: 700; font-size: 13px; }
.node.rejected .node-label { color: var(--danger); font-weight: 700; }
.tip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translate(-50%, 4px); z-index: 20; width: max-content; max-width: 240px; display: grid; gap: 2px; padding: 9px 12px; border-radius: 8px; background: var(--primary); color: var(--primary-fg); font-size: 12.5px; line-height: 1.5; text-align: left; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s, transform .12s, visibility .12s; }
.tip b { font-weight: 600; }
.tip time { opacity: .65; font-size: 12px; }
.tip span { opacity: .9; }
.node.edge-l .tip { left: 0; transform: translate(0, 4px); }
.node.edge-r .tip { left: auto; right: 0; transform: translate(0, 4px); }
.node:hover .tip, .node-btn:focus .tip, .node-btn:focus ~ .tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.node.edge-l:hover .tip, .node.edge-l .node-btn:focus ~ .tip, .node.edge-r:hover .tip, .node.edge-r .node-btn:focus ~ .tip { transform: translate(0, 0); }
.qa { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; min-width: 0; }
.qa-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.qa-wait { display: grid; gap: 1px; }
.qa-text { font-size: 13px; color: var(--text-2); font-weight: 500; }
.qa-text.muted-text { color: var(--muted); }
.qa-sub { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.qa .btn.ghost { height: 26px; padding: 0 8px; font-size: 12.5px; color: var(--muted); margin-right: -8px; }
.t-empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.narrow-page { max-width: 920px; margin: 0 auto; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 820px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.plan-card .opt-top { flex-wrap: wrap; }
.opt-items.one { grid-template-columns: 1fr; }
.terms.full { max-height: none; margin: 0; background: none; border: 0; padding: 0; gap: 16px; }
.views-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.empty { text-align: center; padding: 64px 24px; }
.empty-icon { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; margin: 0 auto 16px; color: var(--muted); }
.empty h3 { font-size: 15px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 20px; }
input[type=text], input[type=url], input[type=number], input[type=date], textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 7px; padding: 0 11px; height: 36px;
  box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.55; }
select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.field { display: grid; gap: 6px; align-content: start; }
.label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.opt-label { color: var(--faint); font-weight: 400; margin-left: 6px; font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 20px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.seg { display: inline-flex; padding: 2px; background: var(--subtle); border: 1px solid var(--border); border-radius: 8px; height: 36px; }
.seg-item { display: grid; place-items: center; padding: 0 14px; border-radius: 6px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.seg-item input { display: none; }
button.seg-item { border: 0; background: none; }
.seg-item.sel { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .opts.two { grid-template-columns: 1fr; } }
.opt { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .12s, background .12s; }
.opt:hover { border-color: var(--border-strong); }
.opt.sel { border-color: var(--text); box-shadow: 0 0 0 1px var(--text) inset; }
.opt.compact { padding: 12px 14px; align-items: center; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt input:focus-visible ~ .radio, .opt input:focus-visible ~ .box, .checkline input:focus-visible ~ .box { box-shadow: 0 0 0 3px var(--ring); }
.radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none; margin-top: 2px; display: grid; place-items: center; background: var(--surface); }
.opt.compact .radio, .opt.compact .box { margin-top: 0; }
.opt.sel .radio { border-color: var(--text); }
.opt.sel .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--border-strong); flex: none; margin-top: 2px; display: grid; place-items: center; color: transparent; background: var(--surface); }
.opt.sel .box, .checkline input:checked ~ .box { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.opt-body { flex: 1; min-width: 0; }
.opt-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.opt-name { font-weight: 600; }
.opt-price { font-weight: 600; white-space: nowrap; }
.opt-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.opt-items { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
@media (max-width: 640px) { .opt-items { grid-template-columns: 1fr; } }
.opt-items li { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.opt-items .i { color: var(--muted); }
.addon { margin-top: 10px; }
.checkline { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; position: relative; }
.checkline input { position: absolute; opacity: 0; pointer-events: none; }
.checkline .box { margin-top: 0; }
.checkline.long { align-items: flex-start; font-weight: 400; line-height: 1.7; }
.checkline.long .box { flex: none; margin-top: 4px; }
.agree-row + .agree-row { margin-top: 12px; }
.drop { display: grid; justify-items: center; gap: 4px; border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 28px 16px; cursor: pointer; text-align: center; transition: border-color .12s, background .12s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-bg); }
.drop-ic { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--muted); margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.drop-main { font-weight: 500; }
.drop-main u { color: var(--accent); text-decoration: none; margin-left: 2px; }
.drop-sub { color: var(--muted); font-size: 12.5px; }
.files { list-style: none; padding: 0; margin: 16px 0 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.file { display: grid; grid-template-columns: 16px 18px 16px minmax(0, 1fr) 64px 72px 30px; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; background: var(--surface); }
.file:last-child { border-bottom: 0; }
.file:hover { background: var(--subtle); }
.file.dragging { opacity: .4; }
.file.ins-before { box-shadow: 0 2px 0 var(--accent) inset; }
.file.ins-after { box-shadow: 0 -2px 0 var(--accent) inset; }
.files.sorting, .files.sorting * { cursor: grabbing; user-select: none; }
.file { cursor: grab; }
.file .icon-btn { cursor: pointer; }
.grip { color: var(--faint); touch-action: none; }
.file-idx { color: var(--muted); font-size: 12px; text-align: right; }
.file-ic { color: var(--muted); }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: var(--muted); font-size: 12.5px; text-align: right; }
@media (max-width: 520px) {
  .file { grid-template-columns: 16px 16px minmax(0, 1fr) 56px 30px; }
  .file-ic, .file-meta:nth-of-type(6) { display: none; }
  .file > .file-meta:last-of-type { display: none; }
}
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 7px; border: 1px solid var(--border); background: var(--subtle); color: var(--text-2); font-size: 13px; margin-top: 16px; }
.notice .i { margin-top: 2px; color: var(--muted); }
.notice.warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn); }
.notice.warn .i { color: var(--warn); }
.terms { list-style: none; margin: 0 0 16px; padding: 14px 16px; max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 7px; background: var(--subtle); display: grid; gap: 10px; counter-reset: none; }
.terms b { font-size: 13px; font-weight: 600; }
.terms p { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.lines { margin: 0; display: grid; gap: 8px; }
.lines > div { display: flex; justify-content: space-between; gap: 16px; }
.lines dt { color: var(--muted); flex: none; white-space: nowrap; }
.lines dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.lines dd.num { flex: none; white-space: nowrap; }
.lines > div:has(> dd.num) > dt { flex: 0 1 auto; white-space: normal; min-width: 0; }
.lines.boxed { border: 1px solid var(--border); border-radius: 7px; padding: 12px 14px; margin-top: 14px; }
.lines > div.total { padding-top: 8px; font-weight: 600; }
.lines > div.total dt { color: var(--text); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; font-weight: 600; }
.sum-total strong { font-size: 22px; letter-spacing: -.01em; }
.sum-note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; text-align: center; }
.sum-pay { margin: 14px 0; gap: 6px; }
.sum-pay .opt.compact { padding: 9px 12px; gap: 10px; }
.sum-missing { color: var(--muted); font-size: 12.5px; margin-top: 10px; text-align: center; }
.sum-foot { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--faint); font-size: 12px; margin-top: 12px; }
.side-files { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; counter-reset: f; }
.side-files li { display: flex; gap: 8px; counter-increment: f; }
.side-files li::before { content: counter(f); color: var(--faint); width: 14px; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.sf-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-files .num { color: var(--muted); }
.panel-sec h3 .num { font-weight: 400; }
.side-note { color: var(--text-2); font-size: 13px; white-space: pre-wrap; }
.tasks { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 7px; }
.task { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.task:last-child { border-bottom: 0; }
.task-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-strong); flex: none; display: grid; place-items: center; }
.task.done .task-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.task.cur .task-dot { border-color: var(--warn); border-right-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.task-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.todo .task-name { color: var(--muted); }
.task-sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
@media (max-width: 520px) { .task { flex-wrap: wrap; } .task-sub { flex-basis: 100%; padding-left: 28px; white-space: normal; } }
.eta { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 7px; }
.eta .i { color: var(--muted); }
.eta-label { color: var(--muted); font-size: 12.5px; }
.eta-date { font-size: 16px; font-weight: 600; }
.muted-line { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.dl-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 7px; }
.dl-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; }
.dl-list li:last-child { border-bottom: 0; }
.dl-ic { width: 32px; height: 32px; border-radius: 7px; background: var(--subtle); display: grid; place-items: center; color: var(--muted); flex: none; }
.dl-main { flex: 1; min-width: 0; }
.dl-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-meta { color: var(--muted); font-size: 12.5px; }
.link-rows { display: grid; gap: 8px; margin-bottom: 12px; }
.link-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 30px; gap: 8px; align-items: center; }
@media (max-width: 520px) {
  .link-row { grid-template-columns: minmax(0, 1fr) 30px; }
  .link-row select { grid-column: 1 / -1; }
}
.pub-links { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.pub-links li { display: flex; align-items: center; gap: 12px; font-size: 13px; min-width: 0; }
.pub-pf { width: 80px; color: var(--muted); flex: none; }
.pub-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 7px; }
.stat { padding: 14px 16px; min-width: 0; }
.stat:last-child { border-right: 0; }
.stat-label { color: var(--muted); font-size: 12.5px; }
.stat-val { font-size: 20px; font-weight: 600; margin-top: 2px; letter-spacing: -.01em; white-space: nowrap; }
.stat-val small { font-size: 13px; color: var(--muted); font-weight: 400; }
.stat-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.meter { height: 4px; background: var(--border); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--text); }
.meter.hit i { background: var(--ok); }
.views-in { width: 96px !important; height: 30px !important; text-align: right; }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .stat:last-child { border-bottom: 0; }
}
.feed { list-style: none; margin: 0; padding: 8px 20px; }
.feed li { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; font-size: 13px; }
.feed li:last-child { border-bottom: 0; }
.feed-who { flex: none; width: 36px; color: var(--muted); font-size: 12px; }
.feed-who.client { color: var(--accent); }
.feed-text { flex: 1; min-width: 0; color: var(--text-2); }
.feed time { color: var(--faint); font-size: 12px; white-space: nowrap; }
.modal { position: fixed; inset: 0; background: rgba(9, 9, 11, .45); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .12s ease-out; }
.modal[hidden] { display: none; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; width: min(440px, 100%); box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .14s ease-out; }
.modal-box.wide { width: min(680px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px 20px; }
.modal-head h3 { font-size: 15px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-body > p { color: var(--text-2); }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--subtle); border-radius: 0 0 12px 12px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.99); } }
.pay-info { font-size: 13px; }
.pay-amt { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; padding: 14px 0; }
.pay-amt span { color: var(--muted); }
.pay-amt strong { font-size: 24px; letter-spacing: -.01em; }
.pay-methods { display: grid; gap: 8px; }
.pm-ic { color: var(--muted); }
.pay-methods .opt-name { font-weight: 500; }
.toast { position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--primary-fg); padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; z-index: 60; box-shadow: var(--shadow-lg); animation: pop .14s ease-out; }
@media (max-width: 520px) {
  .topbar-in { padding: 0 16px; gap: 8px; }
  .container { padding: 20px 16px 120px; }
  .page-head { flex-wrap: wrap; }
  .order-head .status { margin-top: 0; }
  .panel-head, .panel-body, .panel-foot, .panel-sec { padding-left: 16px; padding-right: 16px; }
  .tabs.inset { margin: 0 -16px 4px; padding: 0 16px; }
  .feed { padding: 4px 16px; }
  .btns { width: 100%; }
  .btns .btn { flex: 1; }
  .panel-foot .foot-note { flex-basis: 100%; }
  .panel-foot > .btn { flex: 1; }
}
.login { min-height: calc(100vh - 160px); display: grid; place-items: center; }
.login-box { width: 100%; max-width: 380px; padding: 32px 28px; text-align: center; }
.login-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 24px; }
.login-box h1 { font-size: 20px; margin-bottom: 6px; }
.login-box p { color: var(--muted); margin-bottom: 24px; }
#who { display: flex; align-items: center; gap: 4px; }
.who-mail { color: var(--muted); font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#who .link-btn { color: var(--muted); margin-left: 0; }
#who .link-btn:hover { color: var(--text); }
@media (max-width: 640px) { .who-mail { display: none; } }
.file-meta.up { color: var(--accent); }
.file-meta.err { color: var(--danger, #dc2626); cursor: help; }
.file.out { grid-template-columns: 16px minmax(0, 1fr) 72px 30px; cursor: default; }
.drop.compact { padding: 18px 16px; }
.drop.compact .drop-ic { margin-bottom: 4px; }
.sf-name.link-btn { margin-left: 0; text-align: left; color: var(--text); font-size: 13px; }
.sf-name.link-btn:hover { color: var(--accent); }
.vplayer { margin-bottom: 16px; border-radius: 8px; background: #0b0b0d; overflow: hidden; }
.vplayer:fullscreen { display: flex; flex-direction: column; justify-content: center; }
.vplayer:fullscreen .player-video { max-height: none; flex: 1; }
.player-video { display: block; width: 100%; max-height: 420px; background: #0b0b0d; cursor: pointer; }
.vbar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; background: var(--surface); }
.vbar-fs { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.vbar-fs:hover { background: var(--hover); color: var(--text); }
.player-video.vertical { width: auto; max-width: 100%; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) {
  .topbar-in { grid-template-columns: auto 1fr auto; gap: 8px; padding: 0 12px 0 16px; }
  .brand-name { display: none; }
  .nav { justify-content: center; }
  .nav a { padding: 6px 8px; }
}
.ws-switch { display: inline-flex; padding: 2px; margin-right: 8px; background: var(--subtle); border: 1px solid var(--border); border-radius: 8px; }
.ws-switch a { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ws-switch a:hover { color: var(--text); }
.ws-switch a.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.ws-admin .topbar { box-shadow: inset 0 2px 0 var(--accent); }
.ws-admin .ws-switch a.on:last-child { color: var(--accent); }
@media (max-width: 820px) { .ws-switch a { padding: 0 8px; } .ws-switch .i { display: none; } }
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.list-bar .pills { margin-bottom: 0; min-width: 0; }
.search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; width: 260px; flex: none; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--muted); box-shadow: var(--shadow-sm); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.search input { border: 0; box-shadow: none; padding: 0; height: 100%; background: none; min-width: 0; }
.search input:focus { box-shadow: none; }
@media (max-width: 820px) { .list-bar { flex-direction: column-reverse; align-items: stretch; } .search { width: auto; } }
.plist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.plist-head, .proj { display: grid; gap: 0 20px; padding: 0 20px; align-items: center;
  grid-template-columns: minmax(110px, 1fr) minmax(560px, 3fr) 110px 170px 100px 134px; }
.plist-head { height: 38px; color: var(--muted); font-size: 12px; font-weight: 500; background: var(--subtle); border-radius: var(--radius) var(--radius) 0 0; }
.plist-head .h-track { text-align: center; }
.plist-head .h-qa { text-align: right; }
.c-meta { display: contents; }
.proj { min-height: 84px; padding-top: 14px; padding-bottom: 12px; position: relative; cursor: pointer; transition: background .1s; }
.proj:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.proj:hover { background: var(--subtle); }
.proj.need::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.proj > *, .c-meta > * { min-width: 0; }
.c-name, .c-type, .c-date, .c-amt { display: grid; gap: 2px; font-size: 13px; }
.c-name { color: inherit; }
.c-title { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-name:hover .c-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.c-name:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 4px; }
.c-type > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.c-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-name .c-sub { font-size: 11.5px; }
.c-sub.ok { color: var(--ok); }
.c-date > span:first-child, .c-amt > span:first-child { color: var(--text-2); }
.c-date .c-dl { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.c-date .c-dd { color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.due-tag { font-style: normal; font-size: 11px; font-weight: 600; line-height: 18px; padding: 0 7px; border-radius: 999px; white-space: nowrap; color: var(--muted); background: var(--subtle); }
.due-over .due-tag { color: #fff; background: var(--danger); }
.due-over .c-dd, .due-d1 .c-dd { color: var(--danger); }
.due-d1 .due-tag { color: var(--danger); background: var(--danger-bg); }
.due-d3 .c-dd { color: var(--warn); }
.due-d3 .due-tag { color: var(--warn); background: var(--warn-bg); }
.due-d7 .due-tag { color: var(--emph); background: var(--emph-bg); }
.node-date.now-date .due-tag { margin-left: 6px; font-size: 10.5px; line-height: 16px; padding: 0 6px; }
.node.cur .node-date.due-over, .node.cur .node-date.due-d1 { color: var(--danger); }
.node.cur .node-date.due-d3 { color: var(--warn); }
.proj.closed .c-title, .proj.closed .c-meta span:first-child { color: var(--muted); }
a.node-btn { cursor: pointer; }
.plist { container-type: inline-size; }
@container (max-width: 1330px) {
  .plist-head { display: none; }
  .proj, .proj.admin { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name qa" "meta qa" "track track"; gap: 6px 16px; padding: 16px 20px; }
  .c-name { grid-area: name; }
  .c-meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .c-meta > div { display: flex; gap: 6px; align-items: baseline; }
  .c-track { grid-area: track; margin-top: 12px; }
  .qa { grid-area: qa; align-self: start; }
}
@media (max-width: 560px) {
  .proj, .proj.admin { grid-template-columns: 1fr; grid-template-areas: "name" "meta" "track" "qa"; padding: 16px; }
  .c-meta { gap: 2px 14px; }
  .qa { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; margin-top: 6px; }
  .qa .qa-sub { order: -1; }
  .node:not(.cur):not(.rejected) .node-label { visibility: hidden; }
}
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); cursor: pointer; font: inherit; color: inherit; transition: border-color .12s; }
.kpi:hover:not(:disabled) { border-color: var(--border-strong); }
.kpi:disabled { cursor: default; }
.kpi-label { font-size: 12.5px; color: var(--muted); }
.kpi-val { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.kpi-sub { font-size: 12px; color: var(--muted); }
@media (max-width: 820px) { .kpis { grid-template-columns: 1fr 1fr; gap: 8px; } .kpi { padding: 10px 12px; } .kpi-val { font-size: 18px; } .kpi-sub { display: none; } }
.detail-head h1 { font-size: 22px; }
.detail-head .sub { flex-wrap: wrap; gap: 6px 14px; }
.track-panel { padding: 20px 24px 16px; margin-bottom: 20px; }
.track.big { --d: 34px; }
.track.big .node.done .dot { width: 26px; height: 26px; margin: 4px 0; }
.track.big .node.todo .dot { width: 16px; height: 16px; margin: 9px 0; }
.track.big .node-label { font-size: 13px; }
.node-date { font-size: 11.5px; color: var(--faint); margin-top: -4px; white-space: nowrap; }
.node.cur .node-date { color: var(--text-2); font-weight: 600; }
.node.todo .node-date { color: var(--muted); }
.track.big .node.cur .node-btn { cursor: default; }
.dd-sub { display: block; color: var(--muted); font-size: 12px; }
.sub-h.first { margin-top: 0; }
.kv-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border: 1px solid var(--border); border-radius: 7px; }
.kv-row > div { padding: 12px 14px; display: grid; gap: 2px; }
.kv-row > div:last-child { border-right: 0; }
.kv-l { font-size: 12.5px; color: var(--muted); }
.kv-row b { font-size: 20px; font-weight: 600; }
.stage-panel .panel-foot > a.btn:only-child { margin-left: auto; }
.chg-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 7px; max-height: 360px; overflow-y: auto; }
.chg-list li { display: grid; grid-template-columns: 48px 64px minmax(0, 1fr); gap: 10px; padding: 9px 14px; font-size: 13px; }
.chg-list li:last-child { border-bottom: 0; }
.chg-list .mono { color: var(--muted); }
.chg-kind { font-size: 12px; color: var(--muted); }
.chg-list .k-note .chg-kind { color: var(--accent); }
.chg-list .k-del .chg-kind { color: var(--danger); }
.chg-body s { color: var(--faint); margin-right: 8px; }
@media (max-width: 1056px) { .track-panel { overflow-x: auto; } .track.big { min-width: 640px; } }
:root { --c-blue: var(--accent); --c-ring: var(--ring); --c-blue-bg: var(--accent-bg); }
.p-c { --accent: var(--c-blue); --ring: var(--c-ring); --accent-bg: var(--c-blue-bg); }
.p-t { --accent: var(--warn); --ring: color-mix(in srgb, var(--warn) 28%, transparent); --accent-bg: var(--warn-bg, color-mix(in srgb, var(--warn) 12%, var(--surface))); }
.legend { display: inline-flex; gap: 14px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.list-bar > .legend { margin-right: auto; margin-left: 16px; }
.prog-head .legend { margin-left: auto; }
.prog-head .legend + .prog-n { margin-left: 16px; }
@media (max-width: 820px) { .list-bar > .legend { margin: 0; order: -1; } .prog-head .legend { display: none; } }
.head-acts { flex: none; }
.mg-form { display: grid; gap: 14px; }
.mg-form .grid-2 { grid-template-columns: 1fr 1fr; gap: 14px; }
.mg-form .hint { margin: 0; }
.confirm-links { list-style: none; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; display: grid; gap: 6px; font-size: 13px; }
.confirm-links li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.confirm-links span { overflow-wrap: anywhere; color: var(--muted); }
@media (max-width: 640px) { .mg-form .grid-2 { grid-template-columns: 1fr; } .detail-head { flex-wrap: wrap; } }
input[type=date] { color-scheme: light dark; }
.span-2 { grid-column: 1 / -1; }
.field-hint { color: var(--muted); font-size: 12.5px; }
.order-hint { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 14px; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-bg); color: var(--accent); font-size: 13.5px; }
.order-hint b { font-weight: 700; }
.order-hint + .files { margin-top: 8px; }
.ref-link { color: var(--accent); overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 4px; }
.ref-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ref-team { display: block; }
.nw { white-space: nowrap; }
.field input:disabled { opacity: .45; cursor: not-allowed; }
.ac .lines dd { max-width: 70%; }
.ac .sub-h { display: flex; justify-content: space-between; }
.ac .sub-h .num { font-weight: 400; }
.ac-files { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 7px; max-height: 240px; overflow-y: auto; }
.ac-files li { display: grid; grid-template-columns: 22px 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; }
.ac-files li:last-child { border-bottom: 0; }
.ac-files .i { color: var(--muted); }
.ac-n { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; font-size: 11.5px; font-weight: 600; }
.ac-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-files .num:last-child { color: var(--muted); }
.ac .pay-amt { margin-bottom: 0; }
body.doc-page { background: var(--subtle); }
body.doc-page #app.container { max-width: none; padding: 0 0 160px; }
.doc { --doc-w: 880px; }
.doc-head { position: sticky; top: 56px; z-index: 9; background: var(--surface); }
.doc-hin { max-width: calc(var(--doc-w) + 48px); margin: 0 auto; padding: 0 24px; }
.doc-bar { height: 52px; display: flex; align-items: center; gap: 12px; }
.doc-bar .crumb { margin: 0; flex: none; }
.doc-mode { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-bg); padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.doc-acts { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; }
.doc-stat, .doc-save { font-size: 13px; color: var(--muted); white-space: nowrap; }
.doc-save.warn { color: var(--warn); }
.doc-player { height: 48px; display: flex; align-items: center; gap: 12px; }
.dpl-play { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 0; background: var(--primary); color: var(--primary-fg); display: grid; place-items: center; cursor: pointer; }
.dpl-play:hover { background: var(--primary-hover); }
.dpl-play svg { width: 16px; height: 16px; }
.dpl-time { font-size: 13px; min-width: 40px; }
.dpl-time.muted { color: var(--muted); text-align: right; }
.dpl-track { position: relative; flex: 1; height: 24px; cursor: pointer; touch-action: none; }
.dpl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: var(--border); }
.dpl-fill { position: absolute; left: 0; top: 10px; height: 4px; border-radius: 2px; background: var(--accent); width: 0; }
.dpl-knob { position: absolute; top: 5px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); left: 0; box-shadow: var(--shadow-sm); }
.dpl-track:focus-visible { outline: none; }
.dpl-track:focus-visible .dpl-knob { box-shadow: 0 0 0 4px var(--ring); }
.dpl-hover { position: absolute; bottom: 100%; transform: translateX(-50%); padding: 2px 6px; border-radius: 4px; background: var(--primary); color: var(--primary-fg); font-size: 11.5px; pointer-events: none; white-space: nowrap; }
.dpl-speed { height: 30px; min-width: 48px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.dpl-speed:hover { background: var(--hover); }
.dpl-state { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.dpl-state:empty { display: none; }
.doc-paper { max-width: var(--doc-w); margin: 28px auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); padding: 52px 72px 64px 104px; }
.doc-ph { margin-bottom: 32px; padding-bottom: 20px; }
.doc-ph h1 { font-size: 26px; line-height: 1.35; margin: 0 0 10px; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--muted); font-size: 13.5px; }
.doc-meta > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); vertical-align: middle; margin: 0 10px; }
.doc-body { position: relative; font-size: 18px; line-height: 2.1; color: var(--text); font-family: "Noto Sans TC", var(--font); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dp { position: relative; margin: 0 0 1.2em; }
.dp:last-child { margin-bottom: 0; }
.dp-t { position: absolute; left: -84px; top: 0; width: 64px; height: 2.1em; border: 0; background: none; padding: 0; text-align: right; font-size: 12.5px; line-height: 2.1em; color: var(--faint); cursor: pointer; font-family: var(--font); }
.dp-t:hover { color: var(--accent); }
.dl { border-radius: 3px; transition: background .2s; }
.dl.now { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.doc.editable .ch { cursor: text; }
.doc.ro .ch { cursor: pointer; }
.ch { padding: 2px 0; }
.ch.now { background: var(--accent); color: #fff; border-radius: 2px; }
.ch.k-d { color: var(--danger); text-decoration: line-through; text-decoration-thickness: 2px; opacity: .75; }
.ch.k-i { color: var(--ok); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ch.sel, .ch.now.sel { background: #fde047; color: #18181b; opacity: 1; border-radius: 0; }
.ch.sel.k-d { color: #b91c1c; }
.ch.sel.k-i { color: #15803d; }
.doc-edit { position: fixed; z-index: 40; width: min(400px, calc(100vw - 16px)); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 12px; animation: pop .1s ease-out; }
.doc-edit[hidden] { display: none; }
.de-orig { display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--muted); margin-bottom: 8px; min-width: 0; }
.de-l { flex: none; font-size: 12px; font-weight: 600; color: var(--faint); }
.de-o { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.de-o i { font-style: normal; color: var(--faint); }
input.de-in { width: 100%; height: 40px; font-size: 16px; font-family: "Noto Sans TC", var(--font); }
.de-f { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.de-sp { flex: 1; }
.btn.danger-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--danger); }
.btn.danger-ghost:hover { background: color-mix(in srgb, var(--danger) 9%, transparent); }
@media (max-width: 820px) {
  .doc-hin { padding: 0 16px; }
  .doc-bar { gap: 8px; }
  .doc-stat, .doc-save, .dpl-state { display: none; }
  .doc-player { gap: 8px; }
  .doc-paper { margin-top: 0; padding: 24px 16px 40px; border-radius: 0; border-left: 0; border-right: 0; }
  .doc-body { font-size: 17px; }
  .dp-t { position: static; display: block; width: auto; height: auto; line-height: 1.6; text-align: left; }
}
.tm { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.tm-owners { position: sticky; top: 80px; }
.tm-ol { display: grid; padding: 6px; max-height: calc(100vh - 180px); overflow-y: auto; }
.tm-owner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 9px 10px; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer; }
.tm-owner:hover { background: var(--hover); }
.tm-owner.on { background: var(--subtle); box-shadow: inset 2px 0 0 var(--text); }
.tm-on { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-oe { grid-row: 2; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-n { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 12px; color: var(--muted); }
.tm-main { display: grid; gap: 12px; min-width: 0; }
.tm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tm-bar h2 { font-size: 16px; }
input.tm-name { font-weight: 600; height: 34px; padding: 0 10px; margin-left: -10px; max-width: 360px; font-size: 15px; }
.tm-title { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; margin-left: -10px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--text); font: 600 15px/1 var(--font); cursor: pointer; max-width: 100%; min-width: 0; }
.tm-title:hover { border-color: var(--border); background: var(--subtle); }
.tm-pen { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; color: var(--muted); background: var(--subtle); flex: none; }
.tm-title:hover .tm-pen { color: var(--text); background: var(--hover); }
.tm-text { font-size: 13.5px; line-height: 1.7; }
.tm-move { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tm-move .dd { width: 220px; }
@media (max-width: 946px) { .tm { grid-template-columns: 1fr; } .tm-owners { position: static; } .tm-ol { max-height: 240px; } }
.pl-group { display: flex; align-items: baseline; gap: 8px; padding: 14px 20px 8px; background: var(--subtle); font-size: 12.5px; }
.pl-group b { font-weight: 600; color: var(--text); }
.pl-group span { font-weight: 600; color: var(--muted); }
.pl-group small { margin-left: auto; font-size: 12px; color: var(--faint); }
.pl-group.g0 b { color: var(--accent); }
.plist-head + .pl-group { border-radius: 0; }
.plist > .pl-group:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.req { color: var(--danger); margin-left: 3px; font-weight: 600; }
.field-err { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--danger); font-size: 13px; font-weight: 500; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 16%, transparent); }
.panel.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 14%, transparent); }
.panel.invalid .field-err { margin: 0 0 12px; }
.panel.invalid .drop { border-color: color-mix(in srgb, var(--danger) 55%, var(--border-strong)); }
.agree-row.invalid .checkline .box { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 16%, transparent); }
.sum-missing { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; padding: 8px; border: 0; border-radius: 7px; background: color-mix(in srgb, var(--danger) 9%, transparent); color: var(--danger); font: 600 13px/1.4 var(--font); cursor: pointer; }
.sum-missing:hover { background: color-mix(in srgb, var(--danger) 14%, transparent); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.shake { animation: shake .4s ease-in-out .3s; }
.dd, .dp-pick { position: relative; display: inline-flex; min-width: 0; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text); font: 500 13.5px/1 var(--font); cursor: pointer; text-align: left; box-shadow: var(--shadow-sm); }
.dd-btn:hover { background: var(--hover); }
.dd-btn:focus-visible, .dd-btn[aria-expanded=true] { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.dd-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-chev { flex: none; color: var(--muted); transition: transform .12s; }
.dd-btn[aria-expanded=true] .dd-chev { transform: rotate(180deg); }
.dd.block, .dp-pick.block { display: flex; width: 100%; }
.dd.sm .dd-btn { height: 32px; font-size: 13px; }
.dd-menu { position: fixed; z-index: 70; max-height: min(460px, 70vh); overflow-y: auto; padding: 4px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 9px; box-shadow: var(--shadow-lg); animation: pop .1s ease-out; }
.dd-item { display: grid; grid-template-columns: minmax(0, 1fr) 16px; align-items: center; gap: 0 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font: 13.5px/1.35 var(--font); text-align: left; cursor: pointer; }
.dd-item:hover, .dd-item:focus-visible { outline: none; background: var(--hover); }
.dd-item.on { font-weight: 600; }
.dd-item .i { grid-column: 2; grid-row: 1; color: var(--accent); }
.dd-il { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-is { grid-column: 1; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dpc { width: 268px; padding: 10px; }
.dpc-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 13.5px; }
.dpc-h .flip .i { transform: rotate(180deg); }
.dpc-w, .dpc-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dpc-w span { font-size: 11.5px; color: var(--muted); padding: 4px 0; }
.dpc-d { height: 32px; border: 0; border-radius: 6px; background: none; color: var(--text); font: 13px var(--font); cursor: pointer; }
.dpc-d:hover { background: var(--hover); }
.dpc-d.today { box-shadow: inset 0 0 0 1px var(--border-strong); }
.dpc-d.on { background: var(--primary); color: var(--primary-fg); }
.dpc-f { display: flex; justify-content: flex-end; margin-top: 6px; }
.vtip { position: fixed; z-index: 80; max-width: 260px; padding: 5px 9px; border-radius: 6px; background: var(--primary); color: var(--primary-fg); font-size: 12px; line-height: 1.45; pointer-events: none; box-shadow: var(--shadow-lg); animation: fade .1s ease-out; }
.stage-jump { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; font-size: 13px; color: var(--muted); }
.stage-jump .dd { width: 200px; }
.stage-jump .tag { flex: none; }
.chg-box { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 4px; background: color-mix(in srgb, #ef4444 14%, transparent); color: #dc2626; font-size: 12px; font-weight: 600; }
.chg-clip { display: inline-block; margin-right: 8px; padding: 0 6px; border-radius: 4px; background: var(--subtle); color: var(--text); font-size: 12px; font-weight: 600; }
.vp-clips { margin-bottom: 10px; }
.vp-clips .seg-item { border: 0; background: none; font: inherit; font-size: 13px; }
body { font-size: 14px; letter-spacing: -.003em; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.topbar { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.topbar-in { height: 64px; }
.brand { font-size: 16px; font-weight: 700; letter-spacing: .02em; gap: 10px; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; font-size: 13px; position: relative; }
.brand-mark::after { content: ""; position: absolute; right: 3px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--primary); }
.nav { padding: 4px; border-radius: 999px; background: var(--surface); }
.nav a { border-radius: 999px; padding: 7px 16px; transition: color .2s, background .2s; }
.nav a.active { background: var(--primary); color: var(--primary-fg); }
.icon-btn.tb { border-radius: 50%; }
.ws-switch { border: 0; border-radius: 999px; padding: 3px; background: var(--surface); }
.ws-switch a { border-radius: 999px; height: 30px; padding: 0 14px; transition: color .2s, background .2s; }
.ws-switch a.on { background: var(--primary); color: var(--primary-fg); box-shadow: none; }
.ws-admin .ws-switch a.on:last-child { color: var(--primary-fg); background: var(--accent); }
.ws-admin .topbar { box-shadow: inset 0 3px 0 var(--accent); }
.pop { border: 0; border-radius: 16px; padding: 10px; }
.pop-role { border-radius: 999px; padding: 1px 8px; }
.container { padding-top: 36px; }
.page-head { margin-bottom: 28px; }
.page-head .sub { font-size: 13.5px; margin-top: 8px; }
.crumb { font-size: 12.5px; letter-spacing: .02em; transition: color .2s, transform .2s var(--ease); }
.crumb:hover { transform: translateX(-2px); }
.layout { gap: 20px; }
.main, .side { gap: 20px; }
.panel, .plist, .kpi { border: 0; border-radius: var(--radius); box-shadow: none; }
.panel-head { padding: 22px 24px 0; }
.panel-head h2 { font-size: 15px; }
.panel-body { padding: 16px 24px 24px; }
.panel-sec { padding: 4px 24px 24px; }
.panel-sec h3, .sub-h, .label, .kv-l, .stat-label, .kpi-label, .eta-label, .pop-h, .plist-head, .pl-group { letter-spacing: .04em; }
.panel-foot { padding: 14px 24px; border-radius: 0 0 var(--radius) var(--radius); }
.panel.invalid { box-shadow: 0 0 0 2px var(--danger); }
.btn { height: 38px; padding: 0 18px; border-radius: 999px; font-weight: 500; letter-spacing: .005em; transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(.98); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary) 60%, transparent); }
.btn.sm { height: 32px; padding: 0 14px; }
.btn.lg { height: 46px; padding: 0 24px; font-size: 14.5px; }
.btn.ghost:hover:not(:disabled) { transform: none; }
.icon-btn { border-radius: 50%; transition: background .2s, color .2s; }
.link-btn { font-weight: 500; transition: opacity .2s; }
.link-btn:hover { opacity: .75; }
.tag { border-radius: 999px; padding: 2px 10px; }
.pill { height: 34px; padding: 0 16px; border-radius: 999px; transition: background .2s, border-color .2s, color .2s; }
.pill.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill.hot .count { color: var(--accent); }
.pill.on.hot .count { color: inherit; }
.tab { transition: color .2s, border-color .2s; }
.tab.on { border-bottom-color: var(--accent); }
input[type=text], input[type=url], input[type=number], input[type=date], textarea, select { border-radius: var(--r-sm); height: 40px; padding: 0 14px; background: var(--surface); }
textarea { height: auto; padding: 11px 14px; }
.dd-btn { height: 40px; border-radius: var(--r-sm); padding: 0 12px 0 14px; }
.dd.sm .dd-btn { height: 34px; }
.dd-menu { border: 0; border-radius: 14px; padding: 6px; }
.dd-item { border-radius: 8px; }
.dpc-d { border-radius: 50%; }
.search { height: 38px; border-radius: 999px; padding: 0 14px; border-color: transparent; background: var(--surface); }
.seg { border: 0; border-radius: 999px; padding: 3px; height: 38px; background: var(--surface); }
.seg-item { border-radius: 999px; }
.seg-item.sel { background: var(--primary); color: var(--primary-fg); box-shadow: none; }
.seg.block .seg-item.sel { background: var(--primary); }
.opt { border-radius: 14px; background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.opt:hover { transform: translateY(-1px); }
.opt.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.opt.sel .radio { border-color: var(--accent); }
.opt.sel .radio::after { background: var(--accent); }
.drop { border-radius: 14px; transition: border-color .2s, background .2s; }
.drop-ic { border-radius: 50%; border: 0; background: var(--subtle); }
.files, .tasks, .dl-list, .chg-list, .ac-files, .terms, .confirm-links, .lines.boxed, .kv-row, .stats, .eta { border: 0; border-radius: 14px; background: var(--subtle); }
.notice { border: 0; border-radius: 12px; }
.order-hint { border: 0; border-radius: 12px; }
.kpi { padding: 18px 20px; transition: transform .25s var(--ease), background .2s; }
.kpi:hover:not(:disabled) { transform: translateY(-2px); }
.kpi-val { font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-top: 4px; }
.kpi:first-child .kpi-val { color: var(--accent); }
.kv-row b, .stat-val { font-size: 24px; letter-spacing: -.02em; }
.sum-total strong, .pay-amt strong { font-size: 28px; letter-spacing: -.025em; }
.plist { overflow: hidden; }
.plist-head { height: 44px; font-size: 11.5px; background: transparent; color: var(--faint); }
.pl-group { padding: 18px 20px 10px; background: transparent; font-size: 12px; }
.pl-group b { font-size: 13px; }
.pl-group.g0 b { color: var(--accent); }
.proj { min-height: 92px; transition: background .2s; }
.proj:hover { background: var(--subtle); }
.proj.need::before { left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; }
.c-title { font-size: 15px; letter-spacing: -.01em; }
.p-t { --accent: var(--team); --ring: color-mix(in srgb, var(--team) 22%, transparent); --accent-bg: var(--team-bg); }
.node::before { transition: background .3s; }
.node.cur .dot { transition: transform .25s var(--ease); }
.node.cur.p-t .dot::after, .node.cur.mine.p-t .dot::after { background: var(--surface); }
.node.cur.p-t .dot { background: var(--team); border-color: var(--team); }
.node.todo:is(.p-c, .p-t) .dot { border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong)); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.tip { border-radius: 12px; padding: 10px 14px; }
.legend .lg i { box-shadow: 0 0 0 2px var(--surface); }
.modal { background: rgba(14, 12, 10, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s ease-out; }
.modal-box { border: 0; border-radius: 22px; animation: rise .32s var(--ease); }
.modal-head { padding: 18px 16px 6px 24px; }
.modal-head h3 { font-size: 17px; letter-spacing: -.01em; }
.modal-body { padding: 16px 24px 24px; }
.modal-foot { padding: 14px 24px; border-radius: 0 0 22px 22px; }
.toast { border-radius: 999px; padding: 11px 20px; animation: rise .3s var(--ease); }
.vtip { border-radius: 8px; }
.doc-edit { border: 0; border-radius: 16px; animation: rise .22s var(--ease); }
body.doc-page { background: var(--bg); }
.doc-head { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); top: 64px; }
.doc-paper { border: 0; border-radius: 20px; box-shadow: none; }
.doc-mode { border-radius: 999px; padding: 3px 10px; }
.dpl-speed { border-radius: 999px; }
.ch.now { color: #fff; }
.vplayer { border-radius: 16px; background: var(--subtle); }
.vbar { background: var(--surface); }
.tm-owner { border-radius: 10px; transition: background .2s; }
.tm-owner.on { box-shadow: inset 3px 0 0 var(--accent); }
.tm-title, .tm-pen { border-radius: 999px; }
.login-box h1 { font-size: 28px; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
#app.enter > *, .enter .main > *, .enter .side > * { animation: rise .5s var(--ease) both; }
.enter .main > :nth-child(2), .enter .side > :nth-child(1) { animation-delay: .05s; }
.enter .main > :nth-child(3), .enter .side > :nth-child(2) { animation-delay: .1s; }
.enter .main > :nth-child(n+4), .enter .side > :nth-child(n+3) { animation-delay: .15s; }
.enter .plist > .proj { animation: rise .45s var(--ease) both; }
.enter .plist > .proj:nth-child(2) { animation-delay: .03s; } .enter .plist > .proj:nth-child(3) { animation-delay: .06s; }
.enter .plist > .proj:nth-child(4) { animation-delay: .09s; } .enter .plist > .proj:nth-child(5) { animation-delay: .12s; }
.enter .plist > .proj:nth-child(6) { animation-delay: .15s; } .enter .plist > .proj:nth-child(n+7) { animation-delay: .18s; }
.enter .kpis > .kpi { animation: rise .45s var(--ease) both; }
.enter .kpis > .kpi:nth-child(2) { animation-delay: .04s; } .enter .kpis > .kpi:nth-child(3) { animation-delay: .08s; } .enter .kpis > .kpi:nth-child(4) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
@media (max-width: 600px) {
  .nav { padding: 3px; }
  .nav a { padding: 6px 10px; font-size: 13px; }
  .topbar-right { gap: 0; }
}
@media (max-width: 520px) {
  h1 { font-size: 24px; }
  .panel-head, .panel-body, .panel-foot, .panel-sec { padding-left: 16px; padding-right: 16px; }
  .container { padding-top: 24px; }
}
.opt.plan-opt .opt-items { grid-template-columns: 1fr; }
.opt.plan-opt .opt-items li { align-items: flex-start; }
.opt.plan-opt .opt-items li .i { margin-top: 3px; flex: none; }
.opt-code { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.opt-spec { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 13px; color: var(--text); }
.opt-spec span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); margin: 0 14px 3px -8px; vertical-align: middle; }
.src-cap { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--subtle); color: var(--text-2); font-size: 13px; margin-bottom: 14px; }
.src-cap .i { margin-top: 2px; color: var(--muted); flex: none; }
.src-cap.over { background: var(--warn-bg); color: var(--warn); }
.src-cap.over .i { color: var(--warn); }
.tier-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tier-list li { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; padding: 10px 12px; border-radius: 10px; background: var(--subtle); font-size: 13px; color: var(--text-2); }
.tier-list b { color: var(--text); font-weight: 600; }
.ct { color: var(--text-2); font-size: 14px; line-height: 1.75; }
.ct.ct-box { max-height: 340px; overflow-y: auto; padding: 16px 18px; margin-bottom: 16px; border-radius: 14px; background: var(--subtle); font-size: 13px; }
.ct-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0 0 20px; }
.ct-parties div, .ct-sg div { display: flex; gap: 10px; align-items: baseline; }
.ct-parties dt, .ct-sg dt { white-space: nowrap; color: var(--text); font-weight: 500; }
.ct-parties dd, .ct-sg dd { flex: 1; margin: 0; border-bottom: 1px solid var(--border-strong); min-height: 1.4em; }
.ct-art + .ct-art { margin-top: 22px; }
.ct-art h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.ct.ct-box .ct-art h3 { font-size: 14px; }
.ct-art p { margin: 0; }
.ct-art ol { margin: 0; padding-left: 1.6em; display: grid; gap: 8px; }
.ct-art ul { margin: 6px 0 0; padding-left: 1.3em; display: grid; gap: 6px; list-style: disc; }
.ct-art ul ul { list-style: circle; }
.ct-art li { min-width: 0; }
.ct-art b { color: var(--text); font-weight: 600; }
.ct-tw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; align-items: start; margin-top: 10px; }
.ct-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ct-table th, .ct-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ct-table th { color: var(--text); font-weight: 600; }
.ct-table th small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.ct-table th:last-child { width: 30%; }
.ct-table td:nth-child(2n) { color: var(--text); font-weight: 600; white-space: nowrap; }
.ct-sg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ct-sg dl { margin: 0; display: grid; gap: 14px; }
.ct-date { margin-top: 22px !important; text-align: center; letter-spacing: .1em; }
@media (max-width: 640px) { .ct-parties, .ct-sg, .ct-tw { grid-template-columns: 1fr; } }
.ct-open { display: inline-flex; align-items: center; gap: 4px; }
.free-exit { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.free-exit .link-btn { margin-left: auto; }
.free-exit .link-btn.danger { color: var(--danger); }
.ct-pre { margin: 0 0 20px; }
.ct-order { display: flex; gap: 8px 28px; flex-wrap: wrap; margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 13.5px; }
.ct-order div { display: flex; gap: 10px; }
.ct-order dt { color: var(--muted); }
.ct-order dd { margin: 0; font-weight: 600; }
:root { --radius: 22px; --accent: #e3241b; --brand: #e3241b; --ring: rgba(227, 36, 27, .22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent: #ff3b33; --brand: #ff3b33; --ring: rgba(255, 59, 51, .28); } }
:root[data-theme="dark"] { --accent: #ff3b33; --brand: #ff3b33; --ring: rgba(255, 59, 51, .28); }
body:not(.landing) .container { padding: 40px 40px 120px; }
body:not(.landing) .nav { background: none; padding: 0; gap: 2px; }
body:not(.landing) .nav a { position: relative; padding: 8px 14px; border-radius: 999px; font: 500 14px/1 var(--font); color: var(--text-2); }
body:not(.landing) .nav a:hover { background: var(--surface); color: var(--text); }
body:not(.landing) .nav a.active { background: none; color: var(--text); font-weight: 700; }
body:not(.landing) .nav a.active::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--brand); }
.ws-admin .topbar { box-shadow: none; }
body:not(.landing) .page-head { align-items: flex-end; padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--border-strong); }
body:not(.landing) .page-head h1 { font-size: clamp(30px, 3vw, 46px); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
.page-head .crumb { display: inline-flex; margin-bottom: 12px; }
.page-head .sub { font-size: 14px; }
.ph-n { margin-left: 14px; font: 600 15px/1 var(--font); color: var(--brand); letter-spacing: .02em; vertical-align: .55em; }
.detail-head .sub { margin-top: 12px; }
.panel-head { padding: 24px 26px 0; }
.panel-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.panel-body { padding: 18px 26px 26px; }
.panel-sec { padding: 4px 26px 26px; }
.panel-foot { padding: 16px 26px; }
.track-panel { padding: 24px 26px 20px; margin-bottom: 20px; }
.prog-now { font-size: 22px; letter-spacing: -.015em; }
.btn { font-weight: 600; border: 0; box-shadow: inset 0 0 0 1.5px var(--border-strong); background: transparent; }
.btn:hover:not(:disabled) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: none; }
.btn.primary:hover:not(:disabled) { background: var(--brand); transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--brand); }
.btn.ghost, .btn.danger-ghost { box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: var(--hover); box-shadow: none; }
.btn.danger { color: var(--danger); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 45%, transparent); }
.btn.danger:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--danger); }
.btn.danger-solid { box-shadow: none; }
.btn.lg { height: 50px; padding: 0 26px; font-size: 15px; }
.pill { border: 0; background: var(--surface); font-weight: 600; }
.pill:hover { color: var(--text); }
.pill.on { background: var(--primary); color: var(--primary-fg); }
.pill.on .count { color: inherit; opacity: .7; }
.search { height: 40px; }
.kpi { padding: 22px 24px 20px; }
.kpi-label { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.kpi-val { margin-top: 14px; font: 800 clamp(30px, 2.6vw, 42px)/1 "Archivo", var(--font); font-stretch: 105%; letter-spacing: -.035em; }
.kpi-sub { margin-top: 8px; }
.sum-total strong, .pay-amt strong { font-family: "Archivo", var(--font); font-weight: 800; letter-spacing: -.035em; }
.pl-group { padding: 22px 26px 10px; }
.pl-group b { font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.plist-head, .proj { padding-left: 26px; padding-right: 26px; }
.c-title { font-size: 17px; font-weight: 700; }
.modal-head h3 { font-size: 20px; font-weight: 700; }
.doc-paper { border-radius: 22px; }
.doc-ph h1 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.doc-ph { padding-bottom: 18px; border-bottom: 1px solid var(--border-strong); }
@media (max-width: 820px) {
  body:not(.landing) .container { padding: 24px 16px 96px; }
  body:not(.landing) .page-head { padding-bottom: 16px; margin-bottom: 22px; }
  .panel-head, .panel-body, .panel-foot, .panel-sec, .track-panel { padding-left: 18px; padding-right: 18px; }
  .pl-group, .plist-head, .proj { padding-left: 18px; padding-right: 18px; }
  .ph-n { margin-left: 10px; font-size: 13px; }
}
@media (max-width: 600px) {
  body:not(.landing) .topbar-in { grid-template-columns: auto 1fr; grid-template-rows: 48px 34px; grid-template-areas: "b r" "n n"; height: auto; row-gap: 0; padding: 4px 12px 6px 16px; }
  body:not(.landing) .brand { grid-area: b; }
  body:not(.landing) .topbar-right { grid-area: r; }
  body:not(.landing) .nav { grid-area: n; justify-self: start; margin-left: -10px; }
  body:not(.landing) .nav a { padding: 8px 10px; }
  body:not(.landing) .nav a.active::after { bottom: -1px; }
  .ws-switch a { padding: 0 10px; }
  .doc-head { top: 92px; }
}
@media (min-width: 900px) and (min-height: 560px) { body { zoom: 1.1; } .modal-box { max-height: calc((100vh - 32px) / 1.1); } }
.script-text { white-space: pre-wrap; font-size: 14px; line-height: 1.75; color: var(--text); padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--subtle); max-height: 420px; overflow: auto; }
.script-in { width: 100%; min-height: 300px; line-height: 1.7; }
#f-brief { width: 100%; }
.panel.invalid #f-brief { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 16%, transparent); }
.script-hist { list-style: none; margin: 0; padding: 0; }
.script-hist li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.script-hist li:last-child { border-bottom: 0; }
.script-hist .sh-r { color: var(--muted); font-size: 12px; }
.script-hist time { color: var(--muted); font-size: 12px; }
.addon-more { padding: 14px 16px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--subtle); animation: pop .15s ease-out; }
.addon-more textarea { width: 100%; margin-top: 6px; }
.addon-more.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 16%, transparent); }
.ex-titles { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.ex-titles li b { display: block; font-weight: 600; }
.shot-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.shot-list li { display: flex; justify-content: space-between; gap: 12px; }
* { -webkit-tap-highlight-color: transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); background-clip: padding-box; border: 3px solid transparent; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--faint); }
::-webkit-scrollbar-button { display: none; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; } }
.sup { position: fixed; right: 20px; bottom: 20px; top: 88px; z-index: 45; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 12px; pointer-events: none; }
.sup > * { pointer-events: auto; }
.sup-fab { position: relative; height: 52px; padding: 0 20px 0 16px; border-radius: 26px; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; letter-spacing: .04em;
  background: var(--accent); color: #fff; box-shadow: 0 10px 28px -10px var(--accent), 0 2px 6px rgba(0, 0, 0, .18); transition: transform .2s var(--ease); }
.sup-fab:hover { transform: translateY(-2px); }
.sup-fab:active { transform: scale(.95); }
.sup-fab.x { width: 52px; padding: 0; justify-content: center; }
.sup-dot { position: absolute; top: -2px; right: -2px; width: 13px; height: 13px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2.5px var(--accent); }
.sup-panel { width: 360px; height: 520px; max-height: calc(100% - 64px); min-height: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .25s var(--ease); }
.sup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--border); font-size: 15px; }
.sup-head > div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; }
.sup-hours { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.sup-hours.off { color: var(--faint); }
.sup-keep { margin: 0; padding: 7px 18px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.sup-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sup-empty { margin: auto; color: var(--faint); font-size: 13.5px; }
.sup-msg { display: flex; flex-direction: column; max-width: 82%; }
.sup-msg.out { align-self: flex-end; align-items: flex-end; }
.sup-msg.in { align-self: flex-start; }
.sup-b { padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--subtle); color: var(--text); }
.sup-msg.out .sup-b { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.sup-msg.in .sup-b { border-bottom-left-radius: 4px; }
.sup-t { margin-top: 3px; font-size: 11.5px; color: var(--faint); }
.sup-ctx { color: var(--muted); text-decoration: underline; }
.sup-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 10px 14px; border-top: 1px solid var(--border); }
.sup-form textarea { flex: 1; resize: none; min-height: 38px; max-height: 140px; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; scrollbar-width: none; }
.sup-form textarea::-webkit-scrollbar { display: none; }
.sup-send { width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--accent); color: #fff; }
.sup-send:disabled { opacity: .5; cursor: default; }
body.doc-page .sup, .modal:not([hidden]) ~ .sup { display: none; }
@media (max-width: 820px) {
  .sup { right: 16px; bottom: 16px; }
  .sup-fab { height: 48px; padding: 0 16px 0 13px; }
  .sup-fab.x { width: 48px; }
  .sup { top: 72px; }
  .sup-panel { width: calc(100vw - 32px); height: 100%; max-height: calc(100% - 60px); }
}
.nav a .sup-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.sup-seg { margin-bottom: 14px; }
.sup-line-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.sup-line b { font-size: 16px; letter-spacing: .12em; color: var(--text); }
.sup-tbl { overflow: hidden; }
.sup-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 380px); border-top: 1px solid var(--border); }
.sup-row > div { padding: 14px 18px; min-width: 0; }
.sup-row > div + div { border-left: 1px solid var(--border); }
.sup-th { border-top: 0; background: var(--subtle); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sup-th > div { padding-top: 10px; padding-bottom: 10px; }
.sup-row.todo { box-shadow: inset 3px 0 0 var(--accent); }
.sup-who { display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.sup-who b { overflow-wrap: anywhere; }
.sup-mail { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.sup-when { font-size: 12.5px; color: var(--faint); }
.sup-st { align-self: flex-start; margin-top: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; color: var(--muted); background: var(--subtle); }
.sup-st.todo { color: var(--accent); background: var(--accent-bg); font-weight: 600; }
.sup-conv { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.sup-conv .sup-msg { max-width: 88%; }
.sup-conv .sup-b { font-size: 13.5px; }
.sup-reply { display: flex; flex-direction: column; gap: 8px; }
.sup-reply textarea { resize: vertical; min-height: 72px; font-size: 13.5px; }
.sup-acts { display: flex; justify-content: flex-end; gap: 6px; }
.sup-none { margin: 0; padding: 40px 18px; text-align: center; border-top: 1px solid var(--border); }
@media (max-width: 1000px) {
  .sup-row { grid-template-columns: 1fr; }
  .sup-row > div + div { border-left: 0; padding-top: 0; }
  .sup-th { display: none; }
  .sup-tbl .sup-row:nth-child(2) { border-top: 0; }
}
.xd-add { display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; align-items: end; }
.xd-add .field { margin: 0; }
.xd .hint { margin: 10px 0 16px; text-wrap: pretty; }
.xd-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.xd-list li { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.xd-note { overflow-wrap: anywhere; }
@media (max-width: 560px) { .xd-add { grid-template-columns: 1fr; } .xd-list li { grid-template-columns: 1fr auto; } }
.tc-add { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-bottom: 18px; }
.tc-add .btn { gap: 6px; }
.tc-empty { margin: 8px 0 4px; }
.tc-wrap { max-height: min(52vh, 460px); overflow: auto; margin: 0 -4px; padding: 0 4px; }
.tc-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.tc-table th { position: sticky; top: 0; background: var(--surface); text-align: left; font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 0 8px 8px; border-bottom: 1px solid var(--border); }
.tc-table th:nth-child(1) { width: 112px; } .tc-table th:nth-child(3) { width: 34%; } .tc-table th:nth-child(4) { width: 76px; }
.tc-table td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tc-table tr.new td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.tc-code { letter-spacing: .06em; font-weight: 600; white-space: nowrap; }
.tc-table .tc-name { width: 100%; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px; background: none; font: inherit; color: inherit; }
.tc-table .tc-name:hover { border-color: var(--border); }
.tc-table .tc-name:focus { border-color: var(--text); background: var(--bg); outline: none; }
.tc-st small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-st small a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.tc-badge { display: inline-block; font-size: 12.5px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); }
.tc-badge.used { background: var(--bg); color: var(--muted); }
.tc-act { text-align: right; white-space: nowrap; }
.tc-act .icon-btn { display: inline-grid; }
.tc-code-big { font-size: 22px; font-weight: 600; letter-spacing: .08em; margin: 0 0 14px; }
.tc-diff { width: 100%; border-collapse: collapse; font-size: 14px; }
.tc-diff th, .tc-diff td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.tc-diff thead th { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.tc-diff tbody th { font-weight: 500; color: var(--text-2); white-space: nowrap; width: 112px; }
.tc-diff td:nth-child(2) { color: var(--muted); }
.tc-diff td:nth-child(3) { font-weight: 600; }
.tc-note { margin: 12px 0 0; font-size: 13px; }
.code-row input.err { border-color: var(--danger, #d92d20); }
.code-err { margin: 6px 0 0; font-size: 13px; color: var(--danger, #d92d20); }
.login-legal { display: flex; justify-content: center; gap: 18px; margin: 18px 0 0 !important; font-size: 13px; }
.login-legal a { color: var(--muted); }
@media (max-width: 560px) { .tc-table th:nth-child(3) { width: 30%; } .tc-table th:nth-child(1) { width: 96px; } }
.code-row { display: flex; gap: 8px; margin-top: 14px; }
.code-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.code-row input::placeholder { text-transform: none; letter-spacing: 0; }
.code-on { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 7px; font-size: 13.5px; }
.code-on > span { flex: 1; }
.code-on .i { color: var(--ok, currentColor); flex: none; }
.tc-diff .link-btn { white-space: nowrap; }
.site-ft { border-top: 1px solid var(--border); }
.site-ft-in { max-width: 1440px; margin: 0 auto; padding: 22px 40px 28px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.site-ft nav { display: flex; gap: 22px; }
.site-ft a { color: inherit; }
.site-ft a:hover { color: var(--text); }
@media (max-width: 820px) { .site-ft-in { padding: 18px 16px 24px; gap: 10px 22px; } }
html { min-height: 100%; display: flex; flex-direction: column; }
body { flex: 1 0 auto; display: flex; flex-direction: column; }
#app.container { flex: 1 0 auto; width: 100%; }
.site-ft { flex: none; }
@media (max-width: 600px) { .list-bar .pills { flex-wrap: wrap; overflow: visible; } }
.track.big .node-date.now-date { display: none; }
.track-now-m { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.track-now-m .due-tag { font-size: 11px; }
@media (max-width: 820px) {
  .track-panel { overflow: visible; }
  .track.big { min-width: 0; --d: 26px; }
  .track.big .node-label, .track.big .node-date { display: none; }
  .track.big .node.done .dot { width: 20px; height: 20px; margin: 3px 0; }
  .track.big .node.todo .dot { width: 12px; height: 12px; margin: 7px 0; }
  .stage-jump { white-space: nowrap; }
  .stage-jump .dd { width: auto; flex: 1; min-width: 0; }
}
@media (min-width: 821px) { body:not(.landing) .topbar-in { padding: 0 40px; } }
@media (max-width: 820px) { .site-ft-in { padding-right: 132px; } }
.style-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.style-card { position: relative; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: border-color .15s; }
.style-card:hover { border-color: var(--text-2); }
.style-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.style-sel { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; row-gap: 2px; width: 100%; padding: 12px 14px 34px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.style-sel b { font-weight: 600; font-size: 14.5px; }
.style-desc { grid-column: 2; font-size: 13px; color: var(--muted); text-wrap: pretty; }
.style-dot { grid-row: 1; width: 18px; height: 18px; margin-top: 1px; border: 1.5px solid var(--border); border-radius: 50%; display: grid; place-items: center; color: #fff; }
.style-card.on .style-dot { border-color: var(--accent); background: var(--accent); }
.style-card .link-btn { position: absolute; left: 42px; bottom: 10px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.st-add { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; margin-bottom: 18px; }
.st-add .field { margin: 0; }
.st-add .st-desc { grid-column: 1 / -1; }
.st-add .btn { gap: 6px; justify-self: end; grid-column: 1 / -1; }
.xd .xd-list li:has(.link-btn) { grid-template-columns: minmax(90px, auto) 1fr auto auto; }
@media (max-width: 560px) { .st-add { grid-template-columns: 1fr; } }
.xd-list .link-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: 0; }
.style-pick:has(.has-img) { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.style-card.has-img .style-sel { padding-bottom: 12px; }
.style-img { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2, #111); border-radius: 9px 9px 0 0; overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 9; }
.style-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.style-zoom { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; opacity: 0; transition: opacity .15s; }
.style-img:hover .style-zoom, .style-img:focus-visible .style-zoom { opacity: 1; }
@media (hover: none) { .style-zoom { opacity: 1; } }
.style-big { padding-top: 4px; }
.style-big img { display: block; width: 100%; height: auto; border-radius: 8px; }
.st-thumb { padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; }
.st-thumb img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
@media (max-width: 560px) {
  .style-pick:has(.has-img) { grid-template-columns: 1fr 1fr; gap: 8px; }
  .style-card.has-img .style-sel { grid-template-columns: 16px 1fr; column-gap: 7px; padding: 9px 10px; }
  .style-card.has-img .style-sel b { font-size: 13.5px; }
  .style-card.has-img .style-desc { grid-column: 1 / -1; font-size: 12px; }
  .style-card.has-img .style-dot { width: 16px; height: 16px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .topbar-in { height: 52px; }
  body:not(.landing) .container { padding-top: 18px; }
  body:not(.landing) .page-head { margin-bottom: 18px; padding-bottom: 12px; }
  body:not(.landing) .page-head h1 { font-size: 26px; }
  .sup { top: 8px; bottom: 10px; right: 12px; gap: 8px; }
  .sup-panel { height: calc(100% - 52px); max-height: none; }
  .sup-head { padding-top: 8px; padding-bottom: 8px; }
  .sup-fab { height: 44px; padding: 0 14px 0 12px; font-size: 14px; }
  .sup-fab.x { width: 44px; }
  .modal { padding: 8px; }
  .modal-box { max-height: calc(100vh - 16px); }
  .style-big img { width: auto; max-width: 100%; max-height: calc(100vh - 110px); margin: 0 auto; }
}
