:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --line: #d9e1ea;
  --text: #1d2733;
  --muted: #5f6e7f;
  --accent: #176f8f;
  --accent-dark: #0e526b;
  --accent-soft: #e8f5f8;
  --danger: #b42318;
  --ok: #067647;
  --green: #15803d;
  --green-soft: #edf7ee;
  --amber: #b7791f;
  --amber-soft: #fff7e6;
  --blue: #2563a5;
  --blue-soft: #edf4ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
button, .button {
  border: 0;
  background: var(--accent);
  color: white;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
button:hover, .button:hover { background: var(--accent-dark); }
.button.secondary {
  background: #eef4f8;
  color: var(--text);
  border: 1px solid var(--line);
}
.button.secondary:hover { background: #e4edf4; }
.topbar {
  height: 56px;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand { font-weight: 800; color: var(--text); }
.topbar nav { display: flex; flex-wrap: wrap; gap: 1rem; flex: 1; }
.topbar form { display: flex; gap: 0.75rem; align-items: center; margin: 0; color: var(--muted); }
.inline-action { margin: 0; }
main { padding: 1rem; max-width: 1480px; margin: 0 auto; }
.page-head { margin-bottom: 1rem; }
.page-head.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
h1 { margin: 0; font-size: 1.6rem; }
h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
p { color: var(--muted); }
.page-subtitle { margin: 0.35rem 0 0; }
.login-panel, .panel, .split > div, .metrics > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
.login-panel { max-width: 360px; margin: 4rem auto; }
form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
input, select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  min-height: 38px;
  background: white;
}
.login-panel form, .panel { display: grid; gap: 0.8rem; }
.password-panel { max-width: 520px; }
.password-panel form { display: grid; gap: 0.8rem; }
.form-note { margin: 0; color: var(--muted); font-size: 0.82rem; font-weight: 500; }
.messages { margin-bottom: 1rem; }

.role-info {
  background: #f7fbfd;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.8rem;
}
.role-info-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.role-info-head strong { color: var(--text); }
.role-info-head span {
  background: var(--accent-soft);
  border: 1px solid #b6dce7;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
}
.role-info-grid {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.role-info-grid p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.25;
  margin: 0;
}
.role-info-grid b { color: var(--text); }
.message { padding: 0.7rem 0.9rem; border-radius: 6px; background: #eef6ff; border: 1px solid var(--line); }
.message.error { background: #fff1f0; color: var(--danger); }
.message.success { background: #ecfdf3; color: var(--ok); }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.metrics span { display: block; color: var(--muted); font-size: 0.85rem; }
.metrics strong { display: block; margin-top: 0.25rem; font-size: 1.35rem; }
.metrics > div { border-top: 3px solid var(--accent); }
.metrics > div:nth-child(2) { border-top-color: var(--green); }
.metrics > div:nth-child(3) { border-top-color: var(--blue); }
.metrics > div:nth-child(4) { border-top-color: var(--amber); }
.metrics > div:nth-child(5) { border-top-color: var(--danger); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.panel-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.panel-head p { margin: -0.35rem 0 0; }
.fleet-panel { margin-bottom: 1rem; padding: 0; overflow: hidden; }
.fleet-panel .panel-head { padding: 1rem 1rem 0.8rem; }
.fleet-table-wrap {
  border-top: 1px solid var(--line);
  overflow: auto;
}
.fleet-table { min-width: 1400px; }
.fleet-table th, .fleet-table td { text-align: right; }
.fleet-table th:first-child, .fleet-table td:first-child,
.fleet-table th:nth-child(2), .fleet-table td:nth-child(2),
.fleet-table th:nth-child(3), .fleet-table td:nth-child(3) {
  text-align: left;
}
.fleet-table thead tr:first-child th {
  background: #f4f8fb;
  border-bottom: 1px solid var(--line);
}
.fleet-table thead tr:nth-child(2) th {
  font-size: 0.78rem;
  color: var(--muted);
}
.fleet-sticky {
  left: 0;
  position: sticky;
  z-index: 2;
}
th.fleet-sticky { z-index: 4; }
td.fleet-sticky { background: var(--panel); }
tbody tr:nth-child(even) td.fleet-sticky { background: #fbfcfe; }
.fleet-name {
  min-width: 210px;
  white-space: normal;
}
.fleet-name strong,
.fleet-name span {
  display: block;
}
.fleet-name span {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
}
.provider-pill {
  background: #eef4f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.18rem 0.5rem;
}
.metric-band { text-align: center !important; }
.metric-cell { font-variant-numeric: tabular-nums; font-weight: 650; }
.metric-hours { background: #f1f5f9; color: #334155; }
.metric-km { background: var(--accent-soft); color: var(--accent-dark); }
.metric-fuel { background: var(--amber-soft); color: #8a5a12; }
.metric-drill { background: var(--green-soft); color: var(--green); }
.metric-water { background: var(--blue-soft); color: var(--blue); }
.empty { color: var(--muted); font-weight: 500; }
.schema-group { margin-bottom: 1.25rem; }
.schema-group > header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 0.6rem;
  color: var(--muted);
}
.schema-group > header h2 { margin: 0; color: var(--text); }
.table-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.75rem; }
.table-list a { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; color: var(--text); display: grid; gap: 0.35rem; }
.table-list a:hover { border-color: #9fb4c5; box-shadow: 0 4px 14px rgba(29, 39, 51, 0.08); }
.table-list span, .table-list small { color: var(--muted); }
.table-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.table-stats > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}
.table-stats > div:nth-child(2) { border-left-color: var(--green); }
.table-stats > div:nth-child(3) { border-left-color: var(--blue); }
.table-stats span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
}
.table-stats strong {
  display: block;
  font-size: 1.15rem;
  margin-top: 0.2rem;
}
.filters { display: flex; gap: 0.75rem; align-items: end; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem; margin-bottom: 1rem; }
.filters label { min-width: 150px; }
.data-table { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.55rem 0.65rem; text-align: left; vertical-align: top; white-space: nowrap; }
th { position: sticky; top: 0; background: #eef4f8; z-index: 1; }
th small { display: block; margin-top: 0.2rem; color: var(--muted); font-weight: 500; }
.sort-link { color: var(--text); display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.12rem; }
.column-label-line { display: inline-flex; align-items: center; gap: 0.25rem; }
.filter-row th { top: 42px; background: #f7fafc; }
.column-filter { min-width: 140px; width: 100%; min-height: 30px; padding: 0.35rem 0.45rem; font-size: 0.82rem; }
tbody tr:nth-child(even) { background: #fbfcfe; }
.pager { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 0.5rem; }
.check input { min-height: auto; }
.dashboard-note { margin-bottom: 1rem; align-items: start; }
.wiki-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.wiki-sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  position: sticky;
  top: 0.75rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}
.wiki-root-link {
  display: block;
  color: var(--text);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.wiki-sidebar nav { display: grid; gap: 0.15rem; }
.wiki-sidebar nav a, .wiki-sidebar nav span {
  border-radius: 6px;
  color: var(--text);
  display: block;
  padding: 0.45rem 0.55rem;
}
.wiki-sidebar nav a:hover, .wiki-sidebar nav a.active { background: #eef4f8; }
.wiki-article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  min-width: 0;
}
.wiki-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.wiki-search input { flex: 1; }
.wiki-meta {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  font-size: 0.85rem;
}
.wiki-content {
  line-height: 1.62;
  max-width: 920px;
}
.wiki-content h2, .wiki-content h3, .wiki-content h4, .wiki-content h5 {
  color: var(--text);
  margin: 1.2rem 0 0.45rem;
}
.wiki-content p, .wiki-content li { color: var(--text); }
.wiki-content code {
  background: #eef4f8;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05rem 0.25rem;
}
.wiki-content pre {
  background: #13212b;
  border-radius: 8px;
  color: white;
  overflow: auto;
  padding: 0.8rem;
}
.wiki-content pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}
.wiki-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}
.wiki-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
}
.wiki-list a:hover { border-color: #9fb4c5; box-shadow: 0 4px 14px rgba(29, 39, 51, 0.08); }
.wiki-list span { color: var(--muted); }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.wiki-edit textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  padding: 0.7rem;
  resize: vertical;
}
.form-actions { display: flex; gap: 0.75rem; }
.scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.scope-tabs a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.42rem 0.72rem;
}
.scope-tabs a:hover, .scope-tabs a.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}
.log-table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: calc(100vh - 190px);
  overflow: auto;
}
.log-table table { table-layout: fixed; }
.log-table th:nth-child(1) { width: 155px; }
.log-table th:nth-child(2) { width: 210px; }
.log-time, .log-source {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}
.log-message {
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.empty-state { color: var(--muted); }
@media (max-width: 900px) {
  .role-info-grid { grid-template-columns: 1fr; }
  .topbar { height: auto; align-items: flex-start; flex-direction: column; padding: 0.75rem; }
  .metrics, .split, .wiki-layout { grid-template-columns: 1fr; }
  .wiki-sidebar { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .log-table { background: transparent; border: 0; max-height: calc(100vh - 320px); }
  .log-table table, .log-table tbody { display: block; min-width: 0; width: 100%; }
  .log-table thead {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }
  .log-table tbody { display: grid; gap: 0.6rem; }
  .log-table tr {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    overflow: hidden;
  }
  .log-table td {
    border: 0;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: 5.2rem minmax(0, 1fr);
    padding: 0.45rem 0.65rem;
    width: 100%;
  }
  .log-table td + td { border-top: 1px solid var(--line); }
  .log-table td::before {
    color: var(--muted);
    content: attr(data-label);
    font-family: system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 750;
  }
  .log-message { font-size: 0.8rem; }
}
.archive-rules { margin-bottom: 1rem; }
.archive-rules ul { margin: 0; padding-left: 1.2rem; color: var(--text); }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}
.archive-tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 0.32rem;
  min-height: 112px;
  padding: 0.9rem;
}
.archive-tile:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(29, 39, 51, 0.08); }
.archive-tile span, .archive-tile small { color: var(--muted); overflow-wrap: anywhere; }
.admin-tile { border-left-color: var(--green); }
.archive-table { margin-top: 0.75rem; }
.archive-table td { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.cost-admin-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 1rem; margin-bottom: 1rem; }
.cost-form { align-content: start; }
.cost-form h2 { margin-bottom: 0.25rem; }
.cost-form p, .cost-readonly-note p { margin: 0; }
.cost-table table { min-width: 1520px; }
.cost-table th:nth-child(1), .cost-table td:nth-child(1) { min-width: 118px; }
.cost-table th:nth-child(2), .cost-table td:nth-child(2) { min-width: 205px; }
.cost-table th:nth-child(3), .cost-table td:nth-child(3) { min-width: 105px; }
.cost-table th:nth-child(4), .cost-table td:nth-child(4) { min-width: 340px; white-space: normal; }
.cost-table th:nth-child(5), .cost-table td:nth-child(5) { min-width: 105px; }
.cost-table th:nth-child(6), .cost-table td:nth-child(6),
.cost-table th:nth-child(7), .cost-table td:nth-child(7) { min-width: 135px; }
.cost-table th:nth-child(8), .cost-table td:nth-child(8) { min-width: 150px; }
.cost-table th:nth-child(9), .cost-table td:nth-child(9) { min-width: 220px; }
.cost-table th:nth-child(10), .cost-table td:nth-child(10) { min-width: 135px; }
.cost-table th:nth-child(11), .cost-table td:nth-child(11) { min-width: 90px; }
.cost-table input {
  min-height: 32px;
  min-width: 0;
  padding: 0.32rem 0.42rem;
  width: 100%;
}
.cost-table td:nth-child(1) input,
.cost-table td:nth-child(3) input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.numeric-cell { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
@media (max-width: 900px) {
  .cost-admin-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
}

.security-strip { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.security-strip > div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 0.85rem; border-top: 3px solid var(--accent); }
.security-strip span { color: var(--muted); display: block; font-size: 0.82rem; }
.security-strip strong { display: block; font-size: 1.15rem; margin-top: 0.2rem; }
.security-state.ok { border-top-color: var(--ok); }
.security-state.warning { border-top-color: var(--amber); }
.security-state.critical, .security-state.failed { border-top-color: var(--danger); }
.security-panel { margin-bottom: 1rem; }
.report-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0.75rem; }
.report-link { border: 1px solid var(--line); border-radius: 8px; color: var(--text); display: grid; gap: 0.25rem; padding: 0.85rem; }
.report-link:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(29, 39, 51, 0.08); }
.report-link strong { color: var(--accent-dark); }
.report-link span { overflow-wrap: anywhere; }
.report-link small, .security-details li { color: var(--muted); }
.security-details { margin-bottom: 1rem; }
.security-details ul, .security-panel ul { margin: 0; padding-left: 1.2rem; }
.security-details code { background: #eef4f8; border: 1px solid var(--line); border-radius: 4px; padding: 0.05rem 0.25rem; }
@media (max-width: 900px) { .security-strip { grid-template-columns: 1fr; } }

.readonly-badge, .editable-badge {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.14rem 0.45rem;
  text-transform: uppercase;
}
.readonly-badge {
  background: #e7f3ec;
  border: 1px solid #b7dac5;
  color: #17623a;
}
.editable-badge {
  background: var(--blue-soft);
  border: 1px solid #b8cef0;
  color: var(--blue);
}
.archive-scope-tabs { margin-bottom: 1rem; }
.archive-table {
  max-height: calc(100vh - 255px);
  overflow: auto;
}
.archive-table table { min-width: 1320px; }
.archive-table th {
  position: sticky;
  top: 0;
  vertical-align: bottom;
  z-index: 4;
}
.archive-table .filter-row th {
  top: 52px;
  z-index: 3;
}
.archive-table td {
  line-height: 1.32;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.archive-table td:hover {
  background: #f4f8fb;
  overflow-wrap: anywhere;
  white-space: normal;
}
.cost-table td:nth-child(4) {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.cost-table td:nth-child(4) small {
  color: var(--muted);
  display: block;
  margin-top: 0.18rem;
}

.status-panel p { margin: 0.25rem 0; }
.finding-list { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.finding-list li { margin: 0.2rem 0; }
.security-results-table { overflow: auto; max-height: 70vh; }
.security-results-table td { white-space: normal; }
.security-results-table td:nth-child(1), .security-results-table td:nth-child(2), .security-results-table td:nth-child(3), .security-results-table td:nth-child(4) { white-space: nowrap; }
.security-results-table p { margin: 0.25rem 0 0; }

.db-column-name {
  display: block;
  margin-top: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.cost-actions-bar {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-bottom: 1rem;
}
.modal-dialog {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 70px rgba(29, 39, 51, 0.24);
  color: var(--text);
  max-width: min(560px, calc(100vw - 2rem));
  padding: 1rem;
  width: 560px;
}
.modal-dialog::backdrop {
  background: rgba(19, 33, 43, 0.42);
}
.modal-head {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}
.modal-head h2 { margin: 0; }
.modal-close { padding: 0.35rem 0.6rem; }
.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}



.archive-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.65rem 0.75rem;
}
.archive-tab {
  background: #f4f8fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.86rem;
  padding: 0.32rem 0.62rem;
}
.archive-tab.active {
  background: #dff1fa;
  border-color: #9fd1e7;
  color: #0a5774;
  font-weight: 700;
}
.quick-filter-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  margin-left: 0.5rem;
}
.quick-filter { display: inline-flex; align-items: center; }
.compact-panel { margin-bottom: 0.75rem; }

.editable-table-panel .table-wrap { max-height: 72vh; overflow: auto; }
.editable-archive-table { min-width: 1780px; }
.editable-archive-table th, .editable-archive-table .filter-row th { position: static; }
.editable-archive-table td { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.editable-archive-table td:nth-child(7),
.editable-archive-table td:nth-child(8) { white-space: normal; }
.editable-input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  min-height: 32px;
  min-width: 96px;
  padding: 0.32rem 0.45rem;
  width: 100%;
}
.wide-input { min-width: 180px; }
.row-actions { text-align: right; }
.small-button {
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  padding: 0.42rem 0.68rem;
}
.small-note { font-size: 0.88rem; }
.admin-badge {
  background: #e8f7ed;
  border: 1px solid #a8dfb9;
  border-radius: 999px;
  color: #1f6f3b;
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.12rem 0.5rem;
}
