.mlt-main { --max-width: 860px; padding-top: 54px; }
.mlt-intro { margin-bottom: 30px; }
.mlt-intro h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; }
.mlt-card, .mlt-group { padding: 22px 24px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 22px; box-shadow: 0 8px 24px rgb(40 64 96 / 5%); }
.mlt-card h2, .mlt-group h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.035em; }
.mlt-setup p { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.mlt-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mlt-field { display: grid; grid-template-columns: 1fr auto; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 650; }
.mlt-field input { grid-column: 1 / -1; min-width: 0; min-height: 44px; padding: 10px 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--paper-line); border-radius: 11px; font: inherit; font-size: 15px; font-weight: 500; }
.mlt-field input::placeholder { color: var(--muted); opacity: .75; }
.mlt-optional { justify-self: end; font-weight: 500; opacity: .8; }

.mlt-test { display: grid; gap: 16px; margin-top: 18px; }
.mlt-progress { position: sticky; top: 10px; z-index: 5; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; padding: 12px 18px; background: color-mix(in srgb, var(--paper) 88%, transparent); border: 1px solid var(--paper-line); border-radius: 16px; box-shadow: 0 10px 26px rgb(40 64 96 / 9%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mlt-turn { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.4; }
.mlt-progress__text { margin: 0; color: var(--muted); font-size: 13px; font-weight: 650; white-space: nowrap; }
.mlt-progress__bar { grid-column: 1 / -1; height: 6px; overflow: hidden; background: var(--page); border-radius: 999px; }
.mlt-progress__bar span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #36a3ff, #0a84ff); border-radius: inherit; transition: width .25s ease; }
.mlt-test--partner .mlt-progress { border-color: color-mix(in srgb, #ff6b8b 45%, var(--paper-line)); }
.mlt-test--partner .mlt-progress__bar span { background: linear-gradient(90deg, #ff8aa5, #ff5b7f); }

.mlt-group { display: grid; gap: 12px; }
.mlt-group h2 { margin-bottom: 0; }
.mlt-group-hint { margin: -4px 0 0; color: var(--muted); font-size: 13px; }
.mlt-question { min-width: 0; margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--paper-line); }
.mlt-question legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; color: var(--ink); font-size: 16px; font-weight: 650; line-height: 1.4; letter-spacing: -.015em; }
.mlt-question--missing legend::after { content: " •"; color: #e5484d; }
.mlt-options { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mlt-options label { position: relative; cursor: pointer; }
.mlt-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mlt-options span { display: grid; min-height: 42px; padding: 8px 10px; place-items: center; color: var(--muted); background: var(--page); border: 1px solid var(--paper-line); border-radius: 12px; font-size: 14px; font-weight: 650; line-height: 1.25; text-align: center; transition: background .15s, border-color .15s, color .15s; }
.mlt-options label:hover span { border-color: var(--blue); }
.mlt-options input:checked + span { color: #fff; background: #126ccb; border-color: #126ccb; }
.mlt-options input[value="partner"]:checked + span { background: #d9466c; border-color: #d9466c; }
.mlt-options input[value="both"]:checked + span { background: #6c55d4; border-color: #6c55d4; }
.mlt-options input[value="na"]:checked + span { color: var(--ink); background: var(--page-deep); border-color: var(--paper-line); }
.mlt-options input:focus-visible + span { outline: 3px solid rgb(10 132 255 / 64%); outline-offset: 3px; }
.mlt-question--missing .mlt-options span { border-color: color-mix(in srgb, #e5484d 55%, var(--paper-line)); }

.mlt-submit { display: grid; justify-items: center; gap: 8px; padding: 10px 0 4px; }
.mlt-note { min-height: 18px; margin: 0; color: var(--muted); font-size: 13px; text-align: center; }

.mlt-result { display: grid; gap: 26px; margin-top: 22px; padding: 28px; scroll-margin-top: 96px; outline: none; }
.mlt-result__head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 26px; }
.mlt-result__copy .calendar-kicker { margin-bottom: 6px; }
.mlt-result__copy h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.mlt-result__copy p:not(.calendar-kicker) { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.mlt-dial { --share: 50; display: grid; width: 168px; aspect-ratio: 1; place-content: center; padding: 18px; text-align: center; background: radial-gradient(closest-side, var(--paper) 78%, transparent 79%), conic-gradient(#126ccb calc(var(--share) * 1%), color-mix(in srgb, #d9466c 30%, var(--page)) 0); border-radius: 50%; }
.mlt-dial strong { font-size: 40px; line-height: 1; letter-spacing: -.05em; }
.mlt-dial span { max-width: 104px; margin: 6px auto 0; color: var(--muted); font-size: 10.5px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.mlt-areas, .mlt-alone, .mlt-differ { display: grid; gap: 10px; }
.mlt-areas h3, .mlt-alone h3, .mlt-differ h3, .mlt-view h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -.02em; }
.mlt-area { display: grid; grid-template-columns: minmax(110px, 180px) 1fr 74px; align-items: center; gap: 12px; font-size: 14px; }
.mlt-area__name { font-weight: 650; }
.mlt-area__bar { height: 10px; overflow: hidden; background: color-mix(in srgb, #d9466c 22%, var(--page)); border-radius: 999px; }
.mlt-area__bar span { display: block; height: 100%; background: #126ccb; border-radius: inherit; }
.mlt-area__value { color: var(--muted); font-weight: 650; text-align: right; }
.mlt-alone p, .mlt-differ p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.mlt-alone ul { display: grid; gap: 6px; margin: 4px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }

.mlt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mlt-actions .calendar-print-button { margin: 0; }
.mlt-secondary { min-height: 44px; padding: 0 18px; color: var(--ink); background: var(--page); border: 1px solid var(--paper-line); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.mlt-secondary:hover { border-color: var(--blue); }
.mlt-actions .mlt-note { flex-basis: 100%; text-align: left; }

.mlt-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mlt-view { padding: 16px; background: var(--page); border-radius: 16px; }
.mlt-split { display: flex; height: 14px; overflow: hidden; margin: 8px 0; border-radius: 999px; }
.mlt-split__a { background: #126ccb; }
.mlt-split__b { flex: 1; background: #d9466c; }
.mlt-split__legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin: 0; font-size: 13px; font-weight: 650; }
.mlt-split__key::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: #126ccb; }
.mlt-split__key--b::before { background: #d9466c; }
.mlt-differ ul { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.mlt-differ__item { display: grid; gap: 6px; padding: 12px 14px; background: var(--page); border-radius: 14px; font-size: 14px; }
.mlt-differ__item--both { box-shadow: inset 3px 0 0 #f5a524; }
.mlt-differ__answers { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); }
.mlt-badge { justify-self: start; padding: 3px 9px; color: #8a5a00; background: #ffecc2; border-radius: 999px; font-size: 12px; font-weight: 700; }
:root[data-theme="dark"] .mlt-badge { color: #ffd88a; background: rgb(245 165 36 / 18%); }

/* Guided flow: one screen at a time, applied once the script runs. */
.mlt-setup-actions { display: flex; justify-content: flex-start; margin-top: 22px; }
.mlt-setup-actions .calendar-print-button { margin: 0; }
.mlt-setup:has(+ .mlt-flow) { padding: 32px; border-radius: 26px; scroll-margin-top: 96px; }
.mlt-flow ~ .mlt-result { margin-top: 0; }
.mlt-setup:has(+ .mlt-flow) h2 { margin-bottom: 10px; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; }
.mlt-test.mlt-flow { display: flex; flex-direction: column; gap: 0; min-height: min(560px, calc(100dvh - 140px)); margin-top: 0; padding: 26px 32px 22px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 26px; box-shadow: 0 16px 44px rgb(29 53 91 / 10%); scroll-margin-top: 96px; }
.mlt-flow .mlt-progress { position: static; padding: 0 0 20px; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.mlt-flow .mlt-group { flex: 1; align-content: center; gap: 10px; padding: 8px 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.mlt-flow .mlt-group h2 { color: var(--blue-deep); font-size: 12px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.mlt-flow .mlt-group-hint { margin: 0; }
.mlt-flow .mlt-question { padding: 0; border: 0; outline: none; }
.mlt-flow .mlt-question.is-entering { animation: mlt-enter .34s cubic-bezier(.2, .8, .2, 1); }
@keyframes mlt-enter { from { opacity: 0; transform: translateY(18px); } }
.mlt-flow .mlt-question legend { margin-bottom: 22px; font-size: clamp(22px, 3.2vw, 30px); font-weight: 720; line-height: 1.25; letter-spacing: -.03em; }
.mlt-flow .mlt-question legend::before { content: attr(data-number) " →"; display: block; margin-bottom: 8px; color: var(--blue-deep); font-size: 14px; font-weight: 760; letter-spacing: 0; }
.mlt-flow .mlt-options { grid-template-columns: minmax(0, 1fr); max-width: 460px; gap: 10px; }
.mlt-flow .mlt-options span { display: flex; justify-content: flex-start; gap: 12px; min-height: 54px; padding: 10px 14px; color: var(--ink); font-size: 16px; text-align: left; }
.mlt-flow .mlt-options span .mlt-option-text { display: block; min-height: 0; padding: 0; color: inherit; background: none; border: 0; border-radius: 0; text-align: left; transition: none; overflow-wrap: anywhere; }
.mlt-key { display: grid; flex: 0 0 26px; width: 26px; height: 26px; place-items: center; color: var(--blue-deep); background: var(--paper); border: 1px solid var(--paper-line); border-radius: 7px; font-family: inherit; font-size: 12px; font-weight: 760; }
.mlt-flow .mlt-options input:checked + span .mlt-key { color: inherit; background: rgb(255 255 255 / 22%); border-color: rgb(255 255 255 / 55%); }
.mlt-flow .mlt-options input[value="na"]:checked + span .mlt-key { color: var(--ink); background: var(--paper); border-color: var(--paper-line); }
.mlt-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--paper-line); }
.mlt-count { color: var(--muted); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mlt-next { color: var(--blue-deep); }
.mlt-keys { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.mlt-done { display: grid; flex: 1; align-content: center; justify-items: center; gap: 10px; padding: 24px 0; text-align: center; }
.mlt-done h2 { margin: 0; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.04em; outline: none; }
.mlt-done__text { margin: 0 0 6px; color: var(--muted); font-size: 16px; }
.mlt-done .mlt-submit { justify-items: center; gap: 10px; }
@media (hover: none) { .mlt-keys { display: none; } }
@media (prefers-reduced-motion: reduce) { .mlt-flow .mlt-question.is-entering { animation: none; } .mlt-gauge__needle, .mlt-gauge__band, .mlt-bands li { transition: none; } }

.mlt-guide { margin: 56px auto 0; }
.mlt-guide h2 { margin: 36px 0 12px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.04em; }
.mlt-guide h2:first-child { margin-top: 0; }
.mlt-guide p { margin: 0 0 12px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.mlt-source { font-size: 13px !important; }
.mlt-source a, .mlt-guide a { color: var(--blue-deep); text-underline-offset: 3px; }
/* Score gauge: five bands from "my partner carries most" to "I carry most", in the answer colors. */
[data-band="least"] { --band: #d9466c; }
[data-band="less"] { --band: #ee8aa5; }
[data-band="balanced"] { --band: #7b63dc; }
[data-band="more"] { --band: #5b9ee8; }
[data-band="most"] { --band: #126ccb; }
.mlt-scale { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); align-items: center; gap: 20px 28px; }
.mlt-gauge { display: grid; justify-items: center; gap: 6px; padding: 22px 20px 18px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 22px; }
.mlt-gauge__dial { display: block; width: 100%; max-width: 300px; overflow: visible; }
.mlt-gauge__track { fill: none; stroke: var(--page); stroke-width: 28; }
.mlt-gauge__band { fill: none; stroke: var(--band); stroke-width: 22; transition: opacity .3s, stroke-width .3s; }
.mlt-gauge.has-reading .mlt-gauge__band:not(.is-current) { opacity: .32; }
.mlt-gauge__band.is-current { stroke-width: 26; }
.mlt-gauge__ticks text { fill: var(--muted); font-family: inherit; font-size: 9px; font-weight: 700; text-anchor: middle; }
.mlt-gauge__needle { color: var(--ink); transform-box: view-box; transform-origin: 120px 118px; transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
.mlt-gauge__needle path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }
.mlt-gauge__needle circle { fill: currentColor; }
.mlt-gauge__needle .mlt-gauge__pivot { fill: var(--paper); }
.mlt-gauge__ends { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; width: 100%; max-width: 300px; color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.3; }
.mlt-gauge__ends span:nth-child(2) { text-align: center; }
.mlt-gauge__ends span:last-child { text-align: right; }
.mlt-guide .mlt-gauge__reading { display: grid; justify-items: center; gap: 2px; margin: 8px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mlt-gauge__reading strong { color: var(--ink); font-size: 30px; letter-spacing: -.04em; line-height: 1.1; text-transform: none; }
.mlt-bands { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mlt-bands li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 16px 12px 20px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 14px; box-shadow: inset 5px 0 0 var(--band); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.mlt-bands li.is-current { border-color: var(--band); box-shadow: inset 5px 0 0 var(--band), 0 0 0 1px var(--band); }
.mlt-bands span { color: var(--muted); }
.mlt-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mlt-guide-grid article { padding: 18px; background: var(--paper); border: 1px solid var(--paper-line); border-radius: 18px; }
.mlt-guide-grid h3 { margin: 0 0 6px; font-size: 16px; }
.mlt-guide-grid p { margin: 0; font-size: 14px; line-height: 1.6; }
.mlt-context { margin-top: 56px; }

@media (max-width: 760px) {
  .mlt-names, .mlt-views, .mlt-guide-grid, .mlt-scale { grid-template-columns: 1fr; }
  .mlt-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mlt-card, .mlt-group, .mlt-result { padding: 18px; }
  .mlt-test.mlt-flow { min-height: calc(100dvh - 120px); padding: 20px 18px 16px; border-radius: 22px; }
  .mlt-setup:has(+ .mlt-flow) { padding: 22px 18px; }
  .mlt-flow .mlt-options { max-width: none; }
  .mlt-flow .mlt-question legend { margin-bottom: 18px; }
  .mlt-result__head { grid-template-columns: 1fr; justify-items: start; gap: 18px; }
  .mlt-dial { width: 140px; }
  .mlt-area { grid-template-columns: 1fr 64px; }
  .mlt-area__bar { grid-column: 1 / -1; grid-row: 2; }
  .mlt-bands li { grid-template-columns: 1fr; gap: 2px; }
}
@media print {
  .mlt-progress, .mlt-actions, .mlt-context, .calendar-site-header, .calendar-site-footer { display: none !important; }
}
