/* Account, sign-up and sign-in pages.
   Direction (owner, 2026-10-04): the same look as the composer (style.css). Warm paper, ink, one lime action
   colour; a heavy display face; rows on the open page instead of cards; outlined pills; characters as free
   cut-outs that stand on an edge. Motion on arrival and on every state change. One light theme, no dark
   version; paper, ink and hairline are the marketing site's.
   Every colour, font, radius, spacing and motion value is a token below; change style.css together with it. */

:root {
  color-scheme: light;
  /* colour */
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #262626;
  --muted: #5e5e5e;
  --hair: #e5e5e5;
  --accent: #c8f169;
  --accent-ink: #262626;
  --accent-text: #262626;
  --ok: #285c36;
  --warn: #7d4307;
  --bad: #a3221b;
  --wash: rgb(0 0 0 / 6%);
  --tint-warn: rgb(214 138 20 / 16%);
  --tint-bad: rgb(179 38 30 / 10%);
  --tint-ok: rgb(47 107 63 / 12%);
  /* type */
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.5rem;
  --text-xl: clamp(2.5rem, 1.6rem + 3.2vw, 3.75rem);
  /* shape and space */
  --radius: 0.875rem;
  --radius-card: 1.5rem;
  --radius-pill: 62rem;
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s6: 3.5rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --control: 2.75rem;
  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --fast: 0.18s;
  --arrive: 0.8s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--text-base)/1.5 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1 { font: 700 var(--text-xl)/1.02 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
h2 { font: 700 var(--text-lg)/1.15 var(--font-display); letter-spacing: -0.025em; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); }
h3 { font: 600 var(--text-base)/1.3 var(--font-body); margin: var(--s3) 0 0.75rem; }
h4 { font: 600 var(--text-base)/1.3 var(--font-body); }
a { color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-decoration-thickness: 0.09em; text-underline-offset: 0.2em; transition: text-decoration-color var(--fast); }
.wordmark, .button, nav a, .row-link, .back, .skip { text-decoration: none; }
a:hover { text-decoration-color: currentColor; }
button, input { font: inherit; letter-spacing: inherit; color: inherit; }

:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s2); top: -4rem; background: var(--ink); color: var(--paper); padding: var(--s1) var(--s2); border-radius: var(--radius); z-index: 3; }
.skip:focus { top: var(--s1); }

.hint { font-size: var(--text-sm); color: var(--muted); }
.tag { font: 500 0.6875rem/1 var(--font-body); letter-spacing: 0; color: var(--muted); background: var(--wash); border-radius: var(--radius-pill); padding: 0.3125rem 0.5625rem; white-space: nowrap; }

/* controls: pills that press */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s1); min-height: var(--control); padding: 0 1.25rem; border: 1.5px solid var(--ink); border-radius: var(--radius-pill); background: transparent; color: var(--ink); font-weight: 600; font-size: var(--text-base); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 0.35s var(--spring), background-color var(--fast), color var(--fast), opacity var(--fast); }
button:hover, .button:hover { text-decoration: none; background: var(--ink); color: var(--paper); }
button:active, .button:active { transform: scale(0.95); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover { background: color-mix(in srgb, var(--accent), #fff 30%); color: var(--accent-ink); }
/* lime is for the one main action on screen; a repeated action in a list stays outlined */
.networks button.primary, .rows button.primary { background: transparent; border-color: var(--ink); color: var(--ink); }
.networks button.primary:hover, .rows button.primary:hover { background: var(--ink); color: var(--paper); }
/* A post the assistant kept for this network until it is connected. */
.networks .waiting { margin-top: 0.25rem; font-size: var(--text-sm); color: var(--ink); }
/* The network an assistant's connect link named, or one with a post waiting: its button is the one filled in. */
.networks button.wanted { background: var(--ink); border-color: var(--ink); color: var(--paper); }
button.quiet, .button.quiet { border-color: transparent; background: transparent; color: var(--ink); font-size: var(--text-sm); padding: 0 0.75rem; }
button.quiet:hover, .button.quiet:hover { background: var(--wash); color: var(--ink); }
button:disabled { opacity: 0.6; cursor: progress; }
button[aria-busy="true"]::after { content: ""; width: 0.875rem; height: 0.875rem; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
input { width: 100%; min-height: var(--control); padding: 0 0.875rem; border: 1.5px solid var(--hair); border-radius: var(--radius); background: var(--surface); transition: border-color var(--fast); }
input:hover { border-color: var(--muted); }
input:focus-visible { outline: none; border-color: var(--ink); }
/* A list is drawn as a field is, in every browser, with its own small arrow: two strokes, no picture.
   Left to itself Safari draws its own small control, whatever height and corners the page asks for. */
select { -webkit-appearance: none; appearance: none; min-height: var(--control); max-width: 100%; padding: 0 2.5rem 0 0.875rem; border: 1.5px solid var(--hair); border-radius: var(--radius); background-color: var(--surface); background-image: linear-gradient(45deg, transparent calc(50% - 1.1px), var(--ink) calc(50% - 0.6px), var(--ink) calc(50% + 0.6px), transparent calc(50% + 1.1px)), linear-gradient(135deg, transparent calc(50% - 1.1px), var(--ink) calc(50% - 0.6px), var(--ink) calc(50% + 0.6px), transparent calc(50% + 1.1px)); background-repeat: no-repeat; background-size: 0.375rem 0.375rem; background-position: right 1.375rem center, right 1rem center; color: var(--ink); font: inherit; text-overflow: ellipsis; }
select:focus-visible { outline: none; border-color: var(--ink); }
label { display: block; font-weight: 600; font-size: var(--text-sm); margin-bottom: 0.375rem; }
@media (pointer: coarse) { :root { --control: 2.75rem; } }

/* frame: a plain bar with a line under it */
.bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s2); padding: 0.5rem var(--gutter); background: var(--paper); border-bottom: 1px solid var(--hair); }
.wordmark { display: inline-flex; align-items: baseline; gap: var(--s1); min-height: var(--control); align-content: center; flex-wrap: wrap; color: var(--ink); font: 700 1.25rem/1 var(--font-display); letter-spacing: -0.02em; }
.wordmark:hover { text-decoration: none; }
.wordmark-tag { font: 400 var(--text-sm)/1 var(--font-body); color: var(--muted); letter-spacing: 0; }
.bar-actions { display: flex; align-items: center; gap: 0.125rem; }
main { max-width: 72rem; margin: 0 auto; padding: var(--s6) var(--gutter); }
.foot { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter) var(--s4); font-size: var(--text-sm); color: var(--muted); }
@media (max-width: 30rem) { main { padding-top: var(--s4); } .bar-actions { margin-left: -0.75rem; } }
/* The bar's links wrap on a narrow screen instead of pushing the page wider than the phone. */
@media (max-width: 47.99rem) { .bar-actions { flex-wrap: wrap; } }

/* Brought into sight, the bar lands under the page's header and not behind it. */
.notice { border-radius: var(--radius); padding: 0.75rem var(--s2); margin-bottom: var(--s3); font-weight: 600; animation: drop var(--arrive) var(--ease) both; scroll-margin-top: 5.5rem; }
.notice.ok { background: var(--tint-ok); color: var(--ok); }
.notice.bad { background: var(--tint-bad); color: var(--bad); }
#notices:focus { outline: none; }

/* locked */
.gate { position: relative; display: grid; align-content: center; min-height: max(30rem, calc(100svh - 12rem)); padding: var(--s4) 48% var(--s6) 0; border-bottom: 1px solid var(--hair); animation: rise var(--arrive) var(--ease) both; }
.gate .lede { color: var(--muted); font-size: 1.1875rem; max-width: 30rem; margin: var(--s2) 0 var(--s3); }
.gate form { max-width: 26rem; }
.gate form { text-align: left; }
.gate .hint { margin-top: var(--s1); }
.gate button { margin-top: var(--s3); }
/* Brought into sight (a refusal on a long page), it clears the bar above and leaves room below for the
   button that was pressed and, on a phone, the rail. */
.field-error { color: var(--bad); font-size: var(--text-sm); font-weight: 500; margin-top: var(--s1); animation: drop 0.4s var(--ease) both; scroll-margin: 5.5rem 0 8rem; }
.field-error:empty { display: none; }
/* A refusal said in a row (saidAt in account.js) takes a line of its own under what the row holds. */
.said-here { flex: 1 0 100%; margin: 0; }

/* page */
.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s4); animation: rise var(--arrive) var(--ease) both; }
#account-title:focus { outline: none; }
.plan-chip { font-size: var(--text-sm); font-weight: 600; color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius-pill); padding: 0.375rem 0.875rem; white-space: nowrap; }
.plan-chip:empty { display: none; }
.layout { display: grid; gap: var(--s6) var(--s4); align-items: start; }
.column { display: grid; gap: var(--s6); min-width: 0; }
.side { gap: var(--s4); }
@media (min-width: 60rem) { .layout { grid-template-columns: minmax(0, 1fr) 19rem; } }

/* getting started: shown until the three setup steps are done */
.start { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); background: var(--surface); border: 1.5px solid var(--ink); border-radius: 1.75rem; padding: var(--s3) var(--s3) var(--s3) 12.5rem; margin: var(--s6) 0; animation: rise var(--arrive) var(--ease) both; scroll-margin-top: 4.5rem; clip-path: inset(-6rem -1px -1px -1px round 0 0 1.75rem 1.75rem); }
.start-figure { position: absolute; left: 1.25rem; bottom: 0; width: 10rem; animation: arrive 1s 0.15s var(--ease) both; }
.start-body { flex: 1 1 20rem; min-width: 0; display: grid; gap: 1.125rem; }
.start-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem var(--s2); }
.start-head .hint { margin-top: 0.125rem; }
.start-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--s2) 1.25rem; counter-reset: step; }
.start-steps li { counter-increment: step; display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.75rem; align-items: start; }
.start-steps li::before { content: counter(step); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--wash); font-size: var(--text-sm); font-weight: 600; }
.start-steps li.done::before { display: none; }
.start-steps svg { width: 1.75rem; height: 1.75rem; padding: 0.375rem; border-radius: 50%; background: var(--ok); fill: none; stroke: var(--surface); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: pop 0.6s var(--ease) 0.4s both; }
.start-steps li.done .row-title { color: var(--muted); }
#connections, #assistant { scroll-margin-top: 4.5rem; }
@media (max-width: 40rem) { .start { padding: 1.125rem; margin-top: var(--s4); } .start-figure { display: none; } .start-head button { width: 100%; } }

/* a section is a heading over plain rows on the page, with one line between them */
.plate { min-width: 0; animation: rise var(--arrive) var(--ease) both; }
.column > .plate:nth-child(2) { animation-delay: 0.07s; }
.column > .plate:nth-child(3) { animation-delay: 0.14s; }
.side > .plate { animation-delay: 0.1s; }
.side > .plate:nth-child(2) { animation-delay: 0.17s; }
.side > .plate:nth-child(3) { animation-delay: 0.24s; }
.plate-head { margin-bottom: var(--s2); }
.plate-head .hint { margin-top: 0.25rem; font-size: var(--text-base); }
.plate-body, .steps { border-top: 1px solid var(--hair); padding: var(--s2) 0 0; display: grid; gap: var(--s2); }
.side .plate-body { padding: var(--s2) 0 0; }
.side h2 { font-size: 1.25rem; }


/* rows */
.row-text { min-width: 0; flex: 1 1 8rem; }
.row-title { font-weight: 600; overflow-wrap: anywhere; }
.row-note { font-size: var(--text-sm); color: var(--muted); margin-top: 0.25rem; overflow-wrap: anywhere; }
.networks > li, .rows > li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem; padding: 0.875rem 0; border-top: 1px solid color-mix(in srgb, var(--hair) 60%, transparent); animation: rise 0.6s var(--ease) both; }
.networks > li:first-child, .rows > li:first-child { border-top: 0; padding-top: 0; }
.networks > li:last-child, .rows > li:last-child { padding-bottom: 0; }
.networks > li:nth-child(2), .rows > li:nth-child(2) { animation-delay: 0.04s; }
.networks > li:nth-child(3), .rows > li:nth-child(3) { animation-delay: 0.08s; }
.networks > li:nth-child(4), .rows > li:nth-child(4) { animation-delay: 0.12s; }
.networks > li:nth-child(n+5), .rows > li:nth-child(n+5) { animation-delay: 0.16s; }
.row-side { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.row-side a { font-size: var(--text-sm); font-weight: 500; display: inline-flex; align-items: center; min-height: var(--control); }

/* logos sit on app-icon tiles in the network's own colour */
.badge { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #8a8677; color: #fff; font: 700 0.8125rem/1 var(--font-body); }
.badge:empty { background: var(--wash); }
.badge svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.badge[data-provider="x"], .badge[data-provider="threads"], .badge[data-provider="tiktok"] { background: #000; }
.badge[data-provider="linkedin"] { background: #0a66c2; }
.badge[data-provider="bluesky"] { background: #0a7aff; }
.badge[data-provider="facebook"] { background: #0866ff; }
.badge[data-provider="instagram"] { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.badge[data-provider="pinterest"] { background: #bd081c; }
.badge[data-provider="youtube"] { background: #f00; }
.badge[data-provider="gbp"], .badge[data-provider="google"] { background: #4285f4; }



.connected, .network-problem { flex: 0 0 calc(100% - 3.375rem); margin-left: 3.375rem; }
.connected > li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) 0.75rem; padding: 0.625rem 0.875rem; background: var(--wash); border-radius: var(--radius); animation: rise 0.5s var(--ease) both; }
.connected > li + li { margin-top: 0.375rem; }
.account-name { font-weight: 500; overflow-wrap: anywhere; }
.row-note.wide { flex: 0 0 100%; margin-top: 0; }
.network-problem { background: var(--tint-warn); border-radius: var(--radius); padding: 0.75rem 0.875rem; animation: drop 0.5s var(--ease) both; }
.network-problem .hint { overflow-wrap: anywhere; color: var(--ink); }
@media (max-width: 30rem) { .connected, .network-problem { flex-basis: 100%; margin-left: 0; } .rows .row-side { flex-basis: 100%; margin-left: 3.375rem; } }

/* status: a dot plus words, never colour alone */
.pill { display: inline-flex; align-items: center; gap: 0.4375rem; font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); }
.pill.warn { color: var(--warn); }
.pill.bad { color: var(--bad); }
.pill.pending { color: var(--ink); }
.pill.pending::before { animation: pulse 1.2s ease-in-out infinite alternate; }
.pill.muted { color: var(--muted); }
.pill.muted::before { background: transparent; border: 1.5px solid currentColor; }

/* assistant */
.copy-row { display: flex; gap: var(--s1); }
.brand-form { display: grid; gap: var(--s2); max-width: 30rem; }
.brand-form button { justify-self: start; }
.brand-extra { display: grid; gap: var(--s2); animation: rise var(--arrive) var(--ease) both; }
.brand-extra[hidden], .brand-form > [hidden] { display: none; }
.brand-form input[type="color"] { width: 4.5rem; padding: 0.25rem; cursor: pointer; }
.sample-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.sample-row li { width: min(13rem, 44%); animation: rise var(--arrive) var(--ease) both; }
.sample-row li:nth-child(2) { animation-delay: 0.08s; }
.sample-row img { display: block; width: 100%; height: auto; border-radius: 0.75rem; border: 1px solid var(--hair); background: var(--surface); transition: transform 0.45s var(--spring); }
.sample-row li:nth-child(odd) img { transform: rotate(-1.5deg); }
.sample-row li:nth-child(even) img { transform: rotate(1.5deg); }
.sample-row li:hover img { transform: rotate(0) scale(1.03); }
.brand-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; font-size: var(--text-sm); color: var(--muted); }
.brand-notes .found { color: var(--ink); }
.brand-notes .found::before { content: "✓ "; }
.brand-name { font: 700 var(--text-xl)/1.02 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; }
.swatches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.swatches li { display: flex; align-items: center; gap: var(--s1); }
.swatch { background: var(--swatch); width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--hair); transition: transform 0.35s var(--spring); }
.swatches li:hover .swatch { transform: scale(1.12); }
.brand-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.375rem var(--s3); margin: 0; }
.brand-facts dt { font-size: var(--text-sm); color: var(--muted); }
.brand-facts dd { margin: 0; }
.copy-row input { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: 0; min-width: 0; background: var(--surface); }
.copy-row button { min-height: 2.75rem; }
.standing { display: grid; gap: 0.25rem; }
/* segmented control */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 0.125rem; padding: 0.1875rem; background: var(--wash); border-radius: var(--radius-pill); margin-bottom: 0.75rem; max-width: 100%; }
.tab { min-height: 2.125rem; padding: 0 0.875rem; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); font-size: var(--text-sm); transition: background-color 0.25s var(--ease), transform var(--fast) var(--ease); }
.tab:hover { background: color-mix(in srgb, var(--surface) 50%, transparent); color: var(--ink); }
.tab[aria-selected="true"], .tab[aria-selected="true"]:hover { background: var(--surface); }
.tabs { position: relative; }
/* Nine assistants: one line on the account page at this padding, and on a phone, where they wrap, the
   bar keeps the corners of a single line instead of rounding into a blob. */
#assistant-tabs { border-radius: 1.25rem; }
#assistant-tabs .tab { padding: 0 0.625rem; }
.tab { position: relative; }
.tab-thumb { display: none; position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); border-radius: var(--radius-pill); background: var(--surface); transform: translate(var(--x), var(--y)); transition: transform 0.45s var(--ease), width 0.45s var(--ease); }
.tabs.has-thumb .tab-thumb { display: block; }
.tabs.has-thumb .tab[aria-selected="true"], .tabs.has-thumb .tab:hover { background: transparent; }
@media (pointer: coarse) { .tab { min-height: 2.5rem; } }
.steps-card { display: grid; gap: 0.75rem; animation: rise 0.5s var(--ease) both; }
.steps-card:focus-visible { outline-offset: 6px; border-radius: var(--radius); }
.steps-card ol { counter-reset: step; display: grid; gap: 0.75rem; }
.steps-card li { counter-increment: step; display: grid; grid-template-columns: 1.625rem 1fr; gap: 0.75rem; align-items: start; animation: rise 0.5s var(--ease) both; }
.steps-card li::before { content: counter(step); display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--wash); font-size: var(--text-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps-card li:nth-child(2) { animation-delay: 0.05s; }
.steps-card li:nth-child(3) { animation-delay: 0.1s; }
.steps-card li:nth-child(4) { animation-delay: 0.15s; }
.steps-card li:nth-child(5) { animation-delay: 0.2s; }
@media (max-width: 30rem) { .copy-row { flex-direction: column; } }

/* usage: bars that fill on arrival */
.meter { display: grid; gap: 0.5rem; }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s1); font-weight: 500; }
.meter-value { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 400; }
.meter-bar { height: 0.375rem; border-radius: var(--radius-pill); background: var(--wash); overflow: hidden; }
.meter-bar > span { display: block; height: 100%; width: var(--fill, 0%); min-width: 0.375rem; border-radius: inherit; background: var(--ink); transform-origin: left; animation: grow 1.1s var(--ease) 0.25s both; }
.meter-bar.is-empty > span { display: none; }
.meter.near .meter-bar > span { background: var(--warn); }
.meter.full .meter-bar > span { background: var(--bad); }
.meter.near .meter-value, .meter.full .meter-value { color: var(--warn); font-weight: 600; }
.meter + .meter { padding-top: var(--s2); border-top: 1px solid color-mix(in srgb, var(--hair) 60%, transparent); }

/* empty, loading, error */
.empty { padding: var(--s1) 0; }
.empty-title { font-weight: 600; }
.problem { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; background: var(--tint-bad); border-radius: var(--radius); padding: 0.75rem 0.875rem; animation: drop 0.5s var(--ease) both; }
.problem p { flex: 1 1 12rem; }
.skeleton { display: grid; gap: 0.75rem; }
.skeleton span { height: 2.5rem; border-radius: var(--radius); background: linear-gradient(100deg, var(--wash) 40%, color-mix(in srgb, var(--wash) 35%, transparent) 50%, var(--wash) 60%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton span:nth-child(even) { width: 82%; }

/* friendly empty states */
.friendly { display: grid; justify-items: start; gap: 0.5rem; padding: var(--s1) 0 var(--s2); }
.friendly img { width: 8.5rem; height: auto; margin-bottom: 0.25rem; animation: arrive 0.9s var(--ease) both; }
.friendly .empty-title { font: 700 var(--text-lg)/1.15 var(--font-display); letter-spacing: -0.025em; }
.friendly .hint { font-size: var(--text-base); max-width: 26rem; }
.friendly button { margin-top: 0.375rem; }

/* activity rows open a post */
.tiles { display: flex; flex: none; }
.tiles .badge + .badge { margin-left: -0.75rem; box-shadow: 0 0 0 2px var(--paper); }
.row-link { display: block; color: var(--ink); }
.row-link:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.post-view { display: grid; gap: var(--s3); max-width: 46rem; margin: 0 auto; animation: rise var(--arrive) var(--ease) both; }
.post-view h1:focus { outline: none; }
.post-head .hint { margin-top: 0.375rem; font-size: var(--text-base); }
.back { display: inline-flex; align-items: center; gap: 0.25rem; min-height: var(--control); justify-self: start; font-size: var(--text-sm); font-weight: 500; }
.back::before { content: ""; width: 0.5rem; height: 0.5rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 0.25rem; }
.caption { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-view h2 { margin-top: var(--s2); }

/* needs attention: only on the page while something is wrong */
.attention { margin-bottom: var(--s4); }
.dot { flex: none; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--warn); }
.dot.bad { background: var(--bad); }
#usage { scroll-margin-top: 4.5rem; }
h2[tabindex]:focus { outline: none; }

/* risky actions */
button.danger { color: var(--bad); border-color: currentColor; }
button.danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.ask { font-size: var(--text-sm); font-weight: 500; }
.row form { margin: 0; }
.confirm { display: grid; gap: 0.875rem; background: var(--wash); border-radius: var(--radius); padding: var(--s2); animation: drop 0.5s var(--ease) both; }
.confirm h3 { margin: 0; }
#upcoming, #data, #plans, #billing { scroll-margin-top: 4.5rem; }

.zone { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding-top: var(--s2); border-top: 1px solid color-mix(in srgb, var(--hair) 60%, transparent); }
.zone .hint { flex: 1 1 10rem; }
input.when { width: auto; min-height: var(--control); font-size: var(--text-sm); }
.connected .row-side { gap: 0.25rem; }

/* a switch saves as soon as it is pressed */
.switch { flex: none; width: 3.1875rem; min-height: 0; height: 1.9375rem; padding: 0.125rem; border: 0; border-radius: var(--radius-pill); background: var(--hair); justify-content: flex-start; transition: background-color 0.25s var(--ease); }
.switch span { width: 1.6875rem; height: 1.6875rem; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease); }
.switch[aria-checked="true"] { background: #2f6b3f; }
.switch[aria-checked="true"]:hover { background: #285c36; }
.switch:hover { background: var(--muted); }
.switch[aria-checked="true"] span { transform: translateX(1.25rem); }
.switch:active { transform: none; }
.switch:disabled { opacity: 0.7; }

/* a form that opens inside a network's row */
.inline-form { flex: 0 0 calc(100% - 3.375rem); margin-left: 3.375rem; display: grid; gap: var(--s2); background: var(--wash); border-radius: var(--radius); padding: var(--s2); animation: drop 0.5s var(--ease) both; }
.inline-form .hint { margin-top: 0.375rem; }
@media (max-width: 30rem) { .inline-form { flex-basis: 100%; margin-left: 0; } }

/* the characters: free cut-outs that lean toward the pointer (character.js sets --look-x / --look-y) */
.character { --look-x: 0; --look-y: 0; user-select: none; -webkit-user-select: none; pointer-events: none; }
.character img { display: block; width: 100%; height: auto; }
.look, .idle { display: block; transform-origin: 50% 100%; }
.look { transform: translate(calc(var(--look-x) * 0.375rem), calc(var(--look-y) * 0.25rem)) rotate(calc(var(--look-x) * 3deg)); }
.idle { animation: sway 5.5s ease-in-out infinite alternate; }

@keyframes arrive { from { opacity: 0; transform: translateY(3rem); } }
@keyframes sway { from { transform: rotate(-0.9deg); } to { transform: rotate(0.9deg) translateY(-0.1875rem); } }
@keyframes rise { from { opacity: 0; transform: translateY(0.875rem); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } 60% { transform: scale(1.06); } }
@keyframes drop { from { opacity: 0; transform: translateY(-0.5rem); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes pulse { to { opacity: 0.3; } }
@keyframes shimmer { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* the working sign-in page (signin.html + signin.js): the words on the left, a character on the right
   standing on the bottom edge of the window. No rule under the name or above the foot: the page is open. */
body:has(.signin) { min-height: 100svh; display: flex; flex-direction: column; }
body:has(.signin) .bar { border-bottom: 0; }
main:has(.signin) { flex: 1; display: flex; flex-direction: column; width: 100%; padding-top: 0; padding-bottom: 0; }
.signin { flex: 1; display: flex; flex-direction: column; }
.signin-step { position: relative; display: grid; align-content: center; justify-items: start; gap: var(--s2); flex: 1; min-height: 32rem; padding: var(--s6) 48% var(--s6) 0; animation: rise var(--arrive) var(--ease) both; }
.signin-step .lede, .signin-step > p:not(.hint) { color: var(--muted); font-size: 1.1875rem; max-width: 30rem; }
.signin-step .hint { max-width: 30rem; }
.signin-step form { width: 100%; max-width: 26rem; display: grid; gap: 1.125rem; margin-top: var(--s1); }
.signin-step form button { justify-self: start; }
.signin-step > button, .signin-step > .button { margin-top: var(--s1); }
.auth-figure { position: absolute; right: 2%; bottom: 0; width: min(24rem, 40%); animation: arrive 1.1s 0.1s var(--ease) both; }
.auth-figure.robot-figure { width: min(30rem, 46%); right: -2%; }
@media (max-width: 48rem) {
  .signin-step, .gate { min-height: 0; padding: var(--s4) 0 0; }
  .auth-figure, .auth-figure.robot-figure { position: static; order: 9; justify-self: center; width: min(15rem, 70%); margin-top: var(--s3); }
}
/* the approval page (worker/src/approval.mjs): an assistant asks to connect. The sign-in page's layout,
   with what the assistant will be able to do as a ticked list, a line about who is asking, and the two
   answers side by side. No script runs there, so it arrives with the same CSS-only rise as sign-in. */
.approve .can { display: grid; gap: 0.625rem; max-width: 34rem; }
.approve .can-title { font-weight: 600; font-size: var(--text-sm); }
.approve .can ul { display: grid; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.approve .can li { position: relative; padding-left: 1.875rem; }
.approve .can li::before { content: ""; position: absolute; left: 0.3125rem; top: 0.25rem; width: 0.375rem; height: 0.75rem; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.approve .signin-step > p.caution { max-width: 32rem; padding: 0.125rem 0 0.125rem 1rem; border-left: 3px solid var(--ink); color: var(--ink); font-size: 1rem; }
.approve .signin-step form.answers { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: none; margin-top: var(--s1); }
.approve .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.approve .button.primary:hover { background: color-mix(in srgb, var(--accent), #fff 30%); color: var(--accent-ink); }
@media (max-width: 30rem) { .approve .signin-step form.answers button { flex: 1 1 100%; } }
#feedback { max-width: 30rem; padding-top: var(--s3); }
#feedback:focus { outline: none; }
#feedback .notice:empty { display: none; }
.who { font-size: var(--text-sm); color: var(--muted); padding: 0 0.5rem; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who:empty { display: none; }
@media (max-width: 30rem) { .who { display: none; } }
.grants { display: grid; gap: 0.375rem; }
.key-form { display: grid; grid-template-columns: 1fr auto; gap: var(--s1); align-items: end; }
.key-form label { grid-column: 1 / -1; }
.keys code, .hooks code { font-family: var(--font-mono); font-size: var(--text-sm); word-break: break-all; }
#webhooks-title { margin-top: var(--s3, 1.5rem); }
.hooks .row-side { flex-wrap: wrap; justify-content: flex-end; }
/* The events a webhook gets, as tickboxes: under the address when adding one, in place of the events
   line when changing them. */
.hook-events { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.hook-events legend { padding: 0; margin-bottom: 0.25rem; font-weight: 600; font-size: var(--text-sm); }
.hook-events label { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; font-weight: 400; }
.hook-events input { width: 1.125rem; height: 1.125rem; accent-color: var(--ink); }
.hook-edit { display: grid; gap: 0.5rem; margin: 0.25rem 0; }
.hook-edit-actions { display: flex; gap: 0.5rem; }
/* Keys and webhooks have no network badge to line up past. */
@media (max-width: 30rem) { .keys .row-side, .hooks .row-side { margin-left: 0; justify-content: flex-start; } }
@media (max-width: 30rem) { .key-form { grid-template-columns: 1fr; } }
.grants li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding: 0.625rem 0.875rem; background: var(--wash); border-radius: var(--radius); }

/* plan picker: three plans side by side, the suggested one in ink; they arrive one after another and stack on a phone */
.plans-plate { margin-bottom: var(--s6); }
.plans-plate > .hint { margin-top: var(--s2); }
#plans-title:focus, #billing-title:focus { outline: none; }
.plans { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.plan { display: grid; gap: var(--s2); align-content: start; grid-template-rows: auto auto auto 1fr auto; background: var(--surface); border: 1.5px solid var(--hair); border-radius: var(--radius-card); padding: 1.375rem; animation: rise var(--arrive) var(--ease) both; transition: transform 0.35s var(--spring), border-color var(--fast); }
.plan:nth-child(2) { animation-delay: 70ms; }
.plan:nth-child(3) { animation-delay: 140ms; }
.plan:hover { transform: translateY(-0.25rem); border-color: var(--ink); }
.plan.pick { background: var(--ink); border-color: var(--ink); color: var(--paper); order: -1; }
@media (min-width: 52rem) { .plan.pick { order: 0; } }
.plan-name { font: 700 1.25rem/1.2 var(--font-display); letter-spacing: -0.02em; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s1); }
.plan.pick .tag { background: rgb(255 255 255 / 16%); color: inherit; }
.plan-price { display: flex; align-items: baseline; gap: 0.375rem; }
.plan-amount { font: 700 3rem/1 var(--font-display); letter-spacing: -0.04em; }
.plan-per, .plan-note { font-size: var(--text-base); color: var(--muted); }
.plan.pick .plan-per, .plan.pick .plan-note { color: rgb(255 255 255 / 72%); }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5625rem; }
.plan-features li { display: flex; gap: 0.5625rem; align-items: baseline; }
.plan-features li::before { content: "✓"; font-weight: 700; color: var(--ok); }
.plan.pick .plan-features li::before { color: var(--accent); }
.plan button { width: 100%; }
.plan.pick button { border-color: var(--paper); color: var(--paper); }
.plan.pick button:hover { background: var(--paper); color: var(--ink); }
.plan.pick button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.current-plan { display: grid; gap: 0.5rem; justify-items: start; }
.current-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; font: 700 1.5rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.current-plan button { margin-top: 0.375rem; }
@media (prefers-reduced-motion: reduce) { .plan { animation: none; transition: none; } .plan:hover { transform: none; } }

/* No outline round a group here either (2026-10-05), as on the site: the setup steps stand on the
   page beside Nat with a rule under them, the plan is said in words, and the plans are three columns
   with a rule between them. The plan we point to is marked by the one filled button. */
.start { border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; clip-path: none; padding-top: 0; padding-right: 0; margin-top: var(--s4); }
.plan-chip { border: 0; border-radius: 0; padding: 0; color: var(--muted); font-weight: 500; }
.plans { gap: 0; }
.plan, .plan.pick { background: none; color: var(--ink); border: 0; border-top: 1px solid var(--hair); border-radius: 0; padding: var(--s3) 0; }
.plan:hover { transform: none; border-color: var(--hair); }
.plan.pick .tag { background: var(--wash); color: var(--muted); }
/* The suggested plan is no longer a dark card, so its small print and ticks are the page's own colours. */
.plan.pick .plan-per, .plan.pick .plan-note { color: var(--muted); }
.plan.pick .plan-features li::before { color: var(--ok); }
@media (min-width: 52rem) {
  .plan, .plan.pick { border-top: 0; border-left: 1px solid var(--hair); padding: 0.5rem var(--s3); }
  .plan:first-child { border-left: 0; padding-left: 0; }
  .plan:last-child { padding-right: 0; }
}

/* Where a Pinterest account's pins go: one line under its name; the boards come in place of the name. */
.board-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem 0.625rem; }
.board-line strong { color: var(--ink); font-weight: 600; }
.board-line button.board-open { min-height: 2rem; padding: 0 0.25rem; border: 0; border-radius: 0.375rem; background: none; font-size: var(--text-sm); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.2em; }
.board-line button.board-open:hover { text-decoration-color: currentColor; }
.board-line select { min-height: 2.5rem; font-size: var(--text-sm); font-weight: 500; animation: rise 0.4s var(--ease) both; }
.board-saved { color: var(--ok); font-weight: 600; animation: rise 0.35s var(--ease) both; }
.board-error { flex: 0 0 100%; color: var(--bad); }
.board-line label { display: inline; margin: 0; font-weight: 400; font-size: inherit; color: var(--muted); }
