/* UD TaskManager — Admin (client gray theme) */

/* Centered shell — наследует cl-topbar / cl-page из client.css */
.adm-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.adm-topnav__logout {
    margin-left: 4px;
    color: var(--cl-muted) !important;
}

.adm-topnav__logout:hover {
    color: var(--cl-danger) !important;
}

:root {
    --adm-bg: #f4f4f5;
    --adm-card: rgba(255, 255, 255, 0.82);
    --adm-card-solid: #ffffff;
    --adm-border: #e4e4e7;
    --adm-text: #18181b;
    --adm-muted: #71717a;
    --adm-accent: #27272a;
    --adm-accent-2: #3f3f46;
    --adm-danger: #dc2626;
    --adm-success: #52525b;
    --adm-sidebar-w: 248px;
    --adm-radius: 12px;
    --adm-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 8px 24px rgba(24, 24, 27, 0.06);
    --adm-font: "Inter", system-ui, -apple-system, sans-serif;
    --adm-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.adm-body {
    margin: 0;
    font-family: var(--adm-font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--adm-text);
    background: var(--adm-bg);
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

.adm-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(160deg, #fafafa 0%, #f4f4f5 45%, #e4e4e7 100%);
}

.adm-app {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.adm-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--adm-sidebar-w);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: 1px solid var(--adm-border);
    display: flex;
    flex-direction: column;
    z-index: 40;
    transform: translateX(0);
    transition: transform 0.25s ease;
}

.adm-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    text-decoration: none;
    border-bottom: 1px solid var(--adm-border);
}

.adm-brand__logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3f3f46, #27272a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.adm-brand__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--adm-text);
}

.adm-brand__sub {
    font-size: 11px;
    color: var(--adm-muted);
    margin-top: 1px;
}

.adm-nav {
    flex: 1;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.adm-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--adm-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.adm-nav__link:hover {
    background: #fafafa;
    color: var(--adm-text);
}

.adm-nav__link.is-active {
    background: #f4f4f5;
    color: var(--adm-accent);
    font-weight: 600;
    box-shadow: inset 3px 0 0 #52525b;
}

.adm-nav__link--muted { color: var(--adm-muted); }
.adm-nav__icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.85;
}

.adm-sidebar__foot {
    padding: 12px 10px 20px;
    border-top: 1px solid var(--adm-border);
}

/* ── Main ── */
.adm-main {
    flex: 1;
    margin-left: var(--adm-sidebar-w);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.adm-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--adm-border);
}

.adm-topbar__left { display: flex; align-items: center; gap: 16px; }

.adm-topbar__eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--adm-muted);
}

.adm-topbar__title {
    margin: 2px 0 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.adm-topbar__right { display: flex; align-items: center; gap: 12px; }

.adm-menu-btn {
    display: none;
    background: var(--adm-card-solid);
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
}

.adm-content {
    padding: 20px 24px 40px;
    max-width: 1560px;
    width: 100%;
}

/* ── Buttons ── */
.adm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.adm-btn--primary {
    background: var(--adm-accent);
    color: #fff;
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.15);
}

.adm-btn--primary:hover { background: var(--adm-accent-2); }

.adm-btn--ghost {
    background: var(--adm-card-solid);
    color: var(--adm-text);
    border: 1px solid var(--adm-border);
}

.adm-btn--ghost:hover { border-color: #a1a1aa; }

.adm-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.adm-user__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e4e4e7;
    color: var(--adm-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.adm-user__name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.adm-user__role { font-size: 11px; color: var(--adm-muted); }

/* ── Dashboard ── */
.db-grid { display: grid; gap: 20px; }

.db-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    padding: 22px 24px;
    background: linear-gradient(135deg, #3f3f46 0%, #27272a 100%);
    border-radius: var(--adm-radius);
    color: #fff;
    box-shadow: var(--adm-shadow);
}

.db-hero__label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 6px;
}

.db-hero__headline {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.db-hero__sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.db-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.db-hero__actions .adm-btn--primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--adm-accent);
    box-shadow: none;
}

.db-hero__actions .adm-btn--primary:hover { background: #fff; }

.db-hero__actions .adm-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.db-hero__actions .adm-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }

.db-kpis {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.db-kpi {
    background: var(--adm-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    padding: 16px 18px;
    box-shadow: var(--adm-shadow);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}

a.db-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(24, 24, 27, 0.08);
}

.db-kpi--xl { grid-column: span 3; }
.db-kpi--md { grid-column: span 2; }
.db-kpi--sm { grid-column: span 2; }

.db-kpi__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-bottom: 6px;
    background: #f4f4f5;
    color: #52525b;
}

.db-kpi__icon--gold,
.db-kpi__icon--blue,
.db-kpi__icon--slate { background: #f4f4f5; color: #52525b; }
.db-kpi__icon--red { background: #fee2e2; color: var(--adm-danger); }
.db-kpi__icon--green { background: #e4e4e7; color: #3f3f46; }

.db-kpi__value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.db-kpi__value--sm { font-size: 24px; }

.db-kpi__label {
    font-size: 12px;
    font-weight: 500;
    color: var(--adm-muted);
}

.db-kpi__delta {
    font-size: 11px;
    color: var(--adm-muted);
    margin-top: 4px;
}

.db-kpi__delta--warn { color: var(--adm-danger); font-weight: 600; }
.db-kpi__delta--ok { color: #3f3f46; }

.db-panel {
    background: var(--adm-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    box-shadow: var(--adm-shadow);
    overflow: hidden;
}

.db-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--adm-border);
}

.db-panel__title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--adm-muted);
    margin: 0;
}

.db-panel__title--danger { color: var(--adm-danger); }

.db-panel__link {
    font-size: 12px;
    font-weight: 600;
    color: var(--adm-accent);
    text-decoration: none;
}

.db-panel__link:hover { text-decoration: underline; }
.db-panel__body { padding: 16px; }

.db-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: background 0.12s;
}

a.db-status-row:hover { background: #fafafa; }

.db-status-row__bar {
    flex: 1;
    height: 8px;
    background: #f4f4f5;
    border-radius: 999px;
    overflow: hidden;
}

.db-status-row__fill { height: 100%; border-radius: 999px; }

.db-status-row__label {
    width: 110px;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.db-status-row__count {
    width: 48px;
    text-align: right;
    font-family: var(--adm-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--adm-muted);
    flex-shrink: 0;
}

.db-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 160px;
    padding-top: 12px;
}

.db-chart__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.db-chart__bar-wrap {
    flex: 1;
    width: 100%;
    max-width: 36px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.db-chart__bar {
    width: 100%;
    border-radius: 6px 6px 2px 2px;
    background: #52525b;
    min-height: 4px;
    transition: height 0.35s ease, background 0.15s;
    position: relative;
}

.db-chart__bar:hover { background: #27272a; }

.db-chart__val {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--adm-mono);
    font-size: 10px;
    color: var(--adm-muted);
    opacity: 0;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.db-chart__col:hover .db-chart__val { opacity: 1; }

.db-chart__lbl {
    font-family: var(--adm-mono);
    font-size: 10px;
    color: var(--adm-muted);
    text-transform: uppercase;
}

.db-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

.db-ring__svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.db-ring__bg { fill: none; stroke: #e4e4e7; stroke-width: 10; }

.db-ring__fg {
    fill: none;
    stroke: #52525b;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.db-ring__pct {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-top: -88px;
    position: relative;
    letter-spacing: -0.02em;
}

.db-ring__caption {
    font-size: 12px;
    color: var(--adm-muted);
    text-align: center;
    margin-top: 52px;
    line-height: 1.4;
}

.db-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.db-mini-stat {
    text-align: center;
    padding: 12px;
    background: #fafafa;
    border: 1px solid var(--adm-border);
    border-radius: 10px;
}

.db-mini-stat__value {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.db-mini-stat__label {
    font-size: 11px;
    color: var(--adm-muted);
    margin-top: 2px;
}

.db-proj {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #f4f4f5;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.db-proj:last-child { border-bottom: none; }
.db-proj:hover { background: #fafafa; }

.db-proj__badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3f3f46, #27272a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.db-proj__info { flex: 1; min-width: 0; }

.db-proj__name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-proj__code {
    font-family: var(--adm-mono);
    font-size: 11px;
    color: var(--adm-muted);
    margin-top: 2px;
}

.db-proj__stats { text-align: right; flex-shrink: 0; }

.db-proj__open {
    font-family: var(--adm-mono);
    font-size: 13px;
    font-weight: 600;
}

.db-proj__overdue {
    font-size: 11px;
    color: var(--adm-danger);
    font-weight: 600;
}

.db-proj__track {
    height: 4px;
    background: #e4e4e7;
    border-radius: 999px;
    margin-top: 6px;
    overflow: hidden;
}

.db-proj__fill {
    height: 100%;
    background: linear-gradient(90deg, #71717a, #3f3f46);
    border-radius: 999px;
}

.db-feed-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #f4f4f5;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.db-feed-item:last-child { border-bottom: none; }
.db-feed-item:hover { background: #fafafa; }

.db-feed-item__title {
    font-size: 14px;
    font-weight: 600;
    grid-column: 1;
}

.db-feed-item__meta {
    font-size: 12px;
    color: var(--adm-muted);
    grid-column: 1;
}

.db-feed-item__badge {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.db-feed-item--danger .db-feed-item__title { color: var(--adm-danger); }

.badge-new { background: #f4f4f5; color: #52525b; }
.badge-accepted { background: #fef3c7; color: #b45309; }
.badge-in_progress { background: #d1fae5; color: #047857; }
.badge-blocked { background: #ffedd5; color: #c2410c; }
.badge-done { background: #d4d4d8; color: #18181b; }
.badge-cancelled { background: #ffe4e6; color: #be123c; }

.db-span-8 { grid-column: span 8; }
.db-span-7 { grid-column: span 7; }
.db-span-5 { grid-column: span 5; }
.db-span-4 { grid-column: span 4; }
.db-span-12 { grid-column: span 12; }

.db-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

/* Legacy admin pages (tailwind-free basics) */
.adm-content .card {
    background: var(--adm-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    box-shadow: var(--adm-shadow);
}

.adm-content input,
.adm-content select,
.adm-content textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    outline: none;
}

.adm-content input:focus,
.adm-content select:focus,
.adm-content textarea:focus {
    border-color: var(--adm-accent);
    box-shadow: 0 0 0 3px rgba(39, 39, 42, 0.1);
}

/* ── Shared page components ── */
.adm-lead {
    font-size: 13px;
    color: var(--adm-muted);
    margin: 6px 0 0;
}

.adm-meta {
    font-size: 12px;
    color: var(--adm-muted);
    margin-bottom: 8px;
}

.adm-page-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.adm-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.adm-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.adm-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.adm-alert--ok {
    background: #f4f4f5;
    color: #3f3f46;
    border: 1px solid #e4e4e7;
}

.adm-panel {
    background: var(--adm-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    box-shadow: var(--adm-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.adm-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--adm-border);
}

.adm-panel__title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--adm-muted);
}

.adm-panel__meta {
    font-size: 12px;
    color: var(--adm-muted);
    font-family: var(--adm-mono);
}

.adm-panel__body { padding: 18px; }

.adm-grid {
    display: grid;
    gap: 20px;
}

.adm-grid--2-1 { grid-template-columns: 2fr 1fr; }
.adm-grid--1-2 { grid-template-columns: 1fr 2fr; }
.adm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.adm-form { display: flex; flex-direction: column; gap: 16px; }

.adm-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--adm-muted);
    margin-bottom: 6px;
}

.adm-hint {
    font-size: 12px;
    color: var(--adm-muted);
    margin-top: 4px;
}

.adm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--adm-muted);
}

.adm-list {
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    background: var(--adm-card-solid);
    overflow: hidden;
}

.adm-list__item {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid var(--adm-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.adm-list__item:last-child { border-bottom: none; }
.adm-list__item:hover { background: #fafafa; }

.adm-list__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--adm-border);
}

.adm-list__row:last-child { border-bottom: none; }

.adm-list__title {
    font-size: 14px;
    font-weight: 600;
}

.adm-list__sub {
    font-size: 12px;
    color: var(--adm-muted);
    margin-top: 4px;
}

.adm-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid var(--adm-border);
    background: #f4f4f5;
    color: #52525b;
}

.adm-badge--link {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.adm-btn--block { width: 100%; }
.adm-btn--danger {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fff;
}

.adm-btn--danger:hover { background: #fef2f2; }

.adm-desc {
    line-height: 1.6;
    white-space: pre-wrap;
}

.adm-timeline__item {
    padding: 14px 0;
    border-bottom: 1px solid var(--adm-border);
}

.adm-timeline__item:last-child { border-bottom: none; }

.adm-timeline__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.adm-timeline__time {
    font-size: 11px;
    color: var(--adm-muted);
    font-family: var(--adm-mono);
}

.adm-timeline__comment {
    font-size: 14px;
    margin-top: 8px;
    white-space: pre-wrap;
}

.adm-timeline__actor {
    font-size: 11px;
    color: var(--adm-muted);
    margin-top: 6px;
    text-transform: uppercase;
}

.adm-login-wrap {
    max-width: 420px;
    margin: 40px auto;
}

.adm-login-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    box-shadow: var(--adm-shadow);
    padding: 32px;
}

.adm-login-card h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
}

.adm-login-card p {
    margin: 0 0 24px;
    color: var(--adm-muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .adm-grid--2-1,
    .adm-grid--1-2,
    .adm-grid--2,
    .adm-grid--3,
    .adm-grid--4 { grid-template-columns: 1fr; }
}

@media (max-width: 1280px) {
    .db-kpi--xl { grid-column: span 6; }
    .db-kpi--md, .db-kpi--sm { grid-column: span 3; }
    .db-span-8, .db-span-7 { grid-column: span 12; }
    .db-span-5, .db-span-4 { grid-column: span 6; }
}

@media (max-width: 900px) {
    .adm-sidebar { transform: translateX(-100%); }
    .adm-sidebar-open .adm-sidebar {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
    }
    .adm-main { margin-left: 0; }
    .adm-menu-btn { display: block; }
    .adm-content { padding: 16px; }
    .db-kpi--xl, .db-kpi--md, .db-kpi--sm { grid-column: span 6; }
    .db-span-5, .db-span-4 { grid-column: span 12; }
    .db-hero { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .db-kpi--xl, .db-kpi--md, .db-kpi--sm { grid-column: span 12; }
    .adm-topbar { padding: 10px 12px; }
    .adm-user__meta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
