:root {
  color-scheme: dark;
  --bg: #070912;
  --surface: rgba(17, 20, 36, .76);
  --surface-strong: #12162a;
  --surface-soft: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #f5f7ff;
  --muted: #929ab5;
  --violet: #8b5cf6;
  --violet-light: #b9a0ff;
  --cyan: #38d9ff;
  --green: #43e6a0;
  --rose: #ff6b91;
  --amber: #ffcc66;
  --shadow: 0 30px 80px rgba(0, 0, 0, .32);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 75% -10%, rgba(81, 57, 199, .17), transparent 36%),
    radial-gradient(circle at 12% 82%, rgba(21, 133, 167, .10), transparent 34%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.is-hidden { display: none !important; }
.glass { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.ambient { position: fixed; z-index: -1; width: 440px; height: 440px; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .18; }
.ambient-one { top: -170px; right: 4%; background: var(--violet); }
.ambient-two { left: 14%; bottom: -260px; background: #137bc2; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-card { width: min(460px, 100%); border-radius: 30px; padding: 38px; position: relative; overflow: hidden; }
.login-card::before { content: ""; position: absolute; inset: -80px auto auto -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(139,92,246,.18); filter: blur(40px); }
.login-brand { display: flex; gap: 16px; align-items: center; position: relative; }
.infinity-mark, .brand-mark { display: grid; place-items: center; background: linear-gradient(135deg, #a987ff, #5fe5ff); color: #080b16; font-weight: 900; box-shadow: 0 10px 35px rgba(111, 89, 255, .34); }
.infinity-mark { width: 62px; height: 62px; border-radius: 19px; font-size: 40px; }
.login-brand h1 { margin: 2px 0 0; font-size: 29px; letter-spacing: -.045em; }
.eyebrow { margin: 0; color: var(--violet-light); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.login-copy { margin: 30px 0 26px; color: var(--muted); line-height: 1.65; max-width: 360px; }
label { display: grid; gap: 8px; margin-bottom: 17px; }
label > span { color: #b8bfd3; font-size: 12px; font-weight: 700; }
input, textarea {
  width: 100%; color: var(--text); background: rgba(4, 6, 15, .55); border: 1px solid var(--line); border-radius: 13px; outline: none;
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, textarea:focus { border-color: rgba(139, 92, 246, .72); box-shadow: 0 0 0 4px rgba(139,92,246,.12); background: rgba(7, 9, 20, .9); }
input::placeholder, textarea::placeholder { color: #5f6680; }
.form-error { min-height: 18px; margin: 0 0 10px; color: #ff8aa6; font-size: 12px; }
.btn { border: 1px solid transparent; border-radius: 12px; padding: 11px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .18s, filter .18s, border-color .18s, background .18s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }
.btn-primary { color: white; background: linear-gradient(135deg, #7953e8, #9f72ff); box-shadow: 0 13px 35px rgba(113, 75, 224, .24); }
.btn-secondary { background: rgba(255,255,255,.055); border-color: var(--line); }
.btn-secondary:hover { background: rgba(255,255,255,.09); border-color: var(--line-strong); }
.btn-danger-soft { color: #ff9ab1; background: rgba(255, 87, 126, .10); border-color: rgba(255, 107, 145, .2); }
.btn-wide { width: 100%; padding: 13px 16px; }
.security-note { margin-top: 20px; display: flex; align-items: center; gap: 8px; justify-content: center; color: #777f98; font-size: 11px; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(67, 230, 160, .09); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(67,230,160,0); } }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 255px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 16px auto 16px 16px; z-index: 20; width: 239px; border-radius: 24px; padding: 20px 14px; display: flex; flex-direction: column; }
.brand { padding: 5px 9px 25px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 39px; height: 39px; border-radius: 12px; font-size: 27px; }
.brand div:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 14px; letter-spacing: -.01em; }
.brand span { color: var(--muted); font-size: 10px; }
nav { display: grid; gap: 5px; margin-top: 18px; }
.nav-item { width: 100%; min-height: 43px; padding: 0 11px; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #8f97b0; text-align: left; font-size: 12px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.nav-item:hover { color: #dce0ee; background: rgba(255,255,255,.04); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(128,89,238,.19), rgba(128,89,238,.06)); border-color: rgba(151,113,255,.2); }
.nav-icon { color: #a998dc; font-size: 17px; text-align: center; }
.nav-item.active .nav-icon { color: #c7b5ff; }
.nav-count { min-width: 23px; padding: 3px 6px; border-radius: 20px; background: rgba(255,255,255,.07); color: #9da5bc; text-align: center; font-size: 9px; }
.sidebar-status { margin: auto 7px 10px; padding: 13px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(67,230,160,.12); border-radius: 13px; background: rgba(67,230,160,.045); }
.status-orb { width: 28px; height: 28px; border: 1px solid rgba(67,230,160,.2); border-radius: 50%; display: grid; place-items: center; }
.status-orb span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.sidebar-status div:last-child { display: grid; gap: 2px; }
.sidebar-status strong { font-size: 10px; }
.sidebar-status span { color: #758098; font-size: 8px; }
.logout { color: #747d96; margin-top: 2px; }

.workspace { grid-column: 2; min-width: 0; padding: 21px 30px 50px 20px; }
.topbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.topbar h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.035em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.live-pill { height: 33px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 30px; color: #b2b9cc; background: rgba(255,255,255,.03); font-size: 10px; font-weight: 700; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.035); display: grid; place-items: center; cursor: pointer; color: #b7bed1; transition: .18s; }
.icon-btn:hover { background: rgba(255,255,255,.075); color: white; }
.avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg,#4d3b8e,#8b5cf6); font-size: 10px; font-weight: 800; box-shadow: 0 8px 25px rgba(97,63,194,.24); }
.mobile-only { display: none; }
.loading-line { position: fixed; z-index: 100; inset: 0 0 auto 0; height: 2px; background: rgba(139,92,246,.12); overflow: hidden; }
.loading-line span { display: block; width: 28%; height: 100%; background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent); animation: loading 1.1s linear infinite; }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(460%); } }
.page-section { display: none; animation: enter .25s ease both; }
.page-section.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }

.hero-panel { min-height: 211px; border-radius: var(--radius-xl); padding: 33px 35px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; position: relative; overflow: hidden; background: linear-gradient(120deg, rgba(36,28,72,.9), rgba(14,22,40,.78)); }
.hero-panel::before { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(119,84,229,.34), transparent 66%); }
.hero-kicker { display: inline-block; margin-bottom: 12px; color: #aa91fa; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.hero-panel h3 { margin: 0; font-size: clamp(27px, 3vw, 39px); line-height: 1.05; letter-spacing: -.055em; }
.hero-panel p { max-width: 580px; margin: 14px 0 0; color: #a2a8bd; font-size: 13px; line-height: 1.6; }
.hero-actions { z-index: 1; display: grid; gap: 9px; min-width: 190px; margin-left: 25px; }
.hero-grid { position: absolute; inset: auto -30px -70px auto; width: 380px; height: 170px; opacity: .1; transform: rotate(-8deg); background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to top, black, transparent); }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin: 15px 0; }
.metric-card { min-height: 142px; padding: 20px; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 90px; height: 90px; right: -35px; bottom: -38px; border-radius: 50%; filter: blur(8px); opacity: .09; background: currentColor; }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: #a4abc0; font-size: 10px; font-weight: 700; }
.metric-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: currentColor; color: #101321; font-size: 13px; }
.metric-card > strong { display: block; margin: 15px 0 3px; color: var(--text); font-size: 31px; letter-spacing: -.05em; }
.metric-card small { color: #767e97; font-size: 9px; }
.accent-violet { color: var(--violet-light); }.accent-cyan { color: var(--cyan); }.accent-green { color: var(--green); }.accent-rose { color: var(--rose); }

.overview-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 15px; margin-bottom: 15px; }
.panel { border-radius: var(--radius-lg); padding: 21px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.panel h3 { margin: 4px 0 0; font-size: 16px; letter-spacing: -.025em; }
.text-btn { padding: 5px; border: 0; background: transparent; color: #a58ef1; font-size: 10px; font-weight: 800; cursor: pointer; }
.empty-state { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #707993; text-align: center; }
.empty-state.compact { min-height: 164px; }
.empty-icon { width: 42px; height: 42px; margin-bottom: 11px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.03); color: #9078df; font-size: 20px; }
.empty-state strong { color: #b6bdd0; font-size: 11px; }
.empty-state span { margin-top: 5px; font-size: 9px; }
.health-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 18px; margin: 18px 0; }
.health-row > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.health-row span { color: #8f97ae; font-size: 10px; }.health-row strong { font-size: 18px; }
progress { width: 100%; height: 7px; border: 0; border-radius: 10px; overflow: hidden; background: #1d2234; }
progress::-webkit-progress-bar { background: #1d2234; border-radius: 10px; } progress::-webkit-progress-value { background: linear-gradient(90deg,#5cddad,#3ee99e); border-radius: 10px; } progress::-moz-progress-bar { background: linear-gradient(90deg,#5cddad,#3ee99e); }
.health-row.danger progress::-webkit-progress-value { background: linear-gradient(90deg,#ff668d,#f899b1); }.health-row.danger progress::-moz-progress-bar { background: linear-gradient(90deg,#ff668d,#f899b1); }
.micro-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 17px; }
.micro-metrics div { padding: 11px 12px; display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.micro-metrics span { color: #737c95; font-size: 8px; }.micro-metrics strong { font-size: 14px; }
.muted-line { margin: 12px 0 0; color: #646d86; font-size: 8px; }
.automation-mini-list { display: grid; gap: 8px; }
.automation-mini { min-height: 43px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); display: flex; align-items: center; gap: 10px; }
.automation-mini .auto-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(139,92,246,.12); color: #a78bfa; font-size: 12px; }
.automation-mini div { display: grid; gap: 1px; }.automation-mini strong { font-size: 9px; }.automation-mini span { color: #707991; font-size: 8px; }
.state-pill { margin-left: auto; padding: 3px 7px; border-radius: 20px; color: #6ce5ad; background: rgba(67,230,160,.09); font-size: 7px; font-weight: 900; letter-spacing: .07em; }
.state-pill.off { color: #ff8fa9; background: rgba(255,107,145,.09); }

.activity-list { display: grid; gap: 2px; }
.activity-item { min-height: 47px; padding: 7px 4px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.055); }
.activity-item:last-child { border-bottom: 0; }
.activity-badge { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #a995e8; background: rgba(139,92,246,.1); font-size: 11px; }
.activity-item div:nth-child(2) { min-width: 0; display: grid; gap: 2px; }.activity-item strong { font-size: 9px; text-transform: capitalize; }.activity-item span { overflow: hidden; color: #717a93; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.activity-time { color: #68718a; font-size: 7px; white-space: nowrap; }
.activity-list.full { max-height: 660px; overflow: auto; padding-right: 4px; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 8px 0 22px; }
.section-heading h3 { margin: 5px 0 5px; font-size: 28px; letter-spacing: -.045em; }.section-heading p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.section-toolbar { display: flex; justify-content: flex-end; margin: -54px 135px 21px 0; }
.server-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.server-card { min-width: 0; border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--line); background: linear-gradient(145deg,rgba(21,25,45,.86),rgba(12,15,28,.78)); box-shadow: 0 18px 46px rgba(0,0,0,.19); }
.server-card-top { display: flex; align-items: center; gap: 12px; }
.server-kind-icon { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(139,92,246,.18); border-radius: 12px; color: #bca6ff; background: rgba(139,92,246,.1); font-size: 17px; }
.server-card-top > div:nth-child(2) { min-width: 0; display: grid; gap: 3px; }.server-card h4 { overflow: hidden; margin: 0; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.server-address { overflow: hidden; color: #7e879f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.status-chip { margin-left: auto; padding: 5px 8px; border: 1px solid rgba(67,230,160,.14); border-radius: 20px; color: #67dca8; background: rgba(67,230,160,.06); font-size: 7px; font-weight: 900; letter-spacing: .06em; }.status-chip.off { color: #9198aa; border-color: var(--line); background: rgba(255,255,255,.03); }
.server-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 18px 0; }
.server-details div { min-width: 0; padding: 9px 10px; display: grid; gap: 4px; border: 1px solid rgba(255,255,255,.055); border-radius: 10px; background: rgba(255,255,255,.024); }.server-details span { color: #68718a; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }.server-details strong { overflow: hidden; color: #b8bfd1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.error-strip { margin: -4px 0 15px; padding: 8px 10px; border-radius: 9px; color: #dc7f99; background: rgba(255,86,126,.06); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-btn { min-height: 29px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.03); color: #9da5ba; font-size: 8px; font-weight: 800; cursor: pointer; transition: .16s; }.mini-btn:hover { color: white; border-color: var(--line-strong); background: rgba(255,255,255,.065); }.mini-btn.primary { color: #c5b6fa; border-color: rgba(139,92,246,.19); background: rgba(139,92,246,.08); }.mini-btn.danger { margin-left: auto; color: #c9768e; }

.automation-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 15px; }
.automation-card { min-height: 155px; padding: 21px; border-radius: var(--radius-lg); position: relative; border: 1px solid var(--line); background: linear-gradient(145deg,rgba(20,24,43,.9),rgba(12,15,28,.78)); }
.automation-card-top { display: flex; gap: 12px; }.automation-card .auto-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #b59eff; background: rgba(139,92,246,.1); }.automation-card h4 { margin: 2px 0 4px; font-size: 12px; }.automation-card p { margin: 0; color: #737c95; font-size: 9px; line-height: 1.45; }
.toggle { position: absolute; right: 21px; bottom: 21px; width: 42px; height: 23px; padding: 2px; border: 0; border-radius: 20px; background: #2b3042; cursor: pointer; transition: .2s; }.toggle::after { content: ""; display: block; width: 19px; height: 19px; border-radius: 50%; background: #8b92a5; transition: .2s; }.toggle.on { background: rgba(75,225,161,.32); }.toggle.on::after { transform: translateX(19px); background: var(--green); box-shadow: 0 0 13px rgba(67,230,160,.45); }
.automation-state-copy { position: absolute; left: 21px; bottom: 24px; color: #69728a; font-size: 8px; font-weight: 800; }.automation-card.is-on .automation-state-copy { color: #63d9a4; }
.schedule-card { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; }
.schedule-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }.schedule-grid div { padding: 12px; display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }.schedule-grid span { color: #6f7891; font-size: 8px; }.schedule-grid strong { font-size: 11px; }

.activity-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 15px; align-items: start; }
.import-card { position: sticky; top: 20px; }.import-card > p:not(.eyebrow) { color: var(--muted); font-size: 10px; line-height: 1.55; }
textarea { min-height: 240px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 9px; line-height: 1.6; }
.warning-box { margin: 12px 0; padding: 10px 11px; border: 1px solid rgba(255,204,102,.12); border-radius: 10px; color: #a99672; background: rgba(255,204,102,.045); font-size: 8px; line-height: 1.5; }

.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(3,4,10,.73); backdrop-filter: blur(9px); animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(640px,100%); max-height: min(760px,calc(100vh - 30px)); overflow: auto; border-radius: 24px; padding: 24px; background: rgba(16,19,34,.96); animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.98) translateY(5px); } }
.modal-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 24px; }.modal-heading h3 { margin: 5px 0 0; font-size: 20px; }.modal-heading .icon-btn { border: 0; background: rgba(255,255,255,.04); font-size: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 13px; }.form-full { grid-column: 1/-1; }
.check-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 2px; }
.check-card { grid-template-columns: auto 1fr; align-items: center; gap: 10px; margin: 0; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); cursor: pointer; }.check-card input { width: 16px; height: 16px; accent-color: var(--violet); }.check-card span { display: grid; gap: 2px; }.check-card strong { color: #bbc1d3; font-size: 9px; }.check-card small { color: #697189; font-size: 7px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }
.result-modal { width: min(520px,100%); text-align: center; }.result-icon { width: 51px; height: 51px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 16px; color: var(--green); background: rgba(67,230,160,.09); font-size: 24px; }.result-icon.failed { color: var(--rose); background: rgba(255,107,145,.09); }.result-modal h3 { margin: 0 0 14px; }.result-modal pre { max-height: 360px; overflow: auto; margin: 0 0 20px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; color: #aab1c3; background: rgba(4,6,14,.46); text-align: left; white-space: pre-wrap; word-break: break-word; font: 9px/1.55 ui-monospace, monospace; }
.busy-overlay { position: fixed; z-index: 300; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; background: rgba(5,7,14,.78); backdrop-filter: blur(12px); }.busy-overlay strong { font-size: 13px; }.busy-overlay span { color: var(--muted); font-size: 9px; }.loader { width: 42px; height: 42px; margin-bottom: 5px; border: 3px solid rgba(255,255,255,.08); border-top-color: var(--violet-light); border-radius: 50%; animation: spin .8s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }
.toast-stack { position: fixed; z-index: 400; right: 20px; bottom: 20px; display: grid; gap: 8px; }.toast { min-width: 250px; max-width: 380px; padding: 12px 14px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; color: #c6ccda; background: rgba(18,22,38,.96); box-shadow: var(--shadow); font-size: 9px; animation: toast-in .2s ease; }.toast.success::before { content:"✓"; color: var(--green); }.toast.error::before { content:"!"; color: var(--rose); }@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } }

::-webkit-scrollbar { width: 8px; height: 8px; }::-webkit-scrollbar-track { background: transparent; }::-webkit-scrollbar-thumb { background: #292e42; border-radius: 10px; }

@media (max-width: 1080px) {
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .server-grid { grid-template-columns: 1fr; }
  .activity-layout { grid-template-columns: 1fr; }.import-card { position: static; }
  .schedule-card { grid-template-columns: 1fr; }.schedule-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 800px) {
  .app-shell { display: block; }.sidebar { transform: translateX(-115%); transition: transform .25s; }.sidebar.open { transform: translateX(0); }
  .workspace { padding: 18px 15px 45px; }.mobile-only { display: grid; }.topbar { gap: 10px; }.topbar > div:nth-child(2) { margin-right: auto; }.topbar h2 { font-size: 16px; }.topbar .eyebrow { display: none; }.live-pill { display: none; }
  .hero-panel { grid-template-columns: 1fr; padding: 27px; }.hero-actions { grid-template-columns: repeat(2,1fr); min-width: 0; margin: 22px 0 0; }.overview-grid { grid-template-columns: 1fr; }
  .automation-grid { grid-template-columns: 1fr; }.section-toolbar { margin: 0 0 15px; justify-content: flex-start; }
}
@media (max-width: 540px) {
  .login-card { padding: 28px 22px; }.metrics-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.metric-card { min-height: 126px; padding: 15px; }.metric-card > strong { font-size: 25px; }
  .hero-actions { grid-template-columns: 1fr; }.hero-panel h3 { font-size: 28px; }.section-heading { align-items: start; flex-direction: column; }.section-heading .btn { width: 100%; }
  .server-details { grid-template-columns: 1fr; }.schedule-grid { grid-template-columns: 1fr 1fr; }.form-grid, .check-row { grid-template-columns: 1fr; }.form-full { grid-column: auto; }
  .topbar-actions .avatar { display: none; }.activity-time { display: none; }
}
