/* Front and bevel catch the bar light independently. Keep the reading surface calm. */
@media screen and (forced-colors:none) {
  .ice-workspace {
    --ice-face: #1b2c30ef;
    --ice-deep: #142125f2;
    --prism-front: #172b3294;
    --prism-bottom: #172328b8;
    --prism-field: #14272c83;
    --etch: #f6ffff;
    --etch-muted: #e2eeed;
    --etch-shadow: #111b22d9;
    --ice-rim: #c1e0df9c;
    --ice-edge: #c1e2e034;
  }
  .ice-workspace[data-theme=light] {
    --ice-face: #f0f5f3ed;
    --ice-deep: #e3edebf2;
    --prism-front: #eff8f589;
    --prism-bottom: #edf5efbe;
    --prism-field: #f5fffa83;
    --etch: #182c30;
    --etch-muted: #273a3c;
    --etch-shadow: #fff9;
    --ice-rim: #fffefa;
    --ice-edge: #73949b70;
  }
  .ice-workspace .auth-screen:has(.auth-glass) {overflow-x:clip}
  .ice-workspace .auth-card.auth-glass {
    --cube-image:url("assets/app/login-ice.webp");
    --cube-core:rgb(203 218 218 / .93);
    --cube-transmission:.57;
    width:min(540px,100%);max-width:540px;aspect-ratio:1;
    min-block-size:clamp(475px,85vw,540px);grid-area:1 / 1;
    --face-padding:clamp(73px,14vw,95px) clamp(61px,22.6vw,123px) clamp(48px,9vw,63px) clamp(48px,17vw,92px);
    padding:var(--face-padding);
    align-content:center;backface-visibility:hidden;
    filter:drop-shadow(2px 14px 16px #20181355);
  }
  .ice-workspace[data-theme=light] .auth-card.auth-glass {
    --cube-core:rgb(240 244 238 / .96);
    --cube-transmission:.67;
  }
  .ice-workspace .auth-card.auth-glass::before,
  .ice-workspace .auth-card.auth-glass::after {
    inset:0;clip-path:none;border:0;border-radius:0;box-shadow:none;filter:none;
  }
  .ice-workspace .auth-card.auth-glass::before {
    background:radial-gradient(ellipse at 46% 56%,var(--cube-core) 0 43%,transparent 78%);
    backdrop-filter:blur(3px);
    mask:var(--cube-image) center / 100% 100% no-repeat;
  }
  .ice-workspace .auth-card.auth-glass::after {
    background:var(--cube-image) center / 100% 100% no-repeat;
    mask:radial-gradient(ellipse 49% 44% at 45% 54%,rgb(0 0 0 / var(--cube-transmission)) 38%,#000 99%);
  }
  @media (max-width:420px) {
    .ice-workspace body.auth-required #app-view {padding-inline:6px}
    .ice-workspace .mfa-card.auth-glass {padding:var(--face-padding)!important}
  }
  .ice-workspace .auth-glass.auth-card {
    --ink:#2c393d;
    --dim:#363636;
    --gold:#3d3d3d;
    --cut-edge:inset 0 1.5px 2px #29434c6b,inset 1px 0 2px #233b4638,inset 0 -1px 1px #ffffffc4,0 1px 0 #ffffffb8;
    color:var(--ink);
    text-shadow:0 1px 0 #f8ffffbd;
  }
  .ice-workspace .auth-glass.auth-card h2 {
    font-weight:750;font-size:clamp(21px,3.7vw,26px);
    background:linear-gradient(174deg,#262626 14%,#505050 36%,#292929 53%,#424242 71%,#252525 92%);
    background-clip:text;color:transparent;
    filter:drop-shadow(0 1px 0 #ffffffdb);
    text-shadow:none;
  }
  .ice-workspace .auth-glass.auth-card .eyebrow {color:var(--dim);font-size:10px}
  .ice-workspace .auth-glass .stack-form input:not(.otp-stage input,[type=checkbox]),
  .ice-workspace .auth-glass .otp-recovery .otp-stage input {
    background:linear-gradient(174deg,#304c551a,transparent 55%,#efffff1c);
    border:1px solid #31495350;border-bottom-color:#ecfaffb3;
    border-radius:7px 12px 8px 10px;
    box-shadow:var(--cut-edge);
    color:var(--ink);caret-color:currentColor;text-shadow:0 1px #ffffffe0;
  }
  .ice-workspace .auth-glass .stack-form .primary-button {
    background:linear-gradient(165deg,#788b8c25,#e0edeb26 58%,#f7ecdd42);
    border:1px solid #50606778;border-bottom-color:#f3f6efbf;border-radius:9px 13px 8px 12px;
    color:#392919;text-shadow:0 1px #fff5d9;
    box-shadow:var(--cut-edge);
  }
  .ice-workspace .auth-glass.auth-card .auth-language {gap:2px;margin-bottom:8px}
  .ice-workspace .auth-glass .auth-language-flag {
    width:36px;height:34px;min-height:34px;padding:0;background:transparent;
    color:var(--ink);border:1px solid transparent;text-shadow:0 1px #fffc;
  }
  .ice-workspace .auth-glass .auth-language-flag::after {content:attr(title);font-size:12px;font-weight:650;letter-spacing:.06em}
  .ice-workspace .auth-glass .auth-language-flag svg {display:none}
  .ice-workspace .auth-glass .auth-language-flag[aria-pressed=true] {
    border-color:#45454570;border-bottom-color:#fff9;background:#ffffff0c;box-shadow:var(--cut-edge);
    text-decoration:underline;text-underline-offset:3px;
  }
  .ice-workspace .auth-glass .stack-form input:focus-visible {outline:2px solid var(--gold);outline-offset:2px}
  .ice-workspace .auth-glass.auth-card > p:not(.eyebrow) {font-size:13px;line-height:1.4}
  .ice-workspace .auth-glass .stack-form {gap:7px}
  .ice-workspace .auth-glass .stack-form label {font-size:12px}
  .ice-workspace .auth-glass .stack-form input:not(.otp-stage input,[type=checkbox]) {height:37px;min-height:0;padding:5px 10px}
  .ice-workspace .auth-glass .stack-form .primary-button {min-height:37px;padding:6px 10px}
  .ice-turn-shell {
    grid-area:1 / 1;display:grid;position:relative;width:min(540px,100%);
    filter:drop-shadow(2px 14px 16px #20181355);
  }
  .ice-rotor {
    grid-area:1 / 1;display:grid;isolation:isolate;
    background:url("assets/app/ice-turn.webp") var(--ice-frame,0% 0%) / 600% 600% no-repeat;
    mask:url("assets/app/ice-turn.webp") var(--ice-frame,0% 0%) / 600% 600% no-repeat;
  }
  .ice-workspace .password-card form::before {
    content:"";position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;
    background-image:url("assets/app/ice-turn.webp");
  }
  .ice-workspace .ice-rotor > .auth-card,
  .ice-workspace .ice-rest-edge > .auth-card {
    grid-area:1 / 1;width:100%;margin:0;filter:none;transform-origin:0 0;
  }
  .ice-workspace :is(.ice-rotor,.ice-rest-edge) > .auth-card::before,
  .ice-workspace :is(.ice-rotor,.ice-rest-edge) > .auth-card::after {display:none}
  .ice-rest-edge {
    pointer-events:none;grid-area:1 / 1;display:grid;position:relative;z-index:3;
    width:min(540px,100%);mask:url("assets/app/login-ice.webp") center / 100% 100%;
  }
  .branded-scene .ice-rest-edge {width:var(--card-w);height:var(--card-h)}
  .ice-workspace .auth-glass:is(.otp-card,.ice-code-edge) .auth-language {margin-bottom:6px}
  .ice-workspace .auth-glass:is(.otp-card,.ice-code-edge) .otp-form {margin-top:10px;gap:7px}
  .ice-workspace .auth-glass .otp-stage {height:82px;--cell:clamp(25px,6vw,35px);--pitch:calc(var(--cell) + 5px)}
  .ice-workspace .auth-glass .otp-recovery .otp-stage {height:48px}
  .ice-workspace .auth-glass:is(.otp-card,.ice-code-edge)>button.secondary-button {margin-top:3px}
  .ice-workspace .auth-glass .otp-stage {--cell:clamp(22px,5.4vw,32px);--pitch:calc(var(--cell) + 5px)}
  .ice-workspace .otp-cell:has(.ice-crystal) {background:none;border:0;box-shadow:none;outline:0}
  .ice-crystal {position:absolute;inset:0}
  .ice-inscription {
    position:absolute;inset:0;display:grid;place-items:center;
    border:1px solid;border-color:#84999d88 #dce7e770 #ffffffdb #a9babc90;
    border-radius:18% 23% 20% 16%;background:linear-gradient(160deg,#697b8029,#ffffff15);
    box-shadow:inset 1px 2px 3px #30444a38;color:#222;
    font-size:calc(var(--cell)*.64);text-shadow:0 1px #fff;
  }
  .otp-stage:not([data-state]):focus-within .otp-active .ice-inscription {outline:2px solid #5b5348}
  .ice-crystal::before,.ice-crystal::after {
    content:"";position:absolute;inset:-9%;visibility:hidden;pointer-events:none;
    background-image:url("assets/app/otp-ice-numerals.svg"),url("assets/app/otp-tumbling-ice.webp");
    background-size:3600% 1000%,3600% 100%;background-repeat:no-repeat;
    background-position:var(--ice-frame,0%) var(--ice-digit-row,0%),var(--ice-frame,0%) center;
  }
  .ice-crystal::after {
    background-image:url("assets/app/otp-ice-numerals.svg"),url("assets/app/otp-submerged-ice.webp");
  }
  .otp-stage[data-whisky] .ice-crystal::before {
    mask-image:linear-gradient(var(--wet-angle,180deg),#000 calc(var(--wet-at,105%) - .4px),transparent calc(var(--wet-at,105%) + .4px));
  }
  .otp-stage[data-whisky] .ice-crystal::after {
    visibility:visible;
    mask-image:linear-gradient(var(--wet-angle,180deg),transparent calc(var(--wet-at,105%) - .4px),#000 calc(var(--wet-at,105%) + .4px));
  }
  .otp-stage[data-state] .ice-inscription {opacity:calc(1 - var(--ice-release,0))}
  .otp-stage[data-state] .ice-crystal::before {visibility:visible;opacity:var(--ice-release,0);filter:drop-shadow(0 1px .6px #283e494d)}
  .ice-workspace .otp-stage[data-state] {container-type:size;overflow:visible}
  .ice-workspace .otp-stage[data-state] .otp-cell {opacity:1;animation:none;transition:none}
  .ice-workspace .otp-stage[data-state] .otp-ring {animation:none;z-index:1}
  .ice-workspace .otp-check,.ice-workspace .otp-stage[data-glass=visible]::after {
    position:absolute;inset:auto 0 0;margin:0 auto;width:76cqh;height:76cqh;
    font-size:0;border:0;border-radius:0;box-shadow:none;pointer-events:none;
    background:transparent url("assets/app/otp-tumbler.webp") center / contain no-repeat;
  }
  .ice-workspace .otp-form:not(.otp-recovery) .otp-stage[data-state=success][data-glass=visible] .otp-check {opacity:1;animation:empty-glass-arrives .28s ease-out both}
  .ice-workspace .otp-form:not(.otp-recovery) .otp-stage[data-glass=visible]::after {
    content:"";z-index:3;opacity:.91;
    background-image:url("assets/app/otp-tumbler-cut.webp");
  }
  .whisky-volume,.whisky-stream,.whisky-cut-glints {display:none;pointer-events:none}
  /* The longer amber path sits behind the ice, visible through the gaps. */
  .otp-stage[data-whisky] .otp-check::before {
    content:"";position:absolute;inset:0;pointer-events:none;
    background:radial-gradient(ellipse 52% 34% at 50% 63%,
      rgb(90 35 7 / .36) 10%,rgb(127 58 13 / .25) 64%,transparent 100%);
    mask:url("assets/app/otp-whisky.webp") center / contain no-repeat;
    transform-origin:50% 80.5%;
    transform:rotate(var(--surface-tilt,0deg)) scale(calc(.93 + .07 * var(--whisky-fill,0)),var(--whisky-fill,0));
  }
  .otp-stage[data-whisky] .whisky-volume {
    display:block;position:absolute;inset:auto 0 0;margin:auto;width:76cqh;height:76cqh;
    background:url("assets/app/otp-whisky.webp") center / contain no-repeat;
    z-index:2;mix-blend-mode:multiply;transform-origin:50% 80.5%;
    transform:rotate(var(--surface-tilt,0deg)) scale(calc(.93 + .07 * var(--whisky-fill,0)),var(--whisky-fill,0));
  }
  .otp-stage[data-whisky] .whisky-glaze {
    mix-blend-mode:screen;opacity:.72;background-image:url("assets/app/otp-whisky-reflections.webp");
  }
  .otp-stage[data-whisky] .whisky-cut-glints {
    display:block;position:absolute;inset:auto 0 0;margin:auto;width:76cqh;height:76cqh;
    background:url("assets/app/otp-cut-glints.webp") center / contain no-repeat;
    z-index:4;opacity:calc(.66 * var(--whisky-fill,0));mix-blend-mode:screen;
    clip-path:inset(calc(80.5% - 39.5% * var(--whisky-fill,0)) 0 0);
  }
  .otp-stage[data-whisky] .whisky-stream {
    display:block;position:absolute;left:50%;top:0;width:100cqh;height:100cqh;
    transform:translateX(-50%);animation:whisky-stream-level 1.93s linear both;
  }
  @keyframes whisky-stream-level {
    0% {clip-path:inset(0 0 100%);opacity:0}
    12% {clip-path:inset(0 0 12%);opacity:1}
    65% {clip-path:inset(0 0 32%);opacity:.9}
    90% {clip-path:inset(0 0 40%);opacity:1}
    100% {clip-path:inset(58% 0 40%);opacity:0}
  }
  @media (prefers-reduced-motion:reduce) {
    .otp-stage[data-whisky] .whisky-volume {animation:none}
    .otp-stage[data-whisky] .whisky-stream {display:none}
  }
  .ice-workspace[data-motion=off] .otp-stage[data-whisky] .whisky-volume {animation:none}
  .ice-workspace[data-motion=off] .otp-stage[data-whisky] .whisky-stream {display:none}
  @keyframes empty-glass-arrives {from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
  .ice-workspace .otp-stage[data-state]:not([data-glass=visible]) .otp-check {opacity:0;animation:none}
  .ice-workspace .otp-stage[data-glass=visible] .otp-ring {
    clip-path:polygon(0 0,100% 0,100% 30%,calc(50% + 33cqh) 30%,calc(50% + 29cqh) 93%,calc(50% - 29cqh) 93%,calc(50% - 33cqh) 30%,0 30%);
  }
  @media (prefers-reduced-motion:reduce) {
    .ice-workspace .otp-stage[data-state=success] .otp-check {animation:none}
  }
  html.ice-workspace.branded-scene {--branded-scene-veil:rgb(13 19 20 / .78)}
  html.ice-workspace.branded-scene[data-theme=light] {--branded-scene-veil:rgb(245 243 238 / .94)}
  /* The ice has a clear reading surface and bubbles along the rounded edges. */
  html.ice-workspace {
    --pane-frost:url("assets/app/rime-window-frost.webp");
    --pane-veil:rgb(17 33 39 / .84);
    --pane-center:rgb(17 33 39 / .97);
    --pane-face:rgb(18 31 36 / .9);
    --pane-edge:rgb(58 78 82 / .73);
    --pane-light:rgb(226 244 247 / .16);
    --pane-rim:rgb(168 191 196 / .38);
    --pane-shadow:rgb(4 10 14 / .28);
    --pane-solid:#1c2b30;
  }
  html.ice-workspace[data-theme=light] {
    --pane-veil:rgb(245 249 248 / .72);
    --pane-center:rgb(248 250 249 / .92);
    --pane-face:rgb(249 250 248 / .83);
    --pane-edge:rgb(180 203 208 / .73);
    --pane-light:rgb(255 255 255 / .86);
    --pane-rim:rgb(151 170 174 / .52);
    --pane-shadow:rgb(53 70 74 / .13);
    --pane-solid:#eef3f2;
  }
  .ice-workspace body:not(.auth-required) :is(.panel,.metric-card,.summary-strip,.pulse-metric,.source-card,.owner-advisor,.pulse-analysis-summary > div) {
    border:1px solid var(--pane-rim);
    border-radius:17px;
    background:
      radial-gradient(ellipse at center,var(--pane-center) 16%,var(--pane-veil) 88%),
      url("assets/app/ice-grain.webp") center / 100% 100% no-repeat,
      var(--pane-solid);
    box-shadow:inset 0 1px 1px var(--pane-light),0 4px 14px -7px var(--pane-shadow);
  }
  .ice-workspace body:not(.auth-required) .pulse-analysis-summary > div {border-radius:10px}
  .ice-workspace body:not(.auth-required) .sidebar {
    background:
      var(--pane-frost) right top / 145px auto no-repeat,
      radial-gradient(ellipse 70% 200px at 100% 0,var(--pane-edge),transparent),
      linear-gradient(155deg,var(--pane-edge),var(--pane-face) 19% 78%,var(--pane-edge)),
      var(--sidebar);
    border-inline-end:1px solid var(--pane-rim);
    box-shadow:inset -1px 0 var(--pane-light),4px 0 14px -7px var(--pane-shadow);
  }
  .ice-workspace .sidebar :is(.nav-item,.nav-group > summary):not(.active) {
    border-radius:9px;
    border-color:color-mix(in srgb,var(--pane-rim) 60%,transparent);
    background:linear-gradient(108deg,color-mix(in srgb,var(--pane-light) 25%,transparent),transparent 66%);
    box-shadow:inset 0 1px color-mix(in srgb,var(--pane-light) 35%,transparent);
  }
  .ice-workspace .sidebar .nav-item.active {border-radius:9px}
  .ice-workspace .sidebar .nav-group[open] > summary {color:var(--accent-strong)}
  .ice-workspace :is(.pulse-metric,.metric-card,.scene-fact,.scene-total) strong {font-variant-numeric:tabular-nums}
}
@media (prefers-reduced-motion:reduce) {
  .ice-workspace .otp-stage * {animation:none!important;transition:none!important}
}
.ice-workspace[data-motion=off] .otp-stage * {animation:none!important;transition:none!important}
@media (prefers-reduced-transparency:reduce) {
  .ice-workspace .auth-card.auth-glass,.ice-workspace body:not(.auth-required) .panel {--prism-front:var(--surface);--prism-bottom:var(--surface);--prism-field:var(--surface);background-color:var(--surface)}
  .ice-workspace body:not(.auth-required) :is(.panel,.metric-card,.summary-strip,.pulse-metric,.source-card,.owner-advisor,.pulse-analysis-summary > div,.sidebar) {background:var(--pane-solid)}
}

.ice-workspace .history-graph {
  --ice-rim:#effcff; --ice-light:#a1cbd1; --ice-core:#658f9c; --ice-base:#436776;
}
.ice-workspace[data-theme=light] .history-graph {
  --ice-rim:#b9dce1; --ice-light:#80aab4; --ice-core:#548493; --ice-base:#35596a;
}
.history-ice-rim {stop-color:var(--ice-rim)}
.history-ice-light {stop-color:var(--ice-light)}
.history-ice-core {stop-color:var(--ice-core)}
.history-ice-base {stop-color:var(--ice-base)}
@media (forced-colors:active) {
  .history-ice-bar path {display:none}
  .history-ice-bar path:first-of-type {display:inline; fill:CanvasText}
}

/* Both sign-in steps share the same centered face and photographic frame. */
@media screen and (forced-colors:none) {
  html.ice-workspace.branded-scene body.auth-required {background:#33241b;padding-bottom:0}
  .ice-workspace.branded-scene body.auth-required #app-view {padding:0;max-width:none}
  .ice-workspace.branded-scene .auth-screen:has(.auth-glass) {
    --photo:url("assets/app/login-scene.webp");
    --card-w:clamp(370px,26vw,555px);
    --card-h:clamp(410px,min(29vw,46svh),500px);
    --stage-h:max(100svh,360px);
    --side-space:calc((100% - var(--card-w)) / 2);
    --headroom:calc((var(--stage-h) - var(--card-h)) / 2);
    position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr);
    place-content:center;justify-items:center;box-sizing:border-box;
    height:var(--stage-h);min-height:var(--stage-h);padding:0;background:var(--photo) center / cover no-repeat;
  }
  .ice-workspace.branded-scene .auth-screen:has(.auth-glass)::before,
  .ice-workspace.branded-scene .auth-screen:has(.auth-glass)::after {content:none}
  .ice-workspace.branded-scene .auth-screen > :is(.auth-glass,.ice-turn-shell) {
    margin:0;width:var(--card-w);max-width:none;
  }
  .ice-workspace.branded-scene .auth-card.auth-glass {
    min-block-size:var(--card-h);box-sizing:border-box;
    height:var(--card-h);display:grid;grid-template-columns:minmax(0,1fr);align-content:center;row-gap:3px;
    --face-padding:calc(var(--card-h) * .20) calc(var(--card-w) * .225) calc(var(--card-h) * .155) calc(var(--card-w) * .15);
  }
  .ice-workspace.branded-scene .auth-card.auth-glass :is(h2,p,fieldset,form) {margin-block:0}
  .ice-workspace.branded-scene .auth-glass .stack-form {gap:3px}
  .ice-workspace.branded-scene .auth-glass .stack-form button {margin-block:0}
  .ice-workspace.branded-scene .auth-glass .otp-stage:not(.otp-recovery .otp-stage) {height:44px}
  .ice-workspace.branded-scene .auth-glass:is(.otp-card,.ice-code-edge) .secondary-button {
    min-height:24px;height:auto;margin:0 auto;padding:2px 8px;line-height:1.2;
    border:0;background:transparent;box-shadow:none;font-size:12px;text-decoration:underline;color:var(--ink);
  }
  .ice-workspace.branded-scene .auth-glass :is(.stack-form,.stack-form label,.stack-form input,.stack-form button) {
    min-inline-size:0;max-inline-size:100%;box-sizing:border-box;
  }
  .ice-workspace.branded-scene .auth-glass .stack-form {grid-template-columns:minmax(0,1fr)}
  .ice-workspace.branded-scene .auth-glass .otp-stage {--pitch:clamp(25px,5.4vw,35px);--cell:calc(var(--pitch) - 3px)}
  .bar-still-life {
    container-type:size;position:absolute;inset:0;overflow:hidden;pointer-events:none;
  }
  .ice-workspace.branded-scene .auth-screen > :is(.auth-card,.ice-turn-shell) {z-index:2}
  /* The scene light comes from above left. Shade the ice within its silhouette. */
  .ice-workspace.branded-scene .auth-screen {
    --ice-edge-light:linear-gradient(155deg,rgb(255 241 210 / .17),transparent 29%);
    --ice-edge-shade:linear-gradient(270deg,rgb(33 25 22 / .39),rgb(40 38 35 / .16) 10%,transparent 22%),
      linear-gradient(0deg,rgb(38 28 22 / .48),rgb(50 44 40 / .18) 8%,transparent 22%);
  }
  .ice-workspace.branded-scene .auth-screen > :is(.auth-card.auth-glass,.ice-turn-shell) {
    filter:drop-shadow(2px 4px 3px rgb(40 20 9 / .40))
      drop-shadow(6px 15px 11px rgb(35 18 10 / .46));
  }
  .ice-workspace.branded-scene .auth-screen > .auth-card.auth-glass::after {
    background-image:var(--ice-edge-light),var(--ice-edge-shade),var(--cube-image);
    mask-image:var(--cube-image),radial-gradient(ellipse 49% 44% at 45% 54%,rgb(0 0 0 / var(--cube-transmission)) 38%,#000 99%);
    mask-size:100% 100%;mask-repeat:no-repeat;mask-composite:intersect;
  }
  .ice-workspace.branded-scene .ice-rotor::before {
    content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
    background-image:var(--ice-edge-light),var(--ice-edge-shade);
  }
  .ice-workspace.branded-scene .ice-rotor {position:relative}
  .bar-still-life::before {
    content:"";position:absolute;pointer-events:none;
    left:calc(50% + var(--card-w) * .035);top:calc(50% + var(--card-h) * .49);
    width:calc(var(--card-w) * .93);height:calc(var(--card-h) * .14);
    transform:translate(-50%,-50%) rotate(-2deg);
    background:radial-gradient(ellipse,rgb(41 18 7 / .54) 0%,rgb(50 24 11 / .27) 42%,transparent 74%);
    filter:blur(3px);
  }
  .bar-portrait-tool {display:none}
  .bar-still-life img {position:absolute;display:block;max-width:none;height:auto;user-select:none}
  .bar-still-life .bar-utensil {
    width:auto;transform:translateX(-50%);
    opacity:.48;filter:sepia(1) saturate(2.25) hue-rotate(-9deg) contrast(.86) brightness(1.07) blur(clamp(.85px,.14cqw,2.7px));
  }
  .bar-still-life .bar-shaker {left:79%;top:6.5%;height:min(45cqh,60cqw)}
  .bar-still-life .bar-strainer {left:18.5%;bottom:8%;height:min(41cqh,55cqw)}
  .ice-letter {position:absolute;display:block;width:var(--ice-size);aspect-ratio:1;transform:translate(-50%,-50%);user-select:none}
  .ice-impact-chips {position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:4}
  .ice-impact-chips i {
    position:absolute;display:block;clip-path:polygon(0 42%,36% 3%,64% 10%,98% 29%,72% 82%,24% 99%);
    background:linear-gradient(137deg,#ffffffe0,transparent 41%,#fff5 48%,#443d3880),
      url("assets/app/login-ice.webp") var(--sample) / 240% 260%;
  }
  .ice-impact-chips i:nth-child(3n) {clip-path:polygon(0 27%,47% 4%,100% 32%,74% 61%,11% 97%)}
  .ice-impact-chips i:nth-child(3n+1) {clip-path:polygon(4% 66%,79% 0,89% 47%,57% 89%,13% 97%)}
  .ice-flight {position:absolute;inset:0;display:block;filter:drop-shadow(1px 3px 2px #37261555)}
  .ice-splinter {
    position:absolute;inset:0;display:grid;place-items:center;isolation:isolate;clip-path:var(--outline);
    transform:rotate(var(--inclination));
  }
  .ice-splinter i {
    position:absolute;inset:0;z-index:-1;background:
      linear-gradient(133deg,#fff4 5%,transparent 34%,#45372519 75%,#faf6eb61),
      url("assets/app/login-ice.webp") var(--sample) / 219% 211%;
    mask-image:radial-gradient(ellipse at 46% 48%,#0009 16%,#000d 55%,#000 78%);
  }
  .ice-splinter::before,.ice-splinter::after {
    position:absolute;inset:0;content:"";pointer-events:none;
    background-image:url("assets/app/login-ice.webp");background-repeat:no-repeat;
  }
  .ice-r .ice-splinter {inset:0 10% 0 5%}
  .ice-e .ice-splinter {inset:13% 0 4%}
  .ice-n-right .ice-splinter {inset:5% 1% 12%}
  .ice-i .ice-splinter {inset:0 10%}
  .ice-splinter::before {clip-path:var(--lip);background-size:101% 117%;background-position:54% 2%;filter:brightness(1.12)}
  .ice-splinter::after {clip-path:var(--break);background-size:111% 122%;background-position:90% 91%;filter:contrast(1.15)}
  .ice-splinter b {
    font:normal calc(var(--ice-size)*.48)/1 Georgia,serif;letter-spacing:0;
    color:rgb(74 77 74 / .70);text-shadow:0 1px 1px #fff,0 -1px 1px #30333299;
  }
  .ice-n-left {--ice-size:min(10.3cqw,21cqh);left:8.5%;top:52%}
  .ice-e {--ice-size:min(9.3cqw,19cqh);left:21%;top:29%}
  .ice-g {--ice-size:min(14.4cqw,29cqh);right:calc(50% + var(--card-w)*.5 + 1cqw);top:54%;transform:translateY(-50%)}
  .ice-r {--ice-size:min(10.5cqw,calc(var(--headroom)*.72));left:44%;bottom:calc(50% + var(--card-h)*.5 + 5px);transform:translateX(-50%)}
  .ice-o {--ice-size:min(11.5cqw,calc(var(--headroom)*.73));left:50%;top:calc(50% + var(--card-h)*.5 + 6px);transform:translateX(-50%)}
  .ice-n-right {--ice-size:min(9.3cqw,18cqh);left:77%;bottom:1.8%;transform:translateX(-50%)}
  .ice-i {--ice-size:min(9.4cqw,20cqh);left:90%;top:66%}
  .ice-workspace.branded-scene .auth-brand {color:#f5e3ce;text-shadow:0 1px 3px #281910}
  .ice-workspace.branded-scene .auth-brand a {color:#ffe0aa}
  @media (max-aspect-ratio:1/1), (max-width:649px) {
    .ice-workspace.branded-scene .auth-screen:has(.auth-glass) {
      --photo:url("assets/app/login-scene-portrait.webp");
      --card-w:min(96vw,495px);--card-h:clamp(408px,55svh,510px);
      max-width:620px;margin-inline:auto;
    }
    .ice-workspace.branded-scene .auth-screen:has(.auth-glass) {background-size:100% 132%;background-position:top center}
    .bar-still-life .bar-shaker {
      left:87%;top:21%;height:min(33cqh,49cqw);transform:translate(-50%,-28%) rotate(26deg);
    }
    .bar-still-life .bar-strainer {
      left:9%;top:60%;bottom:auto;height:min(28cqh,48cqw);transform:translate(-50%,-46%) rotate(-34deg);
    }
    .bar-still-life .bar-portrait-tool {position:absolute;display:block;opacity:.52;filter:blur(.8px)}
    .bar-spoon {left:17%;top:19%;height:23%;transform:translate(-50%,-40%) rotate(24deg)}
    .bar-jigger {left:81%;top:77%;height:13%;transform:translate(-50%,-45%) rotate(-49deg)}
    .ice-n-left,.ice-e,.ice-g {
      left:var(--letter-x);right:auto;top:auto;bottom:calc(50% + var(--card-h)*.5 + var(--lift));
      transform:translateX(-50%);--ice-size:min(19cqw,calc(var(--headroom)*.55));
    }
    .ice-n-left {--letter-x:15%;--lift:calc(var(--headroom)*.10)}
    .ice-e {--letter-x:43%;--lift:calc(var(--headroom)*.32)}
    .ice-g {--letter-x:71%;--lift:calc(var(--headroom)*.07);--ice-size:min(24cqw,calc(var(--headroom)*.61))}
    .ice-r,.ice-o,.ice-n-right,.ice-i {
      left:var(--letter-x);bottom:auto;top:calc(50% + var(--card-h)*.5 + var(--lift));
      transform:translateX(-50%);--ice-size:min(18cqw,calc(var(--headroom)*.49));
    }
    .ice-r {--letter-x:13%;--lift:calc(var(--headroom)*.17)}
    .ice-o {--letter-x:36%;--lift:calc(var(--headroom)*.04)}
    .ice-n-right {--letter-x:61%;--lift:calc(var(--headroom)*.31)}
    .ice-i {--letter-x:85%;--lift:calc(var(--headroom)*.12)}
    .ice-workspace.branded-scene body.auth-required .auth-brand {position:static;margin:0 auto;max-width:620px;padding:8px 14px}
  }
  @media (min-aspect-ratio:1/1) and (max-height:540px) {
    .ice-workspace.branded-scene .auth-screen:has(.auth-glass) {--card-w:min(43vw,410px);--card-h:clamp(265px,72svh,330px)}
    .ice-workspace.branded-scene .password-card > .eyebrow,
    .ice-workspace.branded-scene .password-card > h2 + p {display:none}
    .ice-workspace.branded-scene .auth-glass:is(.otp-card,.ice-code-edge) > p {font-size:11px;line-height:1.1}
    .ice-workspace.branded-scene .auth-glass:is(.otp-card,.ice-code-edge) .secondary-button {min-height:20px;padding-block:1px}
    .ice-workspace.branded-scene .auth-glass .otp-stage:not(.otp-recovery .otp-stage) {max-height:31px}
    .ice-workspace.branded-scene .auth-glass .stack-form label {gap:2px}
    .ice-workspace.branded-scene .auth-glass .auth-language-flag {height:26px;min-height:26px}
    .ice-workspace.branded-scene .auth-glass .otp-stage:not(.otp-recovery .otp-stage) {height:40px}
    .ice-workspace.branded-scene .auth-card.auth-glass {row-gap:1px;--face-padding:calc(var(--card-h)*.14) calc(var(--card-w)*.225) calc(var(--card-h)*.12) calc(var(--card-w)*.15)}
    .ice-workspace.branded-scene .auth-glass.auth-card h2 {font-size:20px}
    .ice-workspace.branded-scene .auth-glass .stack-form input:not(.otp-stage input,[type=checkbox]),
    .ice-workspace.branded-scene .auth-glass .stack-form .primary-button {min-height:29px;height:29px}
  }
}
/* The rear face contacts first, then a short rebound damps along the depth axis. */
@media screen and (prefers-reduced-motion:no-preference) and (forced-colors:none) {
  .ice-preparing > :is(.password-card,.ice-rest-edge) {visibility:hidden}
  .ice-workspace.branded-scene:not([data-motion=off]) .ice-arriving {
    --landing-duration:1.30s;
  }
  .ice-workspace.branded-scene:not([data-motion=off]) .ice-arriving > :is(.password-card,.ice-rest-edge) {
    animation:ice-card-arrival var(--landing-duration) both;
  }
  .ice-workspace.branded-scene:not([data-motion=off]) .ice-arriving .bar-still-life::before {
    animation:ice-landing-shadow var(--landing-duration) both;
  }
  @keyframes ice-card-arrival {
    0% {transform:perspective(1150px) translate3d(0,3%,525px) rotateX(8deg) rotateY(-11deg) rotateZ(-2deg);opacity:1;animation-timing-function:ease-out}
    11% {transform:perspective(1150px) translate3d(0,2.5%,490px) rotateX(7deg) rotateY(-10deg) rotateZ(-1.8deg);opacity:1;animation-timing-function:cubic-bezier(.44,.09,.81,.64)}
    51% {transform:perspective(1150px) translateZ(-19px) rotateX(2deg) rotateY(-3.2deg) rotateZ(-.8deg);animation-timing-function:cubic-bezier(.18,.63,.32,1)}
    66% {transform:perspective(1150px) translateZ(11px) rotateX(-1.6deg) rotateY(1.6deg) rotateZ(.45deg);animation-timing-function:ease-in-out}
    81% {transform:perspective(1150px) translateZ(-4px) rotateX(.6deg) rotateY(-.55deg) rotateZ(-.17deg);animation-timing-function:ease-in-out}
    100% {transform:perspective(1150px) translateZ(0);opacity:1}
  }
  @keyframes ice-landing-shadow {
    0% {opacity:.04;transform:translate(-46%,-50%) scale(1.85,2.6);animation-timing-function:ease-in}
    51% {opacity:1;transform:translate(-50%,-50%) scale(.95,.90);animation-timing-function:ease-out}
    66% {opacity:.82;transform:translate(-50%,-45%) scale(1.06,1.12)}
    81% {opacity:.98;transform:translate(-50%,-50%) scale(.99,.98)}
    100% {opacity:1;transform:translate(-50%,-50%)}
  }
}
/* Verification takes over the lower part of the reading surface. */
.otp-form [hidden] {display:none!important}
.ice-workspace .otp-card:has(.otp-stage[data-state]):not(:has(.otp-recovery)) > p,
.ice-workspace .otp-card:has(.otp-stage[data-state]):not(:has(.otp-recovery)) .secondary-button,
.ice-workspace .otp-card:has(.otp-stage[data-state]):not(:has(.otp-recovery)) .otp-form > label {display:none}
.ice-workspace.branded-scene .otp-card .otp-form:not(.otp-recovery) .otp-stage[data-state] {
  --cell:clamp(38px,calc(var(--card-h) * .118),62px);
  height:calc(var(--card-h) * .48);max-height:none;
}
.auth-glass .stack-form label.remember-login {
  display:flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;
  min-height:24px;margin:0;cursor:pointer;font-size:12px;
}
.auth-glass .stack-form .remember-login input[type=checkbox] {
  appearance:auto;accent-color:#4c5e60;padding:0;margin:0;width:15px;height:15px;min-height:0;
  flex:0 0 15px;box-shadow:none;
}

@media screen and (forced-colors:none) {
  .ice-workspace .auth-glass .remember-login span {
    color:#34434a;
    font-weight:650;
    background:
      linear-gradient(167deg,#24363de0 16%,#46575dbd 43%,#29383de0 72%),
      url("assets/app/login-ice.webp") 38% 70% / 170px 138px;
    background-clip:text;
    -webkit-text-fill-color:transparent;
    text-shadow:none;
    filter:drop-shadow(0 1px .25px #f4ffffe8);
  }
  .ice-workspace .auth-glass .stack-form .remember-login input[type=checkbox] {
    appearance:none;-webkit-appearance:none;position:relative;
    width:17px;height:17px;flex-basis:17px;box-sizing:border-box;
    border:1px solid;border-color:#687d849c #b3c3c5aa #f4faf8db #77898c9c;
    border-radius:4px 5px 4px 3px;cursor:pointer;
    background:linear-gradient(139deg,#586d7540,#bfd0d118 52%,#f7ffff40);
    box-shadow:inset 1px 1px 1.5px #263c4559,inset -1px -1px 1px #ffffffe0,0 1px .5px #ffffffac;
  }
  .ice-workspace .remember-login input[type=checkbox]:checked::before {
    content:"";position:absolute;left:4px;top:1px;width:5px;height:9px;
    box-sizing:content-box;transform:rotate(39deg);
    border:solid #34484e;border-width:0 2px 2px 0;
    filter:drop-shadow(.7px .7px .2px #f6ffff);
  }
  .ice-workspace .auth-glass .remember-login input[type=checkbox]:focus-visible {
    outline:2px solid #334b55;outline-offset:2px;
  }
}

/* One photograph supplies the facets on the report surfaces and navigation rail. */
@media screen and (forced-colors:none) {
  html.ice-workspace {
    --report-ice:none;
    --report-face:linear-gradient(108deg,rgba(29,44,49,.87),rgba(28,42,46,.97) 27% 72%,rgba(42,52,52,.85));
    --rail-face:linear-gradient(108deg,#253337df,#233034f5 30% 77%,#384245da);
  }
  html.ice-workspace[data-theme=light] {
    --report-face:linear-gradient(108deg,#e1ebebe0,#f1f4f0ed 27% 72%,#e1e8e7d1);
    --rail-face:linear-gradient(108deg,#e1ebebe0,#edf1efeb 30% 77%,#e0e5dfdb);
  }
  .ice-workspace body:not(.auth-required) :is(.metric-card,.source-card,.pulse-metric,.syrve-kpis>.panel,.scene-fact,.summary-strip,.report-metric,.ts-venue-card) {
    background:var(--report-face),var(--report-ice) center/100% 100% no-repeat,var(--pane-solid);
    border:1px solid var(--pane-rim);border-radius:13px 10px 15px 9px;
    box-shadow:inset 1px 1px 1px var(--pane-light),inset -1px -2px 3px var(--pane-shadow),0 3px 8px var(--pane-shadow);
  }
  .ice-workspace body:not(.auth-required) .sidebar :is(.nav-item,.nav-group>summary) {
    background:var(--rail-face),var(--report-ice) center/100% 100% no-repeat,var(--sidebar);
    text-shadow:0 1px 1px var(--pane-shadow);
  }
  .ice-workspace body:not(.auth-required) .sidebar .nav-item.active {
    background:linear-gradient(100deg,#97652558,transparent 60%),var(--rail-face),var(--report-ice) center/100% 100%,var(--sidebar);
    box-shadow:inset 3px 0 var(--accent),inset 0 1px var(--pane-light);
  }
  .ice-workspace .sidebar .nav-group-items {transform-origin:50% 0}
  html.ice-workspace body:not(.auth-required) #app-view.content>* {animation:none}
}
@media screen and (prefers-reduced-motion:no-preference) and (forced-colors:none) and (max-width:840px) {
  html.ice-workspace:not([data-motion=off]) body.menu-open .sidebar {
    transform-origin:left center;animation:ice-rail-open 195ms cubic-bezier(.2,.75,.27,1);
  }
  @keyframes ice-rail-open {from{transform:perspective(950px) translateX(-18%) rotateY(-9deg)}to{transform:none}}
}
@media(prefers-reduced-transparency:reduce) {
  html.ice-workspace {--report-ice:none}
}
@media screen and (forced-colors:none) {
  .ice-workspace body:not(.auth-required) :is(.account-popover,.period-popover,.scene-menu nav) {
    background:var(--report-face),var(--report-ice) center/100% 100%,var(--surface);
    box-shadow:inset 0 1px var(--pane-light),0 7px 22px var(--pane-shadow);
  }
  .ice-workspace [role=tab][aria-selected=true] {box-shadow:inset 0 -2px var(--accent)}
}
@media screen and (prefers-reduced-motion:no-preference) and (forced-colors:none) {
  .ice-workspace:not([data-motion=off]) :is(.account-menu,.period-picker)[open] > :is(.account-popover,.period-popover),
  .ice-workspace:not([data-motion=off]) .scene-menu[open] nav {
    animation:ice-popover-open 140ms ease-out;transform-origin:top right;
  }
  @keyframes ice-popover-open {from{translate:0 -3px;rotate:x -3deg}to{translate:0 0;rotate:x 0deg}}
}

/* Keep attention on working figures; the illustrated ice belongs to sign-in. */
@media screen and (forced-colors:none) {
  html.ice-workspace {--report-face:linear-gradient(#293031,#293031);--rail-face:linear-gradient(#242b2c,#242b2c);--work-rim:#56605e}
  html.ice-workspace[data-theme=light] {--report-face:linear-gradient(#f6f8f6,#f6f8f6);--rail-face:linear-gradient(#eef2ef,#eef2ef);--work-rim:#c1ccc7}
  html.ice-workspace body:not(.auth-required) :is(.metric-card,.source-card,.pulse-metric,.syrve-kpis>.panel,.scene-fact,.summary-strip,.report-metric,.ts-venue-card,.metric-settings-card,.source-connection-card) {
    background:var(--report-face);border:1px solid var(--work-rim);border-radius:10px;box-shadow:none;text-shadow:none;font-variant-numeric:tabular-nums;
  }
  html.ice-workspace body:not(.auth-required) .sidebar :is(.nav-item,.nav-group>summary) {text-shadow:none}
}
/* Brand artwork for the signed-in workspace. The login has its own composition. */
@media screen and (forced-colors:none) {
  html.ice-workspace.branded-scene body:not(.auth-required) {
    --work-veil:rgb(16 20 21 / .50);
    background-image:linear-gradient(var(--work-veil),var(--work-veil)),var(--branded-scene);
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
  }
  html.ice-workspace.branded-scene[data-theme=light] body:not(.auth-required) {
    --work-veil:rgb(249 244 233 / .56);
  }
  @media (max-aspect-ratio:1/1) {
    html.ice-workspace.branded-scene body:not(.auth-required) {
      background-position:68% center;
    }
  }
  @media (prefers-reduced-transparency:reduce) {
    html.ice-workspace.branded-scene body:not(.auth-required) {background-image:none}
  }
}
