/* Layout overrides for split frontend */
:root { color-scheme: light; }
.page-shell { min-height: 100vh; background: #f5f7fb; }
.app-main { width: min(calc(100% - 32px), 1280px); margin: 0 auto; padding: 96px 0 48px; }
.app-grid { display: grid; gap: 18px; }
.app-grid.two { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); background: #eef2f6; }
.admin-sidebar { background: #18304e; color: #fff; padding: 24px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
.admin-sidebar-brand { display: block; margin-bottom: 22px; font-size: 18px; }
.admin-menu-tree { display: grid; gap: 4px; }
.admin-menu-single,
.admin-menu-toggle,
.admin-menu-link { text-decoration: none; }
.admin-menu-single,
.admin-menu-link { display: block; padding: 10px 12px; border-radius: 8px; color: rgba(255,255,255,.78); font-size: 14px; }
.admin-menu-single:hover,
.admin-menu-link:hover,
.admin-menu-single.active,
.admin-menu-link.active { background: rgba(255,255,255,.18); color: #fff; }
.admin-menu-single.active,
.admin-menu-link.active { font-weight: 800; }
.admin-menu-group { border-radius: 10px; margin: 0; padding: 0; border: 0 !important; box-shadow: none !important; background: transparent; }
.admin-menu-group::before,
.admin-menu-group::after,
.admin-menu-items::before,
.admin-menu-items::after { content: none !important; display: none !important; width: 0 !important; height: 0 !important; border: 0 !important; box-shadow: none !important; }
.admin-menu-toggle { width: 100%; border: 0; background: transparent; color: rgba(255,255,255,.86); padding: 10px 12px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-align: left; user-select: none; }
.admin-menu-toggle:hover,
.admin-menu-group.expanded > .admin-menu-toggle { background: rgba(255,255,255,.12); color: #fff; }
.admin-menu-arrow { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .16s ease; opacity: .8; flex: 0 0 auto; }
.admin-menu-group.expanded .admin-menu-arrow { transform: rotate(-135deg); }
.admin-menu-items { display: none; height: 0; max-height: 0; margin: 0; padding: 0; overflow: hidden; border: 0 !important; box-shadow: none !important; }
.admin-menu-items[hidden],
.admin-menu-group:not(.expanded) > .admin-menu-items { display: none !important; height: 0 !important; max-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
.admin-menu-group.expanded > .admin-menu-items { display: grid !important; gap: 2px; height: auto !important; max-height: none !important; margin: 0 !important; padding: 4px 0 6px 10px !important; overflow: visible !important; }
.admin-menu-link { font-size: 13px; padding: 8px 10px 8px 14px; color: rgba(255,255,255,.68); }
.admin-main { padding: 28px; min-width: 0; }
@media (max-width: 880px) { .app-grid.two, .admin-shell { grid-template-columns: 1fr; } .admin-sidebar { position: static; height: auto; max-height: none; } .admin-menu-tree { grid-template-columns: 1fr; } }
