body{margin:0;background:#11151a;color:#e6e6e6;font-family:Arial,sans-serif}.sidebar{position:fixed;left:0;top:0;bottom:0;width:240px;background:#090b0e;border-right:1px solid #2b3036;padding:18px 18px 34px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#3a424d #090b0e}.brand{font-size:22px;font-weight:800;color:#e21b2d;margin-bottom:24px}.brand span{font-size:13px;color:#bbb}.sidebar a{display:block;color:#ddd;text-decoration:none;padding:9px 10px;border-radius:6px;margin:2px 0}.sidebar a:hover{background:#242a31;color:#fff}.section{font-size:11px;text-transform:uppercase;color:#777;margin:20px 10px 5px}.main{margin-left:240px}.topbar{height:58px;padding:17px 24px;background:#171c22;border-bottom:1px solid #2b3036;display:flex}.topbar a{color:#e21b2d}.content{padding:24px}.card{background:#191f26;border:1px solid #303741;color:#eee}.table{--bs-table-bg:#191f26;--bs-table-color:#ddd;--bs-table-border-color:#303741}.form-control,.form-select{background:#101419;border-color:#3a424d;color:#eee}.form-control:focus,.form-select:focus{background:#101419;color:#fff;border-color:#e21b2d;box-shadow:none}.btn-primary{background:#c71929;border-color:#c71929}.badge-ok{background:#198754}.badge-overdue{background:#dc3545}.badge-never{background:#6c757d}pre{background:#090b0e;color:#d7e0e8;padding:16px;border-radius:8px;max-height:70vh;overflow:auto}
.history-tree{padding:10px 14px!important}.history-node{border-bottom:1px solid #2a3139;padding:4px 0}.history-node:last-child{border-bottom:0}.history-node>summary{cursor:pointer;list-style:none;padding:8px 6px;border-radius:6px}.history-node>summary::-webkit-details-marker{display:none}.history-node>summary:before{content:'▶';display:inline-block;width:18px;color:#777;font-size:11px;transition:transform .12s}.history-node[open]>summary:before{transform:rotate(90deg)}.history-node>summary:hover{background:#20262d}.history-folder{font-weight:600}.history-children{margin-left:22px;border-left:1px solid #303741;padding-left:12px}.history-files{border:1px solid #303741;border-radius:6px;overflow:hidden}.history-files thead th{font-size:12px;color:#aaa;background:#12171c}
.older-versions>summary{cursor:pointer;list-style:none}.older-versions>summary:hover{background:#20262d}.history-tree code{color:#ffb3ba}.table .badge{min-width:88px}
.settings-menu{margin-top:18px;border-top:1px solid #242a31;padding-top:8px}.settings-menu>summary{cursor:pointer;list-style:none;color:#ddd;font-weight:700;padding:10px;border-radius:6px}.settings-menu>summary::-webkit-details-marker{display:none}.settings-menu>summary:after{content:'▾';float:right;color:#777}.settings-menu:not([open])>summary:after{content:'▸'}.settings-menu>summary:hover{background:#242a31}.settings-subgroup{margin:2px 0 10px 8px;padding-left:8px;border-left:1px solid #2b3036}.settings-subtitle{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#777;margin:10px 8px 4px}.settings-subgroup a{font-size:13px;padding:6px 8px}.note-content{white-space:pre-wrap}.drawio-frame{width:100%;height:72vh;border:1px solid #303741;border-radius:8px;background:#fff}.drawio-preview-frame{width:100%;height:78vh;border:1px solid #303741;border-radius:8px;background:#fff}.small-muted{font-size:12px;color:#929aa4}

.sidebar::-webkit-scrollbar{width:8px}.sidebar::-webkit-scrollbar-track{background:#090b0e}.sidebar::-webkit-scrollbar-thumb{background:#3a424d;border-radius:8px}.sidebar::-webkit-scrollbar-thumb:hover{background:#505a66}


.storage-donut{width:230px;height:230px;border-radius:50%;margin:0 auto;position:relative;box-shadow:0 0 0 1px #303741,0 12px 30px rgba(0,0,0,.25)}
.storage-donut-center{position:absolute;inset:34px;border-radius:50%;background:#191f26;border:1px solid #303741;display:flex;flex-direction:column;align-items:center;justify-content:center}
.storage-donut-value{font-size:28px;font-weight:700;color:#fff}
.storage-legend{display:flex;flex-direction:column;gap:12px}
.storage-legend>div{display:grid;grid-template-columns:18px 1fr auto;gap:10px;align-items:center;padding:10px 12px;background:#12171c;border:1px solid #303741;border-radius:8px}
.legend-dot{width:12px;height:12px;border-radius:3px;display:inline-block}
.legend-red{background:#e21b2d}.legend-gray{background:#5a616a}.legend-light{background:#d7d9dc}

/* M4B 0.1.40.9.13.4: compact nested Backup-History tree */
.history-tree .history-node{margin:0!important;}
.history-tree .history-node[open]{padding-bottom:0!important;}
.history-tree .history-children{margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;}
.history-tree .history-children>.history-node{margin-top:0!important;margin-bottom:0!important;}
.history-tree .history-children>.history-node:last-child{padding-bottom:0!important;}
.history-tree .history-node:not([open])>.history-children{display:none!important;}

/* M4B 0.1.40.9.13.5: true leaf nodes have no expandable empty body */
.history-tree .history-node.history-leaf>summary:before{content:'•';transform:none!important;color:#59616b}
.history-tree .history-node.history-leaf>summary{cursor:default}
.history-tree .history-node.history-leaf>summary:hover{background:transparent}
