:root {
  color-scheme: dark;
  --bg: #06131b;
  --bg-deep: #030c12;
  --panel: #0a202b;
  --panel-2: #0d2834;
  --panel-soft: rgba(13, 40, 52, .72);
  --line: rgba(155, 205, 218, .12);
  --line-strong: rgba(155, 205, 218, .22);
  --ink: #edf8f9;
  --muted: #8aa8b3;
  --muted-2: #587481;
  --aqua: #55e3d1;
  --aqua-dark: #0f877e;
  --blue: #71aef8;
  --amber: #f1bd59;
  --red: #ff747d;
  --green: #68dca2;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .3);
  --font: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg-deep); }
body { min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--ink); background:
  radial-gradient(circle at 78% 4%, rgba(54, 162, 181, .13), transparent 30rem),
  linear-gradient(135deg, var(--bg-deep), var(--bg)); font-family: var(--font); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { border: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(85,227,209,.24); border-radius: 12px; background: linear-gradient(145deg,rgba(85,227,209,.18),rgba(33,105,139,.2)); box-shadow: inset 0 1px rgba(255,255,255,.1); overflow: hidden; }
.brand__mark::before,.brand__mark::after { content:""; position:absolute; width:9px; height:27px; border-radius:10px; background:linear-gradient(var(--aqua),#398ac4); transform:rotate(38deg); }
.brand__mark::before { left:10px; top:5px; }.brand__mark::after { right:9px; bottom:4px; opacity:.55; }
.brand__copy b,.brand__copy small { display:block; }.brand__copy b { font-size:12px; letter-spacing:.23em; }.brand__copy small { margin-top:3px; color:var(--muted-2); font-size:7px; letter-spacing:.18em; text-transform:uppercase; }
.button { min-height: 42px; padding: 0 16px; display: inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--line-strong); border-radius:11px; color:var(--ink); background:rgba(255,255,255,.035); font-size:12px; font-weight:750; cursor:pointer; transition:.18s ease; }
.button:hover { border-color:rgba(85,227,209,.32); background:rgba(85,227,209,.07); transform:translateY(-1px); }
.button:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.button--primary { border-color:rgba(85,227,209,.34); color:#04231f; background:linear-gradient(135deg,#70eadb,#42c7ba); box-shadow:0 10px 28px rgba(46,207,190,.13); }
.button--primary:hover { color:#021b18; background:linear-gradient(135deg,#85f4e7,#51d5c7); }
.button--danger { border-color:rgba(255,116,125,.26); color:#ffb4b9; background:rgba(255,116,125,.07); }
.button--ghost { border-color:transparent; color:var(--muted); background:transparent; }
.button--small { min-height:34px; padding-inline:11px; font-size:10px; }
.icon-button { width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--line); border-radius:11px; color:var(--muted); background:rgba(255,255,255,.025); cursor:pointer; }
.field { display:grid; gap:7px; margin:0 0 15px; }.field > span { color:var(--muted); font-size:10px; font-weight:750; letter-spacing:.03em; }.field small { color:var(--muted-2); font-size:9px; line-height:1.5; }
.field input,.field select,.field textarea { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--line); outline:0; border-radius:11px; color:var(--ink); background:rgba(2,14,20,.48); transition:.18s; }
.field textarea { min-height:92px; resize:vertical; }.field input::placeholder,.field textarea::placeholder { color:#49626e; }.field input:focus,.field select:focus,.field textarea:focus { border-color:rgba(85,227,209,.48); box-shadow:0 0 0 3px rgba(85,227,209,.07); }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.field-row--3 { grid-template-columns:repeat(3,1fr); }
.auth-shell { min-height:100vh; display:grid; grid-template-columns:minmax(330px, .9fr) minmax(390px,1.1fr); }
.auth-story { position:relative; min-height:100vh; padding:clamp(28px,5vw,72px); display:flex; flex-direction:column; overflow:hidden; border-right:1px solid var(--line); background:linear-gradient(145deg,rgba(9,39,50,.95),rgba(5,18,26,.98)); }
.auth-story::before { content:""; position:absolute; width:34rem; height:34rem; right:-17rem; bottom:-15rem; border:1px solid rgba(85,227,209,.12); border-radius:50%; box-shadow:0 0 0 5rem rgba(85,227,209,.02),0 0 0 10rem rgba(85,227,209,.015); }
.auth-story__copy { position:relative; z-index:1; margin:auto 0; max-width:530px; }.eyebrow { display:block; color:var(--aqua); font-size:9px; font-weight:850; letter-spacing:.22em; text-transform:uppercase; }
.auth-story h1 { margin:16px 0 18px; max-width:620px; font-size:clamp(42px,6vw,82px); line-height:.96; letter-spacing:-.055em; }.auth-story p { max-width:510px; margin:0; color:var(--muted); font-size:14px; line-height:1.7; }
.auth-story__facts { position:relative; z-index:1; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }.auth-story__facts div { padding:12px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.02); }.auth-story__facts b,.auth-story__facts span { display:block; }.auth-story__facts b { font-size:13px; }.auth-story__facts span { margin-top:3px; color:var(--muted-2); font-size:8px; }
.auth-panel { min-height:100vh; padding:24px; display:grid; place-items:center; }.auth-card { width:min(100%,430px); padding:clamp(24px,4vw,38px); border:1px solid var(--line-strong); border-radius:24px; background:linear-gradient(145deg,rgba(13,40,52,.9),rgba(6,22,31,.94)); box-shadow:var(--shadow); }.auth-card h2 { margin:22px 0 7px; font-size:28px; letter-spacing:-.04em; }.auth-card > p { margin:0 0 25px; color:var(--muted); line-height:1.55; }.form-error { margin:0 0 14px; padding:10px 12px; border:1px solid rgba(255,116,125,.25); border-radius:10px; color:#ffc2c6; background:rgba(255,116,125,.07); font-size:11px; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:236px minmax(0,1fr); }.sidebar { position:sticky; top:0; height:100vh; padding:22px 16px; display:flex; flex-direction:column; border-right:1px solid var(--line); background:rgba(4,17,24,.86); backdrop-filter:blur(18px); }.sidebar-nav { margin:42px 0 0; display:grid; gap:5px; }.nav-button { min-height:46px; padding:0 12px; display:flex; align-items:center; gap:11px; border-radius:11px; color:var(--muted); background:transparent; text-align:left; cursor:pointer; }.nav-button span { width:23px; color:var(--muted-2); text-align:center; }.nav-button:hover,.nav-button.is-active { color:var(--ink); background:rgba(85,227,209,.065); }.nav-button.is-active span { color:var(--aqua); }.sidebar-foot { margin-top:auto; padding:13px; border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.02); }.sidebar-foot b,.sidebar-foot span { display:block; overflow:hidden; text-overflow:ellipsis; }.sidebar-foot b { font-size:11px; }.sidebar-foot span { margin-top:4px; color:var(--muted-2); font-size:8px; }
.web-version { width:fit-content; padding:4px 6px; border:1px solid rgba(85,227,209,.16); border-radius:6px; color:var(--aqua)!important; background:rgba(85,227,209,.05); font-size:7px!important; font-weight:850; letter-spacing:.1em; line-height:1; white-space:nowrap; }.topbar-version { display:inline-flex; align-items:center; }.login-web-version { display:flex; margin:16px auto 0; }
.main { min-width:0; }.topbar { height:70px; padding:0 clamp(18px,3vw,44px); display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); background:rgba(4,17,24,.6); backdrop-filter:blur(16px); }.topbar__right { display:flex; align-items:center; gap:8px; }.profile-chip { min-height:40px; padding:5px 11px 5px 6px; display:flex; align-items:center; gap:9px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.025); }.avatar { width:29px; height:29px; display:grid; place-items:center; border-radius:9px; color:#04221e; background:var(--aqua); font-size:10px; font-weight:900; }.profile-chip b,.profile-chip small { display:block; }.profile-chip b { max-width:150px; overflow:hidden; text-overflow:ellipsis; font-size:10px; }.profile-chip small { margin-top:2px; color:var(--muted-2); font-size:7px; }
.content { width:min(100%,1500px); margin:0 auto; padding:clamp(24px,4vw,52px); }.page-head { min-height:86px; margin-bottom:24px; display:flex; align-items:flex-end; justify-content:space-between; gap:24px; }.page-head h1 { margin:7px 0 5px; font-size:clamp(30px,4vw,48px); letter-spacing:-.05em; }.page-head p { margin:0; color:var(--muted); line-height:1.55; }.page-actions { display:flex; gap:8px; }
.summary-grid { margin-bottom:18px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }.summary-card { min-height:112px; padding:16px; border:1px solid var(--line); border-radius:var(--radius-md); background:linear-gradient(145deg,rgba(13,40,52,.7),rgba(7,25,34,.75)); }.summary-card span,.summary-card small { display:block; color:var(--muted); font-size:9px; }.summary-card b { display:block; margin:14px 0 4px; font-size:24px; letter-spacing:-.04em; }.summary-card small { color:var(--muted-2); }
.panel { border:1px solid var(--line); border-radius:var(--radius-lg); background:linear-gradient(145deg,rgba(13,40,52,.72),rgba(6,22,31,.8)); overflow:hidden; }.panel-head { min-height:68px; padding:14px 17px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); }.panel-head h2 { margin:0 0 4px; font-size:16px; }.panel-head p { margin:0; color:var(--muted-2); font-size:9px; }.panel-body { padding:17px; }
.status { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }.status::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--muted-2); }.status--online { color:var(--green); }.status--online::before { background:var(--green); box-shadow:0 0 0 4px rgba(104,220,162,.08); }.status--warning { color:var(--amber); }.status--warning::before { background:var(--amber); }.status--error { color:var(--red); }.status--error::before { background:var(--red); }
.empty-state { min-height:260px; padding:30px; display:grid; place-content:center; justify-items:center; text-align:center; }.empty-state__icon { width:58px; height:58px; display:grid; place-items:center; border:1px solid rgba(85,227,209,.18); border-radius:18px; color:var(--aqua); background:rgba(85,227,209,.055); font-size:22px; }.empty-state h3 { margin:17px 0 7px; font-size:18px; }.empty-state p { max-width:390px; margin:0; color:var(--muted); line-height:1.55; }.empty-state .button { margin-top:18px; }
.skeleton { position:relative; overflow:hidden; color:transparent!important; background:rgba(255,255,255,.04)!important; }.skeleton::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent,rgba(255,255,255,.055),transparent); transform:translateX(-100%); animation:shimmer 1.35s infinite; }@keyframes shimmer{to{transform:translateX(100%)}}
.dialog { width:min(calc(100% - 28px),540px); max-width:calc(100vw - 28px); padding:0; border:0; border-radius:22px; color:var(--ink); background:transparent; }.dialog::backdrop { background:rgba(0,7,11,.8); backdrop-filter:blur(7px); }.dialog-card { min-width:0; max-width:100%; padding:26px; overflow:hidden; border:1px solid var(--line-strong); border-radius:22px; background:linear-gradient(145deg,#102b38,#071a23); box-shadow:var(--shadow); }.dialog-head { margin-bottom:20px; display:flex; align-items:start; justify-content:space-between; gap:18px; }.dialog-head>div { min-width:0; }.dialog-head h2 { margin:0 0 6px; font-size:22px; }.dialog-head p { margin:0; color:var(--muted); line-height:1.5; }.dialog-actions { min-width:0; margin-top:22px; display:flex; justify-content:flex-end; gap:8px; }
.toast-region { position:fixed; z-index:90; right:18px; bottom:18px; display:grid; gap:8px; pointer-events:none; }.toast { width:min(390px,calc(100vw - 28px)); padding:12px 14px; border:1px solid var(--line-strong); border-radius:11px; color:var(--ink); background:#102b38; box-shadow:var(--shadow); font-size:11px; animation:toast-in .2s ease both; }.toast.is-error { border-color:rgba(255,116,125,.3); color:#ffc0c4; }@keyframes toast-in{from{opacity:0;transform:translateY(8px)}}
.mobile-nav { display:none; }
@media(max-width:1100px){.summary-grid{grid-template-columns:repeat(2,1fr)}.app-shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding-inline:12px}}
@media(max-width:780px){.auth-shell{grid-template-columns:1fr}.auth-story{min-height:42vh;border-right:0;border-bottom:1px solid var(--line)}.auth-story__copy{margin:12vh 0 7vh}.auth-story h1{font-size:clamp(43px,12vw,68px)}.auth-story__facts{display:none}.auth-panel{min-height:58vh;padding:16px}.auth-card{margin-top:-38px}.app-shell{display:block}.sidebar{display:none}.topbar{height:62px;padding-inline:14px}.topbar .brand__copy small{display:none}.content{padding:22px 15px 90px}.page-head{min-height:0;align-items:stretch;flex-direction:column}.page-actions{display:grid;grid-template-columns:1fr 1fr}.mobile-nav{position:fixed;z-index:50;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));min-height:62px;padding:6px;display:grid;border:1px solid var(--line-strong);border-radius:17px;background:rgba(6,24,33,.94);box-shadow:var(--shadow);backdrop-filter:blur(18px)}.mobile-nav button{display:grid;place-content:center;justify-items:center;gap:3px;border-radius:11px;color:var(--muted);background:transparent;font-size:8px}.mobile-nav button span{font-size:16px}.mobile-nav button.is-active{color:var(--aqua);background:rgba(85,227,209,.07)}}
@media(max-width:780px){.topbar-version{display:none}}
@media(max-width:520px){.auth-story{padding:24px 19px}.brand__mark{width:34px;height:34px}.auth-card{padding:23px 18px}.field-row,.field-row--3{grid-template-columns:1fr}.summary-grid{grid-template-columns:1fr 1fr;gap:8px}.summary-card{min-height:96px;padding:13px}.summary-card b{font-size:20px}.profile-chip small{display:none}.profile-chip b{max-width:96px}.dialog-card{padding:22px 17px}.dialog-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.dialog-actions .button{min-width:0;padding-inline:9px}.toast-region{left:14px;right:14px;bottom:88px}.toast{width:auto}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
