/* Wizard: progress, steps, interest tiles, skill chips with levels, sticky navigation, result block. */
.wz-steptext { font-size: 0.9rem; color: var(--muted); }
.wz-progress ol { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.wz-progress li { display: flex; align-items: center; flex: 1; }
.wz-progress li:last-child { flex: none; }
.wz-progress li:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin: 0 4px; background: var(--line); }
.wz-progress li:has(.done):not(:last-child)::after { background: var(--ok); }
.wz-progress button { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--muted); background: var(--surface); border: 2px solid var(--line); border-radius: 50%; }
.wz-progress button:not(:disabled) { cursor: pointer; }
.wz-progress button.done { color: var(--bg); background: var(--ok); border-color: var(--ok); }
.wz-progress button.cur { color: var(--link); border-color: var(--tg); }
.wz-progress .icon { width: 16px; height: 16px; }
.wz-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 900px) { .wz-layout { grid-template-columns: minmax(0, 1fr) 300px; } .wz-summary { position: sticky; top: 12px; } }
.wz-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.wz-card h2:focus { outline: none; }
.wz-error { padding: 10px 14px; color: var(--bad); background: var(--bad-soft); border-radius: var(--radius-field); font-weight: 700; }
.wz-summary { gap: 10px; }
.wz-sum-block { display: grid; gap: 6px; }
.wz-sum-block h3 { font-size: 0.85rem; color: var(--muted); }
.wz-sum-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-nav { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; max-width: calc(var(--page-app) + 0px); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.wz-nav-right { display: flex; gap: 6px; }
.wz-nav-end { justify-content: flex-start; }
@media (max-width: 400px) { .wz-nav .btn { padding: 10px 12px; font-size: 0.9rem; } }

[data-quick="1"] .full-only { display: none; }
.quick-only { display: none; }
[data-quick="1"] .quick-only { display: block; }

.groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
details.grp { background: var(--soft); border-radius: var(--radius-box); }
details.grp > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; font-weight: 700; cursor: pointer; list-style: none; }
details.grp > summary::-webkit-details-marker { display: none; }
details.grp > summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
details.grp[open] > summary::after { content: "▴"; }
.grp-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 12px 12px; }
@media (min-width: 640px) { .grp-body { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
[data-step="2"] .grp-body { display: flex; flex-wrap: wrap; gap: 10px 12px; }

.tile { position: relative; display: block; cursor: pointer; }
.tile input, .chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tile-body { position: relative; display: grid; gap: 2px; align-content: start; height: 100%; min-height: 88px; padding: 12px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-box); }
.tile-body b { font-size: 0.92rem; overflow-wrap: break-word; }
.tile-body small { color: var(--muted); font-size: 0.8rem; line-height: 1.3; }
.tile-check { position: absolute; top: 8px; right: 8px; display: none; width: 22px; height: 22px; padding: 3px; color: var(--tg-fg); background: var(--tg); border-radius: 50%; }
.tile input:checked + .tile-body { border-color: var(--tg); background: var(--tg-soft); }
.tile input:checked + .tile-body .tile-check { display: block; }
.tile input:focus-visible + .tile-body, .chip input:focus-visible + .chip-body { outline: 2px solid var(--tg); outline-offset: 2px; }

.skill { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.chip { position: relative; display: inline-block; cursor: pointer; }
.chip-body { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-pill); font-size: 0.95rem; }
.chip-check { display: none; width: 18px; height: 18px; padding: 2px; color: var(--tg-fg); background: var(--tg); border-radius: 50%; }
.chip input:checked + .chip-body { border-color: var(--tg); background: var(--tg-soft); font-weight: 700; }
.chip input:checked + .chip-body .chip-check { display: block; }
.seg { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-width: 64px; min-height: 40px; padding: 0 12px; font-size: 0.85rem; color: var(--muted); border-radius: var(--radius-pill); }
.seg input:checked + span { color: var(--fg); font-weight: 700; background: var(--tg-soft); box-shadow: inset 0 0 0 2px var(--tg); }
.seg input:focus-visible + span { outline: 2px solid var(--tg); outline-offset: 1px; }

.unk-box { display: grid; gap: 6px; justify-items: start; }
.unk-note { color: var(--link); }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-row .btn { font-size: 0.88rem; padding: 8px 14px; }
.presets { display: grid; gap: 6px; }
.langs { gap: 8px; }
.lang-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 1fr) minmax(130px, 1fr); gap: 8px; align-items: center; }
.lang-row > span:first-child { grid-column: 1; }
@media (max-width: 480px) { .lang-row { grid-template-columns: 1fr 1fr; } .lang-row > span:first-child { grid-column: 1 / -1; font-weight: 700; } }

/* result */
.prompt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; }
#prompt-text { min-height: 280px; font-size: 0.92rem; }
.svc-list { display: grid; gap: 8px; }
.svc { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 16px; color: var(--fg); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-field); box-shadow: var(--shadow-sm); }
.svc:hover { border-color: var(--tg); }
.svc-name { display: grid; }
.svc small { color: var(--muted); font-size: 0.82rem; }
.after { display: grid; gap: 8px; }
.chip-btn { display: inline-flex; align-items: flex-start; gap: 8px; min-height: 44px; padding: 8px 14px; font: inherit; font-size: 0.9rem; text-align: left; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-field); cursor: pointer; }
.chip-btn:hover { border-color: var(--tg); }
.chip-btn .icon { margin-top: 3px; color: var(--link); }
.after .chips { display: grid; gap: 8px; }
.remember { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
[data-step="5"] .wz-layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
