/* Panel administracyjny — visual scope only; business logic remains in HealthDashboardView. */
.i24-health { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 1600px; min-width: 0; margin: 0 auto; padding: 22px 26px 24px; box-sizing: border-box; color: #2e3c53; font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 12px; line-height: 1.45; }
.i24-health *, .i24-health *::before, .i24-health *::after { box-sizing: border-box; }
.i24-health button, .i24-health input, .i24-health select { font: inherit; }
.i24-health button { cursor: pointer; }
.i24-health button:disabled { cursor: wait; }
.i24-health button:focus-visible, .i24-health [tabindex="0"]:focus-visible { outline: 2px solid #9671cc; outline-offset: 2px; }
.i24-health-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 16px; min-width: 0; }
.i24-health-heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
.i24-health-heading > div { min-width: 0; }
.i24-health-heading-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid #e4daf4; border-radius: 11px; background: #f1eafa; color: #784bb9; font-size: 17px; }
.i24-health-heading h1 { margin: 0; color: #18223a; font-size: 24px; font-weight: 700; letter-spacing: -.65px; line-height: 1.2; }
.i24-health-heading p { margin: 4px 0 0; color: #7b879e; font-size: 11.5px; line-height: 1.45; }
.i24-health-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 8px; min-height: 35px; padding: 8px 12px; border: 1px solid transparent; border-radius: 7px; font-size: 11.5px; font-weight: 550; line-height: 1.4; white-space: nowrap; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.i24-health-button > i { font-size: 11px; }
.i24-health-button--primary { border-color: #7147b7; background: #7147b7; color: #fff; box-shadow: 0 2px 5px #7147b714; }
.i24-health-button--primary:hover { border-color: #6038a4; background: #6038a4; }
.i24-health-button--primary:disabled { border-color: #ac96c9; background: #ac96c9; box-shadow: none; }
.i24-health-button--secondary { border-color: #dfe4ee; background: #fff; color: #66728b; }
.i24-health-button--secondary:hover { border-color: #d3c4e9; background: #f8f4fd; color: #754caf; }
.i24-health-button--secondary:disabled { color: #a5adbd; background: #f8f9fc; }
.i24-health-button--danger { border-color: #ecd9de; background: #fffafa; color: #ad626b; }
.i24-health-button--danger:hover { border-color: #e2b7c0; background: #fff0f2; color: #a44e5a; }
.i24-health-button--danger:disabled { color: #bf9b9f; border-color: #ede2e4; background: #fcf8f9; }
.i24-health-navigation { display: flex; align-items: center; flex: 0 0 auto; gap: 5px; min-width: 0; padding: 4px; overflow-x: auto; border: 1px solid #e0e5ef; border-radius: 9px; background: #fff; scrollbar-width: thin; scrollbar-color: #d8d0e7 transparent; }
.i24-health-nav-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 8px; min-height: 32px; padding: 7px 13px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #6b7891; font-size: 11.5px; font-weight: 550; line-height: 1.4; white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
.i24-health-nav-button > i { color: #a197b3; font-size: 11px; }
.i24-health-nav-button:hover { background: #f8f5fc; color: #7a51af; }
.i24-health-nav-button--active { border-color: #e3d8f2; background: #f1eafa; color: #7347b2; }
.i24-health-nav-button--active > i { color: #8354bc; }
.i24-health-error { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid #eed1d7; border-radius: 8px; background: #fff4f6; color: #ad5666; font-size: 12px; }
.i24-health-error > i { flex: 0 0 auto; }
.i24-health-logs { display: flex; flex-direction: column; gap: 8px; height: calc(100vh - 228px - var(--i24-crm-alert-height, 0px)); height: calc(100dvh - 228px - var(--i24-crm-alert-height, 0px)); min-width: 0; min-height: 280px; }
.i24-health-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); flex: 0 0 auto; min-width: 0; overflow: hidden; border: 1px solid #e0e5ef; border-radius: 10px; background: #fff; }
.i24-health-stat { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 72px; padding: 12px 15px; border-right: 1px solid #edf0f6; }
.i24-health-stat:last-child { border-right: 0; }
.i24-health-stat > div { min-width: 0; }
.i24-health-stat-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 7px; background: #f4f5fa; color: #a095b5; font-size: 12px; }
.i24-health-stat--database { background: #fcfaff; }
.i24-health-stat--database .i24-health-stat-icon { background: #efe7f9; color: #9469c2; }
.i24-health-stat-label { display: block; margin-bottom: 3px; color: #8590a6; font-size: 10.5px; line-height: 1.3; }
.i24-health-stat strong { display: block; color: #2b3850; font-size: 22px; font-weight: 650; letter-spacing: -.45px; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.i24-health-stat strong small { color: #a098b2; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.i24-health-panel { min-width: 0; overflow: hidden; border: 1px solid #dfe5ef; border-radius: 11px; background: #fff; box-shadow: 0 2px 5px #17244103; }
.i24-health-logs > .i24-health-panel { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 160px; }
.i24-health-logs > .i24-health-panel > .i24-health-panel-header { min-height: 38px; padding: 7px 12px; }
.i24-health-panel-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 12px; min-height: 46px; padding: 11px 15px; border-bottom: 1px solid #e8ecf3; background: #fff; }
.i24-health-panel-header h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; color: #4a5871; font-size: 12px; font-weight: 600; line-height: 1.5; }
.i24-health-panel-header h2 > i { color: #9479b9; font-size: 11px; }
.i24-health-panel-note { color: #99a2b5; font-size: 10.5px; }
.i24-health-log-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; color: #94a0b6; font-size: 10px; }
.i24-health-log-meta strong { color: #7b879e; font-weight: 550; font-variant-numeric: tabular-nums; }
.i24-health-auto-refresh { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border: 1px solid #dfece6; border-radius: 4px; background: #f5faf7; color: #6e9585; white-space: nowrap; }
.i24-health-auto-refresh > i { font-size: 8px; }
.i24-health-log-scroll { position: relative; flex: 1 1 auto; min-width: 0; min-height: 100px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c8cedd #f7f8fc; }
.i24-health-log-scroll::-webkit-scrollbar { width: 9px; height: 9px; }
.i24-health-log-scroll::-webkit-scrollbar-track { background: #f7f8fc; }
.i24-health-log-scroll::-webkit-scrollbar-thumb { border: 2px solid #f7f8fc; border-radius: 8px; background: #c8cedd; }
.i24-health-log-table { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 0; table-layout: fixed; text-align: left; color: #61708a; font-size: 12px; line-height: 1.35; }
.i24-health-log-col-date { width: 152px; }
.i24-health-log-col-user { width: 166px; }
.i24-health-log-col-action { width: 154px; }
.i24-health-log-col-ip { width: 112px; }
.i24-health-log-table thead { position: sticky; top: 0; z-index: 2; }
.i24-health-log-table th { padding: 6px 10px; border-bottom: 1px solid #dfe5f0; background: #f4f6fa; color: #7c88a0; font-size: 10.5px; font-weight: 600; line-height: 1.4; }
.i24-health-log-table td { padding: 4px 10px; border-bottom: 1px solid #edf0f6; vertical-align: top; overflow-wrap: anywhere; }
.i24-health-log-table tbody tr:last-child td { border-bottom: 0; }
.i24-health-log-table tbody tr:nth-child(even) { background: #fcfdff; }
.i24-health-log-table tbody tr:hover { background: #faf8fe; }
.i24-health-log-table .i24-health-log-date, .i24-health-log-table .i24-health-log-ip { color: #69788f; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; line-height: 1.5; }
.i24-health-log-table .i24-health-log-date { white-space: nowrap; }
.i24-health-log-table .i24-health-log-user { color: #4a5973; font-weight: 550; }
.i24-health-log-table .i24-health-log-details { color: #58677f; white-space: pre-wrap; user-select: text; }
.i24-health-log-action { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 5px; }
.i24-health-action-badge { display: inline-block; max-width: 100%; padding: 2px 6px; border: 1px solid; border-radius: 4px; font-size: 9px; font-weight: 550; line-height: 1.5; letter-spacing: .15px; text-transform: uppercase; overflow-wrap: anywhere; }
.i24-health-action-badge.bg-red-50 { border-color: #f0d9dd; background: #fff4f5; color: #a44f5e; }
.i24-health-action-badge.bg-emerald-50 { border-color: #d3e7de; background: #f0f8f4; color: #427e63; }
.i24-health-action-badge.bg-sky-50 { border-color: #d7e5ef; background: #f2f8fc; color: #477d9e; }
.i24-health-action-badge.bg-amber-50 { border-color: #eadebe; background: #fdf8ed; color: #8b6d32; }
.i24-health-action-badge.bg-indigo-50 { border-color: #dddaf3; background: #f4f2fd; color: #755da8; }
.i24-health-action-badge.bg-purple-50 { border-color: #e3d6ed; background: #f8f2fc; color: #8c5ca4; }
.i24-health-action-badge.bg-slate-100 { border-color: #e2e7ef; background: #f4f6fa; color: #67758c; }
.i24-health-log-count { flex: 0 0 auto; padding: 2px 5px; border: 1px solid #e6dff1; border-radius: 4px; background: #f8f5fc; color: #9a83b8; font-size: 9px; font-weight: 550; line-height: 1.5; font-variant-numeric: tabular-nums; }
.i24-health-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; min-height: 180px; padding: 24px; color: #929cb1; text-align: center; font-size: 11.5px; line-height: 1.7; }
.i24-health-empty > i { color: #b8a5d1; font-size: 23px; }
.i24-health-empty strong { color: #76819a; font-size: 12px; font-weight: 550; }
.i24-health-empty > span { max-width: 440px; }
.i24-health-settings-body { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.i24-health-settings-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.i24-health-form-section { min-width: 0; padding: 12px 13px; border: 1px solid #e8ecf3; border-radius: 8px; background: #fcfdff; }
.i24-health-form-section h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0 0 10px; color: #6a5a85; font-size: 11px; font-weight: 550; line-height: 1.5; }
.i24-health-form-section h3 > i { color: #a18bc0; font-size: 10px; }
.i24-health-form-section h3 > span { margin-left: 3px; color: #a6adbd; font-size: 10px; font-weight: 400; }
.i24-health-fields { display: grid; align-items: start; gap: 10px; min-width: 0; }
.i24-health-fields--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.i24-health-fields--smtp { grid-template-columns: minmax(0, 1.5fr) minmax(72px, .6fr) minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(88px, .8fr); }
.i24-health-field { min-width: 0; }
.i24-health-field > label { display: block; margin-bottom: 5px; color: #64738b; font-size: 10.5px; font-weight: 450; line-height: 1.4; }
.i24-health-input { display: block; width: 100%; min-width: 0; height: 35px; padding: 8px 10px; border: 1px solid #dde4ef; border-radius: 6px; outline: none; background: #fff; color: #59677f; font-size: 11.5px; line-height: 1.5; box-shadow: 0 1px 2px #16234402; transition: border-color .15s ease, box-shadow .15s ease; }
.i24-health-input::placeholder { color: #b0b8c8; }
.i24-health-input:focus { border-color: #ae92d4; box-shadow: 0 0 0 3px #9a78cc12; }
.i24-health-input--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; }
.i24-health-smtp-test { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 11px; }
.i24-health-smtp-test .i24-health-button { min-height: 31px; padding: 6px 10px; font-size: 10.5px; }
.i24-health-smtp-result { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 11px; overflow-wrap: anywhere; }
.i24-health-smtp-result--success { color: #60927d; }
.i24-health-smtp-result--error { color: #b2757e; }
.i24-health-settings-bottom { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(0, 3.2fr); align-items: start; gap: 12px; }
.i24-health-fields--statuses { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 9px; }
.i24-health-panel-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 11px 14px; border-top: 1px solid #e8ecf3; background: #fafbfe; }
.i24-health-service-body { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.i24-health-service-row { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 16px; border: 1px solid #e6eaf2; border-radius: 8px; background: #fcfdff; }
.i24-health-service-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 35px; width: 35px; height: 35px; border: 1px solid #e4daf1; border-radius: 9px; background: #f3edf9; color: #a187c0; font-size: 14px; }
.i24-health-service-icon--muted { border-color: #e2e7ef; background: #f2f5f9; color: #99a5b8; }
.i24-health-service-icon--amber { border-color: #ede1c8; background: #fbf5e9; color: #bca36e; }
.i24-health-service-description { flex: 1 1 auto; min-width: 0; }
.i24-health-service-description h3 { margin: 0; color: #62708a; font-size: 12px; font-weight: 550; }
.i24-health-service-description p { margin: 3px 0 0; color: #9ca5b8; font-size: 11px; line-height: 1.6; }
.i24-health-backup { min-width: 0; border: 1px solid #e1d8ef; border-radius: 8px; background: #fff; }
.i24-health-backup-intro { border: 0; border-bottom: 1px solid #ece6f4; border-radius: 7px 7px 0 0; background: #fbf9fe; }
.i24-health-backup-intro h3 { color: #584176; font-weight: 600; }
.i24-health-backup-intro p { color: #6f6680; }
.i24-health-backup-intro p.i24-health-backup-directory { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 6px; margin-top: 5px; }
.i24-health-backup-directory > i { color: #936fb8; }
.i24-health-backup-directory > code { padding: 0 5px; border-radius: 3px; background: #f0eaf8; color: #5c4876; overflow-wrap: anywhere; }
.i24-health-backup-history { display: grid; gap: 7px; padding: 9px 16px 12px; }
.i24-health-backup-history-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.i24-health-backup-history-header > h4 { margin: 0; color: #64728b; font-size: 11px; font-weight: 600; }
.i24-health-backup-refresh { min-height: 28px; padding: 4px 8px; font-size: 10px; }
.i24-health-backup-files { display: grid; margin: 0; padding: 0; border-top: 1px solid #edf0f5; list-style: none; }
.i24-health-backup-file { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(55px, auto); align-items: baseline; gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid #edf0f5; color: #6e7b91; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.i24-health-backup-file > span:first-child { color: #56647d; font-weight: 550; overflow-wrap: anywhere; }
.i24-health-backup-file > span:first-child > i { margin-right: 6px; color: #9879ba; }
.i24-health-backup-file > span:last-child { text-align: right; }
.i24-health-backup-empty { margin: 0; color: #76839b; font-size: 11px; }
.i24-health-backup-message { display: flex; align-items: baseline; gap: 7px; margin: 0; color: #6c5c81; font-size: 11px; overflow-wrap: anywhere; }
.i24-health-backup-message--success { color: #43795e; }
.i24-health-backup-message--error { color: #a34858; }
.i24-health-service-row--maintenance { border-color: #eee5d4; background: #fffdf8; }
.i24-health-switch { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; min-height: 32px; color: #a2906a; font-size: 11px; cursor: pointer; }
.i24-health-switch input { position: absolute; width: 39px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.i24-health-switch-track { position: relative; display: inline-block; flex: 0 0 37px; width: 37px; height: 22px; border: 1px solid #d8dfea; border-radius: 20px; background: #e7ebf3; transition: background-color .15s ease, border-color .15s ease; }
.i24-health-switch-track::after { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #68758d26; content: ''; transition: transform .15s ease; }
.i24-health-switch input:checked + .i24-health-switch-track { border-color: #d8c08a; background: #d9bd7d; }
.i24-health-switch input:checked + .i24-health-switch-track::after { transform: translateX(15px); }
.i24-health-switch input:focus-visible + .i24-health-switch-track { outline: 2px solid #9671cc; outline-offset: 3px; }
.i24-health-panel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.i24-health-count { padding: 2px 6px; border: 1px solid #e5ddef; border-radius: 4px; background: #f7f3fc; color: #9b85b6; font-size: 9px; font-weight: 500; white-space: nowrap; }
.i24-health-pim-body { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.i24-health-category { min-width: 0; overflow: hidden; border: 1px solid #e5dfed; border-radius: 8px; background: #fff; }
.i24-health-category-header { display: flex; align-items: flex-end; gap: 14px; min-width: 0; padding: 11px 12px; border-bottom: 1px solid #e9e3f1; background: #faf7fd; }
.i24-health-category-fields { display: grid; grid-template-columns: 130px minmax(0, 1fr); flex: 1 1 auto; gap: 10px; min-width: 0; }
.i24-health-category-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 6px; }
.i24-health-category-actions .i24-health-button { min-height: 35px; padding: 8px 10px; font-size: 10.5px; }
.i24-health-icon-field { position: relative; }
.i24-health-icon-field > i { position: absolute; top: 50%; left: 10px; color: #a68abe; font-size: 10px; transform: translateY(-50%); pointer-events: none; }
.i24-health-icon-field > input { padding-left: 29px; }
.i24-health-input--group-name { color: #7a6497; font-weight: 550; }
.i24-health-icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 35px; padding: 0; border: 1px solid #e2e6ee; border-radius: 6px; background: #fff; color: #9ba4b8; font-size: 11px; }
.i24-health-icon-button--danger { border-color: #eddee2; background: #fffbfc; color: #be9aa5; }
.i24-health-icon-button--danger:hover { border-color: #e0bdc7; background: #fff1f5; color: #b57388; }
.i24-health-category-direct { padding: 11px 12px 13px; }
.i24-health-category-direct > p { margin: 0 0 9px; color: #abb1c1; font-size: 10px; }
.i24-health-fields--direct { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.i24-health-variants { display: flex; flex-direction: column; gap: 0; padding: 0 12px; }
.i24-health-variant { display: grid; grid-template-columns: 20px minmax(100px, .85fr) minmax(0, 1.7fr) minmax(0, 1fr) 32px; align-items: end; gap: 10px; min-width: 0; padding: 11px 0; border-bottom: 1px solid #edf0f5; }
.i24-health-variant:last-child { border-bottom: 0; }
.i24-health-variant-index { display: inline-flex; align-items: center; justify-content: center; align-self: end; min-height: 35px; color: #b8a6cd; font-size: 10px; font-variant-numeric: tabular-nums; }
.i24-health-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1150px) {
    .i24-health-stat { gap: 8px; padding: 12px 11px; }
    .i24-health-stat-icon { flex-basis: 25px; width: 25px; height: 25px; font-size: 11px; }
    .i24-health-stat strong { font-size: 20px; }
    .i24-health-stat-label { font-size: 10px; }
    .i24-health-fields--smtp { grid-template-columns: minmax(0, 1.5fr) minmax(72px, .7fr) minmax(0, 1.3fr); row-gap: 10px; }
    .i24-health-fields--statuses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .i24-health-settings-bottom { grid-template-columns: minmax(165px, .8fr) minmax(0, 2.2fr); }
}
@media (max-width: 1000px) {
    .i24-health { padding: 20px; }
    .i24-health-logs { height: calc(100dvh - 222px - var(--i24-crm-alert-height, 0px)); }
    .i24-health-stat-icon { display: none; }
    .i24-health-variant { grid-template-columns: 18px minmax(90px, .8fr) minmax(0, 1.2fr) minmax(0, 1fr) 32px; gap: 7px; }
    .i24-health-category-fields { grid-template-columns: 110px minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .i24-health-logs { height: calc(100dvh - 218px - var(--i24-crm-alert-height, 0px)); }
    .i24-health-stat-icon { display: inline-flex; }
}
@media (max-width: 700px) {
    .i24-health { gap: 12px; padding: 16px; }
    .i24-health-heading h1 { font-size: 22px; }
    .i24-health-heading p { font-size: 10.5px; }
    .i24-health-heading-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 9px; font-size: 15px; }
    .i24-health-navigation { gap: 3px; }
    .i24-health-nav-button { gap: 6px; padding: 7px 10px; font-size: 10.5px; }
    .i24-health-logs { height: calc(100dvh - 204px - var(--i24-crm-alert-height, 0px)); }
    .i24-health-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .i24-health-stat { min-height: 61px; padding: 10px 12px; }
    .i24-health-stat:nth-child(-n+3) { border-bottom: 1px solid #edf0f6; }
    .i24-health-stat:nth-child(3) { border-right: 0; }
    .i24-health-stat-icon { display: none; }
    .i24-health-panel-header { padding: 10px 12px; }
    .i24-health-panel-note { font-size: 10px; }
    .i24-health-log-meta { gap: 6px; font-size: 9px; }
    .i24-health-auto-refresh { padding: 3px 4px; }
    .i24-health-settings-body, .i24-health-pim-body, .i24-health-service-body { padding: 11px; gap: 10px; }
    .i24-health-settings-top { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .i24-health-settings-bottom { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .i24-health-settings-bottom > .i24-health-form-section:first-child .i24-health-field { max-width: 260px; }
    .i24-health-fields--smtp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .i24-health-service-row { gap: 10px; padding: 13px; flex-wrap: wrap; }
    .i24-health-service-description { flex: 1 1 calc(100% - 50px); }
    .i24-health-service-row > .i24-health-button, .i24-health-service-row > .i24-health-switch { margin-left: 45px; }
    .i24-health-backup-history { padding-right: 13px; padding-left: 13px; }
    .i24-health-panel-header--pim { align-items: flex-start; flex-direction: column; gap: 10px; }
    .i24-health-category-header { align-items: stretch; flex-direction: column; gap: 9px; }
    .i24-health-category-fields { grid-template-columns: 115px minmax(0, 1fr); }
    .i24-health-category-actions { justify-content: flex-end; }
    .i24-health-variant { grid-template-columns: 16px minmax(0, 1fr) 32px; gap: 8px; }
    .i24-health-variant-index { grid-row: 1; }
    .i24-health-variant > .i24-health-field:nth-child(2) { grid-column: 2; grid-row: 1; }
    .i24-health-variant > .i24-health-field:nth-child(3) { grid-column: 2 / 4; grid-row: 2; }
    .i24-health-variant > .i24-health-field:nth-child(4) { grid-column: 2 / 4; grid-row: 3; }
    .i24-health-variant > button { grid-column: 3; grid-row: 1; }
    .i24-health-fields--direct { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
    .i24-health { padding: 14px 12px; }
    .i24-health-header { gap: 10px; }
    .i24-health-heading { gap: 9px; }
    .i24-health-heading h1 { font-size: 20px; }
    .i24-health-header > .i24-health-button { width: 34px; min-height: 34px; padding: 8px; }
    .i24-health-header > .i24-health-button > span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .i24-health-logs { height: calc(100dvh - 208px - var(--i24-crm-alert-height, 0px)); min-height: 300px; gap: 8px; }
    .i24-health-stat { padding: 10px 11px; }
    .i24-health-stat-label { font-size: 9.5px; }
    .i24-health-stat strong { font-size: 19px; }
    .i24-health-panel-header h2 { font-size: 11px; }
    .i24-health-log-meta { flex-direction: column; align-items: flex-end; gap: 4px; }
    .i24-health-panel-note { max-width: 130px; text-align: right; font-size: 9px; }
    .i24-health-fields--two, .i24-health-fields--statuses { gap: 9px; }
    .i24-health-input { padding: 8px; font-size: 11px; }
    .i24-health-input--mono { font-size: 10px; }
    .i24-health-field > label { font-size: 10px; }
    .i24-health-form-section { padding: 11px; }
    .i24-health-panel-actions { gap: 6px; }
    .i24-health-panel-actions .i24-health-button { padding: 8px 9px; font-size: 10px; }
    .i24-health-backup-file { grid-template-columns: minmax(0, 1fr) auto; }
    .i24-health-backup-file > span:first-child { grid-column: 1 / -1; }
    .i24-health-category-header { padding: 10px; }
    .i24-health-category-fields { grid-template-columns: 105px minmax(0, 1fr); gap: 8px; }
    .i24-health-panel-footer { padding: 10px 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .i24-health button, .i24-health-input, .i24-health-switch-track, .i24-health-switch-track::after { transition: none; }
}
