.timer-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.timer-options button,
.filter-chip,
.choice-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.74);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
}

.timer-options button.is-selected,
.filter-chip.is-selected,
.choice-chip.is-selected {
  border-color: rgba(216, 128, 120, 0.45);
  background: rgba(216, 128, 120, 0.14);
  color: var(--rose-deep);
}

.map-panel {
  min-height: 380px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(111, 143, 129, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(111, 143, 129, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #fdf5e7, #dcebf0);
  background-size:
    44px 44px,
    44px 44px,
    cover;
}

.map-road {
  position: absolute;
  height: 8px;
  background: rgba(184, 110, 84, 0.18);
  border-radius: 999px;
}

.map-road.one {
  width: 72%;
  top: 30%;
  left: 8%;
  transform: rotate(-12deg);
}

.map-road.two {
  width: 84%;
  top: 58%;
  left: 5%;
  transform: rotate(9deg);
}

.map-road.three {
  width: 46%;
  top: 45%;
  right: 4%;
  transform: rotate(82deg);
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid #fffaf4;
  border-radius: 50%;
  background: var(--rose);
  color: white;
  box-shadow: var(--tight-shadow);
  font-weight: 900;
}

.map-pin.home {
  left: 46%;
  top: 47%;
  background: #332a24;
}

.map-pin.police {
  left: 20%;
  top: 30%;
  background: var(--sage);
}

.map-pin.store {
  right: 18%;
  top: 62%;
  background: var(--honey);
}

.map-pin.cafe {
  right: 25%;
  top: 28%;
  background: var(--clay);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.info-box {
  min-height: 92px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(94, 74, 59, 0.1);
  background: rgba(255, 255, 255, 0.48);
}

.info-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.info-box strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.living-layout {
  display: grid;
  grid-template-columns: 250px 1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.category-list,
.filter-list {
  display: grid;
  gap: 8px;
}

.category-button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.72);
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.category-button.is-selected {
  background: #332a24;
  color: #fffaf4;
}

.guide-card {
  background: rgba(255, 250, 244, 0.72);
}

.guide-meta,
.place-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-chip {
  width: fit-content;
}

.review {
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  line-height: 1.5;
}

.day-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: start;
}

.choice-group {
  margin-bottom: 20px;
}

.choice-group h3 {
  margin: 0 0 10px;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.possibility-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.74);
}

.possibility-card button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(216, 128, 120, 0.12);
  color: var(--rose-deep);
  cursor: pointer;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.timeline-card time {
  font-weight: 900;
  color: var(--rose-deep);
}

.timeline-card button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
}

.auth-layout {
  min-height: calc(100vh - var(--nav-height));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: center;
  width: min(1050px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 48px 0;
}

.auth-visual {
  min-height: 620px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.08), rgba(255, 250, 244, 0.46)),
    url("../assets/her-own-sunlit-room.png");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.auth-panel {
  padding: clamp(24px, 4vw, 44px);
}

.tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 800;
  color: var(--muted);
}

.tab.is-selected {
  background: #332a24;
  color: #fffaf4;
}

.form-grid {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(216, 128, 120, 0.55);
  box-shadow: 0 0 0 3px rgba(216, 128, 120, 0.12);
}

.my-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.profile-panel {
  padding: 22px;
}

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

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
}

.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(111, 143, 129, 0.24);
  cursor: pointer;
}

.toggle::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fffaf4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  transition: transform 180ms ease;
}

.toggle.is-on {
  background: var(--sage);
}

.toggle.is-on::after {
  transform: translateX(20px);
}

.assistant-launch {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 50%;
  background: #332a24;
  color: #fffaf4;
  box-shadow: 0 18px 46px rgba(57, 43, 33, 0.28);
  cursor: pointer;
  font-weight: 900;
}

.assistant-panel {
  position: fixed;
  z-index: 70;
  right: 22px;
  bottom: 102px;
  width: min(390px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 124px));
  display: none;
  grid-template-rows: auto 1fr auto auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(22px);
}

.assistant-panel.is-open {
  display: grid;
}

.assistant-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.assistant-head h2 {
  margin: 0;
  font-size: 20px;
}

.assistant-log {
  display: grid;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
}

.message {
  max-width: 88%;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  line-height: 1.45;
}

.message.user {
  justify-self: end;
  background: #332a24;
  color: #fffaf4;
}

.message.is-loading {
  color: var(--muted);
  font-weight: 800;
}

.assistant-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(216, 128, 120, 0.36);
  border-radius: 999px;
  background: rgba(216, 128, 120, 0.12);
  color: var(--rose-deep);
  padding: 8px 11px;
  cursor: pointer;
  font-weight: 800;
}

.assistant-prompts {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto;
}

.assistant-prompts[hidden] {
  display: none;
}

.assistant-prompts button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  padding: 9px 11px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 800;
  color: var(--rose-deep);
}

.assistant-form {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.assistant-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  padding: 0 13px;
  outline: none;
}

.assistant-form button {
  border: 1px solid rgba(16, 43, 99, 0.12);
  border-radius: 50%;
  background: rgba(16, 43, 99, 0.08);
  color: rgba(16, 43, 99, 0.42);
  cursor: default;
  font-weight: 900;
  transition:
    background 180ms ease-out,
    border-color 180ms ease-out,
    color 180ms ease-out,
    transform 180ms ease-out,
    box-shadow 180ms ease-out;
}

.assistant-form button.is-active {
  border-color: var(--blue, #102b63);
  background: var(--blue, #102b63);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 43, 99, 0.18);
}

.assistant-form button.is-active:hover {
  transform: translateY(-1px);
}

.assistant-form button.is-sending {
  border-color: rgba(16, 43, 99, 0.22);
  background: rgba(16, 43, 99, 0.12);
  color: var(--blue, #102b63);
  cursor: wait;
  box-shadow: none;
}

.phone-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(47, 41, 37, 0.54);
  backdrop-filter: blur(12px);
}

.phone-overlay.is-open {
  display: grid;
}

.phone-screen {
  width: min(360px, calc(100vw - 38px));
  min-height: 620px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(47, 41, 37, 0.2), rgba(47, 41, 37, 0.72)),
    url("../assets/her-own-sunlit-room.png");
  background-size: cover;
  background-position: center;
  color: #fffaf4;
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.34);
  padding: 42px 26px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.caller-avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.92);
  color: var(--rose-deep);
  font-size: 38px;
  font-weight: 900;
}

.incoming-label {
  color: rgba(255, 250, 244, 0.78);
}

.phone-screen h2 {
  margin: 0;
  font-size: 38px;
}

.call-actions {
  display: flex;
  justify-content: center;
  gap: 42px;
  width: 100%;
}

.call-actions button {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  color: white;
  font-size: 34px;
  cursor: pointer;
}

.call-end {
  background: #c94d4d;
}

.call-answer {
  background: #57a56f;
}

.toast {
  position: fixed;
  z-index: 130;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  max-width: calc(100vw - 36px);
  padding: 12px 16px;
  border-radius: 999px;
  background: #332a24;
  color: #fffaf4;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.toast-with-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 22px;
}

.toast-with-actions button {
  border: 1px solid rgba(255, 250, 244, 0.34);
  border-radius: 999px;
  background: transparent;
  color: #fffaf4;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 800;
}
