.shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { background: var(--nav); color: #d0dfd8; padding: 28px 18px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 30px; color: white; font-size: 27px; font-weight: bold; line-height: 1.3; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 44px; background: #c2ebd6; color: #103b2a; border-radius: 12px 12px 4px 12px; font-size: 32px; font-weight: bold; }
.brand small { display: block; font-size: 10px; color: #adc5bc; font-weight: normal; margin-top: 7px; }
.version { margin-inline-start: auto; font: 9px ui-monospace, monospace; color: #a5bdb3; border: 1px solid #3e5850; border-radius: 4px; padding: 4px; }
.workspace { display: flex; align-items: center; gap: 10px; padding: 14px 10px; border: 1px solid #3e5850; border-radius: 9px; font-size: 12px; margin-bottom: 28px; }
.workspace small { display: block; font: 9px ui-monospace, monospace; color: #a5bdb3; margin-top: 4px; }
.workspace-avatar, .avatar { display: grid; place-items: center; width: 32px; height: 32px; background: #36594d; color: #def1e5; border-radius: 8px; }
.workspace-dot { background: #97d6ae; width: 6px; height: 6px; border-radius: 50%; margin-inline-start: auto; }
.nav-label { color: #91b0a3; font-size: 10px; margin: 0 14px 9px; }
nav { display: grid; gap: 5px; margin-bottom: 28px; }
nav a { min-height: 45px; display: flex; align-items: center; gap: 11px; font-size: 12px; padding: 10px 13px; border-radius: 7px; transition: background .15s; }
nav a:hover { background: #23463d; }
nav a[aria-current] { background: #2a5044; color: #e3f5e9; box-shadow: inset -3px 0 #a5d8bb; }
.nav-count { font: 10px ui-monospace, monospace; padding: 0 6px; border-radius: 4px; background: #3b6251; margin-inline-start: auto; }
nav .tiny { margin-inline-start: auto; }
.sidebar-bottom { margin-top: auto; }
.local-note { padding: 16px 12px; background: #18382f; border: 1px solid #305344; border-radius: 8px; font-size: 10px; }
.local-note .status-dot { background: #9dd7b5; margin-inline-end: 5px; }
.local-note small { display: block; font: 9px ui-monospace, monospace; color: #94b6a4; margin: 8px 14px 0; }
.logout { color: #bfd1c8; border: 0; border-top: 1px solid #305344; background: transparent; margin-top: 20px; width: 100%; display: flex; justify-content: space-between; font-size: 12px; border-radius: 0; }
.logout:hover { background: #23463d; }
.main-area { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 76px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 36px; background: var(--surface); }
.breadcrumb { display: flex; gap: 15px; font-size: 11px; color: var(--muted); }
.breadcrumb span { color: #b4c1b9; }
.breadcrumb strong { font-weight: normal; color: var(--ink); }
.topbar-end { display: flex; gap: 20px; align-items: center; }
.service-state { display: flex; align-items: center; gap: 7px; font-size: 10px; }
.avatar { background: #e6efe9; color: #426250; border: 1px solid #d6e4db; }
main { padding: 35px 36px 28px; flex: 1; width: 100%; max-width: 1560px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 28px; }
.page-heading p { font-size: 12px; color: var(--muted); margin-top: 7px; }
.heading-actions { display: flex; gap: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.section-heading p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 18px 20px; }
.stat-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.stat .icon { color: #658073; width: 18px; }
.stat-value { font-size: 29px; font-weight: bold; margin: 12px 0 1px; line-height: 1.4; }
.stat small { color: var(--muted); font-size: 10px; }
.stat.featured { background: #eaf3ec; border-color: #d2e3d6; }
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.channel-card { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.channel-top { display: flex; gap: 12px; align-items: center; margin-bottom: 17px; }
.channel-top .badge { margin-inline-start: auto; }
.channel-mark { width: 42px; height: 42px; display: grid; place-items: center; background: #edf7ef; color: #208250; border-radius: 10px; }
.channel-mark .icon { width: 24px; height: 24px; }
.channel-mark.telegram { background: #ecf5fa; color: #2479a7; }
.channel-name small { display: block; font: 10px ui-monospace, monospace; color: var(--muted); }
.channel-card p { font-size: 11px; color: var(--muted); }
.channel-bottom { margin-top: 19px; border-top: 1px solid var(--line); padding-top: 13px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.channel-bottom a { color: var(--green); }
.panel { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin-bottom: 22px; }
.quickstart { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #edf3ef; border: 1px solid #d9e5dc; border-radius: 10px; padding: 20px 23px; }
.quickstart p { margin-top: 5px; font-size: 11px; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
footer { border-top: 1px solid var(--line); margin: 0 36px; padding: 18px 0; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
footer .mono { font-size: 9px; letter-spacing: 1px; }
.login-page { min-height: 100vh; display: grid; place-content: center; padding: 24px; background: linear-gradient(130deg, #edf3ef, #f8faf7); }
.login-card { width: min(400px, 100%); background: white; padding: 36px; border: 1px solid #d7e4db; border-radius: 16px; box-shadow: 0 16px 70px #18372a0b; }
.login-card .brand-mark { margin-bottom: 26px; }
.login-card h1 { font-size: 23px; margin-bottom: 10px; }
.login-card .primary { width: 100%; margin-top: 20px; justify-content: space-between; }
.login-card .helper { margin-top: 20px; font-size: 10px; }
.login-caption { text-align: center; color: var(--muted); font-size: 11px; margin-top: 24px; }
@media (min-width: 1600px) { main { padding-top: 45px; } }
@media (max-width: 1100px) { .shell { grid-template-columns: 205px minmax(0, 1fr); } main { padding: 28px 22px; } .topbar { padding: 0 22px; } .stats { gap: 10px; } .stat { padding: 16px; } .split { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .shell { display: block; } .sidebar { height: auto; position: static; padding: 16px; } .brand { padding: 0 6px 18px; font-size: 23px; } .workspace, .nav-label, .sidebar-bottom { display: none; } nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; } nav a { font-size: 11px; padding: 9px; flex: 1; justify-content: center; white-space: nowrap; } .sidebar nav:last-of-type { margin-top: 5px; } .sidebar nav:last-of-type a { justify-content: flex-start; } nav .icon { width: 17px; } .topbar { height: 60px; padding: 0 18px; } .topbar-end { gap: 12px; } main { padding: 24px 16px; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .channels { grid-template-columns: 1fr; } .page-heading { align-items: flex-start; flex-direction: column; } h1 { font-size: 23px; } .quickstart { flex-direction: column; align-items: flex-start; } footer { margin: 0 16px; font-size: 9px; } }
