/* OMS redesign components — the Claude Design canvas styles, scoped under .rd so they never touch old screens.
   Generated from the canvas oms.css. Wrap new layouts in <div class="rd">. */
.rd{--bg:#F3F4F8;--surface:#FFFFFF;--sunk:#F7F8FB;--line:#E4E7EF;--line-2:#D3D7E4;--ink:#1F2340;--ink-2:#454A68;--muted:#62678A;--nav:#202944;--nav-2:#36415B;--nav-ink:#CBD1DE;--accent:#3D4EE8;--accent-soft:#ECEEFD;--ok:#157A4A;--ok-soft:#E3F5EC;--warn:#8A5300;--warn-soft:#FFF1D6;--bad:#C0283A;--bad-soft:#FDE7EA;--banner:#202944}
.rd, .rd *{box-sizing:border-box}
.rd{margin:0;font-family:"Plus Jakarta Sans",-apple-system,"Segoe UI",sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
.rd a{color:var(--accent);text-decoration:none}
.rd a:hover{color:#2A37B8}
.rd .app{display:grid;grid-template-columns:236px minmax(0,1fr);background:var(--bg);overflow:hidden;font-size:14px}
.rd .side{background:var(--nav);color:var(--nav-ink);display:flex;flex-direction:column;padding:18px 12px;gap:16px;overflow:hidden}
.rd .brand{display:flex;align-items:center;gap:10px;padding:2px 8px 6px;color:#fff;font-weight:800;font-size:15px}
.rd .logo-slot{width:34px;height:34px;border-radius:9px;border:1.5px dashed rgba(255,255,255,.4);display:grid;place-items:center;font-size:8px;font-weight:800;letter-spacing:.06em;color:rgba(255,255,255,.7);flex:none}
.rd .brand small{display:block;font-size:11px;font-weight:600;color:rgba(205,209,242,.7)}
.rd .navgrp{display:flex;flex-direction:column;gap:1px}
.rd .navgrp h6{margin:0 0 4px;padding:0 10px;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:rgba(205,209,242,.6);font-weight:700}
.rd .nav{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:9px;color:var(--nav-ink);font-weight:600;font-size:13.5px}
.rd .nav:hover{color:#fff;background:rgba(255,255,255,.06)}
.rd .nav svg{width:17px;height:17px;flex:none;opacity:.85}
.rd .nav.on{background:var(--nav-2);color:#fff;box-shadow:inset 3px 0 0 #8C97FF}
.rd .nav .n{margin-left:auto;font-size:11px;font-weight:700;background:rgba(255,255,255,.12);color:#fff;border-radius:999px;padding:1px 7px}
.rd .nav .n.hot{background:#FF8A97;color:#202944}
.rd .nav .zh{display:block;font-size:11px;font-weight:500;color:rgba(205,209,242,.65);line-height:1.2}
.rd .me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 8px 0;border-top:1px solid rgba(255,255,255,.1);font-size:13px;color:#fff;font-weight:700}
.rd .me small{display:block;font-size:11.5px;font-weight:500;color:rgba(205,209,242,.7)}
.rd .av{width:30px;height:30px;border-radius:50%;background:#3A418A;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800;flex:none}
.rd .av.f{background:#0F766E}
.rd .av.c{background:#9D174D}
.rd .main{display:flex;flex-direction:column;min-width:0;overflow:hidden}
.rd .top{height:60px;flex:none;display:flex;align-items:center;gap:12px;padding:0 28px;border-bottom:1px solid var(--line);background:var(--surface)}
.rd .search{flex:1;max-width:540px;display:flex;align-items:center;gap:8px;height:36px;padding:0 12px;border:1px solid var(--line-2);border-radius:9px;background:var(--sunk);color:var(--muted);font-size:13px}
.rd .search svg{width:16px;height:16px}
.rd .kbd{margin-left:auto;font-size:11px;border:1px solid var(--line-2);border-radius:5px;padding:0 5px;background:#fff}
.rd .iconbtn{width:36px;height:36px;border-radius:9px;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;color:var(--ink-2);position:relative;padding:0}
.rd .iconbtn svg{width:17px;height:17px}
.rd .dot{position:absolute;top:6px;right:7px;width:8px;height:8px;border-radius:50%;background:#E0364C;border:2px solid #fff}
.rd .page{padding:24px 28px;display:flex;flex-direction:column;gap:18px;min-height:0;overflow:hidden}
.rd .ph{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.rd .ph h1{margin:0;font-size:24px;letter-spacing:-.02em;font-weight:800;line-height:1.15}
.rd .ph p{margin:4px 0 0;color:var(--muted);font-size:13.5px}
.rd .crumb{font-size:12px;color:var(--muted);font-weight:600;margin-bottom:6px;display:flex;gap:6px;align-items:center}
.rd .row{display:flex;align-items:center;gap:8px}
.rd .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 14px;border-radius:9px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);font-family:inherit;font-size:13.5px;font-weight:700;white-space:nowrap;cursor:pointer}
.rd .btn.pri{background:var(--accent);border-color:var(--accent);color:#fff}
.rd .btn.ok{background:var(--ok);border-color:var(--ok);color:#fff}
.rd .btn.bad{color:var(--bad);border-color:#F0BCC4}
.rd .btn.ghost{border-color:transparent;background:transparent;color:var(--ink-2)}
.rd .btn.sm{height:30px;padding:0 10px;font-size:12.5px}
.rd .btn.lg{height:48px;padding:0 20px;font-size:15px;border-radius:11px}
.rd .btn svg{width:15px;height:15px}
.rd .card{background:var(--surface);border:1px solid var(--line);border-radius:12px}
.rd .ch{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 18px;border-bottom:1px solid var(--line)}
.rd .ch h3{margin:0;font-size:14.5px;font-weight:800}
.rd .ch .muted{font-size:12.5px}
.rd .cb{padding:16px 18px}
.rd .kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.rd .kpi{padding:16px 18px;display:flex;flex-direction:column;gap:4px}
.rd .kpi b{font-size:28px;letter-spacing:-.02em;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.15}
.rd .kpi span{font-size:12.5px;color:var(--muted);font-weight:700}
.rd .kpi i{font-style:normal;font-size:12px;font-weight:700}
.rd .tbl{width:100%;border-collapse:collapse;font-size:13.5px}
.rd .tbl th{text-align:left;font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--sunk);white-space:nowrap}
.rd .tbl td{padding:11px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
.rd .tbl tr:last-child td{border-bottom:0}
.rd .tbl tr.sel td{background:#F1F3FF}
.rd .tbl td.strong{font-weight:800}
.rd .num{text-align:right !important;font-variant-numeric:tabular-nums}
.rd .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px}
.rd .pill{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap}
.rd .pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.rd .chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:7px;background:var(--sunk);border:1px solid var(--line);font-size:12px;font-weight:600;color:var(--ink-2);white-space:nowrap}
.rd .chip.acc{background:var(--accent-soft);border-color:transparent;color:#2A37B8}
.rd .seg{display:inline-flex;padding:3px;border-radius:10px;background:#E8EAF2;gap:2px}
.rd .seg a{padding:6px 12px;border-radius:8px;font-size:13px;font-weight:700;color:var(--ink-2);display:flex;gap:6px;align-items:center}
.rd .seg a.on{background:#fff;color:var(--ink);box-shadow:0 1px 2px rgba(20,24,60,.14)}
.rd .seg .c{font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.rd .muted{color:var(--muted)}
.rd .late{color:var(--bad);font-weight:700}
.rd .soon{color:var(--warn);font-weight:700}
.rd .lbl{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:700}
.rd .kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
.rd .kv div{display:flex;flex-direction:column;gap:3px;font-size:13.5px;font-weight:600}
.rd .field{display:flex;flex-direction:column;gap:6px}
.rd .field label{font-size:12.5px;font-weight:700;color:var(--ink-2)}
.rd .input{height:40px;border:1px solid var(--line-2);border-radius:9px;padding:0 12px;font-family:inherit;font-size:14px;color:var(--ink);background:#fff;width:100%}
.rd textarea.input{height:auto;padding:10px 12px;resize:none;line-height:1.45}
.rd .steps{display:flex;gap:6px}
.rd .step{flex:1;display:flex;flex-direction:column;gap:7px;font-size:11.5px;font-weight:600;color:var(--muted)}
.rd .step .bar{height:5px;border-radius:3px;background:#E1E4EE}
.rd .step.done .bar{background:var(--accent)}
.rd .step.cur .bar{background:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.rd .step.cur{color:var(--ink);font-weight:800}
.rd .thumb{border-radius:10px;background:var(--sunk);border:1px solid var(--line);display:grid;place-items:center;flex:none}
.rd .thumb svg{width:70%;height:70%}
.rd .sizes{display:grid;gap:6px}
.rd .sz{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;font-weight:700;color:var(--muted)}
.rd .sz span{width:100%;height:34px;border:1px solid var(--line-2);border-radius:8px;display:grid;place-items:center;font-size:14px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;background:#fff}
.rd .sz span.z{color:#B4B8CC;background:var(--sunk)}
.rd .list{display:flex;flex-direction:column}
.rd .li{display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line)}
.rd .li:last-child{border-bottom:0}
.rd .li .t{font-weight:700;font-size:13.5px}
.rd .li .s{font-size:12.5px;color:var(--muted);margin-top:2px}
.rd .ico{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;flex:none}
.rd .ico svg{width:17px;height:17px}
.rd .bubble{max-width:78%;padding:9px 12px;border-radius:12px 12px 12px 4px;background:var(--sunk);border:1px solid var(--line);font-size:13px;line-height:1.5}
.rd .bubble.me{margin-left:auto;background:var(--accent);border-color:var(--accent);color:#fff;border-radius:12px 12px 4px 12px}
.rd .meta{font-size:11.5px;color:var(--muted);font-weight:600;margin-bottom:4px}
.rd .orig{margin-top:6px;padding-top:6px;border-top:1px dashed var(--line-2);font-size:12px;color:var(--muted)}
.rd .toggle{width:34px;height:20px;border-radius:999px;background:var(--accent);position:relative;flex:none}
.rd .toggle::after{content:"";position:absolute;top:3px;left:17px;width:14px;height:14px;border-radius:50%;background:#fff}
.rd .toggle.off{background:#CDD1DE}
.rd .toggle.off::after{left:3px}
.rd .col{display:flex;flex-direction:column;gap:10px;min-width:0}
.rd .colh{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;padding:0 2px}
.rd .colh .c{margin-left:auto;font-size:12px;color:var(--muted);font-weight:700}
.rd .tile{padding:12px;display:flex;flex-direction:column;gap:10px}
.rd .divider{height:1px;background:var(--line)}
.rd .due{display:flex;flex-direction:column;gap:5px;min-width:120px}
.rd .due-t{font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums}
.rd .due-bar{display:block;height:6px;border-radius:3px;background:#E6E8F0;overflow:hidden}
.rd .due-bar i{display:block;height:100%;border-radius:3px}
.rd .due.green .due-t{color:var(--ok)}
.rd .due.green i{background:#22A06B}
.rd .due.amber .due-t{color:var(--warn)}
.rd .due.amber i{background:#E8A21A}
.rd .due.red .due-t{color:var(--bad)}
.rd .due.red i{background:#E5484D}
.rd .due.late .due-t{color:var(--bad)}
.rd .due.late i{background:repeating-linear-gradient(135deg,#C0283A 0 6px,#E5484D 6px 12px)}
.rd .ws-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.rd .ws-head h1{margin:0;font-size:24px;letter-spacing:-.02em;font-weight:800}
.rd .ref{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;font-weight:700;background:var(--ink);color:#fff;border-radius:7px;padding:3px 8px}
.rd .save-ok{font-size:12.5px;font-weight:700;color:var(--ok);display:inline-flex;gap:6px;align-items:center}
.rd .quick{display:flex;gap:8px;flex-wrap:wrap}
.rd .quick .btn .c{font-size:11.5px;color:var(--muted);font-weight:700}
.rd .sect{display:flex;flex-direction:column;gap:12px}
.rd .sect h4{margin:0;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800}
.rd .fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.rd .f{display:flex;flex-direction:column;gap:4px;font-size:13.5px;font-weight:600;min-width:0}
.rd .f .lbl{font-size:10.5px}
.rd .f .v{min-height:20px}
.rd .f input.input,
.rd .f select.input{height:34px;font-size:13.5px}
.rd .note-amber{background:var(--warn-soft);color:var(--warn);border-radius:9px;padding:9px 12px;font-size:12.5px;font-weight:600;line-height:1.45}
.rd .note-pink{background:#FCE7F3;color:#9D174D;border-radius:10px;padding:12px 14px;font-size:12.5px;font-weight:600}
.rd .urgent{background:var(--bad-soft);color:var(--bad);border-radius:7px;padding:2px 8px;font-size:11px;font-weight:800;letter-spacing:.04em}
.rd .ftag{display:inline-flex;height:22px;align-items:center;padding:0 8px;border-radius:6px;background:var(--nav);color:#fff;font-size:11.5px;font-weight:800;letter-spacing:.04em}
.rd .pv{overflow:hidden}
.rd .pv-head{display:flex;gap:14px;padding:16px 18px 12px;align-items:flex-start}
.rd .pv-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.rd .pv-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:800;font-size:13.5px;color:var(--accent)}
.rd .pv-desc{font-size:13px;color:var(--ink-2);font-weight:600}
.rd .pv-chips{display:flex;gap:6px;flex-wrap:wrap}
/* Size columns are EQUAL and FILL the row (owner, 25-10-2026; supersedes 24-10's
   fixed 72px + filler cell, which left the table stopping short of its container).
   Fixed layout: the label and Total columns keep their own width and every size
   column takes an equal share of what is left, so a "120" column is never wider
   than a "0" one. A long size run must not squash below ~64px a column (5 digits),
   so the :has() rules further down give the table a min-width by column count and
   its .qwrap scrolls sideways instead. */
.rd .qt{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:13px;font-variant-numeric:tabular-nums}
.rd .qt th{font-size:11px;font-weight:800;color:var(--muted);padding:6px 4px;text-align:center;letter-spacing:.04em}
.rd .qt th:first-child,
.rd .qt td:first-child{text-align:left;width:92px;font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.rd .qt th.tot{width:104px}
.rd .qt td{overflow:hidden;text-overflow:ellipsis}
.rd .qt td{padding:3px 4px;text-align:center}
.rd .qt td .q{display:block;height:32px;line-height:32px;border:1px solid var(--line-2);border-radius:8px;font-weight:800;font-size:14px;background:#fff;color:var(--ink)}
.rd .qt td .q.z{color:#B4B8CC;background:var(--sunk)}
.rd .qt tr.money td{color:var(--ink-2);font-size:12.5px}
.rd .qt td.tot,
.rd .qt th.tot{font-weight:800;color:var(--ink);background:var(--sunk);border-radius:8px}
.rd .pv-body{padding:0 18px 14px;display:flex;flex-direction:column;gap:12px}
.rd .pv-toggle{display:flex;align-items:center;gap:10px;padding:10px 18px;border-top:1px solid var(--line);background:var(--sunk);font-size:13px;font-weight:800;color:var(--ink)}
.rd .pv-toggle .muted{font-weight:600;font-size:12.5px}
.rd .pv-toggle svg{width:16px;height:16px;transition:transform .15s}
.rd .pv-toggle.open svg{transform:rotate(90deg)}
.rd .pv-strip{display:flex;gap:12px;overflow-x:auto;padding:14px 18px 16px;background:var(--sunk);border-top:1px dashed var(--line-2);scroll-snap-type:x mandatory}
.rd .pc{flex:none;width:230px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px;scroll-snap-align:start}
.rd .pc.big{width:260px}
.rd .pc .img{border-radius:9px;background:#F1F2F7;display:grid;place-items:center;aspect-ratio:1/1;overflow:hidden}
.rd .pc .img svg{width:82%;height:82%}
.rd .pc h5{margin:0;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800;display:flex;justify-content:space-between;align-items:center}
.rd .pc .t{font-size:13.5px;font-weight:800}
.rd .pc .s{font-size:12.5px;color:var(--ink-2);line-height:1.45}
.rd .pc .rowkv{display:flex;justify-content:space-between;gap:8px;font-size:12.5px;border-top:1px solid var(--line);padding-top:6px}
.rd .pc .rowkv span:first-child{color:var(--muted);font-weight:600}
.rd .pc .rowkv span:last-child{font-weight:700;text-align:right}
.rd .sw{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700}
.rd .sw i{width:22px;height:22px;border-radius:6px;border:1px solid rgba(20,24,60,.15);flex:none}
.rd .sw small{color:var(--muted);font-weight:600;margin-left:auto;font-family:ui-monospace,Menlo,monospace;font-size:11px}
.rd .pv-foot{display:flex;align-items:center;gap:10px;padding:12px 18px;border-top:1px solid var(--line);font-size:12.5px;flex-wrap:wrap}
.rd .pv-foot input.input{height:32px;width:84px;font-size:13px}
.rd .hint{color:var(--ok);font-weight:700}
.rd .photos{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:#fff;flex-wrap:wrap}
.rd .ph-t{width:52px;height:52px;border-radius:8px;position:relative;border:1px solid var(--line)}
.rd .ph-t b{position:absolute;right:-5px;top:-5px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:10px;color:#fff;border:2px solid #fff}
.rd .stamp{font-size:12px;color:var(--muted);font-weight:600}
.rd .overlay-scrim{position:absolute;inset:0;background:rgba(20,24,45,.45)}
.rd .modal2{position:absolute;background:#fff;border-radius:16px;box-shadow:0 30px 80px -20px rgba(20,24,45,.45);overflow:hidden;display:flex;flex-direction:column}
.rd .sc{border-collapse:collapse;width:100%;font-size:13px;font-variant-numeric:tabular-nums}
.rd .sc th,
.rd .sc td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:center}
.rd .sc th{background:var(--sunk);font-size:11px;letter-spacing:.06em;color:var(--muted);font-weight:800}
.rd .sc td:first-child,
.rd .sc th:first-child{text-align:left;font-weight:700}
.rd .tl{display:flex;flex-direction:column}
.rd .tl .r{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px;align-items:flex-start}
.rd .tl .r:last-child{border-bottom:0}
.rd .tl .ic{width:26px;height:26px;border-radius:8px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:12px;font-weight:800;flex:none}
.rd .att{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:13px}
.rd .att:last-child{border-bottom:0}
.rd .att .ico{width:30px;height:30px}
.rd .set{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:0;flex:1;overflow:hidden}
.rd .set-nav{border-right:1px solid var(--line);background:var(--surface);padding:20px 14px;display:flex;flex-direction:column;gap:16px;overflow:hidden}
.rd .set-nav .search{flex:none;height:34px;max-width:none}
.rd .set-nav h2{margin:0 8px;font-size:20px;font-weight:800;letter-spacing:-.02em}
.rd .set-nav .grp{display:flex;flex-direction:column;gap:1px}
.rd .set-nav .grp span{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:800;padding:0 10px 4px}
.rd .set-nav a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;font-size:13.5px;font-weight:600;color:var(--ink-2)}
.rd .set-nav a svg{width:16px;height:16px;flex:none;color:var(--muted)}
.rd .set-nav a.on{background:var(--accent-soft);color:#2A37B8;font-weight:800}
.rd .set-nav a.on svg{color:var(--accent)}
.rd .set-body{overflow:hidden;padding:28px 40px 100px;display:flex;flex-direction:column;gap:26px;position:relative}
.rd .set-title h1{margin:0;font-size:24px;font-weight:800;letter-spacing:-.02em}
.rd .set-title p{margin:4px 0 0;color:var(--muted);font-size:13.5px;max-width:720px}
.rd .srow{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding-top:22px;border-top:1px solid var(--line)}
.rd .srow>div:first-child p{max-width:760px}
.rd .srow>div:first-child h3{margin:0;font-size:14.5px;font-weight:800}
.rd .srow>div:first-child p{margin:5px 0 0;color:var(--muted);font-size:12.8px;line-height:1.5}
.rd .scard{background:var(--surface);border:1px solid var(--line);border-radius:12px}
.rd .scard .inner{padding:18px;display:flex;flex-direction:column;gap:14px}
.rd .g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.rd .g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.rd .tags{display:flex;flex-wrap:wrap;gap:6px}
.rd .tagx{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 6px 0 10px;border-radius:8px;background:var(--sunk);border:1px solid var(--line);font-size:12.5px;font-weight:700}
.rd .tagx button{border:0;background:none;color:var(--muted);cursor:pointer;padding:0 2px;font-size:14px;line-height:1}
.rd .addrow{display:flex;gap:8px}
.rd .addrow .input{height:34px;font-size:13px}
.rd .savebar{position:absolute;left:24px;right:24px;bottom:20px;display:flex;align-items:center;gap:10px;padding:12px 16px;background:var(--nav);color:#fff;border-radius:12px;box-shadow:0 18px 40px -16px rgba(27,32,82,.6);font-size:13.5px;font-weight:700}
.rd .savebar .btn{height:32px}
.rd .savebar .ghost{color:#CBD1DE}
.rd .swatch-in{display:flex;align-items:center;gap:10px}
.rd .swatch-in i{width:40px;height:40px;border-radius:10px;border:1px solid var(--line)}
.rd .logo-drop{height:110px;border:1.5px dashed var(--line-2);border-radius:12px;display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:13px;font-weight:600;background:var(--sunk)}
.rd .st-dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.rd .health{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:800}
.rd .health.ok{background:var(--ok-soft);color:var(--ok)}
.rd .health.off{background:#EEF0F5;color:var(--muted)}
.rd .health.warn{background:var(--warn-soft);color:var(--warn)}
.rd .cbx{width:16px;height:16px;accent-color:#3D4EE8}
.rd .sbar{display:flex;gap:3px}
.rd .sbar .sg{flex:1;display:flex;flex-direction:column;gap:6px;min-width:0;cursor:pointer;border:0;background:none;padding:0;font-family:inherit;text-align:left}
.rd .sbar .sg i{display:block;height:4px;border-radius:2px;background:#E1E4EE}
.rd .sbar .sg span{font-size:10.5px;font-weight:600;color:var(--muted);line-height:1.2;white-space:normal}
.rd .sbar .sg.cur span{font-weight:800;color:var(--ink)}
.rd .sbar .sg.cur i{height:6px;margin-top:-1px}
.rd .edit-title{display:inline-flex;align-items:center;gap:8px;border-radius:8px;padding:2px 6px;margin-left:-6px}
.rd .edit-title:hover{background:var(--sunk)}
.rd .edit-title svg{width:15px;height:15px;color:var(--muted)}
.rd .gwb{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:7px;background:var(--accent-soft);color:#2A37B8;font-size:12.5px;font-weight:800}
.rd .gwb small{font-size:10px;letter-spacing:.06em;text-transform:uppercase;font-weight:800;opacity:.75}
.rd .col-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.rd .col-h{width:100%;display:flex;align-items:center;gap:10px;padding:13px 16px;border:0;background:none;font-family:inherit;cursor:pointer;text-align:left;color:var(--ink)}
.rd .col-h b{font-size:14px;font-weight:800}
.rd .col-h .sum{margin-left:auto;font-size:12.5px;color:var(--muted);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rd .col-h svg{width:16px;height:16px;color:var(--muted);flex:none;transition:transform .15s}
.rd .col-h.open svg{transform:rotate(90deg)}
.rd .col-b{border-top:1px solid var(--line);padding:14px 16px;display:flex;flex-direction:column;gap:10px;font-size:13.5px}
.rd .qwrap{overflow-x:auto}
/* Same rule as .qt above: fixed, equal size columns (72px), label 96px, Total 112px, ::after filler. */
.rd .qt2{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:6px 4px;font-size:13.5px;font-variant-numeric:tabular-nums;min-width:100%}
.rd .qt2 th{font-size:11.5px;font-weight:800;color:var(--muted);text-align:center;padding:2px 0}
.rd .qt2 th:first-child,
.rd .qt2 td:first-child{text-align:left;width:96px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:800}
.rd .qt2 th.tot{width:112px}
.rd .qt2 td{text-align:center}
.rd .qt2 td:not(:first-child){padding-left:0;padding-right:0}/* the global td padding (9px 12px) left a 72px cell only 48px for its input */
.rd .qt2 .q{display:block;height:38px;line-height:38px;border:1px solid var(--line-2);border-radius:9px;font-weight:800;font-size:15px;background:#fff}
.rd .qt2 .q.z{color:#B4B8CC;background:var(--sunk)}
.rd .qt2 .m{font-size:12.5px;color:var(--ink-2)}
.rd .qt2 .tot{background:var(--sunk);border-radius:9px;font-weight:800;color:var(--ink)}
/* Minimum widths by header-cell count (label + sizes + Total): sizes never under ~64px. */
.rd .qt:has(tr:first-child > :nth-child(6)){min-width:452px}
.rd .qt2:has(tr:first-child > :nth-child(6)){min-width:488px}
.rd .qt:has(tr:first-child > :nth-child(7)){min-width:516px}
.rd .qt2:has(tr:first-child > :nth-child(7)){min-width:558px}
.rd .qt:has(tr:first-child > :nth-child(8)){min-width:580px}
.rd .qt2:has(tr:first-child > :nth-child(8)){min-width:628px}
.rd .qt:has(tr:first-child > :nth-child(9)){min-width:644px}
.rd .qt2:has(tr:first-child > :nth-child(9)){min-width:698px}
.rd .qt:has(tr:first-child > :nth-child(10)){min-width:708px}
.rd .qt2:has(tr:first-child > :nth-child(10)){min-width:768px}
.rd .qt:has(tr:first-child > :nth-child(11)){min-width:772px}
.rd .qt2:has(tr:first-child > :nth-child(11)){min-width:838px}
.rd .qt:has(tr:first-child > :nth-child(12)){min-width:836px}
.rd .qt2:has(tr:first-child > :nth-child(12)){min-width:908px}
.rd .qt:has(tr:first-child > :nth-child(13)){min-width:900px}
.rd .qt2:has(tr:first-child > :nth-child(13)){min-width:978px}
.rd .qt:has(tr:first-child > :nth-child(14)){min-width:964px}
.rd .qt2:has(tr:first-child > :nth-child(14)){min-width:1048px}
.rd .qt:has(tr:first-child > :nth-child(15)){min-width:1028px}
.rd .qt2:has(tr:first-child > :nth-child(15)){min-width:1118px}
.rd .qt:has(tr:first-child > :nth-child(16)){min-width:1092px}
.rd .qt2:has(tr:first-child > :nth-child(16)){min-width:1188px}
.rd .qt:has(tr:first-child > :nth-child(17)){min-width:1156px}
.rd .qt2:has(tr:first-child > :nth-child(17)){min-width:1258px}
.rd .qt:has(tr:first-child > :nth-child(18)){min-width:1220px}
.rd .qt2:has(tr:first-child > :nth-child(18)){min-width:1328px}
.rd .qt:has(tr:first-child > :nth-child(19)){min-width:1284px}
.rd .qt2:has(tr:first-child > :nth-child(19)){min-width:1398px}
.rd .qt:has(tr:first-child > :nth-child(20)){min-width:1348px}
.rd .qt2:has(tr:first-child > :nth-child(20)){min-width:1468px}
.rd .qt:has(tr:first-child > :nth-child(21)){min-width:1412px}
.rd .qt2:has(tr:first-child > :nth-child(21)){min-width:1538px}
.rd .qt:has(tr:first-child > :nth-child(22)){min-width:1476px}
.rd .qt2:has(tr:first-child > :nth-child(22)){min-width:1608px}
.rd .qt:has(tr:first-child > :nth-child(23)){min-width:1540px}
.rd .qt2:has(tr:first-child > :nth-child(23)){min-width:1678px}
.rd .qt:has(tr:first-child > :nth-child(24)){min-width:1604px}
.rd .qt2:has(tr:first-child > :nth-child(24)){min-width:1748px}
.rd .qt:has(tr:first-child > :nth-child(25)){min-width:1668px}
.rd .qt2:has(tr:first-child > :nth-child(25)){min-width:1818px}
.rd .qt:has(tr:first-child > :nth-child(26)){min-width:1732px}
.rd .qt2:has(tr:first-child > :nth-child(26)){min-width:1888px}
.rd .qt:has(tr:first-child > :nth-child(27)){min-width:1796px}
.rd .qt2:has(tr:first-child > :nth-child(27)){min-width:1958px}
.rd .qt:has(tr:first-child > :nth-child(28)){min-width:1860px}
.rd .qt2:has(tr:first-child > :nth-child(28)){min-width:2028px}
.rd .qt:has(tr:first-child > :nth-child(29)){min-width:1924px}
.rd .qt2:has(tr:first-child > :nth-child(29)){min-width:2098px}
.rd .qt:has(tr:first-child > :nth-child(30)){min-width:1988px}
.rd .qt2:has(tr:first-child > :nth-child(30)){min-width:2168px}
.rd .pps-card{border:1px solid #F5C6DD;background:#FFF7FB}
.rd .pps-row{display:grid;grid-template-columns:44px minmax(0,1fr) 110px 90px;gap:12px;align-items:center;padding:10px 0;border-top:1px solid #F5D9E7;font-size:13px}
.rd .s6{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
.rd .s6 .sg{display:flex;flex-direction:column;gap:7px;border:0;background:none;padding:0;font-family:inherit;text-align:left;cursor:pointer;min-width:0}
.rd .s6 .sg i{display:block;height:5px;border-radius:3px;background:#E1E4EE}
.rd .s6 .sg b{font-size:12.5px;font-weight:700;color:var(--muted)}
.rd .s6 .sg small{font-size:11px;color:var(--muted);font-weight:600}
.rd .s6 .sg.cur b{color:var(--ink);font-weight:800}
.rd .stages{display:flex;align-items:stretch;gap:0}
.rd .stg{flex:1;display:flex;flex-direction:column;gap:6px;padding:12px 14px;border:1px solid var(--line);margin-left:-1px;background:#fff;min-width:0;position:relative}
.rd .stg:first-child{border-radius:10px 0 0 10px;margin-left:0}
.rd .stg:last-child{border-radius:0 10px 10px 0}
.rd .stg .n{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800}
.rd .stg .dot{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800;flex:none;border:2px solid var(--line-2);color:var(--muted);background:#fff}
.rd .stg .d{font-size:12px;color:var(--muted);line-height:1.4}
.rd .stg .w{font-size:11.5px;font-weight:700;color:var(--ink-2)}
.rd .stg.done .dot{color:#fff}
.rd .stg.cur{z-index:1}
.rd .stg.next .n{color:var(--muted)}
.rd .map{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.rd .map .mc{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.rd .map .mh{padding:12px 14px;display:flex;flex-direction:column;gap:3px}
.rd .map .ms{padding:10px 14px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:3px}
.rd .map .ms b{font-size:13px}
.rd .map .ms span{font-size:12px;color:var(--muted);line-height:1.4}
.rd .map .ms code{font-size:11px;color:var(--ink-2);background:var(--sunk);border-radius:5px;padding:1px 5px;align-self:flex-start;font-family:ui-monospace,Menlo,monospace}
.rd .wtabs{display:flex;gap:4px;border-bottom:1px solid var(--line-2)}
.rd .wtab{display:inline-flex;align-items:center;gap:8px;padding:11px 16px;border:0;background:none;font-family:inherit;font-size:14px;font-weight:700;color:var(--muted);cursor:pointer;box-shadow:inset 0 -2px 0 transparent;margin-bottom:-1px}
.rd .wtab .c{font-size:11.5px;font-weight:800;background:var(--sunk);border:1px solid var(--line);color:var(--ink-2);border-radius:999px;padding:0 7px}
.rd .wtab.on{color:var(--ink);font-weight:800;box-shadow:inset 0 -2px 0 var(--accent)}
.rd .wtab.on .c{background:var(--accent);border-color:var(--accent);color:#fff}
.rd .dgrid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:18px;align-items:stretch}
.rd .msgcol{display:flex;flex-direction:column;flex:1;min-height:560px}
.rd .ow-page{position:relative}
.rd .ws-head h1.sub{color:var(--muted)}
.rd .menu{position:absolute;right:0;top:44px;width:280px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 44px -12px rgba(27,32,82,.3);padding:6px;z-index:40;display:flex;flex-direction:column}
.rd .menu button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:0;background:none;border-radius:8px;font-family:inherit;font-size:13.5px;font-weight:600;color:var(--ink);text-align:left;cursor:pointer}
.rd .menu button:hover{background:var(--sunk)}
.rd .menu button svg{width:16px;height:16px;color:var(--muted);flex:none}
.rd .menu .sep{height:1px;background:var(--line);margin:6px 4px}
.rd .menu .gl{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800;padding:6px 10px 2px}
.rd .d3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rd .d3 .f{gap:6px}
.rd .d3 .lrow{display:flex;align-items:center;gap:8px;height:20px}
.rd .d3 .input{height:40px}
.rd .d3 .input[readonly]{background:var(--sunk);color:var(--ink-2)}
.rd .tlb{border:1px solid var(--line);border-radius:12px;padding:16px 18px 14px;display:flex;flex-direction:column;gap:12px}
.rd .tlb .top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:16px}
.rd .tlb .top>span:last-child{text-align:right}
.rd .tlb .big{font-size:22px;font-weight:800;letter-spacing:-.02em;color:var(--ok)}
.rd .tlb .trk{position:relative;height:10px;border-radius:5px;background:#E6E8F0;margin:24px 0 28px}
.rd .tlb .fill{position:absolute;left:0;top:0;bottom:0;border-radius:5px;background:#22A06B}
.rd .tlb .band{position:absolute;top:-3px;bottom:-3px;border-radius:4px;background:repeating-linear-gradient(135deg,rgba(232,162,26,.55) 0 5px,rgba(232,162,26,.25) 5px 10px)}
.rd .tlb .mk{position:absolute;top:-4px;width:2px;height:18px;background:var(--ink-2);border-radius:1px}
.rd .tlb .mk.today{width:14px;height:14px;top:-2px;margin-left:-7px;border-radius:50%;background:#fff;border:3px solid #22A06B}
.rd .tlb .lb{position:absolute;font-size:11.5px;font-weight:700;color:var(--ink-2);white-space:nowrap}
.rd .tlb .lb.up{bottom:18px}
.rd .tlb .lb.dn{top:18px}
.rd .tlb .lb.c{transform:translateX(-50%)}
.rd .tlb .lb.r{transform:translateX(-100%)}
.rd .tlb .lb small{color:var(--muted);font-weight:600}
.rd .stg-ov{position:absolute;inset:0;background:rgba(20,24,45,.45);z-index:50;display:flex;justify-content:center;align-items:flex-start;padding-top:150px}
.rd .stg-modal{width:1120px;background:#fff;border-radius:16px;box-shadow:0 30px 80px -20px rgba(20,24,45,.5);overflow:hidden}
.rd .sm-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}
.rd .sm-col{border-right:1px solid var(--line);display:flex;flex-direction:column}
.rd .sm-col:last-child{border-right:0}
.rd .sm-h{padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.rd .sm-st{padding:11px 14px;border-top:1px solid var(--line);display:flex;gap:9px;align-items:flex-start;font-size:12.5px}
.rd .sm-st .ic{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:800;flex:none;border:2px solid var(--line-2);color:var(--muted);margin-top:1px}
.rd .sm-st b{display:block;font-size:12.5px}
.rd .sm-st span{color:var(--muted);font-size:11.5px;font-weight:600}
.rd .sm-st.skip b{color:var(--muted);text-decoration:line-through}
.rd .msgcol .thread{flex:1;overflow:auto;padding:16px 18px;display:flex;flex-direction:column;gap:14px}
.rd .cu-page{position:relative}
.rd .cu-logo{width:64px;height:64px;border-radius:14px;background:#0B2A5B;color:#E2B400;font-weight:800;font-size:20px;display:grid;place-items:center;flex:none}
.rd .swrow{display:flex;gap:8px;flex-wrap:wrap}
.rd .swb{width:34px;height:34px;border-radius:9px;border:2px solid #fff;box-shadow:0 0 0 1px var(--line-2);cursor:pointer;padding:0}
.rd .swb.on{box-shadow:0 0 0 2px var(--accent)}
.rd .banner-prev{border-radius:12px;overflow:hidden;border:1px solid var(--line)}
.rd .banner-prev .bn{height:56px;display:flex;align-items:center;padding:0 16px;gap:10px;color:#fff;font-weight:800}
.rd .banner-prev .bd{padding:12px 16px;font-size:12.5px;color:var(--ink-2);display:flex;flex-direction:column;gap:8px}
.rd .drawer{position:absolute;top:0;right:0;bottom:0;width:520px;background:#fff;border-left:1px solid var(--line);box-shadow:-24px 0 60px -30px rgba(27,32,82,.4);display:flex;flex-direction:column;z-index:30}
.rd .drawer .db{flex:1;overflow:auto;padding:18px 22px;display:flex;flex-direction:column;gap:16px}
.rd .colrow{display:grid;grid-template-columns:34px minmax(0,1fr) 110px 28px;gap:8px;align-items:center}
.rd .colrow i{width:34px;height:34px;border-radius:8px;border:1px solid var(--line-2)}
.rd .avs{display:flex}
.rd .avs .av{width:26px;height:26px;font-size:10px;border:2px solid #fff;margin-left:-6px}
.rd .avs .av:first-child{margin-left:0}
.rd .menu .gl .cond{font-size:10px;letter-spacing:0;text-transform:none;font-weight:600;color:var(--muted);margin-left:4px}
.rd .zhs{display:block;font-size:10.5px;font-weight:600;color:var(--muted)}
.rd .pst{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:999px;font-size:11.5px;font-weight:700}
.rd .pst.active{background:#dcfce7;color:#166534}
.rd .pst.draft{background:#f3f4f6;color:#374151}
.rd .pst.inactive{background:#fee2e2;color:#991b1b}
.rd .ptype{display:inline-flex;height:20px;align-items:center;padding:0 7px;border-radius:6px;font-size:11px;font-weight:800;letter-spacing:.03em}
.rd .ptype.base{background:#E0E7FF;color:#3730A3}
.rd .ptype.cust{background:#FCE7F3;color:#9D174D}
.rd .ptype.stock{background:#CCFBF1;color:#115E59}
.rd .gwx{display:inline-flex;height:18px;align-items:center;padding:0 6px;border-radius:5px;background:var(--bad-soft);color:var(--bad);font-size:10.5px;font-weight:800;margin-left:6px}
.rd .hero2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rd .hero2 .img{border-radius:12px;background:#F1F2F7;aspect-ratio:1/1;display:grid;place-items:center;position:relative;border:1px solid var(--line)}
.rd .hero2 .img svg{width:80%;height:80%}
.rd .hero2 .img span{position:absolute;left:8px;top:8px}
.rd .kvl{display:flex;flex-direction:column}
.rd .kvl div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}
.rd .kvl div:last-child{border-bottom:0}
.rd .kvl span:first-child{color:var(--muted);font-weight:600}
.rd .kvl span:last-child{font-weight:700;text-align:right}
.rd .ptbl input.input,
.rd .ptbl select.input{height:34px;font-size:13px}
.rd .mg-g{color:var(--ok);font-weight:800}
.rd .mg-a{color:var(--warn);font-weight:800}
.rd .mg-r{color:var(--bad);font-weight:800}
.rd .slot{border:1.5px dashed var(--line-2);border-radius:12px;background:var(--sunk);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:12.5px;font-weight:600;aspect-ratio:1/1}
.rd .ftile{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff;position:relative}
.rd .ftile .fi{aspect-ratio:1/1;background:#F1F2F7;display:grid;place-items:center}
.rd .ftile .fi svg{width:72%;height:72%}
.rd .ftile .fm{padding:8px 10px;font-size:12px;display:flex;justify-content:space-between;align-items:center;gap:6px}
.rd .ftile .pos{position:absolute;left:8px;top:8px;background:rgba(20,24,45,.7);color:#fff;border-radius:6px;font-size:11px;font-weight:800;padding:1px 6px}
.rd .ftile .star{position:absolute;right:8px;top:8px;width:26px;height:26px;border-radius:50%;background:#fff;border:1px solid var(--line);display:grid;place-items:center;font-size:13px;color:var(--muted)}
.rd .ftile .star.on{color:#E8A21A}
.rd .sgrid td,
.rd .sgrid th{text-align:center}
.rd .sgrid td:first-child,
.rd .sgrid th:first-child{text-align:left}

/* ---- fixes for existing app markup living inside .rd ---- */
/* the generic notification .dot is absolutely positioned; the stage-card step dots must not be */
.rd .stg .dot{position:static;top:auto;right:auto}
/* .rd .btn resets background; keep the app's own button variants coloured when they appear inside .rd */
.rd .btn.btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}
.rd .btn.btn-success{background:var(--ok);border-color:var(--ok);color:#fff}
.rd .btn.btn-warning{background:#F5C451;border-color:#F5C451;color:#3D2A00}
.rd .btn.btn-danger{background:#fff;border-color:#F0BCC4;color:var(--bad)}
.rd .btn.btn-secondary{background:var(--accent-soft);border-color:transparent;color:#2A37B8}
.rd .btn.btn-sm{height:30px;padding:0 10px;font-size:12.5px}
