/* /local: additions on top of leaderboard.css and product.css. */
.source-label { margin-left:auto; color:var(--text-muted); font-size:13px; font-weight:700; }
/* Free play's one-line explanation beside its title: body text, quieter than the title. Phones (no tracking) skip it. */
.free-note { min-width:0; color:var(--text-muted); font-size:13px; font-weight:600; }
@media(max-width:650px) { .free-note { display:none; } }
.about-path { color:var(--text-muted); font-weight:500; }
/* A small sticker on the site name's top-right corner: this is the local tracker. Navy and gold, tilted. */
.masthead .brand { position:relative; }
.brand-tag { position:absolute; top:-9px; right:-12px; padding:2px 8px 3px; border:1px solid var(--gold-deep); border-radius:var(--radius);
  background:#1b2232; box-shadow:0 2px 6px #0008; color:var(--gold);
  font:500 12px/1.1 var(--font-display); letter-spacing:.2px; transform:rotate(12deg); pointer-events:none; }
.local-controls, .character-form, .identity-check, .hud-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin:12px 25px 4px; }
/* The controls row: a little more air above and below, so it, the EXP bar and the time pills sit evenly. */
.player-board .local-controls { margin:16px 25px 0; }
/* Buttons with shared styles, including the level planner, keep their own styling. */
.local-page button:not(.windows button, .chart-modes button, .about-tab, .about-icon, .scenery-tab, .about-close, .text-tab, .eta-plan, .planner-reset, .stat-reset) { min-height:34px; padding:0 14px; border:1px solid var(--line); border-radius:999px; background:var(--surface-raised); color:var(--text); font:inherit; font-size:13px; font-weight:800; cursor:pointer; }
.local-page button:not(.windows button, .chart-modes button, .about-tab, .about-icon, .scenery-tab, .about-close, .text-tab, .eta-plan, .planner-reset, .stat-reset):hover:not(:disabled) { border-color:var(--gold); }
.local-page button:disabled, .local-page select:disabled { opacity:.45; cursor:default; }
/* The one main action: gold like the site's selected buttons (by id, over the general button rule, which had
   made it a plain grey pill). */
.local-page #start { min-height:38px; padding:0 20px; border-color:#ffdf9f; background:linear-gradient(#ffd68c,var(--gold-deep)); color:var(--on-gold);
  box-shadow:inset 0 -3px #b06d1d40, 0 2px 0 #00000040; }
.local-page #start:hover:not(:disabled) { border-color:#fff3d6; background:linear-gradient(#ffe0a3,var(--gold)); }
.local-page .local-stop { border-color:var(--orange); }
/* The confirm panel for deleting: the About card's look, smaller, with Cancel and a red action. */
.confirm { width:min(420px,calc(100vw - 32px)); }
.confirm h2 { margin:0 0 6px; }
.confirm-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:16px; }
.local-page .confirm .danger { background:#7a2f2f; border-color:#d76b6b; color:#fff; }
.local-field { display:inline-flex; align-items:center; gap:6px; color:var(--text-muted); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; }
.local-field :is(select, input) { min-height:34px; padding:0 10px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text); font:inherit; font-size:14px; text-transform:none; letter-spacing:0; }
.local-controls .interval { margin-left:auto; }
.identity-check { padding:12px 14px; border:1px solid var(--orange); border-radius:var(--radius); background:var(--surface-raised); }
.identity-check p { flex-basis:100%; margin:0 0 4px; }
.status[data-tone="warn"] { color:var(--orange); }
.status[data-tone="ok"] { color:var(--green); }
.board-note { color:var(--text-muted); font-size:12px; font-weight:700; }
.local-hud, .local-data { margin-top:22px; }
/* Pickups and Live rate share a row on wide screens (Live rate alone when pickups are off). */
.local-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin-top:22px; }
.local-pair:has(> .board[hidden]) { grid-template-columns:minmax(0,1fr); }
@media (max-width:900px) { .local-pair { grid-template-columns:minmax(0,1fr); } }
/* The chart takes the panel's spare height, so the panel ends level with Pickups beside it. */
.live-board { display:flex; flex-direction:column; }
.live-chart { display:flex; flex:1; min-height:150px; margin:4px 25px 6px; }
.live-chart canvas { display:block; width:100%; height:auto; flex:1; --stroke:var(--green); --grid:#3a465d; --muted:var(--text-muted); --tip:var(--surface-raised); --label:var(--text); }
.live-board[data-kind="mesos"] .live-chart canvas { --stroke:var(--gold); }
@media (max-width:650px) { .live-chart { margin-left:14px; margin-right:14px; } }
.hud-body { padding:4px 0 16px; }
.hud-body > p { margin:8px 25px; color:var(--text-muted); font-size:14px; line-height:1.5; }
.hud-view { margin:10px 25px 0; }
.hud-view > canvas { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:8px; cursor:crosshair; image-rendering:pixelated; }
.hud-crops { display:flex; flex-wrap:wrap; gap:16px; margin-top:10px; }
.hud-crops figure { margin:0; }
.hud-crops canvas { display:block; max-width:100%; border:1px solid var(--line); image-rendering:pixelated; }
.hud-crops figcaption { margin-top:4px; color:var(--text-muted); font-size:12px; font-weight:700; }
.hud-crops code { color:var(--text); }
[data-tracking="on"] .local-start { display:none; }
@media (max-width:700px) {
  .local-controls .interval { margin-left:0; }
  .local-controls, .character-form, .identity-check, .hud-actions, .hud-view, .hud-body > p { margin-left:16px; margin-right:16px; }
}
.pickup-totals { margin:8px 25px; color:var(--text); font-weight:700; }
.pickup-log { max-height:260px; overflow:auto; margin:8px 25px 0; padding-left:28px; color:var(--text-muted); font-size:13px; line-height:1.6; font-variant-numeric:tabular-nums; }
.pickup-cards { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:18px; }
.pickup-cards > div { min-height:0; }
/* About two and a half rows of items, then a scrollbar: the half row shows there is more. */
.pickup-items { display:flex; flex-wrap:wrap; align-content:flex-start; gap:8px; max-height:126px; overflow-y:auto; overscroll-behavior:contain; margin:0 25px 12px; padding:0 4px 0 0; list-style:none; scrollbar-width:thin; scrollbar-color:var(--line) transparent; }
.pickup-items li { display:flex; align-items:center; gap:8px; padding:4px 10px 4px 4px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-raised); color:var(--text); font-size:13px; font-weight:700; }
.pickup-items .icon { width:32px; height:32px; flex:none; background-repeat:no-repeat; image-rendering:pixelated; }
.pickup-items .count { color:var(--gold); font-variant-numeric:tabular-nums; }
@media (max-width:650px) { .pickup-items { margin-left:14px; margin-right:14px; } }
.local-editor { width:min(640px,calc(100vw - 32px)); }
.local-editor h3 { margin:14px 0 6px; color:var(--gold); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.6px; }
.local-editor .character-form { margin:0; gap:12px 14px; }
.local-editor .character-form > button:first-of-type { margin-right:6px; }
/* The page's button padding would push the × off centre. */
.local-editor .about-close { display:grid; place-items:center; padding:0; min-height:0; font-size:18px; line-height:1; }
.remove-tracked { margin-top:18px; padding-top:4px; border-top:1px solid var(--line); }
.remove-range, .remove-kinds { display:flex; flex-wrap:wrap; gap:8px 14px; margin:10px 0; }
.remove-kinds { flex-direction:column; gap:6px; }
.remove-kinds label { display:flex; align-items:baseline; gap:8px; color:var(--text); font-weight:700; cursor:pointer; }
.remove-kinds input { accent-color:var(--gold); }
.remove-kinds [hidden] { display:none; }
.option-row[hidden] { display:none; }
.restore-note { margin:6px 0 0; color:var(--text-muted); font-size:12px; }
.restore-note:empty { display:none; }  /* Options for one layout only (Live shows, Items from). */
/* Placed like the Live rate panel's pills (the toolbar's own padding, no extra margin), so both panels line up. */
.pickup-toolbar { margin:0; }

/* Fewer pills: a dropdown for each time choice (mesos in its card's label, items in the item row), the item
   categories as plain text tabs (underlined when chosen), and "All items" (the popup) at the row's end. */
.items-row { align-items:center; gap:14px; padding-top:4px; }
.inline-label { color:var(--text-muted); font-size:12px; font-weight:700; }
.inline-select { min-height:26px; margin-left:4px; padding:0 6px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-raised);
  color:var(--text); font:inherit; font-size:12px; font-weight:800; text-transform:none; letter-spacing:0; color-scheme:dark; cursor:pointer; }
.card-label .inline-select { min-height:22px; margin-left:2px; color:var(--gold); }
.text-tabs { display:flex; gap:14px; }
.text-tab { min-height:0; padding:4px 0; border:0; border-bottom:2px solid transparent; border-radius:0; background:none; color:var(--text-muted);
  font:inherit; font-size:13px; font-weight:800; cursor:pointer; }
.text-tab:hover { color:var(--text); }
.text-tab[aria-pressed="true"] { border-bottom-color:var(--gold); color:var(--text); }
.local-page #items-expand { display:inline-flex; align-items:center; gap:6px; height:32px; min-height:0; margin-left:auto; padding:0 12px; border-radius:999px; color:var(--text-soft); font-size:12px; }
/* All items: the About card's look, wider, with the same pills and a search box; the grid scrolls inside. */
.items-popup { width:min(760px,calc(100vw - 32px)); }
.items-popup-tools { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin:4px 0 14px; }
.items-popup-tools input { flex:1; min-width:160px; min-height:32px; padding:0 12px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-raised); color:var(--text); font:inherit; font-size:13px; }
/* A fixed height, so the popup keeps its size while filtering and searching; not the About card's list indent. */
.items-popup-list.pickup-items { height:min(60vh,520px); max-height:none; margin:0; padding:0 4px 0 0; }
.items-popup-note { margin:10px 0 0; color:var(--text-muted); font-size:12px; }
.hud-help { margin:0 25px 16px; }
.hud-help .hud-body { margin:8px 0 0; }
.hud-help .hud-actions { margin:10px 0 4px; }
.hud-help #hud-help { margin:0; }
.scan-stats { margin:6px 0 0; color:var(--text-muted); font-size:12px; }
/* Phones can't share a game window; a note there only. */
.phone-only { display:none; }
@media(max-width:650px) { .phone-only { display:inline; } }
/* Safari only (app.js sets data-browser); on a phone the note above already says to use a computer. */
.safari-only { display:none; color:var(--gold); font-weight:800; }
@media(min-width:651px) { [data-browser="safari"] .safari-only { display:inline; } }
.remove-range small { align-self:center; color:var(--text-muted); font-size:12px; font-weight:600; }
/* On narrow screens the live pages' pills drop " min" for "m"; the scan interval is in seconds. */
@media(max-width:650px) { .product[data-view="player"] .interval button:has(.unit)::after { content:"s"; } }
