:root {
    --primary-blue: #2F5BFF;
    --primary-blue-hover: #2448D8;
    --primary-blue-active: #1E3FC2;
    --dark-charcoal: #1F1F1F;
    --mid-grey: #6B7280;
    --light-grey: #F3F4F6;
    --border-grey: #E5E7EB;
    --white: #FFFFFF;
    --success-green: #16A34A;
    --warning-amber: #F59E0B;
    --danger-red: #DC2626;
    --page-bg: #F9FAFB;
    /* Single source of truth for all status/history dots */
    --dot-size: 10px;
    --dot-gap: 6px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: var(--page-bg);
    color: var(--dark-charcoal);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 40px;
}

.top-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border-grey);
    margin-bottom: 12px;
}

.nav-back {
    color: var(--dark-charcoal);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    margin-right: auto;
}

.nav-back:hover {
    text-decoration: underline;
}

.nav-user {
    color: var(--mid-grey);
    font-size: 14px;
}

.nav-account {
    position: relative;
}

.nav-account-toggle {
    background: none;
    border: none;
    color: var(--dark-charcoal);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.nav-account-toggle:hover {
    text-decoration: underline;
}

.nav-account-toggle::after {
    content: ' \25BE';
    font-size: 12px;
}

.nav-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: #fff;
    border: 1px solid var(--border-grey);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 100;
    padding: 8px 0;
}

.nav-dropdown.open {
    display: block;
}

.nav-dropdown-email {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--mid-grey);
    border-bottom: 1px solid var(--border-grey);
    word-break: break-all;
}

.nav-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--dark-charcoal);
    text-decoration: none;
    font-size: 14px;
}

.nav-dropdown a:hover {
    background: #f5f5f5;
}

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

.account-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-grey);
    vertical-align: top;
}

.account-table tr:last-child td {
    border-bottom: none;
}

.account-label {
    font-weight: 600;
    color: var(--mid-grey);
    width: 120px;
}

.nav-link {
    color: var(--dark-charcoal);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

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


header {
    text-align: center;
    padding: 4px 0 4px;
}

.icon, .success-icon {
    font-size: 48px;
    margin-bottom: 4px;
}

.logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0 auto 0;
}

img.app-logo {
    max-height: 44px !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    display: block;
    flex-shrink: 0;
}

.app-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: #2F5BFF;
    letter-spacing: -0.3px;
    line-height: 1;
    white-space: nowrap;
}

.logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-blue);
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.2px;
}

h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin: 0 0 4px;
    display: inline-block;
}

h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    margin: 4px auto 0;
    border-radius: 2px;
}

.subtitle {
    font-size: 14px;
    color: var(--mid-grey);
    margin-top: 2px;
}

h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-grey);
}

.form-section, .summary-section {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-grey);
    transition: border-color 0.2s;
}

.form-section:hover, .summary-section:hover {
    border-color: var(--primary-blue);
}

.form-section-neutral {
    border: 1px solid var(--border-grey);
}

.form-section-neutral:hover {
    border-color: var(--border-grey);
}

.setup-card {
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: 10px;
    padding: 24px;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.setup-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin: 0 0 4px;
}

.setup-card-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
    margin-top: 8px;
    border-radius: 2px;
}

.setup-card-helper {
    font-size: 14px;
    color: var(--mid-grey);
    margin: 12px 0 16px;
}

.setup-step {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-grey);
}

.setup-step:first-of-type {
    margin-top: 16px;
}

.setup-step-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin: 0 0 12px;
}


.form-next-step {
    font-size: 13px;
    color: var(--mid-grey);
    text-align: center;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 6px;
}

.optional {
    font-weight: 400;
    color: var(--mid-grey);
    font-size: 12px;
}

.required-star {
    color: var(--danger-red);
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--border-grey);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--white);
    -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
}

.section-hint {
    font-size: 13px;
    color: var(--mid-grey);
    margin-bottom: 12px;
}

.alarm-card {
    border: 1.5px solid var(--border-grey);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.alarm-card:hover {
    border-color: var(--primary-blue);
}

.alarm-card:last-of-type {
    margin-bottom: 0;
}

.alarm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.alarm-icon {
    font-size: 28px;
}

.alarm-header h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 1px;
}

.alarm-header p {
    font-size: 13px;
    color: var(--mid-grey);
}

.radio-group {
    display: flex;
    gap: 10px;
}

.radio-option {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-label {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border-grey);
    background: var(--white);
    transition: all 0.2s;
}

.working .radio-label {
    color: #166534;
}

.not-working .radio-label {
    color: var(--danger-red);
}

.working input:checked ~ .radio-label {
    background: var(--white);
    border: 2px solid var(--primary-blue);
    color: #166534;
    font-weight: 700;
}

.not-working input:checked ~ .radio-label {
    background: #FEF2F2;
    border: 2px solid var(--danger-red);
    color: #991B1B;
    font-weight: 700;
}

.fail-panel {
    margin-top: 14px;
    padding: 16px;
    background: #FEF2F2;
    border: 1.5px solid #FECACA;
    border-radius: 10px;
}

.fail-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: #991B1B;
    margin-bottom: 12px;
}

.file-upload {
    position: relative;
    border: 2px dashed var(--border-grey);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.file-upload.compact {
    padding: 16px;
}

.file-upload:hover {
    border-color: var(--primary-blue);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.upload-icon {
    font-size: 28px;
}

.file-upload-label span:nth-child(2) {
    font-size: 14px;
    font-weight: 500;
    color: var(--mid-grey);
}

.confirm-box {
    background: var(--light-grey);
    border: 1.5px solid var(--border-grey);
    border-radius: 10px;
    padding: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--primary-blue);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.submit-btn:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.submit-btn:active {
    background: var(--primary-blue-active);
}

.submit-btn:disabled {
    background: #D1D5DB;
    color: #9CA3AF;
    cursor: not-allowed;
}

.btn-secondary-submit {
    background: var(--light-grey);
    color: var(--dark-charcoal);
    border: 1px solid var(--border-grey);
}

.btn-secondary-submit:hover {
    background: var(--border-grey);
}

.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 8px 0;
    color: var(--mid-grey);
    font-size: 14px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-grey);
}

.login-divider span {
    padding: 0 16px;
}

.login-password-toggle {
    text-align: center;
    font-size: 14px;
    color: var(--mid-grey);
    margin: 16px 0 4px;
}

.login-faq-link {
    text-align: center;
    margin-top: 16px;
}

.login-footer {
    text-align: center;
    font-size: 13px;
    color: var(--mid-grey);
    margin-top: 24px;
    font-style: italic;
}

.forgot-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

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

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-grey);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 13px;
    color: var(--mid-grey);
    flex-shrink: 0;
    margin-right: 12px;
}

.summary-value {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-grey);
}

.result-card:last-child {
    border-bottom: none;
}

.result-info {
    display: flex;
    flex-direction: column;
}

.result-location {
    font-size: 14px;
    font-weight: 600;
}

.result-type {
    font-size: 12px;
    color: var(--mid-grey);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.status-working {
    background: #DCFCE7;
    color: #166534;
}

.status-not-working {
    background: #FEE2E2;
    color: #991B1B;
}

.fail-detail-box {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0 12px;
}

.fail-detail-row {
    font-size: 13px;
    margin-bottom: 6px;
}

.fail-detail-row:last-child {
    margin-bottom: 0;
}

.fail-label {
    font-weight: 600;
    color: var(--mid-grey);
    margin-right: 4px;
}

.fail-photo {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid var(--border-grey);
}

.confirmation-status {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.confirmation-status.confirmed {
    background: #DCFCE7;
    color: #166534;
}

.confirmation-status.not-confirmed {
    background: #FEE2E2;
    color: #991B1B;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.btn {
    display: block;
    text-align: center;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.btn-primary:active {
    background: var(--primary-blue-active);
}

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

.btn-secondary:hover {
    background: #F3F6FF;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 12px 20px;
}

.btn-whatsapp:hover {
    background-color: #1EBE5B;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-whatsapp:active {
    background-color: #128C7E;
}

.btn-sms {
    background-color: #5B6ACD;
    color: #fff;
    border: none;
    cursor: pointer;
}

.btn-sms:hover {
    background-color: #4A58B5;
}

.btn-email {
    background-color: #6c757d;
    color: #fff;
    border: none;
    cursor: pointer;
}

.btn-email:hover {
    background-color: #5a6268;
}

.send-step-heading {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--dark-grey);
}

.send-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.send-btn {
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 8px;
}

.send-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 20px 0 12px 0;
}

.send-or-label {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-grey);
    margin: 0 0 8px 0;
}

.login-outer,
.page-center-outer {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-center-inner {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 8px;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.login-title {
    margin: 0 auto;
}

.login-card-container {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
}

@media (max-width: 600px) {
    .login-outer {
        min-height: calc(100vh - 80px);
    }
    .page-center-outer {
        min-height: auto;
        display: flex;
        align-items: flex-start;
        padding-top: 40px;
    }
    .login-card-container {
        margin-top: 0;
        margin-bottom: 0;
        padding: 20px;
        border: none;
        box-shadow: none;
    }
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert ul {
    margin: 0;
    padding-left: 18px;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.back-link {
    display: block;
    text-align: left;
    font-size: 13px;
    color: var(--mid-grey);
    text-decoration: none;
    margin-bottom: 8px;
    font-weight: 400;
}

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

.top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.btn-link {
    font-size: 14px;
    color: var(--mid-grey);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--dark-charcoal);
    text-decoration: underline;
}

.property-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-grey);
    transition: border-color 0.2s;
}

.property-card:hover {
    border-color: var(--primary-blue);
}

.property-card-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.property-card-info p {
    font-size: 13px;
    color: var(--mid-grey);
}

.property-card .arrow {
    font-size: 24px;
    color: #D1D5DB;
    font-weight: 300;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--mid-grey);
    font-size: 14px;
}

.empty-state-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: 10px;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

.link-box {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.link-input {
    flex: 1;
    font-size: 13px !important;
    padding: 10px !important;
    background: var(--light-grey) !important;
    color: var(--dark-charcoal);
}

.btn-copy {
    padding: 10px 16px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-copy:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.share-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 8px;
}

.share-primary-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    transition: background 0.15s, box-shadow 0.15s;
}

.share-primary-btn:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.message-box {
    margin-bottom: 4px;
}

.message-box textarea {
    width: 100%;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px;
    background: var(--light-grey);
    color: var(--dark-charcoal);
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    resize: none;
    cursor: default;
}

.helper-text {
    font-size: 12px;
    color: var(--mid-grey);
    text-align: center;
    margin-top: 10px;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    width: 100%;
}

.btn-whatsapp:hover {
    background: #1fb855;
}

.alarm-list {
    margin-bottom: 16px;
}

.alarm-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-grey);
}

.alarm-list-item:last-child {
    border-bottom: none;
}

.alarm-list-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alarm-list-label {
    font-size: 16px;
    font-weight: 600;
}

.alarm-list-type {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.alarm-list-detail {
    font-size: 12px;
    color: var(--mid-grey);
    font-weight: 400;
}

.type-smoke {
    background: #DBEAFE;
    color: #1E40AF;
}

.type-heat {
    background: #FEF3C7;
    color: #92400E;
}

.type-co {
    background: #FEE2E2;
    color: #991B1B;
}

.btn-delete {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-grey);
    background: var(--white);
    color: var(--mid-grey);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-delete:hover {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FECACA;
}

.add-alarm-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--light-grey);
}

.add-alarm-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.add-alarm-input {
    flex: 1;
}

.add-alarm-select {
    width: 110px;
    flex-shrink: 0;
}

.empty-hint {
    font-size: 13px;
    color: var(--mid-grey);
    text-align: center;
    padding: 12px 0;
}

.logbook-controls {
    flex-wrap: nowrap;
}
@media (max-width: 600px) {
    .logbook-controls {
        flex-wrap: wrap;
    }
}

.alarm-type-toggle {
    display: flex;
    border: 1.5px solid var(--border-grey);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.alarm-type-btn {
    flex: 1;
    padding: 0 18px;
    height: 44px;
    border: none;
    border-right: 1px solid var(--border-grey);
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #374151;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.alarm-type-btn:last-child {
    border-right: none;
}
.alarm-type-btn.active {
    background: #EEF2FF;
    color: #2F5BFF;
    font-weight: 700;
}
.alarm-type-btn:hover:not(.active) {
    background: #f9fafb;
}

.property-info-box {
    background: var(--light-grey);
    border: 1.5px solid var(--border-grey);
}

.finish-btn {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 16px;
    padding: 16px;
    font-size: 16px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #DCFCE7;
    color: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.status-screen-icon {
    width: 72px;
    height: 72px;
    background: #DCFCE7;
    color: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.status-screen-icon.expired {
    background: #FEF3C7;
    color: #92400E;
}

.status-message {
    font-size: 15px;
    color: var(--dark-charcoal);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 16px;
}

.status-hint {
    font-size: 13px;
    color: var(--mid-grey);
    text-align: center;
    line-height: 1.5;
}

.link-status {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.link-status-pending {
    background: #DBEAFE;
    color: #1E40AF;
}

.link-status-completed {
    background: #DCFCE7;
    color: #166534;
}

.link-status-expired {
    background: #FEF3C7;
    color: #92400E;
}

.fail-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--danger-red);
    color: white;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.attention-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--warning-amber);
    color: white;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.result-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.result-pass {
    background: #DCFCE7;
    color: #166534;
}

.result-fail {
    background: #FEE2E2;
    color: #991B1B;
}

.result-attention {
    background: #FFEDD5;
    color: #111;
    font-weight: 700;
}

.alarm-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-grey);
}

.alarm-result-row:last-of-type {
    border-bottom: none;
}

.alarm-result-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alarm-result-label {
    font-weight: 600;
    font-size: 15px;
}

.failure-detail {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 4px 0 4px;
}

.failure-detail-row {
    display: flex;
    gap: 8px;
    padding: 4px 0;
    font-size: 14px;
}

.failure-detail-label {
    font-weight: 600;
    color: var(--mid-grey);
    min-width: 60px;
}

.failure-photo {
    margin-top: 8px;
}

.failure-photo img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-grey);
}

.declaration-confirmed {
    background: #DCFCE7;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.signed-line {
    font-size: 14px;
    color: var(--dark-charcoal);
    margin-top: 10px;
    font-weight: 500;
}

@media (max-width: 400px) {
    .container {
        padding: 12px;
    }

    h1 {
        font-size: 20px;
    }

    .form-section, .summary-section {
        padding: 16px;
    }

    .add-alarm-row {
        flex-direction: column;
    }

    .add-alarm-select {
        width: 100%;
    }
}

.status-banner {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #111;
}

.status-banner-completed,
.status-banner-all-clear {
    background: #DCFCE7;
    border: 1px solid #BBF7D0;
}

.status-banner-pending {
    background: #FFEDD5;
    border: 1px solid #FDBA74;
}

.status-banner-expired {
    background: #FEE2E2;
    border: 1px solid #FECACA;
}

.status-banner-attention {
    background: #FFEDD5;
    border: 1px solid #FB923C;
}

.status-banner-attention::before {
    background: #EA580C;
}

.attention-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--primary-blue);
    margin-top: 6px;
    text-decoration: underline;
}

.attention-link:hover {
    color: var(--primary-blue-hover);
}

.btn-outline {
    background: var(--white);
    color: var(--dark-charcoal);
    border: 1px solid #D1D5DB;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.btn-outline:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

.section-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 32px 0 20px 0;
}

.status-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.btn-link-action {
    background: none;
    border: none;
    color: var(--dark-charcoal);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 6px 0;
    width: 100%;
    text-align: center;
    font-weight: 500;
}

.btn-link-action:hover {
    color: var(--mid-grey);
}

.section-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin: 28px 0 8px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--primary-blue);
}

.setup-instruction {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 12px;
    line-height: 1.6;
}

.container:has(.dashboard-table-wrap) {
    max-width: 960px;
}

.container:has(.dash-list) {
    max-width: 960px;
}

.dashboard-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
    -webkit-overflow-scrolling: touch;
}

.col-action {
    min-width: 160px;
    white-space: nowrap;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-grey);
}

.dashboard-table thead th {
    background: var(--light-grey);
    padding: 12px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--mid-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-grey);
}

.dashboard-table tbody td {
    padding: 18px 14px;
    border-bottom: 1px solid #9CA3AF;
    vertical-align: middle;
    font-size: 14px;
}

.dashboard-table tbody tr:hover td {
    background: #F9FAFB;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.dash-prop-cell {
    display: flex;
    flex-direction: column;
}

.dash-prop-name-link {
    font-weight: 700;
    font-size: 14px;
    color: var(--dark-charcoal) !important;
    text-decoration: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s, box-shadow 0.15s;
}

.dash-prop-pill {
    background: none;
    color: #111;
    padding: 0;
    border-radius: 0;
    display: inline;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}

.dash-prop-pill:hover {
    text-decoration: underline;
    box-shadow: none;
    background: none;
}

.dash-prop-pill:active {
    background: none;
    box-shadow: none;
}

.dash-prop-name-link:hover {
    color: var(--dark-charcoal) !important;
}

.dash-prop-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-prop-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--dark-charcoal);
}

.dash-chevron {
    font-size: 20px;
    color: #D1D5DB;
    font-weight: 300;
    line-height: 1;
}

.dash-prop-link:hover .dash-chevron {
    color: var(--primary-blue);
}

.dash-prop-addr {
    font-size: 13px;
    color: var(--mid-grey);
    margin-top: 2px;
}

.dash-prop-freq {
    font-size: 12px;
    color: var(--mid-grey);
    margin-top: 2px;
    font-weight: 600;
}

.dash-period-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

/* Per-row alignment — alarm and lighting rows sit naturally in their own <tr> */
.dash-row-alarm td,
.dash-row-lighting td {
    vertical-align: middle;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* When a lighting row follows, suppress bottom border on the status/date/history cells
   so the intra-property divider is the only line shown */
.dash-row-has-el td.col-status,
.dash-row-has-el td.col-lasttest,
.dash-row-has-el td.col-history {
    border-bottom: none;
}

/* Lighting row: light divider between alarm and lighting */
.dash-row-lighting td {
    border-top: 1px solid #e5e7eb;
}

/* Hover state should cover both rows of a property as one unified surface.
   1. Alarm row hovered → also highlight adjacent lighting row.
   2. Lighting row hovered → also highlight the preceding alarm row (via :has). */
.dash-row-alarm:hover td,
.dash-row-alarm:hover + .dash-row-lighting td,
.dash-row-lighting:hover td,
tr:has(+ .dash-row-lighting:hover) td {
    background: #F9FAFB;
}

/* Stack label/period spans as blocks, but preserve inline-flex on status badges */
.dash-row-alarm td.col-status > .dash-system-label,
.dash-row-alarm td.col-status > .dash-period-label,
.dash-row-lighting td.col-status > .dash-system-label,
.dash-row-lighting td.col-status > .dash-period-label {
    display: block;
}

.dash-row-alarm td.col-status > .dash-status,
.dash-row-lighting td.col-status > .dash-status {
    display: inline-flex;
}

.dash-row-alarm td.col-history > *,
.dash-row-lighting td.col-history > * {
    display: block;
}

/* Bold dark system label ("Alarm" / "Lighting") */
.dash-system-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.dash-system-label img {
    height: 16px;
    width: auto;
    display: inline-block;
    flex-shrink: 0;
}

/* Mobile card: wraps system label above the period label */
.dash-card-system-label-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dash-card-row-el {
    margin-top: 8px;
}

.dash-status {
    display: inline-flex;
    align-items: center;
    gap: var(--dot-gap);
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: #222;
}

.dash-status::before {
    content: '';
    display: inline-block;
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-status-completed,
.dash-status-all-clear {
    background: none;
}

.dash-status-completed::before,
.dash-status-all-clear::before {
    background: var(--success-green);
}

.dash-status-attention {
    background: none;
}

.dash-status-attention::before {
    background: #EA580C;
}

.dash-status-not-completed {
    background: none;
}

.dash-status-not-completed::before {
    background: var(--danger-red);
}

.dash-status-pending {
    background: none;
    margin-top: 4px;
}

.dash-status-pending::before {
    background: #2F5BFF;
}

/* Emergency Lighting secondary status badges — smaller, secondary style */
.dash-el-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    color: #111;
}

.dash-el-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-el-clear {
    background: #DCFCE7;
}

.dash-el-clear::before {
    background: var(--success-green);
}

.dash-el-attention {
    background: #FFEDD5;
}

.dash-el-attention::before {
    background: #EA580C;
}

.dash-el-overdue {
    background: #FEE2E2;
}

.dash-el-overdue::before {
    background: var(--danger-red);
}

.dash-lasttest-group {
    display: flex;
    flex-direction: column;
}

.dash-lasttest-slot {
    display: flex;
    align-items: center;
    min-height: 66px;
}

.dash-lasttest-slot-el {
    border-top: 1px solid #f0f0f0;
}

.dash-lasttest-row {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dash-lasttest {
    font-size: 13px;
    color: var(--mid-grey);
}

.dash-lasttest-pending {
    color: #2F5BFF;
    font-weight: 600;
}

/* Simple vertical stack for two rows of dots (no labels) */
.dash-dots-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Two-section history column: alarm section then EL section */
.dash-history-group {
    display: flex;
    flex-direction: column;
}

.dash-history-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-history-section-el {
    margin-top: 10px;
}

/* Grid aligns label + dots rows so each column is exactly above the next */
.dash-dots-grid {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    row-gap: 5px;
    column-gap: 8px;
}

/* Short row label ("Alarm" / "Lighting") */
.dash-dots-row-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    color: var(--mid-grey);
    white-space: nowrap;
}

.dash-card-row-dots {
    align-items: flex-start;
}

.dash-dots {
    display: flex;
    gap: var(--dot-gap);
    align-items: center;
}

.dash-dot {
    display: inline-block;
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    flex-shrink: 0;
}

.dash-dot-green { background: var(--success-green); }
.dash-dot-amber { background: #EA580C; }
.dash-dot-red { background: var(--danger-red); }
.dash-dot-grey { background: #D1D5DB; }

.dash-dots-label {
    display: block;
    font-size: 11px;
    color: var(--dark-charcoal);
    margin-bottom: 4px;
    font-weight: 600;
}

.dash-dots-hint {
    display: block;
    font-size: 11px;
    color: var(--mid-grey);
    margin-top: 4px;
}

.btn-dash-view {
    background: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.btn-dash-view:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-dash-send {
    background: var(--white);
    color: var(--dark-charcoal);
    border: 1.5px solid var(--border-grey);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}

.btn-dash-send:hover {
    border-color: var(--primary-blue);
    background: #F3F6FF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.dashboard-cards {
    display: none;
}

.dash-card {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border-grey);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.dash-card:hover {
    border-color: var(--primary-blue);
}

.dash-card-header {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-bottom: 1px solid var(--light-grey);
    text-decoration: none;
    color: inherit;
}

.dash-card-header {
    cursor: default;
}

.dash-card-body {
    padding: 0 16px;
}

/* Each system (Alarm / Lighting) is its own self-contained section */
.dash-card-section {
    padding: 12px 0;
}

.dash-card-section-el {
    border-top: 1px solid #e5e7eb;
}

/* Top line: label+period left, status badge+date right */
.dash-card-section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.dash-card-section-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-card-section-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* Dots hint sits below all sections */
.dash-card-body > .dash-dots-hint {
    display: block;
    padding-bottom: 12px;
}

.dash-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.dash-card-label {
    font-size: 13px;
    color: var(--mid-grey);
    font-weight: 500;
}

.dash-card-action {
    padding: 12px 16px;
    border-top: 1px solid var(--light-grey);
}

@media (max-width: 700px) {
    .logo-wrap {
        gap: 4px;
        margin: 0 auto 2px;
    }
    img.app-logo {
        max-height: 36px !important;
    }
    .app-logo-text {
        font-size: 18px;
    }
    .logo-text {
        font-size: 13px;
        font-weight: 800;
        letter-spacing: -0.3px;
    }
    .home-hero {
        padding: 40px 0 48px;
        gap: 32px;
    }
    .home-hero-title {
        font-size: 26px;
        letter-spacing: -0.3px;
    }
    .home-step-t {
        font-size: 16px;
    }
    .home-cta-btn {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }
    header {
        padding: 2px 0 2px;
    }
    .dashboard-table-wrap {
        display: none;
    }

    .dashboard-cards {
        display: block;
    }

    .login-faq-link,
    .login-footer,
    .login-divider {
        display: none;
    }
}

.file-selected-indicator {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 10px;
    background: #DCFCE7;
    border: 1px solid #BBF7D0;
    border-radius: 6px;
    font-size: 13px;
    color: #166534;
}

.file-selected-check {
    font-weight: bold;
    color: var(--success-green);
    font-size: 15px;
}

.faq-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.faq-search-wrap {
    position: relative;
}

.faq-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--mid-grey);
    pointer-events: none;
}

.faq-search {
    width: 100%;
    padding: 12px 12px 12px 38px;
    border: 1.5px solid var(--border-grey);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.2s;
}

.faq-search:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.faq-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.faq-toggle-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--mid-grey);
    cursor: pointer;
    padding: 4px 2px;
    font-family: inherit;
    transition: color 0.2s;
}

.faq-toggle-btn:hover {
    color: var(--dark-charcoal);
}

.faq-controls-sep {
    color: var(--border-grey);
    font-size: 13px;
}

.faq-category {
    margin-bottom: 20px;
}

.faq-category-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-blue);
}

.faq-category .faq-item:first-of-type {
    border-top: none;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 0;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--primary-blue);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item[hidden] {
    display: none;
}

.faq-question {
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 14px 16px;
    color: var(--dark-charcoal);
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::before {
    content: '+';
    display: inline-block;
    width: 22px;
    min-width: 22px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    flex-shrink: 0;
    transition: transform 0.2s;
}

details[open] .faq-question::before {
    content: '\2212';
}

.faq-answer {
    font-size: 14px;
    color: var(--mid-grey);
    line-height: 1.7;
    padding: 0 16px 14px 42px;
    white-space: pre-line;
}

.faq-no-results {
    text-align: center;
    padding: 32px 20px;
    color: var(--mid-grey);
    font-size: 14px;
}

.faq-category[hidden] {
    display: none;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-grey);
    font-size: 13px;
}

.admin-table thead th {
    background: var(--light-grey);
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--mid-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-grey);
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--light-grey);
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: #F3F6FF;
}

.logbook-table {
    font-size: 13px;
}

.logbook-table thead th {
    font-size: 12px;
    padding: 8px 6px;
    white-space: nowrap;
}

.logbook-table tbody td {
    padding: 6px;
    font-size: 12px;
    vertical-align: top;
}

@media (max-width: 900px) {
    .logbook-table thead { display: none; }
    .logbook-table tbody tr {
        display: block;
        padding: 12px;
        border-bottom: 1px solid var(--border-grey);
        margin-bottom: 8px;
    }
    .logbook-table tbody td {
        display: block;
        text-align: left;
        padding: 3px 0;
        border: none;
    }
    .logbook-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 120px;
        color: var(--mid-grey);
        font-size: 11px;
    }
}

.admin-sub {
    font-size: 12px;
    color: var(--mid-grey);
}

.role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.role-admin {
    background: #F3F6FF;
    color: var(--primary-blue);
}

.role-landlord {
    background: var(--light-grey);
    color: var(--mid-grey);
}

.status-badge.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.status-completed {
    background: #DCFCE7;
    color: #166534;
}

.status-badge.status-expired {
    background: #FEE2E2;
    color: #991B1B;
}

.dashboard-title {
    font-size: 26px;
    font-weight: 800;
    display: inline-block;
}

.section-subtitle {
    font-size: 13px;
    color: var(--mid-grey);
    margin-bottom: 14px;
}

.status-banner-completed::before,
.status-banner-all-clear::before,
.status-banner-pending::before,
.status-banner-expired::before,
.status-banner-attention::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.status-banner-completed::before,
.status-banner-all-clear::before {
    background: var(--success-green);
}

.status-banner-pending::before {
    background: var(--warning-amber);
}

.status-banner-expired::before {
    background: var(--danger-red);
}

.compliance-note {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-charcoal);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

.report-disclaimer {
    font-size: 12px;
    color: var(--mid-grey);
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

.report-summary-message {
    font-size: 15px;
    color: var(--mid-grey);
    margin-top: 4px;
}

.status-card {
    border: 1.5px solid var(--border-grey);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.status-card:hover {
    border-color: var(--border-grey);
}

.home-body {
    background: #FAFBFC;
}

.home-page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

.home-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 24px 0 0;
}

.home-nav-left {
    /* spacer to balance the login button */
}

.home-nav-right {
    display: flex;
    justify-content: flex-end;
}

.home-login-btn {
    font-size: 14px;
    padding: 8px 20px;
}

.home-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 64px 0 72px;
}

.home-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 580px;
}

.home-hero-image {
    width: 100%;
    max-width: 860px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-charcoal);
    line-height: 1.2;
    margin: 0 0 32px;
    letter-spacing: -0.5px;
}

.home-hero-title::after {
    display: none;
}

.home-hero-subtitle {
    font-size: 17px;
    color: #4B5563;
    font-weight: 400;
    margin: 0 0 32px;
    line-height: 1.6;
}

.home-steps-block {
    margin: 0 0 44px;
    width: 100%;
}

.home-steps-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #111827;
    margin: 0 0 20px;
}

.home-steps-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.home-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.home-step-n {
    font-size: 20px;
    font-weight: 700;
    color: #2F5BFF;
    line-height: 1;
}

.home-step-t {
    font-size: 17px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.4;
    text-align: center;
}

.home-cta-btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 17px;
    font-weight: 700;
}

.home-no-payment {
    margin-top: 12px;
    font-size: 13px;
    color: #9CA3AF;
    text-align: center;
}

.home-preview-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
    display: block;
}

.home-how-section {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 16px;
    border: 1px solid #E8E8E8;
    text-align: left;
    padding: 0;
}

.card-inner {
    padding: 24px;
}

.home-how-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin: 0;
}

.home-how-divider {
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
    border: none;
    margin: 12px 0 18px 0;
}

.home-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.home-step:last-child {
    margin-bottom: 0;
}

.home-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.home-step-text {
    font-size: 15px;
    color: var(--dark-charcoal);
    line-height: 34px;
    margin: 0;
}

.home-bottom-cta {
    text-align: center;
    padding: 16px 0 40px;
}

.home-cta {
    display: inline-block;
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 700;
}

.home-trust-line {
    font-size: 12px;
    color: #C4CACD;
    margin-top: 10px;
}

.home-section {
    background: var(--white);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #E8E8E8;
    text-align: left;
}

.home-section-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-blue);
}

.msg-preview-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    color: var(--mid-grey);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.msg-preview-toggle:hover {
    color: var(--brand-blue);
}
.msg-preview-chevron {
    font-size: 11px;
    transition: transform 0.15s;
}

.message-preview {
    margin-top: 16px;
    background: #f7f7f7;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 16px;
}

.message-preview-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin: 0 0 2px 0;
}

.message-preview-subtitle {
    font-size: 12px;
    color: var(--mid-grey);
    margin: 0 0 10px 0;
}

.message-preview-text {
    font-family: inherit;
    font-size: 14px;
    color: var(--dark-charcoal);
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bullet-wrap {
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
}

.home-benefits {
    list-style: none;
    padding-left: 22px;
    margin: 0;
    list-style-position: outside;
}

.home-benefits li {
    font-size: 15px;
    color: var(--dark-charcoal);
    line-height: 1.6;
    padding: 8px 0;
    border-bottom: 1px solid var(--light-grey);
    padding-left: 24px;
    position: relative;
}

.home-benefits li:last-child {
    border-bottom: none;
}

.home-benefits li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 700;
}

.home-cta-bottom {
    text-align: center;
    padding: 8px 0 20px;
}

.magic-link-panel {
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.magic-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 14px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.magic-copy-btn {
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    min-height: 48px;
    transition: background 0.15s, box-shadow 0.15s;
}

.magic-copy-btn:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.magic-url-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    background: var(--white);
    border: 1px solid var(--border-grey);
    border-radius: 6px;
    padding: 4px 4px 4px 10px;
}

.magic-url-field {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--mid-grey);
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 0;
    font-family: inherit;
}

.magic-url-copy-icon {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--border-grey);
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    color: var(--mid-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.magic-url-copy-icon:hover {
    background: var(--light-grey);
}

.magic-panel-tip {
    font-size: 13px;
    color: var(--mid-grey);
    margin-top: 10px;
    font-weight: 500;
}

.magic-heading-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-grey);
}

.magic-heading-row h2 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.magic-helper {
    font-size: 13px;
    color: var(--mid-grey);
    font-weight: 400;
}

.login-new-user-hint {
    font-size: 13px;
    color: var(--mid-grey);
    margin-bottom: 6px;
    font-weight: 400;
}

.login-next-hint {
    font-size: 13px;
    color: var(--mid-grey);
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

.login-micro-benefits {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    text-align: center;
}

.login-micro-benefits span {
    font-size: 13px;
    color: var(--mid-grey);
    line-height: 1.5;
}

.login-no-payment {
    font-size: 12px;
    color: var(--mid-grey);
}

.setup-confirm-card {
    border: 1px solid var(--border-grey);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.login-both-email-hint {
    text-align: center;
    font-size: 12px;
    color: var(--mid-grey);
    margin-top: -4px;
    margin-bottom: 12px;
}

.empty-state-label {
    text-align: center;
    font-size: 13px;
    color: var(--mid-grey);
    margin-top: 28px;
    margin-bottom: 8px;
}

.empty-state-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.empty-state-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 14px;
}

.empty-state-main {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 8px;
}

.empty-state-detail {
    font-size: 14px;
    color: var(--dark-charcoal);
    line-height: 1.6;
    margin-bottom: 10px;
}

.feedback-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 900;
    transition: background 0.15s, box-shadow 0.15s;
}

.feedback-fab:hover {
    background: var(--primary-blue-hover);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}

.feedback-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.feedback-modal-overlay.active {
    display: flex;
}

.feedback-modal {
    background: var(--white);
    border-radius: 12px;
    padding: 28px 24px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.feedback-modal h3 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
}

.feedback-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--mid-grey);
    line-height: 1;
}

.feedback-modal-close:hover {
    color: var(--dark-charcoal);
}

.feedback-thanks {
    text-align: center;
    font-size: 14px;
    color: var(--success-green);
    padding: 20px 0;
    font-weight: 500;
}

.feedback-helper-text {
    font-size: 12px;
    color: var(--mid-grey);
    margin-bottom: 12px;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--danger-red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    margin-left: 2px;
    vertical-align: middle;
    line-height: 1;
}

.fb-unread {
    background: #F3F6FF;
}

.fb-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-blue);
}

.empty-state-supporting {
    font-size: 13px;
    color: var(--mid-grey);
    line-height: 1.5;
    margin-top: 6px;
}

.btn-dash-delete {
    background: none;
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 4px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.btn-dash-delete:hover {
    background: var(--danger-red);
    color: var(--white);
}

.btn-danger {
    background: var(--danger-red);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-danger:hover {
    background: #b91c1c;
}

.delete-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.delete-modal-overlay.active {
    display: flex;
}

.delete-modal {
    background: var(--white);
    border-radius: 12px;
    padding: 28px 24px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.delete-modal h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-charcoal);
}

.delete-modal p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--mid-grey);
    margin-bottom: 20px;
}

.delete-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.faq-contact {
    margin-top: 32px;
    padding: 20px;
    background: var(--light-grey);
    border-radius: 10px;
    text-align: center;
}

.faq-contact h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.faq-contact a {
    color: var(--dark-charcoal);
    font-weight: 600;
}

.guide-intro {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--mid-grey);
}

.guide-intro p {
    margin-bottom: 6px;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.guide-step {
    padding: 24px;
}

.guide-step-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 12px;
}

.guide-step-context {
    font-size: 14px;
    color: var(--mid-grey);
    margin-bottom: 8px;
}

.guide-bullets {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 12px;
}

.guide-bullets li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--dark-charcoal);
    margin-bottom: 4px;
}

.guide-hint {
    font-size: 13px;
    color: var(--mid-grey);
    margin-bottom: 6px;
    padding-left: 4px;
}

.guide-screenshots {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.guide-img {
    max-width: 340px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-grey);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 700px) {
    .guide-img {
        max-width: 100%;
    }
    .guide-step {
        padding: 16px;
    }
}

.nav-link-active {
    font-weight: 700;
}

.site-footer {
    border-top: 1px solid #e5e5e5;
    margin-top: 60px;
    padding: 32px 20px 28px;
    text-align: center;
}
.footer-inner {
    max-width: 640px;
    margin: 0 auto;
}
.footer-company {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin: 0 0 4px;
}
.footer-detail {
    font-size: 12px;
    color: #aaa;
    margin: 0 0 2px;
}
.footer-links {
    margin-top: 12px;
    font-size: 12px;
    color: #aaa;
}
.footer-links a {
    color: #888;
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
    color: #555;
}
.footer-sep {
    margin: 0 6px;
    color: #ccc;
}

.legal-page {
    max-width: 700px;
    margin-bottom: 40px;
}
.legal-page h1 {
    font-size: 24px;
    margin-bottom: 8px;
}
.legal-page h2 {
    font-size: 17px;
    margin-top: 28px;
    margin-bottom: 8px;
    color: var(--dark-charcoal);
}
.legal-page p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 8px;
}
.legal-page ul {
    margin: 8px 0 12px 20px;
    padding: 0;
}
.legal-page li {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 4px;
}
.legal-page a {
    color: var(--primary-blue);
}
.legal-operator {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.remedial-section {
    margin-top: 4px;
    margin-bottom: 16px;
    padding: 16px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.remedial-state-no-action-recorded {
    border-color: #F5A5A5;
    background: #FEF2F2;
}
.remedial-state-in-progress {
    border-color: #FDBA74;
    background: #FFF7ED;
}
.remedial-state-resolved {
    border-color: #86EFAC;
    background: #F0FDF4;
}
.remedial-status-line {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin: 0 0 12px 0;
    line-height: 1.5;
}
.remedial-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin: 0 0 12px 0;
}
.remedial-landlord-tag {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}
.remedial-timeline {
    margin-bottom: 12px;
}
.remedial-entry {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}
.remedial-entry-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.remedial-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.remedial-status-not-started {
    background: #f8d7da;
    color: #721c24;
}
.remedial-status-in-progress {
    background: #fff3cd;
    color: #856404;
}
.remedial-status-completed {
    background: #d4edda;
    color: #155724;
}
.remedial-date {
    font-size: 13px;
    color: #555;
}
.remedial-entry-row {
    display: flex;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.5;
}
.remedial-entry-label {
    font-weight: 600;
    color: #555;
    min-width: 90px;
    flex-shrink: 0;
}
.remedial-entry-meta {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
}
.remedial-empty {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px 0;
    font-style: italic;
}
.remedial-add-btn {
    font-size: 15px;
    padding: 12px 24px;
    background: #2F5BFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    text-align: center;
    letter-spacing: 0.2px;
}
.remedial-add-btn:hover {
    background: #2448D8;
}
.remedial-add-btn:active {
    background: #1E3FC2;
}
.remedial-form-wrapper {
    margin-top: 12px;
    padding: 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.remedial-form-wrapper .form-group {
    margin-bottom: 10px;
}
.remedial-form-wrapper label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}
.remedial-form-wrapper select,
.remedial-form-wrapper input[type="text"],
.remedial-form-wrapper input[type="date"],
.remedial-form-wrapper textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.remedial-save-btn {
    font-size: 14px;
    padding: 8px 20px;
    margin-top: 4px;
}

.info-banner-neutral {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    padding: 28px 24px;
    text-align: center;
}
.info-banner-message {
    font-size: 15px;
    color: var(--dark-charcoal);
    margin-bottom: 12px;
    line-height: 1.6;
}
.info-banner-hint {
    font-size: 13px;
    color: var(--mid-grey);
    margin: 0;
}

.allclear-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #166534;
    margin-top: 6px;
    text-decoration: underline;
}
.allclear-link:hover {
    color: #14532D;
}

.btn-view-report {
    background: #1D4ED8;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-view-report:hover {
    background: #1E40AF;
}

.zone-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.zone-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.zone-option input[type="radio"] {
    display: none;
}
.zone-label {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.15s;
    background: #fff;
}
.zone-option input[type="radio"]:checked + .zone-label {
    border-color: #2F5BFF;
    background: #EEF2FF;
    color: #1E3A8A;
}

.panel-question {
    margin-bottom: 20px;
}
.panel-question > label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}
.yn-options {
    display: flex;
    gap: 12px;
}
.yn-option {
    flex: 1;
    cursor: pointer;
}
.yn-option input[type="radio"] {
    display: none;
}
.yn-label {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.15s;
    background: #fff;
}
.yn-option input[type="radio"]:checked + .yn-label.yn-yes {
    border-color: #16A34A;
    background: #DCFCE7;
    color: #14532D;
}
.yn-option input[type="radio"]:checked + .yn-label.yn-no {
    border-color: #DC2626;
    background: #FEE2E2;
    color: #991B1B;
}

.section-help {
    color: #64748B;
    font-size: 14px;
    margin: -4px 0 16px 0;
}

.system-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.system-type-option {
    flex: 1;
    cursor: pointer;
}
.system-type-option input[type="radio"] {
    display: none;
}
.system-type-label {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
    background: #fff;
}
.system-type-option input[type="radio"]:checked + .system-type-label {
    border-color: #2F5BFF;
    background: #EEF2FF;
    color: #1E3A8A;
    font-weight: 600;
}

.zone-list {
    margin: 16px 0;
}
.zone-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
}
.zone-list-item-label {
    font-weight: 500;
    font-size: 15px;
}
.zone-list-item .btn-delete-sm {
    color: #DC2626;
    background: none;
    border: none;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
}
.zone-list-item .btn-delete-sm:hover {
    text-decoration: underline;
}

.add-zone-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.add-zone-form input[type="text"] {
    flex: 1;
}
.add-zone-form .btn {
    white-space: nowrap;
}

.zone-last-tested {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #64748B;
    margin-top: 3px;
}
.zone-option input[type="radio"]:checked + .zone-label .zone-last-tested {
    color: #6B7FCC;
}

.zone-same-warning {
    margin-top: 12px;
    padding: 12px 16px;
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    border-radius: 8px;
}
.zone-same-warning p {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #92400E;
}
.zone-warning-actions {
    display: flex;
    gap: 8px;
}
.zone-warning-actions .btn {
    font-size: 13px;
    padding: 6px 14px;
}


.issue-summary-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
}
.issue-summary-list li {
    margin-bottom: 6px;
    line-height: 1.5;
    color: #333;
}

/* ── New responsive dashboard list ─────────────────────────────────────── */
.dash-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.dash-list-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 16px;
}

.dash-li-prop-link {
    font-weight: 600;
    font-size: 15px;
    color: #111;
    text-decoration: none;
    line-height: 1.4;
    display: block;
}
.dash-li-prop-link:hover {
    color: var(--brand-blue);
}

.dash-li-systems {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-li-system {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dash-li-sys-label {
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    min-width: 52px;
    flex-shrink: 0;
}

.dash-li-sys-status {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.dash-li-date {
    font-size: 13px;
    color: #9CA3AF;
}

.dash-li-not-installed {
    font-size: 13px;
    color: #9CA3AF;
}

.dash-li-action .btn {
    white-space: nowrap;
}

/* Tablet / desktop: single horizontal row */
@media (min-width: 700px) {
    .dash-list-item {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }

    .dash-li-prop {
        flex: 1;
        min-width: 280px;
        padding-right: 24px;
    }

    .dash-li-systems {
        flex-shrink: 0;
        flex-direction: row;
        gap: 16px;
        padding-right: 20px;
    }

    .dash-li-system {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 195px;
        flex-shrink: 0;
    }

    .dash-li-sys-status {
        flex-direction: row;
        align-items: center;
    }

    .dash-li-action {
        flex-shrink: 0;
    }
}
