@font-face {
  font-family: "Bungee Local";
  src: url("./Bungee/Bungee-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Hoon Gomulsang";
  src: url("./1HoonGomulsang Regular/1HoonGomulsang Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #26343b;
  --muted: #667984;
  --line: #d8e6eb;
  --paper: #ffffff;
  --wash: #f1f8fa;
  --panel: #fbfdfe;
  --accent: #7aa5b8;
  --accent-strong: #557f92;
  --accent-soft: #dceef4;
  --mint: #dff3ea;
  --pink: #f7dbe5;
  --sun: #f4df8f;
  --green: #5d8b7b;
  --blue: #7aa5b8;
  --shadow: 0 18px 44px rgba(76, 116, 134, 0.16);
  --soft-shadow: 0 10px 24px rgba(76, 116, 134, 0.11);
  font-family: "Hoon Gomulsang", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(220, 238, 244, 0.95), rgba(251, 253, 254, 0.92) 420px),
    var(--wash);
  color: var(--ink);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

h1,
h2,
.brand,
.brand-mark,
.primary-button,
.ghost-button,
.comic-number,
.comic-link-title,
.like-button,
label {
  font-family: "Bungee Local", "Hoon Gomulsang", Inter, ui-sans-serif, system-ui, sans-serif;
}

.admin-page {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-page h1,
.admin-page h2,
.admin-page .brand,
.admin-page .brand-mark,
.admin-page .primary-button,
.admin-page .ghost-button,
.admin-page .comic-number,
.admin-page label {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.admin-page .brand {
  font-weight: 850;
}

.admin-page .brand-mark {
  font-weight: 850;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(251, 253, 254, 0.9);
  border-bottom: 0;
  box-shadow: 0 8px 22px rgba(76, 116, 134, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(4px 4px 0 rgba(122, 165, 184, 0.18));
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.primary-button,
.ghost-button {
  min-height: 42px;
  border-radius: 8px;
  border: 0;
  padding: 8px 14px;
  font-weight: 800;
  box-shadow: var(--soft-shadow);
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.ghost-button:hover {
  background: var(--accent-soft);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
}

.reader-layout {
  min-height: calc(100vh - 71px);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(31, 37, 41, 0.32);
}

.nav-scrim[hidden] {
  display: none;
}

.comic-nav {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  width: min(390px, 92vw);
  overflow: auto;
  padding: 22px 16px;
  background: rgba(251, 253, 254, 0.96);
  border-right: 0;
  box-shadow: var(--shadow);
  transform: translateX(-105%);
  transition: transform 180ms ease;
}

.nav-open .comic-nav {
  transform: translateX(0);
}

.comic-nav-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.nav-close-button {
  position: static;
  flex: 0 0 auto;
}

.search-wrap {
  display: grid;
  gap: 8px;
}

label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 11px 12px;
  box-shadow: inset 0 0 0 1px rgba(122, 165, 184, 0.16), var(--soft-shadow);
}

input:focus,
select:focus,
textarea:focus {
  border-color: transparent;
  outline: 3px solid rgba(111, 149, 168, 0.2);
}

.comic-count {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.comic-list {
  display: grid;
  gap: 7px;
}

.comic-link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 70px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 10px;
  text-align: left;
  box-shadow: var(--soft-shadow);
}

.comic-link:hover,
.comic-link.active {
  background: linear-gradient(135deg, #ffffff, var(--accent-soft));
  box-shadow: 4px 4px 0 rgba(122, 165, 184, 0.24), var(--soft-shadow);
}

.comic-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.comic-link-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.comic-link-title {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.comic-link-pages {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.24;
}

.comic-reader {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 38px 22px 70px;
}

.reader-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  border-left: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--soft-shadow);
  padding: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 2.2rem;
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

#comicMeta {
  margin-bottom: 0;
  color: var(--muted);
}

.mobile-picker {
  display: none;
  gap: 8px;
  margin: 18px 0;
}

.comic-pages {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.comic-page {
  width: min(100%, 620px);
  margin: 0;
}

.comic-image-wrap {
  position: relative;
}

.comic-page img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.like-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #d95f82;
  font-weight: 800;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(8px);
  line-height: 1;
  padding: 7px 10px;
}

.like-button.liked {
  background: #d95f82;
  color: #fff;
}

.like-button span:first-child {
  font-size: 1.25rem;
}

.like-count {
  color: inherit;
  font-family: "Bungee Local", "Hoon Gomulsang", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
}

.comic-bottom-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 620px);
  margin: 24px auto 0;
}

.comic-nav-button {
  display: grid;
  gap: 5px;
  min-height: 82px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.comic-nav-button.next {
  text-align: right;
}

.comic-nav-button:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-1px);
}

.comic-nav-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.comic-nav-button span {
  color: var(--blue);
  font-family: "Bungee Local", "Hoon Gomulsang", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.comic-nav-button strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.comments-panel {
  width: min(100%, 620px);
  margin: 38px auto 0;
  border-top: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--soft-shadow);
  padding: 22px;
}

.comments-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.comment-form[hidden] {
  display: none;
}

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

.comment {
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--soft-shadow);
}

.comment-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.comment strong {
  display: block;
  margin-bottom: 4px;
}

.comment time {
  color: var(--muted);
  font-size: 0.78rem;
}

.comment-delete-button {
  border: 0;
  border-radius: 8px;
  background: rgba(217, 95, 130, 0.14);
  color: #b44755;
  font-family: "Bungee Local", "Hoon Gomulsang", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  padding: 8px 10px;
}

.empty-note {
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(32, 33, 36, 0.55);
}

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

.auth-modal {
  position: relative;
  width: min(100%, 430px);
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.auth-copy {
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 14px;
}

.auth-tab {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(212, 232, 242, 0.55);
  color: var(--muted);
  box-shadow: var(--soft-shadow);
  font-family: "Bungee Local", "Hoon Gomulsang", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  padding: 10px 12px;
}

.auth-tab.active {
  background: rgba(123, 168, 190, 0.92);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-create-only[hidden] {
  display: none;
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-family: "Hoon Gomulsang", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.96rem;
  line-height: 1.35;
  text-transform: none;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}

.editor-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px 18px 70px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.editor-shell h1,
.editor-shell h2,
.editor-shell .eyebrow,
.editor-shell label,
.editor-shell button,
.editor-shell .comic-number,
.editor-shell .editor-comic-main strong,
.editor-shell .activity-item strong {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.editor-shell h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 850;
  line-height: 0.98;
}

.editor-shell h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.editor-shell .eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.editor-shell .primary-button,
.editor-shell .ghost-button,
.editor-shell .admin-tab,
.editor-shell .compact-button {
  font-weight: 750;
  line-height: 1;
}

.editor-gate {
  width: min(100%, 460px);
  margin: 48px auto;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.editor-workspace {
  display: grid;
  gap: 22px;
}

.editor-workspace[hidden] {
  display: none;
}

.editor-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.editor-actions,
.editor-heading-actions,
.editor-row-actions {
  display: flex;
  gap: 8px;
}

.save-status {
  width: min(100%, 620px);
  margin: 6px 0 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.save-status.error {
  color: #b44755;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 750;
  padding: 9px 14px;
}

.admin-tab.active {
  background: var(--accent-soft);
  box-shadow: 4px 4px 0 rgba(122, 165, 184, 0.24), var(--soft-shadow);
}

.editor-heading-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.editor-layout {
  grid-template-columns: minmax(250px, 350px) minmax(0, 1fr);
  gap: 22px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: grid;
}

.editor-comics,
.page-editor {
  min-width: 0;
}

.editor-comics {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: hidden;
}

.editor-comic-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 230px);
  overflow: auto;
  padding-right: 4px;
}

.editor-comic-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
  box-shadow: var(--soft-shadow);
}

.editor-comic-row.active {
  background: linear-gradient(135deg, #ffffff, var(--accent-soft));
  box-shadow: 4px 4px 0 rgba(122, 165, 184, 0.24), var(--soft-shadow);
}

.editor-comic-main {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
}

.editor-comic-main .comic-number {
  width: 50px;
  height: 50px;
}

.editor-comic-row > .editor-row-actions {
  grid-column: 2;
  align-items: center;
  flex-wrap: wrap;
}

.editor-comic-main strong,
.editor-comic-main span span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-comic-main strong {
  font-weight: 800;
}

.editor-comic-main span span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.compact-button {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 0.82rem;
}

.compact-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.page-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.rename-form {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.comic-details-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) auto;
  align-items: end;
  gap: 8px;
}

.comic-date-field {
  display: grid;
  gap: 8px;
}

.editor-pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.editor-page {
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  box-shadow: var(--soft-shadow);
}

.editor-page img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 8px;
  object-fit: cover;
}

.editor-page figcaption {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.editor-page figcaption span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.page-like-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 650;
}

.page-like-toggle input {
  width: auto;
  box-shadow: none;
}

.hidden-page {
  opacity: 0.62;
}

.activity-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  min-height: 58vh;
}

.activity-column {
  min-width: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--soft-shadow);
  padding: 14px;
}

.activity-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}

.activity-list {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.activity-item {
  display: grid;
  min-width: 0;
  gap: 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  padding: 10px;
}

.image-activity-item {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
}

.activity-item img {
  display: block;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.activity-item strong,
.activity-item p,
.activity-item span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.activity-item strong {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
}

.activity-item p {
  margin-bottom: 4px;
  color: var(--ink);
}

.activity-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }

  .brand {
    justify-content: center;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .top-actions #menuButton {
    grid-column: 1 / -1;
  }

  .top-actions button {
    width: 100%;
    min-height: 40px;
  }

  .reader-layout {
    display: block;
  }

  .comic-nav {
    height: auto;
    max-height: none;
    overflow: auto;
    padding: 14px 12px;
    background: rgba(248, 251, 252, 0.98);
    border-right: 0;
    border-bottom: 0;
  }

  .comic-nav .search-wrap {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -14px -12px 0;
    padding: 14px 12px 10px;
    background: rgba(248, 251, 252, 0.98);
    border-bottom: 0;
    box-shadow: 0 10px 18px rgba(76, 116, 134, 0.08);
  }

  .comic-count {
    margin: 10px 0;
  }

  .comic-list {
    gap: 8px;
    padding-bottom: 6px;
  }

  .comic-link {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 62px;
    padding: 8px;
  }

  .comic-number {
    width: 40px;
    height: 40px;
    font-size: 0.86rem;
  }

  .comic-link-title {
    font-size: 0.98rem;
    line-height: 1.16;
  }

  .comic-link-pages {
    font-size: 0.8rem;
  }

  .comic-reader {
    padding: 22px 10px 46px;
  }

  .reader-heading {
    margin: 0 2px 16px;
    padding: 8px 0 8px 12px;
  }

  .reader-heading h1 {
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: 1.75rem;
  }

  .mobile-picker {
    display: grid;
    margin: 14px 2px 18px;
  }

  .comic-pages {
    gap: 14px;
  }

  .comic-page {
    width: 100%;
  }

  .comic-page img {
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(48, 77, 93, 0.12);
  }

  .like-button {
    right: 8px;
    bottom: 8px;
    min-width: 34px;
    min-height: 34px;
    padding: 6px 9px;
  }

  .comic-bottom-nav {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 18px;
  }

  .comic-nav-button,
  .comic-nav-button.next {
    min-height: 74px;
    padding: 13px;
    text-align: left;
  }

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

  .comments-panel {
    width: 100%;
    margin-top: 28px;
  }

  .auth-modal {
    padding: 20px;
  }

  .editor-intro,
  .page-editor-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-heading-actions {
    justify-content: stretch;
  }

  .editor-heading-actions button {
    flex: 1;
  }

  .editor-actions {
    width: 100%;
  }

  .editor-actions button {
    flex: 1;
  }

  .save-status {
    margin-left: 0;
    text-align: left;
  }

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

  .activity-panel {
    grid-template-columns: 1fr;
  }

  .activity-list {
    max-height: 420px;
  }

  .editor-comics {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .editor-comic-list {
    max-height: 360px;
  }

  .editor-comic-row {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 10px;
    padding: 10px;
  }

  .editor-comic-main {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .editor-comic-main .comic-number {
    width: 44px;
    height: 44px;
  }

  .comic-details-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 0.96rem;
  }

  .primary-button,
  .ghost-button {
    padding-inline: 10px;
  }

  .comic-reader {
    padding-inline: 8px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .comic-link {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
  }

  .comic-number {
    width: 36px;
    height: 36px;
  }

  .editor-comic-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .editor-comic-main {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .editor-comic-main .comic-number {
    width: 38px;
    height: 38px;
  }
}
