:root {
  color-scheme: dark;
  --background: #0d1117;
  --surface: #141a23;
  --raised: #1a222e;
  --sidebar: #10151d;
  --edge: #26313e;
  --text: #edf2f8;
  --muted: #a9b6c7;
  --quiet: #91a1b6;
  --accent: #74ebca;
  --accent-bg: #153432;
  --danger: #ffabac;
  --button-text: #092421;
  --radius: 15px;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}
[data-theme="light"] {
  color-scheme: light;
  --background: #f2f5f8;
  --surface: #fff;
  --raised: #eef3f6;
  --sidebar: #fcfdff;
  --edge: #d8e0e8;
  --text: #172331;
  --muted: #485b70;
  --quiet: #546779;
  --accent: #087961;
  --accent-bg: #d8f2e9;
  --danger: #aa2535;
  --button-text: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p, h1, h2, h3 { margin: 0; }
svg { display: inline-block; vertical-align: middle; flex: none; }
button, a, input { -webkit-tap-highlight-color: transparent; }
.accent { color: var(--accent); }
.layout { display: grid; grid-template-columns: 246px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { background: var(--sidebar); border-right: 1px solid var(--edge); padding: 27px 16px 16px; display: flex; flex-direction: column; gap: 31px; height: 100dvh; position: sticky; top: 0; overflow: auto; }
.brand { display: inline-flex; gap: 11px; align-items: center; width: fit-content; font-weight: 750; font-size: 1.25rem; letter-spacing: .075em; line-height: 1.05; }
.sidebar > .brand { margin-left: 9px; }
.brand-icon, .tile-icon, .auth-emblem { display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); border-radius: 11px; width: 42px; height: 42px; }
.brand small { display: block; color: var(--quiet); font-weight: 650; font-size: .69rem; letter-spacing: .14em; margin-top: 6px; }
.nav-group { color: var(--quiet); margin: 22px 0 5px 12px; font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .105em; }
nav a { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 7px 11px; color: var(--muted); border-radius: 8px; font-size: .92rem; }
nav a svg, .icon-button svg, .search svg { width: 19px; height: 19px; }
nav a:hover, .icon-button:hover { background: var(--raised); color: var(--text); }
nav a[aria-current="page"] { color: var(--accent); background: var(--accent-bg); font-weight: 650; }
.profile { margin-top: auto; border-top: 1px solid var(--edge); padding: 16px 2px 0; display: flex; align-items: center; gap: 9px; }
.avatar { display: grid; flex: none; place-items: center; width: 36px; height: 36px; background: var(--raised); border: 1px solid var(--edge); border-radius: 50%; color: var(--accent); font-size: .86rem; font-weight: 700; }
.profile-text { min-width: 0; flex: 1; }
.profile-text strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .87rem; white-space: nowrap; }
.profile-text small { display: block; color: var(--quiet); font-size: .78rem; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 9px; }
.theme, .menu { border-color: var(--edge); }
.topbar { display: flex; gap: 14px; min-height: 76px; align-items: center; padding: 12px clamp(16px, 3.15vw, 48px); border-bottom: 1px solid var(--edge); }
.breadcrumb { font-size: .9rem; font-weight: 650; margin-right: auto; }
.search { display: flex; align-items: center; gap: 8px; flex: 0 1 340px; min-width: 0; border: 1px solid var(--edge); background: var(--surface); color: var(--quiet); border-radius: 9px; padding: 0 9px 0 12px; }
.search:focus-within { border-color: var(--accent); }
.search input { color: var(--text); width: 100%; min-width: 0; border: 0; outline: 0; background: none; height: 40px; font-size: .9rem; }
.search input::placeholder { color: var(--quiet); }
.search button { font-size: .78rem; background: var(--raised); color: var(--muted); border: 1px solid var(--edge); border-radius: 5px; padding: 2px 7px; }
.menu { display: none; }
.content { max-width: 1600px; margin: 0 auto; padding: 30px clamp(16px, 3.15vw, 48px) 44px; }
.hero { position: relative; display: flex; min-height: 204px; overflow: hidden; align-items: center; border-radius: 19px; border: 1px solid #2c504f; background: linear-gradient(110deg, #13282d, #112125 62%, #122e2d); }
.hero-copy { position: relative; z-index: 1; padding: 29px 34px; max-width: 75%; }
.hero h1 { color: #f5fafb; font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.045em; line-height: 1.08; margin: 12px 0 7px; }
.hero p { color: #bed0d5; }
.portal-label, .auth-footer { color: #a6dfd4; display: inline-flex; gap: 8px; align-items: center; font-size: .84rem; }
.signal { width: 7px; height: 7px; border-radius: 50%; background: #74ebca; box-shadow: 0 0 13px #74ebca8c; }
.hero-grid { position: absolute; inset: 0 0 0 48%; background-image: radial-gradient(#7fd4c436 1px, transparent 1px); background-size: 15px 15px; mask-image: linear-gradient(to right, transparent, #000 33%); }
.orbit { position: absolute; left: 66%; top: 50%; translate: -50% -50%; border: 1px solid #74ebca39; border-radius: 50%; }
.orbit-one { width: 113px; height: 113px; }
.orbit-two { width: 171px; height: 171px; }
.orbit-three { width: 231px; height: 231px; border-style: dashed; }
.hero-mark { position: absolute; left: 66%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid #74ebca70; background: #193e3b; color: #8cf7de; border-radius: 22px; box-shadow: 0 0 36px #6affe626; }
.hero-mark svg { width: 42px; height: 42px; }
.node { position: absolute; width: 7px; height: 7px; background: #74ebca; border-radius: 50%; box-shadow: 0 0 12px #74ebca88; }
.node-one { left: calc(66% + 52px); top: calc(50% - 70px); }
.node-two { left: calc(66% - 58px); top: calc(50% + 72px); }
.node-three { left: calc(66% - 104px); top: calc(50% - 55px); opacity: .65; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 28%); gap: 22px; margin-top: 29px; align-items: start; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.section-heading h2 { font-size: 1.32rem; letter-spacing: -.02em; }
.section-heading > span { color: var(--quiet); font-size: .86rem; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.service, .panel { background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); }
.service { min-height: 183px; padding: 15px; display: flex; flex-direction: column; align-items: flex-start; }
.service:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--edge)); }
.service-top { display: flex; align-items: flex-start; justify-content: space-between; width: 100%; }
.tile-icon { background: color-mix(in srgb, var(--tile, var(--accent)) 15%, var(--surface)); color: var(--tile, var(--accent)); }
.tone-vm { --tile: #83aaff; } .tone-files { --tile: #6ed9c4; } .tone-programs { --tile: #c2a5ff; }
.tone-iso { --tile: #eac889; } .tone-music { --tile: #ec9bd2; } .tone-videos { --tile: #f4a28e; }
.tone-apps { --tile: #8ec8ff; } .tone-admin { --tile: #8ad2a4; }
[data-theme="light"] .tone-vm, [data-theme="light"] .tone-apps { --tile: #2b58a1; }
[data-theme="light"] .tone-files, [data-theme="light"] .tone-admin { --tile: #167657; }
[data-theme="light"] .tone-programs { --tile: #6748a4; } [data-theme="light"] .tone-iso { --tile: #875a0c; }
[data-theme="light"] .tone-music { --tile: #9b367a; } [data-theme="light"] .tone-videos { --tile: #a74a34; }
.star { width: 34px; height: 34px; }
.star.starred { color: #e5b762; }
.star.starred svg { fill: currentColor; }
.service h3 { font-size: 1.05rem; margin: 9px 0 2px; }
.service h3 a:hover, .text-link:hover, .activity-list a:hover { color: var(--accent); }
.service p { font-size: .9rem; color: var(--muted); margin-bottom: 12px; flex: 1; }
.status { display: inline-flex; align-items: center; gap: 7px; background: var(--raised); color: var(--muted); border-radius: 20px; padding: 4px 9px; font-size: .78rem; line-height: 1.25; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--accent); background: var(--accent-bg); }
.status-down { color: var(--danger); }
.dashboard-aside { display: grid; gap: 13px; padding-top: 44px; }
.panel { padding: 16px; }
.panel h2 { display: flex; gap: 9px; align-items: center; font-size: 1rem; }
.panel h2 svg, .activity-list svg { width: 18px; height: 18px; color: var(--accent); }
.empty { margin-top: 14px; display: flex; gap: 11px; align-items: flex-start; border: 1px dashed var(--edge); border-radius: 9px; padding: 13px; }
.empty > svg { width: 19px; height: 19px; color: var(--quiet); margin-top: 2px; }
.empty strong, .activity-list a { font-size: .9rem; }
.empty p, .panel > p { color: var(--muted); font-size: .88rem; }
.health-panel p { margin-top: 8px; }
.activity-list { margin: 8px 0 0; padding: 0; list-style: none; }
.activity-list a { display: flex; gap: 9px; align-items: center; padding: 8px 0; }
.activity-list li + li { border-top: 1px solid var(--edge); }
.page-heading { margin-bottom: 20px; }
.page-heading h1 { margin: 6px 0; font-size: clamp(1.8rem, 5vw, 2.7rem); letter-spacing: -.035em; }
.page-heading p { color: var(--muted); }
.module-panel { max-width: 900px; margin-top: 13px; }
.module-panel > :not(:first-child) { margin-top: 10px; }
.text-link { display: inline-block; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; text-align: left; }
th, td { border-bottom: 1px solid var(--edge); padding: 9px; }
th { color: var(--quiet); }
.skip { position: fixed; top: 6px; left: 6px; z-index: 10; transform: translateY(-200%); padding: 8px; background: var(--surface); }
.skip:focus { transform: none; }
.error-page > .brand { margin-bottom: 24px; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100dvh; }
.auth-story { --accent: #74ebca; --quiet: #a9c7ca; color: #f1f8f8; padding: clamp(25px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 42px; background: radial-gradient(ellipse at 35% 50%, #17403f, transparent 66%), radial-gradient(#82e1d32c 1px, transparent 1px) 0 0 / 18px 18px, #102023; }
.auth-intro h1 { font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1.03; letter-spacing: -.055em; margin: 19px 0 15px; }
.auth-intro p { color: #bdd2d6; max-width: 35ch; }
.auth-emblem { width: 66px; height: 66px; border: 1px solid #74ebca63; background: #153735; }
.auth-emblem svg { width: 36px; height: 36px; }
.auth-access { display: grid; align-items: center; justify-items: center; position: relative; padding: 70px 24px 45px; }
.auth-theme { position: absolute; top: 24px; right: 24px; }
.login { display: grid; width: min(100%, 380px); gap: 8px; }
.login h2 { margin-top: 7px; font-size: 2rem; letter-spacing: -.035em; }
.login p { margin-bottom: 14px; color: var(--muted); }
.login label { font-size: .9rem; font-weight: 600; }
.login input { width: 100%; background: var(--surface); border: 1px solid var(--edge); border-radius: 8px; color: var(--text); min-height: 45px; padding: 8px 10px; margin-bottom: 8px; }
.primary { background: var(--accent); color: var(--button-text); padding: 11px 16px; border-radius: 8px; border: 0; font-weight: 700; min-height: 45px; }
.primary:hover { filter: brightness(1.1); }
.login .form-error { padding: 8px 10px; border: 1px solid var(--danger); border-radius: 8px; color: var(--danger); font-size: .9rem; }
@media (min-width: 1500px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1050px) { .layout { grid-template-columns: 211px minmax(0, 1fr); } .dashboard-grid { grid-template-columns: 1fr; } .dashboard-aside { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; } }
@media (max-width: 760px) {
  .layout { display: block; }
  .menu { display: inline-grid; flex: none; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; position: absolute; z-index: 3; top: 65px; bottom: auto; width: min(285px, 86vw); height: min(calc(100dvh - 65px), 700px); box-shadow: 16px 18px 35px #0006; }
  .topbar { min-height: 65px; }
  .theme { flex: none; }
  .content { padding-top: 20px; }
  .hero-copy { padding: 24px; max-width: 85%; }
  .hero-grid { opacity: .58; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { gap: 20px; }
  .auth-intro h1 { font-size: 2.45rem; }
  .auth-emblem, .auth-footer { display: none; }
  .auth-access { padding-top: 66px; }
}
@media (max-width: 520px) {
  .breadcrumb { display: none; }
  .search { flex: 1; }
  .topbar { gap: 8px; }
  .hero-copy { max-width: 100%; }
  .hero-grid { opacity: .24; }
  .dashboard-aside { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 159px; }
}
