:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #7c3aed;
  --good: #22c55e;
  --bad: #ef4444;
  --warn: #f59e0b;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
}

html {
  background-color: var(--bg);
  color-scheme: dark;
  min-height: 100%;
  min-height: 100dvh;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, rgba(124, 58, 237, 0.25), transparent 55%),
    radial-gradient(900px 600px at 90% 0%, rgba(34, 197, 94, 0.14), transparent 55%),
    radial-gradient(900px 600px at 10% 95%, rgba(245, 158, 11, 0.1), transparent 55%),
    var(--bg);
}

body.page-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

body.page-shell > main.container {
  flex: 1 1 auto;
}

code {
  font-family: var(--mono);
  font-size: 0.95em;
}

.muted {
  color: var(--muted);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px 26px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, 0.65);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar__title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.topbar__title .link {
  border-bottom: none;
  color: inherit;
}

.topbar__title .link:hover {
  opacity: 0.88;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.dot--idle {
  background: rgba(255, 255, 255, 0.45);
}
.dot--loading {
  background: var(--warn);
}
.dot--ok {
  background: var(--good);
}
.dot--bad {
  background: var(--bad);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.grid--single {
  grid-template-columns: minmax(260px, 1fr);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1050px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.landing {
  margin-top: 14px;
}

.landing--hub {
  margin-top: 18px;
}

.hero {
  padding: 18px 2px 8px;
}

.hero--hub {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 6px;
}

.hero__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.hero__subtitle {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.tileGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.tileGrid--hub {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .tileGrid--hub {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1050px) {
  .tileGrid:not(.tileGrid--hub) {
    grid-template-columns: 1fr;
  }
}

.hubTile {
  min-height: 168px;
  padding: 24px 22px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hubTile__glyph {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hubTile__glyph .icon {
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.92);
}

.icon {
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  overflow: visible;
}

.tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tile__icon .icon {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.92);
}

.tile__icon--akv {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.42);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.tile__icon--aws {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.38);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

.tile__icon--vault {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.06));
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.08);
}

.board__titleRow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.board__titleIcon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board__titleIcon .icon {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.9);
}

.board__titleIcon--akv {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.38);
}

.board__titleIcon--aws {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.26), rgba(56, 189, 248, 0.06));
  border: 1px solid rgba(56, 189, 248, 0.34);
}

.board__titleIcon--vault {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.06));
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.board__titleIcon--audit {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.board__titleIcon--users {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.hubTile__glyph--vault {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.38), rgba(124, 58, 237, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.42);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.hubTile__glyph--cloud {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.38);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.tile--accent .hubTile__glyph--cloud {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(124, 58, 237, 0.12));
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.hubTile__heading {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.hubTile__lede {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 42ch;
}

.tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  transition: transform 0.06s ease, background 0.12s ease, border-color 0.12s ease;
}

.tile:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.22);
}

.tile--accent {
  border-color: rgba(124, 58, 237, 0.45);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.14), rgba(255, 255, 255, 0.04));
}

.tile--accent:hover {
  border-color: rgba(124, 58, 237, 0.65);
}

.tile__title {
  font-weight: 800;
}

.tile__subtitle {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
}

.link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.32);
}

.board {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board__header {
  padding: 14px 14px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.board__title {
  font-weight: 750;
}

.board__subtitle {
  margin-top: 4px;
  font-size: 12.5px;
}

.board__body {
  padding: 14px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

[data-role="create-row"] .input {
  min-width: 0;
}

.input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 11px;
  outline: none;
}

.input:focus {
  border-color: rgba(124, 58, 237, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

select.input,
.input--select {
  cursor: pointer;
  appearance: auto;
  padding-right: 28px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  user-select: none;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 11px;
  cursor: pointer;
  transition: transform 0.04s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
}

.btn--small {
  padding: 7px 10px;
  border-radius: 11px;
  font-size: 13px;
}

.btn--good {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.14);
}

.btn--good:hover {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.55);
}

.btn--warn {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
}

.btn--warn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.55);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.table {
  display: grid;
  gap: 10px;
}

.pager {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pager__info {
  font-size: 12.5px;
  min-width: 88px;
  text-align: center;
}

.card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 12px;
}

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.name {
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.86);
  word-break: break-word;
}

.value {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(0, 0, 0, 0.2);
  white-space: pre-wrap;
  word-break: break-word;
}

.pill {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.pill--err {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: rgba(255, 255, 255, 0.84);
}

.pill--ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: rgba(255, 255, 255, 0.84);
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hint {
  margin-top: 10px;
  font-size: 12.5px;
}

.jsonFields {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.14);
}

.jsonFields__title {
  margin-bottom: 8px;
  font-size: 12px;
}

.jsonRow {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.jsonRow:last-child {
  margin-bottom: 0;
}

.jsonRow__key {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

.jsonRow__keyInput {
  min-width: 0;
}

.jsonRow__input {
  min-width: 0;
}

.footer {
  margin-top: 14px;
  padding: 10px 2px 0;
  font-size: 12.5px;
}

.loginPage {
  min-height: 100vh;
  min-height: 100dvh;
}

.loginPage__main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 28px;
  padding-bottom: 40px;
}

.loginCard {
  width: 100%;
  max-width: 440px;
  padding: 28px 26px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.loginCard__brand {
  margin-bottom: 20px;
}

.loginCard__title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.loginCard__lede {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
}

.loginCard__panel {
  margin-top: 4px;
}

.loginCard__panel--muted {
  padding: 14px 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.loginCard__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.loginCard__text code {
  font-size: 12px;
}

.loginCard__finePrint {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
}

.loginCard__footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.loginCard__footerHint {
  font-size: 11.5px;
  flex: 1 1 200px;
}

.loginMessage {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  min-height: 2.9em;
}

.gsiWrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 14px 12px;
  border: 1px solid rgba(124, 58, 237, 0.45);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.16), rgba(124, 58, 237, 0.08));
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.auditContext {
  margin-bottom: 14px;
  padding: 12px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.auditContext__title {
  font-size: 12px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.auditContext__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  align-items: center;
}

.auditContext__notes {
  grid-column: 1 / -1;
}

.auditContext--prominent {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.12);
}

.auditContext--prominent .auditContext__title {
  font-weight: 650;
  color: var(--text);
  font-size: 13px;
}

.opsHero {
  margin-bottom: 18px;
}

.opsHero__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.opsHero__subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  max-width: 820px;
}

.opsSection {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}

.opsSection--disabled {
  opacity: 0.72;
}

.opsSection__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.opsSection__titleGroup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 220px;
}

.opsSection__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opsSection__icon .icon {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.9);
}

.opsSection__icon--synapse {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.38);
}

.opsSection__icon--sqlMi {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.34);
}

.opsSection__icon--databricks {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.opsSection__icon--ephemeral {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(34, 197, 94, 0.06));
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.opsSection__title {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
}

.opsSection__status {
  margin: 0;
  font-size: 12.5px;
  max-width: 100%;
  word-break: break-word;
}

.opsSection__hint {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.45;
}

.opsSection__hint--tight {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
}

.opsSection__hint--tight strong {
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
}

.opsActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.opsPre {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  overflow: auto;
  max-height: 320px;
}

.ephemeralCols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.ephemeralCol__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ephemeralCol__titleIcon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.ephemeralCol__titleIcon .icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.88);
}

.ephemeralCol__meta {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.4;
}

.ephemeralCol__secret {
  margin-top: 8px;
  max-height: 140px;
}

.summaryTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}

.summaryTable th,
.summaryTable td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.summaryTable th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summaryTable tr:last-child td {
  border-bottom: none;
}

