@font-face {
  font-family: "Oxanium";
  src: url("/dashboard-assets/assets/oxanium-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --e3-purple: #220d37;
  --e3-lilac: #cfc6e1;
  --ink: #f7f4fb;
  --muted: #a99fb9;
  --canvas: #0c0712;
  --surface: #140b1e;
  --surface-2: #1b1027;
  --surface-3: #251532;
  --line: rgba(207, 198, 225, 0.13);
  --line-strong: rgba(207, 198, 225, 0.24);
  --violet: #a98ae8;
  --cyan: #73d2de;
  --rose: #ec86b2;
  --amber: #f0b879;
  --green: #70d4a4;
  --red: #f08596;
  --shadow: 0 22px 64px rgba(4, 1, 9, 0.28);
  --radius: 16px;
}

* { box-sizing: border-box; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 14px;
  color: var(--e3-purple);
  background: white;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.overline,
.breadcrumb,
.metric-card > div > span,
.panel-state,
.privacy-note,
.system-badge {
  font-family: "Fragment Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Access gate */
.access-gate {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
  isolation: isolate;
  overflow: hidden;
  background: var(--e3-purple);
}
.gate-nebula {
  position: absolute;
  inset: -4%;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(11, 4, 20, .82) 9%, rgba(34, 13, 55, .36) 52%, rgba(9, 5, 17, .78) 100%),
    url("/dashboard-assets/assets/carina-nebula.webp") center 56% / cover;
  animation: nebula-breathe 16s ease-in-out infinite alternate;
}
.access-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 20%, rgba(115, 210, 222, .17), transparent 26%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}
.gate-card {
  width: min(100%, 510px);
  padding: 40px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: rgba(19, 8, 30, .86);
  box-shadow: 0 32px 100px rgba(0,0,0,.44);
  backdrop-filter: blur(24px);
}
.gate-logo { display: block; width: 166px; height: auto; margin-bottom: 54px; }
.overline { margin: 0; color: var(--violet); font-size: 10px; line-height: 1.4; }
.gate-card h1 { margin: 10px 0 12px; font: 600 clamp(34px, 6vw, 52px)/1 "Oxanium", sans-serif; letter-spacing: -.035em; }
.gate-copy { max-width: 430px; margin: 0 0 34px; color: var(--e3-lilac); font-size: 15px; line-height: 1.65; }
.gate-card label { display: block; margin: 0 0 8px; color: #ded7e8; font-size: 12px; }
.token-row { display: flex; gap: 10px; }
.token-row input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 14px;
  color: white;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  background: rgba(255,255,255,.055);
}
.token-row input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(169,138,232,.18); }
.token-row button {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: var(--e3-purple);
  background: var(--e3-lilac);
  cursor: pointer;
  font-weight: 700;
}
.token-row button:hover { background: white; transform: translateY(-1px); }
.token-row button:disabled { opacity: .55; cursor: wait; transform: none; }
.form-message { min-height: 19px; margin: 9px 0 0; color: #ff9eae; font-size: 12px; }
.gate-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; color: #9e91ae; font-size: 11px; }
.gate-note span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

/* Application frame */
.app-shell { display: grid; grid-template-columns: 192px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 20px 14px 16px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--e3-purple);
  isolation: isolate;
}
.e3-brand { display: block; width: 138px; margin: 0 6px 28px; }
.e3-brand img { display: block; width: 100%; height: auto; }
.service-mark { display: flex; align-items: center; gap: 10px; margin: 0 5px 24px; }
.service-glyph,
.provider-logo,
.metric-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  font: 600 13px/1 "Oxanium", sans-serif;
}
.service-glyph { width: 35px; height: 35px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; color: white; background: rgba(255,255,255,.07); }
.service-mark div { display: grid; gap: 2px; }
.service-mark strong { font: 600 14px/1.1 "Oxanium", sans-serif; }
.service-mark small { color: #a99db6; font-size: 10px; }
.sidebar-actions { display: grid; gap: 5px; }
.side-action {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #b5a9c1;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  text-align: left;
}
.side-action > span:first-child { width: 15px; color: #8b7c9b; font-size: 13px; text-align: center; }
.side-action > span:nth-child(2) { min-width: 0; flex: 1; }
.side-action b { min-width: 18px; padding: 3px 5px; border-radius: 999px; color: #a99db6; background: rgba(255,255,255,.07); font: 7px/1 "SFMono-Regular", Consolas, monospace; text-align: center; }
.side-action:hover,
.side-action:focus-visible { color: white; background: rgba(255,255,255,.07); outline: none; }
.side-action.active { color: white; border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.1); }
.side-action.active > span:first-child { color: var(--e3-lilac); }
.sidebar-nebula {
  position: absolute;
  z-index: -1;
  inset: -4%;
  opacity: .52;
  filter: saturate(1.08) contrast(1.12);
  background:
    linear-gradient(180deg, rgba(34,13,55,.92) 0%, rgba(34,13,55,.62) 34%, rgba(15,6,26,.18) 72%, rgba(14,5,24,.7) 100%),
    url("/dashboard-assets/assets/carina-nebula.webp") 43% center / cover;
  animation: nebula-drift 26s ease-in-out infinite alternate;
}
.sidebar-foot { display: grid; gap: 9px; margin-top: auto; padding: 18px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.connection { display: inline-flex; align-items: center; gap: 8px; color: #b9afc4; font-size: 11px; }
.connection i { width: 7px; height: 7px; border-radius: 50%; background: #7f718e; }
.connection.online i { background: var(--green); box-shadow: 0 0 12px rgba(112,212,164,.7); animation: pulse 2s ease-in-out infinite; }
.connection.offline i { background: var(--red); }
.sidebar-foot small { color: #81738e; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.workspace {
  position: relative;
  min-width: 0;
  isolation: isolate;
  overflow: clip;
  background: #08050d;
}
.workspace::before,
.workspace::after {
  content: "";
  position: fixed;
  pointer-events: none;
  inset: 0 0 0 192px;
}
.workspace::before {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7,4,12,.2) 0%, rgba(7,4,12,.52) 54%, rgba(7,4,12,.78) 100%),
    linear-gradient(90deg, rgba(8,5,13,.74) 0%, rgba(8,5,13,.18) 42%, rgba(8,5,13,.28) 100%),
    url("/dashboard-assets/assets/nebula-operations-field.webp") center top / cover no-repeat;
  filter: saturate(1.12) contrast(1.06);
  transform: scale(1.015);
  animation: stellar-breathe 24s ease-in-out infinite alternate;
}
.workspace::after {
  z-index: -1;
  background:
    radial-gradient(circle at 78% 12%, rgba(111,219,238,.16), transparent 23%),
    radial-gradient(circle at 12% 72%, rgba(219,111,166,.12), transparent 27%),
    linear-gradient(180deg, transparent 0%, rgba(7,4,12,.08) 48%, rgba(7,4,12,.42) 100%);
  mix-blend-mode: screen;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 10px clamp(16px, 2.2vw, 30px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(9,5,14,.84), rgba(13,7,20,.55));
  box-shadow: 0 12px 44px rgba(2,0,6,.16);
  backdrop-filter: blur(22px) saturate(1.18);
}
.breadcrumb { margin: 0 0 3px; color: #7f708e; font-size: 7px; }
.breadcrumb span { padding: 0 5px; color: #50445b; }
.topbar h1 { margin: 0; font: 600 16px/1.1 "Oxanium", sans-serif; letter-spacing: -.015em; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.refresh-time { color: #7f748b; font-size: 10px; }
.refresh-time strong { color: #bdb3c8; font-weight: 500; font-variant-numeric: tabular-nums; }
.icon-button,
.quiet-button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
}
.icon-button { width: 32px; padding: 0; font-size: 17px; }
.quiet-button { padding: 0 14px; color: #c6bdce; font-size: 11px; }
.icon-button:hover,
.quiet-button:hover { border-color: var(--line-strong); background: rgba(255,255,255,.075); }
.icon-button.spinning span { display: inline-block; animation: spin .7s linear infinite; }
button:focus-visible,
a:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

main { position: relative; z-index: 1; width: min(1540px, 100%); margin: 0 auto; padding: 12px clamp(16px, 2.2vw, 30px) 28px; }
.system-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(112,212,164,.18); border-radius: 999px; color: #a8d9bf; background: rgba(112,212,164,.06); font-size: 7px; white-space: nowrap; }
.system-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 11px var(--green); }
.system-badge b { font: inherit; }
.system-badge.stale { color: var(--red); border-color: rgba(240,133,150,.32); background: rgba(240,133,150,.08); }
.system-badge.stale span { background: var(--red); box-shadow: 0 0 14px rgba(240,133,150,.7); }

.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.metric-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 64px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(28,15,40,.78), rgba(11,7,18,.58));
  box-shadow: 0 18px 42px rgba(2,0,7,.16), inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(18px) saturate(1.12);
}
.metric-card.priority { border-color: rgba(169,138,232,.32); background: linear-gradient(145deg, rgba(86,52,117,.58), rgba(14,8,23,.62)); }
.metric-icon { width: 29px; height: 29px; border-radius: 9px; }
.shell-icon { color: #d5c2ff; background: rgba(169,138,232,.13); }
.modal-icon { color: #8ddce5; background: rgba(115,210,222,.12); }
.gpu-icon { color: #efacd0; background: rgba(236,134,178,.12); }
.railway-icon { color: #f4c78e; background: rgba(240,184,121,.12); }
.success-icon { color: #8ce0b3; background: rgba(112,212,164,.12); }
.metric-card > div:last-child { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 8px; min-width: 0; }
.metric-card > div > span { grid-column: 1 / -1; color: #8f829a; font-size: 7px; }
.metric-card strong { margin-top: 3px; font: 600 20px/1 "Oxanium", sans-serif; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-card small { grid-column: 1 / -1; margin-top: 3px; overflow: hidden; color: #776b82; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

.operations-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr); gap: 8px; align-items: start; }
.panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(31,17,44,.8), rgba(12,8,19,.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.16);
}
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 9px 13px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 2px 0 0; font: 600 13px/1.15 "Oxanium", sans-serif; letter-spacing: -.015em; }
.panel-state,
.privacy-note { color: #897c95; font-size: 7px; }
.panel-state { padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; }
.panel-state.live { color: #a5dec0; border-color: rgba(112,212,164,.22); background: rgba(112,212,164,.06); }
.panel-state.stale { color: var(--red); border-color: rgba(240,133,150,.3); }
.health-total { color: var(--e3-lilac); font: 600 13px/1 "Oxanium", sans-serif; }

.job-table { width: 100%; }
.job-table-head,
.job-row { display: grid; grid-template-columns: minmax(150px, 1.25fr) minmax(150px, 1fr) 88px; align-items: center; gap: 12px; }
.job-table-head { min-height: 26px; padding: 0 13px; color: #685d73; font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.job-row { width: 100%; min-height: 42px; padding: 6px 13px; border: 0; border-top: 1px solid rgba(207,198,225,.075); color: inherit; background: transparent; cursor: pointer; text-align: left; }
.job-row:hover,
.job-row:focus-visible { background: rgba(169,138,232,.07); }
.job-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.job-name > span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 5px rgba(169,138,232,.08), 0 0 12px rgba(169,138,232,.45); animation: pulse 2s ease-in-out infinite; }
.job-name div,
.job-detail { display: grid; gap: 3px; min-width: 0; }
.job-name strong,
.job-detail b { overflow: hidden; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.job-name small,
.job-detail small { overflow: hidden; color: #766b80; font: 8px/1.3 "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.job-state { justify-self: start; padding: 5px 7px; border: 1px solid rgba(169,138,232,.22); border-radius: 999px; color: #c4b1e7; background: rgba(169,138,232,.07); font: 7px/1 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }

.health-panel { min-height: 174px; }
.provider-card { padding: 10px 13px; }
.provider-card + .provider-card { border-top: 1px solid var(--line); }
.provider-title { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 10px; }
.provider-logo { width: 31px; height: 31px; border-radius: 9px; }
.provider-title > div { display: grid; gap: 2px; }
.provider-title strong { font: 600 11px/1.2 "Oxanium", sans-serif; }
.provider-title small { color: #766b80; font-size: 8px; }
.provider-dot { width: 8px; height: 8px; border-radius: 50%; background: #665b70; }
.provider-dot.ok { background: var(--green); box-shadow: 0 0 12px rgba(112,212,164,.55); }
.provider-dot.degraded { background: var(--red); box-shadow: 0 0 10px rgba(240,133,150,.4); }
.provider-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 7px 0 0 41px; }
.provider-meta span { display: grid; gap: 3px; min-width: 0; color: #625768; font-size: 7px; text-transform: uppercase; }
.provider-meta b { overflow: hidden; color: #a89dac; font-size: 8px; font-weight: 500; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }

.history-panel { min-height: 0; }
.history { display: grid; }
.history-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px; align-items: center; gap: 8px; min-height: 37px; padding: 0 13px; border-top: 1px solid rgba(207,198,225,.07); }
.history-open { display: grid; grid-template-columns: 7px minmax(0, 1fr) 68px 50px 58px; align-items: center; gap: 8px; min-width: 0; min-height: 36px; padding: 5px 0; border: 0; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.history-row:hover,
.history-row:focus-within { background: rgba(169,138,232,.06); }
.status-glyph { width: 7px; height: 7px; border-radius: 50%; background: #776b81; }
.status-glyph.succeeded,
.status-glyph.success { background: var(--green); }
.status-glyph.failed,
.status-glyph.error { background: var(--red); }
.status-glyph.running { background: var(--violet); box-shadow: 0 0 8px rgba(169,138,232,.65); }
.history-open > div { display: grid; gap: 2px; min-width: 0; }
.history-open strong { overflow: hidden; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.history-open small { overflow: hidden; color: #6f6479; font: 8px/1.2 "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.history-state { color: #807487; font: 7px/1 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.history-open time { color: #6f6479; font-size: 8px; text-align: right; }

.history-filters { display: flex; gap: 5px; }
.history-filters button,
.history-footer button,
.copy-digest {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #8f8398;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  font-size: 7px;
}
.history-filters button:hover,
.history-filters button[aria-pressed="true"],
.history-footer button:hover,
.copy-digest:hover { color: white; border-color: var(--line-strong); background: rgba(169,138,232,.1); }
.history-footer { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 4px 13px; border-top: 1px solid var(--line); }
.copy-digest { justify-self: end; min-height: 24px; padding: 0 7px; }

.inventory-panel { min-height: 0; }
.inventory-panel > summary { list-style: none; cursor: pointer; }
.inventory-panel > summary::-webkit-details-marker { display: none; }
.inventory-panel > summary:hover { background: rgba(255,255,255,.025); }
.inventory-toggle { display: inline-flex; align-items: center; gap: 7px; color: #94869e; font-size: 8px; }
.inventory-toggle i { font-size: 12px; font-style: normal; transition: transform .18s ease; }
.inventory-panel[open] .inventory-toggle i { transform: rotate(180deg); }
.inventory-panel[open] .inventory-toggle span { font-size: 0; }
.inventory-panel[open] .inventory-toggle span::after { content: "Hide resources"; font-size: 8px; }
.inventory-block { padding: 9px 13px; }
.inventory-block + .inventory-block { border-top: 1px solid var(--line); }
.inventory-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.inventory-heading h3 { margin: 0; color: #b8afc1; font-size: 9px; font-weight: 500; }
.inventory-heading span { overflow: hidden; color: #63586d; font: 7px/1 "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.mini-list { display: grid; }
.mini-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 29px; border-top: 1px solid rgba(207,198,225,.055); }
.mini-row span { overflow: hidden; color: #a89eaf; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.mini-row small { color: #675c71; font: 7px/1 "SFMono-Regular", Consolas, monospace; }

.empty-state { display: flex; align-items: center; min-height: 66px; padding: 11px 13px; }
.empty-state > div { display: grid; gap: 4px; }
.empty-state > div::before { content: ""; width: 24px; height: 2px; margin-bottom: 5px; background: linear-gradient(90deg, var(--violet), transparent); }
.empty-state b { color: #afa4b8; font-size: 10px; font-weight: 500; }
.empty-state small { max-width: 380px; color: #685d72; font-size: 8px; line-height: 1.5; }
.mini-list .empty-state { min-height: 48px; padding: 6px 0; }
.mini-list .empty-state > div::before { display: none; }
.loading-line { height: 42px; border-top: 1px solid rgba(207,198,225,.06); background: linear-gradient(90deg, transparent, rgba(255,255,255,.025), transparent); background-size: 200% 100%; animation: loading 1.6s linear infinite; }
.loading-line.short { opacity: .55; }

footer { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 18px; padding: 0 clamp(16px, 2.2vw, 30px) 18px; color: #776880; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 60; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: #d7cede; background: rgba(22,12,31,.92); box-shadow: var(--shadow); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

/* Job intelligence drawer */
.drawer-layer { position: fixed; z-index: 50; inset: 0; }
.drawer-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(3,1,7,.67); cursor: default; backdrop-filter: blur(5px); animation: drawer-fade .18s ease-out; }
.job-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 50vw;
  height: 100dvh;
  min-width: 520px;
  overflow: hidden;
  border-left: 1px solid rgba(207,198,225,.24);
  color: var(--ink);
  background:
    radial-gradient(circle at 94% 4%, rgba(115,210,222,.13), transparent 25%),
    radial-gradient(circle at 8% 30%, rgba(236,134,178,.1), transparent 29%),
    linear-gradient(155deg, rgba(35,17,48,.985), rgba(8,5,13,.995) 60%);
  box-shadow: -32px 0 100px rgba(2,0,7,.48);
  animation: drawer-enter .24s cubic-bezier(.2,.75,.2,1);
}
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; min-height: 104px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); background: rgba(9,5,14,.46); backdrop-filter: blur(24px); }
.drawer-title-group { min-width: 0; }
.drawer-title-group .overline { margin: 0 0 8px; color: var(--violet); font-size: 8px; }
.drawer-title-group h2 { margin: 0 0 7px; overflow: hidden; font: 600 22px/1.1 "Oxanium", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.drawer-reference { display: block; overflow: hidden; color: #776a82; font: 8px/1.2 "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.drawer-header-actions { display: flex; gap: 6px; }
.drawer-step,
.drawer-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: #bbb0c6; background: rgba(255,255,255,.035); cursor: pointer; }
.drawer-close { margin-left: 5px; font-size: 20px; }
.drawer-step:hover,
.drawer-close:hover { color: white; border-color: var(--line-strong); background: rgba(169,138,232,.1); }
.drawer-step:disabled { opacity: .25; cursor: default; }
.drawer-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 24px 32px; scrollbar-color: rgba(169,138,232,.35) transparent; }
.drawer-loading { padding: 28px 2px; color: #8e8299; font-size: 11px; }
.drawer-outcome { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.035); }
.drawer-outcome > div:first-child { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drawer-outcome .status-glyph { width: 9px; height: 9px; box-shadow: 0 0 15px currentColor; }
.drawer-outcome > div:first-child > div { display: grid; gap: 4px; }
.drawer-outcome > div:first-child strong { font: 600 13px/1.2 "Oxanium", sans-serif; }
.drawer-outcome > div:first-child small { color: #887c92; font-size: 8px; }
.drawer-outcome-stats { display: grid; grid-template-columns: repeat(2, minmax(64px, auto)); gap: 16px; }
.drawer-outcome.failed,
.drawer-outcome.timed_out,
.drawer-outcome.cancelled { border-color: rgba(240,133,150,.22); background: rgba(240,133,150,.045); }
.failure-priority { margin-top: 12px; overflow: hidden; border: 1px solid rgba(240,133,150,.24); border-radius: 14px; background: linear-gradient(135deg, rgba(240,133,150,.085), rgba(169,138,232,.045)); }
.failure-priority-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 15px 16px 13px; }
.failure-priority-heading > div { display: grid; gap: 5px; }
.failure-priority-heading .overline { margin: 0; color: #f0a0b1; font-size: 7px; }
.failure-priority-heading h3 { margin: 0; font: 600 15px/1.2 "Oxanium", sans-serif; }
.failure-priority-heading span { max-width: 560px; color: #9a8da3; font-size: 9px; line-height: 1.45; }
.failure-next { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding: 11px 16px; border-top: 1px solid rgba(240,133,150,.14); background: rgba(4,2,8,.18); }
.failure-next span { color: #7f7189; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.failure-next strong { color: #d0c5d7; font-size: 9px; font-weight: 500; line-height: 1.45; }
.legacy-diagnostic-note { margin: 0; padding: 10px 16px; border-top: 1px solid rgba(240,133,150,.14); color: #786c82; font-size: 8px; }
.inline-diagnostic { display: grid; gap: 9px; padding: 13px 16px 14px; border-top: 1px solid rgba(240,133,150,.14); background: linear-gradient(120deg, rgba(112,212,164,.035), rgba(169,138,232,.035)); }
.inline-diagnostic-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.inline-diagnostic-heading > div { display: grid; gap: 4px; }
.inline-diagnostic-heading .overline { margin: 0; color: #8f7b9e; font-size: 7px; }
.inline-diagnostic-heading strong { color: #d0c7d7; font-size: 10px; font-weight: 500; }
.inline-diagnostic-record { flex: 0 0 auto; padding: 5px 7px; border-radius: 999px; color: #8fcaab; background: rgba(112,212,164,.075); font: 6px/1 "SFMono-Regular", Consolas, monospace; }
.inline-diagnostic-signal { position: relative; margin: 0; padding: 11px 12px; overflow-wrap: anywhere; border: 1px solid rgba(112,212,164,.14); border-radius: 9px; color: #bfd1c7; background: rgba(4,2,8,.26); font: 8px/1.55 "SFMono-Regular", Consolas, monospace; }
.inline-diagnostic-signal.is-collapsed { max-height: 72px; overflow: hidden; }
.inline-diagnostic-signal.is-collapsed::after { position: absolute; right: 0; bottom: 0; left: 0; height: 24px; content: ""; background: linear-gradient(transparent, #110b17); pointer-events: none; }
.inline-diagnostic-actions { display: flex; align-items: center; gap: 7px; }
.inline-diagnostic-actions button { min-height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: #a99db3; background: rgba(255,255,255,.025); cursor: pointer; font-size: 8px; }
.inline-diagnostic-actions button:hover,
.inline-diagnostic-actions button:focus-visible { color: #f7f2fa; border-color: rgba(207,198,225,.28); background: rgba(169,138,232,.08); }
.inline-diagnostic-note { margin: 0; color: #756a7e; font-size: 7px; line-height: 1.5; }
.drawer-section { padding: 20px 2px 0; }
.drawer-section > header { margin-bottom: 10px; }
.drawer-section > header .overline { margin: 0 0 5px; color: #7d6b8d; font-size: 7px; }
.drawer-section > header h3 { margin: 0; font: 600 13px/1.2 "Oxanium", sans-serif; }
.actor-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 62px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.actor-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #d7c5ff; background: rgba(169,138,232,.13); font: 600 14px/1 "Oxanium", sans-serif; }
.actor-card > div { display: grid; gap: 4px; min-width: 0; }
.actor-card > div strong { overflow: hidden; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.actor-card > div small { color: #7c7086; font-size: 8px; }
.actor-badge { padding: 5px 7px; border-radius: 999px; color: #998da3; background: rgba(255,255,255,.05); font: 6px/1 "SFMono-Regular", Consolas, monospace; white-space: nowrap; }
.actor-card.verified { border-color: rgba(112,212,164,.2); background: rgba(112,212,164,.035); }
.actor-card.verified .actor-mark { color: #a9e8c6; background: rgba(112,212,164,.12); }
.actor-card.verified .actor-badge { color: #a9dec1; background: rgba(112,212,164,.09); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: rgba(255,255,255,.018); }
.detail-pair { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 12px 13px; }
.detail-pair:nth-child(even) { border-left: 1px solid var(--line); }
.detail-pair:nth-child(n+3) { border-top: 1px solid var(--line); }
.detail-pair span { color: #73677d; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.detail-pair strong { overflow-wrap: anywhere; color: #c9c0d1; font-size: 10px; font-weight: 500; line-height: 1.35; }
.detail-pair strong.mono { color: #afa2bb; font: 8px/1.45 "SFMono-Regular", Consolas, monospace; }
.drawer-actions { display: flex; gap: 8px; margin-top: 11px; }
.drawer-actions button { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 9px; }
.primary-action { color: #160b21; border-color: #c9b3f4 !important; background: #c9b3f4; }
.secondary-action { color: #c0b6c9; background: rgba(255,255,255,.035); }
.drawer-actions button:hover { filter: brightness(1.1); }
.drawer-privacy { margin: 12px 0 0; padding: 10px 11px; border-left: 2px solid rgba(169,138,232,.5); color: #786c82; background: rgba(169,138,232,.035); font-size: 8px; line-height: 1.55; }
.drawer-privacy b { color: #aa9ab8; font-weight: 500; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes loading { to { background-position: -200% 0; } }
@keyframes nebula-breathe { from { transform: scale(1.02) translate3d(-.6%, -.3%, 0); } to { transform: scale(1.08) translate3d(.8%, .5%, 0); } }
@keyframes nebula-drift { from { transform: translate3d(-1.5%, .5%, 0) scale(1.03); } to { transform: translate3d(1.5%, -1%, 0) scale(1.08); } }
@keyframes stellar-breathe { from { transform: scale(1.015) translate3d(-.35%, -.2%, 0); } to { transform: scale(1.045) translate3d(.45%, .3%, 0); } }
@keyframes drawer-enter { from { transform: translateX(36px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes drawer-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1080px) {
  .metric-card { padding: 9px; }
  .metric-icon { width: 25px; height: 25px; }
  .metric-card small { display: none; }
  .operations-grid { grid-template-columns: minmax(0, 1.35fr) minmax(250px, .75fr); }
}

@media (max-width: 840px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; height: auto; padding: 11px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .e3-brand { width: 126px; margin: 0; }
  .service-mark { display: none; }
  .sidebar-actions { display: flex; justify-content: center; gap: 3px; }
  .side-action { min-height: 32px; padding: 0 8px; font-size: 9px; }
  .side-action > span:first-child { display: none; }
  .sidebar-nebula { inset: -55% -4% -38%; width: auto; opacity: .34; }
  .workspace::before,
  .workspace::after { left: 0; }
  .sidebar-foot { display: block; margin: 0; padding: 0; border: 0; }
  .sidebar-foot > small { display: none; }
  .topbar { position: relative; }
  .operations-grid { grid-template-columns: 1fr; }
  .jobs-panel, .history-panel { grid-column: 1; }
  .job-drawer { width: 72vw; min-width: 0; }
}

@media (max-width: 620px) {
  .access-gate { padding: 18px; }
  .gate-card { padding: 28px 22px; border-radius: 18px; }
  .gate-logo { width: 142px; margin-bottom: 42px; }
  .token-row { display: grid; }
  .token-row button { width: 100%; }
  .sidebar { grid-template-columns: 112px 1fr; padding: 10px 14px 8px; }
  .e3-brand { width: 108px; }
  .sidebar-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .side-action { flex: 1 1 0; justify-content: center; min-width: 0; }
  .side-action b { display: none; }
  .sidebar-foot { position: absolute; top: 17px; right: 16px; }
  .connection > span { display: none; }
  .topbar { min-height: 58px; padding: 9px 14px; }
  .topbar h1 { font-size: 15px; }
  .refresh-time { display: none; }
  main { padding: 10px 10px 24px; }
  .system-badge b { display: none; }
  .system-badge { padding: 6px; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .metric-card { min-height: 56px; gap: 6px; padding: 8px; }
  .metric-card:nth-last-child(-n+2) { grid-column: span 1; }
  .metric-card strong { font-size: 18px; }
  .metric-card > div > span { font-size: 6px; }
  .metric-icon { display: none; }
  .job-table-head { display: none; }
  .job-row { grid-template-columns: minmax(0, 1fr) auto; }
  .job-detail { display: none; }
  .panel-header { min-height: 46px; padding: 8px 11px; }
  .history-filters button { min-height: 25px; padding: 0 6px; }
  .history-row { grid-template-columns: minmax(0, 1fr) 34px; padding: 0 11px; }
  .history-open { grid-template-columns: 7px minmax(0, 1fr) 52px; }
  .history-open .history-state { display: none; }
  .privacy-note { display: none; }
  .provider-card, .inventory-block { padding-left: 11px; padding-right: 11px; }
  footer { display: grid; padding: 0 12px 16px; }
  .job-drawer { width: 100vw; }
  .drawer-header { min-height: 90px; padding: 18px 16px 14px; }
  .drawer-title-group h2 { font-size: 18px; }
  .drawer-step { display: none; }
  .drawer-body { padding: 12px 14px 26px; }
  .drawer-outcome { align-items: flex-start; }
  .drawer-outcome-stats { gap: 8px; }
  .failure-next { grid-template-columns: 1fr; gap: 5px; }
  .actor-card { grid-template-columns: 34px minmax(0, 1fr); }
  .actor-mark { width: 34px; height: 34px; }
  .actor-badge { grid-column: 2; justify-self: start; }
  .inline-diagnostic { padding-right: 12px; padding-left: 12px; }
  .inline-diagnostic-heading { display: grid; }
  .inline-diagnostic-record { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .gate-nebula, .sidebar-nebula, .workspace::before { transform: none !important; }
}
