/* Ice: translucent navigation, optical stage, calm readable content. */
:root {
  --paper:#eaf4fc; --surface:#fbfdff; --surface-soft:#edf5fc; --ink:#2b4665; --muted:#526b86;
  --green:#2860a3; --green-soft:#e5efff; --focus:#2462ad; --border-subtle:#d3e3f1; --border-control:#93abc3; --line:#d3e3f1; --white:#fff; --accent-soft:#edf1ff;
  --glass-clear: rgba(255, 255, 255, .38); --glass-regular:#ffffff9e; --glass-content:#fbfdffe0; --glass-rim:#fffffff0;
  --glass-lift:0 20px 60px -28px #638bb94f,0 4px 18px #a0bbd51a,inset 0 1px 0 #fff,inset 0 -1px 0 #9dbcd133;
  --ease-liquid:cubic-bezier(.22,.8,.25,1); --radius-card:30px;
  --button-outline:#b5d1ec; --button-soft:#edf5ff; --button-soft-hover:#e0eeff;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
}
html { scroll-padding-top:180px; }
body { background:#eaf4fc; background-attachment:scroll; isolation:isolate; }
.ambient-scene { position:fixed; inset:0; overflow:hidden; z-index:-1; pointer-events:none; background:linear-gradient(135deg,#eff9ff,#eaf2fc 48%,#f7fbff); }
.ambient-scene::after { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 50% 0%,#ffffff90,transparent 65%); }
.aurora { position:absolute; border-radius:50%; filter:blur(58px); opacity:.65; will-change:transform; }
.aurora-one { width:75vw; height:65vh; top:-15vh; left:-20vw; background:#abddff; animation:aurora-drift 22s ease-in-out infinite alternate; }
.aurora-two { width:65vw; height:70vh; right:-20vw; top:10vh; background:#bdccf8; animation:aurora-drift 27s ease-in-out -12s infinite alternate-reverse; }
.aurora-three { width:50vw; height:50vh; left:20vw; bottom:-25vh; background:#c2edf6; animation:aurora-drift 30s ease-in-out -8s infinite alternate; }
.ambient-contour { position:absolute; width:80vw; height:80vw; top:-42vw; right:-8vw; border:1px solid #ffffff80; border-radius:45%; box-shadow:0 0 0 40px #ffffff13,0 0 0 80px #ffffff16,0 0 0 120px #ffffff12; animation:contour-turn 75s linear infinite; }
body > header { position:sticky; top:16px; display:flex; flex-wrap:wrap; width:min(1320px,calc(100% - 40px)); margin:16px auto 0; min-height:72px; height:auto; padding:12px 20px; grid-template-columns:auto minmax(0,1fr) auto auto auto; gap:10px; border:1px solid var(--glass-rim); border-radius:28px; background:linear-gradient(145deg,#ffffffa8,#f4faff70); box-shadow:var(--glass-lift); -webkit-backdrop-filter:blur(24px) saturate(155%); backdrop-filter:blur(24px) saturate(155%); }
body > header > .header-actions { grid-column:2; justify-self:end; flex:1 1 220px; flex-wrap:wrap; justify-content:flex-end; min-width:0; gap:10px; }
body > header > .brand { margin-right:auto; }
body > header > .motion-toggle { grid-column:3; grid-row:1; }
body > header > .login-reset { grid-column:4; grid-row:1; }
body > header > .logout-button { grid-column:5; grid-row:1; }
body > header:has(> .header-actions[hidden]) { grid-template-columns:auto minmax(0,1fr) auto auto auto; }
body > header:has(> .header-actions[hidden]) > .login-reset { grid-column:4; }
body > header::before,.tabs::before { content:''; position:absolute; inset:0; padding:5px; border-radius:inherit; pointer-events:none; -webkit-backdrop-filter:blur(2px); backdrop-filter:url(#liquid-refraction) blur(2px); -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite:xor; mask-composite:exclude; }
.brand { font-size:1.18rem; }
.brand-mark { width:38px; height:40px; border-radius:13px; color:#316db0; background:linear-gradient(140deg,#fff,#c5e6ff); border:1px solid #fff; box-shadow:0 4px 10px #72a1d229,inset 0 1px 0 white; }
.brand .brand-tag { color:#36659a; background:#e4f2ff; border:1px solid white; border-radius:7px; }
.runtime { font-size:.72rem; }
.runtime.ready i { background:#5296ba; box-shadow:0 0 0 4px #d9ecf7; }
.eyebrow { color:#526e92; font-size:.66rem; letter-spacing:.16em; line-height:1.7; font-weight:650; }
.auth-screen { width:min(1180px,calc(100% - 80px)); min-height:calc(100dvh - 106px); padding:44px 0 36px; grid-template-columns:minmax(0,1.25fr) minmax(0,.88fr); gap:80px; }
.auth-intro-title { margin:14px 0 18px; font-size:clamp(2.4rem,4.4vw,4.15rem); font-weight:620; letter-spacing:-.06em; line-height:1.14; }
.auth-intro-title span,#hero-heading-accent { color:#447bad; }
.auth-intro-copy { max-width:460px; font-size:.94rem; line-height:1.8; }
.auth-screen .auth-card { position:relative; }
.auth-card { padding:36px; border-radius:32px; border:1px solid var(--glass-rim); background:linear-gradient(150deg,#fffffff2,#f9fcffd9); box-shadow:var(--glass-lift),0 25px 70px -40px #6594c78c; }
.auth-card h1 { font-weight:600; font-size:2.1rem; }
.auth-mark { width:48px; height:48px; border-radius:16px; background:linear-gradient(145deg,#fff,#d9ebff); border:1px solid white; box-shadow:0 6px 16px #92b4d126,inset 0 1px 0 #fff; }
.auth-description,.auth-help { color:var(--muted); }
.login-form input { border-color:#b7cce0; border-radius:15px; background:#ffffffde; min-height:50px; box-shadow:inset 0 2px 4px #7ba0c30a; }
.auth-submit,.hero-actions .primary-action { color:#fff; border:1px solid #ffffff90; background:linear-gradient(135deg,#528ed1,#3569ad); box-shadow:inset 0 1px 0 #c6e2ff80,0 8px 22px #4e81bc33; border-radius:999px; }
.auth-submit:hover,.hero-actions .primary-action:hover { color:white; background:linear-gradient(135deg,#5c98db,#366cad); box-shadow:inset 0 1px 0 #c6e2ff80,0 10px 28px #4e81bc44; }
.auth-flow { border-color:#c8dcee; padding-top:16px; }
.auth-flow svg { color:#4875a6; }
main { width:min(1240px,calc(100% - 80px)); margin:0 auto; padding:36px 0 110px; }
.hero { grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); min-height:340px; padding:8px 0 36px; gap:48px; }
.hero h1 { font-size:clamp(2.3rem,4vw,3.65rem); line-height:1.14; font-weight:620; letter-spacing:-.06em; }
.hero-description { font-size:.95rem; max-width:490px; line-height:1.8; }
.hero-actions { margin-top:26px; }
.hero-actions button { border-radius:999px; min-height:52px; }
.hero-actions .primary-action { padding:9px 20px 9px 11px; gap:12px; }
.hero-actions .primary-action::after { display:none; }
.hero-actions .primary-action { animation:none; }
.hero-actions .ai-cta-mark { width:34px; height:34px; color:#467fbd; background:#ffffffe6; border-radius:50%; box-shadow:inset 0 1px 0 white; }
.hero-actions .ai-cta-label { font-size:.89rem; }
.secondary-action,.personal-trigger,.refresh-button,.motion-toggle,.login-reset,.logout-button { color:var(--ink); background:linear-gradient(150deg,#ffffffb5,#f4faff90); border:1px solid #a5bdd47a; box-shadow:inset 0 1px 0 white,0 4px 8px #8aabc00a; border-radius:999px; }
.personal-trigger { min-height:44px; }
.logout-button { color:#fff; background:#d23d3d; border-color:#c73838; box-shadow:inset 0 1px 0 #ffffff26,0 4px 8px #d943431a; }
.logout-button:hover { background:#c73535; border-color:#b62e2e; }
.personal-trigger:hover { color:var(--green); background:#f5faff; border-color:#9ab7d4; box-shadow:inset 0 1px 0 white,0 4px 14px #759db326; }
.language-note { color:var(--muted); margin-top:20px; font-size:.75rem; }
/* Optical halo and lensing sit around the projected, locally rendered 3D mascot. */
.mascot-stage { position:relative; min-width:0; height:330px; margin:0; display:grid; place-items:center; isolation:isolate; perspective:900px; --look-x:0; --look-y:0; --light-x:30%; --light-y:20%; }
.auth-mascot-stage { height:270px; max-width:500px; margin:8px 0; }
.hero-visual { padding:0; border:0; background:transparent; box-shadow:none; overflow:visible; }
.mascot-stage .residence-detail { position:absolute; width:76%; height:auto; max-height:none; min-height:0; left:12%; bottom:0; opacity:.16; filter:saturate(.2) hue-rotate(90deg); pointer-events:none; }
.stage-halo { position:absolute; width:78%; aspect-ratio:1; max-width:330px; border-radius:50%; background:radial-gradient(circle at 32% 26%,#ffffffed 0%,#d7eaff66 45%,#a3c8ed47 75%,#ffffff4d); border:1px solid #fff; box-shadow:0 20px 55px #6a96c123,inset 0 2px 4px #fff,inset 0 -8px 18px #96bce33d; transform:translate(calc(var(--look-x) * 8px),calc(var(--look-y) * 8px)); transition:transform 450ms var(--ease-liquid); }
.stage-halo::after { content:''; position:absolute; inset:5px; border:1px solid #ffffff90; border-radius:inherit; background:radial-gradient(circle at var(--light-x) var(--light-y),#fff9,transparent 56%); }
.stage-orbit { position:absolute; width:89%; height:63%; border:1px solid #fff; border-radius:50%; background:linear-gradient(150deg,#ffffff14,#ffffff05); box-shadow:inset 0 1px 1px white,0 5px 15px #83aed21a; transform:rotate(-21deg); -webkit-backdrop-filter:blur(2px); backdrop-filter:url(#liquid-refraction) blur(2px); animation:orbit-breathe 12s ease-in-out infinite alternate; z-index:3; pointer-events:none; }
.stage-orbit::before { content:''; position:absolute; left:15%; top:2%; width:12px; height:12px; background:radial-gradient(circle at 30% 20%,white,#b0d8ff 65%,#80aee5); border-radius:50%; box-shadow:0 2px 8px #6994c84d; }
.stage-orbit { -webkit-mask-image:radial-gradient(ellipse at center,transparent 64%,#000 74%); mask-image:radial-gradient(ellipse at center,transparent 64%,#000 74%); }
.stage-agent { position:relative; z-index:2; width:285px; height:285px; transform:translate(calc(var(--look-x) * 15px),calc(var(--look-y) * 12px)); transition:transform 500ms var(--ease-liquid); }
.auth-mascot-stage .stage-agent { width:250px; height:250px; }
.auth-mascot-stage .stage-halo { max-width:260px; }
.stage-agent { overflow:visible; }
[data-agent-mascot] { display:grid; place-items:center; pointer-events:none; }
[data-agent-mascot] > img,[data-agent-mascot] > svg { display:block; width:100%; height:100%; transform:scale(1.75); transform-origin:50% 50%; }
[data-agent-mascot] svg > rect { fill:transparent; }
.stage-agent > img,.stage-agent > svg { transform:scale(1.45); }
[data-agent-mascot] > svg { overflow: visible; }
.stage-chip { position:absolute; z-index:4; display:inline-flex; align-items:center; gap:9px; padding:11px 15px; font-size:.72rem; font-weight:600; color:#43678e; background:linear-gradient(145deg,#ffffffe6,#f2f9ffa3); border:1px solid white; border-radius:18px; box-shadow:0 10px 28px #8ca8c333,inset 0 1px 0 white; -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px); animation:chip-float 6s ease-in-out infinite; }
.stage-chip svg { width:18px; height:18px; color:#6293c4; }
.chip-one { top:17%; left:0; transform:rotate(-6deg); }
.chip-two { right:-3%; top:49%; animation-delay:-2s; }
.chip-three { bottom:3%; left:10%; animation-delay:-4s; }
.stage-caption { position:absolute; top:1%; right:9%; display:flex; gap:7px; align-items:center; font-size:.6rem; letter-spacing:.13em; font-weight:650; color:#536f90; }
.stage-caption i { width:6px; height:6px; border-radius:50%; background:#6ba8d1; box-shadow:0 0 0 4px #ffffff70; }
.hero-visual figcaption { position:absolute; bottom:-24px; font-size:.68rem; color:var(--muted); }
.hero-visual figcaption .scene-label { display:none; }
.tabs { position:sticky; top:104px; z-index:30; width:100%; display:flex; flex-wrap:nowrap; gap:4px; padding:8px; margin:12px 0 28px; border-radius:999px; border:1px solid var(--glass-rim); background:linear-gradient(145deg,#ffffff8c,#eef7ff63); box-shadow:var(--glass-lift); -webkit-backdrop-filter:blur(22px) saturate(170%); backdrop-filter:blur(22px) saturate(170%); overflow-x:auto; scrollbar-width:none; }
.tabs::-webkit-scrollbar { display:none; }
.tabs button { position:relative; z-index:1; flex:1 0 auto; white-space:nowrap; min-height:48px; padding:12px 19px; color:var(--muted); border-radius:999px; font-size:.83rem; border:0; background:transparent; }
.tabs button span { color:#3f638f; background:#e5f0ff; border:0; border-radius:6px; }
#tab-agent > span { color:#4b729f; background:#e5f0ff; }
.tabs button.active,#tab-agent.active { border-radius:999px; color:#1e5289; background:linear-gradient(145deg,#e7f4ff,#d5eaff); box-shadow:inset 0 0 0 1px #afd4f3,inset 0 1px 0 #ffffffb3,0 4px 14px #4e91c926; }
.tabs[data-measured] button.active,.tabs[data-measured] #tab-agent.active { background:transparent; box-shadow:none; }
.tab-lens { position:absolute; top:0; left:0; border-radius:999px; border:1px solid #afd4f3; background:linear-gradient(145deg,#e7f4ff,#d5eaff); box-shadow:inset 0 2px 2px #ffffffb3,inset 0 -2px 5px #80b6df26,0 4px 14px #4e91c926; transition:transform 500ms var(--ease-liquid),width 500ms var(--ease-liquid),height 300ms var(--ease-liquid); pointer-events:none; }
.assistant-home { grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr); gap:24px; align-items:start; }
.start-card,.services-card,.panel:not(#agent) { border:1px solid var(--glass-rim); background:var(--glass-content); border-radius:30px; box-shadow:var(--glass-lift); }
.start-card { position:relative; padding:clamp(24px,3vw,38px); overflow:hidden; background:linear-gradient(145deg,#f7fcfff5,#dcefffe0); }
.start-card::before { content:''; position:absolute; width:180px; height:180px; right:-95px; top:-90px; border-radius:50%; border:1px solid white; box-shadow:0 0 0 22px #ffffff29,0 0 0 44px #ffffff1c; pointer-events:none; animation:chip-float 9s ease-in-out infinite; }
.start-badge { color:#3f638f; background:#ffffffc2; border:1px solid white; border-radius:999px; letter-spacing:.06em; font-size:.7rem; padding:9px 14px; }
.start-card h2 { font-size:clamp(1.55rem,2.3vw,1.9rem); line-height:1.25; color:#314f70; margin-top:30px; font-weight:650; letter-spacing:-.035em; }
.start-card > p,.start-steps small,.start-card .start-footnote { color:var(--muted); }
.start-card > p:not(.start-footnote) { font-size:1rem; line-height:1.9; }
.start-card .start-steps { grid-template-columns:1fr; gap:24px; margin-top:32px; }
.start-card .start-steps > div { grid-template-columns:34px minmax(0,1fr); gap:16px; }
.start-card .start-steps > div > span { width:34px; height:34px; }
.start-card .start-steps strong { font-size:.9rem; line-height:1.6; }
.start-card .start-steps small { display:block; font-size:.8rem; line-height:1.7; }
.start-steps > div > span { color:#3f638f; background:#fff9; border:1px solid white; border-radius:50%; }
.start-steps strong { color:var(--ink); }
.start-chat-button { min-height:78px; padding:12px 16px; gap:16px; color:var(--ink); background:linear-gradient(145deg,#ffffffed,#f6fbffbc); border:1px solid white; border-radius:26px; box-shadow:0 10px 24px #8aadc420,inset 0 1px 0 white; }
.start-chat-button::after { display:none; }
.start-chat-button:hover { background:linear-gradient(145deg,#fff,#e9f3ff); box-shadow:0 12px 28px #8aadc42b,inset 0 1px 0 white; }
.start-card .start-chat-copy strong { color:#2e66a3; font-size:clamp(.86rem,1.2vw,1rem); font-weight:700; line-height:1.4; }
.start-chat-copy small { color:var(--muted); }
.start-card .start-chat-arrow { width:34px; height:34px; color:#376da8; background:#e2efff; box-shadow:none; }
.start-chat-mascot { flex:0 0 48px; width:48px; height:48px; overflow:hidden; border-radius:15px; background:#deeeff; }
.services-card { padding:28px; }
.services-heading h2 { font-size:1.5rem; font-weight:600; letter-spacing:-.035em; }
.browse-procedures { color:var(--green); }
.picker-back { color:#fff; background:linear-gradient(135deg,#347ac3,#245da4); border-color:#245da4; border-radius:14px; box-shadow:inset 0 1px 0 #ffffff33,0 5px 14px #245da42e; transition:transform .18s ease,background .18s ease,box-shadow .18s ease; }
.picker-back:hover:not(:disabled) { background:linear-gradient(135deg,#2c70ba,#1e5091); transform:translateY(-3px); box-shadow:inset 0 1px 0 #ffffff33,0 9px 22px #245da44d; }
.picker-back:active:not(:disabled) { transform:translateY(-1px); box-shadow:0 3px 9px #245da433; }
.picker-back:focus-visible { outline:3px solid #71b8f3; outline-offset:3px; }
.quick-actions { gap:12px; }
.service-action { min-height:92px; grid-template-columns:42px minmax(0,1fr); padding:16px 28px 16px 14px; border:1px solid #dce8f2; border-radius:18px; background:#ffffffd9; box-shadow:inset 0 1px 0 white; }
.service-action > span { width:42px; height:42px; color:#507cae; background:linear-gradient(145deg,#f8fcff,#deedfc); border:1px solid #fff; border-radius:14px; box-shadow:0 4px 8px #92b4ce1a,inset 0 1px 0 white; }
.service-action:nth-child(4n + 2) > span { color:#657baa; background:linear-gradient(145deg,#fff,#e7ebff); }
.service-action:hover { transform:translateY(-3px); background:#fff; border-color:#aac8e4; box-shadow:0 10px 20px -10px #6899c45c; }
.service-action:hover > span { color:#4f7bae; background:#e6f2ff; transform:rotate(-8deg) translateY(-2px); }
.service-action strong { color:var(--ink); font-size:.84rem; }
.service-action small { color:var(--muted); font-size:.73rem; }
.service-action::after { color:#7698bc; }
.task,.request-card,.household-card,.request-stat,.regulation-card { background:#fffffff0; border-color:#d9e6f2; border-radius:20px; box-shadow:0 5px 15px #87a5bd0a; }
.panel:not(#agent) { padding:30px; }
.section-heading h2 { font-weight:600; letter-spacing:-.04em; }
.resident-entry-dialog,.decision-dialog,.login-reset-dialog { color:var(--ink); border-color:white; background:#f8fcfffa; border-radius:28px; box-shadow:0 32px 100px #2852833d,inset 0 1px 0 white; }
dialog::backdrop,.resident-entry-dialog::backdrop,.decision-dialog::backdrop,.login-reset-dialog::backdrop { background:#2d507e33; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
body.chat-expanded::after { background:#3c618538; -webkit-backdrop-filter:blur(7px); backdrop-filter:blur(7px); }
.chat-launcher { min-height:66px; gap:12px; padding:8px 20px 8px 8px; border-radius:999px; color:var(--ink); border:1px solid white; background:linear-gradient(145deg,#ffffffb8,#e8f4ffa6); box-shadow:0 12px 38px #4979ad38,inset 0 2px 1px white,inset 0 -2px 6px #9bc4e733; -webkit-backdrop-filter:blur(24px) saturate(160%); backdrop-filter:blur(24px) saturate(160%); animation:launcher-arrive 750ms var(--ease-liquid) both; }
.chat-launcher::before,.chat-launcher::after,.chat-launcher .fab-running-border { display:none; }
.chat-launcher:hover { background:#ffffffd9; transform:translateY(-3px); box-shadow:0 16px 40px #4979ad40,inset 0 1px 0 white; }
.chat-launcher-copy strong { color:#36659a; }
.chat-launcher-copy small { color:var(--muted); text-shadow:none; }
.chat-launcher[aria-expanded="true"] { visibility:hidden; opacity:0; pointer-events:none; }
.chat-launcher-icon,.chat-widget .chat-widget-logo { width:44px; height:44px; flex:0 0 44px; overflow:hidden; border-radius:50%; background:radial-gradient(circle at 30% 20%,#fff,#d5e9ff); border:1px solid white; box-shadow:inset 0 1px 0 white,0 4px 12px #87b4d726; animation:none; }
.chat-launcher-icon[data-agent-mascot] > img,.chat-launcher-icon[data-agent-mascot] > svg { transform:scale(1.6); }
.chat-widget { background:var(--glass-regular); border:1px solid white; border-radius:30px; box-shadow:0 28px 100px #365f9038,inset 0 1px 0 white; -webkit-backdrop-filter:blur(28px) saturate(150%); backdrop-filter:blur(28px) saturate(150%); transform-origin:bottom right; }
.chat-widget-header { background:linear-gradient(135deg,#ffffff9e,#d9ecff80); border-bottom:1px solid #ffffffb0; -webkit-backdrop-filter:none; backdrop-filter:none; }
.chat-widget-identity { gap:10px; min-width:0; }
.chat-widget-identity > div { min-width:0; }
.chat-widget-identity strong { color:var(--ink); }
.chat-widget-identity small { display:block; color:var(--muted); line-height:1.5; }
.chat-widget-actions { gap:7px; }
.chat-widget-actions button { color:var(--ink); background:#ffffffa6; border:1px solid #fff; border-radius:50%; width:44px; height:44px; }
.chat-widget .messages { background:linear-gradient(150deg,#edf7ffb3,#f9fcff70); }
.chat-widget .message.assistant > div:last-child { background: rgba(255, 255, 255, .92); border-color:#d6e7f4; color:var(--ink); box-shadow:0 5px 15px #88a9c314; }
.chat-widget .message.assistant > div:last-child > strong,.chat-widget .message.assistant .markdown-body p { color:var(--ink); }
.chat-widget .message.user > div { color:#fff; background:linear-gradient(135deg,#5687c2,#426ea9); }
.chat-widget .avatar { background:#e3f2ff; border:1px solid white; overflow:hidden; }
.chat-widget .avatar img { width:100%; height:100%; transform:scale(1.75); }
.chat-toolbar { background:#ffffffe0; border-color:#dbe9f4; }
.chat-widget .composer { background:#ffffffe0; border-color:white; }
.composer textarea { color:var(--ink); border-color:#a6bfd9; border-radius:15px; }
.composer textarea::placeholder { color:#637b95; }
.composer textarea:focus { border-color:#4c85c4; box-shadow:0 0 0 3px #7baee42e; }
.composer-row > button[type="submit"],#decision-confirm:not(.danger) { color:white; background:linear-gradient(135deg,#5288c7,#3769aa); border-color:#ffffff90; box-shadow:0 5px 15px #5688be33,inset 0 1px 0 #fff5; }
.composer-row > button[type="submit"]:hover:not(:disabled) { background:#3669aa; }
.chat-widget .attach-button,.chat-widget .mic-button { color:#5a7da6 !important; background:#f3f8ff !important; border-color:#c6d9ea !important; border-radius:14px; }
.chat-widget .mic-button:disabled { color:#acbacb !important; background:#f7faff !important; }
.section-heading .refresh-button { color:var(--green); background:linear-gradient(145deg,#fff,#e7f2ff); border-color:#bfd4e9; box-shadow:0 5px 15px #739db31a,inset 0 1px 0 white; border-radius:999px; }
.entry-fields input[readonly] { background:#edf4fc; }
.ticket-timeline-count { background:#e8f2ff; }
.suggestion-chips button:hover,.portal-inline-actions button:hover { background:#e8f2ff; }
.chat-widget .chat-starters button { color:var(--green); background:#edf6ff; border-color:#bdcfe3; }
.chat-widget .speak-button { background:#f4f9ff; border-color:#c9dcec !important; color:var(--green); }
.motion-toggle { display:inline-flex; align-items:center; justify-content:center; gap:7px; flex:0 0 auto; min-width:44px; height:44px; padding:10px 13px; cursor:pointer; white-space:nowrap; font-size:.75rem; font-weight:600; }
.motion-toggle .ui-icon { flex-shrink:0; width:18px; height:18px; }
.motion-toggle .motion-play { display:none; }
.motion-toggle[aria-pressed="true"] .motion-play { display:block; }
.motion-toggle[aria-pressed="true"] .motion-pause { display:none; }
.chat-widget-actions .motion-toggle { width:44px; padding:10px; }
.chat-widget-actions .motion-label { display:none; }
:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
.motion-toggle:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
/* OS reduction and the saved pause are applied below; a deliberate site opt-in can resume these. */
  .auth-intro { animation:scene-enter 850ms var(--ease-liquid) both; }
  .auth-card { animation:scene-enter 850ms 120ms var(--ease-liquid) both; }
  main:not([hidden]) .hero-copy { animation:scene-enter 700ms var(--ease-liquid) both; }
  main:not([hidden]) .hero-visual { animation:scene-enter 950ms 80ms var(--ease-liquid) both; }
  .panel.active { animation:scene-enter 450ms var(--ease-liquid) both; }
  dialog[open] { animation:dialog-enter 400ms var(--ease-liquid) both; }
  .chat-widget.open { animation:chat-enter 450ms var(--ease-liquid) both; }
  button,.service-action > span { transition:transform 300ms var(--ease-liquid),background-color 220ms ease,box-shadow 300ms ease; }
  button:active:not(:disabled) { transform:scale(.97); }
  .chat-widget .message { animation:scene-enter 380ms var(--ease-liquid) both; }
@keyframes aurora-drift { to { transform:translate(14vw,8vh) scale(1.15) rotate(15deg); } }
@keyframes contour-turn { to { transform:rotate(360deg); } }
@keyframes chip-float { 0%,100% { translate:0 0; } 50% { translate:0 -10px; } }
@keyframes orbit-breathe { from { transform:rotate(-21deg) scale(.97); } to { transform:rotate(-10deg) scale(1.04); } }
@keyframes scene-enter { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes dialog-enter { from { opacity:0; transform:translateY(24px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes chat-enter { from { opacity:0; transform:translateY(24px) scale(.92); } to { opacity:1; transform:none; } }
@keyframes launcher-arrive { from { opacity:0; transform:translateY(30px) scale(.85); } to { opacity:1; transform:none; } }
@media (max-width:1100px) {
  .runtime { display:none; }
  .auth-screen { gap:40px; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); }
  .hero { gap:20px; }
  .hero h1 { font-size:2.7rem; }
  .stage-agent { width:250px; height:250px; }
  .chip-two { right:0; }
  .stage-chip { padding:10px; font-size:.66rem; }
  .assistant-home { grid-template-columns:1fr; }
  .start-card { display:flex; flex-direction:column; }
  .start-badge,.start-card h2,.start-card > p,.start-chat-button { grid-column:1; }
  .start-steps { grid-column:2; grid-row:1 / 5; align-self:center; margin:0; }
  .start-card .start-footnote { grid-column:1 / -1; }
}
@media (max-width:760px) {
  .motion-toggle { width:44px; padding:10px; }
  .motion-label { display:none; }
  body > header { top:10px; width:calc(100% - 24px); margin-top:10px; padding:10px 12px; border-radius:24px; gap:6px; min-height:64px; }
  .brand { gap:7px; font-size:1rem; }
  .brand-mark { width:32px; height:34px; }
  .brand .brand-tag { display:none; }
  .login-reset { min-width:60px; padding-inline:10px; }
  .logout-button { padding-inline:10px; }
  .auth-screen { width:min(520px,calc(100% - 40px)); grid-template-columns:1fr; padding:28px 0 44px; gap:24px; }
  .auth-intro { display:block; }
  .auth-intro-title { font-size:2.8rem; text-align:center; margin:12px 0; }
  .auth-intro > .eyebrow { text-align:center; }
  .auth-intro-copy { text-align:center; margin-inline:auto; font-size:.85rem; }
  .auth-mascot-stage { height:235px; margin:0 auto; }
  .auth-mascot-stage .stage-agent { width:220px; height:220px; }
  .auth-flow { display:none; }
  .auth-card { padding:28px; }
  main { width:calc(100% - 40px); padding-top:30px; }
  .hero { grid-template-columns:1fr; gap:8px; padding-bottom:24px; }
  .hero-copy { text-align:center; }
  .hero h1 { font-size:clamp(2.1rem,7.7vw,3.25rem); }
  .hero-description { margin-inline:auto; }
  .hero-actions { justify-content:center; }
  .hero-actions button { flex:initial; width:auto; padding-inline:16px; }
  .hero-actions .ai-cta-label { font-size:.82rem; }
  .hero-actions .ai-cta-mark { display:grid; width:28px; height:28px; }
  .language-note { justify-content:center; }
  .hero-visual { display:grid; height:280px; width:min(420px,100%); margin:0 auto; }
  .hero-visual figcaption { bottom:-4px; }
  .stage-agent { width:240px; height:240px; }
  .stage-halo { max-width:260px; }
  .stage-chip { font-size:.65rem; padding:9px 11px; }
  .tabs { top:90px; margin-top:8px; padding:6px; border-radius:26px; }
  .tabs button { flex:0 0 auto; font-size:.8rem; padding:11px 16px; }
  .start-card { display:block; padding:26px; }
  .start-steps { margin-top:24px; }
  .services-card,.panel:not(#agent) { padding:24px 20px; border-radius:26px; }
  .services-heading { flex-wrap:wrap; gap:12px; }
  .services-heading h2 { font-size:1.35rem; }
  .service-action { min-height:88px; }
  .chat-launcher { width:64px; height:64px; min-width:64px; padding:7px; gap:0; }
  .chat-widget { -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px); }
  .chat-widget-header { padding:12px; gap:8px; }
  .chat-widget .chat-widget-logo { width:38px; height:38px; flex-basis:38px; }
  .chat-widget-identity { gap:8px; }
  .chat-widget-identity strong { font-size:.81rem; }
  .chat-widget-identity small { max-width:23ch; font-size:.69rem; }
  .chat-widget-actions { gap:4px; }
  .aurora { filter:blur(40px); }
}
@media (max-width:640px) {
  body > header,body > header:has(> .header-actions[hidden]) { grid-template-columns:minmax(0,1fr) auto auto auto; }
  body > header > .header-actions { grid-column:1 / 4; grid-row:2; width:100%; justify-self:stretch; justify-content:flex-start; flex-wrap: wrap; gap:6px; }
  body > header > .header-actions .personal-trigger { min-width:0; max-width:calc(100% - 50px); flex-shrink: 1; white-space: normal; }
  body > header > .brand { grid-column:1 / 3; }
  body > header > .motion-toggle { grid-column:3; }
  body > header > .logout-button { grid-column:4; grid-row:2; }
  .tabs { top:138px; }
  .quick-actions { grid-template-columns:1fr; }
}
@media (max-width:420px) {
  .start-card { padding:22px 20px; }
  .start-chat-button { gap:10px; padding:12px 10px; border-radius:20px; }
  .start-card .start-chat-arrow { display:none; }
}
@media (max-width:360px) {
  body > header { gap:4px; padding-inline:10px; }
  .brand { font-size:.85rem; gap:5px; }
  .brand-mark { width:28px; }
  .login-reset { min-width:48px; padding-inline:7px; font-size:.7rem; }
  .logout-button { font-size:.7rem; padding-inline:7px; }
  .hero-actions { flex-direction:column; }
  .hero-actions button { width:100%; }
  .auth-intro-title { font-size:2.3rem; }
  .stage-chip { gap:5px; padding:8px; font-size:.6rem; }
  .stage-agent > img,.stage-agent > svg { transform:scale(1.2); }
  .chat-widget-header { padding:8px; }
  .chat-widget-identity small { display:none; }
  .motion-paused .chat-widget-identity small { display:block; max-width:13ch; font-size:.6rem; }
}
body button:not(:is(.danger,.warning,.logout-button,.reset-app,#reset-submit,#login-reset,.ownership-toast button)) { border-color:var(--button-outline); }
:is(.auth-retry,.portal-inline-actions button,.reading-actions button,.task-regulations,.account-side button,.portal-primary,.household-chat-action,.empty-state button,.ticket-correction-card button:not([type="submit"]),.decision.secondary) { color:var(--green); background:var(--button-soft); border-color:var(--button-outline); }
:is(.auth-retry,.portal-inline-actions button,.reading-actions button,.task-regulations,.account-side button,.portal-primary,.household-chat-action):hover:not(:disabled) { background:var(--button-soft-hover); }
.first-password-dialog { width:min(480px,calc(100vw - 32px)); padding:0; border:1px solid #fff; border-radius:24px; color:var(--ink); background:linear-gradient(155deg,#fbfdff,#eff6fc); box-shadow:0 30px 90px #2a4f7833,inset 0 1px 0 #fff; }
.first-password-content { max-height:calc(100vh - 34px); max-height:calc(100dvh - 34px); padding:clamp(22px,5vw,36px); overflow-y:auto; overscroll-behavior:contain; scroll-padding-block:24px; scrollbar-width:thin; scrollbar-color:#8ba4bd transparent; }
.first-password-dialog .auth-mark { margin-bottom:20px; }
.first-password-dialog .auth-description { margin:14px 0 24px; line-height:1.65; font-size:.9rem; }
.first-password-dialog .login-form { gap:18px; }
.first-password-dialog .first-password-field { display:grid; gap:8px; min-width:0; }
.first-password-dialog label { font-size:.875rem; }
.first-password-dialog small { color:var(--muted); font-size:.75rem; font-weight:400; line-height:1.6; }
.password-field,.account-password-field { display:grid; gap:8px; min-width:0; }
.password-input-control { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:8px; align-items:center; min-width:0; }
.password-input-control input { min-width:0; width:100%; }
.first-password-dialog .password-input-control input { min-height:54px; }
body .password-input-control > button.password-visibility[aria-controls] { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; min-width:44px; min-height:44px; padding:10px; border:0; border-radius:10px; color:var(--green); background:transparent; box-shadow:none; cursor:pointer; }
body .password-input-control > button.password-visibility[aria-controls]:hover:not(:disabled) { color:var(--ink); background:transparent; }
body .password-input-control > button.password-visibility[aria-controls]:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
body .password-input-control > button.password-visibility[aria-controls]:active:not(:disabled) { transform:scale(.94); }
.password-visibility .ui-icon { width:20px; height:20px; flex:0 0 20px; }
.password-visibility .password-eye-slash { display:none; }
.password-visibility[aria-pressed="true"] .password-eye-slash { display:block; }
.first-password-dialog .auth-submit,.first-password-dialog .auth-retry { min-height:50px; border-radius:15px; font-size:.875rem; }
.username-field-error { color:#b42318; font:inherit; font-size:.8125rem; font-weight:500; line-height:1.5; }
:is(.login-form,.portal-form) input[aria-invalid="true"] { border-color:#bf3535; box-shadow:0 0 0 3px #bf353514; }
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  body > header,.tabs,.chat-launcher,.chat-widget,.stage-chip { background:#f2f8ff; }
}
@media (prefers-reduced-transparency:reduce),(prefers-contrast:more) {
  body > header,.tabs,.chat-launcher,.chat-widget,.auth-card,.services-card,.panel:not(#agent),.start-card,.stage-chip,.chat-widget-header,.chat-widget .messages,.chat-toolbar,.chat-widget .composer { background:#f5f9ff; -webkit-backdrop-filter:none; backdrop-filter:none; }
  .task,.request-card,.household-card,.request-stat,.resident-entry-dialog { background:white; }
  .stage-orbit { -webkit-backdrop-filter:none; backdrop-filter:none; }
}
.scene-suspended *,.scene-suspended *::before,.scene-suspended *::after { animation-play-state:paused !important; }
.motion-paused *,.motion-paused *::before,.motion-paused *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
@media (prefers-reduced-motion:reduce) {
  html:not(.motion-enabled) *,html:not(.motion-enabled) *::before,html:not(.motion-enabled) *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
@media (forced-colors:active) {
  body > header,.tabs,.chat-launcher,.chat-widget,.auth-card,.services-card,.panel:not(#agent),.start-card,.motion-toggle { background:Canvas; color:CanvasText; border:1px solid CanvasText; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; }
  .ambient-scene,.stage-halo,.stage-orbit,.tab-lens { display:none; }
  .tabs button.active { outline:2px solid Highlight; }
}
