:root {
  --ink: #183e35;
  --cream: #faf4e8;
  --gold: #b78b47;
  --wine: #542033;
  --muted: #66766d;
  --line: #dfd9cb;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Manrope, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #bb9658;
  outline-offset: 4px;
}
.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;
}
.brief-header {
  height: 100px;
  max-width: 1540px;
  margin: auto;
  padding: 24px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.brief-brand {
  text-decoration: none;
  font: 600 34px/1 var(--serif);
  letter-spacing: -1.4px;
  white-space: nowrap;
}
.brief-brand span {
  color: var(--gold);
  font-size: 19px;
  margin-left: 8px;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 30px;
}
.header-tools > a {
  font-size: 11px;
  text-decoration: none;
}
.language-control select {
  font-size: 11px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 24px;
  min-height: 42px;
  max-width: 170px;
  padding: 8px 30px 8px 14px;
}
.brief-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  min-height: calc(100svh - 165px);
  max-width: 1540px;
  margin: auto;
}
.brief-world {
  background:
    linear-gradient(#0e302baa, #153e35cc),
    url("/assets/forest-theatre-v2-mobile.webp") center/cover;
  min-height: 680px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #f2e4c8;
  padding: 50px 30px;
}
.world-frame {
  width: min(84%, 340px);
  height: 340px;
  border: 1px solid #d3b57577;
  border-radius: 50% 50% 0 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.world-frame:after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #d3b57533;
  border-radius: inherit;
}
.world-book {
  width: 90%;
  height: 90%;
  filter: drop-shadow(0 15px 20px #00191288);
  transform: rotate(-7deg);
  animation: float-book 7s ease-in-out infinite;
}
.world-star {
  position: absolute;
  top: -17px;
  color: #dfbb77;
  background: #193e35;
  padding: 0 9px;
  font-size: 22px;
}
.world-spark {
  position: absolute;
  font: 40px var(--serif);
  color: #dfbb77;
}
.s1 {
  top: 80px;
  left: -18px;
}
.s2 {
  bottom: 25px;
  right: -17px;
}
.brief-world p {
  font: 400 clamp(32px, 3.3vw, 51px)/1.05 var(--serif);
  text-align: center;
  max-width: 320px;
  margin: 35px 0 65px;
}
.world-signature {
  position: absolute;
  bottom: 28px;
  letter-spacing: 3px;
  font-size: 8px;
  color: #cfb57d;
}
.brief-workspace {
  padding: 54px clamp(25px, 4vw, 76px) 40px;
  align-self: center;
  min-width: 0;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.1px;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 17px;
}
.brief-workspace h1,
.admin-main h1 {
  font: 400 clamp(36px, 3.5vw, 55px)/1.04 var(--serif);
  letter-spacing: -1px;
  margin: 0 0 20px;
  white-space: pre-line;
}
.brief-workspace h2 {
  font: 500 27px/1.15 var(--serif);
  margin: 10px 0;
}
.step-description {
  color: var(--muted);
  font-size: 13px;
  max-width: 540px;
  margin: 0 0 28px;
  line-height: 1.8;
}
.welcome-copy {
  font-size: 14px;
  max-width: 410px;
  margin-bottom: 32px;
}
.small-meta {
  font-size: 10px;
  color: var(--muted);
  margin: 18px 0;
}
.primary,
.secondary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 13px 23px;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  background: var(--ink);
  color: #fff9eb;
}
.primary:after {
  content: "↗";
  font-size: 18px;
  font-weight: 400;
}
.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  gap: 8px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 11px;
  padding: 12px 0;
  min-height: 44px;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.actions .back {
  margin-right: auto;
}
.form-fields {
  display: grid;
  gap: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label.field {
  display: grid;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}
input,
textarea,
select {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fffdf7;
  border-radius: 5px;
  padding: 13px 14px;
  min-height: 48px;
}
input::placeholder,
textarea::placeholder {
  color: #8c968c;
  font-weight: 400;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
}
textarea {
  resize: vertical;
  min-height: 100px;
  font-weight: 400;
  line-height: 1.7;
}
.field small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.optional {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  margin-left: 8px;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.choice {
  border: 1px solid var(--line);
  background: #fffdf7;
  padding: 12px 17px;
  border-radius: 30px;
  color: var(--ink);
  font-size: 12px;
  min-height: 46px;
  transition: border-color 0.2s;
}
.choice[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff4d9;
}
.choice[aria-pressed="true"]:before {
  content: "✓ ";
  color: #e1bd76;
}
.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 400;
  margin-top: 20px;
}
.checkbox input {
  flex: 0 0 19px;
  width: 19px;
  min-height: 19px;
  margin-top: 3px;
  accent-color: var(--ink);
}
.step-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 10px;
  gap: 10px;
}
.step-track {
  height: 2px;
  background: var(--line);
  margin-bottom: 33px;
}
.step-track span {
  display: block;
  height: 2px;
  background: var(--gold);
  width: 0;
  transition: width 0.3s;
}
.draft-note {
  font-size: 9px;
  color: #8a8e80;
  line-height: 1.7;
  margin: 35px 0 0;
  max-width: 430px;
}
.form-error {
  font-size: 12px;
  color: #9c3039;
  border-left: 3px solid #ab4950;
  padding: 10px 14px;
  margin-top: 18px;
  background: #f9eae4;
}
.child-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: #fffaf0;
}
.child-card h2 {
  margin: 0;
  font-size: 26px;
}
.child-card small {
  color: var(--muted);
  font-size: 10px;
}
.child-card .text-button {
  padding: 8px;
  white-space: nowrap;
}
.child-actions {
  display: flex;
  gap: 10px;
}
.add-child {
  width: 100%;
  border: 1px dashed #baa57d;
  background: transparent;
  min-height: 58px;
  color: var(--ink);
  margin: 12px 0;
  border-radius: 8px;
  font-size: 12px;
}
.privacy-copy {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 20px;
}
.review-section {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}
.review-section summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 13px;
  min-height: 44px;
}
.review-section summary:after {
  content: "+";
  color: var(--gold);
  font-size: 20px;
}
.review-section[open] summary:after {
  content: "−";
}
.answer-list {
  margin: 16px 0;
  display: grid;
  gap: 16px;
}
.answer-list dt {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 4px;
}
.answer-list dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.success-seal {
  width: 80px;
  height: 80px;
  border: 1px solid #bda672;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 42px var(--serif);
  color: var(--gold);
  margin-bottom: 25px;
  box-shadow: 0 0 0 7px #f0e5cd;
}
.request-code {
  font-size: 17px;
  letter-spacing: 2px;
  font-weight: 700;
  margin: 6px 0 25px;
}
.brief-footer {
  min-height: 65px;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
}
.brief-footer a {
  text-decoration: none;
}
.fade-in {
  animation: appear 0.35s ease-out;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float-book {
  50% {
    transform: rotate(-4deg) translateY(-7px);
  }
}
/* Staff workspace keeps the editorial palette with a quieter reading surface. */
.admin-page {
  background: #f6f3eb;
}
.admin-header {
  max-width: none;
  background: #fffaf0;
}
.admin-main {
  max-width: 1280px;
  margin: auto;
  padding: 45px 5%;
}
.admin-main h1 {
  font-size: 43px;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 28px 0;
}
.admin-toolbar input {
  flex: 1;
  min-width: 220px;
}
.admin-toolbar select {
  width: 180px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 30px 0;
}
.stat-card {
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}
.stat-card strong {
  display: block;
  font: 36px/1.1 var(--serif);
  margin-top: 8px;
}
.stat-card span {
  font-size: 10px;
  color: var(--muted);
}
.submission-list {
  display: grid;
  gap: 12px;
}
.submission-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fffaf2;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  width: 100%;
  color: var(--ink);
}
.submission-card:hover {
  border-color: #b99b64;
}
.submission-card h2 {
  font: 500 26px/1.1 var(--serif);
  margin: 6px 0;
}
.submission-card small {
  font-size: 10px;
  color: var(--muted);
}
.submission-card .card-meta {
  margin-left: auto;
  text-align: right;
  font-size: 10px;
  color: var(--muted);
}
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 9px;
  background: #e6ebde;
  color: #3b5544;
}
.status-badge.new {
  background: #f5e4bb;
  color: #76561c;
}
.status-badge.completed {
  background: #e3ece6;
  color: #275444;
}
.empty-state {
  padding: 65px 25px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.empty-state h2 {
  font: 32px var(--serif);
}
.empty-state p {
  color: var(--muted);
  font-size: 12px;
}
.admin-detail {
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  max-width: 900px;
}
.admin-detail .contact-block {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 25px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.detail-head h2 {
  margin: 0;
  font: 34px var(--serif);
}
.detail-form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.danger {
  background: transparent;
  color: #9a3443;
  border-color: #dfbcc3;
  font-size: 11px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 28px 0;
  font-size: 11px;
}
.admin-notice {
  color: #37654d;
  font-size: 12px;
  padding: 12px 0;
}
.admin-top-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-top-buttons .text-button {
  white-space: nowrap;
}
.password-box {
  max-width: 520px;
  background: #fffaf2;
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 10px;
}
.password-box h2 {
  font: 32px var(--serif);
  margin-top: 0;
}
.admin-login .brief-world {
  min-height: 670px;
}
.privacy-page {
  max-width: 790px;
  padding: 45px 25px;
  margin: auto;
}
.privacy-page h1 {
  font: 43px var(--serif);
}
.privacy-page h2 {
  font: 29px var(--serif);
  margin-top: 35px;
}
.privacy-page p {
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .brief-layout {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}
@media (max-width: 900px) {
  .brief-layout {
    grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  }
  .brief-world {
    padding: 35px 20px;
  }
  .world-frame {
    height: 280px;
    width: 230px;
  }
  .brief-workspace {
    padding: 40px 30px;
  }
  .header-tools {
    gap: 16px;
  }
}
@media (max-width: 680px) {
  .brief-header {
    height: 80px;
    padding: 18px 6%;
    gap: 10px;
  }
  .brief-brand {
    font-size: 29px;
  }
  .brief-brand span {
    font-size: 14px;
    margin-left: 4px;
  }
  .header-tools > a {
    display: none;
  }
  .language-control select {
    font-size: 10px;
    width: 125px;
    padding-left: 10px;
    min-height: 40px;
  }
  .brief-layout {
    display: block;
    min-height: calc(100svh - 140px);
  }
  .brief-world {
    min-height: 145px;
    height: 145px;
    padding: 15px 6%;
    flex-direction: row;
    gap: 25px;
    justify-content: center;
    background-position: center 62%;
  }
  .world-frame {
    height: 100px;
    width: 103px;
    flex: 0 0 103px;
    border-radius: 60px 60px 0 0;
  }
  .world-frame:after {
    inset: 5px;
  }
  .world-book {
    width: 103px;
    height: 120px;
  }
  .world-star {
    font-size: 14px;
    top: -13px;
    padding: 0 4px;
  }
  .world-spark {
    font-size: 20px;
  }
  .s1 {
    left: -10px;
    top: 35px;
  }
  .s2 {
    right: -11px;
    bottom: 7px;
  }
  .brief-world p {
    font-size: 27px;
    max-width: 160px;
    margin: 0;
    text-align: left;
    line-height: 1.08;
  }
  .world-signature {
    display: none;
  }
  .brief-workspace {
    padding: 31px 6% 30px;
    align-self: auto;
  }
  .brief-workspace h1 {
    font-size: 37px;
    line-height: 1.07;
    margin-bottom: 16px;
  }
  .eyebrow {
    font-size: 8px;
    margin-bottom: 13px;
  }
  .step-description {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 22px;
  }
  .welcome-copy {
    font-size: 13px;
  }
  .choices {
    gap: 8px;
    margin-bottom: 22px;
  }
  .choice {
    padding: 10px 14px;
    font-size: 11px;
    min-height: 44px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
  label.field {
    font-size: 11px;
  }
  .actions {
    gap: 10px;
    margin-top: 23px;
  }
  .primary,
  .secondary {
    font-size: 11px;
    min-height: 48px;
    padding: 12px 17px;
    gap: 12px;
  }
  .step-track {
    margin-bottom: 25px;
  }
  .draft-note {
    font-size: 9px;
    margin-top: 25px;
  }
  .brief-footer {
    padding: 18px 6%;
    font-size: 8px;
    min-height: 60px;
  }
  .child-card {
    padding: 14px;
    gap: 8px;
  }
  .child-card h2 {
    font-size: 24px;
  }
  .child-actions {
    gap: 0;
  }
  .child-card .text-button {
    font-size: 10px;
    padding: 7px;
  }
  .privacy-copy {
    font-size: 9px;
  }
  .admin-main {
    padding: 28px 6%;
  }
  .admin-main h1 {
    font-size: 36px;
  }
  .admin-header .header-tools {
    gap: 6px;
    width: 100%;
    justify-content: space-between;
  }
  .admin-header {
    height: auto;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .admin-top-buttons .text-button {
    font-size: 10px;
  }
  .admin-top-buttons > a {
    display: none;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 14px;
  }
  .submission-card {
    padding: 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .submission-card .card-meta {
    margin-left: 0;
    text-align: left;
    width: 100%;
  }
  .admin-detail {
    padding: 19px;
  }
  .detail-head h2 {
    font-size: 29px;
  }
  .admin-toolbar input {
    min-width: 100%;
    font-size: 16px;
  }
  .admin-toolbar select {
    width: 100%;
  }
  .admin-login .brief-world {
    min-height: 145px;
  }
  .password-box {
    padding: 22px;
  }
  .detail-head .secondary {
    padding: 9px;
    min-height: 42px;
  }
  .field-row {
    gap: 10px;
  }
}
@media (max-width: 350px) {
  .brief-brand {
    font-size: 25px;
  }
  .language-control select {
    width: 113px;
  }
  .brief-world p {
    font-size: 24px;
  }
  .brief-workspace h1 {
    font-size: 33px;
  }
  .child-card {
    flex-wrap: wrap;
  }
  .actions .text-button {
    font-size: 10px;
  }
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
