.account-chip { display:flex; align-items:center; min-height:44px; max-width:min(48%,240px); white-space:nowrap; }
.account-chip span:first-child { overflow:hidden; text-overflow:ellipsis; }
.account-chip span:last-child { flex:none; white-space:pre; }
.account-dialog { --stage-panel-width:880px; padding:28px; overflow:auto; }
.account-dialog[data-signed-in="false"] { --stage-panel-width:1040px; }
.account-form { display:grid; gap:14px; margin:0; min-width:0; }
.account-auth-layout { grid-template-columns:minmax(0,.95fr) minmax(0,1fr); gap:36px; align-items:center; }
.account-welcome { position:relative; display:grid; justify-items:center; align-content:center; gap:10px; min-width:0; padding:20px 12px; text-align:center; border-right:1px solid var(--stage-border); overflow:hidden; }
.account-welcome strong { margin:0; color:var(--stage-ink); font-size:34px; line-height:1.3; font-weight:900; letter-spacing:-.04em; }
.account-welcome p { margin:0; font-size:13px; color:var(--stage-mist); }
.account-mascot { width:150px; height:136px; }
.account-cartridges { width:min(100%,320px); height:222px; object-fit:contain; }
.account-auth-fields { display:grid; gap:14px; min-width:0; }
.account-note { margin-left:auto; color:var(--stage-mist); font-size:12px; white-space:nowrap; }
.account-tabs { display:flex; gap:4px; padding:4px; border-radius:999px; background:#f4ede2; }
.account-tabs [data-mode] { flex:1; min-height:54px; border:1px solid transparent; border-radius:999px; background:transparent; color:var(--stage-ink); font:800 19px var(--stage-font); cursor:pointer; }
.account-tabs [data-mode][aria-selected="true"] { background:var(--stage-gold-surface); color:var(--stage-ink); border-color:#e9bd39; font-weight:850; box-shadow:inset 0 2px #fff7c0,0 3px 6px #b38c3226; }
.account-field { display:grid; gap:6px; min-width:0; }
.account-field span { color:var(--stage-mist); font-size:13px; }
.account-field input, .account-rename input { box-sizing:border-box; min-width:0; min-height:54px; padding:0 14px; border:1px solid var(--stage-rim); border-radius:15px; background:#fffefa; color:var(--stage-ink); font:inherit; box-shadow:inset 0 2px 3px #a17c4d06; }
.account-field input:focus-visible { outline:2px solid var(--stage-highlight); outline-offset:-2px; }
.account-stats { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:12px; margin:0; }
.account-stats div { position:relative; min-width:0; padding:18px 20px; border:1px solid var(--stage-border); border-radius:20px; background:var(--stage-tile); }
.account-stats div:first-child { padding-left:102px; }
.account-profile-avatar { --avatar-size:66px; position:absolute; left:20px; top:20px; border:3px solid #fff; box-shadow:0 3px 8px #49351915; }
.account-stats div:last-child { background:var(--stage-selected); border-color:#eed987; }
.account-stats dt { color:var(--stage-mist); font-size:12px; }
.account-stats dd { margin:4px 0 0; font-size:30px; line-height:1.4; font-weight:850; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-stats dd:has(.account-inline) { display:flex; align-items:center; gap:8px; }
.account-stats dd > span { overflow:hidden; text-overflow:ellipsis; }
.account-inline { flex:none; min-width:44px; min-height:44px; padding:0 10px; border:1px solid var(--stage-border); border-radius:999px; background:var(--stage-panel); color:var(--stage-mist); font:400 12px var(--stage-font); cursor:pointer; }
.account-inline:hover { border-color:var(--stage-rim); color:var(--stage-highlight); }
.account-id { display:flex; align-items:center; gap:10px; padding:8px 12px; border:1px solid var(--stage-border); border-radius:12px; background:var(--stage-tile); }
.account-id-label { flex:none; color:var(--stage-mist); font-size:11px; }
.account-id code { flex:1; min-width:0; color:var(--stage-ink); font:13px/1.45 ui-monospace,"Cascadia Mono",Consolas,monospace; overflow-wrap:anywhere; user-select:all; }
.account-copy { flex:none; min-height:44px; padding:0 12px; border:1px solid var(--stage-border); border-radius:999px; background:var(--stage-panel); color:var(--stage-ink); font:12px var(--stage-font); cursor:pointer; }
.account-copy:hover { border-color:var(--stage-rim); }
.account-rename { display:flex; gap:8px; align-items:center; }
.account-rename[hidden] { display:none; }
.account-rename input { flex:1; }
.account-rename .stage-command { flex:none; }
.account-checkin-entry { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border:1px solid #b9dfcd; border-radius:16px; background:var(--stage-mint); color:var(--stage-success); font-size:13px; }
.account-checkin-entry button { flex:none; min-height:44px; padding-inline:18px; cursor:pointer; font:inherit; }
.account-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.account-actions .stage-command, .account-rename .stage-command { min-height:48px; padding-inline:20px; cursor:pointer; font:700 15px var(--stage-font); }
.account-auth-fields .account-actions .stage-command { min-height:56px; font-size:19px; }
.account-dialog .stage-title,.checkin-dialog .stage-title { font-size:30px; }
.account-auth-fields .account-actions .primary { flex:1; }
.account-dialog button:disabled { opacity:.55; cursor:default; }
.account-error { margin:0; color:var(--stage-error); }
.account-status { margin:0; color:var(--stage-success); }
.account-hint { margin:0; color:var(--stage-mist); font-size:12px; line-height:1.65; }
.account-ledger h3 { margin:0 0 8px; font-size:13px; color:var(--stage-mist); font-weight:600; }
.account-ledger ul { display:grid; gap:6px; margin:0; padding:0; list-style:none; max-height:168px; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.account-ledger li { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; align-items:center; padding:10px 12px; border:1px solid var(--stage-border); border-radius:12px; background:var(--stage-tile); font-size:12px; }
.account-ledger b { color:var(--stage-success); }
.account-ledger b.account-spend { color:var(--stage-error); }
.account-ledger time { color:var(--stage-mist); font-variant-numeric:tabular-nums; }
.account-ledger .account-muted { display:block; color:var(--stage-mist); }
.checkin-dialog { --stage-panel-width:900px; padding:28px; overflow:auto; }
.checkin-content { display:grid; gap:16px; }
.checkin-balance { margin-left:auto; padding:6px 12px; border-radius:999px; background:var(--stage-selected); color:var(--stage-ink); font-weight:750; font-variant-numeric:tabular-nums; }
.checkin-summary { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:4px 12px; color:var(--stage-mist); font-size:12px; }
.checkin-progress { color:var(--stage-success); font-weight:700; }
.checkin-days { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:12px; width:100%; padding:0; margin:0; list-style:none; }
.checkin-days li { --checkin-medal:#d8d5e0; --checkin-symbol:#7d8097; display:grid; grid-column:span 2; justify-items:center; align-content:center; gap:10px; min-width:0; min-height:156px; padding:14px 8px; border:1px solid var(--stage-border); border-radius:21px; background:linear-gradient(145deg,#fffdf9,#fff2e8); color:var(--stage-mist); font-size:15px; font-weight:700; white-space:nowrap; box-shadow:inset 0 2px #fff,0 4px 0 #d9bfa626,0 5px 12px #49351908; }
.checkin-days li:nth-child(5) { grid-column:2 / span 2; }
.checkin-days [data-state="available"] { --checkin-medal:var(--stage-gold); --checkin-symbol:#a07319; border-color:#e2b933; background:#fff1bc; color:var(--stage-ink); box-shadow:0 3px 0 #d4b54c20; }
.checkin-days [data-state="claimed"] { --checkin-medal:#94d4b9; --checkin-symbol:#17664e; border-color:#b9dfcd; background:var(--stage-mint); color:var(--stage-success); }
.checkin-days strong { font-size:27px; color:#b96b17; font-weight:850; font-variant-numeric:tabular-nums; }
.checkin-card-action { display:grid; place-items:center; width:100%; min-width:0; min-height:54px; }
.checkin-card-action small { font-size:11px; }
.checkin-dialog .checkin-card-action button { width:min(100%,148px); min-width:0; min-height:54px; max-width:100%; padding:0 18px; cursor:pointer; font:850 18px var(--stage-font); }
.checkin-token { display:grid; width:42px; height:42px; grid-row:2; place-items:center; background:url('/ui/lounge-coin.svg') center/contain no-repeat; }
.checkin-token::before { display:none; }
.checkin-days [data-state="upcoming"] .checkin-token { filter:saturate(.45); opacity:.75; }
[data-state="claimed"] .checkin-token { border:1px solid #85c2a8; border-radius:50%; background:#c6ebda; box-shadow:inset 0 2px #e8fff3,0 2px 0 #8ac6ad55; }
[data-state="claimed"] .checkin-token::before { content:""; display:block; width:7px; height:12px; border:solid var(--checkin-symbol); border-width:0 3px 3px 0; background:transparent; clip-path:none; transform:translateY(-1px) rotate(45deg); }
.checkin-rule { margin:0; color:var(--stage-mist); font-size:12px; }
.checkin-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.checkin-footer .account-actions { flex:none; flex-wrap:nowrap; margin-left:auto; }
.checkin-dialog [data-action="close"] { min-width:84px; min-height:44px; }
.checkin-dialog button:disabled { opacity:.65; cursor:default; }
@media (max-width:620px) {
  .account-auth-layout { grid-template-columns:1fr; }
  .account-welcome { display:none; }
  .account-dialog { --stage-panel-width:460px; padding:16px; }
  .checkin-days { grid-template-columns:repeat(8,minmax(0,1fr)); }
  .checkin-days li { grid-column:span 2; min-height:110px; gap:6px; padding:8px 4px; }
  .checkin-days li:nth-child(5) { grid-column:2 / span 2; }
  .checkin-card-action { min-height:48px; }
  .checkin-dialog .checkin-card-action button { min-height:48px; padding-inline:2px; font-size:12px; }
}
@media (max-height:430px) {
  .account-dialog, .checkin-dialog { padding:14px 16px; }
  .account-form, .account-auth-fields { gap:10px; }
  .account-welcome { padding:14px 8px; }
  .account-mascot { width:90px; height:82px; }
  .account-cartridges { height:110px; }
  .account-welcome strong { font-size:22px; }
  .account-dialog .stage-title,.checkin-dialog .stage-title { font-size:22px; }
  .account-tabs [data-mode] { min-height:44px; font-size:15px; }
  .account-field input,.account-rename input { min-height:44px; }
  .account-auth-fields .account-actions .stage-command { min-height:44px; font-size:15px; }
  .checkin-days { grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; }
  .checkin-days li,.checkin-days li:nth-child(5) { grid-column:auto; }
  .checkin-days strong { font-size:21px; }
  .checkin-token { width:30px; height:30px; }
  .checkin-content { gap:10px; }
  .checkin-days li { min-height:120px; gap:6px; padding:8px 4px; }
  .checkin-card-action { min-height:44px; }
  .checkin-dialog .checkin-card-action button { min-height:44px; padding-inline:2px; font-size:clamp(12px,1.8vw,15px); }
}
.virtual-landscape .checkin-card-action { min-height:44px; }
.virtual-landscape .checkin-dialog .checkin-card-action button { min-height:44px; padding-inline:2px; font-size:15px; }
