:root{--bg:#f3f6fb;--card:#fff;--soft:#f8fafc;--border:#dbe4f0;--text:#0f172a;--muted:#64748b;--accent:#2563eb;--ok:#166534;--bad:#b91c1c;--warn:#a16207;--shadow:0 18px 44px rgba(15,23,42,.07)}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--text)}a{color:inherit}.app-shell{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:18px;background:#0f172a;color:#fff;display:flex;flex-direction:column;gap:18px}.brand{display:grid;gap:2px}.brand b{font-size:22px}.brand span{font-size:12px;color:#94a3b8}.brand--center{text-align:center}.sidebar nav{display:grid;gap:8px}.sidebar a,.sidebar button{display:block;width:100%;padding:11px 12px;border:0;border-radius:14px;background:rgba(255,255,255,.08);color:#fff;text-align:left;text-decoration:none;font-weight:700;cursor:pointer}.sidebar a:hover,.sidebar button:hover{background:rgba(255,255,255,.14)}.main{min-width:0;padding:24px}.topbar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.topbar small,.card span,.mini span,.metric span,.section-head span{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.topbar h1{margin:4px 0 0;font-size:28px}.user{padding:10px 12px;border:1px solid var(--border);border-radius:999px;background:#fff}.card{background:var(--card);border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow);padding:20px;margin-bottom:18px}.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.grid{display:grid;gap:14px}.metric b{display:block;margin:8px 0;font-size:24px}.mini{padding:14px;border:1px solid var(--border);border-radius:18px;background:var(--soft)}.mini b{display:block;margin-top:7px;font-size:17px}.good{color:var(--ok)}.danger{color:var(--bad)}.muted{color:var(--muted)}.flash{padding:12px 14px;border-radius:16px;margin-bottom:16px;border:1px solid var(--border);background:#fff}.flash--success{background:#ecfdf3;color:var(--ok);border-color:#bbf7d0}.flash--error{background:#fef2f2;color:var(--bad);border-color:#fecaca}.btn,button{border:1px solid var(--border);background:#fff;color:var(--text);padding:10px 14px;border-radius:14px;font-weight:800;cursor:pointer}.btn--primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn:disabled{opacity:.45;cursor:not-allowed}.section-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}.section-head h2{margin:4px 0}.pill{display:inline-flex;align-items:center;min-height:30px;padding:6px 10px;border-radius:999px;background:#e2e8f0;font-size:12px;font-weight:900}.pill--ok{background:#dcfce7;color:var(--ok)}.pill--bad{background:#fee2e2;color:var(--bad)}.check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.check{padding:12px;border:1px solid var(--border);border-radius:16px;background:var(--soft);display:grid;gap:5px}.check.ok{border-color:#bbf7d0;background:#f0fdf4}.check.bad{border-color:#fecaca;background:#fef2f2}.check b{font-size:14px}.check span{font-size:12px;font-weight:900}.check small{color:var(--muted);word-break:break-word}.system-tabs{position:sticky;top:0;z-index:2;display:flex;gap:8px;overflow:auto;padding:8px;margin:-6px 0 14px;background:rgba(243,246,251,.88);backdrop-filter:blur(10px)}.system-tabs a{padding:9px 12px;border-radius:999px;background:#fff;border:1px solid var(--border);text-decoration:none;font-weight:800;font-size:13px;white-space:nowrap}.tags{display:flex;flex-wrap:wrap;gap:8px}.tags span{padding:7px 10px;border:1px solid var(--border);border-radius:999px;background:var(--soft);color:var(--text);font-size:13px;text-transform:none;letter-spacing:0}.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:18px}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:12px;border-bottom:1px solid var(--border);text-align:left;font-size:14px}th{background:var(--soft);font-size:12px;text-transform:uppercase;color:var(--muted)}.footer,.install-footer{margin-top:28px;color:var(--muted);font-size:12px;text-align:center}.auth-page,.install-page{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{width:min(420px,100%);background:#fff;border:1px solid var(--border);border-radius:26px;box-shadow:var(--shadow);padding:24px}.auth-card form,.install-form{display:grid;gap:14px}label{display:grid;gap:6px;font-size:13px;font-weight:800}input,select,textarea{width:100%;border:1px solid var(--border);border-radius:14px;background:#fff;padding:11px 12px;font:inherit}.install{width:min(1180px,100%)}.install-hero{margin:20px 0;padding:26px;border:1px solid var(--border);border-radius:30px;background:radial-gradient(circle at top right,rgba(37,99,235,.16),transparent 34%),#fff;box-shadow:var(--shadow)}.install-hero h1{margin:8px 0;font-size:34px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.checkline{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:14px;padding:10px 12px;background:var(--soft)}.checkline input{width:auto}.install-actions{display:flex;justify-content:flex-end;margin-top:10px}.oktext{color:var(--ok);font-weight:800}.badtext{color:var(--bad);font-weight:800}.timeline{display:grid;gap:8px}.timeline p{margin:0;padding:12px;border:1px solid var(--border);border-radius:16px;background:var(--soft)}@media(max-width:980px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto}.cards,.check-grid,.form-grid{grid-template-columns:1fr}.main{padding:16px}.section-head,.topbar{align-items:stretch;flex-direction:column}}

.install--wizard{width:min(1240px,100%)}
.install-hero--pro{padding:32px;border-radius:32px;background:radial-gradient(circle at top right,rgba(37,99,235,.16),transparent 32%),linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)}
.install-hero__badge{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid var(--border);border-radius:999px;background:#fff;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.install-hero--pro h1{margin:14px 0 8px;font-size:36px;line-height:1.08}
.install-hero--pro p{margin:0;max-width:920px;color:#334155;font-size:16px;line-height:1.65}
.wizard-shell{display:grid;gap:16px}
.wizard-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.wizard-tab{display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:14px 16px;border-radius:18px;border:1px solid var(--border);background:#fff;font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wizard-tab span{display:grid;place-items:center;min-width:30px;height:30px;border-radius:999px;background:#e2e8f0;color:#0f172a;font-size:13px;font-weight:900}
.wizard-tab.is-active{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.wizard-tab.is-active span{background:#2563eb;color:#fff}
.install-form--wizard{padding:24px}
.step-panel{display:none;gap:18px}
.step-panel.is-active{display:grid}
.step-note{margin:-4px 0 4px;color:#475569;line-height:1.65}
.install-checks{grid-template-columns:repeat(3,minmax(0,1fr))}
.form-grid--compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.split-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.split-card-grid--stack{grid-template-columns:1fr;gap:18px}
.subcard{border:1px solid var(--border);border-radius:22px;background:var(--soft);padding:18px}
.subcard h3{margin:0 0 14px;font-size:18px}
.subcard-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}
.inline-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.status-inline{font-size:13px;line-height:1.5}
.checkline--lead{margin-bottom:14px;background:#fff}
#smtpFieldsWrap.is-disabled{opacity:.56;pointer-events:none}
fieldset[data-lockable]{border:0;padding:0;margin:0;min-width:0}
fieldset[data-lockable]:disabled{opacity:.72}
.module-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.module-item{display:grid;gap:5px;padding:14px;border:1px solid var(--border);border-radius:18px;background:#fff}
.module-item b{font-size:14px}
.module-item span{color:#475569;font-size:13px;line-height:1.5}
.process-timeline{margin-top:4px}
.process-box{padding:14px 16px;border-radius:18px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;font-weight:700}
.process-box.is-running{background:#fff7ed;border-color:#fdba74;color:#c2410c}
.install-submit-wrap{display:flex;justify-content:flex-end}
.install-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;padding-top:18px;border-top:1px solid var(--border)}
.install-nav__meta{font-size:14px;color:#475569}
.install-nav--complete{justify-content:center;border-top:0;padding-top:4px}
.complete-card{text-align:center}
.complete-icon{width:72px;height:72px;margin:0 auto 16px;border-radius:999px;display:grid;place-items:center;background:#dcfce7;color:#166534;font-size:34px;font-weight:900}
.complete-card h2{margin:6px 0 10px;font-size:30px}
.complete-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}
.install-footer--brand{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;line-height:1.5;padding:8px 0 6px}
.footer-brand{display:inline-flex;align-items:center;gap:8px;color:#1d4ed8;font-weight:900}
.footer-brand svg{width:20px;height:20px;display:block}
.hidden{display:none!important}
@media(max-width:1200px){.wizard-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.complete-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.install--wizard{width:min(100%,100%)}.wizard-tabs{grid-template-columns:1fr}.split-card-grid,.module-list,.complete-grid,.install-checks,.form-grid--compact{grid-template-columns:1fr}.subcard-head,.install-nav{flex-direction:column;align-items:stretch}.install-nav{position:sticky;bottom:10px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);padding:14px;border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow)}.install-nav__meta{text-align:center}.install-hero--pro h1{font-size:30px}}

/* === TaskLine installer — polished UI === */
.install-page--pro{
    background:
        linear-gradient(180deg,#eef3fa 0%,#f7f9fd 100%);
    padding:24px;
}
.installer-shell{
    width:min(1680px,100%);
    display:grid;
    gap:16px;
}
.installer-topbar{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:24px;
    padding:18px 24px 14px;
    border:1px solid #d9e3ef;
    border-radius:28px;
    background:rgba(255,255,255,.88);
    backdrop-filter:blur(12px);
    box-shadow:0 16px 40px rgba(15,23,42,.06);
}
.installer-brand{
    display:flex;
    align-items:center;
    gap:16px;
    min-width:320px;
}
.installer-brand__icon{
    width:58px;
    height:58px;
    border-radius:18px;
    background:linear-gradient(180deg,#f7faff 0%,#edf3fb 100%);
    border:1px solid #dbe5f1;
    display:grid;
    place-items:center;
    flex:0 0 auto;
}
.installer-brand__icon img{
    width:32px;
    height:auto;
    display:block;
}
.installer-brand__content h1{
    margin:4px 0 2px;
    font-size:22px;
    line-height:1.1;
    letter-spacing:-.03em;
}
.installer-brand__content p{
    margin:0;
    color:#64748b;
    font-size:14px;
}
.installer-brand__badge{
    display:inline-flex;
    align-items:center;
    padding:6px 12px;
    border-radius:999px;
    background:#eaf2ff;
    color:#2259c9;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.08em;
}
.installer-steps{
    flex:1 1 auto;
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:10px;
    align-self:center;
}
.installer-progress{
    position:relative;
    height:8px;
    border-radius:999px;
    background:#dde7f3;
    overflow:hidden;
}
.installer-progress span{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#2f7de6 0%,#58a2ec 100%);
    transition:width .25s ease;
}
.installer-card{
    border:1px solid #d9e3ef;
    border-radius:28px;
    background:rgba(255,255,255,.92);
    box-shadow:0 22px 46px rgba(15,23,42,.05);
    overflow:hidden;
}
.installer-card--wizard,
.installer-card--complete{
    padding:0;
}
.installer-grid,
.installer-complete-grid{
    display:grid;
    grid-template-columns:510px minmax(0,1fr);
    min-height:690px;
}
.installer-side{
    position:relative;
    padding:34px 28px 28px;
    background:
        radial-gradient(circle at top left,rgba(75,152,255,.10),transparent 38%),
        linear-gradient(180deg,#eff4fb 0%,#edf2f8 100%);
    border-right:1px solid #dbe5f1;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}
.installer-side::before{
    content:"";
    position:absolute;
    inset:0;
    background-image:
        linear-gradient(rgba(58,98,157,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58,98,157,.035) 1px, transparent 1px);
    background-size:24px 24px;
    pointer-events:none;
    opacity:.4;
}
.installer-side > *{position:relative;z-index:1}
.installer-side--complete{
    justify-content:flex-start;
}
.installer-side__logo-wrap{
    display:grid;
    place-items:center;
    width:100%;
    min-height:300px;
    padding:24px 20px;
    border:1px solid #dbe5f1;
    border-radius:26px;
    background:rgba(255,255,255,.62);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.45);
}
.installer-side__logo-wrap img{
    width:min(290px,82%);
    height:auto;
    display:block;
}
.installer-side__logo-wrap--complete img{
    width:min(300px,84%);
}
.installer-side__name{
    margin-top:22px;
    font-size:24px;
    font-weight:800;
    letter-spacing:-.04em;
    color:#0f172a;
}
.installer-side__subname{
    margin-top:6px;
    text-transform:uppercase;
    letter-spacing:.28em;
    font-size:13px;
    font-weight:800;
    color:#475569;
}
.installer-side__divider{
    width:100%;
    height:1px;
    margin:22px 0;
    background:#cfd9e6;
}
.installer-side__features{
    width:100%;
    display:grid;
    gap:14px;
    text-align:left;
}
.feature-row{
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    gap:12px;
    align-items:flex-start;
}
.feature-row__icon{
    width:40px;
    height:40px;
    border-radius:999px;
    border:1px solid #bfd0e5;
    background:#f7fbff;
    display:grid;
    place-items:center;
    color:#2b6fd6;
    font-weight:900;
    font-size:18px;
}
.feature-row b{
    display:block;
    margin-bottom:4px;
    font-size:17px;
    color:#1e293b;
}
.feature-row p{
    margin:0;
    color:#64748b;
    line-height:1.45;
    font-size:14px;
}
.installer-workspace{
    padding:28px 30px 24px;
    display:flex;
    flex-direction:column;
}
.installer-workspace--complete{
    padding-top:34px;
}
.step-panel{
    display:none;
    gap:18px;
    flex:1 1 auto;
}
.step-panel.is-active{
    display:grid;
}
.step-intro{
    position:relative;
    padding-right:96px;
}
.step-intro::after{
    content:"";
    position:absolute;
    top:10px;
    right:10px;
    width:58px;
    height:58px;
    border-radius:18px;
    background:
        linear-gradient(180deg,rgba(230,238,248,.95) 0%,rgba(247,250,255,.92) 100%);
    box-shadow:26px 10px 0 0 rgba(240,245,251,.95),
               0 0 0 1px rgba(215,225,237,.9),
               26px 10px 0 1px rgba(231,238,246,.9);
    opacity:.9;
}
.step-intro__badge{
    display:inline-flex;
    align-items:center;
    padding:6px 12px;
    border-radius:999px;
    background:#edf4ff;
    color:#2663ce;
    font-weight:900;
    font-size:12px;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.step-intro h2{
    margin:14px 0 10px;
    font-size:74px;
    line-height:.95;
    letter-spacing:-.055em;
    color:#17253a;
    max-width:980px;
}
.step-intro h2 span{
    color:#2f73d6;
}
.step-intro p{
    margin:0;
    max-width:920px;
    color:#5d6c81;
    font-size:16px;
    line-height:1.7;
}
.installer-callout{
    display:grid;
    grid-template-columns:56px minmax(0,1fr);
    gap:16px;
    align-items:flex-start;
    padding:18px 20px;
    border:1px solid #cfdcf0;
    border-radius:24px;
    background:#f6faff;
}
.installer-callout--success{
    background:#f4fbf6;
    border-color:#ccebd5;
}
.installer-callout__icon{
    width:40px;
    height:40px;
    border-radius:999px;
    border:2px solid #2e6fd8;
    color:#2e6fd8;
    display:grid;
    place-items:center;
    font-weight:900;
    font-size:20px;
}
.installer-callout--success .installer-callout__icon{
    border-color:#2f855a;
    color:#2f855a;
}
.installer-callout h3{
    margin:0 0 8px;
    font-size:18px;
}
.installer-callout p,
.installer-callout ul{
    margin:0;
    color:#5f6f83;
    line-height:1.6;
}
.installer-callout ul{padding-left:18px}
.installer-check-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}
.check{
    min-height:92px;
    padding:14px 14px 12px;
    border-radius:16px;
}
.check b{font-size:14px;line-height:1.35}
.check span{font-size:13px}
.check small{font-size:12px;line-height:1.45}
.section-head--install h2{
    margin:4px 0 0;
    font-size:30px;
    line-height:1.1;
    letter-spacing:-.04em;
}
.step-note{
    margin:0;
    color:#556579;
}
.form-grid--compact{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.subcard{
    background:linear-gradient(180deg,#fbfdff 0%,#f6f9fd 100%);
    border-color:#dbe5f0;
    border-radius:24px;
    padding:20px;
}
.subcard h3{
    margin:0;
    font-size:18px;
}
.inline-actions--spaced{
    margin-top:14px;
}
.module-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}
.module-item{
    border-radius:18px;
    border:1px solid #dbe5ef;
    background:#fbfdff;
    min-height:110px;
}
.module-item b{font-size:15px}
.process-list{
    display:grid;
    gap:10px;
}
.process-list--compact{
    margin-top:2px;
}
.process-row{
    display:grid;
    grid-template-columns:40px minmax(0,1fr);
    gap:12px;
    align-items:center;
    padding:14px 16px;
    border:1px solid #dbe5ef;
    border-radius:16px;
    background:#fbfdff;
}
.process-row b{
    color:#2868d2;
    font-size:16px;
}
.process-row span{
    color:#526275;
    line-height:1.5;
}
.process-box{
    margin-top:4px;
    border-radius:20px;
    padding:16px 18px;
    font-size:15px;
}
.install-submit-wrap{
    margin-top:4px;
    justify-content:flex-end;
}
.install-nav{
    margin-top:auto;
    padding-top:20px;
    border-top:1px solid #dde6f2;
}
.install-nav--single{
    justify-content:center;
}
.install-nav__meta{
    font-size:14px;
}
.btn{
    min-height:44px;
    padding:11px 16px;
    border-radius:16px;
}
.btn--primary{
    background:linear-gradient(180deg,#2f7de6 0%,#2569d1 100%);
    border-color:#2569d1;
    box-shadow:0 10px 20px rgba(37,105,209,.18);
}
.btn--lg{
    min-height:50px;
    padding-inline:20px;
    font-size:15px;
}
.wizard-tab{
    justify-content:center;
    min-height:48px;
    border-radius:999px;
    background:#eef2f7;
    border-color:transparent;
    color:#516174;
    font-size:14px;
}
.wizard-tab span{
    min-width:22px;
    height:22px;
    background:#d0d9e4;
    font-size:12px;
}
.wizard-tab.is-active{
    background:#e8f1ff;
    color:#1f5fc8;
    border:1px solid #b9d2f2;
}
.wizard-tab.is-active span{
    background:#2c74dd;
}
.wizard-tab.is-complete{
    background:#edf6ef;
    color:#2f855a;
    border:1px solid #cce3d1;
}
.wizard-tab.is-complete span{
    background:#3ba16d;
    color:#fff;
}
.wizard-tab--static{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:48px;
    padding:14px 16px;
    border-radius:999px;
    background:#eef2f7;
    color:#6b7b8c;
    font-size:14px;
    font-weight:800;
}
.wizard-tab--static span{
    display:grid;
    place-items:center;
    width:22px;
    height:22px;
    border-radius:999px;
    background:#d0d9e4;
    color:#0f172a;
    font-size:12px;
    font-weight:900;
}
.wizard-tab--static.is-complete{
    background:#edf6ef;
    color:#2f855a;
    border:1px solid #cce3d1;
}
.wizard-tab--static.is-complete span{
    background:#3ba16d;
    color:#fff;
}
.install-summary-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}
.summary-box{
    padding:16px;
    border:1px solid #dbe5ef;
    border-radius:18px;
    background:#fbfdff;
}
.summary-box span{
    display:block;
    color:#718195;
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-weight:800;
}
.summary-box b{
    display:block;
    margin-top:8px;
    font-size:18px;
    word-break:break-word;
}
.install-footer--brand{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    gap:8px;
    padding:2px 8px 0;
    text-align:center;
    color:#5f6f83;
}
.footer-brand{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-weight:900;
    color:#235fc8;
    text-decoration:none;
}
.footer-brand img{
    width:20px;
    height:20px;
    display:block;
}
.installer-flash{
    margin-bottom:0;
}
.install-page--pro input,
.install-page--pro select,
.install-page--pro textarea{
    min-height:46px;
    border-radius:14px;
    border-color:#d7e1ec;
    background:#fff;
}
.install-page--pro label{
    gap:8px;
    font-size:13px;
}
.complete-card,.complete-icon,.complete-grid{all:unset}

@media (max-width: 1500px){
    .installer-grid,
    .installer-complete-grid{grid-template-columns:420px minmax(0,1fr)}
    .step-intro h2{font-size:60px}
    .installer-check-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .module-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 1200px){
    .installer-topbar{flex-direction:column}
    .installer-steps{grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
    .installer-grid,
    .installer-complete-grid{grid-template-columns:1fr}
    .installer-side{border-right:0;border-bottom:1px solid #dbe5f1}
    .installer-check-grid,
    .install-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .step-intro h2{font-size:52px}
}
@media (max-width: 840px){
    .install-page--pro{padding:14px}
    .installer-shell{gap:12px}
    .installer-topbar{padding:18px}
    .installer-brand{min-width:0;width:100%}
    .installer-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
    .wizard-tab,
    .wizard-tab--static{font-size:13px;padding:12px}
    .installer-workspace{padding:22px 18px 18px}
    .step-intro{padding-right:0}
    .step-intro::after{display:none}
    .step-intro h2{font-size:40px}
    .installer-check-grid,
    .form-grid--compact,
    .split-card-grid,
    .module-list,
    .install-summary-grid{grid-template-columns:1fr}
    .subcard-head,
    .install-nav{flex-direction:column;align-items:stretch}
    .install-nav{position:sticky;bottom:10px;background:rgba(255,255,255,.98);padding:14px;border:1px solid #dbe5ef;border-radius:20px;box-shadow:0 12px 24px rgba(15,23,42,.08)}
}

/* === Compact no-scroll refinement === */
.install-page--pro{
    min-height:100vh;
    padding:12px 18px 10px;
    overflow:hidden;
}
.installer-shell{
    max-width:min(1660px,100%);
    height:calc(100vh - 22px);
    grid-template-rows:auto auto minmax(0,1fr) auto;
    gap:10px;
}
.installer-topbar{
    padding:14px 20px 12px;
    gap:18px;
    border-radius:24px;
}
.installer-brand__icon{
    width:50px;
    height:50px;
    border-radius:16px;
}
.installer-brand__icon img{
    width:28px;
}
.installer-brand__content h1{
    font-size:20px;
}
.installer-brand__content p{
    font-size:13px;
}
.installer-steps{
    gap:8px;
}
.installer-progress{
    height:6px;
}
.installer-card{
    height:100%;
    min-height:0;
    border-radius:24px;
}
.installer-grid,
.installer-complete-grid{
    grid-template-columns:410px minmax(0,1fr);
    min-height:0;
    height:100%;
}
.installer-side{
    padding:24px 22px 20px;
}
.installer-side::before{
    background-size:20px 20px;
}
.installer-side__logo-wrap{
    min-height:228px;
    padding:18px 16px;
    border-radius:22px;
}
.installer-side__logo-wrap img{
    width:min(230px,78%);
}
.installer-side__logo-wrap--complete img{
    width:min(240px,80%);
}
.installer-side__name{
    margin-top:16px;
    font-size:21px;
}
.installer-side__subname{
    margin-top:4px;
    font-size:12px;
    letter-spacing:.22em;
}
.installer-side__divider{
    margin:16px 0;
}
.installer-side__features{
    gap:10px;
}
.feature-row{
    grid-template-columns:42px minmax(0,1fr);
    gap:10px;
}
.feature-row__icon{
    width:34px;
    height:34px;
    font-size:15px;
}
.feature-row b{
    margin-bottom:2px;
    font-size:15px;
}
.feature-row p{
    font-size:13px;
    line-height:1.38;
}
.installer-workspace{
    min-height:0;
    padding:20px 22px 16px;
    overflow:hidden;
}
.installer-workspace--complete{
    padding-top:24px;
}
.step-panel{
    gap:14px;
    align-content:start;
    min-height:0;
}
.step-intro{
    padding-right:76px;
}
.step-intro::after{
    top:6px;
    right:8px;
    width:46px;
    height:46px;
    border-radius:14px;
    box-shadow:22px 8px 0 0 rgba(240,245,251,.95),
               0 0 0 1px rgba(215,225,237,.9),
               22px 8px 0 1px rgba(231,238,246,.9);
}
.step-intro__badge{
    padding:5px 11px;
    font-size:11px;
}
.step-intro h2{
    margin:10px 0 8px;
    font-size:clamp(44px,3.8vw,62px);
    line-height:.95;
    max-width:930px;
}
.step-intro p{
    max-width:880px;
    font-size:15px;
    line-height:1.58;
}
.installer-callout{
    grid-template-columns:48px minmax(0,1fr);
    gap:14px;
    padding:14px 16px;
    border-radius:20px;
}
.installer-callout__icon{
    width:34px;
    height:34px;
    font-size:16px;
}
.installer-callout h3{
    margin-bottom:6px;
    font-size:16px;
}
.installer-callout p,
.installer-callout ul{
    font-size:14px;
    line-height:1.5;
}
.installer-check-grid{
    gap:10px;
}
.check{
    min-height:72px;
    padding:11px 12px 10px;
    border-radius:14px;
}
.check b{
    font-size:13px;
}
.check span{
    margin-top:3px;
    font-size:12px;
}
.check small{
    margin-top:2px;
    font-size:11px;
    line-height:1.35;
}
.section-head--install span{
    font-size:12px;
}
.section-head--install h2{
    font-size:26px;
}
.step-note{
    font-size:14px;
    line-height:1.5;
}
.pill{
    min-height:36px;
    padding:8px 12px;
    font-size:12px;
}
.form-grid--compact{
    gap:14px;
}
.subcard{
    border-radius:20px;
    padding:16px;
}
.subcard h3{
    font-size:17px;
}
.module-list{
    gap:10px;
}
.module-item{
    min-height:90px;
    padding:14px;
    border-radius:16px;
}
.module-item b{font-size:14px}
.module-item span{font-size:13px;line-height:1.45}
.process-list{
    gap:8px;
}
.process-row{
    grid-template-columns:32px minmax(0,1fr);
    gap:10px;
    padding:11px 13px;
    border-radius:14px;
}
.process-row b{font-size:14px}
.process-row span{font-size:13px;line-height:1.45}
.process-box{
    padding:13px 15px;
    border-radius:16px;
    font-size:14px;
}
.install-submit-wrap{
    margin-top:0;
}
.install-nav{
    padding-top:14px;
}
.install-nav__meta{
    font-size:13px;
}
.btn{
    min-height:40px;
    padding:10px 15px;
    border-radius:14px;
    font-size:14px;
}
.btn--lg{
    min-height:46px;
    padding-inline:18px;
}
.wizard-tab,
.wizard-tab--static{
    min-height:42px;
    padding:10px 12px;
    font-size:13px;
}
.wizard-tab span,
.wizard-tab--static span{
    min-width:20px;
    width:20px;
    height:20px;
    font-size:11px;
}
.install-summary-grid{
    gap:10px;
}
.summary-box{
    padding:13px;
    border-radius:15px;
}
.summary-box b{
    margin-top:6px;
    font-size:16px;
}
.install-footer--brand{
    gap:6px;
    padding-top:0;
    font-size:12px;
}
.footer-brand img{
    width:18px;
    height:18px;
}
.footer-brand b{
    font-size:13px;
}

@media (max-width: 1500px){
    .installer-grid,
    .installer-complete-grid{grid-template-columns:360px minmax(0,1fr)}
    .step-intro h2{font-size:clamp(40px,3.5vw,54px)}
    .installer-side__logo-wrap{min-height:200px}
}
@media (max-height: 900px) and (min-width: 1201px){
    .installer-shell{height:calc(100vh - 16px);gap:8px}
    .install-page--pro{padding:8px}
    .installer-topbar{padding:12px 16px 10px}
    .installer-grid,
    .installer-complete-grid{grid-template-columns:340px minmax(0,1fr)}
    .installer-side{padding:18px 18px 16px}
    .installer-side__logo-wrap{min-height:170px}
    .installer-side__logo-wrap img{width:min(180px,70%)}
    .feature-row p{font-size:12px}
    .step-intro h2{font-size:clamp(36px,3.2vw,48px)}
    .step-intro p{font-size:14px}
    .check{min-height:64px;padding:9px 10px}
    .check small{display:none}
    .installer-callout{padding:12px 14px}
    .process-row{padding:9px 11px}
    .install-nav{padding-top:10px}
}
@media (max-height: 760px) and (min-width: 1201px){
    .installer-brand__content p,
    .feature-row p,
    .step-note,
    .installer-callout p,
    .installer-callout ul,
    .process-row span,
    .module-item span{font-size:12px;line-height:1.35}
    .step-intro h2{font-size:clamp(30px,2.9vw,40px)}
    .step-intro p{font-size:13px;line-height:1.4}
    .installer-side__features{gap:8px}
    .installer-check-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .wizard-tab,
    .wizard-tab--static{min-height:38px;font-size:12px}
}
@media (max-width: 1200px){
    .install-page--pro{overflow:auto}
    .installer-shell{height:auto}
}
@media (max-width: 840px){
    .install-page--pro{overflow:auto}
    .installer-shell{height:auto}
}


/* === Welcome screen spacing refinement === */
.installer-brand__content p{display:none !important;}
.step-intro--welcome{padding-top:2px;}
.step-intro--welcome h2{margin-top:0;}
.step-intro--welcome p{max-width:860px;}
.install-nav{
    border-top:0 !important;
    margin-top:16px !important;
    padding-top:0 !important;
}
.installer-check-grid{
    margin-bottom:6px;
}
@media (max-height: 900px) and (min-width: 1201px){
    .install-nav{margin-top:12px !important;}
    .step-intro--welcome h2{margin-bottom:8px;}
}

/* === License verification card — step 2 === */
.license-step-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);
    gap:16px;
    align-items:stretch;
}
.license-fields{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
    padding:18px;
    border:1px solid #dbe5ef;
    border-radius:22px;
    background:linear-gradient(180deg,#fbfdff 0%,#f6f9fd 100%);
}
.license-action-box{
    display:flex;
    align-items:center;
    gap:14px;
    margin-top:2px;
}
.license-action-box small{
    color:#64748b;
    line-height:1.45;
}
.license-result{
    min-height:100%;
    padding:18px;
    border:1px solid #dbe5ef;
    border-radius:22px;
    background:#fbfdff;
    display:grid;
    align-content:center;
}
.license-result__empty,
.license-result > div{
    display:grid;
    gap:7px;
}
.license-result__empty b,
.license-result > div b{
    font-size:17px;
}
.license-result__empty span,
.license-result > div span{
    color:#64748b;
    line-height:1.45;
}
.license-result--pending{
    border-color:#bfdbfe;
    background:#eff6ff;
}
.license-result--ok{
    border-color:#bbf7d0;
    background:#f0fdf4;
}
.license-result--bad{
    border-color:#fecaca;
    background:#fef2f2;
}
.license-result__head{
    margin-bottom:12px;
}
.license-summary-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}
.license-summary-grid div{
    padding:11px 12px;
    border:1px solid rgba(22,101,52,.16);
    border-radius:14px;
    background:rgba(255,255,255,.72);
}
.license-summary-grid span{
    display:block;
    color:#64748b;
    font-size:11px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin-bottom:5px;
}
.license-summary-grid b{
    display:block;
    font-size:15px;
    color:#0f172a;
}
.license-hint{
    padding:14px 16px;
    border:1px solid #dbe5ef;
    border-radius:18px;
    background:#f8fafc;
    color:#526275;
    line-height:1.55;
    font-size:14px;
}
.license-hint b{color:#1e293b}
@media(max-width:1100px){
    .license-step-card{grid-template-columns:1fr}
    .license-summary-grid{grid-template-columns:1fr}
}
@media(max-height:820px) and (min-width:1201px){
    .license-fields,.license-result{padding:14px;border-radius:18px}
    .license-action-box small,.license-hint{font-size:12px;line-height:1.35}
    .license-summary-grid{gap:8px}
    .license-summary-grid div{padding:8px 10px}
}

/* === Installer owner data step === */
.installer-steps{grid-template-columns:repeat(7,minmax(0,1fr));}
.owner-type-switch{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}
.owner-type-option{
    display:grid;
    gap:5px;
    padding:14px 16px;
    border:1px solid #dbe5ef;
    border-radius:18px;
    background:#fbfdff;
    cursor:pointer;
    transition:.16s ease;
}
.owner-type-option input{display:none;}
.owner-type-option span{
    font-size:15px;
    font-weight:900;
    color:#1e293b;
}
.owner-type-option small{
    color:#64748b;
    line-height:1.4;
}
.owner-type-option.is-active{
    border-color:#b9d2f2;
    background:#eef6ff;
    box-shadow:0 10px 22px rgba(37,105,209,.08);
}
.owner-fields-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
}
.owner-contact-card .form-grid--compact,
.owner-address-card .form-grid--compact,
.owner-private-fields .form-grid--compact,
.owner-company-fields .form-grid--compact{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.phone-row{
    display:grid;
    grid-template-columns:116px minmax(0,1fr);
    gap:8px;
}
.phone-row select,
.phone-row input{min-width:0;}
.field-status{
    margin-top:10px;
    color:#64748b;
    font-size:12px;
    line-height:1.4;
}
.field-status--ok{color:#166534;font-weight:800;}
.field-status--bad{color:#b91c1c;font-weight:800;}
@media (max-width: 1500px){
    .installer-steps{grid-template-columns:repeat(4,minmax(0,1fr));}
}
@media (max-width: 980px){
    .owner-type-switch,
    .owner-contact-card .form-grid--compact,
    .owner-address-card .form-grid--compact,
    .owner-private-fields .form-grid--compact,
    .owner-company-fields .form-grid--compact{grid-template-columns:1fr;}
    .phone-row{grid-template-columns:1fr;}
}
@media (max-height: 900px) and (min-width: 1201px){
    .owner-type-option{padding:10px 12px;}
    .owner-fields-grid{gap:10px;}
    .field-status{margin-top:6px;}
}


/* === Owner data step compact spacing fix === */
.step-panel[data-step="3"]{
    align-content:start;
    gap:10px;
}
.step-panel[data-step="3"] .section-head--install{
    margin-bottom:2px;
}
.step-panel[data-step="3"] .section-head--install h2{
    font-size:24px;
}
.step-panel[data-step="3"] .owner-type-switch{
    margin-top:0;
    gap:8px;
}
.step-panel[data-step="3"] .owner-type-option{
    padding:9px 12px;
    border-radius:15px;
    gap:2px;
}
.step-panel[data-step="3"] .owner-type-option span{
    font-size:14px;
}
.step-panel[data-step="3"] .owner-type-option small{
    font-size:12px;
    line-height:1.25;
}
.step-panel[data-step="3"] .owner-fields-grid{
    gap:8px;
}
.step-panel[data-step="3"] .subcard{
    padding:12px 14px;
    border-radius:17px;
}
.step-panel[data-step="3"] .subcard h3{
    font-size:15px;
    margin-bottom:8px;
}
.step-panel[data-step="3"] .form-grid--compact{
    gap:10px;
}
.step-panel[data-step="3"] label{
    gap:5px;
    font-size:12px;
}
.step-panel[data-step="3"] input,
.step-panel[data-step="3"] select{
    min-height:40px;
    padding:9px 11px;
    border-radius:12px;
}
.step-panel[data-step="3"] .phone-row{
    grid-template-columns:104px minmax(0,1fr);
    gap:7px;
}
.step-panel[data-step="3"] .field-status{
    margin-top:6px;
    font-size:11px;
    line-height:1.25;
}
@media (max-height: 900px) and (min-width: 1201px){
    .step-panel[data-step="3"]{gap:8px;}
    .step-panel[data-step="3"] .owner-type-option small{display:none;}
    .step-panel[data-step="3"] .subcard{padding:10px 12px;}
    .step-panel[data-step="3"] input,
    .step-panel[data-step="3"] select{min-height:36px;padding:7px 10px;}
    .step-panel[data-step="3"] .field-status{display:none;}
}

/* Phone prefix custom option */
.phone-row.phone-row--custom{
    grid-template-columns:104px 92px minmax(0,1fr);
}
.phone-row.phone-row--custom #ownerPhonePrefixCustom{
    min-width:0;
}
@media(max-width:980px){
    .phone-row.phone-row--custom{grid-template-columns:1fr;}
}


/* Phone prefix simplified: one editable field with suggestions */
.step-panel[data-step="3"] .phone-row{
    grid-template-columns:96px minmax(0,1fr) !important;
}
.step-panel[data-step="3"] #ownerPhonePrefix{
    min-width:0;
    text-align:center;
    font-weight:800;
}
.phone-row.phone-row--custom{grid-template-columns:96px minmax(0,1fr) !important;}
#ownerPhonePrefixCustom{display:none !important;}
@media(max-width:980px){
    .step-panel[data-step="3"] .phone-row{grid-template-columns:96px minmax(0,1fr) !important;}
}
