:root {
  color-scheme: light;
  --purple: #6a3d90;
  --purple-hover: #552c76;
  --orange: #e9511c;
  --lavender: #f0e7f6;
  --background: #f8f5fa;
  --surface: #fff;
  --ink: #2b2232;
  --muted: #65596e;
  --line: #e4dce9;
  --heading-font: "Segoe UI", system-ui, sans-serif;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--purple); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--heading-font); font-weight: 500; }
h1 { font-size: clamp(2.2rem, 5vw, 3.65rem); line-height: 1.14; letter-spacing: -.025em; }
h2 { font-size: 1.85rem; line-height: 1.2; letter-spacing: -.015em; }
p { color: var(--muted); line-height: 1.6; }

.brand-logo { display: block; position: relative; overflow: hidden; aspect-ratio: 2.2; }
.brand-logo img { position: absolute; width: 114%; max-width: none; height: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.login { display: grid; grid-template-columns: minmax(350px, .83fr) 1fr; min-height: 100svh; padding: 16px; background: var(--surface); }
.login-panel { display: grid; grid-template-rows: 1fr auto; padding: 22px clamp(26px, 5vw, 80px); }
.login-content { align-self: center; width: min(100%, 390px); margin: 42px auto; }
.login-logo { width: min(100%, 320px); margin: 0 auto; }
.intro { margin: 16px 0 30px; text-align: center; }
.login-panel footer { color: var(--muted); font-size: .85rem; text-align: center; }
.login-photo { position: relative; display: grid; align-items: end; min-height: 590px; isolation: isolate; overflow: hidden; border-radius: 20px; background: #412b49; }
.login-photo img, .login-photo::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-photo img { object-fit: cover; object-position: 47% 47%; z-index: -2; }
.login-photo::after { content: ""; background: linear-gradient(0deg, #201627e8, transparent 60%); z-index: -1; }
.login-photo figcaption { padding: clamp(30px, 5vw, 78px); color: white; font: 500 clamp(2.1rem, 4.7vw, 4.5rem)/1.08 var(--heading-font); letter-spacing: -.025em; }
.login-photo figcaption::before { content: ""; display: block; height: 4px; width: 44px; border-radius: 8px; background: var(--orange); margin-bottom: 22px; }

.stack { display: grid; gap: 20px; }
label { display: grid; gap: 8px; min-width: 0; color: var(--ink); font-weight: 600; font-size: .93rem; }
.stack-field { display: grid; gap: 8px; }
label small, td small, .topbar small { display: block; color: var(--muted); font-weight: 400; }
input, select, textarea { display: block; min-width: 0; width: 100%; min-height: 47px; padding: 10px 12px; border: 1px solid #b9aebf; border-radius: 8px; color: var(--ink); background: var(--surface); }
textarea { resize: vertical; }
input::placeholder { color: var(--muted); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 84px; }
.password-field .text-button { position: absolute; inset: 0 10px 0 auto; }
.text-button { padding: 0 3px; border: 0; background: transparent; color: var(--purple); text-decoration: underline; text-underline-offset: .2em; }
.button { min-height: 44px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.primary { color: white; background: var(--purple); }
.primary:hover { background: var(--purple-hover); }
.secondary { color: var(--purple); background: var(--surface); border-color: #c9b8d3; }
.secondary:hover { background: var(--lavender); }
.login-content .primary { margin-top: 4px; justify-content: space-between; }

.layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100svh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 26px; }
.site-logo { width: 156px; margin-inline: auto; flex: none; }
.sidebar nav { display: grid; gap: 14px; }
.menu-group { display: grid; gap: 3px; padding-top: 12px; border-top: 1px solid var(--line); }
.menu-group small { display: block; padding: 6px 10px; margin-bottom: 3px; border-radius: 6px; background: var(--background); color: var(--purple); font-size: .75rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.menu-group a { font-size: .92rem; }
.sidebar nav a { display: block; color: var(--ink); border-radius: 8px; padding: 11px 14px; text-decoration: none; font-weight: 600; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { color: var(--purple); background: var(--lavender); }
.sidebar form { margin-top: auto; }
.sidebar :is(.menu-toggle, .logout-icon-button) { width: 44px; height: 44px; padding: 0; }
.logout-icon { font-size: 1.4rem; line-height: 1; }
.sidebar .menu-toggle { display: none; }
.menu-toggle-icon { display: inline-block; width: 17px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.menu-toggle-icon::after { content: ""; position: absolute; inset: 3px 0 auto; border-top: 2px solid currentColor; }
.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: #573276; color: white; min-height: 64px; padding: 10px clamp(22px, 4.2vw, 60px); }
.topbar-title { font: 600 clamp(1.05rem, 2vw, 1.25rem)/1.25 var(--heading-font); }
.topbar-account { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar strong { font-size: .95rem; overflow-wrap: anywhere; }
.topbar small { color: var(--lavender); }
.avatar { display: grid; place-items: center; border-radius: 50%; width: 38px; height: 38px; flex: none; background: var(--lavender); color: var(--purple); font-weight: 700; }
.breadcrumbs { margin-bottom: 22px; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.breadcrumbs li { min-width: 0; overflow-wrap: anywhere; }
.breadcrumbs li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 12px 2px 0; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.content { max-width: 1320px; margin: 0 auto; padding: clamp(22px, 3vw, 42px) clamp(22px, 4.2vw, 60px) clamp(22px, 4.2vw, 60px); }
.content h1 { font-size: clamp(2.15rem, 4vw, 3.25rem); }
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 36%); align-items: center; gap: 22px; padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 52px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(110deg, var(--surface), var(--lavender)); }
.welcome h1 { overflow-wrap: anywhere; }
.welcome-art { display: block; width: min(100%, 320px); height: auto; justify-self: end; }
.welcome h1::before { content: ""; display: block; width: 34px; height: 4px; background: var(--orange); border-radius: 3px; margin-bottom: 19px; }
.welcome p, .section-heading p { margin-top: 9px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-heading h1 { font-size: clamp(1.85rem, 3.5vw, 2.65rem); font-weight: 600; }
.section-heading p { font-size: .95rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 14px #2b223208; }
.dashboard-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 24px; }
.summary-card { padding: clamp(16px, 3vw, 26px); }
.summary-card h2 { font-size: 1.25rem; font-weight: 600; }
.summary-metrics { display: flex; margin: 18px 0 0; border-top: 1px solid var(--line); }
.summary-metrics div { flex: 1; min-width: 0; padding: 12px clamp(6px, 1vw, 14px) 0; }
.summary-metrics div:first-child { padding-left: 0; }
.summary-metrics div + div { border-left: 1px solid var(--line); }
.summary-metrics dt { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.summary-metrics dd { margin: 3px 0 0; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; color: var(--purple); font-variant-numeric: tabular-nums; }
.summary-note { margin-top: 10px; font-size: .8rem; }
.city-chart { margin-top: 16px; }
.city-bars { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.city-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(60px, 2fr) minmax(2ch, auto); align-items: center; gap: 12px; font-size: .9rem; }
.city-row span { overflow-wrap: anywhere; }
.city-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.city-row meter { width: 100%; height: 12px; }
.city-row meter::-webkit-meter-bar { background: var(--lavender); border: 0; }
.city-row meter::-webkit-meter-optimum-value { background: var(--purple); border-radius: 8px; }
.city-row meter::-moz-meter-bar { background: var(--purple); border-radius: 8px; }
.filters { display: grid; grid-template-columns: minmax(160px, 320px) minmax(120px, 155px) auto; justify-content: start; align-items: end; gap: 12px; padding: 20px 22px; }
.filters label { font-size: .85rem; }
.filters button { min-height: 47px; border-color: var(--line); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: 16px; border-top: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 22px; }
th:last-child, td:last-child { padding-right: 22px; }
th { padding-block: 11px; background: var(--background); font-size: .8rem; font-weight: 600; color: var(--muted); }
tbody tr:nth-child(even) { background: #f9f6fb; }
tbody tr:hover, tbody tr:focus-within { background: var(--lavender); }
td:first-child { min-width: 180px; }
td:first-child strong { font-weight: 650; }
td small { margin-top: 4px; overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; white-space: nowrap; }
.icon-action { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--purple); font: 600 1rem "Segoe UI Symbol", system-ui, sans-serif; text-decoration: none; }
.icon-action:hover { background: var(--lavender); border-color: #c9b8d3; }
.icon-action.danger { color: #862e30; }
.icon-action.danger:hover { background: #fae9e9; border-color: #dfb8ba; }
.status { display: inline-block; border-radius: 100px; padding: 3px 9px; font-size: .78rem; font-weight: 650; }
.status.active { color: #225941; background: #e7f4ec; }
.status.inactive { color: #594f61; background: #f0edf2; }
td .expired { color: #8c3d1e; }
.empty { border-top: 1px solid var(--line); padding: 22px; }
.editor { max-width: 780px; padding: clamp(18px, 4vw, 34px); gap: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.full { grid-column: 1 / -1; }
fieldset { min-width: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fbf9fc; margin: 0; }
legend { font-weight: 650; padding: 0 6px; }
fieldset p { margin-bottom: 12px; font-size: .9rem; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.alert, .notice { border-radius: 8px; padding: 10px 13px; margin-bottom: 14px; }
.alert { color: #862e30; background: #fae9e9; }
.notice { color: #225941; background: #e3f3e9; }
.client-filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 22px; }
.client-filters .button { min-height: 36px; padding: 6px 12px; font-size: .875rem; }
.client-filters [aria-current] { background: var(--lavender); }
.client-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 780px; }
.client-choice { display: grid; gap: 8px; padding: 24px; text-decoration: none; }
.client-choice:hover { border-color: #b8a2c8; background: #fdfbfe; }
.client-choice span { justify-self: end; }
.client-person { background: var(--surface); }
.readonly-client { border: 0; background: transparent; padding: 0; }
.readonly-client :is(input, select):disabled { opacity: 1; cursor: default; background: var(--background); }
.optional { color: var(--muted); font-size: .76rem; font-weight: 400; }
.check-field { display: flex; align-items: center; gap: 10px; padding-top: 6px; font-weight: 400; }
.check-field input { width: 18px; height: 18px; min-height: 0; margin: 0; flex: none; accent-color: var(--purple); }
.modal { width: min(460px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 14px; padding: 24px; color: var(--ink); background: var(--surface); }
.modal::backdrop { background: #2b22326b; }
.modal > p { margin: 5px 0 16px; font-weight: 600; }
.danger-button { color: white; background: #862e30; }
.danger-button:hover { background: #692225; }
.agenda-card { container-type: inline-size; }
.agenda-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 16px; padding: 16px; }
.agenda-heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.agenda-period { text-align: center; font-size: .95rem; }
.agenda-navigation, .agenda-week-nav, .agenda-jump, .agenda-jump label { display: flex; align-items: center; gap: 8px; }
.agenda-navigation { flex-wrap: wrap; }
.agenda-jump { justify-self: end; }
.agenda-jump label { white-space: nowrap; }
.agenda-toolbar .icon-action, .agenda-toolbar .button, .agenda-toolbar input { height: 36px; min-height: 36px; }
.agenda-toolbar .button { padding: 5px 10px; }
.agenda-jump input { width: 126px; }
.agenda-toggle { align-self: center; font-size: .85rem; }
.agenda-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--line); }
.agenda-slot-hint { padding: 0 16px 12px; font-size: .82rem; }
.agenda-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
.agenda-scroll:focus-visible { outline-offset: -2px; }
.agenda-week { min-width: 1068px; table-layout: fixed; }
.agenda-week :is(th, td) { padding: 6px 8px; border: 1px solid var(--line); vertical-align: top; }
.agenda-week thead th { vertical-align: middle; }
.agenda-week th:first-child { position: sticky; left: 0; width: 88px; background: var(--background); text-align: center; vertical-align: middle; }
.agenda-week tbody th { height: 38px; color: var(--muted); font-variant-numeric: tabular-nums; }
.agenda-week thead .is-today { background: var(--lavender); color: var(--purple); }
.agenda-week td.is-today { background: #f3ebf8; }
.agenda-day-heading { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; align-items: center; gap: 2px; min-height: 42px; font-size: .88rem; }
.agenda-day-heading > span { grid-column: 2; text-align: center; }
.agenda-day-heading small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.agenda-day-heading .icon-action { flex: none; width: 30px; height: 30px; }
.agenda-events { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.agenda-week .agenda-blocked { background: repeating-linear-gradient(135deg, #f0e7f6, #f0e7f6 5px, #f8f5fa 5px, #f8f5fa 10px); }
.agenda-week .agenda-blocked.is-today { background: repeating-linear-gradient(135deg, #e7d7f0, #e7d7f0 5px, #f3ebf8 5px, #f3ebf8 10px); }
.agenda-week .agenda-bookable { position: relative; }
.agenda-slot { display: grid; place-items: center; min-height: 26px; border-radius: 4px; color: var(--purple); text-decoration: none; }
.agenda-slot:only-child { position: absolute; inset: 2px; }
.agenda-slot span { opacity: 0; font-weight: 700; }
.agenda-slot:hover, .agenda-slot:focus-visible, .agenda-slot.is-selected { background: var(--lavender); }
.agenda-slot:hover span, .agenda-slot:focus-visible span, .agenda-slot.is-selected span { opacity: 1; }
.agenda-week.is-selecting { user-select: none; }
.agenda-block-label { display: block; margin-bottom: 4px; color: #573276; font-size: .74rem; font-weight: 650; }
.appointment-event { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--line); border-left: 3px solid var(--appointment-color, var(--purple)); border-radius: 8px; color: var(--ink); background: var(--surface); font-size: .85rem; text-decoration: none; overflow-wrap: anywhere; }
.appointment-event:hover { background: var(--background); }
.appointment-event small, .appointment-time { color: var(--muted); font-size: .76rem; }
.appointment-status { justify-self: start; display: inline-block; padding: 3px 7px; border-radius: 10px; color: var(--appointment-color, var(--purple)); background: var(--appointment-bg, var(--lavender)); font-size: .74rem; font-weight: 650; }
.appointment-status.confirmed, .appointment-event.confirmed { --appointment-color: #215389; --appointment-bg: #e7f1fb; }
.appointment-status.completed, .appointment-event.completed { --appointment-color: #225941; --appointment-bg: #e7f4ec; }
.appointment-status.missed, .appointment-event.missed { --appointment-color: #862e30; --appointment-bg: #fae9e9; }
.appointment-status.transferred, .appointment-event.transferred { --appointment-color: #825013; --appointment-bg: #fbefdf; }
.appointment-status.cancelled, .appointment-event.cancelled { --appointment-color: #594f61; --appointment-bg: #f0edf2; }
.appointment-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.appointment-details dt { color: var(--muted); font-size: .85rem; }
.appointment-details dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.appointment-editor { margin-top: 16px; }
.appointment-editor h2 { font-size: 1.3rem; font-weight: 600; }
.mapping-section { margin-bottom: 16px; }
.mapping-section h2 { font-size: 1.25rem; }
.mapping-section summary { cursor: pointer; overflow-wrap: anywhere; }
.mapping-section summary small { display: block; color: var(--muted); margin-top: 4px; }
.mapping-fields { margin-top: 16px; }
.mapping-body-part { max-width: 780px; margin-block: 24px; }
.mapping-body-part > h2 { background: var(--lavender); color: var(--purple); padding: 10px 16px; border-radius: 8px; margin-bottom: 12px; }
.pattern-label { display: inline-block; margin: 8px 0 4px; padding: 3px 9px; border-radius: 10px; font-size: .8rem; font-weight: 650; }
.pattern-0 { color: #573276; background: #f0e7f6; }
.pattern-1 { color: #215389; background: #e7f1fb; }
.pattern-2 { color: #225941; background: #e7f4ec; }
.pattern-3 { color: #825013; background: #fbefdf; }
.pattern-4 { color: #862e30; background: #fae9e9; }
.assessment-section { overflow: hidden; }
.assessment-section > h2 { font-size: 1.3rem; font-weight: 650; padding: 16px 22px; background: #f8f4fb; border-bottom: 1px solid var(--line); }
.assessment-questions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 10px; padding: 14px; }
.assessment-questions.single { grid-template-columns: 1fr; }
.assessment-question { display: grid; align-content: start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.assessment-question:is(.pattern-0,.pattern-1,.pattern-2,.pattern-3,.pattern-4) { color: var(--ink); background: var(--surface); border-left: 3px solid var(--pattern-accent); }
.assessment-question.pattern-0 { --pattern-accent: #ab8ac4; }
.assessment-question.pattern-1 { --pattern-accent: #85a6ce; }
.assessment-question.pattern-2 { --pattern-accent: #81ad99; }
.assessment-question.pattern-3 { --pattern-accent: #d0aa75; }
.assessment-question.pattern-4 { --pattern-accent: #cc939b; }
.assessment-question h3 { margin: 0; font-size: .95rem; line-height: 1.35; }
.assessment-options { display: flex; flex-wrap: wrap; gap: 6px; }
.assessment-option { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: .86rem; }
.assessment-option:has(input:checked) { background: var(--lavender); border-color: #bc9fce; }
.assessment-option input { width: 15px; min-height: 15px; margin: 0; accent-color: var(--purple); }
.assessment-help { font-size: .85rem; color: var(--purple); }
.assessment-help summary { cursor: pointer; width: fit-content; }
.assessment-help p { margin-top: 8px; white-space: pre-wrap; }
.guidance-photo { display: block; max-width: min(100%, 420px); height: auto; border-radius: 8px; margin-top: 8px; }
.assessment-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: end; position: sticky; bottom: 0; padding: 12px 0; background: var(--background); }
.assessment-people, .assessment-pie-legend { list-style: none; padding: 0; margin: 0; }
.assessment-people li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.assessment-result { max-width: none; }
.assessment-result-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, 28%); gap: 24px; align-items: start; }
.assessment-table-scroll { overflow-x: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.content:has(.assessment-results-page) { max-width: 1680px; }
.individual-results { display: grid; gap: 24px; min-width: 0; }
.individual-results.is-couple { grid-template-columns: repeat(auto-fit, minmax(min(100%, 620px), 1fr)); }
.assessment-result { min-width: 0; }
.assessment-result .assessment-table { min-width: 570px; }
.result-person-heading { display: flex; align-items: center; gap: 14px; }
.result-person-heading h2 { font-size: 1.4rem; overflow-wrap: anywhere; }
.result-person-avatar { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--lavender); color: var(--purple); font-weight: 650; }
.result-trait-mark { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--trait-color); margin-right: 5px; }
.potentialities-result { min-width: 0; overflow: hidden; border-top: 3px solid var(--purple); }
.potentialities-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.potentialities-heading h2 { margin: 5px 0 8px; font-size: clamp(1.45rem, 2.5vw, 1.85rem); }
.result-eyebrow { color: var(--purple); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.potentialities-badge { border: 1px solid var(--line); background: var(--background); padding: 8px 12px; border-radius: 999px; color: var(--purple); font-size: .8rem; white-space: nowrap; }
.potentialities-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.potentialities-table { width: 100%; min-width: 720px; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; text-align: left; }
.potentialities-table :is(th, td) { padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.potentialities-table thead { background: var(--lavender); color: var(--purple); }
.potentialities-table th:first-child { width: 42%; }
.potentialities-table tbody th { font-weight: 550; }
.potentialities-table tbody th small { display: block; color: var(--muted); font-size: .75rem; margin-top: 6px; font-weight: 400; }
.potentialities-table tbody tr:nth-child(even) { background: var(--background); }
.potentialities-table tbody tr:last-child > * { border-bottom: 0; }
.potential-value { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.potential-value strong { color: var(--purple-hover); font-size: 1.3rem; font-weight: 650; }
.potential-classification { font-size: .72rem; color: var(--muted); padding: 3px 8px; border-radius: 6px; background: var(--lavender); }
.potential-composition { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.potential-component { font-size: .75rem; color: var(--muted); }
.potential-component + .potential-component::before { content: '+'; margin-right: 6px; color: #998ba3; }
.potential-component b { color: var(--purple); font-weight: 650; }
.potentialities-method { padding-top: 4px; }
.potentialities-method summary { cursor: pointer; color: var(--purple); font-size: .9rem; }
.potentialities-method p { font-size: .85rem; margin-top: 12px; max-width: 100ch; }
.assessment-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.assessment-table :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; }
.assessment-table th:first-child { min-width: 135px; text-align: left; }
.assessment-table thead, .assessment-table tbody tr:first-child { background: var(--lavender); font-weight: 650; }
.assessment-body-icon { display: inline-grid; place-items: center; width: 1.8em; margin-right: .35em; }
.assessment-chart { display: grid; justify-items: center; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.assessment-chart figcaption { text-align: center; font-weight: 650; }
.assessment-pie { display: block; width: min(100%, 190px); }
.assessment-pie-legend { width: 100%; display: grid; gap: 6px; font-size: .875rem; }
.assessment-pie-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: center; overflow-wrap: anywhere; }
@media (max-width: 1050px) { .assessment-result-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .assessment-questions { grid-template-columns: 1fr; } }

@container (max-width: 820px) {
  .agenda-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .agenda-period { grid-column: 1 / -1; grid-row: 1; }
}
@container (max-width: 475px) {
  .agenda-toolbar { grid-template-columns: minmax(0, 1fr); }
  .agenda-jump { justify-self: end; }
}
@container (max-width: 320px) {
  .agenda-jump { align-items: end; }
  .agenda-jump label { flex-direction: column; align-items: start; }
}

@media (max-width: 850px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { grid-template-columns: minmax(0, 1fr); width: 100%; order: 1; gap: 10px; }
  .sidebar.menu-ready .menu-toggle { display: inline-flex; margin-left: auto; margin-right: -8px; }
  .sidebar.menu-ready .menu-toggle[aria-expanded="false"] + nav { display: none; }
  .site-logo { width: 104px; margin-inline: 0; }
  .sidebar form { margin: 0 0 0 auto; }
  .sidebar.menu-ready form { margin-left: 0; }
  .topbar { min-height: 55px; }
}
@media (max-width: 700px) {
  .login { grid-template-columns: 1fr; gap: 16px; padding: 12px; }
  .login-panel { padding: 12px 12px 4px; }
  .login-photo { min-height: 320px; border-radius: 13px; }
  .login-photo img { object-position: 50% 39%; }
}
@media (max-width: 500px) {
  .filters, .form-grid, .client-choices { grid-template-columns: 1fr; }
  .filters { justify-content: stretch; }
  .welcome { grid-template-columns: 1fr; gap: 12px; }
  .welcome-art { width: min(72%, 230px); justify-self: center; }
}
