/* PIRS client area: login and panel. Builds on site.css (tokens, wallpaper, glass, buttons). */
html.panel-page, body.auth { --dim: 1; }
body.panel, body.auth { padding-bottom: 0; }

/* ---------- login ---------- */
.auth-wrap { min-height: 100svh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 72px 16px 32px; }
.auth-back { position: fixed; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 15px;
  background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6); }
.auth-card { width: min(420px, 100%); padding: 36px 32px 30px; text-align: center; }
.auth-logo { width: 112px; margin: 0 auto 26px; }
.auth-card h1 { font-size: 32px; letter-spacing: -0.035em; }
.auth-sub { margin-top: 8px; color: var(--ink-2); }
.providers { display: grid; gap: 10px; margin-top: 26px; }
.prov { position: relative; width: 100%; height: 54px; border: 0; border-radius: 999px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 17px/1 var(--font); transition: transform 0.35s var(--spring), box-shadow 0.3s; }
.prov:active { transform: scale(0.96); }
.prov:disabled { cursor: default; }
.prov img { width: 22px; height: 22px; }
.prov.tg { color: #fff; background: linear-gradient(180deg, #45b4ef, #229ed9); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 12px 30px -10px rgba(34, 158, 217, 0.7); }
.prov.gg { color: var(--ink); background: #fff; box-shadow: inset 0 1px 1px #fff, 0 10px 26px -12px rgba(10, 8, 30, 0.45); }
.field.mail { margin-top: 0; margin-bottom: 12px; }
.field.mail input { height: 54px; text-align: center; border-radius: 999px; }
.err { margin: -4px 0 12px; color: #ff3b30; font-size: 14px; font-weight: 600; }
.alt-btn { margin-top: 12px; width: 100%; height: 50px; border: 0; border-radius: 999px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--font); color: var(--ink); background: rgba(255, 255, 255, 0.62); box-shadow: inset 0 1px 1px #fff, 0 6px 18px -12px rgba(10, 8, 30, 0.4); transition: background-color 0.25s, transform 0.35s var(--spring); }
.alt-btn:hover { background: rgba(255, 255, 255, 0.82); }
.alt-btn:active { transform: scale(0.97); }
.alt-btn img { width: 20px; height: 20px; }
.spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.4px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: rot 0.8s linear infinite; }
.spin.dark { border-color: rgba(11, 15, 26, 0.15); border-top-color: var(--ink); }
.busy .spin { display: inline-block; }
.btn.busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.4px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: rot 0.8s linear infinite; position: relative; z-index: 3; }
@keyframes rot { to { transform: rotate(360deg); } }
.or { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.or::before, .or::after { content: ""; flex: 1; height: 0.5px; background: var(--sep); }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.otp input { width: 100%; height: 56px; border: 0; border-radius: 16px; text-align: center; font: 600 24px/1 var(--font); color: var(--ink); background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 1px #fff, 0 4px 12px -8px rgba(10, 8, 30, 0.35); outline: none; transition: box-shadow 0.2s, background-color 0.2s; }
.otp input:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--accent), 0 6px 18px -8px rgba(255, 106, 43, 0.5); }
.btn:disabled { opacity: 0.5; cursor: default; }
.auth-hint { margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.auth-hint a, .auth-legal a { color: var(--blue); font-weight: 600; }
.auth-legal { max-width: 420px; text-align: center; font-size: 13.5px; color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 10px rgba(10, 6, 30, 0.55); }
.auth-legal a { color: #fff; }

/* ---------- panel layout ---------- */
.side { position: fixed; top: 16px; bottom: 16px; left: 16px; width: 256px; z-index: 40; padding: 22px 14px 14px; display: flex; flex-direction: column; border-radius: 32px; }
.side .logo { width: 96px; margin: 2px 12px 24px; }
.side nav { display: grid; gap: 4px; position: relative; z-index: 3; }
.side nav a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 15px; font-weight: 600; font-size: 16px; color: var(--ink-2); transition: background-color 0.25s, color 0.25s; }
.side nav a:hover { background: rgba(255, 255, 255, 0.4); color: var(--ink); }
.side nav a.on { background: #fff; color: var(--ink); box-shadow: inset 0 1px 1px #fff, 0 6px 16px -10px rgba(10, 8, 30, 0.45); }
.side nav a.on svg { color: var(--accent); }
.side nav svg { width: 22px; height: 22px; flex: none; }
.side .new { margin: 18px 4px 0; position: relative; z-index: 3; }
.me { margin-top: auto; position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.45); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8); }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; background: linear-gradient(160deg, #ff9a5a, #ff6a2b); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6); }
.me b { display: block; font-size: 15px; line-height: 1.2; }
.me small { display: block; font-size: 12.5px; color: var(--ink-2); }
.me .demo { display: inline-block; margin-top: 3px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #b2560f; background: rgba(255, 159, 10, 0.16); }

.main { margin-left: 288px; padding: 30px 32px 64px; max-width: 1200px; }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 4px 4px 24px; color: #fff; }
.top h1 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.04em; text-shadow: 0 2px 24px rgba(10, 6, 30, 0.35); }
.top .sub { margin-top: 6px; color: rgba(255, 255, 255, 0.78); font-size: 16px; }
.top .crumb { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 15px; }
.top .crumb svg { width: 9px; height: 16px; }
.sec-t { margin: 30px 6px 12px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: #fff; text-shadow: 0 1px 16px rgba(10, 6, 30, 0.35); display: flex; justify-content: space-between; align-items: baseline; }
.sec-t a { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }

/* widgets */
.widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.w { padding: 20px 22px; border-radius: 26px; display: flex; flex-direction: column; gap: 4px; }
.w .label { font-size: 14px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.w .label i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.w .label i svg { width: 16px; height: 16px; }
.w .val { font-size: 32px; font-weight: 700; letter-spacing: -0.035em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.w .hint { font-size: 14px; color: var(--ink-2); }
.w .btn { margin-top: 10px; align-self: flex-start; }

/* server cards */
.srv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.srv { display: block; padding: 22px; border-radius: 28px; transition: transform 0.45s var(--spring); }
.srv:hover { transform: translateY(-3px); }
.srv .head { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 14px; position: relative; z-index: 3; }
.srv .head .t { min-width: 0; }
.srv .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-tile { width: 50px; height: 50px; border-radius: 15px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: inset 0 1px 1px #fff, 0 6px 16px -10px rgba(10, 8, 30, 0.45); }
.os-tile img { width: 30px; height: 30px; }
.srv h3 { font-size: 20px; letter-spacing: -0.02em; }
.srv .meta { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.run { color: #1d8a3c; background: rgba(52, 199, 89, 0.18); }
.pill.busy-s { color: #b4600a; background: rgba(255, 159, 10, 0.2); }
.pill.busy-s i { animation: blink 1s ease-in-out infinite; }
.pill.off { color: #5f6675; background: rgba(120, 120, 128, 0.18); }
@keyframes blink { 50% { opacity: 0.3; } }
.bars { display: grid; gap: 11px; margin-top: 20px; position: relative; z-index: 3; }
.bar-row { display: grid; grid-template-columns: 74px 1fr 46px; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.bar-row b { text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.track { height: 8px; border-radius: 99px; background: rgba(11, 15, 26, 0.08); overflow: hidden; }
.fill { display: block; height: 100%; border-radius: 99px; transition: width 0.8s var(--ease); }
.f-cpu { background: linear-gradient(90deg, #0a84ff, #64d2ff); }
.f-ram { background: linear-gradient(90deg, #af52de, #da8fff); }
.f-disk { background: linear-gradient(90deg, #ff6a2b, #ffb05a); }
.srv-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 0.5px solid var(--sep); font-size: 14px; color: var(--ink-2); position: relative; z-index: 3; }
.srv-foot b { color: var(--ink); font-weight: 600; }
.empty { padding: 34px; border-radius: 28px; text-align: center; }
.empty p { color: var(--ink-2); margin: 8px 0 18px; }

/* grouped lists */
.group { border-radius: 24px; background: rgba(255, 255, 255, 0.62); box-shadow: inset 0 1px 1px #fff, 0 20px 50px -28px rgba(10, 8, 30, 0.55); overflow: hidden;
  -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%); }
.row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px; border-bottom: 0.5px solid var(--sep); font-size: 16px; }
.row:last-child { border-bottom: 0; }
.row .k { color: var(--ink-2); }
.row .v { margin-left: auto; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.row .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.row .ic svg { width: 18px; height: 18px; }
.row .txt { display: grid; gap: 1px; min-width: 0; flex: 1; }
.row .txt b, .row .txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbtn { flex: none; min-width: 112px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer; font: 600 14px/1 var(--font); color: var(--blue); background: rgba(10, 132, 255, 0.12); transition: background-color 0.2s, transform 0.3s var(--spring); }
.pbtn:active { transform: scale(0.95); }
.pbtn.red { color: #e0352b; background: rgba(255, 59, 48, 0.1); }
.row .switch, .row .pbtn, .row .btn { flex: none; }
.row .txt b { font-weight: 600; }
.row .txt small { font-size: 13.5px; color: var(--ink-2); }
.row.link { cursor: pointer; transition: background-color 0.2s; }
.row.link:hover { background: rgba(255, 255, 255, 0.5); }
.row .chev { width: 8px; height: 14px; color: var(--ink-3); margin-left: auto; flex: none; }
.row .v + .chev, .row .amount + .chev { margin-left: 6px; }
.row .amount { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.row .amount.plus { color: #1d8a3c; }
.row button.lnk { margin-left: auto; border: 0; background: none; color: var(--blue); font-weight: 600; font-size: 15px; cursor: pointer; padding: 6px 0; }
.row button.lnk.red, .red { color: #ff3b30; }
.cols { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; align-items: start; }

/* switch */
.switch { margin-left: auto; width: 51px; height: 31px; flex: none; border-radius: 99px; border: 0; padding: 0; background: rgba(120, 120, 128, 0.24); position: relative; cursor: pointer; transition: background-color 0.3s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18); transition: transform 0.4s var(--spring); }
.switch[aria-checked="true"] { background: #34c759; }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* server detail */
.hero-card { padding: 22px; border-radius: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.hero-card .info { display: grid; gap: 8px; min-width: 0; }
.hero-card .line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.glass-in { border-radius: 24px; background: rgba(255, 255, 255, 0.45); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85); position: relative; z-index: 3; }
.quick { display: grid; grid-template-columns: repeat(4, 76px); gap: 4px; padding: 10px; }
.q-btn { display: grid; justify-items: center; gap: 7px; padding: 4px 0; border: 0; background: none; cursor: pointer; font: 600 13px/1.1 var(--font); color: var(--ink); white-space: nowrap; border-radius: 18px; }
.q-btn .c { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 1px 1px #fff, 0 6px 16px -8px rgba(10, 8, 30, 0.45); transition: transform 0.4s var(--spring), box-shadow 0.3s; }
.q-btn .c svg { width: 24px; height: 24px; }
.q-btn:hover .c { transform: translateY(-2px); box-shadow: inset 0 1px 1px #fff, 0 10px 22px -10px rgba(10, 8, 30, 0.5); }
.q-btn:active .c { transform: scale(0.88); }
.q-btn:disabled { opacity: 0.4; cursor: default; }
.q-btn:disabled .c { transform: none; }
.hero-card .id { display: flex; align-items: center; gap: 16px; position: relative; z-index: 3; }
.hero-card .os-tile { width: 62px; height: 62px; border-radius: 18px; }
.hero-card .os-tile img { width: 38px; height: 38px; }
.hero-card h2 { font-size: 28px; letter-spacing: -0.03em; }
.hero-card .meta { color: var(--ink-2); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.flag { width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.15); display: inline-block; vertical-align: -2px; }
.copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: rgba(255, 255, 255, 0.7); height: 30px; padding: 0 12px; border-radius: 999px; font: 600 14px/1 var(--font); color: var(--ink); cursor: pointer; box-shadow: inset 0 1px 1px #fff; font-variant-numeric: tabular-nums; }
.copy svg { width: 14px; height: 14px; color: var(--ink-2); }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.act { display: grid; justify-items: center; gap: 9px; padding: 18px 8px 16px; border-radius: 24px; border: 0; cursor: pointer; font: 600 14px/1.2 var(--font); color: var(--ink);
  background: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
  box-shadow: inset 0 1px 1px #fff, 0 16px 36px -24px rgba(10, 8, 30, 0.6); transition: transform 0.35s var(--spring), background-color 0.2s; }
.act:hover { background: rgba(255, 255, 255, 0.72); }
.act:active { transform: scale(0.95); }
.act .c { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 1px 1px #fff, 0 6px 14px -8px rgba(10, 8, 30, 0.4); }
.act .c svg { width: 24px; height: 24px; }
.act:disabled { opacity: 0.5; cursor: default; }
.lbl-s { display: none; }
@media (max-width: 380px) { .lbl-l { display: none; } .lbl-s { display: inline; } }
.charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chart { padding: 20px 20px 14px; border-radius: 26px; }
.charts { transition: opacity 0.18s var(--ease), transform 0.3s var(--spring); }
.chart .h { display: flex; justify-content: space-between; align-items: baseline; position: relative; z-index: 3; }
.chart .h span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chart .h b { font-size: 26px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.chart .h small { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.chart svg { width: 100%; height: 110px; margin-top: 10px; overflow: visible; position: relative; z-index: 3; }
.chart .avg { font-size: 13px; color: var(--ink-3); margin-top: 4px; position: relative; z-index: 3; }
.seg.small { width: 220px; grid-template-columns: repeat(2, 1fr); }
.sec-t .seg { background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5); text-shadow: none; }
.sec-t .seg button { color: rgba(255, 255, 255, 0.9); }
.sec-t .seg button[aria-checked="true"] { color: var(--ink); }
.seg.small .thumb { width: calc((100% - 8px) / 2); }
.widgets.three { grid-template-columns: 1.4fr 1fr 1fr; }
.seg.small button { height: 34px; font-size: 14px; }
.secret { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.iconbtn { border: 0; background: none; color: var(--blue); cursor: pointer; padding: 6px; border-radius: 10px; display: grid; place-items: center; }
.iconbtn svg { width: 20px; height: 20px; }

/* sheets, alerts, toasts */
.scrim { position: fixed; inset: 0; z-index: 100; background: rgba(10, 8, 25, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 101; left: 50%; width: min(520px, 100% - 24px); max-height: 88vh; overflow: auto; padding: 22px 22px 24px; border-radius: 34px;
  background: rgba(255, 255, 255, 0.82); bottom: 12px; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; overscroll-behavior: contain;
  transition: transform 0.55s var(--spring), visibility 0s linear 0.55s; }
.sheet.open { transform: translate(-50%, 0); visibility: visible; transition: transform 0.55s var(--spring), visibility 0s; }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(11, 15, 26, 0.18); margin: -6px auto 16px; }
.sheet h3 { font-size: 24px; letter-spacing: -0.03em; }
.sheet .lead { color: var(--ink-2); margin-top: 6px; }
.sheet .close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(120, 120, 128, 0.16); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; z-index: 4; }
.sheet .close svg { width: 12px; height: 12px; }
.sheet .step-label { margin: 20px 0 10px; }
.sheet .btn-block { margin-top: 20px; }
.methods { display: grid; gap: 8px; }
.method { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border: 0; border-radius: 16px; cursor: pointer; font: 600 16px/1 var(--font); color: var(--ink); text-align: left;
  background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 1px 1px #fff; transition: background-color 0.25s; }
.method img { height: 22px; width: 44px; object-fit: contain; }
.method small { margin-left: auto; color: var(--ink-3); font-weight: 500; font-size: 14px; }
.method[aria-checked="true"] { background: #fff; box-shadow: inset 0 1px 1px #fff, 0 8px 20px -12px rgba(10, 8, 30, 0.4); }
.method[aria-checked="true"]::after { content: ""; width: 22px; height: 22px; margin-left: 10px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='m3.5 8.5 3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 13px no-repeat; }
.method[aria-checked="true"] small { margin-left: auto; }
.field { display: grid; gap: 8px; margin-top: 14px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { width: 100%; border: 0; border-radius: 16px; padding: 14px 16px; font: 500 16px/1.4 var(--font); color: var(--ink); background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 1px 1px #fff; outline: none; }
.field textarea { min-height: 110px; resize: vertical; font-size: 14px; }
.field input:focus, .field textarea:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; font: 600 15px/1 var(--font); background: rgba(255, 255, 255, 0.55); color: var(--ink-2); box-shadow: inset 0 1px 1px #fff; }
.chips button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: inset 0 1px 1px #fff, 0 8px 20px -12px rgba(10, 8, 30, 0.4); }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
.sum span { color: var(--ink-2); }
.sum b { font-size: 28px; letter-spacing: -0.03em; }

.alert { position: fixed; z-index: 102; left: 50%; top: 50%; width: min(300px, 100% - 48px); border-radius: 28px; text-align: center; overflow: hidden; background: rgba(255, 255, 255, 0.82);
  transform: translate(-50%, -50%) scale(1.1); opacity: 0; pointer-events: none; transition: transform 0.4s var(--spring), opacity 0.25s; }
.alert.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.alert .body { padding: 22px 20px 18px; position: relative; z-index: 3; }
.alert h4 { margin: 0; font-size: 17px; font-weight: 700; }
.alert p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.alert .btns { display: grid; grid-template-columns: 1fr 1fr; border-top: 0.5px solid var(--sep); position: relative; z-index: 3; }
.alert .btns button { height: 50px; border: 0; background: none; font: 500 17px/1 var(--font); color: var(--blue); cursor: pointer; }
.alert .btns button + button { border-left: 0.5px solid var(--sep); font-weight: 700; }
.alert .btns button.danger { color: #ff3b30; }
.toast { position: fixed; z-index: 120; top: 14px; left: 50%; display: flex; align-items: center; gap: 12px; min-width: min(360px, 100% - 24px); padding: 12px 20px 12px 12px; border-radius: 26px;
  background: rgba(255, 255, 255, 0.82); transform: translate(-50%, calc(-100% - 40px)); visibility: hidden; transition: transform 0.55s var(--spring), visibility 0s linear 0.55s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform 0.55s var(--spring), visibility 0s; }
.toast .ti { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; position: relative; z-index: 3; background: linear-gradient(160deg, #4cd964, #28b446); }
.toast .ti svg { width: 20px; height: 20px; }
.toast .tt { position: relative; z-index: 3; }
.toast b { display: block; font-size: 15px; }
.toast span { font-size: 14px; color: var(--ink-2); }

.console { margin-top: 16px; border-radius: 18px; background: #0d1117; color: #c9d1d9; padding: 16px; min-height: 240px; font: 13px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow: auto; }
.console .p { color: #7ee787; }
.console .c { display: inline-block; width: 8px; height: 15px; background: #c9d1d9; vertical-align: -2px; animation: blink 1s steps(1) infinite; }

/* page transitions */

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .widgets { grid-template-columns: repeat(2, 1fr); } .charts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1020px) {
  .side { display: none; }
  .main { margin-left: 0; padding: 22px 16px 120px; }
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
    bottom: max(12px, env(safe-area-inset-bottom)); width: min(460px, 100% - 24px); height: 64px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.62); }
  .tabs a { position: relative; z-index: 3; display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-2); border-radius: 999px; transition: color 0.3s; }
  .tabs a svg { width: 24px; height: 24px; }
  .tabs a.on { color: var(--accent); }
  .tabs .lens { position: absolute; z-index: 2; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 999px;
    background: rgba(255, 255, 255, 0.88); box-shadow: inset 0 1px 1px #fff, 0 4px 14px -6px rgba(10, 8, 30, 0.35); transition: transform 0.55s var(--spring); }
  .cols { grid-template-columns: 1fr; }
  .mtop { display: flex; }
}
@media (min-width: 1021px) { .tabs, .mtop { display: none; } }
.mtop { justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mtop .logo { width: 84px; }
.mtop .avatar { width: 36px; height: 36px; font-size: 14px; }
@media (max-width: 760px) {
  .top { display: block; margin-bottom: 18px; }
  .top .btn { margin-top: 14px; }
  .widgets, .widgets.three { grid-template-columns: 1fr 1fr; gap: 12px; }
  .widgets.three > :first-child { grid-column: 1 / -1; }
  .w { padding: 16px; border-radius: 22px; }
  .w .val { font-size: 26px; }
  .srv-grid { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 1fr; padding: 20px; }
  .hero-card h2 { font-size: 24px; }
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .act { min-width: 0; grid-auto-flow: column; grid-template-columns: auto minmax(0, 1fr); justify-content: start; align-items: center; gap: 8px; padding: 10px; font-size: 13px; border-radius: 22px; text-align: left; white-space: nowrap; }
  .act .c { width: 34px; height: 34px; }
  .act .c svg { width: 19px; height: 19px; }
  .sec-t { flex-wrap: wrap; gap: 10px; }
  .sec-t .seg { width: 100%; }
  .charts { grid-template-columns: 1fr; }
  .seg.small { width: 100%; }
  .auth-card { padding: 30px 20px 24px; }
}

/* ---------- start and route changes ----------
   No fades on anything that holds glass: a translucent parent stops backdrop-filter from seeing the
   wallpaper, so the glass would snap in when the fade ends. The panel appears once everything is
   loaded, tabs switch instantly like on iOS, only the tab lens slides. */
html.booting .main, html.booting .side, html.booting .tabs { visibility: hidden; }
body.panel > main { animation: none; }
@media (max-width: 760px) {
  .srv .head { grid-template-columns: 50px minmax(0, 1fr); }
  .srv .head .pill { grid-column: 2; justify-self: start; margin-top: -6px; }
  .hero-card { grid-template-columns: 1fr; padding: 18px; }
  .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px 6px; }
  .q-btn { font-size: 12.5px; }
  .q-btn .c { width: 54px; height: 54px; }
  .charts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .charts::-webkit-scrollbar { display: none; }
  .chart { scroll-snap-align: center; }
  .pbtn { min-width: 100px; padding: 0 12px; }
  .row { padding: 10px 14px; }
  .top h1 { font-size: 30px; }
}
.auth-err { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 59, 48, 0.1); }
a.prov { text-decoration: none; }
