:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans", sans-serif; color: #172941; background: #eff5fc; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; align-items: center; justify-content: space-between; padding: 16px max(20px, calc((100vw - 1120px) / 2)); background: #103c77; color: #fff; }
.brand { font: 700 25px Georgia, serif; white-space: nowrap; }
#modeBadge { color: #103c77; background: #dcecff; border-radius: 20px; padding: 6px 12px; font-size: .88rem; font-weight: 700; white-space: nowrap; }
main { max-width: 1160px; padding: 24px 20px; margin: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
section { background: white; border: 1px solid #d6e3f4; border-radius: 19px; padding: 24px; }
h1,h2 { margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.55rem); }
h2 { font-size: 1.6rem; }
p { line-height: 1.5; }
.sub { color: #485f7b; margin: 5px 0 16px; font-size: .875rem; }
.identity,.filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
label { display: grid; gap: 5px; font-size: .9rem; font-weight: 650; min-width: 0; }
input,select,button { font: inherit; color: inherit; }
input,select { min-width: 0; width: 100%; min-height: 44px; padding: 7px 8px; border: 1px solid #adc1da; border-radius: 9px; background: #fff; font-size: 1rem; }
button { touch-action: manipulation; cursor: pointer; }
button:disabled { opacity: .56; cursor: default; }
:focus-visible { outline: 3px solid #1868aa; outline-offset: 3px; }
.actions { display: grid; gap: 9px; }
.actions button { display: flex; align-items: center; justify-content: space-between; text-align: left; min-height: 80px; border-radius: 13px; border: 0; padding: 11px 15px; background: #15529d; color: #fff; }
.actions button[data-metric="pick"] { background: #19447e; }
.actions button[data-metric="style"] { background: #2161a4; }
.actions button:active:not(:disabled) { filter: brightness(.82); }
.actions strong { display: block; font-size: 1.38rem; }
.actions small { display: block; font-size: .875rem; margin-top: 4px; }
.actions b { font-size: 1.65rem; white-space: nowrap; }
.feedback { display: flex; align-items: center; gap: 8px; margin: 5px 0 10px; min-height: 44px; }
.feedback p { font-size: .875rem; margin: 0; }
details { border-top: 1px solid #d6e3f4; padding-top: 13px; }
summary { cursor: pointer; font-weight: 650; }
ul { padding: 0; list-style: none; margin: 9px 0 0; }
li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; }
li + li { border-top: 1px solid #eff5fc; }
li button,#retry,.tabs button { min-height: 44px; border: 1px solid #b9cce3; border-radius: 8px; background: #fff; padding: 5px 9px; }
li button { margin: 4px 0; }
.totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 12px 0 16px; }
.total { border-radius: 11px; background: #e8f2ff; padding: 10px; text-align: center; font-size: .875rem; }
.total strong { display: block; font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.tabs button { font-size: .875rem; padding: 3px; }
.tabs button[aria-pressed="true"] { color: #fff; background: #103c77; border-color: #103c77; }
#reportStatus { margin: 10px 0 6px; }
#periodHeading { margin: 16px 0 0; font-size: 1.12rem; }
#hourly { margin-top: 14px; }
caption { text-align: left; font-weight: 650; padding: 5px 0 8px; }
.store-total { font-weight: 700; background: #e8f2ff; }
.table { max-height: 415px; overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; font-variant-numeric: tabular-nums; }
th,td { text-align: right; padding: 9px 5px; border-bottom: 1px solid #dbe7f6; }
th { position: sticky; top: 0; background: #e8f2ff; }
th:first-child,td:first-child { text-align: left; }
.csv { display: inline-block; margin-top: 14px; color: #174f96; font-weight: 650; font-size: .9rem; }
[hidden] { display: none !important; }
@media (max-width: 800px) { main { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 460px) { main { padding: 12px; gap: 12px; } section { padding: 15px; } .filters { grid-template-columns: 1fr 1fr; } }

.sign-in { max-width: 420px; margin: 24px auto; }
.sign-in form { display: grid; gap: 12px; }
.sign-in button, #logout { min-height: 48px; padding: 8px 14px; border: 1px solid #adc1da; border-radius: 9px; background: #fff; }

.sign-in button { background: #103c77; color: #fff; border-color: #103c77; }
