@font-face {
  font-family: Onest;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Onest;
  src: url("assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --canvas: #f5f6f8;
  --surface: #fff;
  --primary: #4566d6;
  --indigo-dark: #353f9e;
  --soft-border: #d4dfff;
  --soft-background: #eaf0ff;
  --ink: #171a20;
  --muted: #626975;
  --subtle: #b0b6c2;
  --sidebar-width: 250px;
  --gutter: 40px;
  --font-body: 16px;
  --font-small: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 var(--font-body)/1.5 Onest, system-ui, sans-serif;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h2, h3 { font-weight: 600; }
img { display: block; }
a, button { color: inherit; }
a { text-decoration: none; }
button, input, select, textarea { font: inherit; }
input, select, textarea { font-size: var(--font-body); }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  overflow-y: auto;
  background: var(--surface);
  border-right: .5px solid var(--soft-border);
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 89px;
  color: var(--primary);
  font: 700 16px Manrope, system-ui, sans-serif;
}
.navigation {
  display: grid;
  gap: 11px;
  margin: 36px 19px 0 20px;
}
.navigation a, .navigation button {
  display: grid;
  grid-template-columns: 55px 1fr;
  align-items: center;
  min-height: 45px;
  padding: 0 8px 0 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}
.navigation :is(a, button):hover, .navigation [aria-current] {
  background: var(--soft-background);
  color: var(--primary);
}
.navigation [aria-current] { font-weight: 600; }
.sidebar[data-color]:not([data-color="indigo"]) .navigation a[href="#main"]:is(:hover, [aria-current="page"]) {
  background: color-mix(in srgb, var(--profile-color) 20%, var(--surface));
  color: color-mix(in srgb, var(--profile-color) 48%, var(--ink));
}
.nav-icon { display: grid; place-items: center; }
.nav-glyph {
  background: currentColor;
  mask: var(--nav-glyph-image) center / contain no-repeat;
}
.home-nav-icon { width: 21px; height: 24px; --nav-glyph-image: url("assets/figma/home.svg"); }
.metrics-nav-icon { width: 24px; height: 12.74px; --nav-glyph-image: url("assets/figma/metrics.svg"); }
.add-nav-icon { width: 19.336px; height: 19.336px; --nav-glyph-image: url("assets/figma/settings-nav-add.svg"); }
.settings-nav-icon { width: 23.315px; height: 23.98px; --nav-glyph-image: url("assets/figma/settings.svg"); }
.help-nav-icon { width: 23.906px; height: 23.906px; --nav-glyph-image: url("assets/figma/help.svg"); }
@media (forced-colors: active) {
  .nav-glyph { forced-color-adjust: none; color: ButtonText; }
  .navigation a .nav-glyph { color: LinkText; }
}
.secondary-nav {
  margin-top: auto;
  padding: 25px 0;
  background: url("assets/figma/nav-rule.svg") repeat-x top left;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(275px, 355px);
  grid-template-rows: auto auto 1fr;
  column-gap: 30px;
  align-content: start;
  align-items: start;
  width: calc(100% - 2 * var(--gutter));
  min-width: 0;
  min-height: 100dvh;
  margin-inline: var(--gutter);
  padding: 30px 0 40px;
}
.page-heading { grid-area: 1 / 1; min-height: 62px; }
.page-heading h1 { font-size: 32px; font-weight: 700; line-height: 40px; }
.page-heading p { margin-top: 3px; font-size: 15px; color: var(--muted); letter-spacing: -.3px; }
.account {
  grid-area: 1 / 2;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-self: start;
  padding: 8px 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--muted);
  font-weight: 500;
}
.account:hover { color: var(--primary); }
.steps {
  grid-area: 2 / 1;
  display: grid;
  grid-template-columns: 118px 1fr 185px 1fr 140px;
  align-items: center;
  gap: 25px;
  min-height: 100px;
  padding: 0 36px;
  color: var(--muted);
  font-size: 16px;
}
.steps li { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.steps::before, .steps::after {
  content: "";
  grid-row: 1;
  height: 1px;
  background: url("assets/figma/step-rule.svg") repeat-x center;
}
.steps::before { grid-column: 2; }
.steps::after { grid-column: 4; }
.steps li { grid-row: 1; }
.steps li:nth-child(1) { grid-column: 1; }
.steps li:nth-child(2) { grid-column: 3; }
.steps li:nth-child(3) { grid-column: 5; }
.step-number {
  display: grid;
  flex: 0 0 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-border);
}
.steps [aria-current] { color: var(--primary); font-weight: 600; }
.steps [aria-current] .step-number { background: var(--primary); color: #fff; }

.workflow { grid-area: 3 / 1; min-width: 0; }
.workflow:has(> #upload-panel:not([hidden])) { max-width: 1000px; }
#main > .steps { width: 100%; max-width: 1000px; }
@media (min-width: 1151px) {
  #main { grid-template-columns: minmax(0, 1000px) minmax(275px, 355px); column-gap: 20px; }
}
.panel {
  border: .5px solid var(--soft-border);
  border-radius: 20px;
  background: var(--surface);
}
.upload-panel { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 1000px; gap: 20px; padding: 29.5px; }
.upload-panel header { min-height: 55px; }
.upload-panel h2, .drop h3, .manual h3, .review h2 { font-size: 16px; line-height: 20px; }
#upload-heading { font-size: 20px; line-height: 28px; }
.upload-panel header p, .drop p, .guidance p, .guidance li {
  color: var(--muted);
  font-size: var(--font-small);
  line-height: 1.5;
  letter-spacing: -.24px;
}
.upload-panel header p, .drop-heading p { margin-top: 5px; }
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 40px 12px;
  border: .5px dashed var(--soft-border);
  border-radius: 15px;
  background: var(--canvas);
  text-align: center;
}
.drop.over { border-color: var(--primary); background: var(--soft-background); }
.drop-outline { display: none; }
@media (min-width: 681px) {
  .drop { position: relative; border-color: transparent; }
  .drop.over { border-color: transparent; }
  .drop-outline { display: block; position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; pointer-events: none; color: var(--soft-border); }
  .drop-outline rect { fill: none; stroke: currentColor; stroke-width: 2px; stroke-dasharray: 14px 10px; stroke-linecap: round; }
  .drop.over .drop-outline { color: var(--primary); }
}
.drop .file-types { color: var(--subtle); }
.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 50px;
  color: var(--muted);
  font-size: var(--font-small);
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  background: url("assets/figma/left-rule.svg") repeat-x right center;
}
.divider::after { background-image: url("assets/figma/right-rule.svg"); background-position: left center; }
.button {
  min-height: 45px;
  max-width: 100%;
  padding: 8px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.button:not(:disabled):hover { filter: brightness(.93); }
.button:disabled { background: var(--subtle); cursor: default; }
.choose-file { width: 190px; background: var(--soft-border); color: var(--primary); }
.manual-toggle, .manual-submit { justify-self: center; width: 350px; }
.upload-options, .manual-entry { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.manual-entry { gap: 14px; }
.manual-entry > .manual { grid-template-columns: minmax(0, 1fr); }
.manual-link {
  justify-self: start;
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  text-align: start;
}
.manual-link:hover { text-decoration: underline; }
.manual-header {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 62px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--soft-border);
}
.manual-header h2 {
  font-size: clamp(14px, 3.5vw, 16px);
  text-align: center;
}
#manual-back { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.marker-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 10px; background: var(--canvas); }
.marker-filters button {
  min-height: 36px;
  min-width: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}
.marker-filters button:hover { background: var(--soft-background); color: var(--primary); }
.marker-filters button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.marker-search-status, .marker-meta { color: var(--muted); font-size: var(--font-small); }
.marker-results {
  max-height: min(340px, 48vh);
  overflow: auto;
  border: 1px solid var(--soft-border);
  border-radius: 10px;
}
.marker-results:empty { display: none; }
.marker-list button, .marker-results summary {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  text-align: start;
  overflow-wrap: anywhere;
}
.marker-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marker-list .marker-meta { display: block; margin-top: 2px; }
.marker-list button:is(:hover, :focus-visible), .marker-results summary:is(:hover, :focus-visible), .marker-results details[open] summary {
  background: var(--soft-background);
  color: var(--indigo-dark);
}
.marker-results :is(button, summary):focus-visible { outline-offset: -2px; }
.marker-list li + li, .marker-results details + details { border-top: 1px solid var(--soft-border); }
.marker-results summary { padding-block: 14px; cursor: pointer; font-weight: 600; }
.marker-results details .marker-list { border-top: 1px solid var(--soft-border); }
.marker-add { flex-shrink: 0; }
.marker-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid var(--soft-border);
  border-radius: 10px;
  background: var(--canvas);
  overflow-wrap: anywhere;
}
.marker-selection button { flex-shrink: 0; }
#manual .date-field > label { display: block; }
#manual .date-field > label + div { margin-top: 6px; }
#manual .manual-submit { justify-self: end; }
@media (max-width: 520px) {
  #manual .manual-submit { width: 100%; }
}
.next { display: block; width: 200px; margin: 30px 0 0 auto; }

.guidance { grid-area: 3 / 2; display: grid; gap: 20px; }
.guidance section { display: grid; gap: 10px; padding: 20px 29px; }
.guidance h2 { font-size: var(--font-small); line-height: 1.5; }
.guidance ul { display: grid; gap: 10px; }
.guidance li { display: flex; align-items: flex-start; gap: 7px; }
.guidance li img { margin-top: 1.5px; }
.guidance .tip { background: var(--soft-background); }
.guidance .manual-guidance { display: none; }
#main:has(#upload-panel:not([hidden]) #manual-entry:not([hidden])) .upload-guidance { display: none; }
#main:has(#upload-panel:not([hidden]) #manual-entry:not([hidden])) .manual-guidance { display: block; }
.tip h2 { color: var(--primary); }
.guidance .privacy { background: var(--canvas); }
.tip p, .privacy p { max-width: 271px; }

.entries, .manual, .review { display: grid; gap: 14px; }
.entries li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--soft-border);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.remove {
  flex-shrink: 0;
  min-width: 32px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--soft-background);
  color: var(--primary);
}
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fields label { display: grid; gap: 6px; color: var(--muted); }
.fields :is(input, select) {
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--soft-border);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
}
@media (forced-colors: none) {
  #manual-range input:is(:autofill, :-webkit-autofill) {
    box-shadow: inset 0 0 0 100px var(--canvas);
    -webkit-text-fill-color: var(--ink);
  }
  #manual select[name="unit"] {
    appearance: none;
    padding-inline-end: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='m2 4 3 3 3-3' fill='none' stroke='%23171a20' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
  }
}
.full-width { grid-column: 1 / -1; }
.result-field + label { align-self: start; }
.result-status, .range-help, .range-error { color: var(--muted); font-size: var(--font-small); }
.result-status:not(:empty), .range-error:not(:empty) { margin-top: 6px; }
.fields input[data-range-state="within"] {
  border-color: #35815e;
  background: #e6f5ed;
  color: #176344;
}
.fields input[data-range-state="outside"] {
  border-color: #b95b60;
  background: #fbecee;
  color: #9b3841;
}
.result-field:has([data-range-state="within"]) .result-status { color: #176344; }
.result-field:has([data-range-state="outside"]) .result-status,
.range-error { color: #9b3841; }
.range-choice {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.range-choice legend { padding: 0 0 8px; font-weight: 600; }
.range-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--soft-border);
  border-radius: 12px;
  background: var(--canvas);
}
.range-options label { position: relative; cursor: pointer; }
.range-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.range-options span {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}
.range-options input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.range-options input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (forced-colors: active) {
  .range-options input:checked + span { border-color: Highlight; color: Highlight; }
}
.app-range {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  background: var(--soft-background);
  color: var(--muted);
}
.app-range-heading { color: var(--indigo-dark); font-size: var(--font-small); text-transform: uppercase; }
#range-status:empty { display: none; }
#app-range-values { display: grid; gap: 10px; }
#app-range-values p { font-size: var(--font-small); }
#app-range-values .app-range-summary { color: var(--ink); font-size: clamp(21px, 4vw, 30px); font-weight: 700; }
.app-range-bounds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.app-range-bounds > div { padding: 8px 10px; border-radius: 8px; background: var(--surface); }
.app-range-bounds dt { font-size: var(--font-small); }
.app-range-bounds dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.profile-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--indigo-dark);
  font-weight: 600;
  text-decoration: underline;
}
.profile-dialog { width: min(440px, calc(100% - 32px)); padding: 24px; color: var(--ink); }
.profile-dialog::backdrop { background: #171a2066; }
.profile-dialog h2 { font-size: 20px; }
.profile-dialog p { color: var(--muted); }
.profile-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.profile-actions .choose-file { width: auto; }

.date-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.date-control { position: relative; min-width: 0; }
.fields .date-control input {
  appearance: none;
  width: 100%;
  padding-inline-end: 38px;
}
.date-control input::-webkit-calendar-picker-indicator { display: none; }
.date-trigger {
  position: absolute;
  inset: 1px 1px 1px auto;
  display: grid;
  width: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
}
.date-trigger:not(:disabled):hover { background: var(--soft-background); }
.date-trigger:disabled { opacity: .55; cursor: default; }
.date-trigger:focus-visible { outline-offset: -2px; }
.date-trigger img { width: 17px; height: 16px; }
.calendar-picker {
  position: fixed;
  inset: auto;
  width: min(370px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 8px 24px #171a2026;
}
.calendar-header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  margin-bottom: 8px;
}
.calendar-picker[data-view="days"] .calendar-header { grid-template-columns: minmax(0, 1fr) 36px 36px; }
.calendar-header > * { grid-row: 1; }
#calendar-previous { grid-column: 1; }
.calendar-picker[data-view="days"] #calendar-previous { grid-column: 2; }
#calendar-next { grid-column: 3; }
.calendar-header .calendar-period { grid-column: 2; color: var(--ink); font-size: 16px; font-weight: 600; text-align: center; }
.calendar-picker[data-view="days"] .calendar-period { grid-column: 1; justify-self: start; }
.calendar-header button, .calendar-grid button {
  min-width: 0;
  min-height: 36px;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.calendar-header button:not(:disabled):hover, .calendar-grid button:not(:disabled):hover { background: var(--canvas); }
.calendar-header button:disabled, .calendar-grid button:disabled { color: var(--subtle); cursor: default; }
.calendar-arrow::after, #calendar-period::after, #history-period::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  content: "";
}
#calendar-previous::after { transform: rotate(-135deg); }
#calendar-period::after { margin-inline-start: 8px; vertical-align: 2px; }
#history-period::after { margin-inline-start: 8px; vertical-align: 3px; transform: rotate(135deg); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-weekdays { margin-bottom: 4px; color: var(--muted); font-size: var(--font-small); font-weight: 600; text-align: center; }
.calendar-grid button { min-height: 40px; }
.calendar-grid button[aria-current="date"] { color: var(--primary); font-weight: 600; }
.calendar-grid button[aria-pressed="true"] { background: var(--soft-border); color: var(--indigo-dark); font-weight: 600; }
.calendar-picker[data-view="days"] .calendar-grid button { border-radius: 50%; }
.calendar-picker[data-view="months"] .calendar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.calendar-picker[data-view="years"] .calendar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.calendar-confirm { display: block; width: 100%; margin-top: 20px; }

#settings-child-dialog { width: min(470px, calc(100% - 32px)); max-height: calc(100dvh - 32px); }
.child-intro { display: grid; justify-items: center; gap: 8px; margin-bottom: 14px; text-align: center; }
.child-description { text-align: center; }
.child-privacy { display: grid; gap: 4px; }
.child-privacy li { display: flex; align-items: center; gap: 4px; }
.child-privacy img { flex: none; }
.child-consent-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 8px; background: var(--canvas); cursor: pointer; }
.child-consent-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.child-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.child-date input:invalid:not(:focus) { color: transparent; }
.child-date input:valid + span { display: none; }
.child-date > span { color: var(--muted); }
.child-sex-field > legend { padding: 0; color: var(--muted); font-weight: 400; }
.child-sex-field > .child-sex { margin: 0; font-size: var(--font-small); }
.child-colors { display: grid; grid-template-columns: repeat(8, 38px); gap: 10px; }
.child-colors label { position: relative; display: grid; place-items: center; cursor: pointer; }
.child-colors input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.child-colors input:focus-visible + img { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 50%; }
.child-colors label:has(input:checked)::after {
  position: absolute;
  width: 12px;
  height: 6px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  transform: translateY(-2px) rotate(-45deg);
  pointer-events: none;
  content: "";
}
.child-colors label:has(input:is([value="yellow"], [value="lime"]):checked)::after { border-color: var(--ink); }
.settings-child-dot { flex: 0 0 18px; height: 18px; border-radius: 50%; background: center / contain no-repeat; }
@media (max-width: 460px) {
  .child-colors { grid-template-columns: repeat(4, 38px); }
}

.auth-page { display: flex; flex-direction: column; }
.auth-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 64px);
  border-bottom: .5px solid var(--soft-border);
  background: var(--surface);
}
.auth-header .brand { min-height: 0; }
.auth-back { color: var(--muted); font-weight: 500; }
.auth-back:hover { color: var(--primary); text-decoration: underline; }
.auth-main {
  flex: 1;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(24px, 8vh, 88px) 16px 32px;
}
.auth-card { display: grid; gap: 20px; width: min(100%, 460px); padding: clamp(20px, 5vw, 32px); }
.auth-intro { display: grid; justify-items: center; gap: 8px; text-align: center; }
.auth-intro h1 { font-size: clamp(24px, 5vw, 28px); font-weight: 700; }
.auth-intro p { color: var(--muted); }
.auth-account-email { color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.auth-note a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.auth-fields { grid-template-columns: minmax(0, 1fr); }
.auth-fields input { min-height: 44px; }
.auth-note {
  padding-top: 14px;
  border-top: 1px solid var(--soft-border);
  color: var(--muted);
  font-size: var(--font-small);
  line-height: 1.45;
}
.auth-modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 4px; background: var(--canvas); border-radius: 12px; }
.auth-modes button { min-height: 44px; padding: 8px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; }
.auth-modes button[aria-pressed="true"] { background: var(--primary); color: white; }
.auth-signin-panel, .auth-registration-result { display: grid; gap: 16px; }
.auth-submit { display: grid; align-items: center; justify-content: center; width: 100%; min-height: 48px; text-align: center; }
.auth-registration-form { min-width: 0; }
.auth-registration-fields { display: grid; min-width: 0; gap: 8px; border: 0; margin: 0; padding: 0; }
.auth-registration-fields > label { margin-top: 8px; font-size: 14px; font-weight: 500; }
.auth-registration-fields input { min-width: 0; width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--soft-border); border-radius: 10px; background: var(--canvas); color: var(--ink); font-size: 16px; }
.auth-registration-fields input[aria-invalid="true"] { border-color: #bd273f; }
.auth-registration-fields:disabled { opacity: .65; }
.auth-registration-fields:disabled input { cursor: not-allowed; }
.auth-registration-fields > .auth-submit { margin-top: 12px; }
@media (max-width: 480px) { #profile-names { grid-template-columns: minmax(0, 1fr); } }
.auth-verification-email { display: grid; gap: 8px; margin-top: 8px; min-width: 0; }
.auth-verification-email > span { font-size: 14px; font-weight: 500; }
.auth-verification-email > strong { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.auth-password-field { position: relative; min-width: 0; }
.auth-password-field input { padding-right: 88px; }
.auth-password-toggle { position: absolute; inset: 2px 4px 2px auto; min-width: 76px; min-height: 44px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--primary); font-size: 12px; }
.auth-password-toggle:disabled { cursor: default; }
.auth-field-hint { color: var(--muted); font-size: 12px; line-height: 18px; }
.auth-field-error { color: #a31f36; font-size: 13px; line-height: 19px; }
.auth-message { padding: 12px 14px; margin-bottom: 12px; border-radius: 10px; background: var(--soft-background); font-size: 13px; line-height: 19px; overflow-wrap: anywhere; }
.auth-error { margin-block: 16px 0; background: #fceef0; color: #a31f36; }
.auth-registration-result { overflow-wrap: anywhere; }
.auth-registration-result h2 { font-size: 20px; }
.auth-registration-result p { color: var(--muted); }
@media (max-width: 680px) {
  .auth-header .brand { display: none; }
  .auth-header { min-height: 56px; border: 0; background: transparent; padding: 8px 16px; }
  .auth-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
  .auth-main { padding: 8px 16px calc(24px + env(safe-area-inset-bottom,0px)); }
  .auth-card { gap: 16px; padding: 20px 16px; border-radius: 16px; }
  .auth-intro h1 { font-size: 24px; }
  .auth-intro p, .auth-registration-result p { font-size: 14px; }
}

/* Registration and personal-profile setup share the existing Onest/blue system. */
.auth-page .auth-main { align-items: center; padding: 28px clamp(16px, 3vw, 48px) 40px; }
.auth-shell { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1fr); align-items: start; gap: 24px; width: min(1320px, 100%); padding: 20px; border: 1px solid var(--soft-border); border-radius: 28px; background: var(--surface); }
.auth-page .auth-card { align-self: center; justify-self: center; width: min(100%, 500px); border: 0; box-shadow: none; padding: clamp(24px, 3vw, 44px); }
.auth-page .auth-intro { justify-items: start; text-align: left; gap: 10px; }
.auth-page .auth-intro h1 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; letter-spacing: -.8px; }
.auth-page .auth-intro > p:not(.auth-step-caption) { font-size: 14px; line-height: 21px; }
.auth-step-caption { color: var(--primary); font-size: 12px; line-height: 18px; font-weight: 600; }
.auth-artwork { position: sticky; top: 24px; align-self: start; min-width: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px; background: linear-gradient(125deg, #ffeded, #d4dfff); }
.auth-artwork img { display: block; width: 100%; height: 100%; object-fit: cover; }
.auth-profile-form { min-width: 0; }
.auth-profile-fields { display: grid; gap: 20px; min-width: 0; border: 0; padding: 0; margin: 0; }
.auth-profile-fields:disabled { opacity: .65; }
.onboarding-field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.onboarding-field > label, .onboarding-sex legend { font-size: 14px; line-height: 20px; font-weight: 500; }
.onboarding-field input { width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid var(--soft-border); border-radius: 10px; background: var(--canvas); color: var(--ink); font-size: 16px; }
.onboarding-field input[aria-invalid="true"] { border-color: #bd273f; }
.onboarding-measurements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.onboarding-unit-field { position: relative; min-width: 0; }
.onboarding-unit-field input { padding-right: 40px; }
.onboarding-unit-field > span { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.onboarding-sex { display: grid; min-width: 0; padding: 0; margin: 0; border: 0; }
.onboarding-sex legend { padding: 0; margin-bottom: 9px; }
.onboarding-sex-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.onboarding-sex-options label { position: relative; min-width: 0; }
.onboarding-sex-options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.onboarding-sex-options span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px; border: 1px solid var(--soft-border); border-radius: 10px; background: var(--canvas); font-size: 14px; }
.onboarding-sex-options input:checked + span { border-color: var(--primary); background: var(--soft-background); color: var(--primary); font-weight: 500; }
.onboarding-sex-options input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 3px; }
.onboarding-sex-options input[aria-invalid="true"] + span { border-color: #bd273f; }
.onboarding-sex .auth-field-error { margin-top: 7px; }
.onboarding-purpose { padding: 16px; border-radius: 12px; background: var(--soft-background); }
.onboarding-purpose h2 { font-size: 14px; line-height: 20px; margin-bottom: 7px; }
.onboarding-purpose p { color: var(--muted); font-size: 12px; line-height: 18px; }
.onboarding-purpose p + p { margin-top: 8px; }
.onboarding-consent { padding: 15px 0 0; border-top: 1px solid var(--soft-border); }
.onboarding-consent label { display: flex; align-items: start; gap: 12px; min-height: 44px; cursor: pointer; font-size: 12px; line-height: 19px; }
.onboarding-consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; }
.onboarding-consent .auth-field-error { margin-top: 8px; }
.onboarding-privacy { margin-top: -12px; color: var(--muted); font-size: 12px; line-height: 18px; }
.onboarding-privacy summary { display: list-item; min-height: 44px; padding-block: 12px; color: var(--primary); cursor: pointer; }
.onboarding-privacy p { padding-bottom: 4px; }
.auth-profile-fields .auth-submit { white-space: normal; min-height: 50px; padding: 12px 16px; font-size: 14px; line-height: 20px; }
.auth-profile-back { justify-self: center; min-height: 44px; margin-top: -10px; padding: 8px 12px; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.auth-profile-back:hover { color: var(--primary); }
@media (max-width: 900px) {
  .auth-shell { display: block; width: min(100%, 540px); padding: 0; border: 0; background: transparent; }
  .auth-page .auth-card { width: 100%; padding: 30px; border: 1px solid var(--soft-border); }
  .auth-artwork { display: none; }
}
@media (max-width: 680px) {
  .auth-page .auth-main { align-items: start; padding: 8px 16px calc(24px + env(safe-area-inset-bottom,0px)); }
  .auth-page .auth-card { padding: 24px 18px; border-radius: 16px; }
  .auth-page .auth-intro h1 { font-size: 26px; line-height: 33px; letter-spacing: -.5px; }
  .auth-profile-fields { gap: 18px; }
  .onboarding-measurements { gap: 10px; }
  .onboarding-purpose { padding: 14px; }
}

.settings-workspace { grid-template-rows: auto 1fr; row-gap: 30px; }
.settings-primary, .settings-aside { display: grid; gap: 20px; min-width: 0; }
.settings-primary { grid-area: 2 / 1; }
.settings-aside { grid-area: 2 / 2; }
.settings-account {
  display: flex;
  align-items: center;
  gap: 23px;
  padding: 29.5px;
}
.settings-account > img { flex: none; border-radius: 50%; object-fit: cover; }
#settings-guest-account > img { background: var(--soft-background); }
.settings-identity { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.settings-identity h2, .settings-personal h2, .settings-side-card h2 { font-size: 20px; }
.settings-identity p { margin-top: 2px; color: var(--muted); font-size: var(--font-small); line-height: 20px; }
.settings-secondary { background: var(--canvas); color: var(--muted); }
.settings-account .settings-secondary { display: grid; width: 120px; place-items: center; }
.settings-account:has(.settings-auth-actions) { flex-wrap: wrap; }
.settings-account:has(.settings-auth-actions) .settings-identity { flex-basis: 200px; }
.settings-auth-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-auth-actions .button { display: grid; width: auto; place-items: center; }
.settings-auth-actions .choose-file { background: var(--soft-background); }
.settings-personal { padding: 29.5px; }
.settings-personal:has(.settings-personal-fields:disabled) {
  --canvas: #e7e9ed;
  --soft-border: #d8dce2;
  --ink: var(--muted);
  background: #eff1f3;
}
.settings-personal-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.settings-personal-fields:disabled .settings-section { background: linear-gradient(var(--soft-border), var(--soft-border)) left top / 100% 1px no-repeat; }
.settings-personal-fields:disabled .settings-sex label { cursor: default; }
.settings-personal header { padding-bottom: 20px; }
.settings-personal header p { margin-top: 8px; }
.settings-side-card header p { margin-top: 6px; }
.settings-personal p, .settings-side-card p { color: var(--muted); font-size: var(--font-small); letter-spacing: -.24px; }
.settings-section {
  padding: 20px 0;
  background: url("assets/figma/settings-rule.svg") repeat-x left top;
}
.settings-section:last-child { padding-bottom: 0; }
.settings-section h3 { margin-bottom: 5px; font-size: var(--font-small); }
.settings-fields, .settings-sex { margin-top: 20px; font-size: var(--font-small); }
.settings-name-fields { margin-top: 12px; }
.settings-fields label { gap: 3px; }
.settings-date { position: relative; }
.settings-date input { width: 100%; height: 40px; }
.settings-date input.has-date:not(:focus) { color: transparent; }
.settings-date > span { position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.settings-date input:focus + span { display: none; }
.settings-measurement {
  display: flex;
  align-items: baseline;
  gap: 3px;
  height: 40px;
  padding: 8px 14px;
  line-height: 20px;
  border: 1px solid var(--soft-border);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
}
.settings-measurement:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.settings-measurement input {
  appearance: textfield;
  field-sizing: content;
  min-width: 2ch;
  max-width: calc(100% - 3ch);
  padding: 0;
  line-height: 20px;
  border: 0;
  border-radius: 0;
  outline: none;
}
.settings-measurement input::-webkit-inner-spin-button { appearance: none; }
.settings-sex { gap: 12px; padding: 0; border: 0; background: none; }
.settings-sex span { min-height: 40px; border-color: var(--soft-border); background: var(--canvas); color: var(--ink); font-weight: 400; }
.settings-sex input:checked + span { background: var(--soft-border); color: var(--primary); font-weight: 600; }
.settings-save { display: block; width: 250px; margin: 20px 0 0 auto; }

.settings-side-card { display: grid; gap: 15px; padding: 25px 29.5px; }
.settings-side-card header { min-height: 61px; }
.settings-side-card .settings-plan-label { font-weight: 600; }
.settings-plan-summary { min-height: 71px; }
.settings-plan-summary h2 { margin-bottom: 3px; font-size: 24px; }
.settings-premium-callout { display: grid; gap: 2px; padding: 15px 20px; border-radius: 12px; background: var(--soft-background); color: var(--primary); }
.settings-premium-callout strong { font-weight: 600; }
.settings-premium-callout p { color: inherit; }
.settings-with-icon { display: flex; align-items: center; justify-content: center; gap: 8px; }
.settings-with-icon.settings-secondary { color: var(--primary); }
.settings-plan-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 25px; }
.settings-plan-actions button { padding: 0; border: 0; background: none; color: var(--muted); font-size: var(--font-small); }
.settings-plan-actions button:first-child { color: var(--primary); }
.settings-plan-actions button:hover { text-decoration: underline; }
.settings-profiles { display: grid; gap: 5px; }
#settings-add-child { gap: 10px; }
#settings-add-child:disabled { background: var(--canvas); color: var(--muted); }
#settings-child-limit a { color: var(--primary); text-decoration: underline; }
.settings-child-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 45px;
  border-radius: 12px;
  background: var(--canvas);
}
:is(.settings-child-row, .dashboard-profile *, .sidebar, .dashboard-new-analysis)[data-color="green"] { --profile-color: #36a36c; }
:is(.settings-child-row, .dashboard-profile *, .sidebar, .dashboard-new-analysis)[data-color="purple"] { --profile-color: #8946c8; }
:is(.settings-child-row, .dashboard-profile *, .sidebar, .dashboard-new-analysis)[data-color="pink"] { --profile-color: #c5429d; }
:is(.settings-child-row, .dashboard-profile *, .sidebar, .dashboard-new-analysis)[data-color="orange"] { --profile-color: #db7e3b; }
:is(.settings-child-row, .dashboard-profile *, .sidebar, .dashboard-new-analysis)[data-color="blue"] { --profile-color: #5cb0ec; }
:is(.settings-child-row, .dashboard-profile *, .sidebar, .dashboard-new-analysis)[data-color="yellow"] { --profile-color: #e1c537; }
:is(.settings-child-row, .dashboard-profile *, .sidebar, .dashboard-new-analysis)[data-color="lime"] { --profile-color: #9bdd88; }
.settings-profile-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 45px;
  padding: 8px 16px 8px 13.5px;
  border: 0;
  border-radius: 12px;
  background: var(--canvas);
  color: var(--muted);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: left;
}
.settings-profile-option[aria-pressed="true"] { background: var(--soft-border); color: var(--primary); }
.settings-child-row .settings-profile-option { padding-inline-end: 0; background: none; }
.settings-child-row:has(.settings-profile-option[aria-pressed="true"]) {
  background: color-mix(in srgb, var(--profile-color, var(--primary)) 20%, var(--surface));
}
.settings-child-row .settings-profile-option[aria-pressed="true"] {
  color: color-mix(in srgb, var(--profile-color, var(--primary)) 48%, var(--ink));
}
.settings-profile-check {
  flex: 0 0 13px;
  height: 13px;
  margin-inline-start: auto;
  background: var(--profile-color, var(--primary));
  mask: url("assets/figma/settings-profile-check.svg") center no-repeat;
  forced-color-adjust: none;
}
.settings-child-delete {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.settings-child-delete::before {
  width: 13.04px;
  height: 15px;
  background: url("assets/figma/settings-trash.svg") center no-repeat;
  content: "";
}
.settings-child-row:has(.settings-profile-option[aria-pressed="true"]) .settings-child-delete::before {
  background: var(--profile-color, var(--primary));
  mask: url("assets/figma/settings-trash-active.svg") center no-repeat;
  forced-color-adjust: none;
}
.settings-child-delete:hover { background: color-mix(in srgb, var(--muted) 12%, transparent); }
.delete-child-confirm { background: #9b3841; }

.premium-nav-icon {
  width: 24px;
  height: 30px;
  background: currentColor;
  mask: url("assets/figma/sparkles.svg") center / contain no-repeat;
}
.workspace.premium-workspace { grid-template: auto 1fr / minmax(0, 1fr); row-gap: 30px; }
.premium-workspace .page-heading { grid-area: 1 / 1; min-height: 0; }
.premium-layout {
  display: grid;
  grid-area: 2 / 1 / auto / -1;
  grid-template-columns: minmax(0, 800px) minmax(275px, 355px);
  align-items: start;
  gap: 20px 30px;
  min-width: 0;
}
.premium-comparison, .premium-billing { display: grid; gap: 20px; min-width: 0; padding: 29.5px; }
.premium-layout:has(input[name="audience"][value="family"]:checked) :is(.premium-comparison, .premium-billing) {
  --primary: #7d3db5;
  --indigo-dark: #572883;
  --soft-border: #e4d3f5;
  --soft-background: #f4ecfb;
}
.premium-billing-column { display: grid; gap: 12px; min-width: 0; }
.premium-intro { display: grid; justify-items: center; gap: 12px; text-align: center; }
.premium-intro h2, .premium-billing h2 { font-size: 20px; }
.premium-intro p { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.premium-emblem {
  display: grid;
  flex: none;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-background);
  color: var(--primary);
}
.premium-icon { display: block; width: 17px; height: 15px; background: currentColor; mask: var(--premium-icon) center / contain no-repeat; }
.premium-person-icon {
  --premium-icon: url("assets/figma/premium-person.svg");
  --premium-icon-ratio: 9.86133 / 10.5352;
}
.premium-family-icon {
  --premium-icon: url("assets/figma/premium-family.svg");
  --premium-icon-ratio: 15.9727 / 10.5352;
}
.premium-bolt-icon { --premium-icon: url("assets/figma/premium-bolt.svg"); }
.premium-scan-icon { --premium-icon: url("assets/figma/premium-scan.svg"); }
.premium-analysis-icon { --premium-icon: url("assets/figma/premium-analysis.svg"); }
.premium-doctor-icon { --premium-icon: url("assets/figma/premium-doctor.svg"); }
.premium-emblem .premium-icon { width: 30px; height: 26px; }
.premium-audience label > span { display: flex; justify-content: center; align-items: center; gap: 7px; }
.premium-audience .premium-icon { flex: none; width: auto; aspect-ratio: var(--premium-icon-ratio); }
.premium-table {
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  text-align: center;
  font-size: var(--font-small);
}
.premium-value-column { width: 26%; }
.premium-table :is(th, td) { padding: 11px 6px; overflow-wrap: normal; }
.premium-table thead th { font-weight: 600; }
.premium-table tbody th { text-align: left; font-weight: 500; }
.premium-table tbody td, .premium-table thead th { color: var(--muted); }
.premium-table tbody tr + tr > * { border-top: 1px solid var(--canvas); }
.premium-table tr > :last-child { background: var(--soft-background); color: var(--indigo-dark); font-weight: 600; }
.premium-table thead th:last-child { border-radius: 10px 10px 0 0; background: var(--soft-border); }
.premium-table tbody tr:last-child td:last-child { border-radius: 0 0 10px 10px; }
.premium-feature { display: flex; align-items: center; gap: 9px; }
.premium-feature-icon {
  display: grid;
  flex: 0 0 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: var(--soft-background);
  color: var(--primary);
}
.premium-feature-icon .premium-icon { width: 15px; height: 15px; }
.premium-note { color: var(--muted); font-size: var(--font-small); line-height: 1.45; }
.premium-periods { display: grid; gap: 8px; }
.premium-period {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 59px;
  padding: 8px 10px;
  border: 1px solid var(--soft-border);
  border-radius: 12px;
  cursor: pointer;
}
.premium-period:has(:checked) { border-color: var(--primary); background: var(--soft-background); }
.premium-period:has(:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.premium-period input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.premium-period-name, .premium-period-price { display: grid; gap: 2px; font-weight: 600; }
.premium-period-price { justify-items: end; text-align: right; }
.premium-period small { color: var(--muted); font-size: var(--font-small); font-weight: 400; }
#premium-savings {
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--soft-border);
  color: var(--indigo-dark);
  font-size: var(--font-small);
}
.premium-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; }
.premium-actions button { border: 0; background: none; color: var(--muted); padding: 3px 0; font-size: var(--font-small); text-decoration: underline; }
.premium-actions button:hover { color: var(--primary); }

@media (max-width: 1000px) {
  .premium-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1150px) {
  .workspace.settings-workspace { grid-template-columns: minmax(0, 1fr); }
  .settings-aside { grid-area: 3 / 1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 850px) {
  .settings-aside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .workspace.premium-workspace { row-gap: 14px; }
  .premium-comparison, .premium-billing { padding: 14px; gap: 14px; }
  .premium-intro h2, .premium-billing h2 { font-size: 18px; }
  .premium-intro p { font-size: var(--font-small); }
  .premium-table { font-size: var(--font-small); }
  .premium-table :is(th, td) { padding-inline: 4px; }
  .premium-feature { gap: 5px; }
  .premium-feature-icon { flex-basis: 20px; height: 20px; }
  .premium-feature-icon .premium-icon { width: 12px; height: 12px; }
  .settings-workspace { row-gap: 18px; }
  .settings-workspace .page-heading { grid-area: 1 / 1; }
  .settings-account, .settings-personal, .settings-side-card { padding: 16px; }
  .settings-account { gap: 12px; flex-wrap: wrap; }
  .settings-account .settings-secondary { width: auto; }
  .settings-save { width: 100%; }
}
.review { padding: 29px; }
.review p { color: var(--muted); }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.catalog-nav-icon {
  width: 19px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 5px) center / 8px 11px no-repeat;
}
.workspace.catalog-workspace { grid-template: auto 1fr / minmax(0, 1fr); row-gap: 24px; }
.catalog-workspace .page-heading { grid-area: 1 / 1; }
.catalog-content { grid-area: 2 / 1; display: grid; gap: 16px; min-width: 0; }
.catalog-sections { display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-sections button {
  padding: 8px 13px;
  border: 1px solid var(--soft-border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.catalog-sections button[aria-pressed="true"] {
  background: var(--soft-background);
  color: var(--indigo-dark);
  border-color: var(--primary);
}
.catalog-filters { max-width: 680px; }
#catalog-note, #catalog-status { color: var(--muted); }
#catalog-status:empty { display: none; }
#catalog-groups { display: grid; gap: 16px; }
.catalog-group { padding: 20px 24px; }
.catalog-group h2 { margin-bottom: 8px; font-size: 18px; }
.catalog-marker { border-top: 1px solid var(--soft-border); }
.catalog-marker summary { display: flex; align-items: center; gap: 12px; padding: 13px 0; cursor: pointer; list-style: none; }
.catalog-marker summary::-webkit-details-marker { display: none; }
.catalog-marker summary::after { width: 7px; height: 7px; margin-inline-start: auto; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); content: ""; }
.catalog-marker summary::after { flex-shrink: 0; }
.catalog-marker[open] summary::after { transform: rotate(225deg); }
.catalog-marker-code { flex-shrink: 0; max-width: 40%; color: var(--indigo-dark); font-size: var(--font-small); overflow-wrap: normal; }
.catalog-marker-details { display: grid; gap: 8px; padding-bottom: 14px; color: var(--muted); }
.catalog-reference-value { color: var(--ink); font-weight: 600; }
.catalog-table-scroll { overflow: auto; }
.catalog-table { width: 100%; border-collapse: collapse; font-size: var(--font-small); }
.catalog-table :is(th, td) { padding: 8px 10px; border: 1px solid var(--soft-border); text-align: start; }
.catalog-table th { color: var(--ink); background: var(--canvas); }

.history-nav-icon {
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: url("assets/figma/history.svg") center / contain no-repeat;
}
.workspace.history-workspace { grid-template: auto 1fr / minmax(0, 1fr) auto; row-gap: 30px; }
.history-workspace .page-heading { grid-area: 1 / 1; }
.history-layout {
  grid-area: 2 / 1 / 3 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(285px, 1fr);
  align-items: start;
  gap: 20px 30px;
}
.history-calendar, .history-results { min-width: 0; padding: 29px; }
.history-calendar h2, .history-results h2 { font-size: 20px; }
.history-calendar-column { display: grid; gap: 24px; min-width: 0; }
.history-calendar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.history-today {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  background: var(--soft-background);
  color: var(--primary);
}
.history-month-navigation {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  margin-block: 18px 12px;
  text-align: center;
}
.history-month-navigation h3 { font-size: 16px; }
.history-month-navigation button, .history-grid button {
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
}
.history-month-navigation button { min-height: 40px; color: var(--primary); }
.history-month-navigation button:disabled { color: var(--subtle); cursor: default; }
#history-period { padding-inline: 10px; color: var(--ink); }
#history-previous::after { transform: rotate(-135deg); }
.history-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.history-grid button {
  display: grid;
  grid-template-rows: 1fr 5px;
  justify-items: center;
  align-items: center;
  gap: 4px;
  min-height: 58px;
  padding: 5px 0 8px;
  font-size: 15px;
}
.history-grid button[aria-current="date"] { border-color: var(--soft-border); color: var(--primary); font-weight: 600; }
.history-grid button:hover, .history-month-navigation button:hover { background: var(--canvas); }
.history-grid button[aria-pressed="true"] { background: var(--soft-background); color: var(--indigo-dark); font-weight: 600; }
.history-grid[data-view="months"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.history-grid[data-view="years"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.history-grid:not([data-view="days"]) button { display: block; padding: 6px 2px; }
.history-markers { display: flex; gap: 3px; }
.history-markers i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.history-results { display: grid; gap: 16px; }
.history-sign-in { display: inline-grid; place-items: center; justify-self: start; }
.history-results p, .history-result-unit, .history-result-status { color: var(--muted); }
.history-results-list { display: grid; gap: 8px; }
.history-result {
  border: 1px solid var(--soft-border);
  border-radius: 16px;
  overflow-wrap: anywhere;
}
.history-result-info, .history-result-reading { display: grid; gap: 3px; }
.history-result-reading { max-width: 110px; text-align: right; }
.history-result-value { font-size: 17px; }
.history-result-unit, .history-result-status, .history-storage-note { font-size: var(--font-small); }
.history-result[data-range-state="within"] :is(.history-result-value, .history-result-status) { color: #176344; }
.history-result[data-range-state="outside"] :is(.history-result-value, .history-result-status) { color: #9b3841; }
.history-undated { display: grid; gap: 8px; border-top: 1px solid var(--soft-border); padding-top: 12px; }
.history-storage-note { padding-top: 12px; border-top: 1px solid var(--soft-border); }
.history-timeline { display: grid; gap: 15px; min-width: 0; }
.history-timeline h2 { font-size: 20px; }
.history-timeline-dates { display: grid; gap: 18px; }
.history-timeline-dates > li { position: relative; padding-inline-start: 21px; }
.history-timeline-dates > li:not(:last-child)::before {
  position: absolute;
  inset: 9px auto -27px 4px;
  width: 1px;
  background: var(--soft-border);
  content: "";
}
.history-timeline-dates > li::after {
  position: absolute;
  inset: 4px auto auto 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  content: "";
}
.history-timeline-dates h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  margin-bottom: 8px;
  font-size: var(--font-small);
}
.history-timeline-count { color: var(--muted); font-size: var(--font-small); font-weight: 400; }
.history-timeline-results .history-result { border: 0; border-radius: 0; }
.history-timeline-results .history-result + .history-result { border-top: 1px solid var(--soft-border); }
.history-result-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  text-align: start;
}
.history-result-button::after {
  justify-self: center;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-top: 1.5px solid var(--muted);
  transform: rotate(45deg);
  content: "";
}
.history-result-button:hover { background: var(--soft-background); }
.history-result-button:focus-visible { outline-offset: -3px; }
.workspace.details-workspace { grid-template: auto auto / minmax(0, 1fr) auto; row-gap: 22px; }
.details-workspace .page-heading { grid-area: 1 / 1; }
.details-heading { display: grid; grid-template-columns: 80px minmax(0, 1fr) 80px; align-items: center; }
.details-heading h1 { text-align: center; }
.details-heading a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; text-decoration: none; }
.details-layout { grid-area: 2 / 1 / 3 / -1; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.7fr); gap: 22px; align-items: start; }
.details-layout > .panel { min-width: 0; padding: 24px; }
.details-summary { display: grid; gap: 16px; }
.details-marker-heading { display: flex; align-items: center; gap: 12px; }
.details-marker-heading > div { min-width: 0; }
.details-marker-heading h2 { font-size: 18px; overflow-wrap: anywhere; }
.details-marker-heading p { margin-top: 4px; color: var(--muted); font-size: var(--font-small); }
.details-marker-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--soft-background); }
.details-reading { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.details-reading > strong { font-size: clamp(36px, 4vw, 48px); line-height: 1.1; overflow-wrap: anywhere; }
.details-reading label { display: grid; gap: 4px; color: var(--muted); font-size: var(--font-small); max-width: 100%; }
.details-reading select { min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--soft-border); border-radius: 10px; color: var(--ink); background: var(--soft-background); font-size: var(--font-body); }
#details-status { font-size: var(--font-small); font-weight: 600; }
[data-state="high"] :is(#details-value, #details-status), #details-history-list [data-state="high"] strong { color: #c13f67; }
[data-state="low"] :is(#details-value, #details-status), #details-history-list [data-state="low"] strong { color: #936215; }
[data-state="normal"] :is(#details-value, #details-status), #details-history-list [data-state="normal"] strong { color: #147354; }
.details-reference { color: var(--muted); font-size: var(--font-small); }
.details-reference strong { display: block; margin-top: 4px; color: var(--ink); font-weight: 500; }
.details-scale svg { display: block; width: 100%; }
.details-scale-track { fill: var(--canvas); }
.details-scale-normal { fill: #cbe9dc; }
#details-scale-point { fill: var(--primary); stroke: var(--surface); stroke-width: 3px; }
[data-state="high"] #details-scale-point { fill: #c13f67; }
[data-state="low"] #details-scale-point { fill: #936215; }
[data-state="normal"] #details-scale-point { fill: #147354; }
.details-scale > div { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--font-small); }
.details-chart-card { grid-column: 2; grid-row: 1 / 3; }
.details-chart-heading { display: grid; gap: 16px; }
.details-layout h2 { font-size: 18px; }
.details-periods { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--canvas); }
.details-periods button { flex: 1; min-height: 40px; padding: 6px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; white-space: nowrap; }
.details-periods button:hover { background: var(--soft-background); color: var(--primary); }
.details-periods [aria-pressed="true"] { color: var(--primary); font-weight: 600; background: var(--soft-background); }
#details-chart svg { max-height: none; }
#details-chart circle[data-state="high"] { fill: #c13f67; }
#details-chart circle[data-state="low"] { fill: #936215; }
#details-chart circle[data-state="normal"] { fill: #147354; }
.details-limit { stroke-width: 1.5px; stroke-dasharray: 7 6; }
.details-limit-min { stroke: #936215; }
.details-limit-max { stroke: #c13f67; }
#details-chart .details-limit-label { stroke: none; font-weight: 700; paint-order: stroke; }
#details-chart .details-limit-label.details-limit-min { fill: #936215; }
#details-chart .details-limit-label.details-limit-max { fill: #c13f67; }
.details-chart-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: var(--font-small); }
.details-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.details-chart-legend span::before { width: 16px; border-top: 3px solid var(--primary); content: ""; }
.details-chart-legend span:nth-child(2)::before { border-top: 2px dashed #c13f67; }
.details-chart-legend span:nth-child(3)::before { border-top: 2px dashed #936215; }
.details-chart-legend[data-bounds="false"] span:not(:first-child) { display: none; }
.details-chart-note { margin-top: 14px; color: var(--muted); font-size: var(--font-small); }
.details-chart-note:empty { display: none; }
.details-history { grid-column: 1; }
.details-history h2 { margin-bottom: 12px; }
#details-history-list { display: grid; max-height: 420px; overflow: auto; }
#details-history-list li + li { border-top: 1px solid var(--soft-border); }
#details-history-list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; width: 100%; min-height: 60px; padding: 12px 8px; border: 0; border-radius: 8px; background: var(--surface); color: var(--ink); text-align: start; }
#details-history-list button:hover, #details-history-list [aria-pressed="true"] { background: var(--soft-background); }
#details-history-list small { grid-column: 1 / -1; color: var(--muted); }
#details-history-list strong { overflow-wrap: anywhere; }
.details-about { grid-column: 1 / -1; }
.details-about summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.details-about p { margin-top: 14px; color: var(--muted); line-height: 1.65; }
.details-empty { grid-area: 2 / 1 / 3 / -1; padding: 24px; color: var(--muted); }
@media (max-width: 1150px) {
  .details-layout { grid-template-columns: minmax(0, 1fr); }
  .details-chart-card, .details-history, .details-about { grid-area: auto; }
}
@media (max-width: 680px) {
  .workspace.details-workspace { grid-template: auto auto auto / minmax(0, 1fr); gap: 16px; }
  .details-workspace > .dashboard-account { grid-area: 1 / 1; }
  .details-workspace .page-heading { grid-area: 2 / 1; min-height: 44px; }
  .details-layout, .details-empty { grid-area: 3 / 1; }
  .details-layout { gap: 16px; }
  .details-layout > .panel { padding: 18px; }
  #details-chart svg { min-height: 230px; }
}
.history-timeline-empty { padding: 15px; color: var(--muted); }
.history-timeline-dates:empty { display: none; }

@media (max-width: 1000px) {
  .history-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .workspace.history-workspace { grid-template: auto auto 1fr / minmax(0, 1fr); row-gap: 14px; }
  .history-workspace > .dashboard-account { grid-area: 1 / 1; }
  .history-workspace .page-heading { grid-area: 2 / 1; }
  .history-workspace .history-layout { grid-area: 3 / 1; }
  .history-calendar, .history-results { padding: 15px; }
  .history-grid button { min-height: 44px; font-size: var(--font-small); }
}

.toast {
  position: fixed;
  z-index: 2;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
}
.toast:empty { padding: 0; }

.dashboard {
  width: calc(100% - 64px);
  margin-inline: 32px;
  grid-template-columns: minmax(0, 860fr) minmax(285px, 420fr);
  grid-template-rows: auto auto auto auto auto;
  gap: 24px;
  min-height: 100dvh;
  padding-top: 24px;
}
.dashboard .dashboard-heading { grid-area: 2 / 1 / 3 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0; }
.dashboard-heading > div { min-width: 0; }
.dashboard-heading p { max-width: 670px; }
.dashboard-heading .dashboard-new-analysis { flex: 0 0 auto; min-height: 48px; }
.dashboard-topbar { grid-area: 1 / 1 / 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; padding-bottom: 20px; border-bottom: 1px solid var(--soft-border); }
.dashboard-topbar .dashboard-account { margin-left: auto; flex-shrink: 0; }
.dashboard-search-toggle { display: flex; align-items: center; gap: 12px; width: min(420px, 100%); min-height: 46px; padding: 10px 14px; border: 1px solid var(--soft-border); border-radius: 12px; background: var(--surface); color: var(--muted); text-align: left; }
.dashboard-search-toggle:hover { background: var(--soft-background); color: var(--primary); }
.dashboard-search-toggle kbd { margin-left: auto; font: inherit; font-size: var(--font-small); padding: 3px 6px; border: 1px solid var(--soft-border); border-radius: 5px; white-space: nowrap; }
.search-icon { position: relative; width: 15px; height: 15px; flex: 0 0 15px; border: 1.5px solid currentColor; border-radius: 50%; margin-right: 3px; }
.search-icon::after { position: absolute; width: 6px; height: 1.5px; background: currentColor; transform: rotate(45deg); right: -5px; bottom: -2px; content: ""; }
.dashboard-search-dialog { width: min(620px, calc(100% - 32px)); max-height: min(720px, calc(100dvh - 48px)); padding: 24px; border: 1px solid var(--soft-border); overflow-y: auto; }
.dashboard-search-dialog::backdrop { background: #171a2066; }
.dashboard-search-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dashboard-search-dialog h2 { font-size: 20px; }
.dashboard-search-dialog > label { display: block; margin-bottom: 6px; color: var(--muted); font-size: var(--font-small); }
#dashboard-search { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--soft-border); border-radius: 10px; background: var(--canvas); color: var(--ink); }
#dashboard-search-status { color: var(--muted); margin-top: 16px; }
#dashboard-search-status:empty { display: none; }
#dashboard-search-results section { margin-top: 20px; }
#dashboard-search-results h3 { margin-bottom: 6px; color: var(--muted); font-size: var(--font-small); font-weight: 500; }
#dashboard-search-results button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 12px 8px; border: 0; border-radius: 8px; background: var(--surface); color: var(--ink); text-align: start; }
#dashboard-search-results button:hover { background: var(--soft-background); }
#dashboard-search-results button > span { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
#dashboard-search-results small { color: var(--muted); }
.sidebar .secondary-nav { padding-block: 16px; }
@media (min-width: 681px) and (max-height: 850px) {
  .sidebar .brand { min-height: 68px; }
  .sidebar .navigation { gap: 4px; margin-top: 16px; }
  .sidebar .navigation :is(a, button) { min-height: 44px; }
  .sidebar .secondary-nav { margin-top: auto; padding-block: 12px; }
}
.sidebar .sidebar-plan { display: block; flex-shrink: 0; margin: 0 16px 16px; padding: 16px; border-radius: 16px; background: var(--soft-background); }
.sidebar-plan summary { display: grid; gap: 6px; position: relative; cursor: pointer; list-style: none; padding-right: 20px; }
.sidebar-plan summary::-webkit-details-marker { display: none; }
.sidebar-plan summary::after { position: absolute; right: 0; top: 6px; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); content: ""; }
.sidebar-plan[open] summary::after { transform: rotate(225deg); top: 10px; }
.sidebar-plan summary > span { color: var(--muted); font-size: var(--font-small); font-weight: 600; }
.sidebar-plan summary > strong { font-size: 21px; }
.sidebar-plan > div { margin-top: 16px; }
.sidebar-plan > .button { margin-top: 16px; padding-inline: 8px; font-size: var(--font-small); }
.sidebar-plan progress { height: 8px; }
.dashboard-account { grid-area: 1 / 2; justify-self: end; max-width: 100%; z-index: 1; }
.dashboard-profile {
  --profile-rail: 62px;
  --profile-color: var(--primary);
  position: relative;
  width: 362px;
  max-width: 100%;
}
.dashboard-profile-toggle { display: flex; align-items: stretch; width: 100%; min-height: 62px; padding: 0; border: 0; background: none; border-radius: 16px; }
.dashboard-profile-badge, .dashboard-profile-initial {
  display: grid;
  place-items: center;
  flex: none;
  color: white;
  font-weight: 700;
  line-height: 1;
}
.dashboard-profile-badge {
  width: calc(var(--profile-rail) + 16px);
  margin-inline-end: -16px;
  padding-inline-end: 16px;
  border-radius: 14px 0 0 14px;
  background:
    radial-gradient(circle 18px at calc(var(--profile-rail) / 2) center, var(--profile-color) 98%, transparent),
    color-mix(in srgb, var(--profile-color) 20%, transparent);
  font-size: 20px;
}
.dashboard-profile-initial { width: 36px; height: 36px; border-radius: 50%; background: var(--profile-color); font-size: 20px; }
.dashboard-profile-account {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  align-items: center;
  text-align: start;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 7px 10px 7px 20px;
  border: 1px solid var(--soft-border);
  border-radius: 16px;
  background: var(--surface);
}
.dashboard-profile-account > img:first-child { border-radius: 50%; }
.dashboard-profile-identity { display: grid; gap: 3px; overflow-wrap: anywhere; }
.dashboard-profile-identity small { color: var(--muted); }
.dashboard-profile-toggle[aria-expanded="true"] .dashboard-profile-account > img:last-child { transform: rotate(180deg); }
.dashboard-profile-toggle[aria-expanded="true"] { border-end-start-radius: 0; border-end-end-radius: 0; }
.dashboard-profile-toggle[aria-expanded="true"] .dashboard-profile-badge { border-end-start-radius: 0; }
.dashboard-profile-toggle[aria-expanded="true"] .dashboard-profile-account { border-end-start-radius: 0; border-end-end-radius: 0; }
.dashboard-profile:has(.dashboard-profile-menu:not([hidden])) {
  filter: drop-shadow(0 8px 16px rgb(23 26 32 / 12%));
}
.dashboard-profile-menu {
  position: absolute;
  inset: 100% 0 auto;
  border-top: 0;
  border-radius: 0 0 16px 16px;
}
.dashboard-profile-menu :is(button, a) {
  display: grid;
  grid-template-columns: var(--profile-rail) minmax(0, 1fr);
  align-items: center;
  gap: 0 13px;
  width: 100%;
  padding: 0 19px 0 0;
  border: 0;
  text-align: start;
  background: none;
  overflow-wrap: anywhere;
}
.dashboard-profile-menu button {
  --profile-tint: color-mix(in srgb, var(--profile-color) 20%, transparent);
  position: relative;
  min-height: 62px;
}
.dashboard-profile-menu button::after {
  position: absolute;
  inset: auto 0 0 var(--profile-rail);
  border-bottom: 1px solid var(--soft-border);
  content: "";
}
.dashboard-profile-menu a:hover { background: var(--soft-background); }
.dashboard-profile-menu button:hover { background: var(--profile-tint); }
.dashboard-profile-menu button:hover .dashboard-profile-avatar-rail { background: transparent; }
.dashboard-profile-menu :is(button, a):focus-visible { outline-offset: -3px; }
.dashboard-profile-avatar-rail,
.dashboard-profile-settings-icon { display: grid; place-items: center; align-self: stretch; }
.dashboard-profile-avatar-rail { background: var(--profile-tint); }
.dashboard-profile-menu a { min-height: 49px; border-radius: 0 0 16px 16px; font-weight: 600; }
@media (max-width: 400px) {
  .dashboard-profile { --profile-rail: 48px; }
  .dashboard-profile-menu :is(button, a) { gap: 0 8px; padding-inline-end: 10px; }
}
.dashboard-stats { grid-area: 3 / 1 / 4 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dashboard-stat { position: relative; display: flex; align-items: center; gap: 15px; min-height: 80px; padding: 12px 19px; }
.dashboard-stat strong { font-size: 30px; line-height: 1; }
.dashboard-stat h2 { color: var(--muted); font-size: var(--font-small); }
.dashboard-stat:has(.dashboard-percent:not([hidden])) strong { padding-inline-end: 47px; }
.dashboard-percent { position: absolute; top: 13px; right: 13px; padding: 3px 7px; border-radius: 6px; background: #cfe5cf; color: #176344; font-weight: 600; }
.dashboard-percent-outside { background: #f3d9de; color: #9b3841; }
.dashboard-chart-card, .dashboard-tips, .dashboard-plan { min-width: 0; padding: 25px 29px; }
.dashboard-chart-card { grid-area: 4 / 1; align-self: stretch; }
.dashboard-chart-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 19px; border-bottom: 1px solid var(--soft-border); }
.dashboard :is(.dashboard-chart-heading, .dashboard-tips) h2 { font-size: 20px; }
.dashboard-tips header p, .dashboard-chart-heading p { color: var(--muted); margin-top: 5px; font-size: var(--font-small); }
.dashboard-chart-heading select {
  width: min(100%, 250px); min-height: 40px; padding: 8px 29px 8px 12px; color: var(--ink);
  border: 1px solid var(--soft-border); border-radius: 8px; background: var(--surface) url("assets/figma/dashboard-chevron.svg") no-repeat right 12px center;
  appearance: none;
}
.dashboard-chart-heading select:disabled { color: var(--muted); }
.dashboard-chart-view { margin-top: 14px; }
.dashboard-chart-view svg, #dashboard-expanded-chart svg { display: block; width: 100%; height: 290px; }
.dashboard-chart-view svg text, #dashboard-expanded-chart svg text { fill: var(--muted); font: 600 var(--font-small) Onest, sans-serif; }
.dashboard-chart-band { fill: var(--soft-background); }
.dashboard-axis, .dashboard-gridline { fill: none; stroke-width: 1; }
.dashboard-gridline { stroke: #e6e9ee; }
.dashboard-axis { stroke: var(--subtle); }
.dashboard-chart-line { fill: none; stroke: var(--series-color, var(--primary)); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-chart-dot { fill: var(--series-color, var(--primary)); stroke: white; stroke-width: 1.5; }
.dashboard-chart-dot:focus { stroke: var(--ink); }
.dashboard-chart-empty { display: grid; place-items: center; min-height: 272px; background: var(--canvas); color: var(--muted); border-radius: 10px; padding: 20px; text-align: center; }
.dashboard-chart-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.dashboard-legend, .dashboard-legend > span { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dashboard-legend { gap: 18px; font-size: var(--font-small); }
.dashboard-legend-reading, .dashboard-legend-band { display: block; width: 40px; height: 14px; border-radius: 4px; }
.dashboard-legend-reading {
  --legend-color: var(--series-color, var(--primary));
  background: radial-gradient(circle 5px, var(--legend-color) 95%, transparent),
    linear-gradient(var(--legend-color), var(--legend-color)) center / 100% 2px no-repeat;
}
.dashboard-legend-band { background: linear-gradient(105deg, var(--soft-border), var(--canvas)); }
.dashboard-icon-button { display: grid; place-items: center; padding: 6px; border: 0; border-radius: 6px; background: none; }
.dashboard-icon-button:hover { background: var(--soft-background); }
.dashboard-chart-dialog { width: min(1050px, calc(100% - 32px)); padding: 24px; }
.dashboard-chart-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dashboard-chart-dialog::backdrop { background: #171a2066; }
.workspace.trends-workspace { grid-template: auto auto auto / minmax(0, 1fr) auto; row-gap: 20px; }
.trends-workspace .page-heading { grid-area: 1 / 1; }
.trends-chart.dashboard-chart-card { grid-area: 2 / 1 / 3 / -1; }
.trends-results { grid-area: 3 / 1 / 4 / -1; min-width: 0; padding: 25px 29px; }
.trends-chart h2, .trends-results h2 { font-size: 20px; }
.trends-results > p { color: var(--muted); margin-top: 12px; }
.trends-picker { min-width: 0; margin: 18px 0; padding: 12px; border: 1px solid var(--soft-border); border-radius: 12px; }
.trends-picker legend { padding-inline: 6px; font-weight: 600; }
.trends-picker p { margin-bottom: 10px; color: var(--muted); font-size: var(--font-small); }
.trends-options { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.trends-options label { display: flex; align-items: center; gap: 7px; padding: 6px; cursor: pointer; overflow-wrap: anywhere; }
.trends-options label:has(input:disabled) { color: var(--muted); cursor: default; }
.trends-options input { flex: none; margin: 0; accent-color: var(--primary); }
.trends-table-wrap { overflow-x: auto; }
.trends-table { width: 100%; min-width: 600px; border-collapse: collapse; text-align: start; }
.trends-table :is(th, td) { padding: 10px 8px; text-align: start; border-bottom: 1px solid var(--soft-border); overflow-wrap: normal; }
.trends-table th { color: var(--muted); font-size: var(--font-small); font-weight: 600; }
.trends-table :is(th, td):nth-child(2) { white-space: nowrap; }
.trends-table tr:last-child td { border-bottom: 0; }
.trends-biomarker { min-height: 40px; padding: 4px 0; border: 0; background: transparent; color: var(--primary); font: inherit; text-align: start; text-decoration: underline; text-underline-offset: 3px; }
.trends-biomarker:hover { color: var(--indigo-dark); }
@media (max-width: 680px) {
  .workspace.trends-workspace { grid-template: auto auto auto auto / minmax(0, 1fr); }
  .trends-workspace .dashboard-account { grid-area: 1 / 1; }
  .trends-workspace .page-heading { grid-area: 2 / 1; min-height: 0; }
  .trends-chart.dashboard-chart-card { grid-area: 3 / 1; }
  .trends-results { grid-area: 4 / 1; padding: 15px; }
}
.dashboard-tips { grid-area: 4 / 2; display: grid; gap: 15px; }
.dashboard-tips ul { display: grid; gap: 6px; }
.dashboard-tips li a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px;
  align-items: center; min-height: 65px; padding: 10px 12px;
  border: 1px solid var(--soft-border); border-radius: 12px;
  font-weight: 500;
}
.dashboard-tips li a:hover, .dashboard-list-panel li a:hover { background: var(--canvas); }
.dashboard-tip-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.dashboard-tip-tipDown { background: var(--soft-border); }
.dashboard-expand-tips { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--primary); }
.dashboard-empty { color: var(--muted); background: var(--canvas); border-radius: 9px; padding: 14px; font-size: var(--font-small); }
.dashboard-activity { grid-area: 5 / 1 / 6 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dashboard-list-panel { min-width: 0; padding: 23px 20px; }
.dashboard-list-panel header, .dashboard-list-panel header :is(h2, a) { display: flex; align-items: center; gap: 8px; }
.dashboard-list-panel header { flex-wrap: wrap; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--soft-border); }
.dashboard-list-panel h2 { font-size: 16px; }
.dashboard-list-panel header a { color: var(--primary); font-size: var(--font-small); }
.dashboard-list-panel header a:hover { text-decoration: underline; }
.dashboard-list-panel .dashboard-empty { margin-top: 12px; }
.dashboard-list-panel li a { display: grid; align-items: center; gap: 8px; min-height: 56px; padding: 8px 3px; border-bottom: 1px solid var(--soft-border); overflow-wrap: anywhere; }
.dashboard-list-panel li:last-child a { border-bottom: 0; }
#dashboard-download-heading { display: grid; grid-template-columns: 24px minmax(0, 1fr); }
#dashboard-recent li a { grid-template-columns: 24px minmax(0, 1fr) auto; padding-inline-start: 0; }
#dashboard-download-heading > img, #dashboard-recent li a > img { justify-self: center; }
#dashboard-recent a > span:nth-child(2) { display: grid; gap: 3px; }
#dashboard-outside li a { grid-template-columns: minmax(0, 1fr) minmax(0, auto) auto auto; }
.dashboard-list-panel small { color: var(--muted); }
.dashboard-file-format, .dashboard-reading-outside { padding: 4px 7px; border-radius: 6px; font-size: var(--font-small); }
.dashboard-file-format { background: #e5e7eb; color: var(--muted); }
.dashboard-reading-outside { background: #f3d9de; color: #9b3841; font-weight: 600; }
.dashboard-direction { color: #9b3841; font-size: 17px; }
.dashboard-new-analysis {
  display: grid;
  place-items: center;
  background: var(--profile-color, var(--primary));
  color: #fff;
  text-align: center;
}
.button.dashboard-new-analysis:hover {
  background: color-mix(in srgb, var(--profile-color, var(--primary)) 93%, black);
  filter: none;
}
.dashboard-plan { display: grid; gap: 15px; }
.dashboard-plan > p { color: var(--muted); font: 600 var(--font-small)/1.5 Onest, system-ui, sans-serif; }
.dashboard-plan h2 { font-size: 24px; }
.dashboard-plan > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: var(--font-small); }
.dashboard-plan > div strong { font-weight: 600; }
#dashboard-scan-label { color: var(--muted); }
.dashboard-plan progress {
  appearance: none;
  width: 100%;
  height: 15px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--soft-border);
}
.dashboard-plan progress::-webkit-progress-bar { background: var(--soft-border); }
.dashboard-plan progress::-webkit-progress-value { background: var(--primary); border-radius: 4px; }
.dashboard-plan progress::-moz-progress-bar { background: var(--primary); border-radius: 4px; }
@media (forced-colors: active) {
  .dashboard-plan progress { appearance: auto; }
}
.dashboard-plan .button { display: grid; place-items: center; border: 1px solid var(--primary); background: var(--soft-background); color: var(--primary); }
@media (max-width: 1350px) {
  :root { --gutter: 24px; }
  .dashboard { width: calc(100% - 48px); margin-inline: 24px; }
  .dashboard-chart-card, .dashboard-tips, .dashboard-plan { padding: 20px; }
  .dashboard-stat { padding-inline: 12px; gap: 10px; }
  .dashboard-stat:has(.dashboard-percent:not([hidden])) { padding-block-start: 28px; }
  .dashboard-percent { top: 6px; right: 8px; }
  .dashboard-activity { gap: 16px; }
}
@media (max-width: 1150px) {
  .workspace.dashboard { grid-template-columns: minmax(0, 1fr) minmax(235px, .55fr); }
  .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-heading { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .workspace.dashboard { width: calc(100% - 32px); margin-inline: 16px; grid-template-columns: minmax(0, 1fr); }
  .dashboard-topbar { flex-wrap: wrap; gap: 12px; }
  .dashboard-search-toggle { width: auto; flex: 1 1 200px; }
  .dashboard-search-toggle kbd { display: none; }
  .dashboard-topbar .dashboard-account { flex: 1 1 220px; }
  .dashboard-topbar .dashboard-profile { width: 100%; }
  .dashboard .dashboard-heading { grid-area: 2 / 1; flex-wrap: wrap; gap: 16px; }
  .dashboard-stats { grid-area: 3 / 1; }
  .dashboard-chart-card { grid-area: 4 / 1; }
  .dashboard-tips { grid-area: 5 / 1; }
  .dashboard-activity { grid-area: 6 / 1; }
  .dashboard-activity { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .dashboard-stat { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; align-content: start; padding: 12px; }
  .dashboard-stat > img { width: 32px; height: 32px; }
  .dashboard-stat > div { display: contents; }
  .dashboard-stat strong { grid-column: 2; }
  .dashboard-stat h2 { grid-column: 1 / -1; }
  .dashboard-stat strong { font-size: 25px; }
  .dashboard-stat h2 { font-size: var(--font-small); }
  .dashboard-chart-empty { min-height: 130px; }
  .dashboard-chart-card, .dashboard-tips, .dashboard-plan { padding: 15px; }
}

@media (max-width: 1550px) {
  .steps {
    grid-template-columns: auto minmax(12px, 1fr) auto minmax(12px, 1fr) auto;
    gap: 12px;
    padding-inline: 12px;
  }
  .steps li { gap: 8px; }
}
@media (max-width: 1150px) {
  .workspace { grid-template-columns: minmax(0, 1fr) auto; }
  .workflow, .steps, .guidance { grid-column: 1 / -1; }
  .guidance { grid-row: 4; margin-top: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guidance section { align-content: start; padding: 16px; }
}
@media (max-width: 850px) {
  :root { --sidebar-width: 200px; --gutter: 16px; }
  .navigation { margin-inline: 10px; }
  .navigation a, .navigation button { grid-template-columns: 42px 1fr; }
  .workspace { width: calc(100% - 2 * var(--gutter)); }
  .guidance { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 680px) {
  body { display: block; }
  .dashboard-heading .dashboard-new-analysis { width: 100%; }
  .sidebar {
    position: static;
    height: auto;
    min-height: 0;
    border: 0;
    border-bottom: .5px solid var(--soft-border);
  }
  .brand { min-height: 64px; }
  .navigation { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0 8px 8px; }
  .navigation a, .navigation button {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    min-height: 55px;
    padding: 5px 0;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
  }
  .sidebar .secondary-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 0 0; }
  .workspace { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  #main > .dashboard-account { grid-area: 1 / 1; }
  .account { grid-area: 1 / 1; justify-self: end; gap: 8px; padding: 0 0 10px; }
  .page-heading { grid-area: 2 / 1; }
  .steps { grid-area: 3 / 1; }
  .workflow { grid-area: 4 / 1; }
  .guidance { grid-area: 5 / 1; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 100px; padding: 8px 0; font-size: var(--font-small); }
  .steps::before, .steps::after { display: none; }
  .steps li:nth-child(n) { grid-column: auto; }
  .steps li { flex-direction: column; align-self: start; text-align: center; gap: 6px; }
  .step-number { flex: none; width: 24px; height: 24px; }
  .upload-panel, .review { padding: 15px; }
  .drop { padding-block: 26px; }
  .divider { gap: 24px; }
  .next { margin-top: 16px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .catalog-group { padding: 15px; }
}


/* Shared shell and cards from the current desktop Figma screens. */
body {
  grid-template-rows: auto 1fr;
  background: linear-gradient(112.69deg, #ffeded 0%, #f5f6f8 36.538%, #fff 100%);
  background-attachment: fixed;
}
.sidebar { grid-column: 1; grid-row: 1 / 3; }
.sidebar .brand {
  flex-direction: column;
  justify-content: flex-start;
  flex-shrink: 0;
  gap: 0;
  min-height: 101px;
  padding: 24px 16px 18px;
  font-size: 20px;
  letter-spacing: -.8px;
}
.sidebar .brand > .sidebar-brand-logo { display: block; width: 198px; max-width: 100%; height: auto; flex: none; }
.sidebar .navigation { margin-top: 0; }
.sidebar .secondary-nav { margin-top: auto; background: none; }
.sidebar .sidebar-plan {
  margin: 0 20px 40px;
  padding: 15px 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(-47.14deg, #d4dfff 1.4338%, #ffeded 99.151%);
}
.sidebar-plan > .button { display: grid; place-items: center; background: var(--surface); border: 0; }
.sidebar-plan progress { height: 12px; }
.sidebar-plan progress::-webkit-progress-bar { background: #fff; }
.sidebar-plan progress::-webkit-progress-value { background: linear-gradient(90deg, var(--primary), #202b4c); }
.sidebar-plan progress::-moz-progress-bar { background: linear-gradient(90deg, var(--primary), #202b4c); }
.sidebar-plan > div > strong { display: none; }
.sidebar-plan #dashboard-scan-label { display: block; text-align: end; }
.sidebar-plan summary > strong { font-size: 20px; }
.site-topbar.dashboard-topbar {
  position: sticky;
  top: 0;
  align-self: start;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-height: 70px;
  margin: 0;
  padding: 10px var(--gutter);
  gap: 20px;
  background: var(--surface);
  border-bottom: .5px solid var(--soft-border);
}
.site-topbar .dashboard-search-toggle {
  width: min(370px, 100%);
  min-height: 40px;
  padding: 8px 12px;
  background: var(--canvas);
  border-radius: 10px;
  font-size: var(--font-small);
}
.site-topbar .search-icon { flex: none; width: 44px; height: 40px; margin: -8px 0 -8px -12px; border: 0; border-radius: 0; background: url("assets/figma/design-upload-imgFrame18.svg") center no-repeat; }
.site-topbar .search-icon::after { display: none; }
.site-topbar .dashboard-search-toggle { gap: 0; }
.site-topbar kbd { display: none; }
.site-topbar .dashboard-profile { width: 362px; --profile-rail: 62px; }
.site-topbar .dashboard-profile-toggle { min-height: 50px; border-radius: 12px; }
.site-topbar .dashboard-profile-account { padding-block: 4px; border-radius: 12px; grid-template-columns: 40px minmax(0, 1fr) auto; }
.site-topbar .dashboard-profile-account > img:first-child { width: 40px; height: 40px; }
.site-topbar .dashboard-profile-identity { gap: 0; line-height: 1.3; }
.site-topbar .dashboard-profile-identity small { font-size: var(--font-small); }
.topbar-new-analysis { display: inline-flex; flex: none; align-items: center; justify-content: start; min-width: 190px; height: 50px; padding: 0 16px 0 0; border-radius: 40px; white-space: nowrap; }
.topbar-new-analysis > img { flex: none; }
body[data-page="main"] .topbar-new-analysis { display: none; }
.workspace { grid-column: 2; grid-row: 2; min-height: calc(100dvh - 70px); column-gap: 20px; }
.page-heading h1 { font-size: 28px; line-height: 36px; }
.workspace.dashboard { width: calc(100% - 2 * var(--gutter)); margin-inline: var(--gutter); padding-top: 30px; grid-template-rows: auto auto auto auto; }
.dashboard .dashboard-heading { grid-area: 1 / 1 / 2 / -1; }
.dashboard .dashboard-stats { grid-area: 2 / 1 / 3 / -1; }
.dashboard .dashboard-chart-card { grid-area: 3 / 1; }
.dashboard .dashboard-tips { grid-area: 3 / 2; }
.dashboard .dashboard-activity { grid-area: 4 / 1 / 5 / -1; }
.home-nav-icon { --nav-glyph-image: url("assets/figma/design-upload-imgLayer2.svg"); }
.metrics-nav-icon { --nav-glyph-image: url("assets/figma/design-upload-imgLayer1.svg"); }
.add-nav-icon { --nav-glyph-image: url("assets/figma/design-upload-imgPlus.svg"); }
.settings-nav-icon { --nav-glyph-image: url("assets/figma/design-upload-imgGroup.svg"); }
.help-nav-icon { --nav-glyph-image: url("assets/figma/design-upload-imgQuestionmarkCircle.svg"); }
.history-nav-icon { mask-image: url("assets/figma/design-upload-imgGroup1.svg"); }
.steps::before, .steps::after { background-image: url("assets/figma/design-upload-imgLine2.svg"); }
.divider::before { background-image: url("assets/figma/design-upload-imgLine4.svg"); }
.divider::after { background-image: url("assets/figma/design-upload-imgLine5.svg"); }
.drop { border-width: 2px; }
.manual-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; width: auto; min-width: 344px; padding: 8px 30px; }
.manual-toggle img { flex: none; }
.guidance { gap: 10px; }
.settings-workspace { row-gap: 20px; }
.settings-primary, .settings-aside { gap: 20px; }
.settings-personal > header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.settings-personal > header > div { min-width: 0; }
.settings-active-profile { --profile-color: var(--primary); display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; color: var(--profile-color); background: color-mix(in srgb, var(--profile-color) 20%, white); }
.settings-active-profile img { flex: none; }
.settings-active-profile { max-width: 100%; overflow-wrap: anywhere; }
.next { display: flex; align-items: center; justify-content: center; gap: 20px; }
.next img { flex: none; }
.settings-section { background-image: url("assets/figma/design-settings-imgLine6.svg"); }
.settings-save:not(:disabled) { background: var(--profile-color, var(--primary)); }
:is(.settings-save, .settings-active-profile)[data-color="green"] { --profile-color: #36a36c; }
:is(.settings-save, .settings-active-profile)[data-color="purple"] { --profile-color: #8946c8; }
:is(.settings-save, .settings-active-profile)[data-color="pink"] { --profile-color: #c5429d; }
:is(.settings-save, .settings-active-profile)[data-color="orange"] { --profile-color: #db7e3b; }
:is(.settings-save, .settings-active-profile)[data-color="blue"] { --profile-color: #5cb0ec; }
:is(.settings-save, .settings-active-profile)[data-color="yellow"] { --profile-color: #e1c537; }
:is(.settings-save, .settings-active-profile)[data-color="lime"] { --profile-color: #9bdd88; }
@media (max-width: 1150px) {
  .site-topbar.dashboard-topbar { gap: 12px; flex-wrap: nowrap; }
  .site-topbar .dashboard-search-toggle { min-width: 160px; }
  .site-topbar .dashboard-account { flex: 1 1 260px; }
  .site-topbar .dashboard-profile { width: 100%; }
  .topbar-new-analysis { min-width: 54px; width: 54px; padding: 0; height: 54px; }
  .topbar-new-analysis > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 900px) {
  .dashboard .dashboard-chart-card { grid-area: 3 / 1; }
  .dashboard .dashboard-tips { grid-area: 4 / 1; }
  .dashboard .dashboard-activity { grid-area: 5 / 1; }
}
@media (max-width: 680px) {
  .sidebar .brand { flex-direction: row; min-height: 90px; gap: 8px; }
  .sidebar .navigation { margin-top: 0; }
  .sidebar .secondary-nav { margin-top: 0; }
  .sidebar .sidebar-plan { margin: 0 16px 16px; }
  .site-topbar.dashboard-topbar { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 12px; padding-block: 12px; }
  .site-topbar .dashboard-search-toggle { grid-column: 1 / -1; width: 100%; }
  .site-topbar .dashboard-account { grid-area: 2 / 1; margin: 0; width: 100%; }
  .site-topbar .dashboard-profile { --profile-rail: 46px; }
  .site-topbar .dashboard-profile-account { padding-inline-start: 12px; }
  .site-topbar .dashboard-profile-badge { background: radial-gradient(circle 16px at calc(var(--profile-rail) / 2) center, var(--profile-color) 98%, transparent), color-mix(in srgb, var(--profile-color) 20%, transparent); }
  .site-topbar .topbar-new-analysis { grid-area: 2 / 2; }
  body[data-page="main"] .site-topbar .dashboard-account { grid-column: 1 / -1; }
  .workspace.dashboard { padding-top: 16px; }
  .site-topbar .account { padding: 0; min-height: 50px; }
  .settings-personal > header { flex-wrap: wrap; }
  .settings-active-profile { padding: 8px 12px; }
  .manual-toggle { width: 100%; min-width: 0; padding-inline: 12px; }
}
