/* TM247: Hummingbird styling, matched to Asset Hub (soft panels, navy actions, pink-to-lime brand line) */
@font-face { font-family: "Mark Pro"; font-weight: 400; font-display: swap; src: local("Mark Pro"), local("MarkPro"), url(/fonts/MarkPro.woff2) format("woff2"); }
@font-face { font-family: "Mark Pro"; font-weight: 500 600; font-display: swap; src: local("Mark Pro Medium"), local("MarkPro-Medium"), url(/fonts/MarkPro-Medium.woff2) format("woff2"); }
@font-face { font-family: "Mark Pro"; font-weight: 700 900; font-display: swap; src: local("Mark Pro Heavy"), local("MarkPro-Heavy"), url(/fonts/MarkPro-Heavy.woff2) format("woff2"); }

:root {
  --bg: #f5f5f9; --panel: #fff; --line: #dfe3e8; --soft: #f3f3f8;
  --text: #0c0a40; --muted: #667085; --accent: #0c0a40; --accent-hover: #1b1870;
  --pink: #ff169d; --link: #c4086f; --lime: #b5d46d;
  --brand-grad: linear-gradient(90deg, #ff169d, #cc9779 55%, #b5d46d);
  /* Status colours kept soft: pale fill, deep text */
  --crit: #b42318; --crit-bg: #fdecea; --major: #a15c07; --major-bg: #fef3e2;
  --adv: #3d4f8f; --adv-bg: #eef1fb; --ok: #18794e; --ok-bg: #e8f6ee; --none: #667085; --none-bg: #f0f1f5;
  --font: "Mark Pro", "Century Gothic", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: .02em; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

/* ---- Side menu (navy, as Asset Hub's header), collapsible to icons ---- */
body { display: flex; min-height: 100vh; }
#side { position: sticky; top: 0; height: 100vh; width: 236px; flex: none; background: #0c0a40; color: #fff;
  display: flex; flex-direction: column; transition: width .18s ease; z-index: 20; }
#side[hidden] { display: none; }
#side::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #ff169d, #cc9779 55%, #b5d46d); }
.side-top { padding: 16px 16px 8px; }
.brand { display: flex; align-items: center; }
.logo-full { height: 44px; width: auto; display: block; }
.logo-mark { height: 36px; width: 36px; object-fit: contain; display: none; }
.product { margin: 4px 16px 18px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; font-weight: 500; letter-spacing: .2em; }
.product small { display: block; font-size: 9px; letter-spacing: .3em; color: var(--pink); margin-top: 2px; }
#nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; flex: 1; overflow-y: auto; }
#nav a, .side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #c9c8e0; text-decoration: none;
  white-space: nowrap; background: none; border: 0; font: inherit; cursor: pointer; width: 100%; text-align: left; }
#nav a:hover, .side-link:hover { color: #fff; background: rgba(255,255,255,.06); }
#nav a.on { color: #fff; font-weight: 600; background: rgba(255,255,255,.1); box-shadow: inset 3px 0 0 var(--pink); }
#nav svg, .side-link svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-foot { padding: 10px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 2px; }
.who-box { padding: 6px 12px 8px; line-height: 1.3; }
.who-box span { display: block; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.who-box small { color: #c9c8e0; font-size: 11px; }
.link { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; }

/* Collapsed: icons only */
body.collapsed #side { width: 68px; }
body.collapsed #side .logo-full, body.collapsed .product, body.collapsed .who-box, body.collapsed #nav a span, body.collapsed .side-link span { display: none; }
body.collapsed .logo-mark { display: block; }
body.collapsed .side-top { padding: 16px 0 14px; display: flex; justify-content: center; }
body.collapsed #nav a, body.collapsed .side-link { justify-content: center; padding: 10px 0; }
body.collapsed #collapse svg { transform: rotate(180deg); }

#shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#mobilebar { display: none; }

@media (max-width: 760px) {
  #side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; width: 260px; }
  body.menu-open #side { transform: none; }
  body.collapsed #side { width: 260px; }
  body.collapsed #side .logo-full, body.collapsed .product, body.collapsed .who-box, body.collapsed #nav a span, body.collapsed .side-link span { display: revert; }
  body.collapsed .logo-mark { display: none; }
  #collapse { display: none; }
  #scrim:not([hidden]) { position: fixed; inset: 0; background: rgb(12 10 64 / .35); z-index: 15; }
  #mobilebar:not([hidden]) { display: flex; align-items: center; gap: 10px; background: #0c0a40; color: #fff; padding: 8px 14px; position: sticky; top: 0; z-index: 10;
    border-bottom: 3px solid transparent; border-image: var(--brand-grad) 1; }
  #mobilebar img { height: 30px; }
  #mobilebar span { font-size: 13px; letter-spacing: .2em; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.3); }
  #menuBtn { background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; }
  #menuBtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
}

/* ---- Sub tabs (as Asset Hub's Transport tabs) ---- */
#subnav { background: var(--panel); border-bottom: 1px solid var(--line); padding: 0 28px; display: flex; gap: 4px; overflow-x: auto; }
#subnav a { padding: 14px 16px 12px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
#subnav a.on { color: var(--text); border-bottom-color: var(--pink); }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: none; margin: 0; padding: 24px 28px 64px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-head h1 { font-size: 22px; font-weight: 600; letter-spacing: .01em; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px;
  border-top: 3px solid transparent; border-image: var(--brand-grad) 1; border-image-slice: 1 0 0 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }

/* ---- Buttons and inputs ---- */
.btn { background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 6px; padding: 8px 14px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:hover { background: var(--accent-hover); }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg); border-color: var(--pink); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); }
input[type=checkbox] { width: auto; accent-color: var(--pink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pink); outline-offset: -1px; border-color: var(--pink); }
textarea { min-height: 96px; resize: vertical; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; }
.form .full { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text); font-size: 14px; }
.checks label { flex-direction: row; align-items: center; gap: 6px; color: var(--text); font-size: 14px; }

/* ---- Status pills: soft fills ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-critical, .s-action_required { background: var(--crit-bg); color: var(--crit); }
.s-major, .s-attention { background: var(--major-bg); color: var(--major); }
.s-advisory { background: var(--adv-bg); color: var(--adv); }
.s-compliant { background: var(--ok-bg); color: var(--ok); }
.s-no_evidence, .s-incomplete, .s-open { background: var(--none-bg); color: var(--none); }
.s-signed_off { background: #e9e8f3; color: var(--text); }
.s-live { background: #e8f6ee; color: #18794e; }

/* ---- Summary figures ---- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.tile b { display: block; font-size: 26px; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tile span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, transparent); }
.tile.crit { --dot: #e5484d; } .tile.major { --dot: #f5a524; } .tile.adv { --dot: #6e7fd0; } .tile.ok { --dot: #3fb27f; }

/* ---- Findings ---- */
.finding { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.finding summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; gap: 12px; align-items: center; }
.finding summary::-webkit-details-marker { display: none; }
.finding summary h3 { flex: 1; min-width: 0; font-weight: 500; }
.finding summary::after { content: "›"; color: var(--muted); font-size: 18px; transition: transform .15s; }
.finding[open] summary::after { transform: rotate(90deg); }
.finding[open] summary { border-bottom: 1px solid var(--line); background: var(--soft); }
.finding .body { padding: 12px 16px 16px; font-size: 14px; }
.finding ul { margin: 0; padding-left: 18px; }
.code { font-size: 11px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }

/* ---- Tables ---- */
.scroll { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--soft); }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; }
tr.click { cursor: pointer; } tr.click:hover td { background: #fafafd; }
.bad { color: var(--crit); font-weight: 600; } .warn { color: var(--major); font-weight: 600; } .good { color: var(--ok); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); font-size: 12px; margin: 1px 2px 1px 0; }

.monthnav { display: flex; align-items: center; gap: 6px; }
.monthnav b { min-width: 120px; text-align: center; font-weight: 600; }
.monthnav .btn { width: 34px; padding: 6px 0; }
.addr { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--soft); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; user-select: all; word-break: break-all; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.error { color: var(--crit); font-size: 14px; }
.note { background: #fff8e6; border: 1px solid #f3dca0; border-radius: 8px; padding: 10px 14px; font-size: 14px; }

/* ---- Sign in ---- */
.login { max-width: 400px; margin: 9vh auto 0; }
.login img { width: 220px; display: block; margin: 0 auto 4px; }
.login .product { text-align: center; letter-spacing: .3em; text-transform: uppercase; font-size: 13px; font-weight: 600; margin-bottom: 8px; }

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #0c0a40; color: #fff;
  padding: 10px 18px; border-radius: 8px; box-shadow: 0 4px 16px rgb(12 10 64 / .25); z-index: 10; }

@media (max-width: 760px) { .page-head h1 { font-size: 19px; } }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
td a, a.tag { color: var(--text); text-decoration: none; }
td a:hover, a.tag:hover { color: var(--link); text-decoration: underline; }
.tile:not(.crit):not(.major):not(.adv):not(.ok) span::before { display: none; }

/* ---- Diary ---- */
table.diary td { vertical-align: top; white-space: normal; }
.dcell { display: flex; flex-direction: column; gap: 4px; min-height: 64px; }
td.dcell { display: table-cell; }
.slot { font-size: 11px; padding: 2px 6px; border-radius: 4px; margin-bottom: 4px; cursor: pointer; }
.slot.available { background: var(--ok-bg); color: var(--ok); }
.slot.unavailable { background: var(--none-bg); color: var(--none); }
.visit { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; border: 1px solid var(--line); border-left: 3px solid #0c0a40;
  background: #fff; border-radius: 6px; padding: 4px 8px; margin-bottom: 4px; cursor: pointer; font-size: 12px; color: var(--text); }
.visit b { font-size: 13px; } .visit span { color: var(--muted); font-size: 11px; }
.visit.remote { border-left-color: #6e7fd0; }
.visit.completed { border-left-color: #3fb27f; background: #f7fbf8; }
.visit.cancelled { opacity: .55; text-decoration: line-through; }
.visit:hover { border-color: var(--pink); }
.meter { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.meter span { display: block; height: 100%; background: var(--brand-grad); }
.meter span.over { background: #e5484d; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.meter { display: flex; }
.meter span.booked { background: #e7c6da; }
#viewas { background: #ffe6f4; color: #8a0a55; border-bottom: 1px solid #f7b8da; padding: 8px 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 500; }
#viewas[hidden] { display: none; }
.quickbook { width: 100%; margin-top: 2px; padding: 5px 0; border: 1px dashed var(--line); border-radius: 6px; background: transparent;
  color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; opacity: .55; transition: opacity .12s, border-color .12s, color .12s; }
td.dcell:hover .quickbook, .quickbook:focus-visible { opacity: 1; }
.quickbook:hover { border-color: var(--pink); color: var(--text); background: #fff; opacity: 1; }
@media (hover: none) { .quickbook { opacity: 1; } }

/* Full width: tables fill the page and wrap long text instead of scrolling sideways */
table { table-layout: auto; }
th, td { white-space: normal; overflow-wrap: anywhere; }
td.n, th.n, td .pill, td .btn, td.row { white-space: nowrap; overflow-wrap: normal; }
td .pill { display: inline-flex; }
@media (max-width: 760px) { .wrap { padding: 18px 16px 48px; } #subnav, #viewas { padding-left: 16px; padding-right: 16px; } th, td { white-space: nowrap; } }

/* ---- Audits carried out against a template ---- */
.auditlayout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.auditside { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 14px; }
.auditnav { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; }
.auditnav:hover { background: var(--soft); }
.auditnav.on { background: var(--soft); box-shadow: inset 3px 0 0 var(--pink); font-weight: 600; }
.auditnav .t { flex: 1; min-width: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--line); }
.dot.d-ok { background: #3fb27f; } .dot.d-warn { background: #f5a524; } .dot.d-bad { background: #e5484d; } .dot.d-na { background: #98a2b3; }
.dot.d-incomplete { background: transparent; border: 2px solid var(--line); }
.q { border-left: 4px solid var(--line); }
.q.q-ok { border-left-color: #3fb27f; } .q.q-warn { border-left-color: #f5a524; } .q.q-bad { border-left-color: #e5484d; } .q.q-na { border-left-color: #98a2b3; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 18px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.seg button:hover { border-color: var(--pink); }
.seg button.on { font-weight: 600; }
.seg button.t-ok { background: var(--ok-bg); color: var(--ok); border-color: #3fb27f; }
.seg button.t-warn { background: var(--major-bg); color: var(--major); border-color: #f5a524; }
.seg button.t-bad { background: var(--crit-bg); color: var(--crit); border-color: #e5484d; }
.seg button.t-na { background: var(--none-bg); color: var(--none); border-color: #98a2b3; }
.linkbtn { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 2px; font: inherit; }
.linkbtn:hover { color: var(--crit); }
@media (max-width: 900px) {
  .auditlayout { grid-template-columns: 1fr; }
  .auditside { position: static; max-height: none; }
  .q .form { grid-template-columns: 1fr !important; }
}
.nowrap { white-space: nowrap; }
.card.q { border-image: none; border-top: 1px solid var(--line); border-left: 4px solid var(--line); }
.card.q.q-ok { border-left-color: #3fb27f; } .card.q.q-warn { border-left-color: #f5a524; } .card.q.q-bad { border-left-color: #e5484d; } .card.q.q-na { border-left-color: #98a2b3; }
.q textarea { min-height: 60px; }
.q .form { align-items: start; }
.card.q.dropping { outline: 2px dashed var(--pink); outline-offset: -4px; background: #fff5fb; }
.droptip { align-self: center; }
@media (hover: none) { .droptip { display: none; } }

/* ---- Planner ---- */
.pc { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin: 1px; vertical-align: middle; border: 2px solid transparent; }
.pc.done { background: #3fb27f; } .pc.due { background: #f5a524; } .pc.overdue { background: #e5484d; }
.pc.upcoming { background: transparent; border-color: #c3c8d4; } .pc.skipped { background: #c3c8d4; }
.legend { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; } .legend .pc { margin-left: 8px; }
table.planner th.cur, table.planner td.cur { background: #fff5fb; }
table.planner td { text-align: left; }
.panelrow > td { background: var(--soft); padding: 14px 16px; }
.dropzone { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; }
.dropzone.dropping { border-color: var(--pink); background: #fff5fb; }
.fu-line { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: 8px; align-items: center; margin-bottom: 6px; }
@media (max-width: 760px) { .fu-line { grid-template-columns: 1fr auto; } .fu-line input[type=date] { grid-column: 1; } }

/* ---- Operator area ---- */
#nav .opgroup { margin: 2px 0 6px 10px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 2px; }
#nav .opswitch select { width: 100%; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 6px 8px; font-size: 13px; margin: 2px 0 4px; }
#nav .opswitch option { color: #0c0a40; }
#nav a.sub { padding: 8px 10px; font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.collapsed #nav .opgroup { margin-left: 0; padding-left: 0; border-left: 0; }
body.collapsed #nav .opswitch { display: none; }
@media (max-width: 760px) { body.collapsed #nav .opswitch { display: block; } }
.healthgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card.health { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); border-image: none; border-top: 1px solid var(--line); border-left: 4px solid var(--line); }
.card.health:hover { border-color: var(--pink); }
.card.health.h-ok { border-left-color: #3fb27f; } .card.health.h-warn { border-left-color: #f5a524; } .card.health.h-bad { border-left-color: #e5484d; } .card.health.h-none { border-left-color: #c3c8d4; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
ul.alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
ul.alerts li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
ul.alerts li a { flex: 1; min-width: 0; color: var(--text); }
.dot.d-warn { background: #f5a524; } .dot.d-bad { background: #e5484d; } .dot.d-ok { background: #3fb27f; } .dot.d-none { background: #c3c8d4; }
svg.chart { width: 100%; height: auto; max-height: 170px; display: block; }
svg.chart .axis { stroke: var(--line); }
svg.chart .tick, svg.chart .val { font-size: 11px; fill: var(--muted); }
svg.chart .val { fill: var(--text); font-weight: 600; }
svg.chart .zero { fill: var(--line); }
svg.chart path:hover { opacity: .8; }
.legendrow { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legendrow i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.weekgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wday { background: var(--soft); border-radius: 8px; padding: 8px; min-height: 90px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.wday.today { box-shadow: inset 0 0 0 2px var(--pink); background: #fff5fb; }
.witem { background: #fff; border: 1px solid var(--line); border-left: 3px solid #6e7fd0; border-radius: 6px; padding: 5px 7px; line-height: 1.3; }
.witem.check { border-left-color: #f5a524; } .witem.fu { border-left-color: #e5484d; }
@media (max-width: 900px) { .weekgrid { grid-template-columns: 1fr; } .wday { min-height: 0; } }
.opcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card.opcard { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); }
.card.opcard:hover { box-shadow: 0 2px 10px rgba(12,10,64,.08); }
pre.code { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; white-space: pre-wrap; word-break: break-all; font-size: 12px; }
