[hidden] { display: none !important; }
/* ---------- Themes ---------- */
:root, [data-theme="daylight"] {
  --bg: #EEF4FB; --shape: #D9E7FA; --card: #FFFFFF; --line: #E1EAF5; --text: #12213A; --muted: #5A6B85; --faint: #8A97AB;
  --accent: #2F6FEB; --accent2: #1D4FB8; --ink: #FFFFFF; --soft: #E6EFFD; --good: #16A34A; --bad: #DC2626;
  --shadow: 0 8px 24px rgba(31, 79, 184, .08); --bw: 1px; --tab: rgba(255,255,255,.92); --input: #F3F7FC;
  --bird1: #D9A06E; --bird2: #98643F; --cap: #6B4228; --belly: #F8ECD9; --wing: #7A4E30; --beak: #F9A830; --feet: #E8A040;
  color-scheme: light;
}
[data-theme="midnight"] {
  --bg: #0B0F1A; --shape: #121A2C; --card: #141A2A; --line: #222B40; --text: #E8ECF5; --muted: #8C96AE; --faint: #646E87;
  --accent: #C6F432; --accent2: #A6D11A; --ink: #0B0F1A; --soft: #1C2438; --good: #4ADE80; --bad: #F87171;
  --shadow: 0 10px 30px rgba(0,0,0,.35); --tab: rgba(20,26,42,.94); --input: #10172A;
  --bird1: #D6F75E; --bird2: #A6D11A; --cap: #2E3A55; --belly: #F2F9D9; --wing: #3B4866; --beak: #FFB547; --feet: #C6F432;
  color-scheme: dark;
}
[data-theme="pop"] {
  --bg: #FFE14D; --shape: #FFD21F; --card: #FFFFFF; --line: #111111; --text: #111111; --muted: #3B3B3B; --faint: #6B6B6B;
  --accent: #FF7A59; --accent2: #E85A37; --ink: #111111; --soft: #FFF4B8; --good: #15803D; --bad: #B91C1C;
  --shadow: 4px 4px 0 #111; --bw: 2.5px; --tab: #FFFFFF; --input: #FFFFFF;
  --bird1: #FF9A7E; --bird2: #FF7A59; --cap: #111111; --belly: #FFFFFF; --wing: #111111; --beak: #111111; --feet: #111111;
  color-scheme: light;
}
[data-theme="sage"] {
  --bg: #E7EFE9; --shape: #D3E3D8; --card: #F7FAF7; --line: #DCE7DF; --text: #1E2D25; --muted: #4E6357; --faint: #7D9086;
  --accent: #2E7D5B; --accent2: #22634A; --ink: #FFFFFF; --soft: #E0ECE4; --good: #15803D; --bad: #B91C1C;
  --shadow: 0 10px 30px rgba(30,45,37,.08); --tab: rgba(247,250,247,.94); --input: #EEF4F0;
  --bird1: #B48B66; --bird2: #8E6A4C; --cap: #5E4535; --belly: #F2E8DB; --wing: #6E5440; --beak: #E9A23B; --feet: #E9A23B;
  color-scheme: light;
}
[data-theme="sunset"] {
  --bg: #140C08; --shape: #3A2213; --card: rgba(255, 236, 214, .065); --line: rgba(255, 196, 130, .14); --text: #FBF3E9; --muted: #C2AE99; --faint: #8F7C6A;
  --accent: #F9A830; --accent2: #F28A3C; --ink: #1A1008; --soft: rgba(249,168,48,.14); --good: #4ADE80; --bad: #F87171;
  --shadow: 0 12px 34px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,226,190,.07); --tab: rgba(30,20,13,.86); --input: rgba(0,0,0,.28);
  --bird1: #D9A06E; --bird2: #98643F; --cap: #6B4228; --belly: #F8ECD9; --wing: #7A4E30; --beak: #F9A830; --feet: #E8A040;
  --grad: linear-gradient(135deg, #FBC56A, #F28A3C);
  color-scheme: dark;
}
[data-theme="blossom"] {
  --bg: #1B0E13; --shape: #4A1F2E; --card: rgba(255, 220, 230, .07); --line: rgba(255, 168, 190, .16); --text: #FFF2F5; --muted: #E0B5C0; --faint: #A27C87;
  --accent: #F58FA8; --accent2: #E2648A; --ink: #2B0E19; --soft: rgba(245,143,168,.15); --good: #4ADE80; --bad: #FF7A85;
  --shadow: 0 12px 34px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,214,226,.08); --tab: rgba(38,18,26,.88); --input: rgba(0,0,0,.26);
  --grad: linear-gradient(135deg, #FFB6C8, #EF7598);
  color-scheme: dark;
}
[data-theme="petal"] {
  --bg: #FFF1F4; --shape: #FFD9E2; --card: #FFFFFF; --line: #F8DCE4; --text: #3A1622; --muted: #8A5866; --faint: #B48E99;
  --accent: #E0607E; --accent2: #C9486A; --ink: #FFFFFF; --soft: #FFE6EC; --good: #15803D; --bad: #D93A4F;
  --shadow: 0 10px 28px rgba(201,72,106,.10); --tab: rgba(255,255,255,.94); --input: #FFF6F8;
  --grad: linear-gradient(135deg, #F48CA6, #DC5A7C);
  color-scheme: light;
}
[data-theme="graphite"] {
  --bg: #0F1013; --shape: transparent; --card: #18191E; --line: rgba(255,255,255,.07); --text: #EDEDF0; --muted: #9C9DA6; --faint: #6D6E77;
  --accent: #EDB24E; --accent2: #D99A2F; --ink: #1A1206; --soft: rgba(237,178,78,.12); --good: #3FC48C; --bad: #EF6B6B;
  --shadow: 0 6px 18px rgba(0,0,0,.28); --tab: rgba(20,21,25,.92); --input: #121317;
  --grad: linear-gradient(180deg, #EDB24E, #E0963F);
  color-scheme: dark;
}
[data-theme="space"] {
  --bg: #0B0A1F; --shape: #2A1647; --card: rgba(255, 255, 255, .07); --line: rgba(255, 255, 255, .12); --text: #FFFFFF; --muted: #C9C3E6; --faint: #8E88B3;
  --accent: #F58FA8; --accent2: #7C5CFF; --ink: #1A1008; --soft: rgba(245,143,168,.14); --good: #34D399; --bad: #FF7A85;
  --shadow: 0 12px 34px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.07); --tab: rgba(16,13,40,.86); --input: rgba(0,0,0,.3);
  --grad: linear-gradient(135deg, #FBC56A, #F28A3C);
  color-scheme: dark;
}
:root { --r: 22px; --bw: 1px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif; }
[data-theme="pop"] { --bw: 2.5px; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 16px/1.42 var(--font); overscroll-behavior: none; -webkit-font-smoothing: antialiased; transition: background .3s; }
.bg-shape { position: fixed; z-index: 0; pointer-events: none; width: 420px; height: 420px; border-radius: 50%; background: var(--shape); top: -210px; right: -140px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--text); }
a { color: var(--accent); }
[data-theme="pop"] a { color: #111; }

.card { background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
[data-theme="sunset"] .card { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

/* Header */
.top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(14px + var(--safe-t)) 18px 10px; background: linear-gradient(var(--bg) 60%, transparent); }
.hello { font-size: 25px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; }
.today { color: var(--muted); font-size: 14px; font-weight: 600; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--card); border: var(--bw) solid var(--line); color: var(--muted); box-shadow: var(--shadow); }

main { position: relative; z-index: 1; padding: 0 16px calc(176px + var(--safe-b)); max-width: 640px; margin: 0 auto; }
.view { display: none; animation: fade .25s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Hero + bird */
.hero { display: flex; gap: 8px; align-items: center; padding: 12px 16px 12px 6px; margin-top: 4px; overflow: hidden; position: relative; }
.bird-wrap { position: relative; width: 124px; height: 106px; flex: none; cursor: pointer; }
.bird { width: 124px; height: 106px; overflow: visible; filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); }
.bird .b1 { stop-color: var(--bird1); } .bird .b2 { stop-color: var(--bird2); }
.bird .cap-f { fill: var(--cap); } .bird .belly-f { fill: var(--belly); } .bird .wing-f { fill: var(--wing); } .bird .beak-f { fill: var(--beak); } .bird .feet-s { stroke: var(--feet); }
.body-g, .wing, .tail { transform-box: fill-box; }
.bird .body-g { animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.bird .wing { transform-origin: 85% 20%; animation: bob 3.2s ease-in-out infinite; }
.bird .tail { transform-origin: 0% 50%; animation: wag 2.6s ease-in-out infinite; }
.bird .eye { animation: blink 4.5s infinite; transform-box: fill-box; transform-origin: center; }
.bird.talking .wing, .bird.listening .wing { animation: flap .22s ease-in-out infinite alternate; }
.bird.talking .beak { animation: chirp .18s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0%; }
.bird.happy .body-g { animation: hop .5s ease-out 2; }
.bird.fly { animation: flyin 1.1s cubic-bezier(.2,.8,.2,1) both; }
.bird.fly .wing { animation: flap .12s ease-in-out infinite alternate; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes wag { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-7deg); } }
@keyframes blink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes flap { from { transform: rotate(0); } to { transform: rotate(-30deg) translateY(-4px); } }
@keyframes chirp { from { transform: scaleY(1); } to { transform: scaleY(1.25); } }
@keyframes hop { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-12px) scale(.97,1.04); } 70% { transform: translateY(0) scale(1.05,.94); } }
@keyframes flyin { 0% { transform: translate(-160px,-80px) rotate(-18deg) scale(.7); opacity: 0; } 60% { transform: translate(10px,-10px) rotate(4deg); opacity: 1; } 80% { transform: translate(0,4px) scale(1.06,.92); } 100% { transform: none; } }
.pulse { position: absolute; inset: 10px 14px; border-radius: 50%; pointer-events: none; }
.pulse.on { animation: ring 1.2s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 100% { box-shadow: 0 0 0 26px transparent; } }
.hero-text { flex: 1; min-width: 0; }
.brief { font-size: 15.5px; white-space: pre-line; }
.hero-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border-radius: 999px; background: var(--soft); border: var(--bw) solid var(--line);
  font-size: 14px; font-weight: 700; color: var(--text); min-height: 38px; }
.chip:active, .pill-btn:active, .btn:active { transform: scale(.97); }
.pill-btn { padding: 8px 14px; border-radius: 999px; background: var(--soft); font-weight: 700; font-size: 14px; min-height: 38px; }
.pill-btn.solid { background: var(--accent); color: var(--ink); }

/* Up next, day, weather */
.up-next { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 12px; background: var(--accent); color: var(--ink); border-color: transparent; }
[data-theme="pop"] .up-next { border-color: #111; }
.un-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: rgba(255,255,255,.22); flex: none; }
.up-next .txt, .day-card .txt, .item .txt, .alert .txt { flex: 1; min-width: 0; }
.up-next .t1 { font-weight: 800; font-size: 16.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.un-k { font-size: 11px; font-weight: 900; letter-spacing: 1px; opacity: .85; }
.un-t { text-align: right; font-weight: 800; font-size: 14px; } .un-t small { opacity: .8; font-weight: 600; }
.row2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.day-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.day-card .t1 { font-weight: 750; font-size: 14.5px; }
.ring { --p: 0; width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--accent) calc(var(--p) * 360deg), var(--soft) 0); }
.ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.ring span { position: relative; font-size: 13px; font-weight: 800; }
.weather-card { padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; }
.w-temp { font-size: 24px; font-weight: 800; } .w-sky { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link { color: var(--accent); font-size: 14px; font-weight: 700; } .link.small { font-size: 13px; padding: 4px 0; }
[data-theme="pop"] .link, [data-theme="midnight"] .link { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.prayer-card { margin-top: 10px; padding: 12px 14px; }
.pr-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pr-head b { font-size: 15px; } .pr-head span { font-size: 13px; color: var(--muted); }
.pr-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; text-align: center; }
.pr-row div { padding: 6px 2px; border-radius: 12px; font-size: 11.5px; color: var(--muted); }
.pr-row div b { display: block; font-size: 13px; color: var(--text); }
.pr-row div.next { background: var(--accent); color: var(--ink); } .pr-row div.next b { color: var(--ink); }
.habits { margin-top: 10px; padding: 10px 14px; }
.habit { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.habit .hb-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.habit .hb-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s; }
.habit .hb-t { font-weight: 700; font-size: 14px; min-width: 90px; } .habit .hb-n { font-size: 13px; color: var(--muted); min-width: 34px; text-align: right; }
.habit button { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 18px; }

.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 4px 8px; font-weight: 800; font-size: 17px; }

/* Lists */
.list { padding: 4px 0; overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
[data-theme="pop"] .item { border-top-width: 2px; }
.item .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; flex: none; background: var(--soft); }
.item .t1 { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.item .t2 { color: var(--muted); font-size: 13px; margin-top: 1px; }
.item.done .t1 { text-decoration: line-through; color: var(--faint); }
.item .acts { display: flex; gap: 2px; }
.item .acts button { width: 36px; height: 36px; border-radius: 10px; color: var(--muted); font-size: 16px; }
.item .acts button:hover { background: var(--soft); }
.check { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--accent); flex: none; display: grid; place-items: center; font-weight: 900; color: var(--ink); }
.done .check { background: var(--accent); }
.empty { padding: 22px 16px; text-align: center; color: var(--muted); font-size: 14.5px; } .empty b { color: var(--text); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--soft); font-size: 11.5px; font-weight: 700; color: var(--muted); margin-inline-start: 4px; }

.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.q { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.q span { font-size: 24px; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: var(--card); border: var(--bw) solid var(--line); box-shadow: var(--shadow); }
.ai-apps { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-apps button { padding: 9px 14px; border-radius: 14px; background: var(--card); border: var(--bw) solid var(--line); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }
.install { margin-top: 18px; padding: 14px 16px; font-size: 14px; color: var(--muted); } .install b { color: var(--text); }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; font-size: 15.5px; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--ink); border-end-end-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--card); border: var(--bw) solid var(--line); border-end-start-radius: 6px; box-shadow: var(--shadow); }
.msg .src { display: block; margin-top: 4px; font-size: 11px; color: var(--faint); }
.msg .cal { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.msg .res { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; white-space: normal; }
.res-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--soft); font-size: 13.5px; }
.res-row .txt { flex: 1; min-width: 0; } .res-row .t1 { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .res-row .t2 { font-size: 12px; color: var(--muted); }
.res-row button { padding: 6px 10px; border-radius: 10px; background: var(--card); font-weight: 700; font-size: 12.5px; }
.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: dots 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

/* Segmented */
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--card); border: var(--bw) solid var(--line); margin: 6px 0 12px; box-shadow: var(--shadow); }
.seg.scroll { overflow-x: auto; scrollbar-width: none; } .seg.scroll::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; padding: 9px 12px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--accent); color: var(--ink); }
.seg.small button { padding: 7px 10px; font-size: 13px; }
.hint { color: var(--faint); font-size: 13px; text-align: center; margin-top: 12px; }

/* Memory */
.search { display: flex; align-items: center; gap: 10px; padding: 4px 14px; margin-top: 4px; }
.search input { flex: 1; border: 0; outline: none; background: transparent; padding: 10px 0; font-size: 16px; }
.mem-day { margin: 16px 4px 6px; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

/* Tools */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; font-size: 13px; font-weight: 700; text-align: center; min-height: 92px; justify-content: center; }
.tool span { font-size: 26px; } .tool b { font-weight: 700; }
.tool-panel { margin-top: 12px; padding: 16px; }
.tool-panel h3 { margin: 0 0 8px; font-size: 17px; }
textarea.field-in, .tool-panel input:not([type=checkbox]), .tool-panel select { width: 100%; padding: 11px 13px; border-radius: 13px; background: var(--input); border: var(--bw) solid var(--line); outline: none; margin: 4px 0; }
textarea.field-in { min-height: 120px; resize: vertical; }
.desktop-only { display: none !important; }
html.desktop .desktop-only { display: revert !important; }
html.desktop .phone-only { display: none !important; }

/* Ask bar */
.ask { position: fixed; z-index: 10; left: 12px; right: 12px; bottom: calc(80px + var(--safe-b)); display: flex; align-items: center; gap: 6px;
  padding: 6px 6px 6px 8px; border-radius: 999px; max-width: 616px; margin: 0 auto; background: var(--card); border: var(--bw) solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.ask input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; padding: 8px 2px; }
.ask input::placeholder { color: var(--faint); }
.attach, .mic, .send { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.attach { color: var(--muted); }
.mic { color: var(--text); background: var(--soft); }
.mic.on { background: var(--bad); color: #fff; animation: ring 1.2s ease-out infinite; }
html.no-mic .mic { display: none; }
.send { color: var(--ink); background: var(--accent); }
.attached { display: flex; gap: 4px; max-width: 40%; overflow: hidden; }
.attached span { padding: 4px 8px; border-radius: 10px; background: var(--soft); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.listen-hint { position: fixed; z-index: 9; left: 50%; transform: translateX(-50%); bottom: calc(142px + var(--safe-b)); font-size: 12px; font-weight: 700; color: var(--muted);
  pointer-events: none; padding: 4px 10px; border-radius: 999px; background: var(--tab); border: var(--bw) solid var(--line); white-space: nowrap; }

/* Tabs */
.tabs { position: fixed; z-index: 10; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); display: flex; padding: 6px; border-radius: 24px;
  max-width: 616px; margin: 0 auto; background: var(--tab); border: var(--bw) solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.12);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 18px; font-size: 11.5px; color: var(--faint); font-weight: 700; min-height: 50px; }
.tabs button.on { color: var(--accent); background: var(--soft); }
[data-theme="pop"] .tabs button.on, [data-theme="midnight"] .tabs button.on { color: var(--text); }
[data-theme="midnight"] .tabs button.on svg { color: var(--accent); }

/* Alert banner */
.alert { position: fixed; z-index: 30; left: 12px; right: 12px; top: calc(10px + var(--safe-t)); max-width: 616px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  padding: 12px 12px 12px 14px; border-radius: 20px; background: var(--card); border: var(--bw) solid var(--accent); box-shadow: 0 14px 40px rgba(0,0,0,.2); animation: drop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes drop { from { transform: translateY(-120%); } to { transform: none; } }
.alert-ic { font-size: 24px; } .alert .txt { flex: 1 1 calc(100% - 50px); } .alert .t1 { font-weight: 800; } .alert .t2 { font-size: 12.5px; color: var(--muted); }
.alert .pill-btn { flex: 1; min-height: 40px; }

/* Sheets */
.sheet-bg { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.35); }
.sheet { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 90vh; overflow: auto; margin: 0 auto; max-width: 640px;
  border-radius: 26px 26px 0 0; padding: 10px 18px calc(24px + var(--safe-b)); background: var(--bg); border: var(--bw) solid var(--line); animation: up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -10px; background: var(--bg); padding: 4px 0 10px; z-index: 2; }
.sheet h2 { margin: 0; font-size: 22px; }
details { background: var(--card); border: var(--bw) solid var(--line); border-radius: 18px; padding: 4px 14px; margin: 10px 0; }
summary { cursor: pointer; padding: 10px 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "›"; transform: rotate(90deg); color: var(--muted); transition: transform .2s; } details[open] summary::after { transform: rotate(-90deg); }
summary::-webkit-details-marker { display: none; }
.field { display: block; margin: 10px 0; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 14px; background: var(--input); border: var(--bw) solid var(--line); outline: none; color: var(--text); font: inherit; }
.field textarea { resize: vertical; min-height: 110px; line-height: 1.4; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.row { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.row input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.btn { display: block; width: 100%; margin-top: 10px; padding: 13px; border-radius: 15px; font-weight: 800; background: var(--accent); color: var(--ink); text-align: center; }
.btn.ghost { background: var(--soft); color: var(--text); }
.btn.danger { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.btn:disabled { opacity: .5; }
.row-btns { display: flex; gap: 8px; } .row-btns .btn { flex: 1; }
.small-text { font-size: 13px; color: var(--muted); margin: 6px 0; }
.center { text-align: center; margin-top: 16px; }
.progress { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; margin-top: 10px; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.themes button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; border-radius: 14px; background: var(--input); font-size: 12px; font-weight: 700; border: 2px solid transparent; }
.themes button.on { border-color: var(--accent); }
.themes i { width: 26px; height: 26px; border-radius: 50%; display: block; }
.key-row { display: flex; gap: 6px; align-items: center; } .key-row input { flex: 1; } .key-row a { font-size: 12px; white-space: nowrap; }

/* Check-in */
.checkin { z-index: 22; }
.ci-head { display: flex; gap: 12px; align-items: center; } .ci-head h2 { margin: 0; }
.ci-moon { font-size: 40px; }
.ci-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.ci-row:first-child { border-top: 0; } .ci-row .txt { flex: 1; min-width: 0; } .ci-row .t1 { font-weight: 650; } .ci-row .t2 { color: var(--muted); font-size: 12.5px; }
.ci-row.done .t1 { text-decoration: line-through; color: var(--faint); } .ci-row.done .check { background: var(--good); border-color: var(--good); color: #fff; }
.ci-row.moved { opacity: .55; }
#ciList { margin: 10px 0 6px; max-height: 46vh; overflow: auto; }

/* Panel contents */
.qr-box { display: flex; justify-content: center; padding: 14px; background: #fff; border-radius: 18px; margin: 10px auto; max-width: 300px; }
.qr-box svg { width: 100%; height: auto; }
video.scan { width: 100%; border-radius: 18px; background: #000; max-height: 50vh; object-fit: cover; }
.report { white-space: pre-wrap; padding: 14px; border-radius: 16px; background: var(--card); border: var(--bw) solid var(--line); font-size: 14.5px; }
.live { min-height: 160px; max-height: 45vh; overflow: auto; padding: 14px; border-radius: 16px; background: var(--card); border: var(--bw) solid var(--line); font-size: 15px; white-space: pre-wrap; }
.live .partial { color: var(--muted); }

/* Focus */
.focus { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.focus-ring { position: relative; width: 240px; height: 240px; }
.focus-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fr-bg { fill: none; stroke: var(--soft); stroke-width: 8; } .fr-fg { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 339.3; transition: stroke-dashoffset 1s linear; }
.focus-time { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; }
.focus-lbl { color: var(--muted); font-weight: 600; } .focus .btn { max-width: 220px; }

.toast { position: fixed; z-index: 35; left: 50%; top: calc(16px + var(--safe-t)); transform: translateX(-50%); padding: 10px 16px; border-radius: 14px;
  background: var(--card); border: var(--bw) solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.18); font-size: 14.5px; max-width: 90vw; text-align: center; animation: fade .2s ease; }

/* Simple mode: bigger, calmer */
html.simple body { font-size: 19px; }
html.simple .advanced, html.simple .tabs button[data-v="memory"], html.simple .tabs button[data-v="tools"], html.simple .attach { display: none !important; }
html.simple .hello { font-size: 30px; } html.simple .item .t1 { font-size: 18px; } html.simple .chip { font-size: 17px; padding: 12px 18px; }
html.simple .msg { font-size: 19px; } html.simple .ask input { font-size: 19px; }

/* Desktop panel (Mac / Windows app) */
html.desktop main { padding-bottom: 170px; }
html.desktop .top { padding-top: 38px; }

/* RTL (Urdu, Arabic) */
[dir="rtl"] .bg-shape { right: auto; left: -140px; }
[dir="rtl"] .un-t { text-align: left; }

@media (min-width: 700px) { .quick { grid-template-columns: repeat(8, minmax(0, 1fr)); } .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }


/* =====================================================================
   Warm glass look (default) — soft light, glass cards, gentle motion
   ===================================================================== */
:root { --spring: cubic-bezier(.2, 1.25, .35, 1); --ease: cubic-bezier(.2, .8, .2, 1); --grad: linear-gradient(135deg, var(--accent), var(--accent2)); }
[data-theme="sunset"] body {
  background: radial-gradient(120% 70% at 50% -10%, #3A2213 0%, #22150D 38%, #120B07 100%) fixed;
}
[data-theme="sunset"] .bg-shape { width: 520px; height: 520px; top: -180px; right: -160px; opacity: .9;
  background: radial-gradient(closest-side, rgba(249,168,48,.32), rgba(242,138,60,.12) 55%, transparent); filter: blur(10px); animation: drift 18s ease-in-out infinite alternate; }
[data-theme="sunset"] body::before { content: ""; position: fixed; z-index: 0; pointer-events: none; width: 420px; height: 420px; left: -180px; top: 38vh;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(242,138,60,.18), transparent); filter: blur(12px); animation: drift 22s ease-in-out -6s infinite alternate-reverse; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 30px) scale(1.08); } 100% { transform: translate(30px, -20px) scale(.95); } }
[data-theme="sunset"] .card, [data-theme="sunset"] details, [data-theme="sunset"] .seg, [data-theme="sunset"] .ask, [data-theme="sunset"] .tabs {
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
[data-theme="sunset"] .ask { background: rgba(30,20,13,.82); }
[data-theme="sunset"] .sheet { background: rgba(22,14,9,.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
[data-theme="sunset"] .sheet-head { background: transparent; }
[data-theme="sunset"] .up-next { background: var(--grad); color: var(--ink); box-shadow: 0 14px 36px rgba(242,138,60,.32); }
[data-theme="sunset"] .send, [data-theme="sunset"] .btn:not(.ghost):not(.danger), [data-theme="sunset"] .pill-btn.solid,
[data-theme="sunset"] .seg button.on, [data-theme="sunset"] .msg.me, [data-theme="sunset"] .habit button, [data-theme="sunset"] .pr-row div.next { background: var(--grad); color: var(--ink); }
[data-theme="sunset"] .tabs button.on { color: var(--accent); background: rgba(249,168,48,.13); }
[data-theme="sunset"] .ring { background: conic-gradient(var(--accent) calc(var(--p) * 360deg), rgba(255,255,255,.07) 0); }
[data-theme="sunset"] .ring::before { background: #1E140D; }
[data-theme="sunset"] .top { background: linear-gradient(#170E09 70%, rgba(23,14,9,0)); }

[data-theme="blossom"] body { background: radial-gradient(120% 70% at 50% -10%, #4A1F2E 0%, #26111A 40%, #12080C 100%) fixed; }
[data-theme="blossom"] .bg-shape { width: 520px; height: 520px; top: -180px; right: -160px; opacity: .9;
  background: radial-gradient(closest-side, rgba(245,143,168,.30), rgba(226,100,138,.10) 55%, transparent); filter: blur(10px); animation: drift 18s ease-in-out infinite alternate; }
[data-theme="blossom"] body::before { content: ""; position: fixed; z-index: 0; pointer-events: none; width: 420px; height: 420px; left: -180px; top: 38vh;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255,160,185,.16), transparent); filter: blur(12px); animation: drift 22s ease-in-out -6s infinite alternate-reverse; }
[data-theme="blossom"] .card, [data-theme="blossom"] details, [data-theme="blossom"] .seg, [data-theme="blossom"] .ask, [data-theme="blossom"] .tabs {
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
[data-theme="blossom"] .ask { background: rgba(40,18,27,.84); }
[data-theme="blossom"] .sheet { background: rgba(28,12,19,.95); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
[data-theme="blossom"] .sheet-head { background: transparent; }
[data-theme="blossom"] .up-next, [data-theme="petal"] .up-next { background: var(--grad); color: var(--ink); box-shadow: 0 14px 36px rgba(226,100,138,.30); }
[data-theme="petal"] .up-next { color: #fff; }
[data-theme="blossom"] .send, [data-theme="blossom"] .btn:not(.ghost):not(.danger), [data-theme="blossom"] .pill-btn.solid,
[data-theme="blossom"] .seg button.on, [data-theme="blossom"] .msg.me, [data-theme="blossom"] .habit button, [data-theme="blossom"] .pr-row div.next,
[data-theme="petal"] .send, [data-theme="petal"] .btn:not(.ghost):not(.danger), [data-theme="petal"] .pill-btn.solid, [data-theme="petal"] .seg button.on, [data-theme="petal"] .msg.me { background: var(--grad); color: var(--ink); }
[data-theme="blossom"] .tabs button.on { color: var(--accent); background: rgba(245,143,168,.14); }
[data-theme="blossom"] .ring { background: conic-gradient(var(--accent) calc(var(--p) * 360deg), rgba(255,255,255,.07) 0); }
[data-theme="blossom"] .ring::before { background: #24101A; }
[data-theme="blossom"] .top { background: linear-gradient(#1B0E13 70%, rgba(27,14,19,0)); }

/* ---------- the pink sparrow (page-mascot sprites) ---------- */
.mascot { position: relative; display: block; cursor: pointer; user-select: none; -webkit-user-select: none; outline: none; }
.mascot-squash { position: relative; display: block; width: 100%; height: 100%; transform-origin: 50% 78%; }
.mascot-layer { position: absolute; inset: 0; background-size: 300% 300%; background-repeat: no-repeat; transition: opacity .05s; }
.bird.mascot { width: 116px; height: 116px; margin: -6px 0 0 4px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.22)); animation: bob 3.2s ease-in-out infinite; }
.bird.mascot.talking .mascot-squash { animation: chatter .32s ease-in-out infinite alternate; }
.bird.mascot.listening { filter: drop-shadow(0 0 16px rgba(245,143,168,.65)) drop-shadow(0 10px 12px rgba(0,0,0,.2)); }
.bird.mascot.happy { animation: hop .5s ease-out 2; }
@keyframes chatter { from { transform: scale(1, 1); } to { transform: scale(1.03, .97) translateY(1px); } }
.live-orb .mascot { width: 132px; height: 132px; filter: drop-shadow(0 0 calc(24px + var(--lv) * 50px) rgba(245,143,168,.5)); transform: scale(calc(1 + var(--lv) * .06)); transition: transform .08s; }

/* motion */
.view.active > * { animation: rise .5s var(--ease) both; }
.view.active > *:nth-child(2) { animation-delay: .04s; } .view.active > *:nth-child(3) { animation-delay: .08s; }
.view.active > *:nth-child(4) { animation-delay: .12s; } .view.active > *:nth-child(5) { animation-delay: .16s; }
.view.active > *:nth-child(6) { animation-delay: .2s; } .view.active > *:nth-child(n+7) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.msg { animation: pop .35s var(--spring) both; transform-origin: bottom left; } .msg.me { transform-origin: bottom right; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
.chip, .pill-btn, .btn, .q span, .tool, .tabs button, .send, .mic, .icon-btn, .habit button, .ai-apps button { transition: transform .25s var(--spring), background .25s, box-shadow .25s; }
.chip:hover, .tool:hover, .q:hover span, .ai-apps button:hover { transform: translateY(-2px); }
.tool:active, .q:active span, .send:active, .mic:active, .icon-btn:active { transform: scale(.94); }
.up-next { position: relative; overflow: hidden; }
.up-next::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-100%); animation: shine 5.5s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.bird-wrap:hover .bird .body-g { animation: hop .5s var(--ease); }
.item { transition: background .2s; } .item:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.check { transition: transform .25s var(--spring), background .2s; } .done .check { animation: tick .4s var(--spring); }
@keyframes tick { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.mic.on { box-shadow: 0 0 0 0 rgba(248,113,113,.6); }

/* =====================================================================
   The Sparrow island (Mac + Windows app)
   ===================================================================== */
html.island-mode, html.island-mode body { background: transparent !important; overflow: hidden; height: 100%; }
html.island-mode body::before, html.island-mode .bg-shape { display: none; }
html.island-mode {
  --bg: #0D0906; --card: rgba(255,236,214,.06); --line: rgba(255,200,140,.11); --text: #FBF3E9; --muted: #C2AE99; --faint: #8F7C6A;
  --accent: #F9A830; --accent2: #F28A3C; --ink: #1A1008; --soft: rgba(249,168,48,.13); --input: rgba(255,255,255,.05);
  --shadow: inset 0 1px 0 rgba(255,226,190,.05); --tab: rgba(255,255,255,.04); --grad: linear-gradient(135deg, #FBC56A, #F28A3C);
  --bird1: #D9A06E; --bird2: #98643F; --cap: #6B4228; --belly: #F8ECD9; --wing: #7A4E30; --beak: #F9A830; --feet: #E8A040; color-scheme: dark;
}
#island { position: fixed; z-index: 100; top: 0; left: 50%; transform: translateX(-50%); width: 300px; height: 36px; overflow: hidden;
  border-radius: 0 0 20px 20px; background: linear-gradient(180deg, #000 0%, #0D0906 60%, #140C08 100%);
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 -1px 0 rgba(255,200,140,.12);
  transition: width .55s var(--spring), height .6s var(--spring), border-radius .5s var(--ease), opacity .3s, box-shadow .4s; }
.cap-hover #island { width: 326px; height: 40px; }
.isl-peek #island { width: 440px; height: 66px; border-radius: 0 0 30px 30px; }
.isl-expanded #island { width: 450px; height: calc(100vh - 8px); border-radius: 0 0 34px 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,200,140,.08), inset 0 -1px 0 rgba(255,200,140,.12); }
.cap-hidden.isl-collapsed:not(.cap-hover) #island { opacity: 0; }
.isl-glow { position: absolute; inset: auto -20% -60% -20%; height: 120%; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(closest-side, rgba(249,168,48,.30), transparent 70%); }
.isl-expanded .isl-glow { opacity: .55; height: 50%; bottom: -10%; animation: drift 16s ease-in-out infinite alternate; }
.isl-listening .isl-glow { opacity: 1; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .6; } }

.cap { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 12px 0 8px;
  color: #FBF3E9; text-align: start; transition: opacity .25s, height .5s var(--spring); }
.cap-hover .cap { height: 40px; }
.isl-peek .cap { height: 66px; padding: 0 18px 0 12px; gap: 12px; }
.isl-expanded .cap { opacity: 0; pointer-events: none; }
.cap-bird { width: 26px; height: 26px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; transition: width .5s var(--spring), height .5s var(--spring); }
.cap-bird img { width: 100%; height: 100%; object-fit: cover; animation: bob 3.2s ease-in-out infinite; }
.isl-peek .cap-bird { width: 44px; height: 44px; }
.cap-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.cap-txt b { font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-txt small { font-size: 11px; color: #C2AE99; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isl-peek .cap-txt b { font-size: 15px; } .isl-peek .cap-txt small { font-size: 12.5px; margin-top: 2px; }
.cap-wave { display: flex; gap: 3px; align-items: center; height: 18px; opacity: .35; transition: opacity .3s; }
.cap-wave i { width: 3px; height: 6px; border-radius: 2px; background: #F9A830; }
.isl-listening .cap-wave { opacity: 1; } .isl-listening .cap-wave i { animation: wave .9s ease-in-out infinite; }
.cap-wave i:nth-child(2) { animation-delay: .15s !important; } .cap-wave i:nth-child(3) { animation-delay: .3s !important; } .cap-wave i:nth-child(4) { animation-delay: .45s !important; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 17px; } }
html.has-notch .isl-collapsed .cap-txt, html.has-notch.isl-collapsed .cap-txt { visibility: hidden; }

.isl-body { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; opacity: 0; pointer-events: none; transform: translateY(-10px) scale(.98);
  transition: opacity .2s, transform .45s var(--spring); scrollbar-width: thin; }
.isl-expanded .isl-body { opacity: 1; pointer-events: auto; transform: none; transition: opacity .35s .15s, transform .55s var(--spring) .1s; }
.isl-body::-webkit-scrollbar { width: 6px; } .isl-body::-webkit-scrollbar-thumb { background: rgba(255,200,140,.18); border-radius: 3px; }
html.island-mode .top { padding: 16px 20px 8px; background: linear-gradient(#0D0906 70%, rgba(13,9,6,0)); }
html.island-mode.has-notch .top { padding-top: 40px; }
html.island-mode main { padding: 0 18px 190px; max-width: none; }
html.island-mode .ask { position: fixed; left: 16px; right: 16px; bottom: 76px; background: #221710; border-color: rgba(255,200,140,.14); box-shadow: none; }
html.island-mode .tabs { position: fixed; left: 16px; right: 16px; bottom: 14px; background: #1A120C; border-color: rgba(255,200,140,.09); box-shadow: none; }
html.island-mode .listen-hint { display: none !important; }
html.island-mode .sheet { position: fixed; max-height: calc(100% - 20px); border-radius: 28px 28px 0 0; background: #120B07; border-color: rgba(255,200,140,.12); }
html.island-mode .sheet-bg { position: fixed; border-radius: 0 0 38px 38px; }
html.island-mode .alert { position: fixed; top: 12px; left: 16px; right: 16px; }
html.island-mode .focus { position: fixed; border-radius: 0 0 38px 38px; background: #0D0906; }
html.island-mode .toast { position: fixed; top: 14px; }
html.island-mode .up-next, html.island-mode .send, html.island-mode .btn:not(.ghost):not(.danger), html.island-mode .pill-btn.solid,
html.island-mode .seg button.on, html.island-mode .msg.me, html.island-mode .habit button, html.island-mode .pr-row div.next { background: var(--grad); color: var(--ink); }
html.island-mode .ring::before { background: #17100B; }
html.island-mode details, html.island-mode .card { background: rgba(255,236,214,.055); }
.isl-shrink { margin-inline-start: 6px; }
html.island-mode .field:has(#sTheme) { display: none; }
html.island-mode .isl-body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 150px; pointer-events: none; z-index: 5;
  background: linear-gradient(rgba(20,12,8,0), #140C08 55%); border-radius: 0 0 38px 38px; }
html.island-mode .ask, html.island-mode .tabs { z-index: 10; }

/* Island in a corner (default: top right) — floats under the menu bar and grows down and inwards */
html.pos-right #island, html.pos-left #island { top: 0; transform: translateZ(0); border-radius: 20px; width: 270px; height: 42px;
  box-shadow: 0 12px 34px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,200,140,.10); }
html.pos-right #island { left: auto; right: 0; } html.pos-left #island { left: 0; right: auto; }
html.pos-right.cap-hover #island, html.pos-left.cap-hover #island { width: 290px; height: 46px; }
html.pos-right.isl-peek #island, html.pos-left.isl-peek #island { width: 400px; height: 70px; border-radius: 26px; }
html.pos-right.isl-expanded #island, html.pos-left.isl-expanded #island { width: 450px; height: calc(100vh - 6px); border-radius: 30px; }
html.pos-right .cap, html.pos-left .cap { height: 42px; padding: 0 14px 0 8px; }
html.pos-right.isl-peek .cap, html.pos-left.isl-peek .cap { height: 70px; }
html.pos-right #island .isl-glow, html.pos-left #island .isl-glow { border-radius: 30px; }
html.pos-right.island-mode .sheet-bg, html.pos-left.island-mode .sheet-bg, html.pos-right.island-mode .focus, html.pos-left.island-mode .focus { border-radius: 30px; }
html.pos-right.island-mode .top, html.pos-left.island-mode .top { padding-top: 14px; }
html.pos-right.island-mode .isl-body::after, html.pos-left.island-mode .isl-body::after { border-radius: 0 0 30px 30px; }
html.island-mode .isl-body { scrollbar-width: none; } html.island-mode .isl-body::-webkit-scrollbar { display: none; }

/* Inside the island: a slim icon rail on the left, content on the right */
html.island-mode .tabs { left: 10px; right: auto; top: 12px; bottom: 12px; width: 58px; flex-direction: column; justify-content: flex-start; gap: 6px;
  padding: 10px 6px; border-radius: 22px; background: rgba(255,255,255,.035); }
html.island-mode .tabs::before { content: ""; display: block; width: 36px; height: 36px; margin: 2px auto 10px; border-radius: 12px;
  background: url(icons/icon-192.png) center/cover; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
html.island-mode .tabs button { flex: none; min-height: 0; height: 52px; padding: 6px 0; border-radius: 16px; font-size: 9.5px; gap: 3px; }
html.island-mode .tabs button svg { width: 20px; height: 20px; }
html.island-mode .tabs button.on { background: var(--grad); color: var(--ink); }
html.island-mode .tabs button.on svg { color: var(--ink); }
html.island-mode .top { padding-left: 84px; }
html.island-mode main { padding: 0 16px 110px 84px; }
html.island-mode .ask { left: 80px; right: 12px; bottom: 12px; }
html.island-mode .isl-body::after { height: 90px; }
html.island-mode .hello { font-size: 22px; }
html.island-mode .hero { padding: 10px 12px 10px 2px; } html.island-mode .bird-wrap, html.island-mode .bird { width: 104px; height: 90px; }
html.island-mode .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html.island-mode .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.island-mode .row2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }

/* New chat */
.chat-bar { display: flex; justify-content: flex-end; position: sticky; top: 0; z-index: 2; padding: 2px 0 6px; }
.chat-bar .pill-btn { min-height: 32px; padding: 6px 12px; font-size: 13px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }

/* On/off switches instead of tick boxes */
.row input[type=checkbox], .sheet input[type=checkbox] {
  -webkit-appearance: none; appearance: none; flex: none; position: relative; cursor: pointer;
  width: 44px; height: 26px; border-radius: 999px; margin: 0;
  background: var(--soft); border: var(--bw, 1px) solid var(--line); transition: background .2s ease, border-color .2s ease;
}
.row input[type=checkbox]::before, .sheet input[type=checkbox]::before {
  content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .22s cubic-bezier(.3,1.4,.5,1);
}
.row input[type=checkbox]:checked, .sheet input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
.row input[type=checkbox]:checked::before, .sheet input[type=checkbox]:checked::before { transform: translateX(18px); }
.row input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chat-bar { gap: 6px; }
.history-list { display: none; flex-direction: column; gap: 6px; margin: 2px 0 10px; max-height: 50vh; overflow: auto; }
.history-list.open { display: flex; }
.hist-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: var(--bw, 1px) solid var(--line); cursor: pointer; transition: transform .15s ease, background .15s ease; }
.hist-row:hover { transform: translateY(-1px); background: var(--soft); }
.hist-row .txt { flex: 1; min-width: 0; }
.hist-row .t1 { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-row .t2 { font-size: 12px; opacity: .65; margin-top: 2px; }
.hist-del { width: 26px; height: 26px; border-radius: 50%; background: transparent; opacity: .5; }
.hist-del:hover { opacity: 1; background: var(--soft); }
.hist-empty { padding: 14px; opacity: .7; font-size: 14px; }

/* Inside the Mac app's compact "More" panel */
html.mac-host { font-size: 14px; }
html.mac-host .hello { font-size: 20px; }
html.mac-host main { padding-top: 6px; }
html.mac-host .hero .bird-wrap { transform: scale(.82); transform-origin: left center; }
html.mac-host .card { border-radius: 18px; }
html.mac-host .tabs button span, html.mac-host .tabs .lbl { font-size: 11px; }

/* ---------- job agent ---------- */
.jb-busy { display: flex; align-items: center; gap: 12px; padding: 26px 6px; color: var(--muted); font-weight: 600; }
.jb-spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--soft); border-top-color: var(--accent); animation: jbspin .8s linear infinite; flex: none; }
@keyframes jbspin { to { transform: rotate(360deg); } }
.jb-empty { text-align: center; padding: 18px 8px; color: var(--muted); }
.jb-empty p { margin: 8px 0 4px; }
.jb-big { font-size: 40px; }
.jb-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 8px; }
.jb-name { font-size: 20px; font-weight: 800; }
.jb-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.jb-score { --v: 50; position: relative; width: 66px; height: 66px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center; }
.jb-score::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--v) * 1%), var(--soft) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); }
.jb-score b { font-size: 19px; line-height: 1; } .jb-score span { font-size: 9.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.jb-summary { background: var(--soft); border-radius: 14px; padding: 11px 13px; margin: 8px 0; line-height: 1.45; }
#jbBody h4 { margin: 16px 0 6px; font-size: 14.5px; }
.jb-list { margin: 0; padding-left: 19px; line-height: 1.45; } .jb-list li { margin: 4px 0; }
.jb-chips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 8px 0; }
.jb-tags { display: flex; flex-wrap: wrap; gap: 6px; } .jb-tags span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--soft); font-weight: 600; }
.jb-search { display: flex; gap: 6px; margin: 4px 0 6px; flex-wrap: wrap; }
.jb-search input { flex: 1 1 140px; min-width: 0; padding: 11px 13px; border-radius: 13px; background: var(--input); border: var(--bw) solid var(--line); outline: none; }
.jb-search input:focus { border-color: var(--accent); }
.jb-level { padding: 10px 12px; border-radius: 13px; background: var(--input); border: var(--bw) solid var(--line); font-weight: 600; }
.jb-card { background: var(--card); border: var(--bw) solid var(--line); border-radius: 16px; padding: 12px 13px; margin: 10px 0; box-shadow: var(--shadow); }
.jb-top { display: flex; gap: 11px; align-items: flex-start; }
.jb-t { font-weight: 800; line-height: 1.25; }
.jb-match { flex: none; min-width: 46px; padding: 6px 0; border-radius: 12px; text-align: center; font-weight: 800; font-size: 14px; }
.jb-match.hi { background: color-mix(in srgb, #22C55E 18%, transparent); color: #16A34A; }
.jb-match.mid { background: color-mix(in srgb, #F59E0B 18%, transparent); color: #D97706; }
.jb-match.lo { background: var(--soft); color: var(--muted); }
.jb-why { font-size: 13.5px; margin: 8px 0 2px; color: var(--text); opacity: .85; }
.jb-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.jb-acts .pill-btn { font-size: 13px; min-height: 34px; padding: 6px 12px; }
.jb-acts select { padding: 7px 10px; border-radius: 999px; background: var(--soft); border: none; font-weight: 700; }
.jb-done { font-size: 13px; font-weight: 700; color: #16A34A; }
.jb-src { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.jb-kit { margin-top: 10px; border-top: var(--bw) solid var(--line); padding-top: 8px; }
.jb-kit summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.jb-letter { white-space: pre-wrap; background: var(--soft); border-radius: 12px; padding: 11px 12px; margin: 8px 0; font-size: 13.5px; line-height: 1.5; max-height: 260px; overflow: auto; }
.jb-qa { margin: 10px 0; } .jb-qa p { margin: 4px 0 6px; font-size: 13.5px; line-height: 1.45; }
.jb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 6px; }
.jb-stats div { background: var(--soft); border-radius: 13px; padding: 9px 4px; text-align: center; }
.jb-stats b { display: block; font-size: 20px; } .jb-stats span { font-size: 11.5px; color: var(--muted); font-weight: 700; }

/* ---------- Jarvis live conversation ---------- */
.mac-host .mac-hide { display: none !important; }
.live-screen { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, #4A1F2E 0%, #1E0D14 60%, #0D0609 100%); color: #FFF2F5; padding: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.live-orb { --lv: 0; position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.live-orb img { width: 112px; height: 112px; border-radius: 30px; transform: scale(calc(1 + var(--lv) * .08)); transition: transform .08s; box-shadow: 0 0 calc(30px + var(--lv) * 60px) rgba(249,168,48,.45); }
.live-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(245,143,168,.5); transform: scale(calc(1 + var(--lv) * .35)); transition: transform .1s; }
.live-ring.r2 { inset: -18px; border-color: rgba(245,143,168,.2); transform: scale(calc(1 + var(--lv) * .55)); }
.live-screen[data-state="connecting"] .live-ring { animation: livepulse 1.4s ease-in-out infinite; }
.live-screen[data-state="working"] .live-ring { border-style: dashed; animation: livespin 2.4s linear infinite; }
@keyframes livepulse { 50% { opacity: .25; transform: scale(1.12); } }
@keyframes livespin { to { transform: rotate(360deg); } }
.live-status { font-weight: 800; letter-spacing: .3px; font-size: 18px; }
.live-caption { min-height: 48px; max-width: 520px; text-align: center; font-size: 15px; line-height: 1.45; color: rgba(243,231,216,.72); }
.live-btns { display: flex; gap: 18px; margin-top: 8px; }
.live-btn { width: 62px; height: 62px; border-radius: 50%; font-size: 24px; background: rgba(255,255,255,.1); color: #F3E7D8; border: 1px solid rgba(255,255,255,.16); }
.live-btn.end { background: #E5484D; border-color: transparent; }

/* ---------- water / coffee / medicine settings ---------- */
.hl-card { background: var(--soft); border-radius: 16px; padding: 4px 12px 8px; margin: 8px 0; }
.hl-top { margin: 8px 0; } .hl-ic { font-size: 20px; }
.hl-card:has([data-f="on"]:not(:checked)) .hl-body { display: none; }
.row-2 { display: flex; gap: 10px; } .row-2 .field { flex: 1; }
.field input[type="time"] { width: 100%; padding: 11px 12px; border-radius: 14px; background: var(--input); border: var(--bw) solid var(--line); color: var(--text); }

/* Mac panel: a little grab handle to drag it anywhere */
.grab { display: none; }
html.mac-host .grab { display: block; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 42px; height: 5px; border-radius: 3px; background: var(--accent, #F58FA8); opacity: .45; cursor: grab; }
html.mac-host .top { cursor: grab; user-select: none; -webkit-user-select: none; }
html.mac-host .top:active { cursor: grabbing; }

/* The original sparrow, pink & white, on every theme */
html, html[data-theme] { --bird1: #FFC2D3; --bird2: #F27BA0; --cap: #E0507E; --belly: #FFFFFF; --wing: #E8608C; --beak: #F9A830; --feet: #F2A0B8; }
.bird .bird-svg { width: 100%; height: 100%; overflow: visible; display: block; }
.bird .look, .bird .eyes { transition: transform .18s ease-out; transform-box: view-box; transform-origin: 100px 120px; }
.bird .brows { opacity: 0; transition: opacity .15s; }
.bird { position: relative; }
.bird.r-hop .body-g { animation: hop .45s ease-out 2; }
.bird.r-surprised .eye { transform: scale(1.25); }
.bird.r-dizzy .bird-svg { animation: birdDizzy .6s linear 2; }
.bird.r-angry .brows { opacity: 1; }
.bird.r-angry .bird-svg { animation: birdShake .12s linear 6; }
.bird.r-angry .b1 { stop-color: #FF8FA0; } .bird.r-angry .b2 { stop-color: #E03A55; }
.bird.r-sleepy .eye { transform: scaleY(.15); }
.bird-pop { position: absolute; top: -6px; right: 4px; font-size: 22px; pointer-events: none; animation: birdPop 1.1s ease-out forwards; }
@keyframes birdDizzy { to { transform: rotate(360deg); } }
@keyframes birdShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes birdPop { 0% { opacity: 0; transform: translateY(6px) scale(.6); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-26px) scale(1); } }
.live-orb #liveBird { width: 120px; height: 104px; position: relative; z-index: 2; }

/* Control my Mac */
html.mac-host .no-mac { display: none; }
.mac-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.mac-key { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(245,143,168,.12); color: inherit; font-size: 11px; font-weight: 600; }
.mac-key span { font-size: 20px; }
.mac-key:active { transform: scale(.95); background: rgba(245,143,168,.28); }

/* =====================================================================
   Space look (Zuffi's new style) — night sky, drifting coloured orbs, twinkling stars, glass cards
   ===================================================================== */
[data-theme="space"] body { background: linear-gradient(160deg, #0B0A1F 0%, #1B1240 55%, #2A1235 100%) fixed; }
[data-theme="space"] .bg-shape { width: 460px; height: 460px; top: -160px; right: -150px; opacity: .95;
  background: radial-gradient(closest-side, rgba(226,100,138,.42), rgba(124,92,255,.18) 55%, transparent); filter: blur(14px); animation: drift 16s ease-in-out infinite alternate; }
[data-theme="space"] body::before { content: ""; position: fixed; z-index: 0; pointer-events: none; width: 420px; height: 420px; left: -170px; top: 42vh;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(59,168,255,.30), rgba(124,92,255,.12) 60%, transparent); filter: blur(14px); animation: drift 20s ease-in-out -5s infinite alternate-reverse; }
[data-theme="space"] body::after { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .75;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 44% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 78% 58%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90% 26%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 8% 88%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 54% 92%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 35% 52%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 80%, #fff 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .35; } to { opacity: .85; } }
[data-theme="space"] .card, [data-theme="space"] details, [data-theme="space"] .seg, [data-theme="space"] .ask, [data-theme="space"] .tabs {
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
[data-theme="space"] .ask { background: rgba(16,13,40,.82); }
[data-theme="space"] .sheet { background: rgba(14,11,34,.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
[data-theme="space"] .sheet-head { background: rgba(14,11,34,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
[data-theme="space"] .up-next { background: linear-gradient(135deg, rgba(245,143,168,.85), rgba(124,92,255,.75)); color: #fff; }
[data-theme="space"] .tabs button.on { color: #fff; }
[data-theme="space"] .tabs button.on svg { color: var(--accent); }

/* =====================================================================
   Zuffi Live (companion.js) — full-screen animated Zuffi
   ===================================================================== */
html.zc-open, html.zc-open body { overflow: hidden; }
.zc { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; color: #fff; font-family: var(--font);
  padding: calc(var(--safe-t) + 10px) 16px calc(var(--safe-b) + 18px); --tx: 0px; --ty: 0px; --rot: 0deg; user-select: none; -webkit-user-select: none; }
.zc[hidden] { display: none !important; }
.zc-sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(165deg, #0B0A1F 0%, #1B1240 55%, #2A1235 100%); }
.zc-sky i { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .7; }
.zc-sky .o1 { width: 70vmax; height: 70vmax; left: -25vmax; top: -20vmax; background: radial-gradient(closest-side, rgba(226,100,138,.75), transparent); animation: zcDrift 14s ease-in-out infinite alternate; }
.zc-sky .o2 { width: 60vmax; height: 60vmax; right: -25vmax; top: 18vh; background: radial-gradient(closest-side, rgba(124,92,255,.7), transparent); animation: zcDrift 18s ease-in-out -4s infinite alternate-reverse; }
.zc-sky .o3 { width: 55vmax; height: 55vmax; left: 10vw; bottom: -30vmax; background: radial-gradient(closest-side, rgba(59,168,255,.55), transparent); animation: zcDrift 16s ease-in-out -8s infinite alternate; }
@keyframes zcDrift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw, 4vh) scale(1.1); } 100% { transform: translate(-5vw, -3vh) scale(.95); } }
.zc-sky .stars { position: absolute; inset: 0; opacity: .8; animation: twinkle 3.6s ease-in-out infinite alternate;
  background-image: radial-gradient(1.5px 1.5px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 25% 65%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 40% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 74% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 52%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 15% 85%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 66% 88%, #fff 50%, transparent 51%); }
.zc-sky .stars.s2 { transform: translate(7%, 9%) rotate(8deg); animation-delay: -1.8s; opacity: .55; }
.zc-top { width: 100%; max-width: 560px; display: flex; align-items: center; gap: 10px; }
.zc-live { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.zc-live i { width: 8px; height: 8px; border-radius: 50%; background: #FF5A7A; box-shadow: 0 0 0 0 rgba(255,90,122,.7); animation: zcLive 1.6s infinite; }
@keyframes zcLive { 70% { box-shadow: 0 0 0 9px rgba(255,90,122,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,122,0); } }
.zc-state { flex: 1; font-size: 13px; color: rgba(255,255,255,.7); font-weight: 700; }
.zc-x { border: 0; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 16px; cursor: pointer; }
.zc-stage { position: relative; flex: 1; width: 100%; max-width: 560px; display: grid; place-items: center; min-height: 0; }
.zc-body { width: min(78vw, 46vh, 400px); aspect-ratio: 1; transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); transition: transform .5s cubic-bezier(.2,.8,.2,1); z-index: 2; }
.zc-face { width: 100%; height: 100%; background: url(mascots/zuffi-bust.webp) 100% 50% / 300% 300% no-repeat; animation: zcBreathe 3.4s ease-in-out infinite; transform-origin: 50% 90%; cursor: pointer;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
@keyframes zcBreathe { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-8px) scale(1.012, 1.03); } }
.zc[data-state="talking"] .zc-face { animation: zcTalk .42s ease-in-out infinite; }
@keyframes zcTalk { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.02, 1.035); } }
.zc[data-state="listening"] .zc-face { animation: zcLean 1.4s ease-in-out infinite; }
@keyframes zcLean { 0%, 100% { transform: rotate(-2.5deg) translateY(-2px); } 50% { transform: rotate(2.5deg) translateY(-6px); } }
.zc[data-state="thinking"] .zc-face { animation: zcThink 2.2s ease-in-out infinite; }
@keyframes zcThink { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-4px); } }
.zc.zc-pop .zc-face { animation: zcPop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes zcPop { 0% { transform: scale(.92); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
.zc-ring { position: absolute; width: min(72vw, 42vh, 370px); aspect-ratio: 1; border-radius: 50%; z-index: 1;
  background: radial-gradient(closest-side, rgba(245,143,168,.35), rgba(124,92,255,.18) 65%, transparent 72%); animation: zcGlow 3.4s ease-in-out infinite; }
.zc-ring.r2 { width: min(86vw, 52vh, 460px); background: none; border: 1.5px solid rgba(255,255,255,.12); animation: zcRing 3.4s ease-out infinite; }
@keyframes zcGlow { 0%, 100% { transform: scale(.96); opacity: .8; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes zcRing { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.12); opacity: 0; } }
.zc[data-state="listening"] .zc-ring { background: radial-gradient(closest-side, rgba(124,196,255,.55), rgba(59,168,255,.2) 65%, transparent 72%); animation-duration: 1.1s; }
.zc[data-state="listening"] .zc-ring.r2 { border-color: rgba(124,196,255,.5); animation-duration: 1.1s; }
.zc[data-state="talking"] .zc-ring { background: radial-gradient(closest-side, rgba(251,197,106,.45), rgba(245,143,168,.25) 65%, transparent 72%); animation-duration: .6s; }
.zc[data-state="talking"] .zc-ring.r2 { border-color: rgba(251,197,106,.45); animation-duration: .9s; }
.zc[data-state="thinking"] .zc-ring { background: radial-gradient(closest-side, rgba(196,181,253,.5), rgba(124,92,255,.25) 65%, transparent 72%); animation-duration: 1.8s; }
.zc-shadow { position: absolute; bottom: calc(50% - min(39vw, 23vh, 200px) - 6px); width: min(40vw, 24vh, 200px); height: 18px; border-radius: 50%; background: rgba(0,0,0,.35); filter: blur(8px); z-index: 0; animation: zcShadow 3.4s ease-in-out infinite; }
@keyframes zcShadow { 50% { transform: scale(.9); opacity: .7; } }
/* helpers orbiting Zuffi */
.zc-orbit { position: absolute; width: min(92vw, 56vh, 500px); aspect-ratio: 1; z-index: 3; pointer-events: none; animation: zcSpin 60s linear infinite; }
.zc[data-state="thinking"] .zc-orbit { animation-duration: 9s; }
@keyframes zcSpin { to { transform: rotate(360deg); } }
.zc-agent { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; display: grid; place-items: center;
  transform: rotate(calc(var(--i) / var(--n) * 360deg)) translateY(calc(min(92vw, 56vh, 500px) / -2)) rotate(calc(var(--i) / var(--n) * -360deg));
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .3s, box-shadow .3s; }
.zc-agent em { font-style: normal; font-size: 20px; animation: zcCounter 60s linear infinite; }
.zc[data-state="thinking"] .zc-agent em { animation-duration: 9s; }
@keyframes zcCounter { to { transform: rotate(-360deg); } }
.zc-agent small { position: absolute; top: 50px; font-size: 10px; font-weight: 800; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.zc-agent.busy { background: rgba(245,143,168,.55); box-shadow: 0 0 22px rgba(245,143,168,.9); }
.zc-agent.busy em { animation: zcCounter 60s linear infinite, zcBounce .5s ease-in-out 4; }
.zc-agent.busy small { opacity: 1; }
@keyframes zcBounce { 50% { scale: 1.35; } }
.zc-fx { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.zc-fx i { position: absolute; bottom: 45%; font-style: normal; font-size: 24px; animation: zcFloat 1.7s ease-out forwards; }
@keyframes zcFloat { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx), -38vh) scale(1.2); opacity: 0; } }
.zc-caps { width: 100%; max-width: 560px; min-height: 96px; text-align: center; padding: 6px 8px; }
.zc-me { margin: 0 0 6px; font-size: 14px; color: rgba(255,255,255,.6); min-height: 18px; }
.zc-z { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; text-shadow: 0 2px 12px rgba(0,0,0,.4); max-height: 30vh; overflow: auto; }
.zc-bar { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 8px; }
.zc-kb, .zc-loop { border: 0; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 20px; cursor: pointer; opacity: .75; }
.zc-loop.on { opacity: 1; background: rgba(245,143,168,.3); }
.zc-mic { position: relative; border: 0; width: 82px; height: 82px; border-radius: 50%; color: #1A1008; cursor: pointer;
  background: linear-gradient(135deg, #FBC56A, #F28A3C); box-shadow: 0 10px 30px rgba(242,138,60,.45); display: grid; place-items: center; }
.zc-mic svg { width: 34px; height: 34px; }
.zc[data-state="listening"] .zc-mic { background: linear-gradient(135deg, #7CC4FF, #3BA8FF); box-shadow: 0 0 0 10px rgba(124,196,255,.18), 0 10px 30px rgba(59,168,255,.5); }
.zc-wave { position: absolute; display: none; gap: 4px; align-items: center; }
.zc[data-state="listening"] .zc-wave { display: flex; }
.zc[data-state="listening"] .zc-mic svg { opacity: 0; }
.zc-wave i { width: 5px; height: 14px; border-radius: 3px; background: #0B2440; animation: zcWave .9s ease-in-out infinite; }
.zc-wave i:nth-child(2) { animation-delay: -.2s; } .zc-wave i:nth-child(3) { animation-delay: -.4s; } .zc-wave i:nth-child(4) { animation-delay: -.6s; } .zc-wave i:nth-child(5) { animation-delay: -.8s; }
@keyframes zcWave { 50% { height: 34px; } }
.zc-type { display: flex; gap: 8px; width: 100%; max-width: 560px; margin-top: 12px; }
.zc-type input { flex: 1; font: inherit; color: #fff; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 12px 16px; }
.zc-type button { border: 0; border-radius: 999px; padding: 0 18px; font-weight: 800; background: linear-gradient(135deg, #FBC56A, #F28A3C); color: #1A1008; }
/* "Talk to Zuffi" entry button */
.zc-open-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 800; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, rgba(124,92,255,.85), rgba(226,100,138,.85)); box-shadow: 0 8px 22px rgba(124,92,255,.35); }
.zc-open-btn i { width: 8px; height: 8px; border-radius: 50%; background: #FF5A7A; animation: zcLive 1.6s infinite; }
@media (prefers-reduced-motion: reduce) { .zc *, .zc *::before { animation-duration: 0s !important; } }
.liquidGL { position: relative; z-index: 5; }

/* =====================================================================
   Liquid-glass dock (bottom navigation) — floating, frosted, light rim, sliding glow bubble
   ===================================================================== */
.tabs { --g1: rgba(255,255,255,.16); --g2: rgba(255,255,255,.04); --rim: rgba(255,255,255,.55);
  left: 14px; right: 14px; bottom: calc(12px + var(--safe-b)); padding: 7px; gap: 2px; border-radius: 30px; border: 0; isolation: isolate;
  background: linear-gradient(180deg, var(--g1), var(--g2)), var(--tab);
  backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 18px 40px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.06); }
.tabs::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(135deg, var(--rim), rgba(255,255,255,.06) 38%, rgba(255,255,255,.04) 62%, rgba(255,255,255,.32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tabs button { position: relative; z-index: 2; min-height: 54px; border-radius: 24px; font-size: 11px; letter-spacing: .1px; gap: 3px; background: none !important;
  transition: color .3s, transform .35s var(--spring, cubic-bezier(.34,1.56,.64,1)); }
.tabs button svg { transition: transform .4s var(--spring, cubic-bezier(.34,1.56,.64,1)), filter .3s; }
.tabs button.on { color: var(--text); }
.tabs button.on svg { color: var(--accent); transform: translateY(-1px) scale(1.12); filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--accent) 55%, transparent)); }
.tabs button:active { transform: scale(.92); }
.tab-glow { position: absolute; z-index: 1; left: 0; top: 0; width: 60px; height: 54px; border-radius: 24px; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.34), rgba(255,255,255,.08) 55%, transparent 80%),
              linear-gradient(135deg, color-mix(in srgb, var(--accent) 34%, transparent), color-mix(in srgb, var(--accent2) 26%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 0 0 1px rgba(255,255,255,.16), 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: transform .45s cubic-bezier(.34,1.4,.64,1), width .3s, height .3s, opacity .3s; }
[data-theme="daylight"] .tabs, [data-theme="sage"] .tabs, [data-theme="petal"] .tabs, :root:not([data-theme]) .tabs { --g1: rgba(255,255,255,.7); --g2: rgba(255,255,255,.35); --rim: rgba(255,255,255,.95); }
[data-theme="pop"] .tabs { border: var(--bw) solid var(--line); box-shadow: var(--shadow); }
[data-theme="pop"] .tabs::after { display: none; }
[data-theme="pop"] .tab-glow { background: var(--soft); box-shadow: none; border: 2px solid #111; }
html.island-mode .tab-glow { border-radius: 16px; }
html.mac-host .tabs button[data-v="biz"] { display: none; }
/* the ask bar matches the dock */
.ask { border: 0; isolation: isolate; backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 14px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.22); }
.ask::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,.05) 45%, rgba(255,255,255,.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ask { bottom: calc(86px + var(--safe-b)); }
[data-theme="space"] .ask { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)), rgba(16,13,40,.72); }
[data-theme="space"] .tabs { --tab: rgba(16,13,40,.66); }
[data-theme="pop"] .ask::after { display: none; }

/* =====================================================================
   Business (bizapp.js)
   ===================================================================== */
.glass { position: relative; isolation: isolate; border-radius: 22px; border: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.035) 60%), var(--card);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 12px 30px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.2); }
.glass::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(140deg, rgba(255,255,255,.5), rgba(255,255,255,.06) 40%, rgba(255,255,255,.04) 65%, rgba(255,255,255,.28));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
[data-theme="daylight"] .glass, [data-theme="sage"] .glass, [data-theme="petal"] .glass { background: rgba(255,255,255,.78); box-shadow: var(--shadow); }
[data-theme="pop"] .glass { border: var(--bw) solid var(--line); box-shadow: var(--shadow); background: var(--card); }
#view-biz { padding-bottom: 40px; }
.bz-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px; margin-bottom: 12px; }
.bz-logo { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; flex: none;
  background: linear-gradient(135deg, rgba(245,143,168,.55), rgba(124,92,255,.5)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 16px rgba(124,92,255,.3); }
.bz-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bz-ttl b { font-size: 18px; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-ttl small { color: var(--muted); font-size: 12.5px; }
.bz-sync { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap;
  background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.bz-sync i { width: 8px; height: 8px; border-radius: 50%; background: #FBBF24; box-shadow: 0 0 8px #FBBF24; }
.bz-sync.live i { background: #34D399; box-shadow: 0 0 10px #34D399; animation: bzBlink 2s ease-in-out infinite; }
.bz-sync.off { background: linear-gradient(135deg, rgba(245,143,168,.5), rgba(124,92,255,.45)); color: #fff; }
.bz-sync.off i { background: #fff; box-shadow: none; }
@keyframes bzBlink { 50% { opacity: .45; } }
.bz-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; }
.bz-tabs::-webkit-scrollbar { display: none; }
.bz-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 800; color: var(--muted);
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); scroll-snap-align: center; transition: all .25s; }
.bz-tabs button span { font-size: 15px; }
.bz-tabs button.on { color: #fff; background: linear-gradient(135deg, rgba(245,143,168,.75), rgba(124,92,255,.7)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 18px rgba(226,100,138,.35); }
[data-theme="daylight"] .bz-tabs button, [data-theme="sage"] .bz-tabs button, [data-theme="petal"] .bz-tabs button { background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px var(--line); }
.bz-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bz-tiles.three { grid-template-columns: repeat(3, 1fr); }
.bz-tile { padding: 13px 13px 12px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; min-width: 0; }
.bz-tile::before { content: ""; position: absolute; right: -22px; top: -22px; width: 80px; height: 80px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 45%, transparent), transparent); }
.bz-tile span { font-size: 18px; }
.bz-tile b { font-size: 22px; font-weight: 850; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: color-mix(in srgb, var(--c) 30%, var(--text)); }
.bz-tiles.three .bz-tile b { font-size: 16px; }
.bz-tile small { font-size: 12px; color: var(--muted); font-weight: 700; }
.bz-card { padding: 14px; margin-bottom: 12px; }
.bz-card h4 { margin: 0 0 8px; font-size: 15.5px; font-weight: 850; display: flex; align-items: center; gap: 6px; }
.bz-card h4 .r { margin-left: auto; }
.bz-row, .bz-rowbtn { width: 100%; display: flex; align-items: center; gap: 11px; padding: 9px 4px; text-align: left; border-radius: 14px; transition: background .2s; }
.bz-row + .bz-row { border-top: 1px solid var(--line); }
.bz-row:active, .bz-rowbtn:active { background: rgba(255,255,255,.07); }
.bz-rowbtn { flex: 1; min-width: 0; padding: 0; }
.bz-av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 850; color: #1A1008;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 95%, #fff), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 4px 10px color-mix(in srgb, var(--c) 30%, transparent); }
.bz-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bz-rt b { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-rt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-rr { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.bz-rr em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 700; }
.bz-rr em.warn { color: #FBBF24; } .bz-rr em.bad, .bz-line .bad { color: var(--bad); } .bz-line .good { color: var(--good); }
.bz-pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap;
  color: color-mix(in srgb, var(--c) 80%, #fff); background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
[data-theme="daylight"] .bz-pill, [data-theme="petal"] .bz-pill, [data-theme="sage"] .bz-pill { color: color-mix(in srgb, var(--c) 70%, #000); }
.bz-empty { color: var(--muted); text-align: center; padding: 14px 6px; margin: 0; font-size: 14px; }
.bz-hint { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; } .bz-hint.warn { color: #FBBF24; }
.bz-in { width: 100%; padding: 11px 13px; border-radius: 14px; border: 0; outline: none; font-size: 15px; background: var(--input); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; margin: 4px 0; }
.bz-in:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea.bz-in { resize: vertical; line-height: 1.4; }
select.bz-in { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.bz-lbl { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 6px; }
.bz-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.bz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 12px 16px; margin-top: 8px; border-radius: 16px; font-weight: 850; font-size: 15px;
  text-decoration: none; color: #1A1008; background: linear-gradient(180deg, #FBC56A, #F28A3C); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 18px rgba(242,138,60,.3); }
.bz-btn.ghost { color: var(--text); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.12); }
[data-theme="daylight"] .bz-btn.ghost, [data-theme="petal"] .bz-btn.ghost, [data-theme="sage"] .bz-btn.ghost { background: var(--soft); box-shadow: none; }
.bz-btn.danger { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 30%, transparent); }
.bz-btn:active { transform: scale(.97); }
.bz-btns { display: flex; gap: 8px; } .bz-btns .bz-btn { flex: 1; }
.bz-btns.tight .bz-btn { margin-top: 4px; padding: 9px; font-size: 14px; }
.bz-mini { padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; color: #1A1008; background: linear-gradient(180deg, #FBC56A, #F28A3C); }
.bz-x { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; color: var(--muted); font-size: 13px; background: rgba(255,255,255,.06); }
.bz-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; } .bz-line + .bz-line { border-top: 1px solid var(--line); }
.bz-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px; }
.bz-chips.wrap { flex-wrap: wrap; overflow: visible; padding-bottom: 4px; }
.bz-chips::-webkit-scrollbar { display: none; }
.bz-chips button { --c: var(--accent); flex: none; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--muted); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); }
.bz-chips button.on { color: var(--text); background: color-mix(in srgb, var(--c) 28%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent); }
.bz-seg { display: flex; padding: 4px; border-radius: 14px; background: rgba(0,0,0,.18); margin-bottom: 6px; }
.bz-seg button { flex: 1; padding: 8px; border-radius: 11px; font-weight: 800; font-size: 14px; color: var(--muted); }
.bz-seg button.on { color: var(--text); background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 8px rgba(0,0,0,.2); }
.bz-search { display: flex; align-items: center; gap: 8px; padding: 4px 14px; margin-bottom: 10px; border-radius: 999px; }
.bz-search input { flex: 1; background: none; border: 0; outline: none; padding: 9px 0; font-size: 15px; }
.bz-more summary { padding: 10px 0 4px; font-size: 14px; font-weight: 800; color: var(--accent); }
.bz-props { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bz-prop { display: flex; flex-direction: column; gap: 3px; padding: 12px; text-align: left; min-width: 0; }
.bz-prop > b { font-size: 14.5px; font-weight: 850; line-height: 1.2; }
.bz-prop small { color: var(--muted); font-size: 12px; }
.bz-ptop, .bz-pbot { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.bz-pbot { flex-direction: column; align-items: flex-start; margin-top: auto; padding-top: 6px; }
.bz-pbot b { color: #FBC56A; font-size: 15px; }
[data-theme="daylight"] .bz-pbot b, [data-theme="petal"] .bz-pbot b { color: #C2410C; }
.bz-fab { position: fixed; z-index: 11; right: 20px; bottom: calc(160px + var(--safe-b)); width: 58px; height: 58px; border-radius: 50%; font-size: 30px; font-weight: 400; color: #fff; line-height: 1;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,.55), transparent 45%), linear-gradient(135deg, #F58FA8, #7C5CFF);
  box-shadow: 0 14px 30px rgba(124,92,255,.45), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 6px rgba(0,0,0,.15); transition: transform .3s var(--spring, ease); }
.bz-fab:active { transform: scale(.9) rotate(90deg); }
/* link devices */
.bz-link { text-align: center; padding: 20px 16px; }
.bz-link h3 { margin: 10px 0 4px; font-size: 20px; font-weight: 850; }
.bz-link p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.bz-link h4 { justify-content: center; margin-top: 14px; }
.bz-linkart { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 34px; }
.bz-linkart i { width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 200% 100%; animation: bzFlow 1.4s linear infinite; }
@keyframes bzFlow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.bz-video { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 22px; margin-top: 10px; box-shadow: 0 0 0 3px var(--accent), 0 12px 30px rgba(0,0,0,.35); }
.bz-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 850; padding: 8px 14px; border-radius: 999px; background: rgba(251,191,36,.14); }
.bz-status i { width: 9px; height: 9px; border-radius: 50%; background: #FBBF24; }
.bz-status.live { background: rgba(52,211,153,.14); } .bz-status.live i { background: #34D399; box-shadow: 0 0 10px #34D399; animation: bzBlink 2s infinite; }
.bz-dev { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 6px 0; border-radius: 14px; background: rgba(255,255,255,.06); text-align: left; }
.bz-dev span { font-size: 20px; } .bz-dev b { flex: 1; font-size: 14.5px; } .bz-dev small { color: var(--muted); font-size: 12px; }
.bz-qr { width: 230px; margin: 14px auto 0; padding: 12px; background: #fff; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.bz-qr svg { width: 100%; height: auto; display: block; }
.bz-link-x { margin-top: 14px; color: var(--muted); font-size: 13px; text-decoration: underline; }
/* editor sheet */
.bz-sheet { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; }
.bz-sheet-bg { position: absolute; inset: 0; background: rgba(5,3,20,.5); opacity: 0; transition: opacity .25s; }
.bz-sheet-card { position: relative; width: 100%; max-width: 640px; max-height: 92vh; display: flex; flex-direction: column; border-radius: 28px 28px 0 0;
  padding: 6px 16px calc(14px + var(--safe-b)); transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.9,.25,1); background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)), var(--tab); }
[data-theme="space"] .bz-sheet-card { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.02)), rgba(18,14,44,.93); }
.bz-sheet.on .bz-sheet-bg { opacity: 1; } .bz-sheet.on .bz-sheet-card { transform: none; }
.bz-grab { width: 42px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.3); margin: 4px auto 8px; }
.bz-sheet-h { display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; } .bz-sheet-h b { font-size: 18px; font-weight: 850; }
.bz-sheet-b { overflow-y: auto; padding-bottom: 6px; margin: 0 -4px; padding: 0 4px 6px; }

/* =====================================================================
   Charging light — a glow runs round the screen edge when the phone is plugged in
   ===================================================================== */
.charge-fx { position: fixed; inset: 0; z-index: 500; pointer-events: none; display: grid; place-items: center; opacity: 0; transition: opacity .5s; }
.charge-fx.on { opacity: 1; }
.charge-fx::before { content: ""; position: absolute; inset: 0; border-radius: 38px; padding: 5px;
  background: conic-gradient(from var(--ang, 0deg), #34D399, #A7F3D0, #22D3EE, #34D399 35%, transparent 50%, #34D399 85%, #34D399);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  filter: blur(2px) drop-shadow(0 0 12px #34D399); animation: chSpin 2.4s linear infinite; }
.charge-fx.full::before { background: conic-gradient(from var(--ang, 0deg), #FBC56A, #F58FA8, #7C5CFF, #FBC56A); filter: blur(2px) drop-shadow(0 0 12px #F58FA8); }
.charge-fx.off::before { background: conic-gradient(from var(--ang, 0deg), #9CA3AF, transparent 50%, #9CA3AF); filter: blur(2px); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes chSpin { to { --ang: 360deg; } }
.charge-pill { display: flex; align-items: center; gap: 12px; padding: 14px 22px 14px 14px; border-radius: 999px; color: #fff; font-weight: 850; font-size: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.04)), rgba(10,14,24,.78); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(255,255,255,.12); transform: scale(.8); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.charge-fx.on .charge-pill { transform: none; }
.charge-pill img { width: 52px; height: 52px; object-fit: contain; animation: chHop 1s ease-in-out infinite; }
@keyframes chHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px) rotate(-4deg); } }
.charge-pill small { display: block; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.7); }
.charge-bat { width: 46px; height: 22px; border-radius: 6px; border: 2px solid rgba(255,255,255,.85); position: relative; padding: 2px; margin-left: 4px; }
.charge-bat::after { content: ""; position: absolute; right: -6px; top: 6px; width: 3px; height: 6px; border-radius: 0 2px 2px 0; background: rgba(255,255,255,.85); }
.charge-bat i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #34D399, #A7F3D0); width: var(--lvl, 50%); transition: width 1.2s ease; box-shadow: 0 0 10px #34D399; }

body:not(.biz-on) #bzFab { display: none !important; }
.pet-offer { display: flex; align-items: center; gap: 10px; }
.pet-offer img { width: 40px; height: 70px; object-fit: contain; flex: none; animation: chHop 1.6s ease-in-out infinite; }
.pet-offer div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pet-offer small { color: var(--muted); font-size: 12.5px; }

/* =====================================================================
   Windows: island extras (open apps row, Business button, bunny face) and the Business window
   ===================================================================== */
.cap-face { display: block; width: 100%; height: 100%; background: url(mascots/zuffi-bust.webp) 100% 50% / 300% 300% no-repeat; animation: bob 3.2s ease-in-out infinite; }
.isl-biz { margin-inline-start: auto; }
.isl-apps { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px 6px; margin: 0 12px 6px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.1); }
.isl-apps::-webkit-scrollbar { display: none; }
.isl-apps button { flex: none; display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px 0 5px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--text); transition: background .2s, transform .25s; }
.isl-apps button:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.isl-apps button.go { background: rgba(245,143,168,.3); }
.isl-apps img { width: 20px; height: 20px; }
.isl-apps em { font-style: normal; max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the Business window: sidebar on the left, cards in a grid, frosted glass (Windows 11 acrylic shows through) */
html.biz-dash, html.biz-dash body { height: 100%; }
html.biz-dash body { background: linear-gradient(160deg, rgba(11,10,31,.78), rgba(27,18,64,.7) 55%, rgba(42,18,53,.66)) !important; overflow: hidden; }
html.biz-dash .top, html.biz-dash .tabs, html.biz-dash #alert, html.biz-dash .listen-hint, html.biz-dash .view:not(#view-biz) { display: none !important; }
html.biz-dash main { max-width: none; height: 100%; padding: 36px 0 0; }
html.biz-dash #view-biz { display: block !important; height: 100%; padding: 0; }
.dash-drag { position: fixed; z-index: 400; top: 0; left: 0; right: 0; height: 36px; -webkit-app-region: drag; display: flex; align-items: center; padding-left: 16px;
  font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.7); }
html.biz-dash #bizRoot { display: grid; grid-template-columns: 250px 1fr; grid-template-rows: auto 1fr; height: 100%; }
html.biz-dash .bz-head { grid-column: 1; grid-row: 1; margin: 6px 0 10px 14px; }
html.biz-dash .bz-tabs { grid-column: 1; grid-row: 2; flex-direction: column; overflow: visible; padding: 0 0 130px 14px; margin: 0; gap: 4px; align-self: start; }
html.biz-dash .bz-tabs button { justify-content: flex-start; padding: 11px 14px; border-radius: 14px; font-size: 14px; }
html.biz-dash .bz-body { grid-column: 2; grid-row: 1 / span 2; overflow-y: auto; padding: 6px 22px 110px 18px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; align-content: start; align-items: start; }
html.biz-dash .bz-body > .bz-tiles, html.biz-dash .bz-body > .bz-search, html.biz-dash .bz-body > .bz-chips, html.biz-dash .bz-body > .bz-props { grid-column: 1 / -1; margin: 0; }
html.biz-dash .bz-body > .bz-card { margin: 0; }
html.biz-dash .bz-tiles { grid-template-columns: repeat(6, 1fr); }
html.biz-dash .bz-tiles.three { grid-template-columns: repeat(3, 1fr); }
html.biz-dash .bz-props { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
html.biz-dash .bz-row:hover, html.biz-dash .bz-rowbtn:hover { background: rgba(255,255,255,.06); }
html.biz-dash .bz-prop:hover, html.biz-dash .bz-tile:hover { transform: translateY(-2px); transition: transform .25s; }
html.biz-dash .ask { left: 272px; right: 24px; bottom: 18px; max-width: none; margin: 0; }
html.biz-dash #bzFab { bottom: 86px; right: 28px; }
html.biz-dash .bz-sheet { align-items: center; }
html.biz-dash .bz-sheet-card { max-width: 600px; border-radius: 26px; max-height: 86vh; }
html.biz-dash .bz-grab { display: none; }
@media (max-width: 1000px) { html.biz-dash .bz-tiles { grid-template-columns: repeat(3, 1fr); } }
html.biz-dash .bz-head { flex-wrap: wrap; }
html.biz-dash .bz-head .bz-sync { width: 100%; justify-content: center; }
html.biz-dash .bz-tile b { font-size: clamp(16px, 1.55vw, 22px); }
html.island-mode .isl-apps { margin: 0 16px 8px 84px; }
html.island-mode .tab-glow { display: none; }
html.island-mode .tabs button.on { background: var(--grad) !important; color: var(--ink); }

/* =====================================================================
   Zuffi Business — "Nocturne Ledger" (one big number per card, one meaning per colour)
   rose = people waiting · amber = money & stock · violet = time & linked · green = done
   ===================================================================== */
#bizRoot { --rose: #F58FA8; --amber: #FBC56A; --violet: #9A84FF; --green: #34D399; }
.bz-head { display: flex; align-items: center; gap: 12px; padding: 6px 2px 12px; background: none; box-shadow: none; }
.bz-head::after { display: none; }
.bz-logo { width: 44px; height: 44px; border-radius: 14px; font-size: 22px; display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.1); }
.bz-tabs { gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 18px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.bz-tabs button { padding: 9px 13px; border-radius: 14px; font-size: 13.5px; font-weight: 750; background: none; box-shadow: none; color: var(--muted); gap: 7px; }
.bz-tabs button i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); opacity: .55; }
.bz-tabs button.on { color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 14px rgba(0,0,0,.25); }
.bz-tabs button.on i { opacity: 1; box-shadow: 0 0 8px var(--c); }
[data-theme="daylight"] .bz-tabs, [data-theme="petal"] .bz-tabs, [data-theme="sage"] .bz-tabs { background: rgba(0,0,0,.04); }
[data-theme="daylight"] .bz-tabs button.on, [data-theme="petal"] .bz-tabs button.on, [data-theme="sage"] .bz-tabs button.on { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.bz-hello { padding: 0 4px 10px; display: flex; flex-direction: column; }
.bz-hello b { font-size: 26px; font-weight: 850; letter-spacing: -.3px; }
.bz-hello small { color: var(--muted); font-size: 14px; }
.bz-hero { padding: 18px 18px 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 2px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(245,143,168,.20), transparent 60%), linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03)), var(--card); }
.bz-hero .k, .bz-lost .k { font: 700 11px/1.2 ui-monospace, "SF Mono", "Cascadia Mono", monospace; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.bz-hero b { font-size: 38px; font-weight: 850; letter-spacing: -.8px; color: var(--amber); line-height: 1.15; }
.bz-hero small { color: var(--muted); font-size: 13px; }
[data-theme="daylight"] .bz-hero b, [data-theme="petal"] .bz-hero b, [data-theme="sage"] .bz-hero b { color: #B45309; }
.bz-tile { text-align: left; gap: 0; padding: 14px 14px 12px; }
.bz-tile::before { display: none; }
.bz-tile i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); margin-bottom: 12px; }
.bz-tile b { font-size: 28px; color: var(--text); letter-spacing: -.5px; }
.bz-tile small { font-weight: 650; }
.bz-tile em { font-style: normal; font-size: 11.5px; color: var(--c); font-weight: 700; margin-top: 2px; }
button.bz-tile { cursor: pointer; } button.bz-tile:active { transform: scale(.97); }
.bz-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.bz-card h4 .r { margin-left: auto; font: 600 11.5px/1 ui-monospace, "SF Mono", "Cascadia Mono", monospace; letter-spacing: .6px; color: var(--faint); text-transform: uppercase; }
.bz-card h4 button.r { font-family: inherit; text-transform: none; letter-spacing: 0; color: #1A1008; }
.bz-card h4:empty { display: none; }
.bz-card.flush { padding-top: 6px; padding-bottom: 6px; }
.bz-card.bz-alert { background: radial-gradient(110% 130% at 100% 0%, rgba(245,143,168,.16), transparent 55%), linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.03)), var(--card); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); margin-right: 2px; }
.bz-wait { display: flex; align-items: center; gap: 8px; } .bz-wait .bz-row { flex: 1; min-width: 0; } .bz-wait + .bz-wait { border-top: 1px solid var(--line); }
.bz-lost { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px;
  background: linear-gradient(135deg, rgba(245,143,168,.22), rgba(154,132,255,.14) 70%), var(--card); }
.bz-lost > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.bz-lost b { font-size: 17px; font-weight: 850; }
.bz-lost small { color: var(--muted); font-size: 13px; }
.bz-lost .bz-btn { width: auto; flex: 0 0 auto; margin: 0; }
.bz-big { display: block; font-size: 32px; font-weight: 850; letter-spacing: -.6px; line-height: 1.1; }
.bz-sub { display: block; color: var(--muted); font-size: 12.5px; margin: 2px 0 12px; }
.bz-bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.bz-bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: var(--amber); opacity: .55; min-height: 3px; }
.bz-bars i.now { opacity: 1; background: var(--rose); }
.bz-stockgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; margin: 4px 0 10px; }
.bz-stockgrid .sq { aspect-ratio: 1; border-radius: 11px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--amber); }
.bz-stockgrid .sq i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.bz-stockgrid .sq.hold { box-shadow: inset 0 0 0 1.5px var(--violet); } .bz-stockgrid .sq.hold i { background: var(--violet); }
.bz-stockgrid .sq.sold { box-shadow: inset 0 0 0 1.5px rgba(142,136,179,.5); } .bz-stockgrid .sq.sold i { background: #8E88B3; width: 5px; height: 5px; }
.bz-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--faint); }
.bz-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: var(--amber); }
.bz-legend i.hold { background: var(--violet); } .bz-legend i.sold { background: #8E88B3; }
.bz-prop em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--c); margin-top: 3px; }
.hot { color: var(--rose); font-size: 10px; vertical-align: 2px; }
.bz-line .out { color: var(--muted); }
.bz-line.done { opacity: .5; }
.bz-mini.ghost { color: var(--text); background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.bz-av.blob { background: none; box-shadow: none; padding: 0; overflow: hidden; }
.bz-av.blob svg { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 70%, transparent); }
.bz-p { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.bz-pick { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 13px; margin: 8px 0 4px; border-radius: 14px; text-align: left; background: var(--input); box-shadow: inset 0 0 0 1px var(--line); }
.bz-pick > span:first-child { font-size: 24px; } .bz-pick > span:last-child { color: var(--faint); font-size: 20px; }
.bz-check { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: 14px; }
.bz-check + .bz-check { border-top: 1px solid var(--line); }
.bz-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.bz-check span { display: flex; flex-direction: column; } .bz-check small { color: var(--muted); font-size: 12px; }
.bz-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bz-themes button { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; font-size: 13px; font-weight: 750; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
.bz-themes i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c), inset 0 1px 0 rgba(255,255,255,.6); }
.bz-themes button.on { box-shadow: inset 0 0 0 2px var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.bz-ob .bz-search { margin-bottom: 8px; }
.bz-countries { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 34vh; overflow-y: auto; padding: 2px; margin-bottom: 10px; }
.bz-countries button { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; text-align: left; font-size: 13.5px; font-weight: 650; background: rgba(255,255,255,.05); }
.bz-countries button span { font-size: 18px; }
.bz-countries button.on { background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.bz-feat { padding: 12px; border-radius: 16px; margin-bottom: 8px; background: linear-gradient(160deg, rgba(154,132,255,.16), rgba(245,143,168,.08)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.bz-feat > b { display: block; margin-bottom: 6px; font-size: 14.5px; }
.bz-feat > div { display: flex; gap: 10px; align-items: center; padding: 5px 0; } .bz-feat > div > span:first-child { width: 22px; text-align: center; }
.bz-feat .bz-rt b { font-size: 13.5px; } .bz-feat .bz-rt small { font-size: 12px; }
html.biz-dash .bz-body > .bz-hello, html.biz-dash .bz-body > .bz-hero, html.biz-dash .bz-body > .bz-lost { grid-column: 1 / -1; margin: 0; }
html.biz-dash .bz-tiles { grid-template-columns: repeat(4, 1fr); }
html.biz-dash .bz-tabs { background: none; box-shadow: none; }
@media (min-width: 560px) { .bz-tiles { grid-template-columns: repeat(4, 1fr); } .bz-tiles.three { grid-template-columns: repeat(3, 1fr); } }
/* Zuffi's colour: tint the bunny everywhere */
.bird, .cap-face, .zc-face, .pet-offer img, .webpet img, .charge-pill img { filter: hue-rotate(var(--zfur, 0deg)); }
/* in-app walking Zuffi (iPhone / web) */
.webpet { position: fixed; z-index: 9; left: 0; bottom: calc(146px + var(--safe-b)); width: 46px; height: 84px; cursor: pointer; will-change: transform; }
.webpet img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; transform-origin: 50% 100%; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)) hue-rotate(var(--zfur, 0deg)); }
.webpet.idle img { animation: breathe 2.8s ease-in-out infinite; }
.webpet.left img { transform: scaleX(-1); }
.webpet.hop { animation: wpHop .42s cubic-bezier(.3,.7,.4,1); }
@keyframes wpHop { 40% { margin-bottom: 18px; } }
@keyframes breathe { 50% { transform: scaleY(1.03); } }
.webpet-b { position: absolute; bottom: 92px; width: 220px; padding: 10px 13px; border-radius: 16px; font-size: 13.5px; font-weight: 650; color: #fff; line-height: 1.3;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04)), rgba(22,16,52,.92); box-shadow: 0 12px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.14); }
html.zc-open .webpet, html.desktop .webpet, html.android-app .webpet, html.mac-host .webpet { display: none; }

/* =====================================================================
   Graphite — calm and professional: neutral surfaces, hairline borders, one warm accent. No glow, no gradients.
   ===================================================================== */
[data-theme="graphite"] body { background: linear-gradient(180deg, #15161A 0, #0F1013 340px) fixed; }
[data-theme="graphite"] .bg-shape { display: none; }
[data-theme="graphite"] .card, [data-theme="graphite"] details, [data-theme="graphite"] .seg { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-theme="graphite"] .glass { background: var(--card); box-shadow: 0 4px 14px rgba(0,0,0,.25); backdrop-filter: none; -webkit-backdrop-filter: none; }
[data-theme="graphite"] .glass::after { background: none; padding: 0; border: 1px solid var(--line); -webkit-mask: none; mask: none; }
[data-theme="graphite"] .tabs { --g1: rgba(255,255,255,.03); --g2: rgba(255,255,255,.01); --rim: rgba(255,255,255,.14); --tab: rgba(22,23,27,.94); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
[data-theme="graphite"] .tab-glow { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
[data-theme="graphite"] .tabs button.on svg { color: var(--accent); filter: none; transform: none; }
[data-theme="graphite"] .ask { background: rgba(22,23,27,.94); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
[data-theme="graphite"] .ask::after { background: none; border: 1px solid var(--line); padding: 0; -webkit-mask: none; mask: none; }
[data-theme="graphite"] .sheet { background: #141519; }
[data-theme="graphite"] .sheet-head { background: #141519; }
[data-theme="graphite"] .up-next { background: var(--card); color: var(--text); border-left: 3px solid var(--accent); }
[data-theme="graphite"] .hero.card { background: var(--card); }
[data-theme="graphite"] .chip.zc-open-btn { background: var(--accent); color: var(--ink); }
[data-theme="graphite"] .send { background: var(--accent); color: var(--ink); }
/* Business in graphite */
[data-theme="graphite"] #bizRoot { --rose: #E8899E; --amber: #EDB24E; --violet: #9B8CFF; --green: #3FC48C; }
[data-theme="graphite"] .bz-tabs { background: transparent; box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 6px; }
[data-theme="graphite"] .bz-tabs button.on { background: rgba(255,255,255,.07); box-shadow: none; }
[data-theme="graphite"] .bz-tabs button i { opacity: .8; }
[data-theme="graphite"] .bz-tabs button.on i { box-shadow: none; }
[data-theme="graphite"] .bz-logo { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="graphite"] .bz-hero { background: var(--card); border-left: 3px solid var(--amber); border-radius: 14px; }
[data-theme="graphite"] .bz-hero b { color: var(--text); font-weight: 750; letter-spacing: -.6px; }
[data-theme="graphite"] .bz-hero .k, [data-theme="graphite"] .bz-lost .k { color: var(--faint); }
[data-theme="graphite"] .bz-tile, [data-theme="graphite"] .bz-card, [data-theme="graphite"] .bz-prop { border-radius: 14px; }
[data-theme="graphite"] .bz-tile i { box-shadow: none; width: 6px; height: 6px; }
[data-theme="graphite"] .bz-tile b { font-weight: 700; font-variant-numeric: tabular-nums; }
[data-theme="graphite"] .bz-card.bz-alert { background: var(--card); border-left: 3px solid var(--rose); }
[data-theme="graphite"] .bz-lost { background: var(--card); border-left: 3px solid var(--rose); border-radius: 14px; }
[data-theme="graphite"] .dot { box-shadow: none; }
[data-theme="graphite"] .bz-big { font-weight: 750; font-variant-numeric: tabular-nums; }
[data-theme="graphite"] .bz-btn { background: var(--accent); box-shadow: none; }
[data-theme="graphite"] .bz-btn.ghost { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="graphite"] .bz-mini { background: var(--accent); }
[data-theme="graphite"] .bz-fab { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.4); }
[data-theme="graphite"] .bz-sync.off { background: rgba(255,255,255,.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="graphite"] .bz-sync.off i { background: var(--accent); }
[data-theme="graphite"] .bz-pill { box-shadow: none; }
[data-theme="graphite"] .bz-feat { background: rgba(255,255,255,.03); }
[data-theme="graphite"] .bz-sheet-card { background: #141519; }
[data-theme="graphite"] .bz-in { background: #121317; }
[data-theme="graphite"] .bz-hero { padding: 16px 18px; }
html.biz-dash[data-theme="graphite"] body { background: #0F1013 !important; }
/* Business: Zuffi blob, lock, learn, security, timeline, privacy */
.bz-logo.blob { background: none !important; box-shadow: none !important; padding: 0; overflow: visible; }
.bz-logo.blob svg { width: 46px; height: 46px; display: block; }
.bz-lock { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px 0; }
.bz-lockface svg { width: 96px; height: 96px; }
.bz-lock > b { font-size: 20px; font-weight: 750; } .bz-lock > small { color: var(--muted); }
.bz-dots { display: flex; gap: 12px; margin: 14px 0 18px; }
.bz-dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); transition: background .15s; }
.bz-dots i.on { background: var(--accent); box-shadow: none; }
.bz-dots.shake { animation: bzShake .35s; }
@keyframes bzShake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.bz-pad { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px; }
.bz-pad button { height: 64px; border-radius: 50%; font-size: 24px; font-weight: 600; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.bz-pad button:disabled { visibility: hidden; } .bz-pad button:active { background: var(--soft); }
.bz-lockmsg { min-height: 18px; color: var(--bad) !important; margin-top: 8px; }
.bz-looks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bz-looks button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border-radius: 14px; text-align: center; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); }
.bz-looks button.on { box-shadow: inset 0 0 0 2px var(--accent); }
.bz-looks .lk { width: 64px; height: 64px; display: grid; place-items: center; } .bz-looks .lk svg { width: 64px; height: 64px; } .bz-looks .lk img { height: 64px; filter: hue-rotate(var(--zfur, 0deg)); }
.bz-looks small { color: var(--muted); font-size: 11.5px; }
.bz-guides button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 2px; text-align: left; }
.bz-guides button + button { border-top: 1px solid var(--line); }
.bz-guides .gi { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); }
.bz-guides .chev { color: var(--faint); font-size: 20px; }
.bz-steps { margin: 0; padding: 0; list-style: none; counter-reset: st; }
.bz-steps li { position: relative; padding: 0 0 16px 40px; counter-increment: st; display: flex; flex-direction: column; gap: 3px; }
.bz-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 750; color: var(--ink); background: var(--accent); }
.bz-steps li::after { content: ""; position: absolute; left: 12.5px; top: 30px; bottom: 4px; width: 1px; background: var(--line); }
.bz-steps li:last-child::after { display: none; }
.bz-steps b { font-size: 15px; } .bz-steps span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.bz-steps code { font: 600 13px ui-monospace, "SF Mono", "Cascadia Mono", monospace; color: var(--text); background: rgba(255,255,255,.07); padding: 2px 7px; border-radius: 6px; user-select: all; }
.bz-sec > div { display: flex; align-items: center; gap: 12px; padding: 10px 0; } .bz-sec > div + div { border-top: 1px solid var(--line); }
.bz-sec i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; }
.bz-sec i.ok { background: rgba(63,196,140,.15); color: var(--good); } .bz-sec i.warn { background: rgba(237,178,78,.15); color: var(--accent); } .bz-sec i.idle { background: rgba(255,255,255,.06); color: var(--muted); }
.bz-timeline { margin: 4px 0 0; padding: 0; list-style: none; }
.bz-timeline li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0 8px 18px; }
.bz-timeline li::before { content: ""; position: absolute; left: 3px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--c); }
.bz-timeline li::after { content: ""; position: absolute; left: 6.5px; top: calc(50% + 8px); height: calc(100% - 8px); width: 1px; background: var(--line); }
.bz-timeline li:last-child::after { display: none; }
.bz-timeline time { width: 52px; flex: none; font: 600 12.5px ui-monospace, "SF Mono", "Cascadia Mono", monospace; color: var(--muted); }
.bz-private .bz-tile b, .bz-private .bz-big, .bz-private .bz-hero b, .bz-private .bz-line b.good, .bz-private .bz-line b.out, .bz-private .bz-pbot b, .bz-private .bz-sub { filter: blur(9px); transition: filter .2s; user-select: none; }
.bz-private .bz-tile:active b, .bz-private .bz-hero:active b, .bz-private .bz-card:active .bz-big { filter: none; }
.zblob svg, .bz-logo.blob svg { overflow: visible; }

.webpet.is-blob { width: 64px; height: 64px; }
.webpet .wpblob, .webpet .wpblob svg { width: 64px; height: 64px; display: block; }
.webpet.is-blob .webpet-b { bottom: 70px; }
body.biz-on .webpet { display: none; }
html.biz-dash[data-theme="graphite"] .bz-tabs { border-bottom: 0; }

/* Business: the wake-word hint pill sat on top of client rows — Business has its own + button and header */
body.biz-on .listen-hint { display: none !important; }
html:not(.biz-dash) body.biz-on #view-biz { padding-bottom: 150px; }

/* Windows island: toasts sat on top of the greeting — show them just above the ask bar instead */
html.island-mode .toast { top: auto; bottom: 86px; max-width: 86%; font-size: 13.5px; }
/* four money tiles in a row: keep "Rs 7 lac" whole */
@media (min-width: 560px) { .bz-tiles:not(.three) .bz-tile b { font-size: 23px; } }
/* Tablets: use the width — wider page, and cards side by side like the computer dashboard */
@media (min-width: 760px) { html:not(.biz-dash) body.biz-on main { max-width: 820px; } }
@media (min-width: 1000px) {
  html:not(.biz-dash) body.biz-on main { max-width: 1180px; padding-left: 28px; padding-right: 28px; }
  html:not(.biz-dash) body.biz-on .bz-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; align-content: start; align-items: start; }
  html:not(.biz-dash) body.biz-on .bz-body > * { margin: 0; min-width: 0; }
  html:not(.biz-dash) body.biz-on .bz-body > .bz-tiles, html:not(.biz-dash) body.biz-on .bz-body > .bz-search, html:not(.biz-dash) body.biz-on .bz-body > .bz-chips,
  html:not(.biz-dash) body.biz-on .bz-body > .bz-props, html:not(.biz-dash) body.biz-on .bz-body > .bz-hello, html:not(.biz-dash) body.biz-on .bz-body > .bz-hero,
  html:not(.biz-dash) body.biz-on .bz-body > .bz-lost, html:not(.biz-dash) body.biz-on .bz-body > h2, html:not(.biz-dash) body.biz-on .bz-body > .bz-p { grid-column: 1 / -1; }
  html:not(.biz-dash) body.biz-on .bz-tiles:not(.three) { grid-template-columns: repeat(4, 1fr); }
  html:not(.biz-dash) body.biz-on .bz-props { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

/* ================= Windows island = the Mac notch =================
   A black notch at the top centre. Closed: Zuffi's face + one line. Open: the Mac home (apps · Zuffi · buttons).
   Chat / Plan / Settings open the big island; ‹ goes back. */
html.island-mode {
  --bg: #0B0B0D; --card: rgba(255,255,255,.05); --line: rgba(255,255,255,.08); --text: #EDEDF0; --muted: #A0A2AA; --faint: #6E7079;
  --accent: #EDB24E; --accent2: #E09A35; --ink: #17120A; --soft: rgba(237,178,78,.12); --input: rgba(255,255,255,.05);
  --shadow: none; --tab: rgba(255,255,255,.04); --grad: linear-gradient(180deg, #F2C46A, #E6A23C);
  --iw: 236px; --ih: 34px; --ir: 18px;
}
html.island-mode #island { width: var(--iw); height: var(--ih); border-radius: 0 0 var(--ir) var(--ir); background: #000;
  box-shadow: 0 12px 34px rgba(0,0,0,.5); }
html.island-mode.cap-hover #island { --iw: 254px; --ih: 38px; }
html.island-mode.isl-peek #island { --iw: 400px; --ih: 64px; --ir: 28px; }
html.island-mode.isl-expanded #island { --iw: 360px; --ih: 318px; --ir: 32px; box-shadow: 0 26px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); }
html.island-mode.isl-expanded.isl-full #island { --iw: 440px; --ih: calc(100vh - 8px); --ir: 32px; }
html.island-mode .isl-glow { display: none; }
html.island-mode .cap-txt small { color: #9A9CA4; }
html.island-mode .cap-wave i { background: var(--accent); }
html.island-mode .cap { height: var(--ih); }
html.island-mode.isl-peek .cap { height: 64px; }
/* the little curved "ears" where the notch meets the top of the screen */
.isl-ear { display: none; }
html.island-mode.pos-center .isl-ear { display: block; position: fixed; z-index: 101; top: 0; width: 14px; height: 14px; pointer-events: none; transition: left .55s var(--spring), opacity .3s; }
html.island-mode.pos-center .isl-ear.l { left: calc(50% - var(--iw) / 2 - 13.5px); background: radial-gradient(circle at 0 100%, transparent 13.5px, #000 14px); }
html.island-mode.pos-center .isl-ear.r { left: calc(50% + var(--iw) / 2 - .5px); background: radial-gradient(circle at 100% 100%, transparent 13.5px, #000 14px); }
html.island-mode.cap-hidden.isl-collapsed:not(.cap-hover) .isl-ear { opacity: 0; }
html.pos-right.island-mode.isl-expanded:not(.isl-full) #island, html.pos-left.island-mode.isl-expanded:not(.isl-full) #island { width: 360px; height: 318px; border-radius: 28px; }

/* home panel */
.nhome { display: none; }
html.island-mode .nhome { display: flex; position: absolute; inset: 0; z-index: 2; flex-direction: column; align-items: center; gap: 8px; padding: 10px 12px 14px; color: #fff;
  opacity: 0; pointer-events: none; transform: translateY(-8px) scale(.98); transition: opacity .2s, transform .3s var(--ease); }
html.island-mode.isl-expanded:not(.isl-full) .nhome { opacity: 1; pointer-events: auto; transform: none; transition: opacity .3s .12s, transform .5s var(--spring) .08s; }
html.island-mode.isl-expanded:not(.isl-full) .isl-body { opacity: 0 !important; pointer-events: none !important; }
html.island-mode.isl-full .nhome { display: none; }
.nh-apps { display: flex; align-items: center; gap: 3px; height: 32px; padding: 0 5px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); max-width: 100%; overflow: hidden; }
.nh-zuffi { font-size: 11.5px; font-weight: 700; padding: 0 8px; color: #D8D9DE; }
.nh-apps button { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 4px; border-radius: 12px; color: #fff; }
.nh-apps button.cur { padding: 0 8px 0 5px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.nh-apps button:hover { background: rgba(255,255,255,.1); }
.nh-apps img { width: 18px; height: 18px; } .nh-apps em { font-style: normal; font-size: 11px; font-weight: 700; white-space: nowrap; }
.nh-dot { width: 14px; height: 14px; border-radius: 4px; background: #3A3B42; }
.nh-mid { display: flex; align-items: center; justify-content: space-between; width: 100%; flex: 1; min-height: 0; }
.nh-col { display: flex; flex-direction: column; gap: 9px; width: 46px; align-items: center; }
.nh-b { display: grid; place-items: center; color: var(--t); background: color-mix(in srgb, var(--t) 14%, rgba(255,255,255,.04)); border: 1px solid color-mix(in srgb, var(--t) 26%, transparent);
  transition: transform .15s, background .2s; }
.nh-b.round { width: 34px; height: 34px; border-radius: 50%; } .nh-b.round:nth-child(n+3) { border-radius: 10px; }
.nh-b.cap2 { width: 42px; height: 28px; border-radius: 14px; }
.nh-b:hover { transform: scale(1.08); background: color-mix(in srgb, var(--t) 24%, rgba(255,255,255,.05)); } .nh-b:active { transform: scale(.94); }
.nh-c { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nh-head { width: 100px; height: 100px; cursor: pointer; filter: hue-rotate(var(--zfur, 0deg)); }
.nh-words { margin: 0; max-width: 100%; padding: 0 6px; font-size: 12.5px; font-weight: 600; line-height: 1.35; text-align: center; color: rgba(255,255,255,.94);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.nh-bot { display: flex; gap: 6px; align-items: center; }
.nh-pill { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 11.5px; font-weight: 700; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); transition: background .2s; }
.nh-pill:hover { background: rgba(255,255,255,.14); }
.nh-pill.off { color: #FF8A8F; background: rgba(229,72,77,.14); border-color: rgba(229,72,77,.3); }
.nh-pill.biz { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: #FFE2AE; }
.nh-talk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--grad); }
.isl-listening .nh-talk { animation: breathe 1.2s ease-in-out infinite; }
.nh-tip { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); padding: 3px 9px; border-radius: 10px; background: rgba(0,0,0,.82); border: 1px solid rgba(255,255,255,.1);
  font-size: 10.5px; font-weight: 700; white-space: nowrap; pointer-events: none; }
/* big island (chat, plan, settings…) */
html.island-mode .isl-home { display: none; }
html.island-mode.isl-full .isl-home { display: grid; margin-right: 2px; }
html.island-mode.isl-full .isl-apps { display: none !important; }
html.island-mode .top { background: linear-gradient(#000 70%, rgba(0,0,0,0)); }
html.island-mode.pos-center .top { padding-top: 14px; }
html.island-mode .ask { background: #16171B; border-color: rgba(255,255,255,.08); }
html.island-mode .tabs { background: #111215; border-color: rgba(255,255,255,.06); }
html.island-mode .sheet, html.island-mode .focus { background: #0B0B0D; border-color: rgba(255,255,255,.08); }
html.island-mode details, html.island-mode .card { background: rgba(255,255,255,.045); }
html.island-mode .isl-body::after { background: linear-gradient(rgba(0,0,0,0), #000 70%); }

/* ================= Business on a computer = the Mac dashboard ================= */
.bz-side { display: none; }
html.biz-dash .bz-side { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 2px; padding: 0 10px 120px 12px; align-self: start; overflow-y: auto; max-height: 100%; }
html.biz-dash .bz-side button { position: relative; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 10px; border-radius: 9px; color: var(--muted); text-align: left; }
html.biz-dash .bz-side button:hover { background: rgba(255,255,255,.04); color: var(--text); }
html.biz-dash .bz-side button.on { min-height: 44px; background: rgba(255,255,255,.06); color: var(--text); }
html.biz-dash .bz-side button.on::before { content: ""; position: absolute; left: -1px; top: 50%; width: 3px; height: 18px; margin-top: -9px; border-radius: 2px; background: var(--accent); }
html.biz-dash .bz-side .si { width: 20px; display: grid; place-items: center; flex: none; }
html.biz-dash .bz-side button.on .si { color: var(--accent); }
html.biz-dash .bz-side .st { flex: 1; min-width: 0; display: flex; flex-direction: column; }
html.biz-dash .bz-side .st b { font-size: 13px; font-weight: 500; } html.biz-dash .bz-side button.on .st b { font-weight: 650; }
html.biz-dash .bz-side .st small { font-size: 10.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #F58FA8; color: #1A0B10; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
html.biz-dash .bz-head { margin: 4px 0 14px 14px; }
html.biz-dash .bz-hello { display: none; }
.bz-top { display: flex; align-items: center; gap: 10px; }
html.biz-dash .bz-body > .bz-top, html.biz-dash .bz-body > .bz-tips, html.biz-dash .bz-body > .bz-pipe, html.biz-dash .bz-body > .bz-tablewrap, html.biz-dash .bz-body > .bz-hint { grid-column: 1 / -1; margin: 0; }
.bz-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bz-tt b { font-size: 22px; font-weight: 700; letter-spacing: -.3px; } .bz-tt small { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.bz-btn.sm { width: auto; height: 32px; padding: 0 14px; font-size: 12.5px; border-radius: 16px; margin: 0; }
.bz-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bz-tips div { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.bz-tips i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--soft); color: var(--accent); font-style: normal; font-weight: 800; font-size: 11px; display: grid; place-items: center; }
/* inbox */
.bz-msg { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bz-msg:last-child { border-bottom: 0; }
.bz-msg.wait { box-shadow: inset 3px 0 0 #F58FA8; }
.bz-msg .bz-rt { flex: 1; min-width: 0; text-align: left; } .bz-msg .bz-rt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.bz-when { font-size: 11px; color: var(--faint); white-space: nowrap; }
/* pipeline */
.bz-pipe { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.bz-col { flex: 1 0 168px; min-width: 168px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 10px; transition: background .2s, border-color .2s; }
.bz-col.over { background: color-mix(in srgb, var(--c) 10%, transparent); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.bz-col h5 { margin: 0 0 4px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; }
.bz-col h5 i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); } .bz-col h5 span { margin-left: auto; color: var(--faint); font-weight: 600; }
.bz-colsum { display: block; font-size: 11px; color: var(--muted); margin: 0 0 6px 15px; }
.bz-colb { display: flex; flex-direction: column; gap: 7px; min-height: 60px; margin-top: 8px; }
.bz-kcard { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 11px; border-radius: 10px; text-align: left; background: #1A1B20; border: 1px solid var(--line); cursor: grab; }
.bz-kcard:hover { border-color: rgba(255,255,255,.16); } .bz-kcard.drag { opacity: .4; }
.bz-kcard b { font-size: 13px; font-weight: 650; } .bz-kcard small { font-size: 11.5px; color: var(--muted); }
.bz-col .bz-empty { font-size: 11.5px; text-align: center; padding: 14px 0; border: 1px dashed var(--line); border-radius: 10px; margin: 0; }
/* records */
.bz-tablewrap { overflow: auto; max-height: calc(100vh - 230px); }
.bz-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bz-table th { position: sticky; top: 0; background: #16171B; text-align: left; font-weight: 650; color: var(--muted); padding: 10px 12px; white-space: nowrap; cursor: pointer; user-select: none; border-bottom: 1px solid var(--line); }
.bz-table th.on { color: var(--text); }
.bz-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.bz-table tbody tr { cursor: pointer; } .bz-table tbody tr:hover { background: rgba(255,255,255,.035); }
/* automations */
.bz-auto { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.bz-auto:last-of-type { border-bottom: 0; } .bz-auto .bz-rt { flex: 1; }
.bz-sw { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 24px; border-radius: 12px; background: rgba(255,255,255,.14); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.bz-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.bz-sw:checked { background: var(--accent); } .bz-sw:checked::after { transform: translateX(16px); }

/* Windows notch home: pop-ups become Zuffi's words (see desktop.js), not a box over them */
html.island-mode.isl-expanded:not(.isl-full) .toast { display: none !important; }

/* ================= Home: Zuffi's window =================
   One bold thing: the Home card is a little window onto Zuffi's world. The sky and the outfit follow the
   season (seasons.js); everything else on the page stays quiet. */
@font-face { font-family: 'Bricolage'; src: url(fonts/bricolage.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
:root { --display: 'Bricolage', ui-rounded, system-ui, sans-serif; }
.hello { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -.6px; font-variation-settings: "wdth" 92; }
.today { font-weight: 500; letter-spacing: .1px; }
.brief { font-family: var(--display); font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -.1px; }
.section-title > span:first-child, .bz-tt b, .bz-hello b, .bz-top b { font-family: var(--display); letter-spacing: -.3px; }
.section-title > span:first-child { font-size: 19px; font-weight: 650; }

.hero { min-height: 168px; padding: 18px 18px 18px 8px; border-radius: 28px; isolation: isolate; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 18% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); }
html[data-event]:not([data-event="none"]) .hero { background: linear-gradient(172deg, var(--sky1), var(--sky2)); border-color: color-mix(in srgb, var(--accent) 28%, transparent); color: #F4F6FA; }
html[data-event]:not([data-event="none"]) .hero .brief { color: #F4F6FA; }
html[data-event]:not([data-event="none"]) .hero .chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); color: #fff; }
html[data-event]:not([data-event="none"]) .hero::before { background: radial-gradient(90% 70% at 20% 105%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%); }
.hero .bird-wrap { width: 132px; height: 124px; }
.hero .bird-wrap::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -2px; height: 14px; border-radius: 50%; background: rgba(0,0,0,.28); filter: blur(6px); z-index: -1; }
.hero .bird { width: 132px; height: 124px; }
.hero-fx { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; border-radius: inherit;
  -webkit-mask-image: linear-gradient(90deg, #000 0 36%, rgba(0,0,0,.28) 52%, rgba(0,0,0,.28) 100%); mask-image: linear-gradient(90deg, #000 0 36%, rgba(0,0,0,.28) 52%, rgba(0,0,0,.28) 100%); }
.look-tag { position: absolute; top: 10px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px;
  font-size: 11.5px; font-weight: 650; color: #fff; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.look-tag span { font-size: 12px; }
.hero:has(.look-tag:not([hidden])) .hero-text { padding-top: 22px; }

/* season effects */
.fx-snow { position: absolute; top: -8px; width: calc(6px * var(--s)); height: calc(6px * var(--s)); border-radius: 50%; background: #fff; opacity: .85;
  animation: fx-fall linear infinite; filter: blur(.3px); }
@keyframes fx-fall { to { transform: translate(var(--x), 190px); } }
.fx-conf { position: absolute; top: -10px; width: 7px; height: 11px; border-radius: 2px; transform: rotate(var(--r)); animation: fx-conf linear infinite; opacity: .9; }
@keyframes fx-conf { to { transform: translate(var(--x), 190px) rotate(calc(var(--r) + 540deg)); } }
.fx-heart { position: absolute; bottom: -18px; font-style: normal; font-size: calc(16px * var(--s)); color: #FF8FB1; opacity: .7; animation: fx-rise linear infinite; }
.fx-ember { position: absolute; bottom: -6px; width: calc(5px * var(--s)); height: calc(5px * var(--s)); border-radius: 50%; background: #FFB067; box-shadow: 0 0 8px #FF8A3C; animation: fx-rise linear infinite; }
@keyframes fx-rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .85; } 100% { transform: translate(var(--x), -200px); opacity: 0; } }
.fx-lantern { position: absolute; top: 0; width: 2px; height: var(--h); background: rgba(233,196,106,.55); transform-origin: top center; animation: fx-sway 4s ease-in-out infinite alternate; }
.fx-lantern b { position: absolute; left: -9px; bottom: -24px; width: 20px; height: 26px; border-radius: 6px 6px 9px 9px; background: linear-gradient(#FFE9A8, #E9A93A);
  box-shadow: 0 0 18px 4px rgba(255,200,90,.45); }
.fx-lantern b::before { content: ""; position: absolute; left: 3px; right: 3px; top: -4px; height: 5px; border-radius: 3px; background: #B8862B; }
@keyframes fx-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.fx-star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #FFF6D8; box-shadow: 0 0 4px #FFF1B8; animation: fx-twinkle 3.5s ease-in-out infinite; }
@keyframes fx-twinkle { 50% { opacity: .2; } }
.fx-sun { position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,110,.55), rgba(255,214,110,0) 68%); animation: fx-glow 6s ease-in-out infinite alternate; }
@keyframes fx-glow { to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero-fx * { animation: none !important; } .fx-snow, .fx-conf { top: auto; bottom: calc(10px + 60% * var(--s)); } .fx-heart, .fx-ember { bottom: 40%; opacity: .5; } }

/* outfit picker (Settings → Zuffi's outfit & seasons) */
.outfits { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin: 10px 0 12px; }
.outfits button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); color: var(--text); }
.outfits button.on { border-color: var(--ev, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ev, var(--accent)) 25%, transparent); }
.outfits b { font-size: 12.5px; font-weight: 650; } .outfits small { font-size: 10.5px; color: var(--muted); }
.of-face { width: 64px; height: 64px; background-size: 300% 300%; background-position: 50% 50%; background-repeat: no-repeat; }

/* Home: "When's your birthday?" (asked once) */
.bday-ask { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 14px 16px; margin-top: 10px; }
.bday-ask[hidden] { display: none; }
.bday-ic { font-size: 28px; grid-row: span 2; }
.bday-t { display: flex; flex-direction: column; } .bday-t b { font-family: var(--display); font-size: 16px; font-weight: 650; } .bday-t small { color: var(--muted); font-size: 13px; }
.bday-ask input { grid-column: 2; min-height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--input); color: var(--text); padding: 0 10px; font: inherit; }
.bday-btns { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.chip.solid { background: var(--accent); color: var(--ink); border-color: transparent; }

/* ---------- Zuffi account & plan ---------- */
.acc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.acc-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: inherit; letter-spacing: .02em; }
.acc-badge.pro { background: var(--accent); color: var(--ink); }
.acc-badge.business { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--ink); }
.acc-dev { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(127,127,127,.18); }
.acc-dev span { flex: 1; display: flex; flex-direction: column; }
.acc-dev small { opacity: .65; font-size: 12px; text-transform: capitalize; }
#accBox .row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.bz-perks { margin: 10px 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.bz-perks li { position: relative; padding-left: 26px; line-height: 1.35; }
.bz-perks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.bz-meter { height: 8px; border-radius: 99px; background: rgba(127,127,127,.18); overflow: hidden; margin: 8px 0 4px; }
.bz-meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s; }
.bz-tag { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--accent); color: var(--ink); margin-left: 4px; vertical-align: 1px; }
.bz-auto input:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- paywall: trial over / not signed in ---------- */
#paywall { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#paywall[hidden] { display: none; }
.pw-card { width: min(440px, 100%); padding: 26px 22px 18px; border-radius: 26px; text-align: center; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pwIn .5s cubic-bezier(.16,1,.3,1); }
.pw-head { width: 104px; height: 104px; margin: -4px auto 8px; background: url(mascots/zuffi-directions.webp) 50% 50% / 300% 300% no-repeat; animation: pwBob 3.6s ease-in-out infinite; }
.pw-card h2 { margin: 4px 0 8px; font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.pw-card > p { margin: 0 auto; max-width: 34ch; }
.pw-box { margin-top: 16px; text-align: left; }
.pw-box #accBox .row-btns { justify-content: center; }
.pw-foot { margin: 16px 0 0 !important; font-size: 13px; opacity: .75; }
.pw-foot a { color: inherit; }
@keyframes pwIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes pwBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.acc-badge.trial { background: color-mix(in srgb, var(--good, #16A34A) 25%, transparent); }
.ai-source { display: grid; gap: 8px; margin-bottom: 12px; }
.ai-source .radio-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; }
.ai-source .radio-row input { margin-top: 3px; grid-row: span 2; }
.ai-source .radio-row small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ai-source .radio-row:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ai-source .radio-row:has(input:disabled) { opacity: .55; cursor: default; }

/* ---------- "How to use Zuffi" guide ---------- */
#guide { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#guide[hidden] { display: none; }
.gd-card { position: relative; width: min(420px, 100%); padding: 28px 22px 18px; border-radius: 26px; text-align: center; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pwIn .45s cubic-bezier(.16,1,.3,1); }
.gd-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 15px; cursor: pointer; }
.gd-ico { font-size: 46px; line-height: 1; margin-bottom: 10px; animation: pwBob 3.6s ease-in-out infinite; }
.gd-card h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em; }
.gd-card p { margin: 0 auto; max-width: 34ch; min-height: 6.2em; color: var(--muted); line-height: 1.5; font-size: 15px; }
.gd-dots { display: flex; justify-content: center; gap: 6px; margin: 16px 0 14px; }
.gd-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
.gd-dots button.on { width: 22px; border-radius: 6px; background: var(--accent); }
.guide-open { width: 100%; margin: 4px 0 10px; }
