/* ═══════════════════════════════════════════════
   MADÔ ENGENHARIA — Admin CSS
   Dark-first · Light via [data-theme="light"]
   ═══════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg:        #0e0e0e;
  --bg-2:      #161616;
  --bg-3:      #1e1e1e;
  --surface:   #1a1a1a;
  --surface-2: #222222;
  --line:      #2a2a2a;
  --line-2:    #333333;
  --text:      #e8e8e8;
  --text-mute: #888888;
  --text-dim:  #555555;
  --gold:      #C6A04A;
  --gold-dim:  rgba(198,160,74,.12);
  --red:       #A8141A;
  --red-dim:   rgba(168,20,26,.15);
  --green:     #27ae60;
  --sidebar-w: 220px;
  --topbar-h:  52px;
  --r-sm:      4px;
  --r-md:      6px;
  --r-lg:      10px;
  --shadow:    0 2px 12px rgba(0,0,0,.4);
}

[data-theme="light"] {
  --bg:        #f4f3ef;
  --bg-2:      #eceae4;
  --bg-3:      #e4e2dc;
  --surface:   #ffffff;
  --surface-2: #f8f7f3;
  --line:      #d8d5cc;
  --line-2:    #ccc9bf;
  --text:      #1a1a1a;
  --text-mute: #666666;
  --text-dim:  #aaaaaa;
  --gold:      #9e7d2e;
  --gold-dim:  rgba(158,125,46,.10);
  --red:       #A8141A;
  --red-dim:   rgba(168,20,26,.10);
  --shadow:    0 2px 12px rgba(0,0,0,.10);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
html::-webkit-scrollbar { width: 3px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
html::-webkit-scrollbar-thumb:hover { background: rgba(198,160,74,.4); }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Typography helpers ── */
.mono  { font-family: 'JetBrains Mono', monospace; }
.dim   { color: var(--text-dim); }
.muted { color: var(--text-mute); }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
}
.lede { color: var(--text-mute); font-size: 13px; }
.crumb { display: block; margin-bottom: 2px; }
.label { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--text-mute); }

/* ── Layout shell ── */
.shell {
  display: flex;
  min-height: 100vh;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-w);
  transition: margin-left .2s ease;
}

.shell.sidebar-collapsed .main,
html.sidebar-collapsed .main { margin-left: 52px; }

.content {
  flex: 1;
  padding: 28px 32px 48px;
  width: 100%;
  min-width: 0;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: width .2s ease;
  overflow: hidden;
}

.shell.sidebar-collapsed .sidebar,
html.sidebar-collapsed .sidebar { width: 52px; }
.sidebar-logo { transition: opacity .2s ease, width .2s ease; }
.shell.sidebar-collapsed .sidebar-logo,
html.sidebar-collapsed .sidebar-logo { opacity: 0; width: 0; overflow: hidden; }

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  cursor: pointer;
  box-sizing: border-box;
}

.sidebar-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
}

#sidebar-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-mute);
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
}
#sidebar-toggle:hover { color: var(--text); border-color: var(--gold); }
.shell.sidebar-collapsed #sidebar-toggle,
html.sidebar-collapsed #sidebar-toggle { margin: 0 auto; }

.nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.nav::-webkit-scrollbar { width: 3px; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
.nav::-webkit-scrollbar-thumb:hover { background: rgba(198,160,74,.4); }

.nav-group { padding: 4px 0; }

.nav-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 14px 4px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .15s;
}
.shell.sidebar-collapsed .nav-label,
html.sidebar-collapsed .nav-label { opacity: 0; }

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  color: var(--text-mute);
  font-size: 13px;
  font-weight: 500;
  border-left: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  transition: color .15s, background .15s, border-color .15s;
}
.nav a svg { flex-shrink: 0; width: 15px; height: 15px; }
.nav a:hover { color: var(--text); background: var(--gold-dim); text-decoration: none; }
.nav a.active { color: var(--gold); border-left-color: var(--gold); background: var(--gold-dim); }
.nav-text { transition: opacity .15s; white-space: nowrap; overflow: hidden; }
.shell.sidebar-collapsed .nav-text,
html.sidebar-collapsed .nav-text { opacity: 0; }

.sidebar-footer {
  border-top: 1px solid var(--line);
  padding: 12px;
  overflow: hidden;
}

/* Carimbo */
.carimbo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: opacity .15s;
}
.shell.sidebar-collapsed .carimbo,
html.sidebar-collapsed .carimbo { opacity: 0; }
.carimbo-header {
  background: var(--gold-dim);
  border-bottom: 1px solid var(--line);
  padding: 3px 6px;
  letter-spacing: .16em;
  color: var(--gold);
  font-size: 7px;
  text-align: center;
}
.carimbo-grid { display: grid; grid-template-columns: 1fr 1fr; }
.carimbo-cell {
  display: flex;
  flex-direction: column;
  padding: 4px 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.carimbo-cell:nth-child(even) { border-right: none; }
.carimbo-label { color: var(--text-dim); letter-spacing: .12em; font-size: 6.5px; }
.carimbo-val { color: var(--text-mute); letter-spacing: .08em; }
.carimbo-status {
  padding: 3px 6px;
  text-align: center;
  color: var(--text-dim);
  letter-spacing: .1em;
  font-size: 7px;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}

/* ── Topbar ── */
.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 0 20px;
  z-index: 100;
  flex-shrink: 0;
}

.topbar-title h1 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}

.topbar-spacer { flex: 1; }

#mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-mute);
  cursor: pointer;
  padding: 5px 7px;
  align-items: center;
}

.theme-field {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0 8px;
  height: 30px;
  cursor: pointer;
  user-select: none;
}
.theme-field:hover { border-color: var(--gold); }
.theme-field-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--text-dim);
}
#theme-toggle {
  background: none;
  border: none;
  color: var(--text-mute);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}
#theme-toggle:hover { color: var(--gold); }

/* Responsável Técnico block */
.resp-tec {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  height: 30px;
}
.resp-tec-body {
  display: flex;
  align-items: stretch;
  height: 100%;
}
.resp-tec-visto {
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
  border-right: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}
.resp-tec-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8px;
  min-width: 0;
}
.resp-tec-nome {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.resp-tec-cargo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  letter-spacing: .1em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}
button.logout {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  transition: color .15s, background .15s;
}
button.logout:hover { color: var(--red); background: var(--red-dim); }

/* ── Page head ── */
.page-head {
  margin-bottom: 32px;
  padding-bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.page-head h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 4px 0 2px;
}
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; flex-wrap: wrap; border-top: none; padding-top: 0; margin-top: 0; }

/* ── Grid ── */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ── Panel ── */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.panel-eng { border-color: var(--line); }

/* ── Stat grid ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px 14px;
  position: relative;
  overflow: hidden;
  transition: border-color .15s;
}
.stat:hover { border-color: var(--gold); }

.stat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}
.stat-icon { width: 18px; height: 18px; color: var(--gold); opacity: .6; flex-shrink: 0; }
.stat-rule {
  height: 1px;
  background: var(--line);
  margin-bottom: 10px;
}
.stat .value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-value-dot { font-size: 28px; color: var(--green); }
.stat .meta { font-size: 11px; color: var(--text-mute); }
.stat .meta strong { color: var(--text); }
.stat-ref {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: .14em;
  color: var(--text-dim);
  opacity: .5;
}

/* ── Eng-table ── */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.data th {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td {
  padding: 10px 12px;
  border-bottom: 1px dashed var(--line);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: none; }
table.data th.right,
table.data td.right { text-align: right; }

.eng-table th { border-bottom-style: dashed; }
.eng-table .eng-row:hover td { background: var(--gold-dim); }
.eng-idx {
  width: 36px;
  color: var(--text-dim);
}
.eng-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--text-dim);
}
.eng-sub {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 1px;
}

/* Eng-status badges */
.eng-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .12em;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  white-space: nowrap;
}
.eng-status-ok   { color: var(--green); border-color: rgba(39,174,96,.3); background: rgba(39,174,96,.08); }
.eng-status-dim  { color: var(--text-dim); border-color: var(--line); background: var(--bg-3); }
.eng-status-warn { color: var(--gold); border-color: rgba(198,160,74,.3); background: var(--gold-dim); }
.eng-status-err  { color: var(--red); border-color: rgba(192,57,43,.3); background: var(--red-dim); }

/* Dashboard projects list */
.dash-projects { display: flex; flex-direction: column; }
.dash-proj-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.dash-proj-row:last-child { border-bottom: none; }
.dash-proj-row:hover { background: var(--surface-2); }
.dash-proj-thumb {
  width: 48px;
  height: 36px;
  border-radius: 3px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
}
.dash-proj-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-proj-info { flex: 1; min-width: 0; }
.dash-proj-title { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.dash-proj-meta { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-proj-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 860px) {
  .dash-proj-row { padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
  .dash-proj-meta { white-space: normal; }
  .dash-proj-right { gap: 6px; }
  .dash-proj-right .btn { padding: 4px 8px; font-size: 10px; }
}

@media (max-width: 720px) {
  .dash-proj-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-areas: "thumb info" "right right";
    gap: 8px 10px;
    align-items: start;
  }
  .dash-proj-thumb { grid-area: thumb; width: 40px; height: 32px; }
  .dash-proj-info  { grid-area: info; }
  .dash-proj-right { grid-area: right; justify-content: flex-start; flex-wrap: wrap; gap: 6px; padding-top: 4px; border-top: 1px dashed var(--line); margin-top: 4px; }
  .dash-proj-title { flex-wrap: wrap; }
  .dash-proj-title strong { font-size: 12px !important; }
  .dash-proj-meta { font-size: 9.5px; line-height: 1.4; }
}
.eng-status-gold { background: rgba(198,160,74,.15); color: var(--gold); border-color: rgba(198,160,74,.3); }

/* Eng panel footer */
.eng-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 1px dashed var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: var(--text-dim);
  letter-spacing: .12em;
}

/* Eng empty state */
.eng-empty { padding: 8px 0; }
.eng-empty-rule {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0, var(--line) 6px, transparent 6px, transparent 10px);
  margin: 0 12px;
}
.eng-empty-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 0;
}
.eng-empty-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--text-dim);
}
.eng-empty-sub { font-size: 11px; color: var(--text-dim); }

/* Eng-link */
.eng-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--gold);
}

/* Audit mini rows */
.audit-row-mini {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px dashed var(--line);
}
.audit-row-mini:last-child { border-bottom: none; }

/* ── Forms / Fields ── */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: .02em;
}
.field input,
.field select,
.field textarea {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  padding: 8px 10px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,160,74,.12); }
.field textarea { resize: vertical; min-height: 80px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.field textarea::-webkit-scrollbar { width: 8px; }
.field textarea::-webkit-scrollbar-track { background: transparent; }
.field textarea::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
.field textarea::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
.field textarea::-webkit-resizer { background: transparent; }
.field input[readonly] { opacity: .7; cursor: default; }
.field input[type=number]::-webkit-inner-spin-button,
.field input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* Tag input (Enter ou ; fecha a tag) */
.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 7px 8px;
  transition: border-color .15s, box-shadow .15s;
}
.tag-input-wrap:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,160,74,.12); }
.tag-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red-dim);
  border: 1px solid rgba(168,20,26,.3);
  color: var(--red);
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 6px 3px 10px;
  white-space: nowrap;
}
.tag-pill-x {
  background: none;
  border: none;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 50%;
  opacity: .7;
}
.tag-pill-x:hover { opacity: 1; background: rgba(168,20,26,.15); }
.tag-typer {
  flex: 1;
  min-width: 120px;
  border: none !important;
  background: transparent !important;
  padding: 4px !important;
  box-shadow: none !important;
}

/* Mini tag pills — usados na listagem */
.tag-pills-mini { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tag-pill-mini {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: .04em;
  background: var(--red-dim);
  border: 1px solid rgba(168,20,26,.3);
  color: var(--red);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.hint { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ── Custom checkboxes (global) ── */
input[type=checkbox]:not(.usr-toggle-input) {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  min-width: 15px;
  border: 1.5px solid var(--line-2);
  border-radius: 3px;
  background: var(--surface-2);
  cursor: pointer;
  position: relative;
  transition: border-color .15s, background .15s;
  vertical-align: middle;
  flex-shrink: 0;
}
input[type=checkbox]:not(.usr-toggle-input):hover {
  border-color: var(--gold);
}
input[type=checkbox]:not(.usr-toggle-input):checked {
  background: var(--gold);
  border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
}
input[type=checkbox]:not(.usr-toggle-input):indeterminate {
  background: var(--gold-dim);
  border-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 4'%3E%3Cpath d='M1 2h10' stroke='%23c6a04a' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-size: 10px 4px;
  background-position: center;
  background-repeat: no-repeat;
}
input[type=checkbox]:not(.usr-toggle-input):focus-visible {
  outline: 2px solid rgba(198,160,74,.4);
  outline-offset: 2px;
}

/* Checkbox row */
.field-check,
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.field-check label,
.check-row label { margin: 0; color: var(--text); }

/* Image drop */
.image-drop {
  display: block;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.image-drop:hover,
.image-drop.over { border-color: var(--gold); background: var(--gold-dim); }
.image-drop .fname { font-size: 11px; color: var(--text-mute); margin-top: 4px; }
.image-drop input[type=file] { display: none; }

/* 2-column form layout */
.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.form-col { display: flex; flex-direction: column; }
.form-col > .field { margin-bottom: 16px; }
.form-col > .field:last-child { margin-bottom: 0; }
.field-grow { flex: 1; display: flex; flex-direction: column; }
.field-grow > label { flex-shrink: 0; }
.textarea-fill {
  flex: 1;
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}
.drop-fill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.drop-fill p { margin: 2px 0; font-size: 11px; color: var(--text-mute); }
.form-bottom { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-2); }

/* File card (current file preview) */
.file-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  margin-bottom: 10px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.file-card:hover { border-color: var(--gold); text-decoration: none; }
.file-card-icon { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.file-card-body { flex: 1; min-width: 0; }
.file-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-card-dl { width: 14px; height: 14px; color: var(--text-dim); flex-shrink: 0; }
.file-card-action {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--r-sm);
  color: var(--text-dim); background: none; border: none; cursor: pointer;
  flex-shrink: 0; text-decoration: none; transition: color .15s, background .15s;
}
.file-card-action:hover { color: var(--text); background: var(--surface-3); }
.file-card-del:hover { color: var(--red) !important; }

@media (max-width: 720px) {
  .form-2col { grid-template-columns: 1fr; gap: 0; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--gold);
  color: #0e0e0e;
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: opacity .15s, background .15s;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { opacity: .85; text-decoration: none; }

.btn-sm { padding: 4px 10px; font-size: 10px; }
.btn-block { width: 100%; }

.btn-outline {
  background: none;
  color: var(--gold);
  border: 1px solid rgba(198,160,74,.4);
}
.btn-outline:hover { background: var(--gold-dim); opacity: 1; }

.btn-ghost {
  background: none;
  color: var(--text-mute);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-3); opacity: 1; }

.btn-danger {
  background: var(--red);
  color: #fff;
}
.btn-danger:hover { opacity: .85; }

.tbl-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.btn-icon {
  padding: 6px;
  background: none;
  border: 1px solid var(--line);
  color: var(--text-mute);
}
.btn-icon:hover { color: var(--text); border-color: var(--text-mute); opacity: 1; }

/* ── Flash / alerts ── */
@keyframes flash-out {
  0%   { opacity: 1; max-height: 80px; margin-bottom: 16px; padding: 10px 14px; }
  70%  { opacity: 0; max-height: 80px; }
  100% { opacity: 0; max-height: 0;   margin-bottom: 0;    padding: 0; }
}
.flash {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid;
  overflow: hidden;
}
.flash.dismissing { animation: flash-out .5s ease forwards; }
.flash.success { background: rgba(39,174,96,.1); border-color: rgba(39,174,96,.3); color: var(--green); }
.flash.error   { background: var(--red-dim); border-color: rgba(192,57,43,.3); color: #e05555; }
.flash.info    { background: var(--gold-dim); border-color: rgba(198,160,74,.3); color: var(--gold); }

/* ── Char counter ── */
.char-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  text-align: right;
  margin-top: 4px;
  letter-spacing: .05em;
  transition: color .15s;
  pointer-events: none;
}
.char-counter.warn  { color: var(--gold); }
.char-counter.limit { color: var(--red); }

/* ── Auth layout ── */
.auth-wrap {
  display: flex;
  min-height: 100vh;
}

.auth-side {
  flex: 1;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  overflow: hidden;
}

.auth-brand {
  position: relative;
  z-index: 1;
}
.auth-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  object-fit: cover;
  margin-bottom: 14px;
}
.auth-brand p { color: var(--text-mute); font-size: 13px; margin-top: 4px; }
.auth-meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--text-dim);
}

.auth-form {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form-inner { width: 100%; max-width: 320px; }
.auth-form .display { color: var(--text); }

/* ── Eng-modal ── */
.eng-modal {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  overflow: hidden;
}
.eng-modal-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold);
  border-style: solid;
  opacity: .5;
  pointer-events: none;
}
.eng-modal-corner-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.eng-modal-corner-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.eng-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.eng-modal-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.eng-modal-title { font-size: 16px; font-weight: 700; }
.eng-modal-ref {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .14em;
  color: var(--gold);
  border: 1px solid rgba(198,160,74,.3);
  padding: 3px 7px;
  border-radius: var(--r-sm);
}
.eng-modal-rule {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0, var(--line) 6px, transparent 6px, transparent 10px);
}
.eng-modal-body { padding: 20px; }
.eng-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(192,57,43,.3);
  border-radius: var(--r-md);
  background: var(--red-dim);
  color: var(--red);
  margin-bottom: 14px;
}
.eng-modal-msg { font-size: 13px; color: var(--text-mute); margin-bottom: 12px; }
.eng-modal-warn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .06em;
  color: #f5c6c6;
  background: var(--red-dim);
  border: 1px solid rgba(192,57,43,.35);
  border-radius: var(--r-sm);
  padding: 9px 12px;
}
.eng-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 20px;
}
.eng-modal-footer {
  padding: 6px 20px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  letter-spacing: .12em;
  color: var(--text-dim);
  text-align: center;
}

/* ── Toolbar (search/filter bar above tables) ── */
.toolbar {
  margin-bottom: 16px;
}
.toolbar form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar input[type=text],
.toolbar select {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  padding: 7px 10px;
  outline: none;
  transition: border-color .15s;
  min-width: 0;
  flex: 1;
}
.toolbar input[type=text]:focus,
.toolbar select:focus { border-color: var(--gold); }

/* ── Logo cell ── */
.logo-cell {
  width: 56px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.logo-cell img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ── Drop zone (upload) ── */
.drop-zone {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}
.drop-zone input[type=file] { display: none; }
.drop-zone:hover,
.drop-zone.drag-over { border-color: var(--gold); background: var(--gold-dim); }
.drop-hint { display: flex; flex-direction: column; align-items: center; font-size: 13px; color: var(--text-mute); }
.drop-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 13px;
}

/* ── .input alias for select inside forms ── */
.input {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  padding: 8px 10px;
  outline: none;
  transition: border-color .15s;
}
.input:focus { border-color: var(--gold); }

/* ── Form actions bar ── */
.spacer { height: 32px; }
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px dashed var(--line-2);
  margin-top: 8px;
}
@media (max-width: 720px) {
  .actions .btn { flex: 1 1 auto; min-width: 120px; }
}

/* ── Misc ── */
pre { font-family: 'JetBrains Mono', monospace; }

.td-actions { display: flex; gap: 6px; justify-content: flex-end; }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--bg-3);
  color: var(--text-mute);
  border: 1px solid var(--line);
}

.perm-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.perm-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text-mute);
}

/* Image gallery 3-col grid */
.img-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.img-gallery-item {
  position: relative;
  cursor: pointer;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}
.img-gallery-item img,
.img-gallery-item .img-card,
.img-gallery-item .img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

/* ── User active status button ── */
.usr-status-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .1em;
  padding: 3px 9px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  transition: filter .15s, opacity .15s;
  white-space: nowrap;
}
.usr-status-btn.active  { color: var(--green); border-color: rgba(39,174,96,.3); background: rgba(39,174,96,.08); }
.usr-status-btn.inactive { color: var(--text-dim); border-color: var(--line); background: var(--bg-3); }
.usr-status-btn:hover { filter: brightness(1.25); }
.usr-status-btn[data-loading] { opacity: .45; pointer-events: none; }

/* ── User active toggle ── */
.usr-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}
.usr-toggle-input { display: none; }
.usr-toggle-track {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--line-2);
  position: relative;
  transition: background .22s, border-color .22s;
  flex-shrink: 0;
}
.usr-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  transition: transform .22s cubic-bezier(.4,0,.2,1), background .22s;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.usr-toggle-input:checked ~ .usr-toggle-track .usr-toggle-thumb {
  transform: translateX(18px);
  background: var(--green);
}
.usr-toggle[data-loading] { opacity: .45; pointer-events: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cols-2 { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: 1fr; }
  .auth-wrap { flex-direction: column; }
  .auth-side { min-height: 240px; }
  .auth-form { width: 100%; padding: 32px 24px; }
}

/* tablet: 721–860px — sidebar visível mas content ~500-640px */
@media (max-width: 860px) and (min-width: 721px) {
  .panel-eng { overflow-x: auto; }
  .mob-hide  { display: none; }
  .mob-meta  { display: block; }
  .files-tbl td, .files-tbl th { padding: 8px 10px; }
  .fcol-idx, .fcol-hide { display: none; }
  .fcol-mob-meta { display: block; }

  /* audit: esconde #, data, objeto — mantém usuário, ação, ver */
  .audit-col-idx,
  .audit-col-date  { display: none; }
  .audit-col-obj   { display: none; }
  .audit-tbl td, .audit-tbl th { padding: 8px 10px; }
}

/* desktop: esconde meta-line mobile */
.fcol-mob-meta { display: none; }
.mob-meta      { display: none; }

@media (max-width: 720px) {
  .mob-hide,
  .fcol-idx,
  .fcol-hide    { display: none; }
  .fcol-mob-meta,
  .mob-meta     { display: block; }
  .files-tbl td, .files-tbl th { padding: 8px 10px; }

  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head .actions { width: 100%; }
  .tbl-actions { flex-direction: column; align-items: flex-end; }

  /* audit: card layout */
  .audit-tbl thead { display: none; }
  .audit-tbl tbody tr.eng-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 10px 12px;
    border-bottom: 1px dashed var(--line);
  }
  .audit-tbl tbody tr.eng-row td {
    display: block;
    padding: 0;
    border: none;
    background: none !important;
  }
  .audit-tbl .audit-col-idx,
  .audit-tbl .audit-col-date { display: none; }
  /* action badge: sempre primeiro */
  .audit-tbl td:not(.audit-col-idx):not(.audit-col-date):not(.audit-col-user):not(.audit-col-obj):not(.audit-col-ver) {
    order: 0;
    flex-shrink: 0;
  }
  /* user: fill remaining space */
  .audit-tbl .audit-col-user { order: 1; flex: 1; min-width: 0; }
  .audit-tbl .audit-col-user strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .audit-tbl .audit-col-user .eng-sub { display: none; }
  /* object: sublinha debaixo do user */
  .audit-tbl .audit-col-obj { order: 2; width: 100%; font-size: 11px; color: var(--text-mute); padding-left: 0; }
  .audit-tbl .audit-col-obj .eng-sub { display: none; }
  /* ver: right-aligned */
  .audit-tbl .audit-col-ver { order: 3; margin-left: auto; flex-shrink: 0; }
  .audit-col-ver .btn { border-color: var(--gold); color: var(--gold); }

  #mobile-menu-btn { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s ease, width .2s ease;
    width: var(--sidebar-w) !important;
  }
  .shell.sidebar-open .sidebar { transform: translateX(0); }
  .shell.sidebar-open .sidebar-backdrop { display: block; }
  .main { margin-left: 0 !important; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 40px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .resp-tec-info { display: none; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ── Audit filters ── */
.audit-filters { margin-bottom: 20px; }
.audit-filter-form { display: flex; flex-direction: column; gap: 16px; }
.audit-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  gap: 14px 16px;
  align-items: end;
}
.audit-filter-grid .field { margin-bottom: 0; }
.audit-selected-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-md);
}
.audit-selected-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(198,160,74,.12);
  border: 1px solid rgba(198,160,74,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .audit-filter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .audit-filter-grid { grid-template-columns: 1fr; }
}

/* ── Roles & Permissions ── */
.role-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.role-card { padding: 20px 24px; }
.role-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line-2);
}
.role-card-head h3 { font-size: 16px; font-weight: 600; }
.role-superadmin-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(198,160,74,.06);
  border: 1px solid rgba(198,160,74,.2);
  border-radius: var(--r-md);
}
.perm-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 24px;
}
.perm-group {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.perm-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.perm-group-head h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.perm-group-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  margin: 0;
}
.perm-group-toggle input { cursor: pointer; }
.perm-group-toggle:hover { color: var(--gold); }
.perm-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin: 0 !important;
}
.perm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  margin: 0;
}
.perm-item input { cursor: pointer; margin: 0; }
.perm-item:hover { color: var(--gold); }

/* ── Password eye toggle & copy button ── */
.input-icon-wrap {
  position: relative;
  display: block;
}
.input-icon-wrap input {
  width: 100%;
  padding-right: 42px !important;
  box-sizing: border-box;
}
.btn-field-icon {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color .15s;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.btn-field-icon:hover { color: var(--gold); }
.input-copy-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.input-copy-wrap input {
  flex: 1;
  min-width: 0;
}
.btn-copy {
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text-dim);
  cursor: pointer;
  padding: 0 12px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .06em;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-copy:hover { border-color: var(--gold); color: var(--gold); }
.btn-copy.copied { color: #5fba7d; border-color: #5fba7d; }

/* ── Custom select styling (overrides earlier rules) ── */
.field select,
.toolbar select,
select.input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c6a04a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 14px !important;
  padding-right: 32px !important;
  cursor: pointer;
}
.field select:hover,
.toolbar select:hover,
select.input:hover { border-color: rgba(198,160,74,.5); }
.field select:focus,
.toolbar select:focus,
select.input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198,160,74,.12);
}
.field select option,
.toolbar select option,
select.input option {
  background: var(--surface);
  color: var(--text);
  padding: 8px;
}
