.tonight {
  --ink: #173e35;
  --paper: #f6f4ed;
  --lime: #ddeaac;
  --orange: #ef875f;
  --line: #d8ddd1;
  color: var(--ink);
  padding-bottom: 50px;
}
.tonight [hidden] {
  display: none !important;
}
.tonight-intro {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 48px 0 65px;
}
.tonight h1 {
  font-size: clamp(64px, 8vw, 110px);
  line-height: 0.94;
  letter-spacing: -5px;
  position: relative;
  margin: 24px 0;
}
.tonight h1 em,
.result-heading h2 em {
  font-weight: 400;
}
.sunburst {
  display: inline-block;
  font-size: 85px;
  color: var(--orange);
  margin-left: 28px;
  vertical-align: middle;
}
.tonight-intro p {
  max-width: 470px;
  font-size: 19px;
  line-height: 1.6;
}
.tonight-chips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-top: 25px;
}
.tonight-chips span {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 12px;
}
.tonight-postcard {
  background: var(--lime);
  border-radius: 6px 60px 6px 6px;
  min-height: 350px;
  padding: 32px;
  transform: rotate(3deg);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 12px 0 #e9e9de;
}
.postcard-top,
.postcard-bottom {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
}
.postcard-doodle {
  font-size: 110px;
  line-height: 1.2;
  font-family: serif;
}
.tonight-postcard strong {
  font:
    32px/1.2 Georgia,
    serif;
  letter-spacing: -0.8px;
}
.postcard-bottom {
  margin-top: 28px;
}
.tonight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr);
  gap: 55px;
  align-items: start;
}
.tonight-form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
}
.wizard-status {
  font-size: 12px;
  font-weight: 700;
  color: #587165;
  margin-bottom: 26px;
}
.step-track {
  height: 4px;
  background: #edf0e9;
  border-radius: 4px;
  margin-top: 12px;
}
.step-track i {
  display: block;
  height: 4px;
  background: var(--ink);
  width: 25%;
  transition: width 0.2s;
}
.tonight-step {
  border: 0;
  padding: 0;
  margin: 0 0 30px;
  min-width: 0;
}
.tonight-step legend {
  font:
    32px/1.15 Georgia,
    serif;
  letter-spacing: -0.5px;
  width: 100%;
  padding: 0;
}
.tonight-step legend small {
  display: block;
  font:
    10px/1.4 system-ui,
    sans-serif;
  letter-spacing: 1.7px;
  color: #688072;
  margin-bottom: 12px;
}
.step-hint {
  font-size: 14px;
  margin: 12px 0 22px;
  color: #68786d;
}
.choice-grid > div {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choice-grid.energy > div,
.choice-grid.budget > div,
.choice-grid.company > div {
  grid-template-columns: 1fr;
}
.choice-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  min-height: 56px;
  margin: 0;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.choice-grid label:has(input:checked) {
  background: var(--lime);
  border-color: #708658;
  box-shadow: inset 0 0 0 1px #708658;
}
.choice-grid input {
  accent-color: var(--ink);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 0;
}
.choice-grid label:hover {
  border-color: #819977;
}
.tonight h3 {
  font-size: 17px;
  margin: 25px 0 12px;
}
.tonight h3 span {
  font-size: 12px;
  font-weight: 400;
}
.field-note {
  font:
    12px/1.6 system-ui,
    sans-serif;
  color: #69776f;
  margin: 12px 0;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin: 20px 0 0;
}
.check-line input {
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
  margin: 0;
}
.time-fields {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}
.time-fields label,
.stack-label {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.tonight input[type="date"],
.tonight input[type="time"],
.tonight input[type="text"],
.tonight select {
  display: block;
  background: #fbfcf8;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 10px;
  width: 100%;
  min-width: 0;
  margin-top: 7px;
  font: 15px system-ui;
  color: var(--ink);
}
.stack-label {
  margin-top: 17px;
}
.meeting-field input {
  max-width: 180px;
}
.memory-choice {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.wizard-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 5px;
  margin-bottom: 14px;
}
.tonight-primary,
.tonight-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 15px 22px;
  border-radius: 30px;
  font: 600 14px system-ui;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  border: 1px solid var(--ink);
}
.tonight-primary {
  background: var(--ink);
  color: #fff;
}
.tonight-secondary {
  background: transparent;
  color: var(--ink);
}
.tonight-primary:hover {
  background: #285344;
}
.tonight-secondary:hover {
  background: #e9eedf;
}
.inline-button {
  background: transparent;
  border: 0;
  padding: 2px 0;
  color: #4c6655;
  text-decoration: underline;
  font: 12px/1.5 system-ui;
  cursor: pointer;
}
.tonight-side-note {
  padding: 32px 8px;
}
.tonight-side-note h2 {
  font:
    34px/1.2 Georgia,
    serif;
  margin: 16px 0;
}
.tonight-side-note p,
.tonight-side-note li {
  font-size: 14px;
  line-height: 1.8;
  color: #607264;
}
.tonight-side-note ol {
  padding-left: 20px;
}
.side-spark {
  font-size: 95px;
  color: var(--orange);
  margin-top: 22px;
}
.tonight-result {
  margin-top: 65px;
  padding-top: 45px;
  border-top: 1px solid var(--line);
  outline: 0;
  scroll-margin-top: 24px;
}
.result-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.result-heading h2 {
  font:
    66px/1.02 Georgia,
    serif;
  letter-spacing: -3px;
  margin: 20px 0;
}
.result-heading p {
  font-size: 15px;
  color: #5e7367;
}
.result-stamp {
  border: 2px solid #9baa8c;
  border-radius: 50%;
  padding: 28px;
  font: 20px/1.05 system-ui;
  transform: rotate(12deg);
  color: #68765c;
  text-align: center;
}
.plan-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: #eaf0dd;
  border-radius: 15px;
  margin: 30px 0;
  padding: 22px;
}
.plan-stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 18px;
  border-right: 1px solid #c5cfba;
}
.plan-stats div:last-child {
  border: 0;
}
.plan-stats b {
  font-size: 23px;
}
.plan-stats span {
  font-size: 11px;
  color: #5b6c5e;
}
.plan-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.timeline {
  max-width: 850px;
}
.timeline-stop {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 26px;
  padding-bottom: 24px;
  position: relative;
}
.stop-when {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 22px;
  font-size: 14px;
}
.stop-when span {
  font-size: 11px;
  color: #6b796e;
}
.stop-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
}
.stop-card:before {
  content: "";
  position: absolute;
  left: -20px;
  top: 25px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.stop-card h3 {
  font:
    26px/1.2 Georgia,
    serif;
  margin: 13px 0;
}
.stop-card p {
  font-size: 14px;
  line-height: 1.7;
  margin: 10px 0;
}
.stop-type {
  text-transform: uppercase;
  font: 10px system-ui;
  letter-spacing: 1.4px;
  color: #6c7b62;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.stop-type span {
  letter-spacing: 0;
  text-transform: none;
}
.stop-address {
  color: #748073;
}
.stop-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
}
.stop-links a {
  color: var(--ink);
}
.stop-card .field-note {
  font-size: 11px;
}
.stop-event .stop-card {
  background: #eaf0dd;
}
.stop-return .stop-card,
.stop-pause .stop-card {
  background: transparent;
  border-style: dashed;
}
.free-time {
  padding: 10px;
  background: #f5f4ed;
  border-radius: 8px;
  color: #5f705e;
}
.plan-notes,
.plan-copy {
  max-width: 850px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
}
.plan-notes summary,
.plan-copy summary {
  cursor: pointer;
  font-weight: 600;
}
.plan-copy textarea {
  width: 100%;
  max-width: 100%;
  margin-top: 15px;
  padding: 15px;
  font: 13px/1.5 system-ui;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-sizing: border-box;
}
.tonight-feedback {
  background: #eeeede;
  padding: 25px;
  border-radius: 15px;
  max-width: 850px;
  margin-top: 30px;
}
.tonight-feedback h3 {
  margin: 0;
}
.tonight-feedback p {
  font-size: 13px;
}
.tonight-feedback button {
  margin: 4px 8px 8px 0;
}
.tonight-error {
  padding: 15px;
  background: #fff0e8;
  border: 1px solid #cd8268;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
}
.tonight-error a {
  color: #943e2d;
}
.empty-plan {
  max-width: 600px;
}
.empty-plan h2 {
  font:
    40px Georgia,
    serif;
}
.tonight :focus-visible {
  outline: 3px solid #d8754b;
  outline-offset: 4px;
}
@media (max-width: 800px) {
  .tonight-intro {
    gap: 30px;
  }
  .tonight-postcard {
    min-height: 310px;
    padding: 25px;
  }
  .tonight-postcard strong {
    font-size: 26px;
  }
  .tonight-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tonight-side-note {
    display: none;
  }
  .tonight-form-panel {
    max-width: 650px;
    width: 100%;
    margin: auto;
  }
  .sunburst {
    font-size: 55px;
    margin-left: 12px;
  }
  .tonight-intro h1 {
    font-size: 80px;
  }
  .plan-stats div {
    padding: 0 10px;
  }
}
@media (max-width: 560px) {
  .tonight-intro {
    display: block;
    padding: 28px 0 30px;
  }
  .tonight-intro h1 {
    font-size: 73px;
    letter-spacing: -4px;
  }
  .tonight-intro p {
    font-size: 16px;
  }
  .tonight-postcard {
    display: none;
  }
  .tonight-form-panel {
    padding: 23px 18px;
    border-radius: 19px;
  }
  .tonight-step legend {
    font-size: 29px;
  }
  .tonight-chips {
    gap: 6px;
    font-size: 10px;
  }
  .tonight-chips span {
    padding: 7px 9px;
  }
  .choice-grid > div {
    grid-template-columns: 1fr;
  }
  .time-fields {
    grid-template-columns: 1fr 1fr;
  }
  .time-fields label:first-child {
    grid-column: 1/-1;
  }
  .tonight h1 {
    margin-top: 15px;
  }
  .result-heading h2 {
    font-size: 54px;
  }
  .result-stamp {
    padding: 19px;
    font-size: 14px;
  }
  .plan-stats {
    padding: 16px 6px;
  }
  .plan-stats b {
    font-size: 17px;
  }
  .plan-stats span {
    font-size: 10px;
    line-height: 1.5;
  }
  .plan-stats div {
    padding: 0 8px;
  }
  .timeline-stop {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 17px;
  }
  .stop-when {
    flex-direction: row;
    gap: 10px;
    padding-top: 0;
    align-items: baseline;
  }
  .stop-card {
    padding: 20px;
  }
  .stop-card:before {
    left: -18px;
  }
  .stop-card h3 {
    font-size: 23px;
  }
  .tonight-result {
    margin-top: 38px;
    padding-top: 30px;
  }
  .tonight-primary,
  .tonight-secondary {
    padding: 13px 18px;
    font-size: 13px;
  }
  .plan-toolbar {
    gap: 8px;
  }
  .tonight-feedback button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tonight * {
    transition: none !important;
  }
}

.tonight .tonight-result:focus-visible {
  outline: none;
}

#outing-map {
  height: 400px;
  border-radius: 16px;
  background: #e7ebdf;
}
.outing-map-panel {
  margin-bottom: 30px;
}
.tour-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
#tour-current {
  flex: 1 1 180px;
  font-size: 14px;
}
.stop-focus {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.timeline-stop.is-selected .stop-card {
  border: 2px solid var(--ink);
  background: #f3f7e8;
}
.origin-matches button {
  display: block;
  margin: 12px 0;
  width: 100%;
  text-align: left;
}
.tonight input[type="number"] {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
@media (max-width: 560px) {
  #outing-map {
    height: 310px;
  }
}

.tonight .quick-interests {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tonight .quick-interests button {
  text-align: left;
  min-height: 64px;
}
.tonight .quick-interests button[aria-pressed="true"] {
  border-color: var(--ink);
  background: #e7eddb;
}
.tonight .outing-options {
  margin-top: 22px;
  border-top: 1px solid #d4d2c9;
  padding-top: 18px;
}
.tonight .outing-options summary {
  cursor: pointer;
  font-weight: 700;
}
.tonight .outing-options summary span {
  font-weight: 400;
  font-size: 0.85em;
}

.tonight[data-active-step="1"] .tonight-intro,
.tonight[data-active-step="2"] .tonight-intro {
  display: none;
}

.tonight .inline-error {
  color: #963415;
  font-size: 0.9rem;
  margin: 8px 0 16px;
}
.tonight [aria-invalid="true"] {
  outline: 2px solid #b14526;
  outline-offset: 2px;
}
.tonight button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.tonight #use-activities {
  margin-top: 16px;
}
.tonight #activity-select-mode {
  margin-bottom: 12px;
}
.tonight .selection-number:not(:empty) {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  margin-right: 6px;
}
.tonight .selection-number {
  flex-shrink: 0;
}

.draft-prose {
  max-width: 70ch;
  line-height: 1.75;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.draft-places {
  padding-left: 1.5rem;
}
.draft-places li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line, #d8ded6);
  overflow-wrap: anywhere;
}
