:root {
  --bg: #f4efe6;
  --paper: #fffaf3;
  --panel: rgba(255, 250, 243, 0.82);
  --line: rgba(77, 58, 42, 0.16);
  --text: #2f241a;
  --muted: #6d5a48;
  --accent: #b64d1b;
  --accent-2: #165f59;
  --accent-soft: #f3d4c5;
  --shadow: 0 18px 45px rgba(69, 49, 34, 0.12);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(182, 77, 27, 0.22), transparent 35%),
    radial-gradient(circle at bottom right, rgba(22, 95, 89, 0.18), transparent 28%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(47, 36, 26, 0.97), rgba(74, 53, 38, 0.94));
  color: #f7ecdf;
}

.sidebar h1,
.login-card h1 {
  margin: 0.2rem 0 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
}

.sidebar-copy,
.lead,
.muted {
  color: var(--muted);
}

.sidebar .sidebar-copy {
  color: rgba(247, 236, 223, 0.78);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent);
}

.sidebar .eyebrow {
  color: #f0b290;
}

.nav {
  display: grid;
  gap: 0.65rem;
}

.nav a,
.button {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav a {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.nav a:hover,
.button:hover {
  transform: translateY(-1px);
}

.user-card,
.panel,
.stat-card,
.table-panel,
.login-card,
.form-panel,
.alert {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.user-card {
  display: grid;
  gap: 1rem;
  margin-top: auto;
  padding: 1rem;
  border-radius: 20px;
}

.content {
  padding: 2rem;
  display: grid;
  gap: 1.5rem;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 26px;
  background: linear-gradient(130deg, rgba(255, 250, 243, 0.92), rgba(244, 232, 217, 0.76));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero.compact {
  padding: 1.5rem 2rem;
}

.hero h2 {
  margin: 0.25rem 0 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.stats-grid,
.panel-grid,
.detail-grid {
  display: grid;
  gap: 1.25rem;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-grid,
.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.panel,
.table-panel,
.form-panel,
.alert,
.flash-banner {
  border-radius: 24px;
  padding: 1.4rem;
}

.stat-card span {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 0.7rem;
  font-size: 2.6rem;
  font-family: Georgia, "Times New Roman", serif;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.panel-head h3,
.seed-users h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.compact-list li {
  display: block;
}

.chips,
.tag-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.note-block {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(243, 212, 197, 0.45);
}

.note-block p {
  margin-bottom: 0;
}

.content-preview {
  margin: 0;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 24rem;
  overflow: auto;
  font: inherit;
}

.workflow-form {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.workflow-warning {
  background: linear-gradient(135deg, rgba(244, 227, 184, 0.7), rgba(243, 212, 197, 0.55));
  border: 1px solid rgba(138, 90, 0, 0.18);
}

.workflow-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.workflow-confirm-line {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(138, 90, 0, 0.18);
  background: rgba(244, 227, 184, 0.35);
}

.review-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.review-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.review-item-resolved {
  background: rgba(22, 95, 89, 0.09);
}

.review-item-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.comment-line {
  align-items: start;
}

.comment-line p {
  margin-bottom: 0;
}

.table-copy {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.chip {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7d3411;
  font-size: 0.94rem;
}

.chip-alert {
  background: #f6d4c6;
  color: #8c2600;
}

.chip-ok {
  background: rgba(22, 95, 89, 0.12);
  color: #165f59;
}

.chip-info {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.chip-bib {
  background: rgba(79, 70, 229, 0.1);
  color: #3730a3;
}

.chip-warn {
  background: #f4e3b8;
  color: #8a5a00;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #fffaf3;
  cursor: pointer;
  font-size: 0.98rem;
}

.button-secondary {
  background: var(--accent-2);
}

.button-warning {
  background: #c77700;
}

.button-danger {
  background: #a33a1d;
}

.button-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
}

.filters,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.filters {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.advanced-filters {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  color: var(--text);
}

.checkbox-line input {
  width: auto;
  margin: 0;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(77, 58, 42, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

.table-panel {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

thead th {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.responsive-table td::before {
  display: none;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.meta-grid dt {
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.meta-grid dd {
  margin: 0;
  font-weight: 600;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 2rem;
}

/* ---- Paginas publicas ---- */
.public-page {
  background: #f9fafb;
  color: #111827;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 15px;
}
.public-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: .75rem 1.5rem;
}
.public-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.public-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.public-doc-card {
  transition: box-shadow .15s;
}
.public-doc-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.login-card {
  width: min(560px, 100%);
  padding: 2rem;
  border-radius: 28px;
}

.seed-users ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.8rem;
}

.seed-users li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.alert {
  color: #8c2600;
  background: #fde1d5;
}

/* Lockout visual na tela de login */
.lockout-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.lockout-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.lockout-body strong {
  display: block;
  color: #b91c1c;
  margin-bottom: .25rem;
}

.lockout-body p {
  margin: .2rem 0;
  font-size: .9rem;
  color: #7f1d1d;
}

#lockout-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.flash-banner {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 600;
}

.flash-success {
  color: #165f59;
  background: rgba(22, 95, 89, 0.14);
}

.flash-error {
  color: #8c2600;
  background: #fde1d5;
}

.flash-info {
  color: #5a4300;
  background: #f4e3b8;
}

@media (max-width: 1100px) {
  .app-shell,
  .stats-grid,
  .panel-grid,
  .detail-grid,
  .filters,
  .columns,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 1.5rem;
  }
}

@media (max-width: 820px) {
  .responsive-table thead {
    display: none;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tr {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.54);
  }

  .responsive-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .responsive-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .responsive-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.28rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .responsive-table .form-actions {
    justify-content: flex-start;
  }

  .table-empty-row {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .table-empty-row td {
    padding: 0;
    border: 0;
  }

  .table-empty-row td::before {
    display: none;
  }
}

/* Painel em destaque por perfil */
.panel-highlight {
  border-left: 3px solid var(--accent, #2563eb);
  background: var(--surface-2, #f8fafc);
}

/* Badge inline */
.badge {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}
.badge-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}
.badge-warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fcd34d;
}

/* Facetas de busca */
.facets-panel { margin-bottom: 1rem; }
.facets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0.75rem 0;
}
.facet-group {}
.facet-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #6b7280);
  margin: 0 0 0.3rem 0;
}
.facet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.facet-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.15rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.facet-list a { color: var(--accent, #2563eb); text-decoration: none; }
.facet-list a:hover { text-decoration: underline; }
.facet-count {
  font-size: 0.72rem;
  color: var(--muted, #6b7280);
  background: var(--surface-2, #f3f4f6);
  border-radius: 9999px;
  padding: 0 6px;
  min-width: 1.4rem;
  text-align: center;
}

/* Badge de status nos documentos relacionados */
.badge-ok {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #86efac;
}

/* Acessibilidade */
.skip-link {
  position: absolute;
  top: -3rem;
  left: 0;
  background: var(--accent, #2563eb);
  color: #fff;
  padding: .4rem .8rem;
  z-index: 9999;
  font-size: .9rem;
  border-radius: 0 0 4px 0;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus {
  top: 0;
}
:focus-visible {
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Indicador de relevancia FTS na busca */
.fts-badge {
  color: #d97706;
  font-size: .85rem;
  font-weight: 700;
}
tr.fts-hit > td:first-child {
  border-left: 3px solid #d97706;
}

/* === Painel de configuracoes === */
.config-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 1.5rem 0;
}

.config-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  position: sticky;
  top: 1rem;
}

.config-nav-item {
  display: block;
  padding: .5rem .75rem;
  border-radius: 6px;
  font-size: .9rem;
  color: var(--text);
  transition: background .15s;
}

.config-nav-item:hover {
  background: var(--line);
}

.config-nav-item.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.config-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Tabelas de taxonomia */
.table-compact {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.table-compact th {
  text-align: left;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  padding: .4rem .75rem;
  border-bottom: 2px solid var(--line);
}

.table-compact td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table-compact tr:last-child td {
  border-bottom: none;
}

.tag-em-uso {
  display: inline-block;
  font-size: .7rem;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  padding: 0 .4rem;
  margin-left: .3rem;
}

/* Note block */
.note-block {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  padding: .6rem .9rem;
  border-radius: 0 4px 4px 0;
  font-size: .875rem;
  color: var(--text);
}

/* Upload field */
.upload-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

/* Modulo flag cards */
.modulo-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
}

.modulo-card:last-child {
  border-bottom: none;
}

.modulo-card-body {
  flex: 1;
}

.modulo-env-var {
  font-family: monospace;
  font-size: .8rem;
  background: #f1f5f9;
  padding: .15rem .4rem;
  border-radius: 3px;
  color: #475569;
}

/* Chips de status */
.chip {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: .1rem .5rem;
  border-radius: 9999px;
  background: var(--line);
  color: var(--muted);
}

.chip-ok {
  background: #dcfce7;
  color: #15803d;
}

.chip-warn {
  background: #fef9c3;
  color: #854d0e;
}

.chip-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.chip-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.chip-bib {
  background: #ede9fe;
  color: #3730a3;
}

/* Retencao: linhas da tabela */
.row-danger td {
  background: #fff5f5;
}
.row-warn td {
  background: #fffbeb;
}

/* Retencao: textos de prazo */
.retention-overdue {
  color: #dc2626;
  font-weight: 600;
}
.retention-soon {
  color: #d97706;
  font-weight: 600;
}

/* ============================================================
   Mode switcher — versao simples / completo
   ============================================================ */

.mode-switcher {
  padding: 0;
}

.mode-switcher form {
  display: flex;
  gap: .25rem;
  background: rgba(0,0,0,.25);
  border-radius: 8px;
  padding: .25rem;
}

.mode-btn {
  flex: 1;
  border: none;
  border-radius: 6px;
  padding: .35rem .6rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: rgba(247,236,223,.55);
  transition: background .15s, color .15s;
}

.mode-btn:hover:not(:disabled) {
  background: rgba(255,255,255,.12);
  color: #f7ecdf;
}

.mode-btn-active {
  background: rgba(255,255,255,.18);
  color: #f7ecdf;
  cursor: default;
}

/* ============================================================
   Versao simples — dashboard, listagem e detalhe
   ============================================================ */

.simple-hero {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
}

.simple-hero h2 {
  font-size: 1.7rem;
  margin: .3rem 0 .2rem;
}

.simple-hero p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.simple-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.simple-action-card {
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .15s, transform .1s;
}

.simple-action-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.simple-action-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.simple-action-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.simple-action-desc {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
}

.simple-action-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: .1rem .55rem;
  margin-top: auto;
  width: fit-content;
}

.simple-status-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.simple-stat {
  flex: 1 1 140px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.simple-stat-label {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.simple-stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* Simple document card grid */

.simple-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.simple-doc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .15s, transform .1s;
}

.simple-doc-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.simple-doc-card-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}

.simple-doc-card-meta {
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}

.simple-doc-card-status {
  margin-top: auto;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

/* Simple search bar */

.simple-search-bar {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.simple-search-bar input {
  flex: 1;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: .65rem 1rem;
  font-size: 1rem;
  background: var(--paper);
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}

.simple-search-bar input:focus {
  border-color: var(--accent);
}

.simple-search-bar button {
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: .65rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}

.simple-search-bar button:hover {
  opacity: .88;
}

.simple-filter-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.simple-filter-row select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .45rem .75rem;
  font-size: .88rem;
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
}

/* Simple document detail */

.simple-detail-header {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin-bottom: 1.5rem;
}

.simple-detail-header h2 {
  margin: .2rem 0 .6rem;
  font-size: 1.5rem;
}

.simple-detail-badges {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}

.simple-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem 1.5rem;
  font-size: .9rem;
}

.simple-detail-meta dt {
  font-weight: 600;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .1rem;
}

.simple-detail-meta dd {
  margin: 0;
}

.simple-step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
}

.simple-step-card h3 {
  margin: 0 0 .6rem;
  font-size: 1rem;
}

.simple-step-card p {
  margin: 0 0 1rem;
  font-size: .9rem;
  color: var(--muted);
}

.simple-step-done {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.simple-step-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(182,77,27,.08);
}

.simple-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.simple-empty p {
  font-size: 1rem;
  margin: .4rem 0 1rem;
}
}
