@import url('../mirror/mirror.css');

#app-root { min-height: 100svh; outline: none; }

/* The app rail carries five slots; the private mirror rail carries four. */
.app-rail { grid-template-columns: repeat(5, 1fr); }
.app-rail[data-mode="shelf-only"] { grid-template-columns: 1fr; }

.surface > .page-intro { width: min(calc(100% - 40px), 620px); }

.next-step {
  width: min(calc(100% - 40px), 620px);
  max-width: none;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--seal-deep);
  color: var(--seal-deep);
  font-family: var(--small);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.single-column > .next-step { width: 100%; margin-inline: 0; }

.auth-form,
.claim-form,
.checkin-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(calc(100% - 40px), 520px);
  margin-inline: auto;
}
.auth-form label,
.claim-form label,
.checkin-form legend {
  color: var(--mute);
  font-family: var(--small);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.auth-form input,
.claim-form input,
.checkin-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--seal-deep);
  font-family: var(--display);
  font-size: 18px;
}
.code-input { letter-spacing: 0.4em; text-align: center; }
.auth-form .primary-action,
.claim-form .primary-action { align-self: flex-start; }
.auth-column { display: flex; flex-direction: column; padding-top: 0; }
.auth-column .auth-form { width: 100%; margin-inline: 0; }
.auth-column > .quiet-action { align-self: flex-start; }

.subject-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(calc(100% - 40px), 520px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.subject-choice {
  width: 100%;
  min-height: 56px;
  padding: 18px 20px;
  background: var(--paper-2);
  border: 1px solid var(--seal-deep);
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  text-align: left;
}
.subject-choice[aria-current="true"] { background: var(--paper); border-color: var(--seal); }
.subject-roles {
  display: block;
  margin-top: 4px;
  color: var(--ink-2);
  font-family: var(--small);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.almanac-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 0 40px;
  background: var(--gold);
  border: 1px solid var(--gold);
}
.almanac-cell { padding: 16px; background: var(--paper); }
.almanac-cell strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 19px; font-weight: 500; }

.today-field { margin: 0 0 32px; }
.today-field p:last-child { margin: 6px 0 0; font-size: 18px; line-height: 1.72; }
.one-move { margin: 0 0 32px; padding: 28px; background: var(--ink); color: var(--paper); }
.one-move h2 { margin: 8px 0 0; font-family: var(--display); font-size: 24px; font-weight: 400; }
.one-move .section-label { color: var(--gold); }

.confidence-row { display: flex; align-items: center; gap: 14px; margin: 0 0 40px; }
.confidence-word { color: var(--mute); font-family: var(--small); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.confidence-row .confidence-pips { margin: 0; }

.season-block { margin: 0 0 32px; }
.season-block .clock-grid { gap: 12px; margin: 12px 0 0; background: transparent; border: 0; }
.season-block .clock-card { border: 1px solid var(--gold); }
.cast-note { max-width: 620px; margin: 0 0 32px; color: var(--mute); font-style: italic; }

@media (max-width: 559px) {
  .almanac-strip { grid-template-columns: repeat(2, 1fr); }
  .app-rail a { font-size: 10px; letter-spacing: 0.06em; }
}

.checkin-section { margin: 0 0 32px; padding-top: 24px; border-top: 1px solid var(--gold); }
.checkin-form fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.checkin-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.checkin-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--paper-2);
  border: 1px solid var(--seal-deep);
  color: var(--ink);
  font-size: 16px;
}
.checkin-options input { accent-color: var(--seal); }
.checkin-summary { max-width: 620px; padding: 20px; background: var(--paper-2); border-left: 2px solid var(--gold); }
.checkin-summary p { margin: 0; }
.checkin-summary .checkin-note { margin-top: 8px; color: var(--mute); font-style: italic; }
.checkin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

.thread-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.thread-day { padding: 28px 0; border-top: 1px solid var(--gold); }
.thread-day time { color: var(--seal-deep); font-family: var(--small); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.thread-day h2 { margin: 8px 0 6px; font-family: var(--display); font-size: 24px; font-weight: 400; }
.thread-day p { margin: 0; color: var(--ink-2); }
.thread-day .thread-checkin { margin-top: 12px; color: var(--mute); font-family: var(--small); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.thread-day .quiet-action { margin-top: 14px; }
.thread-more { margin-top: 36px; }

.arriving-slot {
  width: 100%;
  margin: 40px 0 0;
  padding: 26px;
  background: var(--paper-2);
  border: 1px dashed var(--seal-deep);
}
.arriving-slot h2 { margin: 6px 0 8px; font-family: var(--display); font-size: 24px; font-weight: 400; }
.arriving-slot p { margin: 0; color: var(--mute); }
.locked-screen .single-column { max-width: 620px; }
.shelf-screen .quiet-action { margin-top: 24px; }

.next-steps {
  width: 100%;
  margin: 44px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--seal-deep);
}
.next-steps .quiet-action { display: block; margin-top: 20px; }
.next-steps .primary-action { margin-bottom: 4px; }
.next-step-note {
  margin: 6px 0 0;
  color: var(--mute);
  font-family: var(--small);
  font-size: 13px;
  line-height: 1.62;
}
.buyer-shelf .single-column { max-width: 620px; }
.delivery-state { margin: 10px 0 0; color: var(--ink-2); }
.account-actions { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--seal-deep); }
.account-actions .form-message { margin-bottom: 0; }
.reveal-screen .next-step { margin-top: 28px; color: var(--gold); border-color: var(--gold); text-align: left; }
.reveal-screen .form-message { color: var(--paper-2); }

/* ---- self serve intake wizard (spec 3.3) ---- */
.wizard {
  display: grid;
  gap: 22px;
  align-content: start;
  justify-items: center;
  text-align: center;
  padding: 48px 24px calc(96px + var(--safe-bottom));
}
.wizard h1 { margin: 0; font-size: clamp(27px, 6vw, 38px); font-weight: 500; line-height: 1.18; }
.wizard-note { max-width: 46ch; margin: 0; color: var(--mute); font-size: 16px; line-height: 1.5; }
.wizard-error { max-width: 46ch; margin: 0; color: var(--seal); font-size: 16px; }
.wizard-field { display: grid; gap: 14px; justify-items: center; width: min(100%, 420px); }
.wizard-input {
  width: min(100%, 420px);
  padding: 14px 16px;
  border: 1px solid var(--mute-2);
  border-radius: 2px;
  background: var(--paper-2);
  color: var(--ink);
  text-align: center;
}
.wizard-input:disabled { opacity: 0.5; }
.wizard-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.wizard-results { display: grid; gap: 6px; width: min(100%, 420px); margin: 0; padding: 0; list-style: none; }
.wizard-dots { display: flex; gap: 8px; }
.wizard-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mute-2); }
.wizard-dot.is-here { background: var(--seal); }

/* Consult and bookings. Every value here is one of the twelve tokens
   public/mirror/mirror.css declares, which public/app/app.css imports at its first
   line: --paper, --paper-2, --ink, --ink-2, --seal, --seal-deep, --gold, --mute,
   --mute-2, --display, --small, --safe-bottom. No new token, and no raw hex, because
   the palette check in tests/platform/app-shell.test.js reads this file. */
.practitioner-block { margin-bottom: 2.5rem; }
.practitioner-name { font-family: var(--display); font-size: 1.05rem; letter-spacing: .02em; margin: 0 0 .35rem; }
.practitioner-bio, .practitioner-meta { color: var(--mute); font-size: .92rem; margin: 0 0 .6rem; }
.offering-card, .booking-card {
  border-top: 1px solid var(--gold);
  padding: 1.1rem 0 1.3rem;
}
.offering-title, .booking-title { font-family: var(--display); font-size: 1.15rem; margin: 0 0 .3rem; }
.offering-meta, .booking-state, .booking-when { color: var(--mute); font-size: .92rem; margin: 0 0 .5rem; }
.offering-note { min-height: 1.2rem; font-size: .9rem; color: var(--mute-2); margin: 0 0 .6rem; }
.booking-confirm {
  border-left: 3px solid var(--seal);
  padding-left: .9rem;
  margin-bottom: 1.6rem;
  color: var(--ink-2);
}
