/* PressRun Bulldog dashboard. Separate from the public homepage. */
body.has-shell {
  margin: 0;
  background: var(--canvas, var(--paper, #efeae0));
  color: var(--ink, #1c1914);
  font-family: var(--utility, "Outfit", "Segoe UI", sans-serif);
}
body.has-shell a { color: inherit; }
body.has-shell .dash {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
}
body.has-shell .dash-side {
  background: var(--rail, var(--dark, #12141a));
  color: var(--rail-text, #f6f3ec);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
  padding: 1.15rem 0.9rem 1.5rem;
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  overflow: auto;
  transform: translateX(-105%);
  transition: transform 0.16s ease;
}
body.has-shell .dash.is-nav-open .dash-side { transform: none; }
body.has-shell .shell-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  border: 0;
  padding: 0;
  background: rgba(18, 20, 26, 0.45);
  cursor: pointer;
}
body.has-shell .dash.is-nav-open .shell-backdrop { display: block; }
@media (min-width: 901px) {
  body.has-shell.is-rail .dash:not(.nav-ready),
  body.has-shell.is-rail .dash.is-nav-open {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  body.has-shell.is-rail .dash:not(.nav-ready) .dash-side,
  body.has-shell.is-rail .dash.is-nav-open .dash-side {
    position: sticky;
    transform: none;
  }
  body.has-shell.is-rail .dash:not(.nav-ready) .shell-backdrop,
  body.has-shell.is-rail .dash.is-nav-open .shell-backdrop { display: none; }
}
body.has-shell .dash-mark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}
body.has-shell .dash-logo:not(.site-logo) { height: 34px; width: auto; }
body.has-shell .media-row img.logo-preview {
  width: auto;
  height: 3rem;
  max-width: 12rem;
  max-height: none;
  object-fit: contain;
  background: repeating-conic-gradient(var(--line, #ddd4c4) 0% 25%, transparent 0% 50%) 0 0 / 16px 16px;
}
body.has-shell .media-row img.logo-preview.logo-size-compact { height: 2rem; max-width: 8rem; }
body.has-shell .media-row img.logo-preview.logo-size-standard { height: 3rem; max-width: 12rem; }
body.has-shell .media-row img.logo-preview.logo-size-large { height: 4.4rem; max-width: 18rem; }
body.has-shell .media-row img.logo-preview.logo-size-banner {
  width: min(100%, 22rem);
  height: auto;
  max-width: 22rem;
  max-height: 6rem;
}
body.has-shell .media-row img.logo-preview.logo-fit-cover { object-fit: cover; }
body.has-shell .media-row img.logo-preview.logo-fit-cover.logo-size-compact { width: 2rem; height: 2rem; max-width: none; }
body.has-shell .media-row img.logo-preview.logo-fit-cover.logo-size-standard { width: 3rem; height: 3rem; max-width: none; }
body.has-shell .media-row img.logo-preview.logo-fit-cover.logo-size-large { width: 4.4rem; height: 4.4rem; max-width: none; }
body.has-shell .media-row img.logo-preview.logo-fit-cover.logo-size-banner { width: 6rem; height: 6rem; max-width: none; max-height: none; }
body.has-shell .dash-codename {
  flex: none;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-2, #ddd4ff);
  color: var(--ink, #2a2158);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.has-shell .dash-station {
  margin: 0.85rem 0.2rem 1rem;
  color: var(--rail-muted, var(--muted));
  font-size: 0.92rem;
}
body.has-shell .dash-side .manage-nav {
  position: static;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
body.has-shell .dash-side .manage-group { margin: 0.85rem 0 0; }
body.has-shell .dash-side .manage-group:first-child { margin-top: 0; }
body.has-shell .dash-side .manage-group p {
  margin: 0 0 0.15rem;
  color: var(--rail-muted, var(--muted));
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.has-shell .dash-side .manage-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.has-shell .dash-side .manage-nav a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.55rem;
  color: var(--rail-text, #f6f3ec);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 8px;
}
body.has-shell .dash-side .manage-nav a:hover { background: color-mix(in srgb, var(--rail-text, #f6f3ec) 14%, transparent); color: var(--rail-text, #f6f3ec); }
body.has-shell .dash-side .manage-nav a.button,
body.has-shell .dash-side .manage-nav a.button:hover {
  display: inline-flex;
  width: auto;
  margin: 0.15rem 0.35rem 0.15rem 0;
  background: transparent;
  color: var(--rail-text, #f6f3ec);
  border-color: color-mix(in srgb, var(--rail-text, #f6f3ec) 40%, transparent);
  filter: none;
}
body.has-shell .dash-side .manage-nav a[aria-current="page"],
body.has-shell .dash-side .manage-nav a[aria-current="page"]:hover {
  background: var(--rail-current, var(--accent, #6e59e8));
  color: var(--on-accent, #fffdf8);
  font-weight: 700;
}
body.has-shell .manage-side-link { color: var(--accent-2, #c4b8ff); }
body.has-shell .dash-main { min-width: 0; display: flex; flex-direction: column; }
body.has-shell .dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.4rem;
  background: var(--topbar, var(--surface, #fffdf8));
  border-bottom: 1px solid var(--line, #ddd4c4);
}
body.has-shell .dash-top-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body.has-shell .dash-top a,
body.has-shell .dash-top button { color: var(--ink, #1c1914); }
body.has-shell .dash-main main {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 1.4rem auto 2rem;
  flex: 1;
}
body.has-shell .dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}
body.has-shell .dash-hero h1 {
  margin: 0.15rem 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}
body.has-shell .dash-kicker {
  margin: 0;
  color: var(--accent, #6e59e8);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body.has-shell .dash-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink, #1c1914);
  color: var(--surface, #fffdf8);
  text-decoration: none;
  font-weight: 700;
}
body.has-shell .desk-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.has-shell .desk-stat {
  background: var(--surface, #fffdf8);
  border-color: var(--line, #ddd4c4);
  box-shadow: none;
}
body.has-shell .dash-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.2rem 0 1.2rem;
}
body.has-shell .dash-actions a {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 14px;
  text-decoration: none;
}
body.has-shell .dash-actions a:hover { border-color: var(--accent, #6e59e8); }
body.has-shell .reset-list { display: grid; gap: 1rem; margin-top: 0.4rem; }
body.has-shell .reset-card { padding: 1.1rem 1.15rem 1.2rem; }
body.has-shell .reset-card h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
body.has-shell .reset-card p { margin: 0 0 0.9rem; max-width: 40rem; color: var(--muted, #6e675c); }
body.has-shell .reset-card .check { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0 0 0.9rem; }
body.has-shell .field input:focus-visible,
body.has-shell .field textarea:focus-visible,
body.has-shell .field select:focus-visible {
  outline: 2px solid var(--accent, #6e59e8);
  outline-offset: 2px;
}
body.has-shell .dash-actions span { color: var(--muted, #6e675c); font-size: 0.85rem; }
body.has-shell form.story-form .check { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.35rem 0 0.8rem; }
body.has-shell form.story-form .check input { margin-top: 0.25rem; }
body.has-shell .reach-list { list-style: none; margin: 0.8rem 0 0; padding: 0; }
body.has-shell .reach-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line, #ddd4c4);
}
body.has-shell .reach-list a { font-weight: 650; overflow-wrap: anywhere; }
body.has-shell .reach-list span { color: var(--muted, #6e675c); font-size: 0.85rem; }
body.has-shell .dash-panel,
body.has-shell .panel {
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #ddd4c4);
  box-shadow: none;
}
body.has-shell .dash-stories { list-style: none; margin: 0; padding: 0; }
body.has-shell .dash-stories li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line, #ddd4c4);
}
body.has-shell .dash-stories a { font-weight: 650; text-decoration: none; }
body.has-shell .dash-stories span { color: var(--muted, #6e675c); font-size: 0.8rem; }
body.has-shell .dash-theme { margin-top: 1rem; }
body.has-shell .dash-foot {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.4rem 1.3rem;
  color: var(--muted, #6e675c);
  font-size: 0.78rem;
}
body.has-shell .dash-foot .pressrun-logo { height: 22px; width: auto; }
body.has-shell .pressrun-logo { display: block; }
body.has-shell .dash-main button:not(.link-button):not(.shell-toggle):not(.menu-button):not(.nav-menu-button):not(.edit-handle):not(.edit-remove):not(.edit-toggle):not(.widget-tile):not(.figure-remove):not(.theme-choice):not(.dock-gear-button),
body.has-shell .dash-main .button {
  border-radius: var(--button-radius, 999px);
  border-color: var(--button-primary-border, var(--ink));
  background: var(--button-primary-bg, var(--ink));
  color: var(--button-primary-color, var(--on-accent));
}
body.has-shell .dash-main .rich-toolbar button,
body.has-shell .dash-main .rich-pop button,
body.has-shell .dash-main .figure-remove {
  border-radius: 8px;
  border: 1px solid var(--line, #ddd4c4);
  background: var(--surface, #fffdf8);
  color: var(--ink, #1c1914);
}
body.has-shell .button-secondary,
body.has-shell button.button-secondary {
  background: var(--button-secondary-bg, transparent);
  color: var(--button-secondary-color, var(--ink));
  border-color: var(--button-secondary-border, var(--line));
}
body.has-shell .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body.has-shell .shell-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 10px;
  background: var(--surface, #fffdf8);
  color: var(--ink, #1c1914);
  cursor: pointer;
}
body.has-shell .shell-burger,
body.has-shell .shell-burger:before,
body.has-shell .shell-burger:after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
body.has-shell .shell-burger { position: relative; }
body.has-shell .shell-burger:before,
body.has-shell .shell-burger:after {
  content: "";
  position: absolute;
  left: 0;
}
body.has-shell .shell-burger:before { top: -5px; }
body.has-shell .shell-burger:after { top: 5px; }
body.has-shell .shell-search input {
  width: min(16rem, 46vw);
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 999px;
  background: var(--paper, #f6f3ec);
  color: var(--ink, #1c1914);
  padding: 0.45rem 0.8rem;
  font: inherit;
}
body.has-shell .dash-top { gap: 0.75rem; flex-wrap: wrap; }
body.has-shell .header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-left: auto;
}
body.has-shell .header-tools .shell-search { margin-left: 0; }
body.has-shell .dash-top .bar-links,
body.has-shell .shell-search { margin-left: auto; }
body.has-shell .bar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
body.has-shell .bar-links a,
body.has-shell .bar-links .link-button { display: inline-flex; align-items: center; gap: 0.35rem; text-decoration: none; }
body.has-shell .theme-pop { position: relative; }
body.has-shell .theme-pop > summary { list-style: none; cursor: pointer; }
body.has-shell .theme-pop > summary::-webkit-details-marker { display: none; }
body.has-shell .theme-pop-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 80;
  width: min(22rem, 86vw);
  max-height: min(70vh, 28rem);
  overflow: auto;
  padding: 0.55rem;
  background: var(--surface, #fffdf8);
  color: var(--ink, #1c1914);
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
body.has-shell .theme-pop-panel .meta { margin: 0.2rem 0.4rem 0.45rem; }
body.has-shell .theme-choice {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.45rem 0.5rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink, #1c1914);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
body.has-shell .theme-choice:hover,
body.has-shell .theme-choice[aria-current="true"] {
  background: color-mix(in srgb, var(--accent, #6e59e8) 16%, var(--surface, #fffdf8));
}
body.has-shell .theme-pop .theme-dots { display: inline-flex; gap: 0.2rem; }
body.has-shell .theme-pop .theme-dots span { width: 0.85rem; height: 0.85rem; border-radius: 999px; border: 1px solid var(--line, #ddd4c4); }
body.has-shell .theme-channel { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--line, #ddd4c4); }
body.has-shell .dash-foot { flex-wrap: wrap; }
body.has-shell .dash-foot {
  background: var(--rail, var(--dark));
  color: var(--rail-muted, var(--muted));
}
body.has-shell .dash-foot-note { margin-left: auto; }
body.has-shell .manage-nav form { margin: 0; }
body.has-shell .manage-nav .link-button {
  display: block;
  width: 100%;
  padding: 0.38rem 0.45rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rail-text, #f6f3ec);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}
body.has-shell .manage-nav .link-button:hover { background: color-mix(in srgb, var(--rail-text, #f6f3ec) 14%, transparent); }
body.has-shell .dash-main h1 {
  font-family: "Outfit", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}
body.has-shell .kicker { color: var(--accent, #6e59e8); }
body.has-shell .about-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}
body.has-shell .about-facts div {
  padding: 0.9rem 1rem;
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 14px;
}
body.has-shell .about-facts dt {
  color: var(--muted, #6e675c);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body.has-shell .about-facts dd { margin: 0.25rem 0 0; font-size: 1.25rem; font-weight: 750; }
@media (max-width: 800px) {
  body.has-shell .about-facts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) {
  body.has-shell.is-live-stage.is-rail .dash,
  body.has-shell.is-live-stage.is-rail .dash.is-nav-open,
  body.has-shell.is-live-stage.is-rail .dash:not(.nav-ready) {
    grid-template-columns: minmax(0, 1fr);
  }
  body.has-shell.is-live-stage.is-rail .dash-side,
  body.has-shell.is-live-stage.is-rail .dash.is-nav-open .dash-side,
  body.has-shell.is-live-stage.is-rail .dash:not(.nav-ready) .dash-side {
    position: fixed;
    transform: translateX(-105%);
  }
  body.has-shell.is-live-stage.is-rail .dash.is-nav-open .dash-side { transform: none; }
  body.has-shell.is-live-stage.is-rail .dash.is-nav-open .shell-backdrop { display: block; }
  body.has-shell.is-live-stage.is-rail .live-stage .broadcast-dock { left: 0; }
}
@media (max-width: 900px) {
  body.has-shell.is-rail .dash,
  body.has-shell.is-rail .dash.is-nav-open,
  body.has-shell.is-rail .dash:not(.nav-ready) { grid-template-columns: minmax(0, 1fr); }
  body.has-shell.is-rail .dash-side,
  body.has-shell.is-rail .dash.is-nav-open .dash-side,
  body.has-shell.is-rail .dash:not(.nav-ready) .dash-side {
    position: fixed;
    transform: translateX(-105%);
  }
  body.has-shell.is-rail .dash.is-nav-open .dash-side { transform: none; }
  body.has-shell.is-rail .dash.is-nav-open .shell-backdrop { display: block; }
  body.has-shell .desk-board,
  body.has-shell .dash-actions { grid-template-columns: 1fr 1fr; }
  body.has-shell .dash-hero { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  body.has-shell .desk-board,
  body.has-shell .dash-actions { grid-template-columns: 1fr; }
}

body.has-shell .action-row,
body.has-shell .social-row,
body.has-shell .edit-dock-links { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
body.has-shell .dash-foot-public { align-items: flex-start; }
body.has-shell .dash-foot-public .social-row { width: 100%; }
body.has-shell a.edit-launch {
  position: static;
  z-index: auto;
  text-decoration: none;
}
body.has-shell .air-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
body.has-shell .air-head h1 {
  margin: 0.1rem 0 0.35rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.045em;
}
body.has-shell .air-head .lede { max-width: 38rem; margin: 0; }
body.has-shell .air-desk { display: grid; gap: 1rem; margin-top: 1rem; }
body.has-shell .air-stage {
  overflow: hidden;
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 18px;
  background: var(--broadcast-bg, #12141a);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}
body.has-shell .air-stage-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem 0.35rem;
  color: color-mix(in srgb, var(--broadcast-ink, #f4f3f7) 62%, transparent);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
body.has-shell .air-preview { margin: 0; }
body.has-shell .air-preview .broadcast-dock { border-radius: 1.25rem; }
body.has-shell .air-stack { display: grid; gap: 0.9rem; }
body.has-shell .air-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 18px;
  background: var(--surface, #fffdf8);
}
body.has-shell .air-card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
body.has-shell .air-card-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
body.has-shell .air-card-head .dash-kicker { margin: 0; }
body.has-shell .air-card-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent, #6e59e8) 16%, var(--surface, #fffdf8));
  color: var(--accent, #6e59e8);
}
body.has-shell .air-card-mark .icon { width: 1.15rem; height: 1.15rem; }
body.has-shell .air-card-breaking .air-card-mark {
  background: color-mix(in srgb, var(--breaking, #c62828) 16%, var(--surface, #fffdf8));
  color: var(--breaking, #c62828);
}
body.has-shell .air-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
body.has-shell .air-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 14px;
  background: var(--paper, #f6f3ec);
  cursor: pointer;
}
body.has-shell .air-toggle input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--accent, #6e59e8);
}
body.has-shell .air-toggle span { display: grid; gap: 0.12rem; min-width: 0; }
body.has-shell .air-toggle strong { font-size: 0.95rem; }
body.has-shell .air-toggle small { color: var(--muted, #6e675c); font-size: 0.78rem; line-height: 1.35; }
body.has-shell .air-toggle:has(input:checked) {
  border-color: var(--accent, #6e59e8);
  background: color-mix(in srgb, var(--accent, #6e59e8) 12%, var(--surface, #fffdf8));
  box-shadow: inset 0 0 0 1px var(--accent, #6e59e8);
}
body.has-shell .air-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
body.has-shell .air-box {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper, #f6f3ec) 55%, var(--surface, #fffdf8));
}
body.has-shell .air-box > .field-label { margin-top: 0.15rem; }
body.has-shell .air-line textarea {
  width: 100%;
  min-height: 4.5rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 12px;
  background: var(--surface, #fffdf8);
  color: var(--ink, #1c1914);
  font: inherit;
  line-height: 1.4;
}
body.has-shell .air-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
body.has-shell .air-chip {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}
body.has-shell .air-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
body.has-shell .air-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 999px;
  background: var(--surface, #fffdf8);
  font-size: 0.88rem;
  font-weight: 650;
}
body.has-shell .air-chip:has(input:checked) span {
  border-color: var(--accent, #6e59e8);
  background: var(--accent, #6e59e8);
  color: var(--on-accent, #fffdf8);
}
body.has-shell .air-save {
  position: sticky;
  bottom: 0.8rem;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.85rem 0.75rem 1rem;
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface, #fffdf8) 92%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
body.has-shell .air-save p { margin: 0; color: var(--muted, #6e675c); font-size: 0.85rem; }
@media (max-width: 800px) {
  body.has-shell .air-toggles,
  body.has-shell .air-split { grid-template-columns: 1fr; }
  body.has-shell .air-save,
  body.has-shell .air-head { align-items: stretch; flex-direction: column; }
}
body.has-shell.is-manage .story-form,
body.has-shell.is-manage .settings-panel {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 18px;
  background: var(--surface, #fffdf8);
}
body.has-shell.is-manage .story-index {
  display: grid;
  gap: 0.65rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}
body.has-shell.is-manage .story-index > li {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 16px;
  background: var(--surface, #fffdf8);
}
body.has-shell.is-manage .settings-nav a { border-radius: 16px; }
body.has-shell.is-manage .theme-group,
body.has-shell.is-manage .check-set {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper, #f6f3ec) 55%, var(--surface, #fffdf8));
}
  margin-top: 1.5rem;
  padding: 0.15rem 1rem 0.6rem;
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 14px;
  background: var(--surface, #fffdf8);
}
body.has-shell .theme-advanced > summary {
  padding: 0.85rem 0;
  cursor: pointer;
  font-weight: 750;
}
body.has-shell .theme-advanced .lede { margin-top: 0; }
body.has-shell .layout-board { display: grid; gap: 0.75rem; margin: 0 0 1.5rem; }
body.has-shell .layout-card.is-hidden { opacity: 0.55; }
body.has-shell .layout-card .link-button { margin-top: 0.35rem; }

body.has-shell .theme-picker { display: grid; gap: 1rem; }
body.has-shell .theme-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
  width: 100%;
}
body.has-shell .theme-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 14px;
  color: var(--ink, #1c1914);
  cursor: pointer;
}
body.has-shell .theme-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
body.has-shell .theme-card:has(input:checked) {
  border-color: var(--accent, #6e59e8);
  box-shadow: 0 0 0 2px var(--accent, #6e59e8);
}
body.has-shell .theme-plate {
  display: grid;
  align-content: start;
  min-height: 7.4rem;
  overflow: hidden;
}
body.has-shell .theme-plate-bar { height: 0.7rem; }
body.has-shell .theme-plate-title {
  padding: 0.85rem 0.9rem 0;
  font-family: var(--display), Georgia, serif;
  font-size: 1.45rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.03em;
}
body.has-shell .theme-plate-accent {
  width: 2.4rem;
  height: 0.35rem;
  margin: 0.75rem 0.9rem 0.9rem;
  border-radius: 999px;
}
body.has-shell .theme-copy { display: grid; gap: 0.25rem; padding: 0.8rem 0.9rem 0.95rem; }
body.has-shell .theme-copy strong { font-size: 1rem; }
body.has-shell .theme-copy .pill {
  justify-self: start;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--accent, #6e59e8);
  color: var(--on-accent, #fffdf8);
  font-size: 0.72rem;
  font-weight: 700;
}
body.has-shell .theme-copy .meta {
  color: var(--muted, #6e675c);
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.has-shell .theme-seed {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink, #1c1914);
}
body.has-shell .wx-board { display: grid; gap: 0.75rem; }
body.has-shell .wx-card { gap: 0.75rem; }
body.has-shell .wx-card.is-off { opacity: 0.62; }
body.has-shell .wx-card-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
body.has-shell .wx-card-top h2 { margin: 0; font-size: 1.2rem; letter-spacing: -0.03em; }
body.has-shell .wx-card .lede { margin: 0; }
body.has-shell .wx-handle,
body.has-shell .wx-move {
  border: 1px solid var(--line, #ddd4c4);
  border-radius: 10px;
  background: var(--paper, #f6f3ec);
  color: var(--ink, #1c1914);
  font: inherit;
  cursor: pointer;
}
body.has-shell .wx-handle {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  cursor: grab;
}
body.has-shell .wx-moves { display: flex; gap: 0.35rem; margin-left: auto; }
body.has-shell .wx-move { padding: 0.28rem 0.55rem; font-size: 0.75rem; font-weight: 700; }
body.has-shell .air-stage .wx-top h1,
body.has-shell .air-stage .wx-block h2 { color: var(--ink); }
