/* Login and workspace surfaces inherit the official website token system. */
html, body { margin: 0; padding: 0; }

/* Auth */
.xh-login-page { min-height: 100vh; position: relative; overflow: hidden; background: linear-gradient(145deg, #fff 0%, var(--xh-bg-warm) 58%, #f1efff 100%); }
.xh-login-orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.xh-login-orb.is-one { width: 520px; height: 520px; top: -260px; right: -120px; background: radial-gradient(circle, rgba(131,119,255,.24), rgba(131,119,255,0) 68%); }
.xh-login-orb.is-two { width: 420px; height: 420px; bottom: -260px; left: 18%; background: radial-gradient(circle, rgba(74,61,219,.12), rgba(74,61,219,0) 70%); }
.xh-login-topbar { width: 100%; max-width: 1340px; min-height: 86px; margin: 0 auto; padding: 20px 48px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.xh-login-layout { width: min(1180px, calc(100% - 96px)); min-height: calc(100vh - 112px); margin: 0 auto; padding: 62px 0 96px; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .75fr); gap: 96px; align-items: center; }
.xh-login-story { max-width: 650px; }
.xh-login-story h1 { margin: 22px 0 24px; font-size: clamp(44px, 5vw, 68px); line-height: 1.04; letter-spacing: -.045em; font-weight: 610; }
.xh-login-story > p { max-width: 580px; color: var(--xh-fg-2); font-size: 17px; line-height: 1.75; }
.xh-login-points { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 18px; }
.xh-login-points li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.xh-login-points li > span { color: var(--xh-brand-solid); font: 600 11px/1.5 var(--xh-mono); padding-top: 3px; }
.xh-login-points div { display: grid; gap: 4px; }
.xh-login-points strong { font-size: 14px; font-weight: 650; }
.xh-login-points small { color: var(--xh-fg-3); font-size: 12px; line-height: 1.55; }
.xh-login-card { padding: 34px; border: 1px solid rgba(10,10,10,.09); border-radius: 24px; background: rgba(255,255,255,.90); box-shadow: 0 36px 90px -52px rgba(40,32,100,.38), 0 1px 0 rgba(255,255,255,.9) inset; backdrop-filter: blur(18px); }
.xh-login-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.xh-login-avatar { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--xh-grad); color: #fff; font-weight: 700; }
.xh-login-card-head p { color: var(--xh-fg-3); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.xh-login-card-head h2 { margin-top: 3px; font-size: 22px; letter-spacing: -.025em; }
.xh-login-notice { margin-bottom: 20px; padding: 14px 15px; display: grid; gap: 4px; border: 1px solid var(--xh-border); border-radius: 12px; background: var(--xh-bg-panel); }
.xh-login-notice.is-warning { border-color: rgba(192,113,20,.20); background: #fff9ef; }
.xh-login-notice strong { font-size: 13px; }.xh-login-notice span { color: var(--xh-fg-2); font-size: 12px; line-height: 1.55; }
.xh-login-intent { margin-bottom: 20px; padding: 13px 15px; display: flex; justify-content: space-between; gap: 16px; border-radius: 12px; background: var(--xh-grad-soft); }
.xh-login-intent span { color: var(--xh-fg-2); font-size: 12px; }.xh-login-intent strong { font-size: 13px; }
.xh-login-field { display: grid; gap: 8px; }.xh-login-field > span { font-size: 13px; font-weight: 650; }
.xh-login-field input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--xh-border-strong); border-radius: 11px; background: #fff; color: var(--xh-fg); font: 15px/1 var(--xh-sans); }
.xh-login-field input:focus { border-color: var(--xh-brand-solid); box-shadow: 0 0 0 3px rgba(101,89,244,.13); outline: 0; }
.xh-login-field small { color: var(--xh-fg-3); font-size: 11px; }.xh-login-error { margin-top: 8px; color: #b42318; font-size: 12px; }
.xh-login-code-row { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 10px; align-items: end; }
.xh-login-send { min-height: 50px; justify-content: center; padding-inline: 12px; white-space: nowrap; }
.xh-login-submit { width: 100%; min-height: 50px; justify-content: center; margin-top: 22px; }
.xh-login-authenticated { display: grid; gap: 18px; }.xh-login-authenticated p { color: var(--xh-fg-2); font-size: 14px; line-height: 1.7; }.xh-login-authenticated .xh-btn { justify-content: center; }
.xh-login-card-foot { margin-top: 24px; display: flex; justify-content: center; gap: 8px; color: var(--xh-fg-3); font-size: 11px; }
.xh-login-card-foot a:hover { color: var(--xh-brand-solid) !important; }

/* Workspace shell */
.xh-workspace {
  --os-canvas: #fafaf9; --os-surface: #ffffff; --os-subtle: #f5f5f2; --os-muted: #ebebe8;
  --os-border: rgba(15,23,42,.08); --os-border-strong: rgba(15,23,42,.14);
  --os-text: #0a0a0a; --os-text-muted: #525252; --os-text-faint: #8a8a8a;
  --os-accent: #6559F4; --os-accent-tint: #EDEAFF; --os-success: #16a34a; --os-success-tint: #ecfdf5;
  --os-radius-sm: 6px; --os-radius-md: 8px; --os-radius-lg: 12px; --os-shadow-xs: 0 1px 1px rgba(15,23,42,.04);
  min-height: 100vh; background: var(--os-canvas); color: var(--os-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
.xh-workspace-sidebar { width: 224px; position: fixed; inset: 0 auto 0 0; z-index: 80; display: flex; flex-direction: column; border-right: 1px solid var(--os-border); background: var(--os-surface); }
.xh-workspace-brand { min-height: 89px; padding: 18px 16px 16px; position: relative; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--os-border); }
.xh-workspace-brand > a { min-width: 0; display: flex; align-items: center; gap: 12px; }.xh-workspace-brand .xh-logo-mark { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 8px 22px -8px rgba(74,61,219,.45); }
.xh-workspace-brand .xh-logo-mark::after { inset: 7px; }.xh-workspace-brand a > span:last-child { min-width: 0; display: grid; line-height: 1.15; }.xh-workspace-brand strong { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }.xh-workspace-brand small { margin-top: 3px; color: var(--os-text-muted); font-size: 12px; font-weight: 500; }.xh-workspace-menu-close { display: none; }
.xh-workspace-nav-wrap { flex: 1; padding: 16px 12px; }.xh-workspace-nav-label { padding: 0 12px 6px; display: block; color: var(--os-text-faint); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.xh-workspace-nav { display: grid; gap: 2px; }.xh-workspace-nav a { min-height: 44px; padding: 10px 14px; position: relative; display: flex; align-items: center; gap: 12px; border-radius: var(--os-radius-md); color: var(--os-text-muted) !important; font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }.xh-workspace-nav a:hover { background: var(--os-subtle); color: var(--os-text) !important; }.xh-workspace-nav a.is-active { background: var(--os-accent-tint); color: var(--os-text) !important; font-weight: 600; }.xh-workspace-nav a.is-active > i { width: 3px; height: 20px; position: absolute; left: -3px; top: 50%; transform: translateY(-50%); border-radius: 999px; background: var(--xh-grad); }
.xh-workspace-nav-icon { width: 18px; height: 18px; display: grid; place-items: center; color: var(--os-text-faint); }.xh-workspace-nav-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.xh-workspace-nav a.is-active .xh-workspace-nav-icon { color: var(--os-accent); }.xh-workspace-nav strong { font-size: inherit; font-weight: inherit; }
.xh-workspace-sidebar-foot { padding: 14px 16px; border-top: 1px solid var(--os-border); }.xh-workspace-person { display: flex; align-items: center; gap: 12px; }.xh-workspace-person > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--os-border); border-radius: 50%; background: var(--os-subtle); color: var(--os-text-muted); }.xh-workspace-person > span svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }.xh-workspace-person div { min-width: 0; display: grid; line-height: 1.2; }.xh-workspace-person strong { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.xh-workspace-person small { margin-top: 3px; overflow: hidden; color: var(--os-text-faint); font: 11px/1.2 var(--xh-mono); text-overflow: ellipsis; white-space: nowrap; }
.xh-workspace-main { min-height: 100vh; margin-left: 224px; }.xh-workspace-topbar { height: 52px; padding: 0 24px; position: sticky; top: 0; z-index: 60; display: flex; align-items: center; border-bottom: 1px solid var(--os-border); background: rgba(250,250,249,.94); backdrop-filter: blur(14px); }.xh-workspace-menu { display: none; }.xh-workspace-breadcrumb { color: var(--os-text-faint); font-size: 13px; }.xh-workspace-breadcrumb i { padding: 0 5px; font-style: normal; }.xh-workspace-top-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 12px; }.xh-workspace-top-actions a { color: var(--os-text-muted) !important; }.xh-workspace-top-actions a:hover { color: var(--os-text) !important; }.xh-workspace-top-actions a:last-child { color: var(--os-text-faint) !important; }
.xh-workspace-content { width: 100%; max-width: 1320px; margin: 0 auto; padding: 32px; }.xh-workspace-page-head { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }.xh-workspace-page-head > div > span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }.xh-workspace-page-head h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: 0; line-height: 1.25; }.xh-workspace-page-head > div > span > small { padding: 4px 10px; border: 1px solid var(--os-border); border-radius: 999px; background: var(--os-surface); color: var(--os-text-muted); font-size: 12px; }.xh-workspace-page-head p { margin-top: 7px; max-width: 720px; color: var(--os-text-muted); font-size: 13px; line-height: 1.7; }.xh-workspace-page-actions { flex: none; }
.xh-workspace-primary-actions { display: flex; gap: 8px; }.xh-workspace .xh-btn { min-height: 40px; padding: 8px 13px; border-radius: var(--os-radius-sm); font-size: 13px; font-weight: 500; }.xh-workspace .xh-btn-primary:not(.xh-btn-grad) { background: var(--os-text); border-color: var(--os-text); }.xh-btn-danger { border: 1px solid #dc2626; background: #dc2626; color: #fff !important; }
.xh-workspace-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }.xh-workspace-metric { min-height: 124px; padding: 16px; display: flex; flex-direction: column; border: 1px solid var(--os-border); border-radius: var(--os-radius-md); background: var(--os-surface); box-shadow: var(--os-shadow-xs); }.xh-workspace-metric > div { display: flex; align-items: center; gap: 8px; color: var(--os-text-muted); font-size: 12px; }.xh-workspace-metric > div > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--os-radius-md); background: var(--os-subtle); color: var(--os-text-muted); font: 600 13px/1 var(--xh-mono); }.xh-workspace-metric.is-accent > div > span { background: var(--os-accent-tint); color: var(--os-accent); }.xh-workspace-metric.is-success > div > span { background: var(--os-success-tint); color: var(--os-success); }.xh-workspace-metric > div > b { font-weight: 500; }.xh-workspace-metric > strong { margin-top: 13px; font: 600 28px/1 var(--xh-mono); }.xh-workspace-metric > strong small { color: var(--os-text-faint); font-size: 12px; font-weight: 400; }.xh-workspace-metric > p { margin-top: 9px; color: var(--os-text-faint); font-size: 11px; }
.xh-workspace-panel { padding: 20px; border: 1px solid var(--os-border); border-radius: var(--os-radius-md); background: var(--os-surface); box-shadow: var(--os-shadow-xs); }.xh-panel-heading { margin-bottom: 12px; padding-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--os-border); }.xh-panel-heading h2 { font-size: 16px; font-weight: 600; }.xh-panel-heading p { margin-top: 4px; color: var(--os-text-faint); font-size: 12px; }.xh-panel-heading small { color: var(--os-text-faint); font-size: 11px; }
.xh-os-tabs { width: 100%; margin: 16px 0 0; padding: 4px; display: flex; gap: 4px; overflow-x: auto; border: 1px solid var(--os-border); border-radius: var(--os-radius-md); background: var(--os-surface); }.xh-os-tabs button { min-height: 36px; padding: 7px 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: var(--os-radius-sm); background: transparent; color: var(--os-text-muted); font-size: 13px; font-weight: 500; }.xh-os-tabs button.is-active { background: var(--os-surface); color: var(--os-text); box-shadow: var(--os-shadow-xs); }.xh-os-tabs button > span { color: var(--os-text-faint); }.xh-os-tabs button.is-active > span { color: var(--os-accent); }.xh-os-tab-content { margin-top: 16px; }
.xh-os-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }.xh-os-summary-card { min-height: 205px; padding: 20px; }.xh-os-card-heading { display: flex; justify-content: space-between; gap: 16px; }.xh-os-card-heading h2 { font-size: 15px; font-weight: 600; }.xh-os-card-heading p { margin-top: 5px; color: var(--os-text-faint); font-size: 12px; line-height: 1.6; }.xh-os-card-heading > span { height: fit-content; padding: 4px 9px; border: 1px solid rgba(101,89,244,.3); border-radius: 999px; background: var(--os-accent-tint); color: var(--os-accent); font-size: 11px; font-weight: 500; }.xh-os-value-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }.xh-os-value-grid > div { padding: 11px 12px; border-radius: var(--os-radius-md); background: var(--os-subtle); }.xh-os-value-grid span { color: var(--os-text-muted); font-size: 11px; }.xh-os-value-grid strong { margin-top: 5px; display: block; font: 600 14px/1.4 var(--xh-mono); }.xh-os-value-grid small { color: var(--os-text-faint); font-size: 10px; font-weight: 400; }.xh-os-cycle-note { margin-top: 14px; color: var(--os-text-faint); font-size: 11px; }
.xh-os-packs-heading h2 { font-size: 16px; font-weight: 600; }.xh-os-packs-heading p { margin-top: 5px; color: var(--os-text-faint); font-size: 12px; line-height: 1.6; }.xh-os-pack-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }.xh-os-pack-card { min-width: 0; min-height: 220px; padding: 16px; position: relative; display: flex; flex-direction: column; border: 1px solid var(--os-border); border-radius: var(--os-radius-md); background: var(--os-subtle); }.xh-os-pack-card.is-recommended { border-color: var(--os-accent); background: rgba(237,234,255,.4); }.xh-os-pack-badge { position: absolute; right: 12px; top: 12px; padding: 3px 9px; border-radius: 999px; background: var(--os-accent); color: #fff; font-size: 10px; font-weight: 500; }.xh-os-pack-label { display: flex; align-items: center; gap: 8px; color: var(--os-text-muted); font-size: 12px; }.xh-os-pack-label > span { color: var(--os-accent); font: 600 17px/1 var(--xh-mono); }.xh-os-pack-amount { margin-top: 18px; display: block; font: 600 24px/1 var(--xh-mono); }.xh-os-pack-card small { color: var(--os-text-faint); font-size: 12px; font-weight: 400; }.xh-os-pack-card > p { margin-top: 8px; color: var(--os-text-muted); font-size: 12px; }.xh-os-pack-footer { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--os-border); }.xh-os-pack-footer > strong { font-size: 18px; font-weight: 600; }.xh-os-pack-footer .xh-btn { min-width: 94px; justify-content: center; }

/* Billing records */
.xh-billing-panel { margin-top: 16px; }.xh-records-empty { min-height: 120px; display: grid; place-items: center; color: var(--os-text-muted); font-size: 13px; }
.xh-workspace-records { list-style: none; margin: 0; padding: 0; }.xh-workspace-records li { min-height: 58px; display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--os-border); }.xh-workspace-records li:last-child { border-bottom: 0; }.xh-record-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--os-text-faint); }.xh-record-dot.is-credit { background: var(--os-success); }.xh-record-dot.is-consumption { background: #d97706; }.xh-record-dot.is-receipt { background: var(--os-accent); }.xh-workspace-records li > div { min-width: 0; display: grid; gap: 3px; }.xh-workspace-records strong { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.xh-workspace-records small { color: var(--os-text-faint); font: 11px/1.4 var(--xh-mono); }.xh-workspace-records li > b { font: 600 12px/1 var(--xh-mono); }.xh-workspace-records li > b.is-positive { color: var(--os-success); }.xh-workspace-records li > b.is-negative { color: #dc2626; }.xh-load-more { margin-top: 14px; }
.xh-billing-help { margin-top: 16px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--os-border); border-radius: var(--os-radius-md); background: var(--os-subtle); }.xh-billing-help > div { display: grid; gap: 3px; }.xh-billing-help strong { font-size: 12px; font-weight: 600; }.xh-billing-help span { color: var(--os-text-faint); font-size: 11px; }

/* Interactive controls keep a 44px minimum target on desktop and touch layouts. */
.xh-login-page .xh-btn,
.xh-workspace .xh-btn,
.xh-mini-cycle button { min-height: 44px; }

/* Personal center */
.xh-account-sections { display: grid; gap: 16px; }.xh-profile-saved { padding: 10px 12px; border: 1px solid #bbf7d0; border-radius: var(--os-radius-md); background: var(--os-success-tint); color: var(--os-success); font-size: 12px; }.xh-profile-hero { padding: 28px 24px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 24px; align-items: center; border: 1px solid var(--os-border); border-radius: var(--os-radius-lg); background: var(--os-surface); box-shadow: var(--os-shadow-xs); }.xh-profile-avatar { display: grid; place-items: center; border-radius: 50%; background: var(--xh-grad); color: #fff; font-weight: 700; box-shadow: 0 1px 2px rgba(15,23,42,.06); }.xh-profile-avatar.is-large { width: 80px; height: 80px; font-size: 24px; }.xh-profile-primary { min-width: 0; }.xh-profile-primary > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }.xh-profile-primary h2 { overflow: hidden; font-size: 24px; font-weight: 700; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }.xh-profile-primary > div > span { padding: 3px 8px; border: 1px solid rgba(101,89,244,.3); border-radius: 999px; background: var(--os-accent-tint); color: var(--os-accent); font-size: 11px; font-weight: 500; }.xh-profile-primary > div > span.is-success { border-color: #bbf7d0; background: var(--os-success-tint); color: var(--os-success); }.xh-profile-primary > p { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--os-text-muted); font-size: 13px; }.xh-profile-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }.xh-profile-detail-card { min-height: 225px; }.xh-profile-detail-card dl { margin: 18px 0 0; display: grid; gap: 12px; }.xh-profile-detail-card dl div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 11px; border-bottom: 1px solid var(--os-border); }.xh-profile-detail-card dl div:last-child { padding-bottom: 0; border-bottom: 0; }.xh-profile-detail-card dt { color: var(--os-text-muted); font-size: 12px; }.xh-profile-detail-card dd { margin: 0; font: 600 12px/1.4 var(--xh-mono); text-align: right; }
.xh-security-status { margin-top: 18px; display: flex; align-items: center; gap: 12px; }.xh-security-status > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--os-success-tint); color: var(--os-success); font-weight: 700; }.xh-security-status > div { display: grid; gap: 3px; }.xh-security-status strong { font-size: 13px; font-weight: 600; }.xh-security-status small { color: var(--os-text-faint); font-size: 11px; }.xh-settings-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.xh-profile-dialog { width: min(560px, 100%); max-height: calc(100vh - 56px); overflow: auto; padding: 24px; border: 1px solid rgba(15,23,42,.08); border-radius: 12px; background: #fff; box-shadow: 0 16px 48px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.06); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "PingFang SC", sans-serif; }.xh-profile-dialog .xh-dialog-header { margin-bottom: 20px; }.xh-profile-dialog .xh-dialog-header h2 { margin-top: 0; font-size: 18px; letter-spacing: 0; }.xh-profile-dialog .xh-dialog-header p { margin-top: 5px; color: #8a8a8a; font-size: 12px; }.xh-profile-dialog-preview { margin-bottom: 18px; padding: 14px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(15,23,42,.08); border-radius: 8px; background: #f5f5f2; }.xh-profile-dialog-preview > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--xh-grad); color: #fff; font-weight: 700; }.xh-profile-dialog-preview > div { display: grid; }.xh-profile-dialog-preview strong { font-size: 14px; }.xh-profile-dialog-preview small { margin-top: 3px; color: #8a8a8a; font: 11px/1.3 var(--xh-mono); }.xh-profile-form { display: grid; gap: 15px; }.xh-profile-form label { display: grid; gap: 7px; }.xh-profile-form label > span { color: #525252; font-size: 12px; font-weight: 500; }.xh-profile-form label > small { color: #8a8a8a; font-size: 11px; }.xh-profile-form input { min-height: 44px; padding: 0 12px; border: 1px solid rgba(15,23,42,.14); border-radius: 6px; background: #fff; color: #0a0a0a; font: 13px/1 inherit; }.xh-profile-form input:focus { border-color: #6559f4; box-shadow: 0 0 0 3px rgba(101,89,244,.13); outline: 0; }.xh-profile-form input:disabled { background: #f5f5f2; color: #8a8a8a; }

/* Access guard */
.xh-workspace-guard { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(145deg, var(--xh-bg-warm), #f1efff); }.xh-workspace-guard-card { width: min(520px, 100%); padding: 38px; display: grid; justify-items: start; border: 1px solid var(--xh-border); border-radius: 24px; background: #fff; box-shadow: 0 30px 80px -52px rgba(45,37,110,.5); }.xh-guard-icon { width: 54px; height: 54px; margin: 42px 0 18px; display: grid; place-items: center; border-radius: 16px; background: var(--xh-grad-soft); color: var(--xh-brand-solid); font-size: 25px; }.xh-workspace-guard-card h1 { margin: 18px 0 10px; font-size: 32px; letter-spacing: -.04em; }.xh-workspace-guard-card p { color: var(--xh-fg-2); font-size: 13px; line-height: 1.7; }.xh-workspace-guard-card > div { margin-top: 24px; display: flex; gap: 10px; }

.xh-root :focus-visible { outline: 3px solid rgba(101,89,244,.36); outline-offset: 3px; }
.xh-root button:disabled, .xh-root input:disabled { cursor: not-allowed; opacity: .58; }

@media (max-width: 980px) {
  .xh-login-layout { gap: 50px; grid-template-columns: 1fr 390px; }.xh-login-story h1 { font-size: 48px; }
  .xh-workspace-content { padding: 24px; }
  .xh-workspace-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.xh-profile-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .xh-login-topbar { padding: 16px 20px; }.xh-login-layout { width: calc(100% - 40px); min-height: auto; padding: 42px 0 70px; grid-template-columns: 1fr; gap: 38px; }.xh-login-story { text-align: center; margin: 0 auto; }.xh-login-story h1 { font-size: 40px; }.xh-login-story > p { font-size: 15px; }.xh-login-points { max-width: 540px; margin: 30px auto 0; text-align: left; }
  .xh-workspace-sidebar { transform: translateX(-105%); transition: transform .2s ease; box-shadow: 18px 0 50px -28px rgba(15,23,42,.3); }.xh-workspace-sidebar.is-open { transform: translateX(0); }.xh-workspace-menu-close { width: 40px; height: 40px; display: grid; place-items: center; position: absolute; right: 8px; top: 8px; border: 0; background: transparent; color: var(--os-text-muted); font-size: 23px; }.xh-workspace-main { margin-left: 0; }.xh-workspace-menu { width: 40px; height: 40px; margin-right: 10px; display: grid; place-items: center; border: 1px solid var(--os-border); border-radius: var(--os-radius-md); background: var(--os-surface); color: var(--os-text-muted); }.xh-workspace-topbar { height: 52px; padding: 0 20px; }.xh-workspace-scrim { position: fixed; inset: 0; z-index: 70; border: 0; background: rgba(10,10,20,.35); }.xh-workspace-content { padding: 24px 20px 56px; }.xh-workspace-page-head { align-items: start; flex-direction: column; }.xh-workspace-page-actions { width: 100%; }.xh-os-overview-grid { grid-template-columns: 1fr; }.xh-os-pack-grid { grid-template-columns: 1fr; }.xh-profile-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .xh-login-story h1 { font-size: 33px; }.xh-login-story > p { font-size: 13px; }.xh-login-points { display: none; }.xh-login-card { padding: 24px 20px; border-radius: 19px; }
  .xh-login-code-row { grid-template-columns: minmax(0, 1fr) 118px; }
  .xh-workspace-breadcrumb { display: none; }.xh-workspace-top-actions { gap: 10px; }.xh-workspace-content { padding-inline: 16px; }.xh-workspace-primary-actions { width: 100%; align-items: stretch; flex-direction: column-reverse; }.xh-workspace-primary-actions .xh-btn { justify-content: center; }.xh-workspace-metrics { grid-template-columns: 1fr; }.xh-os-tabs button { min-height: 44px; }.xh-os-value-grid { grid-template-columns: 1fr; }.xh-os-pack-footer { align-items: center; }.xh-profile-hero { grid-template-columns: 1fr; justify-items: start; }.xh-profile-hero .xh-btn { width: 100%; justify-content: center; }.xh-profile-primary > p { display: grid; }.xh-billing-help { align-items: start; flex-direction: column; }.xh-settings-actions { align-items: stretch; flex-direction: column; }.xh-settings-actions .xh-btn { justify-content: center; }
  .xh-workspace-records li { grid-template-columns: 10px minmax(0,1fr) auto; }.xh-workspace-records li > b { max-width: 80px; text-align: right; }
}

.xh-workspace-menu,
.xh-workspace-menu-close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  .xh-login-page *, .xh-workspace * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

[hidden] { display: none !important; }
.xh-login-legal { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; color: var(--os-text-muted); font-size: 12px; line-height: 1.55; }
.xh-login-legal input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.xh-login-legal > span { display: grid; gap: 3px; }
.xh-login-legal small { color: var(--xh-fg-3); font-size: 10px; }
.xh-login-legal a { color: var(--xh-blue); }
.xh-login-notice[data-tone="success"] { border-color: rgba(22, 163, 74, .2); background: rgba(22, 163, 74, .06); color: #15803d; }
.xh-login-notice[data-tone="warning"] { border-color: rgba(217, 119, 6, .2); background: rgba(217, 119, 6, .06); color: #9a5b08; }
.xh-login-notice[data-tone="error"] { border-color: rgba(220, 38, 38, .2); background: rgba(220, 38, 38, .06); color: #b91c1c; }
.xh-workspace-top-actions button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.xh-private-status { min-height: 24px; margin: 0 0 16px; color: var(--os-text-muted); font-size: 13px; }
.xh-private-panel { margin-bottom: 16px; padding: 20px; border: 1px solid var(--os-border); border-radius: var(--os-radius-md); background: var(--os-surface); box-shadow: var(--os-shadow-xs); }
.xh-private-panel h2 { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.xh-private-muted { color: var(--os-text-muted); font-size: 13px; line-height: 1.7; }
.xh-private-details { margin: 0; display: grid; grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr); gap: 9px 20px; }
.xh-private-details dt { color: var(--os-text-faint); font-size: 12px; }
.xh-private-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font: 500 12px/1.5 var(--xh-mono); }
.xh-private-balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.xh-private-balance { padding: 16px; display: grid; gap: 7px; border-radius: var(--os-radius-md); background: var(--os-subtle); }
.xh-private-balance span, .xh-private-balance small { color: var(--os-text-muted); font-size: 11px; }
.xh-private-balance strong { font: 600 24px/1.1 var(--xh-mono); }
.xh-private-activity-list { display: grid; gap: 12px; }
.xh-private-activity { padding: 16px; border: 1px solid var(--os-border); border-radius: var(--os-radius-md); }
.xh-private-activity h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.xh-capability-unavailable { max-width: 760px; padding: 32px; }
.xh-capability-unavailable > span { color: var(--xh-blue); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.xh-capability-unavailable h2 { margin: 10px 0 8px; font-size: 20px; }
.xh-capability-unavailable p { margin: 0 0 20px; color: var(--os-text-muted); line-height: 1.7; }
.xh-os-packs-panel.xh-capability-unavailable { max-width: none; }
.xh-capability-page { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 120px 24px 72px; background: linear-gradient(145deg, #fff 0%, var(--xh-bg-warm) 58%, #f1efff 100%); }
.xh-capability-card { max-width: 760px; padding: 56px; border: 1px solid var(--os-border); border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 24px 80px -44px rgba(46,37,126,.45); text-align: center; }
.xh-capability-card h1 { margin: 18px 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.15; letter-spacing: -.035em; }
.xh-capability-card p { max-width: 620px; margin: 0 auto 28px; color: var(--os-text-muted); font-size: 16px; line-height: 1.8; }
.xh-capability-card > div { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.xh-noscript { position: fixed; inset: auto 16px 16px; z-index: 100; padding: 12px 16px; border-radius: 8px; background: #111827; color: #fff; font-size: 13px; }

@media (max-width: 480px) {
  .xh-private-details, .xh-private-balance-grid { grid-template-columns: 1fr; }
}
