:root {
  --ink: #17212b;
  --muted: #637083;
  --line: #dde6ee;
  --paper: #ffffff;
  --mist: #f4f7f7;
  --sea: #14324a;
  --sea-2: #1f5463;
  --teal: #246973;
  --aqua: #dcefeb;
  --gold: #b9945d;
  --bad: #b33a3a;
  --warn: #9a6a14;
  --good: #246f58;
  --focus: 0 0 0 4px rgba(31, 84, 99, .18);
  --shadow: 0 18px 45px rgba(23, 33, 43, .12);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--mist);
  line-height: 1.5;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button { cursor: pointer; }

.guest-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(20, 50, 74, .94) 0, rgba(31, 84, 99, .9) 170px, transparent 171px),
    var(--mist);
}

.guest-header {
  color: #fff;
  padding: max(12px, env(safe-area-inset-top)) 14px 8px;
}

.guest-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.brand-logo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  max-width: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
}

.brand-title { font-size: 1.05rem; font-weight: 750; }
.eyebrow, .kicker { letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; font-weight: 750; }
.eyebrow { color: rgba(255,255,255,.78); }
.kicker { color: var(--sea-2); margin: 0 0 8px; }

.guest-shell {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 14px 112px;
}

.guest-form {
  position: relative;
  width: 100%;
  min-width: 0;
}

.progress-card {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(221, 230, 238, .85);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(23, 33, 43, .08);
  backdrop-filter: blur(12px);
}

.progress-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .86rem;
}

.progress-copy strong { color: var(--sea); }

.language-control {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  color: var(--sea);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.language-control select {
  min-width: 0;
  min-height: 44px;
  font-size: 1rem;
  border: 1px solid #cbd7e0;
  border-radius: 10px;
  background: #fff;
  color: var(--sea);
  padding: 6px 28px 6px 9px;
  font-weight: 750;
}

.progress-track {
  height: 7px;
  background: #e9eff3;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 9px;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sea-2), var(--gold));
  border-radius: inherit;
  transition: width .22s ease;
}

.step {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}

.step.is-active { display: block; }

.welcome-step {
  padding: 0;
  overflow: hidden;
}

.welcome-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.74), #fff 58%),
    radial-gradient(circle at top right, rgba(185, 148, 93, .26), transparent 34%),
    linear-gradient(135deg, #f7fbfa, #e8f1ef);
}

.already-panel {
  justify-content: center;
  text-align: center;
}

.welcome-panel h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 6vw, 2.3rem);
  line-height: 1.06;
  color: var(--sea);
}

.welcome-panel p {
  margin: 0 0 11px;
  font-size: 1rem;
  color: #354457;
}

.language-picker {
  margin: 6px 0 16px;
  padding: 13px;
  border: 1px solid rgba(203, 215, 224, .86);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.language-picker p {
  margin: 0 0 9px;
  color: var(--sea);
  font-size: .9rem;
  font-weight: 800;
}

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

.language-option {
  min-height: 44px;
  border: 1px solid #cbd7e0;
  border-radius: 10px;
  background: #fff;
  color: var(--sea);
  padding: 8px 9px;
  font-size: 1rem;
  font-weight: 780;
}

.language-option.is-active {
  background: var(--aqua);
  border-color: var(--sea-2);
  box-shadow: inset 0 0 0 2px var(--sea-2);
}

.trust-note {
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.time-note {
  color: var(--muted);
  font-size: .88rem;
  margin-top: 12px;
}

.step-head h2 {
  margin: 0 0 8px;
  color: var(--sea);
  font-size: 1.7rem;
  line-height: 1.12;
}

.compact-step .step-head h2 {
  font-size: 1.48rem;
}

.compact-step .step-head p:not(.kicker) {
  margin-bottom: 12px;
}

.question-step .step-head {
  text-align: center;
  margin-bottom: 18px;
}

.question-step .step-head h2 {
  font-size: 1.65rem;
}

.overall-step .step-head h2 {
  font-size: clamp(1.28rem, 5.7vw, 1.62rem);
  line-height: 1.13;
}

.step-head p:not(.kicker) {
  margin: 0 0 20px;
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-grid--stay,
.guest-details-step .field-grid {
  gap: 9px;
}

.field,
.choice-field {
  display: block;
  margin: 0 0 14px;
  min-width: 0;
}

.compact-step .field,
.compact-step .choice-field {
  margin-bottom: 9px;
}

.field span,
.choice-field legend {
  display: block;
  margin-bottom: 8px;
  color: #243244;
  font-weight: 730;
}

.field .label-text,
.choice-field .label-text {
  display: inline;
  margin: 0;
}

.field b,
.choice-field b { color: var(--bad); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd7e0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus,
.chip:focus-within,
.primary-action:focus-visible,
.secondary-action:focus-visible,
.text-action:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-color: var(--sea-2);
}

.field small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  text-align: right;
}

.field-error,
.input-error {
  color: var(--bad);
  font-size: .88rem;
  margin: 7px 0 0;
}

.input-has-error {
  border-color: var(--bad) !important;
}

.choice-field {
  padding: 0;
  border: 0;
}

.choice-field legend {
  padding: 0;
  float: left;
  width: 100%;
}

.chip-grid {
  clear: both;
  display: grid;
  gap: 10px;
}

.chip-grid--age,
.chip-grid--ratings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chip-grid--yesno { grid-template-columns: repeat(2, minmax(0, 160px)); }
.score-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.chip {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cad6de;
  border-radius: 13px;
  background: #fff;
  color: var(--sea);
  font-weight: 760;
  text-align: center;
}

.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  padding: 9px 10px;
}

.score-chip {
  min-height: 48px;
}

.score-help {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .82rem;
  margin-top: 7px;
}

.chip:has(input:checked) {
  border-color: var(--sea-2);
  background: var(--aqua);
  box-shadow: inset 0 0 0 2px var(--sea-2);
}

.chip:has(input:checked)::after {
  content: attr(data-selected-label);
  position: absolute;
  right: 8px;
  bottom: -10px;
  background: var(--sea-2);
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: .66rem;
  font-weight: 760;
}

.area-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fbfdfc;
}

.question-step .area-card {
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 0;
}

.area-feedback {
  margin-top: 16px;
}

.area-visit-field {
  margin-bottom: 0;
}

.text-action {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--sea-2);
  font-weight: 760;
  padding: 4px 0;
}

.area-comment { margin-top: 12px; }

.area-comment--visible textarea {
  min-height: 96px;
}

.conditional-field[hidden],
.area-comment[hidden] { display: none; }

.consent-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
  color: #344357;
}

.consent-row input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
}

.review-panel {
  display: grid;
  gap: 12px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fbfdfc;
}

.review-card h3 {
  margin: 0 0 8px;
  color: var(--sea);
}

.review-panel {
  gap: 9px;
}

.review-list {
  display: grid;
  gap: 5px;
  margin: 0;
  font-size: .94rem;
}

.review-list div {
  display: grid;
  grid-template-columns: minmax(105px, .45fr) 1fr;
  gap: 8px;
}

.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; font-weight: 650; }

.public-review-card p {
  margin-top: 0;
}

.public-review-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.public-review-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.submit-error {
  border: 1px solid #efc2c2;
  background: #fff1f1;
  color: #7f2525;
  border-radius: 12px;
  padding: 12px;
  margin: 14px 0;
}

.step-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 10px;
  padding: 12px max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(244, 247, 247, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.primary-action,
.secondary-action {
  min-height: 50px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 820;
  padding: 12px 16px;
}

.primary-action {
  background: var(--sea);
  color: #fff;
}

.primary-action:disabled {
  opacity: .68;
  cursor: wait;
}

.secondary-action {
  background: #fff;
  color: var(--sea);
  border-color: #cbd7e0;
}

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

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.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;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef7f3;
  border: 1px solid #cae7da;
  color: #285f49;
  margin-bottom: 16px;
}

.error {
  background: #fff2f2;
  border-color: #f0c9c9;
  color: #8a2e2e;
}

.admin-shell {
  display: block;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  height: 100vh;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 180px),
    var(--sea);
  color: #fff;
  padding: 20px 14px;
  z-index: 30;
}

.sidebar .logo {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 8px 24px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 4px 22px;
  padding: 4px 4px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.brand-mark {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-copy strong,
.brand-copy span {
  display: block;
  line-height: 1.1;
}

.brand-copy strong {
  color: #fff;
  font-size: .98rem;
  font-weight: 900;
}

.brand-copy span {
  color: #d6e6ef;
  font-size: .86rem;
  font-weight: 700;
}

.sidebar a {
  display: block;
  color: #dce5ef;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 8px;
  margin: 4px 0;
  font-weight: 750;
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(255, 255, 255, .11);
  color: #fff;
}

.sidebar a.active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.main {
  margin-left: 230px;
  padding: 32px 38px 44px;
  min-width: 0;
}

.main h1 {
  margin-top: 0;
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  line-height: 1.12;
}
.muted { color: var(--muted); }

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(24, 57, 80, .09);
}

.admin-head h1 {
  margin-bottom: 4px;
}

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

.period-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: #e9f0f2;
  border-radius: 8px;
  margin-bottom: 18px;
}

.period-tabs button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--sea);
  padding: 9px 13px;
  font-weight: 800;
  cursor: pointer;
}

.period-tabs button.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(18, 50, 65, .1);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat,
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.stat {
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--sea-2), var(--gold));
}

.stat .num { font-size: 1.7rem; font-weight: 900; }
.stat .label { font-size: .83rem; color: var(--muted); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card.wide {
  grid-column: 1 / -1;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.trend-chart {
  min-height: 220px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(44px, 1fr);
  align-items: end;
  gap: 10px;
  padding-top: 16px;
  overflow-x: auto;
}

.trend-bar {
  min-height: 200px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 7px;
  align-items: end;
  text-align: center;
}

.trend-bar span {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 800;
}

.trend-bar i {
  display: block;
  height: var(--bar-height);
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #c79b50, var(--teal));
}

.trend-bar em {
  color: var(--muted);
  font-size: .72rem;
  font-style: normal;
  white-space: nowrap;
}

.score-pill {
  display: inline-flex;
  border-radius: 999px;
  background: #eef7f3;
  color: var(--teal);
  padding: 6px 10px;
  font-weight: 800;
}

.nps-bars,
.rank-list,
.answer-list,
.area-table {
  display: grid;
  gap: 12px;
}

.nps-bars div,
.rank-list div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding-bottom: 12px;
}

.nps-bars div i,
.rank-list div i {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
}

.nps-bars div:nth-child(2) i {
  background: var(--gold);
}

.nps-bars div:nth-child(3) i {
  background: var(--bad);
}

.answer-row,
.area-row {
  display: grid;
  grid-template-columns: minmax(190px, .42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f4;
}

.answer-row:last-child,
.area-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.answer-row span,
.area-row span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  margin-top: 2px;
}

.stacked-bar,
.rating-mix {
  height: 13px;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f4;
}

.stacked-bar i,
.rating-mix i {
  min-width: 0;
}

.stacked-bar .good,
.rating-mix .very-good {
  background: var(--good);
}

.rating-mix .good {
  background: var(--teal);
}

.rating-mix .normal {
  background: var(--gold);
}

.stacked-bar .bad,
.rating-mix .bad {
  background: var(--bad);
}

.attention-item {
  padding: 12px 0;
  border-top: 1px solid #edf0f4;
}

.attention-item:first-of-type {
  border-top: 0;
}

.attention-item span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  margin-top: 2px;
}

.attention-item p {
  margin: 8px 0 0;
}

.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .91rem; }
.table th, .table td { padding: 11px 10px; border-bottom: 1px solid #e7ebf0; text-align: left; vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  background: #edf1f5;
  color: #4d5a6a;
}

.badge.muted { background: #edf1f5; color: #4d5a6a; }
.badge.good { background: #e7f4ee; color: var(--good); }
.badge.warn { background: #fff4dc; color: var(--warn); }
.badge.bad { background: #fde8e8; color: var(--bad); }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  background: var(--sea);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.btn.secondary { background: #eef2f6; color: var(--sea); }
.btn.small { padding: 7px 10px; font-size: .84rem; }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid #edf0f4; }
.kv:last-child { border-bottom: 0; }

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, .45fr) auto auto;
  gap: 12px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.filter-bar .field {
  margin-bottom: 0;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-bottom: 0;
  color: #243244;
  font-weight: 730;
}

.check-field input {
  width: 20px;
  height: 20px;
}

.check-field span {
  margin: 0;
}

.inbox-split {
  grid-template-columns: minmax(420px, 1fr) minmax(360px, .85fr);
  align-items: start;
}

.table tr.is-selected {
  background: #f7fbfa;
}

.table-preview {
  max-width: 340px;
  margin-top: 4px;
  font-size: .82rem;
}

.detail-card {
  position: sticky;
  top: 16px;
}

.detail-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.detail-title h2 {
  margin: 0;
  color: var(--sea);
}

.detail-card h3 {
  margin: 22px 0 8px;
  color: var(--sea);
}

.admin-form {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}

.note-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  margin: 8px 0;
  background: #fbfdfc;
}

.note-item p {
  margin: 7px 0 0;
}

.translation-original {
  margin-top: 8px;
  font-weight: 500;
}

.translation-original summary {
  color: var(--sea-2);
  cursor: pointer;
  font-size: .83rem;
  font-weight: 800;
}

.translation-original p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 500;
  white-space: pre-wrap;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(21, 63, 84, .14), rgba(21, 63, 84, 0) 230px),
    #f4f8f9;
}

.login-card {
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 22px 60px rgba(18, 50, 65, .14);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.login-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  background: #fff;
}

.login-brand h1 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.15;
}

.login-eyebrow {
  color: var(--sea);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-copy {
  color: var(--muted);
  margin: 0 0 18px;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid #cfd9df;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.field .password-row input {
  border: 0;
  border-radius: 0;
  min-width: 0;
}

.field .password-row input:focus {
  box-shadow: none;
}

.password-row:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(36, 105, 115, .14);
}

.password-toggle {
  height: 100%;
  border: 0;
  border-left: 1px solid var(--line);
  background: #f7fafb;
  color: var(--sea);
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.password-toggle:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

@media (min-width: 680px) {
  .guest-shell { padding-inline: 22px; }
  .step { padding: 28px; }
  .chip-grid--ratings { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step-actions {
    position: sticky;
    bottom: 0;
    max-width: 760px;
    margin: 14px auto 0;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
}

@media (max-width: 760px) {
  .field-grid,
  .split,
  .dashboard-grid,
  .filter-bar,
  .inbox-split { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { display: block; }
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    padding: 10px 12px;
    display: flex;
    gap: 6px;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .sidebar .logo { margin: 0 12px 0 0; white-space: nowrap; }
  .sidebar-brand {
    flex: 0 0 auto;
    margin: 0 8px 0 0;
    padding: 0 12px 0 0;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, .14);
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .brand-copy strong { font-size: .9rem; }
  .brand-copy span { font-size: .78rem; }
  .sidebar a { white-space: nowrap; }
  .main { margin-left: 0; padding: 18px; }
  .admin-head { flex-direction: column; }
  .admin-actions { justify-content: flex-start; }
  .answer-row,
  .area-row { grid-template-columns: 1fr; }
  .trend-chart { grid-auto-columns: minmax(38px, 1fr); }
  .detail-card { position: static; }
}

@media (max-width: 430px) {
  .guest-shell { padding-inline: 10px; }
  .progress-card__top { grid-template-columns: 1fr; }
  .language-control {
    width: 100%;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .language-control select { width: 100%; }
  .language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { border-radius: 16px; padding: 18px 14px; }
  .welcome-panel { padding: 22px 18px; }
  .field-grid--stay { gap: 8px; }
  .score-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .chip-grid--age { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-list div { grid-template-columns: 1fr; gap: 2px; }
  .step-actions { grid-template-columns: .7fr 1.3fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; }
}
