:root { font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; color: #202e30; background: #f3f5f1; font-size: 18px; line-height: 1.55; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; min-height: 48px; border: 1px solid transparent; border-radius: 12px; padding: 10px 18px; font-weight: 700; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, input:focus-visible, label:has(input:focus-visible) { outline: 3px solid #a05c1c; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.9rem; line-height: 1.2; letter-spacing: -.05em; }
h2 { font-size: 1.45rem; line-height: 1.4; letter-spacing: -.04em; }
h3 { font-size: 1.15rem; overflow-wrap: anywhere; }
.shell { max-width: 1180px; margin: auto; padding: 28px 32px; }
.masthead, .session-tools, .freshness, .section-heading, .month-navigation { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.masthead { margin-bottom: 22px; }
.eyebrow { color: #4d6c62; font-size: .8rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 5px; }
.role-label { font-size: .9rem; font-weight: 700; }
.quiet { background: #fff; border-color: #c9d5ce; color: #234c3e; }
.quiet:hover:not(:disabled) { background: #e8f0e9; }
.primary { background: #205a45; color: #fff; }
.primary:hover:not(:disabled) { background: #164634; }
.message { color: #8d331e; font-weight: 700; margin: 0 0 16px; }
.message:empty { display: none; }
.login-panel, .empty-panel { background: #fff; padding: 32px; border: 1px solid #dbe2dc; border-radius: 22px; max-width: 540px; margin: 8vh auto; }
.login-panel h2 { margin-bottom: 24px; }
.role-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 24px; padding: 0; border: 0; }
.role-options label { border: 2px solid #d9e1db; border-radius: 12px; padding: 14px 12px; text-align: center; cursor: pointer; font-size: 1.1rem; font-weight: 700; }
.role-options label:has(input:checked) { background: #e9f4ec; border-color: #205a45; color: #164634; }
.role-options input { margin-right: 8px; accent-color: #205a45; }
.password-label { display: block; font-weight: 700; margin-bottom: 8px; }
#password { width: 100%; min-height: 54px; padding: 10px 14px; border: 1px solid #98ada1; border-radius: 10px; margin-bottom: 18px; }
#login-button { width: 100%; }
.hint { font-size: .88rem; color: #586b62; }
.login-panel .hint { margin-top: 20px; }
.freshness { padding: 16px 20px; border: 1px solid #d7e1d8; border-radius: 16px; background: #e8eee6; }
.freshness p { font-size: .88rem; }
.freshness p:first-child { font-weight: 700; }
.data-age { display: inline-block; }
.snapshot-hint { margin: 12px 2px 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; background: #e2e8e1; border-radius: 15px; margin-bottom: 30px; gap: 5px; }
.tabs button { color: #4b6357; background: transparent; font-size: 1.08rem; }
.tabs button[aria-selected="true"] { background: #fff; color: #174c38; box-shadow: 0 2px 4px #203a2512; }
.section-heading { align-items: end; margin-bottom: 16px; }
.subheading { display: block; font-size: .88rem; color: #626b50; font-weight: 500; }
.period { font-size: .9rem; color: #53675b; text-align: right; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid #dce3db; border-radius: 18px; padding: 22px; min-width: 0; }
.today-card { background: #fbfaf2; border-color: #e2dec5; }
.card h3 { margin-bottom: 14px; }
.today-state { color: #6e612a; font-size: .88rem; margin-bottom: 8px; }
.state-badge { display: inline-flex; width: fit-content; max-width: 100%; padding: 5px 11px; border-radius: 999px; font-size: .9rem; font-weight: 700; }
.state-badge.ongoing { color: #205a45; background: #e5f1e5; }
.state-badge.completed { color: #28577f; background: #e7effa; }
.state-badge.missing { color: #53634f; background: #e9ede6; }
.arrival { font-size: .95rem; margin-bottom: 7px; }
.total-label { font-size: .88rem; color: #5a6e62; }
.duration { font-size: 1.65rem; line-height: 1.4; font-weight: 800; color: #174c38; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.no-data { color: #758174; font-weight: 600; font-size: 1.16rem; }
.elapsed { color: #574b1d; }
.week-section { margin-top: 32px; }
.weekend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid #e7ece6; margin-top: 18px; padding-top: 14px; }
.day-box { border-radius: 10px; padding: 10px 12px; background: #f0f5fa; min-width: 0; }
.day-box.sunday { background: #fbf0eb; }
.day-label { color: #315e86; font-size: .88rem; margin-bottom: 4px; font-weight: 700; }
.sunday .day-label { color: #9a4b31; }
.day-value { font-size: 1.04rem; font-weight: 700; overflow-wrap: anywhere; }
.day-value.no-data { font-size: .95rem; }
.weekend-total { margin-top: 12px; font-size: .85rem; color: #5b6f62; }
.month-navigation { margin-bottom: 14px; }
.month-navigation h2 { text-align: center; }
#month-period { margin: 0 0 20px; }
.owner-metrics { margin-top: 18px; border-top: 1px dashed #ccd9ce; padding-top: 14px; }
.owner-heading { font-size: .8rem; font-weight: 700; color: #54725e; margin-bottom: 8px; }
.metric-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .92rem; }
.metric-unavailable { word-break: keep-all; }
.notes { margin: 12px 0 0; padding-left: 20px; color: #5b6657; font-size: .88rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.footnote { font-size: .82rem; color: #637161; margin: 26px 2px 0; }
.empty-panel { max-width: none; margin: 24px auto; text-align: center; }
.empty-panel p { margin: 12px 0 22px; }
footer { text-align: center; font-size: .8rem; color: #71816f; padding: 28px 0 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 900px) { .today-cards .card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; } .today-cards .card h3 { grid-column: 1 / -1; } .today-cards .today-state { grid-column: 1 / -1; } }
@media (max-width: 620px) {
  :root { font-size: 18px; }
  .shell { padding: 20px 16px; }
  .masthead { align-items: start; }
  h1 { font-size: 1.65rem; }
  .session-tools { flex-direction: column; align-items: end; gap: 5px; }
  .session-tools button { min-height: 44px; padding: 6px 12px; font-size: .88rem; }
  .login-panel { margin: 32px auto; padding: 24px 20px; }
  .freshness { flex-direction: column; align-items: start; padding: 15px; gap: 10px; }
  .freshness button { min-height: 44px; padding: 8px 13px; font-size: .88rem; }
  .tabs { margin-bottom: 24px; }
  .tabs button { padding: 10px 6px; font-size: 1rem; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 19px; }
  .section-heading { align-items: start; flex-direction: column; gap: 7px; }
  .period { text-align: left; }
  .duration { font-size: 1.6rem; }
  .month-navigation { gap: 7px; }
  .month-navigation h2 { font-size: 1.15rem; }
  .month-navigation button { font-size: .85rem; padding: 10px; }
}
