/* =====================================================================
   SCHEDULER · styles for the voice scheduler screen only
   ===================================================================== */

/* === SECTION: SCHEDULER LAYOUT === */
.sched-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
.sched-grid .btn { white-space: normal; }
@media (min-width: 960px) {
  .sched-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.sched-voice { display: flex; flex-direction: column; gap: var(--sp-4); }
.sched-grid [data-slot="voice-result"]:empty { display: none; }
/* === /SECTION: SCHEDULER LAYOUT === */

/* === SECTION: MICROPHONE BUTTON === */
.mic-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) 0 var(--sp-2);
}
.mic-btn {
  position: relative;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(229, 111, 73, .35);
  transition: transform .15s var(--ease), background .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.mic-btn svg { width: 40px; height: 40px; position: relative; z-index: 1; }
.mic-btn:hover { background: var(--accent-hover); }
.mic-btn:active { transform: scale(.96); }
.mic-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.mic-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.mic-btn.is-listening { background: var(--bad); color: var(--white); box-shadow: 0 8px 24px rgba(168, 50, 26, .4); }
.mic-btn.is-listening .mic-ring { background: var(--bad); animation: mic-pulse 1.4s var(--ease) infinite; }
.mic-btn.is-unavailable { background: var(--surface-2); color: var(--surface-sub); box-shadow: none; }
@keyframes mic-pulse {
  0% { transform: scale(1); opacity: .45; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mic-btn.is-listening .mic-ring { animation: none; opacity: .25; transform: scale(1.15); }
}
.mic-status {
  max-width: 34ch;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--surface-sub);
}
.mic-status.is-live { color: var(--bad); }
.mic-status.is-warn {
  font-weight: 600;
  color: var(--warn);
  background: var(--warn-soft);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  max-width: none;
}
.mic-live {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--ink);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.4;
  min-height: 52px;
}
.mic-live.is-final { background: var(--ok-soft); }
.sched-input { font-size: var(--fs-md); }
.mic-code { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; opacity: .75; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: transparent; padding: 4px 6px;
  color: var(--coral-deep); font-size: var(--fs-sm); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn svg { width: 16px; height: 16px; }
.mic-check {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-4); border-radius: var(--radius-md);
  background: var(--surface-2);
}
.mic-check .btn { align-self: flex-start; }
.mic-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mic-check-row { display: flex; gap: 10px; align-items: flex-start; }
.mic-check-row > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.mic-check-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mic-check-row .small { color: var(--surface-sub); line-height: 1.4; }
.mic-check-row.is-ok > svg { color: var(--ok); }
.mic-check-row.is-bad > svg { color: var(--bad); }
.mic-check-row.is-wait > svg { color: var(--info); }
.mic-meter { height: 12px; border-radius: var(--radius-pill); background: var(--white); overflow: hidden; border: 1px solid var(--surface-line); }
.mic-meter-bar { display: block; height: 100%; background: var(--ok); transform: scaleX(0); transform-origin: left center; transition: transform .08s linear; }
/* === /SECTION: MICROPHONE BUTTON === */

/* === SECTION: EXAMPLE CHIPS === */
.sched-examples .eyebrow { margin-bottom: var(--sp-2); }
.example-chip {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  width: 100%;
  padding: 10px 12px;
  border: 1.5px dashed var(--surface-line);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--surface-ink);
  font-size: var(--fs-sm);
  line-height: 1.35;
  text-align: left;
}
.example-chip svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--coral-deep); }
.example-chip:hover { background: var(--surface-2); border-style: solid; }
/* === /SECTION: EXAMPLE CHIPS === */

/* === SECTION: RESULT CARD === */
.sched-result { display: flex; flex-direction: column; gap: var(--sp-4); }
.sched-result.is-new { animation: sched-in .35s var(--ease); }
@keyframes sched-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sched-result-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  color: var(--ok);
  font-weight: 800;
  font-size: var(--fs-sm);
}
.sched-result-head svg { width: 20px; height: 20px; }
.sched-result-title { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.sched-result-title .h-section { color: var(--ink); margin: 0; }
.sched-facts { display: grid; gap: var(--sp-3); margin: 0; }
.sched-facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--sp-3); align-items: baseline; }
.sched-facts dt { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--surface-sub); }
.sched-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.alert-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.alert-chip svg { width: 13px; height: 13px; color: var(--accent); }
.contact-line { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.contact-line a { color: var(--coral-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.sched-linked { display: block; margin-top: 2px; }
.you-said { font-style: italic; color: var(--surface-sub); }
@media (max-width: 420px) {
  .sched-facts > div { grid-template-columns: 1fr; gap: 2px; }
}
/* === /SECTION: RESULT CARD === */

/* === SECTION: HELP CARD === */
.sched-help summary { cursor: pointer; list-style: none; }
.sched-help summary::-webkit-details-marker { display: none; }
.sched-help summary svg { width: 18px; height: 18px; color: var(--coral-deep); }
.sched-help p { margin: var(--sp-3) 0 0; }
/* === /SECTION: HELP CARD === */

/* === SECTION: CALENDAR AGENDA === */
.sched-cal .sheet-head { align-items: flex-start; }
.btn-icon-sm { width: 36px; padding: 0; }
.agenda { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: flex; flex-direction: column; }
.agenda-day {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: var(--sp-3);
  padding: 12px 0;
  border-top: 1px solid var(--surface-line);
}
.agenda-day:first-child { border-top: 0; }
.agenda-date { display: flex; flex-direction: column; line-height: 1.25; }
.agenda-dayname { font-weight: 800; font-size: var(--fs-sm); }
.agenda-dayname::first-letter { text-transform: uppercase; }
.agenda-daynum { font-size: var(--fs-xs); color: var(--surface-sub); }
.agenda-day.is-today .agenda-dayname { color: var(--coral-deep); }
.agenda-empty { margin: 0; font-size: var(--fs-sm); color: #9a9583; align-self: center; }
.agenda-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.agenda-event {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 8px 10px 12px;
  border-radius: var(--radius-md);
  background: var(--white);
  border-left: 4px solid var(--accent);
}
.agenda-event.kind-meeting { border-left-color: var(--info); }
.agenda-event.kind-task { border-left-color: var(--ok); }
.agenda-event.is-past { opacity: .55; }
.agenda-event.is-new { box-shadow: 0 0 0 2px var(--accent); animation: sched-in .35s var(--ease); }
.agenda-time { font-weight: 800; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.agenda-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.agenda-title { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.agenda-sub { font-size: var(--fs-xs); color: var(--surface-sub); overflow-wrap: anywhere; }
.agenda-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.agenda-alerts { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--surface-sub); }
.agenda-alerts svg { width: 12px; height: 12px; }
.agenda-remove {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  color: var(--surface-sub);
}
.agenda-remove svg { width: 16px; height: 16px; }
.agenda-remove:hover { background: var(--surface-2); color: var(--bad); }
@media (max-width: 420px) {
  .agenda-day { grid-template-columns: 1fr; gap: 6px; }
  .agenda-date { flex-direction: row; gap: 8px; align-items: baseline; }
  .agenda-event { grid-template-columns: 70px minmax(0, 1fr) auto; }
}
/* === /SECTION: CALENDAR AGENDA === */

/* === SECTION: PAID ADD-ON === */
.upsell {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1.5px solid var(--accent);
  color: var(--cream);
}
.upsell .h-card { color: var(--white); margin: 0; }
.upsell p { margin: 0; color: var(--muted); }
.upsell-head { display: flex; align-items: center; justify-content: space-between; }
.upsell-price { font-weight: 800; letter-spacing: .08em; color: var(--accent); font-size: var(--fs-lg); }
.upsell-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.upsell-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.4; }
.upsell-list svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }
.upsell .upsell-included { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--ok-dark); }
.upsell-included svg { width: 14px; height: 14px; }
/* === /SECTION: PAID ADD-ON === */
