@font-face {
  font-family:Inter;
  src:url("../assets/fonts/intervariable.ttf") format("truetype");
  font-weight:100 900;
  font-display:swap
}
:root {
  --radius-card:16px;
  --radius-control:12px;
  --space-card:16px;
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  font:14px/1.45 Inter,sans-serif;
  color:#151719;
  -webkit-font-smoothing:antialiased;
  font-variant-numeric:tabular-nums
}
button,input {
  font:inherit
}
button {
  cursor:pointer;
  color:inherit
}
button:focus-visible,input:focus-visible {
  outline:2px solid currentColor;
  outline-offset:4px
}
button:disabled {
  cursor:default
}
.central-icon {
  width:20px;
  height:20px;
  flex:none;
  vertical-align:middle
}
.muted {
  color:#60646b
}
h2,p,figure,dl,dd {
  margin:0
}
h2 {
  font-size:16px;
  font-weight:550
}
button {
  border:0;
  background:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:44px;
  min-height:44px;
  border-radius:var(--radius-card)
}
.finance {
  background:#ececec;
  border-radius:var(--radius-card)
}
.balance {
  width:343px;
  padding:20px
}
.balance-number {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:24px;
  letter-spacing:-1px;
  font-weight:550;
  margin-top:4px
}
.gain {
  font-size:10px;
  font-weight:500;
  background:#5da6ff;
  border-radius:9px;
  padding:3px 7px;
  letter-spacing:0;
  color:#173f71
}
.balance-figure {
  margin-top:20px
}
.chart {
  display:block;
  width:303px;
  height:46px
}
.balance figcaption {
  display:flex;
  justify-content:space-between;
  font-size:11px;
  color:#626262;
  margin-top:6px
}
.saving {
  width:167.5px;
  height:120px;
  display:grid;
  grid-template-rows:auto 1fr;
  padding:10px 12px
}
.saving-head {
  display:flex;
  justify-content:space-between;
  align-items:center
}
.saving-head>.central-icon {
  color:#9b9b9b;
  width:16px
}
.finance-symbol {
  display:inline-flex;
  width:24px;
  height:24px;
  align-items:center;
  justify-content:center;
  color:#245f9c
}
.finance-symbol .central-icon {
  width:22px;
  height:22px
}
.saving-content {
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-top:auto;
  font-size:13px
}
.mini-chart {
  width:64px;
  height:46px;
  object-fit:cover;
  object-position:right
}
.saving-content .muted {
  font-size:12px
}
.transactions {
  width:343px;
  padding:var(--space-card)
}
.transactions h2 {
  margin-bottom:12px
}
.transaction {
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 0;
  border-top:1px solid #dcdcdc
}
.merchant {
  width:40px;
  height:40px;
  object-fit:contain;
  border-radius:12px
}
.merchant-info {
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column
}
.merchant-info strong {
  font-size:13px;
  line-height:1.3
}
.merchant-info span,.merchant-info small {
  font-size:11px;
  color:#626262
}
.transaction-amount {
  display:flex;
  flex-direction:column;
  align-items:end;
  font-size:13px
}
.transaction-amount small {
  font-size:10px;
  background:#ddd;
  border-radius:3px;
  padding:0 4px;
  margin-top:3px
}
/* Fixed stage dimensions keep swipes independent of preview scaling. */
.wallet { width:343px; height:278px; position:relative; }
.bank-stack { height:278px; position:relative; perspective:1000px; isolation:isolate; touch-action:none; }
.bank-stack:focus-visible { outline:0; }
.bank { position:absolute; top:50px; left:0; width:343px; height:216px; border-radius:12px; overflow:visible; transform-origin:50% 0; border:0; outline:0; background:transparent; box-shadow:0 7px 18px #11182724; user-select:none; }

.account {
  width:167.5px;
  padding:var(--space-card);
  display:grid;
  gap:24px;
  border:1px solid transparent;
  box-shadow:0 8px 24px #11182708;
  transition:transform .24s cubic-bezier(.22,1,.36,1),box-shadow .24s ease,border-color .24s ease
}
.account-content {
  display:flex;
  flex-direction:column;
  gap:24px
}
.account-copy {
  display:flex;
  flex-direction:column;
  min-width:0
}
.account strong {
  font-size:20px;
  font-weight:450
}
.account .finance-symbol {
  transform-origin:center;
  transition:transform .24s cubic-bezier(.22,1,.36,1),color .18s ease
}
.account-footer {
  margin:0
}
.account-action {
  width:100%;
  min-width:0;
  min-height:40px;
  border-radius:var(--radius-control);
  padding:10px 12px;
  background:#d9dadd;
  box-shadow:inset 0 0 0 1px #00000005;
  font-size:13px
}
.context-tabs {
  width:465px;
  display:flex;
  gap:8px
}
.context-tabs button {
  width:110px;
  min-height:64px;
  display:flex;
  flex-direction:column;
  align-items:start;
  justify-content:space-between;
  padding:10px;
  background:#f1f1f3;
  border-radius:var(--radius-control);
  font-size:12px;
  transition:background-color .18s,color .18s,transform .18s
}
.context-tabs button[aria-pressed=true] {
  background:#08525d;
  color:white
}
.context-tabs .central-icon {
  width:17px;
  height:17px
}
.editorial {
  width:386px;
  background:white;
  border-radius:var(--radius-card);
  overflow:hidden
}
.editorial-photo {
  position:relative
}
.editorial-photo>img {
  width:100%;
  height:222px;
  object-fit:cover;
  display:block
}
.editorial-copy {
  padding:16px
}
.editorial h2 {
  font-size:15px;
  line-height:1.45;
  font-weight:500
}
.editorial p {
  font-size:12px;
  color:#60646b;
  margin-top:10px
}
.editorial p span {
  margin:0 6px
}
.duration {
  position:absolute;
  bottom:8px;
  left:8px;
  display:flex;
  align-items:center;
  gap:5px;
  color:white;
  background:#000b;
  padding:3px 7px;
  border-radius:4px;
  font-size:11px
}
.duration .central-icon {
  width:12px;
  height:12px
}
.player {
  width:650px;
  height:320px;
  position:relative;
  overflow:hidden;
  border-radius:16px;
  color:white
}
.player-image,.player-shade {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover
}
.player-shade {
  background:linear-gradient(#000b,#0003 40%,#000d)
}
.player header {
  position:absolute;
  top:20px;
  left:24px;
  right:24px;
  display:flex;
  flex-direction:column;
  font-size:18px;
  line-height:1.35
}
.player header span {
  font-size:14px;
  margin-top:5px;
  opacity:.9
}
.player-center {
  position:absolute;
  inset:90px 0 90px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:65px
}
.player-center button {
  color:white;
  width:44px;
  height:44px
}
.player footer {
  position:absolute;
  bottom:16px;
  left:24px;
  right:24px;
  font-size:14px
}
.player footer>div>span {
  opacity:.9;
  margin-left:8px
}
.player input {
  width:100%;
  accent-color:white;
  height:20px;
  margin:4px 0
}
.player-actions {
  display:flex;
  align-items:center;
  gap:12px
}
.player-actions>span {
  margin-left:auto!important
}
.live-story {
  width:330px;
  height:560px;
  position:relative;
  border-radius:18px;
  overflow:hidden;
  color:white
}
.live-image,.live-shade {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover
}
.live-shade {
  background:linear-gradient(transparent 25%,#0008 65%,#000e)
}
.live-copy {
  position:absolute;
  bottom:16px;
  left:20px;
  right:20px
}
.live-copy p {
  font-size:16px;
  line-height:1.45
}
.live-copy small {
  display:block;
  margin-top:10px;
  color:#ddd
}
.live-copy small span {
  margin:0 7px
}
.live-copy footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:18px
}
.live-copy footer>span {
  display:flex;
  gap:6px;
  align-items:center;
  font-size:12px
}
.live-copy footer button {
  color:white
}
.health {
  width:361px;
  padding:var(--space-card);
  background:#162650;
  border-radius:var(--radius-card);
  color:#c6cfe6
}
.small-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  font-weight:400;
  margin-bottom:18px
}
.small-heading>span {
  display:flex;
  align-items:center;
  gap:6px
}
.small-heading .central-icon {
  width:13px;
  height:13px
}
.score-body {
  display:flex;
  gap:18px;
  align-items:center;
  padding:0
}
.ring {
  width:138px;
  height:138px;
  flex:none;
  border-radius:50%;
  background:conic-gradient(#4b9bff 0 59%,#293c67 59%);
  position:relative;
  display:grid;
  place-items:center
}
.ring:before {
  content:"";
  position:absolute;
  inset:6px;
  border-radius:50%;
  background:#162650
}
.ring>div {
  position:relative;
  display:flex;
  flex-direction:column;
  text-align:center
}
.ring strong {
  font-size:30px;
  font-weight:400;
  color:white
}
.ring small {
  font-size:12px;
  color:#49d887
}
.score dl {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px 12px;
  font-size:14px
}
.score dd {
  font-size:12px;
  color:#a6b5d6
}
.score dt>.up,.score dt>.down {
  font-size:10px;
  margin-left:2px
}
.up {
  color:#49d887
}
.down {
  color:#ff7979
}
.goals .small-heading {
  margin-bottom:10px
}
.progress-label {
  display:flex;
  justify-content:space-between;
  font-size:12px;
  margin-bottom:5px
}
.progress-label strong {
  font-weight:400
}
.progress-track {
  height:8px;
  border-radius:4px;
  background:#293c67;
  overflow:hidden
}
.progress-track span {
  display:block;
  width:60%;
  height:100%;
  background:#4b9bff
}
.age .small-heading {
  margin-bottom:8px
}
.age-values {
  display:flex;
  justify-content:space-between
}
.age-values>div {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px
}
.age-values small {
  font-size:10px
}
.age-values .muted {
  display:block;
  color:#a6b5d6
}
.age-icon {
  display:grid;
  place-items:center;
  border:1.5px solid currentColor;
  border-radius:50%;
  width:34px;
  height:34px
}
.age-icon .central-icon {
  width:15px;
  height:15px
}
.green {
  color:#49d887
}
.purple {
  color:#bf8aff
}
.amber {
  color:#ffc33e
}
.result .small-heading {
  margin-bottom:9px
}
.result p {
  font-size:12px;
  margin-bottom:4px
}
.result-track {
  height:16px;
  border-radius:8px;
  background:linear-gradient(90deg,#44d984 46.6%,#fa494f 46.6%);
  position:relative
}
.result-marker {
  width:12px;
  height:12px;
  position:absolute;
  left:20px;
  top:2px;
  border-radius:50%;
  background:#27355a
}
.result-midpoint {
  display:block;
  text-align:center;
  margin-top:3px;
  color:#a6b5d6
}
.stage {
  height:100vh;
  display:grid;
  place-items:center;
  overflow:hidden
}
.component-wrap {
  transform:scale(var(--scale,1));
  transform-origin:center
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%)
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
  animation:none!important;
  transition:none!important
}

}


.segern-mark {
  background:white;
  display:grid;
  place-items:center;
  flex:none
}
.segern-mark:after {
  content:"";
  width:24px;
  height:24px;
  background:black;
  border-radius:50%
}
.mastercard img {
  position:absolute;
  left:0;
  top:0;
  width:28px;
  height:28px
}
.mastercard img.second-ring {
  left:17px
}
.mastercard img.mastercard-word {
  top:29px;
  left:3px;
  width:40px;
  height:6px
}


/* Control feedback stays inside the existing layout. */
button { transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease; }
button:active { transform:scale(.96); }
button svg,.player-shade,.live-shade { pointer-events:none; }
.player button,.live-story button { border-radius:50%; background:#00000026; }
.player [data-play] { width:56px; height:56px; background:#ffffff26; box-shadow:inset 0 0 0 1px #ffffff45; }
.player [data-play] .central-icon { width:24px; height:24px; }
.player input { cursor:pointer; min-height:32px; }
@media(hover:hover) {
  button:hover { box-shadow:inset 0 0 0 1px #00000020; }
  .context-tabs button:not([aria-pressed=true]):hover { background:#e3e8eb; }
  .player button:hover,.live-story button:hover { background:#ffffff30; box-shadow:inset 0 0 0 1px #ffffff60; }
  .account:hover { transform:translateY(-2px); border-color:#ffffffb8; box-shadow:0 13px 30px #11182714; }
  .account:hover .finance-symbol { color:#1d69b6; transform:translateY(-1px) rotate(-3deg); }
  .account-action:hover { background:#d1d3d7; transform:translateY(-1px); }
}
@media(prefers-reduced-motion:reduce) { button { transition:none; } button:active { transform:none; } }

@keyframes account-icon-settle {
  0%,20%,100% { transform:translateY(0) rotate(0); }
  7% { transform:translateY(-2px) rotate(-4deg); }
  12% { transform:translateY(0) rotate(1deg); }
}
@keyframes account-action-settle {
  0%,35%,100% { transform:translateY(0) scale(1); }
  26% { transform:translateY(-1px) scale(1.01); }
}
#component[data-preview-mode="loop"] .account .finance-symbol { animation:account-icon-settle 6s cubic-bezier(.22,1,.36,1) infinite; }
#component[data-preview-mode="loop"] .account-action { animation:account-action-settle 6s cubic-bezier(.22,1,.36,1) infinite; }

@property --ring-progress {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 59%;
}
.metric-display { display:inline-flex; white-space:nowrap; vertical-align:bottom; }
.metric-digit { display:inline-block; overflow:hidden; height:1.2em; width:1ch; }
.metric-reel { display:block; }
.metric-reel>span { display:block; height:1.2em; line-height:1.2; }
.ring { background:conic-gradient(#4b9bff 0 var(--ring-progress),#293c67 var(--ring-progress)); }
.progress-track span { transform-origin:left center; }

/* Keep numeric animation internals isolated from component typography rules. */
[data-metric] { display:inline-block; line-height:1.2; letter-spacing:normal; }
.metric-display,.metric-digit,.metric-reel,.metric-reel>span { font:inherit; margin:0; padding:0; }
.metric-reel>span { line-height:1.2; }
.score dt>.up .central-icon,.score dt>.down .central-icon { width:11px; height:11px; }
.ring small .central-icon { width:12px; height:12px; }
#component[data-preview-passive] button,#component[data-preview-passive] input { pointer-events:none; }

.player { height:366px; }
.player video { object-fit:contain; background:#101114; }
.player .video-status { font-size:12px; margin-left:auto; max-width:260px; }
.player [data-mute],.player [data-captions] { border-radius:10px; padding:0 8px; font-size:13px; }
.player video::cue { font:16px Inter,sans-serif; background:#000d; color:white; }

.video-captions { position:absolute; bottom:130px; left:50px; right:50px; text-align:center; pointer-events:none; font-size:15px; line-height:1.35; }
.video-captions span { display:table; margin:2px auto; padding:2px 6px; border-radius:4px; background:#000e; color:white; }

/* The SVG owns its edge and depth shade, including the Elite card notch. */
.bank>svg.card-face { position:absolute; display:block; inset:0; width:100%; height:100%; overflow:hidden; outline:0; pointer-events:none; }
.health-task { width:361px; min-height:112px; position:relative; display:flex; align-items:center; gap:12px; overflow:hidden; isolation:isolate; }
.task-photo,.task-shade { position:absolute; inset:0; width:100%; height:100%; z-index:-1; }
.task-photo { object-fit:cover; object-position:center; }
.task-shade { background:linear-gradient(90deg,#162757 25%,#162757ee 60%,#16275740); }
.health-task>.central-icon { width:26px; height:26px; color:white; }
.task-copy { flex:1; min-width:0; }
.task-copy h2 { font-size:14px; line-height:20px; color:white; }
.task-copy p { font-size:12px; line-height:17px; margin-top:3px; color:#d1d9eb; }
.task-arrow { display:grid; place-items:center; flex:none; width:44px; height:28px; border-radius:20px; background:white; color:#162757; }
.task-arrow .central-icon { width:18px; height:18px; }
.health-trend { width:361px; }
.trend-content { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:14px; }
.trend-content>div { display:flex; flex-direction:column; gap:2px; }
.trend-content strong { font-size:20px; line-height:26px; font-weight:550; color:white; white-space:nowrap; }
.trend-content small { font-size:12px; color:#bac7e0; }
.trend-content .score-total { font-size:13px; }
.trend-content .mini-chart { width:72px; height:37px; object-fit:fill; }
.health-comparison { width:393px; padding:20px 16px; }
.health-comparison figcaption { display:flex; gap:20px; font-size:12px; color:#c6d2e8; margin-bottom:14px; }
.health-comparison figcaption span::before { content:""; display:inline-block; width:8px; height:8px; margin-right:6px; border-radius:50%; background:#54a5ff; }
.health-comparison .series-previous::before { background:#d9e0ed; }
.comparison-plot { display:flex; height:150px; position:relative; }
.comparison-axis { width:43px; flex:none; display:flex; flex-direction:column; justify-content:space-between; font-size:11px; color:#bac7e0; }
.comparison-axis span { position:relative; }
.comparison-axis span::after { content:""; position:absolute; left:40px; top:50%; width:318px; border-top:1px dashed #ffffff20; }
.comparison-lines { width:318px; height:138px; position:relative; margin-top:8px; }
.comparison-lines .chart { position:absolute; width:317px; height:auto; }
.comparison-area { top:0; opacity:.45; }
.comparison-current { top:23.24px; }
.comparison-previous { top:48.54px; }
.comparison-guide { position:absolute; left:269px; top:0; height:138px; border-left:1px dashed #54a5ff; }
.comparison-point { position:absolute; left:264px; top:25px; width:10px; height:10px; border:3px solid #54a5ff; background:white; border-radius:50%; }
.comparison-value { position:absolute; right:5px; top:-6px; padding:4px 7px; border-radius:6px; background:#54a5ff; color:#081a39; font-size:12px; font-weight:500; transform:translateY(-50%); }
.comparison-days { display:flex; justify-content:space-between; padding-left:43px; margin-top:10px; font-size:11px; color:#bac7e0; }

/* The narrow dollar glyph needs a smaller box and a left optical correction. */
.saving .finance-symbol { width:18px; height:18px; justify-content:flex-start; }
.saving .finance-symbol .central-icon { width:16px; height:16px; transform:translateX(-4px); }
.player header, .player-center, .player footer, .player-shade {
  transition:opacity 240ms ease;
}
.player[data-controls-hidden="true"] header,
.player[data-controls-hidden="true"] .player-center,
.player[data-controls-hidden="true"] footer,
.player[data-controls-hidden="true"] .player-shade {
  opacity:0;
  pointer-events:none;
}
@media (prefers-reduced-motion:reduce) {
  .player header, .player-center, .player footer, .player-shade { transition:none; }
}

/* Fixed grid tracks center wide native components even below their minimum width. */
.stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }

/* The parent declares its canvas; opaque component surfaces keep their own ink. */
:root {
  --canvas-ink: #f5f5f7;
  --canvas-muted: #b9bac4;
  --canvas-action-ink: #19191d;
}
:root[data-surface-tone="light"] {
  --canvas-ink: #1a1a1a;
  --canvas-muted: #62626f;
  --canvas-action-ink: #ffffff;
}
