:root {
  --ink: #10203b;
  --ink-2: #1b2c4a;
  --paper: #f5f9ff;
  --paper-2: #e7f0fb;
  --panel: #ffffff;
  --line: #9eb4cd;
  --blue: #1f6bff;
  --blue-2: #4d91ff;
  --red: #e83b2e;
  --lime: #7ec400;
  --amber: #f4a51c;
  --dark: #0b1320;
  --shadow: 4px 4px 0 rgba(16, 32, 59, 0.18);
}

/* Claude design port: Model FM portal + pocket portal */
body[data-page="home"] .topbar,
body[data-page="home"] .footer {
  display: none;
}

body[data-page="home"] {
  background:
    radial-gradient(160% 130% at 50% -20%, #cdd9e8, #9aabc2 60%, #8397b2);
}

.model-home {
  display: block;
  padding: 0;
}

.portal-desktop {
  display: block;
}

.pocket-portal {
  display: none;
}

.portal-window {
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #51677f;
  border-radius: 9px 9px 6px 6px;
  background: #f4f7fb;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 50px rgba(20,38,70,.42), 0 3px 8px rgba(20,38,70,.3);
}

.portal-titlebar,
.portal-menu,
.portal-toolbar,
.ticker,
.portal-intro,
.portal-body,
.portal-main,
.portal-rail,
.portal-card,
.portal-table,
.drop-anatomy,
.portal-player,
.download-box,
.rail-cta,
.pocket-portal {
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
}

.portal-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  color: #fff;
  background: linear-gradient(#4a93e6, #1f5fd0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

.titlebar-brand,
.pocket-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.titlebar-brand {
  width: 282px;
  height: 50px;
  padding: 0;
}

.titlebar-brand img,
.pocket-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.disc-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff, #cdd8e6 42%, #9fb0c6 74%, #c4d0e0);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), inset 0 0 0 2px #b3c2d6;
}

.disc-icon span,
.disc-icon i {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: #0b1320;
  box-shadow: inset 0 0 0 1px #1f6bff;
}

.portal-titlebar strong {
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}

.portal-titlebar code,
.portal-menu em,
.address,
.search,
.ticker,
.portal-intro code,
.portal-card p,
.portal-table,
.rail-status,
.download-box,
.pocket-header small,
.pocket-drop code,
.pocket-cta code {
  font-family: "IBM Plex Mono", "Courier New", monospace;
}

.portal-titlebar code {
  color: #cfe2fb;
  font-size: 10px;
}

.window-controls {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.window-controls span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 17px;
  border: 1px solid #2a5aa8;
  border-radius: 3px;
  color: #16335e;
  background: linear-gradient(#dbe7f5, #aec6e2);
  font-size: 10px;
}

.window-controls span:last-child {
  color: #fff;
  border-color: #a82f1a;
  background: linear-gradient(#f3a48f, #d8492f);
}

.portal-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 8px;
  color: #28425f;
  background: linear-gradient(#fbfcfe, #e4ebf3);
  border-bottom: 1px solid #c2cfde;
  font-size: 12px;
}

.portal-menu span {
  padding: 3px 9px;
  border-radius: 3px;
}

.portal-menu .active {
  color: #fff;
  background: #1f6bff;
}

.portal-menu em {
  margin-left: auto;
  color: #7a8aa0;
  font-size: 10px;
  font-style: normal;
}

.portal-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: linear-gradient(#eef3fa, #d8e2ee);
  border-bottom: 1px solid #aebdcf;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.nav-buttons {
  display: flex;
  gap: 3px;
}

.nav-buttons span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 25px;
  color: #28425f;
  border: 1px solid #9fb0c6;
  border-radius: 4px;
  background: linear-gradient(#fff, #dde6f1);
}

.address,
.search {
  min-width: 0;
  border: 1px solid #9fb0c6;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(40,60,90,.22);
  color: #28425f;
  font-size: 11px;
}

.address {
  flex: 1;
  padding: 5px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.address strong {
  float: right;
  color: #4e8c00;
  border: 1px solid #b6d36a;
  background: #eef7d8;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 9px;
}

.search {
  width: 230px;
  padding: 5px 10px;
  color: #9aa8bb;
}

.search strong {
  float: right;
  color: #8595a8;
  border-left: 1px solid #d4deeb;
  padding-left: 7px;
  font-size: 9px;
}

.ticker {
  display: flex;
  align-items: center;
  height: 26px;
  overflow: hidden;
  color: #8fe000;
  background: #0b1320;
  border-bottom: 1px solid #243650;
  font-size: 10px;
}

.ticker b {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: #fff;
  background: #1f6bff;
  font-size: 9px;
  letter-spacing: .12em;
}

.ticker span {
  padding-left: 12px;
  white-space: nowrap;
}

.portal-intro {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 17px 20px;
  background: linear-gradient(#eef3fa, #dde6f1);
  border-bottom: 1px solid #aebdcf;
}

.portal-intro p:first-child,
.rail-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f6bff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .07em;
}

.portal-intro p:first-child span,
.rail-status span,
.on-air span,
.pocket-header em span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fe000;
  box-shadow: 0 0 7px #8fe000;
}

.portal-intro h1,
.pocket-intro h1 {
  color: #11203a;
  font-family: Chivo, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
}

.portal-intro h1 {
  font-size: clamp(26px, 3vw, 33px);
}

.portal-intro p:nth-child(3) {
  max-width: 580px;
  margin-top: 11px;
  color: #3a4f6a;
  font-size: 14px;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.portal-actions a,
.portal-actions button,
.rail-cta a,
.pocket-actions a,
.pocket-actions button,
.pocket-cta a {
  border: 1px solid #1a4fb0;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(#4a93e6, #1f5fd0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  cursor: pointer;
  font-family: Chivo, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 15px;
}

.portal-actions .red,
.pocket-actions .red {
  border-color: #b22b20;
  background: #e23b2e;
}

.portal-actions .light,
.pocket-actions a:not(.red) {
  color: #28425f;
  border-color: #8ba0b8;
  background: linear-gradient(#fff, #e3ebf4);
}

.portal-intro code {
  display: block;
  margin-top: 13px;
  color: #7a8aa0;
  font-size: 11px;
}

.portal-intro code b {
  color: #1f6bff;
}

.drop-anatomy {
  overflow: hidden;
  border: 1px solid #b9c6d8;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 1px 5px rgba(40,60,90,.12);
}

.drop-anatomy header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  color: #7a8aa0;
  background: linear-gradient(#fbfcfe, #e4ebf3);
  border-bottom: 1px solid #d4deeb;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.drop-anatomy p {
  display: grid;
  grid-template-columns: 33px 1fr;
  gap: 11px;
  margin: 0;
  padding: 12px 13px 0;
}

.drop-anatomy p:last-child {
  padding-bottom: 10px;
}

.drop-anatomy p span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  border-radius: 5px;
  background: #1f6bff;
  grid-row: span 2;
  font-weight: 900;
}

.drop-anatomy p:first-of-type span {
  background: #0b1320;
}

.drop-anatomy p:nth-of-type(2) span {
  background: #e23b2e;
}

.drop-anatomy strong {
  color: #172540;
  font-size: 14px;
}

.drop-anatomy small {
  color: #7a8aa0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  line-height: 1.45;
}

.drop-proof {
  margin: 8px 12px 13px;
  padding: 10px 11px;
  border: 1px solid #c6d4e5;
  background: #eef5fd;
}

.drop-proof b,
.drop-proof small {
  display: block;
}

.drop-proof b {
  color: #10203b;
  font-size: 13px;
}

.drop-proof small {
  margin-top: 3px;
}

.portal-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  background: #cdd7e4;
}

.portal-main {
  min-width: 0;
  background: #f4f7fb;
}

.tabs {
  display: flex;
  gap: 3px;
  align-items: end;
  padding: 8px 12px 0;
  background: linear-gradient(#e6edf5, #dbe4ee);
  border-bottom: 1px solid #aebdcf;
  font-size: 12px;
}

.tabs b,
.tabs span {
  padding: 7px 14px;
  border: 1px solid #aebdcf;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(#fbfcfe, #e8eef6);
}

.tabs b {
  background: #f4f7fb;
}

.today-portal {
  margin: 14px 14px 2px;
  overflow: hidden;
  border: 1px solid #1f6bff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31,107,255,.14), 0 4px 16px rgba(40,60,90,.18);
}

.today-portal > header,
.pocket-drop > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #fff;
  background: linear-gradient(#4a93e6, #1f5fd0);
}

.today-portal header code,
.pocket-drop header code {
  color: #cfe2fb;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.today-portal header em,
.pocket-drop header em {
  margin-left: auto;
  color: #fff;
  background: #ff2e7a;
  border-radius: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  padding: 1px 7px;
}

.mfm-video {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: radial-gradient(120% 130% at 78% -10%, #22407a, #070d18);
}

.mfm-video.compact {
  aspect-ratio: 1.62;
}

.mfm-video::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56%;
  background: linear-gradient(transparent, rgba(4,9,18,.9));
}

.on-air,
.yt-chip {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 800;
}

.on-air {
  left: 14px;
  color: #8fe000;
}

.yt-chip {
  right: 13px;
  color: #fff;
  background: #e23b2e;
  border-radius: 3px;
  padding: 3px 8px;
}

.yt-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 74px;
  height: 51px;
  transform: translate(-50%, -50%);
  color: #fff;
  background: #e23b2e;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  font-size: 20px;
}

.video-caption {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.video-caption strong {
  display: block;
  color: #fff;
  font-family: Chivo, Arial, sans-serif;
  font-size: 27px;
  line-height: 1;
}

.video-caption small {
  display: block;
  margin-top: 5px;
  color: #8fb2ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.video-caption a {
  flex: none;
  color: #fff;
  background: #e23b2e;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 13px;
}

.today-info {
  padding: 15px 17px 17px;
}

.today-info > p:not(.label) {
  max-width: 650px;
  margin-top: 9px;
  color: #3a4f6a;
  font-size: 13.5px;
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  padding: 14px;
}

.portal-card {
  overflow: hidden;
  border: 1px solid #d4deeb;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(40,60,90,.1);
}

.portal-card.selected {
  border-color: #1f6bff;
  box-shadow: 0 0 0 2px rgba(31,107,255,.18), 0 2px 5px rgba(40,60,90,.14);
}

.portal-card-art {
  position: relative;
  display: flex;
  align-items: end;
  aspect-ratio: 1.55;
  padding: 9px;
  background: repeating-linear-gradient(135deg, #e7eef8 0 9px, #dbe6f3 9px 18px);
}

.portal-card-art > span {
  position: absolute;
  top: 7px;
  left: 7px;
  color: #fff;
  background: #1f6bff;
  border-radius: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 6px;
}

.mini-bars,
.portal-bars {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 20px;
}

.mini-bars span,
.portal-bars span {
  width: 4px;
  background: #7ec400;
}

.mini-bars span:nth-child(1),
.portal-bars span:nth-child(1) { height: 42%; }
.mini-bars span:nth-child(2),
.portal-bars span:nth-child(2) { height: 70%; }
.mini-bars span:nth-child(3),
.portal-bars span:nth-child(3) { height: 100%; }
.mini-bars span:nth-child(4),
.portal-bars span:nth-child(4) { height: 63%; }
.mini-bars span:nth-child(5),
.portal-bars span:nth-child(5) { height: 84%; }

.portal-card-copy {
  padding: 9px 10px 10px;
}

.portal-card-copy > a {
  color: #16202e;
  font-family: Chivo, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.portal-card-copy p {
  margin-top: 3px;
  color: #7a8aa0;
  font-size: 9px;
}

.portal-card-copy div {
  display: flex;
  gap: 5px;
  margin-top: 9px;
}

.portal-card-copy button,
.portal-card-copy div a {
  flex: 1;
  border: 1px solid #1a4fb0;
  border-radius: 3px;
  color: #fff;
  background: linear-gradient(#3f86ff, #1f6bff);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  padding: 5px 6px;
}

.portal-card-copy div a:nth-child(2) {
  flex: none;
  color: #c4362a;
  border-color: #f0c0bb;
  background: #fdeeec;
}

.portal-table {
  margin: 0 14px 14px;
  overflow: hidden;
  border: 1px solid #c2cfde;
  border-radius: 5px;
  background: #fff;
}

.portal-table header,
.portal-table a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 132px 130px 48px;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
}

.portal-table header {
  color: #7a8aa0;
  background: linear-gradient(#eef3fa, #e1e9f3);
  border-bottom: 1px solid #c2cfde;
  font-size: 9px;
  letter-spacing: .04em;
}

.portal-table a {
  color: #28425f;
  border-bottom: 1px solid #eef2f7;
  font-size: 11px;
}

.portal-table a:nth-child(2) {
  background: #e9f1ff;
  border-left: 3px solid #1f6bff;
}

.portal-rail {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 13px;
  border-left: 1px solid #aebdcf;
  background: linear-gradient(#dde6f1, #cdd7e4);
}

.rail-status {
  justify-content: space-between;
  color: #28425f;
  font-weight: 800;
}

.portal-player,
.download-box,
.rail-cta,
.pocket-cta {
  overflow: hidden;
  color: #dbe8ff;
  border: 1px solid #2a3a52;
  border-radius: 7px;
  background: linear-gradient(#1a2740, #0b1320);
  box-shadow: 0 2px 0 rgba(255,255,255,.4), 0 8px 20px rgba(20,40,80,.22);
}

.portal-player header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #9fb2cc;
  background: linear-gradient(#26344b, #19243a);
  border-bottom: 1px solid #2f415d;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
}

.player-row p,
.player-row span {
  margin: 0;
  color: #6f82a0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.player-row strong {
  display: block;
  color: #eef3fb;
  font-family: Chivo, Arial, sans-serif;
  font-size: 15px;
}

.portal-bars {
  height: 34px;
  padding: 0 13px 13px;
}

.portal-bars span {
  flex: 1;
  width: auto;
}

.download-box {
  color: #28425f;
  background: #fff;
  border-color: #b9c6d8;
}

.download-box header {
  padding: 7px 10px;
  color: #fff;
  background: linear-gradient(#4a93e6, #1f5fd0);
  font-weight: 800;
}

.download-box p,
.download-box div {
  margin: 10px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.download-box div {
  height: 10px;
  background: #dce6f2;
  border: 1px solid #b9c6d8;
}

.download-box div span {
  display: block;
  width: 12%;
  height: 100%;
  background: #7ec400;
}

.rail-cta {
  padding: 14px;
}

.rail-cta h2,
.pocket-cta h2 {
  color: #fff;
  font-family: Chivo, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.1;
}

.rail-cta p,
.pocket-cta p {
  margin: 8px 0 12px;
  color: #9fb2cc;
  font-size: 12px;
}

.rail-cta a,
.pocket-cta a {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.rail-cta a:last-child,
.pocket-cta a:last-child {
  color: #cfe2fb;
  border-color: #33455f;
  background: #0e1830;
  box-shadow: none;
}

@media (max-width: 760px) {
  body[data-page="home"] .desktop {
    padding: 0;
  }

  .portal-desktop {
    display: none;
  }

  .pocket-portal {
    display: flex;
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    color: #16202e;
    background: radial-gradient(135% 48% at 50% 0%, #eef3fa, #d6e0ec 64%, #c7d3e2);
    flex-direction: column;
  }

  .pocket-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    color: #fff;
    background: linear-gradient(#4a93e6, #1f5fd0);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 10px rgba(20,40,80,.28);
  }

  .pocket-header .disc-icon {
    width: 32px;
    height: 32px;
  }

  .pocket-logo {
    width: 166px;
    height: 38px;
    padding: 0;
  }

  .pocket-header div:nth-child(2) {
    flex: 1;
  }

  .pocket-header strong {
    display: block;
    font-family: Chivo, Arial, sans-serif;
    font-size: 19px;
    line-height: 1;
  }

  .pocket-header small {
    display: block;
    overflow: hidden;
    color: #cfe2fb;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pocket-header em {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 20px;
    background: rgba(11,19,32,.32);
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
  }

  .pocket-intro,
  .pocket-drop,
  .pocket-player,
  .pocket-list,
  .pocket-cta {
    margin: 14px 14px 0;
  }

  .pocket-intro h1 {
    font-size: 25px;
  }

  .pocket-intro p {
    margin-top: 9px;
    color: #3a4f6a;
    font-size: 13px;
  }

  .pocket-drop,
  .pocket-list {
    overflow: hidden;
    border: 1px solid #1f6bff;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31,107,255,.13), 0 6px 18px rgba(40,60,90,.2);
  }

  .pocket-copy {
    padding: 14px 15px 15px;
  }

  .pocket-copy p {
    color: #3a4f6a;
    font-size: 13px;
  }

  .pocket-copy code {
    display: block;
    margin-top: 10px;
    color: #7a8aa0;
    font-size: 9px;
  }

  .pocket-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 14px;
  }

  .pocket-actions button,
  .pocket-actions span {
    width: 100%;
  }

  .pocket-actions button {
    padding: 15px;
    border-radius: 11px;
    font-size: 16px;
  }

  .pocket-actions span {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .pocket-actions a {
    display: flex;
    justify-content: center;
    border-radius: 11px;
    padding: 14px;
  }

  .pocket-player {
    border-radius: 13px;
  }

  .pocket-player header em {
    margin-left: auto;
    color: #8fe000;
    font-style: normal;
  }

  .progress {
    position: relative;
    height: 5px;
    margin-top: 7px;
    border: 1px solid #243650;
    background: #060b14;
  }

  .progress i {
    display: block;
    width: 68%;
    height: 100%;
    background: repeating-linear-gradient(90deg, #1f6bff 0 5px, #3f86ff 5px 10px);
  }

  .pocket-list {
    border-color: #b9c6d8;
    box-shadow: 0 1px 5px rgba(40,60,90,.1);
  }

  .pocket-list header,
  .pocket-list a {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 32px 32px;
    gap: 11px;
    align-items: center;
    padding: 12px 13px;
  }

  .pocket-list header {
    display: flex;
    justify-content: space-between;
    color: #28425f;
    background: linear-gradient(#eef3fa, #e1e9f3);
    border-bottom: 1px solid #d4deeb;
    font-size: 12px;
    font-weight: 800;
  }

  .pocket-list a {
    border-bottom: 1px solid #eef2f7;
  }

  .pocket-list a > span {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    background: repeating-linear-gradient(135deg, #e7eef8 0 6px, #dbe6f3 6px 12px);
  }

  .pocket-list strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: Chivo, Arial, sans-serif;
    font-size: 13px;
  }

  .pocket-list small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #7a8aa0;
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
  }

  .pocket-list em,
  .pocket-list b {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #9db8e0;
    border-radius: 8px;
    color: #1f6bff;
    background: linear-gradient(#fff, #e6eefb);
    font-style: normal;
  }

  .pocket-list b {
    color: #c4362a;
    border-color: #f0c0bb;
    background: #fdeeec;
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
  }

  .pocket-cta {
    margin-bottom: 96px;
    padding: 15px 14px;
    border-radius: 13px;
  }

  .pocket-cta code {
    display: flex;
    justify-content: space-between;
    margin: -15px -14px 14px;
    padding: 9px 14px;
    color: #cfe2fb;
    background: linear-gradient(#26344b, #16233c);
    font-size: 9px;
  }

  .pocket-cta a {
    border-radius: 11px;
    padding: 14px;
  }

  .pocket-tabs {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 10px 8px 14px;
    background: linear-gradient(#26344b, #0b1320);
    border-top: 1px solid #2a3a52;
    box-shadow: 0 -3px 14px rgba(20,40,80,.3);
  }

  .pocket-tabs a {
    color: #9fb2cc;
    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    text-align: center;
  }

  .pocket-tabs a:first-child {
    color: #8fc0ff;
    font-weight: 800;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,.34) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(255,255,255,.4) 1px, transparent 1px) 0 0 / 28px 28px,
    #b7c7d8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a.button {
  font: 800 14px/1 Arial, Helvetica, sans-serif;
}

.desktop {
  max-width: 1380px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid #0f55d8;
  background: linear-gradient(#4f9bff, #1f6bff);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 286px;
  height: 54px;
  padding: 0;
  background: transparent;
  border: 0;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topbar nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar nav a,
.youtube-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(11,19,32,.14);
  font-size: 13px;
  font-weight: 800;
}

.youtube-link {
  justify-self: end;
}

main {
  display: grid;
  gap: 22px;
  padding-top: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: stretch;
}

.hero-copy {
  min-height: 410px;
  padding: 48px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.station-id,
.label {
  margin: 0 0 12px;
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: .96;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 950;
}

h2 {
  font-size: clamp(30px, 4vw, 56px);
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.48;
}

.hero-actions,
.today-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid #8ca6c4;
  background: #eef5fd;
  box-shadow: 2px 2px 0 rgba(16, 32, 59, .16);
  cursor: pointer;
}

.button.primary {
  color: #fff;
  border-color: #074ed5;
  background: linear-gradient(#4a96ff, #1766ef);
}

.button.red {
  color: #fff;
  border-color: #bc271d;
  background: var(--red);
}

.signal-panel,
.window {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.signal-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: #dbe8ff;
  background: var(--dark);
  border-color: #24415f;
}

.dial {
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 1px solid #24415f;
  background:
    radial-gradient(circle at 50% 50%, rgba(31,107,255,.28), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 45%);
}

.dial span {
  font-size: 15px;
  letter-spacing: .28em;
}

.dial strong {
  display: block;
  color: #fff;
  font-size: 74px;
  line-height: .9;
}

.dial small {
  color: var(--lime);
  font-family: "Courier New", monospace;
  font-weight: 800;
}

.meter,
.eq,
.wave-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  min-height: 42px;
}

.meter span,
.eq i,
.wave-bars i {
  display: block;
  width: 18%;
  background: var(--lime);
}

.meter span:nth-child(1),
.eq i:nth-child(1),
.wave-bars i:nth-child(1) { height: 14px; }
.meter span:nth-child(2),
.eq i:nth-child(2),
.wave-bars i:nth-child(2) { height: 24px; }
.meter span:nth-child(3),
.eq i:nth-child(3),
.wave-bars i:nth-child(3) { height: 36px; }
.meter span:nth-child(4),
.eq i:nth-child(4),
.wave-bars i:nth-child(4) { height: 22px; }
.meter span:nth-child(5),
.eq i:nth-child(5),
.wave-bars i:nth-child(5) { height: 30px; }
.eq i:nth-child(6) { height: 18px; }

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  color: #fff;
  background: linear-gradient(#4d96ff, #1f6bff);
  border-bottom: 1px solid #0f55d8;
  font-size: 13px;
  font-weight: 900;
}

.window-title span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 2px rgba(255,255,255,.4);
}

.window-title em {
  margin-left: auto;
  color: rgba(255,255,255,.78);
  font-style: normal;
  font-family: "Courier New", monospace;
  font-size: 11px;
}

.today-grid {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 360px;
}

.video-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #eef6ff 0 16px, #e3eefb 16px 30px);
}

.video-shell.large {
  min-height: 420px;
}

.scanline,
.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(31,107,255,.05) 50%) 0 0 / 100% 6px;
}

.play-disc {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.35), 0 8px 18px rgba(31,107,255,.28);
}

.wave-bars {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 92px;
}

.today-copy {
  padding: 42px;
}

.today-copy > p:not(.label),
.manifesto p,
.cta-band p,
.song-intro p,
.dispatch p,
.lyrics p,
.topic-header p {
  color: #445875;
  font-size: 18px;
}

.song-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
  color: #5d6f89;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 800;
}

.song-meta span {
  padding: 5px 8px;
  background: #eef5fd;
  border: 1px solid #c4d3e4;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid #b8c8d9;
  background: #f8fbff;
  font-size: 12px;
  font-weight: 800;
}

.tag span {
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.station-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.manifesto,
.player-window,
.table-window,
.song-detail,
.dispatch,
.lyrics,
.topic-header {
  overflow: hidden;
}

.manifesto {
  padding-bottom: 28px;
}

.manifesto h2,
.manifesto p {
  margin-left: 30px;
  margin-right: 30px;
}

.manifesto h2 {
  margin-top: 30px;
  max-width: 760px;
}

.manifesto-line {
  padding: 16px;
  border-left: 5px solid var(--blue);
  background: #eef5fd;
  font-weight: 800;
}

.player-window {
  color: #dbe8ff;
  background: var(--dark);
  border-color: #24415f;
}

.detail-player {
  max-width: 620px;
}

.player {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: center;
  padding: 22px;
}

.player p,
.player span {
  margin: 0;
  color: #90a6c4;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.player strong {
  display: block;
  margin: 4px 0;
  color: #fff;
  font-size: 22px;
}

.player-disc {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 18%, var(--blue) 19% 32%, #06101f 33% 100%);
}

.player-window.is-playing .player-disc,
.player-window.is-playing .eq i {
  animation: pulse 1.2s ease-in-out infinite alternate;
}

@keyframes pulse {
  from { opacity: .68; transform: scaleY(.9); }
  to { opacity: 1; transform: scaleY(1.08); }
}

.eq {
  padding: 0 22px 22px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 16px;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: #445875;
  font-size: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mini-card {
  border: 1px solid #9eb4cd;
  background: #fff;
  box-shadow: 3px 3px 0 rgba(16, 32, 59, .14);
}

.cover-tile {
  position: relative;
  display: grid;
  place-items: center;
  height: 150px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(31,107,255,.8), rgba(11,19,32,.92)),
    repeating-linear-gradient(135deg, #eef6ff 0 16px, #e3eefb 16px 30px);
}

.cover-tile strong {
  position: relative;
  z-index: 1;
  font-size: 56px;
}

.mini-card div {
  padding: 12px;
}

.mini-card a:not(.cover-tile) {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.mini-card p {
  margin: 4px 0 0;
  color: #5d6f89;
  font-family: "Courier New", monospace;
  font-size: 12px;
}

.table-window {
  margin-top: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #d7e2ee;
  text-align: left;
}

th {
  color: #63758d;
  background: #eef5fd;
  font-size: 12px;
  text-transform: uppercase;
}

td:first-child {
  font-weight: 900;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px;
  color: #dbe8ff;
  background: var(--dark);
  border: 1px solid #24415f;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  max-width: 720px;
  color: #b9c8dc;
}

.footer {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 14px;
  color: #fff;
  background: var(--blue);
  border: 1px solid #0f55d8;
  font-size: 13px;
  font-weight: 800;
}

.footer a {
  text-decoration: underline;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lime);
}

.song-page,
.topic-page {
  gap: 22px;
}

.song-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 22px;
  align-items: end;
  padding: 22px 26px;
  border: 1px solid #9eb4cd;
  background: linear-gradient(#f6fbff, #e8f1fb);
  box-shadow: var(--shadow);
}

.song-context p:first-child {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #1f6bff;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.song-context p:first-child span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}

.song-context h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: .95;
}

.song-context p:last-child {
  margin: 0;
  color: #445875;
  font-size: 17px;
  font-weight: 700;
}

.song-hero {
  display: grid;
  grid-template-columns: 48% 1fr;
}

.song-intro {
  padding: 42px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
}

.dispatch,
.lyrics,
.topic-header {
  padding-bottom: 28px;
}

.dispatch h2,
.dispatch p,
.lyrics h2,
.lyrics p,
.topic-header h1,
.topic-header p,
.topic-header .label {
  margin-left: 30px;
  margin-right: 30px;
}

.dispatch h2,
.lyrics h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 30px;
}

.lyrics {
  background: #fbfdff;
}

.lyrics p {
  margin-top: 8px;
  margin-bottom: 8px;
  color: #172946;
  font-family: "Courier New", monospace;
  font-size: 15px;
}

.related {
  margin-top: 4px;
}

.topic-header {
  padding-top: 28px;
}

.topic-header h1 {
  max-width: 900px;
}

@media (max-width: 980px) {
  .desktop {
    width: 100%;
    max-width: 100vw;
    padding: 12px;
  }

  main,
  .hero,
  .latest-window,
  .station-grid,
  .archive,
  .cta-band,
  .song-detail,
  .content-grid,
  .related,
  .topic-header,
  .window,
  .signal-panel {
    max-width: 100%;
    min-width: 0;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .footer {
    width: 100%;
  }

  .brand {
    width: 224px;
    max-width: 100%;
  }

  .youtube-link {
    justify-self: start;
  }

  .hero,
  .today-grid,
  .station-grid,
  .song-hero,
  .song-context,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
    padding: 28px;
  }

  h1 {
    font-size: clamp(44px, 16vw, 72px);
  }

  .hero-text,
  .today-copy > p:not(.label),
  .manifesto p,
  .cta-band p,
  .song-intro p,
  .dispatch p,
  .lyrics p,
  .topic-header p {
    font-size: 16px;
  }

  .today-copy,
  .song-intro {
    padding: 24px;
  }

  .signal-panel {
    min-height: 280px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .cta-band {
    display: grid;
  }

  table {
    min-width: 680px;
  }

  .table-window {
    overflow-x: auto;
  }
}

@media (max-width: 520px) {
  body {
    background: #95a9bf;
    overflow-x: hidden;
  }

  .desktop {
    width: 100%;
    max-width: 100vw;
    padding: 0;
  }

  .topbar,
  .footer {
    width: 100%;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  main {
    width: 100%;
    max-width: 100vw;
    padding: 12px;
    overflow: hidden;
  }

  .topbar nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .topbar nav a,
  .youtube-link {
    white-space: nowrap;
  }

  .hero-copy,
  .window,
  .signal-panel,
  .cta-band,
  .mini-card {
    box-shadow: 2px 2px 0 rgba(16, 32, 59, .16);
  }

  .hero-copy {
    padding: 22px;
  }

  h1 {
    font-size: 42px;
    line-height: 1;
  }

  h2 {
    font-size: 30px;
    line-height: 1;
  }

  .station-id,
  .label {
    font-size: 10px;
    letter-spacing: .04em;
  }

  .dial {
    min-height: 180px;
  }

  .dial strong {
    font-size: 56px;
  }

  .hero-actions,
  .today-actions,
  .cta-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .video-shell,
  .video-shell.large {
    min-height: 230px;
  }

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

  .cover-tile {
    height: 118px;
  }

  .table-window {
    display: none;
  }

  .manifesto h2,
  .manifesto p,
  .dispatch h2,
  .dispatch p,
  .lyrics h2,
  .lyrics p,
  .topic-header h1,
  .topic-header p,
  .topic-header .label {
    margin-left: 20px;
    margin-right: 20px;
  }
}
