:root {
  color-scheme: dark;
  --font-display: "Amatic SC", cursive;
  --font-body: "Josefin Sans", sans-serif;
  --font-blog: "Comic Neue", sans-serif;
  --font-accent: "Pangolin", cursive;
  --font-contact: "Playpen Sans", cursive;
  --control-height: 48px;
  --reader-frame-radius: 10px;
  --page-bg: #3e2d29;
  --page-overlay: radial-gradient(circle at top, rgba(120, 93, 83, 0.22), transparent 55%);
  --surface: rgba(71, 52, 47, 0.9);
  --surface-strong: rgba(81, 59, 53, 0.96);
  --surface-soft: rgba(84, 62, 56, 0.82);
  --surface-contrast: rgba(216, 195, 178, 0.06);
  --text-main: #f2e4d4;
  --text-soft: #c7b09f;
  --accent-sage: #9cad8d;
  --accent-sage-strong: #c0d0b2;
  --accent-rose: #d1a6ad;
  --accent-rose-soft: rgba(209, 166, 173, 0.18);
  --accent-brown: #f0dcca;
  --accent-brown-soft: rgba(240, 220, 202, 0.1);
  --footer-icon-color: #bfd1ad;
  --border-soft: rgba(240, 220, 202, 0.08);
  --shadow-soft: 0 24px 54px rgba(18, 8, 4, 0.28);
  --shadow-panel: 0 18px 38px rgba(18, 8, 4, 0.22);
  --reader-glow-rose: rgba(179, 127, 137, 0.06);
  --reader-glow-sage: rgba(125, 143, 116, 0.08);
  --toolbar-control-radius: 16px;
  --toolbar-control-inner-radius: 12px;
  --select-trigger-bg:
    linear-gradient(135deg, rgba(95, 69, 61, 0.98), rgba(74, 52, 47, 0.98));
  --select-trigger-border: rgba(255, 255, 255, 0.06);
  --select-trigger-text: var(--text-main);
  --select-chevron-color: rgba(255, 228, 235, 0.86);
  --select-panel-bg:
    linear-gradient(180deg, #4f3a34 0%, #3f2d29 100%);
  --select-panel-shadow: 0 20px 40px rgba(21, 9, 5, 0.26);
  --select-option-text: rgba(255, 245, 240, 0.96);
  --select-option-hover-bg: rgba(255, 255, 255, 0.04);
  --nav-float-color: rgba(244, 228, 213, 0.86);
  --nav-float-hover-color: rgba(255, 242, 229, 0.96);
  --nav-float-shadow: rgba(24, 11, 7, 0.1);
  --nav-float-shadow-hover: rgba(24, 11, 7, 0.14);
}

:root[data-theme="light"] {
  color-scheme: light;
  --page-bg: linear-gradient(180deg, #f4efe7 0%, #e8dfd2 100%);
  --page-overlay:
    radial-gradient(circle at top left, rgba(203, 180, 156, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(168, 186, 154, 0.14), transparent 28%);
  --surface: rgba(243, 236, 227, 0.78);
  --surface-strong: rgba(250, 246, 239, 0.94);
  --surface-soft: rgba(255, 251, 245, 0.88);
  --surface-contrast: rgba(93, 74, 61, 0.06);
  --text-main: #5a4d43;
  --text-soft: #5f5144;
  --accent-sage: #556352;
  --accent-sage-strong: #556352;
  --accent-rose: #9a656a;
  --accent-rose-soft: rgba(211, 182, 185, 0.18);
  --accent-brown: #5a4d43;
  --accent-brown-soft: rgba(93, 74, 61, 0.1);
  --footer-icon-color: #7d8f74;
  --border-soft: rgba(93, 74, 61, 0.08);
  --shadow-soft: 0 22px 50px rgba(80, 55, 41, 0.06);
  --shadow-panel: 0 16px 34px rgba(80, 55, 41, 0.08);
  --reader-glow-rose: rgba(203, 180, 156, 0.04);
  --reader-glow-sage: rgba(168, 186, 154, 0.05);
  --select-trigger-bg:
    linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(247, 240, 232, 0.94));
  --select-trigger-border: rgba(73, 55, 42, 0.08);
  --select-trigger-text: #4e433a;
  --select-chevron-color: rgba(154, 101, 106, 0.78);
  --select-panel-bg:
    linear-gradient(180deg, rgba(255, 252, 248, 0.99), rgba(248, 240, 233, 0.98));
  --select-panel-shadow: 0 18px 34px rgba(125, 96, 80, 0.12);
  --select-option-text: #4e433a;
  --select-option-hover-bg: rgba(93, 74, 61, 0.06);
  --nav-float-color: rgba(94, 67, 57, 0.82);
  --nav-float-hover-color: rgba(94, 67, 57, 0.96);
  --nav-float-shadow: rgba(121, 91, 73, 0.08);
  --nav-float-shadow-hover: rgba(121, 91, 73, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
    var(--page-overlay),
    var(--page-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.page-topbar {
  position: relative;
  z-index: 12;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 16px 36px 0 44px;
}

.search-insights-shell {
  align-items: flex-start;
}

.search-insights-card {
  display: grid;
  gap: 1.5rem;
}

.search-insights-header {
  align-items: flex-start;
}

.search-insights-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
}

.search-insights-toolbar > div:first-child {
  display: grid;
  gap: 0.25rem;
}

.search-insights-toolbar span,
.search-insights-list-row span,
.search-insight-stat span {
  color: var(--text-soft);
}

.search-insights-range-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.search-insights-range-buttons .nav-chip.is-active {
  color: white;
  background: var(--accent-rose);
}

.search-console-setup {
  max-width: 58rem;
  margin-inline: auto;
}

.search-console-setup-steps {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.4rem;
  line-height: 1.55;
}

.search-console-setup code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--accent-rose) 12%, transparent);
}

.search-insights-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.search-insight-stat {
  display: grid;
  gap: 0.4rem;
  min-height: 7rem;
  align-content: center;
}

.search-insight-stat strong {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  color: var(--text-main);
}

.search-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.search-insights-section {
  min-width: 0;
}

.search-insights-section .panel-heading > div {
  display: grid;
  gap: 0.15rem;
}

.search-insights-section .story-kicker {
  margin: 0;
}

.search-insights-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.search-insights-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.search-insights-table th,
.search-insights-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}

.search-insights-table th {
  color: var(--text-soft);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-insights-table td:first-child {
  max-width: 18rem;
  overflow-wrap: anywhere;
}

.search-insights-table a {
  color: var(--accent-sage-strong);
}

.search-insights-list {
  display: grid;
  margin-top: 0.75rem;
}

.search-insights-list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.search-insights-list-row:last-child {
  border-bottom: 0;
}

.search-insights-list-row > div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.search-insights-list-row strong {
  overflow-wrap: anywhere;
}

.search-insights-growth {
  flex: 0 0 auto;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: var(--text-main) !important;
  background: color-mix(in srgb, var(--accent-sage) 22%, transparent);
}

.search-insights-empty {
  margin: 1rem 0 0;
  color: var(--text-soft);
}

@media (max-width: 860px) {
  .search-insights-toolbar,
  .search-insights-header {
    align-items: stretch;
    flex-direction: column;
  }

  .search-insights-range-buttons {
    justify-content: flex-start;
  }

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

  .search-insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .search-insights-summary {
    grid-template-columns: 1fr;
  }
}

.public-page-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.public-page-tabs::-webkit-scrollbar {
  display: none;
}

.public-page-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 10px 0 0;
  margin-right: 10px;
  border: 0;
  background: none;
  box-shadow: none;
  color: rgba(199, 176, 159, 0.82);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.92rem);
  line-height: 0.88;
  letter-spacing: 0.045em;
  text-decoration: none;
  transform: none;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.public-page-tab:hover,
.public-page-tab:focus-visible {
  color: var(--accent-brown);
  opacity: 1;
  outline: none;
}

.public-page-tab:not(:last-child)::after {
  content: "|";
  position: absolute;
  top: 50%;
  right: -2px;
  transform: translateY(-52%);
  color: rgba(240, 220, 202, 0.28);
}

.public-page-tab.is-active {
  color: var(--accent-sage-strong);
  opacity: 1;
}

.public-page-tab.is-active::after {
  color: rgba(240, 220, 202, 0.28);
}

.reader-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.reader-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, var(--reader-glow-rose), transparent 42%),
    linear-gradient(320deg, var(--reader-glow-sage), transparent 40%);
  pointer-events: none;
}

.hero-header,
.control-row,
.reader-grid,
.reader-footer,
.admin-layout,
.admin-header {
  position: relative;
  z-index: 1;
}

.hero-header {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px 36px 16px;
}

.hero-brand {
  display: flex;
  align-items: center;
}

.hero-logo {
  width: min(280px, 100%);
  height: auto;
}

.hero-title-wrap {
  display: grid;
  gap: 8px;
}

.hero-copy-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent-sage);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92;
  color: var(--accent-sage-strong);
}

.hero-copy {
  margin: 0;
  max-width: 42rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.hero-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.1vw, 4.15rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0.015em;
  color: var(--accent-sage-strong);
  text-align: right;
  white-space: nowrap;
  display: inline-block;
  transform: scaleX(0.82);
  transform-origin: right center;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  padding: 0 36px 18px;
  z-index: 12;
}

.page-topbar-controls {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.page-topbar-controls-reader {
  gap: 8px;
}

.page-topbar-reader-toggles {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-topbar-controls .select-shell {
  flex: 0 1 250px;
  max-width: 250px;
  min-width: 190px;
}

.select-shell {
  position: relative;
  flex: 1 1 360px;
  max-width: 360px;
  min-width: min(100%, 320px);
  z-index: 24;
}

.select-shell.is-disabled {
  opacity: 0.58;
}

.select-trigger {
  width: 100%;
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--select-trigger-border);
  border-radius: var(--toolbar-control-radius);
  background: var(--select-trigger-bg);
  color: var(--select-trigger-text);
  box-shadow: var(--shadow-panel);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-align: left;
  outline: none;
}

.select-trigger:disabled {
  cursor: not-allowed;
}

.select-trigger:focus-visible {
  box-shadow:
    var(--shadow-panel),
    0 0 0 3px rgba(214, 171, 181, 0.24);
}

.select-trigger-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-chevron {
  width: 18px;
  height: 18px;
  color: var(--select-chevron-color);
  pointer-events: none;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.select-shell.is-open .select-chevron {
  transform: rotate(180deg);
}

.select-chevron svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.select-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 100%;
  max-height: 300px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: var(--select-panel-bg);
  box-shadow: var(--select-panel-shadow);
  scrollbar-width: thin;
  scrollbar-color: rgba(211, 162, 171, 0.7) transparent;
  z-index: 40;
}

.select-panel::-webkit-scrollbar {
  width: 8px;
}

.select-panel::-webkit-scrollbar-track {
  background: transparent;
}

.select-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(211, 162, 171, 0.7);
}

.select-option {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 0;
  border-radius: var(--toolbar-control-inner-radius);
  background: transparent;
  color: var(--select-option-text);
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-align: left;
}

.select-option:hover {
  background: var(--select-option-hover-bg);
}

.select-option.is-selected {
  background:
    linear-gradient(135deg, rgba(214, 171, 181, 0.96), rgba(184, 134, 145, 0.96));
  color: #fff8f8;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  min-height: var(--control-height);
  border-radius: var(--toolbar-control-radius);
  border: 1px solid var(--border-soft);
  background: var(--surface-strong);
  box-shadow: var(--shadow-panel);
}

.segmented-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: calc(var(--control-height) - 6px);
  border: 0;
  border-radius: var(--toolbar-control-inner-radius);
  background: transparent;
  color: var(--text-soft);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.segmented-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.segmented-button.is-active {
  background: linear-gradient(135deg, var(--accent-rose-soft), rgba(255, 255, 255, 0.01));
  color: var(--accent-rose);
}

.segmented-button:hover {
  transform: translateY(-1px);
}

.theme-button .theme-solid-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.text-button {
  width: auto;
  padding: 0 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-control {
  gap: 2px;
  padding-inline: 3px;
}

.flag-button {
  width: auto;
  min-width: 46px;
  padding: 0 8px;
}

.flag-icon {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 0;
  filter: sepia(0.88) saturate(0.58) hue-rotate(336deg) brightness(1.02) contrast(1.15);
}

:root[data-theme="light"] .flag-icon {
  filter: sepia(1) saturate(0.72) hue-rotate(336deg) brightness(0.8) contrast(1.24);
}

.status-panel {
  margin: 0 36px 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text-soft);
}

.status-panel.is-error {
  background: rgba(182, 83, 83, 0.12);
  color: #b65353;
}

.status-panel.is-success {
  background: rgba(117, 173, 122, 0.14);
  color: #b8ecb8;
}

.reader-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(280px, 0.92fr);
  gap: 26px;
  padding: 0 36px 28px;
}

.comic-column,
.story-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.comic-column {
  grid-column: 1;
}

.story-column {
  grid-column: 2;
}

.comic-surface,
.story-card,
.admin-panel {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-panel);
}

.comic-stage {
  display: grid;
  gap: 18px;
  justify-items: stretch;
}

.comic-bottom-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.comic-reactions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  container-type: inline-size;
}

.comic-like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-width: 106px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #d1a6ad;
  border-radius: 14px;
  background: #d1a6ad;
  color: #3e2d29;
  box-shadow: 0 4px 12px rgba(42, 24, 27, 0.12);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.comic-like-button:hover:not(:disabled) {
  background: #e2bac1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(42, 24, 27, 0.18);
}

.comic-like-button:focus-visible {
  outline: 3px solid var(--accent-rose);
  outline-offset: 4px;
}

.comic-like-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.comic-like-button.is-liked {
  border-color: var(--accent-rose);
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
  box-shadow: none;
}

.comic-like-button.is-liked:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent-rose) 24%, transparent);
}

.comic-like-button-heart {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comic-like-button.is-liked .comic-like-button-heart {
  fill: currentColor;
}

.comic-like-button.is-celebrating .comic-like-button-heart {
  animation: comic-like-heart-pop 380ms ease-out;
}

.comic-reaction-counts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: nowrap;
}

@container (max-width: 330px) {
  .comic-like-button {
    min-width: 94px;
    gap: 6px;
    padding-inline: 10px;
    font-size: 0.9rem;
  }

  .comic-reaction-counts {
    gap: 6px;
    font-size: 0.75rem;
  }
}

@keyframes comic-like-heart-pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.3); }
  70% { transform: scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .comic-like-button {
    transition: none;
  }

  .comic-like-button.is-celebrating .comic-like-button-heart {
    animation: none;
  }
}

.nav-float-button {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nav-float-color);
  filter: drop-shadow(0 4px 8px var(--nav-float-shadow));
  transition: transform 160ms ease, opacity 160ms ease, color 160ms ease, filter 160ms ease;
}

.nav-float-button:hover {
  color: var(--nav-float-hover-color);
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 6px 12px var(--nav-float-shadow-hover));
}

.nav-float-button:disabled {
  opacity: 0.24;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.nav-float-icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.nav-float-button-random .nav-float-icon {
  width: 30px;
  height: 30px;
}

.comic-surface {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 14px;
}

.comic-page {
  width: 100%;
  height: auto;
  border-radius: var(--reader-frame-radius);
  background: var(--surface);
}

.comic-page:not([width], [height]) {
  aspect-ratio: 1600 / 2452;
  object-fit: contain;
}

.reader-grid-skeleton {
  min-height: max(1180px, 150vh);
  align-items: start;
}

.reader-skeleton-comic-column {
  display: grid;
  gap: 18px;
}

.reader-skeleton-frame,
.reader-skeleton-controls,
.reader-skeleton-thumbnails,
.reader-skeleton-line,
.reader-skeleton-paragraph {
  background: linear-gradient(
    100deg,
    var(--surface-soft) 20%,
    var(--surface) 40%,
    var(--surface-soft) 60%
  );
  background-size: 240% 100%;
  animation: reader-skeleton-shimmer 1.4s ease-in-out infinite;
}

.reader-skeleton-frame {
  width: 100%;
  aspect-ratio: 1600 / 2452;
  border-radius: var(--reader-frame-radius);
  box-shadow: var(--shadow-panel);
}

.reader-skeleton-controls {
  justify-self: center;
  width: min(86%, 430px);
  height: 46px;
  border-radius: 999px;
}

.reader-skeleton-thumbnails {
  justify-self: center;
  width: min(100%, 620px);
  height: 132px;
  border-radius: 16px;
}

.reader-skeleton-story {
  min-height: 720px;
  padding: 28px 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--reader-frame-radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow-panel);
}

.reader-skeleton-line {
  width: 100%;
  height: 18px;
  border-radius: 999px;
}

.reader-skeleton-line.is-short {
  width: 34%;
  height: 12px;
}

.reader-skeleton-line.is-title {
  width: 76%;
  height: 32px;
}

.reader-skeleton-line.is-date {
  width: 44%;
  height: 14px;
}

.reader-skeleton-line.is-medium {
  width: 82%;
}

.reader-skeleton-paragraph {
  min-height: 360px;
  margin-top: 8px;
  border-radius: 14px;
}

.reader-inline-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  border-radius: var(--reader-frame-radius);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text-main);
  font-weight: 600;
  backdrop-filter: blur(2px);
}

.reader-loading-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: reader-loading-pulse 900ms ease-in-out infinite alternate;
}

@keyframes reader-skeleton-shimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

@keyframes reader-loading-pulse {
  from {
    opacity: 0.32;
    transform: scale(0.76);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reader-skeleton-frame,
  .reader-skeleton-controls,
  .reader-skeleton-thumbnails,
  .reader-skeleton-line,
  .reader-skeleton-paragraph,
  .reader-loading-dot {
    animation: none;
  }
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-chip,
.primary-button,
.secondary-button,
.ghost-button,
.footer-icon-button {
  border: 0;
  border-radius: 16px;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.nav-icon-chip {
  min-width: 56px;
  padding-inline: 14px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.nav-chip,
.secondary-button,
.ghost-button {
  background: var(--surface-strong);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}

.nav-chip-desktop-label,
.nav-chip-mobile-label {
  display: inline-block;
}

.nav-chip-mobile-label {
  display: none;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transform: translateY(1px) scaleX(0.95) scaleY(1.08);
  transform-origin: center;
}

.nav-chip:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.footer-icon-button:hover {
  transform: translateY(-1px);
}

.nav-chip:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.metric-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.story-card {
  padding: 22px;
  border-radius: var(--reader-frame-radius);
}

.story-column {
  position: relative;
}

.story-column-stack {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 14px;
}

.story-kicker {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-rose);
}

.story-title {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.015em;
  color: var(--text-main);
}

.story-date,
.story-excerpt {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.metric-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.metric-icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--accent-rose);
}

.metric-icon-button-static {
  cursor: default;
}

.metric-copy {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-soft);
}

.metric-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.metric-icon-eye {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.metric-icon-button.is-liked {
  color: var(--accent-rose);
  border-color: rgba(179, 127, 137, 0.22);
  background: rgba(179, 127, 137, 0.14);
}

.prose {
  font-family: var(--font-blog);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-main);
}

.prose strong,
.prose b {
  font-weight: 700;
}

.prose em,
.prose i {
  font-style: italic;
}

.prose u {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose s,
.prose strike,
.prose del {
  text-decoration: line-through;
}

.prose a {
  color: var(--accent-rose);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  font-family: var(--font-blog);
  font-weight: 700;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.comic-post-footer {
  display: flex;
  justify-content: flex-start;
}

.story-top-metrics {
  padding-inline: 4px;
}

.metric-row-compact {
  margin: 0;
}

.thumbnail-section {
  display: grid;
  gap: 12px;
}

.reader-thumbnail-section {
  grid-column: 1;
  justify-items: center;
}

.rail-label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.thumbnail-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.thumbnail-rail {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: repeat(var(--thumbnail-columns), minmax(88px, 104px));
  gap: 10px;
  overflow: hidden;
  justify-content: center;
}

.carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-sage-strong);
  opacity: 0.82;
}

.carousel-arrow:disabled {
  opacity: 0.22;
  cursor: not-allowed;
}

.carousel-arrow-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.thumbnail-card {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  color: var(--text-main);
  box-shadow: none;
  text-align: left;
  min-width: 0;
}

.thumbnail-card:hover {
  transform: translateY(-1px);
}

.thumbnail-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  object-position: center top;
  background: var(--surface);
}

.reader-footer {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 16px 36px 30px;
}

.reader-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  justify-content: center;
  width: 100%;
}

.reader-footer-links > a,
.footer-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--footer-icon-color);
  box-shadow: none;
  padding: 0;
}

.footer-icon-link,
.footer-icon-button {
  flex: 0 0 76px;
}

.footer-social-icon {
  width: 34px;
  height: 34px;
  fill: currentColor;
  flex: 0 0 auto;
}

.footer-social-icon-share {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.footer-social-icon-pix {
  width: 35px;
  height: 35px;
}

.footer-social-icon-linktree {
  width: 35px;
  height: 35px;
}

.footer-share {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hire-banner {
  position: relative;
  display: block;
  width: min(620px, 100%);
  min-height: 112px;
  aspect-ratio: 620 / 237;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-panel);
  isolation: isolate;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.hire-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(18, 8, 4, 0.24);
}

.hire-banner:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px rgba(240, 220, 202, 0.32),
    0 24px 44px rgba(18, 8, 4, 0.24);
}

.hire-banner-art {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 100%;
  min-height: 0;
}

.hire-banner-tile {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.hire-banner-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.06) brightness(0.46);
  transform: scale(1.04);
}

.hire-banner-tile.is-issue-35 img {
  object-position: 50% 16%;
}

.hire-banner-tile.is-issue-32 img {
  object-position: 50% 20%;
}

.hire-banner-tile.is-issue-28 img {
  object-position: 50% 46%;
}

.hire-banner-tile.is-issue-30 img {
  object-position: 50% 26%;
}

.hire-banner-copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  text-align: center;
}

.hire-banner-title {
  display: inline-block;
  padding: 0;
  color: #fff7ef;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow:
    0 4px 14px rgba(0, 0, 0, 0.38),
    0 0 28px rgba(0, 0, 0, 0.28);
}

.footer-legal-notice {
  margin: 0;
  max-width: 38rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.share-menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  min-width: 170px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-panel);
}

.share-menu a,
.share-menu button {
  display: inline-flex;
  justify-content: center;
  border-radius: 12px;
  border: 0;
  background: var(--surface-soft);
  color: var(--text-main);
  padding: 10px 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.admin-login-shell,
.admin-page-shell {
  padding-top: 42px;
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  --page-bg: #2f231f;
  --page-overlay:
    radial-gradient(circle at top left, rgba(114, 84, 72, 0.18), transparent 36%),
    radial-gradient(circle at top right, rgba(86, 101, 81, 0.12), transparent 30%);
  --surface: linear-gradient(180deg, rgba(77, 61, 54, 0.96), rgba(67, 52, 46, 0.96));
  --surface-strong: rgba(61, 45, 32, 0.92);
  --surface-soft: rgba(79, 58, 51, 0.92);
  --surface-contrast: rgba(243, 226, 210, 0.05);
  --text-main: #eadfd2;
  --text-soft: #cdb9a8;
  --accent-sage: #b6c0aa;
  --accent-sage-strong: #e4d8cb;
  --accent-rose: #d6a6b2;
  --accent-rose-soft: rgba(214, 166, 178, 0.2);
  --accent-brown: #f0dcc9;
  --accent-brown-soft: rgba(240, 220, 201, 0.08);
  --border-soft: rgba(243, 226, 210, 0.08);
  --shadow-soft: 0 28px 60px rgba(14, 7, 5, 0.28);
  --shadow-panel: 0 16px 34px rgba(14, 7, 5, 0.24);
  --reader-glow-rose: rgba(214, 166, 178, 0.05);
  --reader-glow-sage: rgba(134, 153, 122, 0.06);
  --font-body: "Segoe UI", system-ui, sans-serif;
  --font-display: "Segoe UI", system-ui, sans-serif;
}

.admin-login-card {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 36px;
}

.admin-page-shell .reader-card,
.admin-login-shell .reader-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    var(--surface);
  border-color: rgba(243, 226, 210, 0.06);
  box-shadow: var(--shadow-soft);
}

.admin-page-shell .eyebrow,
.admin-login-shell .eyebrow {
  color: #d9cfc3;
  opacity: 0.78;
}

.admin-page-shell .hero-title,
.admin-login-shell .hero-title {
  font-family: "Amatic SC", cursive;
  color: #e8ddd0;
}

.admin-page-shell .hero-copy,
.admin-login-shell .hero-copy {
  color: #d2c0af;
}

.form-stack,
.field-stack {
  display: grid;
  gap: 10px;
}

.field-stack > span {
  font-size: 0.94rem;
  color: var(--text-soft);
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.field-help {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.field-help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-rose);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  transition: color 160ms ease, transform 160ms ease;
}

.field-help-trigger:hover,
.field-help-trigger:focus-visible {
  color: #f0d8dd;
  transform: translateY(-1px);
}

.field-help-trigger:focus-visible {
  outline: none;
}

.field-help-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 8;
  width: min(19rem, 68vw);
  padding: 10px 12px;
  border: 1px solid rgba(243, 226, 210, 0.12);
  border-radius: 14px;
  background: rgba(54, 39, 35, 0.98);
  box-shadow: 0 18px 30px rgba(12, 7, 6, 0.28);
  color: #eadfd2;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 160ms ease,
    visibility 160ms ease,
    transform 160ms ease;
}

.field-help-tooltip::before {
  content: "";
  position: absolute;
  left: 10px;
  bottom: 100%;
  border-width: 0 7px 8px;
  border-style: solid;
  border-color: transparent transparent rgba(54, 39, 35, 0.98);
}

.field-help:hover .field-help-tooltip,
.field-help:focus-within .field-help-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.field-stack input,
.field-stack textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 14px 16px;
  background: var(--surface-soft);
  color: var(--text-main);
  resize: vertical;
  outline: none;
}

.admin-page-shell .field-stack input::placeholder,
.admin-page-shell .field-stack textarea::placeholder,
.admin-login-shell .field-stack input::placeholder,
.admin-login-shell .field-stack textarea::placeholder {
  color: rgba(234, 223, 210, 0.4);
}

.field-stack input:focus,
.field-stack textarea:focus {
  box-shadow: 0 0 0 3px rgba(179, 127, 137, 0.16);
}

.admin-page-shell .primary-button,
.admin-login-shell .primary-button {
  background: linear-gradient(135deg, rgba(214, 166, 178, 0.96), rgba(187, 135, 149, 0.96));
  color: #5f3d47;
  box-shadow: 0 12px 26px rgba(58, 25, 35, 0.22);
}

.admin-page-shell .secondary-button,
.admin-login-shell .secondary-button {
  background: linear-gradient(135deg, rgba(233, 191, 202, 0.95), rgba(216, 171, 185, 0.95));
  color: #5f3d47;
  border: 1px solid rgba(255, 233, 239, 0.22);
  box-shadow: 0 10px 24px rgba(58, 25, 35, 0.18);
}

.admin-page-shell .ghost-button,
.admin-login-shell .ghost-button {
  background: rgba(255, 255, 255, 0.02);
  color: #d8c5b5;
  border: 1px solid rgba(243, 226, 210, 0.07);
}

.admin-page-shell .primary-button,
.admin-login-shell .primary-button,
.admin-modal .primary-button,
.admin-page-shell .secondary-button,
.admin-login-shell .secondary-button,
.admin-modal .secondary-button,
.admin-page-shell .ghost-button,
.admin-login-shell .ghost-button,
.admin-modal .ghost-button,
.admin-page-shell .sidebar-comic,
.admin-page-shell .markdown-tool-button,
.admin-login-shell .markdown-tool-button,
.admin-page-shell .upload-picker-button,
.admin-login-shell .upload-picker-button {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent-rose), #d3a2ab);
  color: white;
}

.secondary-button {
  color: var(--accent-brown);
}

.ghost-button {
  color: var(--text-soft);
}

.inline-error {
  margin: 0;
  color: #b65353;
}

.admin-card {
  padding: 28px 28px 30px;
}

.admin-page-shell .admin-card,
.admin-login-shell .admin-login-card {
  backdrop-filter: blur(24px);
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.admin-heading-copy {
  display: grid;
  gap: 6px;
}

.admin-page-shell .admin-dashboard-title {
  color: var(--accent-rose);
  font-weight: 400;
}

.admin-welcome {
  margin: 0;
  color: #a9d79f;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
}

.admin-page-shell > .admin-card > .status-panel {
  margin: 0 0 18px;
}

.admin-schedule-summary {
  margin: 0;
  color: var(--text-soft);
  font-family: "Josefin Sans", sans-serif;
  line-height: 1.5;
}

.current-comic-schedule {
  display: grid;
  gap: 10px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border-soft);
}

.admin-schedule-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, rgba(200, 157, 181, 0.95), rgba(181, 137, 164, 0.95));
}

.admin-publication-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: #eadfd2;
  border-color: rgba(233, 191, 202, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

.admin-comic-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: auto;
  padding: 20px 16px 40px;
  background: rgba(20, 11, 10, 0.88);
  backdrop-filter: blur(10px);
}

.admin-comic-preview-dialog {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.admin-comic-preview-toolbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(243, 226, 210, 0.14);
  border-radius: 20px;
  background: rgba(55, 37, 32, 0.97);
  box-shadow: 0 18px 36px rgba(12, 6, 5, 0.34);
  color: #eadfd2;
  font-family: "Josefin Sans", sans-serif;
}

.admin-comic-preview-toolbar-copy {
  display: grid;
  gap: 3px;
}

.admin-comic-preview-toolbar-copy p,
.admin-comic-preview-toolbar-copy strong,
.admin-comic-preview-toolbar-copy span {
  margin: 0;
}

.admin-comic-preview-toolbar-copy p {
  color: #e7b7c3;
  font-family: "Amatic SC", cursive;
  font-size: 2rem;
  line-height: 0.9;
}

.admin-comic-preview-toolbar-copy strong {
  color: #b8ecb8;
  font-size: 0.94rem;
  font-weight: 500;
}

.admin-comic-preview-toolbar-copy span {
  color: #cdb9a8;
  font-size: 0.84rem;
}

.admin-comic-preview-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-comic-preview-close {
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(243, 226, 210, 0.14);
  border-radius: var(--toolbar-control-radius);
  background: rgba(255, 255, 255, 0.045);
  color: #eadfd2;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.9rem;
}

.admin-comic-preview-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.admin-comic-preview-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-comic-preview-page {
  width: 100%;
}

.admin-comic-preview-public-topbar {
  pointer-events: none;
}

.admin-comic-preview-issue-chip {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--toolbar-control-radius);
  background: var(--surface-strong);
  color: var(--accent-rose);
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.admin-comic-preview-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 32px;
  border: 1px dashed var(--border-soft);
  border-radius: var(--reader-frame-radius);
  background: var(--surface-soft);
  color: var(--text-soft);
  text-align: center;
}

.admin-comic-preview-placeholder svg {
  width: 54px;
  height: 54px;
  fill: currentColor;
  opacity: 0.55;
}

.admin-comic-preview-placeholder p,
.admin-comic-preview-empty-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.admin-comic-preview-nav {
  pointer-events: none;
}

.admin-comic-preview-page .prose a {
  pointer-events: none;
}

@media (max-width: 640px) {
  .admin-comic-preview-backdrop {
    padding: 8px 8px 24px;
  }

  .admin-comic-preview-toolbar {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  .admin-comic-preview-toolbar-actions {
    justify-content: space-between;
  }

  .admin-comic-preview-close span {
    display: none;
  }

  .admin-comic-preview-close {
    width: var(--control-height);
    padding: 0;
  }

  .admin-comic-preview-placeholder {
    min-height: 260px;
  }
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.admin-sidebar {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-panel);
  max-height: 78vh;
  overflow: auto;
}

.admin-sidebar::-webkit-scrollbar {
  width: 10px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(232, 221, 208, 0.18);
  border-radius: 999px;
}

.admin-queue-select.select-shell {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: none;
  z-index: 30;
}

.admin-queue-select .select-trigger {
  min-height: 44px;
  font-family: "Josefin Sans", sans-serif;
  font-weight: 400;
}

.sidebar-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.sidebar-comic {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(83, 61, 46, 0.56);
  color: var(--text-main);
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.sidebar-comic:hover {
  transform: translateY(-1px);
  background: rgba(93, 69, 52, 0.68);
}

.sidebar-comic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.sidebar-comic-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(83, 61, 46, 0.42);
  color: #d8c5b5;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.sidebar-comic-delete:hover {
  transform: translateY(-1px);
  background: rgba(108, 68, 73, 0.72);
  border-color: rgba(233, 191, 202, 0.28);
}

.sidebar-comic-row.is-active .sidebar-comic-delete {
  border-color: rgba(214, 166, 178, 0.28);
  background: rgba(214, 166, 178, 0.12);
}

.sidebar-comic-delete-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sidebar-comic-title {
  font-family: "Amatic SC", cursive;
  font-size: 2rem;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.015em;
  color: var(--text-main);
}

.sidebar-comic-issue {
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-rose);
}

.sidebar-comic-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  justify-self: flex-start;
  width: fit-content;
  min-height: 20px;
  padding: 1px 8px;
  margin-top: 5px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-comic-status-chip.is-published {
  background: rgba(117, 173, 122, 0.18);
  border-color: rgba(117, 173, 122, 0.34);
  color: #b8ecb8;
}

.sidebar-comic-status-chip.is-draft,
.sidebar-comic-status-chip.is-scheduled {
  background: rgba(217, 185, 91, 0.16);
  border-color: rgba(217, 185, 91, 0.32);
  color: #f6e0a1;
}

.sidebar-comic-status-chip.is-archived {
  background: rgba(190, 94, 94, 0.16);
  border-color: rgba(190, 94, 94, 0.3);
  color: #f1b0b0;
}

.sidebar-comic-meta {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.4;
  min-height: 1.25rem;
}

.sidebar-comic.is-active {
  border-color: rgba(214, 166, 178, 0.28);
  background: rgba(214, 166, 178, 0.16);
  box-shadow: inset 0 0 0 1px rgba(214, 166, 178, 0.06);
}

.admin-editor {
  display: grid;
  gap: 18px;
}

.admin-editor.is-locked {
  user-select: none;
}

.admin-lock-notice {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(214, 166, 178, 0.18);
  border-radius: 16px;
  background: rgba(214, 166, 178, 0.08);
  color: #e4c7cf;
  font-family: "Josefin Sans", sans-serif;
}

.admin-editor-footer {
  display: flex;
  justify-content: flex-start;
}

.admin-translation-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-section-grid--top {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  align-items: start;
}

.admin-promotion-kit {
  display: grid;
  gap: 18px;
}

.admin-promotion-kit .panel-heading > div {
  display: grid;
  gap: 4px;
}

.admin-promotion-kit .panel-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.promotion-kit-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 14px;
}

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

.promotion-kit-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.promotion-kit-card > div {
  display: grid;
  gap: 2px;
}

.promotion-kit-card span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

.promotion-kit-card textarea {
  min-height: 190px;
  resize: vertical;
  font: 0.9rem/1.5 var(--font-body);
}

.admin-panel {
  padding: 20px;
}

.panel-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--accent-rose);
  font-family: "Amatic SC", cursive;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.translation-panel-heading {
  align-items: center;
}

.translation-locale-heading {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  line-height: 1;
}

.translation-locale-flag {
  width: 28px;
  height: 20px;
}

.admin-page-shell .panel-heading > span,
.admin-login-shell .panel-heading > span {
  color: var(--text-soft);
}

.panel-placeholder,
.admin-helper-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.admin-helper-stack {
  display: grid;
  gap: 8px;
}

.admin-editor-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-editor-fieldset:disabled,
.admin-editor-fieldset:disabled input,
.admin-editor-fieldset:disabled textarea,
.admin-editor-fieldset:disabled button {
  cursor: default;
}

.admin-editor.is-locked input:disabled,
.admin-editor.is-locked textarea:disabled {
  color: rgba(234, 223, 210, 0.48);
  -webkit-text-fill-color: rgba(234, 223, 210, 0.48);
  opacity: 1;
}

.admin-editor.is-locked button:disabled {
  cursor: default;
}

.translation-save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.carousel-swipe-surface {
  --carousel-swipe-offset: 0px;
  touch-action: pan-y;
  transform: translate3d(var(--carousel-swipe-offset), 0, 0);
  transition: transform 180ms ease;
  will-change: transform;
}

.carousel-swipe-surface.is-swipe-dragging {
  transition: none;
}

.comic-like-feedback {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 120;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 148px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(42, 24, 27, 0.84);
  color: #f6d4de;
  box-shadow: 0 24px 58px rgba(10, 3, 2, 0.34);
  pointer-events: none;
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
  animation: comic-like-feedback-pop 1050ms ease both;
}

.comic-like-feedback.is-unliked {
  color: #f6d4de;
}

.comic-like-feedback-icon {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: clamp(4rem, 18vw, 6rem);
  line-height: 0.9;
  filter: drop-shadow(0 8px 16px rgba(15, 4, 3, 0.28));
}

.comic-like-feedback-vector-icon {
  width: clamp(4rem, 18vw, 6rem);
  height: clamp(4rem, 18vw, 6rem);
  display: block;
  overflow: visible;
}

.comic-like-feedback-heart {
  fill: currentColor;
}

.comic-like-feedback-heart-crack {
  fill: none;
  stroke: rgba(42, 24, 27, 0.96);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.comic-like-feedback-label {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@keyframes comic-like-feedback-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55);
  }

  24% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }

  72% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -58%) scale(0.9);
  }
}

.translation-save-button {
  min-width: 112px;
}

.inline-success {
  margin: 0;
  color: #b8ecb8;
  font-family: "Josefin Sans", sans-serif;
}

.status-detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.7;
}

.status-panel.is-error .status-detail-list {
  color: inherit;
}

.field-hint {
  margin: -4px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.admin-rich-text-editor {
  overflow: visible;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--surface-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.admin-rich-text-editor:focus-within {
  border-color: rgba(216, 171, 185, 0.48);
  box-shadow: 0 0 0 3px rgba(179, 127, 137, 0.16);
}

.admin-rich-text-editor.is-disabled {
  opacity: 0.68;
}

.markdown-toolbar {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 19px 19px 0 0;
  background: rgba(53, 37, 33, 0.34);
}

.markdown-tool-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.markdown-tool-group + .markdown-tool-group {
  margin-left: 3px;
  padding-left: 11px;
}

.markdown-tool-group + .markdown-tool-group::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 1px;
  background: var(--border-soft);
  content: "";
}

.markdown-tool-button {
  display: inline-flex;
  min-width: 46px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 140ms ease, color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.markdown-tool-button.is-compact,
.markdown-tool-button.is-symbol {
  min-width: 38px;
}

.markdown-tool-button strong,
.markdown-tool-button em,
.markdown-tool-button.is-underline,
.markdown-tool-button.is-strike {
  font-size: 1rem;
}

.markdown-tool-button.is-italic em {
  font-family: Georgia, "Times New Roman", serif;
}

.markdown-tool-button.is-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-tool-button.is-strike {
  text-decoration: line-through;
}

.markdown-tool-button.is-heading {
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.markdown-tool-button.is-symbol {
  font-size: 1.14rem;
}

.markdown-tool-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 233, 239, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.markdown-tool-button.is-active {
  border-color: rgba(216, 171, 185, 0.42);
  background: linear-gradient(135deg, rgba(233, 191, 202, 0.96), rgba(216, 171, 185, 0.92));
  color: #5f3d47;
}

.markdown-tool-button:disabled {
  opacity: 0.34;
}

.markdown-emoji-group,
.markdown-link-group {
  position: relative;
}

.markdown-link-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 6;
  display: grid;
  gap: 10px;
  width: min(21rem, 78vw);
  padding: 14px;
  border: 1px solid rgba(255, 233, 239, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(74, 52, 47, 0.99), rgba(60, 42, 38, 0.99));
  box-shadow: 0 18px 34px rgba(18, 8, 4, 0.28);
}

.markdown-link-popover label {
  display: grid;
  gap: 7px;
  color: rgba(242, 228, 212, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
}

.markdown-link-popover input {
  width: 100%;
  border: 1px solid rgba(255, 233, 239, 0.16);
  border-radius: 11px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  outline: none;
}

.markdown-link-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.markdown-link-actions button {
  min-height: 34px;
  border-radius: 10px;
  padding: 7px 12px;
  font-weight: 700;
}

.markdown-link-cancel {
  border: 1px solid rgba(255, 233, 239, 0.14);
  background: transparent;
  color: var(--text-main);
}

.markdown-link-apply {
  border: 0;
  background: rgba(216, 171, 185, 0.94);
  color: #5f3d47;
}

.emoji-picker {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 6;
  display: grid;
  gap: 14px;
  width: min(28rem, 78vw);
  max-height: 25rem;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid rgba(255, 233, 239, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(74, 52, 47, 0.99), rgba(60, 42, 38, 0.99));
  box-shadow: 0 18px 34px rgba(18, 8, 4, 0.28);
}

.emoji-picker-group {
  display: grid;
  gap: 8px;
}

.emoji-picker-label {
  margin: 0;
  color: rgba(242, 228, 212, 0.78);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.emoji-picker-button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(255, 233, 239, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 1.18rem;
  line-height: 1;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.emoji-picker-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 233, 239, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.rich-text-surface {
  min-height: 22rem;
  max-height: 42rem;
  overflow-y: auto;
  padding: 18px 20px;
  color: var(--text-main);
  font-family: "Comic Neue", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  outline: none;
  white-space: pre-wrap;
}

.rich-text-surface.is-empty::before {
  color: rgba(234, 223, 210, 0.4);
  content: attr(data-placeholder);
  pointer-events: none;
}

.rich-text-surface p,
.rich-text-surface h2,
.rich-text-surface h3,
.rich-text-surface ul,
.rich-text-surface ol {
  margin: 0 0 0.9em;
}

.rich-text-surface > :last-child {
  margin-bottom: 0;
}

.rich-text-surface strong,
.rich-text-surface b {
  font-weight: 700;
}

.rich-text-surface em,
.rich-text-surface i {
  font-style: italic;
}

.rich-text-surface u {
  text-underline-offset: 3px;
}

.rich-text-surface a {
  color: var(--accent-rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-text-surface h2,
.rich-text-surface h3 {
  font-family: var(--font-blog);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
}

.rich-text-surface ul,
.rich-text-surface ol {
  padding-left: 1.45rem;
}

.admin-rich-text-editor.is-disabled .rich-text-surface {
  cursor: default;
  color: rgba(234, 223, 210, 0.58);
}

.rich-text-editor-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 9px 14px 11px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .markdown-toolbar {
    gap: 6px;
  }

  .markdown-tool-group + .markdown-tool-group {
    margin-left: 0;
    padding-left: 7px;
  }

  .emoji-picker {
    right: auto;
    left: 0;
    width: min(22rem, 82vw);
    max-height: 20rem;
  }

  .emoji-picker-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .rich-text-surface {
    min-height: 18rem;
    padding: 16px;
  }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(243, 226, 210, 0.08);
  color: #eadfd2;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-actions-grid {
  display: grid;
  gap: 12px;
}

.status-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-actions-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-draft-feedback {
  flex: 1 0 100%;
}

.button-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}

.current-comic-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
}

.reader-loading-panel {
  min-height: max(560px, 68vh);
}

.current-comic-status .sidebar-comic-status-chip {
  margin-top: 0;
}

.admin-signout-button {
  justify-self: start;
}

.upload-picker {
  position: relative;
  display: grid;
  grid-template-areas:
    "action"
    "meta"
    "status";
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(83, 61, 46, 0.34);
  cursor: pointer;
  user-select: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.upload-picker:hover {
  border-color: rgba(214, 166, 178, 0.28);
  background: rgba(93, 69, 52, 0.48);
  transform: translateY(-1px);
}

.upload-picker.is-selected {
  border-color: rgba(233, 191, 202, 0.42);
  background: rgba(114, 76, 83, 0.4);
  box-shadow: inset 0 0 0 1px rgba(233, 191, 202, 0.08);
}

.upload-picker.is-uploaded {
  grid-template-columns: minmax(0, 1fr) 112px;
  grid-template-areas:
    "action preview"
    "meta preview"
    "status preview";
  column-gap: 18px;
  align-items: center;
  border-color: rgba(117, 173, 122, 0.4);
  background: rgba(86, 118, 82, 0.18);
}

.upload-picker.is-disabled {
  cursor: default;
}

.upload-picker.is-disabled:hover {
  transform: none;
}

.upload-picker-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.upload-picker:focus-visible {
  outline: none;
  border-color: rgba(233, 191, 202, 0.42);
  box-shadow: 0 0 0 3px rgba(233, 191, 202, 0.12);
}

.upload-picker-button {
  grid-area: action;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(233, 191, 202, 0.95), rgba(216, 171, 185, 0.95));
  color: #4c2d2a;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(58, 25, 35, 0.16);
}

.upload-picker-button:disabled {
  background: rgba(214, 166, 178, 0.34);
  color: rgba(76, 45, 42, 0.56);
  cursor: default;
  box-shadow: none;
  opacity: 0.58;
}

.admin-page-shell .upload-picker-button {
  color: #4c2d2a;
}

.upload-picker-meta {
  grid-area: meta;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}

.upload-picker-status {
  grid-area: status;
  color: rgba(234, 223, 210, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.upload-picker-status.is-selected {
  color: #f0d8dd;
}

.upload-picker-status.is-uploaded {
  color: #b8ecb8;
}

.upload-picker-preview {
  grid-area: preview;
  display: block;
  width: 112px;
  height: 112px;
  aspect-ratio: 1;
  justify-self: end;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(243, 226, 210, 0.1);
  border-radius: 14px;
  background: rgba(28, 18, 15, 0.28);
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(34, 21, 19, 0.72);
  backdrop-filter: blur(6px);
  --font-body: "Segoe UI", system-ui, sans-serif;
  --font-display: "Segoe UI", system-ui, sans-serif;
}

.admin-modal {
  width: min(520px, calc(100vw - 32px));
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(233, 191, 202, 0.14);
  border-radius: 28px;
  background: rgba(67, 47, 39, 0.96);
  box-shadow: 0 22px 44px rgba(22, 10, 8, 0.34);
  font-family: var(--font-body);
}

.admin-danger-button {
  background: linear-gradient(135deg, rgba(116, 69, 76, 0.96), rgba(93, 54, 61, 0.96));
  color: var(--text-main);
  border: 1px solid rgba(243, 226, 210, 0.18);
}

.admin-draft-button {
  background: linear-gradient(135deg, rgba(242, 205, 108, 0.96), rgba(228, 181, 74, 0.96));
  color: #5a4312;
  border: 1px solid rgba(255, 243, 198, 0.26);
}

.admin-loading-state {
  min-height: 180px;
}

.admin-loading-copy {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent-rose);
  box-shadow: 0 0 0 0 rgba(214, 166, 178, 0.42);
  animation: admin-loading-pulse 1.2s ease-in-out infinite;
}

@keyframes admin-loading-pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(214, 166, 178, 0.34);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(214, 166, 178, 0);
  }

  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(214, 166, 178, 0);
  }
}

.admin-empty-state {
  min-height: 180px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  padding: 0 36px 24px;
}

.contact-panel {
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 32%),
    var(--surface-soft);
  box-shadow: var(--shadow-panel);
}

.contact-intro-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  font-family: var(--font-blog);
}

.contact-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 6vw, 5.4rem);
  font-weight: 400;
  line-height: 0.94;
  color: var(--accent-sage-strong);
}

.contact-page-copy {
  max-width: 40rem;
  font-family: var(--font-blog);
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.75;
}

.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-intro-panel .contact-cta-button {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.contact-intro-panel .primary-button.contact-cta-button {
  color: #5f3d47;
}

.contact-form {
  gap: 14px;
}

.contact-form-grid {
  margin-bottom: 0;
}

.contact-intro-panel .field-stack > span {
  font-family: var(--font-blog);
  font-size: 0.98rem;
  color: var(--text-main);
}

.contact-intro-panel .field-stack input,
.contact-intro-panel .field-stack textarea {
  font-family: var(--font-blog);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.55;
}

.contact-intro-panel .field-stack input::placeholder,
.contact-intro-panel .field-stack textarea::placeholder {
  color: rgba(234, 223, 210, 0.46);
}

.contact-form textarea {
  min-height: 10rem;
}

.contact-form-note {
  margin: -2px 0 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.contact-form-feedback {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-family: var(--font-blog);
  font-size: 0.98rem;
  line-height: 1.5;
}

.contact-form-feedback.is-success {
  background: rgba(117, 173, 122, 0.14);
  border-color: rgba(117, 173, 122, 0.28);
  color: #c2efc5;
}

.contact-form-feedback.is-error {
  background: rgba(190, 94, 94, 0.14);
  border-color: rgba(190, 94, 94, 0.24);
  color: #f1b0b0;
}

.contact-form-submit {
  min-width: 12rem;
}

.contact-art-panel {
  align-self: start;
  display: grid;
  gap: 16px;
}

.contact-art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.contact-art-button {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 220, 202, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(18, 8, 4, 0.16);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-art-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(240, 194, 208, 0.28),
      rgba(222, 150, 171, 0.46)
    ),
    radial-gradient(
      circle at top,
      rgba(255, 234, 240, 0.24),
      transparent 60%
    );
  transition: opacity 220ms ease;
}

.contact-art-button:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 166, 178, 0.24);
  box-shadow: 0 16px 30px rgba(18, 8, 4, 0.22);
}

.contact-art-button:focus-visible {
  outline: none;
  border-color: rgba(214, 166, 178, 0.32);
  box-shadow:
    0 16px 30px rgba(18, 8, 4, 0.22),
    0 0 0 3px rgba(214, 166, 178, 0.18);
}

.contact-art-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter:
    grayscale(0.42)
    sepia(0.3)
    saturate(0.88)
    hue-rotate(-24deg)
    contrast(1.08)
    brightness(0.96);
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.contact-art-button:hover::after,
.contact-art-button:focus-visible::after {
  opacity: 0;
}

.contact-art-button:hover img,
.contact-art-button:focus-visible img {
  filter: none;
  transform: scale(1.03);
}

.contact-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 72px minmax(0, min(1100px, calc(100vw - 224px))) 72px;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(20, 11, 9, 0.9);
  backdrop-filter: blur(12px);
}

.contact-lightbox-frame {
  grid-column: 2;
  width: 100%;
  height: calc(100vh - 72px);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

.contact-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(240, 220, 202, 0.14);
  border-radius: 999px;
  background: rgba(62, 45, 41, 0.76);
  color: #f7ede2;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1.9rem;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.contact-lightbox-close:hover {
  transform: translateY(-1px);
}

.contact-lightbox-close:focus-visible {
  outline: none;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.24),
    0 0 0 3px rgba(214, 166, 178, 0.24);
}

.contact-topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.contact-art-topics {
  align-items: flex-start;
}

.contact-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--accent-sage-strong);
}

.contact-topic-chip {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-rose);
  font-family: var(--font-blog);
  font-size: 1.06rem;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.carousel-lightbox-nav {
  position: static;
  align-self: center;
  justify-self: center;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(240, 220, 202, 0.16);
  border-radius: 999px;
  background: rgba(62, 45, 41, 0.76);
  color: #f7ede2;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 3rem;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  transform: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.carousel-lightbox-nav.is-previous {
  grid-column: 1;
}

.carousel-lightbox-nav.is-next {
  grid-column: 3;
}

.carousel-lightbox-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.carousel-lightbox-nav:hover {
  background: rgba(89, 61, 55, 0.92);
  transform: scale(1.04);
}

.carousel-lightbox-nav:focus-visible {
  outline: 2px solid rgba(214, 166, 178, 0.72);
  outline-offset: 3px;
}

.carousel-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 11, 9, 0.68);
  color: #f7ede2;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

.contact-topic-chip:not(:last-child)::after {
  content: "\2022";
  margin: 0 0.45em;
  color: rgba(240, 220, 202, 0.72);
  font-size: 0.8em;
  line-height: 1;
}

.gallery-count-pill {
  margin: 0 auto 0 0;
  min-height: var(--control-height);
  padding: 0 18px;
  border: 1px solid var(--border-soft);
  border-radius: var(--toolbar-control-radius);
  background:
    linear-gradient(135deg, rgba(95, 69, 61, 0.98), rgba(74, 52, 47, 0.98));
  color: var(--accent-rose);
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
}

:root[data-theme="light"] .gallery-count-pill {
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(247, 240, 232, 0.94));
  color: var(--accent-rose);
}

.gallery-layout {
  display: grid;
  gap: 18px;
  padding: 0 36px 24px;
}

.gallery-page-title {
  margin: 0;
  text-transform: none;
}

.gallery-page-copy {
  max-width: 48rem;
}

.gallery-page-note {
  margin: 0;
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.gallery-grid-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.garoa-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.garoa-gallery-button {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 220, 202, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(18, 8, 4, 0.16);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.garoa-gallery-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(240, 194, 208, 0.26),
      rgba(222, 150, 171, 0.42)
    ),
    radial-gradient(
      circle at top,
      rgba(255, 234, 240, 0.2),
      transparent 60%
    );
  transition: opacity 220ms ease;
}

.garoa-gallery-button:hover,
.garoa-gallery-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(214, 166, 178, 0.24);
  box-shadow: 0 16px 30px rgba(18, 8, 4, 0.22);
  outline: none;
}

.garoa-gallery-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter:
    grayscale(0.42)
    sepia(0.3)
    saturate(0.88)
    hue-rotate(-24deg)
    contrast(1.08)
    brightness(0.96);
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.garoa-gallery-button:hover::after,
.garoa-gallery-button:focus-visible::after {
  opacity: 0;
}

.garoa-gallery-button:hover img,
.garoa-gallery-button:focus-visible img {
  filter: none;
  transform: scale(1.03);
}

.gallery-about-panel {
  padding: 24px;
}

.gallery-about-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.gallery-about-photo-frame {
  width: min(100%, 320px);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 24px rgba(18, 8, 4, 0.16);
}

.gallery-about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.gallery-about-copy {
  display: grid;
  width: 100%;
  gap: 14px;
  align-content: center;
}

.gallery-about-title {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  text-align: left;
}

.gallery-about-paragraph {
  margin: 0;
  max-width: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 72px minmax(0, min(1100px, calc(100vw - 224px))) 72px;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(20, 11, 9, 0.92);
  backdrop-filter: blur(12px);
}

.gallery-lightbox-frame {
  grid-column: 2;
  width: 100%;
  height: calc(100vh - 72px);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.gallery-lightbox-close:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.18);
}

.gallery-lightbox-close:focus-visible {
  outline: 2px solid rgba(214, 166, 178, 0.5);
  outline-offset: 3px;
}

.full-width {
  grid-column: 1 / -1;
}

@media (max-width: 960px) {
  .page-topbar {
    align-items: flex-start;
  }

  .page-topbar-controls {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .hero-header,
  .reader-grid,
  .contact-layout,
  .admin-layout,
  .admin-section-grid,
  .promotion-kit-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .promotion-kit-controls {
    grid-template-columns: 1fr;
  }

  .comic-column,
  .story-column,
  .reader-thumbnail-section {
    grid-column: 1 / -1;
  }

  .hero-kicker {
    white-space: normal;
    transform: none;
  }

  .comic-stage {
    gap: 14px;
  }

  .story-column-stack {
    position: static;
  }

  .hire-banner {
    width: min(100%, 580px);
  }

  .contact-lightbox {
    padding: 20px;
  }

  .garoa-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-about-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .gallery-about-copy {
    width: min(100%, 820px);
    align-content: start;
  }

  .gallery-about-title {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 16px, 100%);
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .reader-card,
  .comic-surface,
  .story-card,
  .contact-panel,
  .admin-panel,
  .admin-sidebar {
    border-radius: 18px;
  }

  .reader-loading-panel {
    min-height: 76vh;
  }

  .hero-header,
  .control-row,
  .reader-grid,
  .contact-layout,
  .gallery-layout,
  .reader-footer,
  .admin-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 18px 0;
    gap: 14px;
  }

  .public-page-tabs {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    overflow: visible;
  }

  .public-page-tab {
    width: auto;
    flex: 0 1 auto;
    min-height: 0;
    padding: 0;
    margin-right: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: clamp(1.45rem, 5vw, 2rem);
    line-height: 0.9;
    text-align: center;
    white-space: nowrap;
  }

  .public-page-tab:not(:last-child)::after {
    display: none;
  }

  .page-topbar-controls {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px;
    margin-left: 0;
    justify-content: flex-start;
  }

  .page-topbar-controls > .segmented-control,
  .page-topbar-reader-toggles > .segmented-control {
    width: auto;
    min-width: 0;
    min-height: 34px;
    padding: 2px;
    border-radius: 999px;
    justify-content: flex-start;
    justify-self: flex-start;
  }

  .page-topbar-controls > .segmented-control .segmented-button,
  .page-topbar-reader-toggles > .segmented-control .segmented-button {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    min-width: 0;
  }

  .page-topbar-controls > .theme-control .theme-solid-icon,
  .page-topbar-reader-toggles > .theme-control .theme-solid-icon {
    width: 15px;
    height: 15px;
  }

  .page-topbar-controls > .language-control .flag-button,
  .page-topbar-reader-toggles > .language-control .flag-button {
    min-width: 36px;
    padding: 0 6px;
  }

  .page-topbar-controls > .language-control .flag-icon,
  .page-topbar-reader-toggles > .language-control .flag-icon {
    width: 18px;
    height: 12px;
  }

  .page-topbar-controls-reader {
    grid-template-columns: 1fr;
  }

  .page-topbar-controls-reader .page-topbar-reader-select.select-shell {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 1 1 auto;
    order: 2;
  }

  .page-topbar-reader-toggles {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px;
    width: 100%;
    order: 1;
    justify-content: flex-start;
  }

  .hero-kicker {
    font-size: clamp(2.25rem, 8vw, 3rem);
    font-weight: 100;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transform: scaleX(0.8);
    transform-origin: right center;
  }

  .reader-footer {
    justify-items: center;
  }

  .hire-banner {
    min-height: 96px;
    border-radius: 18px;
  }

  .hire-banner-art,
  .hire-banner-tile {
    min-height: 96px;
  }

  .hire-banner-copy {
    padding: 8px 12px;
  }

  .hire-banner-title {
    font-size: clamp(2.35rem, 10vw, 3.25rem);
  }

  .select-shell {
    width: 100%;
    max-width: none;
  }

  .contact-layout {
    gap: 14px;
    padding-bottom: 20px;
  }

  .gallery-layout {
    gap: 14px;
    padding-bottom: 20px;
  }

  .contact-page-copy {
    font-size: 1rem;
  }

  .contact-art-grid,
  .garoa-gallery-grid {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 8px) / 2);
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 2px 8px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .contact-art-grid::-webkit-scrollbar,
  .garoa-gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .contact-art-button,
  .garoa-gallery-button {
    width: 100%;
    min-width: 0;
    border-radius: 13px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .gallery-grid-panel,
  .gallery-about-panel {
    padding: 18px;
  }

  .gallery-about-layout {
    gap: 16px;
  }

  .contact-lightbox,
  .gallery-lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 4px;
    padding: 12px;
  }

  .contact-lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .gallery-lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .carousel-lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .carousel-lightbox-icon {
    width: 19px;
    height: 19px;
  }

  .carousel-lightbox-nav.is-previous {
    grid-column: 1;
  }

  .carousel-lightbox-nav.is-next {
    grid-column: 3;
  }

  .carousel-lightbox-counter {
    bottom: 10px;
  }

  .comic-bottom-controls {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }

  .nav-chip {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .nav-chip-desktop-label {
    display: none;
  }

  .nav-chip-mobile-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
  }

  .thumbnail-rail {
    grid-template-columns: repeat(var(--thumbnail-columns), minmax(84px, 96px));
    gap: 8px;
    justify-content: center;
  }

  .thumbnail-image {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
    background: var(--surface);
  }
}

.archive-shell {
  overflow: hidden;
}

.archive-hero {
  gap: clamp(30px, 6vw, 82px);
  padding: 34px 52px 42px;
}

.archive-hero .hero-copy-wrap {
  display: grid;
  justify-content: initial;
  justify-items: end;
  gap: 14px;
}

.archive-hero .hero-title {
  max-width: 760px;
  font-size: clamp(3.5rem, 7vw, 6rem);
  text-align: right;
}

.archive-loading {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-soft);
}

.archive-section {
  display: grid;
  gap: 24px;
  padding: 34px 38px;
}

.archive-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 16px;
}

.archive-tools .select-shell {
  min-width: 0;
  max-width: none;
}

.archive-tools .select-panel {
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.archive-search {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: var(--control-height);
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--select-trigger-border);
  border-radius: var(--toolbar-control-radius);
  background: var(--select-trigger-bg);
  color: var(--select-trigger-text);
  box-shadow: var(--shadow-panel);
}

.archive-search:focus-within {
  box-shadow: var(--shadow-panel), 0 0 0 3px rgba(214, 171, 181, 0.24);
}

.archive-search svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.archive-search input {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-size: 1rem;
}

.archive-search input::placeholder {
  color: var(--text-soft);
  opacity: 1;
}

.archive-search input::-webkit-search-cancel-button {
  display: none;
}

.archive-search button {
  flex: 0 0 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
}

.archive-search button:hover {
  background: var(--select-option-hover-bg);
}

.archive-results-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.archive-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px 0;
  color: var(--text-soft);
  text-align: center;
  line-height: 1.65;
}

.archive-grid {
  display: grid;
  gap: 14px;
}

.archive-all-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.archive-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-main);
  box-shadow: var(--shadow-panel);
  text-decoration: none;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.archive-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-pink-strong) 45%, var(--border-soft));
  box-shadow: 0 18px 32px color-mix(in srgb, var(--background) 72%, transparent);
}

.archive-card-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  background: var(--background-soft);
}

.archive-card-copy {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
  overflow-wrap: anywhere;
}

.archive-card-copy h2 {
  margin: 0;
  color: var(--heading-color);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.25;
}

.archive-card-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.archive-card-issue {
  color: var(--accent-sage-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-card-link {
  align-self: end;
  margin-top: 3px;
  color: var(--accent-pink-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .archive-hero {
    gap: 22px;
    padding: 30px 28px 34px;
  }

  .archive-hero .hero-brand,
  .archive-hero .hero-copy-wrap {
    justify-content: center;
  }

  .archive-hero .hero-copy-wrap {
    justify-items: center;
  }

  .archive-hero .hero-logo {
    width: min(260px, 72vw);
  }

  .archive-hero .hero-title {
    text-align: center;
  }

  .archive-all-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .archive-section {
    padding: 28px 20px;
  }

  .archive-tools {
    grid-template-columns: 1fr;
  }

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

  .archive-grid {
    gap: 12px;
  }
}

/* Amatic SC is intentionally kept at its thin, regular weight across the UI. */
.public-page-tab,
.hero-title,
.hero-kicker,
.nav-chip,
.primary-button,
.secondary-button,
.ghost-button,
.footer-icon-button,
.nav-chip-mobile-label,
.story-title,
.hire-banner-title,
.share-menu a,
.share-menu button,
.admin-page-shell .hero-title,
.admin-login-shell .hero-title,
.admin-comic-preview-toolbar-copy p,
.sidebar-comic-title,
.panel-heading h2,
.admin-comic-preview-issue-chip,
.markdown-tool-button.is-heading,
.contact-page-title,
.contact-intro-panel .contact-cta-button,
.contact-section-title,
.gallery-count-pill {
  font-weight: 400;
}
