/* Hallmark · shape: app screen · genre: modern-minimal · theme: Dose (by request) · redesign: full
 * nav: Finchronise and language · signature: seven translucent service compartments with a paper action slip
 * states: guest, signed in, selected, loading, error, working, paused · dose: white · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4 · weakest: execution, the sleeves need real wall thickness and the action must be legible beside the open lid. */
/* Hallmark · reworded "Hi! What do you need help with today?" to "Your service organiser" · the home screen now names the service chooser. */
/* Hallmark · dropped "How can I help?" · a second greeting above the seven named services duplicated the new heading. */
/* Hallmark · reworded "Let’s do this together" to "Your workspace" · the active desktop now has a concrete heading. */
/* Hallmark · reworded "Welcome!" to "Your workspace" · the sign-in slip identifies the workspace. */
/* Hallmark · reworded "How would you like to add it?" to "Add your EAC bill" · the bill heading names the document. */
/* Hallmark · dropped helplivio-icon.svg, helplivio-mascot.png · the requested Finchronise identity and service organiser replace the old home artwork. */
:root {
  --desk-width: 69rem;
  --page-pad: clamp(16px, 5vw, 68px);
  --window-light: rgb(255 253 235 / 86%);
  --window-frame: rgb(95 109 79 / 6%);
  --letterpress: rgb(255 255 255 / 68%);
  --paper-edge: #e8e5d7;
  --tray-ink: #172b22;
  --tray-shadow: rgb(67 64 40 / 19%);
  --paper-lift: 0 1px 2px var(--color-shadow), 8px 20px 32px -14px var(--tray-shadow);
  --tint: var(--p-mon);
  --ease-lid: cubic-bezier(.22,.68,.22,1);
  --hub-track: clamp(96px, 9vw, 120px);
  --hub-diameter: clamp(70px, 6.4vw, 84px);
  --seat-angle: 1.6deg;
}
html, body { overflow-x: clip; }
body {
  min-height: 100vh;
  background-color: var(--color-paper);
  background-image: url("/assets/paper-grain.png"), linear-gradient(115deg, var(--light), var(--color-paper) 48%, var(--desk-shade));
}
body::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 47rem; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(112deg, transparent 0 19%, var(--window-frame) 21%, var(--window-light) 23% 38%, transparent 41% 50%);
  filter: blur(12px);
}
button, a, summary, .pick, input, select { -webkit-tap-highlight-color: transparent; }
:is(a,button,input,select,summary,.pick):focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
h1,h2,h3 { min-width: 0; overflow-wrap: break-word; text-wrap: balance; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mast {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(calc(100% - var(--page-pad) * 2), var(--desk-width));
  margin: 16px auto 0; padding: 10px 14px 10px 12px; min-height: 68px;
  border-radius: 22px;
  background: url("/assets/paper-grain.png"), linear-gradient(180deg, rgba(255, 254, 249, 0.94) 0%, rgba(246, 242, 230, 0.86) 100%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(18, 85, 63, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 12px 30px -20px rgba(14, 62, 46, 0.34), 0 2px 6px -2px rgba(23, 43, 36, 0.06);
}
.mast::before {
  content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 1.5px;
  border-radius: 999px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(20, 108, 76, 0.42) 25%, rgba(224, 189, 114, 0.72) 50%, rgba(20, 108, 76, 0.42) 75%, transparent 100%);
}
.brand {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 12px;
  color: var(--color-ink); text-decoration: none; flex: 1 1 auto; min-width: 0;
}
.brand-emblem {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; flex: none; border-radius: 13px; padding: 1.5px;
  background: linear-gradient(145deg, rgba(232, 200, 126, 0.68), rgba(18, 85, 63, 0.38) 55%, rgba(168, 224, 200, 0.62));
  box-shadow: 0 6px 14px -5px rgba(12, 62, 46, 0.46), 0 1px 2px rgba(12, 62, 46, 0.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.brand-emblem.is-sm { width: 36px; height: 36px; border-radius: 11px; }
.brand:hover .brand-emblem {
  transform: translateY(-1px) scale(1.035);
  box-shadow: 0 9px 18px -6px rgba(12, 62, 46, 0.54), 0 0 0 2px rgba(18, 99, 70, 0.14);
}
.brand img, .brand-logo { width: 100%; height: 100%; border-radius: 11.5px; display: block; object-fit: cover; }
.brand-emblem.is-sm .brand-logo { border-radius: 9.5px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wordmark {
  font: 800 1.4rem/1 var(--font-title); letter-spacing: -.045em;
  color: #114832;
  background: linear-gradient(125deg, #0b3a2b 0%, #145e44 65%, #1d7957 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-tag {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; overflow: hidden;
  font: 700 .64rem/1.1 var(--font-body); letter-spacing: .11em; text-transform: uppercase;
  color: #4c6c60; white-space: nowrap;
}
.brand-tag > span { overflow: hidden; text-overflow: ellipsis; }
.brand-dot {
  width: 5px; height: 5px; border-radius: 50%; flex: none;
  background: #1e9466; box-shadow: 0 0 0 2.5px rgba(30, 148, 102, 0.18);
}
.mast-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.mast-actions button { white-space: nowrap; }
.user-pill {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; max-width: 152px; padding: 3px 12px 3px 5px;
  border-radius: 999px; border: 1px solid rgba(18, 85, 63, 0.16);
  background: rgba(255, 253, 245, 0.92); color: #124834;
  font: 700 .8rem/1 var(--font-body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 6px -3px rgba(14, 62, 46, 0.2);
}
.user-pill[hidden] { display: none; }
.user-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none;
  border: 1px solid rgba(18, 85, 63, 0.2); background: #e8efe9;
}
.user-avatar[hidden] { display: none; }
.user-pill:has(.user-avatar[hidden]) { padding-left: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 4px 5px 4px 10px; border-radius: 999px;
  border: 1px solid rgba(18, 85, 63, 0.16);
  background: rgba(18, 85, 63, 0.065);
  color: #164937;
  box-shadow: inset 0 1px 2px rgba(15, 56, 42, 0.07), 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.lang-switch:hover { border-color: rgba(18, 85, 63, 0.34); background: rgba(18, 85, 63, 0.10); }
.lang-switch:active { transform: translateY(1px); }
.lang-globe { width: 15px; height: 15px; color: #1a6348; stroke-width: 1.9; flex: none; }
.lang-track { display: inline-flex; align-items: center; gap: 2px; }
.lang-opt {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px;
  font: 700 .76rem/1 var(--font-title); letter-spacing: .04em; color: #46665a;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.lang-switch[data-lang="en"] .is-en,
.lang-switch[data-lang="el"] .is-el {
  background: linear-gradient(180deg, #176c4d 0%, #0f4c36 100%);
  color: #fffdf5;
  box-shadow: 0 3px 8px -2px rgba(12, 62, 46, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.access-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  font: 700 .86rem/1 var(--font-body);
  color: #fffdf5;
  background: linear-gradient(180deg, #17694b 0%, #0f4b35 100%);
  border: 1px solid #0d422f;
  box-shadow: 0 4px 10px -4px rgba(12, 62, 46, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: filter .16s ease, transform .12s ease;
}
.access-link:hover { filter: brightness(1.07); }
.access-link:active { transform: translateY(1px); }
main {
  display: grid; isolation: isolate; max-width: none; width: min(calc(100% - var(--page-pad) * 2), var(--desk-width));
  margin: 0 auto; padding: 0 0 32px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "notice notice" "intro ticket" "connections connections" "tray tray" "pulse pulse" "transcript transcript"
    "help help" "workspace workspace" "provider provider" "portfolio portfolio" "inbox inbox" "wallet wallet" "foot foot";
}
main > :is(.grid, #inbox, #investWorkspace, #servicePanel, #billWays, footer, noscript) { grid-column: 1 / -1; }
main > noscript { grid-area: help; } main > .grid { grid-area: workspace; }
#servicePanel { grid-area: provider; } #investWorkspace { grid-area: portfolio; } #inbox { grid-area: inbox; }
#billWays { grid-area: wallet; } main > footer { grid-area: foot; }
.home-workbench { display: contents; }
.intro { grid-area: intro; align-self: center; text-align: left; max-width: none; width: 100%; margin: 0; padding-top: clamp(24px, 4vh, 42px); }
.intro h1 { font: 700 clamp(3.15rem, 5.4vw, 4.65rem)/.99 var(--font-title); letter-spacing: -.065em; max-width: 12ch; }
.intro p { max-width: 46ch; margin: 16px 0 0; font-size: clamp(1rem, 1.55vw, 1.15rem); line-height: 1.5; }
#notice { grid-area: notice; max-width: 100%; margin-inline: 0; }
#notice:empty, #inbox:empty { display: none; }
.dock { display: contents; }
.dockbody {
  grid-area: tray; align-self: center; justify-self: center; z-index: 3;
  width: var(--hub-track); display: grid; justify-items: center;
}
.dock > .caption { grid-area: transcript; max-width: 54ch; justify-self: center; }
.dock > .caption:empty { display: none; }
.voice-button {
  display: flex; flex-direction: column; gap: 9px; width: 100%; min-height: 44px; padding: 0;
  color: var(--color-deep); background: transparent; border: 0; box-shadow: none; border-radius: 14px;
  font: 700 .875rem/1.12 var(--font-body); text-align: center; touch-action: manipulation;
}
.voice-button:hover { color: var(--color-deep); background: transparent; }
.mic-face {
  display: grid; place-items: center; position: relative; isolation: isolate;
  width: var(--hub-diameter); aspect-ratio: 1; border-radius: 50%; border: 1px solid #939780;
  background: linear-gradient(145deg, #fffceb 1%, #e2e0ca 29%, #b5b8a5 69%, #f4f0dc 94%);
  box-shadow: inset 0 2px 1px #fffdef, inset 0 -2px 1px #9b9e89, 0 4px 0 #b2b39e, 0 10px 14px -7px #515a4385;
}
.mic-face::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid #1c4937;
  background: radial-gradient(ellipse at 35% 15%, #4e896d, #28664a 42%, #174c38 74%, #103c2d);
  box-shadow: inset 0 2px 1px #89a991, inset 0 -3px 2px #123c2e, 0 1px 1px #fff9d9;
  transition: filter .16s, transform .16s;
}
.mic-face::after {
  content: ""; position: absolute; top: 2px; left: calc(50% - 2px); width: 4px; height: 3px;
  border-radius: 3px; background: #8a927b; box-shadow: 0 1px 0 #fff8;
}
.voice-button .studio-mic { z-index: 1; width: 43%; height: 52%; filter: drop-shadow(0 1px 1px #0d352c); }
.voice-button .voice-inline-icon { display: none; }
.voice-button:hover .mic-face::before { filter: brightness(1.1); }
.voice-button:active .mic-face::before, .voice-button:active .studio-mic { transform: translateY(1.5px); }
.voice-button[aria-pressed="true"] .mic-face::after { background: #d7f89a; box-shadow: 0 0 5px #d5ff9a; }
.ticket-stack { grid-area: ticket; align-self: end; justify-self: center; width: min(100% - 32px, 24rem); margin: 20px 0 -4px; position: relative; z-index: 2; }
.ticket-stack::before {
  content: ""; position: absolute; inset: 12% -8px -8px 34%;
  border-radius: 12px; border: 1px solid color-mix(in srgb,var(--tint) 75%,var(--tray-ink));
  background: linear-gradient(145deg, color-mix(in srgb,var(--tint) 58%,var(--color-panel)), var(--tint));
  box-shadow: inset 0 2px 0 var(--letterpress), 0 8px 16px -12px var(--tray-shadow);
  transform: rotate(6deg);
}
.service-slip {
  position: relative; padding: 24px 28px 20px; min-width: 0;
  border: 1px solid var(--paper-edge); border-radius: 8px 8px 4px 4px;
  background: url("/assets/paper-grain.png"), var(--color-panel);
  box-shadow: var(--paper-lift); transform-origin: 50% 100%;
}
.service-slip:not([hidden]) { animation: pull-slip .22s var(--ease-lid); }
@keyframes pull-slip { from { transform: translateY(8px); } to { transform: translateY(0); } }
.service-slip::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 5px;
  background: linear-gradient(135deg, var(--color-panel) 25%, transparent 26%) 0 0 / 8px 8px,
              linear-gradient(225deg, var(--color-panel) 25%, transparent 26%) 0 0 / 8px 8px;
}
.slip-provider {
  display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--color-rule); font-size: .9375rem; font-weight: 500; color: var(--color-sub);
}
.provider-mark { object-fit: contain; flex: none; user-select: none; }
.mark-claims { --mark-width: 88px; }.mark-shop { --mark-width: 71px; }.mark-rewards { --mark-width: 83px; }
.mark-gov { --mark-width: 78px; background: #31576a; padding: 3px 5px; border-radius: 4px; }
.slip-provider .provider-mark { width: min(var(--mark-width, 22px), 53px); height: 24px; }
.slip-provider .mark-gov { height: 21px; padding: 2px 4px; }
.service-slip h2 { font: 700 clamp(1.5rem, 2.3vw, 1.9375rem)/1.12 var(--font-title); letter-spacing: -.045em; }
.service-slip > p { margin: 8px 0 16px; font-size: 1rem; line-height: 1.45; }
.slip-action { padding-top: 12px; border-top: 1px dashed var(--color-rule); }
.solid:not(.voice-button) {
  color: var(--color-panel); background: var(--color-accent); border-radius: 10px; border: 1px solid var(--color-deep);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--color-glint) 28%, transparent), 0 2px 0 var(--color-deep);
}
.solid:not(.voice-button):hover { background: var(--color-accent-hover); }
.solid:not(.voice-button):active { transform: translateY(2px); box-shadow: none; }
.slip-action button { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.tray-wrap {
  grid-area: tray; position: relative; isolation: isolate; min-width: 0;
  padding: clamp(46px, 6.8vh, 72px) 8px clamp(38px, 5.8vh, 62px); margin: 0;
}
.service-tray {
  display: grid; grid-template-columns: repeat(4,minmax(0,3fr)) var(--hub-track) repeat(4,minmax(0,3fr));
  align-items: center; column-gap: 5px; position: relative;
}
.service-tray::before {
  content: ""; position: absolute; top: 50%; bottom: -16px; left: 0; right: 0; z-index: -1;
  transform: translate(8px,12px); border-radius: 20px; filter: blur(12px); opacity: .66;
  background: linear-gradient(90deg, var(--p-mon), var(--p-tue), var(--p-wed), var(--p-learn), var(--p-thu), var(--p-fri), var(--p-sat), var(--p-sun));
}
.compartment {
  display: block; position: relative; isolation: isolate; min-width: 0; height: clamp(94px, 9.1vw, 116px);
  top: var(--seat-y, 0px); transform: rotate(var(--seat-angle, 1.6deg)); touch-action: manipulation;
  padding: 0; margin: 0; border-radius: 12px 12px 14px 14px; text-align: center;
  border: 1px solid color-mix(in srgb, var(--tint) 77%, var(--tray-ink));
  background: linear-gradient(165deg, color-mix(in srgb, var(--tint) 82%, var(--color-panel)), var(--tint) 65%, color-mix(in srgb, var(--tint) 75%, var(--tray-ink)));
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--tint) 72%, var(--tray-ink)), 0 3px 0 color-mix(in srgb,var(--tint) 84%,var(--tray-ink));
}
.bay-bills { --tint: var(--p-mon); --seat-y: -10px; }.bay-claims { --tint: var(--p-tue); --seat-y: -7px; }.bay-invest { --tint: var(--p-wed); --seat-y: -4px; }
.bay-shop { --tint: var(--p-thu); --seat-y: 2px; grid-column: 6; }.bay-rewards { --tint: var(--p-fri); --seat-y: 5px; }
.bay-gov { --tint: var(--p-sat); --seat-y: 8px; }.bay-billers { --tint: var(--p-sun); --seat-y: 11px; }
/* Learn sits last in tab order but beside the hub on the left, completing four tiles on each side. */
.bay-learn { --tint: var(--p-learn); --seat-y: -1px; grid-column: 4; grid-row: 1; }
.mark-learn { fill: none; stroke: var(--tray-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.orbit-track {
  display: none; pointer-events: none; position: absolute; left: var(--orbit-x); top: var(--orbit-y);
  width: var(--orbit-width); height: var(--orbit-height); transform: translate(-50%, -50%);
  border: 1px dashed rgb(62 93 70 / 30%); border-radius: 50%;
}
[data-orbit="running"] .orbit-track { display: block; }
[data-orbit="pending"] .compartment { animation: show-pending .12s ease 1s both; }
@keyframes show-pending { from { opacity: 0; } to { opacity: 1; } }
:is([data-orbit="pending"],[data-orbit="running"]) .service-tray::before { opacity: 0; }
[data-orbit="running"] .compartment {
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--tint) 72%, var(--tray-ink)),
    0 3px 0 color-mix(in srgb, var(--tint) 84%, var(--tray-ink)), 0 12px 15px -10px color-mix(in srgb, var(--tint) 57%, #5c6352);
}
[data-orbit="running"] .compartment[aria-selected="true"]::before { opacity: 0; }
[data-orbit="running"] .compartment[aria-selected="true"] .lid { transform: none; }
.lid {
  position: absolute; inset: -5px -1px 13px; border-radius: 12px 12px 8px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px 4px;
  color: var(--tray-ink); font: 650 clamp(.875rem, 1.2vw, 1rem)/1.15 var(--font-body);
  background: linear-gradient(155deg, color-mix(in srgb, var(--tint) 52%, var(--color-glint)), color-mix(in srgb, var(--tint) 84%, var(--color-glint)) 58%, var(--tint));
  border: 1px solid color-mix(in srgb, var(--tint) 83%, var(--tray-ink));
  box-shadow: inset 0 1px 0 var(--letterpress), inset 0 -3px 0 color-mix(in srgb,var(--tint) 56%,var(--color-glint)), 0 2px 0 var(--letterpress);
  transform-origin: 50% 0; transition: transform .2s var(--ease-lid);
}
.lid::after { content: ""; position: absolute; width: 32%; height: 4px; bottom: -5px; border: 1px solid var(--letterpress); border-top: 0; border-radius: 0 0 5px 5px; }
.lid .provider-mark { display: block; width: min(var(--mark-width, 40px), 84%); height: 32px; }
.bay-gov .lid { padding-inline: 2px; }
.lid span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.compartment:hover .lid { transform: translateY(-3px); }
.compartment[aria-selected="true"]::before {
  content: ""; position: absolute; left: 1%; right: 1%; bottom: 88%; height: 38%; z-index: -1;
  transform: perspective(300px) rotateX(-15deg); transform-origin: 50% 100%;
  border: 1px solid color-mix(in srgb,var(--tint) 75%,var(--tray-ink)); border-radius: 10px 10px 4px 4px;
  background: linear-gradient(165deg, color-mix(in srgb,var(--tint) 55%,var(--color-panel)),var(--tint));
  box-shadow: inset 0 2px 0 var(--letterpress);
}
.compartment[aria-selected="true"] .lid { transform: translateY(-9px) rotateX(13deg); }
.compartment[aria-selected="true"]::after { content: ""; position: absolute; left: 36%; right: 36%; bottom: 3px; height: 3px; border-radius: 3px; background: var(--color-deep); }
.compartment:active .lid { transform: translateY(1px); }
.compartment:focus-visible { z-index: 3; }

/* Seamless voice-reactive microphone aura & glowing, enlarging service compartments */
:root { --voice-level: 0; }
.compartment {
  transition: transform .36s cubic-bezier(.22, 1.28, .36, 1), box-shadow .32s ease, opacity .28s ease, filter .28s ease;
}
.lid .provider-mark {
  transition: transform .36s cubic-bezier(.22, 1.28, .36, 1), filter .32s ease;
}
body.voice-live .mic-face {
  transform: scale(calc(1 + var(--voice-level, 0) * 0.085));
  transition: transform .09s linear, box-shadow .28s ease;
  box-shadow:
    inset 0 2px 1px #fffdef,
    inset 0 -2px 1px #9b9e89,
    0 0 0 calc(4px + var(--voice-level, 0) * 14px) rgb(18 140 94 / 22%),
    0 0 calc(20px + var(--voice-level, 0) * 26px) rgb(22 156 104 / 42%),
    0 10px 18px -7px #12634685;
}
body.voice-live .mic-face::before {
  filter: brightness(1.12);
}
body.voice-speaking .mic-face {
  box-shadow:
    inset 0 2px 1px #fffdef,
    inset 0 -2px 1px #9b9e89,
    0 0 0 calc(7px + var(--voice-level, 0) * 16px) rgb(44 181 124 / 28%),
    0 0 34px rgb(44 181 124 / 52%),
    0 10px 18px -7px #12634685;
}
body.voice-thinking .mic-face {
  animation: mic-think-pulse 1.15s ease-in-out infinite;
}
@keyframes mic-think-pulse {
  0%, 100% { box-shadow: inset 0 2px 1px #fffdef, 0 0 0 5px rgb(18 99 70 / 22%), 0 0 24px rgb(28 164 112 / 44%); }
  50% { box-shadow: inset 0 2px 1px #fffdef, 0 0 0 13px rgb(28 164 112 / 14%), 0 0 40px rgb(34 196 130 / 62%); }
}
body.agent-working .compartment:not(.agent-active):not(.agent-done) {
  opacity: .72;
  filter: saturate(.84);
}
html:not([data-orbit="running"]) .compartment.agent-preview {
  z-index: 6;
  transform: rotate(0deg) translateY(-6px) scale(1.07);
  box-shadow:
    inset 0 -2px 0 color-mix(in srgb, var(--tint) 72%, var(--tray-ink)),
    0 0 0 3px color-mix(in srgb, var(--tint) 78%, #20a870),
    0 0 24px 2px color-mix(in srgb, var(--tint) 70%, #20a870);
}
html:not([data-orbit="running"]) .compartment.agent-preview .lid {
  transform: translateY(-6px) rotateX(9deg);
}
html:not([data-orbit="running"]) .compartment.agent-preview .lid .provider-mark {
  transform: scale(1.12);
}
html:not([data-orbit="running"]) .compartment.agent-active {
  z-index: 9;
  transform: rotate(0deg) translateY(-13px) scale(1.16);
  border-color: color-mix(in srgb, var(--tint) 45%, #19a96e);
  animation: service-glow 1.75s ease-in-out infinite;
}
html:not([data-orbit="running"]) .compartment.agent-active .lid {
  transform: translateY(-10px) rotateX(14deg);
  background: linear-gradient(155deg, #ffffff, color-mix(in srgb, var(--tint) 68%, #fff) 55%, var(--tint));
  box-shadow: inset 0 1px 0 #fff, 0 0 22px color-mix(in srgb, var(--tint) 75%, #ffffff);
}
html:not([data-orbit="running"]) .compartment.agent-active .lid .provider-mark {
  transform: scale(1.22);
  filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--tint) 60%, #126346));
  animation: mark-float 1.5s ease-in-out infinite;
}
html:not([data-orbit="running"]) .compartment.agent-done {
  z-index: 8;
  transform: rotate(0deg) translateY(-9px) scale(1.1);
  border-color: var(--color-good);
  box-shadow: 0 0 0 2px rgb(23 142 90 / 35%), 0 0 34px 8px rgb(34 196 124 / 36%);
  animation: service-done-pop .55s cubic-bezier(.22, 1.35, .36, 1);
}
html:not([data-orbit="running"]) .compartment.agent-done .lid .provider-mark {
  transform: scale(1.15);
}
@keyframes service-glow {
  0%, 100% {
    box-shadow:
      inset 0 -2px 0 color-mix(in srgb, var(--tint) 72%, var(--tray-ink)),
      0 0 0 2px color-mix(in srgb, var(--tint) 50%, #24b87a),
      0 0 26px 8px color-mix(in srgb, var(--tint) 76%, #24b87a),
      0 14px 28px -10px rgb(17 72 50 / 38%);
  }
  50% {
    box-shadow:
      inset 0 -2px 0 color-mix(in srgb, var(--tint) 72%, var(--tray-ink)),
      0 0 0 3px color-mix(in srgb, var(--tint) 38%, #2dd18a),
      0 0 46px 16px color-mix(in srgb, var(--tint) 72%, #2dd18a),
      0 18px 34px -8px rgb(17 72 50 / 48%);
  }
}
@keyframes mark-float {
  0%, 100% { transform: scale(1.22) translateY(0); }
  50% { transform: scale(1.26) translateY(-2px); }
}
@keyframes service-done-pop {
  0% { transform: rotate(0deg) translateY(-6px) scale(1.02); }
  55% { transform: rotate(0deg) translateY(-13px) scale(1.15); }
  100% { transform: rotate(0deg) translateY(-9px) scale(1.1); }
}
.agent-pulse {
  grid-area: pulse; justify-self: center; display: inline-flex; align-items: center; gap: 10px;
  margin: 0 auto 10px; padding: 9px 16px; border-radius: 999px;
  background: var(--color-panel); border: 1px solid color-mix(in srgb, var(--color-accent) 42%, var(--color-rule));
  box-shadow: 0 4px 18px -6px rgb(18 99 70 / 28%);
  color: var(--color-deep); font: 600 .9375rem/1.3 var(--font-body);
}
.agent-pulse[data-stage="completed"] {
  background: var(--color-light); border-color: var(--color-good);
}
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); flex: none;
  box-shadow: 0 0 0 0 rgb(18 99 70 / 45%);
  animation: pulse-ring 1.3s ease-out infinite;
}
.agent-pulse[data-stage="completed"] .pulse-dot { background: var(--color-good); animation: none; }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgb(25 162 106 / 55%); }
  75% { box-shadow: 0 0 0 9px rgb(25 162 106 / 0%); }
  100% { box-shadow: 0 0 0 0 rgb(25 162 106 / 0%); }
}
.connections-bar {
  grid-area: connections; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin: 16px 0 -8px; position: relative; z-index: 4;
}
.conn-pill {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 5px 12px;
  border-radius: 999px; border: 1px solid var(--color-rule); background: var(--color-panel);
  color: var(--color-ink); font: 600 .8125rem/1.1 var(--font-body); box-shadow: 0 1px 3px var(--color-shadow);
}
button.conn-pill:hover { border-color: var(--color-accent); background: var(--color-light-2); }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.conn-pill.is-on .conn-dot { background: #1d9a61; box-shadow: 0 0 8px rgb(29 154 97 / 65%); }
.conn-pill.is-off .conn-dot { background: #b4a78a; }
.conn-pill.is-points .conn-dot { background: #2b8ca6; }
.conn-pill.is-reset {
  border-color: rgba(18, 85, 63, 0.2);
  background: rgba(255, 253, 246, 0.88);
  color: #2f5144;
  cursor: pointer;
}
.conn-pill.is-reset:hover { border-color: var(--color-accent); color: #0f4c36; background: #eef6f1; }
.escrow-footer {
  margin-top: 14px; padding-top: 10px;
  border-top: 1px dashed var(--color-rule);
  display: flex; justify-content: flex-end;
}
.escrow-footer button { min-height: 36px; font-size: .8rem; }
.conn-pill.is-escrow {
  border-color: rgba(18, 99, 70, 0.28);
  background: linear-gradient(180deg, #fffdf4 0%, #f3f8f4 100%);
  color: #0f4c36;
}
.conn-pill.is-escrow.has-locked {
  border-color: rgba(186, 134, 24, 0.52);
  background: linear-gradient(180deg, #fffaf0 0%, #fdf3dc 100%);
  color: #6b4604;
  box-shadow: 0 2px 10px -3px rgba(186, 134, 24, 0.34);
}
.conn-pill.is-escrow.has-locked .conn-dot {
  background: #d69418;
  box-shadow: 0 0 0 3px rgba(214, 148, 24, 0.22);
  animation: pulse-ring 1.7s ease-out infinite;
}
.escrow-badge-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: 6px 0 8px; padding: 7px 10px; border-radius: 9px;
  background: linear-gradient(135deg, rgba(18, 99, 70, 0.08), rgba(214, 148, 24, 0.11));
  border: 1px solid rgba(18, 99, 70, 0.2);
  font-size: .78rem; color: #164937;
}
.escrow-badge-bar strong {
  padding: 2px 7px; border-radius: 999px;
  background: #126346; color: #fffdf5; font-size: .7rem; letter-spacing: .02em;
}
.seamless-card.is-escrow-locked {
  border-color: #c88b19;
  background: linear-gradient(180deg, #fffdf6 0%, #fbf5e6 100%);
}
.seamless-card.is-escrow-refunded {
  border-color: #367b63;
  background: linear-gradient(180deg, #f8fcf9 0%, #ecf6f0 100%);
}
.escrow-flow-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  margin: 6px 0 4px; font-size: .76rem; font-weight: 600; color: #3d574c;
}
.escrow-flow-line .is-active-node {
  padding: 2px 8px; border-radius: 999px;
  background: rgba(214, 148, 24, 0.16); border: 1px solid rgba(186, 134, 24, 0.4);
  color: #6b4604;
}
.escrow-flow-sep { color: #8c9c92; }
.escrow-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 10px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid rgba(186, 134, 24, 0.42);
  background: linear-gradient(90deg, #fffaf0 0%, #faf2de 100%);
  font-size: .82rem; font-weight: 700; color: #6b4604;
}
.escrow-strip button { min-height: 34px; padding: 4px 10px; font-size: .78rem; flex: none; }
.escrow-refund-btn {
  border-color: rgba(182, 86, 20, 0.45) !important;
  color: #8a3807 !important;
  background: #fff9f2 !important;
}
.escrow-refund-btn:hover {
  border-color: #a64308 !important;
  background: #ffefe0 !important;
}
dialog.escrow-sheet {
  width: min(560px, calc(100vw - 24px));
  padding: 22px 22px 18px;
  border-radius: 22px;
  border: 1.5px solid rgba(18, 85, 63, 0.22);
  background: url("/assets/paper-grain.png"), linear-gradient(180deg, #fffdf7 0%, #f6f4eb 100%);
  color: var(--color-ink);
  box-shadow: 0 24px 60px rgba(13, 52, 39, 0.28);
}
dialog.escrow-sheet::backdrop { background: rgba(13, 38, 30, 0.52); backdrop-filter: blur(4px); }
.escrow-head-title { display: flex; align-items: center; gap: 11px; }
.escrow-head-title h2 { margin: 0; font-size: 1.18rem; color: #0f4c36; }
.escrow-subhead { display: block; font-size: .76rem; color: #4d675c; font-weight: 600; }
.escrow-emblem {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #176c4d 0%, #0f4a35 100%);
  color: #fff6dc; box-shadow: 0 6px 14px -6px rgba(12, 62, 46, 0.55);
}
.escrow-emblem svg { width: 22px; height: 22px; }
.escrow-accounts {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 10px; margin: 14px 0;
}
.escrow-acct-card {
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(18, 85, 63, 0.16); background: #fffef9;
  display: flex; flex-direction: column; gap: 3px;
}
.escrow-acct-card.is-vault {
  border-color: rgba(18, 99, 70, 0.34);
  background: linear-gradient(180deg, #f9fcf9 0%, #eef7f1 100%);
}
.escrow-acct-card.is-vault.has-funds {
  border-color: rgba(196, 140, 24, 0.54);
  background: linear-gradient(180deg, #fffdf5 0%, #fbf1d8 100%);
}
.escrow-acct-kicker { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #496358; }
.escrow-acct-bal { font-size: 1.38rem; font-weight: 800; color: #0f4a35; line-height: 1.15; }
.escrow-acct-card.is-vault.has-funds .escrow-acct-bal { color: #7a4f04; }
.escrow-acct-id { font-size: .71rem; color: #5b7167; }
.escrow-acct-arrow { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #126346; font-weight: 800; }
.escrow-arrow-pill {
  padding: 2px 7px; border-radius: 999px; font-size: .7rem;
  background: rgba(18, 99, 70, 0.11); color: #0f4c36;
}
.escrow-arrow-glyph { font-size: 1.1rem; line-height: 1; }
.escrow-policy {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(18, 99, 70, 0.065); border: 1px solid rgba(18, 99, 70, 0.14);
}
.escrow-policy-text strong { display: block; font-size: .88rem; color: #124a36; margin-bottom: 3px; }
.escrow-policy-text p { margin: 0; font-size: .78rem; line-height: 1.38; color: #415b50; }
.escrow-policy button { flex: none; min-height: 38px; padding: 6px 12px; font-size: .8rem; }
.escrow-section { margin-top: 14px; }
.escrow-section h3 { font-size: .92rem; color: #164836; margin: 0 0 8px; }
.escrow-empty { font-size: .84rem; color: #546a60; margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(18, 99, 70, 0.04); }
.escrow-hold-card {
  padding: 13px 14px; border-radius: 14px; margin-bottom: 10px;
  border: 1.5px solid rgba(196, 140, 24, 0.44);
  background: linear-gradient(180deg, #fffef9 0%, #fcf6e7 100%);
}
.escrow-hold-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.escrow-hold-head strong { font-size: .96rem; color: #16372b; }
.escrow-hold-amt { font-size: 1.12rem !important; color: #7a4f04 !important; flex: none; }
.escrow-contract-meta { display: block; font-size: .71rem; color: #5a6f65; margin-top: 2px; }
.escrow-progress-wrap { margin: 8px 0 10px; }
.escrow-progress { height: 7px; border-radius: 999px; background: rgba(186, 134, 24, 0.18); overflow: hidden; }
.escrow-progress-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #17865b, #d69418); }
.escrow-timer { display: block; margin-top: 4px; font-size: .74rem; color: #6c5319; font-weight: 600; }
.escrow-hold-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.escrow-hold-actions button { min-height: 38px; padding: 6px 12px; font-size: .82rem; }
.escrow-rail-tag {
  font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: rgba(18, 99, 70, 0.12); color: #0f4c36;
}
.escrow-rail-tag.is-complete {
  background: rgba(20, 148, 92, 0.18); color: #0b5838; border: 1px solid rgba(20, 148, 92, 0.36);
}
.escrow-live-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 12px 0 2px; padding: 8px 11px; border-radius: 11px;
  background: rgba(18, 99, 70, 0.06); border: 1px solid rgba(18, 99, 70, 0.16);
  font-size: .77rem; font-weight: 600; color: #194b39;
}
.escrow-live-bar.is-synced {
  background: linear-gradient(90deg, rgba(20, 148, 92, 0.11), rgba(18, 99, 70, 0.06));
  border-color: rgba(20, 148, 92, 0.34); color: #0d5437;
}
.escrow-live-bar button { min-height: 32px; padding: 4px 10px; font-size: .74rem; flex: none; }
.escrow-live-bal {
  display: inline-block; margin-top: 3px; padding: 2px 7px; border-radius: 999px; width: fit-content;
  font-size: .7rem; font-weight: 700; background: rgba(20, 148, 92, 0.13); color: #0d5437;
}
.escrow-boc-live-note {
  margin: 2px 0 6px !important; padding: 4px 8px; border-radius: 8px; width: fit-content;
  font-size: .73rem; font-weight: 700; background: rgba(18, 99, 70, 0.1); color: #0f4c36;
}
.escrow-history-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.escrow-history-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 10px; border: 1px solid var(--color-rule); background: #fffef9;
}
.escrow-history-item strong { display: block; font-size: .86rem; }
.escrow-history-item small { display: block; font-size: .72rem; color: #52685e; }
.escrow-history-item.is-refunded .escrow-hist-amt { color: #126346; }
.escrow-history-item.is-released .escrow-hist-amt { color: #3c4f46; }
@media (max-width: 560px) {
  .escrow-accounts { grid-template-columns: 1fr; }
  .escrow-acct-arrow { flex-direction: row; justify-content: center; gap: 6px; }
  .escrow-arrow-glyph { display: inline-block; transform: rotate(90deg); }
  .escrow-policy { flex-direction: column; align-items: flex-start; }
}
.seamless-bills { margin: 0 0 12px; }
.seamless-due-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px; font-size: .875rem; color: var(--color-sub); font-weight: 600;
}
.seamless-bill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bill-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; min-height: 36px;
  border-radius: 9px; border: 1px solid var(--color-rule); background: var(--color-light-2);
  color: var(--color-ink); font-size: .85rem; font-weight: 600;
}
.bill-chip:hover { border-color: var(--color-accent); background: var(--color-light); }
.mono-amt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.seamless-card {
  padding: 12px 14px; border-radius: 11px; margin-bottom: 10px;
  border: 1.5px solid var(--color-accent); background: var(--color-light-2);
}
.seamless-card.is-receipt { border-color: var(--color-good); background: var(--color-light); }
.seamless-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.route-tag {
  font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--color-panel); border: 1px solid var(--color-rule); color: var(--color-deep);
  white-space: nowrap; flex-shrink: 0;
}
.seamless-items { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.seamless-items li { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }
.seamless-meta { font-size: .82rem; color: var(--color-sub); margin: 4px 0; }
.seamless-hint, .seamless-note { font-size: .82rem; color: var(--color-deep); margin: 4px 0 8px; font-weight: 500; }
.seamless-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seamless-actions button { min-height: 40px; padding: 6px 12px; font-size: .875rem; }
.seamless-all-paid { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .875rem; color: var(--color-good); font-weight: 600; }
.vm-badge {
  font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: rgb(255 255 255 / 16%); border: 1px solid rgb(255 255 255 / 32%); color: #fff;
}
.live-dot { animation: pulse-ring 1.5s ease-out infinite; }
body.active .monitor { animation: stream-reveal .28s ease-out; }
@keyframes stream-reveal { from { opacity: .4; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
:is(body.active,body.service-open,body.investing) .connections-bar { display: none; }
:is(body.active,body.service-open,body.investing) .agent-pulse { margin: 6px auto 0; max-width: 940px; }
.grid:has(.monitor:not(:only-child)) { min-width: 0; }
#billWays, footer { width: 100%; max-width: none; margin-inline: 0; }
.account-detail { margin-top: 12px; padding: 8px 0; }
.account-detail summary { min-height: 44px; padding: 12px 4px; }
footer { margin-top: 16px; font-size: .875rem; padding-top: 12px; }
footer button { min-height: 44px; white-space: nowrap; flex-shrink: 0; }
.footer-actions { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
:is(body.active,body.service-open,body.investing) main { display: block; width: min(calc(100% - var(--page-pad) * 2), var(--desk-width)); padding: 24px 0 160px; margin-inline: auto; }
:is(body.active,body.service-open,body.investing) :is(.intro,.home-workbench) { display: none; }
:is(body.active,body.service-open,body.investing) .dock {
  display: block;
  position: fixed; z-index: 5; inset: auto 0 0; width: 100%; max-width: none; margin: 0;
  padding: 12px max(16px,calc((100% - 940px)/2)) max(12px,env(safe-area-inset-bottom));
  background: var(--color-panel); border-top: 1px solid var(--color-rule); box-shadow: 0 -4px 16px var(--color-shadow);
}
:is(body.active,body.service-open,body.investing) .dockbody { display: flex; width: auto; max-width: 940px; margin: auto; }
:is(body.active,body.service-open,body.investing) .voiceinfo { display: flex; flex: 1; }
:is(body.active,body.service-open,body.investing) .voice-button {
  flex: none; flex-direction: row; width: auto; min-height: 48px; padding: 9px 18px; font-size: 1rem;
  color: var(--color-deep); background: var(--color-panel); border: 1px solid var(--color-rule); box-shadow: none;
}
:is(body.active,body.service-open,body.investing) .mic-face { display: none; }
:is(body.active,body.service-open,body.investing) .voice-inline-icon { display: block; width: 21px; height: 21px; }
:is(body.active,body.service-open,body.investing) #stop { display: inline-flex; }
.stop { background: var(--color-panel); border: 2px solid var(--color-ink); color: var(--color-ink); }
.stop:hover { background: var(--color-light-2); }
.stop:active, .option-button:active, .line:active { transform: translateY(1px); }
.glass #standby img { width: 52px; height: 52px; }
.flow-steps { background: var(--color-light-2); }
dialog { padding: 24px; border-radius: var(--radius); border: 1px solid var(--color-rule); background: url("/assets/paper-grain.png"),var(--color-panel); box-shadow: var(--paper-lift); }
dialog:not([open]) { display: none; }
dialog[open] { margin: auto; }
.dialog-head { align-items: center; }.dialog-head h2 { margin: 0; }
dialog .option-button { border-radius: 10px; color: var(--color-ink); min-height: 52px; }
dialog .option-button .choice-icon { color: var(--color-accent); }
.bill-checkout:not([hidden]) { display: block; margin: 12px 0 4px; text-align: center; text-decoration: none; }
.bill-checkout[aria-disabled="true"] { pointer-events: none; opacity: .6; }
#billOptions .option-list { display: flex; flex-direction: column; gap: 8px; }
#billOptions #mail { order: -1; }
#billOptions[data-jcc="false"] #mail { border: 2px solid var(--color-accent); }
#gmail #inbox { padding: 0; border: 0; background: none; }
#gmail #inbox button { overflow-wrap: anywhere; }
.close-icon { min-width: 44px; min-height: 44px; border-radius: 10px; }
.close-icon:hover, .link:hover { color: var(--color-accent-hover); }
.close-icon:active, .link:active { color: var(--color-deep); }
#login { padding: 24px; max-width: 26rem; }
.login-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px dashed var(--color-rule); }
#unlock { padding: 20px 0 0; }
#unlock h2 { font-size: 1.75rem; }
#unlock p { margin: 8px 0 20px; }
#unlock button { margin-top: 16px; }
.google-signin-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 50px; padding: 10px 18px; margin-top: 4px;
  border-radius: 12px; border: 1px solid rgba(18, 85, 63, 0.24);
  background: #ffffff; color: #1f2d27; text-decoration: none;
  font: 700 .98rem/1.1 var(--font-body);
  box-shadow: 0 2px 6px -2px rgba(18, 60, 44, 0.16), inset 0 1px 0 #ffffff;
  transition: background .16s ease, border-color .16s ease, transform .12s ease, box-shadow .16s ease;
}
.google-signin-btn[hidden] { display: none; }
.google-signin-btn:hover {
  background: #f8fbf9; border-color: rgba(18, 99, 70, 0.45);
  box-shadow: 0 6px 16px -8px rgba(18, 60, 44, 0.28);
}
.google-signin-btn:active { transform: translateY(1px); }
.google-g { width: 20px; height: 20px; flex: none; }
#unlock p.login-or {
  margin: 14px 0 4px; text-align: center; font-size: .82rem; color: var(--color-sub);
}
#unlock p.login-or[hidden], #codeLoginBlock[hidden] { display: none; }
#loginLang { margin: 12px 0 0; min-height: 44px; }
@media (max-width: 880px) {
  :root { --page-pad: 20px; --hub-diameter: 58px; --hub-track: 31%; }
  .mast {
    width: min(calc(100% - 24px), 34rem);
    margin: 10px auto 0; padding: 8px 10px; min-height: 58px;
    border-radius: 18px; gap: 8px;
  }
  .mast::before { left: 18px; right: 18px; }
  .brand { gap: 9px; }
  .brand-emblem { width: 38px; height: 38px; border-radius: 11px; }
  .brand img, .brand .brand-logo { width: 100%; height: 100%; border-radius: 9.5px; }
  .wordmark { font-size: 1.18rem; }
  .brand-tag { font-size: .56rem; letter-spacing: .09em; }
  .mast-actions { gap: 6px; }
  .lang-switch { min-height: 36px; padding: 3px 4px 3px 8px; gap: 4px; }
  .lang-globe { width: 14px; height: 14px; }
  .lang-opt { min-width: 26px; height: 26px; padding: 0 6px; font-size: .72rem; }
  .access-link { min-height: 36px; padding: 0 13px; font-size: .8rem; }
  main { grid-template-columns: minmax(0,1fr); grid-template-areas: "notice" "intro" "connections" "tray" "pulse" "transcript" "ticket"
    "help" "workspace" "provider" "portfolio" "inbox" "wallet" "foot"; max-width: 34rem; }
  .connections-bar { gap: 5px; margin: 10px 0 0; }
  .conn-pill { min-height: 28px; padding: 3px 9px; font-size: .74rem; gap: 5px; }
  html:not([data-orbit="running"]) .compartment.agent-active { transform: rotate(0deg) translateY(-2px) scale(1.06); }
  html:not([data-orbit="running"]) .compartment.agent-preview { transform: rotate(0deg) translateY(-2px) scale(1.04); }
  .intro { padding-top: 20px; }.intro h1 { font-size: clamp(2.5rem,8.3vw,3.5rem); max-width: none; letter-spacing: -.055em; }
  .intro p { margin-top: 8px; }
  .voice-button { gap: 5px; font-size: .75rem; }
  .mic-face::before { inset: 5px; }
  .tray-wrap { padding: 24px 0 18px; }
  .service-tray { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px 6px; }
  .compartment { --seat-angle: 0deg; top: 0; grid-column: span 2; height: 74px; }
  .bay-shop { grid-column: 1 / span 2; grid-row: 2; }
  .bay-rewards { grid-column: 5 / span 2; grid-row: 2; }
  .bay-gov, .bay-billers { grid-column: span 2; grid-row: 3; }
  .bay-learn { grid-column: 5 / span 2; grid-row: 3; }
  .lid { inset: -3px -1px 8px; gap: 4px; font-size: .8125rem; }
  .lid .provider-mark { height: 24px; max-width: 72%; }
  .compartment[aria-selected="true"] .lid { transform: translateY(-5px) rotateX(8deg); }
  .compartment[aria-selected="true"]::before { height: 16%; }
  .compartment[aria-selected="true"]::after { height: 2px; bottom: 3px; }
  .ticket-stack { width: 100%; margin: 0 0 16px; justify-self: stretch; }
  .ticket-stack::before { inset: 8px -2px -2px 60%; transform: rotate(1.5deg); }
  .service-slip { padding: 16px 20px; transform: none; }
  .slip-provider { margin-bottom: 12px; padding-bottom: 8px; }
  .service-slip > p { margin-bottom: 12px; }
  :is(body.active,body.service-open,body.investing) .voiceinfo { display: none; }
  :is(body.active,body.service-open,body.investing) .voice-button { flex: 1; }
}
@media (max-width: 520px) {
  .brand-region, .lang-globe { display: none; }
  .brand-tag { font-size: .54rem; letter-spacing: .075em; }
  .user-pill { max-width: 112px; min-height: 32px; padding: 2px 9px 2px 4px; font-size: .74rem; gap: 5px; }
  .user-avatar { width: 22px; height: 22px; }
  .lang-switch { padding: 3px 4px; }
  .lang-opt { min-width: 24px; height: 25px; padding: 0 6px; font-size: .7rem; }
  .access-link { min-height: 34px; padding: 0 12px; font-size: .78rem; }
}
@media (max-width: 360px) {
  :root { --page-pad: 12px; }
  .mast { width: calc(100% - 16px); padding: 7px 8px; }
  .brand-emblem { width: 34px; height: 34px; }
  .brand-tag { display: none; }
  .wordmark { font-size: 1.08rem; }
  .user-pill { max-width: 84px; padding: 2px 7px; }
  .user-avatar { display: none; }
  .mast-actions { gap: 4px; }
  .compartment { height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  [data-orbit] .compartment { opacity: 1; }
  [data-orbit] .orbit-track { display: none; }
}
@media (forced-colors: active) {
  .compartment[aria-selected="true"], .service-slip { outline: 2px solid currentColor; }
}

/* Android biometric payment confirmation sheet (anchored upper-half so Android BiometricPrompt fits below). */
dialog.biometric-sheet {
  width: min(410px, calc(100vw - 24px));
  margin: max(24px, env(safe-area-inset-top)) auto auto;
  padding: 20px 20px 16px;
  border-radius: 22px;
  border: 1.5px solid rgba(18, 85, 63, 0.22);
  background: linear-gradient(180deg, #fffdf6 0%, #f5f9f6 100%);
  color: #17362b;
  box-shadow: 0 22px 54px rgba(13, 52, 39, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  text-align: center;
}
dialog.biometric-sheet::backdrop {
  background: rgba(13, 38, 30, 0.54);
  backdrop-filter: blur(4px);
}
dialog.biometric-sheet .dialog-head {
  align-items: center;
  margin-bottom: 10px;
}
.bio-head-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bio-head-title h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #12553f;
}
.bio-shield {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 85, 63, 0.12);
  color: #12553f;
}
.bio-shield svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bio-biller {
  margin: 4px 0 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2f5446;
}
.bio-amount {
  margin: 6px 0 8px;
  font-size: clamp(2.15rem, 8.8vw, 2.75rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0e4a36;
}
.bio-meta {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #466559;
}
.bio-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(18, 85, 63, 0.08);
}
.bio-method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1.5px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #295244;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.bio-method svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bio-method.is-selected {
  background: #ffffff;
  color: #0e4a36;
  border-color: rgba(18, 85, 63, 0.28);
  box-shadow: 0 3px 10px rgba(14, 74, 54, 0.12);
}
.bio-note {
  margin: 10px 0 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #547266;
}
.bio-status {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.35;
  background: rgba(18, 85, 63, 0.08);
  color: #184b3a;
}
.bio-status[data-tone="active"] {
  background: rgba(16, 138, 94, 0.14);
  color: #0d5b3f;
  font-weight: 600;
}
.bio-status[data-tone="ok"] {
  background: rgba(20, 148, 92, 0.18);
  color: #0c5838;
  font-weight: 600;
}
.bio-status[data-tone="warn"] {
  background: rgba(196, 128, 16, 0.14);
  color: #7c4d04;
}
.bio-status[data-tone="error"] {
  background: rgba(186, 46, 46, 0.12);
  color: #8b1e1e;
}
.bio-scan-btn {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  font-size: 0.98rem;
  font-weight: 700;
}
.bio-sensor-ring {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 249, 231, 0.18);
  box-shadow: 0 0 0 0 rgba(255, 249, 231, 0.55);
  animation: bio-pulse 2s ease-in-out infinite;
}
.bio-scan-btn.is-scanning .bio-sensor-ring {
  animation: bio-pulse 0.85s ease-in-out infinite;
}
.bio-sensor-ring svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bio-cancel {
  display: inline-block;
  margin: 10px auto 0;
}
@keyframes bio-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 249, 231, 0.45); transform: scale(1); }
  50% { box-shadow: 0 0 0 8px rgba(255, 249, 231, 0); transform: scale(1.06); }
}
