:root {
  --ink-50: #f7f7f5;
  --ink-100: #ecece8;
  --ink-200: #d9d9d2;
  --ink-300: #c3c3ba;
  --ink-500: #73736b;
  --ink-700: #3f4039;
  --ink-900: #20211d;
  --coral-50: #fff3ed;
  --coral-100: #ffe4d6;
  --coral-500: #de6a46;
  --coral-600: #c95535;
  --coral-700: #9f3d28;
  --moss-50: #f1f6ee;
  --moss-500: #69845f;
  --moss-700: #46603e;
  --danger: #9f2318;
  --display: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --shadow-soft: 0 18px 50px rgba(32, 33, 29, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --row-gap: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-50);
  color: var(--ink-900);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(222, 106, 70, 0.35);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--coral-100);
  color: var(--ink-900);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- */
/* Chrome                                                            */
/* ---------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 247, 245, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-200);
}

.topbar-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  min-height: 68px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--coral-500);
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.brand-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- */
/* Buttons & badges                                                  */
/* ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  background: #fff;
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease,
    color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--coral-500);
  color: var(--coral-700);
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: var(--coral-500);
  border-color: var(--coral-500);
  color: #fff;
}

.btn-primary:hover {
  background: var(--coral-600);
  border-color: var(--coral-600);
  color: #fff;
}

.btn-dark {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-700);
  border-color: var(--ink-700);
  color: #fff;
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  font-size: 13px;
  padding: 8px 14px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: var(--coral-50);
  color: var(--coral-700);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.badge-muted {
  background: var(--ink-100);
  color: var(--ink-500);
}

.badge-moss {
  background: var(--moss-50);
  color: var(--moss-700);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral-600);
}

/* ---------------------------------------------------------------- */
/* Dashboard                                                         */
/* ---------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: end;
  padding: 56px 0 44px;
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.045em;
  max-width: 20ch;
}

.hero-lead {
  margin-top: 20px;
  max-width: 48ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-500);
}

.studio-card {
  background: var(--ink-900);
  color: #fff;
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.studio-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}

.studio-card-head strong {
  font-family: var(--display);
  font-size: 24px;
  color: #fff;
  letter-spacing: -0.02em;
}

.studio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.studio-stat span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.studio-stat strong {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.studio-note {
  margin-top: 22px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 18px;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 700;
}

.section-head p {
  font-size: 13px;
  color: var(--ink-500);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  padding-bottom: 56px;
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 22px;
  padding: 22px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--ink-300);
}

.story-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.story-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.story-card .audience {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--ink-100);
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--coral-500);
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
}

.story-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ink-100);
}

.story-card-foot time {
  font-size: 11.5px;
  color: var(--ink-500);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.link-btn {
  border: 0;
  background: none;
  padding: 5px 7px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-500);
  text-decoration: none;
}

.link-btn:hover {
  background: var(--ink-50);
  color: var(--coral-700);
}

.link-btn[data-tone="danger"]:hover {
  background: #fdeceb;
  color: var(--danger);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1.5px dashed var(--ink-200);
  border-radius: 24px;
  background: #fff;
  padding: 52px 24px;
  text-align: center;
}

.empty-state h3 {
  font-size: 20px;
}

.empty-state p {
  margin: 10px auto 22px;
  max-width: 44ch;
  color: var(--ink-500);
  font-size: 14px;
}

.page-foot {
  border-top: 1px solid var(--ink-200);
  background: #fff;
}

.page-foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px;
  font-size: 12.5px;
  color: var(--ink-500);
}

/* ---------------------------------------------------------------- */
/* Editor                                                            */
/* ---------------------------------------------------------------- */

.editor-topbar .topbar-inner {
  max-width: 1400px;
}

.editor-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.back-link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--ink-200);
  background: #fff;
  text-decoration: none;
  color: var(--ink-700);
  flex-shrink: 0;
}

.back-link:hover {
  border-color: var(--coral-500);
  color: var(--coral-700);
}

.title-input {
  width: min(460px, 100%);
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 7px 11px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background 180ms ease, border-color 180ms ease;
}

.title-input:hover {
  border-color: var(--ink-200);
  background: #fff;
}

.title-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--coral-500);
  box-shadow: 0 0 0 3px rgba(222, 106, 70, 0.14);
}

.save-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--moss-700);
  white-space: nowrap;
}

.save-status[data-state="dirty"] {
  color: var(--ink-500);
}

.save-status[data-state="saving"] {
  color: var(--coral-600);
}

.save-status[data-state="error"] {
  color: var(--danger);
}

.menu {
  position: relative;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 196px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.menu-panel a,
.menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
}

.menu-panel a:hover,
.menu-panel button:hover {
  background: var(--ink-50);
  color: var(--coral-700);
}

.editor-shell {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px 72px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 292px;
  gap: 26px;
  align-items: start;
}

.editor-side,
.editor-aside {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.side-head h2 {
  font-size: 15px;
  font-weight: 700;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-700);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.step-link:hover {
  border-color: var(--coral-500);
}

.step-num {
  width: 17px;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-500);
}

.step-tick {
  margin-left: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-200);
  display: grid;
  place-items: center;
  font-size: 9px;
  color: transparent;
  flex-shrink: 0;
}

.step-link.is-complete .step-tick {
  background: var(--moss-50);
  border-color: var(--moss-500);
  color: var(--moss-700);
}

.step-link.is-active {
  background: var(--coral-50);
  border-color: var(--coral-500);
  color: var(--ink-900);
}

.step-link.is-active .step-num {
  color: var(--coral-700);
}

.side-progress {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  padding: 15px;
}

.side-progress p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-500);
  margin-top: 10px;
}

.editor-main {
  min-width: 0;
}

.panel {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.step-head .step-kicker {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--coral-600);
}

.step-head h2 {
  margin-top: 6px;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.step-head .step-desc {
  margin-top: 10px;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-500);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--row-gap);
  margin-top: 26px;
}

.field-group {
  min-width: 0;
}

.field-group.span-2 {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  background: #fff;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-900);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.textarea {
  resize: vertical;
  min-height: 100px;
}

.textarea[data-size="l"] {
  min-height: 150px;
}

.textarea[data-size="xl"] {
  min-height: 210px;
}

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-500) 50%),
    linear-gradient(135deg, var(--ink-500) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--coral-500);
  box-shadow: 0 0 0 3px rgba(222, 106, 70, 0.12);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice label {
  display: block;
  height: 100%;
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease,
    box-shadow 180ms ease;
}

.choice label:hover {
  transform: translateY(-1px);
  border-color: var(--coral-500);
}

.choice strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}

.choice span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-500);
}

.choice input:checked + label {
  border-color: var(--coral-500);
  background: var(--coral-50);
  box-shadow: inset 0 0 0 1px var(--coral-500);
}

.choice input:focus-visible + label {
  outline: 3px solid rgba(222, 106, 70, 0.32);
  outline-offset: 2px;
}

.field-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  min-height: 22px;
}

.field-hint {
  font-size: 11.5px;
  color: var(--ink-500);
}

.field-ai {
  border: 0;
  background: none;
  padding: 2px 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--coral-700);
}

.field-ai:hover {
  text-decoration: underline;
}

.field-ai:disabled {
  opacity: 0.5;
  cursor: wait;
}

.generate-bar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-100);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.generate-bar .hint {
  font-size: 12px;
  color: var(--ink-500);
  max-width: 46ch;
}

.note {
  margin-top: 16px;
  border-left: 3px solid var(--coral-500);
  border-radius: 0 12px 12px 0;
  background: #fff8f4;
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-700);
  white-space: pre-line;
}

.editor-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.editor-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 20px;
  padding: 20px;
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.summary-head h2 {
  font-size: 15px;
  font-weight: 700;
}

.summary-head span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss-700);
}

.summary-item {
  margin-top: 16px;
}

.summary-item.is-divided {
  padding-top: 16px;
  border-top: 1px solid var(--ink-100);
}

.summary-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.summary-value {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-700);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.summary-value.is-empty {
  color: var(--ink-300);
}

.summary-action {
  margin-top: 18px;
  width: 100%;
}

.editor-loading,
.editor-error {
  max-width: 520px;
  margin: 90px auto;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  text-align: center;
}

.editor-error p {
  margin: 10px 0 20px;
  color: var(--ink-500);
}

/* ---------------------------------------------------------------- */
/* Dialog & toast                                                    */
/* ---------------------------------------------------------------- */

dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  box-shadow: 0 30px 80px rgba(32, 33, 29, 0.25);
  color: var(--ink-900);
}

dialog::backdrop {
  background: rgba(32, 33, 29, 0.38);
  backdrop-filter: blur(3px);
}

.dialog-body {
  padding: 26px;
}

.dialog-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dialog-body > p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-500);
}

.dialog-form {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 60;
  transform: translate(-50%, 16px);
  max-width: min(540px, calc(100vw - 32px));
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast[data-tone="error"] {
  background: var(--danger);
}

/* ---------------------------------------------------------------- */
/* Responsive                                                        */
/* ---------------------------------------------------------------- */

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

  .editor-aside {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px 0 34px;
  }

  .hero h1 {
    max-width: 24ch;
  }

  .editor-shell {
    grid-template-columns: 1fr;
    padding: 18px 20px 56px;
    gap: 18px;
  }

  .editor-side {
    position: static;
  }

  .step-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 7px;
    scrollbar-width: thin;
  }

  .step-list li {
    flex: 0 0 auto;
  }

  .step-link {
    white-space: nowrap;
    padding: 8px 12px;
  }

  .step-tick {
    display: none;
  }

  .side-progress {
    display: none;
  }

  .editor-heading {
    order: 2;
    width: 100%;
    flex-basis: 100%;
  }

  .editor-topbar .topbar-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .topbar-actions {
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  .field-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 20px;
    border-radius: 20px;
  }

  .container {
    padding: 0 16px;
  }

  .topbar-inner {
    padding: 10px 16px;
  }

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

  .studio-card {
    padding: 22px;
  }

  .save-status {
    display: none;
  }

  .title-input {
    width: 100%;
    font-size: 15px;
  }

  .editor-footer {
    justify-content: space-between;
  }

  .hero-lead {
    font-size: 15.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
