/* The product prototype: sign-up, the inbox check, the confirmation email and the
   workspace where the scan runs and the report arrives. It loads after
   styles.css and speaks the same language: hairlines instead of boxes, 8px actions,
   6px badges, pale tiles, Geist for working words, Geist Mono for figures, Newsreader
   for what Septima says. A frequency is drawn as on a tuner, as in the report
   (TunerReport): a needle on a scale from −5 to +5, with a faint bubble around in tune.
   While Septima reads, each needle waits at zero and eases to its reading when it knows. */
.flow{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.flow .is-tune{--wave:var(--tone-success-ink)}
.flow .is-coh{--ink:var(--accent-ink)}
.flow :is(.is-flat,.is-sharp,.is-tune){--ink:var(--wave)}
.is-in{animation:rise .5s var(--ease-expo) backwards}
/* counts with a thousands comma: the sans, with figures that hold their width */
.num{font-variant-numeric:tabular-nums}
html:has(.flow){scrollbar-color:var(--border-hover) transparent}

/* a small dot that pulses while something is being read and holds green once it is */
.live{flex:none;width:8px;height:8px;border-radius:50%;background:var(--lavender);animation:pulse 1s ease-in-out infinite}
.is-done > .live,.is-done > summary > .live{background:var(--tone-success-ink);animation:none}

/* The bar across the top: the logo, where you are, and the prototype's own menu */
.flowbar-in{display:flex;align-items:center;gap:20px;min-height:var(--header);padding-inline:var(--gutter)}
.flowbar-crumb{display:flex;align-items:center;gap:10px;min-width:0;padding-inline-start:20px;border-inline-start:1px solid var(--border-card);font-size:var(--text-body-sm);line-height:1.4667;white-space:nowrap}
/* emptied when a report won't open (flow.js, refuse): it keeps its place in the bar, without the divider */
.flowbar-crumb:empty{padding:0;border:0}
.flowbar-end{display:flex;align-items:center;gap:12px;margin-inline-start:auto}
.scan-status{display:inline-flex;align-items:center;gap:8px;font-size:var(--text-meta);line-height:1.3847;color:var(--text-secondary);white-space:nowrap}
.avatar{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:var(--accent-tint);color:var(--accent-ink);font-size:var(--text-caption);font-weight:500;letter-spacing:.02em}
.avatar:empty{display:none}

/* The prototype menu: the demo's screens in order. A dashed edge marks it, and
   everything else that belongs to the prototype rather than the product. */
.proto{position:relative}
.proto summary{list-style:none;border:1px dashed var(--border-hover)}
:is(.proto,.account) summary::-webkit-details-marker{display:none}
.proto summary .icon{transition:transform var(--fast) var(--ease-out)}
.proto[open] summary .icon{transform:rotate(180deg)}
.proto-menu,.account-menu{position:absolute;inset-inline-end:0;top:calc(100% + 8px);z-index:60;width:248px;padding:8px;border:1px solid var(--border-card);border-radius:var(--r-lg);background:var(--surface-card);box-shadow:var(--shadow-popover)}
.proto-menu ol{counter-reset:screen}
:is(.proto-menu,.account-menu) :is(a,button){display:flex;align-items:center;gap:12px;width:100%;min-height:36px;padding:0 10px;border:0;border-radius:var(--r-sm);background:none;font-size:var(--text-ui);line-height:1.4286;color:var(--text-default);text-align:start;cursor:pointer}
.proto-menu a::before{counter-increment:screen;content:counter(screen);width:1ch;font-family:var(--mono);font-size:var(--text-meta);color:var(--text-muted)}
.proto-menu a[aria-current]{background:var(--surface-nav-active);color:var(--accent-ink)}
@media (hover:hover){:is(.proto-menu,.account-menu) :is(a,button):hover{background:var(--surface-subtle)}}
/* The account menu on a live report (app.astro) */
.account{position:relative}
.account summary{display:block;list-style:none;border-radius:50%;cursor:pointer}
.account summary:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
@media (hover:hover){.account summary:hover .avatar{background:var(--accent-edge)}}
.account-who{margin-bottom:8px;padding:6px 10px 12px;border-bottom:1px solid var(--border-card);font-size:var(--text-meta);line-height:1.3847;color:var(--text-secondary);overflow-wrap:anywhere}
.account-who strong{display:block;margin-top:2px;font-size:var(--text-ui);line-height:1.4286;font-weight:500;color:var(--text-default)}
/* on a phone the menu hangs from the bar, so it stays on screen wherever the avatar sits */
@media (max-width:767px){.account{position:static}.account-menu{inset-inline-end:var(--gutter);top:calc(100% - 8px)}}
.proto-actions{margin-top:8px;padding-top:8px;border-top:1px solid var(--border-card)}
.proto-actions button{color:var(--text-secondary)}
.proto-note{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin-top:16px;padding:16px 20px;border:1px dashed var(--border-hover);border-radius:var(--r-lg)}
.proto-note p{flex:1 1 16em;font-size:var(--text-ui);line-height:1.4286;color:var(--text-secondary);text-wrap:pretty}


/* Sign-in and a report request (Flow's split layout, account.js): the brand on aubergine with the homepage's strings on
   the left, and the page's steps in one centred column on the right. On a phone the brand is a band above them. */
.auth{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);min-height:100dvh}
.auth-brand{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:48px;padding:28px 48px 48px;background:var(--accent-fill);color:#fff}
.auth-logo :is(.mark,.wordmark){color:#fff}
.auth-strings{position:absolute;left:0;top:36%;z-index:-1;width:100%;height:28%}
.auth-strings path{fill:none;stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke}
.auth-pitch{display:grid;gap:12px;max-width:25rem}
.auth-pitch-head{font-family:var(--serif);font-size:32px;line-height:1.15;letter-spacing:-.015em;text-wrap:balance}
.auth-pitch-sub{color:rgba(255,255,255,.78);text-wrap:pretty}
.auth-side{display:flex;flex-direction:column;min-width:0;padding:28px 48px 48px}
.auth-top{display:flex;justify-content:flex-end;align-items:center;gap:16px;min-height:44px;font-size:var(--text-ui);color:var(--text-secondary)}
.auth-main{flex:1;display:grid;align-content:center;width:100%;max-width:420px;margin-inline:auto;padding:40px 0}
.auth-step{display:grid;gap:16px}
.auth-main:not([data-wait]) > .auth-step{animation:auth-in .2s var(--ease-out)}
@keyframes auth-in{from{opacity:0}}
/* Hidden until account.js picks a step; after 2.5 s, shown anyway in case the script fails. A reveal, not motion:
   !important keeps it when reduced motion stops every animation (styles.css). */
.auth-main[data-wait]{visibility:hidden;animation:auth-wait 0s 2.5s forwards!important}
@keyframes auth-wait{to{visibility:visible}}
.auth-step .tile{margin-bottom:4px}
.auth-title{font-family:var(--serif);font-size:36px;line-height:1.15;letter-spacing:-.015em;text-wrap:balance}
.auth-title[tabindex="-1"]:focus{outline:none}
.auth-lede{color:var(--text-secondary);text-wrap:pretty}
.auth-form{display:grid;gap:8px;margin-top:8px}
.auth-form .input{min-height:48px}
.auth-form .btn,.auth-go{width:100%;margin-top:8px}
.auth-alt{font-size:var(--text-body-sm);line-height:1.5334;color:var(--text-secondary)}
.auth-alt + .auth-alt{margin-top:-8px}
@media (max-width:860px){
  .auth{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .auth-brand{gap:0;padding:12px var(--gutter)}
  .auth-strings{top:0;height:100%;opacity:.5}
  .auth-pitch{display:none}
  .auth-side{padding:12px var(--gutter) 40px}
  .auth-main{align-content:start;padding-top:24px}
  .auth-title{font-size:30px}
}

/* Check your inbox: one short column */
.verify{display:grid;justify-items:start;gap:20px;max-width:560px;padding:88px 0 var(--section)}
.verify .tile{margin-bottom:4px}
.verify-live{display:flex;align-items:baseline;gap:12px;width:100%;padding:14px 18px;border:1px solid var(--accent-edge);border-radius:var(--r-lg);background:var(--accent-wash);font-size:var(--text-body-sm);line-height:1.5334}
.verify-live .live{transform:translateY(-1px)}
button.inline-link{padding:0;border:0;background:none;cursor:pointer}
button.inline-link:disabled{color:var(--text-secondary);text-decoration:none;cursor:default}

/* The email, inside a plain mail app */
.is-email{background:var(--surface-subtle)}
.mail{width:min(calc(100% - var(--gutter) * 2),720px);margin-inline:auto;padding:16px 0 96px}
.mail-bar{display:flex;align-items:center;justify-content:space-between;min-height:56px}
.mail-where{font-size:var(--text-ui);line-height:1.4286;font-weight:500;color:var(--text-secondary)}
.mail-msg{border:1px solid var(--border-card);border-radius:var(--r-lg);background:var(--surface-card)}
.mail-head{padding:28px 32px 20px;border-bottom:1px solid var(--border-card)}
.mail-subject{font-size:var(--text-2xl);line-height:1.3637;font-weight:500;letter-spacing:-.01em}
.mail-from{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:0 12px;align-items:center;margin-top:20px;font-size:var(--text-ui);line-height:1.4286}
.mail-avatar{grid-row:span 2;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--accent-fill)}
.mail-avatar .mark{width:15px;height:18px;margin-left:2px;color:#fff}
.mail-addr,.mail-to,.mail-time{color:var(--text-secondary)}
.mail-to{grid-column:2}
.mail-time{grid-column:3;grid-row:1}
.mail-body{display:grid;justify-items:start;gap:16px;padding:32px 32px 40px}
.mail-body .logo{margin-bottom:8px}
.mail-body p{max-width:32em;text-wrap:pretty}
.mail-body .btn{margin-block:8px}
.mail-small{font-size:var(--text-ui);line-height:1.4286;color:var(--text-secondary)}

/* The workspace: one column of conversation, the composer held at its foot */
.thread{flex:1;display:flex;flex-direction:column;gap:24px;width:min(calc(100% - var(--gutter) * 2),880px);margin-inline:auto;padding-top:40px}
.msg{max-width:38em;font-size:var(--text-body-lg);line-height:1.5883;color:var(--text-default);text-wrap:pretty}

/* What Septima is reading: a list of steps on hairlines. The current step is open,
   with the sources it has opened and what it noticed; finished steps fold to a line.
   The whole list folds to its heading once the summary is in. */
.activity-head{display:flex;align-items:center;gap:12px;min-height:44px}
.activity-head .live{margin-inline:6px}
.activity.is-done .activity-head .live{display:none}
.activity-title{font-size:var(--text-body);line-height:1.5;font-weight:500;color:var(--text-default)}
.activity-count{margin-inline-start:auto;font-size:var(--text-meta);line-height:1.3847;color:var(--text-secondary)}
.evidence{display:flex;align-items:center;gap:12px;margin:0 0 12px;padding-inline-start:32px;font-size:var(--text-meta);line-height:1.3847;color:var(--text-secondary);font-variant-numeric:tabular-nums}
.evidence-bar{flex:none;width:96px;height:4px;border-radius:999px;background:var(--border-card);overflow:hidden}
.evidence-bar span{display:block;height:100%;width:0;border-radius:inherit;background:var(--accent-fill)}
.activity.is-done .evidence{padding-inline-start:0}
.steps{margin-top:8px;border-top:1px solid var(--border-card)}
.step{border-bottom:1px solid var(--border-card)}
.step-head{position:relative;display:flex;align-items:center;gap:12px;min-height:48px}
.step-mark{display:grid;place-items:center;flex:none;width:20px;height:20px}
.step-mark::before{content:"";grid-area:1 / 1;width:8px;height:8px;border-radius:50%;background:var(--lavender);animation:pulse 1s ease-in-out infinite}
.step-mark .icon{grid-area:1 / 1;opacity:0;color:var(--tone-success-ink);stroke-width:2}
.step.is-done .step-mark::before{display:none}
.step.is-done .step-mark .icon{opacity:1}
.step-title{flex:1;min-width:0;font-size:var(--text-body);line-height:1.5;font-weight:500;color:var(--text-default)}
.step.is-done .step-title{font-weight:400;color:var(--text-secondary)}
.step-count{font-size:var(--text-meta);line-height:1.3847;color:var(--text-secondary);white-space:nowrap}
.step-body{display:grid;gap:14px;padding:2px 0 20px 32px}
.srcs{display:grid}
.src{display:grid;grid-template-columns:20px auto minmax(0,1fr);gap:10px;align-items:center;min-height:32px;font-size:var(--text-ui);line-height:1.4286}
.src-ico{display:grid;place-items:center;flex:none;width:20px;height:20px;border-radius:var(--r-xs);background:var(--accent-tint);color:var(--accent-ink);font-size:var(--text-caption);line-height:1;font-weight:500;text-transform:uppercase}
.src-ico.has-img{background:none;overflow:hidden}
.src-ico img{width:16px;height:16px;border-radius:2px}
.src-domain{font-weight:500;color:var(--text-default)}
.src-title{overflow:hidden;color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap}
.src-more{display:flex;align-items:center;min-height:28px;padding-inline-start:30px;font-size:var(--text-meta);color:var(--text-muted)}
/* what it noticed, in the voice the site keeps for what speaks */
.step-gist{padding:0 0 18px 32px}
.step-gist{display:none}
.note{max-width:34em;font-family:var(--serif);font-size:var(--text-lead);line-height:1.4445;color:var(--text-default);text-wrap:pretty}

/* Reading the Seven Cs: each on a small scale drawn like the report's, with the in-tune bubble, the
   notches and a needle. While Septima reads one, its needle waits at zero, pulsing in the lavender of
   whatever is being read (--off is its distance from there); then it eases to the reading and takes its
   colour (flow.js, tune). */
.tune{display:grid;grid-template-columns:104px minmax(0,1fr) 152px;gap:20px;align-items:center;min-height:44px}
.tune-name{font-size:var(--text-body-sm);line-height:1.4667;font-weight:500;color:var(--text-default)}
.tune-scale{display:block;width:100%;height:auto;overflow:visible}
.tune-bubble{fill:var(--tone-success-bg);fill-opacity:.35}
.tune-tick{stroke:var(--border-control);stroke-width:1}
.tune-tick.is-long{stroke:var(--border-hover)}
.tune-needle{stroke:var(--ink,var(--text-secondary));stroke-width:3;transition:transform .9s var(--ease-expo),stroke .4s var(--ease-out)}
.tune-read{display:inline-flex;align-items:baseline;gap:10px;font-size:var(--text-meta);line-height:1.3847;font-weight:500;color:var(--ink,var(--text-secondary));white-space:nowrap;transition:opacity .4s var(--ease-out)}
.tune-read .mono{min-width:2.4em;font-size:var(--text-body);text-align:end}
.tune.is-reading .tune-needle{stroke:var(--lavender);transform:translateX(var(--off,0px));animation:pulse 1s ease-in-out infinite}
.tune.is-reading .tune-read{opacity:0}

/* The report: TunerReport (src/components/TunerReport.astro), as on the example reports, filled from the
   agent's summary (flow.js). It arrives at rest and settles: each trail grows out from zero (240 of the
   scale's 480; 40 for Coherence), then the needles show. */
.report{scroll-margin-top:calc(var(--header) + 16px)}
.report .tr-trail{transform-box:view-box;transform-origin:240px 0;transition:transform .9s var(--ease-expo)}
.report .tr-trail.is-coh{transform-origin:40px 0}
.report .tr-needle{transition:opacity .4s var(--ease-out) .3s}
.report.is-pending .tr-trail{transform:scaleX(0)}
.report.is-pending .tr-needle{opacity:0}
.report-more{max-width:40em;margin-top:14px;font-size:var(--text-body-sm);line-height:1.5334;color:var(--text-secondary);text-wrap:pretty}

/* the sources under an answer in the conversation */
.cites{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:var(--text-meta);line-height:1.3847;color:var(--text-secondary)}
.cites li{display:inline-flex;align-items:center;gap:6px}

/* Share this report with colleagues at the organization, and the report's comments, on the same card */
.share,.comments{display:grid;gap:12px;margin-top:24px;padding:24px;border:1px solid var(--border-card);border-radius:var(--r-lg);background:var(--surface-card)}
.share-title,.comments-title{font-family:var(--serif);font-size:var(--text-4xl);line-height:1.2143;letter-spacing:-.01em}
.share-sub,.comments-sub{max-width:40em;color:var(--text-secondary);text-wrap:pretty}
.share-form,.comments-form{display:grid;gap:8px;max-width:36em}
.share-form .field-label:not(:first-child){margin-top:8px}
.share-note,.comments-input{resize:vertical;height:76px;min-height:48px;font:inherit}
.field-opt{font-weight:400;color:var(--text-secondary)}
.share-actions,.comments-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:8px}
.share-status,.comments-status{font-size:var(--text-ui);color:var(--text-secondary)}

/* The team dashboard (/admin, admin.js). On a phone the sidebar is a top bar and rows stack, labelled by column. */
.dash{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100dvh}
.dash-side{position:sticky;top:0;display:flex;flex-direction:column;gap:24px;height:100dvh;overflow-y:auto;padding:24px 12px 16px;border-inline-end:1px solid var(--border-card);background:var(--surface-subtle)}
.dash-logo{align-self:flex-start;padding-inline:10px}
.dash-nav{display:grid;gap:2px}
.dash-link{display:flex;align-items:center;gap:10px;min-height:36px;padding:0 10px;border-radius:var(--r-sm);font-size:var(--text-ui);line-height:1.4286;font-weight:500;color:var(--text-secondary);text-decoration:none;white-space:nowrap}
.dash-link .icon{flex:none;width:16px;height:16px}
.dash-link[aria-current]{background:var(--surface-card);color:var(--accent-ink);box-shadow:inset 0 0 0 1px var(--border-card)}
@media (hover:hover){.dash-link:not([aria-current]):hover{background:var(--surface-nav-active);color:var(--text-default)}}
.dash-count{min-width:20px;margin-inline-start:auto;padding:0 6px;border-radius:var(--r-sm);background:var(--accent-fill);color:var(--accent-on);font-size:var(--text-caption);line-height:20px;text-align:center;font-variant-numeric:tabular-nums}
.dash-me{display:grid;gap:8px;margin-top:auto;padding:16px 10px 0;border-top:1px solid var(--border-card)}
.dash-me-who{min-width:0;font-size:var(--text-meta);line-height:1.3847;color:var(--text-secondary)}
.dash-me-who strong{display:block;margin-top:2px;font-size:var(--text-ui);line-height:1.4286;font-weight:500;color:var(--text-default);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-out{justify-self:start;font-size:var(--text-ui);line-height:1.4286}
.dash-main{min-width:0;padding:40px clamp(16px,4vw,48px) 80px}
.dash-stale{margin-bottom:16px}
.dash-view{display:grid;gap:16px;max-width:1120px}
.dash-head{display:grid;gap:6px}
.dash-title{font-family:var(--serif);font-size:var(--text-4xl);line-height:1.2143;letter-spacing:-.01em}
.dash-title:focus{outline:none}
.dash-sub{max-width:46em;color:var(--text-secondary);text-wrap:pretty}
.dash-subtitle{margin-top:16px;font-size:var(--text-lead);line-height:1.4;font-weight:500}
.dash-said{font-size:var(--text-ui);color:var(--text-secondary)}
.dash-said:empty{display:none}
.dash-said:focus{outline:none}
.dash-card{overflow-x:auto;border:1px solid var(--border-card);border-radius:var(--r-lg);background:var(--surface-card)}
.dash-form,.dash-form > form{display:grid;gap:8px}
.dash-form{padding:20px 24px}
.dash-fields{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.dash-field{display:grid;gap:8px;flex:0 1 8em}
.dash-field.is-wide{flex:1 1 16em}
.dash-check{display:flex;align-items:center;gap:8px;margin-top:4px;font-size:var(--text-ui);line-height:1.4286;color:var(--text-secondary)}
.dash-check input{flex:none;width:16px;height:16px;margin:0;accent-color:var(--accent-fill)}
.dash-made{display:grid;gap:8px;margin-top:8px;padding:16px;border:1px solid var(--accent-edge);border-radius:var(--r-lg);background:var(--accent-wash)}
.dash-table{width:100%;border-collapse:collapse;font-size:var(--text-ui);line-height:1.4286}
.dash-table:has(> tbody:empty){display:none}
.dash-table th{padding:10px 16px;border-bottom:1px solid var(--border-card);font-size:var(--text-meta);line-height:1.3847;font-weight:500;color:var(--text-secondary);text-align:start;white-space:nowrap}
/* a cell keeps to one line, so emails and dates don't break; names and notes (is-wrap) take what is left */
.dash-table td{padding:12px 16px;border-bottom:1px solid var(--border-card);vertical-align:top;white-space:nowrap}
.dash-table .is-wrap{white-space:normal;overflow-wrap:break-word}
.dash-table td.is-wrap{min-width:12em}
.dash-table tr:last-child td{border-bottom:0}
.dash-table .is-num{text-align:end;font-variant-numeric:tabular-nums}
.dash-table .badge{vertical-align:middle}
.dash-table .badge:not(:first-child){margin-inline-start:6px}
.dash-strong{font-weight:500;color:var(--text-default)}
.dash-note{display:block;font-size:var(--text-meta);line-height:1.3847;color:var(--text-secondary)}
.dash-actions{display:flex;justify-content:flex-end;gap:8px}
.dash-actions .btn{flex:none}
.dash-empty{padding:32px 16px;color:var(--text-secondary);text-align:center}
@media (max-width:860px){
  .dash{grid-template-columns:minmax(0,1fr)}
  .dash-side{position:static;flex-flow:row wrap;align-items:center;gap:12px;height:auto;padding:12px 16px;border-inline-end:0;border-bottom:1px solid var(--border-card)}
  .dash-logo{padding:0}
  .dash-nav{display:flex;flex:1 1 100%;order:1;overflow-x:auto}
  .dash-me{margin:0 0 0 auto;padding:0;border:0}
  .dash-me-who{display:none}
  .dash-main{padding:24px 16px 64px}
}
@media (max-width:720px){
  .dash-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .dash-table :is(tbody,tr,td){display:block}
  .dash-table tr{padding:12px 16px;border-bottom:1px solid var(--border-card)}
  .dash-table tr:last-child{border-bottom:0}
  .dash-table td{position:relative;padding:4px 0;padding-inline-start:7.5em;border:0;white-space:normal;overflow-wrap:anywhere}
  .dash-table td::before{content:attr(data-label);position:absolute;inset-inline-start:0;width:7em;font-size:var(--text-meta);line-height:1.5385;color:var(--text-secondary)}
  .dash-table td.is-num{text-align:start}
  .dash-table td.is-actions{padding:8px 0 0}
  .dash-table td.is-actions::before{content:none}
  .dash-actions{flex-wrap:wrap;justify-content:flex-start}
}
@media (max-width:480px){.dash-link{padding:0 8px}.dash-link .icon{display:none}}

/* The report's comments (flow.js, openComments): one to a hairline, who wrote it and when above what they wrote.
   Delete stays at the end of the first line, at its full height to tap, without making that line taller. The composer sits over the
   foot of the window, so a field or button reached from the keyboard stops above it. */
.comments-list{display:grid;border-top:1px solid var(--border-card)}
.comments-list:empty{display:none}
.comment{display:grid;gap:4px;padding:14px 0;border-bottom:1px solid var(--border-card)}
.comment-head{display:flex;align-items:flex-start;gap:12px}
.comment-who{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;min-width:0}
.comment-author{min-width:0;font-size:var(--text-ui);line-height:1.4286;font-weight:500;color:var(--text-default);overflow-wrap:anywhere}
.comment-who time{font-size:var(--text-meta);line-height:1.3847;color:var(--text-muted);font-variant-numeric:tabular-nums}
.comment-delete{flex:none;margin-block:calc((var(--btn-h) - 20px) / -2);margin-inline:auto calc(var(--btn-px) * -1)}
.comment-body{max-width:40em;font-size:var(--text-body);line-height:1.5625;color:var(--text-default);white-space:pre-line;overflow-wrap:anywhere}
.comment-gone{font-size:var(--text-ui);line-height:1.4286;color:var(--text-muted)}
.comments-empty{color:var(--text-secondary)}
.comments :is(.input,.btn){scroll-margin-bottom:calc(var(--composer,170px) + 24px)}

/* What internal data would add: the sources Septima can't read yet (enterprise deployments, in development) */
.connect{display:grid;gap:12px;margin-top:24px}
.connect-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.connect-title{font-family:var(--serif);font-size:var(--text-4xl);line-height:1.2143;letter-spacing:-.01em}
.sources{margin-top:12px}
.source{flex-wrap:wrap;align-items:center}
.source .tile{margin-top:0}
.source .row-text{flex:1 1 12em}
.source .row-sub{max-width:none}
.connect-note{display:flex;align-items:flex-start;gap:10px;margin-top:4px;font-size:var(--text-ui);line-height:1.4286;color:var(--text-secondary)}
.connect-note .icon{margin-top:2px}

/* What a Connect button opens: a hairline card over a dimmed page. The card fills the dialog, so a click on the
   dialog itself is a click outside the card (flow.js closes it). */
.soon{width:min(400px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--border-card);border-radius:var(--r-lg);background:var(--surface-card);color:var(--text-default)}
.soon::backdrop{background:rgba(31,22,56,.24)}
.soon-card{display:grid;gap:12px;padding:24px}
.soon-title{font-family:var(--serif);font-size:var(--text-3xl);line-height:1.3334;letter-spacing:-.01em}
.soon-text{font-size:var(--text-body);line-height:1.5625;color:var(--text-secondary);text-wrap:pretty}
.soon-actions{display:flex;justify-content:flex-end;margin-top:8px}

/* The conversation: questions sit right in a soft bubble, answers run on the page */
.chat{display:grid;gap:20px}
.chat:empty{display:none}
.turn{display:grid;align-content:start;gap:20px;scroll-margin-top:calc(var(--header) + 12px)}
.turn:last-child{min-height:calc(100dvh - var(--header) - var(--composer,170px) - 36px)}
.bubble{justify-self:end;max-width:min(32em,88%);margin-top:12px;padding:10px 16px;border-radius:var(--r-xl) var(--r-xl) var(--r-xs) var(--r-xl);background:var(--surface-subtle);font-size:var(--text-body);line-height:1.5;color:var(--text-default)}
.reply{display:grid;gap:12px;scroll-margin-bottom:calc(var(--composer,170px) + 24px)}
.thinking{display:inline-flex;align-items:center;gap:10px;font-size:var(--text-ui);line-height:1.4286;color:var(--text-secondary)}

/* The composer stays at the foot of the window, over the thread as it scrolls */
.composer{position:sticky;bottom:0;z-index:5;display:grid;gap:10px;margin-top:auto;padding:24px 0 12px;background:linear-gradient(rgba(255,255,255,0),#fff 24px)}
.prompts{display:flex;flex-wrap:wrap;gap:8px}
.composer-box{display:flex;align-items:flex-end;gap:8px;padding:8px 8px 8px 18px;border:1px solid var(--border-control);border-radius:var(--r-xl);background:var(--surface-card);transition:border-color var(--fast) var(--ease-out),box-shadow var(--fast) var(--ease-out)}
.composer-box:focus-within{border-color:var(--focus-ring);box-shadow:var(--shadow-halo)}
.composer textarea{flex:1;min-width:0;min-height:40px;max-height:168px;padding:8px 0;border:0;outline:0;background:none;resize:none;font-size:var(--text-body);line-height:1.5}
.composer textarea::placeholder{color:var(--text-muted);opacity:1}
.composer-send{display:grid;place-items:center;flex:none;width:40px;height:40px;border:0;border-radius:var(--r-md);background:var(--accent-fill);color:var(--accent-on);cursor:pointer;transition:background-color var(--fast) var(--ease-out)}
.composer-send .icon{width:18px;height:18px;stroke-width:2}
.composer-send:disabled{background:var(--surface-subtle);color:var(--tick);cursor:default}
@media (hover:hover){.composer-send:not(:disabled):hover{background:var(--accent-hover)}}
.composer-note{font-size:var(--text-caption);line-height:1.3334;color:var(--text-muted);text-align:center}

@media (max-width:1023px){
  /* the status line takes a row of its own under the bar, where any of its words fit and the longest
     wrap: what Septima is reading, "Report ready", or why a report won't open */
  .is-app .flowbar-in{flex-wrap:wrap;row-gap:2px;padding-block:8px}
  .is-app .flowbar-end{display:contents}
  .is-app .flowbar-crumb{margin-inline-end:auto}
  .is-app .scan-status{order:1;flex:1 0 100%;align-items:flex-start;white-space:normal}
  .is-app .scan-status .live{margin-top:5px}
  .verify{padding-top:64px}
}
@media (max-width:767px){
  .flowbar-in{gap:12px}
  /* room for the longest step's two lines, so the bar holds its height as the status changes */
  .is-app .scan-status{min-height:2lh}
  .is-app .wordmark,.flowbar-crumb .badge{display:none}
  .flowbar-crumb{padding-inline-start:12px}
  .flowbar-crumb strong{overflow:hidden;text-overflow:ellipsis}
  :is(.proto-menu,.account-menu) :is(a,button){min-height:44px}
  .verify{padding-top:48px}
  .mail-head{padding:20px 20px 16px}
  .mail-subject{font-size:var(--text-xl);line-height:1.4}
  .mail-body{padding:24px 20px 28px}
  .mail-addr{display:none}
  .thread{gap:20px;padding-top:24px}
  .msg{font-size:var(--text-body);line-height:1.5625}
  .activity-count{display:none}
  .step summary{padding-block:10px}
  .step-body{padding-inline-start:0}
  .src{grid-template-columns:20px minmax(0,1fr)}
  .src-title{grid-column:2;white-space:normal}
  .src{row-gap:0;padding-block:6px}
  .src-more{padding-inline-start:30px}
  /* phones: the scale on a line of its own under the name and the reading, as in the report */
  .tune{grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding-block:6px}
  .tune-scale{grid-column:1 / -1;grid-row:2}
  .prompts{flex-wrap:nowrap;margin-inline:calc(var(--gutter) * -1);padding-inline:var(--gutter);overflow-x:auto;scrollbar-width:none}
  .prompts li{flex:none}
  .composer{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .composer-send{width:44px;height:44px}
  .composer textarea{min-height:44px;padding-block:10px}
}

/* A live scan's duration and cost, in the prototype menu */
.proto-run{margin-top:8px;padding-top:8px;border-top:1px solid var(--border-card);font-size:var(--text-ui);line-height:1.4286;color:var(--text-secondary);text-wrap:pretty}

/* A live reading's progress (flow.js) */
.progress{display:grid;gap:8px;width:100%;padding:16px 18px;border:1px solid var(--border-card);border-radius:var(--r-lg);background:var(--surface-subtle)}
.progress-bar{height:6px;border-radius:999px;background:var(--border-card);overflow:hidden}
.progress-bar span{display:block;height:100%;width:0;border-radius:inherit;background:var(--accent-fill);transition:width 1.2s var(--ease-out)}
.progress-text{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;font-size:var(--text-ui);line-height:1.4286;color:var(--text-secondary);font-variant-numeric:tabular-nums}
.progress-text #progress-left{color:var(--text-default);font-weight:500}
.progress-notify{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:var(--text-ui);line-height:1.4286;color:var(--text-secondary)}
@media (prefers-reduced-motion:reduce){.progress-bar span{transition:none}}

/* Signing in with an emailed link (account.js) */
.code-form{display:grid;gap:8px;width:100%}
.code-row{display:flex;flex-wrap:wrap;gap:12px}
.code-row .input{flex:1 1 14em;min-height:48px}
.code-input{font-family:var(--mono);font-size:22px;letter-spacing:.3em;font-variant-numeric:tabular-nums}
.verify .title[tabindex="-1"]:focus{outline:none}
.readings-list{display:grid;width:100%;border-top:1px solid var(--border-card)}
.reading-row{display:grid;gap:2px;padding:14px 0;border-bottom:1px solid var(--border-card)}
.reading-name{font-weight:500;color:var(--text-default)}
a.reading-name{color:var(--accent-ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
a.reading-name:hover{text-decoration-thickness:2px}
.reading-meta{font-size:var(--text-ui);line-height:1.4286;color:var(--text-secondary);font-variant-numeric:tabular-nums}

/* Was the answer useful? (flow.js) */
.rate{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:var(--text-meta);color:var(--text-muted)}
.rate-btn{min-height:28px;padding:0 10px;border:1px solid var(--border-card);border-radius:var(--r-sm);background:var(--surface-card);font:inherit;color:var(--text-secondary);cursor:pointer}
.rate-btn[aria-pressed="true"]{border-color:var(--accent-edge);color:var(--accent-ink)}
.rate-btn:disabled{cursor:default}
@media (hover:hover){.rate-btn:not(:disabled):hover{border-color:var(--border-control);color:var(--text-default)}}

/* What a step finds, as cards (flow.js, addFinding). They stay in the thread once drawn. */
.finds{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;width:100%}
.finds:empty{display:none}
.find{display:grid;align-content:start;gap:4px;min-width:0;padding:12px 14px;border:1px solid var(--border-card);border-radius:var(--r-lg);background:var(--surface-card)}
.find.is-in{animation:find-in .5s var(--ease-out) both}
@keyframes find-in{from{opacity:0;transform:translateY(6px) scale(.98)}}
.find-label{font-size:var(--text-meta);line-height:1.3847;color:var(--text-secondary)}
.find-value{font-family:var(--serif);font-size:28px;line-height:1.15;letter-spacing:-.01em;color:var(--text-default);font-variant-numeric:tabular-nums}
.find-value small{font-family:var(--sans,inherit);font-size:var(--text-ui);color:var(--text-secondary);letter-spacing:0}
.find-meta{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:var(--text-meta);line-height:1.3847;color:var(--text-muted);font-variant-numeric:tabular-nums}
.find-src{display:inline-flex;align-items:center;gap:6px;min-width:0;color:var(--text-muted);text-decoration:none}
.find-src:hover{color:var(--accent-ink)}
.find-src .src-ico{width:16px;height:16px;font-size:10px}
.find-src .src-ico img{width:14px;height:14px}
.find-src span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.find-meter{height:4px;border-radius:999px;background:var(--border-card);overflow:hidden}
.find-meter i{display:block;height:100%;background:var(--accent-fill)}
/* a series: one bar per year, the last one marked */
.find-chart{display:flex;align-items:flex-end;gap:3px;height:56px;margin-top:6px}
.find-chart i{flex:1;min-width:3px;max-width:28px;height:calc(var(--v) * 100%);min-height:2px;border-radius:2px 2px 0 0;background:var(--accent-tint)}
.find-chart i:last-child{background:var(--accent-fill)}
.find-axis{display:flex;justify-content:space-between;font-size:var(--text-caption,11px);color:var(--text-muted);font-variant-numeric:tabular-nums}
/* the company card */
.find-profile{gap:8px;padding:16px 18px}
.find-profile .find-name{display:flex;align-items:center;gap:10px;font-family:var(--serif);font-size:24px;line-height:1.2}
.find-profile .find-name .src-ico{width:24px;height:24px}
.find-profile .find-name .src-ico img{width:20px;height:20px}
.find-profile p{font-size:var(--text-body-sm);line-height:1.5334;color:var(--text-secondary);text-wrap:pretty}
.find-chips{display:flex;flex-wrap:wrap;gap:6px}
.find-chips span{padding:2px 8px;border:1px solid var(--border-card);border-radius:var(--r-sm);background:var(--surface-subtle);font-size:var(--text-meta);line-height:1.6;color:var(--text-default)}
.find-chips b{font-weight:400;color:var(--text-muted)}
/* a dated event joins the step's one timeline */
.find-timeline ol{display:grid;gap:6px;margin-top:4px}
.find-timeline li{display:grid;grid-template-columns:6.5em 1fr;gap:10px;font-size:var(--text-ui);line-height:1.4286}
.find-timeline time{color:var(--text-muted);font-variant-numeric:tabular-nums}
/* a headline, and a line the company says about itself */
.find-clip .find-headline{font-weight:500;line-height:1.4;color:var(--text-default);text-wrap:pretty}
.find-clip blockquote,.find-quote blockquote{margin:2px 0 0;padding-left:10px;border-left:2px solid var(--accent-edge);font-family:var(--serif);font-size:var(--text-body-sm);line-height:1.5;color:var(--text-default);text-wrap:pretty}
.find-quote blockquote{border-left:0;padding-left:0;font-size:var(--text-body)}
.find-fact .find-value{font-family:inherit;font-size:var(--text-body);line-height:1.4;font-weight:500}

/* The pages a step read, behind its count */
.step-srcs{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 10px;border:1px solid var(--border-card);border-radius:999px;background:var(--surface-card);font:inherit;font-size:var(--text-meta);color:var(--text-secondary);cursor:pointer}
.step-srcs .icon{width:14px;height:14px}
@media (hover:hover){.step-srcs:hover{border-color:var(--border-control);color:var(--text-default)}}
.srcs-pop{position:fixed;inset:auto;margin:0;width:min(420px,calc(100vw - 32px));max-height:min(60vh,480px);overflow:auto;padding:12px 14px;border:1px solid var(--border-card);border-radius:var(--r-lg);background:var(--surface-card);box-shadow:0 12px 32px rgba(20,16,30,.14),0 2px 6px rgba(20,16,30,.06)}
.srcs-pop-title{margin-bottom:6px;font-size:var(--text-meta);color:var(--text-secondary)}
.srcs-pop .src{grid-template-columns:20px minmax(0,1fr);align-items:start;padding:6px 0}
.srcs-pop .src-ico{margin-top:1px}
.src-link{display:grid;min-width:0;color:inherit;text-decoration:none}
.src-link:hover .src-domain{color:var(--accent-ink)}
@media (prefers-reduced-motion:reduce){.find.is-in{animation:none}}

/* a list of names: owners, products */
.find-chiplist .find-chips{margin-top:4px}
/* a page the agent read, as the page presents itself */
.find-link{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;color:inherit;text-decoration:none}
.find-link.has-thumb{grid-template-columns:104px minmax(0,1fr)}
.find-thumb{width:104px;height:72px;object-fit:cover;border-radius:var(--r-sm);background:var(--surface-subtle)}
.find-link-text{display:grid;align-content:start;gap:3px;min-width:0}
.find-link .find-headline{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:500;line-height:1.4;color:var(--text-default)}
.find-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--text-meta);line-height:1.45;color:var(--text-secondary)}
@media (hover:hover){.find-link:hover{border-color:var(--border-control)}.find-link:hover .find-headline{color:var(--accent-ink)}}
a.find-headline{color:inherit;text-decoration:none}
a.find-headline:hover{color:var(--accent-ink)}

/* The structured cards (flow.js): share price, logos, funding rounds, ownership, offices */
.find-line{width:100%;height:64px;margin-top:6px;overflow:visible}
.find-line polyline{fill:none;stroke:var(--accent-fill);stroke-width:1.75;stroke-linejoin:round;stroke-linecap:round}
.find-area{fill:var(--accent-tint);opacity:.6}
.find-logos{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.find-logo{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:2px 10px 2px 6px;border:1px solid var(--border-card);border-radius:var(--r-sm);background:var(--surface-subtle);font-size:var(--text-ui);line-height:1.3;color:var(--text-default)}
.find-logo .src-ico{width:18px;height:18px;font-size:10px}
.find-logo .src-ico img{width:16px;height:16px}
.find-logo small{color:var(--text-muted);font-size:var(--text-meta)}
.find-rounds{display:grid;gap:8px;margin-top:8px}
.find-rounds li{display:grid;grid-template-columns:5.5em minmax(6em,10em) minmax(0,1fr) 5em;align-items:center;column-gap:12px;row-gap:2px;font-size:var(--text-ui);line-height:1.4}
.find-round-when{color:var(--text-muted);font-variant-numeric:tabular-nums}
.find-round-name{font-weight:500}
.find-round-bar{height:8px;border-radius:999px;background:var(--surface-subtle);overflow:hidden}
.find-round-bar i{display:block;height:100%;border-radius:inherit;background:var(--accent-fill)}
.find-round-amount{text-align:end;font-variant-numeric:tabular-nums}
.find-round-who{grid-column:2 / -1;font-size:var(--text-meta);color:var(--text-muted)}
@media (max-width:560px){.find-rounds li{grid-template-columns:5em minmax(0,1fr) 4.5em}.find-round-bar{display:none}.find-round-who{grid-column:2 / -1}}
.find-stack{display:flex;height:10px;margin-top:8px;border-radius:999px;overflow:hidden;background:var(--surface-subtle)}
.find-stack i{display:block;height:100%}
.find-stack i + i{border-left:2px solid var(--surface-card)}
.tone-0{background:var(--accent-fill)}.tone-1{background:#7d6a96}.tone-2{background:#a998bd}.tone-3{background:#cfc4dc}.tone-4{background:#e4dcec}.is-rest{background:var(--border-control)}
.find-legend{display:grid;gap:4px;margin-top:8px}
.find-legend li{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:8px;font-size:var(--text-ui);line-height:1.4}
.find-key{width:10px;height:10px;border-radius:3px}
.find-pct{color:var(--text-secondary);font-variant-numeric:tabular-nums}
.find-cities{display:grid;grid-template-columns:repeat(auto-fill,minmax(9em,1fr));gap:4px 12px;margin-top:6px}
.find-cities li{display:flex;align-items:center;gap:6px;min-width:0;font-size:var(--text-ui);line-height:1.5}
.find-cities li span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.find-cities small{padding:0 5px;border-radius:4px;background:var(--accent-tint);color:var(--accent-ink);font-size:10px;line-height:1.6;font-weight:600}
.find-cc{flex:none;min-width:2.1em;padding:0 4px;border:1px solid var(--border-card);border-radius:4px;font-family:var(--mono);font-size:10px;line-height:1.6;text-align:center;color:var(--text-secondary)}
.finds-articles{margin-top:2px}

/* who leads it (flow.js, leaders) */
.find-people{display:grid;grid-template-columns:repeat(auto-fill,minmax(13em,1fr));gap:10px 16px;margin-top:6px}
.find-people li{display:flex;align-items:center;gap:10px;min-width:0}
.find-face{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;overflow:hidden;background:var(--accent-tint);color:var(--accent-ink);font-size:12px;font-weight:600;letter-spacing:.02em}
.find-face img{width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.find-who{display:grid;min-width:0}
.find-person{overflow:hidden;font-weight:500;line-height:1.35;text-overflow:ellipsis;white-space:nowrap;color:var(--text-default)}
.find-role{font-size:var(--text-meta);line-height:1.35;color:var(--text-secondary);text-wrap:pretty}

/* Cards fill their rows: each kind has a natural width (--w); the cards in a row grow to share it, and a row is as
   tall as its tallest card, so no row is left with a hole. A card never gets narrower than its natural width. */
.find{flex:1 1 var(--w,200px);min-width:min(100%,var(--w,200px))}
.find-figure,.find-fact{--w:170px}
.find-series,.find-shares,.find-places,.find-chiplist,.find-list,.find-clip{--w:300px}
.find-stock,.find-leaders,.find-quote,.find-link{--w:340px}
.find-profile,.find-funding,.find-timeline{--w:100%;flex-basis:100%}
