/* subspacefm mobile layout. Colors come from themes.css (same variables as the desktop page). */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  font-family: "EB Garamond", Garamond, Georgia, serif;
  color: var(--font-color);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body { overscroll-behavior: none; background: #000; }

/* Background lives on its own fixed layer (background-attachment: fixed is unreliable on phones). */
#bg {
  position: fixed;
  inset: 0;
  background: var(--background);
  background-size: var(--background-size, cover);   /* themes may use contain */
  background-position: center;
  z-index: 0;
}

.ic {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }

/* ---------- App frame ---------- */
#app {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  border: 3px solid var(--color-accent);
  background: var(--color-image1);
}

.appbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: calc(env(safe-area-inset-top, 0px) + 4px) calc(env(safe-area-inset-right, 0px) + 6px) 4px calc(env(safe-area-inset-left, 0px) + 6px);
}
.appbar h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--secondary-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iconbtn {
  flex: none;
  width: 44px;
  height: 40px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  flex: 1;
  min-height: 0;
  padding: 8px calc(env(safe-area-inset-right, 0px) + 8px) 8px calc(env(safe-area-inset-left, 0px) + 8px);
}
.tab-panel { height: 100%; }

.box {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 3px solid var(--color-accent);
  background-color: var(--color-primary);
  padding: 10px;
}

/* ---------- Tab bar ---------- */
.tabbar {
  flex: none;
  display: flex;
  border-top: 3px solid var(--color-accent);
  background: var(--color-image1);
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.tab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 6px 4px;
  border: none;
  border-right: 3px solid var(--color-accent);
  background: none;
  color: var(--secondary-font);
  font-size: 15px;
}
.tab:last-child { border-right: none; }
.tab[aria-selected="true"] {
  background-color: var(--color-active);
  box-shadow: inset 0 0 0 2px var(--color-accent);
}
.badge {
  position: absolute;
  top: 6px;
  left: calc(50% + 14px);
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--color-accent);
  color: var(--color-image1);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

/* ---------- Player tab ---------- */
.player { gap: 10px; }
.player-side { flex: none; display: flex; flex-direction: column; gap: 10px; }

.nowplaying {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border: 2px solid var(--color-accent);
  background: var(--color-image1);
  padding: 6px 8px;
  color: var(--secondary-font);
  min-width: 0;
}
.np-label { flex: none; }
.np-track { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
#np-title { display: inline-block; }
#np-title.marquee { animation: np-scroll var(--np-duration, 12s) linear infinite; }
@keyframes np-scroll {
  0%, 12% { transform: translateX(0); }
  88%, 100% { transform: translateX(var(--np-shift, 0px)); }
}

.controls { display: flex; align-items: center; gap: 8px; }
.streambtn {
  flex: none;
  width: 60px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-button);
  border: 2px solid var(--color-accent);
}
.streambtn:active, .toolbtn:active, .send:active { background-color: var(--color-active); }
.volume { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }

.slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 60px;
  height: 14px;
  background: var(--color-button);
  border: 1px solid var(--color-accent);
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: var(--color-button);
  border: 2px solid var(--color-accent);
}
.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: var(--color-button);
  border: 2px solid var(--color-accent);
}

.player-status { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--secondary-font); }

.viz {
  position: relative;
  flex: 1;
  min-height: 140px;
  border: 1px solid var(--color-accent);
}
#viz-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Throbber: centered on the player box */
.throbber {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.15s, visibility 0s linear 0.15s;
  pointer-events: none;
  background-color: var(--color-image1);
  border: 3px solid var(--color-accent);
  box-shadow: 4px 4px 0 var(--color-accent);
  padding: 14px 22px 8px;
  text-align: center;
}
.throbber.active { visibility: visible; opacity: 1; transition: opacity 0.15s; }
.throbber_frames { position: relative; width: 64px; height: 64px; margin: 0 auto; }
.throbber_frames img {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  transform: scale(2);
}
.throbber_b { visibility: hidden; }
.throbber.active.alt .throbber_a { visibility: hidden; }
.throbber.active.alt .throbber_b { visibility: visible; }
.throbber_text { margin: 8px 0 0; color: var(--secondary-font); font-size: 16px; white-space: nowrap; }

/* ---------- Chat tab ---------- */
.chat { gap: 8px; }
.toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-active);
  border: 1.5px solid var(--color-accent);
  padding: 4px;
}
.chat-name { margin-right: auto; padding-left: 4px; color: var(--font-color); font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbtn {
  flex: none;
  width: 46px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-button);
  border: 1.5px solid var(--color-accent);
}
.toolbtn[aria-expanded="true"] { background-color: var(--color-active); box-shadow: inset 0 0 0 2px var(--color-accent); }

.subpanel {
  flex: none;
  border: 2px solid var(--color-accent);
  background: var(--color-image1);
  padding: 8px;
  color: var(--secondary-font);
}
.subpanel-title { margin: 0 0 6px; }
#panel-login { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: end; }
#panel-login .subpanel-title { grid-column: 1 / -1; margin: 0; }
#panel-login label { display: flex; flex-direction: column; font-size: 14px; min-width: 0; }

input[type="text"], input[type="password"] {
  font: inherit;
  font-size: 16px;               /* 16px+ stops iOS zooming on focus */
  color: var(--font-color);
  background-color: var(--color-button);
  border: 1px solid var(--color-accent);
  border-radius: 0;
  padding: 8px;
  min-width: 0;
  width: 100%;
}
input::placeholder { color: var(--font-color); opacity: 0.55; }

#users-list { list-style: none; margin: 0; padding: 0; max-height: 30vh; overflow-y: auto; border: 1px solid var(--color-accent); }
#users-list li { background-color: var(--color-button); color: var(--font-color); padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#users-list li:nth-child(2n) { background-color: var(--color-active); }
#users-list li.me { font-weight: bold; }
#users-list li.away { opacity: 0.6; font-style: italic; }
#users-list .tag { font-size: 0.85em; opacity: 0.8; }

#messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-accent);
}
#messages .msg {
  background-color: var(--color-button);
  padding: 6px 8px;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
#messages .msg:nth-child(2n) { background-color: var(--color-active); }
#messages .msg img { vertical-align: middle; margin-right: 6px; }
#messages .meta { opacity: 0.7; font-size: 0.85em; }

#send-form { flex: none; display: flex; gap: 6px; }
.send {
  flex: none;
  width: 52px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-button);
  border: 2px solid var(--color-accent);
}
.desktop-link { flex: none; margin: 0; text-align: center; font-size: 13px; }
.desktop-link a { color: var(--secondary-font); }

/* ---------- Landscape phones: player goes side by side, bars get slimmer ---------- */
@media (orientation: landscape) and (max-height: 560px) {
  .appbar { padding-top: calc(env(safe-area-inset-top, 0px) + 1px); padding-bottom: 1px; }
  .appbar h1 { font-size: 17px; }
  .iconbtn { height: 32px; }
  main { padding-top: 6px; padding-bottom: 6px; }
  .tab { flex-direction: row; gap: 8px; min-height: 40px; padding: 4px; }
  .badge { top: 3px; left: auto; right: calc(50% - 60px); }

  .player { flex-direction: row; }
  .player-side { width: 42%; max-width: 360px; justify-content: center; }
  .viz { min-height: 0; }

  #users-list { max-height: 40vh; }
  .desktop-link { display: none; }
}

/* ---------- Very narrow phones (under 360px, e.g. 3-inch phones) ----------
   Room for the volume slider next to the stacked Donate / Sleep buttons. */
@media (max-width: 359px) {
  .controls { gap: 6px; }
  .streambtn { width: 46px; height: 46px; }
  .volume .speaker { display: none; }
  .side-links .donate-link { font-size: 13px; padding: 3px 6px; }
}

/* ---------- Wide screens (unfolded foldables, tablets, big windows) ----------
   Player and chat side by side, no tab bar. Phones (portrait, or landscape
   under 561px tall) keep the tabs. Keep MQ_WIDE in app.js in step. */
@media (min-width: 680px) and (min-height: 561px) {
  main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 8px; }
  .tab-panel { height: 100%; min-height: 0; }
  main > .tab-panel[hidden] { display: block !important; }   /* beats the global [hidden] rule */
  .tabbar { display: none; }
}
/* ...and on tall portrait screens (tablets held upright): player on top, chat below */
@media (min-width: 680px) and (min-height: 561px) and (max-aspect-ratio: 3/4) {
  main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

/* Tablets / wide windows: keep the player from getting silly-wide */
@media (min-width: 900px) and (orientation: portrait) and (max-height: 560px) {
  main { padding-left: 10%; padding-right: 10%; }
}


/* ---- Report / Block (tap a message) ---- */
#messages .msg.actionable { cursor: pointer; }
#messages .msg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
#messages .msg-actions button {
  font: inherit;
  font-size: 13px;
  min-height: 30px;
  padding: 2px 8px;
  background-color: var(--color-button);
  border: 1.5px solid var(--color-accent);
  color: var(--font-color);
}
#messages .msg-actions button:active { background-color: var(--color-active); }
#messages .msg-note { font-style: italic; font-size: 13px; }
#messages .msg.removed { font-style: italic; opacity: 0.7; }

/* Moderator contact line (app-store requirement) */
.chat-contact { flex: none; margin: 0; font-size: 13px; line-height: 1.3; text-align: center; color: var(--font-color); }
.chat-contact a { color: var(--font-color); }

/* ---- Top bar: station logo on green (all themes) ---- */
/* Logo colours follow the theme (light icon colour on the dark one); the yellow theme
   sets the original gold on green. The wordmark is a mask so it can take any colour. */
.appbar { background: var(--logo-bg, var(--color-image2)); }
.appbar-logo { display: flex; align-items: center; justify-content: center; margin: 0; line-height: 0; }
.appbar-logo .logo-mark {
  display: block; width: 115px; height: 34px;
  background-color: var(--logo-fg, var(--color-image1));
  -webkit-mask: url('img/wqna-logo-mobile.png') center / contain no-repeat;
  mask: url('img/wqna-logo-mobile.png') center / contain no-repeat;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (orientation: landscape) and (max-height: 560px) {
  .appbar-logo .logo-mark { width: 88px; height: 26px; }
}

/* Donate: small text link at the right end of the button row, like the moderator email */
.donate-link {                       /* same box as the chat tool buttons */
  flex: none; font-size: 15px; color: var(--font-color); text-decoration: none;
  padding: 4px 8px; background-color: var(--color-button); border: 1.5px solid var(--color-accent);
}
.donate-link:active { background-color: var(--color-active); }
/* Sleep (app only): same look as Donate; shows the minutes left while the timer runs */
.sleep-btn { font-family: inherit; line-height: inherit; cursor: pointer; white-space: nowrap; }
.sleep-btn[hidden] { display: none; }
/* Donate and Sleep stacked at the right end of the button row (Sleep only in the app) */
.side-links { flex: none; display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.side-links .donate-link { text-align: center; }

/* "Delete account" in the login panel: small text button, like the moderator email */
#panel-login .delete-account {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 2px 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--secondary-font);
  text-decoration: underline;
}



/* Chat help dialog (? button) */
.help-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 64px);
  padding: 0;
  border: 3px solid var(--color-accent);
  background: var(--color-primary);
  color: var(--font-color);
  display: none;
  flex-direction: column;
}
.help-dialog[open] { display: flex; }
.help-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.help-head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 10px; border-bottom: 2px solid var(--color-accent); background: var(--color-image1);
}
.help-head h2 { margin: 0; font-size: 19px; font-weight: 500; color: var(--secondary-font); }
.help-close {
  flex: none; font: inherit; font-size: 15px; padding: 4px 10px; color: var(--font-color);
  background-color: var(--color-button); border: 1.5px solid var(--color-accent);
}
.help-close:active { background-color: var(--color-active); }
.help-body { overflow-y: auto; padding: 4px 12px 12px; font-size: 15px; line-height: 1.4; }
.help-body h3 { margin: 12px 0 2px; font-size: 16px; }
.help-body p { margin: 0; }
.help-body code { font-family: inherit; font-weight: 600; }
.help-body a { color: var(--font-color); }

/* help reads on a solid panel */
.help-dialog { background: var(--color-image1); color: var(--secondary-font); }
.help-head { background: var(--logo-bg, var(--color-image2)); }
.help-head h2 { color: var(--logo-fg, var(--color-image1)); }
.help-body a { color: var(--secondary-font); }

/* Chat terms dialog (agree before posting) */
.terms-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 3px solid var(--color-accent);
  background: var(--color-image1);
  color: var(--secondary-font);
  display: none;
  flex-direction: column;
}
.terms-dialog[open] { display: flex; }
.terms-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.terms-head { flex: none; padding: 8px 12px; border-bottom: 2px solid var(--color-accent); background: var(--logo-bg, var(--color-image2)); }
.terms-head h2 { margin: 0; font-size: 19px; font-weight: 500; color: var(--logo-fg, var(--color-image1)); }
.terms-intro { flex: none; margin: 10px 12px 6px; font-size: 15px; }
.terms-text {
  flex: 1 1 auto; min-height: 100px; overflow-y: auto; margin: 0 12px; padding: 8px 10px;
  border: 1.5px solid var(--color-accent); background: var(--color-button);
  white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.35; color: var(--font-color);
}
.terms-buttons { flex: none; display: flex; justify-content: flex-end; gap: 10px; padding: 10px 12px 12px; }
.terms-btn {
  font: inherit; font-size: 16px; padding: 7px 16px; color: var(--font-color);
  background-color: var(--color-button); border: 2px solid var(--color-accent);
}
.terms-btn:active { background-color: var(--color-active); }
.terms-agree { font-weight: 600; }

/* ---------- Inside the app (app.js sets html[data-app]) ----------
   No text selection or long-press "Copy / Look Up / Share" bubbles on buttons, labels and
   images, so the screens behave like an app's. Chat messages and the text boxes stay
   selectable. The website itself is unaffected. */
/* The iPhone app's Chat tab (app.js CHAT_ONLY): the chat alone, no player, no tab bar. */
html[data-app-chat] #tab-player,
html[data-app-chat] .tabbar { display: none !important; }
html[data-app] body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html[data-app] input,
html[data-app] textarea,
html[data-app] #messages .msg { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
html[data-app] img { -webkit-user-drag: none; }

/* ---------- Schedule (schedule.js): fills the visualizer box ---------- */
.sched-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 6;
  width: 42px;
  height: 36px;
}
.sched-btn[aria-expanded="true"] { background-color: var(--color-active); box-shadow: inset 0 0 0 2px var(--color-accent); }
.sched-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-image1);
  color: var(--secondary-font);
  padding: 8px 12px 12px;
}
.sched-head { margin: 4px 52px 6px 0; font-size: 20px; color: var(--secondary-font); }
.sched-msg { margin: 10px 0; font-size: 16px; line-height: 1.35; }
.sched-day {
  margin: 10px 0 4px;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--color-accent);
  font-size: 16px;
  font-weight: 600;
}
.sched-list { list-style: none; margin: 0; padding: 0; }
.sched-item { display: flex; flex-wrap: wrap; column-gap: 10px; padding: 5px 4px; font-size: 16px; line-height: 1.3; }
.sched-time { flex: none; min-width: 9.2em; font-variant-numeric: tabular-nums; }
.sched-title { flex: 1 1 10em; min-width: 0; overflow-wrap: anywhere; }
.sched-desc { flex-basis: 100%; padding-left: 0; font-size: 14px; opacity: 0.85; }
.sched-now { background: var(--color-button); outline: 1.5px solid var(--color-accent); }
.sched-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 0 6px;
  border: 1px solid var(--color-accent);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.sched-note { margin: 12px 0 0; font-size: 13px; opacity: 0.85; }
@media (max-width: 359px) {
  .sched-time { min-width: 0; flex-basis: 100%; }
}

/* Album art (art.js): small square at the start of the Now Playing box */
.np-art {
  flex: none;
  align-self: center;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1.5px solid var(--color-accent);
  margin: -2px 2px -2px -2px;
}
.np-art[hidden] { display: none; }

/* Album art, large (art.js): a small framed box over the page, like the throbber */
.np-art { cursor: zoom-in; }
.art-window {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}
.art-window[hidden] { display: none; }
.art-box {
  width: min(100%, 420px);
  background-color: var(--color-image1);
  border: 3px solid var(--color-accent);
  box-shadow: 4px 4px 0 var(--color-accent);
  padding: 10px 12px 12px;
  color: var(--secondary-font);
}
.art-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.art-title { margin: 0; font-size: 19px; }
.art-close { font-family: inherit; cursor: pointer; }
.art-big {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border: 2px solid var(--color-accent);
  background: var(--color-button);
}
.art-caption { margin: 8px 2px 0; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }

/* Schedule as a day grid (m/schedule.js): overlapping shows side by side in columns,
   each block spanning the time rows it covers; first column = start times. */
.sched-grid { display: grid; column-gap: 6px; row-gap: 4px; margin: 6px 0 2px; }
.sched-at { padding: 6px 4px 0 0; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sched-grid .sched-item {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 1px;
  min-width: 0; padding: 5px 8px; border: 1.5px solid var(--color-accent); outline: none;
}
.sched-grid .sched-alt { border-style: dashed; }
.sched-grid .sched-now { background: var(--color-button); border-width: 2px; }
.sched-grid .sched-title { flex: none; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.sched-grid .sched-time { flex: none; width: auto; min-width: 0; font-size: 13px; opacity: 0.85; }
.sched-grid .sched-desc { flex: none; padding-left: 0; font-size: 13px; }
.sched-grid .sched-tag { margin-left: 6px; }

/* Live DJ slots: the main column, heavier border (m/schedule.js) */
.sched-grid .sched-live { border-width: 3px; }

/* Chat connection bar: only while the chat is disconnected (chat.js / m/app.js) */
.chat-status {
  margin: 0;
  padding: 3px 10px;
  font-size: 14px;
  text-align: center;
  color: var(--secondary-font);
  background: var(--color-image1);
  border-top: 1.5px solid var(--color-accent);
}
.chat-status[hidden] { display: none; }
.chat-status { flex: none; }

/* Song history (history.js): newest first, small cover, title / artist, time */
.hist-list { list-style: none; margin: 0; padding: 0; }
.hist-item { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-bottom: 1px dotted var(--color-accent); }
.hist-now { background: var(--color-button); }
.hist-art { flex: none; width: 40px; height: 40px; border: 1.5px solid var(--color-accent); background: var(--color-button); overflow: hidden; }
.hist-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hist-song { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hist-title { font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.hist-artist { font-size: 14px; line-height: 1.2; opacity: 0.85; overflow-wrap: anywhere; }
.hist-time { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; }
/* two buttons in the visualizer box now: history left of the calendar */
.hist-btn { right: 54px; }
.sched-panel .sched-head { margin-right: 100px; }

/* the Songs heart: a small pixel heart in the theme colour (a text \u2665 becomes a red emoji on Android) */
.px-heart { width: 0.85em; height: 0.73em; fill: currentColor; shape-rendering: crispEdges; vertical-align: -0.05em; }

/* "Remember me" under the login fields: stays logged in on this device until logging out */
#panel-login .remember-me { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px; font-size: 15px; }
.remember-me input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-accent); }
