:root {
    --navy: #102a43;
    --blue: #1677a7;
    --blue-dark: #0d5f87;
    --gold: #f5b942;
    --background: #f4f7fa;
    --surface: #ffffff;
    --text: #1f2933;
    --muted: #64748b;
    --border: #dbe4ec;
    --danger: #c0392b;
    --warning: #b7791f;
}

/* Customer-friendly system status and safe record controls */
.record-filter{display:flex;gap:6px;width:max-content;margin:0 0 18px;padding:5px;border:1px solid #dbe5eb;border-radius:12px;background:#fff}.record-filter a{padding:9px 14px;border-radius:8px;color:var(--muted);font-weight:800;text-decoration:none}.record-filter a.active{background:var(--navy);color:#fff}.table-action{padding:0;border:0;background:transparent;color:#0873a8;font:inherit;font-weight:800;cursor:pointer}.danger-button{display:inline-flex;justify-content:center;padding:12px 18px;border:0;border-radius:10px;background:#a5362b;color:#fff;font-weight:850;cursor:pointer}.archive-panel{max-width:720px;margin:40px auto;padding:30px;border:1px solid #e1e8ed;border-radius:20px;background:#fff;box-shadow:0 15px 38px rgba(16,42,67,.08)}.archive-panel h1{margin:5px 0 10px;color:var(--navy)}.archive-blockers{margin:20px 0;padding:17px;border:1px solid #efc7c1;border-radius:12px;background:#fff6f4;color:#772f28}.archive-blockers ul{margin-bottom:0}
.system-site-grid{display:grid;gap:18px}.system-site-card{padding:24px;border:1px solid #d7e3e9;border-radius:20px;background:#fff;box-shadow:0 12px 30px rgba(16,42,67,.06)}.system-site-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:18px;border-bottom:1px solid #e5edf1}.system-site-card h2{margin:4px 0;color:var(--navy)}.system-site-card header p:last-child{margin:4px 0 0;color:var(--muted)}.status-pill{display:inline-flex;padding:7px 10px;border-radius:999px;background:#edf2f5;color:#53697b;font-size:.78rem;font-weight:850}.status-pill.good{background:#e3f5ed;color:#176446}.status-pill.attention{background:#fff3cf;color:#795700}.installed-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:11px;padding:18px 0}.installed-item{display:flex;min-height:105px;flex-direction:column;padding:14px;border:1px solid #dce8ed;border-radius:13px;background:#f8fbfc}.installed-item span,.installed-item small{color:var(--muted);font-size:.78rem}.installed-item strong{margin:6px 0;color:var(--navy)}.system-empty-inline{grid-column:1/-1;display:flex;flex-direction:column;gap:4px;padding:16px;border-radius:12px;background:#f6f9fa;color:var(--muted)}.system-empty-inline strong{color:var(--navy)}.system-site-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.text-button{padding:9px;color:#176f9d;font-weight:800;text-decoration:none}.system-list-empty{padding:50px 24px;border:1px dashed #bfd1da;border-radius:20px;background:#f9fbfc;text-align:center}.system-list-empty>span{font-size:2rem}.system-list-empty h2{color:var(--navy)}
.customer-system-status-page{display:grid;gap:20px}.customer-system-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.customer-system-heading h1{margin:5px 0;color:var(--navy)}.customer-system-heading p:last-child{margin:0;color:var(--muted)}.system-health-banner{display:flex;gap:15px;padding:22px;border:1px solid #d8e4e9;border-radius:18px;background:#f7fafb}.system-health-banner.good{border-color:#bde4d4;background:#effaf5}.system-health-banner.attention{border-color:#efd792;background:#fff9e8}.system-health-banner.danger{border-color:#edc3bc;background:#fff5f3}.system-health-mark{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border-radius:50%;background:#fff;color:var(--navy);font-weight:950}.system-health-banner h2{margin:0 0 5px;color:var(--navy)}.system-health-banner p{margin:0 0 7px}.system-health-banner small{color:var(--muted)}.system-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:13px}.system-summary-card{display:flex;min-height:135px;flex-direction:column;padding:18px;border:1px solid #dae6eb;border-top:4px solid #8ca1ae;border-radius:15px;background:#fff}.system-summary-card.good{border-top-color:#1b9a70}.system-summary-card.attention{border-top-color:#e6ad2f}.system-summary-card.danger{border-top-color:#c34a3f}.system-summary-card span,.system-summary-card small{color:var(--muted)}.system-summary-card strong{margin:8px 0;color:var(--navy);font-size:1.25rem}.system-insight-panel,.system-equipment-panel{padding:22px;border:1px solid #dbe5ea;border-radius:18px;background:#fff}.system-section-heading h2{margin:4px 0 16px;color:var(--navy)}.system-insight-list{display:grid;gap:10px}.system-insight{display:flex;gap:12px;padding:15px;border-radius:12px;background:#f5f8fa}.system-insight.good{background:#eef9f4}.system-insight.attention{background:#fff7df}.system-insight.danger{background:#fff2f0}.system-insight>span{font-weight:950}.system-insight strong{color:var(--navy)}.system-insight p{margin:4px 0 0;color:var(--muted)}.system-equipment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:13px}.system-equipment-card{padding:18px;border:1px solid #dce6eb;border-radius:15px;background:#fafcfd}.system-equipment-topline{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:.78rem;font-weight:800}.system-equipment-topline em{font-style:normal}.system-equipment-topline em.good{color:#176446}.system-equipment-topline em.attention,.system-equipment-topline em.danger{color:#9a3f34}.system-equipment-card h3{margin:11px 0;color:var(--navy)}.system-capacity{color:var(--muted)}.system-equipment-detail{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid #e3eaee}.system-equipment-card>small{display:block;margin-top:9px;color:var(--muted)}.system-empty-state{padding:28px;border-radius:14px;background:#f6f9fa;text-align:center}.customer-data-explainer{padding:18px 20px;border-radius:15px;background:#edf6fa}.customer-data-explainer strong{color:var(--navy)}.customer-data-explainer p{margin:5px 0 0;color:var(--muted)}
.system-section-heading>p:last-child{margin:-8px 0 16px;color:var(--muted)}.system-plug-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:13px}.system-plug-card{display:grid;grid-template-columns:1fr auto;gap:8px 16px;padding:18px;border:1px solid #dce6eb;border-left:5px solid #8ca1ae;border-radius:15px;background:#fafcfd}.system-plug-card.good{border-left-color:#1b9a70;background:#f2fbf7}.system-plug-card.attention{border-left-color:#e6ad2f}.system-plug-card h3{margin:4px 0;color:var(--navy)}.system-plug-slot{color:var(--muted);font-size:.75rem;font-weight:800;letter-spacing:.06em}.system-plug-state{align-self:center;padding:7px 12px;border-radius:999px;background:#e8eef1;color:var(--navy)}.system-plug-card.good .system-plug-state{background:#d9f3e7;color:#176446}.system-plug-card p,.system-plug-card small{grid-column:1/-1;margin:0;color:var(--muted)}
.provider-invite-landing{display:grid;gap:18px;max-width:940px;margin:0 auto}.provider-invite-hero,.provider-invite-consent{padding:26px;border:1px solid #d7e4ea;border-radius:20px;background:#fff}.provider-invite-hero{background:linear-gradient(135deg,#edf8fb,#fff 64%,#fff7de)}.provider-invite-hero h1{margin:6px 0;color:var(--navy)}.provider-invite-hero blockquote{margin:18px 0 0;padding:15px 18px;border-left:4px solid var(--gold);background:#fff}.provider-invite-trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.provider-invite-trust-grid>div{display:flex;flex-direction:column;gap:6px;padding:17px;border:1px solid #dbe6eb;border-radius:14px;background:#fff}.provider-invite-trust-grid span{color:var(--muted)}.copy-link-row{display:flex;gap:10px}.copy-link-row input{min-width:0;flex:1}.success-card{margin-top:18px;padding:20px;border:1px solid #b9dfd2;border-radius:15px;background:#effaf6}
@media(max-width:720px){.system-list-heading,.customer-system-heading,.system-site-card>header{align-items:flex-start;flex-direction:column}.system-site-actions{display:grid}.system-site-actions a,.system-site-actions button,.system-site-actions form{width:100%}.provider-invite-trust-grid{grid-template-columns:1fr}.copy-link-row{flex-direction:column}.copy-link-row button{width:100%}.record-filter{width:100%}.record-filter a{flex:1;text-align:center}}

/* Registered provider discovery and controlled customer requests */
.provider-marketplace {
    display: grid;
    gap: 24px;
}

.narrow-marketplace {
    width: min(820px, 100%);
    margin-inline: auto;
}

.marketplace-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 5vw, 44px);
    color: #fff;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(245, 185, 66, .24), transparent 34%),
        linear-gradient(135deg, #102a43 0%, #0d5f87 72%, #1677a7 100%);
    box-shadow: 0 20px 45px rgba(16, 42, 67, .16);
}

.marketplace-hero h1 { margin-bottom: 10px; }
.marketplace-hero p { max-width: 720px; color: #dbeaf3; margin-bottom: 0; }
.marketplace-hero .eyebrow { color: #f5c761; }
.marketplace-hero .secondary-button { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); white-space: nowrap; }

.provider-search-panel {
    display: grid;
    grid-template-columns: 1.15fr 1fr auto;
    gap: 16px;
    align-items: end;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 42, 67, .07);
}

.provider-search-panel label,
.service-request-form label { display: grid; gap: 7px; }
.provider-search-panel label > span,
.service-request-form label > span { color: var(--navy); font-size: .86rem; font-weight: 800; }
.provider-search-panel input,
.provider-search-panel select,
.service-request-form input,
.service-request-form select,
.service-request-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bac8d5;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
}
.service-request-form textarea { resize: vertical; }
.service-request-form small { color: var(--muted); }

.privacy-strip {
    padding: 15px 18px;
    border: 1px solid #b8dce9;
    border-radius: 13px;
    background: #eef8fc;
    color: #244c63;
}

.provider-results,
.request-list { display: grid; gap: 20px; }

.provider-result-card,
.service-request-card,
.discovery-setting-card,
.service-request-form {
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(16, 42, 67, .07);
}

.provider-card-heading,
.service-request-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
}

.provider-status {
    margin-bottom: 7px;
    color: #087960;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.response-chip {
    padding: 8px 11px;
    border-radius: 999px;
    background: #eef8fc;
    color: #0d5f87;
    font-size: .8rem;
    font-weight: 750;
    white-space: nowrap;
}

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

.provider-meta span {
    display: grid;
    gap: 4px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #f4f8fb;
    color: var(--muted);
}
.provider-meta strong { color: var(--navy); font-size: .78rem; text-transform: uppercase; }

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

.project-preview-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #f7fafc; }
.project-preview-grid img,
.project-placeholder { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-placeholder { display: grid; place-items: center; color: #fff; font-size: 1.5rem; font-weight: 850; background: linear-gradient(135deg, #1677a7, #102a43); }
.project-preview-grid figcaption { display: grid; gap: 3px; padding: 11px 12px; }
.project-preview-grid figcaption span { color: var(--muted); font-size: .78rem; }
.no-project-preview { grid-column: 1 / -1; padding: 22px; border: 1px dashed #b9c9d7; border-radius: 13px; color: var(--muted); text-align: center; }

.provider-card-actions,
.request-actions form { display: flex; flex-wrap: wrap; gap: 10px; }
.provider-card-actions { margin-top: 20px; }
.marketplace-empty { padding: 34px; border: 1px dashed #b9c9d7; border-radius: 18px; background: #f8fafc; text-align: center; }
.cloudlit-managed-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-color: #efcf69; background: linear-gradient(135deg, #fffdf6, #fff8dc); }

.discovery-setting-card { display: grid; gap: 20px; }
.discovery-status { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.discovery-status > span { width: 12px; height: 12px; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 5px #eef2f6; }
.discovery-status.is-on { color: #087960; }
.discovery-status.is-on > span { background: #10a37f; box-shadow: 0 0 0 5px #dff7ef; }
.privacy-check-list { display: grid; gap: 10px; margin: 0; padding-left: 22px; color: #425466; }
.marketplace-warning { padding: 12px 14px; border: 1px solid #efcf69; border-radius: 10px; background: #fff7dc; color: #805b15; }

.service-request-form { display: grid; gap: 18px; }
.privacy-confirm { grid-template-columns: auto 1fr !important; align-items: start; padding: 14px; border-radius: 12px; background: #eef8fc; }
.privacy-confirm input { width: 18px; min-height: 18px; margin-top: 2px; }
.request-message { max-width: 760px; padding: 12px 14px; border-radius: 10px; background: #f4f8fb; color: #425466; }
.request-actions { flex: 0 0 auto; }

@media (max-width: 760px) {
    .marketplace-hero,
    .provider-card-heading,
    .service-request-card,
    .cloudlit-managed-card { flex-direction: column; }
    .provider-search-panel { grid-template-columns: 1fr; }
    .project-preview-grid { grid-template-columns: 1fr 1fr; }
    .response-chip { white-space: normal; }
}

@media (max-width: 480px) {
    .provider-meta,
    .project-preview-grid { grid-template-columns: 1fr; }
    .provider-card-actions > *,
    .request-actions form > * { width: 100%; }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
    min-height: 68px;
    padding: 0 5vw;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.brand {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 750;
}

.brand::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 7px;
    border-radius: 50%;
    background: var(--gold);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: .92rem;
}

.user-menu form { margin: 0; }

.link-button {
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
    text-decoration: underline;
}

.page {
    width: min(1180px, 92vw);
    margin: 38px auto;
}

.welcome {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

h1, h2, p { margin-top: 0; }

h1 { margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.12rem; }

.eyebrow {
    color: var(--blue);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.muted { color: var(--muted); }

.stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card, .panel, .login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 42, 67, .06);
}

.stat-card { padding: 20px; }
.stat-card span { color: var(--muted); font-size: .84rem; display: block; }
.stat-card strong { display: block; margin-top: 10px; font-size: 2rem; color: var(--navy); }
.stat-card.warning { border-top: 4px solid var(--warning); }
.stat-card.danger { border-top: 4px solid var(--danger); }

.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.panel { padding: 22px; }

.visit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.visit-row div span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    margin-top: 3px;
}

.visit-row time { white-space: nowrap; font-weight: 650; }
.visit-row.overdue time { color: var(--danger); }
.empty { color: var(--muted); padding-top: 12px; }

.primary-button, .secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 9px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.primary-button {
    border: 0;
    background: var(--blue);
    color: white;
}

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

.secondary-button {
    border: 1px solid var(--blue);
    background: white;
    color: var(--blue);
}

.login-shell {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
}

.login-card {
    width: min(440px, 100%);
    padding: 34px;
}

.form-stack { display: grid; gap: 10px; margin-top: 25px; }

.form-stack input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bac8d5;
    border-radius: 8px;
    font: inherit;
    margin-bottom: 8px;
}

.form-stack input:focus {
    outline: 3px solid rgba(22, 119, 167, .16);
    border-color: var(--blue);
}

.error, .message {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.error { background: #fff0ee; color: #8f2d22; }
.message { background: #e8f5ee; color: #24613d; }

@media (max-width: 900px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .grid-two { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .page { margin-top: 24px; }
    .topbar { padding: 0 4vw; }
    .user-menu span { display: none; }
    .welcome { flex-direction: column; }
    .stats { grid-template-columns: 1fr 1fr; }
    .login-card { padding: 25px; }
}

/* Controlled ThingsBoard unlinking */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.summary-card {
    background: #f3f8fc;
    border: 1px solid #d7e5ef;
    border-radius: 12px;
    display: grid;
    gap: 7px;
    padding: 16px;
}

.summary-card span,
.detail-list dt {
    color: #587089;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.warning-card,
.request-banner {
    background: #fff7dc;
    border: 1px solid #efcf69;
    border-radius: 12px;
    margin: 18px 0;
    padding: 16px 18px;
}

.request-banner {
    background: #eef8fc;
    border-color: #b8dce9;
}

.warning-card p,
.request-banner p {
    margin-bottom: 0;
}

.stacked-form {
    display: grid;
    gap: 11px;
    margin-top: 20px;
}

.stacked-form input[type="text"],
.stacked-form textarea {
    border: 1px solid #aebfce;
    border-radius: 9px;
    box-sizing: border-box;
    font: inherit;
    padding: 11px 12px;
    width: 100%;
}

.check-row {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.check-row input {
    margin-top: 4px;
}

.detail-list {
    display: grid;
    gap: 0;
    margin: 18px 0;
}

.detail-list > div {
    border-bottom: 1px solid #dfe8ef;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(130px, 220px) 1fr;
    padding: 11px 0;
}

.detail-list dd {
    margin: 0;
}

.danger-button {
    border-color: #a52828 !important;
}

.primary-button.danger-button {
    background: #a52828;
}

.danger-text {
    color: #9e2424;
    font-weight: 700;
}

@media (max-width: 760px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .summary-grid,
    .detail-list > div {
        grid-template-columns: 1fr;
    }
}

/* Energy Design Workspace */
.design-section-heading,
.card-heading,
.proposal-facts,
.sticky-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.design-workspace-form .panel { margin-bottom: 22px; }
.form-field-wide { grid-column: 1 / -1; }
.load-board input[type="number"] { min-width: 88px; }
.load-board input[name$="-appliance_name"] { min-width: 180px; }
.live-load-summary {
    min-width: 210px;
    padding: 14px 18px;
    color: #fff;
    background: linear-gradient(135deg, #087ca7, #07536f);
    border-radius: 12px;
}
.live-load-summary strong,
.live-load-summary span { display: block; }
.live-load-summary span { font-size: .75rem; opacity: .86; margin-bottom: 6px; }
.safety-note,
.proposal-disclaimer {
    padding: 16px 18px;
    background: #fff8df;
    border: 1px solid #efd680;
    border-radius: 10px;
}
.sticky-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-top: 20px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid #cbdce6;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 26px rgba(8, 52, 75, .1);
}
.calculation-summary,
.design-option-grid,
.catalogue-grid {
    display: grid;
    gap: 16px;
}
.calculation-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 22px 0;
}
.calculation-summary article {
    padding: 18px;
    color: #fff;
    background: linear-gradient(145deg, #0c80ab, #07536f);
    border-radius: 12px;
}
.calculation-summary span,
.calculation-summary strong { display: block; }
.calculation-summary span { font-size: .78rem; opacity: .86; }
.calculation-summary strong { margin-top: 6px; font-size: 1.35rem; }
.design-option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 18px 0 26px; }
.design-option-card,
.catalogue-card {
    position: relative;
    padding: 22px;
    background: #fff;
    border: 1px solid #cddde6;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(7, 64, 91, .07);
}
.design-option-card.recommended { border: 2px solid #0782b2; transform: translateY(-6px); }
.recommendation-ribbon,
.verified-mark {
    display: inline-block;
    padding: 5px 9px;
    color: #075b38;
    background: #dcf5e9;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
}
.recommendation-ribbon { color: #07536f; background: #d9f2fb; }
.rating-list { margin: 18px 0; }
.rating-list div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e2ebf0; }
.rating-list dt { color: var(--muted); }
.rating-list dd { margin: 0; text-align: right; font-weight: 700; }
.selected-products { padding: 12px; background: #f2faf6; border-radius: 9px; }
.selected-products h4 { margin-top: 0; }
.product-matcher { margin-top: 14px; }
.product-matcher form { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #e4edf2; font-size: .8rem; }
.customer-option-response textarea { width: 100%; margin-bottom: 9px; }
.proposal-facts { justify-content: flex-start; flex-wrap: wrap; }
.proposal-facts span { min-width: 180px; padding: 12px; background: #f3f8fa; border-radius: 9px; }
.proposal-facts strong { display: block; }
.catalogue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media print {
    .topbar, .no-print, .global-support-panel { display: none !important; }
    .design-option-grid { grid-template-columns: repeat(3, 1fr); }
    .design-option-card { box-shadow: none; break-inside: avoid; }
    body { background: #fff; }
}

@media (max-width: 900px) {
    .design-option-grid, .catalogue-grid { grid-template-columns: 1fr; }
    .calculation-summary { grid-template-columns: repeat(2, 1fr); }
    .design-option-card.recommended { transform: none; }
}

@media (max-width: 620px) {
    .design-section-heading, .sticky-action-bar { align-items: stretch; flex-direction: column; }
    .calculation-summary { grid-template-columns: 1fr; }
    .sticky-action-bar button { width: 100%; }
}

/* Focused dashboard, management hub and IoT monitoring workspace. */
.dashboard-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 8px 0 24px;
}

.dashboard-hero h1,
.dashboard-hero p,
.manage-section-heading h2,
.manage-section-heading p {
    margin: 0;
}

.dashboard-hero h1 {
    margin: 4px 0 5px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.guided-focus {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    margin-bottom: 20px;
    color: #fff;
    background: linear-gradient(120deg, #0c5f8a, #108ab6 62%, #19a2b8);
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(13, 95, 135, .18);
}

.guided-focus .eyebrow,
.guided-focus p {
    color: #e9f9ff;
}

.guided-focus h2,
.guided-focus p {
    margin: 0;
}

.guided-focus h2 {
    margin: 3px 0 5px;
    font-size: 1.35rem;
}

.guided-focus-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #0b5478;
    background: #ffe17d;
    border-radius: 14px;
    font-size: 1.5rem;
    box-shadow: 0 7px 20px rgba(16, 42, 67, .2);
}

.guided-focus-action .primary-button {
    color: #102a43;
    background: #fff;
    border-color: #fff;
    white-space: nowrap;
}

.guided-focus-action .primary-button:hover {
    background: #edfaff;
}

.compact-guidance {
    grid-template-columns: auto 1fr;
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}

.summary-link-card {
    position: relative;
    display: grid;
    min-height: 126px;
    align-content: center;
    gap: 5px;
    padding: 19px 20px;
    overflow: hidden;
    color: var(--navy);
    background: #fff;
    border: 1px solid #d6e1e9;
    border-top: 5px solid var(--blue);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(16, 42, 67, .07);
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

a.summary-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(16, 42, 67, .13);
}

.summary-link-card::after {
    position: absolute;
    right: -20px;
    bottom: -35px;
    width: 100px;
    height: 100px;
    background: currentColor;
    border-radius: 50%;
    content: "";
    opacity: .045;
}

.summary-link-card strong {
    font-size: 2rem;
    line-height: 1;
}

.summary-link-card small,
.summary-link-card span {
    color: #526b80;
}

.summary-link-card.gold { border-top-color: #e9a923; }
.summary-link-card.red { border-top-color: #d84a3a; }
.summary-link-card.teal { border-top-color: #10a19a; }

.iot-command-panel {
    padding: 26px;
    margin: 0 0 22px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(49, 189, 230, .25), transparent 29%),
        linear-gradient(125deg, #102f4b, #0e496b 58%, #0b6681);
    border-radius: 17px;
    box-shadow: 0 18px 34px rgba(16, 42, 67, .16);
}

.iot-command-panel .eyebrow,
.iot-command-panel p {
    color: #d7f3ff;
}

.iot-command-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.iot-command-heading h2,
.iot-command-heading p {
    margin: 0;
}

.iot-command-heading h2 {
    margin: 4px 0 6px;
    color: #fff;
}

.iot-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    color: #063b59;
    background: #fff;
    border: 1px solid #87d9f4;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.iot-mini-grid,
.iot-benefit-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.iot-mini-grid > div,
.iot-benefit-row > span {
    padding: 14px 16px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 11px;
}

.iot-mini-grid span,
.iot-mini-grid strong {
    display: block;
}

.iot-mini-grid span { color: #d7f3ff; font-size: .82rem; }
.iot-mini-grid strong { margin-top: 4px; font-size: 1.45rem; }
.iot-benefit-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.iot-benefit-row > span { text-align: center; font-weight: 700; }

.dashboard-work-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
    gap: 18px;
}

.dashboard-work-grid .panel { margin: 0; }
.dashboard-next-panel { background: linear-gradient(145deg, #fff, #f1f9fd); }
.dashboard-next-panel p:not(.eyebrow) { color: var(--muted); }

.panel-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-heading-row h2,
.panel-heading-row p { margin: 0; }

.manage-heading { margin-bottom: 30px; }
.manage-section { margin: 0 0 32px; }
.manage-section-heading { margin-bottom: 14px; }
.manage-section-heading h2 { margin-top: 3px; }

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

.manage-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #d5e2eb;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(16, 42, 67, .06);
}

.manage-card-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    color: #075f89;
    background: #e2f5fc;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 800;
}

.manage-card h3,
.manage-card p { margin: 0; }
.manage-card p { margin-top: 4px; color: var(--muted); font-size: .86rem; }
.manage-card .primary-button,
.manage-card .secondary-button { padding: 9px 12px; white-space: nowrap; }

.portfolio-project-image {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 14px;
    grid-column: 1 / -1;
}

.registration-plan-card {
    cursor: pointer;
}

.registration-plan-card > input[type="radio"] {
    width: auto;
    margin: 0 0 10px;
}

.registration-plan-card:has(input:checked) {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(17, 124, 168, .16);
}

.registration-plan-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--blue);
    border-radius: 14px;
    background: var(--surface);
}

.registration-plan-summary h2,
.registration-plan-summary p,
.registration-plan-summary ul {
    margin-top: 0;
    margin-bottom: 6px;
}

@media (max-width: 760px) {
    .registration-plan-summary {
        grid-template-columns: 1fr;
    }

    .registration-plan-summary .secondary-button {
        width: 100%;
        text-align: center;
    }
}
.access-note { color: var(--muted); font-size: .83rem; }

.monitoring-site-panel { margin-bottom: 22px; }
.monitoring-site-list { display: grid; gap: 11px; margin-top: 18px; }
.monitoring-site-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(220px, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background: #f8fbfd;
    border: 1px solid #d9e5ec;
    border-radius: 12px;
}

.monitoring-site-identity { display: flex; align-items: center; gap: 11px; }
.monitoring-site-identity strong,
.monitoring-site-identity span,
.monitoring-site-meta span { display: block; }
.monitoring-site-identity span,
.monitoring-site-meta > span:last-child { color: var(--muted); font-size: .82rem; }
.monitoring-site-meta { display: flex; align-items: center; gap: 10px; }
.monitoring-dot { width: 11px; height: 11px; background: #9bacb8; border-radius: 50%; box-shadow: 0 0 0 5px #e8eef2; }
.monitoring-dot.online { background: #24a66a; box-shadow: 0 0 0 5px #dff5e9; }
.iot-service-strip { margin-bottom: 0; }

@media (max-width: 900px) {
    .manage-card-grid { grid-template-columns: 1fr; }
    .monitoring-site-row { grid-template-columns: 1fr auto; }
    .monitoring-site-meta { grid-column: 1; }
}

@media (max-width: 720px) {
    .dashboard-hero,
    .iot-command-heading { align-items: stretch; flex-direction: column; }
    .guided-focus { grid-template-columns: auto 1fr; }
    .guided-focus-action { grid-column: 1 / -1; }
    .guided-focus-action .primary-button,
    .iot-cta { width: 100%; }
    .dashboard-summary-grid,
    .dashboard-work-grid,
    .iot-mini-grid,
    .iot-benefit-row { grid-template-columns: 1fr; }
    .manage-card { grid-template-columns: auto minmax(0, 1fr); }
    .manage-card .primary-button,
    .manage-card .secondary-button,
    .manage-card .access-note { grid-column: 1 / -1; width: 100%; text-align: center; }
    .monitoring-site-row { grid-template-columns: 1fr; }
    .monitoring-site-row .primary-button,
    .monitoring-site-row .access-note { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
    .guided-focus,
    .iot-command-panel { padding: 19px; }
    .guided-focus { grid-template-columns: 1fr; }
    .guided-focus-mark { width: 42px; height: 42px; }
}

.form-page, .legal-page {
    width: min(900px, 100%);
    margin: 0 auto;
}

.form-heading { margin-bottom: 25px; }

.wide-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(16, 42, 67, .06);
}

.wide-form fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 28px;
}

.wide-form legend {
    width: 100%;
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    color: var(--navy);
    font-size: 1.08rem;
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }

.field input, .field select, .field textarea {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #bac8d5;
    border-radius: 8px;
    font: inherit;
}

.field small, .consent-note {
    color: var(--muted);
    font-size: .82rem;
}

.field-error {
    display: block;
    color: var(--danger);
    font-size: .82rem;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 13px 0;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.signin-note { margin: 18px 0 0; }
.legal-page { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 32px; }
.legal-page h2 { margin-top: 28px; }
.legal-copy p{line-height:1.72}
.inverter-result-card,.inverter-action-summary,.system-care-warning{margin:16px 0;padding:16px 18px;border:1px solid #d7e2e8;border-radius:14px;background:#f6f9fa}.inverter-result-card.good{border-color:#bde4d4;background:#effaf5}.inverter-result-card.attention{border-color:#efd792;background:#fff9e8}.inverter-result-card.danger,.inverter-action-summary.danger{border-color:#edc3bc;background:#fff5f3}.inverter-result-card p,.inverter-action-summary p,.system-care-warning p{margin:5px 0 0}.inverter-confirm-form{display:grid;gap:14px}.inverter-safety-check{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:10px;padding:14px;border:1px solid #d8e4e9;border-radius:12px}.inverter-safety-check input{width:20px;min-height:20px;margin-top:2px}.system-care-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.system-care-grid article{padding:16px;border:1px solid #dce6eb;border-radius:14px;background:#f8fafb}.system-care-grid strong{color:var(--navy)}.system-care-grid p{margin:6px 0 0;color:var(--muted)}.system-care-warning{border-color:#efd792;background:#fff9e8}.system-care-warning .primary-button{display:inline-block;margin-top:12px}
.self-check-summary{display:grid;grid-template-columns:1fr auto;gap:4px 14px;margin:0 0 16px;padding:13px 15px;border:1px solid #dbe5ea;border-radius:12px;background:#f7fafb}.self-check-summary.good{border-color:#bde4d4;background:#effaf5}.self-check-summary.attention{border-color:#efd792;background:#fff9e8}.self-check-summary.danger{border-color:#edc3bc;background:#fff5f3}.self-check-summary span,.self-check-summary small{color:var(--muted)}.self-check-summary a{grid-column:2;grid-row:1/3;align-self:center;font-weight:800}.self-maintenance-page{display:grid;gap:18px;max-width:920px;margin:0 auto}.self-maintenance-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.self-maintenance-heading h1{margin:5px 0;color:var(--navy)}.self-maintenance-heading p:last-child{margin:0;color:var(--muted)}.self-maintenance-stop,.self-check-outcome{padding:18px 20px;border:1px solid #efd792;border-radius:15px;background:#fff9e8}.self-maintenance-stop p,.self-check-outcome p{margin:6px 0 0}.self-maintenance-form{display:grid;gap:14px}.self-check-question{margin:0;padding:19px;border:1px solid #dbe5ea;border-radius:15px;background:#fff}.self-check-question legend{padding:0 7px;color:var(--navy);font-weight:900}.self-check-question>p{margin:0 0 13px;color:var(--muted)}.self-check-options ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0;padding:0;list-style:none}.self-check-options label{display:flex;gap:8px;height:100%;padding:12px;border:1px solid #dce6eb;border-radius:10px;background:#f8fafb;font-weight:750}.self-check-options input{width:18px;min-height:18px}.self-check-notes{padding:19px;border:1px solid #dbe5ea;border-radius:15px;background:#fff}.self-check-outcome.good{border-color:#bde4d4;background:#effaf5}.self-check-outcome.danger{border-color:#edc3bc;background:#fff5f3}.self-check-results{display:grid;gap:0}.self-check-results>div{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-top:1px solid #e4ebef}.self-check-results span{color:var(--muted)}.self-check-result-notes{display:block!important}.self-check-result-notes p{margin:6px 0 0}

@media (max-width: 650px) {
    .form-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .wide-form, .legal-page { padding: 22px; }
}
@media(max-width:720px){.self-maintenance-heading{flex-direction:column}.self-check-options ul{grid-template-columns:1fr}.self-check-summary{grid-template-columns:1fr}.self-check-summary a{grid-column:1;grid-row:auto}.self-check-results>div{align-items:flex-start;flex-direction:column;gap:5px}}

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
}

.table-wrap { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
}

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

.data-table th {
    color: var(--muted);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e8eef4;
    color: var(--navy);
    font-size: .78rem;
    font-weight: 750;
}

.status-overdue { background: #fdecea; color: var(--danger); }
.status-due-soon { background: #fff4d6; color: #8a5a00; }
.status-completed { background: #e8f5ee; color: #24613d; }

.table-link {
    color: var(--blue);
    font-weight: 750;
    text-decoration: none;
}

.table-link:hover { text-decoration: underline; }

.centered-heading { text-align: center; }

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.choice-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 300px;
    padding: 30px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 42, 67, .06);
}

.choice-card p {
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

.choice-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #e8f3f8;
    color: var(--blue);
    font-size: 1.6rem;
}

@media (max-width: 700px) {
    .choice-grid { grid-template-columns: 1fr; }
}

.user-menu a { color: white; }
.form-card { max-width: 760px; margin: 32px auto; padding: 28px; background: white; border: 1px solid var(--border); border-radius: 14px; }
.form-card input, .form-card select, .form-card textarea { width: 100%; box-sizing: border-box; padding: 10px; }
.inline-form { display: inline; margin-left: 10px; }
.danger-link { color: var(--danger); }
.attachment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.attachment-grid img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 10px; }

.iot-panel {
    margin: 26px 0;
    padding: 24px;
    color: white;
    background: linear-gradient(135deg, #0d2942, #123c5e);
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(13, 41, 66, .16);
}

.iot-panel h2 {
    margin: 3px 0 8px;
    color: white;
}

.iot-panel .muted {
    color: #d7e6f2;
}

.iot-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.iot-site-list {
    display: grid;
    gap: 12px;
}

.iot-site-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, auto);
    align-items: center;
    gap: 16px;
    padding: 16px;
    color: #0d2942;
    background: white;
    border-radius: 12px;
}

.iot-site-row span {
    display: block;
    color: #617287;
}

.iot-badge {
    padding: 7px 11px;
    color: #5b6470 !important;
    background: #edf1f5;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.iot-badge.requested {
    color: #895b00 !important;
    background: #fff2c7;
}

.iot-badge.active {
    color: #067045 !important;
    background: #dff6eb;
}

.iot-note {
    font-size: .9rem;
}

@media (max-width: 760px) {
    .iot-panel-heading {
        display: block;
    }

    .iot-panel-heading .secondary-button {
        display: inline-block;
        margin-top: 12px;
    }

    .iot-site-row {
        grid-template-columns: 1fr;
    }
}

.iot-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.iot-dashboard-summary .stat-card {
    min-height: 110px;
}

.iot-dashboard-summary .stat-card span {
    display: block;
    margin-bottom: 14px;
    color: #617287;
    font-size: .85rem;
}

.iot-data-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.iot-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #dce5ed;
}

.iot-data-row:last-child {
    border-bottom: 0;
}

.iot-data-row span {
    color: #617287;
    overflow-wrap: anywhere;
}

.iot-data-row strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.iot-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.iot-insight-grid > div {
    padding: 16px;
    background: #f4f8fb;
    border-radius: 12px;
}

.iot-insight-grid span {
    display: block;
    margin-bottom: 8px;
    color: #617287;
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.iot-insight-grid strong {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .iot-dashboard-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .iot-insight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .iot-dashboard-summary,
    .iot-insight-grid {
        grid-template-columns: 1fr;
    }

    .iot-data-row {
        display: block;
    }

    .iot-data-row strong {
        display: block;
        margin-top: 5px;
        text-align: left;
    }
}

.iot-device-section {
    margin-top: 18px;
    padding: 16px;
    background: #f7fafc;
    border: 1px solid #dce5ed;
    border-radius: 12px;
}

.iot-device-section h3 {
    margin: 0 0 10px;
}

/* Ensure JavaScript-controlled conditional form fields remain hidden. */
.field[hidden],
.consent-note[hidden] {
    display: none !important;
}

.profile-page {
    max-width: 1120px;
    margin: 0 auto;
}

.profile-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.profile-summary-panel {
    margin-bottom: 24px;
}

.profile-summary-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-summary-heading h2,
.profile-form-card h2 {
    margin-top: 0;
    margin-bottom: 6px;
}

.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.profile-summary-item {
    padding: 16px;
    background: #f4f8fb;
    border: 1px solid #dce6ee;
    border-radius: 11px;
}

.profile-summary-item span,
.profile-summary-item small {
    display: block;
    color: var(--muted);
}

.profile-summary-item span {
    margin-bottom: 7px;
    font-size: .82rem;
}

.profile-summary-item small {
    margin-top: 5px;
}

.profile-status {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

.profile-status.active {
    color: #067045;
    background: #dff6eb;
}

.profile-status.inactive {
    color: #9b2c2c;
    background: #fde8e8;
}

.profile-form-card {
    max-width: none;
}

@media (max-width: 800px) {
    .profile-heading,
    .profile-summary-heading {
        display: block;
    }

    .profile-heading .secondary-button {
        display: inline-block;
        margin-top: 14px;
    }

    .profile-summary-grid {
        grid-template-columns: 1fr;
    }

    .profile-status {
        display: inline-block;
        margin-top: 12px;
    }
}

/* Profile notification and capability preferences */
.profile-form-card .profile-preference-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin: 0;
    padding: 14px 16px;
    background: #f4f8fb;
    border: 1px solid #dce6ee;
    border-radius: 10px;
}

.profile-form-card .profile-preference-field input[type="checkbox"] {
    flex: 0 0 20px;
    width: 20px !important;
    min-width: 20px;
    height: 20px !important;
    min-height: 20px;
    margin: 0;
    padding: 0;
    accent-color: #147cab;
}

.profile-form-card .profile-preference-field label {
    flex: 1;
    margin: 0;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}

.profile-form-card .profile-preference-field .help-text,
.profile-form-card .profile-preference-field .field-error {
    flex-basis: 100%;
}

@media (max-width: 650px) {
    .profile-form-card .profile-preference-field {
        grid-column: 1;
    }
}

.overdue-text {
    color: var(--danger);
    font-weight: 700;
}

/* Prevent short form controls stretching beside text areas. */
.form-grid > .field {
    align-content: start;
}

.form-grid > .field > input:not([type="checkbox"]),
.form-grid > .field > select {
    align-self: start;
    height: 44px;
    min-height: 44px;
}

/* Compact quotation-sharing checkbox */
.iot-management-form .checkbox-field {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-areas:
        "check label"
        ". help"
        ". error";
    align-items: center;
    column-gap: 10px;
    row-gap: 5px;
    margin: 0;
}

.iot-management-form .checkbox-field > label {
    grid-area: label;
    margin: 0;
    cursor: pointer;
}

.iot-management-form .checkbox-field > input[type="checkbox"] {
    grid-area: check;
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #147cab;
    cursor: pointer;
}

.iot-management-form .checkbox-field > .help-text {
    grid-area: help;
}

.iot-management-form .checkbox-field > .field-error {
    grid-area: error;
}

/*
 * Permanent portal-wide checkbox correction.
 * This must remain after the general .field input rule.
 */
.form-grid .field:has(> input[type="checkbox"]) {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    gap: 8px 10px;
    min-height: 44px;
    margin: 0;
}

.form-grid .field > input[type="checkbox"] {
    order: 1;
    flex: 0 0 18px !important;
    display: inline-block !important;
    appearance: auto !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: initial !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    accent-color: #147cab;
    cursor: pointer;
}

.form-grid .field:has(> input[type="checkbox"]) > label {
    order: 2;
    flex: 1;
    margin: 0;
    line-height: 1.35;
    cursor: pointer;
}

.form-grid .field:has(> input[type="checkbox"]) > .help-text,
.form-grid .field:has(> input[type="checkbox"]) > small {
    order: 3;
    flex: 0 0 100%;
    padding-left: 28px;
}

.form-grid .field:has(> input[type="checkbox"]) > .field-error {
    order: 4;
    flex: 0 0 100%;
    padding-left: 28px;
}

.iot-heading-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 760px) {
    .iot-heading-actions {
        justify-content: flex-start;
        margin-top: 12px;
    }
}

.feature-list {
    display: grid;
    gap: 10px;
    padding-left: 22px;
    margin: 18px 0;
}

.feature-list li {
    line-height: 1.5;
}

.public-login-shell {
    width: min(1500px, calc(100% - 48px));
    min-height: calc(100vh - 130px);
    margin: 34px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(370px, .75fr);
    align-items: center;
    gap: 30px;
}

.public-service-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 66px;
    color: white;
    background:
        radial-gradient(
            circle at top right,
            rgba(30, 135, 193, .28),
            transparent 42%
        ),
        linear-gradient(135deg, #0b2945, #123f64);
    border-radius: 20px;
    box-shadow: 0 20px 48px rgba(13, 41, 66, .2);
}

.public-service-hero::after {
    content: "";
    position: absolute;
    right: -5%;
    bottom: -80px;
    width: 65%;
    height: 190px;
    opacity: .24;
    background:
        radial-gradient(
            ellipse at center,
            transparent 25%,
            #1b9ada 26%,
            transparent 27%
        );
    background-size: 22px 12px;
    transform: rotate(-6deg);
    pointer-events: none;
}

.public-service-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin: 0 0 22px;
    color: white;
    font-size: clamp(2.5rem, 4vw, 4.6rem);
    line-height: 1.06;
}

.public-hero-summary {
    position: relative;
    z-index: 1;
    max-width: 780px;
    color: #d8e8f4;
    font-size: 1.08rem;
    line-height: 1.7;
}

.public-benefit-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 30px 0 34px;
}

.public-benefit-grid article {
    min-height: 160px;
    padding: 22px 14px;
    text-align: center;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 13px;
}

.public-benefit-grid h2 {
    margin: 14px 0 0;
    color: white;
    font-size: 1rem;
    line-height: 1.35;
}

.public-benefit-icon {
    width: 52px;
    height: 52px;
    margin: auto;
    color: #8dcaff;
}

.public-benefit-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-create-button {
    position: relative;
    z-index: 1;
    display: inline-block;
    min-width: 290px;
    padding: 15px 24px;
    color: white;
    background: #087ff5;
    border-radius: 9px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
}

.public-create-button:hover {
    background: #006bd6;
}

.public-login-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 44px;
}

.public-login-card h2 {
    margin: 5px 0 24px;
    font-size: 2.4rem;
}

@media (max-width: 1150px) {
    .public-login-shell {
        grid-template-columns: 1fr;
        width: min(820px, calc(100% - 32px));
    }

    .public-login-card {
        grid-row: 1;
    }
}

@media (max-width: 720px) {
    .public-login-shell {
        margin: 20px auto;
        gap: 20px;
    }

    .public-service-hero {
        padding: 30px 22px;
    }

    .public-benefit-grid {
        grid-template-columns: 1fr 1fr;
    }

    .public-create-button {
        width: 100%;
        min-width: 0;
    }

    .public-login-card {
        padding: 28px 22px;
    }
}

@media (max-width: 430px) {
    .public-benefit-grid {
        grid-template-columns: 1fr;
    }
}

/* Refine the public login-page visual balance. */
.public-service-hero h1 {
    max-width: 900px;
    font-size: clamp(2.4rem, 3.25vw, 3.8rem);
    line-height: 1.08;
}

@media (min-width: 1151px) {
    .public-login-shell {
        grid-template-columns: minmax(680px, 1.5fr) minmax(375px, .7fr);
    }
}

.security-page-shell {
    width: min(1060px, calc(100% - 32px));
    min-height: calc(100vh - 150px);
    margin: 42px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    align-items: center;
    gap: 24px;
}

.security-form-card,
.security-information {
    padding: 38px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(13, 41, 66, .08);
}

.security-form-card h1 {
    margin: 5px 0 10px;
}

.security-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    padding: 10px;
    color: #087daf;
    background: #e8f5fb;
    border-radius: 12px;
}

.security-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.security-form {
    display: grid;
    gap: 18px;
    margin-top: 25px;
}

.security-form .primary-button {
    justify-self: start;
}

.security-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.security-information {
    color: white;
    background: linear-gradient(135deg, #0d2942, #123f61);
    border: 0;
}

.security-information h2 {
    color: white;
}

.security-information ul {
    display: grid;
    gap: 12px;
    margin: 22px 0;
    padding-left: 22px;
}

.security-information p,
.security-information li {
    color: #d8e8f4;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .security-page-shell {
        grid-template-columns: 1fr;
        margin: 22px auto;
    }

    .security-form-card,
    .security-information {
        padding: 26px 22px;
    }
}

.public-benefit-grid .public-benefit-card {
    display: block;
    min-height: 160px;
    padding: 22px 14px;
    color: white;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 13px;
    text-align: center;
    text-decoration: none;
    transition:
        transform .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.public-benefit-grid .public-benefit-card:hover,
.public-benefit-grid .public-benefit-card:focus-visible {
    background: rgba(255, 255, 255, .14);
    border-color: #8dcaff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
    transform: translateY(-4px);
    outline: none;
}

.public-benefit-grid .public-benefit-card:focus-visible {
    box-shadow:
        0 0 0 3px #f3b63f,
        0 10px 24px rgba(0, 0, 0, .16);
}

.benefit-card-action {
    display: block;
    margin-top: 10px;
    color: #8dcaff;
    font-size: .78rem;
    font-weight: 800;
}

.public-benefit-card:hover .benefit-card-action {
    color: white;
}

.public-iot-hero {
    margin-bottom: 28px;
    padding: 58px;
    color: white;
    background:
        radial-gradient(
            circle at top right,
            rgba(32, 157, 213, .34),
            transparent 40%
        ),
        linear-gradient(135deg, #0d2942, #123f61);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(13, 41, 66, .16);
}

.public-iot-hero h1 {
    max-width: 920px;
    margin: 8px 0 18px;
    color: white;
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    line-height: 1.06;
}

.public-iot-hero > div > p:not(.eyebrow) {
    max-width: 850px;
    color: #d8e8f4;
    font-size: 1.08rem;
    line-height: 1.7;
}

.public-solutions-section {
    margin: 38px 0;
}

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

.public-solution-grid,
.public-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.public-solution-grid .panel {
    margin: 0;
}

.public-process-grid article {
    padding: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.public-process-grid strong {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: white;
    background: #087daf;
    border-radius: 50%;
}

.public-iot-callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-top: 42px;
    padding: 34px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.public-iot-callout p {
    max-width: 780px;
}

.public-page-footer {
    margin-top: 28px;
}

@media (max-width: 900px) {
    .public-solution-grid,
    .public-process-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .public-iot-hero {
        padding: 32px 22px;
    }

    .public-solution-grid,
    .public-process-grid {
        grid-template-columns: 1fr;
    }

    .public-iot-callout {
        display: block;
        padding: 24px 20px;
    }

    .public-iot-callout .primary-button {
        display: inline-block;
        margin-top: 14px;
    }
}

.invitation-link-panel {
    margin-bottom: 22px;
}

.guidance-strip {
    display: grid;
    gap: 4px;
    margin-top: 20px;
    padding: 15px 17px;
    color: var(--navy);
    background: #edfaff;
    border-left: 4px solid var(--gold);
    border-radius: 9px;
}

.copy-link-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.copy-link-row input {
    width: 100%;
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-actions .table-link {
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.danger-link {
    color: var(--danger);
}

.invitation-accept-shell {
    width: min(850px, 100%);
    margin: 30px auto;
}

@media (max-width: 620px) {
    .copy-link-row {
        grid-template-columns: 1fr;
    }
}

.support-access-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 12px max(24px, calc((100% - 1360px) / 2));
    color: #3f2600;
    background: #ffd66b;
    border-bottom: 2px solid #b87900;
}

.support-access-banner strong,
.support-access-banner span {
    display: block;
}

.support-access-banner span {
    margin-top: 3px;
    font-size: .9rem;
}

.support-access-banner button {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid #6e4300;
    border-radius: 8px;
    color: white;
    background: #6e4300;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.support-search {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.support-search input {
    width: min(520px, 100%);
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #bac8d5;
    border-radius: 8px;
    font: inherit;
}

@media (max-width: 700px) {
    .support-access-banner,
    .support-search {
        align-items: stretch;
        flex-direction: column;
    }

    .support-access-banner {
        padding: 12px 18px;
    }
}

.guided-dashboard {
    margin-bottom: 28px;
    padding: 25px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(16, 42, 67, .08);
}

/* Public trust, contact and delegated CloudLit settings. */
.public-topbar-actions,
.global-support-heading,
.global-support-actions,
.site-footer-inner,
.footer-links,
.settings-page-heading,
.settings-tabs,
.settings-form-actions,
.settings-preview-header,
.settings-preview-links,
.settings-history-heading,
.company-trust-points,
.company-security-panel,
.company-security-links,
.company-status-card,
.company-social-links,
.login-trust-line {
    display: flex;
    align-items: center;
}

.public-topbar-actions {
    gap: 16px;
}

.topbar-help-button {
    padding: 8px 13px;
    color: white;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.topbar-help-button:hover,
.topbar-help-button:focus-visible {
    background: rgba(255, 255, 255, .18);
}

.portal-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #dff7e8;
    font-size: .84rem;
    text-decoration: none;
}

.portal-status > span,
.status-live-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    background: #3fda82;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(63, 218, 130, .16);
}

.global-support-panel {
    width: min(1080px, 92vw);
    margin: 18px auto 0;
    padding: 25px;
    background: white;
    border: 1px solid #bcd8e8;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(13, 41, 66, .15);
}

.global-support-panel[hidden] {
    display: none;
}

.global-support-heading {
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.global-support-heading h2,
.global-support-heading p {
    margin-bottom: 5px;
}

.support-close-button {
    padding: 8px 12px;
    color: var(--blue-dark);
    background: #edf7fb;
    border: 1px solid #bcd8e8;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.global-support-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.global-support-grid > div {
    padding: 15px;
    background: #f5f9fc;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.global-support-grid strong,
.global-support-grid span,
.global-support-grid a {
    display: block;
}

.global-support-grid span,
.global-support-grid a {
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.global-support-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.public-maintenance-banner {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 11px 18px;
    color: #513200;
    background: #ffe8a3;
    border-bottom: 1px solid #e0b64e;
    text-align: center;
}

.site-footer {
    margin-top: 55px;
    padding: 26px 5vw;
    color: #d7e5ef;
    background: #0b2236;
    border-top: 4px solid var(--gold);
}

.site-footer-inner {
    width: min(1180px, 100%);
    margin: auto;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.footer-links {
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer-links a {
    color: white;
    text-underline-offset: 3px;
}

.company-proof {
    max-width: 440px;
    margin: 0;
    color: #b7cad8;
    font-size: .84rem;
    line-height: 1.5;
    text-align: right;
}

.login-trust-line {
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.login-trust-icon {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    color: #147548;
    background: #e4f7ec;
    border-radius: 50%;
    font-weight: 900;
}

.login-trust-line p {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
}

.login-trust-line strong {
    display: block;
    color: var(--text);
}

.company-info-hero {
    padding: 45px;
    color: white;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(42, 186, 218, .34),
            transparent 34%
        ),
        linear-gradient(135deg, #0c2942, #075e86);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(13, 41, 66, .17);
}

.company-info-hero h1 {
    margin: 6px 0 14px;
    color: white;
}

.company-info-hero > p:not(.eyebrow) {
    max-width: 820px;
    color: #e1f1fa;
    font-size: 1.06rem;
    line-height: 1.7;
}

.company-trust-points {
    flex-wrap: wrap;
    gap: 11px 22px;
    margin-top: 24px;
    color: #cff7e0;
    font-weight: 700;
}

.company-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.company-info-card,
.company-security-panel,
.company-status-card {
    padding: 26px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 9px 26px rgba(16, 42, 67, .06);
}

.company-info-card h2,
.company-security-panel h2 {
    margin-bottom: 18px;
}

.company-detail-list {
    margin: 0;
}

.company-detail-list > div {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid var(--border);
}

.company-detail-list dt {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
}

.company-detail-list dd {
    margin: 0;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.preserve-lines {
    white-space: pre-line;
}

.company-security-panel {
    justify-content: space-between;
    gap: 28px;
}

.company-security-panel > div:first-child {
    max-width: 700px;
}

.company-security-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.company-status-card {
    gap: 16px;
    margin-top: 20px;
}

.company-status-card p {
    margin: 4px 0 0;
    color: var(--muted);
}

.company-social-links {
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 20px;
    padding: 20px 3px 0;
    border-top: 1px solid var(--border);
}

.settings-page-heading {
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 20px;
}

.settings-page-heading h1,
.settings-page-heading p {
    margin-bottom: 6px;
}

.settings-tabs {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.settings-tab {
    min-height: 42px;
    padding: 0 16px;
    color: var(--blue-dark);
    background: white;
    border: 1px solid #a9ccdc;
    border-radius: 9px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.settings-tab.active {
    color: white;
    background: var(--blue);
    border-color: var(--blue);
}

.settings-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr);
    gap: 20px;
    align-items: start;
}

.settings-editor-card,
.settings-public-preview,
.recent-settings-history,
.settings-history-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 15px;
    box-shadow: 0 9px 26px rgba(16, 42, 67, .06);
}

.settings-editor-card,
.settings-public-preview {
    padding: 24px;
}

.settings-tab-panel {
    display: none;
}

.settings-tab-panel.active {
    display: block;
}

.settings-section-heading {
    margin-bottom: 22px;
}

.settings-section-heading h2,
.settings-section-heading p {
    margin-bottom: 6px;
}

.settings-section-heading p {
    color: var(--muted);
}

.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.settings-form-grid .field-wide {
    grid-column: 1 / -1;
}

.settings-form .field label,
.settings-preview-login label,
.delegation-list > label {
    display: block;
    margin-bottom: 7px;
    font-size: .88rem;
    font-weight: 750;
}

.settings-form input:not([type="checkbox"]),
.settings-form select,
.settings-form textarea,
.settings-preview-login input {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    border: 1px solid #b8c8d5;
    border-radius: 8px;
    font: inherit;
}

.settings-form textarea {
    resize: vertical;
}

.settings-form input:focus,
.settings-form select:focus,
.settings-form textarea:focus {
    outline: 3px solid rgba(22, 119, 167, .16);
    border-color: var(--blue);
}

.settings-form .field small,
.delegation-list small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.45;
}

.settings-checkbox-field {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 8px;
    padding: 13px;
    background: #f4f9fc;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.settings-checkbox-field input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.settings-checkbox-field label {
    margin: 0 !important;
}

.settings-checkbox-field small,
.settings-checkbox-field .field-error {
    grid-column: 2;
}

.settings-form-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.restricted-settings-note {
    margin-top: 20px;
    padding: 14px;
    color: #5a3900;
    background: #fff7dd;
    border: 1px solid #efd482;
    border-radius: 9px;
}

.restricted-settings-note strong {
    display: block;
    margin-bottom: 3px;
}

.permission-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 18px;
    margin-bottom: 22px;
    border-top: 1px solid var(--border);
}

.permission-summary > div,
.permission-summary > .permission-badge {
    margin: 0;
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.permission-summary strong,
.permission-summary span {
    display: block;
}

.permission-summary div span {
    margin-top: 3px;
    color: var(--muted);
    font-size: .86rem;
}

.permission-badge {
    display: inline-flex;
    align-items: center;
    align-self: center;
    padding: 5px 9px;
    color: #27516d;
    background: #e9f3f8;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
}

.permission-badge.allowed {
    color: #17603d;
    background: #e3f5eb;
}

.permission-badge.restricted {
    color: #754800;
    background: #fff1c8;
}

.delegation-list {
    padding: 18px;
    background: #f7fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.delegation-list ul {
    display: grid;
    gap: 9px;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

.delegation-list li label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.delegation-list input {
    width: 18px;
    height: 18px;
}

.settings-public-preview {
    position: sticky;
    top: 18px;
}

.settings-preview-header {
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.settings-preview-header strong::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 7px;
    background: var(--gold);
    border-radius: 50%;
}

.settings-preview-header span {
    color: var(--blue);
    font-size: .82rem;
    font-weight: 750;
}

.settings-preview-login {
    display: grid;
    gap: 8px;
    padding: 24px 0;
}

.settings-preview-login h2 {
    margin-bottom: 10px;
    font-size: 1.7rem;
}

.settings-preview-login input {
    margin-bottom: 7px;
    background: #f4f6f8;
}

.settings-preview-login button {
    margin-top: 8px;
    opacity: 1;
}

.settings-preview-contact {
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.settings-preview-contact > strong,
.settings-preview-contact > span {
    display: block;
}

.settings-preview-contact > span {
    margin-top: 7px;
    color: var(--muted);
    font-size: .83rem;
    overflow-wrap: anywhere;
}

.settings-preview-links {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--blue);
    font-size: .78rem;
    font-weight: 750;
}

.recent-settings-history {
    display: grid;
    grid-template-columns: minmax(220px, .5fr) minmax(0, 1.5fr);
    gap: 25px;
    margin-top: 22px;
    padding: 24px;
}

.recent-settings-history h2,
.recent-settings-history p {
    margin-bottom: 6px;
}

.recent-settings-history > div:last-child p {
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.settings-history-list {
    display: grid;
    gap: 16px;
}

.settings-history-card {
    padding: 22px;
}

.settings-history-heading {
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.settings-history-heading h2 {
    margin: 8px 0 0;
    font-size: 1rem;
}

.settings-history-heading time {
    color: var(--muted);
    font-size: .82rem;
    white-space: nowrap;
}

.settings-history-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
}

.settings-history-values > div {
    min-width: 0;
    padding: 14px;
    background: #f6f9fb;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.settings-history-values pre {
    margin: 8px 0 0;
    color: #34495a;
    font-family: inherit;
    font-size: .82rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 1050px) {
    .user-menu {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 9px 13px;
        padding: 10px 0;
    }

    .settings-workspace {
        grid-template-columns: 1fr;
    }

    .settings-public-preview {
        position: static;
    }

    .global-support-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .topbar {
        align-items: flex-start;
        gap: 14px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .public-topbar-actions {
        align-items: flex-end;
        flex-direction: column-reverse;
        gap: 7px;
    }

    .portal-status {
        font-size: .74rem;
    }

    .global-support-heading,
    .site-footer-inner,
    .settings-page-heading,
    .company-security-panel,
    .settings-history-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .global-support-grid,
    .company-info-grid,
    .settings-form-grid,
    .recent-settings-history,
    .settings-history-values {
        grid-template-columns: 1fr;
    }

    .company-proof {
        max-width: none;
        text-align: left;
    }

    .company-info-hero {
        padding: 30px 22px;
    }

    .company-security-links {
        justify-content: flex-start;
    }

    .company-detail-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .settings-form-grid .field-wide {
        grid-column: auto;
    }

    .settings-form-actions > * {
        flex: 1 1 auto;
    }

    .settings-history-heading time {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .global-support-grid {
        grid-template-columns: 1fr;
    }

    .global-support-actions > *,
    .company-security-links > * {
        width: 100%;
    }

    .permission-summary {
        grid-template-columns: 1fr;
    }

    .permission-summary > .permission-badge {
        justify-self: start;
        margin-bottom: 10px;
        padding: 5px 9px;
        border-bottom: 0;
    }
}

.guided-heading {
    margin-bottom: 20px;
}

.guided-heading h2 {
    margin-bottom: 6px;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.recommended-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
    padding: 20px;
    background: #edf9f3;
    border: 1px solid #b8e3cd;
    border-left: 5px solid #168356;
    border-radius: 12px;
}

.recommended-action.attention {
    background: #fff9e7;
    border-color: #f0d98d;
    border-left-color: #c78300;
}

.recommended-action.urgent {
    background: #fff0ee;
    border-color: #efb6af;
    border-left-color: #c93a2f;
}

.recommended-action h3 {
    margin: 4px 0 6px;
}

.recommended-action p {
    margin-bottom: 0;
    color: var(--muted);
}

.recommendation-label {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.guided-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.guided-action-card {
    min-height: 125px;
    padding: 18px;
    color: var(--navy);
    background: #f7fafc;
    border: 1px solid #d4e0e9;
    border-radius: 13px;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.guided-action-card:hover,
.guided-action-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(16, 42, 67, .1);
}

.guided-action-card > span:first-child {
    display: inline-grid;
    width: 34px;
    height: 34px;
    margin-bottom: 13px;
    place-items: center;
    color: var(--blue);
    background: #e4f2f9;
    border-radius: 9px;
    font-size: .73rem;
    font-weight: 800;
}

.guided-action-card strong {
    display: block;
    margin-bottom: 7px;
}

.guided-action-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}

@media (max-width: 850px) {
    .guided-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recommended-action {
        align-items: stretch;
        flex-direction: column;
    }

    .recommended-action .primary-button {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .guided-dashboard {
        padding: 18px;
    }

    .guided-action-grid {
        grid-template-columns: 1fr;
    }
}

/* Guided service-request triage */
.guided-request-page {
    width: min(1060px, 100%);
}

.guided-request-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.guided-time-badge {
    flex: 0 0 auto;
    padding: 9px 13px;
    color: #126a48;
    background: #e7f7ef;
    border: 1px solid #bee6d2;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
}

.guided-request-form {
    padding: 0;
    overflow: hidden;
}

.guided-request-form [hidden] {
    display: none !important;
}

.guided-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 18px 32px;
    color: var(--muted);
    background: #f7fafc;
    border-bottom: 1px solid var(--border);
    font-size: .78rem;
    font-weight: 700;
}

.guided-progress span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guided-progress b,
.guided-step legend span {
    display: inline-grid;
    width: 27px;
    height: 27px;
    place-items: center;
    color: white;
    background: var(--blue);
    border-radius: 50%;
    font-size: .76rem;
}

.guided-step {
    padding: 30px 32px !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--border) !important;
}

.guided-step legend {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin-bottom: 22px;
    border: 0;
    font-size: 1.14rem;
}

.request-type-field > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.request-type-field > div > div,
.urgency-field > div > div {
    min-width: 0;
}

.request-type-field label,
.urgency-field > div label {
    display: flex;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    gap: 10px;
    padding: 15px;
    color: var(--navy);
    background: #f7fafc;
    border: 1px solid #cad7e2;
    border-radius: 11px;
    cursor: pointer;
    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.request-type-field label:hover,
.urgency-field > div label:hover {
    border-color: var(--blue);
}

.request-type-field label:has(input:checked),
.urgency-field > div label:has(input:checked) {
    color: #075f91;
    background: #eaf6fc;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(25, 130, 177, .1);
}

.request-type-field input[type="radio"],
.urgency-field input[type="radio"] {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
    height: 18px;
    padding: 0;
    margin: 2px 0 0;
    accent-color: var(--blue);
}

.urgency-field > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cloudlit-guide {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 18px;
    padding: 16px;
    color: #173f58;
    background: #edf7fb;
    border: 1px solid #c9e4ef;
    border-radius: 12px;
}

.cloudlit-guide-mark {
    display: inline-grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #0d2942, #1781b1);
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 900;
}

.cloudlit-guide p {
    margin: 4px 0 0;
    color: #46687e;
}

.safety-alert {
    padding: 16px 18px;
    color: #7c281f;
    background: #fff0ee;
    border: 1px solid #e9aaa4;
    border-left: 5px solid var(--danger);
    border-radius: 10px;
}

.safety-alert p {
    margin: 5px 0 0;
}

.photo-dropzone {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
    padding: 18px;
    background: #f7fafc;
    border: 2px dashed #aec4d4;
    border-radius: 12px;
}

.photo-dropzone .photo-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--blue);
    background: #e3f2f9;
    border-radius: 10px;
    font-size: 1.7rem;
}

.photo-dropzone strong,
.photo-dropzone small {
    display: block;
}

.photo-dropzone input[type="file"] {
    grid-column: 1 / -1;
    min-height: 44px;
    padding: 8px;
    background: white;
}

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

.photo-preview-grid figure {
    min-width: 0;
    margin: 0;
    padding: 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.photo-preview-grid img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 7px;
}

.photo-preview-grid figcaption {
    margin-top: 6px;
    overflow: hidden;
    color: var(--muted);
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.consent-stack {
    display: grid;
    gap: 4px;
    margin-top: 18px;
}

.consent-stack .checkbox-field {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
    margin: 7px 0;
}

.consent-stack .checkbox-field input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--blue);
}

.consent-stack .field-error {
    grid-column: 2;
}

.request-readiness {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px;
    margin: 28px 32px 18px;
    padding: 22px;
    color: white;
    background: linear-gradient(135deg, #0d2942, #164f72);
    border-radius: 14px;
}

.request-readiness .recommendation-label,
.request-readiness p {
    color: #cfe3ef;
}

.request-readiness h2 {
    margin: 5px 0 7px;
    color: white;
    font-size: 1.28rem;
}

.request-readiness p {
    margin: 0;
}

.request-readiness ul {
    display: grid;
    align-content: center;
    gap: 7px;
    padding-left: 20px;
    margin: 0;
    color: #e9f4f9;
    font-size: .88rem;
}

.request-expectation {
    margin: 0 32px;
    padding: 15px 17px;
    color: #654500;
    background: #fff8df;
    border: 1px solid #ecd58b;
    border-radius: 10px;
    line-height: 1.5;
}

.request-expectation strong {
    display: block;
}

.guided-request-form > .form-actions {
    padding: 0 32px 30px;
}

@media (max-width: 760px) {
    .guided-request-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .guided-progress {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 16px 20px;
    }

    .guided-step {
        padding: 24px 20px !important;
    }

    .request-type-field > div,
    .urgency-field > div,
    .request-readiness {
        grid-template-columns: 1fr;
    }

    .request-readiness {
        margin: 22px 20px 16px;
    }

    .request-expectation {
        margin: 0 20px;
    }

    .guided-request-form > .form-actions {
        padding: 0 20px 24px;
    }
}

@media (max-width: 520px) {
    .photo-preview-grid {
        grid-template-columns: 1fr;
    }

    .photo-preview-grid img {
        height: 190px;
    }

    .guided-request-form > .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .guided-request-form > .form-actions a,
    .guided-request-form > .form-actions button {
        width: 100%;
        text-align: center;
    }
}

.request-brief-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 20px;
}

.request-brief-grid > div {
    padding: 13px;
    background: #f5f9fb;
    border: 1px solid #d9e4eb;
    border-radius: 9px;
}

.request-brief-grid span,
.request-brief-grid strong {
    display: block;
}

.request-brief-grid span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .75rem;
}

.request-description {
    padding: 16px;
    margin: 16px 0;
    background: #fbfcfd;
    border-left: 4px solid var(--blue);
    border-radius: 8px;
}

.request-description h3,
.request-description p {
    margin: 0;
}

.request-description h3 {
    margin-bottom: 7px;
    font-size: .9rem;
}

.evidence-grid figure {
    min-width: 0;
    margin: 0;
}

.evidence-grid figcaption {
    margin-top: 6px;
    color: var(--muted);
    font-size: .75rem;
}

.request-expectation.compact {
    margin: 20px 0 0;
}

@media (max-width: 560px) {
    .request-brief-grid {
        grid-template-columns: 1fr;
    }
}

/* CloudLit Guided Energy Design Assistant */
.guided-design-wizard {
    --guided-blue: #087ca7;
    --guided-blue-dark: #07536f;
    --guided-soft: #eef8fc;
    --guided-green: #087a55;
    --guided-green-soft: #e7f7f0;
}

.design-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 20px;
}

.design-step {
    position: relative;
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 11px;
    padding: 14px 16px;
    text-align: left;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
}

.design-step > span {
    display: grid;
    grid-row: 1 / 3;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--blue-dark);
    background: #e8f3f8;
    border-radius: 50%;
    font-weight: 800;
}

.design-step strong {
    color: var(--navy);
    font-size: .92rem;
}

.design-step small {
    margin-top: 3px;
    color: var(--muted);
}

.design-step.is-active {
    color: var(--blue-dark);
    background: #f0faff;
    border-color: #4ba5c9;
    box-shadow: 0 8px 22px rgba(8, 124, 167, .1);
}

.design-step.is-active::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: -1px;
    left: 14px;
    height: 4px;
    background: var(--blue);
    border-radius: 4px 4px 0 0;
}

.design-step.is-active > span {
    color: #fff;
    background: var(--blue);
}

.guided-step-panel {
    margin-bottom: 22px;
    padding: 28px;
}

.guided-design-wizard.is-enhanced .guided-step-panel[hidden],
.guided-load-row[hidden] {
    display: none;
}

.guided-step-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.guided-step-heading h2,
.guided-step-heading p {
    margin-bottom: 5px;
}

.guided-status-badge,
.option-scope,
.optional-label {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 6px 10px;
    color: #075d43;
    background: var(--guided-green-soft);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.optional-label {
    padding: 3px 7px;
    color: var(--muted);
    background: #edf1f4;
    font-size: .65rem;
    vertical-align: middle;
}

.guided-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 22px;
}

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

.guided-field > label,
.appliance-preset-bar label,
.guided-load-row .form-field > label {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
    font-size: .86rem;
    font-weight: 750;
}

.guided-field > input:not([type="checkbox"]),
.guided-field > select,
.guided-field > textarea,
.guided-field .input-with-unit input,
.currency-input-row input,
.currency-input-row select,
.appliance-preset-bar select,
.guided-load-row input:not([type="checkbox"]) {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--text);
    background: #fbfdfe;
    border: 1px solid #b9cbd6;
    border-radius: 8px;
    font: inherit;
}

.guided-field > textarea {
    min-height: 92px;
    resize: vertical;
}

.guided-field > input:focus,
.guided-field > select:focus,
.guided-field > textarea:focus,
.guided-field .input-with-unit input:focus,
.currency-input-row input:focus,
.currency-input-row select:focus,
.appliance-preset-bar select:focus,
.guided-load-row input:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(22, 119, 167, .14);
}

.guided-field small,
.guided-load-row small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.4;
}

.input-with-unit {
    display: flex;
    align-items: stretch;
}

.input-with-unit input {
    border-radius: 8px 0 0 8px !important;
}

.input-with-unit > span {
    display: grid;
    min-width: 48px;
    padding: 0 10px;
    place-items: center;
    color: var(--muted);
    background: #eef3f6;
    border: 1px solid #b9cbd6;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    font-size: .78rem;
}

.currency-input-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 8px;
}

.quick-value-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.quick-value-row button {
    padding: 5px 10px;
    color: var(--blue-dark);
    background: #edf8fc;
    border: 1px solid #b8dae8;
    border-radius: 999px;
    cursor: pointer;
}

.advanced-design-settings {
    padding: 17px 18px;
    margin-top: 24px;
    background: #f7fafc;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.advanced-design-settings summary {
    color: var(--navy);
    cursor: pointer;
    font-weight: 800;
}

.advanced-design-settings > p {
    margin: 10px 0 16px;
}

.guided-switch-field input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--blue);
}

.guided-step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 20px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

.appliance-preset-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: end;
    gap: 10px;
    padding: 18px;
    background: linear-gradient(120deg, #edf9fd, #f5fbfd);
    border: 1px solid #c5e4ef;
    border-radius: 12px;
}

.preset-disclaimer {
    padding: 12px 15px;
    margin: 12px 0 18px;
    color: #725515;
    background: #fff9e7;
    border-left: 4px solid var(--gold);
    border-radius: 7px;
    font-size: .86rem;
}

.live-design-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.live-design-summary article {
    padding: 15px 16px;
    color: #fff;
    background: linear-gradient(145deg, var(--guided-blue), var(--guided-blue-dark));
    border-radius: 11px;
}

.live-design-summary span,
.live-design-summary strong,
.live-design-summary small {
    display: block;
}

.live-design-summary span,
.live-design-summary small {
    color: #dff5ff;
    font-size: .72rem;
}

.live-design-summary strong {
    margin: 5px 0 2px;
    font-size: 1.2rem;
}

.guided-load-list {
    display: grid;
    gap: 10px;
}

.guided-load-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.55fr) 72px repeat(4, minmax(98px, .82fr)) minmax(125px, .9fr) auto;
    align-items: end;
    gap: 9px;
    padding: 14px;
    background: #fbfdfe;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.guided-load-row .form-field {
    min-width: 0;
}

.guided-load-row .form-field > label {
    margin-bottom: 5px;
    font-size: .72rem;
}

.guided-load-row input:not([type="checkbox"]) {
    min-width: 0;
    min-height: 40px;
    padding: 8px;
}

.load-essential-field {
    align-self: center;
}

.load-essential-field label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--navy);
    font-size: .8rem;
    font-weight: 750;
}

.load-essential-field input {
    width: 19px;
    height: 19px;
    accent-color: var(--blue);
}

.load-remove-field {
    align-self: center;
}

.load-remove-field .link-button {
    color: var(--danger);
    font-size: .78rem;
}

.guided-check-panel {
    padding: 15px 17px;
    margin-top: 16px;
    background: var(--guided-green-soft);
    border: 1px solid #b7e2d0;
    border-radius: 9px;
}

.guided-check-panel p {
    margin: 4px 0 0;
}

.guided-check-panel.has-warning {
    background: #fff7dd;
    border-color: #e7c65c;
}

.option-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

.option-preview-card {
    position: relative;
    padding: 21px;
    background: #fff;
    border: 1px solid #cad9e2;
    border-radius: 13px;
    box-shadow: 0 8px 22px rgba(16, 42, 67, .06);
}

.option-preview-card.is-recommended {
    border: 2px solid var(--blue);
    box-shadow: 0 12px 30px rgba(8, 124, 167, .15);
}

.option-preview-card h3 {
    margin: 12px 0 6px;
    color: var(--navy);
}

.option-preview-card p {
    min-height: 58px;
    color: var(--muted);
    font-size: .84rem;
}

.option-preview-card dl {
    margin: 16px 0 0;
}

.option-preview-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--border);
}

.option-preview-card dt {
    color: var(--muted);
}

.option-preview-card dd {
    margin: 0;
    color: var(--navy);
    font-weight: 800;
    text-align: right;
}

.guided-review-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.guided-review-grid article {
    padding: 13px 14px;
    background: #f3f8fa;
    border-radius: 9px;
}

.guided-review-grid span,
.guided-review-grid strong {
    display: block;
}

.guided-review-grid span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: .72rem;
}

.final-design-actions > div {
    display: flex;
    gap: 9px;
}

@media (max-width: 980px) {
    .guided-load-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .guided-load-row .load-name-field {
        grid-column: span 2;
    }

    .option-preview-grid {
        grid-template-columns: 1fr;
    }

    .option-preview-card p {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .design-step {
        display: block;
        padding: 11px;
        text-align: center;
    }

    .design-step > span {
        margin: 0 auto 6px;
    }

    .design-step small {
        display: none;
    }

    .guided-field-grid,
    .live-design-summary,
    .guided-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .appliance-preset-bar {
        grid-template-columns: 1fr 1fr;
    }

    .appliance-preset-bar > div {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .guided-step-panel {
        padding: 20px 16px;
    }

    .guided-step-heading,
    .guided-step-actions,
    .final-design-actions,
    .final-design-actions > div {
        align-items: stretch;
        flex-direction: column;
    }

    .guided-field-grid,
    .live-design-summary,
    .guided-review-grid,
    .appliance-preset-bar,
    .guided-load-row {
        grid-template-columns: 1fr;
    }

    .guided-field-wide,
    .guided-load-row .load-name-field,
    .appliance-preset-bar > div {
        grid-column: auto;
    }

    .guided-step-actions button,
    .final-design-actions > div button,
    .appliance-preset-bar button {
        width: 100%;
    }

    .currency-input-row {
        grid-template-columns: 82px 1fr;
    }
}

/* Mobile-first portal shell and touch usability. Desktop remains unchanged. */
.mobile-navigation-toggle,
.mobile-bottom-navigation {
    display: none;
}

@media (max-width: 900px) {
    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    .topbar {
        position: relative;
        z-index: 20;
        flex-wrap: wrap;
        min-height: 64px;
        padding: 10px max(4vw, env(safe-area-inset-left)) 10px max(4vw, env(safe-area-inset-right));
    }

    .brand {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .mobile-navigation-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-width: 92px;
        min-height: 44px;
        padding: 8px 12px;
        border: 1px solid rgba(255, 255, 255, .55);
        border-radius: 9px;
        background: transparent;
        color: white;
        font: inherit;
        font-weight: 750;
        cursor: pointer;
    }

    .mobile-navigation-icon,
    .mobile-navigation-icon::before,
    .mobile-navigation-icon::after {
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
    }

    .mobile-navigation-icon {
        position: relative;
    }

    .mobile-navigation-icon::before,
    .mobile-navigation-icon::after {
        position: absolute;
        left: 0;
        content: "";
    }

    .mobile-navigation-icon::before { top: -6px; }
    .mobile-navigation-icon::after { top: 6px; }

    .user-menu[data-mobile-navigation] {
        display: none;
        flex: 1 0 100%;
        align-items: stretch;
        max-height: min(68vh, 620px);
        margin: 8px 0 0;
        padding: 5px 0 8px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-top: 1px solid rgba(255, 255, 255, .2);
    }

    .user-menu[data-mobile-navigation].is-mobile-open {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .user-menu[data-mobile-navigation] > a,
    .user-menu[data-mobile-navigation] > span,
    .user-menu[data-mobile-navigation] > button,
    .user-menu[data-mobile-navigation] > form {
        width: 100%;
        min-height: 46px;
        margin: 0;
    }

    .user-menu[data-mobile-navigation] > a,
    .user-menu[data-mobile-navigation] > span,
    .user-menu[data-mobile-navigation] > button,
    .user-menu[data-mobile-navigation] > form .link-button {
        display: flex;
        align-items: center;
        padding: 11px 4px;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
        border-radius: 0;
        background: transparent;
        color: white;
        text-align: left;
    }

    .user-menu[data-mobile-navigation] > form .link-button {
        width: 100%;
        min-height: 46px;
        font: inherit;
    }

    .mobile-bottom-navigation {
        position: fixed;
        z-index: 30;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        min-height: calc(68px + env(safe-area-inset-bottom));
        padding: 4px env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
        border-top: 1px solid #c8d6e1;
        background: #fff;
        box-shadow: 0 -7px 20px rgba(16, 42, 67, .12);
    }

    .mobile-bottom-navigation a,
    .mobile-bottom-navigation button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        min-height: 58px;
        padding: 4px 2px;
        border: 0;
        background: transparent;
        color: #536b7d;
        font: inherit;
        font-size: .72rem;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
    }

    .mobile-bottom-navigation a > span:first-child,
    .mobile-bottom-navigation button > span:first-child {
        color: var(--blue);
        font-size: 1.25rem;
        line-height: 1;
    }

    .mobile-bottom-navigation a[aria-current="page"] {
        color: var(--blue-dark);
        background: #edf7fb;
        border-radius: 9px;
    }

    .page {
        width: min(94vw, 760px);
        margin: 24px auto;
    }

    .welcome,
    .page-heading,
    .panel-heading-row,
    .section-heading,
    .form-heading,
    .card-heading,
    .guided-request-heading,
    .energy-design-heading,
    .design-proposal-heading,
    .cloudlit-section-heading {
        gap: 12px;
        flex-wrap: wrap;
    }

    .welcome > *,
    .page-heading > *,
    .panel-heading-row > *,
    .section-heading > *,
    .form-heading > *,
    .guided-request-heading > *,
    .energy-design-heading > *,
    .design-proposal-heading > * {
        min-width: 0;
    }

    .dashboard-summary-grid,
    .summary-grid,
    .stats,
    .iot-dashboard-summary,
    .iot-insight-grid,
    .profile-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid,
    .grid-two,
    .settings-form-grid,
    .request-brief-grid,
    .evidence-grid,
    .attachment-grid,
    .photo-preview-grid {
        grid-template-columns: 1fr;
    }

    .form-grid > *,
    .grid-two > *,
    .settings-form-grid > *,
    .request-brief-grid > *,
    .evidence-grid > *,
    .attachment-grid > * {
        grid-column: auto !important;
        min-width: 0;
    }

    .table-wrap,
    .table-responsive,
    .data-table {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-inline: contain;
    }

    table.data-table {
        display: block;
        width: 100%;
        min-width: 680px;
    }

    .global-support-panel,
    .support-access-banner {
        margin-right: 3vw;
        margin-left: 3vw;
    }

    .support-access-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .support-access-banner button {
        width: 100%;
        min-height: 46px;
    }
}

@media (max-width: 620px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    .page {
        width: 94vw;
        margin-top: 18px;
    }

    h1 {
        font-size: clamp(1.65rem, 8vw, 2.05rem);
        line-height: 1.14;
    }

    h2,
    h3,
    p,
    li,
    dd,
    dt,
    label,
    .muted,
    .help-text {
        overflow-wrap: anywhere;
    }

    .panel,
    .form-card,
    .login-card,
    .dashboard-hero,
    .dashboard-list-panel,
    .dashboard-next-panel,
    .guided-step-panel,
    .settings-editor-card,
    .cloudlit-panel,
    .company-info-card,
    .company-security-panel,
    .monitoring-site-panel,
    .iot-command-panel {
        padding: 18px 15px;
        border-radius: 13px;
    }

    .dashboard-summary-grid,
    .summary-grid,
    .stats,
    .dashboard-work-grid,
    .manage-card-grid,
    .choice-grid,
    .public-benefit-grid,
    .public-process-grid,
    .public-solution-grid,
    .iot-dashboard-summary,
    .iot-insight-grid,
    .iot-mini-grid,
    .profile-summary-grid,
    .catalogue-grid,
    .design-option-grid {
        grid-template-columns: 1fr;
    }

    .stat-card,
    .summary-card,
    .summary-link-card,
    .manage-card,
    .choice-card,
    .public-benefit-card,
    .catalogue-card {
        min-width: 0;
    }

    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        width: 100%;
        max-width: 100%;
        min-height: 46px;
        font-size: 16px;
    }

    textarea {
        min-height: 110px;
    }

    input[type="file"] {
        min-height: 48px;
        padding: 8px;
    }

    input[type="checkbox"],
    input[type="radio"] {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }

    .check-row,
    .checkbox-field,
    .form-grid .field:has(> input[type="checkbox"]) {
        min-height: 48px;
    }

    button,
    .primary-button,
    .secondary-button,
    .danger-button,
    .button-link {
        min-height: 46px;
        touch-action: manipulation;
    }

    .form-actions,
    .button-row,
    .inline-actions,
    .settings-form-actions,
    .global-support-actions,
    .public-hero-actions,
    .cloudlit-quick-actions,
    .cloudlit-row-actions,
    .final-design-actions,
    .final-design-actions > div {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .form-actions > *,
    .button-row > *,
    .inline-actions > *,
    .settings-form-actions > *,
    .global-support-actions > *,
    .public-hero-actions > *,
    .cloudlit-quick-actions > *,
    .cloudlit-row-actions > *,
    .final-design-actions > *,
    .final-design-actions > div > * {
        width: 100%;
        text-align: center;
    }

    .inline-form,
    .search-form,
    .search-row,
    .copy-link-row,
    .quick-value-row,
    .iot-site-row,
    .iot-data-row,
    .visit-row,
    .cloudlit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .inline-form > *,
    .search-form > *,
    .search-row > *,
    .copy-link-row > *,
    .quick-value-row > * {
        width: 100%;
    }

    .manage-card {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 15px;
    }

    .manage-card .primary-button,
    .manage-card .secondary-button,
    .manage-card .access-note {
        grid-column: 1 / -1;
        width: 100%;
    }

    .public-login-shell {
        gap: 20px;
    }

    .public-service-hero,
    .public-login-card {
        min-width: 0;
    }

    .global-support-panel {
        padding: 18px 15px;
    }

    .site-footer {
        padding-bottom: 8px;
    }

    .footer-links {
        gap: 12px 16px;
    }

    .option-preview-card dl div,
    .detail-list > div,
    .company-detail-list > div {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 5px;
    }

    .option-preview-card dd {
        text-align: left;
    }
}

@media (max-width: 380px) {
    .topbar {
        padding-right: 12px;
        padding-left: 12px;
    }

    .brand {
        font-size: 1.05rem;
    }

    .mobile-navigation-toggle {
        min-width: 82px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .mobile-bottom-navigation a,
    .mobile-bottom-navigation button {
        font-size: .66rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Guided registration journey */
.registration-journey {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 48px;
    overflow: hidden;
    border: 1px solid #d3e2eb;
    border-radius: 22px;
    background: #eef5f9;
    box-shadow: 0 20px 55px rgba(19, 54, 77, .1);
}

.registration-hero {
    padding: 32px 30px 24px;
    background: linear-gradient(135deg, #def4fb 0%, #f6f9fb 65%, #fff3d1 145%);
}

.registration-hero h1 {
    margin: 4px 0 8px;
    color: #102a42;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.08;
}

.registration-hero > p:not(.eyebrow) {
    max-width: 720px;
    margin: 0;
    color: #5c7287;
    font-size: 1.04rem;
}

.registration-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 670px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.registration-steps li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #63798c;
    font-weight: 700;
}

.registration-steps li:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 15px;
    right: 12px;
    left: 48px;
    height: 2px;
    background: #c6dbe5;
    content: "";
}

.registration-steps li span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #bfd3de;
    border-radius: 50%;
    background: #fff;
}

.registration-steps .is-complete span {
    border-color: transparent;
    background: #dbf4e8;
    color: #087449;
}

.registration-steps .is-current {
    color: #087cab;
}

.registration-steps .is-current span {
    border-color: transparent;
    background: #087cab;
    color: #fff;
}

.smart-plan-form {
    padding: 24px;
}

.smart-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.smart-plan-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 450px;
    overflow: hidden;
    border: 2px solid #d1e0e9;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.smart-plan-card:hover,
.smart-plan-card:focus-within {
    border-color: #43a8cb;
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(17, 84, 117, .13);
}

.smart-plan-card.is-selected {
    border-color: #087cab;
    box-shadow: 0 16px 40px rgba(8, 124, 171, .17);
}

.smart-plan-card > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.smart-plan-accent {
    flex: 0 0 8px;
    background: #087cab;
}

.smart-plan-card:nth-child(2) .smart-plan-accent {
    background: #f1b93d;
}

.smart-plan-card:nth-child(3) .smart-plan-accent {
    background: #0c2943;
}

.smart-plan-body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.smart-plan-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.smart-plan-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    background: #e3f5fb;
    color: #087cab;
    font-size: 1.35rem;
    font-weight: 800;
}

.smart-plan-card:nth-child(2) .smart-plan-icon {
    background: #fff3d1;
    color: #8b640e;
}

.smart-plan-radio {
    width: 23px;
    height: 23px;
    border: 2px solid #afc7d3;
    border-radius: 50%;
}

.smart-plan-card.is-selected .smart-plan-radio {
    border: 6px solid #087cab;
}

.smart-plan-badge {
    align-self: flex-start;
    margin-top: 15px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e4f5fb;
    color: #06759f;
    font-size: .82rem;
    font-weight: 800;
}

.smart-plan-card:nth-child(2) .smart-plan-badge {
    background: #fff2c9;
    color: #74510a;
}

.smart-plan-name {
    margin-top: 14px;
    color: #102a42;
    font-size: 1.35rem;
}

.smart-plan-price {
    margin-top: 7px;
    color: #5e7386;
}

.smart-plan-price strong,
.selected-plan-panel strong {
    color: #087cab;
}

.smart-plan-features {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.smart-plan-features li {
    position: relative;
    margin: 10px 0;
    padding-left: 25px;
    color: #31485b;
}

.smart-plan-features li::before {
    position: absolute;
    left: 0;
    color: #087cab;
    font-weight: 900;
    content: "✓";
}

.smart-plan-fit {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #dce7ed;
    color: #61768a;
}

.smart-plan-fit strong {
    display: block;
    margin-bottom: 3px;
    color: #263a4b;
}

.smart-plan-selection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 15px;
    background: #0c2943;
    color: #fff;
}

.smart-plan-selection strong,
.smart-plan-selection span {
    display: block;
}

.smart-plan-selection span {
    margin-top: 4px;
    color: #c7dfeb;
}

.smart-plan-continue {
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    padding: 12px 20px;
    background: #f1b93d;
    color: #172737;
    font-weight: 800;
    cursor: pointer;
}

.smart-plan-assurance {
    margin: 15px 3px 8px;
    color: #5f7487;
}

.smart-plan-assurance span {
    color: #087cab;
    font-weight: 900;
}

.registration-back-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
}

.provider-registration-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, .65fr);
    gap: 20px;
    padding: 22px;
}

.provider-registration-form,
.selected-plan-panel,
.registration-trust-panel {
    border: 1px solid #d3e2eb;
    border-radius: 17px;
    background: #fff;
}

.provider-registration-form {
    padding: 24px;
}

.smart-form-section {
    margin: 0;
    padding: 0;
    border: 0;
}

.smart-form-section + .smart-form-section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #dbe7ed;
}

.smart-form-section legend {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    color: #142b3e;
    font-size: 1.2rem;
    font-weight: 800;
}

.smart-form-section legend small {
    display: block;
    margin-top: 4px;
    color: #617589;
    font-size: .9rem;
    font-weight: 400;
}

.smart-form-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 12px;
    background: #e3f5fb;
    color: #087cab;
}

.provider-registration-form .field input,
.provider-registration-form .field select {
    min-height: 47px;
    border-color: #b9cfdb;
    border-radius: 9px;
    background: #fbfdfe;
    font-size: 16px;
}

.provider-registration-form .field label {
    font-weight: 700;
}

.provider-registration-form .field small {
    color: #657a8d;
}

.required-marker {
    color: #b84135;
}

.smart-consent-row {
    display: flex;
    min-height: 50px;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #d5e3eb;
    border-radius: 10px;
    background: #f8fbfc;
}

.smart-consent-row input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.smart-consent-row small {
    display: block;
    color: #607589;
}

.provider-registration-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #dbe7ed;
}

.provider-registration-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.selected-plan-panel,
.registration-trust-panel,
.cloudlit-registration-guide {
    padding: 20px;
}

.selected-plan-panel {
    border-top: 7px solid #f1b93d;
}

.selected-plan-panel h2,
.registration-trust-panel h2,
.cloudlit-registration-guide h2 {
    margin: 10px 0;
    color: inherit;
    font-size: 1.2rem;
}

.selected-plan-panel ul {
    margin: 14px 0;
    padding-left: 20px;
    color: #52687a;
}

.cloudlit-registration-guide {
    border-radius: 17px;
    background: linear-gradient(145deg, #0d789f, #0c2943);
    color: #fff;
}

.cloudlit-registration-guide .eyebrow,
.cloudlit-registration-guide p {
    color: #d8eef7;
}

.registration-trust-panel p {
    color: #52687b;
}

@media (max-width: 900px) {
    .smart-plan-grid {
        grid-template-columns: 1fr;
    }

    .smart-plan-card {
        min-height: 0;
    }

    .provider-registration-layout {
        grid-template-columns: 1fr;
    }

    .provider-registration-sidebar {
        grid-row: 1;
    }

    .registration-trust-panel,
    .cloudlit-registration-guide {
        display: none;
    }

    .selected-plan-panel ul {
        display: none;
    }
}

@media (max-width: 600px) {
    .registration-journey {
        width: calc(100% - 18px);
        margin: 12px auto 30px;
        border-radius: 15px;
    }

    .registration-hero {
        padding: 22px 16px 18px;
    }

    .registration-hero h1 {
        font-size: 2rem;
    }

    .registration-steps li {
        display: block;
        font-size: .72rem;
        text-align: center;
    }

    .registration-steps li span {
        margin: 0 auto 6px;
    }

    .registration-steps li:not(:last-child)::after {
        top: 15px;
        right: -25%;
        left: 62%;
    }

    .smart-plan-form,
    .provider-registration-layout {
        padding: 12px;
    }

    .smart-plan-body {
        padding: 18px;
    }

    .smart-plan-selection {
        grid-template-columns: 1fr;
    }

    .smart-plan-continue {
        width: 100%;
    }

    .provider-registration-form {
        padding: 17px;
    }

    .provider-registration-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .provider-registration-actions > * {
        width: 100%;
        text-align: center;
    }
}


/* CLOUDLIT_GUIDED_SUPPORT_V61 */
.guided-request-page{width:min(1160px,100%);margin-inline:auto}
.guided-request-heading{align-items:center;padding:4px 0 8px}.guided-request-heading h1{margin-top:6px;font-size:clamp(2rem,4vw,2.8rem)}
.guided-time-badge{padding:10px 15px;color:#126348;background:linear-gradient(135deg,#e8f8ef,#f4fcf8);border-color:#b6e3cc;box-shadow:0 6px 16px rgba(22,99,72,.06)}
.guided-request-form{border-radius:20px;border:1px solid #cfdee7;box-shadow:0 14px 34px rgba(16,42,67,.07)}
.guided-progress{position:relative;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:21px 28px 18px;background:linear-gradient(90deg,#f0f8fc,#f3fbf8 50%,#fff9ea);border-bottom:1px solid #d8e4ea}
.guided-progress::before{content:"";position:absolute;top:38px;left:12.5%;right:12.5%;height:3px;border-radius:999px;background:linear-gradient(90deg,#1677a7 0 31%,#108b82 31% 58%,#e2a019 58% 80%,#2d9b66 80%);opacity:.55}
.guided-progress span{position:relative;z-index:1;flex-direction:column;justify-content:flex-start;gap:8px;color:#506b7a;text-align:center;font-size:.75rem;letter-spacing:.02em}
.guided-progress b{width:38px;height:38px;border:4px solid #fff;box-shadow:0 5px 12px rgba(16,42,67,.13);font-size:.8rem}
.guided-progress span:nth-child(1) b{background:#1677a7}.guided-progress span:nth-child(2) b{background:#108b82}.guided-progress span:nth-child(3) b{background:#d79512}.guided-progress span:nth-child(4) b{background:#2d9b66}
.guided-step{position:relative;padding:28px 32px 30px!important;background:#fff}.guided-step legend{width:100%;gap:12px;padding:0 0 14px;margin-bottom:20px;border-bottom:1px solid #e1e9ee;color:var(--navy);font-size:1.16rem}.guided-step legend span{width:34px;height:34px;box-shadow:0 5px 12px rgba(16,42,67,.1)}
.guided-step:nth-of-type(1) legend span{background:#1677a7}.guided-step:nth-of-type(2) legend span{background:#108b82}.guided-step:nth-of-type(3) legend span{background:#d79512}.guided-step:nth-of-type(4) legend span{background:#2d9b66}
.request-type-field label,.urgency-field>div label{min-height:58px;align-items:center;padding:15px 16px;border-color:#ccdae4;border-radius:13px;background:#fff;box-shadow:0 4px 12px rgba(16,42,67,.025)}
.request-type-field label:hover,.urgency-field>div label:hover{border-color:#76b4cf;box-shadow:0 7px 16px rgba(16,42,67,.06)}
.request-type-field label:has(input:checked),.urgency-field>div label:has(input:checked){border-color:#1681b1;background:#e8f6fc;box-shadow:0 0 0 3px rgba(22,129,177,.10)}
.cloudlit-guide{border-left:5px solid #1677a7;background:linear-gradient(90deg,#eaf7fc,#f6fbfd)}
.photo-dropzone{padding:19px;background:linear-gradient(135deg,#f2f9fc,#fbfdfe);border-color:#92b8cc}
.request-readiness{background:linear-gradient(120deg,#102a43,#14577b 62%,#147e85);box-shadow:0 12px 26px rgba(16,42,67,.12)}
.request-expectation{border-left:5px solid #e2a019;background:#fff8df}
@media(max-width:760px){.guided-progress{grid-template-columns:repeat(4,minmax(72px,1fr));padding:17px 12px 15px;overflow-x:auto}.guided-progress::before{display:none}.guided-progress span{font-size:.67rem}.guided-progress b{width:34px;height:34px}.guided-step{padding:23px 18px 25px!important}.guided-step legend{font-size:1.05rem}}


/* CLOUDLIT GUIDED SUPPORT V6.2
   Progressive 3-stage customer journey.
   Existing Django fields and backend submission remain unchanged. */

.guided-request-page {
    width: min(980px, 100%);
}

.guided-request-heading {
    align-items: center;
    gap: 18px;
}

.guided-request-heading h1 {
    max-width: 720px;
    margin-bottom: 7px;
    font-size: clamp(2rem, 4vw, 2.55rem);
}

.guided-time-badge {
    padding: 9px 14px;
    color: #0f684c;
    background: linear-gradient(135deg, #e3f7ed, #f5fcf8);
    border-color: #addfc6;
    box-shadow: 0 6px 16px rgba(15, 104, 76, .06);
    white-space: nowrap;
}

.guided-wizard-active .guided-progress {
    display: none !important;
}

.guided-wizard-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 21px 28px 19px;
    background:
        linear-gradient(90deg, #eef8fc 0%, #f1faf8 54%, #fff8e7 100%);
    border-bottom: 1px solid #d7e4ea;
}

.guided-wizard-progress::before {
    position: absolute;
    top: 40px;
    left: 17%;
    right: 17%;
    height: 3px;
    border-radius: 999px;
    background: #c8d9e2;
    content: "";
}

.guided-wizard-progress-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    color: #718692;
}

.guided-wizard-progress-number {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    color: #5c7481;
    background: #fff;
    border: 3px solid #c9d8e0;
    border-radius: 50%;
    box-shadow: 0 5px 12px rgba(16, 42, 67, .08);
    font-size: .82rem;
    font-weight: 900;
    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.guided-wizard-progress-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.guided-wizard-progress-copy strong {
    color: inherit;
    font-size: .82rem;
}

.guided-wizard-progress-copy small {
    overflow: hidden;
    font-size: .69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guided-wizard-progress-item.is-active {
    color: var(--navy);
}

.guided-wizard-progress-item.is-active .guided-wizard-progress-number {
    color: #fff;
    background: #1677a7;
    border-color: #fff;
    transform: scale(1.05);
}

.guided-wizard-progress-item:nth-child(2).is-active .guided-wizard-progress-number {
    background: #108b82;
}

.guided-wizard-progress-item:nth-child(3).is-active .guided-wizard-progress-number {
    color: #102a43;
    background: #f5b942;
}

.guided-wizard-progress-item.is-complete .guided-wizard-progress-number {
    color: #fff;
    background: #2d9b66;
    border-color: #fff;
}

.guided-wizard-message {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 18px 24px 0;
    padding: 14px 16px;
    color: #173f58;
    background: linear-gradient(100deg, #eef8fc, #f8fbfc);
    border: 1px solid #cae1ec;
    border-radius: 13px;
}

.guided-wizard-message-mark {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #102a43, #1677a7);
    border-radius: 10px;
    font-size: .7rem;
    font-weight: 900;
}

.guided-wizard-message strong {
    display: block;
    color: var(--navy);
}

.guided-wizard-message p {
    margin: 3px 0 0;
    color: #587384;
    font-size: .87rem;
    line-height: 1.45;
}

.guided-wizard-active .guided-step {
    padding: 24px 28px 26px !important;
    background: #fff !important;
}

.guided-wizard-active .guided-step legend {
    margin-bottom: 17px;
    font-size: 1.08rem;
}

.guided-wizard-active .guided-step legend span {
    width: 31px;
    height: 31px;
}

.guided-wizard-active .request-type-field > div {
    gap: 10px;
}

.guided-wizard-active .request-type-field label {
    min-height: 68px;
    align-items: center;
    padding: 14px 15px;
    background: #f8fbfd;
    border-color: #cadbe5;
}

.guided-wizard-active .request-type-field > div > div:nth-child(1) label {
    border-left: 4px solid #1677a7;
}

.guided-wizard-active .request-type-field > div > div:nth-child(2) label {
    border-left: 4px solid #108b82;
}

.guided-wizard-active .request-type-field > div > div:nth-child(3) label {
    border-left: 4px solid #6b62b5;
}

.guided-wizard-active .request-type-field > div > div:nth-child(4) label {
    border-left: 4px solid #e2a019;
}

.guided-wizard-active .request-type-field > div > div:nth-child(5) label {
    border-left: 4px solid #2d9b66;
}

.guided-wizard-active .request-type-field > div > div:nth-child(6) label {
    border-left: 4px solid #6f8090;
}

.guided-wizard-active .request-type-field label:hover {
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 42, 67, .06);
}

.guided-wizard-active .request-type-field label:has(input:checked),
.guided-wizard-active .urgency-field > div label:has(input:checked) {
    color: #075f91;
    background: #eaf6fc;
    border-color: #1681b1;
    box-shadow: 0 0 0 3px rgba(22, 129, 177, .10);
}

.guided-wizard-active .cloudlit-guide {
    margin-top: 14px;
    padding: 13px 14px;
}

.guided-wizard-active .photo-dropzone {
    padding: 14px;
    background: linear-gradient(135deg, #f4fafc, #fbfdfe);
}

.guided-wizard-active .photo-dropzone .photo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
}

.guided-wizard-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 18px 28px 22px;
    background: #f8fbfc;
    border-top: 1px solid #dce7ed;
}

.guided-wizard-nav-status {
    color: #6a7e89;
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
}

.guided-wizard-nav .primary-button {
    min-width: 132px;
    justify-content: center;
    color: #102a43;
    background: #f5b942;
    border-color: #f5b942;
}

.guided-wizard-nav .primary-button:hover,
.guided-wizard-nav .primary-button:focus-visible {
    background: #eaae31;
    border-color: #eaae31;
}

.guided-wizard-active .request-readiness {
    margin-top: 22px;
}

.guided-wizard-active .request-expectation {
    margin-top: 0;
}

.guided-wizard-active > .form-actions {
    padding-top: 18px;
    background: #fff;
}

@media (max-width: 760px) {
    .guided-request-page {
        width: 100%;
    }

    .guided-request-heading {
        align-items: flex-start;
    }

    .guided-wizard-progress {
        padding: 16px 10px 14px;
    }

    .guided-wizard-progress::before {
        top: 33px;
        left: 18%;
        right: 18%;
    }

    .guided-wizard-progress-item {
        gap: 5px;
        flex-direction: column;
        text-align: center;
    }

    .guided-wizard-progress-number {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .guided-wizard-progress-copy small {
        display: none;
    }

    .guided-wizard-message {
        margin: 14px 14px 0;
    }

    .guided-wizard-active .guided-step {
        padding: 20px 16px 22px !important;
    }

    .guided-wizard-active .request-type-field > div,
    .guided-wizard-active .urgency-field > div {
        grid-template-columns: 1fr;
    }

    .guided-wizard-nav {
        grid-template-columns: 1fr 1fr;
        padding: 15px 16px 18px;
    }

    .guided-wizard-nav-status {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .guided-wizard-back,
    .guided-wizard-next {
        width: 100%;
        justify-content: center;
    }

    .guided-wizard-back {
        grid-column: 1;
        grid-row: 2;
    }

    .guided-wizard-next {
        grid-column: 2;
        grid-row: 2;
    }
}
