/* Bloom AI Concierge local UI (Stage 1). White / pale lavender base, pink and purple accents. */
:root {
  --bg: #f7f4fc;
  --surface: #ffffff;
  --surface-2: #f1ecfa;
  --ink: #2b2440;
  --ink-2: #5d5575;
  --line: #e3dbf2;
  --purple: #7451c9;
  --purple-ink: #5b3db0;
  --pink: #e0558f;
  --pink-soft: #fde8f1;
  --lav-soft: #ece5fb;
  --ok: #1f7a55;
  --ok-soft: #e3f4ec;
  --hold: #9a5a00;
  --hold-soft: #fff1dc;
  --err: #b42335;
  --err-soft: #fde7ea;
  --radius: 16px;
  --shadow: 0 6px 20px -10px rgba(76, 52, 140, 0.35);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; margin: 0; }

/* top bar and notice */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.logo {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--pink), var(--purple)); color: #fff; font-weight: 700;
}
.brand-name { font-weight: 700; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--lav-soft); color: var(--purple-ink); }
.toplink { color: var(--purple-ink); font-size: 14px; text-decoration: none; padding: 6px 10px; border-radius: 10px; white-space: nowrap; }
.toplink:hover { background: var(--lav-soft); }
.notice {
  margin: 0; padding: 10px 20px; background: var(--pink-soft); color: #7d2350;
  font-size: 13px; border-bottom: 1px solid #f6cfe0;
}

/* layout */
.wrap { max-width: 880px; margin: 0 auto; padding: 28px 20px 40px; }
h1 { font-size: 24px; line-height: 1.4; margin: 0 0 6px; }
.lead { margin: 0 0 22px; color: var(--ink-2); }
.foot { text-align: center; font-size: 12px; color: var(--ink-2); padding: 16px 20px 28px; }

/* entry cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--purple); }
.card:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.card-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--lav-soft); color: var(--purple); margin-bottom: 4px; }
.card[data-audience="nursery"] .card-icon { background: var(--pink-soft); color: var(--pink); }
.card-title { font-size: 18px; font-weight: 700; }
.card-lead { font-size: 14px; color: var(--ink-2); }

/* chat */
.chat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.eyebrow { margin: 0; font-size: 12px; color: var(--purple-ink); font-weight: 700; letter-spacing: .04em; }
.chat-title { margin: 0; }
.ghost {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 14px;
  color: var(--purple-ink); font-size: 14px; white-space: nowrap;
}
.ghost:hover { border-color: var(--purple); }
.primary {
  border: 0; border-radius: 12px; padding: 10px 22px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.primary:disabled { opacity: .6; cursor: wait; }
.services { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.services legend { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 14px;
}
.seg-btn[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.log {
  display: flex; flex-direction: column; gap: 12px; min-height: 160px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px;
}
.row { display: flex; flex-direction: column; }
.row.me { align-items: flex-end; }
.row.bot { align-items: flex-start; }
.bubble { max-width: min(640px, 92%); border-radius: 16px; padding: 10px 14px; overflow-wrap: anywhere; }
.bubble.me { background: var(--lav-soft); border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble .text { margin: 0; white-space: pre-wrap; }
.bubble-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.who { font-size: 12px; color: var(--ink-2); }
.sys { margin: 0; font-size: 13px; color: var(--ink-2); text-align: center; }
.warn { margin: 4px 0 0; font-size: 13px; color: var(--hold); }
.reasons { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--hold-soft); font-size: 14px; }
.reasons ul { margin: 0; padding-left: 1.2em; }
.mini-title { margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--hold); }
.sources { margin-top: 8px; font-size: 14px; }
.sources summary { cursor: pointer; color: var(--purple-ink); }
.sources ul, .refs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.src-head { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.src-title { color: var(--ink-2); font-size: 13px; }
.src-name { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.src-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 10px; margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.src-meta dt { font-weight: 700; }
.src-meta dd { margin: 0; overflow-wrap: anywhere; }
.sources li { padding: 6px 10px; background: var(--surface); border-radius: 8px; border-left: 3px solid var(--pink); }
blockquote { margin: 4px 0 0; padding: 6px 10px; border-left: 3px solid var(--pink); background: var(--surface); border-radius: 0 8px 8px 0; font-size: 14px; }
.examples { margin-bottom: 12px; }
.examples-label { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px dashed var(--purple); background: var(--surface); color: var(--purple-ink); border-radius: 999px; padding: 4px 12px; font-size: 13px; text-align: left; }
.ask { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.ask textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; resize: vertical; min-height: 84px; background: #fff; }
.ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.count { font-size: 12px; color: var(--ink-2); }
.count.over { color: var(--err); font-weight: 700; }

/* status badges and pills */
.badge { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--lav-soft); color: var(--purple-ink); white-space: nowrap; }
.badge.st-answered { background: var(--ok-soft); color: var(--ok); }
.badge.st-held, .badge.st-needs_revision { background: var(--hold-soft); color: var(--hold); }
.badge.st-rejected, .badge.st-processing_error { background: var(--err-soft); color: var(--err); }
.pill { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill.aud-municipality { background: var(--lav-soft); color: var(--purple-ink); }
.pill.aud-nursery { background: var(--pink-soft); color: #9b2c5e; }
.pill.aud-parent { background: #e6f1fb; color: #245b8a; }
.pill.origin-ui { background: var(--purple); color: #fff; }

/* admin */
.admin-main { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 16px; padding: 16px 20px 32px; max-width: 1280px; margin: 0 auto; }
.list-pane, .detail-pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
.list-pane { position: sticky; top: 70px; max-height: calc(100vh - 140px); display: flex; flex-direction: column; }
.detail-pane { overflow: auto; max-height: calc(100vh - 140px); position: sticky; top: 70px; }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pane-head h1 { font-size: 18px; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.filters label { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-2); gap: 2px; }
.filters .grow { flex: 1 1 140px; }
.filters select, .filters input { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; font-size: 14px; min-width: 0; }
.conv-list { list-style: none; margin: 0; padding: 0; overflow: auto; display: grid; gap: 8px; align-content: start; }
.conv { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; }
.conv:hover { border-color: var(--purple); }
.conv[aria-current="true"] { border-color: var(--purple); background: var(--lav-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.conv-text { margin: 6px 0 4px; font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.conv-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink-2); }
.conv-meta .ok { color: var(--ok); }
.conv-meta .hold { color: var(--hold); }
.empty { padding: 24px 8px; text-align: center; }
.back { display: none; margin-bottom: 10px; }
.detail-head h2 { margin: 0; font-size: 20px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 14px; margin: 10px 0; font-size: 14px; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.turn { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 12px; }
.turn-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.turn-no { font-weight: 700; color: var(--purple-ink); }
.said { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--lav-soft); }
.said.bot { background: var(--surface-2); }
.said-label { margin: 0; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.said-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.q { margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; }
.q-head { display: flex; align-items: center; gap: 8px; }
.q-no { font-size: 12px; font-weight: 700; color: var(--purple-ink); }
.q-text { margin: 4px 0 0; overflow-wrap: anywhere; }

/* admin stage 2: toolbar, status, correction, history */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; max-width: 1280px; margin: 0 auto; padding: 12px 20px 0; }
.storage { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.ok-dot { background: var(--ok); }
.warn-dot { background: var(--hold); }
.actor { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-2); gap: 2px; }
.actor input { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; font-size: 14px; width: 220px; max-width: 100%; }
.exports { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.exports-label { font-size: 12px; font-weight: 700; color: var(--purple-ink); }
.dl { text-decoration: none; font-size: 13px; padding: 6px 10px; }
.small { font-size: 13px; padding: 6px 12px; }
.small-text { font-size: 13px; margin: 4px 0 0; }
.panel { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 12px; background: #fff; }
.panel-head { display: flex; align-items: center; gap: 10px; }
.panel-head h3 { margin: 0; font-size: 16px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.inline-form select, .inline-form input, .correct-form select, .correct-form textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; font-size: 14px; min-width: 0;
}
.inline-form input { flex: 1 1 200px; }
.form-error { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--err); min-height: 0; }
.form-error:empty { display: none; }
.history { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.history li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 8px; background: var(--surface-2); border-radius: 8px; }
.h-when { color: var(--ink-2); }
.h-who { color: var(--purple-ink); font-weight: 700; }
.h-note { flex-basis: 100%; color: var(--ink-2); overflow-wrap: anywhere; }
.cls { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--lav-soft); }
.cls-now { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cls-label { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.cls-ai { margin: 2px 0 6px; font-size: 13px; color: var(--ink-2); }
.correct-form { display: grid; gap: 4px; margin-top: 8px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.correct-form textarea { resize: vertical; width: 100%; }
.form-label { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.form-row { display: flex; gap: 8px; margin-top: 4px; }
.pill.fixed { background: var(--pink-soft); color: #9b2c5e; }
.st-pill { font-weight: 700; }
.st-pill.st-unhandled { background: var(--err-soft); color: var(--err); }
.st-pill.st-in_progress { background: var(--hold-soft); color: var(--hold); }
.st-pill.st-done { background: var(--ok-soft); color: var(--ok); }
.st-pill.st-not_needed { background: var(--surface-2); color: var(--ink-2); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow);
}
.toast.ok { background: var(--ok); }
.toast.err { background: var(--err); }
.admin .list-pane, .admin .detail-pane { top: 70px; max-height: calc(100vh - 190px); }

/* phone width */
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 16px; }
  .card-icon { margin: 0; width: 48px; height: 48px; }
  .card-lead { flex-basis: 100%; }
  .wrap { padding: 20px 16px 32px; }
  h1 { font-size: 20px; }
  .topbar { padding: 10px 16px; }
  .notice { padding: 8px 16px; }
  .chat-head { flex-direction: column; align-items: stretch; }
  .chat-head .ghost { align-self: flex-start; }
  .log { padding: 12px; }
  .admin-main { grid-template-columns: 1fr; padding: 12px 16px 24px; }
  .list-pane, .detail-pane { position: static; max-height: none; }
  .detail-pane { display: none; }
  body.detail-open .detail-pane { display: block; }
  body.detail-open .list-pane { display: none; }
  .back { display: inline-block; }
  .tag { display: none; }
  .toolbar { padding: 10px 16px 0; }
  .actor, .actor input { width: 100%; }
  .admin .list-pane, .admin .detail-pane { max-height: none; }
}

/* internal staff screen (staff.html). Bloom International brand values from the official website (colours DIC187 purple,
   DIC620 gold, greige; Noto Sans JP when the PC has it). Everything below is scoped to body.staff. */
body.staff {
  --b-purple: #6b2d82; --b-purple-ink: #5a2470; --b-purple-soft: #f4eef7; --b-purple-line: #e3d6ea;
  --b-gold: #aba16b; --b-gold-ink: #6f6838; --b-gold-soft: #f6f3e7;
  --b-greige: #676c60; --b-greige-soft: #f0f1ee; --b-light: #f8f9fa; --b-white: #ffffff;
  --b-err: #a8283a; --b-err-soft: #fbeaec;
  --s-radius: 18px; --s-shadow: 0 10px 28px -18px rgba(107, 45, 130, 0.45);
  --s-font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  background: var(--b-light); color: var(--b-greige); font-family: var(--s-font); font-size: 17px; line-height: 1.8;
}
.staff .s-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--b-purple-line); backdrop-filter: blur(8px); }
.staff .s-header-inner { max-width: 960px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.staff .s-brand { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.staff .s-logo { display: block; height: 26px; width: auto; max-width: 100%; }
.staff .s-title { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.staff .s-name { font-weight: 700; color: var(--b-purple); font-size: 16px; letter-spacing: .02em; }
.staff .s-badge { font-size: 12px; font-weight: 700; color: var(--b-gold-ink); background: var(--b-gold-soft); border: 1px solid #e3ddc2; padding: 1px 10px; border-radius: 999px; }
.staff .s-actions { display: flex; gap: 8px; flex-shrink: 0; }
.staff .s-btn { font: inherit; font-size: 15px; font-weight: 700; border-radius: 999px; padding: 8px 16px; border: 1px solid var(--b-purple-line); background: var(--b-white); color: var(--b-purple); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.staff .s-btn:hover { border-color: var(--b-purple); }
.staff .s-btn-primary { background: var(--b-purple); border-color: var(--b-purple); color: #fff; }
.staff .s-btn-primary:hover { background: var(--b-purple-ink); }
.staff .s-btn:disabled { opacity: .45; cursor: not-allowed; }
.staff :focus-visible { outline: 3px solid var(--b-gold); outline-offset: 2px; }
.staff .s-demo { margin: 0; padding: 10px 20px; text-align: center; font-size: 14px; font-weight: 700; color: var(--b-gold-ink); background: var(--b-gold-soft); border-bottom: 1px solid #e3ddc2; }
.staff .s-main { max-width: 960px; margin: 0 auto; padding: 24px 20px 0; }
.staff .s-welcome { text-align: center; padding: 28px 8px 20px; }
.staff .s-hero { margin: 0 0 12px; color: var(--b-purple); font-size: clamp(24px, 4vw, 34px); line-height: 1.45; font-weight: 800; letter-spacing: .03em; }
.staff .s-lead { margin: 0 auto; max-width: 640px; font-size: 17px; color: var(--b-greige); }
.staff .s-welcome-compact { padding: 6px 8px 10px; }
.staff .s-welcome-compact .s-hero { font-size: 20px; margin: 0; }
.staff .s-welcome-compact .s-lead { display: none; }
.staff .s-panel { background: var(--b-white); border: 1px solid var(--b-purple-line); border-radius: var(--s-radius); padding: 18px 20px; box-shadow: var(--s-shadow); }
.staff .s-panel-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.staff .s-label { margin: 0; font-size: 14px; font-weight: 700; color: var(--b-purple); letter-spacing: .04em; }
.staff .s-label-note { font-weight: 400; color: var(--b-greige); margin-left: 4px; }
.staff .s-current { margin: 0; font-size: 15px; font-weight: 700; color: var(--b-greige); }
.staff .s-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.staff .s-seg-btn { font: inherit; font-size: 16px; font-weight: 700; padding: 12px 10px; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--b-purple-line); background: var(--b-white); color: var(--b-greige); cursor: pointer; }
.staff .s-seg-btn:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--b-purple); color: var(--b-purple); }
.staff .s-seg-btn[aria-pressed="true"] { background: var(--b-purple); border-color: var(--b-purple); color: #fff; }
.staff .s-seg-btn:disabled { opacity: .4; cursor: not-allowed; }
.staff .s-hint { margin: 10px 0 0; font-size: 14px; color: var(--b-greige); }
.staff .s-examples { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--b-purple-line); }
.staff .s-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.staff .s-chip { font: inherit; font-size: 15px; text-align: left; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--b-purple-line); background: var(--b-purple-soft); color: var(--b-purple-ink); cursor: pointer; line-height: 1.5; }
.staff .s-chip:hover { border-color: var(--b-purple); }
.staff .s-chat { margin-top: 18px; }
.staff .s-log { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.staff .s-row { display: flex; gap: 10px; align-items: flex-start; scroll-margin-top: 96px; scroll-margin-bottom: 190px; }
.staff .s-row-me { justify-content: flex-end; }
.staff .s-avatar { flex: 0 0 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--b-purple), var(--b-gold)); margin-top: 2px; }
.staff .s-msg { max-width: min(720px, 88%); border-radius: var(--s-radius); padding: 14px 18px; overflow-wrap: anywhere; }
.staff .s-me { background: var(--b-purple); color: #fff; border-bottom-right-radius: 6px; }
.staff .s-bot { background: var(--b-white); border: 1px solid var(--b-purple-line); border-bottom-left-radius: 6px; box-shadow: var(--s-shadow); color: #4f5349; }
.staff .s-msg-partial { border-left: 4px solid var(--b-gold); }
.staff .s-msg-hold { background: var(--b-greige-soft); border-color: #dfe1db; box-shadow: none; }
.staff .s-msg-failed { background: var(--b-err-soft); border-color: #f1c5cc; box-shadow: none; }
.staff .s-text { margin: 0; white-space: pre-wrap; font-size: 17px; line-height: 1.9; }
.staff .s-text + .s-text { margin-top: 10px; }
.staff .s-msg-head { margin-bottom: 6px; }
.staff .s-kind { display: inline-block; font-size: 13px; font-weight: 700; padding: 1px 10px; border-radius: 999px; }
.staff .s-k-answer { background: var(--b-purple-soft); color: var(--b-purple); }
.staff .s-k-partial { background: var(--b-gold-soft); color: var(--b-gold-ink); border: 1px solid #e3ddc2; }
.staff .s-k-hold { background: #e6e8e2; color: var(--b-greige); }
.staff .s-k-error { background: #f6d2d8; color: var(--b-err); }
.staff .s-k-pending { background: var(--b-purple-soft); color: var(--b-purple); }
.staff .s-follow { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--b-purple-line); font-size: 15px; color: var(--b-greige); }
.staff .s-probe { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--b-purple-soft); color: var(--b-purple-ink); font-size: 15px; }
.staff .s-pending .s-dots::after { content: "…"; animation: s-blink 1.2s steps(3, end) infinite; }
@keyframes s-blink { 0% { opacity: .2; } 50% { opacity: 1; } 100% { opacity: .2; } }
.staff .s-ask { position: sticky; bottom: 0; z-index: 10; margin: 16px -20px 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--b-light) 78%, rgba(248, 249, 250, 0)); }
.staff .s-ask textarea { width: 100%; font: inherit; font-size: 17px; line-height: 1.7; color: #3f433a; border: 1.5px solid var(--b-purple-line); border-radius: 16px; padding: 12px 14px; resize: vertical; min-height: 64px; background: var(--b-white); }
.staff .s-ask textarea:focus { border-color: var(--b-purple); outline: none; box-shadow: 0 0 0 3px rgba(107, 45, 130, 0.12); }
.staff .s-ask-foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.staff .s-count { font-size: 13px; color: var(--b-greige); }
.staff .s-count.s-over { color: var(--b-err); font-weight: 700; }
.staff .s-kbd { font-size: 13px; color: #8a8e84; margin-right: auto; }
.staff .s-send { min-width: 112px; }
.staff .s-history { position: fixed; inset: 0; z-index: 40; background: rgba(40, 30, 50, 0.35); display: flex; justify-content: flex-end; }
.staff .s-history-box { width: min(760px, 100%); height: 100%; overflow: auto; background: var(--b-white); padding: 20px 22px 32px; box-shadow: -12px 0 32px -18px rgba(0, 0, 0, .35); }
.staff .s-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.staff .s-history-head h2 { margin: 0; font-size: 19px; color: var(--b-purple); }
.staff .s-csv { min-height: 40px; }
.staff .s-table { width: 100%; border-collapse: collapse; font-size: 14px; border: 1px solid var(--b-purple-line); border-radius: 12px; overflow: hidden; }
.staff .s-table th, .staff .s-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--b-purple-line); overflow-wrap: anywhere; }
.staff .s-table th { background: var(--b-purple-soft); color: var(--b-purple); font-size: 13px; }
.staff .s-foot { text-align: center; font-size: 13px; color: #8a8e84; padding: 18px 20px 28px; }
/* Related videos under an answer (F-006) and the "cannot connect" state (2026-11-14 10:53). */
.staff .s-videos { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--b-purple-line); font-size: 14px; }
.staff .s-videos p { margin: 0 0 4px; color: var(--b-greige); font-size: 13px; }
.staff .s-videos ul { margin: 0; padding-left: 1.2em; }
.staff .s-videos a { color: var(--b-purple); }
.staff .s-demo.s-live-banner { background: var(--b-purple-soft); color: var(--b-purple-ink); border-color: var(--b-purple-line); }
.staff .s-demo.s-unavailable { background: #fbeaea; color: var(--b-err); border-color: var(--b-err); }
/* The user's choice about the question (2026-11-14 11:51): the answer, the analysis and the recording. */
.staff .s-consent { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--b-purple-line); }
.staff .s-consent-row { padding: 8px 0; }
.staff .s-consent-row + .s-consent-row { border-top: 1px solid var(--b-purple-soft); }
.staff .s-consent-name { margin: 0 0 6px; font-weight: 700; color: #4f5349; font-size: 15px; }
.staff .s-choice { display: flex; gap: 8px; flex-wrap: wrap; }
.staff .s-choice-btn { font: inherit; font-size: 14px; font-weight: 700; padding: 6px 14px; min-height: 40px; border-radius: 12px; border: 1.5px solid var(--b-purple-line); background: var(--b-white); color: var(--b-greige); cursor: pointer; }
.staff .s-choice-btn:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--b-purple); color: var(--b-purple); }
.staff .s-choice-btn[aria-pressed="true"] { background: var(--b-purple); border-color: var(--b-purple); color: #fff; }
.staff .s-choice-btn:disabled { opacity: .55; cursor: not-allowed; }
.staff .s-consent-state { margin: 6px 0 0; font-size: 13px; color: var(--b-purple); }
/* The review web environment (2026-11-14 13:33): the demo label, the guide, the rating under each answer, the passcode page. */
.staff .s-k-demo { margin-left: 6px; background: var(--b-gold-soft); color: var(--b-gold-ink); border: 1px solid #e3ddc2; }
.staff .s-k-live { margin-left: 6px; background: var(--b-purple-soft); color: var(--b-purple); border: 1px solid var(--b-purple-line); }
.staff .s-live-note { color: var(--b-purple-ink); }
.staff .s-demo-note { margin: 10px 0 0; font-size: 13px; color: var(--b-gold-ink); }
.staff .s-review-guide { margin: 0; padding: 8px 20px; text-align: center; font-size: 14px; color: var(--b-purple-ink); background: var(--b-purple-soft); border-bottom: 1px solid var(--b-purple-line); }
.staff .s-rate { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--b-purple-line); }
.staff .s-rate-label { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--b-purple); }
.staff .s-rate-good[aria-pressed="true"] { background: var(--b-purple); border-color: var(--b-purple); }
.staff .s-rate-wrong[aria-pressed="true"] { background: var(--b-err); border-color: var(--b-err); }
.staff .s-rate-comment { display: block; width: 100%; margin-top: 8px; font: inherit; font-size: 15px; line-height: 1.6; color: #3f433a; border: 1.5px solid var(--b-purple-line); border-radius: 12px; padding: 8px 12px; resize: vertical; background: var(--b-white); }
.staff .s-rate-comment:focus { border-color: var(--b-purple); outline: none; box-shadow: 0 0 0 3px rgba(107, 45, 130, 0.12); }
.staff .s-rate-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.staff .s-rate-send { font-size: 14px; padding: 6px 16px; }
.staff .s-rate-msg { margin: 6px 0 0; font-size: 13px; color: var(--b-greige); }
.staff .s-rate-done .s-rate-msg { color: var(--b-purple); font-weight: 700; }
.staff .r-entry { max-width: 520px; padding-top: 40px; }
.staff .r-entry-title { margin: 0 0 6px; font-size: 21px; color: var(--b-purple); }
.staff .r-entry-lead { margin: 0 0 14px; }
.staff .r-entry-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.staff .r-entry-form .s-label { flex-basis: 100%; }
.staff .r-entry-form input { flex: 1 1 160px; min-width: 0; font: inherit; font-size: 22px; letter-spacing: .3em; padding: 8px 14px; border: 1.5px solid var(--b-purple-line); border-radius: 12px; color: #3f433a; background: var(--b-white); }
.staff .r-entry-form input:focus { border-color: var(--b-purple); outline: none; box-shadow: 0 0 0 3px rgba(107, 45, 130, 0.12); }
.staff .r-entry-form .s-btn { min-height: 48px; min-width: 96px; }
.staff .r-entry-msg { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--b-err-soft); color: var(--b-err); font-size: 14px; }
.staff .r-entry-note { text-align: center; margin-top: 16px; }
/* The admin screen of the staff concierge (staff-admin.html). */
.staff-admin .a-main { max-width: 1120px; padding-bottom: 24px; }
.staff-admin .a-card { background: var(--b-white); border: 1px solid var(--b-purple-line); border-radius: 16px; padding: 18px 20px; margin: 0 0 18px; box-shadow: var(--s-shadow); }
.staff-admin .a-card h2 { margin: 0 0 10px; font-size: 19px; color: var(--b-purple); }
.staff-admin .a-card h3 { margin: 18px 0 8px; font-size: 16px; color: var(--b-purple); }
.staff-admin .a-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: 15px; }
.staff-admin .a-dl dt { font-weight: 700; color: var(--b-greige); }
.staff-admin .a-dl dd { margin: 0; overflow-wrap: anywhere; }
.staff-admin .a-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
.staff-admin .a-confirm { border: 1.5px solid var(--b-err); border-radius: 12px; padding: 10px 14px; margin: 0 0 10px; background: #fff7f7; }
.staff-admin .a-confirm p { margin: 0 0 8px; }
.staff-admin .a-scroll { overflow-x: auto; }
.staff-admin .a-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 6px 0 12px; font-size: 15px; }
.staff-admin .a-search input[type="search"], .staff-admin .a-search select { font: inherit; font-size: 15px; padding: 6px 10px; border: 1.5px solid var(--b-purple-line); border-radius: 10px; background: var(--b-white); }
.staff-admin .a-check { display: inline-flex; align-items: center; gap: 4px; }
.staff-admin .a-tally { max-width: 520px; }
.staff-admin .a-history th, .staff-admin .a-history td:nth-child(2), .staff-admin .a-history td:nth-child(3), .staff-admin .a-history td:nth-child(5), .staff-admin .a-history td:nth-child(7), .staff-admin .a-history td:nth-child(10) { white-space: nowrap; }
.staff-admin .a-tally td:nth-child(n+2), .staff-admin .a-tally th:nth-child(n+2) { text-align: right; }
@media (max-width: 640px) {
  body.staff { font-size: 16px; }
  .staff .s-header-inner { padding: 10px 14px; gap: 10px; align-items: flex-start; }
  .staff .s-logo { height: 17px; }
  .staff .s-name { font-size: 14px; }
  .staff .s-actions { flex-direction: column; gap: 6px; }
  .staff .s-btn { font-size: 13px; padding: 6px 12px; min-height: 36px; }
  .staff .s-main { padding: 14px 14px 0; }
  .staff .s-welcome { padding: 14px 4px 14px; }
  .staff .s-lead { font-size: 16px; }
  .staff .s-panel { padding: 14px; }
  .staff .s-seg { gap: 6px; }
  .staff .s-seg-btn { font-size: 14px; padding: 10px 4px; min-height: 48px; }
  .staff .s-msg { max-width: 92%; padding: 12px 14px; }
  .staff .s-avatar { flex-basis: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
  .staff .s-text { font-size: 16px; }
  .staff .s-ask { margin: 12px -14px 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); }
  .staff .s-ask textarea { font-size: 16px; }
  .staff .s-kbd { display: none; }
  .staff .s-count { margin-right: auto; }
  /* UI final (2026-11-14): tighter body lines on phones; the input is fixed only once a conversation has started, so
     that the example questions are never under it; the history is one card per question. */
  body.staff { line-height: 1.7; }
  .staff .s-text { line-height: 1.75; }
  .staff .s-text + .s-text { margin-top: 8px; }
  .staff .s-lead { line-height: 1.7; }
  .staff .s-follow, .staff .s-probe { line-height: 1.7; }
  .staff .s-ask { position: static; }
  body.staff.s-started .s-ask { position: sticky; }
  .staff .s-table, .staff .s-table tbody, .staff .s-table tr, .staff .s-table td { display: block; width: 100%; }
  .staff .s-table { border: none; border-radius: 0; overflow: visible; }
  .staff .s-table tr.s-thead { display: none; }
  .staff .s-table tr { border: 1px solid var(--b-purple-line); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; background: var(--b-white); box-shadow: var(--s-shadow); }
  .staff .s-table td { border: none; padding: 3px 0; font-size: 14px; line-height: 1.6; }
  .staff .s-table td:empty { display: none; }
  .staff .s-table td::before { content: attr(data-label); display: inline-block; min-width: 6.5em; font-size: 12px; font-weight: 700; color: var(--b-purple); }
  .staff .s-table td.s-td-q { font-size: 15px; font-weight: 700; color: #4f5349; padding: 4px 0 6px; }
  .staff .s-table td.s-td-q::before { display: block; min-width: 0; margin-bottom: 2px; }
}

/* claude-a/14: the public consultation (bloom-concierge.jp, no sign-in) as a landing top page (lavender and soft gold,
   the chat card in the hero). staff.js adds body.s-public only in the public branch, so everything below is scoped to
   it; the signed-in staff, review and demo screens are unchanged. No external images or fonts: gradients and inline SVG. */
body.staff.s-public {
  --p-purple: #6b2d82;      /* buttons, white text on it 9.0:1 */
  --p-purple-ink: #5a2470;
  --p-deep: #3e1f55;        /* headings */
  --p-lav: #f3edf8; --p-lav-2: #ece2f5; --p-lav-line: #e3d6ea;
  --p-gold: #c9a94e;        /* decoration only */
  --p-gold-ink: #7a6420;    /* small gold text 5.7:1 */
  --p-peach: #fbf3e6;
  --p-ink: #3b3346; --p-ink-2: #5f5869;
  --p-serif: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "BIZ UDPMincho", serif;
  --p-shadow: 0 22px 48px -30px rgba(91, 36, 112, 0.55);
  color: var(--p-ink);
  background-color: #fff;
  background-image:
    radial-gradient(ellipse 55% 38% at 8% 4%, rgba(214, 190, 236, 0.55), transparent 70%),
    radial-gradient(ellipse 45% 32% at 96% 18%, rgba(222, 204, 240, 0.6), transparent 70%),
    linear-gradient(180deg, #f7f1fb 0, #fbf8fd 760px, #ffffff 1100px);
  background-repeat: no-repeat;
}
body.staff.s-public :focus-visible { outline: 3px solid var(--p-gold); outline-offset: 3px; }
body.staff.s-public .s-pub-ico { flex: 0 0 auto; }
/* header */
body.staff.s-public .s-header { background: rgba(255, 255, 255, 0.86); border-bottom: 1px solid var(--p-lav-line); }
body.staff.s-public .s-header-inner { max-width: 1160px; justify-content: flex-start; gap: 20px; }
body.staff.s-public .s-brand { display: none; }
body.staff.s-public .s-pub-home { display: flex; align-items: center; gap: 14px; flex-shrink: 0; text-decoration: none; border-radius: 6px; }
body.staff.s-public .s-pub-home .s-logo { height: 26px; }
body.staff.s-public .s-pub-sub { padding-left: 14px; border-left: 1px solid var(--p-ink-2); font-family: var(--p-serif); font-size: 16px; font-weight: 700; color: var(--p-deep); white-space: nowrap; }
body.staff.s-public .s-pub-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; min-width: 0; }
body.staff.s-public .s-pub-links { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
body.staff.s-public .s-pub-links a { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--p-ink); text-decoration: none; white-space: nowrap; }
body.staff.s-public .s-pub-links a:hover { color: var(--p-purple); background: var(--p-lav); }
body.staff.s-public .s-actions .s-btn { min-height: 40px; padding: 6px 14px; font-size: 13px; border-color: var(--p-lav-line); background: #fff; color: var(--p-purple); }
/* buttons */
body.staff.s-public .s-pub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 26px; border-radius: 999px; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
body.staff.s-public .s-pub-btn-primary { background: linear-gradient(135deg, #7d3a96, var(--p-purple-ink)); color: #fff; box-shadow: 0 12px 24px -14px rgba(91, 36, 112, 0.9); }
body.staff.s-public .s-pub-btn-primary:hover { transform: translateY(-1px); background: var(--p-purple-ink); }
body.staff.s-public .s-pub-btn-outline { border: 1.5px solid var(--p-purple); color: var(--p-purple); background: rgba(255, 255, 255, 0.9); }
body.staff.s-public .s-pub-btn-outline:hover { background: var(--p-lav); }
body.staff.s-public .s-pub-btn-sm { min-height: 42px; padding: 6px 18px; font-size: 14px; gap: 8px; }
body.staff.s-public .s-pub-chev { font-size: 1.3em; line-height: 1; }
/* the notice (no personal data, sent to the outside AI, the limit) stays on top */
body.staff.s-public .s-demo { max-width: 1120px; margin: 12px auto 0; padding: 8px 18px; border: 1px solid var(--p-lav-line); border-radius: 14px; background: rgba(255, 255, 255, 0.88); color: var(--p-ink-2); font-size: 13px; font-weight: 400; line-height: 1.7; text-align: left; }
body.staff.s-public .s-demo.s-unavailable { color: #a8283a; border-color: #e7a6b1; background: #fff4f5; font-weight: 700; }
/* hero: text on the left, the chat card on the right */
body.staff.s-public .s-main { max-width: 1160px; padding-top: 0; }
body.staff.s-public .s-welcome { display: none; }
body.staff.s-public .s-pub-top { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 40px; align-items: start; padding: 44px 0 56px; }
/* A photo can be placed here later (background-image on .s-hero-photo); for now a soft lavender shape. */
body.staff.s-public .s-hero-photo { position: absolute; left: -140px; top: 30px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(233, 218, 245, 0.9), rgba(243, 237, 248, 0) 70%); pointer-events: none; }
body.staff.s-public .s-pub-hero-text { position: relative; padding: 18px 0 0 24px; }
body.staff.s-public .s-pub-title { margin: 0 0 22px; font-family: var(--p-serif); font-size: clamp(30px, 4.4vw, 50px); line-height: 1.38; font-weight: 700; letter-spacing: .06em; color: var(--p-deep); }
body.staff.s-public .s-pub-title span { display: block; }
body.staff.s-public .s-pub-title-accent { width: fit-content; padding-bottom: 6px; background: linear-gradient(90deg, var(--p-gold), rgba(201, 169, 78, 0.25)) left bottom / 78% 4px no-repeat; }
body.staff.s-public .s-pub-lead { margin: 0 0 18px; max-width: 30em; font-size: 16px; line-height: 1.95; color: var(--p-ink); }
body.staff.s-public .s-pub-checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; max-width: 32em; }
body.staff.s-public .s-pub-checks li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--p-lav-line); background: rgba(255, 255, 255, 0.9); font-size: 13px; color: var(--p-ink); }
body.staff.s-public .s-pub-checks li::before { content: "✓"; color: var(--p-gold-ink); font-weight: 800; }
body.staff.s-public .s-pub-checks li.s-pub-checks-etc { border: none; background: none; padding-left: 4px; color: var(--p-ink-2); }
body.staff.s-public .s-pub-checks li.s-pub-checks-etc::before { content: none; }
body.staff.s-public .s-pub-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* the chat card (the real chat) */
body.staff.s-public .s-pub-card { position: relative; scroll-margin-top: 84px; background: #fff; border: 1px solid var(--p-lav-line); border-radius: 26px; box-shadow: var(--p-shadow); overflow: hidden; }
body.staff.s-public .s-pub-card:focus { outline: none; }
body.staff.s-public .s-pub-card-head { padding: 18px 22px 14px; background: linear-gradient(135deg, #f1e8f8, #f8f3fb); border-bottom: 1px solid var(--p-lav-line); }
body.staff.s-public .s-pub-card-name { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--p-serif); font-size: 18px; font-weight: 700; color: var(--p-deep); }
body.staff.s-public .s-pub-card-sub { margin: 4px 0 0; font-size: 13px; color: var(--p-ink-2); }
body.staff.s-public .s-pub-greet, body.staff.s-public .s-pub-examples, body.staff.s-public .s-pub-card-body, body.staff.s-public .s-pub-note { margin-left: 20px; margin-right: 20px; }
body.staff.s-public .s-pub-greet { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; }
body.staff.s-public .s-pub-avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #b58fd0, var(--p-purple)); }
body.staff.s-public .s-pub-greet-text { margin: 0; padding: 12px 16px; border-radius: 18px; border-top-left-radius: 6px; background: var(--p-lav); color: var(--p-ink); font-size: 14px; line-height: 1.85; }
body.staff.s-public .s-pub-examples { margin-top: 14px; display: grid; gap: 8px; }
body.staff.s-public.s-started .s-pub-examples { display: none; }
body.staff.s-public .s-pub-examples-label { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--p-ink); }
body.staff.s-public .s-pub-examples-note { font-weight: 400; color: var(--p-ink-2); margin-left: 4px; font-size: 12px; }
body.staff.s-public .s-pub-ex { font: inherit; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--p-lav-line); background: #faf7fc; color: var(--p-deep); font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; }
body.staff.s-public .s-pub-ex .s-pub-ico { color: var(--p-purple); }
body.staff.s-public .s-pub-ex-text { flex: 1 1 auto; }
body.staff.s-public .s-pub-ex .s-pub-chev { color: var(--p-purple); }
body.staff.s-public .s-pub-ex:hover { border-color: var(--p-purple); background: var(--p-lav); }
body.staff.s-public .s-chat { margin-top: 12px; }
body.staff.s-public .s-log { gap: 12px; max-height: min(62vh, 520px); overflow-y: auto; padding: 2px 2px 6px; overscroll-behavior: contain; }
body.staff.s-public .s-log:empty { display: none; }
body.staff.s-public .s-row { scroll-margin-top: 8px; scroll-margin-bottom: 8px; }
body.staff.s-public .s-avatar { flex: 0 0 30px; height: 30px; border-radius: 50%; font-size: 13px; background: linear-gradient(135deg, #b58fd0, var(--p-purple)); }
body.staff.s-public .s-msg { padding: 10px 14px; max-width: 90%; }
body.staff.s-public .s-me { background: var(--p-purple); }
body.staff.s-public .s-bot { background: var(--p-lav); border-color: var(--p-lav-line); box-shadow: none; color: var(--p-ink); }
body.staff.s-public .s-text { font-size: 14px; line-height: 1.85; }
body.staff.s-public .s-k-answer, body.staff.s-public .s-k-pending { background: #fff; color: var(--p-purple); }
body.staff.s-public .s-follow { border-top-color: var(--p-lav-line); color: var(--p-ink-2); font-size: 13px; }
body.staff.s-public .s-probe { background: #fff; color: var(--p-purple-ink); font-size: 13px; }
body.staff.s-public .s-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; padding: 0; border: none; border-radius: 0; box-shadow: none; background: none; }
body.staff.s-public .s-panel-head { margin-bottom: 0; }
body.staff.s-public .s-label { color: var(--p-ink-2); font-size: 13px; }
body.staff.s-public .s-current, body.staff.s-public #audience-hint, body.staff.s-public .s-examples, body.staff.s-public .s-consent { display: none; }
body.staff.s-public .s-seg { display: flex; flex-wrap: wrap; gap: 6px; }
body.staff.s-public .s-seg-btn { min-height: 34px; padding: 3px 14px; border-radius: 999px; font-size: 13px; border: 1px solid var(--p-lav-line); color: var(--p-ink-2); background: #fff; }
body.staff.s-public .s-seg-btn:hover:not(:disabled):not([aria-pressed="true"]) { border-color: var(--p-purple); color: var(--p-purple); }
body.staff.s-public .s-seg-btn[aria-pressed="true"] { background: var(--p-lav); border-color: var(--p-purple); color: var(--p-purple); }
body.staff.s-public .s-ask, body.staff.s-public.s-started .s-ask { position: static; margin: 10px 0 0; padding: 0; background: none; }
body.staff.s-public .s-ask textarea { min-height: 52px; font-size: 15px; border: 1.5px solid var(--p-lav-line); border-radius: 14px; padding: 10px 14px; }
body.staff.s-public .s-ask textarea:focus { border-color: var(--p-purple); box-shadow: 0 0 0 3px rgba(107, 45, 130, 0.14); }
body.staff.s-public .s-ask-foot { margin-top: 6px; }
body.staff.s-public .s-kbd { display: none; }
body.staff.s-public .s-count { margin-right: auto; font-size: 12px; color: var(--p-ink-2); }
body.staff.s-public .s-send { min-width: 100px; min-height: 40px; background: var(--p-purple); border-color: var(--p-purple); color: #fff; }
body.staff.s-public .s-send:hover:not(:disabled) { background: var(--p-purple-ink); }
body.staff.s-public .s-pub-note { margin-top: 8px; margin-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; font-size: 12px; color: var(--p-ink-2); text-align: center; }
body.staff.s-public .s-pub-note-main { font-weight: 700; color: var(--p-purple); }
/* sections */
body.staff.s-public .s-pub-sec { padding: 56px 0 8px; text-align: center; }
body.staff.s-public .s-pub-eyebrow { margin: 0; font-family: var(--p-serif); font-size: 15px; color: var(--p-gold-ink); letter-spacing: .06em; }
body.staff.s-public .s-pub-h2 { margin: 4px 0 30px; font-family: var(--p-serif); font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; color: var(--p-deep); letter-spacing: .06em; }
body.staff.s-public .s-pub-grid { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
body.staff.s-public .s-pub-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.staff.s-public .s-pub-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.staff.s-public .s-pub-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; text-align: left; }
body.staff.s-public .s-pub-aud { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 22px; border-radius: 20px; border: 1px solid var(--p-lav-line); background: linear-gradient(160deg, #f3ebf9, #fbf8fd); color: var(--p-ink); cursor: pointer; box-shadow: 0 14px 30px -26px rgba(91, 36, 112, 0.7); transition: transform .12s ease, border-color .12s ease; }
body.staff.s-public .s-pub-aud-b { background: linear-gradient(160deg, #fbf0e1, #fffaf3); border-color: #f1e2c8; }
body.staff.s-public .s-pub-aud:hover { transform: translateY(-2px); border-color: var(--p-purple); }
body.staff.s-public .s-pub-aud-ico { color: var(--p-purple); }
body.staff.s-public .s-pub-aud-b .s-pub-aud-ico { color: var(--p-gold-ink); }
body.staff.s-public .s-pub-aud-title { font-family: var(--p-serif); font-size: 21px; font-weight: 700; color: var(--p-deep); }
body.staff.s-public .s-pub-aud-text { font-size: 14px; line-height: 1.8; color: var(--p-ink-2); }
body.staff.s-public .s-pub-can { margin-top: 40px; padding: 56px 32px 48px; border-radius: 32px; background: linear-gradient(180deg, #fbf7ef, #fdfbf7); }
body.staff.s-public .s-pub-feature { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 20px; border-radius: 18px; background: #fff; box-shadow: 0 14px 30px -24px rgba(91, 36, 112, 0.55); }
body.staff.s-public .s-pub-feature-ico { color: var(--p-purple); }
body.staff.s-public .s-pub-feature h3 { margin: 0; font-family: var(--p-serif); font-size: 18px; color: var(--p-deep); }
body.staff.s-public .s-pub-feature p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--p-ink-2); text-align: left; }
body.staff.s-public .s-pub-phil { padding-bottom: 0; }
body.staff.s-public .s-pub-phil-item { padding-left: 22px; border-left: 3px solid var(--p-purple); }
body.staff.s-public .s-pub-phil-item h3 { margin: 0 0 12px; font-family: var(--p-serif); font-size: 22px; line-height: 1.6; color: var(--p-deep); }
body.staff.s-public .s-pub-phil-item p { margin: 0; font-size: 15px; line-height: 1.95; color: var(--p-ink); }
body.staff.s-public .s-pub-hills { height: 120px; margin: 40px -20px 0; background:
  radial-gradient(ellipse 30% 70% at 18% 100%, #a9c98f 0 60%, transparent 61%),
  radial-gradient(ellipse 34% 80% at 62% 100%, #b9d59e 0 60%, transparent 61%),
  radial-gradient(ellipse 30% 75% at 92% 100%, #a9c98f 0 60%, transparent 61%),
  radial-gradient(ellipse 22% 90% at 40% 100%, #d7def0 0 60%, transparent 61%),
  radial-gradient(ellipse 26% 100% at 78% 100%, #dfe5f3 0 60%, transparent 61%),
  linear-gradient(180deg, #ffffff, #f4f0fa); }
body.staff.s-public .s-pub-cta { margin: 0 -20px; padding: 56px 24px 64px; background: linear-gradient(180deg, #f4effa, #ece2f5); }
body.staff.s-public .s-pub-cta-title { margin: 0 0 12px; font-family: var(--p-serif); font-size: clamp(22px, 3vw, 30px); color: var(--p-deep); letter-spacing: .04em; }
body.staff.s-public .s-pub-cta-lead { margin: 0 0 26px; font-size: 15px; line-height: 1.9; color: var(--p-ink); }
body.staff.s-public .s-foot { padding: 18px 20px 4px; font-size: 12px; color: var(--p-ink-2); background: #ece2f5; }
body.staff.s-public .s-pub-foot { display: flex; justify-content: center; gap: 18px; margin: 0; padding: 0 20px 26px; background: #ece2f5; font-size: 12px; }
body.staff.s-public .s-pub-foot a { color: var(--p-purple-ink); }
@media (max-width: 960px) {
  body.staff.s-public .s-pub-sub { display: none; }
  body.staff.s-public .s-pub-top { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 40px; }
  body.staff.s-public .s-pub-hero-text { padding-left: 0; }
  body.staff.s-public .s-pub-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.staff.s-public .s-header-inner { flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 16px; }
  body.staff.s-public .s-pub-home .s-logo { height: 18px; }
  body.staff.s-public .s-pub-nav { order: 3; flex-basis: 100%; margin-left: 0; justify-content: space-between; gap: 8px; }
  body.staff.s-public .s-pub-links { gap: 0; }
  body.staff.s-public .s-pub-links a { padding: 4px 7px; font-size: 13px; }
  body.staff.s-public .s-actions { flex-direction: row; margin-left: auto; }
  body.staff.s-public .s-actions .s-btn { min-height: 36px; padding: 4px 12px; }
  body.staff.s-public .s-pub-btn-sm { min-height: 36px; padding: 4px 12px; font-size: 13px; gap: 6px; }
  body.staff.s-public .s-pub-btn-sm .s-pub-ico { display: none; }
  body.staff.s-public .s-demo { margin: 10px 16px 0; font-size: 12px; }
  body.staff.s-public .s-main { padding: 0 16px; }
  body.staff.s-public .s-hero-photo { left: -120px; top: 0; width: 260px; height: 260px; }
  body.staff.s-public .s-pub-top { padding: 20px 0 32px; }
  body.staff.s-public .s-pub-title { font-size: 30px; letter-spacing: .04em; margin-bottom: 16px; }
  body.staff.s-public .s-pub-lead { font-size: 15px; }
  body.staff.s-public .s-pub-hero-actions .s-pub-btn { width: 100%; }
  body.staff.s-public .s-pub-greet, body.staff.s-public .s-pub-examples, body.staff.s-public .s-pub-card-body, body.staff.s-public .s-pub-note { margin-left: 14px; margin-right: 14px; }
  body.staff.s-public .s-pub-card-head { padding: 14px 16px 12px; }
  body.staff.s-public .s-pub-sec { padding-top: 40px; }
  body.staff.s-public .s-pub-h2 { margin-bottom: 20px; }
  body.staff.s-public .s-pub-grid-3, body.staff.s-public .s-pub-grid-4, body.staff.s-public .s-pub-grid-2 { grid-template-columns: 1fr; gap: 14px; }
  body.staff.s-public .s-pub-grid-2 { gap: 26px; }
  body.staff.s-public .s-pub-can { margin: 28px -16px 0; padding: 40px 16px 32px; border-radius: 24px; }
  body.staff.s-public .s-pub-phil-item h3 { font-size: 19px; }
  body.staff.s-public .s-pub-hills { margin: 28px -16px 0; height: 80px; }
  body.staff.s-public .s-pub-cta { margin: 0 -16px; padding: 40px 16px 48px; }
  body.staff.s-public .s-pub-cta .s-pub-btn { width: 100%; }
}

/* Human 2026-11-22 (claude-a/14): the chat card moved below 「できること」; the hero keeps the text and a photo spot on the right */
body.staff.s-public .s-pub-top { grid-template-columns: minmax(0, 1fr); min-height: 420px; }
body.staff.s-public .s-pub-top .s-pub-hero-text { max-width: 620px; }
body.staff.s-public .s-hero-photo { left: auto; right: -40px; top: 10px; width: 460px; height: 460px; }
body.staff.s-public .s-pub-chat .s-pub-card { max-width: 760px; margin: 0 auto; text-align: left; }
@media (max-width: 960px) {
  body.staff.s-public .s-pub-top { min-height: 0; }
  body.staff.s-public .s-hero-photo { right: -120px; width: 320px; height: 320px; opacity: 0.7; }
}
@media (max-width: 640px) {
  body.staff.s-public .s-hero-photo { right: -140px; top: 0; width: 260px; height: 260px; }
}
/* speed p1 (claude-a/16): the waiting note under the step text */
body.staff.s-public .s-pending .s-pending-note { margin: 4px 0 0; font-size: 12px; color: var(--muted, #7a6f86); }
/* claude-a/16: the GPT general information stands apart from Bloom's own answer */
body.staff.s-public .s-text.s-gpt { margin-top: 12px; padding: 10px 12px; border-left: 3px solid #c9b6dd; background: rgba(255,255,255,0.55); border-radius: 6px; font-size: 0.93em; color: #5d5269; }
