/**
 * Printer setup assistant — installer window, aligned layout.
 */

:root {
    --hp: #0096D6;
    --hp-dark: #0077B6;
    --ink: #1F2A32;
    --muted: #5B6B75;
    --line: #D5DEE4;
    --bg: #DCE4EA;
    --sans: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
body {
    min-height: 100vh;
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--hp); }

.wiz-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px 20px;
}
.wiz {
    width: min(680px, 100%);
    background: #fff;
    border: 1px solid #C5D0D8;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(31, 42, 50, .14);
    overflow: hidden;
}
.wiz-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--hp);
    color: #fff;
    padding: 12px 20px;
}
.wiz-mark {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #fff;
    flex: none;
}
.wiz-bar h1 {
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.wiz-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
    background: #F6F9FB;
}
.wiz-steps li {
    padding: 10px 8px;
    text-align: center;
    font-size: .72rem;
    font-weight: 600;
    color: #8A99A3;
    border-right: 1px solid var(--line);
}
.wiz-steps li:last-child { border-right: 0; }
.wiz-steps li.is-on { color: var(--hp-dark); background: #fff; }

.wiz-body { padding: 24px 28px 26px; min-height: 320px; }
.wiz-q {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    color: #4A5A64;
}
.wiz-note {
    color: var(--muted);
    font-size: .9rem;
    margin: -6px 0 16px;
    line-height: 1.5;
}
.wiz-choice {
    display: grid;
    grid-template-columns: 108px 1fr 148px;
    gap: 16px;
    align-items: center;
    min-height: 88px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.wiz-choice-art {
    color: #3D4C55;
    width: 108px;
    justify-self: start;
}
.wiz-choice-art svg { width: 100%; height: auto; display: block; }
.wiz-choice-copy { min-width: 0; }
.wiz-choice-copy strong {
    display: block;
    font-size: .95rem;
    margin-bottom: 2px;
}
.wiz-choice-copy span { color: var(--muted); font-size: .85rem; }
.wiz-choice .wiz-btn { width: 148px; justify-self: end; }

.wiz-btn,
.wiz-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-weight: 700;
    font-size: .86rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    padding: .78em 1.1em;
    text-decoration: none;
    white-space: nowrap;
}
.wiz-btn {
    background: var(--hp);
    color: #fff;
    border: 0;
}
.wiz-btn:hover { background: var(--hp-dark); color: #fff; }
.wiz-btn:disabled { opacity: .65; cursor: wait; }
.wiz-arr {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.wiz-arr svg {
    width: 10px;
    height: 10px;
    display: block;
}
.wiz-btn-ghost {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}
.wiz-btn-wide { width: 100%; margin-top: 8px; }

.wiz-field {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    margin: 0 0 6px;
}
.wiz-panel input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
    margin-bottom: 14px;
}
.wiz-panel input:focus {
    outline: 0;
    border-color: var(--hp);
    box-shadow: 0 0 0 3px rgba(0, 150, 214, .18);
}
.wiz-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.wiz-err {
    background: #FDECEC;
    color: #A32020;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: .85rem;
    margin-bottom: 12px;
}
.wiz-panel-center { text-align: center; }
.wiz-panel-center .wiz-note { margin-inline: auto; max-width: 46ch; }
.wiz-meter {
    height: 10px;
    background: #E6EEF3;
    border-radius: 999px;
    overflow: hidden;
    margin: 8px auto 10px;
    max-width: 420px;
}
.wiz-meter span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--hp);
    transition: width .18s linear;
}
.wiz-pct { font-weight: 700; color: var(--hp-dark); }
.wiz-status {
    display: inline-block;
    background: #FFF4E5;
    color: #9A5B00;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3em .7em;
    border-radius: 999px;
    margin-bottom: 12px;
}
.wiz-pin {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 12px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--hp-dark);
}
#wiz-copy { margin-bottom: 14px; min-width: 132px; }
.wiz-pin b {
    width: 42px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #F6F9FB;
}
.wiz-legal {
    width: min(680px, 100%);
    margin-top: 16px;
    font-size: .7rem;
    line-height: 1.5;
    color: #66747C;
    text-align: center;
}
.wiz-legal a { color: #3D4C55; }

@media (max-width: 640px) {
    .wiz-choice {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 10px;
        padding: 16px 0;
    }
    .wiz-choice-art { width: 120px; }
    .wiz-choice .wiz-btn { width: 100%; justify-self: stretch; }
    .wiz-body { padding: 20px 16px 18px; }
    .wiz-pin b { width: 36px; height: 44px; font-size: 1.15rem; }
}
