/* ============================================================================
   AirLog (Air Compressor Logger): ONLY what is AirLog's own. Written 2026-11-12.
   🔴 ONE SUITE: everything shared comes from the parent, as DiveCalc's divecalc.css says:
        /assets/css/toolbox.css   the site (tokens, type, .wrap, .badge, .notice)
        /assets/css/watb-app.css  every app (the app bar, forms, the footer band)
      Nothing here restates a token or restyles a shared part.
   🔴 RED IS ALLOWED HERE, AND ONLY FOR AN OVERDUE CLOCK (Paul, 2026-11-14: "want RED"; the root CLAUDE.md's one exception
      to "red only for 5xx"). Nowhere else in AirLog.
   ========================================================================= */

/* AirLog's accent: cyan (toolbox.css --accent-air). */
body.app--airlog { --accent: var(--accent-air); --tint: var(--accent-air); }

/* The title, and the ⋯ beside it to the settings ("My compressor"). */
.title { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .7rem; }
.title h1 { margin: 0; }
.title__more {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.4rem; height: 2.4rem;
  border: 1px solid rgba(88, 110, 117, .6); border-radius: 50%; color: var(--base1); font-size: 1.4rem; line-height: 1;
  text-decoration: none;
}
.title__more:hover, .title__more:focus-visible { border-color: var(--accent); color: var(--base2); text-decoration: none; }
.lifetime { color: var(--text-muted); margin: .35rem 0 1rem; }
.timer { font-size: 1.15rem; color: var(--text-strong, var(--base1)); }
.timer [data-clock] { font-variant-numeric: tabular-nums; font-weight: 600; }

/* The three counters, SIDE BY SIDE (Paul, 2026-11-13: "run across the page left to right"): the label, the time under it,
   then "over" when overdue. ⚠️ ON THE PAGE BACKGROUND, NOT A RAISED CARD, AND THE TIME IS LARGE TEXT (bold, never under
   1.1875rem = 19px), both on purpose: red #dc322f is 3.25:1 on --base03 but 2.81:1 on --base02, and WCAG AA for large text
   (bold from 18.66px) is 3:1. Three across on a 375px phone leaves each about 88px: "379:15:00" fits at 17px, so only a red
   time keeps the 19px floor (measured in Chrome, 2026-11-13). The colour is never the only signal: overdue also says OVER, in a neutral colour so it
   reads at its small size. */
.counters { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.counter {
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-width: 0;
  border: 1px solid rgba(88, 110, 117, .45); border-top: 4px solid var(--counter); border-radius: var(--radius-sm, 6px); padding: .6rem .8rem;
}
.counter--green  { --counter: var(--green); }
.counter--yellow { --counter: var(--yellow); }
.counter--red    { --counter: var(--red); }
.counter__label { color: var(--text-raised); font-size: 14px; }
/* Green and yellow pass AA at any size (4.7:1), so they shrink with a phone; 🔴 red never goes under 19px bold (above). */
.counter__time { font-size: clamp(1rem, 4.6vw, 2rem); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--counter); }
.counter--red .counter__time { font-size: clamp(1.1875rem, 4.6vw, 2rem); }
.counter__over { font-size: 12px; font-weight: 700; color: var(--base1); text-transform: uppercase; letter-spacing: .06em; }

/* The buttons: one form each, SIX ACROSS where they fit (Paul, 2026-11-13), three across on a phone. The look is the suite's
   (.app button, .btn), a little tighter so "Reset filter change" fits two lines. */
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0 0 1rem; }
@media (min-width: 760px) { .actions { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.actions .action { margin: 0; display: flex; }
/* ⚠️ body.app.app--airlog … .action button (0,4,2) so it out-ranks the suite's `.app button:not(…):not(…):not(…)` (0,4,1)
   without !important. Measured: one class fewer and the suite's pill shape and padding win. */
body.app.app--airlog .actions .action button, body.app.app--airlog .actions .btn {
  width: 100%; min-height: 3.25rem; box-sizing: border-box; justify-content: center; text-align: center;
  padding: .45rem .5rem; font-size: 14px; line-height: 1.25;
}
.actions button[disabled], .actions .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
/* Three across, a label can take two or three lines, and the suite's pill becomes a blob: a rounded rectangle there. */
@media (max-width: 759px) { body.app.app--airlog .actions .action button, body.app.app--airlog .actions .btn { border-radius: var(--radius-sm, 6px); } }
@media (max-width: 420px) {
  .counters, .actions { gap: .4rem; }
  .counter { padding: .5rem .55rem; }
}

/* The forms' rows (every field its own row) moved to the suite's watb-app.css on 2026-11-14, unchanged: DiveSites
   needed the same, and two apps needing one thing means it is the parent's (root CLAUDE.md, ONE SUITE). */

/* The log. */
.log { list-style: none; margin: 1rem 0; padding: 0; }
.entry { padding: .6rem 0; border-bottom: 1px solid rgba(88, 110, 117, .4); display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; }
.entry__when { color: var(--text-raised); font-variant-numeric: tabular-nums; }
.entry__label { font-weight: 600; }
.entry__length { font-variant-numeric: tabular-nums; }
.entry__bleeds { flex-basis: 100%; color: var(--text-muted); font-size: .9rem; }
.entry__delete { margin-left: auto; font-size: .9rem; }
.empty { color: var(--text-muted); }

/* The logbook statement, on every page (spec §8). */
.appfoot .statement { max-width: 40rem; margin: 0 auto; padding: 1rem; font-size: .9rem; color: var(--text-muted); text-align: center; }
