:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #202c38;
  --page-background: #606979;
  --card: #fffdfd;
  --tile: #f0f0f2;
  --tile-hover: #e6e7eb;
  background: var(--page-background);
  scroll-behavior: smooth;
}

:root {
  scrollbar-width: none;
}

:root::-webkit-scrollbar {
  display: none;
}

:root:has(dialog[open]) {
  overflow: hidden;
  overscroll-behavior: none;
}

* {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

body {
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  isolation: isolate;
  margin: 0;
  background: var(--page-background);
}

.service-symbols { position: absolute; }

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background: linear-gradient(135deg, #ffffff09, transparent 75%);
  pointer-events: none;
  content: "";
}

.intro {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  align-content: center;
  justify-items: center;
  gap: 1.25rem;
  padding: clamp(1.25rem, 4vh, 3rem) 1rem;
}

.profile {
  width: min(100%, 29rem);
  padding: clamp(1.15rem, 5vw, 1.7rem);
  padding-block: clamp(1.7rem, 5vw, 2.2rem);
  border: 1px solid #fff;
  border-radius: clamp(1.5rem, 6vw, 2.5rem);
  background: var(--card);
  box-shadow: 0 18px 40px #315d8324, 0 4px 10px #315d8310;
  text-align: center;
}

.avatar {
  display: block;
  width: clamp(6.5rem, 19vw, 9.5rem);
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  padding: clamp(0.7rem, 2vw, 1.05rem);
  border: 1px solid #eff1f4;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 16px #263f551a;
}

h1 {
  margin: 0.85rem 0 0;
}

.wordmark {
  display: block;
  width: clamp(7.25rem, 26vw, 8.7rem);
  height: auto;
  margin-inline: auto;
}

.profile-header p {
  margin: 0.35rem 0 0;
  color: #5b6470;
  font-size: 1.15rem;
}

.accounts {
  display: grid;
  gap: 1rem;
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}

.account {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.4rem;
  padding: 0.65rem clamp(0.7rem, 3vw, 1rem);
  border-radius: 1rem;
  background: var(--tile);
  color: #19354c;
  font-size: clamp(0.93rem, 3.5vw, 1.1rem);
  font-weight: 650;
  line-height: 1.25;
  text-align: start;
}

.account-link {
  text-decoration: none;
  transition: background-color 150ms ease;
}

.account-link:hover {
  background: var(--tile-hover);
}

.account-link:focus-visible,
.copy-button:focus-visible {
  outline: 2px solid #286193;
  outline-offset: 3px;
}

.service-icon {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
}

.chevron {
  flex: none;
  width: 0.52rem;
  height: 0.52rem;
  margin-inline-start: auto;
  margin-inline-end: 0.2rem;
  border: solid #4b79a5;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

.account-instagram {
  position: relative;
}

.handle {
  -webkit-user-select: text;
  user-select: text;
  margin-inline-start: auto;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.copy-button {
  display: grid;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  margin-block: -0.35rem;
  margin-inline-end: -0.45rem;
  padding: 0;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: #365e82;
  cursor: pointer;
}

.copy-button[hidden], .copy-check, .copy-button.is-copied .copy-icon {
  display: none;
}

.copy-button.is-copied .copy-check {
  display: block;
}

.copy-button:hover { background: var(--tile-hover); }

.copy-button svg {
  width: 1.16rem;
  height: 1.16rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-status:not(.copy-error) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.copy-error {
  margin: 0.55rem 0 0;
  color: #535e6a;
  font-size: 0.82rem;
}

.note {
  margin: 1.25rem 0 0;
  color: #535e6a;
  font-size: 0.8rem;
  line-height: 1.5;
}

.scroll-link {
  position: relative;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  background: var(--card);
  color: #365e82;
  box-shadow: 0 4px 12px #202c3840;
  transition: background-color 150ms ease, transform 150ms ease;
}

.scroll-down {
  top: 0.5rem;
}

.scroll-up {
  margin: 0 auto 1.25rem;
}

.scroll-link::before {
  width: 2px;
  height: 1rem;
  border-radius: 1px;
  background: currentColor;
  content: "";
}

.scroll-link::after {
  position: absolute;
  width: 0.56rem;
  height: 0.56rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(0.18rem) rotate(45deg);
  content: "";
}

.scroll-link:hover {
  background: var(--tile);
  transform: translateY(2px);
}

.scroll-up::after {
  transform: translateY(-0.18rem) rotate(225deg);
}

.scroll-up:hover {
  transform: translateY(-2px);
}

.scroll-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.comics {
  min-height: 100vh;
  min-height: 100svh;
  padding: 2.5rem 1rem clamp(2rem, 7vh, 5rem);
}

.comics-panel {
  width: min(100%, 56rem);
  margin-inline: auto;
}

.comics-header {
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
  color: #202c38;
  text-align: center;
}

.comics-header h2 {
  width: fit-content;
  margin: 0 auto;
  font-family: "Segoe Print", cursive;
  font-size: clamp(1.4rem, 3.8vw, 1.9rem);
  line-height: 1.25;
}

.comics:focus,
#top:focus {
  outline: none;
}

.comics-header p {
  margin: 0.65rem 0 0;
  color: #536274;
}

.comics-tray {
  width: min(100%, 43.25rem);
  margin-inline: auto;
  padding: 0.625rem;
  border-radius: 0.95rem;
  background: #e0e6ec;
}

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

.comic-card { min-width: 0; }

.comic-placeholder,
.comic-link {
  aspect-ratio: 1;
}

.comic-placeholder { background: #f1f4f7; }

.comic-link {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #e6ebf0;
  cursor: pointer;
}

.comic-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  z-index: 1;
}

.comic-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.comic-cover > :is(img, video) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.comic-cover::after {
  position: absolute;
  inset: 0;
  background: #10182042;
  opacity: 0;
  transition: opacity 160ms ease;
  pointer-events: none;
  content: "";
}

@media (hover: hover) {
  .comic-link:hover .comic-cover::after { opacity: 1; }
}

.comic-link:focus-visible .comic-cover::after { opacity: 1; }

.comic-cover-mark {
  position: absolute;
  z-index: 1;
  top: 0.45rem;
  right: 0.45rem;
  display: grid;
  width: 1.65rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 0.3rem;
  background: #17232be0;
  color: #fff;
  pointer-events: none;
}

.comic-cover-mark::before {
  display: block;
  content: "";
}

.comic-cover-mark[data-kind="video"]::before {
  width: 0.55rem;
  height: 0.65rem;
  margin-left: 0.1rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.comic-cover-mark[data-kind="pages"]::before {
  width: 0.65rem;
  height: 0.7rem;
  margin: 0 0.13rem 0.13rem 0;
  border: 1px solid currentColor;
  border-radius: 0.12rem;
  box-shadow: 2px 2px #17232b, 3px 3px currentColor;
}

.comic-video-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #18222cdb;
  color: #fff;
  font-size: 0.8rem;
}

.admin-tools {
  position: fixed;
  z-index: 1;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  display: flex;
  gap: 0.45rem;
}

.site-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 1px solid #cbd3dd;
  border-radius: 0.85rem;
  background: var(--card);
  color: #19354c;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.site-button[hidden] {
  display: none;
}

.site-button:hover {
  background: var(--tile);
}

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

.site-button:focus-visible,
.text-button:focus-visible,
.plain-icon:focus-visible,
.comic-play:focus-visible {
  outline: 2px solid #286193;
  outline-offset: 3px;
}

.editor-form :is(input, textarea):focus {
  outline: 1px solid #668ba9;
  outline-offset: -1px;
}

.icon-button {
  width: 2.75rem;
  flex: none;
  padding: 0.65rem;
}

.admin-tools .icon-button {
  width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.55rem;
}

.icon-button svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal {
  --close-clearance: 3.625rem;
  width: min(64rem, calc(100% - 2rem));
  max-width: 100%;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid #fff;
  border-radius: 1.4rem;
  background: var(--card);
  color: inherit;
  box-shadow: 0 18px 40px #202c3850;
  overscroll-behavior: contain;
}

.modal::backdrop {
  background: #202c3890;
}

.modal[open] { animation: modal-in 230ms cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.modal[open]::backdrop { animation: backdrop-in 230ms ease both; }
.modal.is-closing { animation: modal-out 180ms ease-in both; pointer-events: none; }
.modal.is-closing::backdrop { animation: backdrop-out 180ms ease-in both; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes modal-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(8px) scale(0.99); }
}

@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }

.comic-dialog[data-mode="view"] {
  width: min(76rem, calc(100% - 1.5rem));
}

.comic-dialog[data-mode="view"] .comic-viewport { max-height: 78dvh; }

.comic-links-dialog {
  width: min(29rem, calc(100% - 2rem));
}

.comic-links-dialog::backdrop { background: #13223164; }

.comic-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.comic-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 36%);
  align-content: start;
  gap: clamp(0.85rem, 3vw, 1.5rem);
  min-height: 0;
  padding: var(--close-clearance) var(--close-clearance) 1.2rem 1.2rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.comic-shell:focus,
.modal-panel:focus { outline: none; }

.comic-dialog:is([data-mode="edit"], [data-mode="create"]) .comic-shell {
  padding-block-start: 1.15rem;
}

.comic-dialog:is([data-mode="edit"], [data-mode="create"]) .comic-details {
  padding-block-start: 0.3rem;
}

.comic-close {
  position: absolute;
  z-index: 1;
  top: 0.4rem;
  right: 0.45rem;
}

.comic-toolbar {
  position: absolute;
  z-index: 3;
  top: 0.4rem;
  right: 0.45rem;
  display: flex;
  flex: none;
  justify-content: flex-end;
}

.comic-toolbar .comic-close { position: static; }
.comic-actions { position: relative; }

.comic-menu {
  position: absolute;
  top: calc(100% + 0.15rem);
  right: 0;
  display: grid;
  min-width: 10rem;
  padding: 0.3rem;
  border: 1px solid #d9dfe5;
  border-radius: 0.7rem;
  background: var(--card);
  box-shadow: 0 9px 24px #202c3830;
}

.comic-menu button {
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: #283d4e;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.comic-menu button:is(:hover, :focus-visible) { background: var(--tile); }
.comic-menu .comic-delete { color: #a12c36; }
.comic-menu .comic-delete:is(:hover, :focus-visible) { background: #fff0f1; }

.plain-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0.7rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: #284359;
  cursor: pointer;
}

.plain-icon:hover { color: #102533; }

.plain-icon svg,
.comic-drop svg,
.comic-thumb-remove svg,
.comic-edit-links svg,
.comic-date-info svg,
.comic-link-out {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comic-viewport {
  position: relative;
  max-height: 72dvh;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.8rem;
  background: var(--tile);
  touch-action: pan-y pinch-zoom;
}

.comic-stage,
.comic-regions {
  position: absolute;
  inset: 0;
}

.comic-stage { display: flex; }

.comic-stage > * {
  display: block;
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.comic-stage video { background: #18222c; }

.comic-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: clamp(2.65rem, 8vw, 3.5rem);
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid #ffffffb8;
  border-radius: 50%;
  background: #202c38e8;
  color: #fff;
  cursor: pointer;
}

.comic-play:hover { background: #18222c; }
.comic-play svg { width: 53%; fill: currentColor; }

.comic-regions {
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.comic-viewport:has(video) .comic-regions { bottom: 3.5rem; }

.comic-region {
  position: relative;
  display: flex;
  width: 25%;
  align-items: center;
  padding: 0 clamp(0.35rem, 1.4vw, 0.85rem);
  border: none;
  background: none;
  color: #414751;
  cursor: pointer;
  pointer-events: auto;
}

.comic-viewport:has(video) .comic-region { width: 17%; }

.comic-region-next { justify-content: flex-end; }

.comic-region::before {
  position: absolute;
  inset: 0;
  background: #26344120;
  opacity: 0;
  transition: opacity 260ms ease;
  content: "";
}

.comic-region:is(:hover, :focus-visible)::before { opacity: 1; }

.comic-region svg {
  position: relative;
  width: clamp(1.45rem, 3.1vw, 2.1rem);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px #fffffff5);
  transition: transform 200ms ease;
}

.comic-region-prev:hover svg { transform: translateX(-2px); }
.comic-region-next:hover svg { transform: translateX(2px); }
.comic-region:focus-visible { outline: 2px solid #286193; outline-offset: -3px; }

.comic-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.comic-position {
  min-width: 3.25rem;
  color: #535e6a;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.comic-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1rem;
}

.comic-description {
  margin: 0;
  color: #202c38;
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  user-select: text;
}

.comic-date {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.25rem 0 0;
  color: #535e6a;
  font-size: 0.85rem;
}

.comic-date-info {
  display: grid;
  width: 1.8rem;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #536e84;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.comic-date-info:is(:hover, [aria-expanded="true"]) { background: #e9eff4; color: #294b66; }
.comic-date-info svg { width: 1.1rem; }

.comic-date-tooltip {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  width: min(15rem, 100%);
  padding-top: 0.35rem;
}

.comic-date-tooltip dl {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d8e0e7;
  border-radius: 0.75rem;
  background: var(--card);
  color: #536171;
  box-shadow: 0 6px 20px #202c3829;
  line-height: 1.4;
}

.comic-date-tooltip dt:not(:first-child) { margin-top: 0.5rem; }

.comic-date-tooltip dd {
  margin: 0.12rem 0 0;
  color: #263d52;
  font-weight: 650;
}

.comic-socials {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: #283d4e;
  font-size: 0.92rem;
}

.comic-edit-links {
  width: 100%;
  gap: 0.55rem;
}

.comic-edit-links svg { width: 1.05rem; }
.comic-link-out { width: 1.15rem; margin-inline-start: auto; }
.comic-published-check { color: #23623f; }
.comic-instagram .note { margin: 0.85rem 0.25rem 0; }

.editor-form.comic-form { margin: 0; }
.editor-form.comic-links-form { margin: 0; }

.comic-form input[type="date"] {
  min-height: 2.9rem;
  padding: 0.65rem 0.85rem;
  border-color: #adbed0;
  background: #f3f7fa;
  color: #263d52;
}

.comic-form input[type="date"]::-webkit-calendar-picker-indicator {
  width: 1.05rem;
  height: 1.05rem;
  opacity: 0.72;
  cursor: pointer;
}

.comic-form textarea { resize: vertical; }

.comic-viewport:not([hidden]) + .comic-pagination + .comic-files { margin-top: 0.75rem; }

.comic-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(5.2rem, 100%), 5.65rem));
  gap: 0.6rem;
  margin: 0;
  padding: 0.2rem;
  list-style: none;
}

.comic-thumb,
.comic-add-tile {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
}

.comic-thumb {
  border: 1px solid #cbd3dd;
  border-radius: 0.6rem;
  background: var(--tile);
}

.comic-thumb.is-selected { border-color: #286193; }
.comic-thumb.is-drop-target { outline: 2px solid #286193; outline-offset: 2px; }
.comic-thumb.is-dragging { opacity: 0.4; }

.comic-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0.5rem;
  background: var(--tile);
  color: #19354c;
  cursor: grab;
  touch-action: none;
}

.comic-preview:active { cursor: grabbing; }

.comic-preview > :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.comic-thumb-remove {
  position: absolute;
  z-index: 1;
  top: -0.3rem;
  right: -0.3rem;
  display: grid;
  width: 1.6rem;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 1px solid #d3dce4;
  border-radius: 50%;
  background: #f9fbfd;
  color: #45586a;
  box-shadow: 0 1px 4px #202c3826;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.comic-thumb-remove svg { width: 0.95rem; }
.comic-thumb-remove:hover { background: #fff0f1; color: #a12c36; }

.comic-drag-preview {
  position: fixed;
  z-index: 2;
  inset: 0 auto auto 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid #fff;
  border-radius: 0.6rem;
  background: var(--tile);
  box-shadow: 0 7px 20px #18222c60;
  pointer-events: none;
}

.comic-drag-preview > :is(img, video) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comic-drop {
  position: relative;
  display: grid;
  height: 100%;
  align-content: center;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.25rem;
  border: 1px dashed #8da3b9;
  border-radius: 0.6rem;
  background: #edf1f5;
  color: #284359;
  text-align: center;
  cursor: pointer;
}

.comic-drop:is(:hover, :focus-within, .is-over) {
  border-color: #286193;
  background: #e2ebf3;
}

.comic-drop svg { width: 1.35rem; }
.comic-drop span { color: #535e6a; font-size: 0.82rem; }

.comic-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.primary-button {
  border-color: #315d83;
  background: #315d83;
  color: #fff;
}

.primary-button:hover { background: #254b6e; }

.danger-button { color: #a12c36; }
.danger-button:hover { border-color: #dfb5ba; background: #fff0f1; }

.comic-delete-confirm {
  margin-top: auto;
}

.comic-edit-actions {
  flex: none;
  padding: 0.65rem var(--close-clearance) 0.95rem 1.2rem;
  border-top: 1px solid #e4e9ee;
}

.comic-delete-confirm p { margin: 0 0 0.6rem; }

.history-dialog {
  width: min(50rem, calc(100% - 2rem));
}

.modal-panel {
  position: relative;
  padding: var(--close-clearance) var(--close-clearance) 1.2rem 1.2rem;
}

.modal-panel h2 { margin: 0 0 1rem; }

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

.history-columns h3 { margin: 0 0 0.5rem; }

.history-columns ol {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-columns li {
  padding: 0.6rem 0.75rem;
  border-radius: 0.65rem;
  background: var(--tile);
  overflow-wrap: anywhere;
}

.history-columns time {
  display: block;
  margin-top: 0.25rem;
  color: #535e6a;
  font-size: 0.8rem;
}



.admin-panel h1 {
  margin: 0;
}

.admin-intro {
  padding-block-end: calc(clamp(1.25rem, 4vh, 3rem) + 2.5rem);
}

.admin-panel .avatar {
  margin-block-end: 0.85rem;
}

.editor-form {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
  text-align: start;
}

.editor-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 650;
}

.editor-form :is(input, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #a9b4c0;
  border-radius: 0.65rem;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 400;
  user-select: text;
}

.form-message {
  margin: 0.8rem 0 0;
  line-height: 1.4;
}

.editor-form .form-message {
  margin: 0;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: #2e567a;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.admin-home {
  margin-top: 1rem;
}

.admin-home .site-button { width: 100%; }

.doodles {
  position: fixed;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.doodle-layer {
  fill: none;
  stroke: #b7b7b7;
  stroke: color-mix(in srgb, var(--page-background), #ececec 65%);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.20;
}

@media (max-width: 23rem) {
  .account-instagram { gap: 0.35rem; }
  .account-instagram .handle { font-size: 0.87em; }
}

@media (max-width: 42rem), (max-height: 32rem) and (pointer: coarse) {
  .comics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comic-placeholder:nth-child(n + 3) { display: none; }

  .comic-dialog[data-mode] {
    width: calc(100% - 1.25rem);
    max-height: calc(100dvh - 1.25rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .comic-toolbar {
    position: relative;
    inset: auto;
    padding: 0.15rem 0.4rem 0;
  }

  .comic-shell,
  .history-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .comic-shell,
  .comic-dialog:is([data-mode="edit"], [data-mode="create"]) .comic-shell {
    padding: 0.35rem 0.85rem 0.85rem;
  }

  .comic-dialog[data-mode="view"] .comic-viewport { max-height: 52dvh; }
  .comic-dialog:is([data-mode="edit"], [data-mode="create"]) .comic-viewport { max-height: min(40dvh, 15.5rem); }
  .comic-edit-actions { padding: 0.55rem 0.85rem 0.65rem; }
  .modal-panel { padding: var(--close-clearance) 0.85rem 0.85rem; }

  .comic-date-tooltip {
    top: auto;
    bottom: 100%;
    padding: 0 0 0.35rem;
  }
}

@media (pointer: coarse) {
  .comic-date-info { width: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .account-link, .scroll-link, .comic-cover::after, .comic-region svg, .comic-region::before { transition: none; }
  .scroll-link:hover, .comic-region:hover svg { transform: none; }
  .modal[open], .modal[open]::backdrop, .modal.is-closing, .modal.is-closing::backdrop { animation: none; }
}
