:root {
  /* Viakeys brand: black wordmark, red accent (taken from the Viakeys logo and favicon) */
  --brand-black: #0b0b0c; --brand-red: #c81e28; --brand-red-dark: #a30406;
  --ink: #16181c; --muted: #6b6f76; --line: #e4e5e8; --bg: #f5f5f6; --card: #fff;
  --navy: var(--brand-black); --accent: var(--brand-black); --accent-ink: #fff; --link: var(--brand-red-dark);
  --warn: #fff7e6; --warn-line: #f5c26b;
  --ok: #e7f6ec; --ok-ink: #17663a; --err: #fdecec; --err-ink: #a4262c;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: #fff !important; text-decoration: none !important; }
.brand .logo { height: 20px; width: auto; display: block; }
/* Atlas as a Viakeys product (Jaffer, 25 Oct 2026, lockup B): the logo, the Viakeys red square, ATLAS in Space Mono */
.brand .dot { flex: none; width: 6px; height: 6px; background: var(--brand-red); }
.brand small { font-weight: 400; color: #9a9ca3; font-size: 12px; }
main { max-width: 1280px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 15px; margin: 0 0 12px; }
.head { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.head .button { margin-left: auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 0; padding: 16px 18px; margin-bottom: 16px; }
.card.narrow { max-width: 420px; margin: 40px auto; }
.card.warn { background: var(--warn); border-color: var(--warn-line); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; }
.cols .card { margin: 0; }
.cols + * { margin-top: 16px; }
dl { display: grid; grid-template-columns: minmax(140px, 40%) 1fr; gap: 6px 14px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
label { display: block; margin: 12px 0; color: var(--muted); }
input, select, button, .button { font: inherit; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input[type=url], input:not([type]), select {
  display: block; width: 100%; padding: 8px 10px; border: 1px solid #cfd6e0; border-radius: 0; background: #fff; color: var(--ink); margin-top: 4px; }
button, .button { display: inline-block; padding: 8px 14px; border-radius: 0; border: 1px solid #cfd6e0; background: #fff; color: var(--ink); cursor: pointer; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.small { padding: 4px 10px; font-size: 13px; }
button:disabled, button:disabled:hover { opacity: .45; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.searchbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.searchbar input[type=search] { flex: 1 1 320px; width: auto; margin: 0; }
.searchbar select { width: auto; margin: 0; }
/* Tick devices to export from the Devices grid (2 Oct 2026) */
.xlsel { white-space: nowrap; }
.xlsel button.link { color: var(--link); }
table.grid th.pick, table.grid td.pick { width: 30px; padding-right: 0; }
table.grid td.pick label { display: block; margin: -8px 0; padding: 8px 0; cursor: pointer; }
table.grid th.pick input, table.grid td.pick input { margin: 0; cursor: pointer; }
table.grid tr.picked td { background: #fdf3f3; }
.grid { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.grid th { text-align: left; font-weight: 600; color: var(--muted); background: #fafbfc; }
.grid th, .grid td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tbody tr:hover { background: #f7f7f8; cursor: pointer; }
.grid.issues tbody tr:hover { cursor: default; }
.grid.small td { font-size: 13px; }
.num { text-align: right; }
.mono, code { font-family: "Space Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; }
code.ws { white-space: pre-wrap; background: #f1f3f6; padding: 1px 4px; border-radius: 0; }
.muted { color: var(--muted); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 0; font-size: 12px; background: #eef1f5; color: #3b4658; }
.pill.live { background: var(--ok); color: var(--ok-ink); }
.pill.draft, .pill.ready { background: #eaf2ff; color: #1b4fa8; }
.pill.on_hold { background: var(--warn); color: #7a4d00; }
.pill.parked { background: #eceef1; color: #5b6472; }
.bulkpark { display: inline-flex; gap: 6px; align-items: center; }
.bulkpark button { white-space: nowrap; }
.bulkpark input { width: auto; margin: 0; }  /* not the full-width default (Gaps' Park ticked, 25 Oct 2026) */
.pill.discontinued { background: var(--err); color: var(--err-ink); }
.msg { padding: 10px 14px; border-radius: 0; margin-bottom: 12px; background: #eaf2ff; }
.msg.success { background: var(--ok); color: var(--ok-ink); }
.msg.error { background: var(--err); color: var(--err-ink); }
.pager { display: flex; gap: 16px; justify-content: center; margin: 16px 0; }
.crumbs { margin: 0 0 6px; color: var(--muted); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); }
.tabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs a b { margin-left: 4px; }
.actions { white-space: nowrap; }
.actions form { display: inline-flex; gap: 4px; margin: 0 0 4px; }
.actions .dismiss input { width: 170px; padding: 4px 6px; margin: 0; font-size: 13px; }
.bulkbar { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; margin-bottom: 12px; overflow-wrap: anywhere; }
.note .meta { color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.qr { display: flex; justify-content: center; margin: 12px 0; }
.qr svg { width: 200px; height: 200px; }
body.no-copy .grid, body.no-copy dl { user-select: none; -webkit-user-select: none; }
@media (max-width: 700px) {
  dl { grid-template-columns: 1fr; }
  dt { margin-top: 6px; }
  .grid { display: block; overflow-x: auto; }
}
.headactions { margin-left: auto; display: flex; gap: 8px; }
.actionsbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actionsbar form, form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.actionsbar input, form.inline input, form.inline select { width: auto; margin: 0; }
button.danger { border-color: var(--err-ink); color: var(--err-ink); }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 4px 18px; }
.ff label { margin: 8px 0; }
.ff textarea, .noteform textarea, textarea { display: block; width: 100%; padding: 8px 10px; border: 1px solid #cfd6e0; border-radius: 0; font: inherit; margin-top: 4px; }
.ff.bad input, .ff.bad select, .ff.bad textarea { border-color: var(--err-ink); }
.err { color: var(--err-ink); font-size: 13px; }
label.check { display: flex; gap: 8px; align-items: center; color: var(--ink); }
label.check input { width: auto; display: inline; margin: 0; }
.noteform { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.noteform button { white-space: nowrap; }
.scrollx { overflow-x: auto; }
.rowbad { background: var(--err); }
.rowwarn { background: var(--warn); }
.result { min-width: 260px; }
.result input:not([type=checkbox]) { padding: 4px 6px; margin: 4px 0; }
.okline { color: var(--ok-ink); font-weight: 600; }
.warnline { color: #7a4d00; }
.small { font-size: 12px; }
pre.payload { white-space: pre-wrap; font-size: 12px; max-width: 520px; }
.cols-list { columns: 2; font-size: 13px; }
.stockline { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.notedel { display: inline; margin-left: 8px; }

button.primary:hover, .button.primary:hover { background: #26272b; border-color: #26272b; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 1px; }
.tabs a.on { background: var(--brand-black); border-color: var(--brand-black); }
.pill.draft, .pill.ready { background: #f0f0f2; color: #34363b; }
.login { text-align: center; }
.login form { text-align: left; }
.loginbrand { justify-content: center; gap: 12px; margin: 6px 0 14px; color: var(--ink) !important; }
.loginbrand .logo { height: min(24px, 4.8vw); }  /* smaller on phones so the lockup stays inside the card */
.loginbrand .app { font-size: calc(min(24px, 4.8vw) / .71); }
.login .zohobtn { display: block; padding: 12px 14px; margin: 4px 0 12px; text-decoration: none; }  /* Sign in with Zoho (27 Oct 2026) */
.login .loginor { margin: 14px 0 8px; color: var(--muted); font-size: 13px; }
.top .emergencytag { padding: 3px 8px; background: var(--brand-red); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.msg { background: #f0f0f2; }
.grid td a { color: var(--ink); font-weight: 500; }
.grid td a:hover { color: var(--brand-red-dark); }
.homesearch input { width: 340px; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { display: block; color: var(--ink) !important; text-decoration: none !important; margin: 0; }
.kpi:hover { border-color: #c9cacf; }
.kpi-label { color: var(--muted); font-size: 13px; }
.kpi-row { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 12px; }
.kpi-num { font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-delta { font-size: 13px; color: var(--muted); }
.kpi-delta.up { color: var(--ok-ink); } .kpi-delta.down { color: var(--brand-red-dark); }
.kpi-delta span { color: var(--muted); margin-left: 4px; }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 60px; border-bottom: 1px solid var(--line); }
.bar-wrap { flex: 1; display: flex; align-items: flex-end; justify-content: center; height: 100%; position: relative; }
.bar { width: 100%; max-width: 28px; background: #c9cacf; border-radius: 0; }
.bar.now { background: var(--brand-red); }
.bar-wrap:hover .bar { background: #8e9097; } .bar-wrap:hover .bar.now { background: var(--brand-red-dark); }
.bar-wrap .tip { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--brand-black); color: #fff; font-size: 12px; padding: 3px 7px; border-radius: 0; margin-bottom: 4px; }
.bar-wrap:hover .tip { display: block; }
.spark-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 4px; }
table.todo { width: 100%; border-collapse: collapse; }
table.todo td { padding: 7px 0; border-bottom: 1px solid var(--line); }
table.todo tr:last-child td { border-bottom: 0; }
.count { display: inline-block; min-width: 28px; text-align: center; padding: 1px 8px; border-radius: 0; background: #f0f0f2; color: var(--muted); }
.count.has { background: var(--brand-black); color: #fff; }
@media (max-width: 700px) { .homesearch input { width: 100%; } }
table.todo a { color: var(--ink); } table.todo a:hover { color: var(--brand-red-dark); }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; }
.calc { margin: 0; }
.calc .row3, .calc .row2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc .row2 { grid-template-columns: repeat(2, 1fr); }
.calc label { margin: 6px 0; }
.calc .custom-ar { display: none; }
table.out { width: 100%; border-collapse: collapse; margin-top: 10px; }
table.out th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 10px 6px 0; width: 38%; border-top: 1px solid var(--line); }
table.out td { padding: 6px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .calc .row3 { grid-template-columns: 1fr 1fr; } }
.calc label { min-width: 0; }
.calc input, .calc select { display: block; width: 100%; min-width: 0; margin-top: 4px; padding: 8px 10px; border: 1px solid #cfd6e0; border-radius: 0; background: #fff; font: inherit; color: var(--ink); }
h2.section { font-size: 15px; margin: 8px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; margin-bottom: 16px; }
.stats + .stats-note { margin-top: -8px; }  /* the boxes' own space is below them now (24 Oct 2026) */
.stat { display: block; margin: 0; color: var(--ink) !important; text-decoration: none !important; }
a.stat:hover { border-color: #c9cacf; }
.stat .kpi-num { margin-top: 6px; }
.stats-note { margin: 8px 0 16px; }
table.brandbars { width: 100%; border-collapse: collapse; }
table.brandbars td { padding: 4px 0; }
table.brandbars .bname { width: 32%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; padding-right: 10px; }
table.brandbars .bname a { color: var(--ink); }
table.brandbars .btrack { width: 55%; }
table.brandbars .btrack a { display: block; height: 14px; background: #f0f0f2; border-radius: 0; }
table.brandbars .bfill { display: block; height: 100%; background: #8e9097; border-radius: 0; }
table.brandbars tr:hover .bfill { background: var(--brand-red); }
table.brandbars .num { padding-left: 10px; font-variant-numeric: tabular-nums; }
.cols { align-items: start; }
table.todo td.num { white-space: nowrap; padding-left: 10px; }
.vgroup { padding-bottom: 12px; }
.vhead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.vactions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
input.vname { width: 340px; max-width: 100%; margin: 0; }
.pill.warnpill { background: var(--warn); color: #7a4d00; border: 1px solid var(--warn-line); }
.vgroup table { table-layout: fixed; }
.vgroup th:first-child { width: 36px; } .vgroup th:nth-child(2) { width: 100px; } .vgroup th:nth-child(3) { width: 38%; }
.ztask { border-top: 1px solid var(--line); padding: 12px 0; }
.ztask:first-of-type { border-top: 0; padding-top: 0; }
.zhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.ztimes { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); margin-bottom: 8px; }
.ztimes b { color: var(--ink); font-weight: 600; }
.filehead { display: flex; justify-content: space-between; align-items: center; }
.filecols h3 { font-size: 14px; margin: 4px 0 8px; }
.uploadform { display: flex; gap: 8px; align-items: center; margin: 10px 0 6px; flex-wrap: wrap; }
.uploadform input[type=file] { width: auto; margin: 0; flex: 1; min-width: 200px; }
p.wrap { word-break: break-all; }
.pill.familypill { background: #eef0ff; color: #33338a; border: 1px solid #c9cdf5; text-decoration: none; }
a.pill.familypill:hover { background: #e1e4ff; text-decoration: none; }
.pill.small { font-size: 11px; padding: 0 6px; }
tr.thisrow td { background: #f6f7ff; font-weight: 600; }
.nowrap { white-space: nowrap; }
.famactions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-top: 12px; }
.famactions form.inline { display: flex; gap: 8px; align-items: center; }
form.inline input.devpicker { width: 380px; max-width: 100%; }
.srcstrip { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.src { font-size: 12px; padding: 3px 10px; border-radius: 0; background: #f0f0f2; color: var(--muted); }
.src a { color: inherit; }
.src.ok { background: var(--ok); color: var(--ok-ink); }
.src.bad { background: var(--err); color: var(--err-ink); }
.newsitem { display: flex; gap: 14px; margin-bottom: 10px; padding: 14px; }
.newsitem.lead { border-left: 3px solid var(--brand-red); }
.newsitem .thumb { width: 120px; height: 80px; object-fit: cover; border-radius: 0; flex: none; background: #f0f0f2; }
.nbody { flex: 1; min-width: 0; }
.nmeta { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.ntitle { font-size: 15px; font-weight: 600; color: var(--ink) !important; }
.ntitle:hover { color: var(--brand-red-dark) !important; }
.nsum { margin: 4px 0 8px; color: #44464c; font-size: 13px; }
.nfoot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nfoot input.nname { width: 260px; margin: 0; padding: 4px 8px; }
@media (max-width: 700px) { .newsitem .thumb { display: none; } }

/* messages shown inside the block they belong to */
.msg.warning { background: #fff4d6; color: #6b4a00; }
.blockmsg { margin: 0 0 12px; }
[id] { scroll-margin-top: 16px; }
td .blockmsg { margin: 0 0 6px; font-size: 13px; padding: 6px 10px; }

/* file delete: Admin only, opened then confirmed by typing the SKU */
.filedel summary { cursor: pointer; color: var(--muted); list-style: none; }
.filedel summary::-webkit-details-marker { display: none; }
.filedel[open] summary { margin-bottom: 6px; }
.filedel form { display: flex; gap: 6px; justify-content: flex-end; }
.filedel input { width: 150px; margin: 0; }

/* ---- tidy pass, 29 Sep 2026 ---- */
/* Find a device from any page (2 Oct 2026): search box in the top bar with suggestions; on the white top bar
   since the sidebar (23 Oct 2026), opened with Ctrl K or / */
form.gsearch { position: relative; flex: 0 1 440px; min-width: 160px; margin: 0; }
form.gsearch input[type=search] { margin: 0; height: 38px; padding: 8px 64px 8px 34px; border: 1px solid #cfd6e0; color: var(--ink); font-size: 14px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6f76' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat 11px center / 16px 16px; }
form.gsearch input[type=search]::placeholder { color: var(--muted); }
form.gsearch kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; padding: 0 6px; font-size: 12px; line-height: 18px;
  color: var(--muted); border: 1px solid var(--line); border-radius: 0; background: var(--bg); }
form.gsearch input:focus + kbd, form.gsearch input:not(:placeholder-shown) + kbd { display: none; }
form.gsearch ul { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: 420px; max-width: calc(100vw - 32px); margin: 0; padding: 6px;
  list-style: none; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 0; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
form.gsearch li a { display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; border-radius: 0; color: var(--ink) !important; text-decoration: none; }
form.gsearch li.hi a, form.gsearch li a:hover { background: var(--bg); }
form.gsearch li .ref { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
form.gsearch li .name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
form.gsearch li .bname { color: var(--muted); font-size: 12px; white-space: nowrap; }
form.gsearch li .all { color: var(--link); }
form.gsearch li#gs-all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
form.gsearch li.none { padding: 7px 10px; color: var(--muted); }
@media (max-width: 700px) { form.gsearch ul { width: 100%; } form.gsearch kbd { display: none; } }

/* add / edit form: titled sections, labels above inputs, every input full width */
.formsec h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 0 0 4px; }
.formsec .formgrid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 0 18px; }
.formsec .ff { min-width: 0; margin: 10px 0 0; }
.formsec .ff.wide { grid-column: span 2; }
.formsec .ff > label { margin: 0 0 4px; font-size: 13px; }
.formsec .ff input, .formsec .ff select, .formsec .ff textarea { margin-top: 0; }
.formsec .ff textarea { min-height: 40px; resize: vertical; }
.formsec .ff small { display: block; margin-top: 3px; font-size: 12px; }
.formsec .req { color: var(--brand-red); }
.dimrow { display: flex; gap: 8px; }
.dimrow input { flex: 1 1 0; min-width: 0; width: auto !important; margin: 0 !important; }
.checkrow { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.checkrow label.check { margin: 0; }
.formsave { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; margin: 0; border-top: 1px solid var(--line); z-index: 5; }
@media (max-width: 640px) { .formsec .ff.wide { grid-column: auto; } }
/* inline forms never push the page sideways on a phone */
form.inline { flex-wrap: wrap; max-width: 100%; }
form.inline input.devpicker { flex: 1 1 220px; min-width: 0; }
.actionsbar form.inline input { min-width: 0; flex: 1 1 160px; }
main { overflow-x: hidden; }
@media (max-width: 700px) {
  .head h1 { font-size: 19px; }
  .homesearch, .homesearch input { width: 100%; }
  .noteform { flex-direction: column; align-items: stretch; }
}
/* device details: two wide stacks of cards across the page, Device, Website, Notices and System on the left and
   Screen on the right (11 Oct 2026); labels get a fixed share so values stay on one line where they can */
.specgrid { margin-bottom: 16px; }
@media (min-width: 701px) { .specgrid .detailcard dl { grid-template-columns: minmax(150px, 36%) minmax(0, 1fr); column-gap: 14px; row-gap: 7px; } }

/* every box on the add / edit form is the same height and fixed in place (29 Sep 2026) */
.formsec .formgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.formsec .ff.full { grid-column: 1 / -1; }
.formsec .ff input, .formsec .ff select, .formsec .ff textarea { height: 40px; }
.formsec .ff textarea { resize: none; min-height: 0; line-height: 22px; padding: 8px 10px; overflow-y: auto; white-space: pre-wrap; }
@media (max-width: 1000px) { .formsec .formgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .formsec .formgrid { grid-template-columns: 1fr; } .formsec .ff.wide { grid-column: auto; } }
.checkitem { display: flex; flex-direction: column; gap: 2px; }
.checkitem small { font-size: 12px; }
.checkitem.locked label.check { color: var(--muted); cursor: not-allowed; }
.formsec input:disabled, .formsec select:disabled, .formsec textarea:disabled { background: #f3f4f6; color: #4b4f56; border-color: #e1e3e8; cursor: not-allowed; }

/* Devices: screen filters (30 Sep 2026) */
.morefilters { flex-basis: 100%; }
.morefilters summary { cursor: pointer; color: var(--link); display: inline-block; padding: 2px 0; }
.morefilters summary .count { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 0; background: var(--brand-black); color: #fff; font-size: 12px; text-align: center; }
.morefilters[open] summary { margin-bottom: 8px; }
.filtergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; }
.filtergrid label { margin: 0; font-size: 13px; }
.filtergrid select, .filtergrid input { margin-top: 4px; width: 100%; }
.filtergrid .range { display: flex; gap: 6px; }
.filtergrid .range input { flex: 1 1 0; min-width: 0; }
.filteractions { display: flex; gap: 14px; align-items: center; margin-top: 10px; }

/* device page: detail cards in the same groups as the edit form (30 Sep 2026) */
.catgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.catgrid .card { margin: 0; }
.detailcard h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 10px; }
.detailcard dt { font-size: 13px; }
.detailcard a.oneline { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detailcard .stockline { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
@media (max-width: 1100px) { .catgrid { grid-template-columns: 1fr; } }

/* Feedback page (30 Sep 2026); the Feedback button is in the sidebar (23 Oct 2026) */
.fbform .fbtitle { font-weight: 600; }
.fbform select, .fbform textarea { margin: 0; width: 100%; }
.fbform .fbfoot { display: flex; justify-content: space-between; align-items: center; }
.fbform .fbfoot a { color: var(--link); }
.fbitem .fbhead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.fbitem .fbtext { white-space: normal; overflow-wrap: anywhere; }
.fbreply { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.fbreply textarea { margin: 0; }
.fbactions { display: flex; gap: 8px; justify-content: flex-end; }
.fbactions select { width: auto; margin: 0; }
.fbanswer { margin-top: 10px; }
.pill.fb-idea { background: #eaf2ff; color: #1b4fa8; } .pill.fb-problem { background: var(--err); color: var(--err-ink); }
.pill.fbstate-new { background: var(--warn); color: #7a4d00; } .pill.fbstate-done { background: var(--ok); color: var(--ok-ink); }
/* Zoho task priority on Dielines > Pending (2 Oct 2026); Low keeps the plain grey pill */
.pill.prio-high { background: var(--err); color: var(--err-ink); } .pill.prio-medium { background: var(--warn); color: #7a4d00; }

/* Your day on Home (1 Oct 2026) */
.dayhead { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.dayhead h2.section { margin-bottom: 8px; }
.dayperson { margin: 0 0 0 auto; }
.dayperson select { width: auto; margin: 0; }
.dayk { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 10px; margin-bottom: 18px; }
.daytile { margin: 0; padding: 10px 12px; }
.daynums { display: flex; gap: 18px; margin-top: 6px; }
.daynums div { display: flex; flex-direction: column; }
.daynums a, .daynums .zero { font-size: 24px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.daynums .zero { color: #c3c5ca; }
.daynums span:last-child { font-size: 12px; color: var(--muted); }
.dayitems td:first-child { width: 52px; }

/* What's new page (1 Oct 2026); its link is in the sidebar (23 Oct 2026) */
.wnlist { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin-bottom: 12px; }
.wnitem h2 { font-size: 16px; margin: 6px 0 8px; }
.wnitem ul { margin: 0 0 8px; padding-left: 20px; }
.wnitem li { margin: 3px 0; }
.wnhead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill.wnnew { background: var(--brand-red); color: #fff; }
.pill.wnwait { background: var(--warn); color: #7a4d00; }
.wnwho { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.wnwho label { margin: 0; display: inline-flex; gap: 4px; align-items: center; }

/* Home: catalogue work queues (30 Sep 2026) */
.workq .kpi-row { flex-wrap: wrap; }
.workq table.todo { width: 100%; }
.workq table.todo td { padding: 4px 0; border-top: 1px solid var(--line); }
.workq .workhint { margin: 8px 0 0; }

/* Zoho attachments, copied into the workshop folder */
.zfiles { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin: 8px 0; }
.zfile { display: inline-flex; flex-direction: column; gap: 4px; max-width: 160px; padding: 6px; border: 1px solid var(--line); border-radius: 0; background: #fff; font-size: 12px; color: inherit; text-decoration: none; }
.zfile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zfile img { width: 146px; height: 100px; object-fit: cover; border-radius: 0; background: #f3f4f6; }
a.zfile:hover { border-color: var(--accent, #2f5bd3); }
.zfile.pending { color: var(--muted, #6b7280); background: #fafafa; }
.zfile.pending em { font-style: normal; font-size: 11px; }
.zdesc summary { cursor: pointer; margin: 4px 0; }
.zchat { margin-top: 10px; }
.zchat summary { cursor: pointer; margin: 4px 0 8px; }
.note.chat { border-left-color: #c9cdf5; }

/* Dieline checks (accuracy) */
.msg.warnmsg { background: var(--warn); border: 1px solid var(--warn-line); }
.dlpreview { display: block; margin-top: 10px; border: 1px solid var(--line); border-radius: 0; background: #fff; padding: 6px; }
.dlpreview img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
.custimgs { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 10px; }
.custimg h4 { margin: 0 0 6px; }
.custimg img { display: block; max-width: 100%; max-height: 360px; border: 1px solid var(--line); background: #fff; }
.custimgdo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
.custimgdo .button, .custimgdo button { display: inline-flex; align-items: center; box-sizing: border-box; height: 30px; margin: 0; padding: 0 12px; }
.screen2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; }
.filehead + .screen2 { border-top: 0; }
.screen2 dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 0; }
.screen2 dt { color: var(--muted); }
.screen2 dd { margin: 0; }
.revline { margin-top: 10px; display: grid; gap: 4px; }
b.err { font-size: inherit; }
.filters { margin-bottom: 8px; }
form.inline.filters { margin-bottom: 12px; }  /* form.inline sets margin 0 (24 Oct 2026: Cleansing tabs touched the search) */

/* Dielines dashboard */
.subnav { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: -4px 0 16px; }
.subnav a { padding: 6px 0; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a.on { color: var(--ink); border-bottom-color: var(--brand-red); font-weight: 600; }
.dashcards { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.dashcards .kpi.sel { border-color: var(--brand-black); box-shadow: inset 0 0 0 1px var(--brand-black); }
.dashnums { display: flex; gap: 22px; margin: 8px 0 10px; }
.dashnums .kpi-num { font-size: 32px; }
.dashrecent { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; margin-bottom: 16px; }
.dashrecent .kpi { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 12px 18px; }
.dashrecent .kpi.sel { border-color: var(--brand-black); box-shadow: inset 0 0 0 1px var(--brand-black); }
.recentnums { display: flex; gap: 18px; color: var(--muted); font-size: 13px; }
.recentnums b { color: var(--ink); font-size: 22px; font-weight: 700; margin-right: 3px; font-variant-numeric: tabular-nums; }
th.selcol, td.selcol { background: #f7f7f8; }
.tablewrap { overflow-x: auto; }
.adddash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 12px; margin: 14px 0 4px; }
.adddash .kpi { padding: 14px 16px; }
.adddash .kpi-num { font-size: 28px; margin-top: 6px; }
.adddash .kpi.sel { border-color: var(--brand-black); box-shadow: inset 0 0 0 1px var(--brand-black); }
.adddash .spark { height: 44px; margin-top: 6px; }
@media (max-width: 1100px) { .adddash { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adddash .addspark { grid-column: 1 / -1; } }

/* Pending dielines */
.suggrow td { background: #fafafa; }
.suggcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.suggcard { background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 10px; display: grid; gap: 4px; }
.suggprev img { width: 100%; height: 110px; object-fit: contain; background: #fff; }
.suggacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.suggacts form { margin: 0; }
details.sugg summary { cursor: pointer; }
.okline { color: var(--ok-ink); margin-top: 3px; }
.pill { white-space: nowrap; }
.fileacts { display: flex; gap: 6px; align-items: center; }
.fileacts form { margin: 0; }

/* Spaces: knowledge and team files */
.spacecards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; margin-bottom: 16px; }
.spacecard h2 { margin: 0 0 4px; } .spacecard h2 a { color: var(--ink); }
.spacelinks { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.spaceform { display: grid; gap: 8px; max-width: 560px; }
.spaceform fieldset { border: 1px solid var(--line); border-radius: 0; padding: 8px 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.spaceform label.check { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.spaceacts { display: flex; gap: 8px; margin: 0 0 14px; }
.inlinedet { display: inline-block; } .inlinedet summary { list-style: none; cursor: pointer; } .inlinedet form { margin-top: 6px; }
.kbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.kblist { list-style: none; padding: 0; margin: 0 0 8px; } .kblist li { padding: 5px 0; border-bottom: 1px solid var(--line); } .kblist li:last-child { border-bottom: 0; }
.kbhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .kbhead h2 { margin: 0; }
.kbbody { padding: 0; font-size: 15px; line-height: 1.6; } .kbbody img { max-width: 100%; border-radius: 0; }
.ql-snow .ql-editor.kbbody { min-height: 0; }
.kbedit { display: grid; gap: 10px; } .kbedit .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px; }
#editor { min-height: 360px; background: #fff; } .ql-toolbar.ql-snow { border-radius: 0; } .ql-container.ql-snow { border-radius: 0; font-size: 15px; }
.kbhit { padding: 10px 0; border-bottom: 1px solid var(--line); } .kbhit:last-child { border-bottom: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; }
.selrow td { background: #f7f7f8; }
.filepath { margin: 4px 0 10px; } .filebar { margin-bottom: 8px; flex-wrap: wrap; } .uploadbtn { cursor: pointer; }
.libfolders { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.libfolder { border: 1px solid var(--line); border-radius: 0; padding: 6px 10px; color: var(--ink); background: #fafafa; }
.libgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 10px; }
.libitem { border: 1px solid var(--line); border-radius: 0; padding: 8px; display: grid; gap: 3px; background: #fff; }
.libprev { display: flex; align-items: center; justify-content: center; height: 120px; background: #fafafa; border-radius: 0; color: var(--muted); font-size: 13px; overflow: hidden; }
.libprev img { max-width: 100%; max-height: 120px; object-fit: contain; }
.libname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notdl { margin-left: 6px; } .notdl button { color: var(--muted); }

/* Brands page */
.pill.brand-active { background: var(--ok); color: var(--ok-ink); }
.pill.brand-prospective { background: var(--warn); color: #7a4d00; }
.pill.brand-inactive { background: #eceef1; color: #5a5f69; }
table.brands td.logo, table.brands th.logo { width: 56px; padding-top: 4px; padding-bottom: 4px; }
table.brands td.logo img { max-width: 48px; max-height: 28px; object-fit: contain; display: block; }
details.addbrand { margin-bottom: 14px; }
details.addbrand summary { cursor: pointer; }
details.addbrand form { margin-top: 12px; max-width: 560px; }
form.stack { display: flex; flex-direction: column; gap: 10px; }
form.stack label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 13px; }
form.stack input:not([type=file]):not([type=radio]):not([type=checkbox]), form.stack textarea, form.stack select { font-weight: 400; width: 100%; box-sizing: border-box; }
.brandhead { align-items: center; }
.brandhead .brandlogo { max-height: 40px; max-width: 120px; object-fit: contain; margin-right: 8px; }
.brandlayout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.brandmain, .brandside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.brandpair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.brandlayout .card { margin: 0; }
.brandlayout .card h2 { margin: 0 0 10px; font-size: 16px; }
.brandlayout .card h3 { margin: 16px 0 6px; font-size: 14px; }
.brandlayout .card h3:first-of-type { margin-top: 12px; }
.withlink { display: flex; gap: 8px; font-weight: 400; }
.withlink input { flex: 1; }
form.addrow { display: flex; gap: 8px; margin-top: 10px; }
form.addrow input { flex: 1; min-width: 0; }
ul.serieslist { list-style: none; margin: 0; padding: 0; }
ul.serieslist li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
ul.serieslist li:first-child { border-top: 0; }
ul.serieslist .sname { flex: 1; }
form.rowedit { display: flex; gap: 6px; flex: 1; min-width: 0; }
form.rowedit input[name=name] { flex: 1; min-width: 0; }
.brandside .logobox { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.logoform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.logoform input[type=file] { flex: 1; min-width: 0; font-size: 13px; }
details.manage summary { cursor: pointer; }
ul.loglist { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
ul.loglist li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
ul.loglist li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 900px) { .brandlayout, .brandpair { grid-template-columns: minmax(0, 1fr); } }
.brandlayout .card { min-width: 0; box-sizing: border-box; }
form.rowedit input[name=name], form.addrow input { width: 0; }

.warnbox { background: #fff8e6; border: 1px solid var(--warn-line, #f0d28a); margin-bottom: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
dl.facts { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0 0 12px; }
dl.facts dt { color: var(--muted, #6b7079); }
dl.facts dd { margin: 0; }
ul.chips { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
ul.chips li { background: #f0f1f4; border-radius: 0; padding: 2px 4px 2px 10px; display: inline-flex; align-items: center; gap: 2px; }
.logobox { background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 16px; text-align: center; margin-bottom: 10px; }
.logobox img { max-width: 100%; max-height: 120px; object-fit: contain; }
td.nowrap, .nowrap { white-space: nowrap; }
table.loggrid td:nth-child(1) { width: 130px; } table.loggrid td:nth-child(2) { width: 160px; }
fieldset.sites { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.sites legend { font-weight: 600; font-size: 13px; padding: 0; margin-bottom: 4px; }
.siterows { display: flex; flex-direction: column; gap: 6px; }
.siterow { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) 56px 24px; gap: 6px; align-items: center; }
.siterow input { width: 100%; box-sizing: border-box; min-width: 0; }
.siterow .button { text-align: center; padding-left: 0; padding-right: 0; }
button.addsite { margin-top: 6px; }
@media (max-width: 600px) { .siterow { grid-template-columns: minmax(0, 1fr) 56px 24px; } .siterow input[name=site_label] { grid-column: 1 / -1; } }

/* Dieline groups */
.proposal { margin-bottom: 14px; }
.prophead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.propnote { background: #f7f8fa; border-left: 3px solid var(--line); padding: 6px 10px; margin: 0 0 10px; font-size: 13px; }
.propacts { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin-top: 10px; }
.propacts form { margin: 0; }
details.askcat summary { list-style: none; cursor: pointer; }
details.askcat summary::-webkit-details-marker { display: none; }
details.askcat[open] { flex-basis: 100%; }
details.askcat form { margin-top: 8px; max-width: 560px; }
.gpick { display: flex; gap: 12px; }
.gdev .pill.small { text-decoration: none; }
.answerform { margin-top: 10px; max-width: 560px; }
.answerform .radios { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
table.gmembers td.thumb, table.gmembers th.thumb { width: 90px; }
table.gmembers td.thumb img { width: 80px; height: 50px; object-fit: contain; background: #fff; display: block; }
ul.plain { list-style: none; padding: 0; margin: 0 0 8px; }
ul.plain li { padding: 3px 0; }
.infoline { background: #f4f6fb; border-radius: 0; padding: 6px 10px; margin: 6px 0; }
details.recommend { margin-top: 10px; }
details.recommend summary { cursor: pointer; color: var(--muted); }
details.recommend form { margin-top: 8px; max-width: 520px; }
.answerform .radios label { display: inline-flex; width: auto; flex-direction: row; align-items: center; gap: 6px; font-weight: 400; font-size: 14px; }
.gpick label { display: inline-flex; align-items: center; gap: 4px; }
form.addrow input[type=checkbox] { flex: none; width: auto; }

.notdl .xbtn { font-size: 11px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--muted); cursor: pointer; line-height: 1.5; }
.notdl .xbtn:hover { border-color: var(--err-ink); color: var(--err-ink); }

/* Compact suggestion / group device cards (Jaffer, 30 Sep 2026) */
.scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 8px; }
.scard { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; background: #fff;
  border: 1px solid var(--line); border-radius: 0; padding: 8px; }
.scard.picked-out { opacity: .55; }
.sthumb { display: flex; align-items: center; justify-content: center; width: 96px; height: 72px; background: #fafafa;
  border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.sthumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sthumb.empty { color: var(--muted); font-size: 11px; }
.sbody { display: grid; gap: 2px; min-width: 0; }
.stitle { font-size: 14px; line-height: 1.3; }
.stitle a { color: var(--ink); }
.stitle a:hover { color: var(--brand-red); }
.sreason { color: var(--ink); }
.sacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sacts form { margin: 0; }
.spick { display: flex; gap: 12px; align-items: center; font-size: 12px; margin-bottom: 2px; }
.spick label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
tr.suggrow > td { background: #f7f8fa; padding: 10px 12px 14px; }
.prophead .propreason { flex: 1; min-width: 200px; }
.prophead .propopen { margin-left: auto; }
.proposal .propacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.proposal .askform { margin-top: 10px; max-width: 560px; }
form.askform[hidden] { display: none !important; }
.sacts button, .sacts .button { font-size: 12px; padding: 4px 10px; line-height: 1.4; height: auto; min-height: 0; }
table.pending tr:not(.suggrow) > td:first-child { white-space: nowrap; }
tr.suggrow > td { white-space: normal; }  /* the suggestion cards wrap (they inherited nowrap until 3 Oct 2026) */
.stitle, .sreason { overflow-wrap: anywhere; }
.reuserow { margin-bottom: 12px; padding-top: 12px; padding-bottom: 12px; }
.reusehead { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.reusehead a { color: var(--ink); }
details.reusesugg > summary { cursor: pointer; color: var(--ink); }
details.reusesugg[open] > summary { margin-bottom: 8px; }
.scard.recd { border-color: #f0c36d; background: #fffdf5; }
.subhead { margin: 12px 0 6px; color: var(--muted); font-weight: 600; }

/* @mentions (2 Oct 2026): suggestions under a note or comment box, names in bold, the Home card and the menu count */
ul.mentionlist { position: absolute; z-index: 40; min-width: 200px; margin: 0; padding: 6px; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 0; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
ul.mentionlist li { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 0; cursor: pointer; }
ul.mentionlist li.hi, ul.mentionlist li:hover { background: var(--bg); }
ul.mentionlist li span { color: var(--muted); font-size: 12px; }
b.mention { color: var(--link); font-weight: 600; }
.card.mentions { border-left: 3px solid var(--brand-red); }
.mentions .mhead { display: flex; align-items: baseline; gap: 12px; }
.mentions .mhead h2 { margin-bottom: 8px; }
.mentions .mhead form { margin: 0 0 0 auto; }
.mentions a.mrow { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 0; color: var(--ink); text-decoration: none; }
.mentions a.mrow:hover { background: var(--bg); }
.mentions .mwho { display: block; font-size: 13px; color: var(--muted); }
.mentions .mwho b { color: var(--ink); }
.mentions .mtext { display: block; }


/* Dieline confidence (2 Oct 2026): the 1 to 5 picker, required when uploading or reusing a dieline, and the gauge */
fieldset.confpick { border: 1px solid var(--line); border-radius: 0; padding: 6px 10px 10px; margin: 8px 0; min-width: 0; background: #fff; }
fieldset.confpick legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.confopts { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.confopts label { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.confopts input { position: absolute; left: 50%; bottom: 0; opacity: 0; width: 1px; height: 1px; margin: 0; }
.confopts span { padding: 4px 11px; border: 1px solid #cfd6e0; border-radius: 0; background: #fff; font-size: 13px; white-space: nowrap; }
.confopts label:hover span { border-color: var(--ink); }
.confopts input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.confopts input:focus-visible + span { outline: 2px solid var(--brand-red); outline-offset: 1px; }
fieldset.confpick textarea { margin: 0; width: 100%; font-size: 13px; }
.confbox { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.confbox h3 { margin: 0 0 8px; }
.confnote { margin: 8px 0 2px; }
.confbox p.muted { margin: 4px 0; }
.gauge { display: flex; align-items: center; gap: 3px; }
.gauge span { width: 24px; height: 10px; border-radius: 0; background: #e4e5e8; }
.gauge b { margin-left: 8px; }
.gauge.g1 span.on, .gauge.g2 span.on { background: var(--brand-red); }
.gauge.g3 span.on { background: #e0a100; }
.gauge.g4 span.on, .gauge.g5 span.on { background: #2e9d5b; }
details.confchange { margin-top: 6px; }
details.confchange > summary { cursor: pointer; color: var(--link); }
details.usedl > summary { display: inline-block; list-style: none; cursor: pointer; }
details.usedl > summary::-webkit-details-marker { display: none; }
details.usedl[open] > summary { opacity: .6; }
details.usedl form { margin-top: 6px; }
details.usedl form input[name=sku] { margin: 0; }
.sacts details.usedl[open] { flex-basis: 100%; }

/* Brands (2 Oct 2026): red/green dot for website + logo, bulk logo upload and Logos to assign */
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 0; vertical-align: -1px; }
.dot.red { background: var(--brand-red); }
.dot.green { background: #2e9d5b; }
table.brands th.dotcol, table.brands td.dotcol { width: 22px; padding-right: 0; }
.missingline { color: var(--err-ink); font-weight: 600; }
.doneline { color: var(--ok-ink); }
.pendlogo { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pendlogo:last-child { border-bottom: 0; }
.pendlogo img { width: 120px; height: 120px; object-fit: contain; border: 1px solid var(--line); border-radius: 0;
  background: repeating-conic-gradient(#f0f0f2 0% 25%, #fff 0% 50%) 50% / 16px 16px; }
.pendlogo form { margin-top: 6px; flex-wrap: wrap; }
.pendlogo select { width: auto; max-width: 100%; margin: 0; }

/* Discontinue review (3 Oct 2026) */
.discgrid td.pick, .discgrid th.pick { width: 30px; padding-right: 0; }
.discgrid td.pick label { display: block; margin: -8px 0; padding: 8px 0; cursor: pointer; }
.discgrid td.pick input, .discgrid th.pick input { margin: 0; cursor: pointer; }
.discacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.discacts input[name=note] { flex: 1 1 260px; width: auto; margin: 0; }
.rulegrid { max-width: 860px; }
.rulesform { margin-top: 10px; flex-wrap: wrap; }
.rulesform select, .rulesform input { width: auto; margin: 0; }
.filters label.nodate { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.filters label.nodate input { width: auto; margin: 0; }
.rulesform input[type=number] { max-width: 170px; }

/* Devices > TechSpecs (back-test, 10 Oct 2026) */
.tsby { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.tsby .card { margin: 0 0 16px; }
.pill.tsstate-agree, .pill.tslevel-high, .pill.tsverdict-right { background: var(--ok); color: var(--ok-ink); }
.pill.tsstate-close, .pill.tslevel-medium { background: var(--warn); color: #7a4d00; }
.pill.tsstate-differ, .pill.tslevel-low, .pill.tsverdict-wrong { background: var(--err); color: var(--err-ink); }
.pill.tsstate-fill { background: #eaf2ff; color: #1b4fa8; }
table.tsgrid td.tscmp div { margin: 1px 0; }
table.tsgrid details summary { cursor: pointer; color: var(--muted); }
/* Cleansing: the TechSpecs display, body, camera and sensors suggestion, one "Label: value" per line */
table.issues code.ws.tsbundle { display: block; min-width: 0; }
/* Cleansing (Jaffer, 16 Oct 2026): long URLs and model lists wrap inside their column, nothing runs off the page */
.issuewrap { overflow-x: auto; }
table.issues { table-layout: fixed; width: 100%; min-width: 900px; }
table.issues col.c-pick { width: 2.2em; } table.issues col.c-device { width: 15%; } table.issues col.c-field { width: 9%; }
table.issues col.c-value { width: 22%; } table.issues col.c-detail { width: 15%; } table.issues col.c-act { width: 15em; }
table.issues td { overflow-wrap: anywhere; vertical-align: top; }
table.issues code.ws { display: inline-block; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
table.issues .actions { white-space: normal; }
table.issues .actions form { display: flex; flex-wrap: wrap; }
table.issues .actions .dismiss input { width: auto; flex: 1 1 8em; min-width: 0; }
/* Device page summary (11 Oct 2026): the Icecat front image (reference only) beside key facts and jump links */
.devsummary { display: flex; gap: 18px; align-items: center; }
.devsummary .devfacts { flex: 1 1 auto; min-width: 0; }
.icecatimg { margin: 0; flex: 0 0 auto; text-align: center; }
.icecatimg img { display: block; max-width: 180px; max-height: 120px; border: 1px solid var(--line, #e3e5e8); border-radius: 0; background: #fff; }
.icecatimg figcaption { margin-top: 4px; font-size: 11px; }
ul.factline { list-style: none; margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 36px; }
ul.factline li { display: flex; flex-direction: column; gap: 2px; }
ul.factline .muted { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
ul.factline b { font-size: 16px; font-weight: 600; white-space: nowrap; }
.jumplinks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
/* Website card: links from TechSpecs and Icecat (11 Oct 2026) */
.detailcard dd.srclinks { display: flex; align-items: center; gap: 2px 10px; min-width: 0; }
.detailcard dd.srclinks a.oneline { flex: 0 1 auto; min-width: 0; }
.detailcard dd.srclinks .srcpill { margin-left: 0; }
.detailcard h2 + h3.subhead { margin-top: 0; padding-top: 0; border-top: 0; }
/* Dieline files: a dual-screen device's Screen 1 and Screen 2 side by side under Finished dieline (11 Oct 2026) */
.screenpair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.screenhalf { min-width: 0; }
.screenhalf h4 { margin: 0 0 6px; font-size: 14px; }
.screenhalf .pill { vertical-align: 1px; }
.screenhalf .msg { margin: 6px 0 10px; }
/* two screens: Finished dieline gets more of the card than Workshop, so the die-cut details stay on one line */
@media (min-width: 1100px) { .filecols:has(.screenpair) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
/* drawings level side by side: the same height, each drawing fitted inside (11 Oct 2026) */
.screenpair .dlpreview img { height: 220px; max-height: none; }
/* die-cut details under each finished dieline */
dl.diecutlist { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 6px 12px; margin: 12px 0 8px; font-size: 14px; }
dl.diecutlist dt { font-size: 13px; }
.diecutinfo .emptyfields { margin: 0 0 8px; }
.diecutinfo form.refreshform { display: inline; margin: 0 0 0 4px; }
.diecutinfo button.iconbtn { padding: 0 5px; min-height: 0; height: 24px; line-height: 22px; font-size: 15px; vertical-align: 1px; }
.screenhalf h4 a.mono, #files h4 a.mono { font-size: 13px; }
.diecutinfo .stockline { margin: 8px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
@media (max-width: 600px) { .devsummary { flex-direction: column; align-items: flex-start; } }
/* Device page: empty fields behind "Show N empty fields"; History folded (11 Oct 2026) */
details.emptyfields { margin-top: 10px; }
details.emptyfields > summary { cursor: pointer; color: var(--link); display: inline-block; }
details.emptyfields[open] > summary { margin-bottom: 8px; }
details.foldcard > summary { cursor: pointer; list-style: none; }
details.foldcard > summary::-webkit-details-marker { display: none; }
details.foldcard > summary h2 { display: inline; margin: 0; }
details.foldcard > summary h2::before { content: "\25B8  "; color: var(--muted); }
details.foldcard[open] > summary h2::before { content: "\25BE  "; }
details.foldcard[open] > summary { margin-bottom: 12px; }
/* Device page: the source of a value filled from a TechSpecs or Icecat suggestion (10 Oct 2026) */
.pill.srcpill { background: #eef0ff; color: #33338a; border: 1px solid #c9cdf5; margin-left: 4px; vertical-align: 1px; }
/* Device page clean-up (10 Oct 2026): sub-headings in the merged Screen card; Die-cut above Dieline files */
.detailcard h3.subhead { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600;
  margin: 14px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
#diecut dl.diecutgrid { display: grid; column-gap: 16px; grid-template-columns: minmax(150px, max-content) minmax(0, 1fr) minmax(150px, max-content) minmax(0, 1fr); row-gap: 7px; }
@media (max-width: 800px) { #diecut dl.diecutgrid { grid-template-columns: minmax(120px, 44%) minmax(0, 1fr); } }
.catgrid .catstack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.catgrid .catstack:empty { display: none; }
@media (max-width: 700px) { .catgrid { grid-template-columns: minmax(0, 1fr); } }
/* Dieline files: drawings the brand scan saved from the maker's website (14 Oct 2026) */
.mfrdrawings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; margin-bottom: 18px; }
.mfritem { min-width: 0; }
.mfritem .dlpreview { margin-top: 0; }
.mfritem .dlpreview img { height: 160px; max-height: none; }
/* Devices > Brand scan: drawings waiting for review */
.reviewrow { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.reviewrow:first-of-type { border-top: 0; }
.reviewacts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fileacts a.on { font-weight: 600; color: var(--ink); }

/* Dieline versions in the device summary (15 Oct 2026) */
.dlversions { margin: 10px 0 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.dlvtitle { text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
table.dlvtable { border-collapse: collapse; }
table.dlvtable td { padding: 3px 14px 3px 0; white-space: nowrap; }
table.dlvtable tr.here td { font-weight: 600; }
table.dlvtable tr.current a { color: var(--ok-ink); }
.dlvdot { display: inline-block; width: 8px; height: 8px; border-radius: 0; background: #2e9d5b; margin-right: 6px; vertical-align: 1px; }
a.pill.nowon { background: var(--ok); color: var(--ok-ink); }
/* Cleansing > Missing required field: one sub-tab per gap (16 Oct 2026) */
.tabs.subtabs { margin-top: -6px; }
.tabs.subtabs a { padding: 3px 10px; font-size: 13px; }
.tabs.subtabs a.on { background: #eef1f5; border-color: var(--brand-black); color: var(--ink); }

/* Compare devices side by side (16 Oct 2026) */
.cmpbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.cmpbar .msgs { flex-basis: 100%; }
.cmpadd input[name=add] { width: 280px; max-width: 100%; }
.cmponly { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
table.cmp { table-layout: auto; overflow: visible; }
table.cmp th.cmpfield { position: sticky; left: 0; z-index: 1; background: var(--card); text-align: left; font-weight: 500;
  color: var(--muted); width: 180px; min-width: 130px; }
table.cmp th.cmpdev { min-width: 200px; text-align: left; font-weight: normal; vertical-align: top; }
table.cmp td { min-width: 200px; overflow-wrap: anywhere; }
.cmphead { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.cmpx { color: var(--muted); font-size: 18px; line-height: 1; text-decoration: none; }
.cmpx:hover { color: var(--ink); }
.cmpname { font-weight: 600; margin: 2px 0 4px; }
.cmpdl { margin-top: 8px; }
.cmpdl img { display: block; max-width: 100%; max-height: 140px; margin-bottom: 4px; }
table.cmp tr.cmpsechead th { background: var(--bg); text-align: left; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); position: sticky; left: 0; }
table.cmp tr.differs th.cmpfield { background: var(--warn); }
table.cmp td.off { background: var(--warn); font-weight: 500; }  /* differs from the first device (24 Oct 2026) */
table.cmp tr.empty td { color: var(--muted); }
table.cmp.onlydiff tr.same, table.cmp.onlydiff tbody.same { display: none; }
@media (max-width: 700px) {
  table.cmp th.cmpfield { width: 110px; min-width: 110px; }
  table.cmp th.cmpdev, table.cmp td { min-width: 160px; }
}
a.button.disabled { opacity: .55; cursor: not-allowed; }
details.cmpwith { position: relative; display: inline-block; }
details.cmpwith > summary { list-style: none; cursor: pointer; }
details.cmpwith > summary::-webkit-details-marker { display: none; }
details.cmpwith .menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--card);
  border: 1px solid var(--line); border-radius: 0; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 10px; width: max-content; max-width: calc(100vw - 32px); }
details.cmpwith .cmpadd input[name=add] { width: 240px; }
/* Compare list: + Compare buttons, sharing (16 Oct 2026); the top bar link is with the sidebar styles */
button.cmptoggle { white-space: nowrap; vertical-align: middle; }
button.cmptoggle.small { padding: 0 7px; margin-left: 6px; font-size: 12px; line-height: 20px; min-height: 0; border-radius: 0; }
button.cmptoggle.on { background: var(--ok); color: var(--ok-ink); border-color: transparent; }
.cmperr { color: var(--err-ink); font-size: 12px; }
.cmpshare { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cmpshare details.sendto { position: relative; }
.cmpshare details.sendto > summary { list-style: none; cursor: pointer; }
.cmpshare details.sendto > summary::-webkit-details-marker { display: none; }
.cmpshare .sendbox { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 0; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 12px; width: 320px; max-width: calc(100vw - 32px); }
.cmpshare .people { max-height: 220px; overflow-y: auto; display: grid; gap: 4px; margin-bottom: 8px; }
.cmpshare .people label { display: flex; gap: 6px; align-items: center; font-weight: normal; }
.cmpshare input.sharelink { width: 360px; max-width: 100%; font-size: 12px; }
/* Dielines waiting for approval (16 Oct 2026) */
.dlwait.flagged { border-left: 4px solid var(--err-ink); padding-left: 12px; }
.dlwhead { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-bottom: 10px; }
.dlwbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dlwprev img { display: block; max-width: 100%; max-height: 300px; border: 1px solid var(--line); border-radius: 0; background: #fff; }
.dlwnoprev { padding: 30px 10px; border: 1px dashed var(--line); border-radius: 0; text-align: center; }
ul.checklist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
ul.checklist li { display: flex; gap: 6px; }
ul.checklist li .ck { width: 14px; flex: 0 0 14px; font-weight: 700; }
ul.checklist li.flag { color: var(--err-ink); font-weight: 600; }
ul.checklist li.ok .ck { color: var(--ok-ink); }
ul.checklist li.note { color: var(--muted); }
.dlwform { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin: 8px 0; }
.dlwform input[name=reason] { width: 100%; max-width: 480px; }
.dlwdiscard { margin-top: 8px; }
.dropzone { border: 2px dashed var(--line); border-radius: 0; padding: 22px; text-align: center; cursor: pointer; }
.dropzone.over { border-color: var(--brand-red); background: #fdf3f3; }
.dropzone p { margin: 8px auto 0; max-width: 720px; }
ul.dropresults { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
ul.dropresults li.busy { color: var(--muted); }
ul.dropresults li.good { color: var(--ok-ink); }
ul.dropresults li.warn { color: #7a4d00; }
ul.dropresults li.bad { color: var(--err-ink); }
a.card.dlhome { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; color: var(--ink); text-decoration: none; }
a.card.dlhome.flagged { background: var(--warn); border-color: var(--warn-line); }
details.withdraw { margin-top: 6px; }
details.withdraw form { max-width: 480px; margin-top: 8px; }
/* Dielines > Draft rules (16 Oct 2026) */
.draftgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 16px; }
/* Atlas draft dielines on the device page (17 Oct 2026) */
.dldrafts { margin-bottom: 14px; }
.dldraft { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.dldraft p { margin: 0 0 6px; }
/* Admin > Metrics (17 Oct 2026) */
.metricjump { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 6px 0; flex-wrap: wrap; }
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 12px; }
.mcard { border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--card); }
.mcard.missing .mnum { color: var(--muted); font-size: 18px; padding: 6px 0; }
.mcard.failed .mnum { color: var(--err-ink); font-size: 30px; padding: 0; }
.mnum { font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mbar { height: 6px; border-radius: 0; background: #eceef1; overflow: hidden; }
.mbar span { display: block; height: 100%; background: var(--brand-red); }
.mdelta { font-size: 13px; color: var(--muted); }
.mdelta.good { color: var(--ok-ink); }
.mdelta.bad { color: var(--err-ink); }
.mnote { overflow-wrap: anywhere; }
.mspark { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 4px; }
.mspark span { flex: 1; background: #d9dce1; border-radius: 0; min-height: 0; }
.mspark span.now { background: var(--brand-red); }
.mopen { margin-top: auto; align-self: flex-start; }
/* Cleansing: edit a row by hand (17 Oct 2026) */
details.cedit { margin-top: 4px; }
details.cedit form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; min-width: 200px; }
details.cedit label { display: flex; flex-direction: column; gap: 2px; }
/* Dielines > Drafts: every draft in one grid (17 Oct 2026) */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.dcard { display: flex; flex-direction: column; gap: 3px; min-width: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 0; padding: 10px; }
.dcard.task { border-color: #f0c36d; }
.dthumb { display: flex; align-items: center; justify-content: center; height: 180px; margin-bottom: 6px; background: #fafafa;
  border: 1px solid var(--line); border-radius: 0; overflow: hidden; color: var(--muted); font-size: 12px; }
.dthumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dcard .stitle { overflow-wrap: anywhere; }
.dcard .checklist { margin: 4px 0 0; }
.dcard .sacts { margin-top: auto; padding-top: 8px; }
.dcard details.usedl[open], .dcard details.dset[open] { flex-basis: 100%; }
.dcard details.usedl form, .dcard details.dset form { margin-top: 6px; }
/* Dielines > Drafts > How drafts work: the guide for new starters (17 Oct 2026) */
.guide { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; align-items: start; }
.guidetoc { position: sticky; top: 12px; font-size: 13px; }
.guidetoc ol { margin: 8px 0 10px; padding-left: 20px; }
.guidetoc li { margin: 5px 0; }
.guidetoc a { color: var(--ink); }
.guidetoc a:hover { color: var(--brand-red); }
.guidebody section { scroll-margin-top: 12px; }
.guidebody h2 { display: flex; align-items: center; gap: 8px; }
.guidebody h3 { font-size: 14px; margin: 14px 0 6px; }
.gnum, .gstep b.n, .grung b.n, .gpart b.n { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 0; background: var(--brand-black); color: #fff; font-size: 12px; font-weight: 700; }
.gsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; margin: 10px 0; }
.gstep { background: #f7f8fa; border: 1px solid var(--line); border-radius: 0; padding: 10px; font-size: 13px; }
.gstep b.n { margin-right: 6px; }
.gstep p { margin: 6px 0 0; color: var(--muted); }
.gtwo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; align-items: start; }
.gfig { margin: 0; background: #fafbfc; border: 1px solid var(--line); border-radius: 0; padding: 12px; }
.gfig svg { display: block; width: 100%; height: auto; max-height: 260px; }
.gfig figcaption { font-size: 13px; margin-top: 8px; }
.gok { color: var(--ok-ink); }
.gbad { color: var(--err-ink); }
.msg.infomsg { background: #eef4fb; border: 1px solid #c9dcf2; }
.gsure { height: 8px; border-radius: 0; background: linear-gradient(90deg, #2e9d4f, #e8b23a, #d9534f); margin: 10px 0 4px; }
.gsurelbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.gladder { display: grid; gap: 8px; }
.grung, .gpart { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: start; }
.grung { padding: 10px; border: 1px solid var(--line); border-radius: 0; background: #fff; font-size: 14px; }
.gpart { margin-bottom: 10px; }
.gquote { display: inline-block; font-family: "Space Mono", ui-monospace, Consolas, monospace; font-size: 12px; background: #f3f4f6;
  border-radius: 0; padding: 2px 6px; overflow-wrap: anywhere; }
.gchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.gchip { border: 1px solid var(--line); border-radius: 0; padding: 3px 10px; font-size: 12px; background: #fff; }
.gchip.ok { border-color: #9fd8ae; background: #f2fbf4; }
.gchip.bad { border-color: #f0b0b0; background: #fdf3f3; }
.gcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.gcuts svg { max-width: 140px; margin: 0 auto; }
.gsample { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 10px; }
.glegend { display: flex; flex-wrap: wrap; gap: 16px; margin: 6px 0; }
.gcheck ol { list-style: none; counter-reset: gc; padding: 0; margin: 0; display: grid; gap: 8px; }
.gcheck ol li { counter-increment: gc; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: start;
  padding: 10px; border: 1px solid var(--line); border-radius: 0; background: #fff; }
.gcheck ol li::before { content: counter(gc); display: inline-flex; align-items: center; justify-content: center; width: 24px;
  height: 24px; border-radius: 0; background: var(--ok-ink); color: #fff; font-size: 12px; font-weight: 700; }
.gafter .msg { margin: 0; }
.gwords { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.gwords dt { font-weight: 600; }
.gwords dd { margin: 0; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .guidetoc { position: static; } }
@media (max-width: 640px) { .gsample, .gwords { grid-template-columns: 1fr; } .gwords dd { margin-bottom: 6px; } }

/* Feeds: a channel's latest file, its web address with a copy button and a download icon (17 Oct 2026) */
.feedacts { display: inline-flex; align-items: center; gap: 6px; }
.feedacts .feedweb { word-break: break-all; min-width: 0; }
.feedacts .iconbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  min-height: 0; padding: 0; border-radius: 0; line-height: 1; }
.feedacts .copyurl.copied { background: var(--ok); color: var(--ok-ink); border-color: var(--ok); }
/* Cleansing: "Different device" on dismissing an Icecat row marks the match Wrong (19 Oct 2026) */
.actions .dismiss .wrongpick { display: inline-flex; align-items: center; gap: 4px; flex: 1 1 100%; white-space: nowrap; }
.actions .dismiss .wrongpick input, table.issues .actions .dismiss .wrongpick input { width: auto; flex: none; margin: 0; }
.bulkpark .wrongpick { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; white-space: nowrap; }
/* Admin › Jobs (19 Oct 2026) */
.jobcard { border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.jobhead { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
pre.joblog { margin: 8px 0 0; padding: 8px 10px; background: #14161a; color: #d7dbe0; border-radius: 0; font-size: 12px;
  line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
table.jobs td { vertical-align: top; }
table.jobs tr.jobfail td { background: var(--err); }
details.joblines { margin-top: 4px; }

/* To approve: the device's Design notes on each waiting dieline (feedback #16, 20 Oct 2026) */
.dlwnotes { margin: 10px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.dlwnotes h4 { margin: 0 0 6px; }
.dlwnotes .note { margin-bottom: 8px; }
.dlwnotes .noteform { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.dlwnotes .noteform button { align-self: flex-start; }
.refreshline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 2px 0 12px; }

/* ---------- The new look (Jaffer, 23 Oct 2026): a sidebar menu, a white top bar, Space Grotesk, square corners ---------- */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/space-grotesk-latin-wght.b75d397ffd1c.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/space-grotesk-latin-ext-wght.0c620fb096d6.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/space-mono-latin-400.049dfc5919c2.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/space-mono-latin-700.e5e908997a45.woff2") format("woff2"); }
/* square corners only (Jaffer): also the browser's own rounded buttons, inputs and anything a script adds */
*, *::before, *::after { border-radius: 0 !important; }

body.has-side { display: flex; min-height: 100vh; }
.page { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.page > main { width: 100%; }

/* the sidebar: every page listed under its heading (Jaffer: always listed) */
.side { flex: 0 0 256px; width: 256px; height: 100vh; position: sticky; top: 0; z-index: 40; display: flex; flex-direction: column;
  padding: 14px 10px 10px; overflow-y: auto; overscroll-behavior: contain; background: var(--brand-black); color: #c9cbd0; scrollbar-width: thin; scrollbar-color: #3a3b40 transparent; }
html.side-hidden .side { display: none; }
.sidehead { display: flex; align-items: center; gap: 6px; padding: 2px 2px 12px 8px; }
.sidehead .brand { gap: 8px; white-space: nowrap; }
.sidehead .brand .logo { height: 12px; }  /* 12px so the logo, ATLAS and the fold button fit in the 256px sidebar */
/* ATLAS's capitals as tall as the logo's letters (Jaffer, 25 Oct 2026): Space Mono's capitals are 0.71 of the font size,
   so the font size is the logo's height / 0.71; the text box is trimmed to capital-to-baseline so they line up */
.brand .app { font-family: "Space Mono", ui-monospace, monospace; font-weight: 400; text-transform: uppercase;
  letter-spacing: .16em; line-height: 1; text-box: trim-both cap alphabetic; }
.sidehead .brand .app { font-size: 16.9px; }
.top .brand .app { font-size: 28.2px; }
.sidefold { margin-left: auto; display: inline-flex; padding: 6px; border: 0; background: none; color: #8d9097; cursor: pointer; }
.sidefold:hover { background: #1c1d21; color: #fff; }
.side .nav { display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: #c9cbd0; font-size: 13.5px; text-decoration: none; }
.side .nav svg { flex: none; }
.side .nav:hover { background: #1c1d21; color: #fff; text-decoration: none; }
.side .nav.on { background: #1f2024; color: #fff; box-shadow: inset 2px 0 0 var(--brand-red); }
.side .nav.sub { padding: 5px 10px 5px 36px; font-size: 13px; }
.side .nav .lbl { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .ct { flex: none; padding: 0 6px; font-size: 11.5px; line-height: 18px; background: #2a2b30; color: #e6e7ea; font-variant-numeric: tabular-nums; }
.side .ct.red { background: var(--brand-red); color: #fff; }
.sidegrp { padding: 14px 10px 5px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8d9097; }
.sidegap { height: 1px; margin: 10px 6px; background: #222327; }
.sideback { display: none; }

/* the notice bar: open dieline issues assigned to this person. It can't be closed; it goes when they are closed in Zoho (Jaffer, 1 Nov 2026) */
.issuebar { position: sticky; top: 0; z-index: 35; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 9px 24px; background: #fdeccb; color: #7a2e00; font-size: 13.5px; }
.issuebar a { margin-left: auto; color: inherit; font-weight: 700; white-space: nowrap; }
@media (max-width: 900px) { .issuebar { padding: 8px 16px; } }
#open-issues { scroll-margin-top: 56px; }  /* View issues lands here, clear of the bar */

/* the top bar: the find box on the left; Compare, What's new, Feedback and the name menu on the right (Jaffer, 24 Oct 2026) */
.top { position: relative; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.top .brand .logo { height: 20px; }
.sideopen { display: none; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #cfd6e0; background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.sideopen:hover { border-color: var(--ink); }
html.side-hidden .sideopen { display: inline-flex; }
.topright { margin-left: auto; flex: none; display: flex; align-items: center; gap: 6px; }
a.cmplink { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #cfd6e0; color: var(--ink); white-space: nowrap; font-size: 13px; }
a.cmplink:hover { border-color: var(--ink); text-decoration: none; }
a.cmplink.on { border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand-red); }
a.cmplink .cmpcount { min-width: 18px; padding: 0 5px; background: var(--brand-black); color: #fff; font-size: 12px; line-height: 18px; text-align: center; font-weight: 600; }
a.cmplink .cmpcount[hidden] { display: none; }
.topbtn { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid transparent; background: none;
  color: var(--ink); font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; text-decoration: none; }
.topbtn:hover { border-color: #cfd6e0; text-decoration: none; }
.topbtn.on, details[open] > .topbtn { border-color: var(--ink); }
.top .wndot { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; background: var(--brand-red); }
.top details { position: relative; }
.top summary { list-style: none; }
.top summary::-webkit-details-marker { display: none; }
.top .avatar { flex: none; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-black); color: #fff; font-size: 11px; font-weight: 600; }
.top .menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: 240px; max-width: calc(100vw - 32px); padding: 6px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.top .menu .role { padding: 6px 10px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.top .menu a, .top .menu button { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: none;
  color: var(--ink); text-decoration: none; font: inherit; font-size: 14px; cursor: pointer; }
.top .menu a:hover, .top .menu button:hover { background: var(--bg); }
.top .menu form { margin: 0; }
.top .menu.fbform { width: 340px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.top .menu.fbform .fbfoot a { display: inline; width: auto; padding: 0; color: var(--link); }
.top .menu.fbform button.primary { display: inline-block; width: auto; padding: 4px 10px; background: var(--accent); color: var(--accent-ink); font-size: 13px; }
form.gsearch kbd { font-family: "Space Mono", ui-monospace, monospace; font-size: 11px; }

/* narrow windows and phones: the sidebar starts folded and opens over the page */
@media (max-width: 900px) {
  .side, html.side-hidden .side { display: flex; position: fixed; left: 0; top: 0; bottom: 0; height: auto; visibility: hidden; transform: translateX(-100%);
    box-shadow: 8px 0 28px rgba(0,0,0,.25); }
  html.side-open .side { visibility: visible; transform: none; }
  html.side-open .sideback { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,.4); }
  .sideopen, html.side-hidden .sideopen { display: inline-flex; }
  .top { padding: 10px 16px; gap: 8px; flex-wrap: wrap; }
  form.gsearch { order: 3; flex: 1 1 100%; min-width: 0; }  /* on its own row under the buttons */
}
@media (max-width: 700px) {
  .top .tlbl { display: none; }  /* What's new, Feedback and the name as icons only */
  .topbtn { padding: 7px 8px; }
  .top .menu, .top .menu.fbform { position: fixed; left: 16px; right: 16px; top: 58px; width: auto; max-width: none; }  /* full width, never off the edge */
}
@media print { .side, .top, .sideback, .issuebar { display: none !important; } }

/* ---------- Home: the Waiting for you row (Jaffer, 24 Oct 2026, Stage B) ---------- */
.waitrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-bottom: 20px; }
a.card.waittile { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px 16px; color: var(--ink); border-top: 3px solid var(--ink); }
a.card.waittile:hover { text-decoration: none; background: #fbfbfb; }
a.card.waittile.urgent { border-top-color: var(--brand-red); }
a.card.waittile .kpi-num { line-height: 1.1; }
.card.latest { margin-top: 4px; }

/* ---------- The Devices list: view tabs, filter chips, the ticked bar (Jaffer, 24 Oct 2026, Stage B) ---------- */
.viewtabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.viewnav { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #ececee; }
.viewnav > a, .viewnav .savedview > a { display: inline-block; padding: 6px 12px; color: #3d4047; font-size: 13px; }
.viewnav > a:hover, .viewnav .savedview > a:hover { background: #e1e1e4; text-decoration: none; }
.viewnav > a.on, .viewnav .savedview.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.viewnav .savedview { display: inline-flex; align-items: center; }
.viewnav .savedview.on > a { color: var(--ink); }
.viewnav .savedview form { margin: 0; }
.viewnav .savedview button.link { padding: 0 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1; text-decoration: none; }
details.saveview { position: relative; }
details.saveview summary { list-style: none; cursor: pointer; }
details.saveview summary::-webkit-details-marker { display: none; }
details.saveview .menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; display: flex; gap: 6px; padding: 10px; width: 340px;
  max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
details.saveview .menu input { flex: 1 1 auto; margin: 0; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 12px; }
a.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 10px; border: 1px solid #cfd6e0; background: #fff;
  color: var(--muted); font-size: 12.5px; }
a.chip b { color: var(--ink); font-weight: 500; }
a.chip span { color: var(--muted); font-size: 15px; line-height: 1; margin-left: 2px; }
a.chip:hover { border-color: var(--ink); text-decoration: none; }
.pickbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 35; display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; max-width: calc(100vw - 32px); padding: 8px 10px 8px 14px; background: var(--brand-black); color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 13px; }
.pickbar[hidden] { display: none; }
.pickbar .button, .pickbar button:not(.link) { background: #2a2b30; border-color: #2a2b30; color: #fff; }
.pickbar .button.disabled { opacity: .45; }
.pickbar button.link { color: #c9cbd0; }
.pickbar .xlsel { margin-right: 6px; }
body.has-side .pickbar { left: calc(50% + 128px); }  /* centred under the page, not the window */
html.side-hidden body.has-side .pickbar { left: 50%; }
@media (max-width: 900px) { body.has-side .pickbar { left: 50%; } }

/* ---------- The device page in tabs (Jaffer, 24 Oct 2026, Stage B) ---------- */
/* every warning in one Checks box */
.card.checks { background: var(--warn); border-color: var(--warn-line); }
.checks h2 { margin: 0 0 4px; }
.checkline { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 14px; padding: 8px 0; border-top: 1px solid var(--warn-line); }
.checks h2 + .checkline { border-top: 0; }
.checkline ul { margin: 0 0 4px; padding-left: 18px; }
.checkline table.todo { margin: 4px 0; }
.checkline.bad > b { color: var(--err-ink); }
@media (max-width: 700px) { .checkline { grid-template-columns: 1fr; } }
/* tabs on the left, properties and actions on the right */
.devlayout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.devmain { flex: 999 1 620px; min-width: 0; }
.devside { flex: 1 1 280px; max-width: 100%; min-width: 0; }
.devside .card { margin-bottom: 16px; }
.devtabs { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.devtabs a { padding: 8px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; }
.devtabs a:hover { color: var(--ink); text-decoration: none; }
.devtabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand-red); }
.devtabs a b { margin-left: 4px; padding: 0 6px; font-size: 11.5px; font-weight: 500; background: #ececee; color: #3d4047; }
.devpane { display: none; }
.devpane.on { display: block; }
.props h2, .sideactions h2 { margin: 0 0 8px; }
.props dl { grid-template-columns: minmax(90px, 40%) minmax(0, 1fr); gap: 7px 10px; font-size: 13px; }
.card.sideactions { flex-direction: column; align-items: stretch; gap: 8px; }
.sideactions form, .sideactions form.inline { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.sideactions form input, .sideactions form.inline input { flex: 1 1 100%; width: 100%; min-width: 0; }
.sideactions button { flex: 1 1 auto; }

/* ---------- The History tab: field by field (Jaffer, 24 Oct 2026, Stage C) ---------- */
.histfilters { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 4px 0 8px; }
.histchips { display: flex; flex-wrap: wrap; gap: 6px; }
.histchip { padding: 4px 10px; border: 1px solid #cfd6e0; background: #fff; color: #3d4047; font: inherit; font-size: 12.5px; cursor: pointer; }
.histchip b { font-weight: 500; color: var(--muted); margin-left: 2px; }
.histchip.on { background: var(--brand-black); border-color: var(--brand-black); color: #fff; }
.histchip.on b { color: #c9cbd0; }
.histfield { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; }
.histfield select { width: auto; margin: 0; padding: 4px 8px; font-size: 12.5px; }
.histdate { margin: 0 -18px; padding: 10px 18px 6px; background: #fafafb; border-top: 1px solid var(--line); font-size: 11.5px;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.histsave { padding: 12px 0; border-top: 1px solid #eeeff1; display: flex; flex-direction: column; gap: 8px; }
.histdate + .histsave { border-top: 0; }
.histwho { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.histwho .avatar { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-black);
  color: #fff; font-size: 11px; font-weight: 600; }
.pill.histsrc { background: #ececee; color: #3d4047; }
.pill.histsrc.cleanse { background: #eaf2ff; color: #1b4fa8; }
.pill.histsrc.brandscan { background: #efe9fa; color: #4b2d86; }
.pill.histsrc.sync { background: var(--ok); color: var(--ok-ink); }
.pill.histsrc.status { background: var(--warn); color: #7a4d00; }
.histchange { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr) 18px minmax(0, 1fr) auto; gap: 4px 12px;
  align-items: center; font-size: 13px; padding-left: 32px; }
.histchange.nofield { display: block; color: var(--muted); }
.histf { color: var(--muted); }
.histold s { color: var(--err-ink); background: var(--err); padding: 1px 6px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.histnew { justify-self: start; }
.histnew:not(:has(i)) { color: var(--ok-ink); background: var(--ok); padding: 1px 6px; overflow-wrap: anywhere; }
.histold i, .histnew i { color: var(--muted); }
.histarrow { color: var(--muted); }
.histact form { margin: 0; }
.histnote { grid-column: 2 / -1; }
@media (max-width: 700px) {
  .histchange { grid-template-columns: 1fr; padding-left: 0; }
  .histarrow { display: none; }
}

/* ---------- To approve as a review screen (Jaffer, 24 Oct 2026, Stage C) ---------- */
.review { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.reviewlist { flex: 1 1 250px; max-width: 100%; padding: 0; margin: 0; max-height: calc(100vh - 160px); overflow-y: auto; }
.reviewlist a { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid #eeeff1; color: var(--ink); font-size: 13.5px; }
.reviewlist a:hover { background: #f7f7f8; text-decoration: none; }
.reviewlist a.on { background: #fff; box-shadow: inset 3px 0 0 var(--brand-red); font-weight: 500; }
.reviewlist .rname { overflow-wrap: anywhere; }
.reviewmain { flex: 999 1 640px; min-width: 0; }
.reviewmain .card { margin: 0; }
.reviewnav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.reviewnav .keyhint { margin-left: auto; }
.reviewnav kbd, .dlwform kbd { font-family: "Space Mono", ui-monospace, monospace; font-size: 11px; padding: 0 5px; border: 1px solid var(--line); background: var(--bg); }
.reviewmain .dlwbody { grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); }
.reviewmain .dlwprev img { max-height: min(62vh, 640px); width: auto; }
@media (max-width: 900px) { .reviewmain .dlwbody { grid-template-columns: 1fr; } .reviewlist { max-height: 260px; } }
.reasonchips { display: flex; flex-wrap: wrap; gap: 4px; flex-basis: 100%; }
.reasonchip { padding: 3px 8px; border: 1px solid #cfd6e0; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.reasonchip:hover { border-color: var(--ink); }

/* ---------- Compare: the dielines on top of each other, to scale (Jaffer, 24 Oct 2026, Stage C) ---------- */
.cmpoverlay { margin-top: 16px; }
.ovwrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.ovwrap svg { flex: 3 1 420px; max-width: 100%; max-height: 520px; background: #fff; border: 1px solid var(--line); }
.ovwrap svg rect { stroke-width: 1.5px; }
.ovkey { flex: 1 1 260px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.ovkey label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink); flex-wrap: wrap; }
.ovkey input { width: auto; margin: 0; }
.ovswatch { display: inline-block; width: 14px; height: 3px; }

/* Cleansing: spreadsheet edit (Jaffer, 24 Oct 2026, Stage C) */
.sheetswitch { display: inline-flex; margin: 0 0 12px; }
.sheetswitch button { border-radius: 0; background: #fff; color: var(--ink); border: 1px solid var(--brand-black); }
.sheetswitch button + button { border-left: 0; }
.sheetswitch button.on { background: var(--brand-black); border-color: var(--brand-black); color: #fff; }
.sheet [hidden], #listmode[hidden] { display: none !important; }
.sheethead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--line); position: sticky; top: 0; z-index: 3; }
.sheethead .sheetright { margin-left: auto; display: flex; gap: 8px; align-items: center; }
table.sheetgrid { width: 100%; min-width: 640px; border-collapse: collapse; }
table.sheetgrid td { vertical-align: middle; }
table.sheetgrid td.ro { background: #f4f4f2; color: var(--muted); }
table.sheetgrid td.ro a { color: inherit; }
table.sheetgrid td.cellbox { padding: 0; width: 30%; min-width: 180px; }
table.sheetgrid .cell { width: 100%; box-sizing: border-box; border: 0; border-radius: 0; background: transparent; padding: 8px 10px;
  font: inherit; resize: vertical; min-height: 36px; }
table.sheetgrid .cell:focus { outline: 2px solid var(--brand-black); outline-offset: -2px; background: #fff; }
table.sheetgrid td.chg { background: #fff4d6; box-shadow: inset 3px 0 0 #b26a00; }
table.sheetgrid td.bad { background: var(--err); box-shadow: inset 3px 0 0 #c81e28; }
table.sheetgrid .cellerr { display: block; padding: 0 10px 6px; color: var(--err-ink); }
table.sheetgrid .sug { overflow-wrap: anywhere; }
/* Products > Types as a grid (25 Oct 2026): many narrow columns, not the Cleansing value column */
table.sheetgrid.typegrid td.cellbox { width: auto; min-width: 0; }
table.sheetgrid.typegrid .cell { min-width: 0; }
table.sheetgrid.typegrid td.tick { text-align: center; min-width: 0; }
table.sheetgrid.typegrid td.tick input { width: auto; }
table.sheetgrid.typegrid .cell.num { text-align: right; }
table.sheetgrid.typegrid tr.newrow td { border-top: 2px solid var(--line); }
/* Rules > Types per parent as a tick matrix (25 Oct 2026) */
table.matrix th.tick, table.matrix td.tick { text-align: center; padding: 4px 6px; }
table.matrix td.tick label { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; margin: 0; cursor: pointer; }
table.matrix td.tick input { margin: 0; }
table.matrix td.tick .share { font-size: 11px; color: var(--muted); min-height: 13px; }
table.matrix td.tick.yours { box-shadow: inset 0 -3px 0 var(--brand-black); }
table.pricegrid td.num { padding: 6px 8px; white-space: nowrap; }
table.pricegrid td.warncell { background: var(--warn); }
.sheetswitch a.button { border-radius: 0; background: #fff; color: var(--ink); border: 1px solid var(--brand-black); }
.sheetswitch a.button + a.button { border-left: 0; }
.sheetswitch a.button.on { background: var(--brand-black); color: #fff; }
.sheetreviewbox { margin-top: 14px; }
.sheetrevlist { margin: 0 0 12px; padding-left: 18px; }
.sheetrevlist li { margin: 0 0 6px; }
.sheetrevlist s { color: var(--muted); }

/* Pending dielines as a board (Jaffer, 24 Oct 2026, Stage C) */
.board[hidden] { display: none !important; }
.boardcols { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.boardcol { background: #ececea; border: 1px solid var(--line); padding: 10px; min-width: 0; }
.boardhead { font-size: 14px; margin: 0; display: flex; justify-content: space-between; align-items: baseline; }
.boardhead b { font-family: "Space Mono", monospace; font-size: 13px; }
.boardhint { margin: 2px 0 10px; }
.boardcol.col-done { background: #e7f0ea; }
.bcard { background: #fff; border: 1px solid var(--line); padding: 8px 10px; margin-bottom: 8px; overflow-wrap: anywhere; }
.bcard.overdue { box-shadow: inset 3px 0 0 #c81e28; }
.bcardtop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bcardtop .mono { font-weight: 700; }
.bcardname { margin: 4px 0 2px; font-weight: 500; }
.bcardfoot { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.boardempty { margin: 0; }
@media (max-width: 700px) { .boardcols { grid-template-columns: repeat(5, 78vw); } }
.bcard .pill.flagged { background: var(--warn); color: #7a4d00; }

/* Home: Edit tiles (Jaffer, 24 Oct 2026, Stage C) */
.waithead { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 8px 0 12px; }
.waithead h2.section { margin: 0; }  /* the button sits beside the heading, centred on it (24 Oct 2026) */
.waithead .tileedit summary.button { padding: 3px 10px; font-size: 12px; line-height: 18px; }
.waithead .tileedit { position: relative; }
.waithead .tileedit summary { list-style: none; cursor: pointer; }
.waithead .tileedit summary::-webkit-details-marker { display: none; }
.tilepanel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(560px, calc(100vw - 32px));
  max-height: 70vh; overflow: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.tilepanel .tileform[hidden] { display: none; }
.tilechecks { display: grid; gap: 6px; margin: 6px 0 12px; }
.tilechecks label { display: flex; gap: 8px; align-items: baseline; font-weight: 400; margin: 0; }
.tilegrp { font-size: 13px; margin: 10px 0 0; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 700px) { .waithead .tileedit[open] { flex-basis: 100%; } .tilepanel { position: static; width: auto; max-height: none; margin-top: 8px; } }

/* Cleansing queue mode (Jaffer, 24 Oct 2026, Stage D) */
.qstart { margin: 0 10px 12px 0; }
.queue { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .queue { grid-template-columns: 1fr; } }
.qundo { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.qdev { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.qimg { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); background: #fff; flex: none; }
.qref { font-weight: 700; }
.qname { margin: 4px 0 2px; font-size: 22px; }
.qfacts { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; margin: 0 0 16px; }
.qfacts dt { color: var(--muted); }
.qfacts dd { margin: 0; overflow-wrap: anywhere; }
.qactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.qactions form { margin: 0; }
.qactions details > summary { list-style: none; cursor: pointer; }
.qactions details > summary::-webkit-details-marker { display: none; }
.qactions details[open] { flex-basis: 100%; order: 5; }
.qactions details form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; }
.qactions details .reasonchips { flex-basis: 100%; }
.qactions kbd, .qkeys kbd, #qback kbd, .qundo kbd { font-family: "Space Mono", monospace; font-size: 11px; padding: 0 4px; border: 1px solid currentColor; opacity: .7; margin-left: 4px; }
.qnext h2 { font-size: 15px; margin-top: 0; }
.qnextrow { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }

/* Pending ranked for Design (Jaffer, 24 Oct 2026, Stage D) */
.ranked[hidden] { display: none !important; }
.rankstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 10px; }
.rankstat { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.rankstat.rank-one { box-shadow: inset 0 3px 0 #17663a; }
.rankstat.rank-check { box-shadow: inset 0 3px 0 #b26a00; }
.rankstat.rank-draw { box-shadow: inset 0 3px 0 var(--brand-black); }
.rankgrid td { vertical-align: top; }
.rankgrid tr.ranktop td { background: #fbfaf5; }
.pill.work-one { background: var(--ok); color: var(--ok-ink); }
.pill.work-check { background: var(--warn); color: #7a4d00; }
.pill.work-draw { background: #ececea; color: var(--ink); }

/* Checks that missed (Jaffer, 24 Oct 2026, Stage D) */
.missgrid td { vertical-align: top; }
.missgrid .pill.flagged { background: var(--warn); color: #7a4d00; }
.misscheck { padding-left: 14px; position: relative; margin: 2px 0; }
.misscheck::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; background: var(--muted); }
.misscheck.lvl-ok::before { background: #17663a; }
.misscheck.lvl-flag::before { background: #c81e28; }
.misschips { display: flex; flex-wrap: wrap; gap: 6px; }
.misstotals h2 { font-size: 15px; margin-top: 0; }

/* Team activity and Your activity (27 Oct 2026) */
.actperiod { flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
form.inline.actperiod { margin-bottom: 4px; }
.actperiod select, .actperiod input, .actperiod button { margin: 0; }
.actrange { margin: 0 0 12px; }
.actgrid th, .actgrid td { white-space: nowrap; }
.actgrid thead th.num, .actown thead th.num { text-align: right; }
.actgrid thead th.num { white-space: normal; min-width: 76px; vertical-align: bottom; }
.actgrid .actgroup { text-align: center; border-bottom: 2px solid var(--line, #e3e5e9); }
.actgrid .actperson { text-align: left; }
.actgrid td.num, .actown td.num { font-variant-numeric: tabular-nums; }
.actgrid tfoot th, .actgrid tfoot td { font-weight: 700; border-top: 2px solid var(--line, #e3e5e9); }
.actchange { font-size: 11px; color: var(--muted); font-weight: 400; }
.actgrid .zero, .actown .zero { color: #c3c5ca; }
.actown .actsection th { text-align: left; padding-top: 14px; font-size: 13px; }
.actitems td:first-child { width: 120px; white-space: nowrap; }
.actnotes h2 { font-size: 15px; margin-top: 0; }
.actnotes ul { margin: 0 0 8px; padding-left: 18px; }

/* Products > Product SKUs: who owns each field (6 Nov 2026) */
.pill.own-atlas { background: var(--ok); color: var(--ok-ink); }
.pill.own-set { background: #eaf2ff; color: #1b4fa8; }
.pill.own-ow { background: #eef1f5; color: #3b4658; }
.pill.own-bc { background: #eef0ff; color: #33338a; }
.ownerkey { list-style: none; margin: 0 0 8px; padding: 0; }
.ownerkey li { margin: 4px 0; }
.ownerkey .pill { min-width: 150px; text-align: center; }
.skugrid thead th { white-space: nowrap; vertical-align: bottom; }
.skugrid thead th .pill { margin-top: 3px; font-weight: 400; }
.skugrid td { white-space: nowrap; }
.skubar .parentbox { flex: 0 0 11em; width: 11em; margin: 0; }
.skubar .groupchecks { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.skubar .groupchecks label { display: inline-flex; align-items: center; gap: 4px; margin: 0; white-space: nowrap; }
.skubar .groupchecks input { width: auto; margin: 0; }

/* Content > Descriptions (17 Nov 2026): the description matrix */
.inlineform { display: inline; margin: 0; }
.descbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.descbar h2 { margin: 0; }
.desclegend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; }
.desclegend .desccell { display: inline-block; padding: 1px 8px; }
table.descmatrix { width: auto; }
table.descmatrix th, table.descmatrix td { padding: 0; text-align: center; white-space: nowrap; }
table.descmatrix thead th { padding: 6px 4px; font-size: 12px; white-space: normal; max-width: 76px; vertical-align: bottom; }
table.descmatrix th.descfam { text-align: left; padding: 6px 10px; font-weight: 500; color: var(--ink); background: #fafbfc; position: sticky; left: 0; z-index: 1;
  white-space: normal; width: 180px; min-width: 180px; max-width: 180px; line-height: 1.3; }  /* 18 Nov 2026: long names wrap, so the matrix fits */
table.descmatrix thead th:first-child { position: sticky; left: 0; z-index: 1; width: 180px; min-width: 180px; max-width: 180px; }
table.descmatrix tbody tr:hover { background: none; cursor: default; }
table.descmatrix td a { display: block; padding: 6px 6px; min-width: 52px; text-decoration: none; font-weight: 600; }
.desccount { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.desccell.wanted { background: var(--ok); } .desccell.wanted a { color: var(--ok-ink); }
.desccell.old { background: var(--warn); } .desccell.old a { color: #7a4d00; }
.desccell.mixed { background: repeating-linear-gradient(135deg, var(--ok) 0 8px, var(--warn) 8px 16px); }
.desccell.none { background: var(--err); } .desccell.none a { color: var(--err-ink); }
.descbad { color: var(--err-ink); }
.descprev { width: 100%; height: 520px; border: 1px solid var(--line); background: #fff; margin: 6px 0 10px; }
.descsrc { white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; font-size: 12px; background: #fafbfc; border: 1px solid var(--line); padding: 10px; }
.descpick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
.descpick label { display: flex; align-items: center; gap: 6px; margin: 0; }
.descpick input { width: 12em; margin: 0; }
table.desctexts td.descstart { min-width: 260px; }
/* Content > Descriptions editing (18 Nov 2026): the draft */
.desccell.empty a { color: var(--muted); font-weight: 400; }
.desccell.empty:hover { background: #f2f4f7; }
.desclegend .desccell.empty { border: 1px dashed var(--line); }
.layoutform { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.layoutform input:not([type=hidden]) { width: 18em; margin: 0; }
.layoutform.layoutadd { margin: 8px 0 14px; }
.layoutform.layoutadd input[name=code] { width: 9em; }
table.desclayout td { vertical-align: middle; }
.descform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.descform label { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.descform select { max-width: 34em; margin: 0; }
.descform input { margin: 0; }
.desctext { width: 100%; box-sizing: border-box; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.descnew { margin-top: 10px; }
.draghandle { cursor: grab; color: var(--muted); padding: 0 6px 0 2px; user-select: none; font-size: 14px; }
#colrows tr.dragging { opacity: .45; background: #f2f4f7; }
