:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #f1f2f7;
    --text: #202124;
    --muted: #6b7280;
    --border: #e3e5ec;
    --accent: #6264a7;
    --accent-dark: #4f518f;
    --accent-soft: #eeeffa;
    --success: #168447;
    --success-soft: #e9f7ef;
    --warning: #9a6700;
    --warning-soft: #fff4d8;
    --danger: #b42318;
    --danger-soft: #feeceb;
    --shadow: 0 10px 30px rgba(27, 31, 45, .07);
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a { color: inherit; }
button, input { font: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar {
    background: #272846;
    color: #fff;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #272846; font-weight: 800; }
.brand strong, .brand span { display: block; }
.brand span { opacity: .7; font-size: 12px; margin-top: 2px; }
.nav { display: grid; gap: 8px; margin-top: 24px; }
.nav a, .sidebar-footer a { text-decoration: none; display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 0 13px; border-radius: 10px; color: rgba(255,255,255,.8); }
.nav a:hover, .sidebar-footer a:hover, .nav a.active { background: rgba(255,255,255,.12); color: #fff; }
.sidebar-footer { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }

.main-content { min-width: 0; padding: 28px 34px 48px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.topbar h1 { margin: 0; font-size: 29px; letter-spacing: -.02em; }
.topbar p { margin: 6px 0 0; color: var(--muted); }
.connection-pill { white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; font-size: 13px; color: var(--muted); }
.connection-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.stat-card { padding: 20px; }
.stat-card .label { color: var(--muted); font-size: 13px; }
.stat-card .value { font-size: 30px; font-weight: 750; margin-top: 7px; }
.stat-card .hint { color: var(--muted); font-size: 12px; margin-top: 5px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 20px; }
.panel { padding: 22px; }
.panel-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.panel-header h2 { margin: 0; font-size: 18px; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.quick-actions { display: grid; gap: 12px; }
.quick-action { display: flex; gap: 13px; align-items: center; text-decoration: none; border: 1px solid var(--border); border-radius: 12px; padding: 15px; background: var(--surface); }
.quick-action:hover { border-color: #c7c9dc; background: #fafaff; }
.quick-action .icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.quick-action strong { display: block; }
.quick-action small { display: block; color: var(--muted); margin-top: 3px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th { color: var(--muted); font-size: 12px; font-weight: 650; text-align: left; padding: 0 12px 11px; border-bottom: 1px solid var(--border); }
td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.class-name { font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.break { word-break: break-all; }

.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 9px; font-size: 12px; font-weight: 650; }
.badge.success { color: var(--success); background: var(--success-soft); }
.badge.warning { color: var(--warning); background: var(--warning-soft); }
.badge.neutral { color: var(--muted); background: var(--surface-soft); }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 16px; min-height: 42px; cursor: pointer; text-decoration: none; font-weight: 650; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--surface-soft); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #e9eaf0; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1b13; }
.calendar-delete { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.calendar-delete > summary { color: var(--danger); cursor: pointer; }
.btn-sm { min-height: 36px; padding: 8px 11px; font-size: 13px; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }

.form-card { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group.full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 7px; }
input[type="text"], input[type="date"], input[type="time"] { width: 100%; min-height: 46px; border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 0 12px; outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(98,100,167,.12); }
.form-actions { margin-top: 20px; }
.helper { color: var(--muted); font-size: 12px; margin-top: 6px; }

.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid transparent; }
.alert.success { background: var(--success-soft); color: #116338; border-color: #ccebd8; }
.alert.warning { background: var(--warning-soft); color: #765000; border-color: #f3dfac; }
.alert.error { background: var(--danger-soft); color: var(--danger); border-color: #f5cfcc; }

.meeting-success { margin-top: 22px; }
.setting-list { display: grid; gap: 8px; margin: 16px 0; }
.setting-item { border: 1px solid var(--border); background: #fafafa; border-radius: 10px; padding: 11px 12px; }

.recordings-list { display: grid; gap: 14px; }
.recording-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.recording-card h3 { margin: 0 0 8px; }
.recording-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.recording-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.video-panel { background: #111; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.video-panel video { display: block; width: 100%; max-height: 72vh; background: #000; }
.video-info { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-top: 16px; }

.empty { padding: 34px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 14px; background: #fff; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #f7f7fb, #eceef8); }
.login-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 34px; text-align: center; }
.login-logo { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 16px; background: #272846; color: white; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.login-card h1 { margin: 0 0 8px; }
.login-card p { color: var(--muted); margin: 0 0 24px; }

@media (max-width: 980px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { min-height: auto; padding: 12px; position: static; }
    .brand { padding-bottom: 12px; }
    .nav { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
    .nav a { justify-content: center; padding: 0 8px; font-size: 13px; }
    .sidebar-footer { display: none; }
    .main-content { padding: 22px 16px 36px; }
    .topbar { align-items: stretch; flex-direction: column; }
    .connection-pill { align-self: flex-start; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: auto; }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: 1fr; }
    .nav span { display: none; }
    .topbar h1 { font-size: 24px; }
}

.copy-status { margin-top: 8px; color: var(--success); min-height: 18px; }
button:disabled { opacity: .55; cursor: not-allowed; }

/* Class calendar */
select { width: 100%; min-height: 46px; border: 1px solid var(--border); border-radius: 10px; background: white; padding: 0 12px; font: inherit; }
[hidden] { display: none !important; }
#repeat-range { margin-top: 18px; }
#full-year { margin-top: 8px; }
.calendar-toolbar { flex-wrap: wrap; }
.calendar-jump { align-items: center; margin-bottom: 22px; }
.calendar-jump input { width: auto; }
.calendar-jump label { margin: 0; }
.calendar-scroll { overflow-x: auto; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 760px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.calendar-heading { padding: 12px 6px; font-size: 12px; font-weight: 650; text-align: center; background: var(--surface-soft); }
.calendar-day { min-height: 140px; padding: 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.calendar-date { display: flex; justify-content: space-between; font-size: 12px; text-decoration: none; margin-bottom: 8px; }
.calendar-date span { color: var(--accent); }
.outside-month { background: var(--surface-soft); }
.is-today { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 4px; }
.calendar-event { margin: 5px 0; padding: 8px; background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 5px; font-size: 12px; overflow-wrap: anywhere; }
.calendar-event summary { cursor: pointer; }
.calendar-event strong, .calendar-event small, .calendar-event a { display: block; margin-top: 3px; }
.calendar-year { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.calendar-month { border: 1px solid var(--border); padding: 14px; border-radius: 12px; }
.calendar-month h3 { margin: 0 0 14px; font-size: 16px; }
.mini-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 12px; }
.mini-calendar a, .mini-calendar span { padding: 7px 0; text-decoration: none; }
.has-classes { background: var(--accent-soft); color: var(--accent-dark); font-weight: 750; border-radius: 4px; }
@media (max-width: 980px) { .calendar-year { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .calendar-year { grid-template-columns: 1fr; } }

/* Calendar presentation */
.calendar-panel { padding: 0; overflow: hidden; box-shadow: 0 8px 32px rgba(39,40,70,.05); }
.calendar-toolbar { padding: 24px 24px 18px; margin: 0; gap: 18px; }
.calendar-toolbar h2 { font-size: 23px; letter-spacing: -.035em; }
.calendar-navigation { gap: 6px; }
.calendar-navigation .btn { background: white; border: 1px solid var(--border); min-height: 38px; padding: 8px 13px; font-size: 13px; }
.calendar-actions { align-items: center; gap: 16px; }
.calendar-actions > .btn-primary { box-shadow: 0 4px 10px rgba(98,100,167,.18); }
.calendar-view-switch { display: flex; padding: 4px; gap: 3px; background: #f3f4f8; border: 1px solid #ececf2; border-radius: 11px; }
.calendar-view-switch .btn { min-height: 32px; padding: 6px 14px; font-size: 12px; border: 0; background: transparent; color: var(--muted); border-radius: 7px; }
.calendar-view-switch .btn-primary { background: white; color: var(--accent-dark); box-shadow: 0 2px 5px rgba(39,40,70,.1); }
.calendar-context { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 0 24px 20px; }
.calendar-count { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.calendar-count strong { color: var(--text); font-weight: 600; }
.calendar-count-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.calendar-jump { margin: 0; gap: 8px; }
.calendar-jump label { font-size: 12px; color: var(--muted); font-weight: 500; }
.calendar-jump input[type="date"] { width: 155px; min-height: 34px; font-size: 12px; border-radius: 7px; padding: 0 9px; }
.calendar-jump .btn { min-height: 34px; padding: 6px 12px; font-size: 12px; border-radius: 7px; }
.calendar-grid { border-left: 0; }
.calendar-heading { background: #fafbfe; color: #80869a; text-transform: uppercase; font-size: 10px; letter-spacing: .09em; padding: 14px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.calendar-day { min-height: 132px; padding: 10px; background: white; transition: background .15s; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:hover { background: #fafaff; }
.calendar-weekend { background: #fcfcfe; }
.calendar-day.outside-month { background: #f8f9fc; }
.outside-month .calendar-day-number { color: #b2b7c4; }
.calendar-day.is-today { border-radius: 0; box-shadow: inset 0 2px 0 var(--accent); background: #fcfcff; }
.calendar-date { align-items: center; margin-bottom: 9px; min-height: 27px; }
.calendar-date .calendar-day-number { display: grid; place-items: center; width: 27px; height: 27px; color: #51596b; font-weight: 600; font-size: 12px; }
.is-today .calendar-date .calendar-day-number { background: var(--accent); border-radius: 50%; color: white; }
.calendar-date .calendar-add { color: #9da3b5; font-size: 18px; width: 24px; text-align: center; border-radius: 6px; }
.calendar-date:hover .calendar-add { background: var(--accent-soft); color: var(--accent); }
.calendar-event { padding: 9px 10px; border-left: 3px solid #7779bc; background: #efeffb; border-radius: 6px; margin: 7px 0; }
.calendar-event summary { list-style: none; }
.calendar-event summary::-webkit-details-marker { display: none; }
.calendar-event small { color: #73769b; font-size: 10px; font-weight: 550; margin: 0 0 5px; }
.calendar-event strong { color: #4c4e82; font-size: 12px; font-weight: 650; line-height: 1.4; margin: 0; }
.calendar-event[open] { background: #e7e7f7; }
.calendar-event a { color: #4f518f; font-weight: 600; margin-top: 9px; font-size: 11px; }
.calendar-panel > .helper { padding: 14px 24px; margin: 0; background: #fcfcfe; font-size: 11px; }
.calendar-view-week .calendar-day { min-height: 380px; }
.calendar-year { padding: 4px 24px 24px; gap: 18px; }
.calendar-month { border-color: #eeeef4; padding: 18px; box-shadow: 0 2px 8px rgba(39,40,70,.02); }
.calendar-month h3 a { text-decoration: none; }
.calendar-month h3 a:hover { color: var(--accent); }
.mini-calendar a { border-radius: 7px; transition: background .15s; }
.mini-calendar a:hover { background: var(--accent-soft); }
.mini-calendar .has-classes { position: relative; background: #efeffb; }
.mini-calendar .has-classes::after { content: ''; position: absolute; bottom: 3px; left: calc(50% - 2px); width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1100px) { .calendar-toolbar h2 { order: -1; width: 100%; } .calendar-toolbar { justify-content: space-between; } }
@media (max-width: 760px) {
    .nav { grid-template-columns: repeat(4, 1fr); }
    .calendar-toolbar { padding: 18px 16px; }
    .calendar-context { flex-wrap: wrap; padding: 0 16px 16px; }
    .calendar-actions { gap: 8px; flex-wrap: wrap; }
    .calendar-view-switch .btn { padding: 6px 10px; }
    .calendar-year { padding: 0 16px 16px; }
    .calendar-panel > .helper { padding: 12px 16px; }
}
.calendar-tutor-name { display: block; margin-top: 8px; font-size: 11px; color: #676b89; }
.calendar-tutor-form { margin-top: 12px; padding-top: 10px; border-top: 1px solid #d4d5ea; }
.calendar-tutor-form label { font-size: 10px; margin: 10px 0 5px; }
.calendar-tutor-form select { min-height: 34px; font-size: 11px; padding: 5px; border-radius: 6px; }
.calendar-tutor-form .btn { width: 100%; margin-top: 10px; font-size: 11px; min-height: 32px; }
.calendar-event[open] { min-width: 150px; position: relative; z-index: 1; box-shadow: 0 4px 14px rgba(39,40,70,.12); }
.materials-layout { display: grid; gap: 22px; }
.material-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.material-row:last-child { border-bottom: 0; }
.material-row > a { font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.material-row > a:hover { color: var(--accent); }
.material-row form { flex-shrink: 0; }
.materials-upload { margin: 20px 0; padding: 18px; background: var(--surface-soft); border: 1px dashed #c7c9dc; border-radius: 12px; }
.materials-upload input[type="file"] { max-width: 100%; margin: 8px 12px 8px 0; }
@media (max-width: 760px) { .nav { grid-template-columns: repeat(5, 1fr); } .material-row { flex-wrap: wrap; } }
.materials-upload .button-row input[type="text"] { flex: 1; width: auto; min-width: 180px; }
.materials-upload .button-row { align-items: center; }

/* Microsoft To Do */
.todo-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.todo-sidebar h2 { font-size: 18px; margin: 0 0 18px; }
.todo-list-link { display: block; padding: 12px; border-radius: 8px; text-decoration: none; font-size: 14px; margin-bottom: 4px; overflow-wrap: anywhere; }
.todo-list-link:hover, .todo-list-link.selected { background: var(--accent-soft); color: var(--accent-dark); }
.todo-new-list { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 20px; }
.todo-new-list button { margin-top: 10px; }
.todo-add { background: #f8f9fd; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.todo-add-button { display: flex; align-items: flex-end; }
.todo-group-title { display: flex; gap: 10px; align-items: center; font-size: 14px; margin: 24px 0 12px; }
.todo-task { display: flex; gap: 14px; align-items: center; padding: 17px 4px; border-bottom: 1px solid var(--border); }
.todo-task strong { font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.todo-check { display: grid; place-items: center; width: 25px; height: 25px; border: 2px solid var(--accent); border-radius: 50%; background: white; color: white; cursor: pointer; }
.todo-check:hover { background: var(--accent-soft); }
.todo-check:focus-visible { outline: 3px solid #c8c9eb; outline-offset: 3px; }
.todo-task.done strong { text-decoration: line-through; color: var(--muted); }
.todo-task.done .todo-check { background: var(--accent); }
@media (max-width: 760px) { .todo-layout { grid-template-columns: 1fr; } .nav { grid-template-columns: repeat(3, 1fr); } }
input[type="email"], input[type="password"] { width: 100%; min-height: 46px; border: 1px solid var(--border); background: white; border-radius: 10px; padding: 0 12px; font: inherit; }
.admin-user { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border); }
.admin-license-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.admin-license-form input[type="text"] { width: 70px; }
.admin-license-form select { max-width: 260px; }
@media (max-width: 1100px) { .admin-user { align-items: flex-start; flex-direction: column; } }
.admin-user { flex-wrap: wrap; }
.admin-account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; width: 100%; }
.admin-delete { color: var(--danger); font-size: 12px; }
.admin-delete summary { cursor: pointer; padding: 10px; }
.admin-delete[open] { width: 100%; padding: 12px; background: var(--danger-soft); border-radius: 10px; }
.admin-delete form { max-width: 480px; }
.btn-danger { background: var(--danger); color: white; }

/* Organized workspace navigation */
.sidebar { background: linear-gradient(180deg, #272941 0%, #22243a 100%); position: sticky; top: 0; height: 100dvh; min-height: 0; overflow-y: auto; padding: 26px 16px 18px; scrollbar-width: thin; scrollbar-color: #4b4d69 transparent; }
.sidebar .brand { padding: 0 10px 24px; }
.sidebar .brand-mark { background: #f2f2ff; color: #45477e; box-shadow: 0 3px 12px rgba(0,0,0,.1); }
.sidebar .brand strong { font-size: 15px; letter-spacing: -.02em; }
.sidebar .brand span { font-size: 11px; margin-top: 4px; }
.sidebar .nav { display: flex; flex-direction: column; gap: 23px; margin-top: 26px; }
.nav-section-title { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; font-weight: 650; color: #969bb9; padding: 0 13px; margin: 0 0 9px; }
.nav-section-links { display: grid; gap: 4px; }
.sidebar .nav a { font-size: 13px; font-weight: 500; min-height: 43px; gap: 12px; border: 1px solid transparent; color: #c6c9df; transition: background .15s, color .15s; }
.sidebar .nav a:hover { background: #34364f; color: white; }
.sidebar .nav a.active { color: white; background: #414365; border-color: #535679; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.nav-icon { flex-shrink: 0; color: #a4a9c6; }
.sidebar .nav a.active .nav-icon { color: #d3d4ff; }
.sidebar .nav a span { display: inline; }
.sidebar .nav a .nav-active-dot { display: block; width: 5px; height: 5px; background: #c9caff; border-radius: 50%; margin-left: auto; }
.sidebar-footer { margin-top: auto; padding-top: 18px; border-top: 0; }
.sidebar-workspace { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 10px 12px; display: flex; align-items: center; gap: 10px; }
.workspace-dot { width: 7px; height: 7px; background: #9396e0; border-radius: 50%; flex-shrink: 0; }
.sidebar-workspace strong { display: block; color: #d1d4e8; font-size: 10px; font-weight: 550; }
.sidebar-workspace small { display: block; color: #898eaa; font-size: 10px; margin-top: 3px; }
.sidebar-footer a { font-size: 12px; color: #aeb3ce; min-height: 40px; }
@media (max-width: 760px) {
    .sidebar { position: static; height: auto; overflow: visible; padding: 16px; }
    .sidebar .brand { border-bottom: 0; padding: 0 0 14px; }
    .sidebar .nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; margin-top: 0; }
    .nav-section-title { font-size: 9px; padding: 0 8px; }
    .sidebar .nav a { padding: 0 8px; justify-content: flex-start; font-size: 12px; }
    .sidebar .nav a span { display: inline; }
    .sidebar-footer { display: block; padding-top: 14px; }
    .sidebar-workspace { display: none; }
    .sidebar-footer a { min-height: 34px; }
}
