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

* { 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; }
}

.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; }

@media (max-width: 650px) {
    .form-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .wide-form, .legal-page { padding: 22px; }
}

.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;
}

.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;
    }
}
