/* UTI-PUTI · local anketa · shared visual system */
.choice-art.asset-pending{display:none}.visual-choice.asset-pending .option-body::before{content:"";display:block;width:100px;height:100px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0 9%,#ffd8ce 10% 42%,#f5a894 43% 100%);box-shadow:inset 0 0 0 1px #f1c5ba}
:root{color-scheme:light;--paper:#fff;--ink:#333;--muted:#555;--line:#d8d8d8;--line-soft:#ededed;--coral:#ff6b48;--coral-light:#ffb6a4;--coral-wash:#fff5f2;--link:#6177f8;--focus:#4a60dc;--success:#82ae29;--success-ink:#486419;--error:#873c50;--error-line:#e9a6b3;--error-paper:#fff1f3;--container-shadow:0 10px 120px rgb(61 61 61 / 15%);--cta-light:#a8c96a;--cta-base:#8fb65a;--button-shadow:0 8px 20px rgb(111 145 66 / 24%);--radius:16px}
*{box-sizing:border-box}html{scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-text-size-adjust:100%}button,input,select,textarea{font:inherit}button{color:inherit;cursor:pointer}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}img{display:block;max-width:100%}button,a{touch-action:manipulation}a,.link-button,.edit-link{color:var(--link);text-decoration:underline;text-underline-offset:4px}a:hover,.link-button:hover,.edit-link:hover{color:#3c50cb}button:disabled{cursor:not-allowed}[hidden],.hidden{display:none!important}:focus-visible{outline:3px solid var(--focus);outline-offset:4px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* UTI-PUTI is the default logo. Each fresh hover shows one random face instantly. */
.app-header{max-width:1160px;margin:0 auto;padding:32px 0 36px;display:flex;align-items:center;gap:28px}.brand{display:block;position:relative;flex:0 0 120px;width:120px;height:120px;overflow:hidden;border-radius:16px;isolation:isolate}.face-logo,.brand-wordmark{position:absolute;inset:0;width:100%;height:100%}.brand-wordmark{object-fit:contain;opacity:1}.face-logo{opacity:0}.face-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0}.brand.is-face .brand-wordmark{opacity:0}.brand.is-face .face-logo{opacity:1}.brand.is-face .face-logo img.is-visible{opacity:1}
.header-copy{flex:1;min-width:0}.header-copy h1{margin:0 0 8px;font-size:clamp(26px,3vw,34px);line-height:1.18;font-weight:700;letter-spacing:-.025em}.header-copy p{margin:0;max-width:650px;color:var(--muted)}.local-badge{flex:none;display:inline-flex;align-items:center;padding:7px 12px;border:1px solid var(--line-soft);border-radius:99px;font-size:13px;color:var(--muted);background:#fff}
/* Layout and progression. */
.layout{display:grid;grid-template-columns:240px minmax(0,860px);gap:40px;max-width:1160px;margin:0 auto 80px;align-items:start}.sidebar{position:sticky;top:24px;padding-top:16px;min-width:0}.sidebar h2{margin:0 0 18px 12px;font-size:14px;color:var(--muted);font-weight:600}.step-list{margin:0;padding:0;list-style:none;display:grid;gap:5px}.step-list button{display:flex;width:100%;min-height:48px;gap:12px;align-items:center;padding:10px 12px;border:1px solid transparent;background:transparent;border-radius:14px;text-align:left;line-height:1.3;color:var(--muted)}.step-list button.current{background:var(--coral-wash);color:var(--ink);font-weight:650;border-color:#ffd8ce}.step-list button:not(.current):hover{background:#f7f7f7}.step-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:#f2f2f2;font-size:12px;font-weight:650;color:var(--muted)}.current .step-number{background:var(--coral);color:var(--ink)}.complete .step-number{background:#f0f6e5;color:var(--success-ink);box-shadow:inset 0 0 0 1px var(--success)}.form-card{min-width:0;background:#fff;border-radius:28px;box-shadow:var(--container-shadow)}.progress-head{display:flex;align-items:center;gap:18px;padding:24px 40px;border-bottom:1px solid var(--line-soft);background:#fff;border-radius:28px 28px 0 0}.progress-track{height:6px;flex:1;border-radius:99px;overflow:hidden;background:#f1f1f1}.progress-track>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--coral-light),var(--coral));transition:width .2s ease}#stepCounter{flex:none;font-size:14px;color:var(--muted);font-weight:600}#bookForm{margin:0;padding:36px 40px 32px}.tab-title{margin:0 0 12px;font-size:28px;line-height:1.22;font-weight:700;letter-spacing:-.02em}.step-intro{margin:0 0 32px;color:var(--muted);max-width:64ch}.step-intro strong{color:var(--ink)}
/* Questions and text inputs. */
.question{display:block;padding:0;border:0;min-width:0;margin:0 0 38px;scroll-margin-top:100px}.question:last-child{margin-bottom:12px}.question legend,.field-label{display:block;width:100%;padding:0;margin:0 0 10px;color:var(--ink);font-size:20px;line-height:1.4;font-weight:650}.requirement{display:inline-block;vertical-align:middle;margin-left:8px;color:var(--muted);font-size:12px;font-weight:400;white-space:nowrap}.hint{margin:0 0 16px;color:var(--muted);font-size:14px;line-height:1.55}.hint:last-child{margin-bottom:0}.field{display:block;min-width:0;margin:0 0 20px}.field>label,.field>span,.field>.field-label{display:block;margin-bottom:8px}input:not([type=radio]):not([type=checkbox]):not([type=file]):not([type=hidden]),select,textarea{display:block;width:100%;min-width:0;min-height:56px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;color:var(--ink);font-size:16px;line-height:1.4;transition:border-color .15s ease,box-shadow .15s ease}textarea{min-height:112px;resize:vertical}input::placeholder,textarea::placeholder{color:#767676;opacity:1}input:not([type=radio]):not([type=checkbox]):focus,select:focus,textarea:focus{outline:none;border-color:var(--link);box-shadow:0 0 0 4px rgb(97 119 248 / 13%)}input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--error-line)!important;background:var(--error-paper)!important}input:disabled,select:disabled,textarea:disabled{background:#f6f6f6;color:#777;cursor:not-allowed}.field small{display:block;margin-top:8px;color:var(--muted);font-size:13px}
/* Actual, distinguishable radio and checkbox controls. */
.options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.options.visual-options,.options:has(.visual-choice){grid-template-columns:repeat(4,minmax(0,1fr))}.options.single-column{grid-template-columns:1fr}.choice{position:relative;display:flex;gap:12px;align-items:center;min-width:0;min-height:64px;margin:0;padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;color:var(--ink);cursor:pointer;transition:border-color .15s ease,background .15s ease}.choice:hover{border-color:#eea998}.choice:has(input:checked){border-color:#dd795f;background:var(--coral-wash);box-shadow:inset 0 0 0 1px #dd795f}.choice:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:3px}.choice:has(input:disabled){opacity:.5;cursor:not-allowed}.option-body{min-width:0;display:flex;align-items:center;gap:10px}.choice-label{display:block;overflow-wrap:anywhere;font-size:16px;line-height:1.35}.choice-art{display:block;width:100px;height:100px;object-fit:contain;flex:none}.choice-art-placeholder{display:grid;place-items:center;border-radius:50%;background:var(--selected-paper);color:var(--success-ink);font:600 42px/1 Manrope,Arial,sans-serif;box-shadow:inset 0 0 0 1px #dce9c7}.visual-choice{min-height:170px;padding:14px 10px 16px;flex-direction:column-reverse;align-items:center;gap:10px}.visual-choice .option-body{width:100%;flex:1;flex-direction:column;gap:12px;text-align:center}.visual-choice .choice-label{font-size:14px}input[type=radio],input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;display:inline-grid;place-content:center;width:24px;height:24px;min-width:24px;flex:0 0 24px;padding:0;margin:0;border:2px solid #999;background:#fff;cursor:pointer}input[type=radio]{border-radius:50%}input[type=checkbox]{border-radius:7px}input[type=radio]:checked{border-color:#d96d52}input[type=radio]:checked::after{content:"";width:12px;height:12px;border-radius:50%;background:#c85237}input[type=checkbox]:checked{border-color:#d96d52;background:var(--coral-light)}input[type=checkbox]:checked::after{content:"";width:6px;height:11px;border:solid #333;border-width:0 2.5px 2.5px 0;transform:translateY(-1px) rotate(45deg)}input[type=checkbox]:disabled,input[type=radio]:disabled{cursor:not-allowed}
.switch-control{display:flex;align-items:center;gap:12px;min-height:48px;margin:0 0 20px;cursor:pointer;font-size:16px}.switch-control label{display:flex;align-items:center;gap:12px;cursor:pointer;min-height:48px}.switch-control input[role=switch]{position:absolute;width:1px;height:1px;min-width:0;opacity:0}.switch-track{display:inline-block;position:relative;width:48px;height:28px;flex:0 0 48px;background:#b5b5b5;border-radius:99px;transition:background .15s ease}.switch-track::after{content:"";position:absolute;width:22px;height:22px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .15s ease}input:checked+.switch-track{background:#df755c}input:checked+.switch-track::after{transform:translateX(20px)}input:focus-visible+.switch-track{outline:3px solid var(--focus);outline-offset:4px}.conditional{margin-top:20px;padding:24px 0 0 20px;border-left:2px solid #f7cdc2}.conditional>:last-child{margin-bottom:0}.inactive{opacity:.5}.error-message,.field-error,.form-error,.photo-error{display:block;margin:12px 0 0;padding:12px 16px;border:1px solid var(--error-line);border-radius:12px;background:var(--error-paper);color:var(--error);font-size:14px;line-height:1.5}.error-message:empty,.field-error:empty,.form-error:empty,.photo-error:empty{display:none}
/* Birth date with optional calendar. */
.control-line{display:flex;align-items:flex-end;gap:10px;max-width:520px}.date-part{min-width:0;flex:1}.date-part:last-of-type{flex:1.5}.date-part label,label.date-part span{display:block;margin:0 0 8px;font-size:14px;color:var(--muted)}.date-part input{text-align:center;font-variant-numeric:tabular-nums;padding-left:8px!important;padding-right:8px!important}.calendar-toggle{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;flex:0 0 56px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}.calendar-toggle svg{width:24px;height:24px}.calendar-toggle:hover{background:var(--coral-wash)}.calendar-panel{max-width:420px;margin-top:16px;padding:18px;border:1px solid var(--line-soft);border-radius:20px;background:#fff;box-shadow:0 12px 40px #3d3d3d14}.calendar-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:14px}.calendar-toolbar select{min-height:48px;padding:8px;border-radius:12px}.calendar-toolbar button{display:grid;place-content:center;flex:none;width:40px;height:48px;border:0;border-radius:10px;background:#f6f6f6}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}.calendar-grid .weekday{padding:8px 0;color:var(--muted);font-size:12px}.calendar-grid button{aspect-ratio:1;min-height:34px;padding:4px;border:1px solid transparent;border-radius:10px;background:#fff;font-variant-numeric:tabular-nums}.calendar-grid button:hover:not(:disabled),.calendar-grid button.selected,.calendar-grid button[aria-pressed=true]{background:var(--coral-wash);border-color:#dd795f}.calendar-grid button:disabled{color:#aaa}.age-result{margin:12px 0 0;color:var(--success-ink);font-size:14px}
/* CTA and persistent navigation. */
.primary,.secondary,.photo-add,.photo-button,dialog button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:14px 26px;border-radius:99px;font-size:16px;font-weight:650;line-height:1.35;text-align:center;text-decoration:none}.primary,dialog button{border:1px solid transparent;background:linear-gradient(180deg,var(--cta-light),var(--cta-base));color:var(--ink);box-shadow:var(--button-shadow);transition:box-shadow .15s ease,transform .15s ease}.primary:hover:not(:disabled),dialog button:hover{box-shadow:0 11px 26px rgb(111 145 66 / 30%);transform:translateY(-1px)}.primary:active:not(:disabled),dialog button:active{transform:translateY(1px);box-shadow:0 4px 12px rgb(111 145 66 / 22%)}.primary.final{font-weight:750}.primary:disabled{opacity:.55;box-shadow:none}.secondary,.photo-add,.photo-button{border:1px solid var(--line);background:#fff;color:var(--ink);box-shadow:none}.secondary:hover,.photo-add:hover,.photo-button:hover{border-color:#aaa;background:#fafafa}.form-nav{display:flex;align-items:center;gap:12px;padding:24px 0 0;border-top:1px solid var(--line-soft);margin-top:32px;background:#fff}.form-nav .primary{margin-left:auto}.form-nav .link-button,.edit-link,.review-section button{border:0;background:transparent;padding:10px 0;font-size:14px}.form-nav .link-button{margin-left:auto}.form-nav .link-button+.primary{margin-left:0}.nav-note{flex-basis:100%;margin:0;font-size:12px;color:var(--muted);text-align:center}
/* Human-readable editable review. */
.review-story{margin:0 0 28px;padding:28px 0;border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);font:19px/1.7 Georgia,"Times New Roman",serif;overflow-wrap:anywhere}.review-story p{margin:0 0 16px}.review-story p:last-child{margin-bottom:0}.review-section{padding:24px 0;border-bottom:1px solid var(--line-soft);overflow-wrap:anywhere}.review-section h3{margin:0 0 16px;font-size:20px;line-height:1.4}.review-section .review-heading{display:flex;align-items:baseline;gap:16px;justify-content:space-between}.review-section dl{margin:0;display:grid;grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr);gap:12px 20px}.review-section dt{color:var(--muted)}.review-section dd{margin:0;white-space:pre-wrap}.review-art{display:inline-block;width:100px;height:100px;max-width:100px;object-fit:contain;vertical-align:middle}.review-photos{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.review-photos img{width:100px;height:100px;object-fit:cover;border-radius:14px}.consent{display:flex;gap:14px;align-items:flex-start;margin:28px 0 0;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fff;cursor:pointer}.consent input{margin-top:2px}.privacy-copy{font-size:14px;color:var(--muted)}
/* Local photo manager. */
.photo-manager,.photo-module{margin-top:20px}.photo-mode{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 20px}.photo-mode-option{display:flex;align-items:center;gap:12px;min-height:56px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;cursor:pointer;background:#fff}.photo-mode-option:has(input:checked){border-color:#dd795f;background:var(--coral-wash)}.photo-upload,.photo-dropzone{display:block;border:1px dashed #b7b7b7;border-radius:20px;padding:24px;background:#fff}.photo-dropzone{text-align:center}.photo-dropzone.dragover{border-color:#df755c;background:var(--coral-wash)}.photo-list,.photo-grid,.photo-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.photo-card,.photo-item{position:relative;padding:10px;border:1px solid var(--line-soft);border-radius:16px;background:#fff;overflow:hidden;min-width:0}.photo-card img,.photo-preview,.photo-thumb{width:100%;aspect-ratio:1;height:auto;object-fit:cover;border-radius:10px}.photo-name,.photo-meta{font-size:12px;overflow-wrap:anywhere;color:var(--muted);margin:8px 0 0}.photo-remove{display:inline-flex;justify-content:center;align-items:center;min-height:44px;margin-top:6px;padding:8px 0;border:0;background:transparent;color:var(--error);text-decoration:underline;text-underline-offset:3px;font-size:14px}.photo-count,.photo-counter,.photo-note{font-size:14px;color:var(--muted)}.photo-guidance{max-width:68ch;margin:0 0 12px;color:#555;font-size:14px;line-height:1.6}.photo-counter{margin:0}.photo-slot{display:flex;min-height:230px;padding:18px;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed #b9b9b9;border-radius:16px;background:#fff;color:var(--ink);text-align:center;cursor:pointer}.photo-slot:hover:not(:disabled){border-color:var(--success);background:var(--selected-paper)}.photo-slot:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.photo-slot-plus{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--selected-paper);color:var(--success-ink);font-size:32px;font-weight:400;line-height:1}.photo-slot-title{font-size:16px}.photo-slot-copy{color:var(--muted);font-size:13px;line-height:1.4}.photo-slot .requirement{display:block;margin:0}.photo-status{font-size:14px;color:var(--muted);margin-top:12px}.photo-status.success{color:var(--success-ink)}.photo-add{width:100%}.photo-manager input[type=file],.photo-module input[type=file]{width:100%;font-size:14px}.photo-manager input[type=file]::file-selector-button,.photo-module input[type=file]::file-selector-button{min-height:48px;padding:10px 18px;margin-right:12px;border:1px solid var(--line);border-radius:99px;background:#fff;color:var(--ink);font:inherit}.photo-link-input{margin-top:12px}.photo-item figcaption{margin-top:8px;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.photo-item{margin:0}
.completion{padding:20px 0;text-align:center}.completion h2{font-size:26px;line-height:1.3}.completion p{max-width:58ch;margin:12px auto 24px;color:var(--muted)}.success-mark{display:grid;place-content:center;width:64px;height:64px;margin:0 auto 20px;border-radius:50%;background:#f0f6e5;border:2px solid var(--success);color:var(--success-ink);font-size:30px}.cover-preview-result{display:block;width:min(100%,520px);height:auto;margin:24px auto;border-radius:20px;box-shadow:var(--container-shadow)}dialog{max-width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:32px;border:0;border-radius:28px;background:#fff;color:var(--ink);box-shadow:var(--container-shadow);overflow-y:auto}dialog::backdrop{background:rgb(51 51 51 / 35%)}dialog h2{margin-top:0}footer{max-width:1160px;margin:0 auto 32px;padding:0 20px;text-align:center;color:var(--muted);font-size:13px}
/* Adaptation without changing the underlying controls. */
@media(max-width:1239px){.app-header,.layout{margin-left:24px;margin-right:24px}.layout{gap:24px;grid-template-columns:220px minmax(0,1fr)}.local-badge{align-self:flex-start;margin-top:12px}}
@media(max-width:960px){.layout{grid-template-columns:180px minmax(0,1fr);gap:20px}.options.visual-options,.options:has(.visual-choice){grid-template-columns:repeat(3,minmax(0,1fr))}#bookForm{padding:28px}.progress-head{padding:20px 28px}.step-list button{padding-left:6px;padding-right:6px;gap:8px;font-size:14px}}
@media(max-width:760px){body{padding-bottom:calc(128px + env(safe-area-inset-bottom,0px))}.app-header{margin:0 20px;padding:20px 0 28px;gap:16px;flex-wrap:wrap}.brand{flex-basis:80px;width:80px;height:80px}.header-copy h1{font-size:26px}.header-copy p{font-size:14px}.local-badge{margin:0 0 0 96px}.layout{display:block;margin:0 16px 32px}.sidebar{display:none}.form-card{border-radius:24px}.progress-head{position:sticky;top:0;z-index:15;padding:18px 20px;border-radius:24px 24px 0 0;box-shadow:0 5px 14px #33333307}#bookForm{padding:28px 20px}.tab-title{font-size:25px}.step-intro{margin-bottom:28px;font-size:15px}.question{margin-bottom:36px}.question legend,.field-label{font-size:18px}.requirement{font-size:12px}.options{grid-template-columns:1fr}.options.visual-options,.options:has(.visual-choice){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.visual-choice{min-height:170px}.visual-choice .choice-label{font-size:14px}.choice{padding:14px}.conditional{padding-left:14px}.form-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;flex-wrap:wrap;margin:0;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #ededed;box-shadow:0 -8px 32px #3d3d3d0c;gap:10px}.form-nav>.primary{flex:1;min-width:0}.form-nav .secondary{flex:0 0 auto}.form-nav .primary,.form-nav .secondary{padding:14px 18px}.form-nav .link-button{order:3;flex:1 0 100%;margin:0;min-height:34px;padding:4px;text-align:center}.form-nav .link-button+.primary{margin-left:0}.form-nav .nav-note{order:4}.review-story{font-size:18px}.review-section dl{display:block}.review-section dt{font-size:13px;margin:16px 0 3px}.review-section dd{margin-bottom:12px}.review-section .review-heading{align-items:flex-start}.review-section h3{font-size:18px}.photo-list,.photo-grid,.photo-items{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-slot{min-height:205px;padding:14px}.photo-dropzone,.photo-upload{padding:18px}.consent{padding:16px;font-size:14px}body.keyboard-open .form-nav{position:static;box-shadow:none;padding:20px 0 0}body.keyboard-open{padding-bottom:20px}}
@media(max-width:430px){.photo-items{grid-template-columns:1fr}.photo-slot{min-height:170px}}
@media(max-width:360px){.app-header{margin-left:16px;margin-right:16px;gap:12px}.brand{width:64px;height:64px;flex-basis:64px}.header-copy h1{font-size:23px}.local-badge{margin-left:76px}.layout{margin-left:10px;margin-right:10px}#bookForm{padding:24px 16px}.progress-head{padding:16px}.choice-art{width:90px;height:90px}.visual-choice{padding-left:6px;padding-right:6px}.control-line{gap:6px}.calendar-toggle{width:48px;flex-basis:48px;padding:12px}.calendar-panel{padding:12px}.calendar-toolbar{gap:4px}.calendar-toolbar button{width:28px}.calendar-toolbar select{padding:6px 2px}.calendar-grid{gap:2px}.calendar-grid button{min-height:30px;font-size:14px}.form-nav{padding-left:16px;padding-right:16px}.form-nav .primary,.form-nav .secondary{padding-left:14px;padding-right:14px;font-size:15px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}}
@media print{.sidebar,.app-header,.form-nav,.progress-head,.edit-link,.local-badge{display:none}body{padding:0}.layout{display:block;margin:0;max-width:none}.form-card{box-shadow:none}#bookForm{padding:0}}
/* Form refinements: readable progress and generous, consistent controls. */
@font-face{font-family:BookGaramond;src:url('assets/fonts/eb-garamond-semibold.ttf') format('truetype');font-display:swap;font-weight:600}
@font-face{font-family:Nunito;src:url('assets/fonts/nunito-variable.ttf') format('truetype');font-style:normal;font-weight:200 1000;font-display:swap}
.header-copy h1,.tab-title{font-family:Nunito,Manrope,Arial,sans-serif;font-weight:800;letter-spacing:-.02em;line-height:1.15}.header-copy h1{font-size:40px}.tab-title{font-size:36px}
.progress-head>div:first-child{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.progress-head{gap:24px}.progress-track{min-width:60px}#stepName{font-size:16px;font-weight:600}#stepCounter{font-size:13px;color:#555}
#editReturn{margin:20px 40px 0;padding:10px 0;background:none;border:0;color:#6177f8;text-decoration:underline;text-underline-offset:4px;text-align:left;font:inherit;cursor:pointer}
.calendar-toggle.secondary{width:auto;flex:0 0 auto;padding:14px 18px;border-radius:16px;min-width:110px;white-space:nowrap}
.calendar-toolbar{display:grid;grid-template-columns:1.4fr 1fr auto;align-items:end}.calendar-toolbar label{min-width:0;font-size:13px}.calendar-toolbar #closeCal{width:auto;min-width:64px;font-size:13px;background:none;color:#6177f8;text-decoration:underline}
.photo-mode{border:0;padding:0}.photo-mode legend{margin-bottom:14px}.photo-upload{border-style:solid;border-color:#e4e4e4}.photo-counter{margin-top:0}.photo-local-note{display:none}
.question.field{margin-bottom:36px}.sidebar>p:first-child{margin:0 0 20px 12px;font-weight:600}.step-list{gap:8px}.step-list button{padding-top:12px;padding-bottom:12px}.progress-head{border-bottom-color:#f1f1f1}
@media(max-width:760px){.header-copy h1{font-size:30px}.tab-title{font-size:30px}.progress-head>div:first-child{gap:6px;flex-direction:column;align-items:flex-start}.progress-head{padding:16px 20px}#editReturn{margin:16px 20px 0}.calendar-toggle.secondary{min-width:0;font-size:13px;padding:14px 10px}.control-line{gap:6px}.calendar-toolbar{gap:8px}}
/* A heading receives screen-reader focus without drawing a control border. */
.tab-title:focus{outline:none}
.photo-link-details{margin-top:22px;padding-top:18px;border-top:1px solid #ededed}
.photo-link-details>summary{cursor:pointer;color:#6177f8;text-decoration:underline;text-underline-offset:4px;line-height:1.5;padding:8px 0}
.photo-link-details[open]>.photo-link{margin-top:16px}
.photo-summary-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.photo-summary-item{margin:0;min-width:0}.photo-summary-item img{width:100%;max-width:160px;height:140px;object-fit:cover;border-radius:16px}.photo-summary-item figcaption{font-size:12px;overflow-wrap:anywhere;color:#555;margin-top:8px}
.switch-hint{margin:-10px 0 16px 60px;max-width:62ch}.language-fixed{max-width:380px}.fixed-choice{display:flex;align-items:center;gap:12px;min-height:56px;padding:14px 16px;border:1px solid var(--success);border-radius:16px;background:var(--selected-paper);color:var(--ink)}.fixed-radio{display:grid;place-content:center;width:24px;height:24px;flex:0 0 24px;border:2px solid var(--selected);border-radius:50%;background:#fff}.fixed-radio::after{content:"";width:12px;height:12px;border-radius:50%;background:var(--selected)}.language-soon{margin:8px 0 0;color:var(--selected);font-size:13px;line-height:1.5}
@media(max-width:520px){.switch-hint{margin-left:0}.language-fixed{max-width:none}}
/* Vertical level progression. The connecting line becomes green as each step is completed. */
.progress-head>div:first-child{display:flex;align-items:baseline;gap:10px}.progress-track{display:none}.step-list{gap:0}.step-list li{position:relative;min-height:52px}.step-list li:not(:last-child)::before,.step-list li:not(:last-child)::after{content:"";position:absolute;z-index:0;left:25px;top:39px;bottom:-13px;width:2px;border-radius:99px;background:#e5e5e5;pointer-events:none}.step-list li:not(:last-child)::after{background:linear-gradient(180deg,var(--cta-light),var(--cta-base));transform:scaleY(0);transform-origin:top;transition:transform .42s ease}.step-list li:has(button.complete):not(:last-child)::after{transform:scaleY(1)}.step-list button{position:relative;z-index:1}.step-list button.level-up{z-index:3}.step-list button.level-up .step-number{animation:level-pop .9s cubic-bezier(.2,.9,.25,1.35)}.step-list button.level-up::after{content:"";position:absolute;z-index:-1;left:-16px;top:-30px;width:118px;height:102px;pointer-events:none;background:radial-gradient(circle at 18% 54%,#56a7ee 0 4px,transparent 5px),radial-gradient(circle at 32% 16%,#ef6fae 0 5px,transparent 6px),radial-gradient(circle at 55% 6%,#f5a13b 0 4px,transparent 5px),radial-gradient(circle at 76% 24%,#82ae29 0 5px,transparent 6px),radial-gradient(circle at 91% 53%,#9c55d8 0 4px,transparent 5px),radial-gradient(circle at 72% 86%,#38bfd1 0 4px,transparent 5px),radial-gradient(circle at 34% 91%,#ff6b48 0 5px,transparent 6px);animation:reward-burst 1s ease-out both}.completion{position:relative}.completion.rewarded .success-mark{animation:level-pop .9s cubic-bezier(.2,.9,.25,1.35)}.completion.rewarded::before{content:"✦   •   ✧   •   ✦";position:absolute;left:50%;top:-12px;transform:translateX(-50%);color:#8fb65a;font-size:22px;letter-spacing:8px;white-space:nowrap;animation:completion-burst 1.25s ease-out both;pointer-events:none}@keyframes level-pop{0%{transform:scale(.72)}38%{transform:scale(1.7)}67%{transform:scale(.92)}84%{transform:scale(1.08)}100%{transform:scale(1)}}@keyframes reward-burst{0%{opacity:0;transform:scale(.42) rotate(-8deg)}28%{opacity:1}100%{opacity:0;transform:scale(1.18) rotate(8deg)}}@keyframes completion-burst{0%{opacity:0;transform:translate(-50%,18px) scale(.7)}35%{opacity:1}100%{opacity:0;transform:translate(-50%,-24px) scale(1.1)}}
@media(max-width:760px){.layout{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;margin-left:10px;margin-right:10px}.sidebar{display:block;position:sticky;z-index:20;top:8px;width:42px;min-width:42px;height:max-content;padding:4px 0}.sidebar>p:first-child{display:none}.step-list li{min-height:34px;height:34px}.step-list button{width:38px;min-height:34px;height:34px;padding:3px 5px;gap:0;border-radius:99px;font-size:0;overflow:visible}.step-list button.current{width:38px}.step-number{width:28px;height:28px;flex-basis:28px;font-size:11px}.step-list li:not(:last-child)::before,.step-list li:not(:last-child)::after{left:18px;top:29px;bottom:-5px}.progress-head{top:0}.progress-head>div:first-child{width:100%;gap:3px;flex-direction:column;align-items:flex-start}.progress-head strong{font-size:16px}.step-list button.level-up::after{left:-35px;top:-34px;width:108px;height:98px}#bookForm{min-width:0}}
@media(prefers-reduced-motion:reduce){.step-list li::after{transition:none!important}.step-list button.level-up .step-number,.step-list button.level-up::after,.completion.rewarded .success-mark,.completion.rewarded::before{animation:none!important}}

/* “Other” cards keep the same icon footprint, with only the symbol visible. */
.choice-art-placeholder{border-radius:0;background:transparent;box-shadow:none;color:var(--success-ink);font-size:50px}

[data-question="primary_goal"] .visual-options{grid-template-columns:repeat(3,minmax(0,1fr))}
[data-question="primary_goal"] .visual-choice{min-height:206px;padding:16px 12px 18px}
[data-question="primary_goal"] .choice-art{width:124px;height:124px}
[data-question="primary_goal"] .choice-art-placeholder{color:#8b8b8b;font-family:"Arial Rounded MT Bold",Arial,sans-serif;font-weight:700}
@media(max-width:760px){[data-question="primary_goal"] .visual-options{grid-template-columns:repeat(2,minmax(0,1fr))}[data-question="primary_goal"] .visual-choice{min-height:184px;padding:12px 8px 14px}[data-question="primary_goal"] .choice-art{width:112px;height:112px}}

.preview-controls{display:grid;gap:12px;max-width:680px;margin:24px auto;padding:20px;border:1px solid var(--line-soft);border-radius:20px;background:#fafcff;text-align:left}.preview-controls label span{display:block;margin-top:4px;color:var(--muted);font-size:13px}.preview-controls textarea{width:100%;resize:vertical}.preview-controls .primary{justify-self:start}.preview-history{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}.preview-version{display:flex;min-width:0;padding:10px;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:18px;background:#fff}.preview-version.selected{border-color:var(--success);box-shadow:inset 0 0 0 1px var(--success);background:var(--selected-paper)}.preview-version img{width:100%;aspect-ratio:2/3;border-radius:12px;object-fit:cover}.preview-version p{margin:0;color:var(--muted);font-size:12px}.preview-version button{min-height:44px;padding:9px 12px}.cover-preview-result{max-width:520px;margin:20px auto;border-radius:18px}
@media(max-width:760px){.preview-controls{margin-inline:0;padding:16px}.preview-controls .primary{width:100%}.preview-history{grid-template-columns:1fr}.preview-version{padding:14px}.preview-version img{aspect-ratio:auto}.cover-preview-result{width:100%}}
.auth-dialog{width:min(520px,calc(100vw - 28px));padding:30px}.auth-dialog>div{display:grid;gap:14px}.auth-dialog>div[hidden]{display:none}.auth-dialog h2{margin:0;font-family:var(--rounded,Arial,sans-serif);font-size:28px}.auth-dialog p{margin:0;color:var(--muted);line-height:1.55}.auth-kicker{color:var(--success-ink)!important;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.auth-close{position:sticky;z-index:2;top:0;float:right;width:42px;height:42px;margin:-14px -14px 0 12px;border:0;border-radius:50%;background:#f1f1ef;color:var(--ink);font-size:28px;line-height:1;cursor:pointer}.auth-consent{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.45}.auth-consent input{width:22px;height:22px;flex:0 0 auto;margin-top:1px}.auth-code{font-size:28px!important;letter-spacing:.24em;text-align:center;font-variant-numeric:tabular-nums}.auth-dialog .primary{width:100%}.auth-dialog .link-button{justify-self:center}.auth-dialog .error-message{margin-top:14px;color:#9b3825}
@media(max-width:760px){.auth-dialog{padding:24px 18px;border-radius:24px}.auth-dialog h2{font-size:24px}}

/* The step circle stays fixed; logo-colour stars celebrate on a wider radius. */
.step-list button.level-up .step-number{animation:level-glow 1.1s ease-out}
.step-list button.level-up::after{left:-23px;top:-15px;width:96px;height:82px;background:url('assets/ui/step-stars-burst.svg?v=2') center/contain no-repeat;animation:firework-fade 1.45s ease-out both;clip-path:none}
@keyframes level-glow{0%{box-shadow:0 0 0 0 rgba(143,182,90,.5)}45%{box-shadow:0 0 0 8px rgba(143,182,90,.14)}100%{box-shadow:0 0 0 0 rgba(143,182,90,0)}}
@keyframes reward-stars{0%{opacity:0;transform:rotate(-8deg)}24%{opacity:1}72%{opacity:1}100%{opacity:0;transform:rotate(8deg)}}
@media(max-width:760px){.step-list button.level-up::after{left:-29px;top:-24px;width:96px;height:82px}}
@media(prefers-reduced-motion:reduce){.step-list button.level-up .step-number,.step-list button.level-up::after{animation:none!important}}
@keyframes firework-fade{0%{opacity:0}18%{opacity:1}72%{opacity:1}100%{opacity:0}}
.step-list button.level-up::after{animation:firework-fade 1.45s ease-out both;clip-path:none}
.step-encouragement{position:fixed;z-index:80;left:50%;bottom:28px;width:min(460px,calc(100vw - 32px));margin:0;padding:13px 18px 13px 58px;border-radius:16px;background:linear-gradient(135deg,#ffb6a4,#ff6b48);box-shadow:0 14px 34px rgb(255 107 72 / 28%);color:#fff;font-size:14px;line-height:1.4;font-weight:650;transform:translate(-50%,18px);opacity:0;pointer-events:none}.step-encouragement::before{content:"";position:absolute;left:8px;top:50%;width:44px;height:38px;background:url('assets/ui/step-stars.svg?v=3') center/contain no-repeat;transform:translateY(-50%);opacity:.95}.step-encouragement.is-visible{animation:toast-in 3.4s cubic-bezier(.2,.9,.25,1) both}.step-encouragement.is-visible::before{animation:toast-stars .8s ease-out both}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,20px)}12%{opacity:1;transform:translate(-50%,0)}82%{opacity:1;transform:translate(-50%,0)}100%{opacity:0;transform:translate(-50%,-7px)}}@keyframes toast-stars{0%{opacity:0;transform:translateY(-50%) rotate(-15deg)}40%{opacity:1}100%{opacity:.95;transform:translateY(-50%) rotate(10deg)}}
@media(max-width:760px){.step-encouragement{bottom:calc(136px + env(safe-area-inset-bottom,0px));width:calc(100vw - 32px);padding:11px 14px 11px 52px;border-radius:14px;font-size:13px}.step-encouragement::before{left:7px;width:39px;height:34px}}
@media(prefers-reduced-motion:reduce){.step-encouragement.is-visible,.step-encouragement.is-visible::before{animation:none!important;opacity:1;transform:translate(-50%,0)}}
@media(max-width:760px){
  .app-header{padding:12px 0 16px;gap:10px;flex-wrap:nowrap}
  .brand{width:58px;height:58px;flex-basis:58px;border-radius:12px}
  .header-copy h1{font-size:22px;line-height:1.08;margin-bottom:4px}
  .header-copy p{font-size:12px;line-height:1.3}
  .header-copy .eyebrow{font-size:12px;margin-bottom:3px}
  .step-list button.current{border-color:transparent}
}
/* Reveal the scattered stars from the centre outward; their final size stays delicate. */
.step-list button.level-up::after{animation:reward-stars 1.1s ease-out both;clip-path:circle(0 at 50% 50%)}
@keyframes reward-stars{0%{opacity:1;clip-path:circle(0 at 50% 50%);transform:rotate(-8deg)}58%{opacity:1;clip-path:circle(72% at 50% 50%);transform:rotate(3deg)}100%{opacity:0;clip-path:circle(78% at 50% 50%);transform:rotate(8deg)}}
@property --shine-angle{syntax:'<angle>';inherits:false;initial-value:-35deg}
.step-encouragement{--shine-angle:-35deg;padding-left:18px;border:2px solid transparent;background:linear-gradient(135deg,#ffb6a4,#ff6b48) padding-box,conic-gradient(from var(--shine-angle),transparent 0 58%,#fff8f5 72%,#ffd0c1 82%,transparent 96%) border-box}
.step-encouragement::before{content:none}
.step-encouragement.is-visible{animation:toast-in 3.4s cubic-bezier(.2,.9,.25,1) both,toast-border 2.1s ease-in-out both}
@keyframes toast-border{0%{--shine-angle:-35deg}50%{--shine-angle:145deg}100%{--shine-angle:325deg}}
@media(max-width:760px){.step-encouragement{padding-left:14px}.step-encouragement::before{content:none}}
@media(prefers-reduced-motion:reduce){.step-encouragement.is-visible{animation:none!important;opacity:1;transform:translate(-50%,0)}}
.step-encouragement{box-sizing:border-box;left:max(16px,calc((100vw - 1160px)/2));bottom:34px;width:240px;padding:17px;transform:translateY(18px)}.step-encouragement .karma-line{margin-bottom:7px}.step-encouragement .karma-line strong{font-family:Nunito,Manrope,Arial,sans-serif;font-size:18px;font-weight:800;letter-spacing:-.01em}.step-encouragement .karma-line b{font-size:15px}.step-encouragement>#karmaMessage{font-size:13px;line-height:1.4}.step-encouragement.is-visible{animation:toast-in-sidebar 3.4s cubic-bezier(.2,.9,.25,1) both}.step-encouragement::before{display:none}@keyframes toast-in-sidebar{0%{opacity:0;transform:translateY(18px)}12%{opacity:1;transform:translateY(0)}82%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-7px)}}
@media(max-width:760px){.step-encouragement{left:50%;bottom:calc(136px + env(safe-area-inset-bottom,0px));width:calc(100vw - 24px);padding:16px 18px;transform:translateX(-50%) translateY(18px)}.step-encouragement .karma-line strong{font-size:18px}.step-encouragement.is-visible{animation:toast-in 3.4s cubic-bezier(.2,.9,.25,1) both}}
.step-encouragement{color:#35515d;background:linear-gradient(135deg,rgba(255,255,255,.84),rgba(214,246,255,.78)) padding-box,conic-gradient(from var(--shine-angle),#ff9b86,#ffd777,#a8c96a,#79d4ed,#b38cf2,#ff9bc7,#ff9b86) border-box;backdrop-filter:blur(14px) saturate(1.15);-webkit-backdrop-filter:blur(14px) saturate(1.15);box-shadow:0 14px 34px rgba(82,150,170,.2)}.step-encouragement .karma-line strong{font-size:21px;color:#284650}.step-encouragement .karma-line b{color:#476875}.step-encouragement>#karmaMessage{color:#45616a}.step-encouragement.is-visible{animation:toast-in-sidebar 4.4s cubic-bezier(.2,.9,.25,1) both,toast-border 3.1s ease-in-out both}
@media(max-width:760px){.step-encouragement .karma-line strong{font-size:20px}.step-encouragement.is-visible{animation:toast-in 4.4s cubic-bezier(.2,.9,.25,1) both,toast-border 3.1s ease-in-out both}}
@media(prefers-reduced-motion:reduce){.step-encouragement.is-visible{animation:none!important;opacity:1;transform:translate(-50%,0)}}
.step-encouragement .karma-line{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:3px}.step-encouragement .karma-line strong{font-size:14px}.step-encouragement .karma-line b{font-size:15px}.step-encouragement>#karmaMessage{display:block;font-weight:500}
