:root {
  color-scheme: light;
  --bg: #f5f6fa; --white: #fff; --ink: #191a32; --muted: #5e6178;
  --line: #e7e8f0; --accent: #4b45d8; --accent-dark: #3830b7;
  --radius: 20px; --shadow: 0 3px 12px #171b3b06;
  font-family: 'DM Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #827cfa; outline-offset: 3px; }
html { scroll-behavior: smooth; }
h1, h2, p { margin: 0; }
h1, h2, .hero-value, .hero-bottom strong { font-family: 'Manrope', system-ui, sans-serif; }
h2 { font-size: 1.12rem; font-weight: 800; letter-spacing: -.032em; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 10; background: white; padding: 12px; border-radius: 8px; }
.skip:focus { top: 12px; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 71px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -.065em; }
.brand > span:last-child { color: var(--accent); }
.brand-mark { display: inline-flex; width: 36px; height: 36px; margin-right: 8px; align-items: end; justify-content: center; gap: 4px; padding-bottom: 10px; border-radius: 10px; background: var(--accent); }
.brand-mark i { width: 3px; height: 7px; border-radius: 4px; background: white; }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 16px; }
.top nav { display: flex; gap: 28px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .87rem; font-weight: 700; }
.top nav a:hover { color: var(--accent); }
.language-switch { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f5f4fb; }
.language-switch button { min-width: 34px; min-height: 32px; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: .74rem; font-weight: 800; }
.language-switch button[aria-pressed="true"] { background: var(--white); color: var(--accent-dark); box-shadow: 0 1px 3px #21194320; }
.language-switch button:hover { color: var(--accent-dark); }
.intro { padding-block: 52px 35px; }
.eyebrow { color: #4b45c2; font-size: .71rem; font-weight: 800; letter-spacing: .145em; margin-bottom: 12px; }
.intro h1 { font-size: clamp(2.2rem, 4.1vw, 3.65rem); line-height: 1.08; letter-spacing: -.069em; font-weight: 800; }
.intro em { font-style: normal; color: var(--accent); }
.intro > p:last-child { margin-top: 15px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.workspace { display: grid; grid-template-columns: minmax(320px, .78fr) minmax(0, 1.42fr); gap: 22px; align-items: start; }
.panel { border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.settings { padding: 23px; display: grid; gap: 15px; min-width: 0; }
.settings-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 5px; }
.link-button { color: var(--accent-dark); border: 0; padding: 3px 0; background: transparent; font-size: .76rem; font-weight: 700; text-align: left; }
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.edit-months { width: fit-content; margin-top: -8px; margin-bottom: 3px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-weight: 700; font-size: .8rem; }
.field small, .option-row small { color: var(--muted); line-height: 1.45; font-size: .76rem; }
input:not(.switch), select { border: 1px solid #d9dbe7; color: var(--ink); border-radius: 11px; background-color: #fbfbfe; padding: 0 12px; width: 100%; min-height: 42px; min-width: 0; }
input:not(.switch):hover, select:hover { border-color: #9f9bc7; }
input[aria-invalid="true"] { border-color: #a32344; }
.input-unit { position: relative; }
.input-unit input { padding-right: 37px; font-variant-numeric: tabular-nums; appearance: textfield; }
.input-unit input::-webkit-inner-spin-button { appearance: none; }
.input-unit > span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: .83rem; font-weight: 700; }
.salary input { min-height: 55px; font-family: 'Manrope', sans-serif; font-size: 1.55rem; font-weight: 800; letter-spacing: -.044em; }
select { font-size: .84rem; }
.option { border: 1px solid var(--line); border-radius: 12px; }
.option-row { padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.option-row strong { display: block; font-size: .83rem; }
.option-row small { display: block; margin-top: 3px; }
.switch { appearance: none; position: relative; display: inline-block; flex: 0 0 38px; width: 38px; height: 23px; border-radius: 20px; border: 1px solid #b3b5c8; margin: 0; background: #dedfe9; cursor: pointer; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #1a1a3340; transition: transform .18s; }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::after { transform: translateX(15px); }
.option-fields { display: grid; gap: 12px; padding: 0 12px 13px; }
.option-fields .option-row { padding: 8px 0; }
.pair { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.advanced { border: 1px solid var(--line); border-radius: 12px; }
.advanced summary, .methodology summary { cursor: pointer; font-weight: 700; font-size: .83rem; padding: 13px; }
.methodology summary { padding: 20px 24px; font-size: .92rem; }
.privacy { color: var(--muted); font-size: .72rem; display: flex; align-items: center; gap: 7px; line-height: 1.5; }
.privacy svg, .secondary svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.monthly-fields { display: grid; gap: 8px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 11px; border-radius: 11px; background: #f5f4ff; }
.monthly-fields input { min-height: 36px; font-size: .81rem; }
.monthly-fields .link-button { grid-column: 1 / -1; }
.error { color: #912644; font-size: .75rem; line-height: 1.5; }
.results { display: grid; gap: 15px; min-width: 0; }
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 25px 27px; color: white; border-radius: var(--radius); background: linear-gradient(115deg, #25216a, #3a309c 69%, #4737b7); box-shadow: 0 8px 18px #32268424; }
.hero-orbit { position: absolute; z-index: -1; width: 308px; height: 308px; border: 1px solid #b8adff42; border-radius: 50%; top: -161px; right: -104px; box-shadow: 0 0 0 27px #b8adff17, 0 0 0 54px #b8adff12, 0 0 0 81px #b8adff0c; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.hero-top h2 { color: #f3edff; font-size: .98rem; }
.hero-year { border: 1px solid #c6baf25c; border-radius: 20px; padding: 5px 9px; color: #fff; font-size: .61rem; line-height: 1.4; letter-spacing: .085em; white-space: nowrap; font-weight: 700; }
.hero-value { font-size: clamp(2.35rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.12; margin-top: 12px; letter-spacing: -.071em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hero-value span { font-size: .49em; color: #ddd5ff; letter-spacing: -.04em; white-space: nowrap; }
.hero > p { color: #e1ddf7; font-size: .78rem; margin-top: 6px; }
.hero-bottom { border-top: 1px solid #d6cdff3a; margin-top: 19px; padding-top: 15px; display: grid; gap: 10px 20px; grid-template-columns: .88fr 1.12fr; }
.hero-bottom span, .hero-bottom small { display: block; color: #eeebff; font-size: .75rem; line-height: 1.4; }
.hero-bottom small { font-size: .7rem; margin-top: 3px; }
.hero-bottom strong { display: block; font-variant-numeric: tabular-nums; font-size: clamp(.94rem, 2vw, 1.22rem); letter-spacing: -.025em; margin-top: 3px; }
.flow, .trend { padding: 20px 23px; }
.flow-head, .trend-head, .detail-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; }
.flow-head > span { font-weight: 800; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.segments { height: 11px; display: flex; gap: 2px; margin-top: 13px; border-radius: 12px; overflow: hidden; background: #e8e7f3; }
.segments i { flex: 0 0 auto; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 12px; }
.legend-item { display: flex; gap: 5px; align-items: center; font-size: .72rem; color: var(--muted); }
.legend-item b { color: var(--ink); font-weight: 800; }
.legend-item i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.detail-head p { margin-top: 4px; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.selected-month { flex: none; text-align: right; color: var(--accent-dark); font-size: .86rem; font-weight: 800; }
.selected-month small { display: block; font-size: .69rem; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 15px; gap: clamp(3px, .75vw, 9px); }
.bar { min-width: 0; background: transparent; border: 0; padding: 0; display: grid; gap: 5px; color: var(--muted); font-size: .66rem; font-weight: 700; }
.bar-track { height: 68px; display: flex; align-items: end; width: 100%; border-radius: 6px; background: #f1f0fb; overflow: hidden; }
.bar-fill { width: 100%; border-radius: 6px 6px 0 0; background: #ada7f5; transition: height .18s ease, background .16s ease; }
.bar:hover .bar-fill, .bar[aria-pressed="true"] .bar-fill { background: #5650da; }
.bar[aria-pressed="true"] { color: var(--accent-dark); }
.event-list { display: flex; flex-wrap: wrap; gap: 5px 7px; margin-top: 12px; }
.event-list:empty { display: none; }
.event { border: 1px solid #e9e6fa; background: #f5f3ff; color: #554d86; padding: 4px 7px; border-radius: 6px; font-size: .66rem; font-weight: 700; }
.detail { margin-top: 24px; overflow: hidden; }
.detail-head { padding: 22px 24px; }
.secondary { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d9d7ee; border-radius: 9px; background: white; color: var(--accent-dark); padding: 9px 12px; font-size: .77rem; font-weight: 800; white-space: nowrap; }
.secondary:hover { background: #f4f2ff; }
table { border-collapse: collapse; width: 100%; min-width: 850px; font-size: .8rem; font-variant-numeric: tabular-nums; text-align: right; }
.table-wrap { overflow: auto; border-top: 1px solid var(--line); }
th, td { padding: 11px 12px; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; font-weight: 800; }
thead { background: #f6f6fc; color: #51546d; font-size: .72rem; }
tbody td, tbody th { border-top: 1px solid #eeeef5; }
tbody th { font-weight: 700; }
tbody tr:hover { background: #f8f7ff; }
tbody tr.active { background: #f0edff; }
tfoot { background: #eeecff; color: #312880; font-weight: 800; }
.table-note { color: var(--muted); padding: 13px 24px; font-size: .8rem; }
.methodology { margin-top: 16px; }
.method-body { padding: 0 24px 22px; color: var(--muted); line-height: 1.62; font-size: .84rem; }
.method-body ul { padding-left: 18px; }
.method-body li { margin-block: 8px; }
.method-body strong { color: var(--ink); }
.method-components { margin-block: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.method-components h3 { margin: 0 0 7px; font-size: .98rem; color: var(--ink); }
.method-examples { display: grid; gap: 12px; margin-block: 13px; }
.method-examples dt { font-weight: 700; color: var(--ink); }
.method-examples dd { margin: 2px 0 0; }
.method-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer { border-top: 1px solid var(--line); margin-top: 28px; padding-block: 19px 25px; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .74rem; }
.footer span:first-child { color: var(--ink); font-weight: 800; }
@media (max-width: 900px) {
 .wrap { width: min(100% - 36px, 1180px); }
 .workspace { grid-template-columns: minmax(292px, .9fr) minmax(0, 1.1fr); gap: 13px; }
 .settings, .flow, .trend { padding: 17px; }
 .hero { padding: 21px; }
 .legend { gap: 7px 10px; }
}
@media (max-width: 690px) {
 .wrap { width: calc(100% - 28px); }
 .top-inner { min-height: 59px; justify-content: space-between; }
 .top nav { display: none; }
 .intro { padding-block: 33px 23px; }
 .intro > p:last-child { font-size: .9rem; }
 .workspace { display: grid; grid-template-columns: minmax(0, 1fr); }
 .results { gap: 13px; }
 .hero-value { font-size: clamp(2.1rem, 10vw, 3.35rem); }
 .hero-bottom { gap: 10px; }
 .flow, .trend { padding: 16px; }
 .detail-head { padding: 17px 15px; align-items: start; }
 .trend-head { align-items: start; }
 .detail-head p { font-size: .72rem; }
 th:first-child, td:first-child { padding-left: 15px; }
 .table-note { padding: 12px 15px; }
 .footer { font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.intro > p:not(.eyebrow) { margin-top: 15px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.sample { margin-top: 9px; font-size: .78rem; }
.sample span[aria-hidden] { margin-left: 3px; }
.hero > .hero-message { background: #ffffff17; border-radius: 8px; padding: 7px 9px; margin-top: 11px; }
.secondary:disabled { opacity: .55; cursor: default; }

.help { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.component-option:has(.switch:checked) { border-color: #cfc9f7; }
.editor-list, .editor-body { display: grid; gap: 9px; }
.editor-card, .editor-details, .month-breakdown { border: 1px solid var(--line); border-radius: 10px; background: #faf9fe; min-width: 0; }
.editor-card > summary, .editor-details > summary, .month-breakdown > summary {
  padding: 10px; cursor: pointer; font-weight: 700; font-size: .77rem;
}
.editor-name { overflow-wrap: anywhere; }
.editor-body { padding: 0 10px 10px; }
div.editor-body { padding-top: 10px; }
.editor-body label, .month-grid label { display: grid; gap: 4px; min-width: 0; font-weight: 700; font-size: .73rem; }
.editor-body input:not([type="checkbox"]), .editor-body select, .month-grid input { min-height: 36px; font-size: .76rem; background-color: white; }
.editor-details > :not(summary) { margin: 0 10px 10px; }
.editor-details input[type="checkbox"] { appearance: auto; width: auto; min-height: auto; accent-color: var(--accent); }
.editor-details .checks label { display: flex; align-items: center; gap: 5px; margin-block: 5px; }
.month-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.month-grid input { padding-inline: 8px; }
.option-fields > .secondary { width: fit-content; }
.remove { color: #912644; width: fit-content; }
.month-breakdown { margin-top: 12px; }
.month-breakdown dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; padding: 0 10px 10px; gap: 6px 14px; }
.month-breakdown dl div { display: flex; justify-content: space-between; gap: 5px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .75rem; }
.month-breakdown dt { color: var(--muted); }
.month-breakdown dd { margin: 0; font-weight: 800; white-space: nowrap; }
@media (max-width: 480px) { .month-breakdown dl { grid-template-columns: 1fr; } }
