:root {
  color-scheme: light;
  --bg: #f4f5f8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #fff;
  --surface-soft: rgba(255, 255, 255, 0.56);
  --text: #151720;
  --muted: #6d7180;
  --accent: #5b5df0;
  --accent-2: #a667ff;
  --accent-contrast: #fff;
  --border: rgba(21, 23, 32, 0.1);
  --border-strong: rgba(21, 23, 32, 0.18);
  --success: #27a974;
  --warning: #e89d34;
  --danger: #dd5d6e;
  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 36px;
  --shadow: 0 20px 50px rgba(25, 29, 51, 0.09);
  --shadow-hover: 0 28px 62px rgba(25, 29, 51, 0.15);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font);
  --content-width: 1480px;
  --page-pad: clamp(18px, 4vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  transition: background-color .3s ease, color .3s ease;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 48%, transparent);
  outline-offset: 3px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 16px; background: var(--text); color: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.ambient { position: fixed; z-index: -2; width: 44vw; height: 44vw; border-radius: 50%; pointer-events: none; filter: blur(8px); opacity: .25; }
.ambient-one { top: -24vw; left: -12vw; background: var(--accent); }
.ambient-two { top: 20vh; right: -30vw; background: var(--accent-2); }
.ambient-three { bottom: -35vw; left: 28vw; background: color-mix(in srgb, var(--accent) 45%, #21d6b2); }

.surface, .shell-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 18px;
  width: min(calc(100% - 36px), var(--content-width));
  min-height: 70px;
  margin: 18px auto 0;
  padding: 10px 12px 10px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--accent) 28%, transparent);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.08em;
}
.brand-mark.large { width: 54px; height: 54px; border-radius: 18px; font-size: 1.25rem; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font: 800 1rem/1 var(--font-display); letter-spacing: .12em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; justify-content: center; gap: 5px; }
.main-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 13px; border-radius: var(--radius-xs); color: var(--muted); font-size: .88rem; font-weight: 650; transition: .25s var(--ease); }
.main-nav a:hover { background: var(--surface-soft); color: var(--text); transform: translateY(-1px); }
.main-nav a.is-active { background: var(--text); color: var(--bg); }
.nav-icon { display: none; font: 800 .62rem/1 var(--font-display); letter-spacing: .04em; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.style-picker-label { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; }
.style-picker { max-width: 170px; min-height: 42px; padding: 0 34px 0 13px; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--surface-soft); color: var(--text); font-weight: 650; }
.avatar-button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, var(--surface-strong)); color: var(--text); border: 1px solid var(--border); font-size: .75rem; font-weight: 850; transition: .25s var(--ease); }
.avatar-button:hover { transform: rotate(4deg) scale(1.04); }

#main-content { position: relative; z-index: 1; }
#main-content.page-enter .page { animation: page-in .62s var(--ease) both; }
.page { width: min(calc(100% - (var(--page-pad) * 2)), var(--content-width)); min-height: calc(100vh - 190px); margin: 0 auto; padding: clamp(48px, 7vw, 96px) 0 60px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin-top: 0; font-family: var(--font-display); }
h1 { margin-bottom: 15px; font-size: clamp(2.3rem, 5vw, 5.6rem); line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 8px; font-size: clamp(1.28rem, 2vw, 1.8rem); line-height: 1.08; letter-spacing: -.035em; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.page-heading > div:first-child { max-width: 830px; }
.page-heading h1 { margin-bottom: 12px; font-size: clamp(2.5rem, 5.2vw, 5rem); }
.page-heading > div > p:last-child { max-width: 700px; margin: 0; color: var(--muted); font-size: clamp(.98rem, 1.6vw, 1.15rem); }

.button-row { display: flex; flex-wrap: wrap; gap: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-xs); font-weight: 800; transition: transform .25s var(--ease), box-shadow .25s ease, background .25s ease; }
.button:hover { transform: translateY(-3px); }
.button.primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 12px 25px color-mix(in srgb, var(--accent) 27%, transparent); }
.button.secondary { border-color: var(--border-strong); background: var(--surface-soft); color: var(--text); }
.button.compact { min-height: 42px; padding: 0 15px; font-size: .82rem; }
.icon-button, .row-action, .link-button, .text-button { border: 0; background: none; color: inherit; }
.icon-button { width: 38px; height: 38px; border-radius: 50%; color: var(--muted); }
.icon-button:hover { background: var(--surface-soft); }
.text-button { padding: 8px 0; color: var(--accent); font-weight: 850; }
.text-button span { display: inline-block; transition: transform .25s ease; }
.text-button:hover span { transform: translateX(5px); }

.hero { position: relative; min-height: 550px; padding: clamp(34px, 5vw, 76px); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); align-items: center; gap: 34px; }
.hero::before { content: ""; position: absolute; width: 380px; height: 380px; right: 8%; top: 15%; border-radius: 50%; background: color-mix(in srgb, var(--accent) 13%, transparent); filter: blur(8px); }
.hero-copy { position: relative; z-index: 2; max-width: 760px; }
.hero h1 span { color: var(--accent); }
.hero-lead { max-width: 670px; margin: 0 0 30px; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.25rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; color: var(--muted); font-size: .78rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 14%, transparent); }
.hero-visual { position: relative; min-height: 370px; display: grid; place-items: center; }
.signal-card { position: absolute; z-index: 2; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-strong); box-shadow: var(--shadow-hover); }
.signal-card span, .signal-card small { display: block; color: var(--muted); font-size: .78rem; }
.signal-card strong { display: block; margin: 5px 0; font: 850 clamp(1.8rem, 4vw, 3.6rem)/1 var(--font-display); letter-spacing: -.055em; }
.signal-main { width: min(90%, 390px); min-height: 250px; transform: rotate(-3deg); }
.signal-float { right: 1%; bottom: 8%; width: 150px; transform: rotate(5deg); animation: float 5s ease-in-out infinite; }
.signal-float strong { font-size: 2rem; color: var(--accent); }
.spark-bars { height: 100px; margin-top: 25px; display: flex; align-items: end; gap: 7px; }
.spark-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--accent); animation: bar-rise .8s var(--ease) both; }
.spark-bars i:nth-child(1) { height: 28%; opacity: .35; }.spark-bars i:nth-child(2) { height: 45%; opacity: .45; }.spark-bars i:nth-child(3) { height: 38%; opacity: .55; }.spark-bars i:nth-child(4) { height: 67%; opacity: .65; }.spark-bars i:nth-child(5) { height: 55%; opacity: .75; }.spark-bars i:nth-child(6) { height: 82%; opacity: .85; }.spark-bars i:nth-child(7) { height: 100%; }
.orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 50%; }
.orbit-one { width: 320px; height: 320px; animation: spin 18s linear infinite; }
.orbit-two { width: 430px; height: 220px; transform: rotate(-32deg); border-style: dashed; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 18px 0; }
.metric-card { min-height: 160px; padding: 23px; transition: transform .25s var(--ease), box-shadow .25s ease; }
.metric-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .8rem; font-weight: 700; }
.metric-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent); }
.metric-card > strong { display: block; margin: 19px 0 10px; font: 850 clamp(1.7rem, 3vw, 2.6rem)/1 var(--font-display); letter-spacing: -.045em; }
.metric-card small { color: var(--muted); }.metric-card small b { color: var(--success); }
.dashboard-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.focus-card, .activity-card, .chart-card, .insight-card, .data-panel, .profile-hero, .personal-stats, .settings-card, .saved-card { padding: clamp(20px, 3vw, 32px); }
.section-title { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 24px; }
.section-title .eyebrow { margin-bottom: 6px; }
.section-title h2 { margin: 0; }
.focus-list { display: grid; gap: 8px; }
.focus-item { min-height: 78px; padding: 12px 10px; display: grid; grid-template-columns: 38px minmax(150px, 1fr) minmax(100px, .75fr) 44px; align-items: center; gap: 14px; border-top: 1px solid var(--border); }
.focus-index { color: var(--muted); font: 800 .7rem/1 var(--font-display); }
.focus-item strong, .focus-item small { display: block; }.focus-item small { margin-top: 4px; color: var(--muted); font-size: .74rem; }.focus-item > b { font-size: .78rem; }
.progress, .quality { display: block; height: 7px; overflow: hidden; border-radius: 99px; background: color-mix(in srgb, var(--text) 8%, transparent); }
.progress i, .quality i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.live-badge { padding: 6px 10px; border-radius: 99px; background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); font-size: .7rem; font-weight: 800; }
.live-badge::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease infinite; }
.activity-list { display: grid; gap: 17px; }
.activity-list > div { display: flex; gap: 12px; align-items: start; }
.activity-avatar { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 12px; font-size: .66rem; font-weight: 850; background: color-mix(in srgb, var(--accent) 18%, var(--surface-strong)); }
.activity-avatar.green { background: color-mix(in srgb, var(--success) 19%, var(--surface-strong)); }.activity-avatar.orange { background: color-mix(in srgb, var(--warning) 20%, var(--surface-strong)); }
.activity-list p { margin: 0; color: var(--muted); font-size: .84rem; }.activity-list p strong { color: var(--text); }.activity-list small { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; }

.segmented { display: flex; padding: 5px; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--surface-soft); }
.segmented button { min-height: 38px; padding: 0 14px; border: 0; border-radius: calc(var(--radius-xs) - 4px); background: transparent; color: var(--muted); font-size: .76rem; font-weight: 750; }
.segmented button.is-active { background: var(--text); color: var(--bg); }
.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .7fr); gap: 18px; }
.chart-wide { min-height: 480px; }.chart-card { min-height: 380px; }
.chart-legend { display: flex; gap: 16px; color: var(--muted); font-size: .72rem; }.chart-legend span { display: flex; align-items: center; gap: 6px; }.chart-legend i { width: 9px; height: 9px; border-radius: 3px; }.chart-legend .actual { background: var(--accent); }.chart-legend .forecast { border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.chart-area { height: 350px; padding-top: 20px; display: grid; grid-template-columns: 40px 1fr; gap: 10px; }
.y-labels { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 29px; color: var(--muted); font-size: .65rem; }
.bar-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), var(--border) 25%); }
.bar-group { min-width: 0; display: grid; grid-template-rows: 1fr 20px; gap: 8px; text-align: center; color: var(--muted); font-size: .66rem; }
.bars { min-height: 0; display: flex; align-items: end; justify-content: center; gap: 4px; }
.bars i { width: min(18px, 38%); border-radius: 5px 5px 1px 1px; transform-origin: bottom; animation: bar-grow .9s var(--ease) both; }
.bar-actual { background: var(--accent); }.bar-forecast { border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.donut-wrap { display: grid; place-items: center; padding: 12px 0 24px; }
.donut { display: grid; place-items: center; width: 190px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--accent) 0 54%, var(--accent-2) 54% 85%, var(--warning) 85% 100%); box-shadow: inset 0 0 0 1px var(--border); }
.donut > div { display: grid; place-items: center; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--surface-strong); }.donut strong { font: 850 1.8rem/1 var(--font-display); }.donut span { color: var(--muted); font-size: .7rem; }
.donut-legend { display: grid; gap: 11px; }.donut-legend span { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 9px; color: var(--muted); font-size: .76rem; }.donut-legend i { width: 9px; height: 9px; border-radius: 3px; }.donut-legend b { color: var(--text); }.tone-a { background: var(--accent); }.tone-b { background: var(--accent-2); }.tone-c { background: var(--warning); }
.insight-card { position: relative; overflow: hidden; grid-column: 1 / -1; min-height: 240px; display: flex; flex-direction: column; justify-content: center; padding-right: min(38%, 480px); }
.insight-card::after { content: "24%"; position: absolute; right: 5%; top: 50%; transform: translateY(-50%); color: color-mix(in srgb, var(--accent) 17%, transparent); font: 900 clamp(5rem, 13vw, 12rem)/1 var(--font-display); letter-spacing: -.1em; }
.insight-card h2 { max-width: 720px; font-size: clamp(1.6rem, 3.2vw, 3rem); }.insight-card > p:not(.eyebrow) { max-width: 720px; margin: 0 0 10px; color: var(--muted); }

.data-panel { overflow: hidden; padding: 0; }
.table-toolbar { padding: 20px; display: flex; align-items: end; gap: 12px; border-bottom: 1px solid var(--border); }
.search-field { flex: 1; }.search-field > span, .filter-field > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.search-field input, .filter-field select, .auth-card input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs); background: var(--surface-soft); color: var(--text); }
.search-field input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.filter-field { min-width: 145px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 890px; border-collapse: collapse; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; font-size: .8rem; }
th { color: var(--muted); background: var(--surface-soft); font-size: .65rem; letter-spacing: .09em; text-transform: uppercase; }
tbody tr { transition: background .2s ease; } tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
td:nth-child(2) { display: flex; align-items: center; gap: 10px; }.record-mark, .saved-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 13%, var(--surface-strong)); color: var(--accent); font-size: .62rem; font-weight: 850; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 99px; background: var(--surface-soft); }.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }.status-granskning i { background: var(--warning); }.status-pausad i { background: var(--muted); }
td:nth-child(5) { display: grid; grid-template-columns: 70px auto; align-items: center; gap: 8px; }.quality { width: 70px; height: 5px; }.quality + b { font-size: .72rem; }
.row-action { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 850; }.row-action:hover { background: var(--accent); color: var(--accent-contrast); }
.empty-state { height: 180px; text-align: center; color: var(--muted); }
.table-footer { min-height: 70px; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.pagination { display: flex; gap: 5px; }.pagination button { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); color: var(--text); }.pagination button.is-active { background: var(--text); color: var(--bg); }.pagination button:disabled { opacity: .4; }

.auth-page { min-height: calc(100vh - 110px); padding-top: 60px; display: grid; grid-template-columns: 1.1fr minmax(380px, .65fr); align-items: center; gap: clamp(30px, 7vw, 110px); }
.auth-story { min-height: 600px; display: flex; flex-direction: column; justify-content: space-between; }
.back-link { align-self: start; color: var(--muted); font-size: .82rem; font-weight: 700; }.back-link:hover { color: var(--text); }
.auth-story-copy { max-width: 760px; }.auth-story-copy h1 { font-size: clamp(3rem, 6.6vw, 7rem); }.auth-story-copy h1 span { color: var(--accent); }.auth-story-copy > p:last-child { max-width: 600px; color: var(--muted); font-size: 1.05rem; }
.auth-proof { align-self: start; max-width: 430px; padding: 18px 21px; display: flex; align-items: center; gap: 18px; }.auth-proof p { margin: 0; color: var(--muted); font-size: .76rem; }.auth-proof p strong { color: var(--text); }
.proof-avatars { display: flex; }.proof-avatars span { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -7px; border: 2px solid var(--surface-strong); border-radius: 50%; background: color-mix(in srgb, var(--accent) 20%, var(--surface-strong)); font-size: .58rem; font-weight: 850; }.proof-avatars span:first-child { margin-left: 0; }
.auth-card { width: 100%; max-width: 520px; justify-self: end; padding: clamp(28px, 5vw, 54px); }
.auth-heading { margin-bottom: 32px; }.auth-heading .brand-mark { margin-bottom: 28px; }.auth-heading h2 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 3.4rem); }.auth-heading > p:last-child { margin: 0; color: var(--muted); }
.auth-card form { display: grid; gap: 19px; }.auth-card form > label { color: var(--text); font-size: .74rem; font-weight: 750; }.auth-card form > label input { margin-top: 7px; min-height: 52px; }
.password-wrap { position: relative; display: block; }.password-wrap input { padding-right: 67px; }.password-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-39%); border: 0; background: transparent; color: var(--accent); font-size: .7rem; font-weight: 800; }
.form-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.check-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .72rem; }.link-button { padding: 0; color: var(--accent); font-size: .72rem; font-weight: 800; }
.auth-submit { width: 100%; min-height: 56px; }.auth-submit.is-loading { animation: button-pulse 1s ease infinite; }
.demo-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--muted); font-size: .65rem; }.demo-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

.profile-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.profile-hero { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.profile-avatar { position: relative; }.profile-avatar span { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 30px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-contrast); font: 850 1.65rem/1 var(--font-display); }.profile-avatar i { position: absolute; right: 0; bottom: 4px; width: 17px; height: 17px; border: 4px solid var(--surface-strong); border-radius: 50%; background: var(--success); }
.profile-hero h2 { margin-bottom: 6px; font-size: clamp(1.8rem, 3vw, 2.7rem); }.profile-hero p:not(.eyebrow) { margin: 0; color: var(--muted); }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }.profile-tags span { padding: 5px 9px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); font-size: .66rem; }
.personal-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; overflow: hidden; }.personal-stats > div { min-height: 150px; padding: 27px; border-right: 1px solid var(--border); }.personal-stats > div:last-child { border: 0; }.personal-stats span, .personal-stats small { display: block; color: var(--muted); font-size: .72rem; }.personal-stats strong { display: block; margin: 12px 0; font: 850 2.2rem/1 var(--font-display); }
.settings-list { display: grid; }.settings-list label { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); }.settings-list strong, .settings-list small { display: block; }.settings-list small { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.toggle { appearance: none; flex: 0 0 45px; width: 45px; height: 25px; padding: 3px; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--text) 15%, transparent); transition: .25s ease; }.toggle::before { content: ""; display: block; width: 19px; height: 19px; border-radius: 50%; background: var(--surface-strong); box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: .25s var(--ease); }.toggle:checked { background: var(--accent); }.toggle:checked::before { transform: translateX(20px); }
.saved-card > a { min-height: 76px; padding: 10px 0; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; border-top: 1px solid var(--border); }.saved-card > a:hover b { transform: translateX(4px); }.saved-card > a strong, .saved-card > a small { display: block; }.saved-card > a small { margin-top: 3px; color: var(--muted); font-size: .7rem; }.saved-card > a b { transition: transform .2s ease; }

.site-footer { width: min(calc(100% - (var(--page-pad) * 2)), var(--content-width)); min-height: 90px; margin: 0 auto; padding: 25px 0 40px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-style { display: inline-flex; align-items: center; gap: 8px; }.footer-style i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.site-footer a:hover { color: var(--text); }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(390px, calc(100vw - 48px)); padding: 15px 19px; border: 1px solid var(--border); border-radius: var(--radius-xs); background: var(--text); color: var(--bg); box-shadow: var(--shadow-hover); font-size: .78rem; font-weight: 750; transform: translateY(30px); opacity: 0; pointer-events: none; transition: .35s var(--ease); }.toast.is-visible { transform: translateY(0); opacity: 1; }

@keyframes page-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 50% { transform: rotate(3deg) translateY(-13px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .4; box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 13%, transparent); } }
@keyframes bar-rise { from { height: 0; } }
@keyframes bar-grow { from { transform: scaleY(0); } }
@keyframes button-pulse { 50% { opacity: .7; } }

@media (max-width: 1080px) {
  .topbar { grid-template-columns: auto 1fr auto; gap: 10px; }.brand-copy { display: none; }.main-nav a { padding: 8px 10px; }.style-picker { width: 52px; color: transparent; padding: 0; background: color-mix(in srgb, var(--accent) 13%, var(--surface-strong)); }.style-picker option { color: var(--text); }
  .hero { grid-template-columns: 1fr; }.hero-visual { min-height: 310px; }.signal-main { width: min(80%, 440px); }.signal-float { right: 12%; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }.analysis-grid { grid-template-columns: 1fr; }.insight-card { grid-column: auto; }.auth-page { grid-template-columns: 1fr 430px; gap: 40px; }.auth-story-copy h1 { font-size: clamp(3rem, 6vw, 5rem); }
}

@media (max-width: 760px) {
  :root { --page-pad: 16px; --radius: 20px; --radius-lg: 28px; }
  .topbar { position: relative; top: 0; width: 100%; margin: 0; border-radius: 0 0 var(--radius) var(--radius); grid-template-columns: auto 1fr auto; padding: 10px 12px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }.main-nav::-webkit-scrollbar { display: none; }.main-nav a { flex: 0 0 auto; }.nav-icon { display: inline; }
  .top-actions { justify-self: end; }.style-picker { width: 46px; }.avatar-button { width: 38px; height: 38px; }
  .page { width: calc(100% - 32px); padding-top: 42px; }.page-heading { align-items: start; flex-direction: column; }.page-heading h1 { font-size: 2.65rem; }
  .hero { min-height: auto; padding: 29px 22px; }.hero h1 { font-size: 2.75rem; }.hero-visual { min-height: 280px; }.signal-main { width: 88%; min-height: 215px; }.signal-float { right: 0; bottom: 0; }.orbit-two { width: 330px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }.metric-card { min-height: 145px; padding: 18px; }.metric-card > strong { font-size: 1.65rem; }.dashboard-grid { grid-template-columns: 1fr; }
  .focus-item { grid-template-columns: 30px 1fr 40px; }.focus-item .progress { grid-column: 2 / -1; width: 100%; }.focus-card, .activity-card, .chart-card, .insight-card { padding: 20px; }
  .analysis-grid { grid-template-columns: 1fr; }.chart-wide { min-height: 420px; }.chart-card { min-height: auto; }.chart-area { height: 300px; }.bar-chart { gap: 5px; }.insight-card { padding-right: 20px; }.insight-card::after { opacity: .22; }
  .table-toolbar { align-items: stretch; flex-direction: column; }.filter-field { width: 100%; }.table-footer { align-items: start; flex-direction: column; gap: 13px; }
  .auth-page { display: flex; flex-direction: column; padding-top: 30px; }.auth-story { width: 100%; min-height: auto; gap: 54px; }.auth-story-copy h1 { font-size: 3.3rem; }.auth-proof { display: none; }.auth-card { max-width: none; justify-self: auto; padding: 28px 22px; }
  .profile-grid { grid-template-columns: 1fr; }.profile-hero { grid-column: auto; grid-template-columns: auto 1fr; }.profile-hero .button { grid-column: 1 / -1; }.profile-avatar span { width: 76px; height: 76px; border-radius: 24px; }.personal-stats { grid-column: auto; grid-template-columns: 1fr; }.personal-stats > div { min-height: 115px; border-right: 0; border-bottom: 1px solid var(--border); }.site-footer { align-items: start; flex-direction: column; gap: 12px; }
}

@media (max-width: 460px) {
  .main-nav a { padding: 8px; }.main-nav a span:last-child { display: none; }.nav-icon { display: inline; }.metrics-grid { grid-template-columns: 1fr; }.metric-card { min-height: 128px; }.hero-meta { flex-direction: column; gap: 8px; }.signal-float { width: 128px; padding: 18px; }.segmented { width: 100%; }.segmented button { flex: 1; padding: 0 5px; }.profile-hero { grid-template-columns: 1fr; }.form-meta { align-items: start; flex-direction: column; }.chart-legend { display: none; }
}

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