:root {
  color-scheme: light;
  --bg: #f3f7f5;
  --bg-soft: #eaf1ee;
  --surface: #fbfdfc;
  --surface-raised: #ffffff;
  --surface-strong: #e4eee9;
  --ink: #17302b;
  --ink-soft: #597069;
  /* Keep secondary metadata readable on the near-white surfaces (4.8:1). */
  --ink-faint: #60756d;
  --accent: #2f8978;
  --accent-strong: #236d63;
  --button-bg: #236d63;
  --accent-bright: #65bea0;
  --tag-ink: #236d63;
  --accent-wash: #dceee7;
  /* Positive status text sits on the pale accent wash; use the deeper green. */
  --positive: #246b58;
  --negative: #be6259;
  --warning: #b6833c;
  --line: #d7e2dd;
  --line-strong: #c5d4ce;
  --shadow: 0 28px 70px rgba(31, 70, 60, 0.12);
  --shadow-soft: 0 10px 32px rgba(31, 70, 60, 0.08);
  --sidebar-width: 292px;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-control: 14px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --touch-target: 48px;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --font: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111a18;
  --bg-soft: #16221f;
  --surface: #192724;
  --surface-raised: #1e2d29;
  --surface-strong: #253632;
  --ink: #e5efe9;
  --ink-soft: #9db0aa;
  --ink-faint: #7c908a;
  --accent: #74c6a4;
  --accent-strong: #549d82;
  --button-bg: #337665;
  --accent-bright: #a2e2c4;
  --tag-ink: #a2e2c4;
  --accent-wash: #213d35;
  --positive: #79c7a8;
  --negative: #ed8c82;
  --warning: #deb16c;
  --line: #2a3b36;
  --line-strong: #354a44;
  --shadow: 0 34px 80px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 16px 38px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 2px;
}

.is-hidden { display: none !important; }

.crypto-check {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-soft);
  background: var(--bg);
}

.ui-icon {
  --icon-url: none;
  width: var(--icon-md);
  height: var(--icon-md);
  display: inline-block;
  flex: none;
  color: inherit;
  background: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}
.ui-icon--menu { --icon-url: url('/icons/menu.svg'); }
.ui-icon--x { --icon-url: url('/icons/x.svg'); }
.ui-icon--plus { --icon-url: url('/icons/plus.svg'); }
.ui-icon--share { --icon-url: url('/icons/share-2.svg'); }
.ui-icon--arrow-right { --icon-url: url('/icons/arrow-right.svg'); }
.ui-icon--logout { --icon-url: url('/icons/log-out.svg'); }
.ui-icon--chevron-down { --icon-url: url('/icons/chevron-down.svg'); }
.ui-icon--chevron-right { --icon-url: url('/icons/chevron-right.svg'); }
.ui-icon--lock { --icon-url: url('/icons/lock-keyhole.svg'); }
.ui-icon--eye { --icon-url: url('/icons/eye.svg'); }
.ui-icon--check { --icon-url: url('/icons/check.svg'); }
.ui-icon--circle-check { --icon-url: url('/icons/circle-check.svg'); }
.ui-icon--loader { --icon-url: url('/icons/loader-circle.svg'); }
.ui-icon--alert { --icon-url: url('/icons/circle-alert.svg'); }
.ui-icon--chart { --icon-url: url('/icons/chart-no-axes-combined.svg'); }
.ui-icon--theme { --icon-url: url('/icons/moon.svg'); }
[data-theme="dark"] .ui-icon--theme { --icon-url: url('/icons/sun.svg'); }

.spinner {
  width: 20px;
  height: 20px;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { rotate: 360deg; } }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  min-width: 0;
}

.brand-mark { position: relative; width: 42px; height: 34px; flex: none; display: inline-grid; place-items: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line-strong) 86%, transparent); border-radius: 12px; color: currentColor; background: color-mix(in srgb, var(--surface) 54%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 16%, transparent), 0 8px 20px rgba(3, 15, 11, .1); backdrop-filter: blur(12px) saturate(120%); -webkit-backdrop-filter: blur(12px) saturate(120%); }
.brand-mark::after { content: ""; position: absolute; inset: 5px; background: currentColor; -webkit-mask: url('/icons/chart-no-axes-combined.svg') center / contain no-repeat; mask: url('/icons/chart-no-axes-combined.svg') center / contain no-repeat; }
.brand-word { color: var(--ink); font-size: 24px; font-weight: 740; letter-spacing: -.035em; }

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  cursor: pointer;
  transition: background var(--motion-standard) var(--ease), border-color var(--motion-standard) var(--ease), transform var(--motion-fast) var(--ease);
}

.icon-button:hover { background: var(--surface-strong); border-color: var(--line-strong); }
.icon-button:active { transform: scale(.96); }

.primary-button,
.secondary-button,
.demo-button,
.text-button {
  min-height: 50px;
  border-radius: 15px;
  border: 0;
  cursor: pointer;
  font-weight: 680;
  transition: transform var(--motion-fast) var(--ease), background var(--motion-standard) var(--ease), border-color var(--motion-standard) var(--ease), opacity var(--motion-standard);
}

.primary-button {
  padding: 0 9px 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #f7fffb;
  background: var(--button-bg);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--button-bg) 24%, transparent);
}

.primary-button:hover { background: color-mix(in srgb, var(--button-bg) 86%, var(--ink)); transform: translateY(-1px); }
.primary-button:active { transform: translateY(0) scale(.985); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.primary-button b { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 10px; background: rgba(255, 255, 255, .15); font-size: 20px; }
.primary-button b .ui-icon { width: 18px; height: 18px; }
.primary-button--compact { min-height: 44px; padding-left: 17px; font-size: 14px; }
.primary-button--compact b { width: 30px; height: 30px; font-size: 17px; }

.secondary-button { min-height: 44px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line-strong); color: var(--ink); background: transparent; font-size: 14px; }
.secondary-button .ui-icon { width: 16px; height: 16px; }
.secondary-button:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-wash); }
.demo-button { width: 100%; min-height: 44px; color: var(--accent-strong); background: transparent; font-size: 14px; }
.demo-button:hover { background: var(--accent-wash); }
.text-button { min-height: 44px; padding: 0 16px; color: var(--ink-soft); background: transparent; }
.text-button:hover { color: var(--ink); background: var(--bg-soft); }
.secondary-button:active, .demo-button:active, .text-button:active { transform: scale(.985); }
.secondary-button:disabled, .demo-button:disabled, .text-button:disabled { opacity: .55; cursor: wait; transform: none; }

/* Authentication */
.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(470px, .85fr); background: var(--bg); }
.auth-story { position: relative; overflow: hidden; min-height: 100dvh; padding: clamp(34px, 4vw, 68px) clamp(34px, 5vw, 90px); display: flex; flex-direction: column; background: radial-gradient(circle at 82% 15%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 29%), linear-gradient(145deg, var(--bg-soft), var(--bg) 58%); }
.auth-story::before { content: ""; position: absolute; width: 470px; height: 470px; right: -230px; bottom: -200px; border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); border-radius: 50%; box-shadow: 0 0 0 68px color-mix(in srgb, var(--accent) 4%, transparent), 0 0 0 138px color-mix(in srgb, var(--accent) 3%, transparent); }
.auth-story > * { position: relative; z-index: 1; }
.brand-lockup--auth .brand-mark { width: 48px; height: 38px; border-radius: 13px; }
.brand-lockup--auth .brand-word { font-size: 28px; }
.auth-copy { width: min(690px, 100%); margin-top: auto; padding-top: clamp(48px, 8vh, 96px); }
.eyebrow, .modal-kicker, .chart-kicker, .topbar__overline { color: var(--ink-soft); font-size: 12px; font-weight: 740; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-strong); }
.eyebrow i { width: 18px; height: 2px; border-radius: 1px; background: currentColor; }
.auth-copy h1 { max-width: 760px; margin: 20px 0 18px; font-size: clamp(50px, 5.2vw, 84px); line-height: .98; letter-spacing: -.065em; font-weight: 690; }
.auth-copy h1 span { color: var(--accent); }
.auth-copy p { max-width: 610px; margin: 0; color: var(--ink-soft); font-size: clamp(17px, 1.2vw, 20px); line-height: 1.65; }
.trend-specimen { width: min(720px, 100%); margin-top: clamp(34px, 5vh, 58px); padding: 24px 26px 18px; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: var(--radius-xl); background: color-mix(in srgb, var(--surface) 82%, transparent); box-shadow: var(--shadow-soft); backdrop-filter: blur(12px); }
.trend-specimen__top { display: flex; align-items: flex-start; justify-content: space-between; }
.trend-specimen__top div { display: grid; gap: 5px; }
.trend-specimen__top span { color: var(--ink-soft); font-size: 13px; }
.trend-specimen__top strong { font-size: clamp(25px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -.04em; }
.trend-specimen__top small { color: var(--ink-soft); font-size: .55em; font-weight: 600; }
.trend-specimen__top .change-pill { padding: 6px 10px; border-radius: 99px; color: var(--positive); background: var(--accent-wash); font-weight: 750; }
.trend-specimen svg { width: 100%; height: clamp(116px, 19vh, 190px); margin-top: 9px; color: var(--accent); overflow: visible; }
.specimen-line { fill: none; stroke: currentColor; stroke-width: 4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.trend-specimen__legend { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: 11px; }
.trust-row { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 28px; color: var(--ink-soft); font-size: 12px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.auth-panel { position: relative; min-height: 100dvh; padding: 30px clamp(28px, 5vw, 78px); display: grid; place-items: center; border-left: 1px solid var(--line); background: var(--surface); }
.auth-theme { position: absolute; top: 30px; right: 30px; z-index: 2; }
.theme-icon { font-size: 20px; }
.auth-card { width: min(420px, 100%); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 34px; padding: 5px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg-soft); }
.auth-tab { min-height: 44px; border: 0; border-radius: 11px; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 14px; font-weight: 660; transition: color var(--motion-standard), background var(--motion-standard), transform var(--motion-fast); }
.auth-tab:hover { color: var(--ink); }
.auth-tab:active { transform: scale(.985); }
.auth-tab.is-active { color: var(--ink); background: var(--surface-raised); box-shadow: var(--shadow-soft); }
.auth-form { display: grid; gap: 18px; }
.form-heading { margin-bottom: 8px; }
.form-heading h2 { margin: 0 0 7px; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.1; letter-spacing: -.045em; }
.form-heading p { margin: 0; color: var(--ink-soft); }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { color: var(--ink-soft); font-size: 13px; font-weight: 630; }
.field small { color: var(--ink-faint); font-size: 11px; }
.field input, .field select, .input-prefix { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface-raised); transition: border-color .2s, box-shadow .2s; }
.field input, .field select { padding: 0 15px; }
.field input::placeholder { color: var(--ink-faint); }
.field input:hover, .field select:hover, .input-prefix:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .input-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); outline: 0; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 60px; }
.password-field .password-toggle { position: absolute; right: 4px; top: 50%; width: 44px; height: 44px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 10px; color: var(--ink-faint); background: transparent; cursor: pointer; }
.password-field .password-toggle:hover { color: var(--ink); background: var(--bg-soft); }
.password-field .password-toggle:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 1px; }
.password-field .password-toggle .ui-icon { width: 18px; height: 18px; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.consent-check input { appearance: none; box-sizing: border-box; width: 44px; height: 44px; flex: none; margin: -1px 0 -1px -12px; border: 12px solid transparent; border-radius: 14px; outline: 1px solid var(--line); outline-offset: -12px; background: var(--surface-2) padding-box; cursor: pointer; }
.consent-check input:checked { background: var(--accent) url('/icons/check.svg') center / 15px 15px no-repeat padding-box; }
.consent-check input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: -9px; }
.consent-check a, .auth-inline-note a { display: inline-block; min-height: 44px; padding-block: 12px; margin-block: -12px; color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.auth-inline-note { color: var(--ink-faint); font-size: 11px; line-height: 1.45; }
.auth-forgot { justify-self: start; margin-top: -8px; padding: 0; border: 0; color: var(--accent-strong); background: transparent; cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.auth-forgot:hover { color: var(--ink); }
.input-prefix { display: flex; align-items: center; padding-left: 14px; }
.input-prefix b { color: var(--accent); font-weight: 730; }
.input-prefix input { min-height: 48px; padding-left: 6px; border: 0; background: transparent; box-shadow: none !important; outline: 0 !important; }
.auth-note { margin-top: 28px; padding-top: 24px; display: flex; gap: 11px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 12px; }
.auth-note span { width: 24px; height: 24px; display: grid; place-items: center; flex: none; border-radius: 8px; color: var(--accent); background: var(--accent-wash); }
.auth-note p { margin: 0; }

/* Application shell */
.app-shell { min-height: 100dvh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar { height: 100dvh; position: sticky; top: 0; padding: 24px 18px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); z-index: 20; }
.sidebar__header { height: 50px; padding: 0 7px; display: flex; align-items: center; justify-content: space-between; }
.sidebar-close { display: none; }
.profile-card { width: 100%; margin: 24px 0; padding: 10px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink); text-align: left; background: var(--bg-soft); cursor: pointer; font: inherit; }
.profile-card:hover { border-color: var(--line-strong); background: var(--surface-strong); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #f3fff9; background: var(--accent-strong); font-size: 14px; font-weight: 750; }
.profile-card > span:nth-child(2) { min-width: 0; display: grid; }
.profile-card strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.profile-card small { color: var(--ink-faint); font-size: 11px; }
.profile-card > i { width: 16px; height: 16px; color: var(--ink-faint); }
.stat-nav { min-height: 0; flex: 1; overflow-y: auto; scrollbar-width: thin; }
.nav-section + .nav-section { margin-top: 24px; }
.nav-section__title { min-height: 32px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-faint); font-size: 10px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.nav-section__title button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 11px; color: var(--accent); background: transparent; cursor: pointer; }
.nav-section__title button .ui-icon { width: 18px; height: 18px; }
.nav-section__title button:hover { background: var(--accent-wash); }
.nav-section__title button:active { transform: scale(.94); }
.stat-list { display: grid; gap: 4px; }
.stat-list-item, .shared-person__header { width: 100%; min-height: 46px; padding: 7px 9px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 0; border-radius: 12px; color: var(--ink-soft); text-align: left; background: transparent; cursor: pointer; }
.stat-list-item:hover { color: var(--ink); background: var(--bg-soft); }
.stat-list-item.is-active { color: var(--ink); background: var(--accent-wash); }
.stat-list-item__icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--accent-strong); background: var(--surface-raised); font-size: 15px; font-weight: 740; box-shadow: inset 0 0 0 1px var(--line); }
.stat-list-item__icon .ui-icon { width: 16px; height: 16px; }
.stat-list-item.is-active .stat-list-item__icon { color: #f8fffc; background: var(--accent-strong); box-shadow: none; }
.stat-list-item__copy { min-width: 0; display: grid; }
.stat-list-item__copy strong { overflow: hidden; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.stat-list-item__copy small { color: var(--ink-faint); font-size: 10px; }
.stat-list-item > i { width: 15px; height: 15px; color: var(--ink-faint); }
.shared-person { display: grid; }
.shared-person__header { cursor: default; min-height: 38px; grid-template-columns: 26px minmax(0, 1fr); font-size: 12px; font-weight: 650; }
.shared-person__header .avatar { width: 26px; height: 26px; border-radius: 8px; font-size: 10px; }
.shared-person .stat-list-item { padding-left: 23px; }
.sidebar__footer { padding-top: 14px; display: grid; gap: 3px; border-top: 1px solid var(--line); }
.sidebar-action { width: 100%; min-height: 44px; padding: 0 9px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 0; border-radius: 11px; color: var(--ink-soft); text-align: left; background: transparent; cursor: pointer; font-size: 12px; }
.sidebar-action:hover { color: var(--ink); background: var(--bg-soft); }
.sidebar-action__icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--accent); background: var(--accent-wash); }
.sidebar-action__icon .ui-icon { width: 15px; height: 15px; }
.sidebar-action kbd { padding: 3px 6px; border: 0; border-radius: 6px; color: var(--ink-faint); background: var(--bg-soft); font: inherit; font-size: 9px; }
.sidebar-backdrop { display: none; }
.workspace { min-width: 0; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { height: 88px; padding: 0 clamp(24px, 3.5vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); }
.topbar__identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.topbar__identity > div { min-width: 0; }
.topbar__overline { display: block; margin-bottom: 2px; font-size: 9px; }
.topbar h1 { overflow: hidden; margin: 0; font-size: clamp(21px, 1.7vw, 27px); line-height: 1.1; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.menu-button { display: none; }
.sync-status { display: inline-flex; align-items: center; gap: 7px; margin-right: 6px; color: var(--ink-faint); font-size: 11px; white-space: nowrap; }
.sync-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 4px color-mix(in srgb, var(--positive) 13%, transparent); }
.sync-status.is-syncing i { background: var(--warning); animation: pulse 1s infinite alternate; }
.sync-status.is-error i { background: var(--negative); }
@keyframes pulse { to { opacity: .35; } }
.workspace__content { flex: 1; min-height: 0; padding: clamp(24px, 3.5vw, 54px); }
.empty-state { height: calc(100dvh - 88px - clamp(48px, 7vw, 108px)); min-height: 520px; padding: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-xl); background: radial-gradient(circle at 50% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 37%), var(--surface); overflow: hidden; }
.empty-state__visual { width: min(420px, 80vw); position: relative; margin-bottom: 24px; }
.empty-state__visual svg { display: block; width: 100%; height: 190px; overflow: visible; }
.ghost-line { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--accent) 25%, transparent)); }
.empty-state__visual circle { fill: var(--surface); stroke: var(--accent); stroke-width: 4; vector-effect: non-scaling-stroke; }
.floating-value { position: absolute; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--tag-ink); background: var(--surface-raised); box-shadow: var(--shadow-soft); font-size: 12px; font-weight: 750; }
.floating-value--one { left: 21%; top: 12%; }
.floating-value--two { right: 7%; bottom: 21%; }
.empty-state h2 { margin: 17px 0 12px; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -.05em; }
.empty-state p { max-width: 540px; margin: 0 0 25px; color: var(--ink-soft); font-size: 16px; }
.stat-view { max-width: 1460px; margin: 0 auto; display: grid; gap: clamp(18px, 2vw, 28px); }
.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.metric-card { min-width: 0; min-height: 132px; padding: clamp(18px, 1.8vw, 25px); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.metric-card--primary { border-color: color-mix(in srgb, var(--accent) 34%, var(--line)); background: linear-gradient(145deg, var(--accent-wash), var(--surface)); }
.metric-card span { color: var(--ink-soft); font-size: 12px; }
.metric-card strong { overflow: hidden; margin: auto 0 3px; font-size: clamp(22px, 2vw, 32px); line-height: 1.05; letter-spacing: -.045em; text-overflow: ellipsis; white-space: nowrap; }
#range-value { font-size: clamp(20px, 1.65vw, 28px); }
.metric-card small { color: var(--ink-faint); font-size: 10px; }
.metric-card .is-positive { color: var(--positive); }
.metric-card .is-negative { color: var(--negative); }
.chart-card { min-height: min(620px, calc(100dvh - 88px - clamp(48px, 7vw, 108px) - 160px)); padding: clamp(20px, 2.2vw, 34px); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-soft); }
.chart-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.chart-card__header h2 { margin: 3px 0 0; font-size: clamp(23px, 2vw, 31px); line-height: 1.15; letter-spacing: -.04em; }
.chart-kicker { font-size: 9px; }
.period-switch { padding: 4px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.period-switch button { min-width: 45px; height: 32px; padding: 0 10px; border: 0; border-radius: 9px; color: var(--ink-faint); background: transparent; cursor: pointer; font-size: 11px; font-weight: 680; }
.period-switch button.is-active { color: var(--ink); background: var(--surface-raised); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.chart-wrap { min-height: 300px; flex: 1; position: relative; margin: 22px 0 12px; }
.chart-wrap svg { width: 100%; height: 100%; min-height: 300px; overflow: visible; color: var(--accent); }
.chart-grid-line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-grid-text { fill: var(--ink-faint); font-family: var(--font); font-size: 10px; }
.chart-line { fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 6px 10px color-mix(in srgb, var(--accent) 28%, transparent)); }
.chart-dot { fill: var(--surface); stroke: currentColor; stroke-width: 3; vector-effect: non-scaling-stroke; }
.chart-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink-faint); text-align: center; }
.chart-empty strong { color: var(--ink-soft); font-size: 15px; }
.chart-empty span { margin-top: 4px; font-size: 12px; }
.chart-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink-faint); font-size: 10px; }
.privacy-badge { display: inline-flex; align-items: center; gap: 6px; }
.privacy-badge i { width: 14px; height: 14px; color: var(--accent); }

/* Ненавязчивое предложение Pro: остаётся частью потока и не закрывает рабочую область. */
.pro-promo { max-width: 1460px; margin: clamp(18px, 2vw, 28px) auto 0; padding: 17px 18px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); border-radius: 18px; color: var(--ink); background: color-mix(in srgb, var(--accent-wash) 72%, var(--surface)); box-shadow: var(--shadow-soft); animation: pro-promo-in .35s var(--ease) both; }
@keyframes pro-promo-in { from { opacity: 0; transform: translateY(7px); } }
.pro-promo__mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--button-bg); background: var(--surface-raised); }
.pro-promo__mark .ui-icon { width: 18px; height: 18px; }
.pro-promo__copy { min-width: 0; }
.pro-promo__eyebrow { color: var(--accent-strong); font-size: 10px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.pro-promo h2 { margin: 2px 0 2px; font-size: 15px; letter-spacing: -.02em; }
.pro-promo p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.pro-promo__link { min-height: 36px; padding: 0 11px; border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line)); border-radius: 10px; color: var(--accent-strong); background: transparent; cursor: pointer; font-size: 12px; font-weight: 740; white-space: nowrap; }
.pro-promo__link span { margin-left: 4px; font-size: 16px; }
.pro-promo__link:hover { border-color: var(--accent); background: var(--surface-raised); }
.pro-promo__close { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; color: var(--ink-faint); background: transparent; cursor: pointer; }
.pro-promo__close:hover { color: var(--ink); background: var(--surface-raised); }
.pro-promo__close .ui-icon { width: 15px; height: 15px; }

/* Dialogs */
.modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 18px; border: 0; color: var(--ink); background: transparent; }
.modal::backdrop { background: rgba(7, 15, 13, .62); backdrop-filter: blur(7px); }
.modal[open] { display: grid; place-items: center; animation: backdrop-in .22s ease both; }
.modal-card { width: min(570px, 100%); max-height: calc(100dvh - 36px); padding: clamp(22px, 3vw, 34px); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-xl); color: var(--ink); background: var(--surface-raised); box-shadow: var(--shadow); animation: modal-in .28s var(--ease) both; }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal-card__header { margin-bottom: 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-card__header h2 { margin: 4px 0 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.045em; }
.modal-close { flex: none; }
.modal-close .ui-icon { width: 19px; height: 19px; }
.modal-kicker { color: var(--accent); font-size: 9px; }
/* Kicker labels are small but still ordinary text; keep the light theme above 4.5:1. */
html:not([data-theme="dark"]) .modal-kicker { color: var(--accent-strong); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field--wide { grid-column: 1 / -1; }
.modal-hint { margin: 20px 0 0; padding: 12px 14px; display: flex; gap: 9px; border-radius: 12px; color: var(--ink-faint); background: var(--bg-soft); font-size: 11px; }
html:not([data-theme="dark"]) .modal-hint { color: #566c64; }
.modal-hint i { width: 16px; height: 16px; margin-top: 1px; color: var(--accent); }
.modal-actions { margin-top: 24px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.modal-card--point { width: min(500px, 100%); }
.big-number-field { margin: 8px 0 22px; padding: 8px 18px; display: flex; align-items: baseline; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-soft); }
.big-number-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); }
.big-number-field input { width: 100%; min-width: 0; height: 82px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: clamp(38px, 7vw, 58px); font-weight: 680; letter-spacing: -.055em; }
.big-number-field input::placeholder { color: var(--ink-faint); }
.big-number-field span { color: var(--accent); font-weight: 720; }
.permission-card { margin-bottom: 20px; padding: 15px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: center; gap: 12px; border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line)); border-radius: 16px; background: var(--accent-wash); }
.permission-card__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #f7fffb; background: var(--button-bg); }
.permission-card__icon .ui-icon { width: 19px; height: 19px; }
.permission-card > span:nth-child(2) { display: grid; }
.permission-card strong { font-size: 13px; }
.permission-card small { color: var(--ink-soft); font-size: 11px; }
.permission-card > i { width: 18px; height: 18px; color: var(--accent-strong); }
.access-list { margin-top: 24px; display: grid; gap: 8px; }
.access-list:empty { display: none; }
.access-list::before { content: "Сейчас имеют доступ"; margin-bottom: 3px; color: var(--ink-faint); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.access-person { min-height: 52px; padding: 7px 8px 7px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; }
.access-person span { display: grid; }
.access-person strong { font-size: 12px; }
.access-person small { color: var(--ink-faint); font-size: 10px; }
.access-person button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 9px; color: var(--negative); background: color-mix(in srgb, var(--negative) 9%, transparent); cursor: pointer; font-size: 10px; font-weight: 700; }
.share-result { margin-top: 18px; padding: 14px; display: grid; gap: 10px; border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line)); border-radius: 15px; background: var(--accent-wash); }
.share-result.is-hidden { display: none; }
.share-result > span { color: var(--ink); font-size: 11px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.share-result > small { color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.share-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.share-link-row input { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-control); outline: 0; color: var(--ink); background: var(--surface-raised); font-size: 11px; }
.share-link-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent); }
.share-link-row button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); color: var(--ink); background: var(--surface-raised); cursor: pointer; font-size: 11px; font-weight: 720; transition: border-color var(--motion-fast), transform var(--motion-fast); }
.share-link-row button:hover { border-color: var(--accent); }
.share-link-row button:active { transform: scale(.98); }
.modal-card--invite { width: min(500px, 100%); text-align: center; }
.invite-mark { width: 64px; height: 64px; margin: 0 auto 19px; display: grid; place-items: center; border-radius: 22px; color: #f7fffb; background: var(--accent-strong); }
.invite-mark .brand-mark { width: 39px; height: 31px; }
.modal-card--invite h2 { margin: 0 0 8px; font-size: 29px; letter-spacing: -.04em; }
.modal-card--invite p { margin: 0 0 22px; color: var(--ink-soft); }
.modal-card--invite .primary-button { width: 100%; }
.modal-card--invite .text-button { margin-top: 6px; }
.modal-card--pro { width: min(720px, 100%); }
.pro-modal__lead { max-width: 610px; margin: -8px 0 22px; color: var(--ink-soft); }
.pro-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pro-benefits > div { min-width: 0; padding: 14px; display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg-soft); }
.pro-benefits .ui-icon { width: 18px; height: 18px; color: var(--accent); }
.pro-benefits span { display: grid; gap: 3px; }
.pro-benefits strong { font-size: 12px; }
.pro-benefits small { color: var(--ink-soft); font-size: 10px; line-height: 1.45; }
.pro-pricing { margin-top: 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.pro-pricing > div { min-width: 0; padding: 11px 9px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.pro-pricing > div.pro-pricing__featured { border-color: color-mix(in srgb, var(--accent) 58%, var(--line)); background: var(--accent-wash); }
.pro-pricing span { color: var(--ink-soft); font-size: 10px; font-weight: 750; }
.pro-pricing strong { font-size: 15px; letter-spacing: -.03em; white-space: nowrap; }
.pro-pricing del { margin-right: 3px; color: var(--ink-faint); font-size: 10px; font-weight: 500; }
.pro-pricing em { color: var(--ink-faint); font-size: 9px; font-style: normal; font-weight: 500; }
.pro-pricing small { min-height: 27px; color: var(--ink-faint); font-size: 9px; line-height: 1.35; }
.pro-modal__note { margin: 16px 0 -8px; color: var(--ink-soft); font-size: 11px; }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: grid; gap: 10px; pointer-events: none; }
.toast { width: min(360px, calc(100vw - 32px)); padding: 14px 16px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface-raised); box-shadow: var(--shadow); animation: toast-in .3s var(--ease) both; }
.toast__icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--accent-strong); background: var(--accent-wash); font-style: normal; }
.toast__icon .ui-icon { width: 16px; height: 16px; }
.toast strong { display: block; font-size: 12px; }
.toast > div > span { color: var(--ink-soft); font-size: 11px; }
.toast.is-error .toast__icon { color: var(--negative); background: color-mix(in srgb, var(--negative) 10%, transparent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
  :root { --sidebar-width: 258px; }
  .topbar { padding-inline: 28px; }
  .workspace__content { padding: 28px; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 112px; }
  .chart-card { min-height: 480px; }
}

@media (max-width: 960px) {
  .auth-layout { grid-template-columns: minmax(0, 1fr) 420px; }
  .auth-story { padding: 34px; }
  .auth-copy h1 { font-size: clamp(46px, 6vw, 64px); }
  .trend-specimen { padding: 18px; }
  .app-shell { display: block; }
  .sidebar { width: min(320px, 88vw); position: fixed; left: 0; top: 0; padding-top: calc(24px + env(safe-area-inset-top)); padding-bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-104%); transition: transform .28s var(--ease); box-shadow: var(--shadow); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close { display: grid; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 15; background: rgba(6, 13, 11, .5); backdrop-filter: blur(3px); }
  .sidebar-backdrop.is-open { display: block; }
  .menu-button { width: 44px; display: grid; flex: none; }
  .topbar { height: calc(74px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); gap: 10px; }
  .topbar__overline { display: none; }
  .topbar h1 { font-size: 19px; }
  .topbar__actions { gap: 8px; }
  .sync-status { width: 20px; margin: 0 4px 0 0; color: var(--positive); }
  .sync-status span { display: none; }
  .sync-status i { width: 18px; height: 18px; border-radius: 0; background: currentColor; box-shadow: none; -webkit-mask: url('/icons/circle-check.svg') center / contain no-repeat; mask: url('/icons/circle-check.svg') center / contain no-repeat; }
  .sync-status.is-syncing { color: var(--warning); }
  .sync-status.is-syncing i { -webkit-mask-image: url('/icons/loader-circle.svg'); mask-image: url('/icons/loader-circle.svg'); animation: spin .8s linear infinite; }
  .sync-status.is-error { color: var(--negative); }
  .sync-status.is-error i { -webkit-mask-image: url('/icons/circle-alert.svg'); mask-image: url('/icons/circle-alert.svg'); }
  .icon-button, .secondary-button, .topbar .primary-button--compact { width: var(--touch-target); height: var(--touch-target); min-height: var(--touch-target); }
  .secondary-button { padding: 0; }
  .secondary-button span { display: none; }
  .secondary-button .ui-icon { width: 20px; height: 20px; }
  .topbar .primary-button--compact { padding: 0; justify-content: center; box-shadow: none; }
  .topbar .primary-button--compact span { display: none; }
  .topbar .primary-button--compact b { background: transparent; }
  .topbar .primary-button--compact b .ui-icon { width: 21px; height: 21px; }
  .period-switch button { height: var(--touch-target); }
  .auth-tab { min-height: var(--touch-target); }
  .nav-section__title button, .sidebar-action, .stat-list-item { min-height: var(--touch-target); }
  .nav-section__title button { width: var(--touch-target); height: var(--touch-target); }
  .access-person button, .share-link-row input, .share-link-row button { min-height: var(--touch-target); }
}

@media (max-width: 760px) {
  .auth-layout { display: block; }
  .auth-story { min-height: auto; padding: 24px 22px 34px; }
  .auth-story::before { display: none; }
  .brand-lockup--auth .brand-mark { width: 42px; height: 34px; }
  .brand-lockup--auth .brand-word { font-size: 24px; }
  .auth-copy { padding-top: 44px; }
  .auth-copy h1 { margin-block: 14px 12px; font-size: clamp(40px, 11.5vw, 58px); line-height: 1.02; }
  .auth-copy p { font-size: 15px; }
  .trend-specimen { margin-top: 28px; border-radius: 22px; }
  .trend-specimen svg { height: 122px; }
  .trust-row { padding-top: 20px; }
  .auth-panel { min-height: auto; padding: 56px 22px 34px; border-top: 1px solid var(--line); border-left: 0; }
  .auth-theme { top: 16px; right: 18px; }
  .auth-card { width: min(480px, 100%); }
  .workspace__content { padding: 16px; }
  .empty-state { height: calc(100dvh - 106px); min-height: 500px; padding: 24px 18px; border-radius: 23px; }
  .empty-state__visual { width: min(350px, 92vw); margin-bottom: 12px; }
  .empty-state__visual svg { height: 150px; }
  .empty-state h2 { font-size: clamp(29px, 8.5vw, 40px); }
  .empty-state p { font-size: 14px; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric-card { min-height: 100px; padding: 15px; border-radius: 17px; }
  .metric-card strong { font-size: clamp(20px, 6vw, 27px); }
  .metric-card--quiet { display: none; }
  .metric-strip .metric-card:first-child { grid-column: 1 / -1; }
  .chart-card { min-height: calc(100dvh - 74px - 32px); padding: 19px 15px; border-radius: 22px; }
  .chart-card__header { align-items: stretch; flex-direction: column; }
  .period-switch { align-self: stretch; }
  .period-switch button { min-width: 0; flex: 1; }
  .chart-wrap { min-height: 260px; margin-top: 15px; }
  .chart-wrap svg { min-height: 260px; }
  .privacy-badge { display: none; }
  .modal { padding: 10px; align-items: end !important; }
  .modal-card { width: 100%; max-height: calc(100dvh - 10px); padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 15px 15px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field--wide { grid-column: auto; }
  .modal-actions { align-items: stretch; flex-direction: column-reverse; }
  .modal-actions .primary-button { width: 100%; }
  .share-link-row { grid-template-columns: 1fr; }
  .share-link-row button { width: 100%; }
  .pro-promo { grid-template-columns: 34px minmax(0, 1fr) 30px; gap: 10px; padding: 14px; border-radius: 16px; }
  .pro-promo__mark { width: 34px; height: 34px; border-radius: 10px; }
  .pro-promo__link { justify-self: start; margin-top: 9px; }
  .pro-promo__copy { grid-column: 2; grid-row: 1; }
  .pro-promo__close { grid-column: 3; grid-row: 1; }
  .pro-benefits { grid-template-columns: 1fr; }
  .pro-pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pro-pricing > div:last-child { grid-column: 1 / -1; }
  .toast-region { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left)); }
  .toast { width: 100%; }
}

@media (max-width: 400px) {
  .auth-story { padding-inline: 17px; }
  .auth-copy h1 { font-size: 39px; }
  .trend-specimen { padding: 15px; }
  .trust-row { display: grid; gap: 9px; }
  .auth-panel { padding-inline: 17px; }
  .auth-tabs { margin-bottom: 28px; }
  .workspace__content { padding: 11px; }
  .empty-state { min-height: 480px; padding-inline: 15px; }
  .empty-state__visual { width: 295px; }
  .empty-state h2 { font-size: 29px; }
  .metric-strip { gap: 7px; }
  .metric-card { padding: 13px; }
  .metric-card span { font-size: 11px; }
  .chart-card { padding-inline: 13px; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .auth-story { padding-block: 26px; }
  .auth-copy { padding-top: 26px; }
  .auth-copy h1 { font-size: clamp(44px, 4.5vw, 66px); }
  .trend-specimen { margin-top: 24px; padding-block: 16px 12px; }
  .trend-specimen svg { height: 100px; }
  .trust-row { padding-top: 16px; }
  .auth-tabs { margin-bottom: 22px; }
  .auth-form { gap: 12px; }
  .auth-note { margin-top: 18px; padding-top: 16px; }
}

.install-help { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.install-help strong { display: block; margin-bottom: 6px; }
.install-help p { margin: 0 0 14px; color: var(--ink-faint); line-height: 1.55; font-size: 13px; }
html:not([data-theme="dark"]) .install-help p { color: #566c64; }
.modal-card--install { width: min(620px, 100%); }
.install-steps { display: grid; gap: 9px; margin: 18px 0; }
.install-steps p { display: grid; gap: 4px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--bg-soft); }
.install-steps strong { font-size: 13px; }
.install-steps span { color: var(--ink-faint); font-size: 12px; line-height: 1.5; }
html:not([data-theme="dark"]) .install-steps span { color: #566c64; }
.modal-card--account { width: min(620px, 100%); }
.account-summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--bg-soft); }
.account-summary > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.account-summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-summary small, .account-security small, .sessions-heading small { color: var(--ink-faint); font-size: 11px; }
.plan-pill { padding: 6px 9px; border-radius: 99px; color: var(--tag-ink); background: var(--accent-wash); font-size: 10px; font-weight: 760; }
.account-security { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.account-security > span { display: grid; gap: 3px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.account-security strong { font-size: 11px; }
.account-security .ui-icon { width: 16px; height: 16px; color: var(--accent); }
.sessions-heading { display: flex; justify-content: space-between; margin-top: 25px; }
.sessions-heading > div { display: grid; gap: 3px; }
.session-list { display: grid; gap: 8px; margin-top: 10px; }
.session-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; }
.session-item > span { min-width: 0; display: grid; gap: 3px; }
.session-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.session-item small, .session-list__empty { color: var(--ink-faint); font-size: 10px; }
.session-item__revoke { min-height: 32px; color: var(--negative); }
.session-list__empty { margin: 0; padding: 18px; border: 1px dashed var(--line); border-radius: 13px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
