/* Guest screens: booking, public pages, manage, forms. Tokens and shared parts live in ui.css. */

/* ---------- meeting page ---------- */
.book .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.book .welcome,
.book .lead {
  overflow-wrap: anywhere;
}
.book .lead {
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
/* Host-written guest details */
.book .desc,
.book .before,
.book .more {
  overflow-wrap: anywhere;
  min-width: 0;
}
.book .desc-text {
  margin: 0;
}
.js .book .desc-text.clip {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.js .book .desc-text.clip.open {
  display: block;
  overflow: visible;
}
.book .desc-more {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.book .desc-more[hidden] {
  display: none;
}
.book .before-title {
  font-size: 15px;
  margin: 8px 0 4px;
}
.book .before ul {
  margin: 0;
  padding-left: 20px;
}
.book .more summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}
.book .more p {
  margin: 0 0 8px;
}
.mhead h2 {
  font-size: 17px;
  margin: 0;
}
.pickwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  gap: 20px;
  min-width: 0;
}
.pickcal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.pickcal .cal a,
.pickcal .cal i {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 48px;
  min-height: 40px;
  margin: 0 auto;
  border-radius: 50%;
  font-size: 15px;
  font-style: normal;
  line-height: 1;
  animation: none;
  text-decoration: none;
}
.pickcal .cal a {
  color: var(--ink);
  font-weight: 800;
  background: var(--soft);
}
.pickcal .cal i {
  color: var(--mute);
  font-weight: 500;
  background: none;
  opacity: 1;
}
.pickcal .cal .dim {
  opacity: 0.5;
}
.pickcal .cal i.today {
  color: var(--mute);
}
.pickcal .cal a.today {
  color: var(--ink);
}
.pickcal .cal a.sel,
.pickcal .cal i.sel {
  color: var(--on-btn);
  background: var(--btn-grad);
  font-weight: 800;
}
.slotcol h2 {
  font-size: 15px;
  margin: 0 0 8px;
}
.slots {
  list-style: none;
  margin: 0;
  padding: 0;
}
.srow {
  margin: 0;
}
.srow .slot {
  min-height: 44px;
  width: 100%;
}
.quick form {
  margin: 0;
}
.quick button {
  min-height: 44px;
}
.tz {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tz .tzp {
  flex: 1 0 100%;
}
.tz input {
  flex: 1 1 0;
  min-height: 44px;
  min-width: 0;
}
.tz .btn {
  flex: none;
  min-height: 44px;
}
.slotcol .empty {
  display: block;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mute);
}
.slotcol .slots.stack {
  max-height: 330px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent);
  padding-bottom: 20px;
}
@media (max-width: 820px) {
  .slotcol .slots.stack {
    -webkit-mask-image: none;
    mask-image: none;
    padding-bottom: 2px;
  }
}
.quick button {
  white-space: nowrap;
}
.book a:focus-visible,
.book button:focus-visible,
.book input:focus-visible {
  outline: 3px solid var(--pri);
  outline-offset: 2px;
}
@media (max-width: 820px) {
  .pickwrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- details, confirm, done ---------- */
.card .steps {
  margin-bottom: 12px;
}
.done-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.done-card .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.done-card .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.done-note {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  overflow-wrap: anywhere;
}
.done-note-title {
  margin: 0 0 6px;
  font-size: 1rem;
}
.card .summary {
  text-align: left;
}
.card a:focus-visible,
.card button:focus-visible,
.card input:focus-visible {
  outline: 3px solid var(--pri);
  outline-offset: 2px;
}

/* Public pages, listing, gate */
.card .mcards {
  margin-top: 16px;
}
.card .mcard h4 {
  overflow-wrap: anywhere;
}
.card .welcome {
  margin: 12px 0 0;
}
.plist .prow {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.16s,
    box-shadow 0.16s,
    border-color 0.16s;
}
.plist .arr {
  color: var(--mute);
}
.plist .prow:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh1);
  border-color: var(--pri);
}
.plist .prow:hover .arr {
  color: var(--pri);
}
.plist .prow h2 {
  font-size: 16px;
}
.who .dot,
.plist .prow .dot {
  color: var(--pri);
  background: var(--soft);
}
.gate-card {
  text-align: center;
}
.gate-card .stack,
.gate-card label {
  text-align: left;
}
.gate-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 18px;
  color: var(--pri);
  background: var(--soft);
}
.gate-card .btn,
.gate-card input {
  min-height: 44px;
}
.plist .prow:focus-visible,
.mcard:focus-visible {
  outline: 3px solid var(--pri);
  outline-offset: 2px;
}

/* Manage, join, error */
.page-card,
.manage-card {
  text-align: center;
}
.page-card form,
.manage-card .actions {
  text-align: center;
}
.page-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 18px;
  color: var(--pri);
  background: var(--soft);
}
.page-mark.warn {
  color: var(--warm);
  background: var(--warm-soft);
}
.page-card .actions,
.manage-card .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.page-card .btn,
.manage-card .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.manage-card a:focus-visible,
.page-card a:focus-visible,
.page-card button:focus-visible {
  outline: 3px solid var(--pri);
  outline-offset: 2px;
}

/* Compact host header on later steps */
.hostbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hostbar-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}
.hostbar-text strong {
  overflow-wrap: anywhere;
}
.hostbar .chip {
  flex: none;
}

/* Forms, questions, request pages */
.form-card .stack,
.card .stack {
  gap: 14px;
}
.card .field textarea,
.card .field input {
  min-height: 44px;
}
.card .hold {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--amber-soft);
  color: var(--ink);
  font-weight: 700;
}
.card .error {
  padding: 10px 14px;
  border-radius: 14px;
  overflow-wrap: anywhere;
}
.page-card .end-text {
  text-align: left;
  overflow-wrap: anywhere;
}
.page-card .slots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-card .slots .slot {
  width: 100%;
  min-height: 44px;
}

@media (min-width: 720px) {
  .tz .tzp {
    flex: none;
  }
}
.gate-mark,
.page-mark {
  display: grid;
  margin-inline: auto;
}
.gate-card [role="alert"] {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--rose-soft);
  color: var(--ink);
  font-weight: 700;
}

/* ---------- breathing room (owner feedback 2026-11-11) ---------- */
.book .main {
  padding: 32px;
  gap: 24px;
}
.book .hostin {
  padding: 0 28px 28px;
  gap: 14px;
}
.book .pickwrap {
  gap: 28px;
  padding-block: 14px;
}
.card .head {
  margin-bottom: 20px;
}
.card .plist {
  gap: 14px;
}
.plist .prow {
  padding: 16px;
  gap: 14px;
}
.card .mcards {
  gap: 14px;
  margin-top: 22px;
}
.card .mcard {
  padding: 16px;
  gap: 14px;
}
.backlink {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pri);
  text-decoration: none;
}
.backlink:hover {
  text-decoration: underline;
}
.tz select {
  flex: 1 1 0;
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
}
.tz.auto .btn {
  display: none;
}
@media (max-width: 820px) {
  .book .main {
    padding: 24px 18px;
    gap: 22px;
  }
  .book .hostin {
    padding: 0 18px 22px;
  }
  .book .pickwrap {
    gap: 24px;
  }
}

/* ---------- in-place picker updates: dim only, so nothing moves ---------- */
[data-pick-region].is-busy {
  opacity: 0.6;
  transition: opacity 0.15s ease;
}
[data-pick-region].is-busy a,
[data-pick-region].is-busy button,
[data-pick-region].is-busy select {
  pointer-events: none;
}
.times h2:focus {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-pick-region].is-busy {
    transition: none;
  }
}

.backlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: -6px;
}
.done-note-body {
  margin: 0;
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 5;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: inherit;
  cursor: pointer;
}
@media (max-width: 760px) {
  body:has(.theme-toggle:not([hidden])) {
    padding-top: 52px;
  }
  .theme-toggle {
    top: 6px;
    right: 10px;
  }
}
.theme-toggle[hidden] {
  display: none;
}
.theme-toggle:focus-visible {
  outline: 3px solid var(--pri);
  outline-offset: 2px;
}
.theme-sun {
  display: none;
}
.theme-moon {
  display: inline-flex;
}
:root[data-theme="dark"] .theme-sun {
  display: inline-flex;
}
:root[data-theme="dark"] .theme-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun {
    display: inline-flex;
  }
  :root:not([data-theme="light"]) .theme-moon {
    display: none;
  }
}

/* ---------- signed-in bar ---------- */
.signed-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 64px 8px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  font-size: 0.875rem;
}
.signed-bar-name {
  font-weight: 600;
}
.signed-bar-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--pri);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- public page hero ---------- */
.card.profile {
  padding: 0;
  overflow: hidden;
}
.card.profile > .cover {
  height: 112px;
}
.card.profile > :not(.cover) {
  margin-left: 22px;
  margin-right: 22px;
}
.card.profile > :last-child {
  margin-bottom: 24px;
}
.card.profile > .who {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.card.profile > .who .avatar {
  width: 84px;
  height: 84px;
  margin-top: -42px;
  border: 4px solid var(--card);
  border-radius: 50%;
  box-shadow: var(--sh1);
  position: relative;
  font-size: 26px;
}
.card.profile > .who:not(:has(.avatar)) {
  margin-top: 22px;
}
.card.profile > .who h1 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.card.profile > .welcome {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.55;
  max-width: 60ch;
}
.card.profile > .mcards {
  margin-top: 22px;
  gap: 12px;
}
.card.profile .mcard {
  padding: 16px;
  border-radius: 18px;
}
.card.profile .mcard h4 {
  font-size: 16.5px;
}
.card.profile .mcard small {
  margin-top: 4px;
  font-size: 13px;
}
@media (min-width: 700px) {
  .card.profile > :not(.cover) {
    margin-left: 36px;
    margin-right: 36px;
  }
  .card.profile > :last-child {
    margin-bottom: 36px;
  }
  .card.profile > .cover {
    height: 132px;
  }
}

/* signed-in bar: one quiet row */
.signed-bar {
  flex-wrap: nowrap;
  gap: 4px;
  padding: 6px 64px 6px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.signed-bar::-webkit-scrollbar {
  display: none;
}
.signed-bar-who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
  flex: none;
}
.signed-bar-ava {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--pri);
  font-weight: 800;
  font-size: 13px;
}
.signed-bar-link {
  flex: none;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.signed-bar-link:hover {
  background: var(--alt);
  color: var(--pri);
}
@media (max-width: 560px) {
  .signed-bar-name {
    display: none;
  }
}

/* Polish pass 3 */
.mcard h4 {
  margin: 0;
  line-height: 1.3;
}
.mcard small {
  margin-top: 4px;
}
.card.profile > .who p {
  margin-top: 6px;
}

/* Links a host typed into their own text */
a.tlink {
  color: var(--pri);
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

/* ---------- pick page polish (owner feedback 2026-11-11 evening) ---------- */
/* Zone picker: our own arrow, with room on the right. */
.tz .tzsel {
  position: relative;
  display: flex;
  flex: 1 1 220px;
  min-width: 0;
}
.tz .tzsel select {
  flex: 1 1 auto;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  padding: 0 44px 0 14px;
  text-overflow: ellipsis;
}
.tz .tzsel::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -7px;
  border-right: 2px solid var(--mute);
  border-bottom: 2px solid var(--mute);
  transform: rotate(45deg);
  pointer-events: none;
}
/* Time list as tall as the month grid beside it. */
.slotcol .slots.stack {
  max-height: 404px;
}
/* Left panel: one reading size, one label style, clear sections. */
.book .hostin .ava {
  margin-top: -30px;
}
.book .hostin h1 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  overflow-wrap: anywhere;
}
.book .desc,
.book .before,
.book .more {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}
.js .book .desc-text.clip {
  -webkit-line-clamp: 5;
}
.book .desc-more {
  min-height: 36px;
  padding: 0;
  margin-top: 2px;
  font-size: 13px;
  color: var(--pri);
  text-decoration: none;
}
.book .desc-more:hover {
  text-decoration: underline;
}
.book .before,
.book .more {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.book .before-title,
.book .more summary {
  font-family: var(--disp);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
  margin: 0 0 8px;
}
.book .more summary {
  min-height: 0;
  margin: 0;
  padding: 4px 0;
}
.book .more[open] summary {
  margin-bottom: 8px;
}
.book .before ul.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.book .before ul.ticks li {
  position: relative;
  padding-left: 26px;
}
.book .before ul.ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.38em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--pri);
  border-bottom: 2px solid var(--pri);
  transform: rotate(-45deg);
}
@media (min-width: 821px) {
  main.book {
    grid-template-columns: 340px minmax(0, 1fr);
    max-width: 1040px;
    margin-top: 40px;
    margin-bottom: 40px;
  }
}
@media (max-width: 820px) {
  .slotcol .slots.stack {
    max-height: none;
  }
}

/* hold timer: a dial that empties as the 10 minutes run down */
.card .hold {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 18px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  background: var(--amber-soft);
  color: var(--ink);
  font-weight: 400;
}
.hold-dial {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}
.hold-dial svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.hold-track,
.hold-arc {
  fill: none;
  stroke-width: 4;
}
.hold-track {
  stroke: color-mix(in srgb, var(--amber) 22%, transparent);
}
.hold-arc {
  stroke: var(--amber);
  stroke-linecap: round;
  transition:
    stroke-dashoffset 1s linear,
    stroke 0.4s ease;
}
.hold-time {
  position: relative;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.hold-words {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.hold-words strong {
  font-weight: 800;
  font-size: 1rem;
}
.hold-words span {
  color: var(--muted);
  font-size: 0.9rem;
}
.card .hold.is-low {
  background: var(--red-soft);
  border-color: color-mix(in srgb, var(--red) 40%, transparent);
}
.hold.is-low .hold-arc {
  stroke: var(--red);
}
.hold.is-low .hold-track {
  stroke: color-mix(in srgb, var(--red) 22%, transparent);
}
.hold.is-low .hold-time {
  color: var(--red);
  animation: hold-beat 1s ease-in-out infinite;
}
.card .hold.is-over {
  background: var(--red-soft);
  border-color: color-mix(in srgb, var(--red) 40%, transparent);
}
.hold.is-over .hold-arc {
  stroke: transparent;
}
.hold.is-over .hold-time {
  color: var(--red);
}
@keyframes hold-beat {
  50% {
    transform: scale(1.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hold-arc {
    transition: none;
  }
  .hold.is-low .hold-time {
    animation: none;
  }
}
