:root {
    --font: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}
h1,
.pagehead h1 {
    text-transform: uppercase;
    font-weight: 850;
    letter-spacing: 0.035em;
}
h2,
.panelhead h2 {
    font-weight: 800;
}
.camera-search {
    width: 100%;
    max-width: none !important;
    min-height: 54px;
    padding: 14px 17px !important;
    border: 2px solid #2563eb !important;
    border-radius: 14px !important;

    color: #10233f;
    font-size: 16px !important;
    font-weight: 650;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
.camera-search::placeholder {
    color: #54709b;
    opacity: 1;
}
.camera-search:focus {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    border-color: #1747b8 !important;
    background: #fff !important;
}
.checklist-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 14px;
}
.selection-tools {
    display: flex;
    gap: 8px;
}
.selection-tools button,
.save-button {
    min-height: 44px;
    padding: 10px 16px;
    font-weight: 750;
}
.save-button {
    margin-left: auto;
    white-space: nowrap;
}
#clean .panel {
    border-radius: 18px;
}
#clean .camera {
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(16, 35, 63, 0.04);
}
#clean .camera.selected {
    background: #eaf2ff;
    border-color: #4d83ed;
}
#clean .station-chip {
    font-weight: 750;
}
#clean .reportbar {
    align-items: center;
}
#clean .checklist-actions {
    margin-left: auto;
}
#generate {
    min-height: 48px;
    padding-inline: 22px;
    font-weight: 800;
}
@media (max-width: 800px) {
    .pagehead {
        gap: 12px;
    }
    .pagehead h1 {
        font-size: clamp(22px, 6vw, 30px);
        line-height: 1.12;
    }
    #clean .panel {
        padding: 16px;
    }
    .checklist-control-row {
        gap: 8px;
    }
    .selection-tools {
        flex: 1;
    }
    .selection-tools button {
        flex: 1;
        padding-inline: 10px;
    }
    .save-button {
        flex: 0 0 auto;
        padding-inline: 13px;
    }
    #clean .reportbar {
        align-items: stretch;
    }
    #clean .checklist-actions {
        width: 100%;
    }
    #generate {
        width: 100%;
        min-height: 52px;
    }
    #cameraGrid.camera-grid {
        padding-top: 10px;
    }
    #clean .camera {
        min-height: 68px;
    }
}
@media (max-width: 380px) {
    .save-button {
        font-size: 12px;
        padding-inline: 9px;
    }
    .selection-tools button {
        font-size: 12px;
    }
}

#clean .field-label,
#clean .checklist-meta > label,
#clean .reportbar,
#clean .camera-group-title,
#clean .panelhead {
    border-radius: 12px;
}
#clean .field-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    margin-bottom: 10px;
    color: #173d75;
    background: #e8f1ff;
    border: 1px solid #c9dcfb;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}
#clean .field-label small {
    color: #526b8c;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}
#clean .checklist-meta > label {
    display: block;
    padding: 11px 12px;
    margin-bottom: 8px;
    color: #24466f;
    background: #f1f6fd;
    border: 1px solid #dce8f7;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}
#clean .checklist-meta input {
    margin-top: 7px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
#clean .selectionline {
    padding: 11px 13px;
    border-radius: 11px;
    background: #f0f5fb;
    color: #29496f;
    font-size: 13px;
    font-weight: 750;
}
#clean .camera-group-title {
    padding: 10px 13px;
    margin-bottom: 9px;
    color: #173d75;
    background: #e8f1ff;
    border-left: 4px solid #3478d4;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
#clean .camera-group-title small {
    color: #58708e;
    font-size: 11px;
    font-weight: 650;
    text-transform: none;
}
#clean .reportbar {
    padding: 14px;
    background: #f2f7ff;
    border: 1px solid #d8e6fa;
}
#clean .reportbar b,
#clean .panelhead h2 {
    color: #173d75;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}
#clean .panelhead {
    padding: 10px 12px;
    background: #f6f9fe;
    border: 1px solid #e1eaf6;
}
@media (max-width: 800px) {
    #clean .checklist-meta > label {
        padding: 10px;
    }
    #clean .field-label {
        font-size: 13px;
    }
}

.pagehead h1 {
    color: #172b4d;
    font-weight: 850;
    letter-spacing: 0.015em;
    line-height: 1.15;
}

.panel > .panelhead,
.panelhead {
    box-sizing: border-box;
    width: calc(100% + 40px);
    max-width: none;
    flex: 0 0 auto;
    margin: -20px -20px 18px;
    padding: 15px 20px;
    border: 1px solid #d8e4f5;
    border-left: 4px solid #3475ed;
    border-radius: 13px 13px 0 0;
    background: linear-gradient(105deg, #edf4ff 0%, #f7faff 72%, #fff 100%);
}
.panelhead h2,
.panel > h2 {
    color: #1d3557;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

#clean .field-label {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    gap: 8px;
    margin: 8px 0 12px;
    padding: 12px 15px;
    border: 1px solid #d8e4f5;
    border-left: 4px solid #3475ed;
    border-radius: 11px;
    background: linear-gradient(105deg, #edf4ff 0%, #f7faff 72%, #fff 100%);
    color: #1d3557;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0.01em;
    text-transform: none;
}
#clean .field-label small {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

#clean .camera-group-title {
    box-sizing: border-box;
    width: 100%;
    margin: 12px 0 2px;
    padding: 11px 14px;
    border: 1px solid #d8e4f5;
    border-left: 4px solid #3475ed;
    border-bottom: 1px solid #d8e4f5;
    border-radius: 10px;
    background: linear-gradient(105deg, #edf4ff 0%, #f7faff 72%, #fff 100%);
    color: #1d3557;
    font-size: 14px;
    font-weight: 800;
}
#clean .camera-group-title small {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

#clean .checklist-meta-top {
    margin: 0 0 17px;
    padding: 0 0 15px;
    border-bottom: 1px solid #e5eaf2;
    align-items: end;
}
#clean .checklist-meta-top label:first-child {
    max-width: 250px;
    color: #34445a;
    font-weight: 800;
}
#clean .checklist-meta-top label:first-child input {
    min-height: 42px;
    background: #f7f9fc;
    border: 1px solid #d9e1ec;
    border-radius: 9px;
    color: #24364d;
    font-weight: 700;
    box-shadow: none;
}
#clean .checklist-meta-top label:first-child small {
    font-size: 10px;
    color: #7b8798;
}

#clean .station-chip,
#clean .camera {
    border: 1px solid #dce4ef;
    background: #fff;
    box-shadow:
        0 2px 6px rgba(28, 53, 87, 0.07),
        0 1px 2px rgba(28, 53, 87, 0.04);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}
#clean .station-chip:hover,
#clean .camera:hover {
    transform: translateY(-2px);
    border-color: #9bb8e8;
    box-shadow:
        0 5px 12px rgba(28, 53, 87, 0.12),
        0 2px 4px rgba(28, 53, 87, 0.05);
}
#clean .station-chip.selected {
    background: #eaf2ff;
    border: 1px solid #4d83ed;
    color: #174ea6;
    box-shadow:
        inset 0 0 0 1px rgba(52, 117, 237, 0.12),
        0 3px 8px rgba(37, 99, 235, 0.12);
}
#clean .camera.selected {
    background: #eaf2ff;
    border-color: #4d83ed;
    color: #174ea6;
    box-shadow:
        inset 0 0 0 1px rgba(52, 117, 237, 0.12),
        0 3px 8px rgba(37, 99, 235, 0.12);
}
#clean .station-chip:focus-visible,
#clean .camera:focus-within {
    outline: 3px solid rgba(52, 117, 237, 0.22);
    outline-offset: 2px;
}

button:not(.nav):not(.mobile-nav button) {
    transition:
        transform 0.14s ease,
        box-shadow 0.14s ease,
        filter 0.14s ease;
}
button:not(.nav):not(.mobile-nav button):not(:disabled):hover {
    box-shadow:
        0 4px 9px rgba(25, 45, 75, 0.13),
        0 1px 2px rgba(25, 45, 75, 0.07);
}
button:not(.nav):not(.mobile-nav button):not(:disabled):active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(25, 45, 75, 0.12);
}

@media (max-width: 800px) {
    .panel > .panelhead,
    .panelhead {
        width: calc(100% + 32px);
        margin: -16px -16px 16px;
        padding: 13px 15px;
    }
    #clean .checklist-meta-top label:first-child {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #clean .station-chip,
    #clean .camera,
    button {
        transition: none !important;
    }
}

.panel > .panelhead,
.panelhead,
.panel > h2 {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 0;
    border-radius: 10px;
    background: #edf4ff;
    box-shadow: none;
}
.panelhead h2,
.panel > h2 {
    margin: 0;
    color: #1d3557;
}

#clean .field-label,
#clean .camera-group-title {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 9px;
    background: #edf4ff;
    box-shadow: none;
    color: #1d3557;
}
#clean .camera-group-title {
    grid-column: 1 / -1;
    margin: 12px 0 8px;
    padding: 12px 16px;
}

#clean .checklist-meta-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    max-width: none;
    margin: 0 0 18px;
    padding: 0 0 16px;
    border-bottom: 1px solid #e7ecf3;
    align-items: start;
}
#clean .cleaning-date-line {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    background: transparent;
    border: 0;
}
#clean .meta-caption {
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
#clean .date-time-value {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    min-height: 30px;
}
#clean .checklist-meta-top #cleanDate {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: #1d3557;
    font: 750 17px/1.35 var(--font);
    appearance: none;
    -webkit-appearance: none;
    cursor: default;
}
#clean .date-time-separator {
    color: #94a3b8;
    font-size: 13px;
}
#clean .current-clean-time {
    color: #52647d;
    font-size: 14px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
#clean .cleaner-name-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: min(100%, 420px);
    padding: 0;
    margin: 0;
    color: #34445a;
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}
#clean .cleaner-name-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid #dce4ef;
    border-radius: 9px;
    background: #fff;
    color: #24364d;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(16, 35, 63, 0.04);
}
#clean .cleaner-name-field input:focus {
    outline: 2px solid rgba(37, 99, 235, 0.15);
    border-color: #7da5ef;
}
@media (max-width: 800px) {
    #clean .checklist-meta-top {
        gap: 10px;
    }
    #clean .cleaner-name-field {
        width: 100%;
    }
    .panel > .panelhead,
    .panelhead,
    .panel > h2 {
        padding: 12px 14px;
    }
}
