/* VISO account workspace. Shared forms retain the existing service contracts. */
[data-page="account"] { --account-line:#e5e8ed; --account-ink:#17212d; --account-muted:#737d8b; background:#f7f8fa; color:var(--account-ink); font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif; }
[data-page="account"] .account-topbar { height:64px; padding:0 32px; gap:24px; background:#fff; border-bottom:1px solid var(--account-line); backdrop-filter:none; }
.account-topbar .brand { width:160px; flex:none; font-size:22px; letter-spacing:-.6px; }
.account-topbar .brand-mark { background:#17212d; border-radius:6px; }
.account-topbar-label { padding-left:24px; border-left:1px solid var(--account-line); color:#717b88; font-size:12px; }
.account-topbar .desktop-nav { margin-left:auto; }
.account-topbar .desktop-nav a { display:flex; align-items:center; gap:7px; font-size:12px; }
.account-topbar svg { width:15px; height:15px; }
[data-page="account"] .header-actions { display:flex; gap:14px; }
[data-page="account"] .header-account { display:none; }
.account-logout { display:flex; align-items:center; gap:8px; font-size:12px; }
[data-page="account"] .account-main { min-height:calc(100vh - 80px); padding:64px 0 0; }
.account-sidebar { position:fixed; top:64px; bottom:0; left:0; z-index:20; display:flex; flex-direction:column; width:224px; padding:38px 20px 24px; border-right:1px solid var(--account-line); background:#fff; }
.sidebar-caption { margin:0 14px 18px; color:#6c7885; font-size:10px; font-weight:600; letter-spacing:.15em; }
.account-navigation { display:grid; gap:5px; }
.account-navigation a { display:flex; align-items:center; gap:12px; min-height:43px; padding:10px 14px; border-radius:6px; color:#687382; font-size:13px; font-weight:530; transition:background .15s,color .15s; }
.account-navigation a:hover { background:#f5f6f8; color:#17212d; }
.account-navigation a[aria-current="page"] { background:#edf0f4; color:#17212d; font-weight:650; }
.account-navigation svg { flex:none; width:17px; height:17px; stroke-width:1.7; }
.account-navigation .nav-external { width:13px; height:13px; margin-left:auto; color:#939eaa; }
.account-navigation .sidebar-subscription { margin-top:25px; }
.nav-unread { margin-left:auto; min-width:18px; padding:2px 5px; border-radius:4px; background:#263746; color:#fff; font-size:10px; text-align:center; }
.sidebar-foot { display:grid; gap:8px; margin-top:auto; padding:22px 14px 0; border-top:1px solid var(--account-line); color:#9ba3ad; font-size:11px; }
.sidebar-foot-mark { color:#c2c8cf; font-size:22px; font-weight:750; letter-spacing:.1em; }
.account-workspace { min-height:calc(100vh - 64px); margin-left:224px; padding:42px clamp(32px,4.2vw,72px) 60px; }
.workspace-heading,.account-view { max-width:1080px; margin-right:auto; margin-left:auto; }
.workspace-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:28px; }
.workspace-heading > p { margin:0 0 10px; color:#6c7885; font-size:12px; }
.workspace-heading h1 { margin:0; font-size:30px; line-height:1.25; font-weight:660; letter-spacing:-.035em; outline:none; }
.account-view[hidden] { display:none !important; }
.account-overview { overflow:hidden; border:1px solid var(--account-line); border-radius:8px; background:#fff; box-shadow:0 3px 14px rgba(28,39,53,.025); }
.profile-surface { padding:26px 32px 32px; }
.profile-surface-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.profile-surface-heading h2 { margin:0; font-size:13px; font-weight:600; color:#6c7885; }
[data-page="account"] .outline-button { border-color:#dce1e7; border-radius:5px; background:#fff; color:#465362; font-weight:550; }
.profile-edit-button { min-height:34px; padding:0 12px; font-size:12px; }
.profile-edit-button svg { width:13px; height:13px; }
.account-profile-identity { display:flex; align-items:center; gap:20px; min-width:0; margin-top:27px; }
.account-profile-identity > div { min-width:0; }
.account-profile-identity .account-avatar { width:68px; height:68px; border:1px solid #e0e5eb; border-radius:50%; background:#e9edf2; color:#536273; font-size:22px; font-weight:600; }
.account-profile-identity h2 { margin:0 0 7px; color:#1c2632; font-size:26px; font-weight:630; line-height:1.2; letter-spacing:-.025em; overflow-wrap:anywhere; }
.account-profile-identity p { margin:0; color:#6c7885; font-size:13px; overflow-wrap:anywhere; }
.account-summary-grid { display:grid; grid-template-columns:1.12fr 1fr 1fr; border-top:1px solid var(--account-line); }
.account-summary { display:flex; flex-direction:column; min-width:0; min-height:218px; padding:25px 30px; border-right:1px solid var(--account-line); }
.account-summary:last-child { border-right:0; }
.summary-label { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:20px; color:#6c7885; font-size:12px; }
.account-summary .account-status { margin:0; padding:2px 6px; border-radius:3px; background:#f1f3f5; color:#6d7784; font-size:10px; line-height:1.4; }
.has-active-plan .account-status { background:#edf5ef; color:#35734d; }
.summary-value { margin-top:21px; color:#1d2734; font-size:25px; font-weight:630; line-height:1.25; letter-spacing:-.025em; overflow-wrap:anywhere; }
.summary-number { display:flex; align-items:baseline; gap:7px; margin-top:16px; }
.summary-number strong { color:#1d2734; font-size:31px; font-weight:580; line-height:1.25; letter-spacing:-.045em; }
.summary-number > span { color:#6c7885; font-size:12px; }
.summary-detail { min-height:18px; margin:9px 0 0; color:#6c7885; font-size:12px; line-height:1.5; }
.summary-detail small { display:block; font-size:10px; }
.account-summary > a { display:inline-flex; align-items:center; align-self:flex-start; gap:8px; margin-top:auto; padding-top:24px; color:#43647d; font-size:12px; font-weight:580; }
.account-summary > a:hover { color:#142e43; text-decoration:underline; text-underline-offset:4px; }
.account-summary > a svg { width:14px; height:14px; }
.view-toolbar { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:58px; margin-bottom:20px; }
.view-toolbar .outline-button { flex:none; min-height:34px; padding:0 12px; font-size:12px; }
.view-toolbar .outline-button svg { width:14px; height:14px; }
.device-summary { display:grid; gap:9px; min-width:0; }
.device-summary > strong { font-size:16px; font-weight:600; }
.device-summary > span { max-width:640px; color:#6c7885; font-size:12px; line-height:1.6; }
.account-devices .device-card { overflow:hidden; border:1px solid var(--account-line); border-radius:7px; background:#fff; }
.device-policy-note { display:flex; align-items:flex-start; gap:8px; margin:17px 0 0; color:#6c7885; font-size:12px; line-height:1.6; }
.device-policy-note svg { flex:none; width:14px; height:14px; margin-top:2px; }
.conversation-heading { display:flex; align-items:center; gap:12px; }
.support-mark { display:grid; place-items:center; width:38px; height:38px; border:1px solid #e2e7ec; border-radius:7px; background:#fff; color:#708194; }
.support-mark svg { width:19px; height:19px; }
.conversation-heading > div { display:grid; gap:5px; }
.conversation-heading strong { font-size:14px; font-weight:600; }
.conversation-heading [data-message-count] { color:#6c7885; font-size:11px; }
.conversation-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.account-messages .message-card { display:flex; flex-direction:column; height:clamp(400px,calc(100dvh - 310px),720px); overflow:hidden; border:1px solid var(--account-line); border-radius:8px; background:#fff; }
.account-messages .message-list { flex:1; align-content:start; min-height:0; max-height:none; gap:16px; padding:24px; background:#fff; }
.account-messages .message-list:has(.message-empty) { align-content:center; justify-items:center; }
.account-messages .message-empty { color:#76818e; font-size:13px; }
.account-messages .message-item { max-width:82%; border:0; border-radius:7px; background:#f4f6f8; font-size:14px; }
.account-messages .message-item.own { background:#edf2f7; }
.account-messages .message-meta { color:#6c7885; font-size:10px; }
.device-status:empty,.message-status:empty { display:none; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
[data-page="account"] a:focus-visible,[data-page="account"] button:focus-visible { outline:2px solid #718ba0; outline-offset:3px; }
[data-page="account"] [data-account-guest] { width:min(440px,calc(100% - 40px)); margin:10vh auto 64px; padding:38px; border:1px solid var(--account-line); border-radius:10px; background:#fff; box-shadow:0 8px 30px rgba(28,39,53,.035); }
.guest-brand-mark { display:grid; place-items:center; width:44px; height:44px; margin-bottom:32px; border-radius:9px; background:#17212d; color:#fff; font-size:29px; font-weight:700; }
[data-account-guest] .eyebrow { margin:0 0 12px; color:#6c7885; font-size:10px; letter-spacing:.13em; }
[data-account-guest] h1 { margin:0; font-size:28px; font-weight:650; letter-spacing:-.025em; }
[data-account-guest] > p:not(.eyebrow) { margin:12px 0 30px; color:#6c7885; font-size:13px; }
[data-account-guest] .account-auth-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0; }
[data-account-guest] .account-auth-actions button { min-width:0; min-height:42px; padding:0 12px; border-radius:5px; font-size:13px; }
[data-account-guest] .account-auth-actions svg { width:14px; height:14px; }
[data-account-guest] > .text-button { margin-top:22px; color:#798b9b; font-size:12px; }
.is-account-session .site-footer { display:none; }
[data-page="account"] .account-feedback:empty { display:none; }
[data-page="account"] .profile-modal .account-avatar { border-radius:50%; }
@media(max-width:1000px) {
  .account-sidebar { width:200px; padding-right:14px; padding-left:14px; }
  .account-workspace { margin-left:200px; padding:36px 30px 48px; }
  .account-topbar .brand { width:136px; }
  .account-summary { padding:23px 21px; }
}
@media(max-width:760px) {
  [data-page="account"] .account-topbar { padding:0 20px; gap:12px; }
  .account-topbar .brand { width:auto; }
  .account-topbar-label { display:none; }
  .account-topbar .header-actions { margin-left:auto; }
  .account-topbar .desktop-nav { display:none; }
  .account-logout { font-size:12px; }
  .is-account-session .menu-toggle { display:none; }
  .account-sidebar { position:sticky; top:64px; bottom:auto; z-index:30; width:100%; padding:0 16px; border-right:0; border-bottom:1px solid var(--account-line); }
  .sidebar-caption,.sidebar-foot { display:none; }
  .account-navigation { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
  .account-navigation a { justify-content:center; gap:5px; min-height:51px; padding:13px 0; border-bottom:2px solid transparent; border-radius:0; font-size:12px; white-space:nowrap; }
  .account-navigation a[aria-current="page"] { border-bottom-color:#263746; background:transparent; }
  .account-navigation svg { display:none; }
  .account-navigation .sidebar-subscription { margin-top:0; }
  .nav-unread { margin-left:0; min-width:15px; padding:1px 3px; font-size:9px; }
  .account-workspace { min-height:calc(100vh - 115px); margin-left:0; padding:28px 20px 40px; }
  .workspace-heading { margin-bottom:22px; }
  .workspace-heading > p { display:none; }
  .workspace-heading h1 { font-size:26px; }
  .profile-surface { padding:22px 24px 28px; }
  .profile-surface-heading h2 { font-size:12px; }
  .profile-edit-button { min-height:32px; padding:0 10px; font-size:11px; }
  .account-profile-identity { gap:15px; margin-top:24px; }
  .account-profile-identity .account-avatar { width:55px; height:55px; font-size:18px; }
  .account-profile-identity h2 { margin-bottom:5px; font-size:21px; }
  .account-profile-identity p { font-size:12px; }
  .account-summary-grid { grid-template-columns:1fr 1fr; }
  .account-summary { min-height:186px; padding:22px 24px; }
  .account-summary-plan { grid-column:1 / -1; display:grid; grid-template-columns:1fr auto; min-height:134px; border-right:0; border-bottom:1px solid var(--account-line); }
  .account-summary-plan .summary-label { grid-column:1 / -1; }
  .account-summary-plan .summary-value { grid-column:1; margin-top:13px; font-size:24px; }
  .account-summary-plan .summary-detail { grid-column:1 / -1; }
  .account-summary-plan > a { grid-column:2; grid-row:2; align-self:center; margin:12px 0 0; padding:0; }
  .summary-number strong { font-size:28px; }
  .account-summary > a { font-size:12px; }
  .summary-detail { font-size:11px; }
  .view-toolbar { gap:14px; align-items:flex-start; margin-bottom:18px; }
  .device-summary > strong { font-size:14px; }
  .device-summary > span { font-size:11px; }
  .device-policy-note { font-size:11px; }
  .conversation-heading { gap:9px; }
  .conversation-heading strong { font-size:13px; }
  .conversation-actions { gap:6px; }
  .conversation-actions .outline-button { padding:0 9px; font-size:11px; }
  .conversation-actions .outline-button svg { display:none; }
  .account-messages .message-card { height:max(400px,calc(100dvh - 315px)); }
  .account-messages .message-list { padding:18px; }
  [data-page="account"] [data-account-guest] { margin-top:7vh; padding:30px; }
}
@media(prefers-reduced-motion:reduce) { .account-navigation a { transition:none; } }

.feedback-entry { flex:none; min-height:34px; padding:0 12px; font-size:12px; }
.feedback-entry svg { width:14px; height:14px; }
.feedback-modal { width:min(540px,calc(100vw - 32px)); }
.feedback-modal[open]::before { display:none; }
.feedback-form { gap:14px; padding:30px; }
.feedback-form h2 { margin:0; font-size:24px; font-weight:650; }
.feedback-intro { margin:0 0 8px; color:#6c7885; font-size:13px; line-height:1.6; }
.feedback-form > label { font-size:13px; font-weight:600; }
.feedback-form textarea { width:100%; min-height:160px; max-height:280px; resize:vertical; padding:12px 14px; border:1px solid #dce1e7; border-radius:5px; background:#fafbfc; color:#17212d; font:inherit; font-size:13px; line-height:1.7; }
.feedback-form textarea:focus { outline:none; border-color:#718ba0; background:#fff; }
.feedback-form .form-status { margin:0; font-size:12px; line-height:1.6; }
.feedback-form .form-status:empty { display:none; }
.feedback-form .form-status.error { color:#b73543; }
.feedback-review { margin:0; color:#9b5328; font-size:12px; line-height:1.6; }
.feedback-actions { display:flex; align-items:center; gap:10px; }
.feedback-actions > span { margin-right:auto; color:#76818e; font-size:11px; }
.feedback-actions button { min-height:36px; padding:0 13px; border-radius:5px; font-size:12px; }
@media(max-width:760px) { .feedback-form { padding:26px 22px; } .feedback-entry { padding:0 10px; font-size:11px; } .feedback-entry svg { display:none; } }

/* Account overview and authentication share a restrained, task-first layout. */
[data-page="account"] { --account-line:#e4e7eb; --account-ink:#20262d; --account-muted:#64707d; background:#f5f6f7; }
[data-page="account"] .account-topbar { border-bottom-color:#e5e8eb; }
.account-sidebar { padding-top:32px; }
.sidebar-caption { font-size:11px; letter-spacing:.08em; }
.sidebar-foot { gap:10px; color:#697684; font-size:12px; }
.sidebar-foot a { color:#263e51; font-weight:600; }
.sidebar-foot a:hover { text-decoration:underline; text-underline-offset:3px; }
.workspace-heading .workspace-kicker { margin:0 0 8px; color:#77838f; font-size:10px; font-weight:700; letter-spacing:.13em; }
.workspace-heading h1 { font-size:28px; }
.account-overview { border-radius:10px; box-shadow:0 8px 28px rgba(28,39,53,.035); }
.profile-surface { padding:24px 30px; }
.account-profile-identity { margin-top:18px; }
.account-profile-identity .account-avatar { width:56px; height:56px; font-size:19px; }
.account-profile-identity h2 { font-size:21px; }
.account-summary { min-height:190px; }
.account-help-links { display:flex; align-items:center; gap:24px; padding:22px 30px; border-top:1px solid var(--account-line); background:#fafbfc; }
.account-help-links > div { display:grid; gap:5px; margin-right:auto; }
.account-help-links strong { font-size:13px; }
.account-help-links div span { color:#687583; font-size:12px; }
.account-help-links a { color:#344e62; font-size:12px; font-weight:600; white-space:nowrap; }
.account-help-links a:hover { text-decoration:underline; text-underline-offset:3px; }
[data-page="account"] .auth-modal .modal-card { gap:15px; padding:32px; border-radius:10px; }
[data-page="account"] .auth-modal h2 { margin:0; font-size:25px; letter-spacing:-.02em; }
[data-page="account"] .auth-modal .eyebrow { margin:0; font-size:11px; letter-spacing:.08em; }
[data-page="account"] .auth-modal .auth-method-tabs { margin-bottom:3px; background:#f4f6f8; }
[data-page="account"] .auth-modal label span { color:#465362; font-weight:600; }
[data-page="account"] .auth-modal input { border-color:#d9e0e6; border-radius:6px; }
[data-page="account"] .auth-modal input:focus-visible { outline:2px solid #718ba0; outline-offset:2px; }
[data-page="account"] .auth-modal .form-note { color:#65727f; }
@media(max-width:760px) {
  .workspace-heading .workspace-kicker { display:none; }
  .account-help-links { flex-wrap:wrap; gap:16px 24px; padding:20px 24px; }
  .account-help-links > div { flex-basis:100%; }
  [data-page="account"] .auth-modal .modal-card { padding:26px 22px; }
}

/* Selected account and sign-in visual direction */
[data-page="account"] { --account-line:#e3e7ed; --account-ink:#0c121b; --account-muted:#667286; background:#f8f9fb; }
[data-page="account"] .account-topbar { position:absolute; top:0; right:0; left:280px; z-index:25; height:82px; padding:0 5%; border:0; background:transparent; color:#fff; }
.account-topbar .brand,.account-topbar-label,.account-topbar .desktop-nav { display:none; }
[data-page="account"] .header-actions { margin-left:auto; }
[data-page="account"] .header-account { display:block; color:#fff; font-size:14px; font-weight:600; }
[data-page="account"] .header-account[hidden] { display:none; }
.account-logout { color:#fff; }
[data-page="account"] .account-main { padding:0; }
.account-sidebar { top:0; width:280px; padding:120px 21px 28px; border:0; background:#0b1218; color:#dce5ef; }
.account-sidebar::before { content:"VISO"; position:absolute; top:27px; left:48px; color:white; font-size:36px; font-weight:800; letter-spacing:-.06em; }
.sidebar-caption { display:none; }
.account-navigation { gap:8px; }
.account-navigation a { min-height:58px; padding:0 27px; gap:22px; border-radius:8px; color:#d6dfe9; font-size:17px; }
.account-navigation a:hover { background:#172432; color:white; }
.account-navigation a[aria-current="page"] { background:#075ff5; color:white; }
.account-navigation svg { width:24px; height:24px; }
.account-navigation .sidebar-subscription { margin-top:0; }
.sidebar-foot { border-color:#283641; color:#aab9c8; }
.sidebar-foot a { color:#e3eaf1; }
.account-workspace { margin-left:280px; padding:0 0 44px; }
.workspace-heading { position:relative; max-width:none; min-height:244px; margin:0; padding:105px 4% 30px; color:white; background:linear-gradient(90deg,rgba(7,15,23,.91),rgba(7,15,23,.5)),url('./account-scene.jpg') center 27% / cover; }
.workspace-heading .workspace-kicker { margin:0 0 4px; color:#fff; font-size:38px; font-weight:750; letter-spacing:0; }
.workspace-heading h1 { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.workspace-description { margin:8px 0 0; color:#eef2f7; font-size:17px; }
.workspace-heading .feedback-entry { align-self:flex-end; border-color:#b7c4d1; background:rgba(8,17,27,.6); color:#fff; }
.account-view { max-width:none; margin:24px 4% 0; }
.account-overview { display:grid; grid-template-columns:1fr 1fr; gap:20px; overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; }
.account-summary-grid { display:contents; }
.account-summary,.profile-surface,.account-help-links { border:1px solid var(--account-line); border-radius:8px; background:white; }
.account-summary { min-height:260px; padding:24px; }
.account-summary-plan { grid-column:1 / -1; display:grid; grid-template-columns:1fr auto; min-height:190px; gap:12px 25px; padding:26px 28px; }
.plan-intro { grid-column:1; display:flex; align-items:center; gap:26px; }
.plan-icon { display:grid; place-items:center; width:88px; height:88px; flex:none; border-radius:12px; background:#070d3e; color:#4c94ff; font-size:49px; font-weight:700; }
.plan-intro h2 { margin:0 0 8px; font-size:19px; }
.plan-intro p { margin:0; color:#667286; font-size:14px; }
.account-summary-plan .summary-label,.account-summary-plan .summary-value,.account-summary-plan .summary-detail { grid-column:1; margin:0 0 0 114px; }
.account-summary-plan .summary-value { font-size:18px; }
.account-summary-plan > a { grid-column:2; grid-row:1 / span 4; align-self:center; margin:0; padding:16px 50px; border-radius:7px; background:#075ff5; color:#fff; font-size:15px; }
.account-summary-plan > a:hover { color:white; background:#004dcc; }
.summary-card-heading { padding-bottom:18px; border-bottom:1px solid #e8ebef; color:#0c121b; font-size:19px; font-weight:700; }
.summary-card-heading span { display:flex; align-items:center; gap:15px; }
.summary-card-heading svg,.profile-surface-heading h2 svg { width:24px; height:24px; }
.summary-number { justify-content:center; margin-top:35px; }
.summary-number strong { font-size:34px; }
.account-summary:not(.account-summary-plan) .summary-detail { text-align:center; }
.account-summary:not(.account-summary-plan) > a { align-self:flex-end; margin-top:auto; color:#0065ff; font-size:14px; }
.profile-surface { grid-column:1 / -1; grid-row:3; padding:20px 24px 26px; }
.profile-surface-heading { padding-bottom:14px; border-bottom:1px solid #e8ebef; }
.profile-surface-heading h2 { display:flex; align-items:center; gap:15px; color:#0c121b; font-size:19px; }
[data-page="account"] .profile-edit-button { border:0; color:#0065ff; }
.account-profile-identity .account-avatar { width:82px; height:82px; }
.account-help-links { grid-column:1 / -1; }
.account-help-links a { color:#0065ff; }
[data-page="account"] .solid-button { background:#075ff5; border-color:#075ff5; }
[data-page="account"] .auth-modal[open] { position:fixed; inset:0; width:100vw; max-width:none; height:100dvh; max-height:none; margin:0; padding:0; overflow:auto; border:0; border-radius:0; background:#fff; }
[data-page="account"] .auth-modal[open]::before { content:"VISO"; position:fixed; inset:0 42% 0 0; display:block; padding:28px 5%; background:url('./account-scene.jpg') center / cover; color:white; font-size:34px; font-weight:800; letter-spacing:-.06em; }
[data-page="account"] .auth-modal .modal-card { position:relative; display:grid; gap:16px; width:min(470px,calc(42vw - 60px)); min-height:100dvh; margin:0 5% 0 auto; padding:25vh 0 10vh; border:0; border-radius:0; box-shadow:none; align-content:start; }
[data-page="account"] .auth-modal .close-button { position:fixed; top:32px; right:5%; }
[data-page="account"] .auth-modal .eyebrow { display:none; }
[data-page="account"] .auth-modal h2 { font-size:42px; font-weight:750; }
.auth-subtitle { margin:-9px 0 22px; color:#455166; font-size:17px; }
[data-page="account"] .auth-modal .auth-method-tabs { margin-bottom:0; }
[data-page="account"] .auth-modal label { gap:9px; margin-top:4px; }
[data-page="account"] .auth-modal label span { color:#151b25; font-size:15px; }
[data-page="account"] .auth-modal input { height:54px; background:#fff; font-size:15px; }
[data-page="account"] .auth-modal .wide { min-height:55px; margin-top:15px; font-size:17px; }
[data-page="account"] .auth-modal .form-note { line-height:1.5; }
@media(max-width:760px) {
 [data-page="account"] .account-topbar { position:absolute; left:0; height:64px; padding:0 18px; }
 .account-sidebar { position:relative; top:auto; width:100%; padding:68px 12px 0; background:#0b1218; }
 .account-sidebar::before { top:17px; left:20px; font-size:26px; }
 .account-navigation { grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; }
 .account-navigation a { min-height:48px; padding:6px; border-radius:6px; font-size:12px; }
 .account-navigation a[aria-current="page"] { background:#075ff5; color:#fff; }
 .account-navigation .sidebar-subscription { margin:0; }
 .account-workspace { margin:0; padding:0 0 30px; }
 .workspace-heading { min-height:185px; padding:50px 20px 22px; }
 .workspace-heading .workspace-kicker { display:block; font-size:26px; }
 .workspace-description { font-size:13px; }
 .account-view { margin:16px; }
 .account-overview { grid-template-columns:1fr; gap:14px; }
 .account-summary-plan,.profile-surface,.account-help-links { grid-column:1; }
 .profile-surface { grid-row:auto; }
 .account-summary-plan { grid-template-columns:1fr; }
 .plan-icon { width:64px; height:64px; font-size:36px; }
 .plan-intro { gap:15px; }
 .plan-intro h2 { font-size:16px; }
 .account-summary-plan .summary-label,.account-summary-plan .summary-value,.account-summary-plan .summary-detail { margin-left:0; }
 .account-summary-plan > a { grid-column:1; grid-row:auto; justify-content:center; }
 [data-page="account"] .auth-modal[open]::before { inset:0 0 auto; height:140px; padding:20px; background-position:center 25%; font-size:26px; }
 [data-page="account"] .auth-modal .modal-card { width:auto; min-height:0; margin:140px 24px 0; padding:38px 0; }
 [data-page="account"] .auth-modal .close-button { z-index:2; top:20px; right:20px; color:white; }
 [data-page="account"] .auth-modal h2 { font-size:32px; }
}
[data-page="account"]:not(.is-account-session) .account-topbar { left:0; color:#17212d; }
[data-page="account"]:not(.is-account-session) .account-topbar .text-button { color:#17212d; }
[data-page="account"]:not(.is-account-session) .account-main { padding-top:80px; }
[data-page="account"] .auth-modal .modal-card { min-height:100dvh; }
.account-messages .message-announcement-title { display:block; margin-top:8px; font-size:14px; overflow-wrap:anywhere; }
.account-messages .message-image { display:block; width:auto; max-width:min(100%,480px); max-height:420px; height:auto; margin-top:9px; border-radius:5px; object-fit:contain; }
.account-messages .message-content-error { color:#8b3c36; font-size:12px; }

/* Keep authentication centered and contained while retaining the scene image. */
[data-page="account"] .auth-modal[open] {
  inset:0; width:min(860px,calc(100vw - 40px)); max-width:860px;
  height:min(540px,calc(100dvh - 40px)); max-height:calc(100dvh - 40px); margin:auto; overflow:hidden;
  border:0; border-radius:12px; box-shadow:0 24px 70px rgba(7,15,23,.28);
}
[data-page="account"] .auth-modal[open]::before {
  position:absolute; inset:0 auto 0 0; width:46%; height:auto;
  padding:28px 32px; background-position:center; font-size:30px;
}
[data-page="account"] .auth-modal .modal-card {
  width:54%; height:100%; max-height:100%; min-height:0; margin:0 0 0 auto;
  padding:38px 42px; overflow-y:auto; border-radius:0; align-content:start;
}
[data-page="account"] .auth-modal .close-button { position:absolute; z-index:2; top:14px; right:14px; color:#17212d; }
[data-page="account"] .auth-modal h2 { font-size:30px; }
[data-page="account"] .auth-modal .auth-subtitle { margin:-8px 0 8px; font-size:14px; }
[data-page="account"] .auth-modal input { height:48px; }
[data-page="account"] .auth-modal .wide { min-height:48px; margin-top:6px; font-size:15px; }
@media(max-width:760px) {
  [data-page="account"] .auth-modal[open] { width:min(480px,calc(100vw - 32px)); height:min(600px,calc(100dvh - 32px)); max-height:calc(100dvh - 32px); }
  [data-page="account"] .auth-modal[open]::before { inset:0 0 auto; width:100%; height:96px; padding:18px 22px; background-position:center 25%; font-size:25px; }
  [data-page="account"] .auth-modal .modal-card { width:100%; height:100%; max-height:100%; margin:0; padding:120px 24px 28px; }
  [data-page="account"] .auth-modal .close-button { position:absolute; top:14px; right:14px; color:#fff; }
  [data-page="account"] .auth-modal h2 { font-size:26px; }
}

/* Single-page account management. */
[data-page="account"] { background:#f5f7f9; color:#17212d; }
[data-page="account"] .account-topbar { position:absolute; inset:0 0 auto; height:68px; padding:0 max(24px,calc((100vw - 1040px)/2)); border-bottom:1px solid #e4e8ed; background:#fff; color:#17212d; }
.account-topbar .brand { display:flex; width:auto; color:#17212d; }
[data-page="account"] .header-account,.account-logout { color:#435260; }
[data-page="account"] .account-main { padding:0; }
.account-page { width:min(1040px,calc(100% - 48px)); margin:0 auto; padding:104px 0 70px; }
.account-page-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:28px; }
.account-page-heading h1 { margin:4px 0 8px; font-size:28px; letter-spacing:-.03em; }
.account-page-heading p { margin:0; color:#617080; font-size:14px; }
.account-page-heading .account-page-kicker { font-size:10px; font-weight:700; letter-spacing:.13em; }
.account-page-heading > a { color:#365a77; font-size:13px; }
.account-dashboard { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.account-box,.account-dashboard .account-help-links { min-width:0; padding:24px; border:1px solid #e1e7ed; border-radius:9px; background:#fff; }
.account-identity,.account-devices,.account-invite,.account-security,.account-messages,.account-dashboard .account-help-links { grid-column:1 / -1; }
.account-box-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.account-box-heading h2 { margin:0; font-size:17px; }
.account-box-heading button { min-height:36px; padding:0 13px; }
.account-identity { display:grid; grid-template-columns:1fr auto; gap:0 20px; }
.account-identity .account-box-heading { grid-column:1 / -1; }
.account-facts { display:grid; grid-template-columns:1fr 1fr; gap:16px; min-width:0; }
.account-facts > div { display:grid; gap:7px; min-width:0; }
.account-facts > div > span,.account-facts small { color:#617080; font-size:13px; }
.account-facts strong { font-size:16px; overflow-wrap:anywhere; }
.account-facts small { display:block; }
.account-plan-link { align-self:center; min-height:42px; padding:0 20px; }
.account-devices .device-summary { margin-bottom:12px; }
.account-security details > summary,.account-messages > summary { cursor:pointer; color:#263f52; font-weight:600; }
.security-form { display:grid; grid-template-columns:1fr 1fr; gap:14px; max-width:650px; margin-top:18px; }
.security-form label { display:grid; gap:7px; font-size:13px; font-weight:600; }
.security-form input { width:100%; min-height:44px; padding:0 12px; border:1px solid #d5dde4; border-radius:6px; font:inherit; }
.security-form input:focus-visible { outline:2px solid #718ba0; outline-offset:2px; }
.security-form > p { grid-column:1 / -1; margin:0; color:#617080; font-size:12px; line-height:1.5; }
.security-form button { justify-self:start; min-height:42px; padding:0 20px; }
.security-form button:disabled { opacity:.55; cursor:not-allowed; }
.account-messages > summary { display:flex; justify-content:space-between; gap:14px; }
.account-messages > summary > span:last-child { color:#617080; font-size:13px; font-weight:400; }
.account-messages [data-nav-unread] { display:none !important; }
.account-messages .view-toolbar { margin:20px 0 14px; }
.account-messages .message-card { height:420px; }
.account-dashboard .account-help-links { display:flex; margin:0; }
[data-page="account"] :focus-visible { outline:2px solid #376b94; outline-offset:3px; }
@media(max-width:760px) {
  [data-page="account"] .account-topbar { position:absolute; inset:0 0 auto; padding:0 18px; }
  .account-page { width:calc(100% - 32px); padding-top:94px; }
  .account-page-heading h1 { font-size:24px; }
  .account-box,.account-dashboard .account-help-links { padding:20px; }
  .account-identity { grid-template-columns:1fr; gap:16px; }
  .account-identity .account-box-heading { margin-bottom:0; }
  .account-facts { grid-template-columns:1fr; }
  .account-plan-link { justify-self:start; }
  .security-form { grid-template-columns:1fr; }
  .security-form > p { grid-column:1; }
  .account-messages .view-toolbar { flex-wrap:wrap; }
  .account-messages .message-card { height:380px; }
}

/* Recovery is routed to the configured administrator until verification is available. */
.auth-recovery { display:flex; align-items:center; justify-content:space-between; gap:8px 16px; flex-wrap:wrap; margin-top:-5px; }
.auth-recovery .text-button { padding:2px 0; color:#075ff5; font-size:13px; font-weight:600; }
.auth-recovery span { color:#667286; font-size:12px; line-height:1.5; }
.auth-modal:has([data-auth-mode="register"].is-active) .auth-recovery { display:none; }
[data-page="account"] .buy-modal[open] { z-index:510; }

.account-device-table{min-width:420px;--vt-cell-padding:14px 12px}.account-device-table td:first-child{font-weight:600}.account-device-table .outline-button{min-height:33px;padding:0 14px}.account-device-table caption{padding:0;text-align:left}

.account-invite .invite-intro { margin:0 0 14px; color:#4a5866; font-size:14px; }
.account-invite .invite-link-row { display:flex; gap:10px; min-width:0; }
.account-invite .invite-link-row input { flex:1; min-width:0; min-height:40px; padding:0 12px; border:1px solid #d5dde5; border-radius:7px; background:#f6f8fa; color:#1f2d3a; font:inherit; font-size:14px; }
.account-invite .invite-link-row button { flex:none; min-height:40px; padding:0 16px; }
.account-invite .invite-status { min-height:1.4em; margin:10px 0 0; color:#6c7885; font-size:13px; }
@media (max-width:560px) { .account-invite .invite-link-row { flex-direction:column; } }
