:root {
    color-scheme: light;
    font: 16px/1.55 "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
    color: #15263d;
    --blue: #175acf;
    --line: #e2e8f0;
    --muted: #52647b;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #fff; }
.top { border-bottom: 1px solid var(--line); }
.top-inner { max-width: 960px; min-height: 76px; margin: auto; padding: 12px 20px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 15px; }
.home { width: 44px; height: 44px; display: grid; place-items: center; background: #eff5ff; color: #174f9e; border-radius: 12px; }
.logo { display: block; width: auto; height: auto; max-height: 52px; max-width: 100%; object-fit: contain; justify-self: center; }
main { width: 100%; margin: 0 auto; padding: 30px 20px 40px; flex: 1; }
.compact { max-width: 430px; }
.report { max-width: 960px; text-align: center; }
.report .filter { margin-inline: auto; }
.report .filter label { text-align: start; }
.report-results { width: fit-content; max-width: 100%; margin: 28px auto 0; }
#result-date { margin: 0 0 6px; font-size: 1.05rem; text-align: start; }
h1 { margin: 0 0 22px; font-size: 1.65rem; letter-spacing: -.05em; }
.report > h1 {
    width: 100%;
    border-radius: 12px;
    padding: 8px 12px;
    background-color: #0077ed;
    color: #fff;
}
h2 { margin: 28px 0 12px; font-size: 1.05rem; }
.login, .menu { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 700; }
input { font: inherit; min-width: 0; width: 100%; min-height: 46px; padding: 8px 11px; border: 1px solid #b8c6d8; border-radius: 10px; background: #fff; color: inherit; }
.button { min-height: 46px; padding: 10px 18px; display: grid; place-items: center; font: inherit; font-weight: 700; border: 1px solid transparent; border-radius: 12px; text-decoration: none; text-align: center; cursor: pointer; }
.menu .button { min-height: 57px; }
.menu-dialog { width: min(320px, calc(100% - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: 12px; color: inherit; }
.menu-dialog::backdrop { background: rgb(21 38 61 / 45%); }
.menu-dialog h2 { margin: 0 0 8px; }
.menu-dialog p { margin: 0 0 18px; }
.menu-dialog .button { margin-inline-start: auto; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: #124aab; }
.secondary { background: #eff5ff; color: #174f9e; border-color: #d3e3ff; }
.secondary:hover { background: #e1edff; }
.filter { display: grid; gap: 6px 9px; grid-template-columns: minmax(0, 1fr) auto; max-width: 350px; align-items: end; }
.filter label { grid-column: 1 / -1; }
#report-countdown { grid-column: 2; justify-self: center; margin: 0; color: var(--muted); font-size: .9rem; }
#report-countdown span { font-weight: 700; font-variant-numeric: tabular-nums; }
.filter .button:disabled { background: #52647b; cursor: default; }
.filter input[type="date"] { position: relative; text-align: center; }
.filter input[type="date"]::-webkit-date-and-time-value { margin: 0; text-align: center; }
.filter input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    inset-inline-end: 11px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
}
.error { padding: 11px 14px; color: #9d2024; background: #fff2f2; border-radius: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; }
th, td { padding: 10px 9px; text-align: left; white-space: nowrap; }
th { background: #f4f7fc; color: #354c68; }
tbody tr + tr { border-top: 1px solid var(--line); }
.time { font-variant-numeric: tabular-nums; }
.total-time { font-weight: 700; }
.status { display: inline-block; padding: 2px 7px; border-radius: 6px; background: #edf4ff; color: #174f9e; }
.empty { border: 1px solid var(--line); padding: 16px; border-radius: 12px; color: var(--muted); }
.total { margin: 12px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }
.total strong { color: var(--blue); }
footer { padding: 17px 12px max(17px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .75rem; }
footer p { margin: 2px 0; }
footer a { color: #174f9e; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid #4787e5; outline-offset: 2px; }
@media (max-width: 480px) {
    main { padding: 24px 14px 32px; }
    .top-inner { padding: 10px 14px; min-height: 65px; }
}



.header-logout { justify-self: end; margin: 0; }
.icon-button { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 12px; background: #eff5ff; color: #174f9e; cursor: pointer; }
.login-page h1, .login label, .login input, .shortcuts { text-align: center; }
.shortcuts h2 { margin: 20px 0 10px; font-size: .95rem; }
.shortcut-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; }
.shortcut-options details[open] { display: contents; }
.shortcut-options summary { min-width: 105px; min-height: 44px; padding: 6px 10px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; color: #174f9e; font-size: .875rem; font-weight: 700; cursor: pointer; }
.shortcut-options summary::-webkit-details-marker { display: none; }
.shortcut-options p { flex: 0 0 100%; order: 1; margin: 0; padding: 10px; border-radius: 10px; background: #eff5ff; color: #354c68; font-size: .875rem; }
