/* iomega · analogue-theme.css — THE ANALOGUE OS SKIN (2026-09-03).
   Reference: Analogue Pocket OS — pure black, neo-grotesque type in mixed case,
   no borders, grey secondary text, and THE move: selection/hover is a white
   pill with inverted black text. Loaded LAST on /disk/, /deck/, /inbox/,
   /save/. Lesson kept: selectors must be body.page-album to beat main.css. */

body.page-album {
  --paper: #000000;
  --paper-2: #0d0d0d;
  --card: #000000;
  --ink: #ffffff;
  --ink-soft: #8b8b8b;
  --ink-faint: #5a5a5a;
  --line: #1c1c1c;
  --line-strong: #2a2a2a;
  --cobalt: #ffffff;           /* the only accent is white */
  --cobalt-deep: #d0d0d0;
  --teal: #ffffff;
  --teal-deep: #ffffff;
  --magenta: #ffffff;
  --accent: #ffffff;
  --shadow-1: none;
  --shadow-2: none;
  --r-lg: 12px;
  --r-md: 8px;
  --r-sm: 6px;
  --spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --f-sans: "Helvetica Neue", Helvetica, Inter, "Segoe UI", Arial, sans-serif;
  --f-mono: "Helvetica Neue", Helvetica, Inter, "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-weight: 500;
  letter-spacing: -0.005em;
  touch-action: pan-y;         /* zoom stays locked */
}
body.page-album .bg-grid, body.page-album .bg-vignette { background: #000; }
body.page-album * { text-shadow: none !important; text-transform: none !important; }

/* mixed case, quiet hierarchy */
.record-cat, .sec-note, .wall-count, .cubby-status, .splash-line, .splash-hands,
.record-artist, .note-at, .track-num, .track-time, .mini-track, .rec-sub,
.credits-top, .sec-fine, .listeners-label, .credit-row dt, .credits-legal,
.unlock-msg, .cloud-label, .save-fine, .book-form-row .unlock-msg {
  font-family: var(--f-sans) !important;
  font-weight: 400;
  letter-spacing: 0 !important;
  color: var(--ink-soft);
}
.record-artist::after { color: var(--ink-faint); }
.record-title, .wall-title { font-weight: 700; letter-spacing: -0.02em; }
.record-chain { color: var(--ink-soft); font-weight: 400; letter-spacing: 0 !important; }
.sec-title {
  font-size: 22px !important;
  font-weight: 700;
  letter-spacing: -0.02em !important;
  color: var(--ink);
}

/* ---------- kill every box: black on black, spacing does the work ---------- */
.cubby, .panel-inner, .memcard-panel, .mini, .note, .nudge,
.rec-cover-ghost, .record-cover, .rec-cover {
  background: #000 !important;
  border: none !important;
  box-shadow: none !important;
}
.record-cover, .rec-cover, .mini-art { border-radius: 6px !important; }

/* ---------- THE SHELF becomes an OS list ---------- */
.shelf { display: flex; flex-direction: column; gap: 2px; }
.cubby {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 14px;
  min-height: 0 !important;
  max-height: none !important;
  padding: 13px 16px !important;
  border-radius: 999px !important;
  transition: none;
}
.cubby-glyph { color: var(--ink-soft); font-size: 15px !important; width: 22px; text-align: center; }
.cubby-name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em !important; color: var(--ink); }
.cubby-status { margin-left: auto; font-size: 12px; }
/* the signature: hover/active = white pill, everything inverts */
.cubby:hover, .cubby:active {
  background: #fff !important;
  transform: none !important;
}
.cubby:hover .cubby-name, .cubby:active .cubby-name,
.cubby:hover .cubby-glyph, .cubby:active .cubby-glyph { color: #000; }
.cubby:hover .cubby-status, .cubby:active .cubby-status { color: #555; }
.cubby.is-empty { opacity: 0.35; }
.cubby.is-live .cubby-status { color: var(--ink-soft); }
.cubby.is-playing .cubby-glyph { color: var(--ink); }
.cubby-link { grid-column: auto; }

/* ---------- buttons: quiet text; hover = the pill ---------- */
.pill, .unlock-btn, .memcard-btn, .download-btn, .book-btn, .files-btn,
.cloud-btn, .note-heart, .note-msg-btn, .skip-btn, .panel-close {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-family: var(--f-sans) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  transition: background 120ms ease, color 120ms ease;
}
.pill:hover, .unlock-btn:hover, .memcard-btn:hover, .download-btn:hover,
.book-btn:hover, .cloud-btn:hover, .note-heart:hover, .note-msg-btn:hover,
.panel-close:hover {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
  transform: none !important;
}
.unlock-btn, .download-btn { background: #fff !important; color: #000 !important; border-color: #fff !important; }
.unlock-btn:hover, .download-btn:hover { background: #d9d9d9 !important; }
.download-btn.is-disabled { background: transparent !important; color: var(--ink-faint) !important; border-color: var(--line) !important; }
.note-heart.is-on { background: #fff !important; color: #000 !important; border-color: #fff !important; }
.cloud-btn svg { filter: grayscale(1) brightness(2); }
.cloud-btn:hover svg { filter: none; }

/* inputs */
.unlock-input, .book-name, .book-body, .save-email, .pm-input {
  background: var(--paper-2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 10px !important;
  font-family: var(--f-sans) !important;
  font-weight: 400;
  letter-spacing: 0 !important;
}
.unlock-input::placeholder { color: var(--ink-faint); }

/* ---------- splash: black screen; the stamp is a white pill ---------- */
.page-disk .disk-splash { background: #000; }
.splash-line { font-size: 13px; }
.splash-chain { animation: none; }
.splash-copy {
  display: inline-block;
  background: #fff;
  color: #000 !important;
  font-family: var(--f-sans) !important;
  font-weight: 700;
  font-size: 21px !important;
  letter-spacing: -0.01em !important;
  padding: 10px 22px;
  border-radius: 999px;
}
.splash-hands {
  font-size: 18px !important;
  font-weight: 600;
  color: #fff !important;
  letter-spacing: -0.01em !important;
}
.splash-badge { background: none; }
.badge-star { background: #fff; }
.splash-badge-n { color: #000; }
.badge-word { color: #9a9a9a; font-size: 13px; letter-spacing: 0 !important; }
.chain-star { background: #fff; }
.chain-star span { color: #000 !important; }
.chain-word { color: #9a9a9a; letter-spacing: 0 !important; }
.disk-name {
  font-family: var(--f-sans);
  font-size: 13px;
  letter-spacing: -0.01em !important;
  color: #9a9a9a;
}
.disk-name.is-unnamed { color: #555; }
.splash-disk { box-shadow: none; background: #111; }
.splash-disk::after { background: #000; box-shadow: none; }

/* ---------- panels: dialogs over the shelf (background stays visible,
   and tapping it closes — the close button is a courtesy) ---------- */
.panel { background: rgba(0, 0, 0, 0.62); backdrop-filter: none; padding: 16px; align-items: center; }
.panel-inner {
  width: min(540px, 100%) !important;
  max-height: 76vh !important;
  max-height: 76dvh !important;
  background: #0b0b0b !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 18px !important;
  padding: 24px 20px 18px;
  animation: pocket-in 0.16s ease both !important;
  transform-origin: center !important;
}
@keyframes pocket-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.panel .panel-close {
  border: none !important;
  color: var(--ink-soft) !important;
  font-size: 13px;
}
.panel .panel-close:hover { background: transparent !important; color: #fff !important; }

/* tracks: rows with the pill on hover/current */
.track { border-radius: 999px; padding: 12px 16px; margin: 0 -8px; }
.track:hover, .track.is-current { background: #fff; }
.track:hover *, .track.is-current * { color: #000 !important; }
.track.is-current .track-title::after { content: ""; }
.track-title { font-size: 15px; font-weight: 500; }
.video-card, .video-stage video { border: none; border-radius: 8px; }
.credit-row { border-bottom: 1px solid var(--line); }

/* guest book */
.note { padding: 14px 4px !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; }
.note.is-mine { border-left: none !important; }
.note-name { font-weight: 600; letter-spacing: 0 !important; color: var(--ink); }
.note-body { color: var(--ink-soft); font-weight: 400; }

/* ---------- mini player: the status bar ---------- */
.mini {
  border-top: 1px solid var(--line) !important;
  border-radius: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  max-width: none !important;
  padding: 12px 18px calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
  backdrop-filter: none;
  background: #000 !important;
}
.mini-title { font-weight: 600; letter-spacing: -0.01em; }
.mini-track { font-size: 12px; letter-spacing: 0 !important; }
.mini-play {
  background: transparent !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: none !important;
}
.mini-play::before { color: #fff; }
.mini-play:hover { background: #fff !important; }
.mini-play:hover::before { color: #000; }
.mini-bar { height: 2px; border: none; border-radius: 0; background: var(--line-strong); }
.mini-fill { background: #fff; border-radius: 0; }
.is-playing .mini-art { animation-duration: 6s; }

/* ---------- the wall ---------- */
.rec-name { font-weight: 600; letter-spacing: -0.01em; }
.rec.is-missing .rec-cover { opacity: 0.4; filter: grayscale(0.6); }
.rec.is-missing a:hover .rec-cover { opacity: 0.7; }
.rec.is-held .rec-sub { color: var(--ink-soft); }
.rec.is-upcoming { opacity: 0.5; }
.rec.is-upcoming .rec-cover-ghost {
  border: 1px dashed var(--line-strong) !important;
  background: var(--paper-2);
  border-radius: 6px !important;
}
.rec.is-upcoming .rec-cover-ghost span { color: var(--ink-faint); letter-spacing: 0.1em; }
.wall-room { border: 1px solid var(--line-strong) !important; }

/* nudge */
.nudge { border: 1px solid var(--line-strong) !important; background: #000 !important; border-radius: 14px !important; }
.nudge span { color: var(--ink-soft); }

/* ---------- util-row: 2×2 grid, every pill identical ---------- */
.util-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  justify-content: stretch !important;
}
.util-row > * {
  margin: 0 !important;
  height: 46px;
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px !important;
  padding: 0 12px !important;
  white-space: nowrap;
}
.util-row > [hidden] { display: none !important; }

/* unread badge (inbox pill) */
.inbox-pill { position: relative; }
.pill-badge {
  position: absolute;
  top: -5px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #000;
}
.inbox-pill:hover .pill-badge { background: #000; color: #fff; border-color: #fff; }

/* the memcard family (save modal etc) becomes a real Analogue dialog */
body.page-album .memcard { background: rgba(0, 0, 0, 0.62); backdrop-filter: none; }
body.page-album .memcard-panel {
  background: #0b0b0b !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}
body.page-album .memcard-title { color: var(--ink); letter-spacing: -0.01em; font-size: 17px; font-weight: 600; }
body.page-album .memcard-title::before { content: ""; }
body.page-album .memcard-copy { color: var(--ink-soft); }
body.page-album .memcard-code {
  border: none;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.saved-email {
  display: inline-block;
  margin: 4px 0 18px;
  padding: 9px 20px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.reclaim-btn { display: block; margin: 0 auto 6px; padding: 10px 18px !important; cursor: pointer; }

/* PM bubbles (the clay rules used --cobalt, which is white here → white-on-white) */
.pm-m.is-me span { background: #fff !important; color: #000 !important; }
.pm-m.is-them span { background: #1c1c1c !important; color: #fff !important; }
.pm-m.is-none { color: var(--ink-faint); }
.pm-block { color: #b33; }

/* inbox page scrolls */
body.page-scroll { height: auto !important; overflow: auto !important; }

/* listeners on the main screen */
.shelf-page .listeners { margin: 0; }

/* zip link: same pill as its neighbours */
.zip-link { border-color: var(--line-strong) !important; }
.zip-link img { filter: invert(1); height: 14px; }
.zip-link:hover { background: #fff !important; }
.zip-link:hover img { filter: none; }

/* status-bar touches: the battery-dot language */
.wall-count::before, .record-chain::before { content: "● "; font-size: 8px; vertical-align: 2px; color: var(--ink-soft); }

body.page-album ::selection { background: #fff; color: #000; }
body.page-album a, body.page-album button { -webkit-tap-highlight-color: transparent; }

/* [hidden] must always win over explicit display rules */
body.page-album .save-list[hidden], body.page-album [hidden] { display: none !important; }

/* ---------- cover lightbox ---------- */
.art-lightbox {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}
.art-lightbox[hidden] { display: none !important; }
.art-lightbox img {
  max-width: min(92vw, 560px);
  max-height: 86vh;
  border-radius: 10px;
  animation: pocket-in 0.16s ease both;
}

/* sign-in row in the save modal */
.oauth-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0 0 16px; }
.oauth-row[hidden] { display: none; }
#gsi-btn { min-height: 40px; color-scheme: light; }   /* GIS iframe sizes itself */
.oauth-apple {
  width: 260px;
  padding: 12px 0;
  background: #fff !important;
  color: #000 !important;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}
.oauth-or { margin: 2px 0 0; font-size: 12px; color: #555; }

/* links inside chat bubbles inherit the bubble's color, underlined */
.pm-m span a { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }

/* ---- /deck/ — YOUR SHELF as a Pocket OS list (was the clay cover grid) ---- */
body.page-wall .wall { display: flex; flex-direction: column; gap: 2px; }
body.page-wall .rec a,
body.page-wall .rec.is-upcoming {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 16px;
  border-radius: 999px;
}
body.page-wall .rec-cover,
body.page-wall .rec-cover-ghost {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: none;
  flex: none;
  transition: opacity 160ms ease, filter 160ms ease;
}
body.page-wall .rec.is-upcoming .rec-cover-ghost {   /* outrank wall.css's width:100% */
  width: 44px;
  height: 44px;
  aspect-ratio: auto;
  background: none;
}
body.page-wall .rec-cover-ghost span { display: none; }   /* the dashed box alone reads "ghost" at 44px */
body.page-wall .rec-name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
body.page-wall .rec-sub {
  margin: 0 0 0 auto;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  text-align: right;
  line-height: 1.4;
}
/* the signature: hover/active = white pill, everything inverts */
body.page-wall .rec a:hover,
body.page-wall .rec a:active { background: #fff; }
body.page-wall .rec a:hover .rec-name,
body.page-wall .rec a:active .rec-name { color: #000 !important; }
body.page-wall .rec a:hover .rec-sub,
body.page-wall .rec a:active .rec-sub { color: #555 !important; }
body.page-wall .rec a:hover .rec-cover,
body.page-wall .rec a:active .rec-cover { transform: none !important; opacity: 1; filter: none; }
