:root {
    --bg-0: #F4F6F8;   /* off-white app canvas */
    --bg-1: #FFFFFF;   /* white cards, panels, navbar, sidebar */
    --bg-2: #E0E5EB;   /* borders, dividers, secondary btn bg */
    --accent: #008FCF;
    --fg-0: #1A2332;   /* primary text */
    --fg-1: #5A6B7B;   /* secondary text */
    --sev-ok: #2B9F5E;
    --sev-warn: #D4921C;
    --sev-crit: #C93B3B;
    --sev-none: #94A3B3; /* lighter for visibility on light bg */
    /* Power page energy terms (CLD-FIX-031 palette, keyed by estimate term
       in CLD-FIX-032): accent and neutral/cyan tints in distinct lightness
       steps, never severity */
    --term-base: #008FCF;      /* accent: the connectivity mode lever */
    --term-windows: #7FC7E8;   /* light cyan */
    --term-routes: #0C2032;    /* brand navy */
    --term-waveforms: #1A5277; /* deep cyan */
    --term-ble: #5A6B7B;       /* slate */
    --term-loss: #C3CDD6;      /* light neutral */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg-0);
    color: var(--fg-0);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Top nav bar
   --------------------------------------------------------------------------- */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-1);
    padding: 0 1.5rem;
    height: 3rem;
    border-bottom: 1px solid var(--bg-2);
}

.navbar-brand {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
}

.navbar-client {
    color: var(--fg-1);
    font-size: 0.85rem;
    margin-left: 1.5rem;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--fg-1);
}

/* Page header with actions (command buttons) */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-header h2 {
    margin-bottom: 0;
}

.page-header-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   Layout: sidebar + main
   --------------------------------------------------------------------------- */

.layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 14rem;
    background: var(--bg-1);
    border-right: 1px solid var(--bg-2);
    padding: 0;
    flex-shrink: 0;
    overflow-y: auto;
    transition: width 0.15s ease;
}

.sidebar.collapsed {
    width: 3rem;
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .sidebar-nav-links,
.sidebar.collapsed .sidebar-divider,
.sidebar.collapsed .sidebar-tree,
.sidebar.collapsed .sidebar-empty {
    display: none;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--bg-2);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--fg-1);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.15rem 0.25rem;
    line-height: 1;
}

.sidebar-toggle:hover {
    color: var(--fg-0);
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-1);
}

.sidebar-nav-links {
    padding: 0.5rem 0;
}

.sidebar-link {
    display: block;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: var(--fg-1);
}

.sidebar-link:hover {
    color: var(--fg-0);
    background: var(--bg-2);
    text-decoration: none;
}

.sidebar-link.active {
    color: var(--accent);
    background: rgba(0, 143, 207, 0.08);
    font-weight: 700;
    text-decoration: underline;
}

.tree-node-label.active {
    font-weight: 700;
    text-decoration: underline;
    color: var(--accent);
}

.sidebar-divider {
    height: 1px;
    background: var(--bg-2);
    margin: 0.25rem 0;
}

.sidebar-empty {
    padding: 1rem 0.75rem;
    color: var(--fg-1);
    font-size: 0.8rem;
}

/* Sidebar tree */
.sidebar-tree {
    padding: 0.25rem 0;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    color: var(--fg-1);
    cursor: pointer;
    user-select: none;
}

.tree-item:hover {
    background: var(--bg-2);
    color: var(--fg-0);
    text-decoration: none;
}

a.tree-item {
    text-decoration: none;
}

.tree-conv-label {
    padding-left: 0.75rem;
}

.tree-master-label {
    padding-left: 1.25rem;
    display: flex;
    align-items: center;
}

.tree-master-label.active {
    font-weight: 700;
    color: var(--accent);
}

.tree-master-page {
    padding-left: 2.25rem;
    font-size: 0.75rem;
    color: var(--fg-1);
}

.tree-master-page.active {
    font-weight: 700;
    color: var(--accent);
    text-decoration: underline;
}

.tree-node-label {
    padding-left: 2.25rem;
}

.tree-children {
    display: block;
}

/* Status dots (sidebar and fleet) */
.tree-dot,
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sev-dot-ok    { background: var(--sev-ok); }
.sev-dot-warn  { background: var(--sev-warn); }
.sev-dot-crit  { background: var(--sev-crit); }
.sev-dot-none  { background: var(--sev-none); }

.tree-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* ---------------------------------------------------------------------------
   Flash messages
   --------------------------------------------------------------------------- */

.flash-messages {
    margin-bottom: 1rem;
}

.flash {
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.flash-success {
    background: rgba(43, 159, 94, 0.15);
    border: 1px solid var(--sev-ok);
    color: var(--sev-ok);
}

.flash-error {
    background: rgba(201, 59, 59, 0.15);
    border: 1px solid var(--sev-crit);
    color: var(--sev-crit);
}

.flash-info {
    background: rgba(0, 143, 207, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* ---------------------------------------------------------------------------
   Login page
   --------------------------------------------------------------------------- */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-0);
}

.login-card {
    background: var(--bg-1);
    border: 1px solid var(--bg-2);
    border-radius: 6px;
    padding: 2rem;
    width: 22rem;
}

.login-card h1 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ---------------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------------- */

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--fg-1);
    margin-bottom: 0.3rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    background: var(--bg-0);
    border: 1px solid var(--bg-2);
    border-radius: 4px;
    color: var(--fg-0);
    font-size: 0.9rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background: #0078ad;
}

.btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: var(--sev-crit);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-2);
    color: var(--fg-0);
}

/* ---------------------------------------------------------------------------
   Tables (user management)
   --------------------------------------------------------------------------- */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th,
.data-table td {
    padding: 0.5rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-2);
}

.data-table th {
    color: var(--fg-1);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-active {
    background: rgba(43, 159, 94, 0.15);
    color: var(--sev-ok);
}

.badge-inactive {
    background: rgba(201, 59, 59, 0.15);
    color: var(--sev-crit);
}

.badge-admin {
    background: rgba(0, 143, 207, 0.15);
    color: var(--accent);
}

.badge-engineer {
    background: rgba(212, 146, 28, 0.15);
    color: var(--sev-warn);
}

.badge-viewer {
    background: rgba(74, 87, 100, 0.3);
    color: var(--fg-1);
}

/* ---------------------------------------------------------------------------
   Utility
   --------------------------------------------------------------------------- */

.actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.invite-form {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.invite-form .form-group {
    margin-bottom: 0;
}

h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--fg-0);
}

.word-break {
    word-break: break-all;
}

/* ---------------------------------------------------------------------------
   Fleet overview
   --------------------------------------------------------------------------- */

.conveyor-card {
    background: var(--bg-1);
    border: 1px solid var(--bg-2);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.conveyor-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.conveyor-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fg-0);
}

.conveyor-meta {
    font-size: 0.75rem;
    color: var(--fg-1);
    margin-left: auto;
}

/* Ribbon strip */
.ribbon-strip {
    display: flex;
    gap: 2px;
    height: 10px;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.ribbon-segment {
    flex: 1;
    min-width: 4px;
    transition: opacity 0.1s;
}

.ribbon-segment:hover {
    opacity: 0.7;
}

.sev-bg-ok    { background: var(--sev-ok); }
.sev-bg-warn  { background: var(--sev-warn); }
.sev-bg-crit  { background: var(--sev-crit); }
.sev-bg-none  { background: var(--sev-none); }

/* Node tiles */
.node-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.5rem;
}

.node-tile {
    background: var(--bg-0);
    border: 1px solid var(--bg-2);
    border-radius: 4px;
    padding: 0.6rem;
}

.node-tile-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.node-id {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fg-0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.node-tile-body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.node-feature {
    display: flex;
    flex-direction: column;
}

.feature-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fg-0);
    line-height: 1.2;
}

.feature-value.dim {
    color: var(--fg-1);
}

.feature-unit {
    font-size: 0.65rem;
    color: var(--fg-1);
}

.feature-label {
    font-size: 0.65rem;
    color: var(--fg-1);
}

.sparkline {
    flex-shrink: 0;
}

.node-tile-footer {
    border-top: 1px solid var(--bg-2);
    padding-top: 0.3rem;
}

.last-seen {
    font-size: 0.7rem;
    color: var(--fg-1);
}

.last-seen.dim {
    color: var(--sev-none);
}

.badge-stale {
    background: rgba(212, 146, 28, 0.15);
    color: var(--sev-warn);
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    margin-left: auto;
}

.empty-state {
    color: var(--fg-1);
    font-size: 0.85rem;
    padding: 2rem 0;
}

/* ---------------------------------------------------------------------------
   System status
   --------------------------------------------------------------------------- */

.section-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fg-0);
    margin: 1.5rem 0 0.75rem;
}

.section-heading:first-of-type {
    margin-top: 0.5rem;
}

.table-wrap {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.rsrp {
    font-weight: 600;
}

.rsrp-ok   { color: var(--sev-ok); }
.rsrp-warn { color: var(--sev-warn); }
.rsrp-crit { color: var(--sev-crit); }
.rsrp-none { color: var(--fg-1); }

/* Data quality bar */
.quality-bar {
    display: inline-block;
    width: 3rem;
    height: 0.5rem;
    background: var(--bg-0);
    border-radius: 2px;
    overflow: hidden;
    vertical-align: middle;
}

.quality-fill {
    display: block;
    height: 100%;
    border-radius: 2px;
}

.quality-ok   { background: var(--sev-ok); }
.quality-warn { background: var(--sev-warn); }
.quality-crit { background: var(--sev-crit); }

.quality-label {
    font-size: 0.75rem;
    color: var(--fg-1);
    margin-left: 0.3rem;
}

/* ---------------------------------------------------------------------------
   Battery / power
   --------------------------------------------------------------------------- */

.info-card {
    background: var(--bg-1);
    border: 1px solid var(--bg-2);
    border-radius: 6px;
    padding: 1.5rem;
}

.info-card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.info-note {
    font-size: 0.8rem;
    color: var(--fg-1);
}

.info-note code {
    background: var(--bg-0);
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
    font-size: 0.75rem;
}

.battery-card {
    background: var(--bg-1);
    border: 1px solid var(--bg-2);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.battery-stats {
    display: flex;
    gap: 2rem;
}

.battery-stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fg-0);
    line-height: 1.2;
}

.stat-value.dim {
    color: var(--fg-1);
}

.stat-unit {
    font-size: 0.7rem;
    color: var(--fg-1);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--fg-1);
    margin-top: 0.1rem;
}

/* ---------------------------------------------------------------------------
   Responsive: narrow viewports collapse sidebar
   --------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
   Charts (trends, spectrum)
   --------------------------------------------------------------------------- */

.trend-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.window-buttons {
    display: flex;
    gap: 0.3rem;
}

.chart-panel {
    background: var(--bg-1);
    border: 1px solid var(--bg-2);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.chart-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fg-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.chart-box {
    width: 100%;
    height: 250px;
}

.chart-info {
    font-size: 0.75rem;
    color: var(--fg-1);
    margin-top: 0.5rem;
}

.form-select-inline {
    padding: 0.3rem 0.5rem;
    background: var(--bg-0);
    border: 1px solid var(--bg-2);
    border-radius: 4px;
    color: var(--fg-0);
    font-size: 0.85rem;
    font-family: inherit;
}

.form-select-inline:focus {
    outline: none;
    border-color: var(--accent);
}

/* ---------------------------------------------------------------------------
   Alerts
   --------------------------------------------------------------------------- */

.alert-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.alert-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sev-check {
    font-size: 0.8rem;
    color: var(--fg-1);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.tab-bar {
    display: flex;
    gap: 0;
}

.tab-btn {
    padding: 0.4rem 1rem;
    border: 1px solid var(--bg-2);
    background: var(--bg-1);
    color: var(--fg-1);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
}

.tab-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.tab-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.badge-crit {
    background: rgba(201, 59, 59, 0.15);
    color: var(--sev-crit);
}

.badge-warn {
    background: rgba(212, 146, 28, 0.15);
    color: var(--sev-warn);
}

.badge-info {
    background: rgba(0, 143, 207, 0.15);
    color: var(--accent);
}

/* Ack modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: var(--bg-1);
    border: 1px solid var(--bg-2);
    border-radius: 6px;
    padding: 1.5rem;
    width: 24rem;
    max-width: 90vw;
}

.modal-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--fg-0);
}

.ack-info {
    font-size: 0.8rem;
    color: var(--fg-1);
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------------------------
   Configuration
   --------------------------------------------------------------------------- */

.config-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.config-section {
    background: var(--bg-1);
    border: 1px solid var(--bg-2);
    border-radius: 6px;
    padding: 1rem;
}

.config-section .section-heading {
    margin-top: 0;
}

.meta-input {
    padding: 0.25rem 0.4rem;
    background: var(--bg-0);
    border: 1px solid var(--bg-2);
    border-radius: 3px;
    color: var(--fg-0);
    font-size: 0.8rem;
    font-family: inherit;
}

.meta-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Waveform capture list */
.waveform-list {
    max-height: 20rem;
    overflow-y: auto;
}

/* ---------------------------------------------------------------------------
   Download manager
   --------------------------------------------------------------------------- */

.dl-manager { position: relative; }
.dl-btn {
    background: none; border: none; cursor: pointer;
    color: var(--fg-1); padding: 4px 8px; position: relative;
    display: flex; align-items: center;
}
.dl-btn:hover { color: var(--fg-0); }
.dl-btn svg { width: 18px; height: 18px; }
.dl-badge {
    position: absolute; top: -2px; right: 0;
    background: var(--accent); color: #fff;
    font-size: 10px; min-width: 16px; height: 16px;
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; padding: 0 4px;
}
.dl-dropdown {
    position: absolute; top: 100%; right: 0;
    background: var(--bg-1); border: 1px solid var(--bg-2);
    border-radius: 6px; min-width: 280px; max-height: 320px;
    overflow-y: auto; box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 1000;
}
.dl-header {
    padding: 8px 12px; font-size: 12px; font-weight: 600;
    color: var(--fg-1); border-bottom: 1px solid var(--bg-2);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.dl-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-bottom: 1px solid var(--bg-2);
    font-size: 13px; color: var(--fg-0);
}
.dl-item:last-child { border-bottom: none; }
.dl-item-clickable { cursor: pointer; }
.dl-item-clickable:hover { background: var(--bg-0); }
.dl-item-status { flex-shrink: 0; width: 16px; height: 16px; }
.dl-item-info { flex: 1; min-width: 0; }
.dl-item-node { font-weight: 500; }
.dl-item-detail { font-size: 11px; color: var(--fg-1); }
.dl-item-dismiss {
    background: none; border: none; cursor: pointer;
    color: var(--fg-1); padding: 2px; font-size: 14px;
    line-height: 1;
}
.dl-item-dismiss:hover { color: var(--fg-0); }
.dl-empty {
    padding: 16px 12px; text-align: center;
    font-size: 13px; color: var(--fg-1);
}

/* Download confirmation popup (floating at click location) */
.dl-confirm {
    position: fixed;
    z-index: 1100;
    padding: 10px 14px;
    background: var(--bg-1);
    border: 1px solid var(--bg-2);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.dl-confirm-text {
    font-size: 13px;
    color: var(--fg-0);
    margin-bottom: 8px;
}
.dl-confirm-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.dl-confirm-yes, .dl-confirm-no {
    border: none;
    border-radius: 4px;
    padding: 4px 14px;
    font-size: 12px;
    cursor: pointer;
}
.dl-confirm-yes {
    background: var(--accent);
    color: #fff;
}
.dl-confirm-yes:hover { opacity: 0.9; }
.dl-confirm-no {
    background: var(--bg-1);
    color: var(--fg-1);
    border: 1px solid var(--bg-2);
}
.dl-confirm-no:hover { color: var(--fg-0); }

/* Toast notifications */
.dl-toasts {
    position: fixed; bottom: 16px; right: 16px;
    z-index: 1100; display: flex; flex-direction: column-reverse;
    gap: 8px;
}
.dl-toast {
    background: var(--bg-1); border: 1px solid var(--sev-ok);
    border-radius: 6px; padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    font-size: 13px; color: var(--fg-0); cursor: pointer;
    animation: dl-toast-in 0.3s ease;
    max-width: 300px;
}
.dl-toast:hover { background: var(--bg-0); }
@keyframes dl-toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .sidebar {
        width: 3rem;
    }
    .sidebar .sidebar-title,
    .sidebar .sidebar-nav-links,
    .sidebar .sidebar-divider,
    .sidebar .sidebar-tree,
    .sidebar .sidebar-empty {
        display: none;
    }

    .node-tiles {
        grid-template-columns: 1fr;
    }
}
