/* USAC components — Night Forge */

/* Cards */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.25rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-soft);
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--signal), transparent 85%);
  opacity: 0.7;
}
.card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}
.card-head h3 { margin: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

/* Status pill (directory etc.) */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  background: var(--night);
  color: var(--text-muted);
}
.status-pill::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--text-faint);
}
.status-pill.is-ok { color: var(--ok); border-color: rgba(76, 186, 143, 0.28); background: rgba(76, 186, 143, 0.08); }
.status-pill.is-ok::before { background: var(--ok); }
.status-pill.is-warn { color: var(--warning); border-color: rgba(224, 138, 60, 0.3); background: rgba(224, 138, 60, 0.08); }
.status-pill.is-warn::before { background: var(--warning); }
.status-pill.is-bad { color: var(--critical); border-color: rgba(232, 93, 76, 0.3); background: rgba(232, 93, 76, 0.08); }
.status-pill.is-bad::before { background: var(--critical); }
.status-pill.is-off::before { background: var(--text-faint); }

/* KPI strip */
.grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.kpi {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.kpi::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--signal), transparent 70%);
  opacity: 0.55;
}
.kpi-icon {
  display: none;
}
.kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.kpi-value {
  margin-top: 0.25rem;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.1;
}
.kpi-sub {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* Buttons */
button, .btn {
  background: var(--signal);
  color: #0a0b0d;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background var(--motion) ease, color var(--motion) ease, border-color var(--motion) ease, transform var(--motion) ease;
}
button:hover, .btn:hover { background: var(--signal-hover); color: #0a0b0d; }
button:active, .btn:active { transform: translateY(1px); }
button.secondary, .btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
button.secondary:hover, .btn.secondary:hover {
  background: var(--surface-2);
  border-color: var(--signal);
  color: var(--signal-hover);
}
button.danger, .btn.danger {
  background: rgba(232, 93, 76, 0.14);
  color: var(--critical);
  border: 1px solid rgba(232, 93, 76, 0.35);
}
button.danger:hover, .btn.danger:hover {
  background: rgba(232, 93, 76, 0.26);
}
button.accent { background: var(--signal); color: #0a0b0d; }
button.accent:hover { background: var(--signal-hover); }
button.primary { background: var(--signal); color: #0a0b0d; width: auto; }

.icon-btn {
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  border-radius: var(--radius-sm) !important;
}
button.icon-btn.secondary {
  background: transparent !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--line);
}
button.icon-btn.secondary:hover {
  background: var(--surface-2) !important;
  color: var(--text) !important;
}

/* Forms */
.field {
  display: grid;
  gap: 0.35rem;
}
.field > span,
.field > label,
label.field-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.form-grid {
  display: grid;
  gap: 0.85rem 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.check-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--signal);
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

select,
input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
textarea {
  width: 100%;
  background: var(--night);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color var(--motion) ease, box-shadow var(--motion) ease;
}
select:hover,
input:hover,
textarea:hover {
  border-color: rgba(230, 226, 218, 0.22);
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-dim);
}
label { color: var(--text-muted); font-size: 0.75rem; font-weight: 600; }
label > select,
label > input,
label > textarea {
  display: block;
  margin-top: 0.3rem;
}
ul { margin: 0.25rem 0 0; padding-left: 1.15rem; color: var(--text-muted); }
li { margin: 0.35rem 0; }

.activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}
.activity-filters label { display: grid; gap: 0.25rem; }
.activity-filter-actions { display: flex; gap: 0.45rem; align-items: center; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--text-faint);
  font-weight: 650;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(255, 255, 255, 0.018); }
tbody tr.is-selected td { background: var(--signal-dim); }
td.mono, .mono { font-family: var(--mono); }

/* Severity */
.sev {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.sev::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--text-faint);
}
.sev-critical::before { background: var(--critical); }
.sev-high::before { background: var(--high); }
.sev-medium::before { background: var(--medium); }
.sev-low::before, .sev-info::before { background: var(--low); }

/* Module tiles */
.module-tile {
  display: flex;
  min-height: 4.5rem;
  width: 100%;
  overflow: hidden;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color var(--motion) ease, background var(--motion) ease;
}
.module-tile:hover {
  background: var(--surface-2);
  border-color: var(--line-hot);
}
.module-tile .bar {
  width: 2px;
  flex-shrink: 0;
  background: var(--signal);
}
.module-tile .body {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
}
.module-tile .icon { display: none; }
.module-tile .title {
  margin: 0;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.module-tile .desc {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
}

/* Menus / dialogs */
.row-menu { position: relative; display: inline-flex; justify-content: flex-end; }
.row-menu-btn {
  width: 2rem;
  height: 2rem;
  padding: 0 !important;
  border-radius: var(--radius-sm) !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  border: 0;
}
.row-menu-btn:hover,
.row-menu-btn[aria-expanded="true"] {
  background: var(--surface-2) !important;
  color: var(--text) !important;
}
.row-menu-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 40;
  min-width: 11rem;
  padding: 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--elevated);
  box-shadow: var(--shadow);
}
.row-menu.is-open .row-menu-panel { display: block; }
.row-menu-panel button,
.row-menu-panel .row-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent !important;
  color: var(--text) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  padding: 0.5rem 0.65rem !important;
  border-radius: var(--radius-sm) !important;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.row-menu-panel button:hover,
.row-menu-panel .row-menu-item:hover { background: var(--surface-3) !important; }
.row-menu-panel button.is-danger,
.row-menu-panel .row-menu-item.is-danger { color: var(--critical) !important; }

.usac-dialog {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0;
  max-width: 26rem;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow);
  background: var(--surface);
  color: var(--text);
}
.usac-dialog::backdrop { background: rgba(8, 9, 11, 0.72); }
.usac-dialog form, .usac-dialog .usac-dialog-body {
  padding: 1.15rem 1.2rem 1.2rem;
  display: grid;
  gap: 0.75rem;
}
.usac-dialog h3 { margin: 0; font-size: 1.05rem; color: var(--text); }
.usac-dialog label { display: block; }
.usac-dialog input, .usac-dialog select { width: 100%; margin-top: 0.25rem; box-sizing: border-box; }
.usac-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.usac-profile-row { display: grid; gap: 0.15rem; }
.usac-profile-row .value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

/* Event ribbon */
.ribbon {
  display: flex;
  gap: 2px;
  align-items: stretch;
  height: 3.25rem;
  margin: 0.35rem 0 1.15rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.ribbon-bar {
  flex: 1 1 0;
  min-width: 3px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--surface-3);
  border-radius: 1px;
  transition: filter 0.12s ease, transform 0.12s ease;
}
.ribbon-bar:hover { filter: brightness(1.2); transform: scaleY(1.08); }
.ribbon-bar.sev-critical { background: var(--critical); }
.ribbon-bar.sev-high { background: var(--high); }
.ribbon-bar.sev-medium { background: var(--medium); }
.ribbon-bar.sev-low,
.ribbon-bar.sev-info { background: var(--low); }
.ribbon-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.8125rem;
}

/* Split workspace */
.split {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
  .split { grid-template-columns: 1.35fr 1fr; }
  .split.split-alerts { grid-template-columns: 1.2fr 0.9fr; }
}
.live-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 22rem;
  overflow: auto;
}
.live-feed li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.55rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  font-size: 0.8125rem;
}
.live-feed time {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}
.live-feed .title { color: var(--text); font-weight: 550; }
.live-feed .meta { color: var(--text-muted); font-size: 0.75rem; margin-top: 0.1rem; }

.decision-card {
  border: 1px solid var(--line);
  background: var(--night);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.65rem;
}
.decision-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 650;
}
.decision-card .impact {
  margin: 0.45rem 0 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
}
.decision-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }

/* Alert list */
.alert-list { list-style: none; margin: 0; padding: 0; }
.alert-list li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.alert-row {
  display: grid;
  grid-template-columns: 0.7rem 1fr auto;
  gap: 0.7rem;
  align-items: start;
  width: 100%;
  padding: 0.75rem 0.35rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  border-radius: 0;
}
.alert-row:hover { background: rgba(255,255,255,0.02); }
.alert-row.is-active { background: var(--signal-dim); }
.alert-dot {
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--text-faint);
}
.alert-dot.critical { background: var(--critical); }
.alert-dot.high { background: var(--high); }
.alert-dot.medium { background: var(--medium); }
.alert-dot.low, .alert-dot.info { background: var(--low); }
.alert-title { font-weight: 600; color: var(--text); }
.alert-meta { color: var(--text-muted); font-size: 0.75rem; margin-top: 0.15rem; }
.alert-time {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  white-space: nowrap;
}
.detail-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.875rem;
}
.detail-title { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 700; }
.detail-log {
  margin-top: 0.85rem;
  padding: 0.75rem;
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 12rem;
  overflow: auto;
}

/* Command palette */
.cmdk {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0;
  width: min(36rem, calc(100% - 2rem));
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.cmdk::backdrop { background: rgba(8, 9, 11, 0.62); }
.cmdk-input {
  width: 100%;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0.9rem 1rem !important;
  font-size: 0.95rem !important;
  box-shadow: none !important;
}
.cmdk-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  max-height: 18rem;
  overflow: auto;
}
.cmdk-list a, .cmdk-list button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  background: transparent !important;
  color: var(--text) !important;
  border: 0;
  text-align: left;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.cmdk-list a:hover, .cmdk-list button:hover,
.cmdk-list a.is-active, .cmdk-list button.is-active {
  background: var(--signal-dim) !important;
  color: var(--signal-hover) !important;
}
.cmdk-hint { color: var(--text-faint); font-size: 0.72rem; font-family: var(--mono); }

/* Account chip */
.crm-avatar, .usac-avatar {
  display: flex;
  height: 1.75rem;
  width: 1.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--signal-dim);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--signal);
}
.crm-account-btn, .usac-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 2rem;
  padding: 0 0.4rem 0 0.15rem !important;
  border: 0;
  border-radius: var(--radius-sm) !important;
  background: transparent !important;
  color: var(--text) !important;
  cursor: pointer;
  font-family: inherit;
}
.crm-account-btn:hover, .usac-account-btn:hover { background: var(--surface-2) !important; }
.crm-user-name { display: none; font-size: 0.8125rem; font-weight: 500; }
@media (min-width: 900px) { .crm-user-name { display: block; } }

/* Flash / toast */
.toast-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: grid;
  gap: 0.45rem;
}
.toast {
  padding: 0.65rem 0.85rem;
  background: var(--elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.8125rem;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .ribbon-bar:hover { transform: none; }
  button:active, .btn:active { transform: none; }
}

/* Steps */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0.35rem 0;
}
.step {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--text-muted);
}
.step-arrow { color: var(--text-faint); font-size: 0.7rem; }

/* Flash messages in content */
p.ok, p.warn, p.bad {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 0.8125rem;
}
p.ok { background: rgba(76, 186, 143, 0.08); border-color: rgba(76, 186, 143, 0.25); }
p.warn { background: rgba(224, 138, 60, 0.08); border-color: rgba(224, 138, 60, 0.28); }
p.bad { background: rgba(232, 93, 76, 0.08); border-color: rgba(232, 93, 76, 0.28); }

/* ── Simple home (task-first, not SOC dashboard) ── */
.simple-home {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.5rem 0 2.5rem;
}
.simple-hero { margin-bottom: 1.35rem; }
.simple-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}
.simple-title {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text);
}
.simple-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 34rem;
}

.simple-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(224, 138, 60, 0.45);
  background: linear-gradient(105deg, rgba(224, 138, 60, 0.16), rgba(20, 23, 28, 0.4));
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--motion) ease, transform var(--motion) ease;
}
.simple-alert:hover {
  border-color: var(--signal);
  transform: translateY(-1px);
}
.simple-alert strong { display: block; font-size: 1rem; margin-bottom: 0.15rem; }
.simple-alert span { color: var(--text-muted); font-size: 0.875rem; }
.simple-alert-cta {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--signal-hover);
  font-size: 0.95rem;
}

.simple-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.simple-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1.2rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(230, 226, 218, 0.14);
  background: #161a21;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: border-color var(--motion) ease, background var(--motion) ease, transform var(--motion) ease;
}
.simple-step:hover {
  border-color: rgba(212, 137, 74, 0.45);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.simple-step.is-urgent {
  border-color: rgba(224, 138, 60, 0.55);
  box-shadow: inset 3px 0 0 var(--signal);
}
.simple-num {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--signal-dim);
  color: var(--signal);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
}
.simple-step h2 {
  margin: 0 0 0.2rem;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.simple-step p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-muted);
}
.simple-meta {
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--text-faint);
}
.simple-go {
  font-size: 1.25rem;
  color: var(--signal);
  opacity: 0.85;
}
.simple-side {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-faint);
}
.simple-side a { color: var(--text-muted); text-decoration: none; }
.simple-side a:hover { color: var(--signal); }
.simple-side .dot { margin: 0 0.35rem; opacity: 0.5; }

body.simple-ui .usac-content {
  display: flex;
  flex-direction: column;
}
@media (max-width: 640px) {
  .simple-alert { flex-direction: column; align-items: flex-start; }
  .simple-step { grid-template-columns: auto 1fr; }
  .simple-go { display: none; }
}

/* ── Dash home: Do this next + attention queue ── */
.dash-home {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0.25rem 0 2.5rem;
}
.dash-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.35rem;
}
.dash-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}
.dash-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.dash-stats {
  display: flex;
  gap: 0.55rem;
}
.dash-stat {
  min-width: 4.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.dash-stat .n {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}
.dash-stat .l {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dash-sec-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.dash-next { margin-bottom: 1.35rem; }
.dash-next-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.2rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #161a21;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}
.dash-next-card.is-urgent {
  border-color: rgba(212, 137, 74, 0.55);
  box-shadow: inset 3px 0 0 var(--signal), 0 12px 32px rgba(0, 0, 0, 0.32);
  background: linear-gradient(105deg, rgba(212, 137, 74, 0.12), #161a21 42%);
}
.dash-next-card.is-ok {
  border-color: rgba(76, 186, 143, 0.35);
  box-shadow: inset 3px 0 0 var(--ok), 0 12px 32px rgba(0, 0, 0, 0.28);
}
.dash-why {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--signal);
  letter-spacing: 0.02em;
}
.dash-next-card.is-ok .dash-why { color: var(--ok); }
.dash-next-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.dash-detail {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 34rem;
}
.dash-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.btn.dash-primary,
a.btn.dash-primary {
  background: var(--signal);
  color: #0a0b0d;
  border: none;
  font-weight: 750;
  padding: 0.65rem 1.1rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn.dash-primary:hover,
a.btn.dash-primary:hover {
  background: var(--signal-hover);
  color: #0a0b0d;
}

.dash-queue { margin-bottom: 1.5rem; }
.dash-queue-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.dash-queue-head .dash-sec-label { margin: 0; }
.dash-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--signal-dim);
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dash-queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.dash-queue-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.dash-queue-list li:last-child { border-bottom: none; }
.dash-queue-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  min-width: 0;
}
.dash-queue-main strong { color: var(--text); }
.dash-pill {
  font-size: 0.72rem;
  font-family: var(--mono);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(224, 138, 60, 0.14);
  color: var(--high);
}
.dash-row-cta {
  flex-shrink: 0;
  font-size: 0.8125rem;
  padding: 0.4rem 0.7rem;
}

.dash-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.dash-shortcuts a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--motion) ease, background var(--motion) ease;
}
.dash-shortcuts a:hover {
  border-color: rgba(212, 137, 74, 0.4);
  background: var(--surface-2);
}
.dash-shortcuts span { font-weight: 650; font-size: 0.9rem; }
.dash-shortcuts small { color: var(--text-faint); font-size: 0.72rem; line-height: 1.3; }

@media (max-width: 720px) {
  .dash-stats { width: 100%; }
  .dash-stat { flex: 1; }
  .dash-shortcuts { grid-template-columns: 1fr 1fr; }
  .dash-queue-list li { flex-direction: column; align-items: flex-start; }
}
