/* BLOOM Cockpit — styles. Direction validated on the canvas "BLOOM Cockpit — Style Direction" (2026-10-22).
   Two themes on <html data-theme>: night (deep plum ground) and day (linen ground). Both keep the plum
   left panel and the eucalyptus right panel. All colours are tokens below; nothing else hard-codes a theme. */

:root {
  --serif: 'Playfair Display', Georgia, serif;
  --caps: 'Josefin Sans', 'Segoe UI', sans-serif;
  --sans: 'Lato', 'Segoe UI', sans-serif;
  --gold: #D1B062;
  --on-gold: #2A1A10;
  --plum: #715862;
  --sage: #9DB09A;
  --radius-panel: 28px;
  --radius-tile: 16px;

  /* the eucalyptus side is the same in both themes */
  --right-bg: linear-gradient(165deg, #4A5B4E 0%, #222B25 100%);
  --right-text: #EEF2EC;
  --right-muted: rgba(238,242,236,.72);
  --right-tile: rgba(255,255,255,.07);
  --right-line: rgba(255,255,255,.14);
}

:root, [data-theme="night"] {
  --bg: #150F12;
  --text: #F3EEE6;
  --muted: rgba(243,238,230,.68);
  --line: rgba(243,238,230,.12);
  --glow: radial-gradient(circle at 50% 52%, rgba(113,88,98,.42) 0%, rgba(21,15,18,0) 58%);
  --chip: rgba(255,255,255,.05);
  --input: rgba(255,255,255,.06);
  --accent-text: #D1B062;
  --ok: #9DB09A;
  --logo-filter: brightness(0) invert(1);
  --floral-filter: none;

  --left-bg: linear-gradient(165deg, #5A3242 0%, #2E1820 100%);
  --left-text: #F6EEF0;
  --left-muted: rgba(246,238,240,.72);
  --left-tile: rgba(255,255,255,.07);
  --left-icon: rgba(255,255,255,.10);
  --left-line: rgba(255,255,255,.14);
  --deco-opacity: .12;

  /* sphere */
  --halo: radial-gradient(circle, rgba(209,176,98,.22) 0%, rgba(113,88,98,.20) 38%, rgba(113,88,98,0) 68%);
  --track: rgba(243,238,230,.16);
  --ring-text: rgba(243,238,230,.55);
  --pollen: #E7D7B0;
  --sphere-base: radial-gradient(circle at 50% 55%, #3E2632 0%, #1A1015 72%);
  --sphere-shadow: inset -22px -30px 70px rgba(0,0,0,.45), inset 16px 20px 46px rgba(255,255,255,.10), 0 40px 90px rgba(0,0,0,.55), 0 0 80px rgba(113,88,98,.35);
  --blend: screen;
  --veil: radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 45%, rgba(255,255,255,.07) 100%);
  --core-logo: brightness(0) invert(1) drop-shadow(0 4px 18px rgba(0,0,0,.35));
  --rim: rgba(255,255,255,.30);
  --node-bg: rgba(255,255,255,.06);
  --node-border: rgba(243,238,230,.22);
  --icon: #F3EEE6;
  --p1: #8C6B79; --p2: #D1B062; --p3: #9DB09A; --p4: #715862; --p5: #E7D7B0; --p6: #5E7A66;
  --q1: #E7D7B0; --q2: #B79AA6; --q3: #D1B062; --q4: #A9BBA2; --q5: #F3EEE6; --q6: #8C6B79;
}

[data-theme="day"] {
  --bg: linear-gradient(165deg, #F1ECE4 0%, #E4DACB 100%);
  --text: #282828;
  --muted: #5A554F;
  --line: rgba(40,40,40,.12);
  --glow: radial-gradient(circle at 50% 52%, rgba(255,255,255,.65) 0%, rgba(241,236,228,0) 58%);
  --chip: rgba(255,255,255,.55);
  --input: rgba(255,255,255,.65);
  --accent-text: #715862;
  --ok: #4A5B4E;
  --logo-filter: none;
  --floral-filter: brightness(0) opacity(.8);

  --left-bg: linear-gradient(165deg, #7E6470 0%, #5E4651 100%);
  --left-text: #FFFFFF;
  --left-muted: rgba(255,255,255,.82);
  --left-tile: rgba(255,255,255,.10);
  --left-icon: rgba(255,255,255,.16);
  --left-line: rgba(255,255,255,.22);
  --deco-opacity: .18;

  --halo: radial-gradient(circle, rgba(209,176,98,.30) 0%, rgba(113,88,98,.12) 42%, rgba(113,88,98,0) 68%);
  --track: rgba(113,88,98,.22);
  --ring-text: #715862;
  --pollen: #D1B062;
  --sphere-base: radial-gradient(circle at 50% 55%, #FFFFFF 0%, #EEE5D6 78%);
  --sphere-shadow: inset -20px -28px 64px rgba(113,88,98,.22), inset 16px 20px 40px rgba(255,255,255,.9), 0 36px 80px rgba(113,88,98,.28);
  --blend: multiply;
  --veil: radial-gradient(circle at 50% 50%, rgba(255,255,255,.10) 30%, rgba(255,255,255,.35) 100%);
  --core-logo: brightness(0) opacity(.82) drop-shadow(0 4px 14px rgba(255,255,255,.6));
  --rim: rgba(255,255,255,.95);
  --node-bg: rgba(255,255,255,.78);
  --node-border: rgba(113,88,98,.24);
  --icon: #715862;
  --p1: #B79AA6; --p2: #E7D7B0; --p3: #B9C7B0; --p4: #D9C3CB; --p5: #EBDDB9; --p6: #A9BBA2;
  --q1: #F1E6CC; --q2: #D9C3CB; --q3: #E7D7B0; --q4: #C9D5C2; --q5: #FFFFFF; --q6: #CDB5BF;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { background: #150F12; }
body { margin: 0; min-height: 100vh; background: var(--bg); background-attachment: fixed; color: var(--text); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
a:hover, button:hover { opacity: .88; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-family: var(--caps); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.muted { color: var(--muted); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[hidden] { display: none !important; }

.cockpit { min-height: 100vh; display: flex; flex-direction: column; }

/* ------------------------------------------------------------------ top bar */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 16px; }
.wordmark { width: 252px; height: 21px; object-fit: contain; filter: var(--logo-filter); }
.divider { width: 1px; height: 18px; background: var(--line); }
.brand .eyebrow { font-size: 10px; }
.spaces, .seg-group { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); }
.seg { border: 0; border-radius: 999px; padding: 8px 16px; min-height: 36px; background: transparent; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.seg.on, .seg[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); font-weight: 700; }
.seg[aria-disabled="true"] { opacity: .55; cursor: default; }
.seg-group { flex-wrap: nowrap; }
.top-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--chip); display: flex; align-items: center; justify-content: center; padding: 0; }
.floral { width: 52px; height: 52px; object-fit: contain; filter: var(--floral-filter); }

/* ------------------------------------------------------------------ layout */
.grid { flex-grow: 1; display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(280px, 340px); gap: 20px; padding: 20px 24px; align-items: start; }
.panel { position: relative; overflow: hidden; border-radius: var(--radius-panel); padding: 22px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.panel-left { background: var(--left-bg); color: var(--left-text); border: 1px solid var(--left-line); --p-muted: var(--left-muted); --p-tile: var(--left-tile); --p-line: var(--left-line); }
.panel-right { background: var(--right-bg); color: var(--right-text); border: 1px solid var(--right-line); --p-muted: var(--right-muted); --p-tile: var(--right-tile); --p-line: var(--right-line); }
.panel .muted { color: var(--p-muted); }
.deco { position: absolute; right: -40px; bottom: -30px; width: 230px; opacity: var(--deco-opacity); pointer-events: none; }

.widget { position: relative; display: flex; flex-direction: column; gap: 12px; }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.widget-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.head-actions { display: flex; align-items: center; gap: 6px; }
.mini-btn { font-family: var(--caps); font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 8px 12px; min-height: 32px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--p-line); background: transparent; }
.round-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--p-line); background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; }
.round-btn.spinning svg { animation: spin 1s linear infinite; }
.badge { font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--on-gold); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.note { font-size: 12px; color: var(--p-muted); line-height: 1.5; margin: 0; }
.note strong { color: inherit; }
.state-card { padding: 14px; border-radius: 14px; background: var(--p-tile); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 13px; text-decoration: none; }
.stale { color: var(--gold); }

/* Greenhouse */
.app { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-tile); background: var(--p-tile); text-decoration: none; border: 0; width: 100%; text-align: left; }
.app-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--left-icon); display: flex; align-items: center; justify-content: center; }
.app-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.app-name { font-size: 14px; font-weight: 700; }
.app-desc { font-size: 12px; color: var(--p-muted); }
.stage { font-family: var(--caps); font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; flex-shrink: 0; }
.stage-seed { background: rgba(255,255,255,.16); }
.stage-sprout { background: rgba(157,176,154,.9); color: #1F2A22; }
.stage-bloom { background: var(--gold); color: var(--on-gold); }

/* Calendar */
.clock-row { display: flex; align-items: baseline; gap: 14px; }
.clock { font-family: var(--serif); font-size: 58px; line-height: 1; font-variant-numeric: tabular-nums; }
.clock-date { display: flex; flex-direction: column; gap: 4px; }
.weekday { font-family: var(--serif); font-style: italic; font-size: 18px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 6px; border-radius: 14px; border: 1px solid transparent; background: transparent; min-height: 54px; }
.day-l { font-size: 10px; letter-spacing: .1em; font-weight: 700; }
.day-n { font-size: 15px; }
.day-dot { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.day.has .day-dot { background: currentColor; opacity: .7; }
.day.today { background: var(--gold); color: var(--on-gold); }
.day.sel:not(.today) { border-color: var(--p-line); background: var(--p-tile); }
.event { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--p-tile); text-decoration: none; }
.event-time { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; width: 46px; flex-shrink: 0; }
.event-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.event-text { display: flex; flex-direction: column; min-width: 0; flex-grow: 1; }
.event-title { font-size: 13px; }
.event-meta { font-size: 11px; color: var(--p-muted); }
.event.past { opacity: .55; }
.join { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--gold); color: var(--on-gold); text-decoration: none; flex-shrink: 0; }

/* Inbox */
.mail { display: flex; gap: 10px; padding: 10px; border-radius: 14px; background: var(--p-tile); text-decoration: none; }
.avatar { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 14px; }
.mail-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mail-top { display: flex; justify-content: space-between; gap: 8px; }
.mail-from { font-size: 13px; font-weight: 700; }
.mail-time { font-size: 11px; color: var(--p-muted); flex-shrink: 0; }
.mail-subject { font-size: 12px; }
.mail-snippet { font-size: 11px; color: var(--p-muted); }
.mail.unread .mail-from::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 6px; vertical-align: middle; }

/* Intention */
.intention { position: relative; overflow: hidden; border-radius: 20px; padding: 18px; background: var(--p-tile); display: flex; flex-direction: column; gap: 6px; }
.intention img { position: absolute; right: -6px; top: -14px; width: 92px; opacity: .35; pointer-events: none; }
.intention h2 { margin: 0; font-size: 10px; color: var(--p-muted); }
.intention-text { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.2; max-width: 230px; }

/* Tending */
.routine { display: flex; align-items: center; gap: 10px; font-size: 13px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 0; background: transparent; text-align: left; }
.routine:hover { background: var(--p-tile); opacity: 1; }
.routine-time { font-variant-numeric: tabular-nums; color: var(--p-muted); width: 40px; }
.routine-name { flex-grow: 1; }
.routine.done .routine-name { text-decoration: line-through; opacity: .7; }
.status { font-family: var(--caps); font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; }
.status-done { background: rgba(157,176,154,.85); color: #1F2A22; }
.status-due, .status-next { background: var(--gold); color: var(--on-gold); }
.status-later { background: rgba(255,255,255,.12); }

/* ------------------------------------------------------------------ core */
.core { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; min-width: 0; }
.core-glow { position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.greeting { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.greeting h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.15; }
.greeting em { color: var(--accent-text); }

.stage-wrap { position: relative; width: 600px; max-width: 100%; height: 600px; }
.orbit-stage { position: absolute; left: 0; top: 0; width: 600px; height: 600px; transform-origin: 0 0; transform: scale(var(--scale, 1)); }
.halo { position: absolute; left: 60px; top: 60px; width: 480px; height: 480px; border-radius: 50%; background: var(--halo); animation: halo 9s ease-in-out infinite; }
.track { position: absolute; left: 28px; top: 28px; width: 542px; height: 542px; border-radius: 50%; border: 1px solid var(--track); }
.ring { position: absolute; left: 0; top: 0; animation: spin 140s linear infinite; }
.ring circle { stroke: var(--track); }
.ring text { fill: var(--ring-text); font-family: var(--caps); }
.pollen { position: absolute; border-radius: 50%; background: var(--pollen); box-shadow: 0 0 10px var(--pollen); animation: float 6s ease-in-out infinite; pointer-events: none; }

.sphere { position: absolute; left: 124px; top: 124px; width: 352px; height: 352px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: var(--sphere-base); box-shadow: var(--sphere-shadow); transition: transform .4s ease; }
.sphere:hover { opacity: 1; transform: scale(1.015); }
.sphere.pulse { animation: pulse 1.2s ease; }
.sphere span { position: absolute; display: block; }
.bloom { inset: 0; animation: breathe 9s ease-in-out infinite; }
.petals-outer { inset: 0; animation: spin 70s linear infinite; }
.petals-inner { inset: 0; animation: spin-rev 44s linear infinite; }
.petals-outer span { left: 106px; top: -44px; width: 140px; height: 220px; filter: blur(16px); opacity: .9; transform-origin: 70px 220px; }
.petals-inner span { left: 136px; top: 46px; width: 80px; height: 130px; filter: blur(10px); opacity: .85; transform-origin: 40px 130px; }
.petals-outer span, .petals-inner span { border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%; mix-blend-mode: var(--blend); }
.petals-outer span:nth-child(1) { background: radial-gradient(ellipse at 50% 30%, var(--p1) 0%, var(--p1) 35%, transparent 72%); transform: rotate(0deg); }
.petals-outer span:nth-child(2) { background: radial-gradient(ellipse at 50% 30%, var(--p2) 0%, var(--p2) 35%, transparent 72%); transform: rotate(60deg); }
.petals-outer span:nth-child(3) { background: radial-gradient(ellipse at 50% 30%, var(--p3) 0%, var(--p3) 35%, transparent 72%); transform: rotate(120deg); }
.petals-outer span:nth-child(4) { background: radial-gradient(ellipse at 50% 30%, var(--p4) 0%, var(--p4) 35%, transparent 72%); transform: rotate(180deg); }
.petals-outer span:nth-child(5) { background: radial-gradient(ellipse at 50% 30%, var(--p5) 0%, var(--p5) 35%, transparent 72%); transform: rotate(240deg); }
.petals-outer span:nth-child(6) { background: radial-gradient(ellipse at 50% 30%, var(--p6) 0%, var(--p6) 35%, transparent 72%); transform: rotate(300deg); }
.petals-inner span:nth-child(1) { background: radial-gradient(ellipse at 50% 30%, var(--q1) 0%, var(--q1) 35%, transparent 72%); transform: rotate(30deg); }
.petals-inner span:nth-child(2) { background: radial-gradient(ellipse at 50% 30%, var(--q2) 0%, var(--q2) 35%, transparent 72%); transform: rotate(90deg); }
.petals-inner span:nth-child(3) { background: radial-gradient(ellipse at 50% 30%, var(--q3) 0%, var(--q3) 35%, transparent 72%); transform: rotate(150deg); }
.petals-inner span:nth-child(4) { background: radial-gradient(ellipse at 50% 30%, var(--q4) 0%, var(--q4) 35%, transparent 72%); transform: rotate(210deg); }
.petals-inner span:nth-child(5) { background: radial-gradient(ellipse at 50% 30%, var(--q5) 0%, var(--q5) 35%, transparent 72%); transform: rotate(270deg); }
.petals-inner span:nth-child(6) { background: radial-gradient(ellipse at 50% 30%, var(--q6) 0%, var(--q6) 35%, transparent 72%); transform: rotate(330deg); }
.sphere .veil { inset: 0; border-radius: 50%; background: var(--veil); backdrop-filter: blur(3px); }
.sphere .core-logo { position: absolute; left: 116px; top: 92px; width: 120px; height: 160px; object-fit: contain; filter: var(--core-logo); }
.sphere .spec-top { inset: 0; border-radius: 50%; background: radial-gradient(ellipse 46% 34% at 32% 20%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 100%); }
.sphere .spec-low { inset: 0; border-radius: 50%; background: radial-gradient(ellipse 50% 20% at 58% 94%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 100%); }
.sphere .rim { inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rim); }

.node { position: absolute; width: 44px; height: 44px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; background: var(--node-bg); border: 1px solid var(--node-border); color: var(--icon); backdrop-filter: blur(10px); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.node:hover, .node:focus-visible { transform: scale(1.12); opacity: 1; }
.node.lit { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(209,176,98,.18), 0 0 24px rgba(209,176,98,.45); }
.node.dim { opacity: .6; }
.node-label { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--caps); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text); background: var(--chip); backdrop-filter: blur(10px); border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.node:hover .node-label, .node:focus-visible .node-label { opacity: 1; }

/* Ask bar */
.ask-wrap { position: relative; width: 100%; max-width: 620px; }
.ask { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--input); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.ask svg.spark { color: var(--accent-text); flex-shrink: 0; }
.ask input { flex-grow: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font-family: var(--sans); font-size: 15px; padding: 10px 0; }
.ask input::placeholder { color: var(--muted); }
.send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gold); color: var(--on-gold); display: flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.results { position: absolute; left: 0; right: 0; bottom: 60px; z-index: 5; list-style: none; margin: 0; padding: 6px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 2px; }
.result { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-decoration: none; border: 0; background: transparent; width: 100%; text-align: left; }
.result:hover, .result.active { background: var(--chip); opacity: 1; }
.result-kind { font-family: var(--caps); font-size: 9px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); width: 56px; flex-shrink: 0; }
.chips { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { padding: 8px 14px; min-height: 36px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--chip); font-size: 12px; text-decoration: none; }

/* ------------------------------------------------------------------ status bar + toast */
.statusbar { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; padding: 10px 28px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.statusbar .items { display: flex; flex-wrap: wrap; gap: 18px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--gold); }
.dot.bad { background: #C98A8A; }
.toast { position: fixed; left: 50%; bottom: 56px; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 16px; background: var(--plum); color: #FFFFFF; font-size: 13px; box-shadow: 0 16px 40px rgba(0,0,0,.35); z-index: 10; }

/* ------------------------------------------------------------------ Google page */
.oauth-page { display: flex; align-items: center; justify-content: center; padding: 16px; }
.oauth-card { max-width: 480px; padding: 32px; border-radius: var(--radius-panel); background: var(--left-bg); color: var(--left-text); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.oauth-card h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; }
.oauth-card p { margin: 0; line-height: 1.5; }
.oauth-card .login-logo { width: 56px; height: 72px; object-fit: contain; filter: brightness(0) invert(1); }
.oauth-card .wordmark { margin-top: 4px; }

/* ------------------------------------------------------------------ motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.08); } }
@keyframes float { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-14px); opacity: 1; } }
@keyframes halo { 0%, 100% { opacity: .7; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes pulse { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .ring, .halo, .pollen, .bloom, .petals-outer, .petals-inner, .sphere.pulse, .round-btn.spinning svg { animation: none; }
}

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1180px) {
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .core { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .topbar { padding: 14px 16px; }
  .wordmark { width: 190px; }
  .spaces { display: none; }
  .greeting h1 { font-size: 30px; }
  .statusbar { padding: 10px 16px; }
}
