/* ==========================================================================
   EVMFactory — Console design system (LIGHT)
   Clean white control-plane aesthetic with an indigo→cyan accent.
   ========================================================================== */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --surface-3: #eef1f7;
  --border: #e4e8f0;
  --border-strong: #d3d9e5;
  --text: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --accent: #1f9d4d;
  --accent-2: #15803d;
  --accent-soft: rgba(31, 157, 77, 0.10);
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --grad: linear-gradient(135deg, #178a41 0%, #38c862 100%);
  --grad-soft: linear-gradient(135deg, rgba(31,157,77,.10), rgba(56,200,98,.06));
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 12px 32px -14px rgba(16,24,40,.22);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(31,157,77,.18); }

.ic-svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #cbd2de; border-radius: 20px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b3bccc; }
::-webkit-scrollbar-track { background: transparent; }

/* ==========================================================================
   App shell
   ========================================================================== */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px;
  box-shadow: 0 4px 12px -3px rgba(31,157,77,.5);
}
.brand .logo-img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; display: block; }
.brand .name { font-weight: 700; letter-spacing: -.2px; font-size: 17px; }
.brand .name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { padding: 12px; overflow-y: auto; flex: 1; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 14px 12px 6px; font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 12px; border-radius: 9px; color: var(--muted);
  font-size: 14px; margin: 1px 0; transition: background .12s, color .12s; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav a .ico { display: inline-flex; width: 18px; height: 18px; opacity: .85; }
.nav a.active .ico { opacity: 1; }

.sidebar-foot { padding: 12px; border-top: 1px solid var(--border); }
.who { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.who:hover { background: var(--surface-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 13px; }
.who .meta { line-height: 1.2; min-width: 0; }
.who .meta .n { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .meta .e { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Main ---- */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 13px 28px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); z-index: 20;
}
.crumbs { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--faint); }
.crumbs b { color: var(--text); font-weight: 600; }
.topbar .spacer { flex: 1; }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 7px 12px; color: var(--faint);
  font-size: 13px; width: 260px;
}
.search input { background: none; border: none; outline: none; color: var(--text); font-size: 13px; width: 100%; }

.content { padding: 28px; max-width: 1200px; width: 100%; margin: 0 auto; }

/* ==========================================================================
   Typography & headers
   ========================================================================== */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.page-head .titles { flex: 1; min-width: 0; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.4px; margin: 0 0 4px; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -.2px; margin: 0 0 14px; }
h3 { font-size: 14px; font-weight: 700; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 14px; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--accent-2); font-weight: 700; margin-bottom: 8px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 9px 15px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  transition: transform .06s, background .12s, border-color .12s, box-shadow .12s; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--surface-2); border-color: #c2cad9; }
.btn:active { transform: translateY(1px); }
.btn .ic-svg { width: 16px; height: 16px; }
.btn.primary { background: var(--grad); border: none; color: #fff; font-weight: 700; box-shadow: 0 4px 12px -3px rgba(31,157,77,.45); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.danger { color: var(--red); border-color: rgba(220,38,38,.3); background: #fff; }
.btn.danger:hover { background: rgba(220,38,38,.06); }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.sm .ic-svg { width: 15px; height: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ==========================================================================
   Cards / panels
   ========================================================================== */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-pad { padding: 20px; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Stat tiles */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .1s; }
.stat:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.stat .k { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.stat .v { font-size: 30px; font-weight: 700; letter-spacing: -.6px; margin-top: 6px; color: var(--text); }
.stat .v small { font-size: 15px; color: var(--muted); font-weight: 600; }
.stat .foot { font-size: 12px; color: var(--faint); margin-top: 6px; }

/* ==========================================================================
   Machine cards
   ========================================================================== */
.machines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.mcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; cursor: pointer; transition: border-color .15s, transform .1s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.mcard:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.mcard .mtop { display: flex; align-items: flex-start; gap: 12px; }
.micon { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; flex-shrink: 0; color: var(--accent); }
.micon .ic-svg { width: 22px; height: 22px; }
.mcard .mname { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.mcard .mid { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 2px; }
.mcard .mtags { color: var(--muted); font-size: 12.5px; margin: 12px 0 10px; display: flex; align-items: center; }
.mcard .mspec { display: flex; gap: 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 12px; }
.mcard .mspec b { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Status pills / badges
   ========================================================================== */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.pill.online { background: rgba(5,150,105,.10); color: var(--green); }
.pill.online .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(5,150,105,.14); }
.pill.offline { background: var(--surface-3); color: var(--muted); }
.pill.offline .dot { background: var(--muted); }
.pill.warn { background: rgba(217,119,6,.12); color: var(--amber); }
.pill.warn .dot { background: var(--amber); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 7px; background: var(--surface-3); color: var(--muted); border: 1px solid var(--border); }
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ==========================================================================
   Detail (property manager)
   ========================================================================== */
.detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.detail-head .micon { width: 52px; height: 52px; border-radius: 13px; }
.detail-head .micon .ic-svg { width: 27px; height: 27px; }
.detail-head h1 { margin: 0; }
.detail-head .mid { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.detail-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 20px 0 24px; overflow-x: auto; }
.tabs button {
  background: none; border: none; color: var(--muted); padding: 10px 14px; font-size: 14px;
  font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Definition rows */
.dl { display: grid; grid-template-columns: 190px 1fr; }
.dl > div { display: contents; }
.dl dt { color: var(--muted); padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.dl dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; display: flex; align-items: center; gap: 7px; }
.dl dd.mono { font-family: var(--mono); font-size: 13px; }
.dl dd .ic-svg { width: 17px; height: 17px; color: var(--accent); }
.dl > div:last-child dt, .dl > div:last-child dd { border-bottom: none; }

/* Resource meters */
.meter { margin-bottom: 16px; }
.meter .mhead { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.meter .mhead .lbl { color: var(--muted); }
.meter .mhead .val b { color: var(--text); }
.meter .track { height: 8px; background: var(--surface-3); border-radius: 20px; overflow: hidden; }
.meter .fill { height: 100%; background: var(--grad); border-radius: 20px; }

/* Node / presence list */
.node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 10px; }
.node .nk { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); }
.node .nk .ic-svg { width: 20px; height: 20px; }
.node .ninfo { flex: 1; }
.node .ninfo .nn { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.node .ninfo .nr { color: var(--muted); font-size: 12.5px; }
.node .nwhere { color: var(--faint); font-size: 12px; }

/* Simple rows / list items */
.row-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.row-item:last-child { border-bottom: none; }
.row-item .ri-main { flex: 1; }
.row-item .ri-sub { color: var(--muted); font-size: 12.5px; }
.row-item .ri-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.row-item .ri-ico .ic-svg { width: 17px; height: 17px; }

/* Empty states */
.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty .big { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.empty .big .ic-svg { width: 30px; height: 30px; }
.empty h3 { color: var(--text); font-size: 17px; }

/* ==========================================================================
   Tables
   ========================================================================== */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--border); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl .mono { font-family: var(--mono); font-size: 13px; }
.tbl-wrap { overflow-x: auto; }

/* ==========================================================================
   Mint workflow
   ========================================================================== */
.mint { max-width: 900px; margin: 0 auto; }
.mint-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.mint-step .step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mint-step .step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.mint-step .step-head h3 { margin: 0; font-size: 16px; }

.field { margin-bottom: 4px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field input[type=text], .field select {
  width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 11px 13px; color: var(--text); font-size: 14px; outline: none;
}
.field input[type=text]:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.opt-grid { display: grid; gap: 10px; }
.opt-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.opt-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.opt-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.opt {
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 13px; cursor: pointer;
  transition: border-color .12s, background .12s, box-shadow .12s; background: var(--surface); user-select: none;
}
.opt:hover { border-color: #b9c2d4; }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.opt .ot { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.opt .ot .ic-svg { width: 18px; height: 18px; color: var(--accent); }
.opt .ob { color: var(--muted); font-size: 12px; margin-top: 3px; }

.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); }
.range-row .rv { width: 92px; text-align: right; font-weight: 700; font-family: var(--mono); }

.svc-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 8px; cursor: pointer; }
.svc-item.sel { border-color: var(--accent); background: var(--accent-soft); }
.svc-item .chk { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex-shrink: 0; color: transparent; }
.svc-item.sel .chk { background: var(--accent); border-color: var(--accent); color: #fff; }
.svc-item .chk .ic-svg { width: 14px; height: 14px; }
.svc-item .si-main { flex: 1; }
.svc-item .si-name { font-weight: 600; font-size: 14px; }
.svc-item .si-blurb { color: var(--muted); font-size: 12.5px; }
.svc-item .si-price { color: var(--muted); font-size: 13px; }

/* Summary rail */
.mint-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.summary { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.summary h3 { margin-bottom: 14px; }
.summary .srow { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 7px 0; color: var(--muted); }
.summary .srow b { color: var(--text); font-weight: 600; display: flex; align-items: center; gap: 6px; text-align: right; }
.summary .srow b .ic-svg { width: 16px; height: 16px; color: var(--accent); }
.summary .total { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.summary .total .amt { font-size: 26px; font-weight: 700; letter-spacing: -.5px; color: var(--text); }
.summary .total .amt small { font-size: 13px; color: var(--muted); font-weight: 500; }

/* Minting animation */
.mint-progress { max-width: 560px; margin: 40px auto; text-align: center; }
.mint-progress .spinner { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 0 auto 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
.mint-log { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; font-family: var(--mono); font-size: 13.5px; box-shadow: var(--shadow-sm); }
.mint-log .ln { padding: 5px 0; color: var(--faint); display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(4px); }
.mint-log .ln.show { opacity: 1; transform: none; transition: all .3s; color: var(--text); }
.mint-log .ln .ck { color: var(--green); display: inline-flex; }
.mint-log .ln .ck .ic-svg { width: 16px; height: 16px; }

.mint-done { max-width: 560px; margin: 40px auto; text-align: center; }
.mint-done .seal { width: 76px; height: 76px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; margin: 0 auto 20px; box-shadow: 0 12px 32px -8px rgba(31,157,77,.5); }
.mint-done .seal .ic-svg { width: 38px; height: 38px; }
.mint-done .receipt { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 24px 0; box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Code blocks (API) — light
   ========================================================================== */
.code { background: #0f172a; border: 1px solid #1e293b; border-radius: var(--radius-sm); padding: 16px 18px; font-family: var(--mono); font-size: 13px; color: #cbd5e1; overflow-x: auto; line-height: 1.7; white-space: pre; }
.code .cm { color: #64748b; }
.code .kw { color: #c4b5fd; }
.code .st { color: #6ee7b7; }
.code .fn { color: #7dd3fc; }
.endpoint { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 8px; font-family: var(--mono); font-size: 13.5px; }
.method { font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px; min-width: 52px; text-align: center; }
.method.get { background: rgba(5,150,105,.12); color: var(--green); }
.method.post { background: rgba(31,157,77,.14); color: var(--accent); }
.method.patch { background: rgba(217,119,6,.14); color: var(--amber); }
.method.del { background: rgba(220,38,38,.12); color: var(--red); }
.endpoint .path { color: var(--text); }
.endpoint .desc { color: var(--muted); margin-left: auto; font-family: var(--font); font-size: 12.5px; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 16px; font-size: 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; animation: slidein .25s; }
.toast .tk { color: var(--green); display: inline-flex; }
.toast .tk .ic-svg { width: 18px; height: 18px; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }

/* ==========================================================================
   Ambient assembly diagram
   ========================================================================== */
.assembly { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 4px; }
.asm-col { text-align: center; }
.asm-node { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 12px; }
.asm-node .an-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--accent); margin-bottom: 8px; }
.asm-node .an-ico .ic-svg { width: 20px; height: 20px; }
.asm-node .an-title { font-weight: 700; font-size: 14px; }
.asm-node .an-caps { color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.7; }
.asm-converge { text-align: center; margin: 16px 0; color: var(--faint); font-size: 13px; }
.asm-evm { background: var(--grad-soft); border: 1px solid rgba(31,157,77,.35); border-radius: var(--radius); padding: 18px; text-align: center; }
.asm-evm .ae-title { font-weight: 700; font-size: 16px; }
.asm-evm .ae-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ==========================================================================
   Floating EVM Terminal window (a real window, not nested)
   ========================================================================== */
.evm-window {
  position: fixed; z-index: 250; width: 660px; max-width: calc(100vw - 32px);
  background: #0c1020; border: 1px solid #263049; border-radius: 12px;
  box-shadow: 0 40px 90px -20px rgba(15,23,42,.55), 0 0 0 1px rgba(0,0,0,.04);
  overflow: hidden; display: flex; flex-direction: column;
}
.evm-window.min { height: auto !important; }
.evm-window.min .term-body { display: none; }
.evm-window.max { inset: 12px !important; top: 12px !important; left: 12px !important; width: auto !important; height: auto !important; }
.evm-window.max .term-body { height: calc(100vh - 24px - 41px) !important; }
.win-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #141b30; cursor: move; user-select: none; border-bottom: 1px solid #212b45; }
.win-dots { display: flex; gap: 7px; }
.win-dots span { width: 13px; height: 13px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: transparent; transition: color .1s; }
.win-dots span svg { width: 9px; height: 9px; stroke-width: 2.4; }
.win-dots:hover span { color: rgba(0,0,0,.55); }
.win-dots .d-close { background: #ff5f57; }
.win-dots .d-min { background: #febc2e; }
.win-dots .d-max { background: #28c840; }
.win-title { color: #aeb8d0; font-size: 12.5px; font-weight: 600; font-family: var(--mono); display: flex; align-items: center; gap: 7px; min-width: 0; }
.win-title .ic-svg { width: 15px; height: 15px; color: #4ade80; }
.win-title b { color: #e5eaf5; }
.win-title .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-status { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 11px; font-family: var(--mono); color: #7a86a3; padding-left: 10px; }
.win-status .sd { width: 7px; height: 7px; border-radius: 50%; background: #7a86a3; }
.win-status.live .sd { background: #28c840; box-shadow: 0 0 0 3px rgba(40,200,64,.18); }
.win-status.live { color: #6ee7b7; }
.win-status.demo .sd { background: #febc2e; }
.win-status.demo { color: #fbd38d; }
.term-body { background: #0c1020; color: #cdd6ea; font-family: var(--mono); font-size: 13px; padding: 14px 16px; height: 360px; overflow-y: auto; line-height: 1.65; }
.term-body .t-line { white-space: pre-wrap; word-break: break-word; }
.term-body .t-cm { color: #6b7796; }
.term-body .t-ok { color: #6ee7b7; }
.term-body .t-accent { color: #86efac; }
.term-body .t-err { color: #fca5a5; }
.term-body .t-prompt { color: #4ade80; }
.term-inline { display: flex; align-items: baseline; gap: 8px; }
.term-inline input { background: transparent; border: none; outline: none; color: #e5eaf5; font-family: var(--mono); font-size: 13px; flex: 1; caret-color: #4ade80; }
.evm-window ::-webkit-scrollbar-thumb { background: #2a3450; border-color: #0c1020; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; }
.center { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.right { text-align: right; } .center-t { text-align: center; }
.nowrap { white-space: nowrap; }
.hr { height: 1px; background: var(--border); border: none; margin: 20px 0; }
.tag-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); margin: 0 8px; vertical-align: middle; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: -262px; z-index: 260; transition: left .2s; width: 252px; box-shadow: var(--shadow); }
  .sidebar.open { left: 0; }
  .mint-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { border-bottom: none; padding-bottom: 0; }
  .assembly { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex !important; }
  .evm-window { width: calc(100vw - 24px); left: 12px !important; }
}
.menu-btn { display: none; }
@media (max-width: 620px) {
  .content { padding: 18px; }
  .search { display: none; }
  .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
  .opt-grid.c4, .opt-grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .detail-actions { flex-wrap: wrap; }
}
