/* Neutral materials, a legible command table and a stable compact icon rail. */
.sl-backups {min-width:0}
.sl-backup-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
.sl-backup-summary article {border:1px solid var(--sl-border);border-radius:20px;background:var(--sl-surface);padding:18px 20px;min-width:0}
.sl-backup-summary strong {display:block;font-size:20px;font-weight:650;color:var(--sl-ink);margin:6px 0;overflow-wrap:anywhere}
.sl-backup-summary p {margin:0;font-size:11px}
.sl-backup-summary article:first-child {border-top:3px solid var(--sl-green)}
.sl-backup-summary article:last-child {border-top:3px solid var(--sl-brand)}
.sl-backup-table-wrap {border:1px solid var(--sl-border);border-radius:22px;background:var(--sl-surface);overflow:auto;max-width:100%}
.sl-backup-table {min-width:680px}
.sl-backup-table caption {text-align:start;padding:18px 20px;font-size:14px;font-weight:650;color:var(--sl-ink)}
.sl-backup-table th {white-space:nowrap}
.sl-backup-table .sl-backup-name {display:flex;gap:12px;align-items:center}
.sl-backup-symbol {width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:var(--sl-green-soft);color:var(--sl-green);flex-shrink:0}
.sl-backup-table small {display:block;color:var(--sl-muted);font-size:10px;margin-top:3px}
.sl-backup-table td {vertical-align:middle}
.sl-backup-table .sl-actions {flex-wrap:nowrap}
.sl-backup-table .sl-form {display:flex;align-items:center;gap:6px;margin:0}
.sl-backup-table .sl-form>button,.sl-backup-table .sl-row-edit {min-height:36px;padding:7px 11px;font-size:11px;white-space:nowrap}
.sl-backup-table .sl-form>output:empty {display:none}
.sl-backup-table .sl-form output {max-width:180px;font-size:11px;white-space:normal}
.sl-backup-table .sl-inline-editor .sl-form {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0}
.sl-backup-table .sl-inline-editor .sl-form>button {width:auto;justify-self:start;background:var(--sl-brand-fill)!important;color:white!important}
.sl-backup-table .sl-inline-editor h3 {margin:0}
.sl-backup-table .sl-inline-editor p {margin:4px 0;font-size:12px}
.sl-backup-table .sl-inline-editor .sl-form output {max-width:none;grid-column:1/-1}
.sl-backup-toolbar {display:flex;align-items:end;justify-content:space-between;gap:16px;margin:22px 0 12px}
.sl-backup-toolbar label {width:230px;max-width:100%}
.sl-backup-toolbar span {font-size:11px;color:var(--sl-muted)}
.sl-backup-policy {display:flex;gap:12px;align-items:flex-start;padding:16px 18px;border:1px solid var(--sl-border);border-radius:16px;background:var(--sl-subtle);font-size:12px;line-height:1.9;margin:18px 0}
.sl-backup-policy p {margin:0}
.sl-backup-policy strong {color:var(--sl-ink)}
.sl-backup-log {margin-top:24px}
.sl-backup-log h3 {font-size:15px;margin:0 0 10px}
.sl-backup-log .sl-backup-table {min-width:620px}
.sl-backup-log code {font-size:10px;direction:ltr;display:block;color:var(--sl-muted)}
.sl-backup-empty {padding:30px;text-align:center;color:var(--sl-muted)}
.sidebar-command-icon {font-size:18px;line-height:1}
html[data-theme] .app-sidebar {display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden}
html[data-theme] .sidebar-nav-groups {flex-shrink:0}
html[data-theme] .sidebar-header-row {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}
html[data-theme] .btn-sidebar-collapse {flex-shrink:0;width:30px;height:30px;min-width:30px;border-radius:10px;background:var(--sl-subtle);border:1px solid var(--sl-border);color:var(--sl-muted)}
html[data-theme] .nav-title {min-width:0}
html[data-theme] .nav-icon {display:inline-flex!important;flex:0 0 24px;align-items:center;justify-content:center}
html[data-theme] .nav-icon svg {display:block;width:21px;height:21px;flex-shrink:0}
.sidebar-command {margin-top:auto;padding:18px 6px 0}
.sidebar-help-note {margin-top:16px;flex-shrink:0}
@media(min-width:769px){
 .app-layout.sidebar-collapsed {--sidebar-width:84px;grid-template-columns:84px minmax(0,1fr)}
 html[data-theme] .sidebar-collapsed .app-sidebar {width:84px;padding:20px 10px}
 html[data-theme] .sidebar-collapsed .nav-title {display:flex!important;align-items:center;justify-content:center}
 html[data-theme] .sidebar-collapsed .nav-title>span:not(.nav-icon),.sidebar-collapsed .sidebar-command-label,.sidebar-collapsed .sidebar-help-note,.sidebar-collapsed .nav-controlplane-separator,.sidebar-collapsed .nav-section-title {display:none!important}
 html[data-theme] .sidebar-collapsed .sidebar-header-row {flex-direction:column;gap:14px;padding:0 0 20px!important}
 html[data-theme] .sidebar-collapsed .sidebar-header-row .brand-logo {justify-content:center;width:100%}
 html[data-theme] .sidebar-collapsed .nav-item {width:100%;min-height:50px;padding:12px!important;justify-content:center}
 .sidebar-collapsed .sidebar-command {padding:18px 0 0}
 .sidebar-collapsed .sidebar-command button {min-height:46px}
}
@media(max-width:900px){.sl-backup-summary {gap:8px}.sl-backup-summary article {padding:14px}.sl-backup-summary strong {font-size:16px}}
@media(max-width:600px){.sl-backup-summary {grid-template-columns:1fr}.sl-backup-summary article {display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;align-items:center}.sl-backup-summary strong {margin:0;text-align:end}.sl-backup-summary p {grid-column:1/-1}.sl-backup-toolbar {align-items:start;flex-direction:column}.sl-backup-toolbar label {width:100%}.sl-backups .sl-page-head .sl-actions {width:100%}.sl-backups .sl-page-head .sl-actions>form {flex:1}.sl-backups .sl-page-head .sl-actions button {width:100%}}
@media(prefers-reduced-motion:reduce){.app-sidebar,.nav-item {transition:none!important}}
/* Keep the first version and its controls visible on a laptop-sized viewport. */
.sl-backups>.sl-page-head {align-items:center;margin-bottom:16px}
.sl-backups>.sl-page-head h2 {font-size:22px;line-height:1.5;margin:0}
.sl-backups>.sl-page-head p {font-size:12px;margin:4px 0 0}
.sl-backup-summary {margin:16px 0}
.sl-backup-summary article {padding:14px 18px}
.sl-backup-summary strong {font-size:18px;line-height:1.6;margin:3px 0}
.sl-backup-toolbar {margin:14px 0 10px}
.sl-backup-toolbar label {display:flex;align-items:center;gap:10px;width:280px;white-space:nowrap}
.sl-backup-toolbar select {flex:1}
@media(max-width:600px){.sl-backup-toolbar label {width:100%}.sl-backup-summary strong {font-size:16px;margin:0}}
@media(max-width:768px){
 .app-layout.sidebar-collapsed {--sidebar-width:238px}
 html[data-theme] .app-layout.sidebar-collapsed .nav-title>span:not(.nav-icon),html[data-theme] .app-layout.sidebar-collapsed .nav-section-title {display:inline!important}
 html[data-theme] .app-layout.sidebar-collapsed .nav-item {justify-content:flex-start!important}
 html[data-theme] .btn-sidebar-collapse {display:none}
}
@media(max-width:768px){
 html[data-theme] .mobile-sidebar-header {position:absolute;top:22px;inset-inline-end:16px;padding:0!important;border:0;min-height:0}
 html[data-theme] .mobile-sidebar-header>.brand-logo {display:none!important}
 html[data-theme] .app-sidebar .sidebar-header-row {padding-inline-end:36px!important}
 html[data-theme] .mobile-close-btn {width:30px;height:30px;min-width:30px;border-radius:10px;border:1px solid var(--sl-border);background:var(--sl-subtle);color:var(--sl-ink)}
}

/* Recovery is a sequence of explicit decisions, not a wall of green cards. */
.sl-backup-healthbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid var(--sl-border);background:var(--sl-surface);border-radius:16px;padding:14px 18px;margin:18px 0;color:var(--sl-muted);font-size:12px}
.sl-backup-healthbar strong{color:var(--sl-ink);font-weight:600}.sl-backup-healthbar>span:last-child{margin-inline-start:auto;font-variant-numeric:tabular-nums}
.sl-health-dot{width:8px;height:8px;background:var(--sl-brand);border-radius:50%;flex-shrink:0}.sl-health-dot.is-current{background:var(--sl-green)}
.sl-backup-tabs{display:flex;gap:5px;margin:20px 0!important;width:fit-content;max-width:100%;overflow:auto;padding:5px!important;border-radius:16px!important;background:var(--sl-subtle)!important}
.sl-backup-tabs button{white-space:nowrap;min-height:40px;padding:9px 18px!important;font-size:12px!important;border-radius:12px!important}
.sl-backups [role=tabpanel]{min-width:0}.sl-backups [hidden]{display:none!important}
.sl-section-head{display:flex;align-items:center;gap:16px;justify-content:space-between;margin:22px 0 16px}.sl-section-head h3{font-size:17px;margin:0 0 4px}.sl-section-head p{font-size:12px;margin:0;color:var(--sl-muted)}.sl-section-head>span{color:var(--sl-muted);font-size:12px;white-space:nowrap}
.sl-version-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,220px) auto;gap:12px;align-items:end;margin-bottom:16px}.sl-version-filters label{display:grid;gap:6px;font-size:11px;color:var(--sl-muted)}.sl-version-filters input,.sl-version-filters select{width:100%;min-width:0;min-height:40px}.sl-version-filters>button{min-height:40px;font-size:11px}
.sl-version-table{min-width:740px}.sl-version-table>thead th{font-size:11px}.sl-version-table .sl-version-row>th{white-space:normal;min-width:170px;max-width:250px}.sl-version-row strong{font-size:12px;font-weight:600}.sl-version-row small{font-weight:400;overflow-wrap:anywhere;max-width:240px}
.sl-version-row>td:last-child button{white-space:nowrap;font-size:11px;min-height:36px;padding:8px 12px}.sl-version-detail>td{padding:18px!important;background:var(--sl-subtle)!important}.sl-version-detail-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:16px}.sl-version-detail-head h3{font-size:13px;margin:0 0 4px}.sl-version-detail-head code{font-size:10px;color:var(--sl-muted)}.sl-version-detail-head button{min-height:36px;font-size:11px}
.sl-version-detail .sl-backup-table{min-width:640px}.sl-version-detail .sl-backup-table-wrap{border-radius:14px}.sl-version-detail>.sl-inline-editor{margin-top:12px}.sl-version-detail .sl-inline-editor{margin-top:12px}.sl-backups .sl-inline-editor .sl-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;margin:14px 0 0}.sl-backups .sl-inline-editor label{display:grid;gap:6px;font-size:12px}.sl-backups .sl-inline-editor .sl-check{display:flex;gap:10px;align-items:center}.sl-backups .sl-inline-editor .sl-form p{font-size:12px;line-height:1.9;margin:0}.sl-backups .sl-inline-editor .sl-form>button{justify-self:start;width:auto}
.sl-backups input[role=switch]{appearance:none;-webkit-appearance:none;width:42px;height:26px;min-height:26px;border-radius:20px;background:var(--sl-muted);position:relative;border:1px solid var(--sl-border);cursor:pointer;flex:0 0 42px;transition:background .2s}
.sl-backups input[role=switch]:before{content:'';display:block;position:absolute;width:20px;height:20px;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .2s}.sl-backups input[role=switch]:checked{background:var(--sl-green)}.sl-backups input[role=switch]:checked:before{transform:translateX(16px)}
.sl-version-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;font-size:11px;color:var(--sl-muted)}.sl-version-pagination button{font-size:11px;min-height:34px}.sl-version-pagination [data-backup-page-label]{font-variant-numeric:tabular-nums;min-width:55px;text-align:center}
.sl-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.sl-health-panel{padding:24px;border:1px solid var(--sl-border);border-radius:20px;background:var(--sl-surface);min-width:0}.sl-health-panel h3{font-size:16px;font-weight:600;margin:0 0 18px}.sl-health-panel dl{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,1fr);gap:14px 20px;margin:0}.sl-health-panel dt{color:var(--sl-muted);font-size:12px}.sl-health-panel dd{margin:0;font-size:12px;font-weight:500;overflow-wrap:anywhere}.sl-health-panel p{font-size:12px;line-height:2;color:var(--sl-muted);margin:20px 0 0}.sl-restore-steps{font-size:12px;line-height:2.1;margin:0;padding-inline-start:22px}.sl-restore-steps li+li{margin-top:10px}
.sl-backup-alert{border:1px solid var(--sl-brand);border-inline-start:3px solid var(--sl-brand);background:var(--sl-subtle);color:var(--sl-ink);font-size:12px;line-height:1.9;padding:14px 18px;border-radius:14px;margin:12px 0}
.sl-backups button:focus-visible,.sl-backups input:focus-visible,.sl-backups select:focus-visible{outline:2px solid var(--sl-green);outline-offset:3px}
@media(max-width:900px){.sl-health-grid{grid-template-columns:1fr}.sl-health-panel{padding:20px}}
@media(max-width:600px){.sl-version-filters{grid-template-columns:1fr 1fr}.sl-version-filters>label:first-child{grid-column:1/-1}.sl-version-pagination{align-items:flex-start;flex-direction:column}.sl-backup-tabs{width:100%}.sl-backup-tabs button{padding:8px 12px!important}.sl-backup-healthbar>span:last-child{margin-inline-start:0;width:100%}.sl-backups .sl-inline-editor .sl-form{grid-template-columns:1fr}.sl-backup-healthbar{padding:12px}.sl-health-panel dl{gap:14px 12px}.sl-version-detail>td{padding:12px!important}}
@media(prefers-reduced-motion:reduce){.sl-backups input[role=switch],.sl-backups input[role=switch]:before{transition:none}}
@media(prefers-reduced-transparency:reduce){.sl-health-panel,.sl-backup-healthbar{backdrop-filter:none}}
/* Keep the version controls within reach before the first long table. */
.app-main:has(.sl-backups){padding-top:16px}
.restaurant-workspace-container:has(.sl-backups)>.restaurant-context-header{padding:16px 22px}
.restaurant-workspace-container:has(.sl-backups) .restaurant-workspace-tabs{margin-top:12px}
.restaurant-workspace-container:has(.sl-backups)>.workspace-active-panel{margin-top:16px}
.sl-backups>.sl-page-head .sl-eyebrow{display:none}
.sl-backup-tabs{margin:14px 0!important}
.sl-backups .sl-section-head{margin-top:14px}
@media(max-width:600px){.restaurant-workspace-container:has(.sl-backups)>.restaurant-context-header{padding:16px}.app-main:has(.sl-backups){padding-top:12px}}
