:root { color-scheme: light dark; --accent: #1f6f5c; --line: color-mix(in srgb, currentColor 14%, transparent); }
* { box-sizing: border-box; }
body { font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
       max-width: 46rem; margin: 2.5rem auto; padding: 0 1.25rem; }
header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
h1 { font-size: 1.75rem; margin: 0 0 1rem; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; display: flex; align-items: center; gap: .6rem; }
.n { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%;
     background: var(--accent); color: #fff; font-size: .95rem; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.25rem; margin: 0 0 1rem; }
.warn { border-color: #c0392b; }
.muted { opacity: .75; } .small { font-size: .9rem; }
button.primary {
  font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0;
  border-radius: 999px; padding: .7rem 1.4rem; cursor: pointer; }
button.primary[disabled] { opacity: .5; cursor: progress; }
button.link { font: inherit; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
#status { min-height: 1.5em; margin: .75rem 0 0; }
#status.ok { color: #1e8449; font-weight: 600; } #status.err { color: #c0392b; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
td.ok { color: #1e8449; } td.err { color: #c0392b; }

/* ---- admin ---- */
body.wide { max-width: 68rem; }
nav { font-size: .95rem; }
nav a { color: var(--accent); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
h2.group { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; opacity: .65; margin: 1.25rem 0 .5rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.kpi b { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.kpi span { font-size: .85rem; opacity: .75; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 9rem; padding-top: .5rem; }
.bars i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars.alt i { background: #e08e45; }
.bars i:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: .75rem; background: #222; color: #fff; padding: .15rem .4rem; border-radius: 6px; font-style: normal; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
select { font: inherit; margin-left: .4rem; }
