:root {
    color-scheme: light;
    --ink: #172026;
    --muted: #62717d;
    --line: #d9e1e7;
    --panel: #ffffff;
    --soft: #eef4f5;
    --brand: #53c7dd;
    --brand-dark: #0084c4;
    --accent: #d7392f;
    --warning: #a45b00;
    --shadow: 0 18px 40px rgba(23, 32, 38, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #f7faf9;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 92px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 255, 255, .93);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
}

.brand-title {
    color: var(--brand-dark);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 800;
    line-height: 1.1;
}

.brand-logo {
    width: 260px;
    max-height: 92px;
    object-fit: contain;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
}

nav {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 14px;
}

nav a:hover, .link-button:hover { color: var(--brand); }

main { width: 100%; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 640px);
    align-items: center;
    gap: clamp(28px, 5vw, 70px);
    min-height: calc(100vh - 92px);
    padding: clamp(36px, 6vw, 82px) clamp(18px, 5vw, 70px);
    background:
        linear-gradient(125deg, rgba(83, 199, 221, .16), rgba(0, 132, 196, .08)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .88), transparent 30%),
        #edf4f3;
}

.hero h1 {
    max-width: 640px;
    margin: 8px 0 18px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 1080px;
}

.compact-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.compact-card h3 {
    margin: 0;
    font-size: 18px;
}

.account-grid .compact-card.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 10px 12px;
    max-width: none;
    padding: 14px;
}

.account-grid .compact-card h3 {
    grid-column: 1 / -1;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.15;
}

.account-grid .compact-card label {
    gap: 5px;
}

.account-grid .compact-card input {
    min-height: 40px;
    padding: 8px 10px;
}

.account-grid .compact-card .button {
    grid-column: 1 / -1;
    justify-self: center;
    min-width: 150px;
    min-height: 38px;
    padding: 8px 24px;
    background: var(--brand);
    border-color: var(--brand);
    color: #111;
}

.account-grid .compact-card .button:hover,
.account-grid .compact-card .button:focus-visible {
    background: #6adced;
    color: #111;
}

#installerResetRequestForm label {
    grid-column: 1 / -1;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.button:disabled,
button:disabled {
    cursor: wait;
    opacity: .78;
}

.button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.button.primary {
    background: var(--brand);
    color: #fff;
}

.button.primary:hover { background: var(--brand-dark); }

.button.secondary {
    background: #fff;
    color: var(--brand-dark);
    border-color: var(--line);
}

.link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}

.security-panel {
    position: relative;
    min-height: 430px;
    padding: 28px;
    overflow: hidden;
    background: #122125;
    color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-media {
    display: block;
    width: min(640px, 100%);
    aspect-ratio: 64 / 35;
    justify-self: end;
    overflow: hidden;
    background: #122125;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-line {
    width: 100%;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 10px, transparent 10px 22px);
}

.camera-shape {
    width: 190px;
    height: 118px;
    margin: 38px auto;
    border-radius: 8px;
    background: linear-gradient(145deg, #f7fafa, #b7c8cc);
    box-shadow: inset 0 -18px 25px rgba(0, 0, 0, .16);
}

.camera-shape::after {
    content: "";
    display: block;
    width: 62px;
    height: 62px;
    margin: 28px auto;
    border: 12px solid #243a40;
    border-radius: 50%;
    background: #0084c4;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.section {
    padding: clamp(34px, 5vw, 66px) clamp(18px, 5vw, 70px);
    border-top: 1px solid var(--line);
}

.section.compact {
    max-width: 560px;
    margin: 42px auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.section-head {
    max-width: 760px;
    margin-bottom: 22px;
}

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
}

.section-head p:not(.eyebrow) { color: var(--muted); }

.section-head.inline {
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.subhead { margin-top: 34px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 1120px;
}

label, fieldset {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: #394850;
    font-size: 14px;
    font-weight: 700;
}

label > input,
label > select,
label > textarea,
label > .field-help,
label > .selected-file-list {
    grid-column: 1 / -1;
}

.check-line {
    grid-template-columns: min-content 1fr;
    align-items: center;
}

.label-text {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    width: max-content;
    max-width: 100%;
}

.required-star {
    color: var(--accent);
    font-weight: 900;
}

.field-help {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.label-help {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: normal;
}

.company-page-help {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy-page-button {
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border: 1px solid rgba(0, 132, 196, .28);
    border-radius: 6px;
    background: #eefbff;
    color: var(--brand-dark);
    cursor: pointer;
    flex: 0 0 auto;
    position: relative;
}

.copy-page-button::before,
.copy-page-button::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.copy-page-button::before {
    left: 6px;
    top: 7px;
    background: #eefbff;
}

.copy-page-button::after {
    left: 9px;
    top: 4px;
    background: #eefbff;
}

.advanced-skip {
    padding: 12px 14px;
    border: 1px solid rgba(0, 132, 196, .28);
    border-radius: 8px;
    background: #eefbff;
}

.social-fields {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.selected-file-list {
    display: grid;
    gap: 6px;
    margin-top: 2px;
}

.selected-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #d7e5ea;
    border-radius: 8px;
    background: #eef7f9;
}

.selected-file-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
    font-size: 13px;
}

.selected-file-name small {
    color: var(--muted);
    font-weight: 700;
}

.selected-file-remove {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid #d9a72f;
    border-radius: 8px;
    background: #f1c45a;
    color: #111;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

input, select, textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

select[multiple] {
    min-height: 88px;
}

select[data-pair-technology][multiple] {
    min-height: 154px;
}

textarea { resize: vertical; }

input:focus, select:focus, textarea:focus {
    outline: 3px solid rgba(83, 199, 221, .28);
    border-color: var(--brand);
}

fieldset {
    grid-column: 1 / -1;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

legend { padding: 0 6px; }

.form-segment {
    position: relative;
    padding-top: 12px;
}

.form-segment::before { content: none; }

.segment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.notice {
    max-width: 1120px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 132, 196, .24);
    border-radius: 8px;
    background: rgba(83, 199, 221, .12);
    color: var(--brand-dark);
    font-weight: 700;
}

.captcha-box {
    padding: 12px 14px;
}

.captcha-row {
    display: grid;
    grid-template-columns: auto auto minmax(180px, 260px);
    align-items: end;
    gap: 10px;
}

.captcha-row img {
    width: 150px;
    height: 48px;
    border: 1px solid rgba(0, 132, 196, .24);
    border-radius: 8px;
    background: #eefbff;
}

.captcha-refresh {
    min-height: 42px;
    padding: 8px 12px;
}

.duplicate-check {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.duplicate-check .field-help {
    color: var(--muted);
    font-weight: 700;
    margin: 0;
}

.verify-button {
    background: var(--brand);
    border-color: var(--brand-dark);
    color: #111;
}

.verify-button:hover,
.verify-button:focus-visible {
    background: #6adced;
    color: #111;
}

.duplicate-check .field-help.ok { color: #087a48; }
.duplicate-check .field-help.warn { color: var(--warning); }
.duplicate-check .field-help.error { color: var(--accent); }

.contact-section {
    background: #fff;
}

.contact-details {
    display: grid;
    gap: 8px;
    max-width: 620px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    color: var(--ink);
    font-weight: 700;
}

.contact-details a {
    color: var(--brand-dark);
    text-decoration: underline;
}

.contact-details p {
    margin: 0;
    color: var(--ink);
}

.wide { grid-column: 1 / -1; }

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
    max-height: 230px;
    overflow: auto;
    padding-right: 4px;
}

.check-grid.compact {
    max-height: none;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.check-grid label,
.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 600;
}

.check-grid input,
.check-line input {
    width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
}

.check-grid .inline-number {
    display: inline-block;
    width: 72px;
    height: auto;
    min-height: 32px;
    margin: 0 6px;
    padding: 5px 8px;
    vertical-align: middle;
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    max-width: 1120px;
    margin-top: 22px;
}

.installer-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(23, 32, 38, .06);
}

.bookmark-button {
    position: absolute;
    top: 14px;
    right: 14px;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-dark);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.bookmark-button.saved {
    border-color: #c49022;
    background: #f0c45d;
    color: #141a1f;
}

.installer-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.installer-card h3 { margin: 0; font-size: 22px; }
.installer-card p { margin: 0; color: var(--muted); }

.search-mail-note {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(0, 132, 196, .24);
    border-radius: 8px;
    background: #eefbff;
    color: var(--brand-dark);
    font-weight: 800;
}

.search-mail-note.warning {
    border-color: rgba(215, 57, 47, .28);
    background: #fff4f2;
    color: var(--accent);
}

.province-summary-panel {
    max-width: 1120px;
    margin: 0 0 16px;
}

.compact-map-head {
    margin-bottom: 8px;
}

.province-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    max-width: 1120px;
}

.province-summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: #394850;
    font-size: 12px;
    font-weight: 700;
}

.province-summary-item strong {
    color: var(--brand-dark);
    font-size: 14px;
}
.installer-admin-comment {
    margin: 0;
    padding: 10px 12px;
    min-height: 76px;
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    background: #eefbff;
    color: #243942;
    font-size: 14px;
    line-height: 1.45;
}

.installer-admin-comment.is-empty {
    visibility: hidden;
}
.installer-certifications {
    padding: 9px 10px;
    border-left: 3px solid var(--brand);
    background: rgba(83, 199, 221, .12);
    border-radius: 8px;
}

.advanced-profile {
    padding: 0;
    border: 1px solid rgba(0, 132, 196, .28);
    border-radius: 8px;
    background: #eafaff;
    box-shadow: 0 0 0 1px rgba(83, 199, 221, .12);
}

.advanced-profile > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
    background: #d7f5fb;
    border-radius: 8px;
}

.summary-hint {
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.advanced-profile[open] > summary {
    border-bottom: 1px solid rgba(0, 132, 196, .22);
    border-radius: 8px 8px 0 0;
    background: #cff1f8;
}

.advanced-grid {
    display: grid;
    gap: 14px;
    padding: 0 16px 16px;
}

.installer-advanced {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7fbfc;
}

.installer-advanced summary {
    cursor: pointer;
    padding: 9px 10px;
    color: var(--brand-dark);
    font-weight: 900;
}

.installer-advanced dl {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0 10px 10px;
}

.installer-advanced dt {
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.installer-advanced dd {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 13px;
}

.inline-link {
    color: var(--brand-dark);
    font-weight: 900;
    text-decoration: underline;
}

.saved-installers {
    max-width: 1120px;
    margin-top: 16px;
}

.saved-box {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.saved-box h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.saved-list {
    display: grid;
    gap: 8px;
}

.saved-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.saved-item button {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--accent);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
    padding: 5px 8px;
    background: var(--soft);
    border-radius: 8px;
    color: #394850;
    font-size: 12px;
    font-weight: 700;
}

.file-pill {
    background: #d9a72f;
    color: #111;
    border: 1px solid #b98517;
}

.file-pill:hover,
.bookmark-button:hover {
    filter: brightness(.96);
}

.editable-attachment-row {
    gap: 10px;
}

.editable-attachment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.editable-attachment .pill {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-name-list {
    display: grid;
    gap: 4px;
}

.result-name-list span {
    display: block;
    font-weight: 700;
}

.pair-controls {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.segmented-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.segmented-options label {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    color: #394850;
    font-size: 13px;
}

.segmented-options input {
    width: 15px;
    height: 15px;
    min-height: 15px;
    padding: 0;
}

.pair-picker[data-pair-mode="technology"] [data-pair-technology-field] { order: 1; }
.pair-picker[data-pair-mode="technology"] [data-pair-brand-field] { order: 2; }
.pair-picker[data-pair-mode="technology"] [data-add-pair] { order: 3; }

.pair-controls > .button {
    margin-top: 31px;
}

.pair-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 36px;
}

.pair-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    color: #394850;
    font-size: 13px;
    font-weight: 700;
}

.pair-chip button {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.admin-filter-pairs {
    margin-bottom: 16px;
}

.settings-form {
    margin-bottom: 22px;
}

.settings-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.settings-preview img {
    width: 132px;
    height: 82px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.toast {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 18px;
    transform: scale(.98);
    opacity: 0;
    pointer-events: none;
    background: rgba(23, 32, 38, .38);
    transition: .2s ease;
}

.toast.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.toast-box {
    width: min(420px, 100%);
    padding: 22px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.toast-box p {
    margin: 0 0 16px;
    color: var(--ink);
    font-weight: 700;
}

.toast-box button {
    min-height: 40px;
    padding: 9px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.admin-main { padding: 0 clamp(12px, 3vw, 36px); }

.admin-main .section {
    padding-top: clamp(24px, 3.2vw, 44px);
    padding-bottom: clamp(24px, 3.2vw, 44px);
}

.admin-main .section-head {
    margin-bottom: 14px;
}

.admin-main .section-head h1 {
    font-size: clamp(28px, 3.2vw, 42px);
}

.admin-main .section-head h2 {
    font-size: clamp(22px, 2.4vw, 32px);
}

.filters {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.admin-main .filters input,
.admin-main .filters select {
    min-height: 34px;
    padding: 5px 9px;
    font-size: 13px;
}

.admin-main .filters select[multiple] {
    min-height: 52px;
    padding: 4px 8px;
}

.admin-main .admin-filter-pairs {
    padding: 9px 14px 10px;
    margin-bottom: 12px;
}

.admin-main .admin-filter-pairs label {
    gap: 5px;
    font-size: 13px;
}

.admin-main .admin-filter-pairs select {
    min-height: 34px;
    padding: 5px 9px;
    font-size: 13px;
}

.admin-main .admin-filter-pairs select[data-pair-technology][multiple] {
    min-height: 70px;
    padding: 4px 8px;
}

.admin-main .admin-filter-pairs .pair-controls {
    align-items: end;
}

.admin-main .admin-filter-pairs .pair-controls > .button {
    min-height: 34px;
    margin-top: 0;
    padding: 5px 12px;
}

.seller-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.seller-count {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 30px;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
    color: #394850;
    font-size: 13px;
}

.seller-summary-note {
    align-self: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.table-wrap {
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.installer-admin-table {
    table-layout: fixed;
    min-width: 100%;
}

.installer-admin-table .col-installer { width: 16%; }
.installer-admin-table .col-city { width: 12%; }
.installer-admin-table .col-specialties { width: 26%; }
.installer-admin-table .col-seller { width: 7%; }
.installer-admin-table .col-advanced { width: 7%; }
.installer-admin-table .col-status { width: 8%; }
.installer-admin-table .col-actions { width: 24%; }

th, td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

th {
    background: var(--soft);
    color: #394850;
    font-size: 12px;
    text-transform: uppercase;
}

td.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
    min-width: 0;
}

.installer-specialties-cell {
    overflow-wrap: anywhere;
}

.installer-specialties-text {
    line-height: 1.35;
}

.installer-specialties-text.is-collapsed {
    display: -webkit-box;
    max-height: 2.7em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.specialties-more {
    min-height: 0;
    margin-top: 4px;
    padding: 0;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}

.small-button {
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-dark);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.small-button.has-comment {
    border-color: #0084c4;
    background: #53c7dd;
    color: #071b24;
}

.small-button.has-comment:hover,
.small-button.has-comment:focus {
    background: #35b9d4;
    color: #071b24;
}

.danger { color: var(--accent); }
.warn { color: var(--warning); }
.ok { color: var(--brand); font-weight: 800; }
.muted { color: var(--muted); }

dialog {
    width: min(980px, calc(100% - 24px));
    border: 0;
    border-radius: 8px;
    padding: 0;
    box-shadow: var(--shadow);
}

dialog::backdrop { background: rgba(18, 33, 37, .46); }

.dialog-form {
    padding: 22px;
    background: var(--panel);
}

.dialog-form h2 { grid-column: 1 / -1; margin: 0; }

.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form textarea { min-height: 180px; resize: vertical; }

.dialog-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.admin-user-form {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 14px;
}

.admin-users { max-width: 900px; }

.hidden { display: none !important; }

@media (max-width: 820px) {
    .topbar, nav { align-items: flex-start; }
    .topbar { flex-direction: column; }
    nav { flex-wrap: wrap; }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .brand-logo { width: 210px; max-height: 74px; }
    .hero-media { justify-self: stretch; }
    .security-panel { min-height: 340px; }
    .form-grid, .filters, .account-grid { grid-template-columns: 1fr; }
    .account-grid .compact-card.form-grid { grid-template-columns: 1fr; }
    .segment-grid { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: 1fr; }
    .captcha-row { grid-template-columns: 1fr; align-items: stretch; }
    .captcha-row img { width: 150px; }
    .pair-controls { grid-template-columns: 1fr; }
    .section-head.inline { align-items: flex-start; flex-direction: column; }
    .advanced-profile > summary {
        align-items: flex-start;
        flex-direction: column;
    }
}
