/* EMC MigrateIQ portal, in the EMC NEXUS design language: graphite surfaces, one EMC red accent, Inter for text,
   Space Grotesk for the wordmark and figures, and the route track that runs between a source and its target.

   BRAND: EMC red comes from the 2025 EMC logo (#9e0b24 → #d0283d → #e3354a → #f8475c). Status colours stay semantic
   (green done, amber warning, red failure, blue for data in motion) so brand red never reads as an error. */
:root {
  --emc-red: #e3354a; --emc-red-2: #d0283d; --emc-red-deep: #9e0b24; --emc-red-bright: #f8475c;
  --accent: var(--emc-red); --accent-ink: #ff6b7d; --accent-soft: rgb(227 53 74 / 0.12); --accent-edge: rgb(227 53 74 / 0.32);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Space Grotesk", "Inter", system-ui, sans-serif;

  /* Dark (default, as NEXUS) */
  --paper: #111318; --surface: #191c23; --raised: #1f232c; --field: #232832;
  --ink: #eef0f4; --muted: #98a0ad; --faint: #646b78; --rule: rgb(255 255 255 / 0.1); --rule-soft: rgb(255 255 255 / 0.06);
  --transit: #4a9fe0; --transit-soft: rgb(74 159 224 / 0.14); --transit-ink: #8cc4f0;
  --done: #34c47c; --done-soft: rgb(52 196 124 / 0.13); --warn: #f0a03c; --warn-soft: rgb(240 160 60 / 0.14); --fail: #ff6b6b; --fail-soft: rgb(255 107 107 / 0.13);
  --focus: var(--emc-red-bright); --shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset, 0 12px 32px -18px rgb(0 0 0 / 0.7);
  --aurora: radial-gradient(90% 60% at 110% -20%, rgb(208 40 61 / 0.10), transparent 60%), radial-gradient(70% 50% at -10% 115%, rgb(158 11 36 / 0.08), transparent 55%);
  --r: 12px; --r-sm: 9px; --nav-w: 236px; --side-w: 196px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --accent: var(--emc-red-2); --accent-ink: #b01f33; --accent-soft: rgb(208 40 61 / 0.08); --accent-edge: rgb(208 40 61 / 0.28);
  --paper: #f4f5f7; --surface: #ffffff; --raised: #ffffff; --field: #ffffff;
  --ink: #16181d; --muted: #5d6470; --faint: #8b919c; --rule: #dfe2e8; --rule-soft: #eceef2;
  --transit: #1f6fc4; --transit-soft: #e6f0fb; --transit-ink: #17589e;
  --done: #1e8a5a; --done-soft: #e3f4ea; --warn: #a8690f; --warn-soft: #fbf1dc; --fail: #c2372f; --fail-soft: #fbe6e4;
  --focus: var(--emc-red-2); --shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 10px 28px -18px rgb(16 24 40 / 0.28);
  --aurora: radial-gradient(90% 60% at 110% -20%, rgb(208 40 61 / 0.06), transparent 60%);
  color-scheme: light;
}
@media (prefers-color-scheme: light) { :root[data-theme="auto"] {
  --accent: var(--emc-red-2); --accent-ink: #b01f33; --accent-soft: rgb(208 40 61 / 0.08); --accent-edge: rgb(208 40 61 / 0.28);
  --paper: #f4f5f7; --surface: #ffffff; --raised: #ffffff; --field: #ffffff;
  --ink: #16181d; --muted: #5d6470; --faint: #8b919c; --rule: #dfe2e8; --rule-soft: #eceef2;
  --transit: #1f6fc4; --transit-soft: #e6f0fb; --transit-ink: #17589e;
  --done: #1e8a5a; --done-soft: #e3f4ea; --warn: #a8690f; --warn-soft: #fbf1dc; --fail: #c2372f; --fail-soft: #fbe6e4;
  --focus: var(--emc-red-2); --shadow: 0 1px 2px rgb(16 24 40 / 0.05), 0 10px 28px -18px rgb(16 24 40 / 0.28);
  --aurora: radial-gradient(90% 60% at 110% -20%, rgb(208 40 61 / 0.06), transparent 60%);
  color-scheme: light;
} }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { background: var(--paper); }
body { font: 14px/1.5 var(--font); font-variant-numeric: tabular-nums; background: var(--aurora), var(--paper); background-attachment: fixed; color: var(--ink); -webkit-font-smoothing: antialiased; }
h1 { font-family: var(--display); font-size: 1.55rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: 1.05rem; font-weight: 650; margin: 0 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 0.92rem; font-weight: 650; margin: 0 0 6px; }
p { margin: 0 0 10px; } a { color: var(--transit); text-decoration: none; } a:hover { text-decoration: underline; }
small, .muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 0.84rem; } .tiny { font-size: 0.76rem; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.86em; }
hr { border: 0; border-top: 1px solid var(--rule-soft); margin: 16px 0; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100vh; }
.nav { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--rule); padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.wordmark { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; font-weight: 750; letter-spacing: -0.01em; }
.wordmark .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--transit); position: relative; flex: none; }
.wordmark .mark::after { content: ""; position: absolute; left: 6px; right: 6px; top: 12px; height: 2px; background: #fff; border-radius: 2px; box-shadow: 0 -4px 0 #fff, 0 4px 0 #fff; }
.nav-section { font-size: 0.72rem; font-weight: 650; color: var(--faint); letter-spacing: 0.02em; padding: 12px 10px 4px; }
.nav a, .nav button.navlink { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); color: var(--ink); font: inherit; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; text-decoration: none; }
.nav a:hover, .nav button.navlink:hover { background: var(--paper); text-decoration: none; }
.nav a.active { background: var(--transit-soft); color: var(--transit-ink); font-weight: 600; }
.nav .proj { display: block; padding: 7px 10px; border-radius: var(--r-sm); }
.nav .proj b { display: block; font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .proj span { display: block; font-size: 0.76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .proj.active { background: var(--transit-soft); } .nav .proj.active b { color: var(--transit-ink); }
.nav-foot { margin-top: auto; padding: 10px 8px 0; font-size: 0.8rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.main { min-width: 0; padding: 24px 28px 72px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.crumbs { color: var(--muted); font-size: 0.86rem; display: flex; gap: 6px; align-items: center; }
.crumbs .sep { color: var(--faint); }

.project-head { display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: end; margin-bottom: 18px; }
.project-head .meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.86rem; margin: 4px 0 6px; flex-wrap: wrap; } .project-head .meta .pname { color: var(--ink); font-weight: 500; } .project-head .meta .sep { color: var(--faint); }
.project-head h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tenants { display: flex; align-items: center; gap: 10px; }
.tenant { padding: 8px 12px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); min-width: 150px; }
.tenant small { display: block; font-size: 0.72rem; color: var(--muted); } .tenant .tiny { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; } .tenant b { font-weight: 600; font-size: 0.88rem; }
.tenant-arrow { width: 40px; height: 2px; background: var(--transit); position: relative; flex: none; }
.tenant-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--transit); border-right: 0; }

.project-layout { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); gap: 20px; align-items: start; }
.project-layout > * { min-width: 0; }
.side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: var(--r-sm); color: var(--ink); }
.side a:hover { background: var(--surface); text-decoration: none; } .side a.active { background: var(--surface); font-weight: 600; box-shadow: inset 2px 0 0 var(--transit); }
.side .count { font-size: 0.74rem; color: var(--muted); background: var(--paper); border: 1px solid var(--rule-soft); border-radius: 999px; padding: 0 7px; }
.side .count.bad { color: var(--fail); border-color: var(--fail-soft); background: var(--fail-soft); }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
.card.pad { padding: 18px 20px; } .card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule-soft); flex-wrap: wrap; }
.card-head h2 { margin: 0; } .card-body { padding: 16px 18px; }
.grid { display: grid; gap: 16px; } .grid > * { min-width: 0; } .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-32 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .grid-21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px; }
.stat b { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; } .stat span { font-size: 0.8rem; color: var(--muted); }
.stat.bad b { color: var(--fail); } .stat.good b { color: var(--done); } .stat.go b { color: var(--transit); }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--rule); border-radius: var(--r); background: var(--surface); }
.empty h3 { color: var(--ink); margin-bottom: 4px; } .empty .btn { margin-top: 10px; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--surface); margin-bottom: 16px; font-size: 0.9rem; }
.banner.warn { background: var(--warn-soft); border-color: transparent; } .banner.fail { background: var(--fail-soft); border-color: transparent; } .banner.info { background: var(--transit-soft); border-color: transparent; }
.banner b { font-weight: 650; }

/* ---------- Controls ---------- */
.btn { font: inherit; font-size: 0.88rem; font-weight: 550; padding: 7px 13px; border-radius: var(--r-sm); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; line-height: 1.25; }
.btn:hover { border-color: var(--muted); text-decoration: none; } .btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: var(--transit); border-color: var(--transit); color: #fff; } .btn.primary:hover { filter: brightness(1.06); }
.btn.strong { border-color: var(--ink); font-weight: 600; } .btn.danger { color: var(--fail); border-color: var(--fail-soft); background: var(--fail-soft); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--paper); }
.btn.sm { padding: 4px 9px; font-size: 0.8rem; } .btn.block { width: 100%; justify-content: center; }
.btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
input, select, textarea { font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 7px 10px; width: 100%; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--transit); } input[type="file"] { padding: 5px; }
textarea { resize: vertical; min-height: 72px; font-family: inherit; } textarea.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.78rem; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 0.84rem; color: var(--muted); }
label.field > span { font-weight: 550; } label.check { display: flex; gap: 8px; align-items: center; font-size: 0.9rem; color: var(--ink); }
.form { display: flex; flex-direction: column; gap: 14px; } .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 14px; }
.form-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.hint { color: var(--muted); font-size: 0.84rem; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg button { font: inherit; font-size: 0.84rem; padding: 6px 12px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--rule); } .seg button.on { background: var(--transit-soft); color: var(--transit-ink); font-weight: 600; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; overflow-x: auto; }
.tabs button { font: inherit; font-size: 0.9rem; border: 0; background: none; color: var(--muted); padding: 10px 14px 9px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.tabs button .n { margin-left: 6px; font-size: 0.74rem; color: var(--faint); }
.search { position: relative; } .search input { padding-left: 30px; } .search::before { content: "⌕"; position: absolute; left: 10px; top: 6px; color: var(--faint); font-size: 1rem; }

/* ---------- Pills, health ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; background: var(--paper); color: var(--muted); border: 1px solid var(--rule-soft); }
.pill.go { background: var(--transit-soft); color: var(--transit-ink); border-color: transparent; }
.pill.ok { background: var(--done-soft); color: var(--done); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--fail-soft); color: var(--fail); border-color: transparent; }
.pill.brand-EMC { color: var(--transit-ink); border-color: var(--transit); background: transparent; } .pill.brand-STACK { color: var(--done); border-color: var(--done); background: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); }
.dot.ok { background: var(--done); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--fail); } .dot.go { background: var(--transit); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th { text-align: left; font-weight: 600; font-size: 0.78rem; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; } .tbl tr.group td { background: var(--paper); font-weight: 600; font-size: 0.8rem; color: var(--muted); padding: 7px 12px; }
.tbl tr.clickable { cursor: pointer; } .tbl tr.clickable:hover td { background: color-mix(in srgb, var(--transit-soft) 40%, var(--surface)); }
.tbl td.n, .tbl th.n { text-align: right; white-space: nowrap; } .tbl td.nw { white-space: nowrap; } .tbl .sub { color: var(--muted); font-size: 0.78rem; display: block; }
.tbl td.chk, .tbl th.chk { width: 34px; padding-right: 0; }
.tbl .truncate { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* ---------- Signature: route track ---------- */
.route { display: grid; grid-template-columns: minmax(0, 1fr) clamp(56px, 10vw, 120px) minmax(0, 1fr); align-items: center; gap: 10px; }
.route .end { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .route .end.t { text-align: right; }
.route .end b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; } .route .end span { color: var(--muted); font-size: 0.76rem; display: block; overflow: hidden; text-overflow: ellipsis; }
.track { position: relative; height: 6px; border-radius: 3px; background: var(--rule-soft); overflow: hidden; }
.track .fill { position: absolute; inset: 0 auto 0 0; background: var(--transit); border-radius: 3px; transition: width 0.6s ease; }
.track.running .fill { background: repeating-linear-gradient(90deg, var(--transit) 0 12px, color-mix(in srgb, var(--transit) 55%, var(--surface)) 12px 24px); background-size: 24px 100%; animation: travel 0.9s linear infinite; }
.track.done .fill { background: var(--done); } .track.warn .fill { background: var(--warn); } .track.failed .fill { background: var(--fail); }
@keyframes travel { to { background-position: 24px 0; } }
@media (prefers-reduced-motion: reduce) { .track.running .fill { animation: none; } .track .fill { transition: none; } .dot.go { animation: none; } }
.bar { height: 8px; border-radius: 4px; background: var(--rule-soft); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; } .bar .done { background: var(--done); } .bar .go { background: var(--transit); } .bar .bad { background: var(--fail); }

/* ---------- Lists ---------- */
.checks { list-style: none; margin: 0; padding: 0; } .checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.checks li:last-child { border-bottom: 0; } .checks .t { font-weight: 550; } .checks .d { color: var(--muted); font-size: 0.84rem; }
.mark { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 800; color: #fff; background: var(--faint); margin-top: 2px; }
.mark.pass { background: var(--done); } .mark.warn { background: var(--warn); } .mark.fail { background: var(--fail); } .mark.skip { background: var(--faint); }
.events { list-style: none; margin: 0; padding: 0; } .events li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 8px 14px; border-bottom: 1px solid var(--rule-soft); font-size: 0.87rem; }
.events li:last-child { border-bottom: 0; } .events time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; } .events li.warn { box-shadow: inset 3px 0 0 var(--warn); } .events li.error { box-shadow: inset 3px 0 0 var(--fail); }
.events .code { color: var(--faint); font-size: 0.74rem; margin-left: 6px; } .events .actor { color: var(--transit-ink); font-weight: 550; }
.issues { list-style: none; margin: 0; padding: 0; } .issues li { padding: 8px 10px; border-radius: 4px; margin-bottom: 4px; font-size: 0.86rem; } .issues li.error { background: var(--fail-soft); } .issues li.warning { background: var(--warn-soft); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 0.9rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }

/* ---------- Overlays ---------- */
.modal-back { position: fixed; inset: 0; background: rgb(10 16 26 / 0.45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--raised); border: 1px solid var(--rule); border-radius: 12px; width: min(620px, 100%); box-shadow: var(--shadow); }
.modal.wide { width: min(960px, 100%); } .modal-head { padding: 18px 22px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-body { padding: 16px 22px 22px; } .modal-foot { padding: 14px 22px; border-top: 1px solid var(--rule-soft); display: flex; justify-content: flex-end; gap: 10px; }
.drawer-back { position: fixed; inset: 0; background: rgb(10 16 26 / 0.3); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--raised); border-left: 1px solid var(--rule); box-shadow: var(--shadow); z-index: 51; display: flex; flex-direction: column; }
.drawer-head { padding: 18px 22px; border-bottom: 1px solid var(--rule-soft); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.drawer-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.wizbar { display: flex; gap: 6px; margin-bottom: 18px; } .wizbar span { flex: 1; height: 4px; border-radius: 2px; background: var(--rule-soft); } .wizbar span.on { background: var(--transit); }
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); font-size: 0.9rem; box-shadow: var(--shadow); max-width: 90vw; animation: rise 0.2s ease; }
.toast.error { background: var(--fail); color: #fff; } @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.popover { position: absolute; right: 0; top: calc(100% + 6px); width: 360px; max-height: 70vh; overflow-y: auto; background: var(--raised); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); z-index: 40; }
.popover .item { padding: 10px 14px; border-bottom: 1px solid var(--rule-soft); font-size: 0.86rem; } .popover .item:last-child { border-bottom: 0; }
.relative { position: relative; } .badge { position: absolute; top: -4px; right: -4px; background: var(--fail); color: #fff; font-size: 0.66rem; font-weight: 700; border-radius: 999px; min-width: 16px; height: 16px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Charts ---------- */
.chart { width: 100%; height: auto; display: block; } .chart text { font-size: 10.5px; fill: var(--muted); } .chart .grid { stroke: var(--rule-soft); } .chart .line { fill: none; stroke: var(--transit); stroke-width: 1.75; } .chart .area { fill: var(--transit); opacity: 0.12; } .chart .fail { stroke: var(--fail); }
.legend { display: flex; gap: 14px; font-size: 0.78rem; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 3px; background: var(--transit); vertical-align: middle; margin-right: 5px; border-radius: 2px; } .legend i.fail { background: var(--fail); }
.spark { display: block; }

/* ---------- Project cards (overview) ---------- */
.pcard { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); color: inherit; }
.pcard:hover { border-color: var(--muted); text-decoration: none; } .pcard h3 { margin: 0; font-size: 1rem; } .pcard .wl { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pcard .wl > div { display: grid; grid-template-columns: 110px 1fr 70px; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--muted); }
.pcard .right { text-align: right; font-size: 0.82rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }

.pre { background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-sm); padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.76rem; white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; margin: 0; }
.kbd { font-family: inherit; font-size: 0.74rem; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--muted); }
.spinner { width: 14px; height: 14px; border: 2px solid var(--rule); border-top-color: var(--transit); border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; } @keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) { .project-layout { grid-template-columns: 1fr; } .side { position: static; flex-direction: row; flex-wrap: wrap; } .grid-3 { grid-template-columns: 1fr 1fr; } }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: 8px; color: inherit; font-size: 1.1rem; line-height: 1; padding: 4px 9px; cursor: pointer; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; } .nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--rule); }
  .main { padding: 18px 16px 60px; } .project-head { grid-template-columns: 1fr; } .grid-2, .grid-3, .grid-32, .grid-21 { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; } .nav .nav-body { display: none; } .nav.open .nav-body { display: block; } .nav .wordmark { margin: 0; display: flex; align-items: center; } .nav { padding: 10px 14px; }
  .route { grid-template-columns: 1fr; gap: 4px; } .route .end.t { text-align: left; } .hide-sm { display: none !important; } .events li { grid-template-columns: 1fr; gap: 2px; }
  .drawer { width: 100%; } .tenant { min-width: 0; flex: 1 1 0; overflow: hidden; } .tenant b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
  .project-head > div { min-width: 0; } .project-head h1 { overflow-wrap: anywhere; } .tenants { min-width: 0; } .tbl-wrap { overflow-x: auto; }
}

select.btn.tone-ok { border-color: var(--done); color: var(--done); } select.btn.tone-go { border-color: var(--transit); color: var(--transit-ink); } select.btn.tone-bad { border-color: var(--fail); color: var(--fail); }
.track.identity { background: transparent; height: auto; overflow: visible; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.9rem; } .track.identity .arrow { opacity: .6; }

/* ---------- NEXUS chrome: sidebar, wordmark, controls ---------- */
.nav {
  background: linear-gradient(180deg, #15181e, #12141a); border-right: 1px solid rgb(255 255 255 / 0.07); padding: 20px 14px; gap: 2px;
  --ink: #eef0f4; --muted: #98a0ad; --faint: #5f6673; --paper: rgb(255 255 255 / 0.04); --surface: rgb(255 255 255 / 0.05);
  --rule: rgb(255 255 255 / 0.1); --rule-soft: rgb(255 255 255 / 0.06); --accent: var(--emc-red); --accent-soft: rgb(227 53 74 / 0.12); --accent-edge: rgb(227 53 74 / 0.3);
  color: var(--ink); color-scheme: dark;
}
.nav a, .nav button.navlink { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 8px 10px; border-radius: 9px; border: 1px solid transparent; }
.nav a:hover, .nav button.navlink:hover { color: var(--ink); background: rgb(255 255 255 / 0.035); }
.nav a.active { color: var(--ink); background: var(--accent-soft); border-color: var(--accent-edge); font-weight: 600; }
.nav svg.ic { width: 17px; height: 17px; flex: none; opacity: 0.85; } .nav a.active svg.ic { color: var(--emc-red-bright); opacity: 1; }
.nav-section { margin-top: 14px; padding: 0 10px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.nav .proj { border: 1px solid transparent; border-radius: 9px; }
.nav .proj b { color: var(--ink); font-weight: 550; font-size: 13.5px; } .nav .proj span { color: var(--faint); }
.nav .proj.active { background: var(--accent-soft); border-color: var(--accent-edge); } .nav .proj.active b { color: var(--ink); }
.nav .btn.primary { margin: 10px 0 2px; }
.nav-toggle { color: var(--ink); border-color: rgb(255 255 255 / 0.18); }
.nav-foot { gap: 10px; padding: 14px 4px 0; border-top: 1px solid rgb(255 255 255 / 0.06); margin-top: auto; }
.userchip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.userchip .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--display); color: #fff; flex: none; background: linear-gradient(135deg, var(--emc-red-2), var(--emc-red-deep)); box-shadow: 0 0 0 2px rgb(227 53 74 / 0.25); }
.userchip div { min-width: 0; } .userchip b { display: block; font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.userchip span { font-size: 11px; color: var(--faint); text-transform: capitalize; }
.nav-foot .signout { justify-content: center; gap: 8px; font-size: 12.5px; padding: 7px 10px; border-color: rgb(255 255 255 / 0.1); } .nav-foot .signout svg { width: 15px; height: 15px; }
.nav-foot .foot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--faint); }
.nav-foot .foot-row a { color: var(--muted); padding: 0; border: 0; display: inline; font-size: 11px; } .nav-foot .foot-row a:hover { background: none; color: var(--ink); }

.wordmark { display: flex; align-items: center; gap: 11px; padding: 2px 8px 18px; }
.wordmark img.brand-logo { width: 38px; height: 42px; flex: none; object-fit: contain; }
.wordmark .logo { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.wordmark .logo span { font: 600 9.5px/1 var(--display); letter-spacing: 0.32em; color: var(--emc-red-bright); margin-bottom: 4px; }
.wordmark .logo b { font: 600 16.5px/1 var(--display); letter-spacing: 0.12em; color: var(--ink); white-space: nowrap; }
.wordmark .logo b i { font-style: normal; color: var(--emc-red-bright); }

.btn { border-radius: var(--r-sm); font-weight: 550; } .btn svg.ic { width: 15px; height: 15px; flex: none; }
.btn.primary { background: linear-gradient(180deg, var(--emc-red), var(--emc-red-2)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px -8px rgb(208 40 61 / 0.7); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.strong { border-color: var(--accent-edge); color: var(--ink); }
input, select, textarea { background: var(--field); border-radius: var(--r-sm); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.card, .stat, .tbl-wrap, .pcard, .tenant, .empty { box-shadow: var(--shadow); }
.card-head h2, h2 { font-family: var(--display); font-weight: 600; letter-spacing: 0; }
.stat b, .pcard .right b, .kpi-num { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
.stat { position: relative; } .stat.spark { padding-right: 96px; } .stat.spark svg { position: absolute; right: 14px; top: 16px; width: 74px; height: 30px; }
.stat.spark svg path.l { fill: none; stroke: var(--transit); stroke-width: 1.6; } .stat.spark svg path.a { fill: var(--transit-soft); }
.tabs button.on { border-bottom-color: var(--accent); }
.seg button.on { background: var(--accent-soft); color: var(--ink); }
.side a.active { box-shadow: inset 2px 0 0 var(--accent); }
.side a svg.ic { width: 15px; height: 15px; margin-right: 8px; opacity: 0.7; flex: none; } .side a .lbl { display: flex; align-items: center; }
.side a.active svg.ic { color: var(--accent); opacity: 1; }
.pill.brand-EMC { color: var(--accent-ink); border-color: var(--accent-edge); background: var(--accent-soft); }
.pill.brand-STACK { color: #3fd0b4; border-color: rgb(63 208 180 / 0.35); background: rgb(63 208 180 / 0.1); }
:root[data-theme="light"] .pill.brand-STACK { color: #0f8a72; }
a { color: var(--transit-ink); }

/* ---------- Landing / sign-in (NEXUS pattern) ---------- */
.landing { position: relative; min-height: 100dvh; overflow: hidden; color: #eef0f4; color-scheme: dark; display: flex; flex-direction: column;
  background: radial-gradient(110% 80% at 85% 0%, rgb(208 40 61 / 0.22), transparent 55%), radial-gradient(80% 60% at 0% 100%, rgb(158 11 36 / 0.16), transparent 55%), linear-gradient(160deg, #0f1218 0%, #1a1a22 55%, #22171a 100%); }
.landing .stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.landing .lwrap { position: relative; flex: 1; width: min(1180px, 100%); margin: 0 auto; padding: 48px 32px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 400px); gap: 56px; align-items: center; }
.landing .hero .eyebrow { display: flex; align-items: center; gap: 12px; font: 600 13px/1 var(--display); letter-spacing: 0.34em; color: #d6d9df; margin-bottom: 14px; }
.landing .hero .eyebrow i { width: 26px; height: 2px; background: var(--emc-red); display: inline-block; } .landing .hero .eyebrow em { font-style: normal; color: var(--emc-red-bright); }
.landing .hero .tag { display: inline-block; font: 600 9.5px/1 var(--display); letter-spacing: 0.26em; text-transform: uppercase; color: var(--emc-red-bright); border: 1px solid rgb(248 71 92 / 0.45); border-radius: 999px; padding: 6px 11px; margin-bottom: 22px; }
.landing .hero h1 { font: 700 clamp(34px, 4.4vw, 54px)/1.08 var(--display); letter-spacing: -0.02em; margin: 0 0 18px; color: #fff; }
.landing .hero h1 em { font-style: normal; color: var(--emc-red-bright); }
.landing .hero p { color: #a6adb9; font-size: 15.5px; max-width: 520px; margin: 0 0 20px; }
.landing .feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: #c7ccd4; font-size: 13px; }
.landing .feats li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--emc-red-bright); margin-right: 8px; vertical-align: 2px; box-shadow: 0 0 8px rgb(248 71 92 / 0.9); }
.landing .card-in { position: relative; background: rgb(24 27 35 / 0.82); border: 1px solid rgb(255 255 255 / 0.1); border-radius: 18px; padding: 30px 28px 24px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 0 0 1px rgb(227 53 74 / 0.08), 0 30px 80px -30px rgb(0 0 0 / 0.8), 0 0 60px -20px rgb(227 53 74 / 0.35); text-align: center; }
.landing .card-in::before { content: ""; position: absolute; left: 16%; right: 16%; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--emc-red-bright), transparent); border-radius: 2px; }
.landing .hero-logo { width: 128px; height: auto; display: block; margin: 0 auto 8px; filter: drop-shadow(0 0 18px rgb(227 53 74 / 0.35)); }
.landing .wm2 { font: 600 28px/1 var(--display); letter-spacing: 0.16em; margin: 0 0 6px; padding-left: 0.16em; color: #fff; } .landing .wm2 i { font-style: normal; color: var(--emc-red-bright); }
.landing .sub { color: #9aa1ad; font-size: 13px; margin: 0 0 18px; }
.landing .btn.primary { width: 100%; justify-content: center; padding: 12px 16px; font-size: 14.5px; border-radius: 11px; }
.landing .ms-logo { width: 16px; height: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; } .landing .ms-logo i { display: block; }
.landing .note { font-size: 12px; color: #6f7684; margin: 12px 0 0; } .landing .note.warn { color: var(--warn); } .landing .note.info { color: #e6b6bd; background: rgb(227 53 74 / 0.12); border: 1px solid rgb(227 53 74 / 0.3); border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; } .landing .note a { color: #9aa1ad; }
.landing .chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 20px 0 0; }
.landing .chips span { font-size: 11px; color: #9aa1ad; border: 1px solid rgb(255 255 255 / 0.08); border-radius: 999px; padding: 4px 10px; background: rgb(255 255 255 / 0.03); }
.landing .foot { position: relative; padding: 0 0 22px; font-size: 11.5px; color: #5f6673; text-align: center; letter-spacing: 0.04em; } .landing .foot b { color: #9aa1ad; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .landing .card-in { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; } .landing .hero { animation: rise .7s cubic-bezier(.2,.7,.2,1) .08s both; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .landing .lwrap { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px; align-content: start; } .landing .hero { text-align: center; } .landing .hero .eyebrow { justify-content: center; } .landing .hero p { margin-inline: auto; } .landing .feats { justify-content: center; } .landing .card-in { margin: 0 auto; width: min(420px, 100%); } }

/* ---------- Project navigation (grouped, Cloudiway-style) ---------- */
.pnav .back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 4px 8px; margin: -6px 0 6px; }
.pnav .back svg.ic { width: 14px; height: 14px; }
.pcard-mini { background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.08); border-radius: 10px; padding: 10px 12px; margin: 0 2px 10px; display: flex; flex-direction: column; gap: 4px; }
.pcard-mini b { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pcard-mini span { font-size: 11.5px; color: var(--faint); }
.pcard-mini .switch { margin-top: 6px; font-size: 12px; padding: 5px 8px; background: rgb(255 255 255 / 0.05); border-color: rgb(255 255 255 / 0.12); color: var(--ink); }
.ngroup { position: relative; margin: 10px 0 4px; padding-left: 10px; }
.ngroup::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 3px; background: var(--g); opacity: 0.9; }
.ngroup.tone-cyan { --g: #22c3d6; } .ngroup.tone-amber { --g: #f0a03c; } .ngroup.tone-violet { --g: #a07cf0; } .ngroup.tone-green { --g: #34c47c; } .ngroup.tone-red { --g: var(--emc-red-bright); }
.ngroup .nhead { font: 700 10px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--g); padding: 4px 8px 8px; }
.ngroup a, .ngroup .navlink { padding: 7px 8px; font-size: 13px; }
.ngroup .dot-i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.45; margin: 0 6px; flex: none; }
.ngroup a .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .navlink.mod { display: flex; align-items: center; gap: 10px; width: 100%; } .nav .navlink.mod .chev { margin-left: auto; transition: transform .15s; opacity: 0.6; } .nmod.open .navlink.mod .chev { transform: rotate(90deg); }
.nmod .sub { margin: 0 0 4px 14px; padding-left: 10px; border-left: 1px solid rgb(255 255 255 / 0.08); } .nmod .sub a { font-size: 12.5px; padding: 5px 8px; }
.nav .count { font-size: 0.72rem; color: var(--muted); background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.08); border-radius: 999px; padding: 0 7px; }
.nav .count.bad { color: #ff8a8a; background: rgb(255 107 107 / 0.14); border-color: transparent; }

/* ---------- Home: welcome aboard ---------- */
.welcome .wtitle { font-size: 1.35rem; margin: 2px 0 4px; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 0 0 26px; position: relative; }
.steps li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--rule-soft); }
.steps li:last-child::before { display: none; } .steps li.done::before { background: var(--done); opacity: 0.5; }
.steps .sn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--rule); display: grid; place-items: center; font: 600 15px/1 var(--display); color: var(--muted); background: var(--surface); position: relative; z-index: 1; }
.steps li.done .sn { border-color: var(--done); color: var(--done); } .steps .sn svg.ic { width: 18px; height: 18px; }
.steps .st { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--display); font-weight: 600; font-size: 1.05rem; margin: 8px 0 4px; }
.steps .sbody p { color: var(--muted); font-size: 0.9rem; margin: 0 0 10px; max-width: 760px; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 4px; }
.module { display: grid; grid-template-columns: 40px minmax(0, 1fr) 16px; grid-template-rows: auto auto; gap: 4px 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--raised); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.module:hover { border-color: var(--accent-edge); text-decoration: none; transform: translateY(-1px); }
.module .mi { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); } .module .mi svg.ic { width: 20px; height: 20px; }
.module .mt { grid-column: 2; grid-row: 1; min-width: 0; } .module .mt b { display: block; font-weight: 600; } .module .mt small { color: var(--muted); font-size: 11.5px; }
.module .ms { grid-column: 2; grid-row: 2; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .module .ms small { color: var(--muted); font-size: 11.5px; }
.module > svg.ic { grid-column: 3; grid-row: 1 / 3; width: 16px; height: 16px; color: var(--faint); } .module.none { opacity: 0.75; }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; } .dash > * { min-width: 0; }
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.donut circle.tone-ok { stroke: var(--done); } .donut circle.tone-go { stroke: var(--transit); } .donut circle.tone-warn { stroke: var(--warn); } .donut circle.tone-bad { stroke: var(--fail); } .donut circle.tone-none { stroke: var(--faint); opacity: 0.5; }
.donut .donut-n { font: 600 28px var(--display); fill: var(--ink); } .donut .donut-c { font-size: 11px; fill: var(--muted); }
.legend { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: 1fr; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 7px; } .legend li b { margin-left: auto; color: var(--ink); font-weight: 600; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; background: var(--faint); } .legend .sw.tone-ok { background: var(--done); } .legend .sw.tone-go { background: var(--transit); } .legend .sw.tone-warn { background: var(--warn); } .legend .sw.tone-bad { background: var(--fail); }
table.tbl.dense th, table.tbl.dense td { padding: 8px 10px; } .tbl td svg.ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; opacity: 0.6; } .tbl tr.muted td { color: var(--faint); } .tbl tr.total td { font-weight: 600; border-top: 1px solid var(--rule); background: var(--raised); }
.ok { color: var(--done); } .bad { color: var(--fail); }
@media (max-width: 1100px) { .dash { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Connectors ---------- */
.conn { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px 16px; align-items: start; border-top: 1px solid var(--rule-soft); }
.cico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); } .cico svg.ic { width: 22px; height: 22px; }
.cico.google { background: rgb(66 133 244 / 0.14); color: #7fb0ff; } .cico.slack { background: rgb(224 30 90 / 0.14); color: #ff7aa2; }
.connect-empty { display: flex; gap: 14px; align-items: center; }

/* ---------- Global settings (per module) ---------- */
.sw { position: relative; width: 40px; height: 22px; border-radius: 999px; border: 1px solid var(--rule); background: var(--field); padding: 0; cursor: pointer; flex: none; transition: background .15s, border-color .15s; }
.sw .knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.sw.on { background: var(--emc-red-2); border-color: var(--emc-red-2); } .sw.on .knob { transform: translateX(18px); background: #fff; }
.sw:disabled { opacity: .5; cursor: not-allowed; } .sw:focus-visible { outline: 2px solid var(--emc-red-3); outline-offset: 2px; }
.gs-grid { columns: 2 380px; column-gap: 16px; } .gs-card { break-inside: avoid; margin: 0 0 16px; display: inline-block; width: 100%; } .gs-card + .gs-card { margin-top: 0; }
.gs-card .card-body { padding: 4px 18px 8px; }
.gs-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.gs-row:last-child { border-bottom: 0; } .gs-row.col { flex-direction: column; align-items: stretch; gap: 10px; }
.gs-row.na { opacity: .6; }
.gs-lbl { min-width: 0; display: flex; flex-direction: column; gap: 3px; } .gs-lbl b { font-weight: 550; font-size: 13.5px; color: var(--ink); } .gs-lbl small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.gs-in { width: 190px; max-width: 100%; flex: none; } .gs-in.num { width: 90px; }
.gs-radios { display: grid; gap: 8px; }
.gs-radio { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; background: var(--surface); }
.gs-radio.on { border-color: var(--emc-red-2); background: rgb(227 53 74 / 0.08); }
.gs-radio input { margin-top: 3px; accent-color: var(--emc-red-2); } .gs-radio span { display: flex; flex-direction: column; gap: 2px; } .gs-radio b { font-weight: 550; font-size: 13px; } .gs-radio small { font-size: 12px; color: var(--muted); }
.gs-savebar { position: sticky; bottom: 12px; margin-top: 16px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--emc-red-2); box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); }
.gs-savebar span { flex: 1; font-size: 13px; color: var(--muted); }
@media (max-width: 680px) { .gs-grid { columns: 1; } .gs-row { flex-wrap: wrap; } .gs-in { width: 100%; } .gs-card .card-body { padding: 4px 14px 8px; } }

/* ---------- Cross tenant ---------- */
.dash3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; } .dash3 > .card { margin-top: 0; }
.dev-setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; } .dev-setup .card { margin-top: 0; } .dev-setup h3 { margin: 0 0 8px; font-size: 14.5px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; } .tpl-grid .card { margin-top: 0; }
.mail-pre { white-space: pre-wrap; font: 13px/1.5 var(--font); color: var(--ink); background: var(--raised); border: 1px solid var(--rule-soft); border-radius: 10px; padding: 12px 14px; margin: 8px 0 0; }
.bar.sm { height: 5px; max-width: 160px; }
.log { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; max-height: 60vh; overflow: auto; }
.log-line { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 5px 8px; border-radius: 6px; } .log-line:nth-child(odd) { background: var(--raised); }
.log-line .t { color: var(--faint); font-size: 11.5px; white-space: nowrap; } .log-line.warn span:last-child { color: var(--warn); } .log-line.error span:last-child { color: var(--fail); }
@media (max-width: 680px) { .log-line { grid-template-columns: 1fr; gap: 2px; } }
.nmod.current .navlink.mod { color: var(--ink); } .nmod.current .navlink.mod svg { color: var(--g); } .nmod.current .sub { border-left-color: var(--g); }
