/* EOS Show File Inspector — styled to feel like a Mac app: system font, quiet chrome, light and dark. */

:root {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #aeaeb2;
  --line: rgba(0, 0, 0, 0.08);
  --stripe: rgba(0, 0, 0, 0.028);
  --hover: rgba(0, 122, 255, 0.09);
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, 0.1);
  --diff: #e8850c;
  --diff-soft: rgba(255, 149, 0, 0.14);
  --green: #28a745;
  --red: #e5372b;
  --bar: rgba(246, 246, 248, 0.82);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  --sheet-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), 0 0 0 0.5px rgba(0, 0, 0, 0.15);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1e1e;
    --panel: #2a2a2b;
    --text: #f5f5f7;
    --muted: #98989d;
    --faint: #5c5c61;
    --line: rgba(255, 255, 255, 0.08);
    --stripe: rgba(255, 255, 255, 0.03);
    --hover: rgba(10, 132, 255, 0.16);
    --accent: #0a84ff;
    --accent-soft: rgba(10, 132, 255, 0.18);
    --diff: #ff9f0a;
    --diff-soft: rgba(255, 159, 10, 0.16);
    --green: #30d158;
    --red: #ff453a;
    --bar: rgba(38, 38, 40, 0.82);
    --shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.07);
    --sheet-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(255, 255, 255, 0.12);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-variant-numeric: tabular-nums;
}
button { font: inherit; color: inherit; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ---------- Toolbar ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--bar);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line);
}
.app-icon { width: 28px; height: 28px; border-radius: 7px; }
.titles { min-width: 0; flex: 1; }
.title { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subtitle { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools { display: flex; gap: 6px; flex: none; }
.tool {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px; border-radius: 7px; border: none; cursor: default;
  background: transparent; color: var(--text);
}
.tool:hover { background: var(--line); }
.tool[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.tool.primary { background: var(--accent); color: #fff; }
.tool.primary:hover { filter: brightness(1.08); }
.tool:disabled { opacity: 0.35; }
@media (max-width: 720px) { .tool span { display: none; } .tool { padding: 0 8px; } }

/* ---------- Layout ---------- */
main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.single { padding: 22px; max-width: 800px; width: 100%; margin: 0 auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; flex: 1; }
.split > .side { min-width: 0; border-right: 0.5px solid var(--line); display: flex; flex-direction: column; }
.split > .side:last-child { border-right: none; }
.side-bar {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-bottom: 0.5px solid var(--line); background: var(--bar); font-size: 12px;
  position: sticky; top: var(--tb, 49px); z-index: 5;
}
.split.bars { flex: none; position: sticky; top: var(--tb, 49px); z-index: 6; }
.split.bars > .side-bar { position: static; }
.split.bars > .side-bar:first-child { border-right: 0.5px solid var(--line); }
.side-bar .tag { font-size: 10px; font-weight: 700; color: var(--faint); letter-spacing: 0.04em; }
.side-bar .file { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-bar .file.none { color: var(--muted); }
.icon-btn { border: none; background: none; width: 24px; height: 24px; border-radius: 6px; display: inline-grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--line); color: var(--text); }
.icon-btn svg { width: 14px; height: 14px; }
.side .single { padding: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > .side { border-right: none; border-bottom: 0.5px solid var(--line); } }

/* ---------- Empty state ---------- */
.empty { padding: 22px; max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.drop {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px;
  border: 1.5px dashed var(--faint); transition: background 0.15s, border-color 0.15s;
}
.drop.big { min-height: 260px; flex-direction: column; justify-content: center; text-align: center; }
.drop.big .drop-icon { width: 46px; height: 46px; stroke-width: 1.2; }
.drop.target { border-color: var(--accent); background: var(--accent-soft); }
.drop-icon { width: 28px; height: 28px; color: var(--muted); stroke-width: 1.3; }
.drop h2 { margin: 0; font-size: 15px; }
.drop.big h2 { font-size: 20px; }
.drop p { margin: 2px 0 0; color: var(--muted); }
.drop .grow { flex: 1; }
.btn {
  height: 28px; padding: 0 14px; border-radius: 7px; border: 0.5px solid var(--line);
  background: var(--panel); box-shadow: var(--shadow); cursor: default;
}
.btn:hover { filter: brightness(0.97); }
.btn.blue { background: var(--accent); color: #fff; border-color: transparent; }
.promise { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 12px; padding: 0 6px; }
.promise svg { margin-top: 1px; color: var(--green); }

.recents h3 { margin: 0 0 6px 8px; font-size: 13px; display: flex; justify-content: space-between; }
.recents h3 button { border: none; background: none; color: var(--accent); font-weight: 400; }
.recent {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 8px;
  border: none; background: none; text-align: left; cursor: default;
}
.recent:hover { background: var(--line); }
.recent .doc { width: 26px; height: 30px; border-radius: 4px; background: linear-gradient(160deg, #3a3a3c, #1c1c1e); color: #fff; font-size: 8px; font-weight: 700; display: grid; place-items: center; letter-spacing: 0.03em; }
.recent .name { flex: 1; min-width: 0; }
.recent .name div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent .name small { color: var(--muted); }
.recent time { color: var(--muted); font-size: 11px; }

.status { display: grid; place-items: center; gap: 12px; padding: 60px 20px; color: var(--muted); text-align: center; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--muted); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status .warn { width: 34px; height: 34px; color: var(--diff); }
.status strong { color: var(--text); }

/* ---------- Summary ---------- */
.show-name { font-size: 26px; font-weight: 700; margin: 0; line-height: 1.15; }
.file-name { color: var(--muted); margin-top: 4px; word-break: break-all; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 99px; background: var(--line); }
.chip.accent { color: var(--accent); background: var(--accent-soft); }
.chip.diff { color: var(--diff); background: var(--diff-soft); }
.dates { display: grid; grid-template-columns: 96px 1fr; gap: 2px 8px; margin-top: 12px; font-size: 12px; }
.dates dt { color: var(--muted); }
.dates dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dates dd.main { font-weight: 600; font-size: 13px; }
.dates .ago { color: var(--muted); font-weight: 400; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.tile { background: var(--accent-soft); border-radius: 12px; padding: 12px 6px; text-align: center; }
.tile b { display: block; font-size: 25px; font-weight: 600; letter-spacing: -0.01em; }
.tile span { font-size: 11px; color: var(--muted); }
@media (max-width: 520px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; margin-bottom: 14px; }
.card h3 { margin: 0 0 10px; font-size: 13px; }
.rows { display: grid; gap: 6px; }
.row { display: flex; align-items: baseline; gap: 8px; }
.row .label { flex: 1; min-width: 0; }
.row .detail { color: var(--muted); }
.row .value { font-weight: 600; }
.row.dim { opacity: 0.45; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.note { color: var(--muted); font-size: 11px; margin-top: 8px; }

table.lists { width: 100%; border-collapse: collapse; }
table.lists th { font-size: 11px; color: var(--muted); font-weight: 600; text-align: left; padding: 0 6px 6px; border-bottom: 0.5px solid var(--line); }
table.lists td { padding: 5px 6px; }
table.lists .num { text-align: right; font-weight: 600; width: 1%; white-space: nowrap; }
table.lists .range { color: var(--muted); white-space: nowrap; width: 1%; }
table.lists .chev { width: 1%; color: var(--faint); }
table.lists tbody tr { cursor: default; }
table.lists tbody tr:hover td { background: var(--hover); }
table.lists tbody tr:hover td:first-child { border-radius: 6px 0 0 6px; }
table.lists tbody tr:hover td:last-child { border-radius: 0 6px 6px 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

.mini-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini-tiles div { background: var(--stripe); border-radius: 9px; padding: 8px 4px; text-align: center; }
.mini-tiles b { display: block; font-size: 17px; font-weight: 600; }
.mini-tiles span { font-size: 11px; color: var(--muted); }

details.fixtures summary { cursor: default; list-style: none; display: flex; align-items: baseline; gap: 6px; }
details.fixtures summary::-webkit-details-marker { display: none; }
details.fixtures summary::before { content: ""; width: 0; height: 0; border-left: 5px solid var(--muted); border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform 0.15s; margin-right: 2px; }
details.fixtures[open] summary::before { transform: rotate(90deg); }
.fixture-list { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 8px 0 2px 14px; font-size: 12px; }
.fixture-list b { text-align: right; }

/* ---------- Compare table ---------- */
.compare { display: flex; flex-direction: column; }
.compare-head {
  position: sticky; top: calc(var(--tb, 49px) + 34px); z-index: 4; background: var(--bar);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line);
}
.compare-body { padding: 18px 24px 30px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 230px 230px 110px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.compare-body .cols { padding: 0 12px; }
.compare-head { padding: 0 24px; }
.compare-head .cols { padding: 8px 12px; }
.cols > :not(:first-child) { text-align: right; }
.colname { min-width: 0; }
.colname b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.colname small { color: var(--muted); font-size: 11px; }
.colname .newer { color: var(--accent); font-weight: 600; margin-right: 4px; }
.colname.change { font-size: 11px; font-weight: 600; color: var(--muted); }
.tsec { max-width: 1120px; margin: 0 auto 26px; }
.tsec h3 { margin: 0 0 8px 12px; font-size: 15px; }
.tbox { background: var(--panel); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.trow { min-height: 30px; }
.trow:nth-child(even) { background: var(--stripe); }
.trow:hover { background: var(--hover); }
.trow .lbl { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.trow .lbl small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; min-width: 0; padding: 5px 0; }
.cell .v { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .sub { color: var(--muted); white-space: nowrap; }
.cell.text .v { font-weight: 400; }
.cell.same .v { color: var(--muted); }
.cell.none .v { color: var(--faint); font-weight: 400; }
.cell.link { cursor: default; border-radius: 6px; }
.cell.link:hover .v { color: var(--accent); }
.cell .chev { color: var(--faint); font-size: 10px; }
.chg { font-weight: 600; white-space: nowrap; }
.chg.up { color: var(--green); }
.chg.down { color: var(--red); }
.chg.neutral { color: var(--muted); font-weight: 500; }
.pill { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 99px; padding: 1px 8px; }
.pill.up { color: var(--green); background: color-mix(in srgb, var(--green) 15%, transparent); }
.pill.down { color: var(--red); background: color-mix(in srgb, var(--red) 15%, transparent); }
.tfoot { color: var(--muted); font-size: 11px; margin: 6px 12px 0; }
.linkbtn { border: none; background: none; color: var(--accent); padding: 6px 12px; }
@media (max-width: 860px) {
  .cols { grid-template-columns: minmax(0, 1fr) 110px 110px 70px; }
  .compare-body { padding: 14px 10px; } .compare-head { padding: 0 10px; } .compare-head .cols { padding: 8px 12px; }
  .cell .sub { display: none; }
}

/* ---------- Sheets ---------- */
dialog.sheet {
  border: none; padding: 0; border-radius: 14px; background: var(--bg); color: var(--text);
  box-shadow: var(--sheet-shadow); width: min(860px, calc(100vw - 32px)); height: min(760px, calc(100vh - 48px));
  display: none; flex-direction: column; overflow: hidden;
}
dialog.sheet[open] { display: flex; animation: sheet-in 0.18s ease-out; }
dialog.sheet.wide { width: min(1120px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, 0.25); }
@keyframes sheet-in { from { transform: translateY(-12px) scale(0.98); opacity: 0; } }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 12px; }
.sheet-head .grow { flex: 1; min-width: 0; }
.sheet-head h2 { margin: 0; font-size: 18px; }
.sheet-head .from { display: grid; grid-template-columns: 40px 1fr; gap: 1px 6px; margin-top: 6px; font-size: 12px; }
.sheet-head .from dt { color: var(--muted); }
.sheet-head .from dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-head .from small { color: var(--muted); margin-left: 6px; }
.sheet-body { flex: 1; overflow: auto; border-top: 0.5px solid var(--line); }
.search { height: 28px; border-radius: 7px; border: 0.5px solid var(--line); background: var(--panel); padding: 0 10px; width: 220px; color: var(--text); font: inherit; }
.search:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }

.segmented { display: inline-flex; background: var(--line); border-radius: 8px; padding: 2px; margin: 0 18px 12px; }
.segmented button { border: none; background: none; padding: 3px 14px; border-radius: 6px; font-size: 12px; }
.segmented button[aria-pressed="true"] { background: var(--panel); box-shadow: var(--shadow); font-weight: 600; }
.segmented button b { font-weight: 500; color: var(--muted); margin-left: 6px; }

table.cues { width: 100%; border-collapse: collapse; font-size: 12px; }
table.cues thead th { position: sticky; top: 0; background: var(--bar); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 0.5px solid var(--line); white-space: nowrap; }
table.cues td { padding: 5px 8px; vertical-align: top; }
table.cues tbody tr:nth-child(even) { background: var(--stripe); }
table.cues tbody tr:hover { background: var(--hover); }
table.cues .n { font-weight: 600; white-space: nowrap; }
table.cues .t { white-space: nowrap; }
table.cues .t small { display: block; color: var(--muted); }
table.cues .scene { color: var(--accent); }
table.cues .notes { color: var(--muted); }
.mark { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--diff); }
.mark.new { background: var(--green); width: 9px; height: 9px; }
.legend { display: flex; gap: 16px; font-size: 11px; color: var(--muted); padding: 0 18px 10px; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.dsec { background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); margin: 0 0 12px; }
.dsec summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px; cursor: default; font-weight: 600; }
.dsec summary::-webkit-details-marker { display: none; }
.dsec summary .grow { flex: 1; }
.dsec summary::before { content: ""; border-left: 5px solid var(--muted); border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform 0.15s; }
.dsec[open] summary::before { transform: rotate(90deg); }
.count { font-size: 11px; font-weight: 500; border-radius: 99px; padding: 1px 8px; }
.count.added { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.count.removed { color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }
.count.changed { color: var(--diff); background: var(--diff-soft); }
.items { padding: 0 12px 12px 30px; display: grid; gap: 3px; font-size: 12px; }
.item { display: flex; gap: 8px; align-items: baseline; }
.item i { font-style: normal; width: 10px; text-align: center; font-weight: 700; flex: none; }
.item.added i { color: var(--green); } .item.removed i { color: var(--red); } .item.changed i { color: var(--diff); }
.diff-body { padding: 16px; }
.diff-note { color: var(--muted); font-size: 11px; margin: 4px 4px 0; }

/* ---------- Footer ---------- */
.privacy {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 20px 16px;
  color: var(--muted); font-size: 11px; border-top: 0.5px solid var(--line);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.privacy svg { color: var(--green); width: 14px; height: 14px; }
.privacy span:not(.tm) { flex: 1; min-width: 260px; }
.privacy .tm { color: var(--faint); }

/* ---------- Drop veil ---------- */
#drop-veil { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 1fr; pointer-events: none; }
#drop-veil.two { grid-template-columns: 1fr 1fr; }
#drop-veil .veil-half { margin: 8px; border: 3px solid transparent; border-radius: 14px; }
#drop-veil .veil-half.on { border-color: var(--accent); background: var(--accent-soft); }
#drop-veil:not(.two) .veil-half[data-side="1"] { display: none; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 99px; font-size: 12px;
  box-shadow: var(--sheet-shadow); animation: sheet-in 0.15s ease-out;
}

.chev-icon { width: 10px; height: 10px; }
.right { text-align: right !important; }
.grow { flex: 1; }
.nomatch { padding: 20px; text-align: center; color: var(--muted); }

dialog.sheet.small { width: min(600px, calc(100vw - 32px)); height: fit-content; max-height: min(640px, calc(100vh - 48px)); }
.saves-body { padding: 8px 10px 14px; }
.saves-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 8px 4px; }
.pad { padding: 4px 8px; margin: 6px 0; }
.small { font-size: 11px; }
.sheet.small .sheet-body { flex: none; }

/* ---------- Hover and press states (clearer than the system-quiet defaults) ---------- */
:root { --hover-fill: rgba(0, 0, 0, 0.09); --press-fill: rgba(0, 0, 0, 0.15); --hover: rgba(0, 122, 255, 0.13); }
@media (prefers-color-scheme: dark) { :root { --hover-fill: rgba(255, 255, 255, 0.12); --press-fill: rgba(255, 255, 255, 0.2); --hover: rgba(10, 132, 255, 0.24); } }
button, [data-action], summary, .recent { cursor: pointer; transition: background-color 0.12s, filter 0.12s, box-shadow 0.12s, color 0.12s; }
.tool:hover, .icon-btn:hover, .segmented button:hover { background: var(--hover-fill); }
.tool:active, .icon-btn:active, .segmented button:active { background: var(--press-fill); }
.tool[aria-pressed="true"]:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.tool.primary:hover, .btn.blue:hover { filter: brightness(1.15); box-shadow: 0 0 0 3px var(--accent-soft); }
.tool.primary:active, .btn.blue:active { filter: brightness(0.92); }
.btn:hover { filter: none; background: color-mix(in srgb, var(--text) 9%, var(--panel)); border-color: color-mix(in srgb, var(--text) 22%, transparent); }
.btn:active { background: color-mix(in srgb, var(--text) 15%, var(--panel)); }
.segmented button[aria-pressed="true"]:hover { background: var(--panel); }
.recent:hover { background: var(--hover); }
.dsec summary:hover { background: var(--hover-fill); border-radius: 12px; }
details.fixtures summary:hover { color: var(--accent); }
.cell.link:hover { background: var(--accent-soft); }
.cell.link:hover .chev, table.lists tbody tr:hover .chev { color: var(--accent); }
.linkbtn:hover, .recents h3 button:hover { text-decoration: underline; }
.drop:hover { border-color: var(--muted); }

/* App icon and title: a Start Over button, like a site logo going home */
.home { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; border: none; background: none; padding: 3px 8px 3px 3px; margin-left: -3px; border-radius: 9px; text-align: left; }
.home .titles { display: block; min-width: 0; }
.home .title, .home .subtitle { display: block; }
.home:hover { background: var(--hover-fill); }
.home:active { background: var(--press-fill); }
.home:hover .app-icon { transform: scale(1.06); }
.app-icon { transition: transform 0.12s; }

/* Shift-click selection in the recent list */
.recent.picked { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.recent .pickno { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.recents .hint { color: var(--muted); font-size: 11px; margin: 6px 8px 0; }

dialog.sheet.narrow { width: min(680px, calc(100vw - 32px)); }
.mini-tiles .tile-btn { border: none; color: inherit; font: inherit; background: var(--stripe); border-radius: 9px; padding: 8px 4px; text-align: center; }
.mini-tiles .tile-btn:hover { background: var(--hover); }
.mini-tiles .tile-btn b { display: block; font-size: 17px; font-weight: 600; }
.mini-tiles .tile-btn span { font-size: 11px; color: var(--muted); }
.row.link { border-radius: 6px; margin: 0 -6px; padding: 1px 6px; }
.row.link:hover { background: var(--hover); }
.row.link:hover .value { color: var(--accent); }

/* Clickable tiles and rows: an arrow, and a clear hover */
.tile.link { border: none; color: inherit; font: inherit; width: 100%; }
.tile.link:hover, .mini-tiles .tile-btn:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.tile.link:hover span, .mini-tiles .tile-btn:hover span { color: var(--accent); }
.arrow { font-style: normal; margin-left: 4px; opacity: 0.55; font-weight: 700; }
.tile.link:hover .arrow, .tile-btn:hover .arrow, .row.link:hover .arrow { opacity: 1; color: var(--accent); }
.row.link .arrow { margin-left: 2px; color: var(--muted); }
dialog.sheet.wide-ish { width: min(900px, calc(100vw - 32px)); }
