@import url("https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Gowun+Batang:wght@400;700&family=Gowun+Dodum&family=Hahmlet:wght@400;500;600;700;800;900&family=Song+Myung&display=swap");

:root {
  --ink: #17211b;
  --muted: #66736c;
  --paper: #f7f2e8;
  --paper-strong: #fffaf0;
  --line: rgba(23, 33, 27, 0.14);
  --forest: #214c36;
  --moss: #8daf63;
  --sun: #f6be45;
  --coral: #ef735c;
  --blue: #3f70d6;
  --cream: #fff7e4;
  --shadow: 0 24px 70px rgba(22, 30, 24, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-title: "Hahmlet", "Noto Serif KR", "Nanum Myeongjo", serif;
  --font-body: "Gowun Dodum", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 15% 8%, rgba(246, 190, 69, 0.28), transparent 28rem),
    radial-gradient(circle at 85% 2%, rgba(63, 112, 214, 0.18), transparent 26rem),
    linear-gradient(135deg, #f3eadb 0%, #f8f2e6 46%, #eaf0df 100%);
  min-height: 100vh;
}

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

button {
  cursor: pointer;
}

.app-shell {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 60px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(110deg, rgba(33, 76, 54, 0.94), rgba(37, 65, 70, 0.88)),
    linear-gradient(135deg, #254c36, #17211b);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 480px;
  height: 480px;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle, rgba(246, 190, 69, 0.68), rgba(246, 190, 69, 0) 68%);
  animation: floatGlow 9s var(--ease) infinite alternate;
}

.hero::after {
  width: 360px;
  height: 360px;
  left: 45%;
  bottom: -220px;
  background: radial-gradient(circle, rgba(141, 175, 99, 0.55), rgba(141, 175, 99, 0) 72%);
  animation: floatGlow 11s var(--ease) infinite alternate-reverse;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 18px 22px;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 15px;
  color: rgba(255, 247, 228, 0.82);
  background: rgba(255, 255, 255, 0.08);
  transition: 180ms var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: #17211b;
  background: var(--sun);
  transform: translateY(-1px);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 48px 54px 46px;
}

.hero-copy {
  max-width: 1180px;
  animation: riseIn 680ms var(--ease) both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

.success-log-eyebrow span {
  color: var(--sun);
}

.success-log-eyebrow {
  font-size: 1.56rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.hero h1 {
  display: flex;
  max-width: 1180px;
  align-items: baseline;
  margin: 0;
  font-family: var(--font-title);
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.hero-title-main,
.hero-title-separator,
.hero-title-sub {
  display: inline;
}

.hero-title-main {
  font-size: clamp(3rem, 6vw, 6.8rem);
  line-height: 0.9;
}

.hero-title-separator,
.hero-title-sub {
  font-size: clamp(1.1rem, 2.2vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.hero-title-separator {
  margin-left: 0.16em;
  margin-right: 0.12em;
}

.hero-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 247, 228, 0.82);
  font-size: 1.08rem;
  line-height: 1.58;
}

.hero-copy p:not(.eyebrow) + p:not(.eyebrow) {
  margin-top: 3px;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.ghost-action {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  transition: 180ms var(--ease);
}

.primary-action {
  color: #1d2b21;
  background: var(--sun);
  box-shadow: 0 14px 30px rgba(246, 190, 69, 0.28);
}

.secondary-action {
  color: var(--cream);
  background: var(--forest);
}

.ghost-action {
  color: var(--forest);
  border: 1px solid rgba(33, 76, 54, 0.2);
  background: rgba(255, 255, 255, 0.55);
}

.hero .secondary-action {
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.primary-action:hover,
.secondary-action:hover,
.ghost-action:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
}

.danger-action {
  color: #fff7e4;
  background: #b83225;
  box-shadow: 0 14px 30px rgba(184, 50, 37, 0.22);
}

.hero-card,
.tip-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(14px);
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  animation: riseIn 820ms 120ms var(--ease) both;
}

.card-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 11px;
  color: #223629;
  background: var(--sun);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-card h2,
.tip-card h3 {
  margin: 18px 0 12px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.hero-card p,
.tip-card p,
.tip-card li {
  line-height: 1.7;
}

.hero-card p {
  color: rgba(255, 247, 228, 0.76);
}

main {
  margin-top: 28px;
}

.view {
  display: none;
  animation: riseIn 420ms var(--ease) both;
}

.view.is-visible {
  display: block;
}

.section-heading {
  margin: 0 0 22px;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 240, 0.7);
  box-shadow: 0 18px 48px rgba(23, 33, 27, 0.08);
}

.section-heading.compact {
  padding: 30px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.07em;
}

.section-heading p:last-child {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-heading p.heading-description {
  max-width: 860px;
  margin: 12px 0 0;
  color: var(--ink);
  line-height: 1.75;
}

.section-heading .support-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--forest);
  background: rgba(246, 190, 69, 0.28);
  font-weight: 900;
}

.section-heading .collect-guidance {
  display: grid;
  gap: 2px;
  max-width: 860px;
  margin-top: 12px;
  color: var(--ink);
  line-height: 1.65;
}

.section-heading .collect-guidance p {
  max-width: none;
  margin: 0;
  color: inherit;
  line-height: inherit;
}

.section-heading .collect-required-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.metric-card,
.story-card,
.studio-controls,
.preview-panel,
.gallery-item,
.empty-state {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 240, 0.74);
  box-shadow: 0 18px 46px rgba(23, 33, 27, 0.09);
}

.metric-card {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px 26px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
}

.metric-card small {
  position: relative;
  min-height: 1.55em;
  margin-top: auto;
  font-size: 1.4em;
  font-weight: 900;
  line-height: 1.35;
}

.ranking-rule-hint {
  width: fit-content;
  cursor: help;
  outline: 0;
}

.ranking-rule-hint::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: max-content;
  max-width: 260px;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--cream);
  background: rgba(23, 33, 27, 0.94);
  box-shadow: 0 12px 30px rgba(23, 33, 27, 0.18);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 160ms var(--ease);
}

.ranking-rule-hint:hover::after,
.ranking-rule-hint:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.metric-card strong {
  display: block;
  margin: 36px 0 0;
  font-family: var(--font-title);
  color: var(--forest);
  font-size: clamp(3.1rem, 5.2vw, 5.2rem);
  line-height: 0.9;
}

.division-podium {
  position: relative;
  width: min(100%, 260px);
  height: 92px;
  align-self: flex-start;
  margin: 24px 0 0 -24px;
  overflow: visible;
}

.podium-line {
  position: absolute;
  inset: -8px 0 0;
  width: 100%;
  height: 92px;
  overflow: visible;
}

.podium-line path {
  fill: none;
  stroke: var(--forest);
  stroke-width: 4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.podium-slot {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 72px;
  height: 56px;
  place-items: center;
  border-radius: 18px;
  cursor: help;
  outline: 0;
  transform: translateX(-50%);
}

.podium-silver {
  left: 20%;
  top: 40px;
}

.podium-gold {
  left: 50%;
  top: 18px;
}

.podium-bronze {
  left: 80%;
  top: 56px;
}

.podium-slot:focus-visible {
  box-shadow: 0 0 0 4px rgba(141, 175, 99, 0.22);
}

.podium-slot::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 4;
  width: max-content;
  max-width: 190px;
  border: 1px solid rgba(33, 76, 54, 0.15);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--cream);
  background: rgba(23, 33, 27, 0.94);
  box-shadow: 0 12px 30px rgba(23, 33, 27, 0.18);
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: 160ms var(--ease);
}

.podium-slot:hover::after,
.podium-slot:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.form-layout {
  display: block;
  align-items: start;
}

.story-form,
.tip-card {
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 18px 48px rgba(23, 33, 27, 0.08);
}

.story-form {
  padding: 20px;
}

.tip-card {
  position: sticky;
  top: 22px;
  color: var(--ink);
}

.tip-card .card-kicker {
  color: var(--cream);
  background: var(--forest);
}

.tip-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.template-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.template-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.template-table th,
.template-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  vertical-align: middle;
}

.template-table tr:last-child th,
.template-table tr:last-child td {
  border-bottom: 0;
}

.template-table th {
  width: 150px;
  color: var(--forest);
  background: rgba(141, 175, 99, 0.16);
  text-align: left;
  font-size: 0.92rem;
}

.template-table td {
  background: rgba(255, 255, 255, 0.38);
}

.template-table input,
.template-table select,
.template-table textarea,
.studio-controls input,
.studio-controls select,
.studio-controls textarea,
.search-box input,
.search-box select {
  width: 100%;
  border: 1px solid rgba(23, 33, 27, 0.18);
  border-radius: 14px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  outline: 0;
  transition: 160ms var(--ease);
}

.template-table textarea,
.studio-controls textarea {
  resize: vertical;
}

.template-table input:focus,
.template-table select:focus,
.template-table textarea:focus,
.studio-controls select:focus,
.studio-controls textarea:focus,
.search-box input:focus,
.search-box select:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(141, 175, 99, 0.22);
}

.template-table .is-invalid {
  border-color: #ce3828;
  box-shadow: 0 0 0 4px rgba(206, 56, 40, 0.16);
}

.input-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.privacy-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 28px;
  border: 1px solid rgba(33, 76, 54, 0.16);
  border-radius: 18px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.48);
  line-height: 1.7;
}

.privacy-consent input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--forest);
}

.privacy-consent input.is-invalid {
  outline: 3px solid rgba(206, 56, 40, 0.22);
  outline-offset: 3px;
}

.privacy-consent strong,
.privacy-consent span span {
  display: block;
}

.privacy-consent strong {
  margin-bottom: 6px;
}

.alert-panel {
  margin-bottom: 16px;
  border: 1px solid rgba(206, 56, 40, 0.28);
  border-radius: 18px;
  padding: 14px 16px;
  color: #7c2018;
  background: #fff0eb;
  line-height: 1.6;
}

.alert-panel strong {
  display: block;
  margin-bottom: 6px;
}

.toolbar {
  display: flex;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 240, 0.68);
}

.search-box {
  display: grid;
  flex: 1;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.month-filter {
  flex: 0 0 220px;
}

.story-grid,
.card-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-card,
.gallery-item {
  overflow: hidden;
}

.story-thumb {
  height: 190px;
  background:
    radial-gradient(circle at 20% 20%, rgba(246, 190, 69, 0.58), transparent 34%),
    linear-gradient(135deg, rgba(33, 76, 54, 0.9), rgba(63, 112, 214, 0.55));
}

.story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-body,
.gallery-body {
  padding: 20px;
}

.story-meta,
.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--forest);
  background: rgba(141, 175, 99, 0.18);
  font-size: 0.75rem;
  font-weight: 900;
}

.story-card h3,
.gallery-item h3 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.04em;
}

.story-card p,
.gallery-item p {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.68;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.story-actions,
.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 33, 27, 0.46);
  backdrop-filter: blur(8px);
}

.confirm-dialog {
  width: min(460px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  padding: 28px;
  background: var(--paper-strong);
  box-shadow: 0 28px 90px rgba(23, 33, 27, 0.28);
}

.confirm-dialog h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 1.7rem;
  letter-spacing: -0.06em;
}

.confirm-dialog p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.credential-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.credential-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.credential-field input {
  width: 100%;
  border: 1px solid rgba(23, 33, 27, 0.18);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  outline: 0;
}

.credential-field input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(141, 175, 99, 0.22);
}

.story-detail-dialog {
  width: min(760px, 100%);
}

.story-detail-header {
  display: grid;
  gap: 12px;
}

.story-detail-image {
  display: block;
  width: 100%;
  max-height: 280px;
  margin-top: 18px;
  border-radius: 22px;
  object-fit: cover;
}

.story-detail-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

.story-detail-list label {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(23, 33, 27, 0.08);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.58);
}

.story-detail-list span {
  color: var(--forest);
  font-weight: 900;
}

.story-detail-list input,
.story-detail-list select,
.story-detail-list textarea {
  width: 100%;
  border: 1px solid rgba(23, 33, 27, 0.14);
  border-radius: 12px;
  padding: 10px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  outline: 0;
}

.story-detail-list textarea {
  resize: vertical;
}

.story-detail-list input:focus,
.story-detail-list select:focus,
.story-detail-list textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(141, 175, 99, 0.18);
}

.story-detail-list .is-invalid {
  border-color: #ce3828;
  box-shadow: 0 0 0 4px rgba(206, 56, 40, 0.16);
}

.tiny-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--cream);
  background: var(--forest);
  font-size: 0.82rem;
  font-weight: 900;
}

.tiny-button.alt {
  color: var(--forest);
  background: rgba(33, 76, 54, 0.1);
}

.studio-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.studio-controls,
.preview-panel {
  padding: 22px;
}

.studio-controls {
  display: grid;
  gap: 18px;
}

.studio-controls label,
.studio-controls fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.studio-controls fieldset {
  border: 0;
  padding: 0;
}

.studio-controls legend {
  margin-bottom: 8px;
  color: var(--muted);
}

.template-options {
  display: grid;
  gap: 10px;
}

.template-choice {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(23, 33, 27, 0.14);
  border-radius: 18px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
}

.template-choice input {
  width: 20px;
  height: 20px;
  accent-color: var(--forest);
}

.template-choice strong,
.template-choice small {
  display: block;
}

.template-choice small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.button-stack {
  display: grid;
  gap: 9px;
}

.button-stack .primary-action,
.button-stack .secondary-action,
.button-stack .ghost-action {
  width: 100%;
}

.preview-panel {
  min-height: 720px;
}

.canvas-frame {
  display: grid;
  place-items: center;
  border-radius: 30px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(33, 76, 54, 0.1), rgba(246, 190, 69, 0.16)),
    rgba(255, 255, 255, 0.45);
}

#cardCanvas {
  width: min(100%, 640px);
  height: auto;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(23, 33, 27, 0.24);
}

.status-text {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--forest);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  text-align: center;
}

.empty-state span {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.empty-state p {
  margin: 10px 0 0;
  color: var(--muted);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-24px, 26px, 0) scale(1.08);
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .form-layout,
  .studio-layout {
    grid-template-columns: 1fr;
  }

  .tip-card {
    position: static;
  }

  .story-grid,
  .card-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .app-shell {
    width: min(100% - 22px, 1440px);
    padding-top: 12px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    justify-content: flex-start;
  }

  .hero-grid {
    padding: 52px 22px 28px;
  }

  .hero h1 {
    display: block;
    font-size: clamp(2.8rem, 17vw, 4.8rem);
    white-space: normal;
  }

  .hero-title-main {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .hero-title-separator,
  .hero-title-sub {
    font-size: clamp(1rem, 5.5vw, 1.65rem);
    white-space: normal;
  }

  .success-log-eyebrow {
    font-size: 1.2rem;
  }

  .section-heading,
  .section-heading.compact {
    padding: 24px;
  }

  .metric-grid,
  .story-grid,
  .card-gallery {
    grid-template-columns: 1fr;
  }

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

  .confirm-actions {
    flex-direction: column;
  }

  .story-detail-list label {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .template-table,
  .template-table tbody,
  .template-table tr,
  .template-table th,
  .template-table td {
    display: block;
    width: 100%;
  }

  .template-table tr {
    border-bottom: 1px solid var(--line);
  }

  .template-table th,
  .template-table td {
    border-bottom: 0;
  }
}
