.account-preferences form { display: grid; gap: 12px; margin-block: 18px; }
.account-preferences label { display: grid; gap: 4px; }
.account-preferences .preference-check { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.account-preferences fieldset { margin: 0; }
.account-preferences legend { color: inherit; }

body[data-account-theme="dark"] {
    color-scheme: dark;
    background-color: #172528;
    color: #edf5f3;
}
body[data-account-theme="dark"] :is(.workspace-entry.light-surface, .workspace-home-header, .management-page-header, .navbar:has(.workspace-home-header, .management-page-header)) {
    background: #23383c;
    border-color: #688485;
    color: #edf5f3;
}
body[data-account-theme="dark"] .station-help-dialog .modal-content,
body[data-account-theme="dark"] .station-help-dialog :is(.station-help-recipient, .station-help-open-request, .station-help-cancel) {
    background: #23383c;
    color: #edf5f3;
    border-color: #688485;
}
body[data-account-theme="dark"] .station-help-dialog :is(.modal-title, .modal-body, .modal-footer, legend, .station-help-open-request p) { color: #edf5f3; }
body[data-account-theme="dark"] .station-help-dialog .modal-header .close { color: #edf5f3; }
body[data-account-theme="dark"] .station-help-dialog .station-help-recipient-active { background: #304b50; color: #d3e1de; }
body[data-account-theme="dark"] .station-help-dialog .station-help-message { background: #304b50; color: #edf5f3; }
body[data-account-theme="dark"] .station-help-dialog .station-help-message-success { background: #214332; color: #d5f2df; }
body[data-account-theme="dark"] .station-help-dialog .station-help-active-summary { background: #4a2830; color: #ffe3e7; border-color: #d65368; }
body[data-account-theme="dark"] .station-help-recipient-badge { color: #ff9aa7; }
body[data-account-theme="dark"] :is(.workspace-entry, .workspace-home-header, .management-page-header) :is(h1, h2, a, .management-page-name, span) {
    color: #edf5f3 !important;
}
body[data-account-theme="dark"] :is(.workspace-page-links a, .workspace-page-links button, .workspace-entry .workspace-station, .workspace-home-header .workspace-logout, .management-header-icon, .management-page-back, .management-settings-menu summary, .management-settings-dropdown, .account-preferences .form-control) {
    background: #304b50;
    color: #edf5f3 !important;
    border-color: #688485;
}

body[data-account-theme="dark"] .account-preferences :is(label, legend, .preference-check, [role="status"]) {
    color: #edf5f3 !important;
}
body[data-account-theme="dark"] .management-settings-dropdown .management-menu-group :is(a, i, span) {
    color: #edf5f3 !important;
}
body[data-account-theme="dark"] .management-settings-dropdown .management-menu-group a:hover {
    background: #23383c;
}
.workspace-home-header .management-settings-menu {
    position: relative;
}
.workspace-home-header .management-settings-dropdown {
    left: 0;
    right: auto;
    top: 100%;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
}

.management-header-icons [data-pinned-page][hidden] {
    display: none !important;
}

.station-help-inbox {
    background: #eef4f1;
    color: #173d40;
    border: 1px solid #bbcfc9;
    border-radius: 12px;
    margin-block-end: 18px;
    padding: 12px 16px;
}
.station-help-inbox h2, .station-help-inbox a { color: #173d40 !important; }
.station-help-inbox article { border-block-start: 1px solid #bbcfc9; padding-block: 10px; }
.station-help-popup {
    position: fixed;
    z-index: 1070;
    inset-block-end: 16px;
    inset-inline: 12px;
    width: min(440px, calc(100% - 24px));
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff4ce;
    color: #582d0a;
    border: 2px solid #965817;
    border-radius: 10px;
    box-shadow: 0 4px 18px #30251a40;
}
.station-help-popup a, .station-help-popup button { color: #582d0a !important; }
.station-help-popup button { background: transparent; border: 0; font-size: 22px; }
.station-help-badge { display: inline-block; color: #76172a !important; padding: 4px 8px; }
.station-help-badge[hidden] { display: none !important; }
.station-help-active {
    background: #ffe5e9 !important;
    border-inline-start: 5px solid #ad2940;
    animation: station-help-pulse 2s ease-in-out infinite alternate;
}
.station-help-call-button { gap: 8px; }
.station-help-call-bell { color: inherit; font-size: 18px; }
.station-help-call-active-label[hidden] { display: none !important; }
.station-help-call-active-label { color: #fff !important; font-size: 12px !important; }
.station-help-call-active .station-help-call-bell {
    color: #ff6878 !important;
    animation: station-help-bell-wiggle .8s ease-in-out infinite;
    transform-origin: 50% 12%;
}
.station-help-dialog .modal-dialog { width: min(650px, calc(100% - 20px)); margin: 10px auto; }
.station-help-dialog .modal-content { background: #f4f7f5; color: #173d40; border: 1px solid #cbdad4; border-radius: 16px; }
.station-help-dialog .modal-header { border-color: #cbdad4; }
.station-help-dialog .modal-title,
.station-help-dialog .modal-body,
.station-help-dialog .modal-footer { color: #173d40; }
.station-help-dialog .modal-title { display: flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 700; }
.station-help-dialog .modal-title i { color: #ad2940; }
.station-help-dialog .modal-header .close { color: #173d40; opacity: 1; min-width: 44px; min-height: 44px; }
.station-help-dialog .modal-body { max-height: min(70vh, 680px); overflow-y: auto; }
.station-help-dialog fieldset { border: 0; padding: 0; }
.station-help-dialog legend { color: #173d40; font-size: 18px; font-weight: 700; margin-block-end: 8px; }
.station-help-dialog .station-help-recipient {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    min-height: 48px; margin: 8px 0; padding: 9px 12px;
    color: #173d40; background: #fff; border: 1px solid #cbdad4; border-radius: 10px;
}
.station-help-dialog .station-help-recipient input { width: 20px; height: 20px; margin: 0; accent-color: #185e55; }
.station-help-dialog .station-help-recipient-active { color: #526265; background: #e9efed; }
.station-help-recipient-badge { color: #8a1425; font-size: 13px; font-weight: 700; }
.station-help-message,
.station-help-active-summary { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 10px; color: #173d40; background: #e5efeb; }
.station-help-message-success { color: #155635; background: #e2f2e7; }
.station-help-active-summary { margin-block-end: 16px; color: #781526; background: #ffe5e9; border: 1px solid #b12c42; }
.station-help-active-bell { color: #a0182d; font-size: 20px; }
.station-help-list-title { display: flex; align-items: center; gap: 8px; margin-block: 20px 10px; color: #173d40; font-size: 18px; }
.station-help-open-request { padding: 12px; margin-block: 10px; color: #173d40; background: #fff; border: 1px solid #cbdad4; border-radius: 12px; }
.station-help-open-request p { margin-block: 0 8px; color: #173d40; }
.station-help-action,
.station-help-cancel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; }
.station-help-dialog button[disabled] { opacity: .65; cursor: wait; }
.station-help-cancel { padding: 9px 13px; color: #781526; background: #fff; border: 1px solid #a0182d; border-radius: 10px; font-weight: 700; }
.station-help-dialog .modal-footer { border-color: #cbdad4; }
.station-help-dialog .modal-footer .site-back-button { float: none; }
@keyframes station-help-bell-wiggle {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(17deg); }
    40% { transform: rotate(-15deg); }
    60% { transform: rotate(11deg); }
    80% { transform: rotate(-7deg); }
}
@keyframes station-help-pulse {
    to { box-shadow: inset 0 0 0 3px #ad2940; }
}
@media (prefers-reduced-motion: reduce) {
    .station-help-active { animation: none; }
    .station-help-call-active .station-help-call-bell { animation: none; }
}
@media (max-width: 480px) {
    .station-help-dialog .modal-dialog { width: auto; margin: 8px; }
    .station-help-dialog .modal-body { max-height: calc(100vh - 170px); }
    .station-help-dialog .station-help-close-form { display: grid; grid-template-columns: 1fr; }
}
.management-sal-panels .table tbody .panel-shortage td {
    color: #76172a !important;
    background: #ffe5e9 !important;
    font-weight: 700;
}
