/* Account surfaces share the homepage's quiet charcoal and TIDEVAR graphite and signal cyan palette. */
[hidden] { display: none !important; }
.account-page {
  --bg: #10151b;
  --text: #f2f1e9;
  --muted: #afbbc6;
  --accent: #73d6e8;
  --line: #34414f;
  --line-strong: #4a5c6d;
  color-scheme: dark;
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.7 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.account-page *, .account-page *::before, .account-page *::after { box-sizing: border-box; }
.account-page ::selection { color: var(--bg); background: var(--accent); }
.account-page a { text-decoration: none; }
.account-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.account-header, .account-main, .account-footer { width: min(1184px, calc(100% - 80px)); margin-inline: auto; }
.account-header { flex-wrap: wrap; padding-block: 12px; }
.account-main { flex: 1; padding-block: 64px 80px; }
.account-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 40px; }
.account-eyebrow { margin: 0 0 16px; color: var(--accent); font: 12px/1.7 ui-monospace, SFMono-Regular, monospace; letter-spacing: .15em; }
.account-main h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.3; font-weight: 550; letter-spacing: -.045em; }
.account-main h1 > span { color: var(--accent); }
.account-main h2 { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 500; letter-spacing: -.025em; overflow-wrap: anywhere; }
.account-muted { color: var(--muted); font-size: 12px; line-height: 1.9; }
.account-page-heading .account-muted { margin: 16px 0 0; font-size: 13px; }
.account-launch { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 12px 18px; min-height: 46px; border: 1px solid #73d6e840; border-radius: 7px; color: var(--accent); background: #73d6e806; white-space: nowrap; font-size: 13px; }
.account-launch:hover { background: #73d6e813; }
.account-launch > span { font-size: 18px; }
.account-panel { padding: 28px; margin-top: 24px; border: 1px solid var(--line); border-radius: 9px; background: #19212a; }
.account-panel .account-eyebrow { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.account-overview { border-top-color: #73d6e860; background: linear-gradient(120deg, #73d6e806, transparent 60%), #19212a; }
.account-overview > h2 { font-size: clamp(20px, 2.5vw, 28px); }
.account-metrics { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; margin-top: 28px; padding-block: 24px; border-block: 1px solid var(--line); }
.account-metrics > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.account-label { color: var(--muted); font-size: 12px; }
.account-metrics p { margin: 10px 0 0; font-size: 16px; }
#membership[data-state="active"] { color: #63cfa2; }
#membership[data-state="inactive"] { color: var(--accent); }
#usage { font-family: ui-monospace, SFMono-Regular, monospace; }
.account-overview > .account-muted { margin: 20px 0 0; }
.account-page button, .inline-fields button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 7px;
  background: #ffffff04; color: #c7cbd2; font: inherit; font-size: 12px; cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.account-page button:hover:not(:disabled), .inline-fields button:hover:not(:disabled) { color: var(--text); background: #ffffff09; border-color: #ffffff40; }
.account-page button:disabled, .inline-fields button:disabled { opacity: .45; cursor: not-allowed; }
.account-page button.account-primary { background: var(--accent); color: #10151b; border-color: #73d6e870; font-weight: 600; }
.account-page button.account-primary:hover:not(:disabled) { background: #94e0ed; }
.account-page button.account-quiet { background: transparent; border-color: var(--line); color: var(--muted); }
.account-page button.account-danger { color: #ed8b93; background: #ed8b9305; border-color: #ed8b9326; flex-shrink: 0; }
.account-page button.account-danger:hover:not(:disabled) { border-color: #ed8b9360; background: #ed8b9310; }
.account-page input:not([type="checkbox"]), .account-page select, #account-email input, #verification-code {
  min-width: 0; min-height: 44px; max-width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 7px;
  color: var(--text); background: #10151baa; font: inherit; box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.account-page input:not([type="checkbox"]):focus, .account-page select:focus, #account-email input:focus, #verification-code:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px #73d6e812; }
.account-page input::placeholder, #account-email input::placeholder, #verification-code::placeholder { color: #7f8997; }
.account-page input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.account-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.account-title-row > div { min-width: 0; }
.account-title-row > button { flex-shrink: 0; }
.account-count { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--accent); font: 12px/1.5 ui-monospace, monospace; }
.account-count:empty { display: none; }
.account-status { margin: 0; color: var(--accent); font-size: 13px; overflow-wrap: anywhere; }
.account-status:not(:empty) { margin: 20px 0; padding: 12px 16px; border: 1px solid #73d6e830; border-radius: 7px; background: #73d6e808; }
.account-status[data-state="error"] { color: #ed8b93; border-color: #ed8b9330; background: #ed8b9308; }
.account-status[data-state="success"] { color: #63cfa2; border-color: #63cfa230; background: #63cfa208; }
.account-device { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.account-device:first-child { margin-top: 24px; }
.account-device:last-child { padding-bottom: 0; }
.account-device > div { min-width: 0; }
.account-device strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.account-device p { margin: 6px 0 0; overflow-wrap: anywhere; font-size: 12px; }
.account-device details { margin-top: 10px; font-size: 12px; color: var(--muted); }
.account-device summary { width: fit-content; cursor: pointer; padding-block: 5px; }
.account-device summary:hover { color: var(--accent); }
.account-online { color: #63cfa2; }
.account-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 4px; background: #ffffff05; color: var(--muted); font-size: 12px; }
.account-badge.account-online { color: #63cfa2; background: #63cfa20b; }
.account-badge.account-online::before, .account-live-note i { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #63cfa2; }
.account-badge.account-disabled { color: #ed8b93; background: #ed8b930b; }
.account-last-active { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.account-live-note { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.account-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.account-toolbar > button { min-height: 44px; }
.account-search { display: flex; align-items: center; gap: 12px; flex: 1; max-width: 430px; min-width: 200px; }
.account-search label { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.account-search input { width: 100%; }
.account-filter { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; color: var(--muted); font-size: 12px; cursor: pointer; }
.account-table-wrap { overflow: auto; scrollbar-color: #ffffff26 transparent; scrollbar-width: thin; }
.account-page table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 12px; }
.account-page th { padding: 12px; color: var(--muted); background: #ffffff03; font-size: 12px; font-weight: 400; }
.account-page td { padding: 16px 12px; border-bottom: 1px solid var(--line); color: #c9ced6; }
.account-page td:first-child { color: var(--text); }
.account-page tbody tr:hover { background: #ffffff02; }
.account-page tr[aria-selected="true"] { background: #73d6e807; }
.account-page td.account-empty, .account-empty { padding: 32px 16px; color: var(--muted); text-align: center; font-size: 12px; }
.account-pagination { justify-content: flex-end; margin: 20px 0 0; }
.account-pagination > span { padding-inline: 8px; color: var(--muted); font: 12px ui-monospace, monospace; }
.account-table-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.usage-controls { margin-top: 24px; align-items: flex-end; }
.usage-controls label, .usage-day-control { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); }
.usage-day-control { width: fit-content; margin-top: 24px; }
.usage-chart { overflow-x: auto; padding: 8px 2px; scrollbar-color: #ffffff26 transparent; }
.usage-bars { position: relative; display: grid; grid-template-columns: repeat(var(--usage-columns), minmax(38px, 1fr)); gap: 6px; min-width: max-content; }
.usage-daily-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.usage-daily-heading h3 { margin: 0; }
.usage-chart .usage-bar { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; border: 1px solid transparent; background: transparent; padding: 4px 3px; min-width: 38px; border-radius: 5px; }
.usage-chart .usage-bar:hover, .usage-chart .usage-bar:focus-visible { background: #73d6e80c; border-color: #73d6e850; }
.usage-chart .usage-bar[aria-pressed="true"] { border-color: var(--accent); background: #73d6e80c; }
.usage-bar-track { display: flex; height: 160px; align-items: flex-end; border-bottom: 1px solid var(--line-strong); background: repeating-linear-gradient(to top, transparent 0, transparent 39px, #ffffff06 39px, #ffffff06 40px); }
.usage-bar-fill { display: block; width: 100%; background: linear-gradient(to top, #41899a, #73d6e8); border-radius: 3px 3px 0 0; }
.usage-hourly .usage-bar-fill { background: linear-gradient(to top, #337f68, #63cfa2); }
.usage-bar-label { margin-top: 9px; color: var(--muted); font: 12px/1.6 ui-monospace, monospace; text-align: center; white-space: nowrap; }
.usage-bar-count { position: absolute; left: 0; width: 100%; color: var(--text); opacity: 0.6; font: 12px/1.6 ui-monospace, monospace; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap; }
.usage-scale { font-size: 12px; }
.usage-overview-controls > label { color: var(--muted); font-size: 12px; }
.usage-presets { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #10151b80; }
.usage-presets button { border-color: transparent; min-height: 36px; }
.usage-presets button[aria-pressed="true"] { color: var(--accent); border-color: #73d6e840; background: #73d6e812; }
.usage-overview-metric { display: flex; flex-direction: column; gap: 8px; padding: 16px 0 24px; }
.usage-overview-metric strong { color: var(--accent); font-size: clamp(22px, 3vw, 32px); line-height: 1.4; font-weight: 500; font-variant-numeric: tabular-nums; }
.usage-overview-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
.usage-overview-heading h3 { margin: 0; font-size: 13px; font-weight: 500; }
.usage-aggregate { margin-top: 12px; }
.usage-aggregate .usage-bars { grid-template-columns: repeat(var(--usage-columns), minmax(0, 1fr)); min-width: calc(var(--usage-columns) * 32px); gap: 4px; }
.usage-aggregate .usage-bar { min-width: 0; padding: 28px 2px 4px; }
.usage-aggregate .usage-bar-track { position: relative; height: 200px; }
.usage-chart-value { margin: 8px 0 0; min-height: 23px; font-variant-numeric: tabular-nums; }
#user-detail { border-top-color: #73d6e860; scroll-margin-block: 24px; }
.account-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-width: 0; margin: 0; padding: 0; border: 0; }
.account-editor-legend { padding: 0 0 16px; color: var(--muted); font-size: 12px; }
.account-editor-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #10151b60; }
.account-editor-card h3 { margin: 0; font-size: 15px; font-weight: 500; }
.account-field-help { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.account-editor-card > .account-field-help:first-of-type { margin-bottom: 20px; }
.account-editor label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.account-editor .account-setting { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; margin: 20px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.account-editor .account-setting:hover { border-color: var(--line-strong); }
.account-setting strong, .account-setting small { display: block; }
.account-setting strong { color: var(--text); font-size: 13px; font-weight: 500; }
.account-setting small { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.account-setting:has(input:checked) { background: #73d6e808; border-color: #73d6e850; }
.account-editor .account-setting-danger:has(input:checked) { background: #ed8b9308; border-color: #ed8b9350; }
.account-setting-danger:has(input:checked) strong { color: #ed8b93; }
.account-setting-danger input { accent-color: #ed8b93; }
.account-editor select, .account-editor input:not([type="checkbox"]) { width: 100%; }
.account-membership-fields { margin-top: 20px; }
.account-membership-fields[data-disabled="true"] { opacity: .5; }
#radar-date-fields { margin-top: 16px; }
.account-expiry-presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.account-expiry-presets > span { color: var(--muted); font-size: 12px; }
.account-expiry-presets button { min-height: 40px; padding-inline: 12px; }
.account-editor-summary { margin: 20px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #ffffff03; font-size: 12px; overflow-wrap: anywhere; }
.account-editor-summary[data-state="warning"] { color: #eab46b; border-color: #eab46b30; background: #eab46b08; }
.account-editor-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.account-editor-actions > .account-field-help { margin: 0; }
.account-editor-actions > div { display: flex; gap: 10px; }
#editor-dirty[data-dirty="true"] { color: #eab46b; }
.account-editor-status:not(:empty) { margin: 16px 0 0; }
.account-editor-status[data-state="warning"] { color: #eab46b; border-color: #eab46b30; background: #eab46b08; }
.account-main .account-subheading { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); font-size: 16px; }
.account-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 24px 32px; color: #818a99; font-size: 12px; }
.account-footer > span:first-child { font: 12px/1.7 ui-monospace, monospace; letter-spacing: .1em; }
.account-skip { position: fixed; z-index: 10; top: 12px; left: 16px; padding: 12px 20px; border-radius: 7px; background: var(--accent); color: var(--bg); clip-path: inset(50%); }
.account-skip:focus { clip-path: none; }

/* Account login additions inherit the existing login card's form geometry. */
.login-card h1 > #login-heading { color: var(--text); }
#account-email input { width: 100%; min-height: var(--login-control-height); margin: 7px 0 16px; padding: 12px; border-radius: 9px; font-size: 16px; line-height: 22px; }
#account-email input::placeholder, #verification-code::placeholder { color: #afbbc6; font-size: 13px; }
#account-email input:hover:not(:focus), #verification-code:hover:not(:focus) { border-color: #ffffff40; }
#account-code { margin-block: 16px; }
.inline-fields { display: flex; align-items: stretch; gap: 8px; margin-top: 7px; }
.inline-fields input { flex: 1; width: 0; }
#verification-code { min-height: var(--login-control-height); padding-block: 12px; border-radius: 9px; font: 16px/22px ui-monospace, monospace; letter-spacing: .1em; }
.inline-fields button { flex-shrink: 0; padding-inline: 12px; border-radius: 9px; color: var(--accent); border-color: #73d6e830; background: #73d6e808; font-size: 12px; }
.account-modes { display: flex; gap: 2px; margin: 0 0 18px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #10151b80; }
.account-modes button { flex: 1; min-width: 0; min-height: 44px; padding: 8px 4px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: transparent; font: inherit; font-size: 12px; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.account-modes button:hover:not(:disabled) { color: var(--text); background: #ffffff04; }
.account-modes button[aria-pressed="true"] { border-color: #73d6e830; color: var(--accent); background: #73d6e80c; }
.account-modes button:disabled { cursor: wait; opacity: .6; }
.login-field-help { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-card .login-status { position: static; width: auto; height: auto; margin: 14px 0 0; padding: 12px; clip-path: none; white-space: normal; overflow-wrap: anywhere; border: 1px solid #63cfa226; border-radius: 7px; background: #63cfa208; color: #9be4c5; font-size: 12px; line-height: 1.8; }
.login-card .login-status:empty { margin: 0; padding: 0; border: 0; }
.login-devices { min-width: 0; margin: 20px 0; padding: 16px; border: 1px solid var(--line); border-radius: 9px; }
.login-devices legend { padding-inline: 6px; color: var(--text); font-size: 14px; }
.login-device-list { display: grid; gap: 10px; margin-top: 14px; }
.login-card .login-device-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.login-device-option:has(input:checked) { border-color: var(--accent); background: #73d6e808; }
.login-device-option input { flex: 0 0 auto; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--accent); }
.login-device-option > span { min-width: 0; }
.login-device-option strong { display: block; color: var(--text); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.login-device-option span span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.login-devices-cancel { min-height: 44px; margin-top: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.login-devices-cancel:disabled { opacity: .5; cursor: wait; }

@media (max-width: 900px) {
  .account-header, .account-main, .account-footer { width: calc(100% - 48px); }
  .account-header .product-nav-links { gap: 18px; }
  .account-filter { margin-left: 0; }
}
@media (max-width: 600px) {
  .account-header, .account-main, .account-footer { width: calc(100% - 32px); }
  .account-header { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 20px 12px; }
  .account-header .product-nav-links { width: 100%; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .account-header .product-nav-links a, .account-header button { font-size: 12px; }
  .account-header button { min-height: 44px; padding-inline: 10px; }
  .account-main { padding-block: 36px 48px; }
  .account-page-heading { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
  .account-panel { padding: 20px 16px; margin-top: 20px; }
  .account-metrics { grid-template-columns: 1fr; gap: 20px; }
  .account-metrics > div + div { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .account-device { align-items: flex-start; flex-direction: column; gap: 16px; }
  .account-page button { min-height: 44px; }
  .account-search { flex-basis: 100%; max-width: none; }
  .account-filter { margin-left: 0; flex-basis: 100%; }
  .account-editor { grid-template-columns: 1fr; }
  .account-editor-card { padding: 16px; }
  .account-editor-actions > div { width: 100%; }
  .account-editor-actions button { flex: 1; }
  .account-footer { flex-direction: column; gap: 8px; }
  .account-title-row { gap: 10px; }
  .account-title-row > .account-muted { font-size: 12px; }
}
@media (max-width: 359px) {
  .inline-fields { flex-wrap: wrap; }
  .inline-fields input, .inline-fields button { flex-basis: 100%; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .account-page *, .login-page .inline-fields * { transition: none !important; scroll-behavior: auto !important; }
}

.account-overview { background: var(--tidevar-surface); }
.account-footer a { color: var(--muted); }
.account-footer a:hover { color: var(--accent); }
.account-page .usage-bar-fill { background: var(--accent); }
.account-page .usage-hourly .usage-bar-fill { background: var(--buy); }
