:root {
  --ink: #3e302c;
  --muted: #806f69;
  --line: #e8ddd7;
  --paper: #f7f1ed;
  --white: #ffffff;
  --forest: #73554d;
  --forest-soft: #8d6b61;
  --acid: #f2c8cf;
  --acid-dark: #c98d99;
  --gold: #e7cdb4;
  --danger: #b64040;
  --shadow: 0 24px 70px rgba(14, 37, 30, .12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; background: var(--paper); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.ambient { position: fixed; border-radius: 50%; filter: blur(10px); pointer-events: none; z-index: 0; }
.ambient-one { width: 360px; height: 360px; background: rgba(234, 187, 197, .3); right: -110px; top: -120px; }
.ambient-two { width: 260px; height: 260px; background: rgba(205, 175, 146, .22); left: 36%; bottom: -130px; }

.client-shell { position: relative; z-index: 1; width: min(1320px, calc(100% - 48px)); min-height: calc(100vh - 48px); margin: 24px auto; display: grid; grid-template-columns: minmax(350px, 42%) 1fr; background: var(--white); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }

.brand-panel { min-height: calc(100vh - 48px); padding: 42px 54px 36px; color: #fff; background:
  radial-gradient(circle at 14% 88%, rgba(244, 209, 215, .18), transparent 30%),
  radial-gradient(circle at 88% 12%, rgba(240, 211, 181, .2), transparent 28%),
  linear-gradient(145deg, #71554e 0%, #9a786d 52%, #806158 100%);
  display: flex; flex-direction: column; position: sticky; top: 24px; }

.brand-panel::before { content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.brand-panel > * { position: relative; }

.product-label { width: fit-content; display: inline-flex; align-items: center; gap: 10px; color: var(--forest); font-size: 10px; font-weight: 850; letter-spacing: .18em; text-decoration: none; text-transform: uppercase; }
.product-label::before { content: ""; width: 25px; height: 1px; flex: none; background: var(--acid-dark); }
.product-label-light { color: rgba(255,255,255,.86); }
.product-label-light::before { background: #f5d4d9; }

.brand-copy { margin: clamp(32px, 5.5vh, 64px) 0 35px; max-width: 500px; }
.eyebrow { color: #9a706a; font-weight: 800; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.light { color: #f8dfe2; }
.brand-copy h1 { margin: 17px 0 22px; font-size: clamp(44px, 4vw, 66px); line-height: .98; letter-spacing: -.055em; font-weight: 780; }
.brand-copy h1 em { color: #f8d8dd; font-family: Georgia, serif; font-weight: 400; }
.brand-copy p { margin: 0; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.7; max-width: 430px; }
.coach-card { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.coach-photo-ring { width: 82px; height: 82px; flex: none; padding: 4px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #f7d6dc, #e8bd9c 52%, #f8ebdf); box-shadow: 0 12px 30px rgba(74,44,37,.2), 0 0 0 5px rgba(255,255,255,.1); overflow: hidden; }
.coach-photo-ring img { width: 100%; height: 100%; display: block; border: 3px solid rgba(255,255,255,.9); border-radius: 50%; object-fit: cover; object-position: 50% 14%; background: #f3dfd7; }
.coach-card-copy { display: grid; gap: 5px; }
.coach-card-copy small { color: rgba(255,255,255,.62); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.coach-card-copy strong { max-width: 190px; color: #fff; font-family: Georgia, serif; font-size: 17px; line-height: 1.2; font-weight: 400; }
.coach-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.coach-contacts a { min-width: 128px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: #fff; background: rgba(255,255,255,.07); display: grid; gap: 3px; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.coach-contacts a:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.12); }
.coach-contacts span { color: rgba(255,255,255,.55); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.coach-contacts strong { font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.fitness-signature { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: rgba(255,255,255,.46); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fitness-signature svg { width: 90px; height: 22px; margin-right: 4px; overflow: visible; }
.fitness-signature path { fill: none; stroke: #f5d4d9; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fitness-signature i { width: 3px; height: 3px; border-radius: 50%; background: var(--acid); opacity: .55; }

.step-rail { display: grid; gap: 8px; margin-top: auto; }
.rail-step { border: 0; padding: 10px 12px; background: transparent; color: rgba(255,255,255,.45); display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: center; text-align: left; border-radius: 12px; transition: .2s ease; cursor: default; }
.rail-step .rail-index { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.rail-step strong { font-size: 12px; letter-spacing: .02em; }
.rail-step.active { color: #fff; background: rgba(255,255,255,.07); }
.rail-step.active .rail-index { color: var(--forest); background: var(--acid); border-color: var(--acid); }
.rail-step.done { color: rgba(255,255,255,.76); }
.rail-step.done .rail-index { color: var(--acid); border-color: rgba(242,200,207,.52); }

.privacy-note { display: flex; align-items: center; gap: 13px; padding-top: 28px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.privacy-note > span:last-child { display: grid; gap: 3px; }
.privacy-note strong { font-size: 11px; }
.privacy-note small { font-size: 10px; color: rgba(255,255,255,.45); }
.icon-lock { width: 29px; height: 29px; border: 1px solid rgba(242,200,207,.42); border-radius: 50%; position: relative; }
.icon-lock::before { content: ""; position: absolute; width: 7px; height: 6px; border: 1.5px solid var(--acid); border-radius: 5px 5px 0 0; left: 9px; top: 6px; }
.icon-lock::after { content: ""; position: absolute; width: 9px; height: 7px; background: var(--acid); border-radius: 2px; left: 9px; top: 12px; }

.form-panel { padding: 48px clamp(34px, 5vw, 78px) 28px; min-width: 0; color: var(--ink); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.form-panel::before { content: ""; position: absolute; width: 180px; height: 180px; right: -94px; top: 145px; border: 1px solid rgba(184,137,125,.1); border-radius: 50%; box-shadow: 0 0 0 24px rgba(184,137,125,.04), 0 0 0 48px rgba(184,137,125,.026); pointer-events: none; }
.form-panel > * { position: relative; z-index: 1; }
.mobile-header, .mobile-progress, .mobile-welcome, .mobile-contacts { display: none; }
.form-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.form-tools { display: flex; align-items: center; gap: 11px; }
.theme-toggle { width: 42px; height: 42px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: #52635c; background: rgba(255,255,255,.78); display: grid; place-items: center; position: relative; overflow: hidden; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.theme-toggle:hover { transform: rotate(8deg); border-color: #a8b6af; }
.theme-icon { position: absolute; display: grid; place-items: center; transition: transform .24s ease, opacity .2s ease; }
.theme-icon-sun { font-size: 17px; opacity: 1; transform: scale(1) rotate(0); }
.theme-icon-moon { font-size: 19px; opacity: 0; transform: scale(.5) rotate(-30deg); }
.autosave { margin: 9px 0 0; color: #88918d; font-size: 11px; display: flex; align-items: center; gap: 7px; }
.autosave i { width: 6px; height: 6px; border-radius: 50%; background: #c98d99; box-shadow: 0 0 0 4px rgba(201,141,153,.14); }
.autosave.saving i { animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(201,141,153,0); } }

.progress-ring { --progress: 0deg; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--forest) var(--progress), #e9ece9 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 5px; border-radius: inherit; background: #fff; }
.progress-ring span { position: relative; z-index: 1; font-size: 11px; font-weight: 800; }

#questionnaire { flex: 1; display: flex; flex-direction: column; }
#step-content { animation: enter .3s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.step-heading { margin: 0 0 30px; }
.step-heading h2 { margin: 0 0 10px; font-size: clamp(31px, 3.2vw, 47px); line-height: 1.08; letter-spacing: -.045em; }
.step-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.step-heading::after { content: "MOVE  /  FOCUS  /  PROGRESS"; display: block; width: fit-content; margin-top: 15px; padding: 5px 9px 5px 22px; border-radius: 999px; color: #95766e; background: radial-gradient(circle at 10px 50%, var(--acid-dark) 0 2.5px, transparent 3px), #faecee; font-size: 7px; font-weight: 900; letter-spacing: .16em; }

.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.field { display: grid; align-content: start; gap: 9px; min-width: 0; }
.field-wide, .field-chips, .field-radio-cards, .field-textarea { grid-column: 1 / -1; }
.field-label { font-size: 12px; line-height: 1.45; font-weight: 750; color: #58443e; }
.required-mark { color: #c6818f; margin-left: 3px; }
.field-hint { font-size: 10px; color: #8a938f; line-height: 1.5; margin-top: -2px; }
.text-input, .text-area, .field select { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfa; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.text-input { height: 50px; padding: 0 15px; }
.text-area { resize: vertical; min-height: 104px; padding: 14px 15px; line-height: 1.55; }
.text-input::placeholder, .text-area::placeholder { color: #aab1ad; }
.text-input:focus, .text-area:focus, .field select:focus { border-color: #c79c93; background: #fff; box-shadow: 0 0 0 4px rgba(176,123,112,.1); }
.field.invalid .text-input, .field.invalid .text-area { border-color: #cc6868; box-shadow: 0 0 0 3px rgba(182,64,64,.08); }
.field-error { color: var(--danger); font-size: 10px; margin: -2px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip input, .radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 11px; font-weight: 650; color: #50605a; transition: .18s ease; cursor: pointer; }
.chip input:checked + span { color: var(--forest); background: #fbeaec; border-color: #d9a8b1; box-shadow: inset 0 0 0 1px #d9a8b1; }
.chip input:focus-visible + span, .radio-card input:focus-visible + span { outline: 3px solid rgba(173,117,108,.18); outline-offset: 2px; }

.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-card > span { height: 100%; min-height: 86px; display: flex; flex-direction: column; justify-content: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: .18s ease; cursor: pointer; }
.radio-card strong { font-size: 12px; margin-bottom: 5px; }
.radio-card small { font-size: 10px; color: #87918c; line-height: 1.4; }
.radio-card input:checked + span { background: #fbeff0; border-color: #d6a2ab; box-shadow: inset 0 0 0 1px #d6a2ab; }

.form-actions { margin-top: 34px; padding-top: 24px; border-top: 1px solid #edf0ed; display: flex; align-items: center; justify-content: space-between; }
.button { min-height: 46px; padding: 0 19px; border-radius: 12px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 11px; font-weight: 800; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--forest); background: var(--acid); box-shadow: 0 9px 24px rgba(184,118,132,.2); }
.button-primary:hover { background: #f7d5da; box-shadow: 0 12px 26px rgba(184,118,132,.27); }
.button:disabled { cursor: not-allowed; opacity: .58; transform: none; box-shadow: none; }
.button-ghost { color: #42514c; background: #fff; border-color: var(--line); }
.button-ghost:hover { background: #f7f8f6; }
.button-full { width: 100%; }
.danger { color: var(--danger); }

.review-notice { padding: 15px 17px; border-radius: 13px; background: #f9edeb; color: #765a52; font-size: 11px; line-height: 1.55; margin-bottom: 16px; }
.review-list { display: grid; gap: 10px; }
.review-section { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.review-section header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #fafbf9; }
.review-section h3 { margin: 0; font-size: 12px; }
.review-section button { border: 0; background: transparent; color: #647a70; font-size: 10px; font-weight: 800; }
.review-section dl { margin: 0; padding: 2px 16px 12px; }
.review-section .review-row { padding: 10px 0; border-top: 1px solid #edf0ed; }
.review-section dt { font-size: 9px; color: #89928e; margin-bottom: 4px; }
.review-section dd { margin: 0; font-size: 11px; line-height: 1.5; white-space: pre-wrap; }
.consent { margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; padding: 15px; border: 1px solid var(--line); border-radius: 13px; font-size: 10px; line-height: 1.55; color: #596761; }
.consent input { accent-color: var(--forest); margin-top: 2px; }

.success-card { text-align: center; margin: auto; padding: 42px 10px; animation: enter .4s ease both; }
.success-icon { width: 74px; height: 74px; margin: 0 auto 26px; border: 1px solid #e2bbb7; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 12px #faeeeb; }
.success-icon span { width: 46px; height: 46px; display: grid; place-items: center; background: var(--forest); color: var(--acid); border-radius: 50%; font-size: 21px; }
.success-card h2 { margin: 13px 0; font-size: 38px; letter-spacing: -.04em; }
.success-card > p { margin: 0 auto; max-width: 480px; color: var(--muted); line-height: 1.7; font-size: 13px; }
.success-code { width: fit-content; min-width: 230px; display: grid; gap: 5px; margin: 28px auto; padding: 13px 25px; border-radius: 12px; background: #f3f5f2; }
.success-code span { font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: #8a948f; }
.success-code strong { font-size: 16px; letter-spacing: .1em; }

.client-footer { display: flex; justify-content: space-between; margin-top: 32px; color: #a0a7a3; font-size: 9px; }
.client-footer a { text-decoration: none; }
.client-footer a:hover { color: var(--forest); }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 26px; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 10px; color: #fff; background: var(--forest); box-shadow: 0 12px 28px rgba(0,0,0,.18); font-size: 11px; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }

/* Admin */
.admin-shell { min-height: 100vh; position: relative; z-index: 2; }
.admin-login { min-height: 100vh; padding: 32px; display: grid; grid-template-rows: auto 1fr; background: radial-gradient(circle at 50% 20%, #fff, var(--paper) 55%); }
.login-topbar { width: min(1320px, 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.login-card { width: min(430px, 100%); margin: auto; padding: 40px; border: 1px solid #e3e7e3; border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.login-card h1 { margin: 10px 0 9px; font-size: 34px; letter-spacing: -.04em; }
.login-card > p { margin: 0 0 25px; color: var(--muted); font-size: 12px; }
.login-card form { display: grid; gap: 10px; }
.login-card form .field-label:not(:first-child) { margin-top: 5px; }
.password-control { position: relative; }
.password-control .text-input { padding-right: 92px; }
.password-toggle { position: absolute; top: 50%; right: 9px; height: 32px; padding: 0 9px; border: 0; border-radius: 8px; color: #8c6962; background: #f8ebe9; font-size: 8px; font-weight: 800; }
.password-toggle:hover { background: #f3ddda; }
.pin-input { letter-spacing: .18em; font-size: 16px; font-weight: 750; }
.demo-hint { display: block; margin-top: 17px; text-align: center; color: #9aa29e; }
.login-security-note { display: block; margin: 10px auto 0; max-width: 290px; color: #a4938d; font-size: 8px; line-height: 1.5; text-align: center; }

.dashboard { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; background: #f3f4f0; }
.admin-sidebar { min-height: 100vh; padding: 28px 20px 22px; color: #fff; background: var(--forest); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-sidebar nav { display: grid; gap: 7px; margin-top: 64px; }
.admin-nav { height: 44px; padding: 0 13px; border: 0; border-radius: 10px; color: rgba(255,255,255,.55); background: transparent; display: flex; align-items: center; gap: 11px; text-align: left; font-size: 11px; font-weight: 700; }
.admin-nav.active { color: #fff; background: rgba(255,255,255,.09); }
.admin-nav span { font-size: 17px; }
.admin-nav small { margin-left: auto; font-size: 8px; color: var(--acid); }
.admin-profile { margin-top: auto; padding: 15px 2px 0; border-top: 1px solid rgba(255,255,255,.1); display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--acid); font-size: 10px; font-weight: 900; }
.admin-profile > span:nth-child(2) { display: grid; gap: 3px; }
.admin-profile strong { font-size: 10px; }
.admin-profile small { color: rgba(255,255,255,.46); font-size: 8px; }
.admin-profile button { border: 0; background: transparent; color: rgba(255,255,255,.52); }

.dashboard-main { min-width: 0; padding: 42px clamp(28px, 4vw, 64px) 60px; }
.dashboard-header { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 30px; }
.dashboard-header h1 { margin: 7px 0 5px; font-size: 38px; letter-spacing: -.04em; }
.dashboard-header p { margin: 0; color: var(--muted); font-size: 11px; }
.dashboard-actions { display: flex; gap: 9px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stats-grid article { min-height: 130px; padding: 20px; border: 1px solid #e3e6e2; border-radius: 17px; background: #fff; display: grid; align-content: center; position: relative; overflow: hidden; }
.stats-grid article::after { content: ""; position: absolute; width: 72px; height: 72px; border-radius: 50%; right: -20px; top: -20px; background: #edf7d9; }
.stats-grid span { color: #708078; font-size: 10px; font-weight: 750; }
.stats-grid strong { margin: 6px 0 2px; font-size: 32px; letter-spacing: -.04em; }
.stats-grid small { color: #a2aaa6; font-size: 9px; }

.responses-card { border: 1px solid #e1e5e1; border-radius: 18px; background: #fff; overflow: hidden; }
.responses-toolbar { padding: 15px; border-bottom: 1px solid #e8ebe8; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.search-box { width: min(330px, 100%); height: 40px; padding: 0 12px; border: 1px solid #e2e6e2; border-radius: 10px; display: flex; align-items: center; gap: 8px; color: #8c9691; background: #fafbf9; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }
.filter-tabs { display: flex; gap: 3px; padding: 3px; border-radius: 9px; background: #f1f3f0; }
.filter-tabs button { height: 31px; padding: 0 11px; border: 0; border-radius: 7px; color: #7f8984; background: transparent; font-size: 9px; font-weight: 750; }
.filter-tabs button.active { color: var(--forest); background: #fff; box-shadow: 0 2px 8px rgba(20,37,31,.06); }

.responses-list { display: grid; }
.response-row { width: 100%; padding: 15px 18px; border: 0; border-bottom: 1px solid #edf0ed; background: #fff; display: grid; grid-template-columns: minmax(160px, 1.25fr) 1fr .75fr .7fr 20px; gap: 16px; align-items: center; text-align: left; transition: background .15s; }
.response-row:last-child { border-bottom: 0; }
.response-row:hover { background: #fafbf9; }
.response-person { display: flex; gap: 10px; align-items: center; min-width: 0; }
.response-person .avatar { flex: none; }
.response-person > span:last-child, .response-cell { display: grid; gap: 4px; min-width: 0; }
.response-person strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.response-person small, .response-cell small { color: #9aa29e; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.response-cell strong { font-size: 10px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-arrow { color: #9ba49f; }
.status-badge { width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: #eef3ec; color: #647267; }
.status-badge.new { background: #edf8d8; color: #587429; }
.status-badge.progress { background: #fff3d9; color: #8a6417; }
.status-badge.done { background: #e5efec; color: #376659; }
.empty-state { text-align: center; padding: 62px 20px; }
.empty-state > span { width: 52px; height: 52px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: #eef6df; color: #7ba731; font-size: 20px; }
.empty-state h3 { margin: 15px 0 7px; font-size: 17px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 10px; }

.drawer-backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(9,24,19,.43); backdrop-filter: blur(3px); }
.response-drawer { position: fixed; z-index: 41; top: 0; right: 0; width: min(670px, 100%); height: 100vh; padding: 27px 30px 40px; background: #fff; box-shadow: -20px 0 70px rgba(12,32,25,.19); transform: translateX(105%); transition: transform .28s ease; overflow-y: auto; }
.response-drawer.open { transform: translateX(0); }
.response-drawer > header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.response-drawer h2 { margin: 11px 0 5px; font-size: 29px; letter-spacing: -.04em; }
.response-drawer header p { margin: 0; color: var(--muted); font-size: 10px; }
.drawer-close { width: 39px; height: 39px; flex: none; border: 1px solid var(--line); border-radius: 50%; color: #64716c; background: #fff; font-size: 21px; }
.drawer-actions { padding: 14px 0; display: flex; align-items: end; gap: 8px; }
.drawer-actions label { display: grid; gap: 5px; margin-right: auto; color: #7c8882; font-size: 9px; }
.drawer-actions select { height: 38px; min-width: 135px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 10px; }
.drawer-actions .button { min-height: 38px; }
.drawer-body { display: grid; gap: 22px; padding-top: 9px; }
.answer-group h3 { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid #edf0ed; color: #507064; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.answer-item { padding: 8px 0; }
.answer-item span { display: block; margin-bottom: 5px; color: #8a948f; font-size: 9px; line-height: 1.4; }
.answer-item p { margin: 0; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.answer-item p.empty { color: #b0b6b3; font-style: italic; }

@media (max-width: 980px) {
  .client-shell { width: min(900px, calc(100% - 28px)); grid-template-columns: 320px 1fr; margin: 14px auto; min-height: calc(100vh - 28px); }
  .brand-panel { padding: 34px 30px 28px; top: 14px; min-height: calc(100vh - 28px); }
  .brand-copy h1 { font-size: 43px; }
  .form-panel { padding: 38px 34px 24px; }
  .dashboard { grid-template-columns: 190px 1fr; }
  .admin-sidebar { padding-inline: 15px; }
  .response-row { grid-template-columns: 1.3fr 1fr .7fr 20px; }
  .response-row .response-cell:nth-of-type(2) { display: none; }
}

@media (max-width: 760px) {
  .ambient { display: none; }
  .client-shell { display: block; width: 100%; min-height: 100vh; margin: 0; border-radius: 0; box-shadow: none; }
  .brand-panel { display: none; }
  .form-panel { min-height: 100vh; padding: 20px 20px 22px; }
  .mobile-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
  .mobile-header .product-label { font-size: 9px; letter-spacing: .14em; }
  .mobile-step { color: #76827c; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
  .client-shell[data-step="0"] .mobile-welcome { display: flex; width: 100%; max-width: 100%; min-width: 0; align-items: center; gap: 13px; margin: 0 0 20px; padding: 13px 15px; border: 1px solid #ead8d3; border-radius: 18px; background: linear-gradient(135deg, #fbefed, #f7e5e8); box-shadow: 0 12px 28px rgba(111,76,66,.08); }
  .mobile-welcome .coach-photo-ring { width: 66px; height: 66px; padding: 3px; box-shadow: 0 8px 18px rgba(90,59,51,.14); }
  .mobile-welcome > span:last-child { min-width: 0; display: grid; gap: 5px; }
  .mobile-welcome small { color: #a2756d; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
  .mobile-welcome strong { max-width: 240px; color: #5c453f; font-family: Georgia, serif; font-size: 15px; line-height: 1.25; font-weight: 400; }
  .client-shell[data-step="0"] .mobile-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -9px 0 20px; }
  .mobile-contacts a { min-width: 0; padding: 10px 12px; border: 1px solid #ead8d3; border-radius: 13px; color: #6d514a; background: rgba(255,255,255,.72); display: grid; gap: 3px; text-decoration: none; }
  .mobile-contacts span { color: #aa7c75; font-size: 7px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
  .mobile-contacts strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .form-topline { margin-bottom: 12px; }
  .progress-ring { display: none; }
  .form-tools .theme-toggle { width: 39px; height: 39px; }
  .mobile-progress { display: block; height: 3px; margin: 0 -20px 24px; background: #edf0ed; }
  .mobile-progress span { display: block; height: 100%; width: 0; background: var(--forest); transition: width .25s ease; }
  .step-heading { margin-bottom: 23px; }
  .step-heading h2 { max-width: 100%; overflow-wrap: anywhere; font-size: 32px; }
  .fields-grid { grid-template-columns: 1fr; gap: 19px; }
  .field-wide, .field-chips, .field-radio-cards, .field-textarea { grid-column: auto; }
  .radio-cards { grid-template-columns: 1fr; }
  .radio-card > span { min-height: 70px; }
  .form-actions { position: sticky; z-index: 3; bottom: 0; margin: 27px -20px -2px; padding: 14px 20px; background: rgba(255,255,255,.94); backdrop-filter: blur(9px); box-shadow: 0 -10px 30px rgba(30,47,41,.06); }
  .client-footer { padding-bottom: 3px; }
  .success-card h2 { font-size: 32px; }

  .dashboard { display: block; }
  .admin-sidebar { min-height: auto; height: auto; padding: 15px 20px; position: static; flex-direction: row; align-items: center; }
  .admin-sidebar .product-label { font-size: 9px; }
  .admin-sidebar nav { display: none; }
  .admin-profile { margin: 0 0 0 auto; padding: 0; border: 0; }
  .admin-profile > span:nth-child(2) { display: none; }
  .dashboard-main { padding: 27px 16px 45px; }
  .dashboard-header { align-items: flex-start; }
  .dashboard-header h1 { font-size: 30px; }
  .dashboard-actions .button-ghost { display: none; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .stats-grid article { min-height: 106px; padding: 13px; }
  .stats-grid strong { font-size: 26px; }
  .responses-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .filter-tabs { overflow-x: auto; }
  .filter-tabs button { flex: none; }
  .response-row { grid-template-columns: 1fr auto 15px; gap: 9px; padding: 14px; }
  .response-row .response-cell:first-of-type, .response-row .response-cell:nth-of-type(2) { display: none; }
  .response-drawer { padding: 22px 18px 35px; }
  .drawer-actions { flex-wrap: wrap; }
  .drawer-actions label { width: 100%; margin-bottom: 4px; }
  .drawer-actions select { width: 100%; }
}

/* Dark theme */
html[data-theme="dark"] {
  --ink: #f7eeeb;
  --muted: #b8a49e;
  --line: #4b3833;
  --paper: #1a1311;
  --white: #261c19;
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
  color-scheme: dark;
}

html[data-theme="dark"] .ambient-one { background: rgba(214, 147, 160, .12); }
html[data-theme="dark"] .ambient-two { background: rgba(222, 184, 148, .08); }
html[data-theme="dark"] .theme-toggle { color: #f0deda; background: #322520; border-color: #57413a; }
html[data-theme="dark"] .theme-icon-sun { opacity: 0; transform: scale(.5) rotate(30deg); }
html[data-theme="dark"] .theme-icon-moon { opacity: 1; transform: scale(1) rotate(0); }
html[data-theme="dark"] .form-panel::before { border-color: rgba(236,185,195,.08); box-shadow: 0 0 0 24px rgba(236,185,195,.025), 0 0 0 48px rgba(236,185,195,.015); }
html[data-theme="dark"] .progress-ring { background: conic-gradient(var(--acid) var(--progress), #493732 0); }
html[data-theme="dark"] .progress-ring::before { background: var(--white); }
html[data-theme="dark"] .progress-ring span { color: var(--ink); }
html[data-theme="dark"] .step-heading::after { color: #d4b6b0; background: radial-gradient(circle at 10px 50%, var(--acid) 0 2.5px, transparent 3px), #382824; }
html[data-theme="dark"] .field-label { color: #e1cfca; }
html[data-theme="dark"] .text-input,
html[data-theme="dark"] .text-area,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .chip span,
html[data-theme="dark"] .radio-card > span { color: var(--ink); background: #30231f; border-color: var(--line); }
html[data-theme="dark"] .text-input:focus,
html[data-theme="dark"] .text-area:focus,
html[data-theme="dark"] .field select:focus { background: #382824; border-color: #a97970; box-shadow: 0 0 0 4px rgba(201,141,153,.1); }
html[data-theme="dark"] .text-input::placeholder,
html[data-theme="dark"] .text-area::placeholder { color: #64766d; }
html[data-theme="dark"] .chip input:checked + span,
html[data-theme="dark"] .radio-card input:checked + span { color: #fff2ef; background: #523630; border-color: #c98d99; }
html[data-theme="dark"] .radio-card small { color: #8fa097; }
html[data-theme="dark"] .button-ghost { color: #dec9c3; background: #30231f; border-color: var(--line); }
html[data-theme="dark"] .button-ghost:hover { background: #3a2925; }
html[data-theme="dark"] .password-toggle { color: #e5c8c2; background: #49312d; }
html[data-theme="dark"] .password-toggle:hover { background: #583a35; }
html[data-theme="dark"] .form-actions { border-color: #44322d; }
html[data-theme="dark"] .review-notice { color: #e1bbb5; background: #402c28; }
html[data-theme="dark"] .review-section { border-color: var(--line); }
html[data-theme="dark"] .review-section header { background: #30231f; }
html[data-theme="dark"] .review-section .review-row { border-color: #47342f; }
html[data-theme="dark"] .consent { border-color: var(--line); color: #c9b7b1; }
html[data-theme="dark"] .success-code { background: #352622; }
html[data-theme="dark"] .client-footer a:hover { color: var(--acid); }
html[data-theme="dark"] .admin-login { background: radial-gradient(circle at 50% 20%, #32231f, var(--paper) 57%); }
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .stats-grid article,
html[data-theme="dark"] .responses-card,
html[data-theme="dark"] .response-row,
html[data-theme="dark"] .response-drawer { color: var(--ink); background: var(--white); border-color: var(--line); }
html[data-theme="dark"] .dashboard { background: #1d1513; }
html[data-theme="dark"] .stats-grid article::after { background: #4a302d; }
html[data-theme="dark"] .responses-toolbar { border-color: var(--line); }
html[data-theme="dark"] .search-box { color: #b6a29c; background: #30231f; border-color: var(--line); }
html[data-theme="dark"] .search-box input { color: var(--ink); }
html[data-theme="dark"] .filter-tabs { background: #201715; }
html[data-theme="dark"] .filter-tabs button.active { color: var(--ink); background: #3b2b27; box-shadow: none; }
html[data-theme="dark"] .response-row { border-color: #44312d; }
html[data-theme="dark"] .response-row:hover { background: #30231f; }
html[data-theme="dark"] .status-badge { background: #26362e; color: #b3c1ba; }
html[data-theme="dark"] .status-badge.new { background: #273a20; color: #bce87a; }
html[data-theme="dark"] .status-badge.progress { background: #3a301b; color: #e8ca79; }
html[data-theme="dark"] .status-badge.done { background: #19352d; color: #83c8b4; }
html[data-theme="dark"] .drawer-close,
html[data-theme="dark"] .drawer-actions select { color: var(--ink); background: #30231f; border-color: var(--line); }
html[data-theme="dark"] .answer-group h3,
html[data-theme="dark"] .response-drawer > header { border-color: var(--line); }
html[data-theme="dark"] .drawer-backdrop { background: rgba(2,8,6,.66); }
html[data-theme="dark"] .empty-state > span { background: #452e2b; }
html[data-theme="dark"] .mobile-progress { background: #473530; }
html[data-theme="dark"] .mobile-progress span { background: var(--acid); }
html[data-theme="dark"] .client-shell[data-step="0"] .mobile-welcome { border-color: #5a4039; background: linear-gradient(135deg, #3b2925, #462e2c); }
html[data-theme="dark"] .client-shell[data-step="0"] .mobile-welcome small { color: #d7a9a6; }
html[data-theme="dark"] .client-shell[data-step="0"] .mobile-welcome strong { color: #f8e8e3; }
html[data-theme="dark"] .client-shell[data-step="0"] .mobile-contacts a { color: #f6e5e0; border-color: #523c36; background: #30231f; }
html[data-theme="dark"] .client-shell[data-step="0"] .mobile-contacts span { color: #d2a29f; }

@media (max-width: 760px) {
  html[data-theme="dark"] .form-actions { background: rgba(38,28,25,.94); }
}

@media (max-width: 440px) {
  .button { padding-inline: 15px; }
  .form-actions .button-ghost { min-width: 96px; }
  .stats-grid span { font-size: 8px; }
  .stats-grid small { display: none; }
  .login-card { padding: 30px 23px; }
}

@media print {
  body * { visibility: hidden; }
  .response-drawer, .response-drawer * { visibility: visible; }
  .response-drawer { position: static; width: 100%; height: auto; padding: 0; transform: none; box-shadow: none; overflow: visible; }
  .drawer-close, .drawer-actions, .drawer-backdrop { display: none !important; }
  .answer-group { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
