:root {
  --bg-deep: #f4ebdc;
  --bg-mid: #e7d6bd;
  --panel: rgba(255, 249, 239, 0.86);
  --panel-border: rgba(90, 68, 43, 0.2);
  --text-main: #1f1b16;
  --text-soft: #5f4e3b;
  --accent-on: #197a46;
  --accent-off: #6f5d48;
  --accent-bad: #a63a2f;
  --tile: rgba(242, 230, 210, 0.9);
  --tile-border: rgba(96, 74, 47, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(900px 420px at 20% -5%, #f7efe1, transparent 60%),
    radial-gradient(700px 500px at 100% 0%, #e9dbc4, transparent 62%),
    linear-gradient(145deg, var(--bg-deep), var(--bg-mid));
}

.app-shell {
  width: min(1180px, 100% - 1rem);
}

.dashboard-shell {
  width: min(1360px, 100% - 1rem);
  margin: 1.1rem auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.side-nav {
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(239, 225, 201, 0.95), rgba(228, 210, 183, 0.92));
  padding: 0.8rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.nav-btn {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(120, 92, 58, 0.22);
  border-radius: 12px;
  color: var(--text-soft);
  background: rgba(243, 233, 216, 0.84);
}

.nav-btn.is-active {
  color: var(--text-main);
  border-color: rgba(130, 93, 49, 0.42);
  background: linear-gradient(160deg, rgba(226, 190, 136, 0.95), rgba(215, 171, 106, 0.9));
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
  animation: rise 500ms ease-out both;
}

.hero-widgets {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.widget {
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: rgba(243, 233, 216, 0.86);
  min-width: 140px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
}

.weather {
  gap: 0.6rem;
}

.weather-icon { font-size: 2.8rem; line-height: 1; color: #c68a29; }
.weather-temp, .weather-label { display: block; }
.indoor-temperatures { gap: 1rem; }
.indoor-temp { display: block; font-size: 1.6rem; font-weight: 700; }

.weather-temp {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.weather-label {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.clock {
  font-size: 2rem;
  font-weight: 700;
}

.tag {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.11em;
  color: var(--text-soft);
  text-transform: uppercase;
}

h1 {
  margin: 0.3rem 0 0.5rem;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.subtitle {
  margin: 0;
  max-width: 66ch;
  color: var(--text-soft);
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  padding: 1rem;
  box-shadow: 0 20px 34px rgba(5, 10, 19, 0.3);
  animation: rise 640ms ease-out both;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.95rem;
}

.agent-panel {
  animation-delay: 80ms;
}

.agent-form {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.agent-label {
  width: 100%;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

#agent-message {
  flex: 1 1 280px;
  min-height: 52px;
  resize: vertical;
  border: 1px solid var(--tile-border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  color: var(--text-main);
  background: rgba(255, 252, 246, 0.82);
  font: inherit;
}

.agent-result {
  margin: 0.8rem 0 0;
  padding: 0.7rem;
  overflow: auto;
  white-space: pre-wrap;
  border-radius: 10px;
  color: var(--text-main);
  background: rgba(242, 230, 210, 0.72);
  font: inherit;
  line-height: 1.45;
}

.agent-result.is-error {
  color: var(--accent-bad);
  background: rgba(166, 58, 47, 0.1);
}

.agent-confirm-actions {
  margin-top: 0.7rem;
}

.agent-unavailable {
  margin: 0;
  color: var(--text-soft);
}

.music-card { max-width: 620px; margin: 0 auto; padding: 0.6rem; }
.music-card[hidden] { display: none; }
.spotify-now-playing { display: flex; gap: 0.9rem; align-items: center; }
.spotify-now-playing h3 { margin: 0; }.spotify-now-playing p { margin: 0.25rem 0; color: var(--text-soft); }
.spotify-art { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: var(--tile); }
.spotify-controls { display: flex; justify-content: center; gap: 0.7rem; margin: 1rem 0; }
.spotify-controls .cover-cmd { min-width: 52px; min-height: 42px; }
.spotify-label { display: block; margin-top: 0.7rem; font-size: 0.85rem; font-weight: 700; color: var(--text-soft); }
.spotify-select, .spotify-schedule input { width: 100%; min-height: 38px; padding: 0.45rem; border: 1px solid var(--tile-border); border-radius: 8px; background: rgba(255,252,246,.82); font: inherit; }
.spotify-search { display: flex; gap: .45rem; margin-top: .8rem; }.spotify-search input { flex: 1; min-width: 0; padding: .45rem; border: 1px solid var(--tile-border); border-radius: 8px; font: inherit; }.spotify-results { display: grid; gap: .35rem; margin-top: .5rem; }.spotify-result { text-align: left; padding: .55rem; border: 1px solid var(--tile-border); border-radius: 8px; background: rgba(242,230,210,.72); color: var(--text-main); font: inherit; }

h2 {
  margin: 0;
  font-size: 1.05rem;
}

.category-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0 0 0.8rem;
}

.category-tab {
  padding: 0.4rem 0.95rem;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(120, 90, 56, 0.28);
  background: rgba(241, 229, 209, 0.7);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.category-tab.is-active {
  background: rgba(224, 187, 131, 0.9);
  border-color: rgba(129, 93, 51, 0.55);
  color: var(--text-main);
}

/* .ac-list/.device-list set an explicit display, which overrides the
   browser's default [hidden] styling - so category sections need this
   spelled out to actually disappear when not the active tab. */
.ac-list[hidden],
.device-list[hidden] {
  display: none;
}

.device-list {
  display: flex;
  flex-wrap: wrap;
  margin: -0.35rem;
}

.device-list .device-card {
  width: calc(25% - 0.7rem);
  margin: 0.35rem;
}

@supports (display: grid) {
  .device-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0;
  }

  .device-list .device-card {
    width: auto;
    margin: 0;
  }
}

.room-filter {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0 0 0.8rem;
}

.chip {
  border: 1px solid rgba(120, 90, 56, 0.28);
  border-radius: 999px;
  background: rgba(241, 229, 209, 0.88);
  color: var(--text-soft);
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
}

.chip.is-active {
  color: var(--text-main);
  border-color: rgba(129, 93, 51, 0.5);
  background: rgba(224, 187, 131, 0.88);
}

.device-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 150px;
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--tile-border);
  background: linear-gradient(165deg, rgba(250, 241, 227, 0.95), var(--tile));
  padding: 0.58rem;
  color: var(--text-main);
  transform-origin: center;
  animation: pop 420ms ease-out both;
}

.device-card > * {
  position: relative;
  z-index: 1;
}

.device-card.has-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

.device-card:focus-visible {
  outline: 2px solid rgba(124, 182, 245, 0.9);
  outline-offset: 2px;
}

.device-card.is-busy {
  opacity: 0.7;
}

.device-image {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.fallback-icon {
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: rgba(92, 70, 45, 0.08);
  border: 1px solid rgba(92, 70, 45, 0.22);
}

.cover-controls {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}

.cover-cmd {
  display: inline-block;
  padding: 0.42rem 0.62rem;
  min-height: 38px;
  min-width: 38px;
  border: 1px solid rgba(120, 90, 56, 0.35);
  border-radius: 10px;
  background: rgba(241, 229, 209, 0.95);
  color: var(--text-main);
  font-size: 0.8rem;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.rgb-set-cmd {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.rgb-card-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(60, 45, 30, 0.32);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

[data-cover-pos-trigger] {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.cover-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(28, 20, 12, 0.42);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 1000;
}

.cover-modal[hidden] {
  display: none;
}

.cover-modal-card {
  width: min(420px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(120, 90, 56, 0.3);
  background: rgba(249, 240, 227, 0.98);
  padding: 0.95rem;
}

.cover-modal-card h3 {
  margin: 0;
  font-size: 1.03rem;
}

.cover-modal-value {
  margin: 0.45rem 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.cover-modal-slider {
  width: 100%;
  min-height: 36px;
}

.cover-modal-presets {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cover-modal-actions {
  margin-top: 0.65rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.cover-modal-btn {
  border: 1px solid rgba(120, 90, 56, 0.34);
  border-radius: 10px;
  min-height: 42px;
  padding: 0.5rem 0.8rem;
  background: rgba(241, 229, 209, 0.98);
  color: var(--text-main);
}

.cover-modal-btn.is-primary {
  background: rgba(224, 187, 131, 0.92);
}

.rgb-modal-card {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.rgb-preview-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.7rem 0;
}

.rgb-preview {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1px solid rgba(60, 45, 30, 0.32);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(60, 45, 30, 0.18), inset 0 0 0 2px rgba(255, 255, 255, 0.52);
}

.rgb-value {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.rgb-slider-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.55rem;
}

.rgb-slider-label {
  display: block;
  margin: 0.55rem 0 0.2rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.rgb-slider-heading .rgb-slider-label {
  margin: 0;
}

.rgb-slider-heading span {
  font-size: 0.85rem;
  font-weight: 700;
}

.rgb-hue-slider {
  border-radius: 999px;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}

.rgb-modal-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.55rem 0 0.8rem;
}

.rgb-preset {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(60, 45, 30, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.58);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rgb-preset:active {
  transform: scale(0.94);
}

.rgb-preset-white { background: #fff; }
.rgb-preset-red { background: #f00; }
.rgb-preset-orange { background: #ff8000; }
.rgb-preset-yellow { background: #ff0; }
.rgb-preset-green { background: #0f0; }
.rgb-preset-cyan { background: #0ff; }
.rgb-preset-blue { background: #00f; }
.rgb-preset-purple { background: #a020f0; }
.rgb-preset-pink { background: #ff20a0; }

.cover-cmd:active {
  transform: translateY(1px);
}

.device-meta h3 {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
}

.host {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.7rem;
}

.aliases {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.7rem;
}

.state {
  margin: 0.34rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
}

button {
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 140ms ease, opacity 140ms ease;
}

button:hover {
  transform: translateY(-1px);
}

.switch {
  background: rgba(228, 207, 176, 0.62);
  color: var(--text-main);
  padding: 0.4rem 0.7rem;
}

.ghost {
  padding: 0.36rem 0.74rem;
  border: 1px solid rgba(123, 92, 53, 0.28);
  color: var(--text-main);
  background: transparent;
}

.is-on {
  color: var(--accent-on);
  font-weight: 700;
}

.is-off {
  color: var(--accent-off);
}

.is-error {
  color: var(--accent-bad);
  font-weight: 700;
}

.device-card.is-on {
  border-color: rgba(48, 134, 78, 0.54);
  box-shadow: inset 0 0 0 1px rgba(48, 134, 78, 0.2);
}

.device-card.is-off {
  border-color: rgba(121, 96, 64, 0.24);
}

.device-card.is-error {
  border-color: rgba(255, 139, 139, 0.65);
}

.device-card.is-selected {
  transform: translateY(-1px);
  border-color: rgba(123, 92, 52, 0.7);
  box-shadow: inset 0 0 0 1px rgba(123, 92, 52, 0.28);
}

.muted ul {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  color: var(--text-soft);
}

.quick-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.status-overview {
  margin-top: 0.7rem;
  padding: 0.7rem;
  border: 1px solid rgba(121, 91, 56, 0.2);
  border-radius: 12px;
  background: rgba(241, 229, 209, 0.75);
}

.status-overview p {
  margin: 0.2rem 0;
  color: var(--text-soft);
}

.status-overview strong {
  color: var(--text-main);
}

.divider {
  border: 0;
  height: 1px;
  margin: 1rem 0;
  background: rgba(121, 91, 56, 0.2);
}

.device-form {
  display: grid;
  gap: 0.6rem;
}

.device-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.device-form input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(128, 98, 61, 0.28);
  background: rgba(247, 237, 222, 0.95);
  color: var(--text-main);
  padding: 0.45rem 0.6rem;
}

.device-form select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(128, 98, 61, 0.28);
  background: rgba(247, 237, 222, 0.95);
  color: var(--text-main);
  padding: 0.45rem 0.6rem;
}

.device-form .switch {
  margin-top: 0.4rem;
  border: 1px solid rgba(171, 198, 227, 0.28);
}

.scene-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.scene-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.4rem;
  align-items: center;
  border: 1px solid rgba(128, 98, 61, 0.2);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  background: rgba(241, 229, 209, 0.75);
}

.scene-item small {
  color: var(--text-soft);
}

.scene-item button {
  padding: 0.3rem 0.55rem;
  background: rgba(227, 204, 169, 0.64);
  color: var(--text-main);
}

.quick-actions .switch {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(121, 91, 56, 0.26);
}

.note {
  color: var(--text-soft);
  font-size: 0.82rem;
  margin: 0.8rem 0 0;
}

.empty-devices {
  margin: 0;
  color: var(--text-soft);
}

.ac-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.ac-card {
  border-radius: 14px;
  border: 1px solid var(--tile-border);
  background: linear-gradient(165deg, rgba(250, 241, 227, 0.95), var(--tile));
  padding: 0.7rem;
  animation: pop 420ms ease-out both;
  /* .ac-list's auto-fill grid gives a lone column the full row width on
     narrow screens - without a cap, the card (and its width:100% buttons)
     stretch edge-to-edge on a phone even though they look fine on desktop
     where multiple columns fit. */
  max-width: 320px;
  margin: 0 auto;
}

.ac-card.is-busy {
  opacity: 0.65;
}

/* No status text row anymore - on/off/error is communicated by color alone,
   matching how .device-card already does it. */
.ac-card.is-on {
  border-color: rgba(48, 134, 78, 0.54);
  box-shadow: inset 0 0 0 1px rgba(48, 134, 78, 0.2);
}

.ac-card.is-off {
  border-color: rgba(121, 96, 64, 0.24);
}

.ac-card.is-error {
  border-color: rgba(255, 139, 139, 0.65);
}

.ac-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ac-head h3 {
  margin: 0;
  font-size: 0.92rem;
  flex: 1;
}

.ac-refresh {
  padding: 0.25rem 0.4rem;
  min-height: 28px;
  min-width: 28px;
  font-size: 0.85rem;
}

/* AC controls reuse .cover-cmd (the same icon-button style the Shelly
   light/blind controls use) instead of full-width buttons, so on/off,
   setpoint, mode and fan all size to their content like the rest of the
   dashboard's compact controls, rather than stretching the card width. */
.ac-setpoint-cmd {
  font-size: 0.95rem;
  font-weight: 700;
}

.ac-current-temp {
  color: var(--text-soft);
  font-weight: 600;
}

.ac-setpoint-sep {
  margin: 0 0.15rem;
  color: var(--text-soft);
  font-weight: 400;
}

.ac-fan-cmd {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fan-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.fan-bar {
  width: 5px;
  border-radius: 2px;
  background: rgba(120, 90, 56, 0.25);
}

.fan-bar-1 {
  height: 40%;
}

.fan-bar-2 {
  height: 70%;
}

.fan-bar-3 {
  height: 100%;
}

.fan-bar.is-active {
  background: var(--accent-on);
}

.fan-bar.is-auto {
  background: rgba(25, 122, 70, 0.45);
}

@media (max-width: 860px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .nav-btn {
    min-width: 110px;
    min-height: 52px;
  }

  .hero {
    flex-direction: column;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .device-list {
    margin: -0.35rem;
  }

  .device-list .device-card {
    width: calc(33.333% - 0.7rem);
  }

  @supports (display: grid) {
    .device-list {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin: 0;
    }

    .device-list .device-card {
      width: auto;
    }
  }
}

@media (max-width: 520px) {
  .device-list {
    margin: -0.35rem;
  }

  .device-list .device-card {
    width: calc(50% - 0.7rem);
  }

  @supports (display: grid) {
    .device-list {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin: 0;
    }

    .device-list .device-card {
      width: auto;
    }
  }
}

@media (max-width: 360px) {
  .device-list {
    margin: -0.35rem;
  }

  .device-list .device-card {
    width: calc(100% - 0.7rem);
  }

  @supports (display: grid) {
    .device-list {
      grid-template-columns: 1fr;
      margin: 0;
    }

    .device-list .device-card {
      width: auto;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.restart-control { text-align: center; max-width: 180px; }
.restart-button { min-width: 48px; min-height: 48px; border: 1px solid #ccc; border-radius: 50%; background: #fff; color: #243c34; font-size: 30px; cursor: pointer; }
.restart-button:disabled { opacity: 0.5; cursor: wait; }
#restart-status { display: block; font-size: 12px; margin-top: 4px; }

.service-logs { width: 100%; min-width: 0; box-sizing: border-box; }
.logs-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 10px; }
.logs-toolbar .spotify-select { width: auto; max-width: 100%; }
.logs-terminal { box-sizing: border-box; width: 100%; height: 320px; overflow: auto; padding: 14px; border-radius: 10px; background: #121a20; color: #d7f4dc; font: 12px/1.6 monospace; white-space: pre-wrap; word-wrap: break-word; text-align: left; }
.logs-caption, #logs-state { font-size: 12px; }

.screen-off-link { font-size: 12px; color: #64736c; text-decoration: none; padding: 10px 4px; }
.screen-off-link:hover, .screen-off-link:focus { text-decoration: underline; }

.spotify-library { margin: 1.25rem 0; }
.spotify-library h3 { margin: 0 0 .6rem; }
.spotify-library-tabs, .spotify-library-pages { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.spotify-library-tabs .is-active { background: #263f35; color: #fff; }
