/* The operator desk. Shares the palette in style.css and adds only what it
   needs, so the two pages cannot drift into looking like different products.
   Built for a phone in a car park: big targets, short lines, nothing clever. */

body.operator { display: block; overflow-y: auto; }

/* Any display rule beats the browser's own [hidden] styling, so a class like
   .signin { display: flex } quietly makes hidden do nothing. The sign-in form
   stayed on screen behind the signed-in desk because of exactly that. */
[hidden] { display: none !important; }

.desk {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.deskhead h1 { font-family: var(--display, inherit); font-size: 22px; margin: 0; }
.deskhead #sub { color: var(--muted); margin: 4px 0 8px; font-size: 15px; }
.whoami { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.linky {
  font: inherit; font-size: inherit; padding: 0; border: 0; background: transparent;
  color: var(--aurora); cursor: pointer; text-decoration: underline;
  min-height: 24px; min-width: 24px;
}
.good { color: var(--aurora); font-weight: 500; margin: 4px 0 0; font-size: 14px; }

.panel-section { margin-top: 8px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0 0 12px;
}
.section-head h2 {
  font-family: var(--display, inherit); font-size: 18px; margin: 0;
}

.signin {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--hairline); border-radius: 16px; padding: 18px;
  background: var(--surface);
}
.signin label { font-weight: 600; font-size: 15px; }
.signin input {
  font: inherit; font-size: 16px; /* 16px or iOS zooms the page on focus */
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--hairline); background: var(--raised); color: var(--ink);
}
.signin button {
  font: inherit; font-weight: 600; font-size: 16px; cursor: pointer;
  padding: 12px 16px; border-radius: 12px; border: none;
  background: var(--aurora); color: var(--surface);
}
.signin .hint { color: var(--muted); font-size: 13px; margin: 2px 0 0; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.count { font-weight: 600; margin: 0; }
.ghost.chosen { border-color: var(--aurora, currentColor); font-weight: 600; }
.ghost {
  font: inherit; font-size: 15px; cursor: pointer;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--hairline); background: transparent; color: var(--muted);
}

.list { display: flex; flex-direction: column; gap: 14px; }
.empty { color: var(--muted); }

.handoff {
  border: 1px solid var(--hairline); border-radius: 16px; padding: 16px;
  background: var(--surface); display: flex; flex-direction: column; gap: 10px;
}
.handoffhead { display: flex; gap: 10px; align-items: center; }
.chan {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--aurora); background: var(--aurora-soft);
  padding: 3px 8px; border-radius: 999px; font-weight: 600;
}
.ago { color: var(--muted); font-size: 13px; }
.question { font-weight: 600; margin: 0; line-height: 1.4; }

/* Which of the four states a conversation is in, at a glance. "With a person"
   is the loud one on purpose: it is the state in which Vaki has gone silent,
   and an operator who forgets they are holding a guest is the failure the
   lapse timer exists to catch. */
.state {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; font-weight: 600;
  color: var(--muted); border: 1px solid var(--hairline);
}
.state-held {
  color: var(--ember, #8A4220); border-color: transparent;
  background: var(--ember-soft, rgba(169,85,42,.10));
}
.state-waiting { color: var(--ink); border-color: var(--hairline); }

/* The opened conversation: transcript, then the box, then what may be done. */
.threadwrap { display: flex; flex-direction: column; gap: 10px; }

/* The conversation, quieter than the question, so the eye lands on what is
   being asked before what led to it. */
.thread {
  display: flex; flex-direction: column; gap: 6px;
  border-left: 2px solid var(--hairline); padding-left: 12px;
}
.tline { margin: 0; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.tline.guest { color: var(--ink); }
.tline.vaki { color: var(--muted); }

.reply {
  font: inherit; font-size: 16px; resize: vertical;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--hairline); background: var(--raised); color: var(--ink);
}
.reply:disabled { opacity: .55; }
.send {
  font: inherit; font-weight: 600; font-size: 16px; cursor: pointer;
  padding: 12px 16px; border-radius: 12px; border: none;
  background: var(--aurora); color: var(--surface);
}
.send:disabled { opacity: .55; cursor: default; }

/* The conversation's reference, as an alert names it and as the erase
   confirmation repeats it. Quiet and monospaced: it is meant to be COMPARED
   with a string in a Slack message, not read as prose. */
.ref {
  margin: 0; font-size: 12.5px; letter-spacing: .02em; color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

/* Erasing a guest, which is the one action on this panel that cannot be undone.
   Deliberately not styled as a primary action: it sits at the bottom of the
   card, in the warning colour, and takes two presses. */
.erase { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.danger { color: var(--bad, #B3261E); border-color: var(--bad, #B3261E); }
button.send.danger { background: var(--bad, #B3261E); color: var(--surface); border: none; }
.erase-lead { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; }
.erase-head { margin: 6px 0 0; font-weight: 600; font-size: 14px; }
.erase-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.erase-list li { margin: 4px 0; }

/* Said before they start typing, not after they press send. */
.cannotpush {
  margin: 0; font-size: 14px; line-height: 1.45;
  color: var(--ember, #8A4220); background: var(--ember-soft, rgba(169,85,42,.10));
  border-radius: 10px; padding: 10px 12px;
}

.status { margin: 0; font-size: 14px; color: var(--muted); }
.status.good { color: var(--aurora); font-weight: 600; }
.status.bad, .bad { color: var(--bad, #B3261E); font-weight: 600; }

/* The gaps screen. One card per question, list shrinks as they are answered. */
.gaps-intro { color: var(--muted); margin: 0 0 14px; font-size: 14.5px; }
.gaps-list { display: flex; flex-direction: column; gap: 12px; }
.gaps-notes { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.gap {
  border: 1px solid var(--hairline); border-radius: 16px; padding: 16px;
  background: var(--surface); display: flex; flex-direction: column; gap: 10px;
}
.gap-label { font-weight: 600; margin: 0; line-height: 1.4; }
.gap-detail { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.45; }
.gap-tour { color: var(--aurora); font-weight: 600; font-size: 13px; margin: 0; }
.gap input, .gap textarea {
  font: inherit; font-size: 16px; /* 16px or iOS zooms the page on focus */
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--hairline); background: var(--raised); color: var(--ink);
  width: 100%;
}
.gap textarea { resize: vertical; min-height: 80px; }
.gap input[type=number] { width: auto; min-width: 8rem; }
.gap-actions { display: flex; align-items: center; gap: 12px; }
.gap button {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 10px 16px; border-radius: 12px; border: none;
  background: var(--aurora); color: var(--surface);
}
.gap button:disabled { opacity: .55; cursor: default; }

/* Suggested questions and the FAQ list. The gap card visual style is reused
   so the two live in one page without looking like two different products. */
.gap.suggest { border-style: dashed; }
.gap.faq-entry .gap-detail { color: var(--ink); white-space: pre-wrap; }
.custom-form { display: flex; flex-direction: column; gap: 10px; }
.custom-form input, .custom-form textarea {
  font: inherit; font-size: 16px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--hairline); background: var(--raised); color: var(--ink);
  width: 100%;
}
.custom-form textarea { resize: vertical; min-height: 80px; }

/* The one question the email pointed at, so a click from an inbox lands on
   something visibly picked out rather than on a list of nine. */
.gap.targeted { border-style: solid; border-color: var(--aurora); box-shadow: 0 0 0 2px var(--aurora-soft, rgba(45,140,120,.18)); }

/* The operator's own rules. Two groups on one screen, and the hand-written
   rules sit under each group as plain lines with no box to type in, because
   this page is not allowed to edit them. */
.rules-group { margin-bottom: 26px; }
.rules-group h3 { font-size: 16px; margin: 0 0 4px; }
.rules-group .gap-actions { margin-top: 12px; }
.rules-group .gap-actions button { min-height: 44px; padding: 10px 16px; }
#section-rules input:not([type=radio]):not([type=checkbox]), #section-rules textarea, #section-rules select { min-height: 36px; }
.gap.rule .gap-label { font-size: 14px; }
.price-box { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.price-box .price-amount { width: 9em; text-align: right; }
.price-box .price-unit { color: var(--muted); }
#section-tours input, #section-tours select { min-height: 36px; width: 100%; box-sizing: border-box; }
.tour-field { display: block; margin: 6px 0; }
.tour-field-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.tours-region { margin: 18px 0 6px; font-size: 16px; }
.tours-subhead { margin: 22px 0 6px; font-size: 16px; }
.tours-changes { padding-left: 18px; font-size: 14px; }
.tours-changes li { margin: 4px 0; }
.rules-fixed { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rules-fixed .finding-note { border-left-color: var(--muted); background: transparent; }
.gaps-intro.quiet { font-size: 13.5px; margin-bottom: 12px; }

/* The digest switch. A row, not a card: it is a setting, not a task. */
.digest-toggle {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  font-size: 15.5px; line-height: 1.4;
}
.digest-toggle input { width: 20px; height: 20px; accent-color: var(--aurora); cursor: pointer; }
#section-digest .status { margin-top: 10px; }

/* A finding that has no form to fill in. The panel does not offer a text box
   for it; it says the problem out loud so the operator can fix the file. */
.finding-note {
  border-left: 3px solid var(--bad, #B3261E);
  padding: 10px 12px; background: var(--bad-soft, rgba(179,38,30,.08));
  border-radius: 8px; margin: 0;
}
.finding-note strong { display: block; margin-bottom: 2px; }
.finding-note.gap { border-left-color: var(--muted); background: transparent; }

/* The refusal figure. Sized like a headline because it is the one number that
   says the product worked, and coloured with the accent rather than a warning
   colour for the same reason. */
#refusals .big { font-size: 2.6rem; line-height: 1.1; margin: .2rem 0 .4rem; font-weight: 600; }
#refusals .big .unit { font-size: 1rem; font-weight: 400; opacity: .7; }
#refusals .note { margin: .2rem 0; font-size: .9rem; opacity: .8; }
#refusals .note.quiet { font-size: .82rem; opacity: .6; max-width: 60ch; }

/* The rest of the week's figures, sized to match the refusal count so no one
   number reads as the important one. */
.proof-block { margin: 0 0 18px; }
.proof-block .big { font-size: 2.6rem; line-height: 1.1; margin: .2rem 0 .4rem; font-weight: 600; }
.proof-block .big .unit { font-size: 1rem; font-weight: 400; opacity: .7; }
.proof-block .note { margin: .2rem 0; font-size: .9rem; opacity: .8; max-width: 60ch; }
.proof-block .note.quiet { font-size: .82rem; opacity: .6; }
.proof-block h3 { font-size: 16px; margin: 0 0 8px; }
#section-proof > .note.bad { margin: .2rem 0 18px; font-size: .95rem; max-width: 60ch; line-height: 1.45; }
#section-proof #refusals { margin-bottom: 18px; }

.gap.language { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 12px 16px; }
.language-name { font-weight: 600; }
.language-turns { color: var(--muted); font-size: 14px; }

/* Going live. The state sentence is the loudest thing on the screen, because
   an operator misreading "switched off" as "not set up yet" is a front desk
   that refuses every guest while its owner waits for one. */
.live-state {
  margin: 0 0 18px; padding: 12px 14px; border-radius: 12px;
  font-size: 15.5px; line-height: 1.45; font-weight: 600; max-width: 60ch;
}
.live-state.live { color: var(--aurora); background: var(--aurora-soft, rgba(45,140,120,.12)); }
.live-state.closed { color: var(--bad, #B3261E); background: var(--bad-soft, rgba(179,38,30,.08)); }
.live-state.unbound { color: var(--ember, #8A4220); background: var(--ember-soft, rgba(169,85,42,.10)); }

#section-go-live h3 { font-size: 16px; margin: 20px 0 4px; }
.snippet {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
  border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px;
  background: var(--raised); color: var(--ink); margin: 0 0 10px;
}
#section-go-live .gap-actions { margin-top: 12px; flex-wrap: wrap; }
#go-live-input {
  font: inherit; font-size: 16px; flex: 1 1 16rem;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--hairline); background: var(--raised); color: var(--ink);
}
#go-live-save {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 10px 16px; border-radius: 12px; border: none;
  background: var(--aurora); color: var(--surface);
}
#go-live-save:disabled, #go-live-off:disabled { opacity: .55; cursor: default; }
.gap.origin { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 16px; }
.origin-text { font-weight: 600; overflow-wrap: anywhere; }
#section-go-live .note.quiet { font-size: .82rem; opacity: .6; max-width: 60ch; margin: 14px 0 0; }

/* Opening hours. The state sentence borrows the go-live treatment because it
   carries the same weight: an operator who misreads "we could not ask" as
   "you are closed" is looking at a screen that lied about their business. */
.live-state.unset { color: var(--ember, #8A4220); background: var(--ember-soft, rgba(169,85,42,.10)); }
.live-state.open { color: var(--aurora); background: var(--aurora-soft, rgba(45,140,120,.12)); }

.hours-week { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.desk-day {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--hairline); border-radius: 12px;
  padding: 10px 14px; background: var(--raised);
}
.desk-open { display: flex; align-items: center; gap: 8px; min-width: 11rem; font-weight: 600; }
.desk-day input[type="time"] {
  font: inherit; font-size: 16px; padding: 6px 10px; border-radius: 10px;
  border: 1px solid var(--hairline); background: var(--surface); color: var(--ink);
}
.desk-day input[type="time"]:disabled { opacity: .4; }
.desk-to-word { color: var(--muted); }
#hours-save {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 10px 16px; border-radius: 12px; border: none;
  background: var(--aurora); color: var(--surface);
}
#hours-save:disabled, #hours-clear:disabled { opacity: .55; cursor: default; }
#section-hours .note.quiet { font-size: .82rem; opacity: .6; max-width: 60ch; margin: 14px 0 0; }

/* Channels. Never set up and switched off are drawn differently on purpose:
   they send an operator looking in two different places. */
.channel {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; border: 1px solid var(--hairline); border-radius: 14px;
  padding: 12px 16px; background: var(--raised);
}
.channel-says { margin: 0; max-width: 52ch; line-height: 1.45; }
.channel.absent { opacity: .6; }
.channel.off .channel-says { color: var(--bad, #B3261E); }

/* Two states with nothing to switch, dimmed the same way as never-set-up
   because that is what they have in common: there is no control here. The
   sentence is what tells them apart, and it comes from the server. */
.channel.locked, .channel.soon { opacity: .6; }

/* Draft or send straight out, inside the email row rather than beside it.
   Full width so it drops under the sentence it belongs to, with a rule above
   it, because a control that decides whether a person reads the reply must not
   read as a second channel. */
.channel-sub {
  flex-basis: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-top: 4px; padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.channel-sub .channel-says { max-width: 46ch; }
/* Every other .quiet in this file is qualified, so an unqualified one is not
   styled at all and the secondary line arrives as loud as the main sentence. */
.channel-says.quiet { font-size: .82rem; opacity: .6; }
.answer-after { display: grid; gap: .35rem; margin-top: .75rem; max-width: 52ch; }
.answer-after input[type="range"] { width: 100%; }
.answer-after-value { font-weight: 600; }
.answer-after-warn { margin: 0; color: var(--ember, #F0A264); }
.answer-after-note { margin: 0; font-size: .82rem; opacity: .75; }
/* Except when it is the mode where a model emails a customer unread. That is
   the loudest fact on this screen and it was arriving as the faintest line on
   it. Dressed in ember, the same accent the panel uses for a channel that is
   answering nobody. */
.channel-sub.auto .channel-says.quiet { font-size: inherit; opacity: 1; color: var(--ember, #F0A264); }

/* The first-run ask. Every line starts unticked and the tick is the loudest
   control on the card, because ticking it is the operator's decision to make
   something Vaki read off a page into something Vaki will say. */
#section-onboard h3 { font-size: 16px; margin: 20px 0 4px; }
#onboard-url {
  font: inherit; font-size: 16px; flex: 1 1 16rem;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--hairline); background: var(--raised); color: var(--ink);
}
#onboard-read, #onboard-accept {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 10px 16px; border-radius: 12px; border: none;
  background: var(--aurora); color: var(--surface);
}
#onboard-read:disabled, #onboard-accept:disabled { opacity: .55; cursor: default; }

/* Finishing a new company's setup. The same cards and the same primary button
   as the website reader below it, because to the customer they are one job. */
#section-setup h3 { font-size: 16px; margin: 20px 0 4px; }
#section-setup .gap { margin-bottom: 12px; }
#section-setup .gap-actions { margin-top: 12px; flex-wrap: wrap; }
#setup-save, #setup-next {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 10px 16px; border-radius: 12px; border: none;
  background: var(--aurora); color: var(--surface);
}
#setup-save:disabled { opacity: .55; cursor: default; }
.setup-missing { margin: 0 0 12px; padding-left: 1.2rem; line-height: 1.55; }
.setup-missing:empty { display: none; }
.offer-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 10px; }
.offer-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.offer-field.wide { grid-column: 1 / -1; }
.offer-field-label { font-weight: 600; }
.offer-field select {
  font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--hairline); background: var(--raised); color: var(--ink);
}
.gap .offer-field input[type=number] { width: 100%; min-width: 0; }
.gap.typed-offer button.ghost {
  background: transparent; color: var(--muted); border: 1px solid var(--hairline); font-weight: 500;
}
.draft-tick { display: flex; align-items: baseline; gap: 10px; font-weight: 600; }
.draft-tick input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; }
.draft-proposal .note { margin: .3rem 0 0; font-size: .85rem; }
.draft-proposal .note.quiet { opacity: .55; }
#section-onboard .note.quiet { font-size: .82rem; opacity: .6; max-width: 60ch; }

/* Advanced: setting a channel up yourself.
 *
 * Deliberately quieter than everything above it. Most operators never open
 * this, and the ones who do are pasting something from another company's
 * dashboard, which is a different kind of task from flicking a switch. */
.advanced-tick {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 0;
  font-size: .9rem; color: var(--muted); cursor: pointer;
}
.advanced-tick input { width: 16px; height: 16px; accent-color: var(--aurora); cursor: pointer; }

#channels-setup { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.setup-card {
  border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 16px;
  background: var(--raised); display: flex; flex-direction: column; gap: 10px;
}
.setup-card h3 { margin: 0; font-size: 15px; }
.setup-field { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; color: var(--muted); }
.setup-field input {
  font: inherit; font-size: 15px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--hairline); background: var(--surface); color: var(--ink);
}
/* A stored credential is never sent back, so these boxes are empty even on a
   channel that is set up. Said on the card by the server's own sentence. */
.setup-field input:focus { outline: 2px solid var(--aurora); outline-offset: 1px; }
.setup-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

/* The subscription screen. Stacked cards, because this page is built for a
   phone: four packages side by side would be four unreadable columns. */
.billing-trade { display: flex; gap: 8px; margin: 4px 0 14px; }
.trade-opt {
  font: inherit; font-size: 15px; cursor: pointer; flex: 1;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--hairline); background: transparent; color: var(--muted);
}
.trade-opt[aria-pressed="true"] {
  border-color: var(--aurora); color: var(--ink); font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--aurora);
}
.billing-plans { display: flex; flex-direction: column; gap: 10px; }
.plan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 16px;
  background: var(--surface);
}
.plan-name { font-weight: 600; margin: 0; }
.plan-fits { color: var(--muted); font-size: 14px; margin: 2px 0 0; line-height: 1.35; }
.plan-price { font-family: var(--display, inherit); font-weight: 600; font-size: 18px; margin: 0; white-space: nowrap; }
.plan-price small { font-family: inherit; font-weight: 400; font-size: 13px; color: var(--muted); }
.plan-buy {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 10px 14px; border-radius: 12px; border: none;
  background: var(--aurora); color: var(--surface); white-space: nowrap;
}
.plan-buy:disabled { opacity: .55; cursor: default; }
.plan-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.panel-section .note a { color: var(--aurora); }

/* Where alerts go. The state sentence takes the go-live treatment, and a route
   that has been failing gets the loudest colour on the screen: an operator who
   reads a dead route as a working one stops checking, which is the exact
   failure the alerts exist to prevent. Untried is ember, not green, because
   never proved is not the same as working. */
.live-state.routed { color: var(--aurora); background: var(--aurora-soft, rgba(45,140,120,.12)); }
.live-state.unrouted, .live-state.failing { color: var(--bad, #B3261E); background: var(--bad-soft, rgba(179,38,30,.08)); }

#section-alerts h3 { font-size: 16px; margin: 22px 0 4px; }
#section-alerts .gap-actions { margin-top: 12px; flex-wrap: wrap; }
#alerts-problems:empty, #alerts-attempts:empty, #alerts-unavailable:empty { display: none; }
#alerts-problems { margin: 0 0 12px; }
#alerts-attempts { margin-top: 10px; }

.alert-dest-text { flex: 1 1 16rem; min-width: 0; }
.alert-dest-name { margin: 0 0 4px; font-weight: 600; overflow-wrap: anywhere; }
.channel.alert-dest.failing { border-color: var(--bad, #B3261E); }
.channel.alert-dest.failing .channel-says:not(.quiet) { color: var(--bad, #B3261E); font-weight: 600; }
.channel.alert-dest.untried .channel-says:not(.quiet) { color: var(--ember, #8A4220); }
.channel.alert-dest.working .channel-says:not(.quiet) { color: var(--aurora); }

.alert-add { display: flex; flex-direction: column; gap: 10px; }
.alert-add select, .alert-add input {
  font: inherit; font-size: 16px; /* 16px or iOS zooms the page on focus */
  padding: 12px 14px; border-radius: 12px; width: 100%;
  border: 1px solid var(--hairline); background: var(--raised); color: var(--ink);
}
#alerts-add, #alerts-test, #godo-go, #bokun-go {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  padding: 10px 16px; border-radius: 12px; border: none;
  background: var(--aurora); color: var(--surface);
}
#alerts-add, #godo-go, #bokun-go { align-self: flex-start; }
#alerts-add:disabled, #alerts-test:disabled, #godo-go:disabled, #bokun-go:disabled { opacity: .55; cursor: default; }

.channel.alert-event .digest-toggle { align-items: flex-start; font-size: 14.5px; }
.channel.alert-event .digest-toggle input { flex: 0 0 auto; margin-top: 2px; }
.channel.alert-event.always .digest-toggle { cursor: default; }
.channel.alert-event.always .digest-toggle input { cursor: default; opacity: .7; }
/* A kind that cannot be chosen here is information, not a fault of theirs, so
   it is drawn quieter than a problem with a route they already have. */
.finding-note.alert-unavailable {
  border-left-color: var(--hairline); background: transparent;
  font-size: 13.5px; line-height: 1.45; color: var(--muted); padding: 6px 12px;
}
.finding-note.alert-unavailable strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------------------
 * The three tabs, added 2026-09-16.
 *
 * The panel was one column of 21 sections, measured at 16.6 screens of
 * scrolling on a desktop and 19.2 on a phone, with no navigation. Grouping is
 * done here rather than by moving markup, so every id stays where the tests
 * expect it, and so a section that hides ITSELF with `hidden` keeps doing that
 * without a tab fighting it for the same attribute.
 * ------------------------------------------------------------------------ */

.tabs {
  display: flex;
  gap: 2px;
  margin: 0 0 2px;
  border-bottom: 1px solid var(--hairline);
  /*
   * Scrollable for a narrow phone, but the bar is NEVER wide enough to need it
   * at three tabs, and `overflow-x: auto` on its own still reserves the
   * gutter: the row measured 608px with 593px usable, and a live scrollbar
   * track drew itself at the right-hand end with nothing to scroll. Hiding the
   * scrollbar keeps the overflow behaviour for the day there is a fourth tab
   * and takes the furniture away today.
   */
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 15px;
  cursor: pointer;
  margin-bottom: -1px;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { color: var(--aurora); border-bottom-color: var(--aurora); }
.tab:focus-visible { outline: 2px solid var(--aurora); outline-offset: 2px; border-radius: 6px; }

.tabnote { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.tabempty { color: var(--muted); margin: 20px 0; }

.firstthree {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 12px 0 6px;
  padding-left: 20px;
}
.firstthree li { margin-bottom: 3px; }

/* The whole grouping mechanism, in one rule per place (redesigned 2026-10-13: five places, Today Calendar Voice Chats Setup). */
#panel[data-tab="today"] .panel-section:not([data-group="today"]),
#panel[data-tab="calendar"] .panel-section:not([data-group="calendar"]),
#panel[data-tab="voice"] .panel-section:not([data-group="voice"]),
#panel[data-tab="chats"] .panel-section:not([data-group="chats"]),
#panel[data-tab="setup"] .panel-section:not([data-group="setup"]) { display: none; }

/* Inside a place, one screen at a time. */
#panel[data-tab="calendar"][data-sub="calendar"] .panel-section[data-group="calendar"]:not([data-sub="calendar"]),
#panel[data-tab="calendar"][data-sub="sets"] .panel-section[data-group="calendar"]:not([data-sub="sets"]),
#panel[data-tab="voice"][data-sub="rules"] .panel-section[data-group="voice"]:not([data-sub="rules"]),
#panel[data-tab="voice"][data-sub="answers"] .panel-section[data-group="voice"]:not([data-sub="answers"]),
#panel[data-tab="voice"][data-sub="missed"] .panel-section[data-group="voice"]:not([data-sub="missed"]),
#panel[data-tab="chats"][data-sub="waiting"] .panel-section[data-group="chats"]:not([data-sub="waiting"]),
#panel[data-tab="chats"][data-sub="conversations"] .panel-section[data-group="chats"]:not([data-sub="conversations"]),
#panel[data-tab="chats"][data-sub="flagged"] .panel-section[data-group="chats"]:not([data-sub="flagged"]),
#panel[data-tab="chats"][data-sub="booked"] .panel-section[data-group="chats"]:not([data-sub="booked"]),
#panel[data-tab="chats"][data-sub="numbers"] .panel-section[data-group="chats"]:not([data-sub="numbers"]),
#panel[data-tab="setup"][data-sub="business"] .panel-section[data-group="setup"]:not([data-sub="business"]),
#panel[data-tab="setup"][data-sub="booking"] .panel-section[data-group="setup"]:not([data-sub="booking"]),
#panel[data-tab="setup"][data-sub="website"] .panel-section[data-group="setup"]:not([data-sub="website"]),
#panel[data-tab="setup"][data-sub="hours"] .panel-section[data-group="setup"]:not([data-sub="hours"]),
#panel[data-tab="setup"][data-sub="alerts"] .panel-section[data-group="setup"]:not([data-sub="alerts"]),
#panel[data-tab="setup"][data-sub="channels"] .panel-section[data-group="setup"]:not([data-sub="channels"]),
#panel[data-tab="setup"][data-sub="partners"] .panel-section[data-group="setup"]:not([data-sub="partners"]),
#panel[data-tab="setup"][data-sub="aikey"] .panel-section[data-group="setup"]:not([data-sub="aikey"]),
#panel[data-tab="setup"][data-sub="billing"] .panel-section[data-group="setup"]:not([data-sub="billing"]) { display: none; }

.cal-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 10px 0; }
.cal-views, .cal-step { display: flex; gap: 6px; align-items: center; min-width: 0; }
.cal-title { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid.cal-week { grid-template-columns: minmax(0, 1fr); }
.cal-cell { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px; border: 1px solid var(--line, #d8d8d8); border-radius: 8px; background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; overflow: hidden; }
.cal-cell.cal-out { opacity: 0.45; }
.cal-cell.cal-today { border-color: var(--aurora, #2a6df4); border-width: 2px; }
.cal-cell .cal-day { font-weight: 600; }
.cal-cell .cal-name { font-size: 0.8em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-cell .cal-count { font-size: 0.75em; opacity: 0.75; }
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cal-c0 { background: #2a6df4; } .cal-c1 { background: #e0892b; } .cal-c2 { background: #2f9e6a; } .cal-c3 { background: #b04fc4; } .cal-call { background: #888; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 0.9em; min-width: 0; }
.cal-legend span { display: inline-flex; gap: 6px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.cal-now p { margin: 4px 0 0; }
.cal-audit { margin-top: 16px; }
.cal-log { list-style: none; padding: 0; margin: 0; }
.cal-log li { padding: 6px 0; border-bottom: 1px solid var(--line, #e4e4e4); overflow-wrap: anywhere; }
.cal-sets { display: grid; gap: 10px; }
.cal-set { min-width: 0; overflow-wrap: anywhere; }
.cal-set .cal-actions { margin-top: 8px; }
.cal-sheet { width: min(560px, calc(100vw - 24px)); max-width: 100%; box-sizing: border-box; border: 1px solid var(--line, #d8d8d8); border-radius: 12px; padding: 16px; }
.cal-sheet input[type="text"], .cal-sheet input[type="date"] { max-width: 100%; box-sizing: border-box; }
.cal-dates { display: flex; flex-wrap: wrap; gap: 10px; }
.cal-dates label, .cal-field { display: grid; gap: 4px; min-width: 0; }
.cal-choices { border: 0; padding: 0; margin: 10px 0; min-width: 0; }
.cal-choices label { display: flex; gap: 8px; align-items: center; margin: 4px 0; min-width: 0; overflow-wrap: anywhere; }
.cal-weekends { display: flex; gap: 8px; align-items: center; margin: 6px 0; min-width: 0; overflow-wrap: anywhere; }
.cal-preview { margin: 10px 0; overflow-wrap: anywhere; }
.cal-err { color: #b3261e; margin: 6px 0; }
.cal-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.cal-toast { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--aurora-soft, #eef3ff); max-width: 100%; box-sizing: border-box; }
.cal-toast[hidden] { display: none; }
.cal-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cal-shortcuts:empty { display: none; }

/* What does not apply to this company stays off the page unless they ask (see public/panelview.js). */
.panel-section[data-fit="no"] { display: none !important; }
#panel:not([data-showall="1"]) .channel.absent,
#panel:not([data-showall="1"]) .channel.locked,
#panel:not([data-showall="1"]) .channel.soon,
#panel:not([data-showall="1"]) .advanced-tick,
#panel:not([data-showall="1"]) #channels-setup { display: none; }

/* The drop-down version of each menu: phones only. Tabs: wider screens only. */
.navmenu { display: none; margin: 10px 0 0; }
.navmenu-label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.navmenu select { width: 100%; font: inherit; font-size: 17px; font-weight: 600; padding: 12px 14px; min-height: 48px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface, #fff); color: var(--ink); }
.navmenu select:focus-visible { outline: 2px solid var(--aurora); outline-offset: 2px; }
.settingsnav { margin: 12px 0 0; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.subtab { appearance: none; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 13px; border: 1px solid var(--hairline); border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.subtab:hover { color: var(--ink); }
.subtab[aria-current="page"] { color: var(--aurora); border-color: var(--aurora); background: var(--aurora-soft, transparent); }
.subtab:focus-visible { outline: 2px solid var(--aurora); outline-offset: 2px; }
.subsays { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.showall { display: inline-flex; gap: 8px; align-items: center; margin: 12px 0 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.showall input { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .subtabs { display: none; }
  .navmenu { display: block; }
}

/* Find anything, and the map. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.findbar { display: flex; gap: 8px; margin: 12px 0 0; }
.findbar input[type="search"] { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 16px; min-height: 44px; border: 1px solid var(--edge, var(--hairline)); border-radius: 999px; background: var(--surface, #fff); color: var(--ink); }
.findbar input[type="search"]:focus-visible { outline: 2px solid var(--aurora); outline-offset: 2px; }
.findbar button { min-height: 44px; border-radius: 999px; white-space: nowrap; }
.map-short { display: none; }
@media (max-width: 600px) { .map-long { display: none; } .map-short { display: inline; } }
.findresults, .mapscreens { list-style: none; margin: 8px 0 0; padding: 0; }
.findresults { border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface, #fff); overflow: hidden; }
.findresults li + li, .mapscreens li + li { border-top: 1px solid var(--hairline); }
.findnone { padding: 12px 16px; color: var(--muted); }
.findresult { appearance: none; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; width: 100%; padding: 12px 16px; min-height: 44px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.findresult:hover, .findresult:focus-visible { background: var(--aurora-soft, rgba(0, 0, 0, .04)); }
.findwhere { color: var(--muted); font-size: 13px; }
.mappanel { margin: 8px 0 0; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface, #fff); padding: 8px 16px 16px; }
.mapplace { padding: 12px 0 4px; }
.mapplace h3 { margin: 0 0 6px; font-family: var(--display, inherit); font-size: 18px; }
.tab-badge { display: inline-block; min-width: 20px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #b3261e; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; vertical-align: 1px; }
.tab-badge[hidden] { display: none; }

/* On a phone the five places are a bar along the bottom, the way a thumb reaches them. */
@media (max-width: 600px) {
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; gap: 0;
    justify-content: space-around; overflow: visible;
    background: var(--surface, #fff); border-top: 1px solid var(--hairline); border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 14px -8px rgba(16, 24, 32, .25);
  }
  .tab { flex: 1; min-height: 56px; padding: 8px 2px; font-size: 13px; text-align: center; margin: 0; border-bottom: 0; border-top: 3px solid transparent; }
  .tab[aria-current="page"] { border-top-color: var(--aurora); }
  #panel { padding-bottom: 76px; }
}

/* Today. */
.today-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 6px 0 22px; }
.today-card { border: 1px solid var(--hairline); border-radius: 14px; padding: 18px 18px 16px; background: var(--raised, transparent); }
.today-card[hidden] { display: none; }
.today-banner { border: 1px solid #c0392b; border-radius: 14px; padding: 14px 18px; margin: 6px 0 16px; background: rgba(192, 57, 43, 0.08); }
.today-banner[hidden] { display: none; }
.today-n { font-family: var(--display, inherit); font-size: 44px; line-height: 1; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.today-label { margin: 0 0 12px; font-size: 16px; line-height: 1.35; }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.check:first-child { border-top: 0; }
.check-mark { width: 22px; flex: none; text-align: center; color: var(--aurora); font-weight: 700; }
.check-label { flex: 1; font-size: 16px; }
.check.done .check-label { color: var(--muted); }
.check.todo .check-mark { color: var(--muted); }

/*
 * A button that takes something away does not look like Save.
 *
 * "Switch Vaki off on my website" sat beside Save at the same size and the
 * same weight, on the screen that binds the widget to the operator's own site.
 * It keeps its words, which are clear, and stops borrowing Save's authority.
 */
.danger {
  appearance: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--bad);
  font-family: inherit;
  font-size: 14px;
  padding: 9px 16px;
  cursor: pointer;
}
.danger:hover { border-color: var(--bad); }
.danger:focus-visible { outline: 2px solid var(--bad); outline-offset: 2px; }
.dangerrow { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hairline); }

/* The Bookings list (2026-10-13). A table, because it is a grid of facts. */
#bookings-list { overflow-x: auto; }
.bookings { width: 100%; border-collapse: collapse; font-size: .92rem; }
.bookings th, .bookings td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line, rgba(0,0,0,.12)); vertical-align: top; }
.bookings th { font-weight: 600; white-space: nowrap; }
.bookings td.reference { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bookings td.action { white-space: nowrap; }
.bookings .cancel-ask { white-space: normal; max-width: 22rem; margin-top: 6px; }
.bookings .cancel-ask button { margin: 4px 6px 0 0; min-height: 44px; }
/* On a phone the same rows stack as cards: tour and date first, the Cancel button last. */
@media (max-width: 640px) {
  .bookings thead { display: none; }
  .bookings, .bookings tbody { display: block; }
  .bookings tr { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 12px; padding: 14px; margin: 0 0 12px; }
  .bookings td { display: block; padding: 0; border: 0; white-space: normal; }
  .bookings td::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--muted); }
  .bookings td.action::before { content: none; }
  .bookings td.tour { order: 1; font-size: 1.05rem; font-weight: 600; }
  .bookings td.date { order: 2; }
  .bookings td.status { order: 3; }
  .bookings td.contact { order: 4; }
  .bookings td.guests { order: 5; }
  .bookings td.reference { order: 6; }
  .bookings td.action { order: 7; }
  .bookings td.action > button { width: 100%; }
}

/* Reports from guests (Activity). The reported answer is marked, not just listed. */
/* Not dimmed: dimming text fails contrast. The word "resolved" is in the line above, and the card is flat. */
.report.resolved { background: var(--raised, rgba(0,0,0,.04)); border-style: dashed; }
.report-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.report-meta { color: var(--muted); font-size: 13px; }
.report-note { margin: 0; padding: 8px 12px; border-left: 3px solid var(--hairline); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.report-person { margin: 0; font-weight: 600; color: var(--aurora); font-size: 14px; }
.report-convo { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; padding: 8px; background: var(--raised, rgba(0,0,0,.04)); border-radius: 12px; }
.report-line { display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; border-radius: 10px; font-size: .92rem; }
.report-line.guest { background: var(--surface); }
.report-who { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.report-text { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Marked twice, by colour and by the words "Reported answer", so it does not depend on seeing a colour. */
.report-line.flagged { border: 2px solid var(--bad); background: var(--bad-soft, rgba(160,52,42,.1)); }
.report-line.flagged .report-who { color: var(--bad); }
.report .row { justify-content: flex-start; margin-bottom: 0; }

/* The one step for a company with no booking system connected. */
#section-connect-booking .gap-actions { margin: 12px 0; flex-wrap: wrap; }
#section-connect-booking .gap-actions button { font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; padding: 12px 18px; min-height: 48px; border-radius: 12px; border: 1px solid var(--hairline); }
#section-connect-booking .gap-actions button:not(.ghost) { background: var(--aurora); color: var(--surface); border-color: transparent; }
/* Touch targets on the new navigation and Today. */
.today-card button, .check button { min-height: 44px; }
/* The Logs list: one tappable row per chat or call, read top to bottom on a phone. */
.logs-search { width: 100%; min-height: 44px; font: inherit; padding: 8px 12px; margin: 12px 0 8px; box-sizing: border-box; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--aurora); color: var(--surface); border-color: transparent; }
.chip:focus-visible, .log-row:focus-visible { outline: 2px solid var(--aurora); outline-offset: 2px; }
.log-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.log-row { display: grid; gap: 4px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--raised); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px; cursor: pointer; }
.log-top, .log-bottom { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.log-top { justify-content: space-between; flex-wrap: nowrap; }
.log-top .log-chip { flex: none; margin-left: auto; text-transform: uppercase; letter-spacing: 0.04em; }
.log-who { color: var(--muted); }
.log-q { font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.log-chip { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface); border: 1px solid var(--hairline); }
.log-chip.outcome-answered { color: var(--aurora); }
.log-chip.outcome-booking-made { color: var(--aurora); }
.log-chip.outcome-handed-off { color: var(--ember); }
.log-chip.outcome-unanswered { color: var(--bad); }
.log-chip.outcome-missed { color: var(--bad); }
.log-chip.outcome-message-taken, .log-chip.outcome-voicemail { color: var(--ember); }
.log-length { color: var(--muted, inherit); }
.logs-settings { margin-top: 16px; }
.logs-settings summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.logs-setting { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.logs-setting input[type="number"] { width: 5em; min-height: 44px; font: inherit; padding: 4px 8px; box-sizing: border-box; }
.logs-empty { padding: 16px 0; display: grid; gap: 8px; justify-items: start; }
.logs-empty[hidden] { display: none; }
.logs-state { margin: 8px 0; }
.logs-bulk { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.logs-bulk button { min-height: 44px; font: inherit; }
.logs-detail-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.logs-detail-bar button { min-height: 44px; font: inherit; }
.log-meta { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.logs-messages { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.logs-messages li { padding: 8px 12px; border-radius: 12px; background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
.logs-messages .from-guest { justify-self: start; }
.logs-messages .from-vaki { justify-self: end; }
.logs-messages .from-handoff { font-style: italic; }

/* "How Vaki talks for you" (the rules box). Plain cards and 44 pixel tick rows in every look; the Harbour look refines them. */
.rb-fields {
  min-inline-size: 0; margin: 0 0 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
}
.rb-fields > legend { font-family: var(--display, inherit); font-weight: 600; font-size: 16px; padding: 0 6px; }
.rb-mode { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; }
.rb-mode > legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 2px; }
.rb-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
label.rb-check { flex-direction: row; align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; font-size: 15.5px; line-height: 1.4; color: var(--ink); cursor: pointer; }
.rb-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--aurora); }
.rb-list { display: flex; flex-direction: column; }
.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); column-gap: 16px; }
.rb-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rb-fields input[type="date"], .rb-fields input[type="number"], .rb-fields select, .rb-fields textarea, .rb-try textarea {
  font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--hairline); background: var(--raised); color: var(--ink); width: 100%;
}
.rb-try { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding: 14px 16px; border: 1px dashed var(--hairline); border-radius: 14px; }
.rb-try h4 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.rb-badge { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; padding: 3px 8px; border-radius: 999px; color: var(--aurora); background: var(--aurora-soft); }
.rb-answer { padding: 12px 14px; background: var(--raised); border-radius: 10px; line-height: 1.5; white-space: pre-wrap; }
@media (max-width: 480px) { .rb-dates { grid-template-columns: 1fr; } }

/* Booking link screen: controls big enough for a thumb. */
#section-booking-link input[type="url"],
#section-booking-link input[type="number"],
#section-booking-link button { min-height: 44px; padding: 8px 14px; font: inherit; }
#section-booking-link input[type="url"] { width: 100%; box-sizing: border-box; }
#section-booking-link input[type="number"] { width: 6em; }
#section-booking-link .field { display: block; margin: 12px 0; }
#section-booking-link label { display: block; margin: 10px 0; }

/* The pause switch (public/pause.js). One big target, readable at 390px. */
.pause-slot[hidden] { display: none; }
.pause-slot { margin: 0 0 18px; }
.pause-card { border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px; }
.pause-card.is-paused { border: 2px solid var(--bad, #B3261E); background: var(--bad-soft, rgba(179,38,30,.08)); }
.pause-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.pause-card.is-paused .pause-title { color: var(--bad, #B3261E); }
.pause-line { margin: 4px 0; overflow-wrap: anywhere; }
.pause-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.pause-row label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.pause-btn { min-height: 48px; padding: 0 22px; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.pause-btn.pause { background: var(--bad, #B3261E); color: #fff; border: none; }
.pause-btn.resume { background: transparent; color: inherit; border: 2px solid currentColor; margin-top: 10px; }
.pause-card select { min-height: 44px; }
.pause-planned .ghost { margin-left: 6px; }
.pause-head { margin: 22px 0 8px; }
.pause-log { margin: 4px 0 0; padding-left: 18px; font-size: .9rem; }
@media (max-width: 480px) {
  .pause-btn { width: 100%; }
  .pause-row select, .pause-row label, .pause-row input { width: 100%; }
}
.logs-views { margin-bottom: 12px; }
.q-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.q-card { border: 1px solid var(--hairline); border-radius: 12px; padding: 14px; background: var(--surface); display: grid; gap: 8px; }
.q-text { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.q-chips { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.q-form { display: grid; gap: 8px; }
.q-form label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.q-form textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--raised, var(--surface)); color: var(--ink); }

.log-snippet { font-size: 14px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.log-row mark, .logs-messages mark { background: color-mix(in srgb, var(--ember, #E8913A) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
