/* The private admin page (part 9). It uses the site's colors (style.css tokens); always in day mode. */
.top .back { margin-inline-start: auto; color: var(--on-navy); }   /* light on the navy bar */
main.admin { max-width: 1000px; margin: 0 auto; padding: 16px; }
.login { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; max-width: 520px; margin: 40px auto; }
.login input { flex: 1; font-size: 16px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
.login button { font-size: 15px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--gold-light); cursor: pointer; }
.login .status { flex-basis: 100%; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 12px; }
.tabs button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 14px; }
.tabs button.on { background: var(--accent); color: var(--gold-light); border-color: var(--accent); }
.tabs .count { background: #c0392b; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; margin-inline-start: 4px; }
.view h2 { font-size: 18px; margin: 4px 0 6px; }
.view .help { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.row { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; background: var(--card); }
.row .meta { margin: 2px 0 6px; }
.row .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.row .actions button, .form button { background: #fff; border: 1px solid var(--accent); color: var(--accent); border-radius: 6px;
  padding: 3px 10px; cursor: pointer; font-size: 13px; }
.row .actions button.danger { border-color: #c0392b; color: #c0392b; }
.row textarea, .row input, .form input, .form textarea { width: 100%; font: inherit; font-size: 15px; padding: 5px 8px;
  border: 1px solid var(--line); border-radius: 6px; margin: 3px 0; }
.row .orig { font-family: var(--font-text); font-size: 17px; line-height: 1.7; border: none; padding: 0; margin: 4px 0; }
.tag { font-size: 12px; border-radius: 4px; padding: 0 6px; }
.tag.ai { background: #fff4dc; color: #7a4a00; }
.tag.ok { background: #e7f5ea; color: #22622f; }
.tag.off { background: #f3e1e1; color: #8a2a2a; }
table.simple { border-collapse: collapse; width: 100%; font-size: 14px; }
table.simple th, table.simple td { border-bottom: 1px solid var(--line); padding: 4px 6px; text-align: start; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; border-bottom: 1px solid var(--line); margin: 6px 0 2px; }
.bars div { flex: 1; background: var(--accent); min-height: 1px; position: relative; }
.bars div span { position: absolute; top: -16px; inset-inline: 0; text-align: center; font-size: 10px; color: var(--muted); }
.cards { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cards .box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 150px; background: var(--card); }
.cards .box b { display: block; font-size: 24px; }
.pager { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.form { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; background: #fff; }

/* today / 7 days / this month (owner, 2026-10-23) */
.periods { border-collapse: collapse; margin: 6px 0 4px; min-width: min(100%, 520px); background: var(--card); }
.periods th, .periods td { border: 1px solid var(--line); padding: 8px 12px; text-align: center; }
.periods tr:first-child th { background: var(--bg); font-size: 14px; }
.periods td { font-size: 20px; font-weight: 700; }
.periods th:first-child { text-align: start; font-weight: 500; }
