/* ============================================================
   deployd — deploy control-plane dashboard
   Vanilla CSS. No build step, no external fonts/network.
   Palette: calm neutral + semantic status; blue accent for
   blue/green (colorful) actions. No teal.
   ============================================================ */

:root {
  /* system font stacks */
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu,
             Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo",
               "Cascadia Code", "Roboto Mono", monospace;

  /* neutral surfaces (dark console) */
  --bg:        #0e1116;
  --bg-1:      #151a21;
  --bg-2:      #1b222b;
  --bg-3:      #232c37;
  --surface:   #161c24;
  --surface-2: #1d2530;
  --border:    #2a3543;
  --border-2:  #384555;
  --border-strong: #4a5b6f;

  /* text */
  --text:      #e6ecf3;
  --text-2:    #a9b6c6;
  --text-3:    #6f7f92;
  --text-inv:  #0b0e12;

  /* semantic status */
  --ok:      #3fb864;
  --ok-bg:   #14311f;
  --amber:   #e0a02a;
  --amber-bg:#3a2c0c;
  --down:    #e5484d;
  --down-bg: #3a1315;
  --unknown: #6f7f92;
  --unknown-bg: #232c37;

  /* accents */
  --accent:      #4f8cf0;   /* primary blue */
  --accent-hov:  #6a9ff5;
  --accent-bg:   #16233c;
  --blue:        #4f8cf0;   /* blue/green colorful actions */
  --blue-strong: #2f6fd6;

  /* prod emphasis */
  --prod-border: #b85c2a;
  --prod-glow:   rgba(184, 92, 42, 0.28);

  /* radii + shadow */
  --r-sm: 5px;
  --r:    8px;
  --r-lg: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.6);

  --topbar-h: 52px;
}

/* ------------------------------ reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
[hidden] { display: none !important; }

/* focus visibility — keyboard only */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus:not(:focus-visible) { outline: none; }

/* mono helper */
.mono { font-family: var(--font-mono); font-variant-ligatures: none; }

/* ============================ BUTTONS ============================ */
.btn {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 7px 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .12s ease, border-color .12s ease, transform .05s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-3); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-sm { font-size: 12.5px; padding: 5px 10px; }
.btn-block { width: 100%; justify-content: center; padding: 10px; }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-hov); border-color: var(--accent-hov); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); border-color: var(--border); }
.btn-danger { background: var(--down); border-color: var(--down); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }
.btn-blue { background: var(--blue-strong); border-color: var(--blue-strong); color: #fff; }
.btn-blue:hover { background: var(--blue); border-color: var(--blue); }

/* ============================ LOGIN ============================ */
.login-screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 50% -10%, #182233 0%, transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-brand {
  display: flex; align-items: center; gap: 10px; justify-content: center;
}
.login-sub {
  margin: -8px 0 6px; text-align: center; color: var(--text-3);
  font-size: 12.5px; letter-spacing: .04em; text-transform: lowercase;
}
.login-error {
  margin: 0; color: var(--down); font-size: 12.5px; text-align: center;
  background: var(--down-bg); border: 1px solid #5a2528; border-radius: var(--r-sm);
  padding: 8px 10px;
}
.login-foot { color: var(--text-3); font-size: 11.5px; letter-spacing: .03em; }

.brand-mark { color: var(--accent); font-size: 18px; }
.brand-name { font-weight: 700; letter-spacing: -0.01em; font-size: 17px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 12px; color: var(--text-2); font-weight: 500;
  letter-spacing: .02em;
}
input[type="text"], input[type="password"], select, textarea {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  width: 100%;
  transition: border-color .12s ease, background .12s ease;
}
input.mono, textarea.mono { font-family: var(--font-mono); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent); background: var(--bg);
}
input::placeholder { color: var(--text-3); }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%),
                    linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

/* ============================ APP SHELL ============================ */
.app { min-height: 100%; display: flex; flex-direction: column; }

.topbar {
  height: var(--topbar-h);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.topbar-left { display: flex; align-items: center; gap: 18px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.tabs { display: flex; gap: 2px; }
.tab {
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  background: transparent; border: none;
  padding: 7px 12px; border-radius: var(--r-sm); cursor: pointer;
  transition: background .12s, color .12s;
}
.tab:hover { background: var(--bg-2); color: var(--text); }
.tab.is-active { background: var(--accent-bg); color: var(--accent-hov); }

.conn-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-2);
  padding: 4px 9px; border: 1px solid var(--border); border-radius: 999px;
}
.conn-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(63,184,100,.15);
}
.conn-status.is-stale .conn-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(224,160,42,.15); }
.conn-status.is-down .conn-dot { background: var(--down); box-shadow: 0 0 0 3px rgba(229,72,77,.15); }

.actor-chip {
  font-size: 12px; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px; max-width: 200px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============================ LOCK BANNER ============================ */
.lock-banner {
  flex: 0 0 auto;
  padding: 9px 16px;
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.lock-banner.is-free {
  background: var(--ok-bg); color: #8fe4a9; border-bottom-color: #1f4a30;
}
.lock-banner.is-held {
  background: linear-gradient(90deg, var(--down-bg), var(--amber-bg));
  color: #ffd7a0; border-bottom-color: #5a3a12;
  font-weight: 600;
}
.lock-banner .lock-icon { font-size: 15px; }
.lock-banner .lock-detail { color: inherit; opacity: .85; font-weight: 500; }
.lock-banner.is-held { animation: deploy-pulse 2.2s ease-in-out infinite; }
@keyframes deploy-pulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.12); } }

/* Per-target deploy-progress badges (shown only while a promotion holds the lock) */
.deploy-badge {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px;
  font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; vertical-align: middle;
  white-space: nowrap;
}
.deploy-badge.at-target { background: var(--ok-bg); color: #8fe4a9; border: 1px solid #1f4a30; }
.deploy-badge.deploying { background: var(--amber-bg); color: #ffd7a0; border: 1px solid #5a3a12; }

/* ============================ VIEWS ============================ */
.views { flex: 1 1 auto; padding: 16px; max-width: 1500px; width: 100%; margin: 0 auto; }
.view { animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.board-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.board-updated { color: var(--text-3); font-size: 12.5px; }
.board-buttons { display: flex; gap: 8px; flex-wrap: wrap; }

.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}
.board-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ============================ TARGETS ============================ */
.targets { display: flex; flex-direction: column; gap: 16px; }

.stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stage-card.stage-prod {
  border: 2px solid var(--prod-border);
  box-shadow: 0 0 0 1px var(--prod-glow), var(--shadow);
}
.stage-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.stage-name {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.stage-prod .stage-name { color: #f0a878; }
.stage-badge {
  font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  background: var(--prod-border); color: #fff;
}
.stage-count { margin-left: auto; color: var(--text-3); font-size: 12px; }

.artifact-row {
  display: grid;
  grid-template-columns: 150px 128px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--bg-3);
}
.artifact-row:last-child { border-bottom: none; }
.artifact-name { font-size: 13px; font-weight: 500; color: var(--text); }
.artifact-sha { font-size: 12.5px; color: var(--text-2); }
.artifact-sha.none { color: var(--text-3); font-style: italic; font-family: var(--font-ui); }

.health {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--text-2);
}
.health-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: var(--unknown);
}
.health-ok      .health-dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(63,184,100,.14); }
.health-degraded .health-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(224,160,42,.14); }
.health-down    .health-dot { background: var(--down); box-shadow: 0 0 0 3px rgba(229,72,77,.16); }
.health-unknown .health-dot { background: var(--unknown); }
.health-ok       .health-label { color: #7fd89a; }
.health-degraded .health-label { color: #e8bf6e; }
.health-down     .health-label { color: #f0888c; }

.artifact-when { font-size: 11.5px; color: var(--text-3); text-align: right; white-space: nowrap; }
.artifact-detail {
  grid-column: 1 / -1;
  font-size: 11.5px; color: var(--text-3);
  margin-top: -2px; padding-left: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============================ PANELS ============================ */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.panel-head h2 { font-size: 13px; font-weight: 600; letter-spacing: .02em; }

/* queue */
.queue { display: flex; flex-direction: column; }
.queue-item {
  padding: 10px 15px; border-bottom: 1px solid var(--bg-3);
  display: flex; flex-direction: column; gap: 3px;
}
.queue-item:last-child { border-bottom: none; }
.queue-top { display: flex; align-items: center; gap: 8px; }
.queue-sha { font-size: 12.5px; color: var(--accent-hov); }
.queue-slug { font-size: 11.5px; color: var(--text-3); }
.queue-desc { font-size: 12.5px; color: var(--text-2); }
.queue-shipped {
  font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ok); border: 1px solid #1f4a30; border-radius: 999px; padding: 1px 6px;
}

/* inflight */
.inflight { display: flex; flex-direction: column; }
.inflight-item {
  padding: 10px 15px; border-bottom: 1px solid var(--bg-3);
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  transition: background .12s;
}
.inflight-item:hover { background: var(--bg-2); }
.inflight-item:last-child { border-bottom: none; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  flex: 0 0 auto; animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(79,140,240,.5); }
  50% { opacity: .55; box-shadow: 0 0 0 5px rgba(79,140,240,0); }
}
.inflight-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inflight-title { font-size: 12.5px; font-weight: 500; }
.inflight-sub { font-size: 11.5px; color: var(--text-3); }

.empty {
  padding: 26px 16px; text-align: center; color: var(--text-3);
  font-size: 12.5px;
}
.panel .empty { padding: 20px 16px; }

/* ============================ PILLS ============================ */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  padding: 2px 9px; border-radius: 999px; text-transform: uppercase;
  border: 1px solid transparent; white-space: nowrap;
}
.pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: 0 0 auto;
}
.pill-muted { background: var(--bg-2); color: var(--text-3); border-color: var(--border); }
.pill-muted::before { display: none; }
.pill-pending { background: var(--unknown-bg); color: #a9b6c6; border-color: var(--border-2); }
.pill-running { background: var(--accent-bg); color: var(--accent-hov); border-color: #274063; }
.pill-running::before { animation: pulse 1.3s ease-in-out infinite; }
.pill-ok      { background: var(--ok-bg); color: #7fd89a; border-color: #1f4a30; }
.pill-failed  { background: var(--down-bg); color: #f0888c; border-color: #5a2528; }

.pill-action {
  text-transform: none; font-weight: 500; letter-spacing: 0;
  background: var(--bg-2); color: var(--text-2); border-color: var(--border);
}
.pill-action::before { display: none; }

/* ============================ DATA TABLES ============================ */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th {
  text-align: left; font-size: 11px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-3);
  padding: 9px 14px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--surface-2); z-index: 1;
}
.data-table tbody td { padding: 9px 14px; border-bottom: 1px solid var(--bg-3); vertical-align: middle; }
.data-table tbody tr { transition: background .1s; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table tbody tr.clickable:hover { background: var(--bg-2); }
.data-table tbody tr:last-child td { border-bottom: none; }
.cell-sha { color: var(--text-2); }
.cell-muted { color: var(--text-3); }
.cell-when { color: var(--text-3); white-space: nowrap; }
.row-inflight { background: rgba(79,140,240,.05); }

/* ============================ SCRIM ============================ */
.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(6, 9, 13, 0.6);
  backdrop-filter: blur(2px);
  animation: fade .15s ease;
}

/* ============================ DRAWER ============================ */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(720px, 94vw);
  background: var(--surface);
  border-left: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: slideIn .2s cubic-bezier(.2,.7,.3,1);
}
@keyframes slideIn { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.drawer-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drawer-title h2 { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-meta {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 16px; padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meta-k { color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.meta-v { color: var(--text); overflow: hidden; text-overflow: ellipsis; }

.section-label {
  font-size: 11px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-3); margin: 0;
}
.drawer-phases { padding: 14px 18px 6px; }
.phase-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.phase-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.phase-name { font-size: 13px; font-weight: 500; }
.phase-exit { margin-left: auto; font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono); }
.phase-exit.nonzero { color: var(--down); }

.drawer-log-wrap { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; padding: 8px 18px 18px; }
.log-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.autoscroll { font-size: 11.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.autoscroll input { width: auto; }

.terminal {
  flex: 1 1 auto;
  margin: 0;
  overflow-y: auto;
  background: #0a0d12;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: #c9d4e0;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 200px;
}
.terminal .log-line { display: block; }
.terminal .log-sys { color: var(--text-3); font-style: italic; }
.terminal .log-phase { color: var(--accent-hov); }
.terminal .log-err { color: #f0888c; }
.terminal .log-ok { color: #7fd89a; }

/* ============================ MODAL ============================ */
.modal {
  position: fixed; z-index: 50;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, 94vw); max-height: 90vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: pop .16s cubic-bezier(.2,.7,.3,1);
}
@keyframes pop { from { transform: translate(-50%,-48%) scale(.97); opacity: .5; } to { transform: translate(-50%,-50%) scale(1); opacity: 1; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.modal-head h2 { font-size: 15px; }
.modal-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 11.5px; color: var(--text-3); }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.check {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg-1); cursor: pointer;
}
.check:hover { border-color: var(--border-2); }
.check input { width: auto; margin: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.form-error {
  font-size: 12.5px; color: var(--down); background: var(--down-bg);
  border: 1px solid #5a2528; border-radius: var(--r-sm); padding: 8px 10px;
}

.confirm-diff {
  background: var(--bg-1); border: 1px solid var(--prod-border);
  border-radius: var(--r-sm); padding: 12px 14px; font-size: 13px;
  line-height: 1.6;
}
.confirm-diff .from { color: var(--text-2); }
.confirm-diff .to { color: #f0a878; font-weight: 600; }
.confirm-warn {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #ffd7a0;
}
.lock-warn {
  background: var(--amber-bg); border: 1px solid #5a3a12; color: #ffd7a0;
  border-radius: var(--r-sm); padding: 10px 12px; font-size: 12.5px;
}
.lock-warn .mono { color: #fff; }

/* prod-only note */
.prod-hint { color: #f0a878; font-size: 11.5px; }

/* ============================ TOASTS ============================ */
.toasts {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; flex-direction: column; gap: 8px; max-width: 380px;
}
.toast {
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-left-width: 3px; border-radius: var(--r-sm);
  padding: 11px 14px; font-size: 13px; color: var(--text);
  box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 10px;
  animation: toastIn .2s ease;
}
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.leaving { animation: toastOut .2s ease forwards; }
@keyframes toastOut { to { transform: translateX(20px); opacity: 0; } }
.toast-ok    { border-left-color: var(--ok); }
.toast-error { border-left-color: var(--down); }
.toast-info  { border-left-color: var(--accent); }
.toast-warn  { border-left-color: var(--amber); }
.toast-msg { flex: 1 1 auto; min-width: 0; word-break: break-word; }
.toast-close {
  background: none; border: none; color: var(--text-3); cursor: pointer;
  font-size: 14px; padding: 0 2px; line-height: 1;
}
.toast-close:hover { color: var(--text); }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px) {
  .board-grid { grid-template-columns: 1fr; }
  .board-col-side { flex-direction: row; }
  .board-col-side .panel { flex: 1 1 0; }
}
@media (max-width: 760px) {
  .board-col-side { flex-direction: column; }
  .artifact-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .artifact-when { text-align: left; }
  .tabs { gap: 0; }
  .tab { padding: 7px 9px; }
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
  .actor-chip { display: none; }
  .form-grid, .checkbox-grid { grid-template-columns: 1fr; }
}
