:root {
  color-scheme: light;
  --bg: #fff8ee;
  --surface: #ffffff;
  --surface-2: #fff1dc;
  --line: rgba(74, 57, 38, 0.14);
  --text: #2d2924;
  --muted: #6f675e;
  --amber: #ffb43a;
  --amber-hover: #ffc866;
  --amber-strong: #a95312;
  --mint: #2f9e7d;
  --red: #c44c45;
  --shadow: 0 18px 48px rgba(99, 75, 39, 0.12);
  --radius: 22px;
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 14% -10%, rgba(255, 180, 58, 0.24), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(47, 158, 125, 0.13), transparent 34rem),
    linear-gradient(180deg, rgba(255,255,255,.38), transparent 34rem),
    var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image: linear-gradient(rgba(90,68,42,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(90,68,42,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--amber-strong); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 45% 55%;
  color: #17130d;
  background: var(--amber);
  font-weight: 900;
  transform: rotate(-4deg);
  box-shadow: 0 0 30px rgba(246, 185, 74, .2);
}
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .08em; }
.brand small { color: var(--muted); font-size: .68rem; margin-top: 2px; }

main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 88px;
}

.view[hidden], [hidden] { display: none !important; }
.narrow-view { width: min(820px, 100%); margin: 0 auto; }

.hero {
  padding: clamp(28px, 5vw, 64px) 0 48px;
  max-width: 760px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: .74rem;
  letter-spacing: .23em;
  font-weight: 800;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
h1 em { color: var(--amber-strong); font-style: normal; }
h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.hero-copy, .lead {
  color: var(--muted);
  line-height: 1.85;
}
.hero-copy { max-width: 640px; margin: 20px 0 0; font-size: clamp(.96rem, 1.7vw, 1.08rem); }
.lead { margin: 14px 0 28px; }

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

button {
  border: 0;
  cursor: pointer;
}
button:disabled { cursor: not-allowed; opacity: .5; }
.primary-button, .secondary-button, .danger-button, .text-button, .back-button {
  min-height: 48px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.primary-button {
  color: #17130d;
  background: var(--amber);
  box-shadow: 0 12px 32px rgba(246, 185, 74, .16);
}
.primary-button:hover { background: var(--amber-strong); transform: translateY(-2px); }
.secondary-button, .text-button, .back-button {
  color: var(--text);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}
.secondary-button:hover, .text-button:hover { border-color: rgba(246,185,74,.55); }
.danger-button { color: #ffe5e2; background: rgba(255,128,120,.12); border: 1px solid rgba(255,128,120,.3); }
.back-button { padding: 0 14px; margin-bottom: 18px; color: var(--muted); background: transparent; }
.text-button { min-height: 40px; padding: 0 14px; }
.small-button { min-height: 40px; padding: 0 14px; font-size: .88rem; }
.full-button { width: 100%; margin-top: 22px; }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 28, 39, .7);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feature-strip article { min-height: 150px; padding: 24px; border-right: 1px solid var(--line); }
.feature-strip article:last-child { border-right: 0; }
.feature-strip span { color: var(--amber); font-size: .75rem; font-weight: 900; }
.feature-strip h2 { margin-top: 20px; font-size: 1.15rem; }
.feature-strip p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }

.local-preview { margin-top: 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading.compact { align-items: center; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 38px);
  background: linear-gradient(145deg, rgba(28,38,52,.92), rgba(17,23,33,.94));
  box-shadow: var(--shadow);
}
.create-panel > h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }

form { margin-top: 30px; }
.form-grid { display: grid; gap: 20px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label, legend { font-weight: 800; font-size: .9rem; }
label { display: grid; gap: 8px; }
fieldset { margin: 26px 0; padding: 0; border: 0; }
legend { font-size: 1rem; }
input, select, textarea {
  width: 100%;
  color: var(--text);
  background: #0f151e;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
}
input, select { min-height: 48px; }
textarea { resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(246,185,74,.12); }
.input-with-unit { position: relative; display: block; }
.input-with-unit input { padding-right: 44px; }
.input-with-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.field-note, .submit-note, .legal-note { color: var(--muted); line-height: 1.7; font-size: .82rem; }
.legal-note a, .privacy-note a { color: var(--amber-strong); }
.consent-row, .revisit-row { display: flex; grid-template-columns: none; align-items: flex-start; gap: 12px; color: var(--muted); font-weight: 500; line-height: 1.6; }
.consent-row input, .revisit-row input { width: 20px; min-height: 20px; margin-top: 2px; accent-color: var(--amber); }
.form-actions { display: flex; gap: 12px; margin-top: 22px; }
.form-actions .primary-button { flex: 1; }

.status-message {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(125,225,189,.28);
  border-radius: 14px;
  background: #182923;
  color: #dffbef;
  box-shadow: var(--shadow);
  text-align: center;
}
.status-message.error { background: #301c1c; color: #ffe5e2; border-color: rgba(255,128,120,.35); }

.room-heading { margin: 18px 0 28px; }
.room-heading h1 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); }
.room-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; color: var(--muted); }
.room-meta span, .room-meta a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.share-panel, .progress-panel, .response-panel, .waiting-panel { margin-bottom: 22px; }
.share-url-row { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.12); }
.share-url-row code { display: block; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }

.progress-panel { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.progress-count { display: block; font-size: 1.7rem; font-weight: 900; color: var(--amber-strong); }
.progress-summary .field-note { margin: 4px 0 0; }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--mint)); transition: width .35s ease; }
.progress-actions { margin: 0; justify-content: flex-end; }
.participant-management, .edit-response-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.participant-management h2, .edit-response-panel h2 { margin-bottom: 7px; }
.participant-management .field-note, .edit-response-panel .field-note { margin: 0; }
.participant-management-controls { display: flex; align-items: end; gap: 10px; }
.participant-management-controls label { min-width: 130px; }

.ratings-fieldset { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; }
.ratings-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.ratings-grid label { font-size: .8rem; }

.waiting-panel { text-align: center; padding-top: 54px; padding-bottom: 54px; }
.waiting-panel p { max-width: 600px; margin: 14px auto 0; color: var(--muted); line-height: 1.8; }
.waiting-orb { display: block; width: 28px; height: 28px; margin: 0 auto 24px; border: 4px solid rgba(246,185,74,.25); border-top-color: var(--amber); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-hero { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 22px; }
.saved-badge.is-preliminary { color: var(--amber-strong); background: rgba(246,185,74,.1); }
.saved-badge { display: inline-block; margin: 14px 0 0; padding: 7px 10px; border-radius: 99px; color: var(--mint); background: rgba(125,225,189,.1); font-size: .78rem; }
.overall-score { flex: 0 0 auto; width: 130px; height: 130px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(246,185,74,.4); background: radial-gradient(circle, rgba(246,185,74,.18), transparent 68%); color: var(--amber-strong); font-size: 2.8rem; font-weight: 900; }
.overall-score small { font-size: .75rem; color: var(--muted); display: block; text-align: center; margin-top: -32px; }
.rating-results { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; margin-bottom: 22px; }
.rating-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.rating-card span { color: var(--muted); font-size: .78rem; }
.rating-card strong { display: block; margin-top: 8px; font-size: 1.7rem; color: var(--amber-strong); }
.rating-card .meter { height: 4px; margin-top: 12px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.rating-card .meter i { display: block; height: 100%; background: var(--amber); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.mvp-winner { margin: 22px 0 0; font-size: 1.5rem; font-weight: 900; color: var(--amber-strong); }
.mvp-reasons, .minutes-list { margin: 14px 0 0; padding: 0; list-style: none; }
.mvp-reasons li, .minutes-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.65; }
.mvp-reasons b, .minutes-list b { color: var(--text); }
.split-amount { margin: 20px 0 0; font-size: 2rem; font-weight: 900; color: var(--mint); }
.split-detail { color: var(--muted); line-height: 1.75; }
.minutes-panel { margin-top: 22px; }
.minutes-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin-top: 24px; }
.minutes-column h3 { font-size: 1rem; color: var(--amber-strong); }
.empty-note { color: var(--muted); }
.delete-area { margin-top: 22px; text-align: right; }

.record-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.record-card { position: relative; display: flex; flex-direction: column; min-height: 200px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.record-card:hover { border-color: rgba(246,185,74,.4); }
.record-card time { color: var(--amber); font-size: .75rem; font-weight: 800; }
.record-card h3 { margin: 18px 0 6px; font-size: 1.2rem; }
.record-card p { color: var(--muted); margin: 0; }
.record-card .record-score { margin-top: auto; padding-top: 18px; color: var(--mint); font-size: 1.4rem; font-weight: 900; }
.record-card button.open-record { position: absolute; inset: 0; width: 100%; background: transparent; border-radius: inherit; }
.record-card button.delete-record { position: relative; z-index: 2; align-self: flex-end; min-height: 34px; padding: 0 10px; color: var(--muted); background: transparent; }
.empty-records { grid-column: 1 / -1; padding: 34px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }

.local-result-shell .delete-area { display: none; }

footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 50px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: .83rem;
}
.rakuten-ad { flex: 0 0 100%; display: grid; justify-items: center; overflow: hidden; padding-bottom: 8px; }
.rakuten-ad-label { margin: 0 0 10px; color: var(--muted); font-size: .72rem; }
#rakutenWidgetArea { min-height: 160px; max-width: 100%; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
footer nav a { color: var(--muted); }

.legal-page { width: min(820px, calc(100% - 40px)); padding-top: 42px; }
.legal-page .legal-header { margin-bottom: 26px; }
.legal-page .legal-section { margin-bottom: 18px; }
.legal-page .legal-section h2 { margin-bottom: 12px; font-size: 1.15rem; }
.legal-page .legal-section p, .legal-page .legal-section li { color: var(--muted); line-height: 1.85; }
.legal-page .legal-section ul { margin: 0; padding-left: 1.3rem; }
.legal-page .updated-at { color: var(--muted); font-size: .82rem; }


.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,.16);
}
.mode-button {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}
.mode-button.is-active {
  color: #17130d;
  background: var(--amber);
}

.conditional-fields, .optional-details { margin-top: 26px; }
.optional-details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  background: rgba(255,255,255,.025);
}
.optional-details summary {
  padding: 16px 0;
  cursor: pointer;
  color: var(--amber-strong);
  font-weight: 800;
}
.details-grid { padding: 4px 0 18px; }
.privacy-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.7;
}
.candidate-heading { margin: 0 0 14px; }
.candidate-heading h2 { font-size: 1.15rem; }
.candidate-heading .field-note { margin: 5px 0 0; }
.candidate-inputs { display: grid; gap: 10px; }
.candidate-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}
.candidate-remove { min-height: 48px; }

.schedule-fieldset { margin-top: 26px; }
.schedule-choice-list { display: grid; gap: 10px; margin-top: 14px; }
.schedule-choice {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0,0,0,.12);
}
.schedule-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.schedule-result-card { position: relative; box-shadow: none; }
.schedule-result-card.is-best { border-color: rgba(246,185,74,.55); }
.schedule-result-card.is-confirmed { border-color: rgba(125,225,189,.7); box-shadow: 0 0 0 1px rgba(125,225,189,.16); }
.confirmed-schedule-banner { margin-bottom: 22px; border-color: rgba(125,225,189,.48); background: linear-gradient(145deg, rgba(25,54,48,.94), rgba(17,31,32,.94)); }
.confirmed-schedule-banner h2 { margin-top: 4px; color: var(--mint); }
.confirmed-schedule-banner .field-note { margin-bottom: 0; }
.calendar-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.calendar-actions a, .calendar-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.calendar-privacy-note { margin-top: 12px !important; }
.schedule-result-card h2 { font-size: 1.2rem; }
.availability-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.availability-counts span {
  padding: 7px 11px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  font-weight: 900;
}
.availability-counts .yes { color: var(--mint); }
.availability-counts .maybe { color: var(--amber-strong); }
.availability-counts .no { color: var(--red); }
.availability-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .88rem;
}
.schedule-card-actions { display: grid; gap: 9px; margin-top: 20px; }
.schedule-card-actions button { width: 100%; }
.schedule-note-panel { margin-top: 22px; }
.share-success-panel { text-align: center; overflow: hidden; }
.share-success-panel h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.share-success-panel > .lead { margin-bottom: 22px; }
.share-success-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #10241d;
  background: var(--mint);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 0 40px rgba(125,225,189,.2);
}
.share-success-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
  text-align: left;
}
.share-success-main, .qr-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0,0,0,.15);
}
.share-label { margin: 0 0 12px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.share-success-url {
  display: block;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 13px;
  color: var(--text);
  background: #0f151e;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.share-success-actions { display: flex; gap: 10px; margin-top: 16px; }
.share-success-actions > * { flex: 1; }
.line-share-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 14px;
  color: #fff;
  background: #06c755;
  font-weight: 800;
  text-decoration: none;
}
.line-share-button:hover { background: #08b94f; }
.qr-card { text-align: center; }
.share-qr {
  width: 224px;
  min-height: 224px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}
.share-qr canvas, .share-qr img { display: block; max-width: 100%; height: auto; }
.share-qr.is-error { padding: 20px; color: #512020; font-size: .82rem; line-height: 1.6; }
.share-privacy-note { margin: 20px 0 0; text-align: left; }

.journey-panel { margin-bottom: 22px; }
#journey-panel { padding: 20px 24px; box-shadow: none; background: rgba(21,28,39,.72); }
.share-journey { margin: 0; padding: 18px 0 0; }
.journey-heading { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; margin-bottom: 16px; }
.journey-heading .eyebrow { margin: 0; }
.journey-next { margin: 14px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.journey-heading .journey-next { margin: 0; text-align: right; }
.journey-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.journey-step { position: relative; display: grid; justify-items: center; gap: 7px; min-width: 0; color: #737d89; font-size: .72rem; font-weight: 800; text-align: center; }
.journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: rgba(255,255,255,.1);
}
.journey-number {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
}
.journey-step.is-complete { color: var(--muted); }
.journey-step.is-complete .journey-number { color: #10241d; border-color: var(--mint); background: var(--mint); }
.journey-step.is-complete::after { background: rgba(125,225,189,.55); }
.journey-step.is-current { color: var(--text); }
.journey-step.is-current .journey-number { color: #17130d; border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 5px rgba(246,185,74,.1); }

.confirmed-schedule-banner { scroll-margin-top: 24px; }
.confirmed-lead { margin: 8px 0 0; color: var(--text); font-weight: 800; }
.confirmed-answer-details { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.confirmed-answer-details summary, .other-candidates > summary { cursor: pointer; color: var(--text); font-weight: 800; }
.confirmed-answer-details .availability-answers { margin-bottom: 0; }
.other-candidates { margin-top: 22px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(21,28,39,.62); overflow: hidden; }
.other-candidates > summary { padding: 20px 24px; color: var(--muted); list-style-position: inside; }
.other-candidates[open] > summary { color: var(--text); border-bottom: 1px solid var(--line); }
.other-candidates .schedule-results { padding: 18px; }
.other-candidates .schedule-result-card { background: rgba(17,23,33,.86); }
.mobile-action-bar { display: none; }
/* Bright, convivial theme and faster task flows */
::selection { color: var(--text); background: rgba(255,180,58,.42); }
:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(169,83,18,.28);
  outline-offset: 3px;
}
.primary-button:hover { background: var(--amber-hover); }
.secondary-button, .text-button, .back-button { background: rgba(255,255,255,.72); }
.danger-button { color: #983d37; background: #fff0ed; border-color: rgba(196,76,69,.24); }
.feature-strip { background: rgba(255,255,255,.76); }
.panel { background: rgba(255,255,255,.92); }
input, select, textarea { color: var(--text); background: #fffdfa; border-color: rgba(74,57,38,.18); }
input::placeholder, textarea::placeholder { color: #9a9186; }
.status-message { border-color: rgba(47,158,125,.24); background: #eaf8f2; color: #236d58; }
.status-message.error { border-color: rgba(196,76,69,.24); background: #fff0ed; color: #983d37; }
.share-url-row { background: #fffaf2; }
.progress-track, .rating-card .meter { background: #efe4d4; }
.mode-switch { background: #f7ecdc; }
.optional-details { background: rgba(255,255,255,.56); }
.schedule-choice { background: #fffcf7; }
.confirmed-schedule-banner { border-color: rgba(47,158,125,.34); background: linear-gradient(145deg, #e9f8f2, #f8fffc); }
.availability-counts span { background: #f5eee4; }
.share-success-main, .qr-card { background: #fffaf2; }
.share-success-url { border-color: var(--line); color: var(--text); background: #fff; }
#journey-panel { background: rgba(255,250,242,.9); }
.journey-step { color: #91877b; }
.journey-step:not(:last-child)::after { background: #e8dccb; }
.journey-number { border-color: var(--line); background: #fff; }
.other-candidates { background: rgba(255,250,242,.76); }
.other-candidates .schedule-result-card { background: #fff; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr);
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
  max-width: none;
}
.hero-content { max-width: 720px; }
.hero-visual {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
}
.toast-card {
  position: relative;
  z-index: 2;
  width: min(280px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 1px solid rgba(169,83,18,.14);
  border-radius: 42% 58% 48% 52%;
  color: var(--text);
  background: linear-gradient(145deg, #ffd77d, #ffb43a);
  box-shadow: 0 28px 70px rgba(169,83,18,.2);
  transform: rotate(4deg);
  text-align: center;
}
.toast-card span { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 950; letter-spacing: -.06em; }
.toast-card small { color: #6d4315; font-weight: 800; }
.hero-bubble { position: absolute; z-index: 1; border-radius: 50%; }
.bubble-one { width: 84px; height: 84px; top: 10px; right: 8px; background: rgba(47,158,125,.25); }
.bubble-two { width: 48px; height: 48px; bottom: 20px; left: 6px; background: rgba(255,137,105,.28); }

.feature-strip article {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 22px;
}
.feature-strip article > span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #6d4315;
  background: #ffe5ad;
}
.feature-strip h2 { margin: 0; font-size: 1rem; }
.feature-strip p { margin: 3px 0 0; font-size: .82rem; }

.step-label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 9px;
  border-radius: 99px;
  color: #236d58;
  background: #e4f6ef;
  font-size: .72rem;
  font-weight: 900;
}
.create-details { margin-top: 22px; }
.create-details > summary { color: var(--text); }
.create-note-field { margin-top: 18px; }
.nested-details { margin-top: 18px; padding: 0 14px; border-top: 1px solid var(--line); }
.nested-details summary { padding: 14px 0; cursor: pointer; color: var(--amber-strong); font-weight: 800; }
.nested-details .details-grid { padding-bottom: 16px; }

.ratings-fieldset { padding-top: 20px; }
.rating-help { margin: 8px 0 14px; }
.ratings-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 0; }
.rating-question {
  display: grid;
  grid-template-columns: minmax(92px, 126px) 1fr;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffcf7;
}
.rating-question > legend { padding: 0; font-size: .88rem; }
.score-options { display: grid; grid-template-columns: repeat(5, minmax(38px, 1fr)); gap: 7px; }
.score-options label { display: block; }
.score-options input, .availability-option input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}
.score-options span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}
.score-options input:checked + span {
  color: #4c3212;
  border-color: var(--amber);
  background: #ffe1a0;
  box-shadow: 0 0 0 2px rgba(255,180,58,.16);
}
.score-options input:focus-visible + span, .availability-option input:focus-visible + span {
  outline: 3px solid rgba(169,83,18,.28);
  outline-offset: 2px;
}
.quick-answer {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(47,158,125,.25);
  border-radius: 14px;
  background: #eef9f5;
}
.quick-answer span { display: grid; gap: 3px; }
.quick-answer strong { color: var(--text); }
.quick-answer small { color: var(--muted); }
.feedback-more-details, .schedule-note-details { margin-top: 18px; }

.schedule-choice {
  margin: 0;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.2fr);
}
.schedule-choice-label { padding: 0; font-size: .92rem; }
.availability-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.availability-option { display: block; }
.availability-option span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  text-align: center;
}
.availability-option.is-yes input:checked + span { color: #1f6f57; border-color: rgba(47,158,125,.45); background: #e4f6ef; }
.availability-option.is-maybe input:checked + span { color: #805013; border-color: rgba(255,180,58,.6); background: #fff0ce; }
.availability-option.is-no input:checked + span { color: #983d37; border-color: rgba(196,76,69,.4); background: #fff0ed; }

@media (max-width: 860px) {
  .feature-strip, .record-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .feature-strip article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-strip article:last-child { border-bottom: 0; }
  .feature-strip h2 { margin-top: 0; }
  .progress-panel { grid-template-columns: 1fr; }
  .progress-actions { justify-content: flex-start; }
  .participant-management, .edit-response-panel { align-items: flex-start; flex-direction: column; }
  .ratings-grid { grid-template-columns: 1fr; }
  .rating-results { grid-template-columns: repeat(2,1fr); }
  .result-grid, .schedule-results, .share-success-layout { grid-template-columns: 1fr; }
  .qr-card { display: grid; justify-items: center; }
}

@media (max-width: 620px) {
  body.has-mobile-action main { padding-bottom: 126px; }
  body.has-mobile-action .status-message { bottom: 94px; }
  .mobile-action-bar {
    position: fixed;
    z-index: 15;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    padding: 12px max(14px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
    border-top: 1px solid var(--line);
    background: rgba(255,248,238,.94);
    box-shadow: 0 -14px 36px rgba(99,75,39,.16);
    backdrop-filter: blur(14px);
  }
  .mobile-action-bar .primary-button { width: 100%; min-height: 54px; }
  .share-success-actions { flex-direction: column; }
  .share-success-actions > * { width: 100%; flex: auto; }
  .share-success-main, .qr-card { padding: 16px; }
  .share-success-url { min-height: 90px; }
  .share-qr { width: min(224px, 100%); min-height: 0; aspect-ratio: 1; }
  #journey-panel { padding: 16px 12px; }
  .journey-heading { display: block; }
  .journey-heading .journey-next { margin-top: 8px; text-align: left; }
  .journey-label { font-size: .64rem; line-height: 1.25; }
  .journey-steps { grid-auto-columns: minmax(70px, 1fr); overflow-x: auto; padding: 5px 0 8px; }
  .journey-step { gap: 6px; }
  .journey-number { width: 28px; height: 28px; font-size: .7rem; }
  .journey-step:not(:last-child)::after { top: 13px; left: calc(50% + 16px); width: calc(100% - 32px); }
  .other-candidates > summary { padding: 18px; }
  .other-candidates .schedule-results { padding: 12px; }
  .site-header, main, footer { width: min(100% - 28px, 1120px); }
  .site-header { min-height: 72px; }
  main { padding-top: 24px; }
  .text-button { font-size: .76rem; padding: 0 10px; }
  .hero { padding: 24px 0 32px; }
  .hero-actions > button { width: 100%; }
  .two-columns, .minutes-grid { grid-template-columns: 1fr; }
  .panel { border-radius: 18px; padding: 20px; }
  .ratings-grid { grid-template-columns: 1fr; }
  .rating-question { grid-template-columns: 1fr; gap: 9px; }
  .score-options { grid-template-columns: repeat(5, minmax(38px, 1fr)); }
  .schedule-choice { grid-template-columns: 1fr; }
  .candidate-input-row { grid-template-columns: 1fr auto; }
  .result-hero { align-items: flex-start; }
  .overall-score { width: 92px; height: 92px; font-size: 2rem; }
  .rating-results { grid-template-columns: 1fr 1fr; }
  .rating-card { padding: 15px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .participant-management-controls, .form-actions, .calendar-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .participant-management-controls button, .form-actions button, .calendar-actions a, .calendar-actions button { width: 100%; }
  footer { flex-direction: column; }
  footer nav { justify-content: flex-start; }
}

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