.manage-panel > h2 {
    margin-bottom: 18px;
}
.manage-add-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 24px;
}
.manage-add-form input {
    min-width: 0;
}
.manage-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 0 13px;
    margin-bottom: 12px;
    border-top: 1px solid var(--line);
}
.manage-list-title {
    margin: 0 0 4px;
    color: #1d3557;
    font-size: 16px;
    font-weight: 800;
}
.manage-toolbar .search {
    width: min(360px, 45%);
    margin: 0;
}
.manage-station-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
    align-items: start;
    gap: 13px;
}
.station-manage {
    min-width: 0;
    border: 1px solid #dce4ef;
    border-radius: 13px;
    background: #fff;
    overflow: hidden;
    box-shadow:
        0 2px 7px rgba(28, 53, 87, 0.07),
        0 1px 2px rgba(28, 53, 87, 0.04);
    transition:
        box-shadow 0.16s ease,
        border-color 0.16s ease;
}
.station-manage[open] {
    border-color: #b9ccef;
    box-shadow: 0 4px 12px rgba(28, 53, 87, 0.09);
}
.station-manage[hidden] {
    display: none;
}
.station-manage-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 13px 16px;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(105deg, #f4f8ff, #fff 85%);
}
.station-manage-head::-webkit-details-marker {
    display: none;
}
.station-manage-name {
    min-width: 0;
    color: #1d3557;
    font-size: 15px;
    font-weight: 800;
    overflow-wrap: anywhere;
}
.station-manage-count {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 5px 9px;
    border-radius: 20px;
    background: #eaf1ff;
    color: #285db8;
    font-size: 11px;
    font-weight: 700;
}
.station-manage-chevron {
    color: #52709a;
    font-size: 20px;
    transition: transform 0.16s ease;
}
.station-manage[open] .station-manage-chevron {
    transform: rotate(180deg);
}
.station-manage-content {
    padding: 13px 15px 16px;
    border-top: 1px solid #e7edf6;
}
.station-manage-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}
.camera-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-height: 220px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 3px 3px 8px 1px;
    margin-top: 12px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 7px 9px;
    border: 1px solid #e1e8f2;
    border-radius: 8px;
    background: #f7f9fc;
    color: #34445a;
    font-size: 11px;
    box-shadow: 0 1px 3px rgba(28, 53, 87, 0.05);
}
.chip span {
    overflow-wrap: anywhere;
}
.chip button {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #b43d38;
    font-weight: 800;
    padding: 0 2px;
}
.add-camera {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edf0f5;
}
.add-camera input {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 9px 10px;
}
@media (max-width: 800px) {
    .manage-add-form {
        grid-template-columns: 1fr;
    }
    .manage-add-form button {
        width: 100%;
    }
    .manage-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .manage-toolbar .search {
        width: 100%;
        max-width: none;
    }
    .manage-station-grid {
        grid-template-columns: 1fr;
    }
    .station-manage-head {
        min-height: 58px;
        padding: 12px;
    }
    .add-camera {
        align-items: stretch;
        flex-direction: column;
    }
    .add-camera button {
        width: 100%;
    }
}
