/* Console of the Lead Hub. Tokens and classes come from the template mock-up
   (design/site.css, design/console-maquette.html): palette, type, radii, shadows,
   .app, .kpis, .leads, .st--*. No inline style anywhere: the CSP forbids it. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --ink: #0e1a14;
  --ink-2: #1c2a22;
  --brand: #17663a;
  --brand-2: #0f4d2b;
  --mint: #eaf4ed;
  --amber: #ffb020;
  --amber-2: #f29d00;
  --paper: #f6f4ef;
  --white: #ffffff;
  --text: #16201b;
  --muted: #5d6862;
  --line: rgb(14 26 20 / 0.1);
  --line-2: #dfe3dc;
  --danger: #b42318;
  --danger-bg: #fde2e1;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --shadow: 0 1px 2px rgb(14 26 20 / 0.06), 0 10px 30px rgb(14 26 20 / 0.08);
  --shadow-lg: 0 2px 6px rgb(14 26 20 / 0.06), 0 30px 70px rgb(14 26 20 / 0.18);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--brand);
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font: 400 17px/1.55 var(--font);
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  flex: none;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}
.app__side :focus-visible,
.topbar :focus-visible {
  outline-color: var(--amber);
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
code {
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--paper);
  font: 0.86em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.small {
  font-size: 0.9rem;
}
.tiny {
  font-size: 0.78rem;
}
.muted {
  color: var(--muted);
}
.num {
  font-variant-numeric: tabular-nums;
}
.brand {
  color: var(--brand);
}
.danger {
  color: var(--danger);
}
.nowrap {
  white-space: nowrap;
}
.wrap-any {
  overflow-wrap: anywhere;
}
.link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: var(--ink);
  font: 650 1rem/1 var(--font);
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.4) inset,
    0 6px 18px rgb(242 157 0 / 0.28);
  transition:
    transform 0.1s ease-out,
    background 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn:hover {
  background: #ffbd45;
}
.btn--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.btn--dark:hover {
  background: var(--ink-2);
}
.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn--light:hover {
  background: var(--paper);
}
.btn--danger {
  background: #fff;
  color: var(--danger);
  box-shadow: inset 0 0 0 1px #f3b8b3;
}
.btn--danger:hover {
  background: var(--danger-bg);
}
.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.92rem;
}
.btn--block {
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}
.htmx-request .btn,
.btn.htmx-request {
  opacity: 0.7;
}

/* ---------- shell ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 1rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: #fff;
}
.logo i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-style: normal;
}
.app {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 250px minmax(0, 1fr);
  background: var(--paper);
  font-size: 0.92rem;
}
.app__side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 22px 16px;
  overflow-y: auto;
  background: var(--ink);
  color: #c9d3cd;
}
.app__nav {
  display: grid;
  gap: 4px;
}
.app__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
}
.app__nav a:hover {
  background: rgb(255 255 255 / 0.06);
  color: #fff;
}
.app__nav a.on {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}
.app__nav .count {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--amber);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}
.app__nav .sep {
  height: 1px;
  margin: 8px 12px;
  background: rgb(255 255 255 / 0.1);
}
.app__user {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 14px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.06);
  font-size: 0.9rem;
}
.app__user b {
  color: #fff;
}
.app__user a,
.linkbtn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.app__user .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}
.app__main {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px 26px 40px;
  min-width: 0;
}
.app__main > * {
  min-width: 0;
}
.topbar {
  display: none;
}

/* ---------- page head, tabs, filters ---------- */
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.pagehead h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.9rem;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
}
.tab:hover {
  background: var(--mint);
}
.tab--on,
.tab--on:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.searchbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 2px 0 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.searchbox:focus-within {
  box-shadow: inset 0 0 0 2px var(--brand);
}
.searchbox input {
  width: 190px;
  min-height: 44px;
  border: 0;
  background: none;
  font-size: 0.9rem;
  font-weight: 550;
}
.searchbox input:focus {
  outline: none;
}
.searchbox button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.filters label {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.filters select {
  min-height: 44px;
  max-width: 220px;
  padding: 0 34px 0 14px;
  border: 0;
  border-radius: 999px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2316201b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text);
  appearance: none;
  cursor: pointer;
}

/* ---------- figures ---------- */
.kpis {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kpi {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.kpi b {
  font-size: 1.8rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

/* ---------- list and panel ---------- */
.app__body {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
}
.app__body--single {
  grid-template-columns: minmax(0, 1fr);
}
.app__body > * {
  min-width: 0;
}
.leads {
  overflow-x: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.leads table {
  width: 100%;
  border-collapse: collapse;
}
.leads th {
  padding: 12px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  background: #fafaf8;
}
.leads td {
  padding: 13px 12px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
.leads td.wraps {
  white-space: normal;
  min-width: 180px;
}
.leads td.clip {
  max-width: 172px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.leads td.clip--city {
  max-width: 164px;
}
/* The list alone has room for whole labels. */
.app__body:has(> #fiche:empty) .leads td.clip {
  max-width: 340px;
}
.leads tr.sel td {
  background: var(--mint);
}
.leads tbody tr[data-row]:hover td {
  background: #f3f8f4;
}
.leads tbody tr[data-row] {
  cursor: pointer;
}
/* The link of a row is a 44 px target that does not make the row taller. */
.leads td a.rowlink {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  margin-block: -10px;
  font-weight: 700;
}
.leads tbody th.rowhead {
  padding: 13px 12px;
  border-top: 1px solid var(--line);
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 170px;
  color: var(--text);
  background: none;
}
.leads .empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  white-space: normal;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.pager nav {
  display: flex;
  gap: 8px;
}
.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 650;
  white-space: nowrap;
}
.st--new {
  background: #fff1d6;
  color: #7a4a00;
}
.st--call {
  background: #e7eefc;
  color: #1d4ed8;
}
.st--qual {
  background: var(--mint);
  color: var(--brand-2);
}
.st--sent {
  background: #ede9fe;
  color: #5b21b6;
}
.st--acc {
  background: #d9f2ee;
  color: #0b5c52;
}
.st--won {
  background: var(--ink);
  color: #fff;
}
.st--lost {
  background: #ecece8;
  color: #4a524d;
}
.st--dup {
  background: #fff;
  color: #4a524d;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.st--urgent,
.st--spam {
  background: var(--danger-bg);
  color: var(--danger);
}
.panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.panel--flat {
  box-shadow: var(--shadow);
  border-radius: 22px;
}
.panel > * {
  min-width: 0;
}
.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel__head b,
.panel__head h2 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}
.panel h2 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}
.panel h3 {
  font-size: 0.92rem;
  font-weight: 700;
}
/* No lead open: the list takes the whole width. */
#fiche:empty {
  display: none;
}
.app__body:has(> #fiche:empty) {
  grid-template-columns: minmax(0, 1fr);
}
#fiche:focus {
  outline: none;
}
@media (min-width: 1101px) {
  #fiche {
    position: sticky;
    top: 22px;
  }
  #fiche > .panel {
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
.verif {
  display: grid;
  gap: 0;
  border-radius: 18px;
  background: var(--paper);
}
.verif > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  font-size: 0.92rem;
}
.verif > div + div {
  box-shadow: 0 -1px 0 var(--line);
}
.verif svg {
  color: var(--brand);
}
.verif a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tile-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 550;
  box-shadow: inset 0 0 0 1px var(--line-2);
  cursor: pointer;
}
.tile-choice input {
  position: absolute;
  opacity: 0;
}
.tile-choice svg {
  visibility: hidden;
}
.tile-choice:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--brand);
  background: var(--mint);
}
.tile-choice:has(input:checked) svg {
  visibility: visible;
}
.tile-choice:has(input:focus-visible) {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.tile-choice--off {
  cursor: default;
  color: var(--muted);
  background: #fafaf8;
}
.tile-list {
  display: grid;
  gap: 8px;
}
.fold {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  border-radius: 16px;
}
.fold > summary::-webkit-details-marker {
  display: none;
}
.fold > summary::after {
  content: '';
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.fold[open] > summary::after {
  transform: rotate(-135deg);
}
.fold__body {
  display: grid;
  gap: 14px;
  padding: 4px 16px 16px;
}
.timeline {
  display: grid;
  gap: 0;
}
.timeline li {
  display: grid;
  gap: 2px;
  padding: 10px 0 10px 16px;
  border-left: 2px solid var(--line-2);
  font-size: 0.88rem;
}
.timeline li b {
  font-weight: 650;
}
.kv {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr;
  gap: 6px 14px;
  font-size: 0.88rem;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  overflow-wrap: anywhere;
}
.script {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mint);
  font-size: 0.9rem;
  color: var(--brand-2);
}
.copybox {
  display: grid;
  gap: 8px;
}
.copybox textarea {
  min-height: 190px;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------- forms ---------- */
.form {
  display: grid;
  gap: 14px;
}
.form--grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  align-items: start;
}
.form .full {
  grid-column: 1 / -1;
}
.field {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.field > label,
.field > legend,
.field > span.lbl {
  padding: 0;
  font-size: 0.86rem;
  font-weight: 650;
}
.field .help {
  font-size: 0.8rem;
  color: var(--muted);
}
.input,
.field input[type='text'],
.field input[type='email'],
.field input[type='password'],
.field input[type='number'],
.field input[type='date'],
.field input[type='tel'],
.field input[type='search'],
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #b9c0b9;
  font-size: 0.95rem;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 22px;
  line-height: 1.3;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 0.9rem;
  font-weight: 550;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}
.check:has(input:checked) {
  background: var(--mint);
  box-shadow: inset 0 0 0 2px var(--brand);
}
.check:has(input:focus-visible) {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.checks--stack {
  display: grid;
}
.checks--stack .check {
  border-radius: 12px;
  padding-block: 10px;
  min-height: 44px;
  white-space: normal;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}
.inline-form .field {
  flex: 1 1 160px;
}

/* ---------- messages ---------- */
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--brand-2);
  font-weight: 550;
}
.flash--err,
.alert {
  background: var(--danger-bg);
  color: #8a1c13;
}
.alert {
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 550;
}
.note {
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff1d6;
  color: #6b4100;
  font-size: 0.9rem;
}
.note--info {
  background: #e7eefc;
  color: #1e3a8a;
}

/* ---------- cards and grids of the other screens ---------- */
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  align-items: start;
}
.cols {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}
.cols > * {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.rowlist {
  display: grid;
  gap: 0;
}
.rowlist > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.rowlist > li:first-child {
  border-top: 0;
  padding-top: 0;
}
.stars {
  color: #b76e00;
  font-weight: 700;
  white-space: nowrap;
}
.bar {
  height: 8px;
  min-width: 60px;
  border-radius: 99px;
  background: var(--line-2);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}
.w0 { width: 0; }
.w10 { width: 10%; }
.w20 { width: 20%; }
.w30 { width: 30%; }
.w40 { width: 40%; }
.w50 { width: 50%; }
.w60 { width: 60%; }
.w70 { width: 70%; }
.w80 { width: 80%; }
.w90 { width: 90%; }
.w100 { width: 100%; }
.token {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font: 500 0.9rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

/* ---------- login ---------- */
.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px 16px;
  background: var(--ink);
}
.login__card {
  display: grid;
  gap: 20px;
  width: min(100%, 420px);
  padding: 32px 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.login__card .logo {
  color: var(--ink);
  font-size: 1.15rem;
}
.login__card h1 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* ---------- narrow screens ---------- */
@media (max-width: 1100px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .app__side {
    display: none;
  }
  .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: block;
    background: var(--ink);
    color: #c9d3cd;
  }
  .topbar > details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    list-style: none;
    cursor: pointer;
  }
  .topbar > details > summary::-webkit-details-marker {
    display: none;
  }
  .topbar .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.1);
    color: #fff;
    font-weight: 600;
  }
  .topbar .app__nav {
    padding: 4px 12px 12px;
  }
  .topbar .app__user {
    margin: 0 12px 14px;
  }
  .app__main {
    padding: 18px 16px 40px;
  }
  .app__body,
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .pagehead h1 {
    font-size: 1.45rem;
  }
  .searchbox {
    flex: 1 1 100%;
  }
  .searchbox input {
    width: 100%;
    flex: 1;
  }
  .filters label {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }
  .filters select {
    width: 100%;
    max-width: none;
  }
  .panel {
    padding: 20px 18px;
  }
  .kpi {
    padding: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
