[hidden] { display: none !important; }
.admin-main { max-width: 850px; }
.admin-main h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
.admin-main #admin-status:empty, .admin-error:empty { display: none; }
.admin-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid #cddaca;
  border-radius: 11px;
  color: var(--green);
  background: var(--sage);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}
.admin-return:hover { background: #dcebd6; }
.admin-return:disabled { opacity: .55; cursor: default; }
.admin-login {
  display: grid;
  width: min(100%, 360px);
  gap: 12px;
  padding: 22px;
}
.admin-login label { font-weight: 750; }
.admin-login input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid #b5c4b3;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
}
.admin-error { margin: 0; color: #844333; font-weight: 700; }
.report-actions { display: flex; justify-content: end; margin-bottom: 12px; }
.admin-card { margin-top: 16px; padding: clamp(16px, 3vw, 28px); }
.admin-card h2 { margin: 0; font: 400 clamp(2rem, 4vw, 2.6rem)/1.1 var(--serif); }
.admin-card p { color: var(--sub); margin: 7px 0 16px; }
.daily-columns {
  --chart-height: 168px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.daily-columns > p { grid-column: 1 / -1; margin-bottom: 0; }
.chart-y-axis {
  position: relative;
  width: 45px;
  height: var(--chart-height);
  margin-top: 12px;
  color: var(--sub);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.chart-y-axis span { position: absolute; right: 0; transform: translateY(50%); }
.chart-scroll { overflow-x: auto; padding: 12px 0 3px; }
.chart-sheet { position: relative; }
.chart-lines { position: absolute; inset: 0 0 auto; height: var(--chart-height); pointer-events: none; }
.chart-lines span { position: absolute; width: 100%; border-top: 1px solid var(--line); }
.chart-lines span:first-child { border-color: #aeaa99; }
.chart-columns { position: relative; display: grid; list-style: none; margin: 0; padding: 0; text-align: center; }
.chart-column { display: grid; justify-items: center; min-width: 0; font-variant-numeric: tabular-nums; }
.chart-track { display: flex; align-items: end; justify-content: center; width: 100%; height: var(--chart-height); }
.chart-bar { display: block; width: min(68%, 39px); border-radius: 6px 6px 0 0; background: #a45c36; }
.plaque-columns .chart-bar { background: #488159; }
.plaque-columns .chart-y-axis { width: 30px; }
.chart-date { margin-top: 8px; color: var(--sub); font-size: 12px; }
.chart-value { font-size: 13px; font-weight: 750; }
.report-table { overflow-x: auto; margin-top: 14px; }
.report-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.report-table th, .report-table td { text-align: left; padding: 10px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report-table thead { background: var(--sage); }
.report-open, .report-solved { display: inline-block; border-radius: 8px; padding: 3px 7px; font-size: 13px; }
.report-open { background: #f7edda; color: #744b24; }
.report-solved { background: var(--sage); color: var(--green); }
.report-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
@media (max-width: 480px) {
  .daily-columns { --chart-height: 135px; }
  .chart-y-axis { width: 40px; font-size: 11px; }
  .report-table table, .report-table tbody { display: block; }
  .report-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .report-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }
  .report-table tbody :is(th, td) { padding: 0; border: 0; }
  .report-table tbody .report-equation { grid-area: 1 / 1 / 2 / 3; }
  .report-table tbody .report-date { grid-area: 1 / 3; text-align: right; color: var(--sub); font-size: 12px; }
  .report-stat::before { display: block; content: attr(data-label); color: var(--sub); font-size: 12px; }
  .report-state, .report-table td[colspan] { grid-column: 1 / -1; }
  .report-table td[colspan] { white-space: normal; }
}
