/* Layout: the estate rings, the version, requests, then one tinted band for the skill details. JIM AI house style: charcoal, mint led, dark for everyone. */
:root {
  --bg: #282828; --surface: #343434; --band: #1C1C1C; --card: #343434; --fg: #FFFFFF; --body: #DEDEDE; --muted: #A2A2A2;
  --line: #454545; --line-strong: #5A5A5A; --accent: #1FE6A6; --accent-text: #1FE6A6; --on-accent: #111111;
  --chip: #1C1C1C;
  --t-everyone: #1FE6A6; --t-cs: #B57CFF; --t-creative: #FF8A4C; --t-strategy: #F5B03C; --t-leadership: #FFFFFF; --t-ops: #A2A2A2;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif; --num: 'Space Grotesk', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--body); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
header.top { padding-block: 24px 4px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; }
.logo { height: 40px; width: auto; }
.logo-light { display: none; }
.topright { display: flex; align-items: center; gap: 14px; }
.source { font-size: 13px; color: var(--muted); }
.source code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.btn { font: 600 14px var(--sans); color: var(--fg); background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { border-color: var(--accent); }
.btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn svg { width: 18px; height: 18px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent-text); }

/* Leaderboard popover */
.board { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: calc(100% + 8px); width: min(420px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; z-index: 30; box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.board h3 { margin: 0 0 6px; }
/* What is new: the notification button and its panel */
.btn.bell { position: relative; }
.btn.bell .dot { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.btn.bell .dot[hidden] { display: none; }
.bellpanel { max-height: min(70vh, 560px); overflow: auto; }
.bellpanel .upd { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.bellpanel .updhead { margin: 0 0 6px; color: var(--muted); }
.bellpanel .updhead b { color: var(--fg); font-family: var(--num); font-size: 16px; }
ul.points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--body); }
/* .board li is a two-column grid for the leaderboard; a point in the notes is an ordinary list item. */
.board ul.points li { display: list-item; list-style: disc; }
.topright .btn { white-space: nowrap; }
.noterow td { background: var(--surface); }
.notecount { color: var(--muted); font-size: 14px; margin-right: 8px; }
.board p { font-size: 14px; }
.board ol { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.board li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; }
.board li b { font-family: var(--num); font-size: 22px; line-height: 1.1; color: var(--fg); font-variant-numeric: tabular-nums; }
.board li span { color: var(--muted); }
.board li strong { color: var(--fg); font-weight: 600; }

section.scene { padding-block: 48px; border-top: 1px solid var(--line); }
section.scene:first-of-type { border-top: none; padding-top: 20px; }
section.band { background: var(--band); border-top: none; }
h1, h2 { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; color: var(--fg); text-wrap: balance; margin: 0 0 12px; line-height: 1.05; }
h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h1 .m, h2 .m { color: var(--accent-text); }
h3 { font-size: 18px; font-weight: 700; color: var(--fg); margin: 0 0 4px; }
p { margin: 0; }
.lede { font-size: 17px; color: var(--body); margin-bottom: 24px; }
details > summary { cursor: pointer; font-weight: 600; color: var(--fg); }
details > summary::-webkit-details-marker { color: var(--accent-text); }

/* Scene 1: the estate */
.estate { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 32px; align-items: start; }
.estate-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.legend div { display: flex; align-items: center; gap: 10px; }
.key { width: 14px; height: 14px; flex: none; border-radius: 50%; }
.key.k { background: var(--chip); border: 2px solid var(--accent); border-radius: 7px; }
.key.t { background: var(--card); border: 2px solid var(--fg); border-radius: 4px; }
.key.s { background: var(--muted); }
.numbers { font-size: 14px; }
.counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.count { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.count b { display: block; font-family: var(--num); font-weight: 600; font-size: 32px; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.count span { font-size: 13px; color: var(--muted); }
.focus-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-height: 130px; }
.focus-card .team { font-size: 13px; font-weight: 700; }
.focus-card p { font-size: 14px; }
.focus-card .hint { color: var(--muted); }
.focus-card .open { color: var(--accent-text); font-weight: 700; margin-top: 8px; }
.diagram { min-width: 0; }
.diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.ring { fill: none; stroke: var(--line); stroke-width: 1.2; }
.core { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.ring-label { font: 600 18px var(--sans); fill: var(--muted); }
.centre-title { font: 800 40px var(--sans); fill: var(--fg); letter-spacing: -0.02em; }
.kn rect { fill: var(--chip); stroke: var(--accent); stroke-width: 2; }
.kn text { font: 600 16px var(--sans); fill: var(--fg); }
.tl rect { fill: var(--card); stroke: var(--fg); stroke-width: 2; }
.tl text { font: 600 19px var(--sans); fill: var(--fg); }
.sk { cursor: pointer; outline: none; }
.sk circle.dot { stroke: var(--bg); stroke-width: 3; transition: r .25s ease-out, opacity .25s; }
.sk text { font: 500 22px var(--sans); fill: var(--body); transition: opacity .25s; }
.sk circle.halo { fill: none; stroke: none; }
.sk:focus-visible circle.halo, .sk.on circle.halo { stroke: var(--accent); stroke-width: 3; }
.team-label { font: 800 22px var(--sans); }
.ln { fill: none; stroke-width: 2.2; opacity: 0; transition: opacity .25s; }
.estate-svg.all .ln { opacity: 0.22; }
.ln.on { opacity: 0.95 !important; stroke-width: 3; }
.estate-svg.focusing .sk:not(.on) { opacity: 0.28; }
.estate-svg.focusing .kn:not(.hit), .estate-svg.focusing .tl:not(.hit) { opacity: 0.3; }
.kn, .tl, .sk { transition: opacity .25s; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Narrow: accordion */
.accordion { display: none; flex-direction: column; gap: 10px; }
.accordion details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.accordion summary { padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; }
.accordion summary span { font-weight: 500; color: var(--muted); }
.accordion ul { list-style: none; margin: 0; padding: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.accordion li button { width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 600 15px var(--sans); color: var(--fg); cursor: pointer; }
.accordion li button small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

/* Scene 2: version */
.vnow { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.vnow b { font: 600 clamp(44px, 6vw, 72px) var(--num); color: var(--fg); line-height: 1; letter-spacing: -0.02em; }
.history { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; max-width: 760px; }
.history details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.history summary { padding: 12px 16px; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; }
.history summary .v { font-family: var(--num); font-weight: 600; font-size: 20px; color: var(--fg); font-variant-numeric: tabular-nums; }
.history summary .d { font-weight: 500; color: var(--body); }
.history summary .n { font-size: 13px; color: var(--muted); white-space: nowrap; }
.history .body { padding: 0 16px 14px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.newgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.newchip { display: inline-flex; align-items: center; gap: 8px; background: var(--chip); color: var(--fg); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; }
.newchip i { font-style: normal; font-size: 12px; font-weight: 700; background: var(--accent); color: var(--on-accent); padding: 2px 7px; border-radius: 999px; }
.ver { font-variant-numeric: tabular-nums; }
.ver .was { color: var(--muted); text-decoration: line-through; margin-right: 6px; }
.ver .now { font-weight: 700; color: var(--fg); }

/* Scene 3: requests */
.asks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }

/* Search */
.search { position: relative; max-width: 640px; margin: 0 0 28px; }
.search input { width: 100%; font: 500 17px var(--sans); color: var(--fg); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 14px 20px 14px 48px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--accent); outline: none; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; z-index: 20; box-shadow: 0 12px 32px rgba(0,0,0,0.28); display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow-y: auto; }
.results button { width: 100%; text-align: left; background: none; border: none; border-radius: 10px; padding: 10px 12px; font: 500 15px var(--sans); color: var(--fg); cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; }
.results button small { display: block; grid-column: 1 / -1; color: var(--muted); font-size: 13px; font-weight: 400; }
.results button em { font-style: normal; color: var(--muted); font-size: 13px; white-space: nowrap; }
.results button.sel, .results button:hover { background: var(--surface); }
.results .none { padding: 10px 12px; font-size: 15px; color: var(--body); }
.results .none b { color: var(--fg); }
.results .ask-row { padding: 8px 12px 6px; border-top: 1px solid var(--line); margin-top: 4px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.results .ask-row a, .results .ask-row span.go { color: var(--accent-text); font-weight: 700; text-decoration: none; }
.ask { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: inherit; text-decoration: none; }
a.ask:hover { border-color: var(--accent); }
.ask h3 { margin-bottom: 6px; }
.ask p { font-size: 14px; }
.ask .go { color: var(--accent-text); font-weight: 700; margin-top: 10px; }
.ask .soon { color: var(--accent-text); font-weight: 700; margin-top: 10px; }
.cadence { margin-top: 18px; font-size: 15px; color: var(--body); }

/* Scene 4: skill details */
.picker { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.picker label { font-size: 14px; color: var(--muted); }
select { font: 600 15px var(--sans); color: var(--fg); background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; max-width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 36px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
.card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.card-dot { width: 50px; height: 50px; border-radius: 50%; flex: none; }
.card h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); }
.meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; font-size: 15px; margin-top: 18px; }
.meta dt { font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 2px; }
.meta dd { margin: 0; color: var(--fg); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--fg); color: var(--fg); background: var(--card); border-radius: 8px; padding: 5px 11px; font-size: 14px; font-weight: 600; }
.chip.k { border-color: var(--accent); background: var(--chip); border-radius: 999px; }
.chips-empty { font-size: 14px; color: var(--muted); }
.say { font-size: 15px; color: var(--fg); }
.say q { font-weight: 600; }
.ghost { position: fixed; border-radius: 50%; z-index: 50; pointer-events: none; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .25s .45s; transform-origin: 0 0; }

.runs { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 36px); margin-top: 18px; }
.runs-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.runs-head h3 { font-size: 22px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.step:first-child { border-top: none; }
.step .n { font-family: var(--num); font-weight: 600; font-size: 20px; color: var(--muted); line-height: 1.3; font-variant-numeric: tabular-nums; }
.step .lbl { font-size: 18px; font-weight: 700; color: var(--fg); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.step .type { font-size: 13px; font-weight: 600; color: var(--muted); }
.step .detail { font-size: 15px; color: var(--body); margin-top: 4px; display: none; }
.steps.open .detail { display: block; }
.stops { margin-top: 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.where { margin-top: 14px; font-size: 14px; }
.where ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.where code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.foot { padding-block: 36px 56px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot p { max-width: none; }

/* Motion: everything is visible at rest; a scene plays its entrance once, when it is 40 per cent in view. */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.play .anim { animation: rise .45s ease-out backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.play .sk, .play .tl, .play .kn { animation: pop .4s ease-out backwards; animation-delay: calc(var(--i, 0) * 45ms); transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .play .anim, .play .sk, .play .tl, .play .kn { animation: none !important; }
  .ghost { display: none; }
  .ln { transition: none; }
}

@media (max-width: 900px) {
  .estate { grid-template-columns: minmax(0, 1fr); }
  .estate-side { position: static; }
  .card { grid-template-columns: minmax(0, 1fr); }
  .asks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* Header: the source line on its own row, the buttons on the next, wrapping whole. */
  .topright { flex-wrap: wrap; gap: 8px; }
  .topright .source { flex: 1 0 100%; }
  .diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .diagram svg { min-width: 760px; }
  .accordion { display: flex; }
  .asks { grid-template-columns: minmax(0, 1fr); }
  .history summary { grid-template-columns: 64px minmax(0, 1fr); }
  .history summary .n { grid-column: 2; white-space: normal; }
}

/* Loading and empty states */
.state { padding: 48px 0; color: var(--muted); font-size: 17px; }
.state b { color: var(--fg); }

/* Panels: feedback and requests */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 32px); margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.panel h3 { font-size: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field textarea, .field select { font: 500 16px var(--sans); color: var(--fg); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > .field { flex: 1 1 220px; }
.drop { border: 2px dashed var(--line-strong); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); font-size: 15px; cursor: pointer; }
.drop.over { border-color: var(--accent); color: var(--fg); }
.drop input { display: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { position: relative; width: 120px; height: 90px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(0,0,0,0.7); color: #fff; font: 700 14px var(--sans); cursor: pointer; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:disabled { opacity: 0.5; cursor: default; }
.msg { font-size: 14px; color: var(--accent-text); font-weight: 600; }
.msg.err { color: #FF8A4C; }
.raised { display: flex; flex-direction: column; gap: 8px; }
.raised .item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.raised .item b { color: var(--fg); font-weight: 600; }
.raised .item small { color: var(--muted); display: block; }
/* The log: an item is one line until it is clicked */
.raised details.item { display: block; padding: 0; }
.raised details.item summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 14px; cursor: pointer; list-style: none; }
.raised details.item summary::-webkit-details-marker { display: none; }
.raised details.item[open] summary { border-bottom: 1px solid var(--line); }
.raised details.item .body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.raised details.item .body .field { width: 100%; }
.raised details.item .said { white-space: pre-wrap; margin: 0; color: var(--body); }
#logPanel .filters .btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.status { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--chip); color: var(--fg); white-space: nowrap; border: 1px solid var(--line); }
.status.shipped { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.status.declined { color: var(--muted); }
.banner { background: #3A2E12; border: 1px solid #6B5312; color: #F5D98A; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 12px 0 0; }

/* Admin */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 18px; }
.tabs .btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
.tbl td b { color: var(--fg); }
.inbox { display: flex; flex-direction: column; gap: 10px; }
.inbox details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.inbox summary { padding: 14px 16px; display: grid; grid-template-columns: 90px 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.inbox summary .c { font-weight: 700; color: var(--fg); }
.inbox summary .t { color: var(--muted); }
.inbox summary .s { color: var(--fg); }
.inbox .body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.inbox .body p { font-size: 15px; max-width: none; white-space: pre-wrap; }
.shots { display: flex; flex-wrap: wrap; gap: 10px; }
.shots a img { width: 180px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
@media (max-width: 640px) { .inbox summary { grid-template-columns: minmax(0, 1fr) auto; } .inbox summary .t { display: none; } }
#signin .btn.primary { width: 100%; justify-content: center; text-align: center; }
#signin .field { margin-bottom: 12px; }
.pagetabs { border-bottom: 1px solid var(--line); padding: 14px 0; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.pagetabs .wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.pagetabs .btn[aria-pressed="true"] { background: var(--accent); color: #101010; border-color: var(--accent); }
.tl.un rect, .key.t.un { stroke-dasharray: 4 3; border-style: dashed; opacity: .75; }
.tl.un text { fill: var(--muted); }
.tblwrap { overflow-x: auto; }
#upTbl { min-width: 860px; }
#upTbl tr.now td { background: color-mix(in srgb, var(--accent) 9%, transparent); }
#upTbl tr.now td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
#upTbl .what { color: var(--muted); }
#upTbl .score { font-family: var(--num, inherit); font-weight: 600; color: var(--fg); text-align: center; }
.filters input[type="search"], .filters select, .tbl select, .tbl input[type="text"] { font: 500 14px var(--sans); color: var(--fg); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; }
#rmTbl input[type="text"] { width: 100%; min-width: 120px; }
a.btn { text-decoration: none; }
/* Edit and Delete on your own open item, at the end of its row */
.rowend { display: inline-flex; align-items: center; gap: 8px; }
.btn.iconbtn { padding: 6px; width: 32px; height: 32px; justify-content: center; }
.btn.iconbtn svg { width: 16px; height: 16px; }
.btn.iconbtn.armed { border-color: var(--warn, #FF8A4C); color: var(--warn, #FF8A4C); }
