/* Account console styling: clear hierarchy, legible type, and calm surfaces. */
:root {
  --portal-ink: #202124;
  --portal-muted: #5f6368;
  --portal-line: #dadce0;
  --portal-blue: #1a73e8;
  --portal-blue-soft: #e8f0fe;
  --portal-sidebar: #fff;
}

body {
  color: #202124;
  background: #f8f9fa;
  font-family: Inter, Roboto, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.portal-shell { grid-template-columns: 256px minmax(0, 1fr); }
.portal-sidebar {
  padding: 20px 12px 14px;
  background: #fff;
  border-right-color: #dadce0;
}
.sidebar-brand { padding: 0 11px 25px; font-size: 20px; }
.sidebar-brand img { width: 32px; height: 32px; }
.sidebar-label { padding: 0 14px 9px; color: #80868b; font-size: 10px; letter-spacing: 1px; }
.sidebar-nav { gap: 3px; }
.sidebar-link {
  min-height: 42px;
  gap: 12px;
  padding: 0 14px;
  border-radius: 8px;
  color: #3c4043;
  font-size: 13px;
  font-weight: 550;
}
.sidebar-link > span { width: 18px; color: #5f6368; font-size: 17px; }
.sidebar-link:hover { background: #f1f3f4; color: #202124; }
.sidebar-link.active { background: #e8f0fe; color: #1967d2; }
.sidebar-link.active > span { color: #1967d2; }
.sidebar-link small { color: #5f6368; font-size: 11px; }
.sidebar-help { padding: 13px 11px; border-color: #dadce0; border-radius: 9px; }
.sidebar-help strong { font-size: 12px; }
.sidebar-help a { font-size: 11px; }
.sidebar-privacy { padding: 12px 10px 15px; font-size: 11px; }
.sidebar-profile { gap: 11px; padding: 14px 6px 3px; }
.sidebar-profile strong { font-size: 11px; }
.sidebar-profile small { font-size: 10px; }
.profile-avatar { width: 34px; height: 34px; font-size: 14px; }

.portal-content { min-height: 100vh; background: #f8f9fa; }
.topbar {
  height: 68px;
  padding: 0 36px;
  border-bottom-color: #dadce0;
  background: #fff;
  backdrop-filter: none;
}
.topbar-title { gap: 3px; }
.topbar-title strong { color: #202124; font-size: 15px; }
.topbar-kicker { color: #80868b; font-size: 9px; letter-spacing: 1px; }
.topbar nav { gap: 20px; }
.secure-indicator { color: #5f6368; font-size: 11px; }
.nav-account {
  min-height: 38px;
  padding: 0 16px;
  border-color: #dadce0;
  border-radius: 6px;
  color: #1967d2;
  font-size: 13px;
  font-weight: 600;
}
.nav-account:hover { border-color: #1a73e8; color: #1558b0; background: #f8fbff; }
.portal-content > main { max-width: 1280px; padding-right: 36px; padding-left: 36px; }
.portal-content > main.portal-main { max-width: 1280px; padding: 38px 36px 24px; }
.portal-content footer { max-width: 1280px; padding-right: 36px; padding-left: 36px; border-top-color: #dadce0; font-size: 11px; }
.portal-content footer .brand { font-size: 13px; }

.page-heading { margin-bottom: 26px; }
.page-heading h1 {
  margin: 8px 0;
  color: #202124;
  font: 650 32px/1.2 Inter, Roboto, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.7px;
}
.page-heading p { max-width: 720px; color: #5f6368; font-size: 14px; line-height: 1.6; }
.eyebrow { color: #5f6368; font-size: 10px; letter-spacing: 1.1px; }
.portal-card { border-color: #dadce0; border-radius: 12px; box-shadow: 0 1px 2px #20212412; }
.identity-card, .overview-plan { min-height: 220px; padding: 23px; }
.card-topline > a { color: #1967d2; font-size: 12px; }
.verified-pill { font-size: 11px; }
.account-id { margin: 17px 0 20px; color: #202124; font-size: 25px; }
.identity-meta small, .subscription-facts small { color: #5f6368; font-size: 11px; }
.identity-meta strong { color: #3c4043; font-size: 12px; }
.plan-name-large { color: #202124; font-size: 25px; }
.overview-plan > p { color: #5f6368; font-size: 13px; }
.subscription-facts { border-color: #e8eaed; }
.subscription-facts strong { color: #3c4043; font-size: 12px; }
.plan-status-note { color: #5f6368; font-size: 11px; }

.portal-section { margin-top: 34px; }
.section-header h2 { color: #202124; font: 600 20px/1.3 Inter, Roboto, "Segoe UI", Arial, sans-serif; letter-spacing: -.25px; }
.status-pill, .count-pill { border-color: #dadce0; color: #5f6368; font-size: 11px; }
.usage-grid { gap: 14px; }
.usage-card { min-height: 172px; gap: 13px; padding: 18px; }
.usage-icon { width: 34px; height: 34px; border-radius: 9px; background: #e8f0fe; color: #1967d2; font-size: 17px; }
.usage-card small { color: #5f6368; font-size: 10px; letter-spacing: .7px; }
.usage-card strong { color: #202124; font-size: 14px; }
.usage-card p { color: #5f6368; font-size: 12px; line-height: 1.6; }
.usage-card a, .device-limit-card a { color: #1967d2; font-size: 12px; }
.quick-links { gap: 12px; }
.quick-links > a { min-height: 76px; padding: 14px; border-color: #dadce0; border-radius: 10px; }
.quick-links > a > span:first-child { width: 34px; height: 34px; background: #e8f0fe; color: #1967d2; }
.quick-links strong { color: #202124; font-size: 12px; }
.quick-links small { color: #5f6368; font-size: 11px; }

.auth-gate {
  max-width: 560px;
  margin: 84px auto;
  padding: 42px 40px;
  border-color: #dadce0;
  border-radius: 12px;
  box-shadow: 0 1px 2px #20212412;
}
.gate-icon { width: 48px; height: 48px; background: #e8f0fe; color: #1967d2; }
.auth-gate h1 { color: #202124; font: 600 26px/1.25 Inter, Roboto, "Segoe UI", Arial, sans-serif; letter-spacing: -.4px; }
.auth-gate p { color: #5f6368; font-size: 14px; line-height: 1.6; }
.auth-gate .primary-button { width: auto; min-width: 220px; min-height: 44px; border-radius: 6px; }
.auth-gate > small { color: #5f6368; font-size: 11px; }

.quiet-button { min-height: 40px; padding: 0 15px; border-color: #dadce0; border-radius: 6px; color: #1967d2; font-size: 12px; }
.quiet-button:hover:not(:disabled) { border-color: #1a73e8; color: #1558b0; background: #f8fbff; }
.portal-plans-grid { gap: 16px; }
.portal-plan { min-height: 420px; padding: 24px; border-color: #dadce0; border-radius: 12px; box-shadow: 0 1px 2px #20212412; }
.portal-plan.popular { border-color: #1a73e8; box-shadow: 0 0 0 1px #1a73e8; }
.portal-plan-ribbon { background: #1a73e8; font-size: 9px; }
.portal-plan-icon { width: 38px; height: 38px; border-radius: 10px; }
.portal-plan > .eyebrow { color: #5f6368; font-size: 10px; }
.portal-plan h2 { color: #202124; font: 600 21px/1.3 Inter, Roboto, "Segoe UI", Arial, sans-serif; }
.portal-price { color: #202124; font: 650 30px/1.2 Inter, Roboto, "Segoe UI", Arial, sans-serif; }
.portal-price small { font-size: 12px; }
.portal-plan-copy { min-height: 45px; color: #5f6368; font-size: 12px; }
.portal-plan ul { border-color: #e8eaed; }
.portal-plan li { color: #3c4043; font-size: 12px; line-height: 1.55; }
.plan-choose { min-height: 42px; border-radius: 6px; background: #1a73e8; font-size: 13px; }
.plan-choose:hover:not(:disabled) { background: #1558b0; }
.plan-choose.secondary { background: #f1f3f4; color: #3c4043; }
.billing-note, .plan-auth-notice p { color: #5f6368; font-size: 12px; line-height: 1.6; }
.plan-auth-notice { padding: 13px 15px; border-color: #dadce0; border-radius: 9px; }
.plan-auth-notice a { color: #1967d2; }
.subscription-summary { padding: 16px 19px; }
.subscription-summary > div > strong { color: #202124; font-size: 14px; }
.subscription-summary > div > small { color: #5f6368; font-size: 11px; }
.device-limit-card { padding: 19px; }
.device-limit-card strong { color: #202124; font-size: 14px; }
.device-limit-card p, .card-description { color: #5f6368; font-size: 12px; line-height: 1.6; }
.portal-session { padding: 12px; border-color: #e8eaed; background: #fff; }
.portal-session strong { color: #3c4043; font-size: 12px; }
.portal-session small { color: #5f6368; font-size: 11px; }
.portal-session-copy { flex: 1; }
.session-current-badge { flex: none; padding: 4px 7px; border-radius: 12px; background: #e8f0fe; color: #1967d2; font-size: 10px; font-weight: 650; }
.session-revoke { flex: none; min-height: 30px; padding: 0 9px; border: 1px solid #dadce0; border-radius: 6px; background: #fff; color: #5f6368; font: 600 11px Inter, Roboto, "Segoe UI", Arial, sans-serif; cursor: pointer; }
.session-revoke:hover:not(:disabled) { border-color: #f2b8b5; background: #fce8e6; color: #b3261e; }
.session-revoke:disabled { cursor: wait; opacity: .65; }
.session-revoke:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.portal-form label { color: #3c4043; font-size: 12px; }
.portal-form input { min-height: 42px; border-color: #dadce0; border-radius: 6px; font-size: 13px; }
.portal-form input:focus, .password-form input:focus { border-color: #1a73e8; box-shadow: 0 0 0 2px #1a73e826; }
.portal-form .primary-button { min-height: 43px; border-radius: 6px; }
.security-recovery { background: #f1f3f4; }
.security-recovery strong { color: #3c4043; font-size: 11px; }
.security-recovery p { color: #5f6368; font-size: 11px; }
.security-recovery a, .recovery-note a { color: #1967d2; }

.device-panel {
  border-color: #dadce0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px #20212412;
}
.device-icon { background: #e8f0fe; color: #1967d2; }
.device-copy h1 { color: #202124; font: 600 21px/1.3 Inter, Roboto, "Segoe UI", Arial, sans-serif; }
.device-copy p { color: #5f6368; font-size: 13px; }
.device-code-entry { border-color: #dadce0; border-radius: 10px; background: #fff; }
.device-code-entry > label { color: #3c4043; font-size: 13px; }
.device-code-entry > small { color: #5f6368; font-size: 12px; }
.device-code-input-row input { border-color: #dadce0; border-radius: 6px; }
.device-code-input-row input:focus { border-color: #1a73e8; box-shadow: 0 0 0 2px #1a73e826; }
.device-code-input-row .primary-button, .primary-button { border-radius: 6px; background: #1a73e8; box-shadow: none; font-size: 13px; }
.device-code-input-row .primary-button:hover, .primary-button:hover { background: #1558b0; filter: none; }
.device-foot { color: #5f6368; font-size: 11px; }
.auth-card { border-color: #dadce0; border-radius: 12px; box-shadow: 0 1px 2px #20212412; }
.auth-card-head strong { color: #202124; font-size: 16px; }
.auth-card-head small { color: #5f6368; font-size: 12px; }
.auth-tab { font-size: 13px; }
#authForm label { color: #3c4043; font-size: 13px; }
#authForm input { min-height: 46px; border-color: #dadce0; border-radius: 6px; font-size: 14px; }
#authForm input:focus { border-color: #1a73e8; box-shadow: 0 0 0 2px #1a73e826; }
#authForm label small, .auth-footnote, .auth-recovery { color: #5f6368; font-size: 11px; }
.auth-tabs { border-radius: 8px; }
.auth-tab.active { color: #1967d2; box-shadow: inset 0 0 0 1px #dadce0; }
.toast { border-color: #dadce0; border-radius: 8px; color: #3c4043; font-size: 13px; }

@media (max-width: 920px) {
  .portal-content > main, .portal-content > main.portal-main { padding-right: 24px; padding-left: 24px; }
  .topbar { padding-right: 24px; padding-left: 24px; }
}
@media (max-width: 700px) {
  .portal-shell { display: block; }
  .portal-sidebar { padding: 10px 12px 7px; }
  .sidebar-brand { padding: 0 3px 10px; font-size: 18px; }
  .sidebar-link { min-height: 38px; padding: 0 11px; font-size: 12px; }
  .topbar { height: 60px; padding: 0 16px; }
  .topbar-title strong { font-size: 14px; }
  .portal-content > main, .portal-content > main.portal-main { padding: 24px 16px 18px; }
  .portal-content footer { padding: 16px; font-size: 10px; }
  .page-heading { gap: 14px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { font-size: 13px; }
  .auth-gate { margin: 42px auto; padding: 30px 22px; }
  .portal-plan { min-height: 0; padding: 21px; }
  .portal-plan-copy { min-height: 0; }
  .device-code-entry { padding: 14px; }
}
.two-factor-settings { grid-column: 1 / -1; }
.totp-secret { display: block; margin: .75rem 0 1rem; padding: 1rem; border: 1px solid var(--line, #e4e7ee); border-radius: 12px; background: #f7f8fb; color: #30364a; font-size: 1rem; font-weight: 700; letter-spacing: .12em; overflow-wrap: anywhere; }
.recovery-codes-panel { margin-top: 1rem; padding: 1.1rem; border: 1px solid #e6c985; border-radius: 14px; background: #fff9e9; }
.recovery-codes-panel strong { color: #6d4c0d; }
.recovery-codes-panel p { color: #675a3c; }
.recovery-codes-panel pre { white-space: pre-wrap; user-select: all; padding: 1rem; border-radius: 10px; background: #fff; font: 600 .95rem/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.mfa-form { display: grid; gap: .8rem; }
.mfa-form[hidden] { display: none; }
.mfa-form > small { color: #667085; }
