/* ---------------------------------------------------------------------
   Browser Automation — Control Deck
   A dark instrument-panel theme: automation runs are treated as flights
   on a board, and their status colors are signal lamps, not decoration —
   the same amber/green/red/blue mapping used everywhere status appears.
   --------------------------------------------------------------------- */

:root {
  --void: #0a0d12;
  --panel: #12161d;
  --panel-raised: #171d26;
  --line: #232a35;
  --line-soft: #1b212a;
  --paper: #e7e3d8;
  --muted: #7c8798;
  --muted-dim: #4d5766;

  --amber: #e8a33d;
  --green: #4fb477;
  --red: #e2564f;
  --blue: #5b9bd9;
  --grey-signal: #57616e;
  /* Extra job-status hues — each status gets its own color rather than
     sharing one across several (see .s-* rules below). */
  --teal: #4fb4b0;     /* queued */
  --orange: #d97b3f;   /* retrying */
  --purple: #a684e8;   /* timeout */
  --rose: #c96b86;     /* interrupted */

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper);
  background:
    radial-gradient(circle at 15% 0%, rgba(91, 155, 217, 0.06), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(232, 163, 61, 0.05), transparent 40%),
    var(--void);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- Header ---- */
header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: linear-gradient(180deg, #0d1117, #0a0d12);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 10px; height: 10px; border-radius: 2px;
  background: var(--amber);
  box-shadow: 0 0 8px 1px rgba(232, 163, 61, 0.7);
  flex-shrink: 0;
}
header h1 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; letter-spacing: .02em;
  margin: 0; color: var(--paper);
  display: flex; align-items: baseline; gap: 10px;
}
.brand-sub {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dim);
}
header { flex: 0 0 auto; }

/* ---- Layout ----
   main is a fixed-height row filling the rest of the viewport; each section
   scrolls its own content independently instead of the whole page scrolling. */
main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 300px 1fr 1fr;
  gap: 1px;
  padding: 1px;
  background: var(--line);
  overflow: hidden;
}
@media (max-width: 980px) {
  /* Below the breakpoint, sections stack — revert to one normally-scrolling
     page instead of per-section scroll boxes (nested scroll areas are poor
     touch UX when everything is already a single column). */
  html, body { height: auto; overflow: visible; }
  body { display: block; }
  main { grid-template-columns: 1fr; height: auto; overflow: visible; }
  section { overflow-y: visible; max-height: none; }
}

section {
  background: var(--panel);
  padding: 16px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;    /* Firefox */
  -ms-overflow-style: none; /* legacy Edge */
}
section::-webkit-scrollbar { display: none; } /* Chrome/Safari/new Edge */
h2 {
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 600; margin: 0 0 14px;
  text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
  display: flex; align-items: center; gap: 9px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-soft);
}
.tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: var(--void); background: var(--muted-dim);
  padding: 1px 5px; border-radius: 2px; letter-spacing: 0;
}
.muted { color: var(--muted); }
.link {
  margin-left: auto; background: none; border: none; color: var(--blue);
  cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px;
  font-family: var(--font-mono);
}
.link:hover { color: var(--paper); }

.runs-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.status-filter-select {
  padding: 4px 8px; background: var(--void); border: 1px solid var(--line);
  border-radius: 3px; color: var(--muted); font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer;
}
.status-filter-select:focus { outline: none; border-color: var(--blue); }

/* ---- Automation roster ---- */
.search-box {
  width: 100%; margin-bottom: 12px; padding: 8px 10px 8px 28px;
  background: var(--void) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%237c8798" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat 9px center;
  border: 1px solid var(--line); border-radius: 3px; color: var(--paper);
  font-family: var(--font-mono); font-size: 13px;
}
.search-box::placeholder { color: var(--muted-dim); }
.search-box:focus { outline: none; border-color: var(--blue); }
.search-box::-webkit-search-cancel-button { filter: grayscale(1) opacity(0.6); cursor: pointer; }
.no-results { padding: 10px 2px; font-size: 12.5px; }

.auto-item {
  padding: 10px 11px; border: 1px solid var(--line); border-radius: 3px;
  margin-bottom: 7px; cursor: pointer; background: var(--panel-raised);
  border-left: 2px solid var(--muted-dim);
  transition: border-color .12s ease, background .12s ease;
}
.auto-item:hover { border-left-color: var(--blue); }
.auto-item.active { border-left-color: var(--amber); background: #1b2028; }
.auto-item .name {
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
}
.auto-item .desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

#run-form { margin: 14px 0 4px; }
#run-form label {
  display: block; font-size: 11px; margin: 10px 0 4px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
}
#run-form input {
  width: 100%; padding: 8px 9px; background: var(--void);
  border: 1px solid var(--line); border-radius: 3px; color: var(--paper);
  font-family: var(--font-mono); font-size: 13px;
}
#run-form input:focus { outline: none; border-color: var(--blue); }

.field-row.hidden { display: none; }

/* ---- Searchable "select" fields (vehicle_state/rto etc.) ---- */
.combo-wrap { position: relative; }
.combo-menu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  margin-top: 2px; max-height: 220px; overflow-y: auto;
  background: var(--panel-raised); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.combo-menu.hidden { display: none; }
.combo-menu .combo-item {
  padding: 7px 9px; font-size: 13px; font-family: var(--font-mono); color: var(--paper);
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.combo-menu .combo-item:hover { background: var(--line-soft); }
.combo-menu .combo-empty { padding: 7px 9px; font-size: 12px; color: var(--muted); }

/* ---- Toggle switches (continuation flags: then_activate/then_download/...) ---- */
.toggle-row {
  display: flex; align-items: center; gap: 9px;
  margin: 10px 0 4px; cursor: pointer;
}
.toggle { position: relative; display: inline-flex; flex-shrink: 0; width: 34px; height: 19px; }
#run-form .toggle input {
  position: absolute; inset: 0; z-index: 1; opacity: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; border: none; background: none; cursor: pointer;
}
.toggle-track {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: 10px;
  background: var(--void); border: 1px solid var(--line);
  transition: background .12s ease, border-color .12s ease;
}
.toggle-track::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px;
  border-radius: 50%; background: var(--muted-dim);
  transition: transform .12s ease, background .12s ease;
}
.toggle input:checked + .toggle-track { background: rgba(79, 180, 119, .12); border-color: var(--green); }
.toggle input:checked + .toggle-track::before { transform: translateX(15px); background: var(--green); }
.toggle input:disabled + .toggle-track { opacity: .35; }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--blue); outline-offset: 2px; }
.toggle-label {
  font-size: 12px; color: var(--paper); text-transform: none; letter-spacing: normal;
}
.field-row:has(.toggle-row) { margin-bottom: 2px; }

#run-form button {
  margin-top: 14px; width: 100%; padding: 9px; background: var(--amber);
  color: #241a05; font-weight: 600; border: none; border-radius: 3px;
  cursor: pointer; font-family: var(--font-display); letter-spacing: .03em;
  font-size: 13px;
}
#run-form button:hover { background: #f0b355; }
#run-form button:disabled { background: var(--muted-dim); color: var(--muted); cursor: default; }

/* ---- Runs board ---- */
#center { overflow-x: auto; }
table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 13px; font-family: var(--font-mono); }
th {
  text-align: left; padding: 7px 8px; font-size: 10.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted-dim); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line-soft); }
#runs td:nth-child(6) {
  max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--panel-raised); }
tbody tr.selected { background: #1b2430; box-shadow: inset 2px 0 0 var(--blue); }

/* ---- Signal lamps (status indicators, used everywhere status appears) ---- */
.lamp-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  text-transform: lowercase; color: var(--muted);
}
.lamp {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--grey-signal);
}
.s-pending .lamp { background: var(--grey-signal); }
.s-queued .lamp { background: var(--teal); box-shadow: 0 0 5px 1px rgba(79, 180, 176, .6); }
.s-running .lamp {
  background: var(--amber); box-shadow: 0 0 6px 1px rgba(232, 163, 61, .8);
  animation: pulse 1.4s ease-in-out infinite;
}
.s-retrying .lamp {
  background: var(--orange); box-shadow: 0 0 6px 1px rgba(217, 123, 63, .8);
  animation: pulse 1.4s ease-in-out infinite;
}
.s-awaiting_input .lamp { background: var(--blue); box-shadow: 0 0 6px 1px rgba(91, 155, 217, .7); }
.s-success .lamp { background: var(--green); box-shadow: 0 0 5px 1px rgba(79, 180, 119, .6); }
.s-failed .lamp { background: var(--red); box-shadow: 0 0 6px 1px rgba(226, 86, 79, .7); }
.s-timeout .lamp { background: var(--purple); box-shadow: 0 0 6px 1px rgba(166, 132, 232, .7); }
.s-interrupted .lamp { background: var(--rose); box-shadow: 0 0 6px 1px rgba(201, 107, 134, .7); }
/* Degraded: broker up but no worker consuming it — steady, not pulsing, since
   pulse elsewhere means "actively running," not "needs attention." */
.s-degraded .lamp { background: var(--amber); box-shadow: 0 0 6px 1px rgba(232, 163, 61, .8); }

.s-pending .lamp-label { color: var(--muted); }
.s-queued .lamp-label { color: var(--teal); }
.s-running .lamp-label { color: var(--amber); }
.s-retrying .lamp-label { color: var(--orange); }
.s-awaiting_input .lamp-label { color: var(--blue); }
.s-success .lamp-label { color: var(--green); }
.s-failed .lamp-label { color: var(--red); }
.s-timeout .lamp-label { color: var(--purple); }
.s-interrupted .lamp-label { color: var(--rose); }
.s-degraded .lamp-label { color: var(--amber); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
  .lamp { animation: none !important; }
}

#health { padding: 4px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel-raised); cursor: help; }

.header-right { display: flex; align-items: center; gap: 12px; }
#logout-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--panel-raised); color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em;
  cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
#logout-btn::before { content: "⏻"; font-size: 11px; line-height: 1; }
#logout-btn:hover { border-color: var(--red); color: var(--red); }

/* ---- Flight recorder: steps ticker ---- */
.detail-head { margin-bottom: 18px; font-size: 13px; }
.detail-head .muted { font-family: var(--font-mono); font-size: 11px; }

/* Vahan credential a run was checked out with (see app/session_cache.py). */
.account-pill {
  display: inline-block; padding: 1px 8px; border-radius: 3px;
  border: 1px solid var(--line); background: var(--panel-raised);
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}

/* Subsection headers inside the run-detail panel (Steps, AI calls, Fitment
   Certificate, Screenshot, Recording, Trace, Error) are appended as plain
   siblings with no wrapping container per section, so the divider itself
   carries the separation — margin alone reads the same as a layout bug. */
#detail h2 {
  margin: 26px 0 10px; padding: 14px 0 0;
  border-top: 1px solid var(--line); border-bottom: none;
}
#detail h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.steps {
  font-family: var(--font-mono); font-size: 12px; max-height: 280px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px;
  background: var(--void);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.steps::-webkit-scrollbar { display: none; }
.step { padding: 2px 0; border-left: 2px solid transparent; padding-left: 8px; margin-left: -1px; color: var(--paper); }
.step .seq { color: var(--muted-dim); }
.lvl-error { color: var(--red); border-left-color: var(--red); }
.lvl-warn { color: var(--amber); border-left-color: var(--amber); }
.lvl-success { color: var(--green); border-left-color: var(--green); }

.tok { font-size: 12px; font-family: var(--font-mono); color: var(--muted); }
.tok table { margin-top: 8px; font-size: 11.5px; }
.tok th { color: var(--muted-dim); }

.wait-banner {
  display: flex; align-items: center; gap: 9px;
  margin: 4px 0 22px; padding: 10px 14px;
  background: rgba(232, 163, 61, .12); border: 1px solid rgba(232, 163, 61, .4);
  border-left: 3px solid var(--amber); border-radius: 3px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--amber);
}
.wait-dot {
  width: 8px; height: 8px; flex: none; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 6px 1px rgba(232, 163, 61, .8);
  animation: pulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .wait-dot { animation: none; }
}

.retry {
  margin: 4px 0 22px; padding: 8px 14px; background: var(--red); color: #2a0d0b;
  font-weight: 600; border: none; border-radius: 3px; cursor: pointer;
  font-family: var(--font-display); font-size: 13px;
}
.retry:hover { background: #ea6f68; }

.input-form { margin: 4px 0 22px; padding: 12px; background: var(--void); border: 1px solid var(--line); border-radius: 3px; }
.input-form label { display: block; font-size: 12px; margin: 0 0 8px; color: var(--blue); }
.input-timer { font-family: var(--font-mono); font-size: 12px; margin: 0 0 8px; }
.input-form .row { display: flex; gap: 8px; }
.input-form input {
  flex: 1; padding: 8px 9px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 3px; color: var(--paper); font-family: var(--font-mono); font-size: 13px;
}
.input-form input:focus { outline: none; border-color: var(--blue); }
.input-form button { padding: 8px 14px; border: none; border-radius: 3px; cursor: pointer; font-weight: 600; font-family: var(--font-display); font-size: 13px; }
.input-form button:disabled { cursor: default; opacity: .65; }
.input-form .submit { background: var(--blue); color: #071824; }
.input-form .submit:hover { background: #79b1e3; }
.input-form .cancel { background: var(--panel-raised); color: var(--muted); border: 1px solid var(--line); }
.input-form .cancel:hover { color: var(--paper); }

.btn-spinner {
  display: inline-block; width: 11px; height: 11px; margin-right: 7px; vertical-align: -1px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation: none; }
}

.err {
  white-space: pre-wrap; background: rgba(226, 86, 79, .08); border: 1px solid rgba(226, 86, 79, .35);
  padding: 10px; border-radius: 3px; font-size: 12px; font-family: var(--font-mono); color: #f3a29e;
}

/* ---- Evidence: screenshot / video / trace / certificate ---- */
.shot-link { display: block; margin-top: 4px; }
.shot, .recording, .live-shot {
  max-width: 100%; border: 1px solid var(--line); border-radius: 3px; display: block; background: #000;
}
.trace-link, .cert-link { color: var(--blue); font-family: var(--font-mono); }
.trace-link:hover, .cert-link:hover { color: var(--paper); }

.file-download-link { color: var(--blue); text-decoration: none; }
.file-download-link:hover { color: var(--paper); }

/* ---- View tabs (Automations / Users — Users only shown to admins) ---- */
#view-tabs {
  flex: 0 0 auto; display: flex; gap: 2px; padding: 0 22px;
  background: #0d1117; border-bottom: 1px solid var(--line);
}
.view-tab {
  padding: 10px 16px; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--muted); font-family: var(--font-display); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
}
.view-tab:hover { color: var(--paper); }
.view-tab.active { color: var(--paper); border-bottom-color: var(--amber); }

/* ---- Users panel (admin only) ---- */
#users-view {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; background: var(--panel);
  padding: 20px 26px;
  scrollbar-width: none; -ms-overflow-style: none;
}
#users-view::-webkit-scrollbar { display: none; }

.users-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.users-toolbar h2 { margin: 0; padding: 0; border: none; }
.toolbar-add-btn {
  padding: 7px 14px; background: var(--amber); color: #241a05; font-weight: 600;
  border: none; border-radius: 3px; cursor: pointer; font-family: var(--font-display);
  font-size: 12.5px; letter-spacing: .02em; transition: background .12s ease;
}
.toolbar-add-btn:hover { background: #f0b355; }

.users-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.users-table th {
  text-align: left; padding: 7px 10px; font-size: 10.5px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted-dim); font-weight: 500;
  border-bottom: 1px solid var(--line); font-family: var(--font-mono);
}
.users-table td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.users-table tr:hover td { background: var(--panel-raised); }
.users-table .automations-cell { color: var(--muted); font-size: 12px; }
.users-table .row-actions { text-align: right; white-space: nowrap; }
.users-table .row-actions button {
  background: none; border: 1px solid var(--line); border-radius: 3px; color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; padding: 3px 9px; margin-left: 6px; cursor: pointer;
}
.users-table .row-actions button:hover { color: var(--paper); border-color: var(--blue); }
.users-table .row-actions .danger:hover { color: var(--red); border-color: var(--red); }

.role-pill {
  display: inline-block; padding: 1px 9px; border-radius: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em;
}
.role-pill.admin { background: rgba(232, 163, 61, .15); color: var(--amber); border: 1px solid rgba(232, 163, 61, .4); }
.role-pill.emp { background: rgba(91, 155, 217, .12); color: var(--blue); border: 1px solid rgba(91, 155, 217, .35); }

/* Vahan account active/disabled indicator (app/static/app.js::renderVahanAccountsPanel). */
.status-pill {
  display: inline-block; padding: 1px 9px; border-radius: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em;
}
.status-pill.active { background: rgba(79, 180, 119, .12); color: var(--green); border: 1px solid rgba(79, 180, 119, .35); }
.status-pill.disabled, .status-pill.none { background: rgba(124, 135, 152, .12); color: var(--muted); border: 1px solid rgba(124, 135, 152, .35); }
/* Session column (app/session_cache.py::get_status): in_use = a job currently
   holds this credential; cached = idle but has a saved login to reuse. */
.status-pill.in_use { background: rgba(232, 163, 61, .15); color: var(--amber); border: 1px solid rgba(232, 163, 61, .4); }
.status-pill.cached { background: rgba(91, 155, 217, .12); color: var(--blue); border: 1px solid rgba(91, 155, 217, .35); }

/* Modal-ish inline panel for create/edit user, appended above the table. */
.user-form {
  margin-bottom: 18px; padding: 16px 18px; background: var(--panel-raised);
  border: 1px solid var(--line); border-radius: 4px; max-width: 420px;
}
.user-form label {
  display: block; font-size: 11px; margin: 12px 0 4px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.user-form label:first-child { margin-top: 0; }
.user-form input[type="text"], .user-form input[type="password"], .user-form select {
  width: 100%; padding: 8px 9px; background: var(--void);
  border: 1px solid var(--line); border-radius: 3px; color: var(--paper);
  font-family: var(--font-mono); font-size: 13px;
}
.user-form input:focus, .user-form select:focus { outline: none; border-color: var(--blue); }
.user-form .automation-checks {
  display: flex; flex-direction: column; gap: 6px; margin-top: 4px;
  max-height: 180px; overflow-y: auto; padding: 8px; background: var(--void);
  border: 1px solid var(--line); border-radius: 3px;
}
.user-form .automation-checks label {
  display: flex; align-items: center; gap: 8px; margin: 0; text-transform: none;
  font-size: 12.5px; color: var(--paper); letter-spacing: normal; cursor: pointer;
}
.user-form .form-actions { display: flex; gap: 8px; margin-top: 16px; }
.user-form .form-actions button {
  padding: 8px 16px; border: none; border-radius: 3px; cursor: pointer;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
}
.user-form .form-actions .save { background: var(--amber); color: #241a05; }
.user-form .form-actions .save:hover { background: #f0b355; }
.user-form .form-actions .cancel { background: none; border: 1px solid var(--line); color: var(--muted); }
.user-form .form-actions .cancel:hover { color: var(--paper); }
.user-form .form-error {
  margin-top: 12px; padding: 8px 10px; border-radius: 3px;
  background: rgba(226, 86, 79, .12); border: 1px solid rgba(226, 86, 79, .4);
  color: var(--red); font-size: 12px; display: none;
}
