:root {
  --ink: #1f2a2a;
  --muted: #677271;
  --paper: #fffdf8;
  --cream: #fff6e7;
  --orange: #ff6b35;
  --orange-dark: #df4f1e;
  --green: #1e7b69;
  --green-soft: #dff4ec;
  --blue-soft: #e5eefc;
  --yellow-soft: #fff0b8;
  --pink-soft: #fbe7e4;
  --line: #e8e2d7;
  --shadow: 0 20px 55px rgba(60, 48, 32, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 99;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(232, 226, 215, .82);
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong { display: block; font-size: 16px; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: -1px; }
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange);
  overflow: hidden;
}
.brand-mark i { position: absolute; display: block; background: #fff; border-radius: 50%; }
.brand-mark i:nth-child(1) { width: 8px; height: 8px; left: 10px; top: 10px; }
.brand-mark i:nth-child(2) { width: 8px; height: 8px; right: 10px; top: 10px; }
.brand-mark i:nth-child(3) { width: 20px; height: 8px; left: 11px; bottom: 9px; border-radius: 0 0 12px 12px; }
.header-note { color: var(--green); font-size: 13px; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.admin-entry { padding: 7px 11px; border: 1px solid #d7cfc1; border-radius: 5px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.admin-entry:hover { border-color: var(--green); color: var(--green); background: #f1faf6; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 107, 53, .08) 0 76px, transparent 77px),
    radial-gradient(circle at 92% 82%, rgba(30, 123, 105, .08) 0 110px, transparent 111px),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(31, 42, 42, .13);
  border-radius: 50%;
}
.hero::before { width: 270px; height: 270px; left: -150px; bottom: -150px; }
.hero::after { width: 180px; height: 180px; right: -80px; top: -88px; }
.hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .72fr);
  align-items: center;
  gap: 76px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.eyebrow, .section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}
.eyebrow span { display: inline-block; width: 22px; height: 2px; margin: 0 7px 4px 0; background: var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.2vw, 70px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
h1 em { color: var(--orange); font-style: normal; white-space: nowrap; }
.hero-lead { max-width: 660px; margin-bottom: 30px; color: #53605f; font-size: 18px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--orange); box-shadow: 0 10px 24px rgba(223, 79, 30, .22); }
.button-primary:hover { background: var(--orange-dark); }
.button-secondary { border-color: #d7cfc1; background: rgba(255,255,255,.62); }
.privacy-line { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.privacy-line span { color: var(--green); font-weight: 900; }

.today-card {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(31,42,42,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.today-card::before {
  content: "";
  position: absolute;
  width: 82px;
  height: 20px;
  left: 50%;
  top: -11px;
  background: rgba(255, 211, 97, .76);
  transform: translateX(-50%) rotate(-2deg);
}
.today-card-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.today-card-head span { font-weight: 900; font-size: 19px; }
.today-card-head b { color: var(--orange); font-size: 13px; }
.steps { list-style: none; margin: 8px 0 18px; padding: 0; }
.steps li { display: flex; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px dashed var(--line); }
.steps li > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}
.steps li:nth-child(2) > span { color: var(--ink); background: var(--yellow-soft); }
.steps li:nth-child(3) > span { background: var(--orange); }
.steps strong, .steps small { display: block; }
.steps strong { font-size: 15px; }
.steps small { color: var(--muted); font-size: 12px; }
.mini-progress { display: flex; gap: 6px; }
.mini-progress i { height: 5px; flex: 1; border-radius: 4px; background: var(--green); opacity: .17; }
.mini-progress i:nth-child(-n+3) { opacity: .9; }

.format-bar { border-bottom: 1px solid var(--line); background: white; }
.format-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.format-bar-inner > div { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 24px 20px; border-right: 1px solid var(--line); }
.format-bar-inner > div:first-child { border-left: 1px solid var(--line); }
.format-bar-inner strong { align-self: end; font-size: 14px; }
.format-bar-inner small { color: var(--muted); font-size: 11px; }
.format-icon { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; color: white; font-size: 13px; font-weight: 900; }
.format-icon.word { background: #2868c7; }
.format-icon.pdf { background: #d84a3a; }
.format-icon.html { background: #dc6a2c; }
.format-icon.text { background: #485b59; }

.resource-section { padding: 92px 0 100px; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.section-title-row h2, .promise-section h2, .announcement-section h2 { margin-bottom: 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -.035em; }
.section-title-row > p { margin: 0; color: var(--muted); font-size: 13px; }
.section-title-row > p strong { color: var(--orange); font-size: 26px; }
.cloud-upload-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 20px 22px;
  border: 1px dashed #b9c9c5;
  border-radius: 8px;
  background: #f1faf6;
}
.cloud-upload-panel > div { display: flex; align-items: center; gap: 15px; }
.cloud-upload-panel strong { display: block; font-size: 15px; }
.cloud-upload-panel p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.upload-symbol { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--green); font-size: 22px; }
.upload-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0 17px; border: 0; border-radius: 5px; color: white; background: var(--green); font-size: 13px; font-weight: 800; cursor: pointer; }
.upload-button:hover { background: #155f51; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cloud-status { min-height: 22px; margin: -10px 0 20px; color: var(--muted); font-size: 12px; }
.cloud-status.is-ready { color: var(--green); }
.cloud-status.is-error { color: #b44235; }
.local-files { margin-bottom: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.local-files-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 10px; }
.local-files-head button { padding: 5px 9px; border: 0; color: var(--muted); background: transparent; font-size: 12px; }
.local-file-row { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.local-file-row > span { width: 42px; height: 32px; display: grid; place-items: center; border-radius: 4px; color: white; background: var(--ink); font-size: 10px; font-weight: 900; }
.local-file-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.local-file-row small { color: var(--muted); font-size: 11px; }
.local-file-row button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--green); background: white; font-size: 12px; font-weight: 800; }
.local-file-actions { display: flex; gap: 7px; }
.local-file-row .local-file-delete { color: #b44235; }
.local-file-row .local-file-delete:hover { border-color: #d7a29b; background: #fff5f3; }
.resource-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 28px; }
.search-box { position: relative; display: block; }
.search-box > span:first-child {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid #81908e;
  border-radius: 50%;
  transform: translateY(-57%);
}
.search-box > span:first-child::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  background: #81908e;
  transform: rotate(45deg);
}
.search-box input {
  width: 100%;
  height: 50px;
  padding: 0 18px 0 48px;
  border: 1px solid #d9d5cc;
  border-radius: 6px;
  color: var(--ink);
  background: white;
  outline: none;
}
.search-box input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,123,105,.12); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #596563;
  background: white;
  font-size: 13px;
}
.filter:hover, .filter.is-active { border-color: var(--ink); color: white; background: var(--ink); }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.resource-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.resource-card:hover { transform: translateY(-4px); border-color: #d6cfc2; box-shadow: 0 18px 35px rgba(60,48,32,.08); }
.resource-card.featured { grid-column: span 2; background: linear-gradient(125deg, #fff7e8 0%, #fff 70%); }
.resource-card[hidden] { display: none; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.type { padding: 4px 9px; border-radius: 4px; color: var(--ink); font-weight: 800; }
.type-script { background: var(--yellow-soft); }
.type-shoot { background: var(--blue-soft); }
.type-method { background: var(--green-soft); }
.type-parent { background: var(--pink-soft); }
.file-format { color: #5f6b69; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.file-format-html { color: #c65320; }
.resource-card h3 { margin: 24px 0 12px; font-size: 23px; line-height: 1.35; letter-spacing: -.02em; }
.resource-card p { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.card-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: auto 0 20px; }
.card-meta span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; color: #6a7473; font-size: 11px; }
.card-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.preview-link { padding: 0 13px; border: 1px solid #cdd8d5; border-radius: 4px; color: var(--green); background: white; font-size: 13px; font-weight: 800; }
.preview-link:hover { border-color: var(--green); background: #f2faf7; }
.download-link { display: flex; align-items: center; justify-content: space-between; color: var(--green); font-size: 14px; font-weight: 900; text-decoration: none; }
.download-link span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--green); transition: transform .18s ease; }
.download-link:hover span { transform: translateY(2px); }
.empty-state { padding: 54px 20px; text-align: center; border: 1px dashed var(--line); background: var(--cream); }
.empty-state p { margin-bottom: 0; color: var(--muted); }

.promise-section { padding: 90px 0; color: white; background: var(--green); }
.promise-section .section-kicker { color: #bfe8dc; }
.promise-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.promise-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise-list > div { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.3); }
.promise-list span { display: block; margin-bottom: 26px; color: #bfe8dc; font-size: 12px; font-weight: 900; }
.promise-list strong { display: block; font-size: 17px; }
.promise-list p { margin: 8px 0 0; color: rgba(255,255,255,.72); font-size: 13px; }

.announcement-section { padding: 90px 0; background: #f5f1ea; }
.announcement-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.announcement-card > div:first-child > p:last-child { margin: 16px 0 0; color: var(--muted); }
.announcement-copy { padding: 26px; border-left: 4px solid var(--orange); background: white; box-shadow: 0 12px 30px rgba(60,48,32,.06); }
.announcement-copy p { color: #4d5958; font-size: 14px; }
.announcement-copy button {
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 5px;
  color: white;
  background: var(--ink);
  font-weight: 800;
}
.announcement-copy button:hover { background: var(--green); }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-inner strong { font-size: 14px; }
.footer-inner p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 11px 18px;
  border-radius: 5px;
  color: white;
  background: var(--ink);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.viewer {
  width: min(1100px, calc(100% - 32px));
  height: min(850px, calc(100% - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: white;
  box-shadow: 0 35px 90px rgba(16,27,25,.3);
}
.viewer::backdrop { background: rgba(20,32,30,.72); backdrop-filter: blur(4px); }
.viewer-shell { height: 100%; display: flex; flex-direction: column; }
.viewer-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 18px 12px 22px; border-bottom: 1px solid var(--line); }
.viewer-head span, .viewer-head strong { display: block; }
.viewer-head span { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.viewer-head strong { max-width: 78vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.viewer-head button { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border: 0; border-radius: 50%; color: var(--ink); background: #f3f1ed; font-size: 27px; line-height: 1; }
.viewer-body { position: relative; flex: 1; min-height: 0; overflow: auto; background: #ece9e3; }
.viewer-body iframe, .viewer-body object { width: 100%; height: 100%; display: block; border: 0; background: white; }
.text-preview { width: min(760px, calc(100% - 32px)); min-height: calc(100% - 32px); margin: 16px auto; padding: 36px; white-space: pre-wrap; word-break: break-word; color: #293432; background: white; box-shadow: 0 6px 22px rgba(25,35,33,.08); font: 15px/1.9 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.viewer-loading, .viewer-error { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--muted); background: #f5f2ec; }
.viewer-error strong { display: block; margin-bottom: 8px; color: var(--ink); }
.viewer-body .docx-wrapper { padding: 28px 0; background: #ece9e3; }

.admin-dialog {
  width: min(720px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: white;
  box-shadow: 0 35px 90px rgba(16,27,25,.3);
}
.admin-dialog::backdrop { background: rgba(20,32,30,.72); backdrop-filter: blur(4px); }
.admin-shell { min-height: 0; }
.admin-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px 14px 24px; border-bottom: 1px solid var(--line); }
.admin-head span, .admin-head strong { display: block; }
.admin-head span { color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.admin-head strong { font-size: 18px; }
.admin-head button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--ink); background: #f3f1ed; font-size: 27px; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; max-height: calc(100vh - 150px); padding: 24px; overflow: auto; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-size: 12px; font-weight: 900; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d9d5cc; border-radius: 5px; color: var(--ink); background: white; outline: none; }
.field input, .field select { height: 44px; padding: 0 12px; }
.field textarea { resize: vertical; min-height: 84px; padding: 10px 12px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30,123,105,.12); }
.file-field { padding: 16px; border: 1px dashed #b9c9c5; border-radius: 6px; background: #f1faf6; }
.file-field input { height: auto; padding: 8px; border: 0; background: transparent; }
.file-field small { color: var(--muted); font-size: 11px; }
.admin-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.admin-form-actions button { min-height: 44px; padding: 0 18px; border-radius: 5px; font-size: 13px; font-weight: 900; }
.admin-submit { border: 0; color: white; background: var(--green); }
.admin-submit:disabled { cursor: wait; opacity: .6; }
.admin-login { border: 1px solid var(--green); color: var(--green); background: #f1faf6; }
.admin-login:disabled { cursor: wait; opacity: .6; }
.admin-logout { border: 1px solid var(--line); color: #b44235; background: white; }
.upload-progress { min-height: 22px; margin: -6px 0 0; color: var(--muted); font-size: 12px; }
.upload-progress.is-error { color: #b44235; }
.cloud-file-delete { margin-left: 6px; padding: 0 8px; border: 0; color: #b44235; background: transparent; font-size: 11px; font-weight: 800; }
.cloud-file-delete:hover { text-decoration: underline; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 46px; }
  .today-card { max-width: 620px; transform: none; }
  .resource-toolbar { grid-template-columns: 1fr; }
  .format-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .format-bar-inner > div:nth-child(3) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .format-bar-inner > div:nth-child(4) { border-top: 1px solid var(--line); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-grid, .announcement-card { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 68px; }
  .brand small { display: none; }
  .header-note { font-size: 11px; }
  .hero-grid { padding-top: 56px; padding-bottom: 58px; }
  h1 { font-size: clamp(38px, 12vw, 54px); }
  h1 em { white-space: normal; }
  .hero-lead { font-size: 16px; line-height: 1.8; }
  .button { flex: 1 1 150px; padding: 0 16px; }
  .today-card { padding: 24px 20px; }
  .format-bar-inner > div { padding: 18px 13px; }
  .cloud-upload-panel { align-items: stretch; flex-direction: column; }
  .upload-button { align-self: stretch; }
  .local-file-row { grid-template-columns: 40px minmax(0,1fr); }
  .local-file-actions { grid-column: 2; }
  .resource-section, .promise-section, .announcement-section { padding: 66px 0; }
  .section-title-row { align-items: start; flex-direction: column; gap: 12px; }
  .section-title-row > p { align-self: flex-end; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card.featured { grid-column: auto; }
  .resource-card { min-height: 300px; }
  .promise-list { grid-template-columns: 1fr; gap: 28px; }
  .promise-list span { margin-bottom: 12px; }
  .announcement-copy { padding: 22px 18px; }
  .footer-inner { align-items: start; flex-direction: column; gap: 18px; }
  .viewer { width: 100%; height: 100%; border-radius: 0; }
  .viewer-head { min-height: 64px; }
  .text-preview { width: calc(100% - 20px); min-height: calc(100% - 20px); margin: 10px; padding: 22px 18px; font-size: 13px; }
  .admin-dialog { width: 100%; max-height: 100%; border-radius: 0; }
  .admin-form { grid-template-columns: 1fr; max-height: calc(100vh - 76px); padding: 18px; }
  .field-wide { grid-column: auto; }
  .admin-form-actions { flex-direction: column-reverse; }
  .admin-form-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
