:root {
  --bg: #f5f7ff;
  --panel: #ffffff;
  --ink: #101426;
  --muted: #66708a;
  --line: #e1e5f0;
  --green: #b7f52a;
  --green-dark: #3e6e00;
  --blue: #1956ff;
  --violet: #6437f5;
  --rose: #e34a70;
  --gold: #9f6b00;
  --shadow: 0 12px 28px rgba(23, 38, 83, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  min-height: 100vh;
}

.brand {
  height: 64px;
  max-width: 210px;
  overflow: hidden;
}

.brand-logo {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.topbar h2,
.section-heading h2 {
  margin: 0;
}

.eyebrow {
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 4px;
  opacity: 0.68;
  text-transform: uppercase;
}

.tabs {
  display: grid;
  gap: 6px;
}

.spotify-actions {
  display: grid;
  gap: 20px;
}

.tab {
  background: transparent;
  border-color: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 9px 12px;
  text-align: left;
}

.tab.is-active {
  background: #eaf0ff;
  color: var(--blue);
}

.tab-icon { font-size: 1.15rem; line-height: 1; width: 16px; }
.tab-icon-svg { height: 1.15rem; width: 1.15rem; }

.sync-panel {
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
  padding: 16px 14px;
}

.spotify-panel {
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px 14px;
}

.playlist-options {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  min-width: 0;
}

.playlist-select-label {
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
  min-width: 0;
}

.playlist-select-label select {
  background: #ffffff;
  color: var(--ink);
  min-width: 0;
  min-height: 40px;
  padding: 8px;
  width: 100%;
}

.spotify-source-link {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.sync-help {
  overflow-wrap: anywhere;
}

.spotify-attribution {
  display: inline-block;
  margin: 2px 0 0;
}

.spotify-logo {
  display: block;
  height: auto;
  width: 70px;
}

.check-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.check-row.is-quarterly {
  color: var(--violet);
}

.playlist-badge {
  background: #efffd4;
  border: 1px solid #d5f39b;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 0.68rem;
  margin-left: auto;
  padding: 3px 7px;
  white-space: nowrap;
}

.sync-help {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 8px 0 0;
}

.check-row input {
  accent-color: var(--green);
  height: 18px;
  width: 18px;
}

.primary-button {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 800;
  min-height: 44px;
  width: 100%;
}

.app-notice {
  background: var(--blue);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(23, 38, 83, .2);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  left: 16px;
  opacity: 0;
  padding: 13px 16px;
  pointer-events: none;
  position: fixed;
  right: 16px;
  text-align: center;
  top: max(16px, env(safe-area-inset-top));
  transform: translateY(-140%);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 30;
}

.app-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.icon-button {
  align-items: center;
  display: inline-flex;
  gap: 9px;
  justify-content: center;
}

.button-icon {
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.waveform-icon {
  height: 18px;
  width: 29px;
}

.secondary-button {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  font-weight: 800;
  min-height: 44px;
  width: 100%;
}

.spotify-privacy {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  margin-top: 4px;
}

.spotify-privacy summary {
  cursor: pointer;
  font-weight: 800;
}

.spotify-privacy p {
  margin: 8px 0 0;
}

.spotify-privacy a {
  color: var(--blue);
}

.content {
  align-content: start;
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 28px 32px;
}

.privacy-page {
  max-width: 760px;
}

.back-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.privacy-page h1,
.privacy-section h2 {
  margin: 0;
}

.privacy-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-width: 0;
}

.topbar h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  letter-spacing: -0.055em;
}

.view-title-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.filter-toggle-button {
  align-items: center;
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  padding: 8px;
}

.filter-toggle-icon {
  height: 22px;
  width: 22px;
}

.meta,
.small-muted {
  color: var(--muted);
  font-size: 0.84rem;
}

.toolbar {
  align-items: end;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) minmax(250px, 360px) auto;
  min-width: 0;
  padding: 12px;
}

.toolbar[hidden] {
  display: none;
}

.toolbar label,
.field label {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
}

.artist-follow-up-filter {
  align-items: center;
  align-self: end;
  display: flex;
  gap: 8px;
  min-height: 40px;
  text-transform: none !important;
}

.artist-follow-up-filter input {
  accent-color: var(--blue);
  min-height: 18px;
  width: 18px;
}

.toolbar select,
.toolbar input,
.field select,
.field input,
.field textarea {
  background: #fff;
  color: var(--ink);
  min-height: 40px;
  padding: 8px 10px;
  text-transform: none;
}

.search-field {
  grid-column: 3;
}

.clear-inbox-button {
  background: #fff;
  border-color: #efb6bd;
  color: #9b2434;
  font-weight: 800;
  min-height: 40px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  min-width: 0;
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.music-card,
.review-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.cover,
.artist-image {
  aspect-ratio: 1;
  background: radial-gradient(circle at 28% 70%, #1956ff 0 12%, transparent 12.5%), repeating-radial-gradient(circle at 38% 64%, transparent 0 7%, rgba(255,255,255,.24) 7.5% 8%), linear-gradient(145deg, #090d1d, #1b0d58);
  border-radius: 12px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.cover-placeholder {
  overflow: hidden;
  position: relative;
  display: flex;
}

.album-cover-link {
  border-radius: 12px;
  display: block;
  line-height: 0;
}

.album-cover-link:focus-visible {
  outline: 3px solid rgba(25, 86, 255, .55);
  outline-offset: 3px;
}

.music-card:nth-child(3n + 2) .cover { background: radial-gradient(circle at 78% 88%, #7648ff 0 17%, transparent 17.5%), repeating-radial-gradient(circle at 78% 88%, transparent 0 8%, rgba(255,255,255,.25) 8.5% 9%), linear-gradient(145deg, #5d2ff2, #151839); }
.music-card:nth-child(3n) .cover { background: radial-gradient(circle at 24% 72%, #b7f52a 0 11%, transparent 11.5%), repeating-radial-gradient(circle at 24% 72%, transparent 0 7%, rgba(255,255,255,.22) 7.5% 8%), linear-gradient(145deg, #0d1532, #1956ff); }
.cover-record { background: #070a14; border-radius: 50%; box-shadow: inset 0 0 0 15px rgba(255,255,255,.06); height: 50%; left: 40%; position: absolute; top: 38%; width: 50%; }
.cover-record::after { background: var(--blue); border-radius: 50%; content: ""; height: 18%; left: 41%; position: absolute; top: 41%; width: 18%; }
.cover-wave { background: rgba(255,255,255,.84); height: 34%; left: 14%; mask: repeating-linear-gradient(90deg, #000 0 2px, transparent 2px 5px); opacity: .72; position: absolute; top: 16%; width: 24%; }

.album-source-link {
  color: var(--blue);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 6px;
}

.spotify-link-button {
  align-items: center;
  background: #edf2ff;
  border-radius: 14px;
  color: var(--blue);
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  line-height: 1.1;
  min-height: 42px;
  padding: 9px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.spotify-link-button:hover,
.spotify-link-button:focus-visible {
  background: #e1eaff;
  outline: 3px solid rgba(25, 86, 255, .24);
  outline-offset: 2px;
}

.spotify-link-icon {
  flex: 0 0 auto;
  height: 24px;
  width: 24px;
}

.album-source-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 28px;
}

.artist-image {
  border-radius: 50%;
}

.card-title {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.card-title h3 {
  font-size: 1.12rem;
  line-height: 1.18;
  margin: 0;
}

.card-body {
  align-content: center;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta span + span::before {
  color: #a0a9bd;
  content: "•";
  margin-right: 6px;
}

.artist-link,
.artist-name-button,
.back-to-artists-button {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  padding: 0;
  text-align: left;
}

.artist-link {
  font-weight: 700;
}

.artist-link:hover,
.artist-link:focus-visible,
.artist-name-button:hover,
.artist-name-button:focus-visible,
.back-to-artists-button:hover,
.back-to-artists-button:focus-visible {
  color: var(--blue);
  text-decoration: underline;
}

.album-playlist {
  margin: -4px 0 0;
  overflow-wrap: anywhere;
}

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

.pill {
  background: #edf0f6;
  border-radius: 999px;
  color: #37415a;
  font-size: 0.76rem;
  font-weight: 750;
  padding: 4px 8px;
}

.pill.follow {
  background: #ecffd1;
  color: var(--green-dark);
}

.pill.rating {
  background: #e8edff;
  color: var(--blue);
}

.pill.high {
  background: #fff2cf;
  color: var(--gold);
}

.field-grid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  padding: 12px 14px;
}

.card-status-line {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.album-icon-actions {
  display: flex;
  gap: 6px;
}

.album-card-actions {
  align-items: stretch;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, .45fr);
  padding: 10px 14px;
}

.mobile-card-actions {
  display: none;
}

.album-card-actions .album-icon-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.album-action-button,
.rating-summary-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 6px;
}

.album-action-button svg {
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}

.album-action-button.is-listened {
  color: var(--blue);
}

.album-action-button.is-active {
  background: #ecffd1;
  color: var(--green-dark);
}

.rating-summary-button {
  border-left: 1px solid var(--line);
  display: grid;
  gap: 1px 6px;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: start;
  padding-left: 14px;
  text-align: left;
}

.rating-summary-button > span:first-child {
  color: var(--muted);
  font-size: .76rem;
  grid-column: 1;
}

.rating-summary-button strong {
  color: var(--blue);
  font-size: .98rem;
  grid-column: 1;
}

.rating-summary-button > span:last-child {
  font-size: 1.5rem;
  grid-column: 2;
  grid-row: 1 / -1;
}

.album-icon-toggle {
  align-items: center;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.album-icon-toggle svg {
  height: 18px;
  width: 18px;
}

.album-icon-toggle.is-listened {
  background: #edf0f6;
}

.album-follow-up-toggle.is-active {
  background: #ecffd1;
  border-color: #d9efb9;
  color: var(--green-dark);
}

.album-icon-toggle:focus-visible {
  outline: 3px solid rgba(25, 86, 255, .3);
  outline-offset: 2px;
}

.field {
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

textarea {
  min-height: 58px;
  resize: vertical;
}

.artist-note-field textarea,
.note-dialog-field textarea {
  padding: 8px 10px;
}

.rating-row {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.rating-button {
  background: #fff;
  color: var(--ink);
  aspect-ratio: 1;
  border-radius: 8px;
  font-size: .76rem;
  min-height: 0;
  padding: 0;
}

.rating-button.is-active {
  background: var(--violet);
  border-color: var(--blue);
  color: #fff;
}

.album-actions {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 10px 14px 14px;
}

.delete-album-button {
  align-items: center;
  background: #fff;
  border-color: var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 5px;
  width: 28px;
}

.delete-album-button:hover {
  background: #fff1f2;
  border-color: #efb6bd;
  color: #9b2434;
}

.delete-album-button svg {
  height: 14px;
  width: 14px;
}

.confirmation-dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(16, 20, 38, .24);
  color: var(--ink);
  max-width: min(360px, calc(100vw - 32px));
  padding: 22px;
}

.note-dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(16, 20, 38, .24);
  color: var(--ink);
  max-width: min(440px, calc(100vw - 32px));
  padding: 22px;
}

.rating-dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(16, 20, 38, .24);
  color: var(--ink);
  max-width: min(420px, calc(100vw - 32px));
  padding: 22px;
}

.rating-dialog::backdrop {
  background: rgba(16, 20, 38, .4);
}

.rating-dialog h2 {
  font-size: 1.25rem;
  margin: 0;
}

.rating-picker {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 18px 0 12px;
}

.rating-picker button {
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  min-height: 48px;
}

.rating-picker button:hover,
.rating-picker button:focus-visible {
  background: var(--violet);
  border-color: var(--blue);
  color: #fff;
}

.note-dialog::backdrop {
  background: rgba(16, 20, 38, .4);
}

.note-dialog h2 {
  font-size: 1.25rem;
  margin: 0;
}

.note-dialog-field {
  display: grid;
  font-size: .84rem;
  font-weight: 800;
  gap: 7px;
  margin: 18px 0;
}

.confirmation-dialog::backdrop {
  background: rgba(16, 20, 38, .4);
}

.confirmation-dialog p {
  font-weight: 800;
  margin: 0 0 18px;
}

.confirmation-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.confirmation-dialog .confirmation-actions .primary-button {
  background: #9b2434;
  border-color: #9b2434;
}

.secondary-button {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  font-weight: 800;
  min-height: 38px;
  padding: 8px 12px;
}

.empty-state {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

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

.artist-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.artist-card,
.artist-history-album,
.artist-detail-heading {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.artist-card {
  padding: 14px;
}

.artist-card-main,
.artist-history-main {
  display: grid;
  gap: 14px;
  grid-template-columns: 72px minmax(0, 1fr);
}

.artist-card-body,
.artist-history-copy {
  align-content: center;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.artist-card h3,
.artist-detail-heading h3,
.artist-history-album h4 {
  margin: 0;
}

.artist-name-button {
  font-size: 1.12rem;
  font-weight: 800;
}

.artist-detail-heading {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-bottom: 14px;
  padding: 18px;
}

.back-to-artists-button {
  color: var(--blue);
  font-size: .82rem;
  font-weight: 800;
}

.artist-history-list {
  display: grid;
  gap: 12px;
}

.artist-albums-section {
  margin: 0 0 14px;
}

.artist-albums-section h4 {
  margin: 0 0 8px;
}

.artist-album-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 16px;
}

.artist-album-list li {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.artist-album-title {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.artist-album-title > span:first-child {
  overflow-wrap: anywhere;
}

.artist-album-rating {
  align-items: center;
  aspect-ratio: 1;
  background: var(--violet);
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 28px;
  font-size: .82rem;
  font-weight: 800;
  justify-content: center;
}

.artist-history-album {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.artist-album-title h4 {
  overflow-wrap: anywhere;
}

.artist-note-field {
  display: grid;
  font-size: .82rem;
  font-weight: 800;
  gap: 6px;
  grid-column: 1 / -1;
}

.pill.overdue {
  background: #ffe5eb;
  color: var(--rose);
}

.review-box {
  padding: 16px;
}

.review-box h3 {
  margin: 0 0 12px;
}

.review-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.review-list li {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding-top: 10px;
}

.review-item-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.review-spotify-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 8px;
  text-decoration: none;
}

.review-spotify-link:hover,
.review-spotify-link:focus-visible {
  background: #edf2ff;
  border-color: var(--blue);
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    min-height: auto;
    position: static;
  }

  .tabs {
    grid-template-columns: repeat(4, 1fr);
  }

  .tab {
    text-align: center;
  }

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

  .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .app-shell {
    display: block;
  }

  body {
    padding-bottom: 82px;
  }

  .content,
  .sidebar {
    padding: 16px;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .brand {
    height: 46px;
    margin: 0 auto;
    max-width: 160px;
  }

  .spotify-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .spotify-panel,
  .sync-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    min-width: 0;
    padding: 0;
  }

  .spotify-panel .primary-button,
  .sync-panel .primary-button {
    font-size: .78rem;
    gap: 6px;
    height: 44px;
    min-height: 44px;
    padding: 6px;
  }

  .spotify-panel .button-icon,
  .sync-panel .button-icon {
    height: 17px;
    width: 17px;
  }

  .sync-panel .waveform-icon {
    width: 22px;
  }

  .spotify-privacy,
  .sync-help,
  .playlist-select-label,
  .spotify-source-link {
    font-size: .7rem;
  }

  .spotify-attribution {
    display: none;
  }

  .tabs {
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--line);
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(23, 38, 83, .08);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, 1fr);
    left: 0;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 10;
  }

  .tab {
    border-radius: 12px;
    justify-content: center;
    min-height: 52px;
    padding: 8px;
  }

  .tab-label {
    display: none;
  }

  .tab-icon {
    font-size: 1.45rem;
    width: auto;
  }

  .tab-icon-svg {
    height: 1.45rem;
    width: 1.45rem;
  }

  .content {
    padding-bottom: 30px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar,
  .card-grid,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .artist-detail-heading,
  .artist-history-album {
    grid-template-columns: 1fr;
  }

  .artist-detail-heading .review-spotify-link,
  .artist-history-album .pill {
    justify-self: start;
  }

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

  .card-main {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .album-source-link {
    background: #edf2ff;
    border-radius: 999px;
    margin-top: 2px;
    padding: 7px 10px;
  }

  .spotify-link-button {
    font-size: .76rem;
    gap: 7px;
    min-height: 40px;
    padding: 8px 10px;
  }

  .spotify-link-icon {
    height: 22px;
    width: 22px;
  }

  .delete-album-button {
    height: 40px;
    width: 40px;
  }

  .album-card-actions {
    grid-template-columns: minmax(0, 1fr) 84px;
    padding: 8px 12px;
  }

  .desktop-card-controls {
    display: none;
  }

  .mobile-card-actions {
    display: grid;
  }

  .album-action-button {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 400;
    gap: 6px;
    min-height: 48px;
    white-space: nowrap;
  }

  .album-action-button.is-active {
    background: transparent;
    color: var(--muted);
  }

  .album-action-button.is-listened {
    color: var(--muted);
  }

  .album-action-button .album-action-icon {
    flex: 0 0 auto;
    height: 34px;
    width: 34px;
  }

  .action-bookmark-icon circle {
    fill: #fff;
    stroke: var(--muted);
  }

  .album-action-button.is-active .action-bookmark-icon circle {
    stroke: var(--green-dark);
  }

  .album-action-button.is-active .action-bookmark-icon {
    color: var(--green-dark);
  }

  .rating-summary-button {
    min-height: 48px;
    padding-left: 9px;
  }

  .rating-summary-button > span:first-child {
    font-size: .68rem;
  }

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

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

  .content {
    padding-bottom: 100px;
  }

}
