/* The standalone account site uses the dashboard's system font and neutral tokens. */
:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --label: #16191b;
  --secondary: #61676b;
  --tertiary: #81858c;
  --surface: #fff;
  --border: #dcddd8;
  --divider: #dcddd8;
  --hover: #f8f8f5;
  --active: #ecede9;
  --primary: #242729;
  --on-primary: #fff;
  color: var(--label);
  background: var(--surface);
  font-size: 14px;
  font-synthesis: none;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
[hidden], .section[data-inactive] { display: none !important; }
.brand-header { display: flex; align-items: center; min-height: 100px; padding: 30px 48px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { flex: none; }
.brand-name { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; }
.brand-name strong { font-size: 26px; font-weight: 650; letter-spacing: -.055em; }
.brand-name small { font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tertiary); }
.content { display: flex; align-items: center; justify-content: center; min-height: calc(100dvh - 100px); padding: 40px 24px 100px; }
.panel { width: 100%; max-width: 388px; }
.panel h1, .panel h2 { margin: 0; font-size: 28px; font-weight: 600; line-height: 36px; letter-spacing: -.025em; }
#auth-panel > h1, #auth-panel > .subtle { text-align: center; }
.subtle { margin: 8px 0 28px; color: var(--secondary); font-size: 14px; line-height: 22px; }
label { display: block; font-size: 13px; line-height: 20px; font-weight: 500; margin: 0 0 8px; }
input, select { width: 100%; min-width: 0; height: 46px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--label); font-size: 14px; line-height: 22px; }
input::placeholder { color: var(--secondary); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 20px; }
.label-row label { margin-bottom: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 9px; background: transparent; color: var(--label); font-size: 13px; line-height: 20px; font-weight: 500; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--hover); }
.button:disabled { opacity: .5; cursor: default; }
.button.primary { width: 100%; min-height: 46px; margin-top: 24px; border: 0; border-radius: 9px; background: var(--primary); color: var(--on-primary); font-size: 14px; }
.button.primary:hover:not(:disabled) { opacity: .88; }
.button.google { width: 100%; min-height: 46px; margin: 4px 0 0; border-radius: 9px; }
.google-g { font-size: 18px; font-weight: 700; color: #4285f4; }
.button.small { min-height: 34px; padding: 6px 12px; font-size: 12px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--label); font-size: 13px; line-height: 20px; font-weight: 500; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--secondary); font-size: 12px; line-height: 18px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--divider); flex: 1; }
.switch-line { margin: 24px 0 0; color: var(--secondary); text-align: center; font-size: 13px; line-height: 22px; }
.legal-line { margin: 28px 0 0; text-align: center; font-size: 12px; line-height: 20px; color: var(--secondary); }
.legal-line a, .legal-document a { color: var(--secondary); text-decoration: none; }
.legal-line a:hover, .legal-document a:hover { color: var(--label); text-decoration: underline; }
.notice { padding: 12px 14px; margin: 20px 0; border: 1px solid var(--border); border-radius: 9px; background: var(--hover); color: var(--label); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.notice.error { border-color: #bd342a40; background: #bd342a0a; color: #a1251d; }
#email-action-return { width: 100%; margin-top: 24px; }
#email-action-panel .eyebrow { display: block; margin-bottom: 8px; color: var(--secondary); font-size: 12px; }
.app-panel { max-width: 1080px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px 22px; }
.app-header h2 { font-size: 22px; line-height: 30px; }
.app-header .subtle { margin: 5px 0 0; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
#desktop-signin-section { max-width: 480px; margin: 0 auto; padding: 24px 28px 32px; border: 0; }
.app-panel > .notice { margin: 0 28px 20px; }
.app-layout { display: flex; min-height: 480px; }
.account-nav { display: flex; flex-direction: column; flex: none; gap: 4px; width: 220px; padding: 0 16px 32px; }
.account-nav a { display: flex; align-items: center; min-height: 40px; padding: 9px 14px; border-radius: 9px; color: var(--label); font-size: 14px; line-height: 22px; text-decoration: none; }
.account-nav a:hover { background: var(--hover); }
.account-nav a[aria-current=page] { background: var(--active); }
.app-sections { flex: 1; min-width: 0; padding: 0 36px 36px 28px; }
.app-sections > .notice { margin-top: 0; }
.section { padding: 20px 0; margin: 0; border-top: 1px solid var(--divider); }
.section:first-of-type { padding-top: 0; border-top: 0; }
.section h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.section p { margin: 4px 0 18px; color: var(--secondary); font-size: 13px; line-height: 20px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hint { margin: 12px 0 0 !important; color: var(--secondary); font-size: 12px !important; line-height: 19px; }
.inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.inline-form input { flex: 1 1 150px; }
.inline-form select { width: 116px; }
.member-list, .audit-list { display: grid; margin: 14px 0; }
.member-row, .audit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--divider); font-size: 13px; line-height: 20px; }
.member-row > div, .audit-row > div { min-width: 0; overflow-wrap: anywhere; }
.member-row strong { display: block; font-size: 13px; font-weight: 500; }
.member-row small, .audit-row small { color: var(--secondary); font-size: 12px; line-height: 18px; }
.member-row .button { flex: none; min-height: 32px; padding: 5px 12px; font-size: 12px; }
.member-empty { color: var(--secondary); font-size: 13px; line-height: 20px; }
.connector-list { display: flex; flex-direction: column; }
.connector { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 12px 0; border-bottom: 1px solid var(--divider); font-size: 13px; line-height: 20px; }
.connector strong { font-weight: 500; }
.connector button { min-height: 32px; padding: 5px 12px; font-size: 12px; }
.connector-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.badge { border-radius: 16px; padding: 3px 8px; background: #1b805a12; color: #18714e; font-size: 11px; line-height: 16px; white-space: nowrap; }
.badge.pending { background: var(--hover); color: var(--secondary); }
.activity-heading { margin: 22px 0 8px; font-size: 13px; line-height: 20px; font-weight: 500; }
.device-approval #pair-code { max-width: 180px; font-size: 22px; line-height: 28px; letter-spacing: .2em; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.device-approval #pair-id { display: none; }
.legal-document { width: min(100% - 40px, 720px); margin: 48px auto 80px; padding: 0 16px; }
.legal-back { display: block; margin-bottom: 36px; font-size: 13px; }
.legal-document .eyebrow { color: var(--secondary); font-size: 12px; }
.legal-document h1 { margin: 10px 0 0; font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -.025em; }
.legal-date { margin: 8px 0 30px !important; font-size: 12px !important; }
.legal-document h2 { margin: 28px 0 8px; font-size: 18px; line-height: 26px; font-weight: 600; }
.legal-document p { margin: 0 0 15px; font-size: 14px; line-height: 24px; color: var(--secondary); }
@media (max-width: 600px) {
  .brand-header { min-height: 76px; padding: 22px; }
  .content { min-height: calc(100dvh - 76px); padding: 20px 22px 40px; align-items: flex-start; }
  #auth-panel { margin-top: min(6vh, 48px); }
  .panel h1, .panel h2 { font-size: 26px; line-height: 34px; }
  .app-panel { border: 0; border-radius: 0; }
  .app-header { align-items: flex-start; padding: 0 0 22px; }
  .app-header h2 { font-size: 20px; line-height: 28px; }
  .app-layout { flex-direction: column; min-height: 0; }
  .account-nav { flex-direction: row; width: 100%; padding: 0 0 18px; overflow-x: auto; }
  .account-nav a { min-height: 36px; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
  .app-sections { padding: 0; }
  .connector { flex-wrap: wrap; }
  .member-row { gap: 10px; }
  .inline-form .button { min-height: 42px; }
}

@media (prefers-color-scheme: dark) {
  :root { --label: #eceeea; --secondary: #b0b6b5; --tertiary: #969d9c; --surface: #181b1d; --border: #343a3d; --divider: #343a3d; --hover: #24292c; --active: #2e3437; --primary: #eceeea; --on-primary: #16191b; color-scheme: dark; }
  .notice.error { color: #ffb4ae; border-color: #ffb4ae40; background: #ffb4ae0a; }
  .badge { color: #83d3ad; background: #83d3ad18; }
}
