/* The new look's colours in light, the default for everyone: served in
   front of style.css (crate::bloom). /bloom/theme.css adds dark.css for a
   browser that picked Dark, or Match my device on a dark device. Only
   custom properties. */

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #F7F6F2;
  --surface: #FFFFFF;
  --side: #FFFFFF;
  --ink: #16151C;
  --muted: #5C5A66;
  --line: #E7E4DC;
  --accent: #3355FF;
  --on-accent: #FFFFFF;
  --soft: #ECEFFF;
  --good: #0A7546;
  --good-soft: #DDF5E8;
  --warn: #A1470A;
  --warn-soft: #FFEBD6;
  --ask: #B0287F;
  --ask-soft: #FCE3F2;
  --shadow: 0 1px 2px rgba(22, 21, 28, .04), 0 4px 14px rgba(22, 21, 28, .05);
  --pop: 0 16px 40px rgba(0, 0, 0, .14);
  /* A colour per section: the menu's icons, a business's tile. */
  --c0: #3355FF; --c1: #FF6B4A; --c2: #12B76A; --c3: #F5A524; --c4: #E0489B; --c5: #7C5CF2; --c6: #10A5B8;
  --tint: 12%;
  --r: 18px;
  --r-small: 10px;
}
:root { --flow-2: #748AF8; --flow-3: #E0E3FF; --flow-2-ink: #16151C; --flow-3-ink: #16151C; }
/* The new look (Bloom): colourful and friendly. Warm neutrals, one bright
   blue for actions, and a colour per section. Light or dark as the device
   is set, unless Settings > Appearance says otherwise. Pages run no script and allow no inline style, so everything
   sized or coloured is a class here.

   1. Typeface and colours (tokens)
   2. Basics: text, buttons, cards
   3. The dashboard's shell: switcher, menu, Try your agent, page
   4. Home
   5. Phone: a bar across the top, the menu across the bottom
   6. Questions: tabs, topics to answer, conversations
   7. Insights
   8. Settings: a sheet of sections, the name of each beside it */

/* 1. Typeface and colours --------------------------------------------- */

/* The colours are in light.css, served in front of this file
   (crate::bloom): light for everyone by default. /bloom/theme.css, linked
   after this file, adds dark.css for a browser that picked Dark, or Match
   my device on a dark device, in Settings > Appearance. */
:root { color-scheme: light; }

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/bloom/fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/bloom/fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Basics ------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { opacity: .85; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: -0.025em; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
       border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--on-accent);
       font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.link { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

.card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 24px;
        border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.card.roomy { gap: 16px; padding: 28px; }
.card p { color: var(--muted); font-size: 14px; }
.card.roomy p { font-size: 15px; }
.card.roomy h2 { font-size: 19px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* 3. The dashboard's shell --------------------------------------------- */

/* The switcher and the menu down the left (the rail), the page beside
   them. The rail is the window's height and stays put while the page
   scrolls; if the window is too short for the menu, the menu scrolls on
   its own, under the switcher (whose list hangs over the menu and the
   page, so the rail itself never clips). */
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; z-index: 7; display: flex; flex-direction: column; height: 100vh; height: 100dvh;
        background: var(--side); border-right: 1px solid var(--line); }
.top { position: relative; z-index: 2; flex: none; padding: 20px 14px 0; }
.side { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 20px; padding: 20px 14px; overflow-y: auto; }
.pane { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 1120px;
        margin: 0 auto; padding: 36px 40px 48px; }

/* The business switcher: the business shown, opening to the person's
   businesses, adding another, and signing out. */
.switch > summary { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line);
                    border-radius: 12px; background: var(--surface); cursor: pointer; list-style: none; }
.switch > summary::-webkit-details-marker { display: none; }
.switch .chev { margin-left: auto; color: var(--muted); transition: transform .15s; }
.switch[open] .chev { transform: rotate(180deg); }
.who { display: flex; flex-direction: column; min-width: 0; }
.who b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .d { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile { --c: var(--c0); display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px;
        border-radius: 8px; background: color-mix(in srgb, var(--c) var(--tint), transparent); color: var(--c);
        font-weight: 700; font-size: 13px; }
.tile.on { width: 32px; height: 32px; background: var(--accent); color: var(--on-accent); font-size: 15px; }
.tile.c1 { --c: var(--c1); } .tile.c2 { --c: var(--c2); } .tile.c3 { --c: var(--c3); }
.tile.c4 { --c: var(--c4); } .tile.c5 { --c: var(--c5); } .tile.c6 { --c: var(--c6); }
.switch .menu { position: absolute; z-index: 10; left: 14px; top: calc(100% + 6px); width: 280px; max-width: calc(100vw - 28px); padding: 8px;
                display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 16px;
                background: var(--surface); box-shadow: var(--pop); }
.switch .menu ul { list-style: none; margin: 0; padding: 0 0 6px; border-bottom: 1px solid var(--line);
                   max-height: calc(100vh - 260px); overflow-y: auto;
                   display: flex; flex-direction: column; gap: 2px; }
.switch .menu li a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-small);
                     color: var(--ink); text-decoration: none; }
.switch .menu li a[aria-current] { background: var(--soft); }
.switch .menu .tick { margin-left: auto; color: var(--accent); }
.switch .add { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px; font-size: 14px;
               font-weight: 600; text-decoration: none; }
.switch .out { width: 100%; padding: 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px;
               text-align: left; cursor: pointer; }

/* The menu: an icon in each page's own colour, the page shown shaded, a
   count beside Questions. */
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: var(--r-small);
         color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav a[aria-current] { background: var(--soft); color: var(--ink); font-weight: 600; }
.nav .ic { --c: var(--c0); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
           border-radius: 8px; background: color-mix(in srgb, var(--c) var(--tint), transparent); color: var(--c); }
.nav li:nth-child(2) .ic { --c: var(--c1); } .nav li:nth-child(3) .ic { --c: var(--c2); }
.nav li:nth-child(4) .ic { --c: var(--c3); } .nav li:nth-child(5) .ic { --c: var(--c4); }
.nav li:nth-child(6) .ic { --c: var(--c5); }
.badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent);
         color: var(--on-accent); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }

/* Try your agent, for an agent we run; then who's signed in. */
.tryit { margin-top: auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px;
         border-radius: 12px; background: var(--soft); }
.tryit h2 { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.tryit p { font-size: 12px; line-height: 1.4; color: var(--muted); }
.email { margin-top: auto; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.tryit + .email { margin-top: 0; }

/* The page's head. */
.head { display: flex; flex-direction: column; gap: 6px; }
.sub { font-size: 15px; color: var(--muted); }

/* Moving between pages (GEN-383): each page is still the server's, but
   the browser cross-fades from one to the next instead of flashing blank,
   and the switcher and menu stay put. Browsers without view transitions
   load pages as before; with reduced motion, there's no fade. The menu's
   links swap the page in place without reloading (/bloom/drive.js). */
@view-transition { navigation: auto; }
.turbo-progress-bar { height: 2px; background: var(--accent); }
.top { view-transition-name: top; }
.side { view-transition-name: side; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* 4. Home -------------------------------------------------------------- */

.live { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; }
.live .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--good); align-self: center; }
.live .note { color: var(--muted); }
.lead { color: var(--muted); overflow-wrap: anywhere; }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; font-size: 14px; }
.banner.warn { background: var(--warn-soft); }
.banner.warn > svg { color: var(--warn); }
.banner .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
/* The head, with Try your agent beside the name; the banners above the
   page: a problem, a heads-up, a first-day tip. */
.split { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.head.split { flex-direction: row; align-items: flex-start; }
.banner b { font-weight: 700; }
.banner.accent, .banner.tip { background: var(--soft); }
.banner .pip { width: 10px; height: 10px; flex: none; margin: 0 4px; border: 2px solid var(--accent); border-radius: 999px; }
.banner.tip { padding: 16px 20px; }
.banner .star { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px;
                border-radius: 10px; background: var(--surface); color: var(--ink); }
.banner .t .d { display: block; color: var(--muted); }

/* The goal ring: this week's share answered, a dot at the goal. */
.card.hero { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 32px; }
.ring { position: relative; flex: none; width: 168px; height: 168px; }
.ring svg { display: block; }
.ring .track { stroke: var(--soft); stroke-width: 18; }
.ring .arc { stroke: var(--accent); stroke-width: 18; }
.ring .goal { fill: var(--ink); stroke: none; }
.ring .in { position: absolute; inset: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
            text-align: center; }
.ring .in b { margin-bottom: 4px; font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -0.025em; }
.ring .in span { font-size: 12px; line-height: 1.25; color: var(--muted); }
.ring .in .of { font-weight: 600; color: var(--ink); opacity: .7; }
.say { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1 1 320px; min-width: 0; }
.say h2 { font-size: 26px; line-height: 1.2; }
.card .say p { font-size: 15px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.row .btn { display: inline-block; padding: 12px 20px; line-height: 1.35; white-space: normal; text-align: center; }
.row .btn .by { margin-left: 4px; font-weight: 500; opacity: .75; white-space: nowrap; }

/* The latest questions and what they ask about, side by side. */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.pair .card { align-items: stretch; }
.ruled { padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.card .none { padding: 24px 8px; text-align: center; }
.latest { list-style: none; margin: 0; padding: 0; }
.latest li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.latest li:first-child { border-top: 0; padding-top: 4px; }
.latest .q { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.latest .q a { color: var(--ink); text-decoration: none; }
.latest .q a:hover { text-decoration: underline; }
.latest .d, .topics .d { display: block; font-size: 13px; color: var(--muted); }
.chip { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.ask { background: var(--ask-soft); color: var(--ask); }
.topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.topics li { --c: var(--c0); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; }
.topics li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.topics .n { overflow-wrap: anywhere; }
.topics .d { display: inline; }
.topics .meter { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.topics .meter i { display: block; height: 100%; border-radius: 999px; background: var(--c); }
.topics .c1 { --c: var(--c1); } .topics .c2 { --c: var(--c2); } .topics .c3 { --c: var(--c3); } .topics .c4 { --c: var(--c4); }
.meter .w0 { width: 0%; } .meter .w1 { width: 5%; } .meter .w2 { width: 10%; } .meter .w3 { width: 15%; } .meter .w4 { width: 20%; } .meter .w5 { width: 25%; } .meter .w6 { width: 30%; } .meter .w7 { width: 35%; } .meter .w8 { width: 40%; } .meter .w9 { width: 45%; } .meter .w10 { width: 50%; } .meter .w11 { width: 55%; } .meter .w12 { width: 60%; } .meter .w13 { width: 65%; } .meter .w14 { width: 70%; } .meter .w15 { width: 75%; } .meter .w16 { width: 80%; } .meter .w17 { width: 85%; } .meter .w18 { width: 90%; } .meter .w19 { width: 95%; } .meter .w20 { width: 100%; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.tiles .card { gap: 8px; }
.tiles .btn { margin-top: auto; }
.tiles .card p { font-size: 13px; }
.num { overflow-wrap: anywhere; font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -0.025em; }
.num small { font-size: 18px; font-weight: 600; color: var(--muted); }
.onward { align-self: flex-start; font-size: 15px; font-weight: 600; }

/* 5. Phone ------------------------------------------------------------- */

@media (max-width: 720px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "top" "pane"; }
  .rail { display: contents; }
  .top { grid-area: top; position: sticky; top: 0; z-index: 6; padding: 12px 20px; background: var(--side);
         border-bottom: 1px solid var(--line); }
  .pane { grid-area: pane; }
  .switch > summary { padding: 0; border: 0; background: none; }
  .switch > summary .who .d { display: none; }
  .switch > summary .who b { font-size: 16px; }
  .switch .chev { margin-left: 0; }
  .switch .menu { left: 12px; }
  .pane { padding: 24px 20px 96px; gap: 16px; }
  h1 { font-size: 26px; }
  /* The menu across the bottom: icon over name, the page shown in blue. */
  .side { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; padding: 0 4px env(safe-area-inset-bottom);
          overflow: visible; border-top: 1px solid var(--line); background: var(--surface); }
  .nav { flex-direction: row; gap: 0; }
  .nav li { flex: 1; min-width: 0; }
  .nav a { position: relative; flex-direction: column; justify-content: center; gap: 4px; min-height: 60px; padding: 8px 0;
           font-size: 11px; font-weight: 600; }
  .nav a[aria-current] { background: none; color: var(--accent); }
  .nav .ic, .nav li:nth-child(n) .ic { width: 24px; height: 24px; background: none; color: inherit; }
  .nav .ic svg { width: 22px; height: 22px; }
  .nav .w { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .badge { position: absolute; top: 4px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; }
  .tryit, .email { display: none; }
  .banner { flex-wrap: wrap; }
  .card.hero { padding: 24px; justify-content: center; }
  .say h2 { font-size: 22px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  /* The numbers smaller, so the score still shows without scrolling. */
  /* Two to a row, a third across the width, so a long assistant name fits. */
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tiles .card:nth-child(3) { grid-column: 1 / -1; }
  .tiles .card { padding: 16px; gap: 6px; }
  .tiles .num { font-size: 24px; letter-spacing: -0.01em; }
  .tiles .card p { font-size: 12px; }
}

/* 6. Questions --------------------------------------------------------- */

/* The head with Download CSV beside it; the tabs, and the assistant
   picked, under it. */
.head.split { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line);
          border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 500;
          text-decoration: none; white-space: nowrap; }
.tabs a[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--bg); font-weight: 600; }
/* The assistant picked: a pill like the tabs, opening to each assistant
   as a link, as the business switcher opens to the businesses. */
.pick { position: relative; margin-left: auto; }
.pick > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 16px;
                  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
                  font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; list-style: none; }
.pick > summary::-webkit-details-marker { display: none; }
.pick .chev { color: var(--muted); transition: transform .15s; }
.pick[open] .chev { transform: rotate(180deg); }
.pick .menu { position: absolute; z-index: 10; right: 0; top: calc(100% + 6px); width: 220px; max-width: calc(100vw - 40px);
              max-height: calc(100vh - 220px); overflow-y: auto; margin: 0; padding: 8px; list-style: none;
              display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 16px;
              background: var(--surface); box-shadow: var(--pop); }
.pick .menu a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-small);
                color: var(--ink); font-size: 14px; text-decoration: none; }
.pick .menu a[aria-current] { background: var(--soft); font-weight: 600; }
.pick .menu .tick { margin-left: auto; color: var(--accent); }

/* A topic: its colour, name, how many asked and when; its questions;
   Answer and Ignore, or the answer's form. */
.dot { --c: var(--c0); width: 10px; height: 10px; flex: none; border-radius: 3px; background: var(--c); }
.dot.c1 { --c: var(--c1); } .dot.c2 { --c: var(--c2); } .dot.c3 { --c: var(--c3); }
.dot.c4 { --c: var(--c4); } .dot.c5 { --c: var(--c5); } .dot.c6 { --c: var(--c6); }
.top-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; width: 100%; }
.top-line h2 { min-width: 0; overflow-wrap: anywhere; }
.topic h2 { font-size: 19px; }
.when, .card p.when { margin-left: auto; font-size: 13px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px;
        font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.ask { background: var(--ask-soft); color: var(--ask); }
.asked { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; overflow-wrap: anywhere; }
.d { color: var(--muted); }
.card .d { font-size: 13px; }
.acts { display: flex; align-items: center; gap: 8px; }
.quiet { min-height: 36px; padding: 0 12px; border: 0; background: none; color: var(--muted); font: 500 14px/1 var(--font);
         text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; }
.answer { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.answer label { font-size: 14px; font-weight: 600; }
.answer textarea { width: 100%; min-height: 110px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
                   background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.answer .problem { color: var(--warn); font-size: 14px; font-weight: 600; }
.aside { font-size: 13px; color: var(--muted); }
.banner.good { background: var(--good-soft); }
.banner.good > svg { color: var(--good); }
.banner a { font-weight: 600; white-space: nowrap; }

/* Nothing to answer. */
.card.empty { align-items: center; padding: 56px 24px; text-align: center; }
.empty .glyph { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
                border-radius: 16px; background: var(--good-soft); color: var(--good); }

/* Rows: the ignored topics, the conversations, and the questions (one
   kept without its conversation isn't a link). */
.rows { list-style: none; margin: 0; padding: 0; width: 100%; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.rows li > a { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--ink); text-decoration: none; }
.rows .c { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rows .c b { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.rows li > span.c b { font-weight: 600; }
.rows .go { color: var(--muted); }
.rows.asked li > span.c b { font-weight: 500; }
.rows.asked .go { flex: none; width: 8px; }
.older { align-self: flex-start; }

@media (max-width: 720px) {
  .head.split > .btn { display: none; }
  .bar { flex-direction: column; align-items: stretch; }
  .tabs { margin: 0 -20px; padding: 0 20px; }
  .pick { align-self: flex-start; margin-left: 0; }
  .pick .menu { left: 0; right: auto; }
  .when, .card p.when { margin-left: 0; width: 100%; }
  .card.topic { padding: 18px; }
}

/* 8. Settings ---------------------------------------------------------- */

/* One sheet of sections: each its name (and what it's for) on the left,
   what it holds on the right; a line between them. */
.sheet { gap: 0; align-items: stretch; padding: 4px 28px; }
.sheet .set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 12px 32px; padding: 24px 0; }
.sheet .set + .set { border-top: 1px solid var(--line); }
.sheet .about { display: flex; flex-direction: column; gap: 4px; }
.sheet .about p, .sheet .what > p { font-size: 14px; color: var(--muted); }
.sheet .what { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.sheet .what > * { max-width: 100%; }

/* Who answers: the one answering, and switching to ours where it may. */
.sheet .choice { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 18px;
                 border: 1px solid var(--line); border-radius: 14px; }
.sheet .answerer { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.sheet .answerer b { font-weight: 600; }
.sheet .answerer span { font-size: 13px; color: var(--muted); }
.sheet .answerer .url { overflow-wrap: anywhere; }
.sheet .note { font-size: 13px; }

/* Appearance: three cards, each a little picture of the page in it; the
   one in use outlined. The pictures keep their own colours whatever the
   page is drawn in. */
.sheet .modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.sheet .mode { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--line);
               border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 14px/1.3 var(--font);
               text-align: left; cursor: pointer; }
.sheet .mode:hover { border-color: var(--muted); }
.sheet .mode.on { padding: 9px; border: 2px solid var(--accent); }
.sheet .swatch { display: flex; gap: 6px; height: 56px; padding: 8px; border-radius: 8px; }
.sheet .swatch i { width: 24%; border-radius: 4px; }
.sheet .swatch > span { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.sheet .swatch b { width: 70%; height: 8px; border-radius: 4px; }
.sheet .swatch em { height: 20px; border-radius: 4px; }
.sheet .swatch.device { background: linear-gradient(135deg, #F7F6F2 50%, #111018 50%); }
/* Match my device: half light, half dark behind, as the board draws it. */
.sheet .swatch.device i, .sheet .swatch.device em { background: #FFFFFF; }
.sheet .swatch.device b { background: #A9A6B8; }
.sheet .swatch.light { background: #F7F6F2; box-shadow: inset 0 0 0 1px #E7E4DC; }
.sheet .swatch.light i, .sheet .swatch.light em { background: #FFFFFF; }
.sheet .swatch.light b { background: #16151C; }
.sheet .swatch.dark { background: #111018; }
.sheet .swatch.dark i, .sheet .swatch.dark em { background: #1B1A24; }
.sheet .swatch.dark b { background: #F2F1F7; }
.sheet .mode .name { display: flex; align-items: center; gap: 8px; }
.sheet .mode .radio { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--muted); border-radius: 999px; }
.sheet .mode.on .radio { border: 5px solid var(--accent); }

/* Team: each person a circle with their initial, their email and role,
   and what may be done; open invites beneath; Invite someone opens a
   form beneath its button. */
.sheet .people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; width: 100%; }
.sheet .people li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; }
.sheet .face { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
               border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 600; }
.sheet .invited .face { background: none; border: 1.5px dashed var(--line); color: var(--muted); }
.sheet .who { display: flex; flex-direction: column; min-width: 0; }
.sheet .mail { font-size: 14px; overflow-wrap: anywhere; }
.sheet .you, .sheet .role { color: var(--muted); }
.sheet .role { font-size: 13px; }
.sheet .people .secret { grid-column: 2 / 4; padding: 6px 10px; font-size: 12px; }
.leaving > summary { list-style: none; }
.leaving > summary::-webkit-details-marker { display: none; }
.leaving[open] > summary { display: none; }
.inviting > summary { list-style: none; }
.inviting > summary::-webkit-details-marker { display: none; }
.inviting[open] > summary { display: none; }
.sheet .invite { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 520px; }
.sheet .invite label { font-size: 14px; font-weight: 600; }
.sheet .invite .row { display: flex; gap: 8px; }
.sheet .invite input[type=email] { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line);
                                   border-radius: 12px; background: var(--surface); color: var(--ink); font: 15px var(--font); }
.sheet .invite .btn.small { min-height: 44px; }
.sheet .invite p { font-size: 13px; color: var(--muted); }

/* API keys: a new one, shown once; then each that works. */
.sheet .made { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 16px 18px;
               border-radius: 14px; background: var(--good-soft); }
.sheet .made p { font-size: 13px; color: var(--muted); }
.sheet code { font: 13px/1.4 var(--mono); }
.sheet .secret { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-small);
                 background: var(--surface); overflow-wrap: anywhere; user-select: all; }
.sheet .keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.sheet .keys li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.sheet .keys .when { font-size: 13px; color: var(--muted); }
.sheet .quiet { padding: 0; border: 0; background: none; color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.sheet .quiet:hover { color: var(--ink); }
.sheet .signed { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--muted); }
.sheet .signed .link { font-size: 14px; }

/* Remove business: its button opens the form, in the warning colour. */
.removal > summary { list-style: none; }
.removal > summary::-webkit-details-marker { display: none; }
.removal[open] > summary { display: none; }
.sheet .confirm { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 18px;
                 border: 1px solid var(--warn); border-radius: 14px; background: var(--warn-soft); font-size: 14px; }
.sheet .confirm label { font-weight: 600; }
.sheet .confirm label code { margin: 0 2px; font-weight: 700; }
.sheet .confirm input[type=text] { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line);
                                  border-radius: 12px; background: var(--surface); color: var(--ink); font: 15px var(--mono); }
.sheet .confirm .wrong { color: var(--warn); font-weight: 600; }
.sheet .go { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.btn.danger { border-color: var(--warn); background: var(--warn); color: var(--on-accent); }
.sheet .cancel { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }

@media (max-width: 720px) {
  .sheet { padding: 0 20px; }
  .sheet .set { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
  /* A choice's words take the line; its button wraps beneath them. */
  .sheet .choice { flex-wrap: wrap; }
  .sheet .answerer { flex-basis: 100%; }
  /* Appearance: one choice a line, its picture beside its name. */
  .sheet .modes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sheet .mode { flex-direction: row; align-items: center; gap: 14px; }
  .sheet .swatch { width: 76px; height: 44px; flex: none; padding: 6px; }
  /* A key: its ending and Revoke on one line, when it was made under. */
  .sheet .keys li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
  .sheet .keys .when { grid-row: 2; }
}

/* 7. Insights (Bloom ticket 7) ----------------------------------------- */

/* The page's title, and the period beside it. */
.lede { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.pills { display: flex; gap: 8px; }
.pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line);
           border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.pills a[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--bg); }

/* Nothing to show: a centred card with the chart's icon. */
.card.empty { align-items: center; gap: 12px; padding: 40px 24px; text-align: center; }
.card.empty p { max-width: 460px; }
.glyph { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
         border-radius: 18px; background: var(--soft); color: var(--accent); }
.csv { align-self: flex-start; color: var(--muted); font-size: 13px; }

/* The six story cards: a fact, a line, a small chart. */
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.story { gap: 10px; }
.story .big { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.story .wide { align-self: stretch; }
.spark { width: 100%; height: 48px; margin-top: auto; }
.spark rect, .meter .fill { fill: var(--accent); stroke: none; }
.spark rect.none, .meter .track { fill: var(--soft); }
.spark:has(rect.on) rect.some { fill: var(--flow-2); }
.meter { width: 100%; height: 6px; }
.meter rect { stroke: none; }
.dots { display: flex; flex-wrap: wrap; gap: 4px; }
.dots i { width: 14px; height: 14px; border-radius: 999px; background: var(--flow-3); }
.dots i.on { background: var(--accent); }

.flow { display: flex; align-self: stretch; gap: 4px; border-radius: 12px; overflow: hidden; }
.flow > div { display: flex; flex-direction: column; gap: 2px; min-width: 64px; padding: 14px; }
.flow b { font-size: 26px; line-height: 1.1; }
.flow span { font-size: 12px; font-weight: 600; }
.flow .f1 { background: var(--accent); color: var(--on-accent); }
.flow .f2 { background: var(--flow-2); color: var(--flow-2-ink); }
.flow .f3 { background: var(--flow-3); color: var(--flow-3-ink); }
.flow .g1 { flex: 1; } .flow .g2 { flex: 2; } .flow .g3 { flex: 3; } .flow .g4 { flex: 4; } .flow .g5 { flex: 5; } .flow .g6 { flex: 6; } .flow .g7 { flex: 7; }
.flow .g8 { flex: 8; } .flow .g9 { flex: 9; } .flow .g10 { flex: 10; } .flow .g11 { flex: 11; } .flow .g12 { flex: 12; } .flow .g13 { flex: 13; }
.flow .g14 { flex: 14; } .flow .g15 { flex: 15; } .flow .g16 { flex: 16; } .flow .g17 { flex: 17; } .flow .g18 { flex: 18; } .flow .g19 { flex: 19; }
.flow .g20 { flex: 20; }

/* Answered on its own, week by week, against the goal. */
.titled { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; align-self: stretch; }
.aside { font-size: 13px; color: var(--muted); }
.trend { width: 100%; height: auto; overflow: visible; }
.trend .axis { stroke: var(--line); stroke-width: 1; }
.trend .goal { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 4 4; }
.trend text { fill: var(--muted); stroke: none; font-size: 12px; }
.trend .line { stroke: var(--accent); stroke-width: 3; }
.trend circle { fill: var(--accent); stroke: none; }
.weeks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-self: stretch; }
.weeks span { font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 720px) {
  .stories { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .story { padding: 14px; gap: 6px; }
  .story .big { font-size: 24px; }
  .story p { font-size: 12px; }
  .flow > div { min-width: 44px; padding: 10px 8px; }
  .flow b { font-size: 20px; }
  .flow span { font-size: 10px; }
}

/* One conversation: the chat in a card, what happened beside it ------ */

.wrap { overflow-wrap: anywhere; }
.back { align-self: flex-start; color: var(--muted); font-size: 14px; text-decoration: none; }
.convo { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.chat { align-items: stretch; gap: 16px; padding: 28px; }
.said { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.said li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.said li.ours { align-items: flex-end; }
.said li.more { margin-top: -10px; }
.said .time { align-self: center; padding: 4px 0; font-size: 13px; color: var(--muted); }
.said .sender { font-size: 12px; font-weight: 600; color: var(--muted); }
.card .said .bubble { max-width: 78%; padding: 14px 16px; border-radius: 16px; background: var(--soft); color: var(--ink);
                      font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.card .said .ours .bubble { border: 1px solid var(--line); background: var(--surface); }
.card .said .status { font-size: 12px; color: var(--muted); }
.outcome { display: flex; justify-content: flex-end; }
.chip.good { background: var(--good-soft); color: var(--good); }
.happened { align-items: stretch; gap: 14px; }
.facts { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.facts div { display: flex; gap: 8px; }
.facts dt { flex: none; width: 96px; color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.happened hr { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--line); }
.happened h2 { font-size: 16px; }
.happened h2.label { font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.happened .onward, .happened .btn { align-self: flex-start; }
.happened .onward { font-size: 14px; text-decoration: none; }
.happened .banner { align-items: flex-start; }

@media (max-width: 720px) {
  .convo { grid-template-columns: minmax(0, 1fr); }
  .chat { padding: 18px; }
  .card .said .bubble { max-width: 88%; }
}

/* 9. Ask AI in the menu ----------------------------------------------- */

/* Its icon is the menu's purple wherever it sits, and the page after it
   takes the pink its place would have had; a New pill beside its name.
   Ask AI's page has its own stylesheet, /bloom/ask.css. */
.nav a[href$="/ask"] .ic { --c: var(--c5); }
.nav li:has(a[href$="/ask"]) ~ li .ic { --c: var(--c4); }
.nav a[href$="/ask"]::after { content: "New"; margin-left: auto; padding: 0 8px; border-radius: 999px;
                              background: color-mix(in srgb, var(--c5) var(--tint), transparent); color: var(--c5);
                              font-size: 11px; font-weight: 700; line-height: 20px; }
@media (max-width: 720px) {
  .nav a[href$="/ask"]::after { display: none; }
}
