/* HOURS-1 screens (pictures 1-5): the house dark look from tokens.css; big
   type, big targets, blue for the live code, amber for a flag. */
.hr-main { padding: 16px; max-width: 560px; margin: 0 auto; }
.hr-es { display: block; font-style: italic; font-size: 0.82em; opacity: 0.75; font-weight: normal; letter-spacing: normal; text-transform: none; }
.hr-label { color: var(--accent, #1e90ff); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 800; font-size: 0.9rem; margin: 18px 0 6px; }
.hr-crew { font-size: 3.2rem; font-weight: 900; line-height: 1; }
.hr-card { border: 2px solid rgba(255,255,255,0.18); border-radius: 14px; padding: 14px; margin: 10px 0; background: rgba(255,255,255,0.03); }
.hr-card--live { border-color: var(--accent, #1e90ff); }
.hr-card--ok { border-color: #3ddc84; }
.hr-card--flag { border-left: 6px solid #f5a623; }
.hr-big { font-size: 1.35rem; font-weight: 800; }
.hr-btn { display: block; width: 100%; min-height: 64px; margin: 10px 0; border-radius: 14px; font-size: 1.25rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.hr-btn--go { border: 3px solid #3ddc84; background: #04170b; color: #fff; }
.hr-btn--blue { border: 3px solid var(--accent, #1e90ff); background: #06203d; color: #fff; }
.hr-btn--plain { border: 2px solid rgba(255,255,255,0.4); background: transparent; color: #fff; }
.hr-small-btn { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 2px solid rgba(255,255,255,0.4); background: transparent; color: #fff; font-weight: 700; margin: 4px 4px 4px 0; }
.hr-small-btn[aria-pressed="true"] { border-color: var(--accent, #1e90ff); background: #06203d; }
.hr-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hr-chip { border: 2px solid var(--accent, #1e90ff); border-radius: 14px; padding: 8px 14px; background: #06203d; }
.hr-chip--wait { border-style: dashed; border-color: rgba(255,255,255,0.4); background: transparent; opacity: 0.8; }
.hr-chip b { display: block; font-size: 1.15rem; }
.hr-code { display: flex; justify-content: center; margin: 14px 0; }
.hr-code canvas, .hr-code img { background: #fff; padding: 14px; border-radius: 14px; width: 260px; height: 260px; image-rendering: pixelated; }
/* HOURS-1b: the QR as wide as the phone allows (arm's length), the 30 s ring */
#hc-code canvas { width: min(88vw, 420px); height: min(88vw, 420px); padding: 0; }
.hr-ringrow { display: flex; align-items: center; gap: 10px; }
.hr-ring { width: 36px; height: 36px; flex: none; transform: rotate(-90deg); }
.hr-ring circle { fill: none; stroke-width: 4; }
.hr-ring-bg { stroke: rgba(255,255,255,0.18); }
.hr-ring-fg { stroke: var(--accent, #1e90ff); transition: stroke-dashoffset 0.9s linear; }
textarea.hr-input { width: 100%; padding: 10px; font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; }
.hr-codetext { font-family: ui-monospace, Menlo, monospace; font-size: 0.7rem; word-break: break-all; opacity: 0.7; }
.hr-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.hr-flag { display: inline-block; border: 1.5px solid #f5a623; color: #f5a623; border-radius: 8px; padding: 2px 8px; margin: 4px 4px 0 0; font-size: 0.9rem; font-weight: 700; }
.hr-amber { color: #f5a623; }
.hr-alert { color: #f5a623; font-weight: 700; }
.hr-red { border-color: #ff4d4d !important; color: #ff4d4d; }
.hr-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hr-tile { text-align: center; border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 10px 4px; }
.hr-tile b { display: block; font-size: 2rem; }
.hr-video { width: 100%; border-radius: 14px; background: #000; }
.hr-input { min-height: 44px; font-size: 1.1rem; border-radius: 10px; padding: 0 10px; }
.hr-status { font-weight: 700; margin: 8px 0; }
/* the Home band (index.html #home-hours, hours-row.js) */
.hr-band { display: flex; gap: 10px; margin: 8px 0 12px; }
.hr-band[hidden], .hr-band-row[hidden], .hr-band-row[data-sec-off] { display: none; }
.hr-band-row { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 64px; border: 3px solid #3ddc84; border-radius: 14px; background: #04170b; color: #fff; font-size: 1.2rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.hr-band-row#home-hours-code, .hr-band-row#home-hours-pod { border-color: var(--accent, #1e90ff); background: #06203d; }
/* hours-s6 (ADR 0037 am. 2 §3): Back, the stored line's hurricane, the week
   strip, the crew cards, the confirm and sign-out sheets */
.hr-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px 0 0; color: #fff; font-weight: 800; text-decoration: none; }
@keyframes hr-hspin { to { transform: rotate(-360deg); } }
.hr-stored::before { content: ""; display: inline-block; width: 22px; height: 22px; margin-right: 8px; vertical-align: middle; background: url(img/hurricane-512.png) center / contain no-repeat; animation: hr-hspin 1.2s linear infinite; }
.hr-dots { display: flex; justify-content: space-between; gap: 6px; margin: 12px 0 4px; }
.hr-dot { flex: 1; min-height: 44px; border-radius: 22px; border: 2px solid rgba(255,255,255,0.4); background: transparent; color: #fff; font-weight: 800; }
.hr-dot--closed { background: var(--accent, #1e90ff); border-color: var(--accent, #1e90ff); }
.hr-dot--open { border-color: #fff; }
.hr-dot--late { border-color: #ff4d4d; color: #ff4d4d; }
.hr-dot[aria-pressed="true"] { outline: 3px solid #fff; outline-offset: 2px; }
/* hours-s9 RED A (POD-OVERFLOW-MEASURED): the card also carries .hr-card's
   padding + border; border-box keeps it inside the 390 px screen so the
   layout viewport does not widen and the tab bar labels stay in view */
.hr-crewcard { display: block; width: 100%; box-sizing: border-box; text-align: left; color: #fff; font: inherit; min-height: 88px; cursor: pointer; }
.hr-status-word { font-size: 1.35rem; font-weight: 900; margin: 6px 0; }
.hr-status-word.hr-late { color: #ff4d4d; }
.hr-me { display: flex; gap: 10px; }
.hr-me .hr-small-btn { flex: 1; min-height: 56px; }
.hr-link { display: block; min-height: 44px; line-height: 44px; color: var(--accent, #1e90ff); font-weight: 800; text-decoration: none; }
.hr-mark { font-size: 0.85rem; opacity: 0.75; font-style: italic; margin-left: 6px; }
.hr-pd .hr-small-btn { min-height: 48px; min-width: 64px; }
.hr-btn:disabled { opacity: 0.45; }
.hr-sheet { position: fixed; inset: auto 0 0 0; z-index: 2147482000; background: #0b0f14; border-top: 3px solid var(--accent, #1e90ff); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.hr-sheet[hidden] { display: none; }
.hr-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hr-table th, .hr-table td { border-bottom: 1px solid rgba(127,127,127,0.3); padding: 6px 8px; text-align: left; }
/* hours-s8 (picture 02): Late add - one field per line, each label on its own
   line above its box, every box full width */
#hd-add label { display: block; margin: 14px 0 6px; }
#hd-add .hr-input { display: block; width: 100%; box-sizing: border-box; }
/* hours-s8 (picture 01): the last line clears the bottom tab bar. --bb-h is
   the bar's painted height and already carries the safe area (storm-look.css
   cand-board3: no second env() term while the bar is up). */
html.bb-on .hr-main { padding-bottom: calc(var(--bb-h, 0px) + 16px); }
html:not(.bb-on) .hr-main { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
