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

:root {
  --serif: 'Libre Baskerville', Georgia, serif;
  --caps: 'Raleway', 'Segoe UI', sans-serif;
  --sans: 'DM Sans', 'Segoe UI', sans-serif;
  --accent: #9BC53D;          /* the logo's lime: buttons, today, badges */
  --on-accent: #16200A;
  --indigo: #2E3272;          /* the logo's blue */
  --sage: #A5AD96;
  --radius-panel: 28px;
  --radius-tile: 16px;
}

:root, [data-theme="night"] {
  --bg: #0F1720;
  --text: #EEF1F4;
  --muted: rgba(238,241,244,.68);
  --line: rgba(238,241,244,.12);
  --glow: radial-gradient(circle at 50% 52%, rgba(106,125,147,.42) 0%, rgba(15,23,32,0) 58%);
  --chip: rgba(255,255,255,.05);
  --input: rgba(255,255,255,.06);
  --accent-text: #A9CF55;
  --ok: #A5AD96;
  --logo-filter: brightness(0) invert(1);
  --toast: #43566C;

  --left-bg: linear-gradient(165deg, #4A5E76 0%, #222D3A 100%);
  --left-text: #F1F4F7;
  --left-muted: rgba(241,244,247,.72);
  --left-tile: rgba(255,255,255,.07);
  --left-icon: rgba(255,255,255,.10);
  --left-line: rgba(255,255,255,.14);
  --deco-opacity: .07;

  --right-bg: linear-gradient(165deg, #5E6852 0%, #2A3026 100%);
  --right-text: #F0F2EC;
  --right-muted: rgba(240,242,236,.72);
  --right-tile: rgba(255,255,255,.07);
  --right-line: rgba(255,255,255,.14);

  /* orb */
  --halo: radial-gradient(circle, rgba(155,197,61,.16) 0%, rgba(106,125,147,.24) 38%, rgba(106,125,147,0) 68%);
  --track: rgba(238,241,244,.16);
  --ring-text: rgba(238,241,244,.55);
  --drop: #C9D8E6;
  --sphere-base: radial-gradient(circle at 50% 55%, #2B3A4C 0%, #0D141C 74%);
  --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(106,125,147,.35);
  --blend: screen;
  --veil: radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 45%, rgba(255,255,255,.07) 100%);
  --level: rgba(238,241,244,.22);
  --core-word: rgba(238,241,244,.85);
  --core-logo: brightness(0) invert(1) drop-shadow(0 4px 18px rgba(0,0,0,.35));
  --rim: rgba(255,255,255,.28);
  --node-bg: rgba(255,255,255,.06);
  --node-border: rgba(238,241,244,.22);
  --icon: #EEF1F4;
  /* one halo per programme phase: outer ring, then inner ring */
  --p1: #6A7D93; --p2: #9BC53D; --p3: #A5AD96; --p4: #2E3272;
  --q1: #D9D1C9; --q2: #7E93AA; --q3: #C4DC8A; --q4: #5E6852;
}

[data-theme="day"] {
  --bg: linear-gradient(165deg, #FAF7F5 0%, #ECE6DE 100%);
  --text: #1F2A36;
  --muted: #55606C;
  --line: rgba(31,42,54,.12);
  --glow: radial-gradient(circle at 50% 52%, rgba(255,255,255,.75) 0%, rgba(250,247,245,0) 58%);
  --chip: rgba(255,255,255,.6);
  --input: rgba(255,255,255,.7);
  --accent-text: #4F7300;
  --ok: #5A7F00;
  --logo-filter: none;
  --toast: #43566C;

  --left-bg: linear-gradient(165deg, #61748A 0%, #43566C 100%);
  --left-text: #FFFFFF;
  --left-muted: rgba(255,255,255,.82);
  --left-tile: rgba(255,255,255,.11);
  --left-icon: rgba(255,255,255,.16);
  --left-line: rgba(255,255,255,.22);
  --deco-opacity: .10;

  --right-bg: linear-gradient(165deg, #6F7963 0%, #4E5646 100%);
  --right-text: #FFFFFF;
  --right-muted: rgba(255,255,255,.82);
  --right-tile: rgba(255,255,255,.11);
  --right-line: rgba(255,255,255,.22);

  --halo: radial-gradient(circle, rgba(155,197,61,.22) 0%, rgba(106,125,147,.14) 42%, rgba(106,125,147,0) 68%);
  --track: rgba(67,86,108,.22);
  --ring-text: #43566C;
  --drop: #8FA3B8;
  --sphere-base: radial-gradient(circle at 50% 55%, #FFFFFF 0%, #ECE6DE 78%);
  --sphere-shadow: inset -20px -28px 64px rgba(67,86,108,.20), inset 16px 20px 40px rgba(255,255,255,.9), 0 36px 80px rgba(67,86,108,.26);
  --blend: multiply;
  --veil: radial-gradient(circle at 50% 50%, rgba(255,255,255,.25) 30%, rgba(255,255,255,.45) 100%);
  --level: rgba(67,86,108,.22);
  --core-word: #43566C;
  --core-logo: drop-shadow(0 4px 14px rgba(255,255,255,.7));
  --rim: rgba(255,255,255,.95);
  --node-bg: rgba(255,255,255,.8);
  --node-border: rgba(67,86,108,.24);
  --icon: #43566C;
  --p1: #B4BDC8; --p2: #D3E5A8; --p3: #C9CEBE; --p4: #D9D1C9;
  --q1: #E6E2D7; --q2: #C7D1DC; --q3: #E3EEC8; --q4: #D5D9CC;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { background: #0F1720; }
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(--accent); 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: .2em; 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: 120px; height: 44px; object-fit: contain; filter: var(--logo-filter); }
.divider { width: 1px; height: 22px; background: var(--line); }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text .eyebrow { font-size: 10px; }
.brand-text .eyebrow.muted { font-size: 9px; }
.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(--accent); color: var(--on-accent); font-weight: 700; }
.seg[aria-disabled="true"] { opacity: .55; cursor: default; }
.seg-group { flex-wrap: nowrap; }
.seg-group .seg { padding: 8px 12px; font-size: 12px; font-weight: 700; }
.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; }

/* ------------------------------------------------------------------ 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: -60px; bottom: 26px; opacity: var(--deco-opacity); pointer-events: none; }
.deco path { fill: none; stroke: #FFFFFF; stroke-width: 10; stroke-linecap: round; }

.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, .widget > 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: .18em; 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(--accent); color: var(--on-accent); }
.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(--accent); color: var(--on-accent); font-weight: 700; font-size: 13px; text-decoration: none; }
.stale { color: var(--accent-text); }

/* Atelier */
.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: .18em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; flex-shrink: 0; }
.stage-preparation { background: rgba(255,255,255,.16); }
.stage-conversion { background: rgba(165,173,150,.92); color: #1E2419; }
.stage-entretien { background: var(--accent); color: var(--on-accent); }

/* Agenda */
.clock-row { display: flex; align-items: baseline; gap: 14px; }
.clock { font-family: var(--serif); font-size: 52px; 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: 17px; }
.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; text-transform: uppercase; }
.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(--accent); color: var(--on-accent); }
.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: 52px; 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(--accent); color: var(--on-accent); text-decoration: none; flex-shrink: 0; }

/* contact@ 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: 13px; }
.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(--accent); margin-right: 6px; vertical-align: middle; }

/* Pensée du jour */
.intention { position: relative; overflow: hidden; border-radius: 20px; padding: 18px; background: var(--p-tile); display: flex; flex-direction: column; gap: 6px; }
.intention-arc { position: absolute; right: 12px; top: 14px; opacity: .45; pointer-events: none; }
.intention-arc path { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; }
.intention h2 { margin: 0; font-size: 10px; color: var(--p-muted); }
.intention-text { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.3; max-width: 260px; }

/* Rituels */
.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: .18em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; }
.status-done { background: rgba(165,173,150,.9); color: #1E2419; }
.status-due, .status-next { background: var(--accent); color: var(--on-accent); }
.status-later { background: rgba(255,255,255,.14); }

/* ------------------------------------------------------------------ core */
.core { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 6px; min-width: 0; overflow-x: clip; }   /* the turning ring's corners must not widen a phone screen */
.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: 36px; line-height: 1.2; }
.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 120s linear infinite; }
.ring circle { stroke: var(--track); }
.ring text { fill: var(--ring-text); font-family: var(--caps); }
.drop { position: absolute; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--drop); box-shadow: 0 0 8px var(--drop); animation: rise 7s ease-in-out infinite; pointer-events: none; opacity: 0; }

.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; }
.phases { inset: 0; animation: breathe 9s ease-in-out infinite; }
.phases-outer { inset: 0; animation: spin 80s linear infinite; }
.phases-inner { inset: 0; animation: spin-rev 52s linear infinite; }
.phases-outer span, .phases-inner span { border-radius: 50%; mix-blend-mode: var(--blend); }
.phases-outer span { width: 190px; height: 190px; filter: blur(22px); opacity: .9; }
.phases-inner span { width: 110px; height: 110px; filter: blur(14px); opacity: .8; }
/* four phases at the diagonals: outer radius 92 px, inner 48 px, around the centre (176, 176) */
.phases-outer span:nth-child(1) { left: 146px; top: 16px; background: radial-gradient(circle, var(--p1) 0%, var(--p1) 40%, transparent 72%); }
.phases-outer span:nth-child(2) { left: 146px; top: 146px; background: radial-gradient(circle, var(--p2) 0%, var(--p2) 40%, transparent 72%); }
.phases-outer span:nth-child(3) { left: 16px; top: 146px; background: radial-gradient(circle, var(--p3) 0%, var(--p3) 40%, transparent 72%); }
.phases-outer span:nth-child(4) { left: 16px; top: 16px; background: radial-gradient(circle, var(--p4) 0%, var(--p4) 40%, transparent 72%); }
.phases-inner span:nth-child(1) { left: 155px; top: 87px; background: radial-gradient(circle, var(--q1) 0%, var(--q1) 40%, transparent 72%); }
.phases-inner span:nth-child(2) { left: 155px; top: 155px; background: radial-gradient(circle, var(--q2) 0%, var(--q2) 40%, transparent 72%); }
.phases-inner span:nth-child(3) { left: 87px; top: 155px; background: radial-gradient(circle, var(--q3) 0%, var(--q3) 40%, transparent 72%); }
.phases-inner span:nth-child(4) { left: 87px; top: 87px; background: radial-gradient(circle, var(--q4) 0%, var(--q4) 40%, transparent 72%); }
.sphere .veil { inset: 0; border-radius: 50%; background: var(--veil); backdrop-filter: blur(3px); }
.sphere .level { left: 56px; right: 56px; top: 226px; height: 1px; background: var(--level); }
.sphere .core-logo { position: absolute; left: 66px; top: 118px; width: 220px; height: 81px; object-fit: contain; filter: var(--core-logo); }
.sphere .core-word { left: 0; right: 0; top: 240px; text-align: center; font-family: var(--caps); font-size: 11px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--core-word); }
.sphere .spec-top { inset: 0; border-radius: 50%; background: radial-gradient(ellipse 46% 34% at 32% 20%, rgba(255,255,255,.5) 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,.2) 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(--accent); box-shadow: 0 0 0 4px rgba(155,197,61,.18), 0 0 24px rgba(155,197,61,.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: .14em; 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; }

/* Search 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(--accent); color: var(--on-accent); 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: .18em; text-transform: uppercase; color: var(--muted); width: 64px; 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(--accent); }
.dot.bad { background: #D08A7E; }
.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(--toast); color: #FFFFFF; font-size: 13px; box-shadow: 0 16px 40px rgba(0,0,0,.35); z-index: 10; }

/* ------------------------------------------------------------------ Google and sign-in pages */
.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: 34px; }
.oauth-card p { margin: 0; line-height: 1.5; }
.oauth-card .login-logo { width: 150px; height: 55px; object-fit: contain; filter: brightness(0) invert(1); }
.oauth-card .login-en { font-size: 12px; color: var(--left-muted); }

/* ------------------------------------------------------------------ motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.06); } }
@keyframes rise { 0% { transform: translateY(10px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-34px); opacity: 0; } }
@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, .phases, .phases-outer, .phases-inner, .sphere.pulse, .round-btn.spinning svg { animation: none; }
  .drop { animation: none; opacity: .6; }
}

/* ------------------------------------------------------------------ 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; }
  .spaces { display: none; }
  .greeting h1 { font-size: 28px; }
  .statusbar { padding: 10px 16px; }
}
