/* Inventory Clerk Skills Check
   Layout: a test shell like a pick ticket (sticky header with the clock), with a task pane beside an embedded workbook for the Excel parts.
   Answer fields are marked like spreadsheet input cells. */
:root {
  --bg: #eef1f4; --surface: #ffffff; --surface-2: #f6f8fa; --ink: #18212b; --muted: #5a6673; --line: #d5dbe2;
  --accent: #e8b400; --accent-ink: #2a2100; --cell: #fff4c2; --cell-line: #d9b84a;
  --action: #1f3a52; --action-ink: #ffffff; --good: #1d7a46; --good-bg: #e3f3ea; --warn: #8a5800; --warn-bg: #fdf0d6; --bad: #b3261e; --bad-bg: #fbe5e3;
  /* workbook */
  --g-bg: #ffffff; --g-head: #f3f4f6; --g-head-on: #dfe7e2; --g-head-ink: #444b53; --g-line: #e2e5e9; --g-ink: #1b1f24; --g-sel: #1e7145; --g-sel-fill: rgba(30,113,69,.10); --g-y: #fff2b3; --g-pv: #f2f6fb; --g-pvh: #dde7f3; --g-pvt: #e9eef5;
  --display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif; --body: "Source Sans 3", "Segoe UI", Arial, sans-serif; --mono: "JetBrains Mono", Consolas, monospace; --grid-font: "Segoe UI", Calibri, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #11161c; --surface: #19212a; --surface-2: #1f2832; --ink: #e7ecf1; --muted: #9aa7b4; --line: #2e3a46;
  --accent: #f2c230; --accent-ink: #231b00; --cell: #3a3216; --cell-line: #8a7322;
  --action: #d7e4ef; --action-ink: #10202e; --good: #6fd39b; --good-bg: #16301f; --warn: #f0b75a; --warn-bg: #33270f; --bad: #ff8a80; --bad-bg: #3a1a18;
  --g-bg: #1a1f25; --g-head: #232a32; --g-head-on: #2c3d33; --g-head-ink: #b6c0ca; --g-line: #2c343d; --g-ink: #e5e9ee; --g-sel: #4cc38a; --g-sel-fill: rgba(76,195,138,.14); --g-y: #4a4120; --g-pv: #1f2833; --g-pvh: #273546; --g-pvt: #243040;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #11161c; --surface: #19212a; --surface-2: #1f2832; --ink: #e7ecf1; --muted: #9aa7b4; --line: #2e3a46;
  --accent: #f2c230; --accent-ink: #231b00; --cell: #3a3216; --cell-line: #8a7322;
  --action: #d7e4ef; --action-ink: #10202e; --good: #6fd39b; --good-bg: #16301f; --warn: #f0b75a; --warn-bg: #33270f; --bad: #ff8a80; --bad-bg: #3a1a18;
  --g-bg: #1a1f25; --g-head: #232a32; --g-head-on: #2c3d33; --g-head-ink: #b6c0ca; --g-line: #2c343d; --g-ink: #e5e9ee; --g-sel: #4cc38a; --g-sel-fill: rgba(76,195,138,.14); --g-y: #4a4120; --g-pv: #1f2833; --g-pvh: #273546; --g-pvt: #243040;
  color-scheme: dark; }

* { box-sizing: border-box }
html, body { height: 100% }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); margin: 0 }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0 }
h1 { font-size: 2rem } h2 { font-size: 1.5rem } h3 { font-size: 1.15rem }
p { margin: 0 }
[hidden] { display: none !important }
.mono { font-family: var(--mono); font-size: .9em }
.wrap { max-width: 880px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.wide { max-width: 1200px }
header.bar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--bg) }
header.bar .inner { display: flex; align-items: center; gap: 12px; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.brand small { font-family: var(--body); font-weight: 400; font-size: .82rem; opacity: .75; letter-spacing: 0; margin-left: 10px }
.clock { font-family: var(--mono); font-size: .95rem; padding: 4px 10px; border-radius: 4px; background: color-mix(in srgb, var(--bg) 16%, transparent); font-variant-numeric: tabular-nums }
.clock.late { background: var(--accent); color: var(--accent-ink) }
main { padding-block: 24px 48px }
.stack { display: flex; flex-direction: column; gap: 16px }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px }
.lede { color: var(--muted); max-width: 65ch }
.eyebrow { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700 }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px }
label.f { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem }
input[type=text], input[type=search], input[type=tel], input[type=email], input[type=date], input[type=password], select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; width: 100% }
textarea { resize: vertical }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px }
.btn { font: 600 1rem var(--body); border-radius: 4px; padding: 10px 18px; border: 1px solid var(--action); background: var(--action); color: var(--action-ink); cursor: pointer }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line) }
.btn.small { padding: 6px 12px; font-size: .88rem }
.btn:disabled { opacity: .5; cursor: not-allowed }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center }
.spacer { flex: 1 }
.qpts { color: var(--muted); font-size: .85rem; font-weight: 400 }
.notice { border-radius: 4px; padding: 10px 14px; font-size: .95rem }
.notice.good { background: var(--good-bg); color: var(--good) } .notice.warn { background: var(--warn-bg); color: var(--warn) } .notice.bad { background: var(--bad-bg); color: var(--bad) }
.callout { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; font-size: .95rem }
.tbl-wrap { overflow-x: auto }
table.t { border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem }
table.t th, table.t td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top }
table.t th { background: var(--surface-2); font-weight: 700 }
table.t td.n, table.t th.n { text-align: right }
.pivot td.lbl { font-weight: 600 } .pivot tr.gt td { font-weight: 700; background: var(--surface-2) }
footer { padding-block: 20px; color: var(--muted); font-size: .85rem }

/* part tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px }
.tab { flex: 0 0 auto; font: 600 .9rem var(--body); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 7px 11px; cursor: pointer; display: flex; gap: 8px; align-items: center }
.tab[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink) }
.tab .cnt { font-family: var(--mono); font-size: .76rem; opacity: .8 }
/* questions */
.q { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--line) }
.qn { font-family: var(--mono); font-size: .78rem; background: var(--accent); color: var(--accent-ink); border-radius: 3px; padding: 2px 6px; height: fit-content; margin-top: 2px }
.qbody { min-width: 0; display: flex; flex-direction: column; gap: 8px }
.cell { background: var(--cell) !important; border: 1px solid var(--cell-line) !important; max-width: 240px; font-variant-numeric: tabular-nums }
.opts { display: flex; flex-direction: column; gap: 6px }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; background: var(--surface) }
.opt:has(input:checked) { background: var(--cell); border-color: var(--cell-line) }
.opt input { margin-top: 5px }
.nav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap }

/* split workspace for the Excel parts */
body.split { overflow: hidden; display: flex; flex-direction: column; height: 100% }
body.split main { padding: 0; flex: 1; min-height: 0 }
.work { display: grid; grid-template-columns: minmax(320px, 400px) 1fr; height: 100%; min-height: 0 }
.taskpane { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--surface) }
.taskpane .tp-head { padding: 12px 16px 8px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px }
.taskpane .tp-body { overflow-y: auto; padding: 4px 16px 16px; flex: 1; min-height: 0 }
.taskpane .tp-foot { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: space-between }
.taskpane .callout { font-size: .9rem; margin-top: 12px }
.taskpane .q { font-size: .95rem }
.bookhost { min-width: 0; min-height: 0; display: flex }
.bookhost > .ms { flex: 1 }
.narrow-warn { display: none }
@media (max-width: 900px) {
  body.split { overflow: auto; display: block; height: auto } body.split main { height: auto }
  .work { grid-template-columns: 1fr; height: auto }
  .bookhost { height: 75vh }
  .taskpane { border-right: 0; border-bottom: 1px solid var(--line) }
  .taskpane .tp-body { max-height: none }
  .narrow-warn { display: block }
}

/* typing */
.passage { font-family: var(--mono); font-size: .95rem; line-height: 1.75; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 14px; user-select: none; -webkit-user-select: none }
.passage .ok { color: var(--good) } .passage .err { background: var(--bad-bg); color: var(--bad) } .passage .cur { border-bottom: 2px solid var(--accent) }
#typeBox { font-family: var(--mono); min-height: 140px }
.stats { display: flex; gap: 22px; flex-wrap: wrap; font-variant-numeric: tabular-nums }
.stat b { display: block; font-family: var(--display); font-size: 1.6rem }
.stat span { color: var(--muted); font-size: .85rem }
/* outlook-style compose */
.mail { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface) }
.mail-top { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--line); flex-wrap: wrap }
.mail-send { background: #0f6cbd; color: #fff; border: 0; border-radius: 4px; font: 600 .95rem var(--body); padding: 8px 18px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center }
.mail-field { display: grid; grid-template-columns: 76px 1fr; align-items: center; border-bottom: 1px solid var(--line) }
.mail-field > span { padding: 8px 10px; color: var(--muted); font-size: .9rem }
.mail-field input { border: 0 !important; border-radius: 0; background: transparent }
.mail-att { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line); min-height: 20px }
.chip { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; background: var(--surface-2) }
.chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1 }
#mailBody { border: 0; border-radius: 0; min-height: 220px; background: transparent }
.picker { border-bottom: 1px solid var(--line); background: var(--surface); padding: 8px }
.picker label { display: flex; gap: 8px; padding: 6px; align-items: center; font-family: var(--mono); font-size: .88rem }
.code-out { font-family: var(--mono); font-size: .8rem; word-break: break-all; background: var(--surface-2); border: 1px dashed var(--cell-line); border-radius: 4px; padding: 12px; max-height: 180px; overflow: auto; user-select: all }
/* grader */
.res-table td, .res-table th { white-space: nowrap }
.res-table tr.click { cursor: pointer }
.res-table tr.click:hover td { background: var(--surface-2) }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap }
.pill.good { background: var(--good-bg); color: var(--good) } .pill.warn { background: var(--warn-bg); color: var(--warn) } .pill.bad { background: var(--bad-bg); color: var(--bad) }
.mark-ok { color: var(--good); font-weight: 700 } .mark-no { color: var(--bad); font-weight: 700 }
.evid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px }
.evid div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; font-size: .9rem }
.evid b { display: block; font-family: var(--display); font-size: 1.25rem }
.replay { height: 520px; display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden }
.replay > .ms { flex: 1 }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important } }

/* ================= MiniSheet ================= */
.ms { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--g-bg); color: var(--g-ink); font: 13px/1.2 var(--grid-font); }
.ms button { font: inherit; color: inherit }
.ms-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
.ms-toolbar { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 8px; background: var(--surface-2); border-bottom: 1px solid var(--line) }
.ms-group { display: flex; gap: 2px; align-items: center; padding-right: 10px; border-right: 1px solid var(--line) }
.ms-group:last-child { border-right: 0 }
.ms-toolbar button { display: inline-flex; gap: 5px; align-items: center; background: transparent; border: 1px solid transparent; border-radius: 4px; padding: 4px 7px; cursor: pointer; color: var(--ink); font-size: 12.5px }
.ms-toolbar button:hover { background: var(--surface); border-color: var(--line) }
.ms-toolbar button[aria-pressed="true"] { background: var(--g-head-on); border-color: var(--g-sel) }
.ms-toolbar select { font: 12.5px var(--grid-font); padding: 3px 6px; width: auto; border-radius: 4px }
.ms { container-type: inline-size }
@container (max-width: 1120px) { .ms-toolbar [data-cmd="undo"] span, .ms-toolbar [data-cmd="redo"] span, .ms-toolbar [data-cmd="help"] span, .ms-toolbar [data-cmd="freeze"] span { display: none } }
@container (max-width: 860px) { .ms-toolbar button span { display: none } }
.ms-fbar { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--g-bg) }
.ms-namebox { width: 96px !important; border: 0 !important; border-right: 1px solid var(--line) !important; border-radius: 0 !important; font: 13px var(--grid-font) !important; padding: 5px 8px !important; background: var(--g-bg) !important; color: var(--g-ink) !important }
.ms-fx { padding: 5px 10px; color: var(--muted); font-style: italic; font-family: Georgia, serif; border-right: 1px solid var(--line) }
.ms-fwrap { flex: 1; position: relative; min-width: 0 }
.ms-formula { width: 100%; border: 0 !important; border-radius: 0 !important; font: 13px var(--grid-font) !important; padding: 5px 8px !important; background: var(--g-bg) !important; color: var(--g-ink) !important }
.ms-body { flex: 1; display: flex; min-height: 0; position: relative }
.ms-scroll { flex: 1; overflow: auto; position: relative; min-width: 0; outline: none }
.ms-grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; user-select: none; -webkit-user-select: none }
.ms-grid th, .ms-grid td { height: 22px; padding: 0 5px; border-right: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); white-space: nowrap; overflow: hidden; text-overflow: clip; position: relative }
.ms-grid td { background: var(--g-bg); color: var(--g-ink); cursor: cell }
.ms-grid thead th { position: sticky; top: 0; z-index: 3; background: var(--g-head); color: var(--g-head-ink); font-weight: 400; text-align: center; font-size: 12px }
.ms-grid th.ms-rh { position: sticky; left: 0; z-index: 2; background: var(--g-head); color: var(--g-head-ink); font-weight: 400; text-align: center; font-size: 12px; cursor: e-resize }
.ms-grid th.ms-corner { left: 0; z-index: 4; cursor: pointer }
.ms-grid thead th.ms-ch { cursor: s-resize }
.ms-grid th.on { background: var(--g-head-on); color: var(--g-sel); font-weight: 700 }
.ms-grid th.ms-rh.ms-filtered { color: #2b63c6 }
.ms-frozen .ms-grid tbody tr:first-child td, .ms-frozen .ms-grid tbody tr:first-child th { position: sticky; top: 23px; z-index: 2; box-shadow: 0 1px 0 var(--g-head-ink) }
.ms-frozen .ms-grid tbody tr:first-child th { z-index: 3 }
.ms-rs { position: absolute; right: -3px; top: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 5 }
td.ms-num { text-align: right; font-variant-numeric: tabular-nums } td.ms-ctr { text-align: center }
td.ms-b { font-weight: 700 } td.ms-i { font-style: italic } td.ms-mut { color: #8a939c }
td.ms-hdr { background: var(--g-head) !important; font-weight: 700 }
td.ms-fill-y { background: var(--g-y) }
td.ms-pv { background: var(--g-pv) } td.ms-pvh { background: var(--g-pvh); font-weight: 700 } td.ms-pvt { background: var(--g-pvt); font-weight: 700 }
td.ms-hasf { padding-right: 20px }
.ms-fbtn { position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; padding: 0; display: grid; place-items: center; border: 1px solid #b9c0c7; border-radius: 2px; background: #fff; color: #444; cursor: pointer }
.ms-fbtn.on { color: #1d5bbf; border-color: #1d5bbf }
.ms-sel { position: absolute; border: 2px solid var(--g-sel); pointer-events: none; z-index: 4 }
.ms-sel.multi { background: var(--g-sel-fill) }
.ms-sel.multi::before { content: ""; position: absolute; left: var(--ax); top: var(--ay); width: var(--aw); height: var(--ah); background: var(--g-bg); opacity: .55 }
.ms-handle { position: absolute; right: -5px; bottom: -5px; width: 8px; height: 8px; background: var(--g-sel); border: 1px solid var(--g-bg); pointer-events: auto; cursor: crosshair }
.ms-copy { position: absolute; border: 2px dashed var(--g-sel); pointer-events: none; z-index: 4; animation: ants 1s linear infinite }
@keyframes ants { 50% { border-color: transparent } }
.ms-point { position: absolute; border: 2px dashed #2b63c6; background: rgba(43,99,198,.08); pointer-events: none; z-index: 4 }
.ms-point.fill { border-color: #8a939c; background: transparent }
.ms-editor { position: absolute; z-index: 6; border: 2px solid var(--g-sel) !important; border-radius: 0 !important; padding: 2px 4px !important; font: 13px var(--grid-font) !important; background: var(--g-bg) !important; color: var(--g-ink) !important; box-shadow: 0 2px 8px rgba(0,0,0,.18); outline: none }
.ms-ac, .ms-hint { position: absolute; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.18); font: 12.5px var(--grid-font); color: var(--ink) }
.ms-hint { pointer-events: none; padding: 4px 8px; font-family: var(--mono); font-size: 11.5px; white-space: nowrap }
.ms-aci { padding: 4px 10px; cursor: pointer } .ms-aci.on, .ms-aci:hover { background: var(--g-head-on) }
.ms-tabs { display: flex; align-items: stretch; border-top: 1px solid var(--line); background: var(--surface-2); min-height: 30px }
.ms-tablist { display: flex; overflow-x: auto }
.ms-tab { border: 0; border-right: 1px solid var(--line); background: transparent; padding: 6px 14px; cursor: pointer; color: var(--muted); font-size: 12.5px; white-space: nowrap }
.ms-tab.on { background: var(--g-bg); color: var(--g-sel); font-weight: 700; box-shadow: inset 0 -3px 0 var(--g-sel) }
.ms-addsheet { border: 0; background: transparent; padding: 0 12px; font-size: 18px; color: var(--muted); cursor: pointer }
.ms-status { display: flex; justify-content: space-between; gap: 12px; padding: 3px 10px; font-size: 12px; background: var(--surface-2); color: var(--muted); border-top: 1px solid var(--line); min-height: 22px; white-space: pre }
.ms-sink { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; resize: none; border: 0; padding: 0 }
.ms-pop { position: absolute; z-index: 40; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.22); max-width: min(360px, calc(100% - 8px)) }
.ms-fm { display: flex; flex-direction: column; padding: 6px; min-width: 250px; gap: 2px; font-size: 13px }
.ms-mi { display: flex; gap: 8px; align-items: center; text-align: left; background: transparent; border: 0; border-radius: 4px; padding: 6px 8px; cursor: pointer; color: var(--ink) }
.ms-mi:hover:not(:disabled), .ms-mi.on { background: var(--g-head-on) } .ms-mi:disabled { opacity: .45; cursor: default }
.ms-fm-sec { padding: 6px 8px 2px; border-top: 1px solid var(--line); margin-top: 4px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px }
.ms-fm-row { display: flex; gap: 4px } .ms-fm-row select { flex: 1.3; font-size: 12.5px; padding: 4px } .ms-fm-row input { flex: 1; font-size: 12.5px; padding: 4px 6px }
.ms-fm-search { font-size: 12.5px !important; padding: 5px 8px !important; margin: 6px 0 4px }
.ms-fm-list { max-height: 210px; overflow-y: auto; border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px }
.ms-fm-list label { display: flex; gap: 6px; align-items: center; padding: 2px 0; white-space: nowrap }
.ms-fm-btns { display: flex; gap: 6px; justify-content: flex-end; padding-top: 8px }
.ms-btn { border: 1px solid var(--action); background: var(--action); color: var(--action-ink) !important; border-radius: 4px; padding: 5px 14px; cursor: pointer; font-weight: 600 }
.ms-btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--line) } .ms-btn.danger { background: var(--bad); border-color: var(--bad); color: #fff !important }
.ms-dlg { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 300px; font-size: 13px }
.ms-dlg h4 { margin: 0; font: 700 1.05rem var(--display) }
.ms-dlg label { display: flex; flex-direction: column; gap: 4px; font-weight: 600 }
.ms-dlg input { font: 13px var(--mono) !important; padding: 6px 8px !important }
.ms-note { color: var(--muted); font-size: 12px } .ms-err { color: var(--bad); font-size: 12px }
.ms-keys td { padding: 3px 8px 3px 0; font-size: 12.5px } .ms-keys kbd { font-family: var(--mono); font-size: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; white-space: nowrap }
.ms-toast { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 4px; font-size: 13px; max-width: 80% }
.ms-pane { width: 250px; flex: 0 0 250px; border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink) }
.ms-pane-h { display: flex; justify-content: space-between; align-items: center }
.ms-x { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--muted) }
.ms-fields { border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; max-height: 200px; overflow-y: auto }
.ms-field { display: flex; gap: 6px; align-items: center; padding: 3px 2px; cursor: grab }
.ms-zones { display: grid; grid-template-columns: 1fr; gap: 6px }
.ms-zone { border: 1px dashed var(--line); border-radius: 4px; min-height: 52px; padding: 4px 6px 6px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-2) }
.ms-zone.over { border-color: var(--g-sel); background: var(--g-head-on) }
.ms-zl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700 }
.ms-chip { display: flex; justify-content: space-between; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 3px 4px 3px 8px; cursor: grab }
.ms-chip button { border: 0; background: transparent; cursor: pointer; padding: 0 4px; color: var(--muted) }
.ms-ro .ms-handle { display: none }

#detail > .panel { scroll-margin-top: 64px }
.taskpane .tab { padding: 6px 9px; font-size: .84rem }
.helprow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem }
.helptag { font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn) }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem }
