/* ─── Variables ──────────────────────────────────────────────────────────────── */
:root {
    --sidebar-width: 300px;
    --navbar-height: 58px;
    --bg-body:       #0d1117;
    --bg-sidebar:    #161b22;
    --bg-card:       #1c2128;
    --bg-hover:      #21262d;
    --bg-active:     #1f3a52;
    --border-color:  #30363d;
    --accent:        #2f81f7;
    --accent-hover:  #388bfd;
    --accent-glow:   rgba(47, 129, 247, 0.15);
    --text-primary:  #e6edf3;
    --text-muted:    #7d8590;
    --text-dim:      #484f58;
    --success:       #3fb950;
    --warning:       #d29922;
    --danger:        #f85149;
    --group-color:   #e3b341;
    --note-color:    #58a6ff;
    --radius-sm:     6px;
    --radius-md:     10px;
    --radius-lg:     16px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.4);
    --shadow-md:     0 4px 16px rgba(0,0,0,.5);
    --shadow-lg:     0 8px 32px rgba(0,0,0,.6);
    --transition:    0.15s ease;
}

/* ─── Base ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
    font-size: 14px;
}

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

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ─── Navbar ─────────────────────────────────────────────────────────────────── */
.app-navbar {
    height: var(--navbar-height);
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 12px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    white-space: nowrap;
    min-width: calc(var(--sidebar-width) - 1rem);
    text-decoration: none;
}

.app-logo .logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), #a371f7);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    box-shadow: 0 0 12px var(--accent-glow);
}

.app-logo span { color: var(--accent); }

.search-wrapper {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.search-wrapper .bi-search {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

#globalSearch {
    width: 100%;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-primary);
    padding: 7px 12px 7px 34px;
    font-size: 13px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

#globalSearch:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

#globalSearch::placeholder { color: var(--text-dim); }

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-height: 360px;
    overflow-y: auto;
    z-index: 200;
    display: none;
}

.search-results-dropdown.show { display: block; }

.search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--transition);
    border-bottom: 1px solid var(--border-color);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg-hover); }

.search-item-icon { font-size: 14px; }
.search-item-title { font-weight: 500; font-size: 13px; flex: 1; }
.search-item-path { font-size: 11px; color: var(--text-muted); }

.search-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.navbar-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 5px 12px 5px 6px;
    cursor: pointer;
    transition: border-color var(--transition);
    color: var(--text-primary);
    font-size: 13px;
}
.user-badge:hover { border-color: var(--accent); color: var(--text-primary); }

.user-avatar {
    width: 26px; height: 26px;
    background: linear-gradient(135deg, var(--accent), #a371f7);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
.app-layout {
    display: flex;
    height: calc(100vh - var(--navbar-height));
    margin-top: var(--navbar-height);
    overflow: hidden;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────────── */
.app-sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-actions {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.btn-sidebar {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.btn-sidebar:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.sidebar-tree-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 8px 4px;
}

/* ─── jsTree custom theme ────────────────────────────────────────────────────── */
#noteTree.jstree-default .jstree-anchor {
    color: var(--text-primary) !important;
    height: 30px;
    line-height: 30px;
    padding: 0 6px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: background var(--transition);
}

#noteTree.jstree-default .jstree-anchor:hover {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
}

#noteTree.jstree-default .jstree-clicked {
    background: var(--bg-active) !important;
    color: var(--accent) !important;
    box-shadow: inset 3px 0 0 var(--accent);
}

#noteTree.jstree-default .jstree-wholerow-clicked {
    background: var(--bg-active) !important;
}

#noteTree.jstree-default .jstree-wholerow-hovered {
    background: var(--bg-hover) !important;
}

.jstree-default .jstree-icon { color: var(--text-muted); }

.tree-icon-group { color: var(--group-color) !important; }
.tree-icon-note  { color: var(--note-color)  !important; }

.jstree-default .jstree-open  > .jstree-anchor > .tree-icon-group { color: #e3b341 !important; }

/* ─── Main content ───────────────────────────────────────────────────────────── */
.app-main {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
}

/* ─── Welcome / empty state ──────────────────────────────────────────────────── */
#welcomePanel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    text-align: center;
}

.welcome-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-hover));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    margin-bottom: 8px;
}

.welcome-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.welcome-sub {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 380px;
    line-height: 1.6;
}

.welcome-shortcuts {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.shortcut-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition);
}
.shortcut-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* ─── Note editor panel ──────────────────────────────────────────────────────── */
#editorPanel {
    flex: 1;
    padding: 28px 32px;
    display: none;
    flex-direction: column;
    gap: 0;
}

.editor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.editor-type-badge {
    padding: 3px 10px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-note  { background: rgba(88,166,255,.15); color: var(--note-color);  border: 1px solid rgba(88,166,255,.3); }
.badge-group { background: rgba(227,179,65,.15);  color: var(--group-color); border: 1px solid rgba(227,179,65,.3); }

.editor-title-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    flex: 1;
    padding: 0;
    font-family: inherit;
}
.editor-title-input::placeholder { color: var(--text-dim); }

.editor-actions {
    display: flex;
    gap: 8px;
}

/* ─── Form fields ────────────────────────────────────────────────────────────── */
.editor-form { display: flex; flex-direction: column; gap: 16px; flex: 1; }

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
}

.field-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.field-input::placeholder { color: var(--text-dim); }

textarea.field-input {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.key-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.key-input-wrapper .field-input {
    padding-right: 44px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.key-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition);
    font-size: 14px;
}
.key-toggle:hover { color: var(--accent); }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn-primary-app {
    background: var(--accent);
    border: none;
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.btn-primary-app:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text-primary); }

.btn-danger-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-danger-ghost:hover { border-color: var(--danger); color: var(--danger); }

/* ─── Visibility button ──────────────────────────────────────────────────────── */
.btn-visibility {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    transition: all var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-visibility.visibility-public {
    border-color: rgba(63,185,80,.4);
    color: var(--success);
    background: rgba(63,185,80,.08);
}

.btn-visibility.visibility-private {
    border-color: rgba(210,153,34,.4);
    color: var(--warning);
    background: rgba(210,153,34,.08);
}

.btn-visibility:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

/* ─── Private node in tree ───────────────────────────────────────────────────── */
.tree-icon-private { color: #d29922 !important; }

#noteTree .node-private { opacity: 0.85; font-style: italic; }

/* ─── Timestamps footer ──────────────────────────────────────────────────────── */
.editor-timestamps {
    display: flex;
    gap: 20px;
    padding: 10px 0 4px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.editor-timestamps span { display: flex; align-items: center; gap: 5px; }

/* ─── Context menu ───────────────────────────────────────────────────────────── */
.context-menu {
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    min-width: 180px;
    padding: 4px;
    display: none;
}
.context-menu.show { display: block; }

.context-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    transition: background var(--transition);
}
.context-item:hover { background: var(--bg-hover); }
.context-item.danger { color: var(--danger); }
.context-item.danger:hover { background: rgba(248,81,73,.1); }

.context-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* ─── Toast notifications ────────────────────────────────────────────────────── */
.toast-container-app {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-app {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    min-width: 240px;
    max-width: 340px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.25s ease;
    font-size: 13px;
}

.toast-app.success { border-left: 3px solid var(--success); }
.toast-app.error   { border-left: 3px solid var(--danger); }
.toast-app.info    { border-left: 3px solid var(--accent); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ─── Modal ──────────────────────────────────────────────────────────────────── */
.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-color) !important;
    padding: 18px 24px !important;
}

.modal-footer {
    border-top: 1px solid var(--border-color) !important;
    padding: 14px 24px !important;
}

.modal-title { font-weight: 700 !important; font-size: 16px !important; }
.btn-close-white { filter: invert(1) !important; }

/* ─── Stats bar ──────────────────────────────────────────────────────────────── */
.sidebar-stats {
    padding: 10px 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-dim);
}

.stat-item { display: flex; align-items: center; gap: 4px; }
.stat-item span { color: var(--text-muted); font-weight: 500; }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────────── */
.node-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
    flex-wrap: wrap;
}

.node-breadcrumb .crumb { color: var(--text-muted); }
.node-breadcrumb .crumb-sep { color: var(--text-dim); }
.node-breadcrumb .crumb-current { color: var(--text-primary); font-weight: 500; }

/* ─── Group children list ────────────────────────────────────────────────────── */
.group-children {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.child-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.child-card:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.child-card-icon { font-size: 18px; }
.child-card-title { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.child-card-meta  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ─── Login page ─────────────────────────────────────────────────────────────── */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(47,129,247,.07) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(163,113,247,.05) 0%, transparent 50%);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.login-logo-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--accent), #a371f7);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    box-shadow: 0 0 24px var(--accent-glow);
}

.login-logo-text {
    font-size: 22px;
    font-weight: 700;
}

.login-logo-text span { color: var(--accent); }

.login-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: -4px;
}

/* ─── Users page ─────────────────────────────────────────────────────────────── */
.users-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.users-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px;
    color: var(--text-muted);
    font-size: 13px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.users-table th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-sidebar);
}

.users-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.users-table tbody tr:last-child td { border-bottom: none; }

.users-table tbody tr:hover td { background: var(--bg-hover); }

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 24px;
    font-size: 11px;
    font-weight: 600;
}

.role-badge.admin {
    background: rgba(47,129,247,.15);
    color: var(--accent);
    border: 1px solid rgba(47,129,247,.3);
}

.role-badge.user {
    background: rgba(125,133,144,.1);
    color: var(--text-muted);
    border: 1px solid rgba(125,133,144,.25);
}

/* Role selector in modal */
.role-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-body);
}

.role-option:hover { border-color: var(--text-muted); }

.role-option.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.role-option > i { font-size: 18px; color: var(--text-muted); }
.role-option.selected > i { color: var(--accent); }

.role-name { font-size: 13px; font-weight: 600; }
.role-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ─── Hamburger button ───────────────────────────────────────────────────────── */
.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
    transition: all var(--transition);
}
.hamburger-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Sidebar backdrop (mobile overlay) ─────────────────────────────────────── */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 49;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.sidebar-backdrop.show { display: block; }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --sidebar-width: 280px; }

    /* Hamburger visible */
    .hamburger-btn { display: flex; }

    /* Sidebar → overlay deslizable */
    .app-sidebar {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        bottom: 0;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: none;
    }
    .app-sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    /* Navbar */
    .app-logo .logo-text { display: none; }
    .search-wrapper { max-width: none; }
    .username-label { display: none; }
    .user-badge { padding: 5px 6px; }

    /* Editor */
    #editorPanel { padding: 16px; }

    .editor-header {
        flex-wrap: wrap;
        row-gap: 10px;
        padding-bottom: 14px;
    }
    .editor-title-input { font-size: 18px; order: 1; width: 100%; }
    .editor-type-badge  { order: 0; }
    .editor-actions     { order: 2; width: 100%; justify-content: flex-end; }
    .node-breadcrumb    { order: 3; width: 100%; }

    .editor-timestamps { flex-direction: column; gap: 5px; }

    /* Welcome panel */
    .welcome-shortcuts { flex-direction: column; align-items: stretch; }
    .shortcut-chip     { justify-content: center; }

    /* Users page */
    .users-card { border-radius: var(--radius-md); }
    #usersTableWrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .users-table { min-width: 520px; }
}
