* { box-sizing: border-box; }
:root { color-scheme: light; font: 16px/1.5 "Segoe UI", system-ui, sans-serif; color: #17283a; background: #edf3f7; }
body { margin: 0; }
header { background: #10263b; color: #fff; }
.bar { max-width: 1360px; margin: auto; padding: .9rem clamp(1rem, 4vw, 3rem); display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-weight: 750; font-size: 1.15rem; color: inherit; text-decoration: none; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .65rem; background: #c6f06e; color: #152b40; }
nav { display: flex; flex-wrap: wrap; gap: 1rem; }
nav a { color: #dbe9f5; text-decoration: none; font-weight: 600; }
nav a:hover, nav a:focus-visible { text-decoration: underline; }
.account { margin-left: auto; display: flex; align-items: center; gap: .85rem; }
small { font-size: .875rem; font-weight: 500; color: #496079; }
.account small { color: #b9cee1; }
main { max-width: 1360px; margin: auto; padding: 2rem clamp(1rem, 4vw, 3rem) 4rem; }
main.signin { max-width: 480px; margin: clamp(1rem, 7vw, 5rem) auto; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 1.5rem; }
h2 { font-size: 1.1rem; letter-spacing: -.01em; }
h3 { font-size: 1.06rem; }
a { color: #075492; }
.panel { min-width: 0; margin: 0; border: 1px solid #cad7e3; border-radius: 1rem; background: #fff; padding: 1.15rem; }
.dashboard, .user-grid, .split { display: grid; gap: 1rem; align-items: start; }
.dashboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.user-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.queue { min-height: 10rem; }
.queue-head, .entry-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.count, .tag { background: #e5f1fa; color: #21496a; border-radius: .45rem; padding: .16rem .55rem; font-size: .875rem; font-weight: 650; }
.tag { display: inline-block; margin-bottom: .4rem; }
.empty, .muted { color: #496079; }
.empty { padding-top: 1rem; }
article { margin-top: .9rem; border-top: 1px solid #d8e3ed; padding-top: .9rem; }
article > p:not(.tag) { color: #496079; }
.entry-foot { margin-top: .75rem; font-size: .875rem; }
.entry-foot a { font-weight: 650; }
.overdue { color: #9f331d; font-weight: 650; }
.stack { display: grid; gap: .9rem; }
.narrow { max-width: 770px; }
legend { font-weight: 750; padding: 0 .4rem; }
label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #8198ad; border-radius: .5rem; padding: .6rem .7rem; background-color: white; color: #17283a; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, #365471 50%), linear-gradient(135deg, #365471 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
button { cursor: pointer; border-radius: .55rem; border: 1px solid transparent; padding: .55rem .95rem; font-weight: 700; background: #124d75; color: white; justify-self: start; }
button:hover { background: #0b3b5d; }
button.quiet { border-color: #758da4; background: transparent; font-size: .875rem; }
:focus-visible { outline: 3px solid #1681be; outline-offset: 3px; }
.user { border-top: 1px solid #d8e3ed; padding-top: .6rem; }
.user form { margin-top: .75rem; }
summary { cursor: pointer; font-weight: 650; }
article details { margin-top: .55rem; font-size: .9rem; }
.details { white-space: pre-wrap; }
.error, .success { padding: .7rem .85rem; margin-bottom: .65rem; border-radius: .55rem; }
.error { background: #fae8e3; color: #8d2416; }
.success { background: #e7f4d1; color: #274817; }
@media (max-width: 850px) { .dashboard { grid-template-columns: 1fr; } .queue { min-height: auto; } }
@media (max-width: 600px) { .user-grid, .split { grid-template-columns: 1fr; } .bar { gap: .8rem 1.1rem; } .account { margin-left: 0; } }
.item-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.status-form { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem; margin-top: .75rem; }
.status-form label { flex: 1 1 8rem; }
.status-form button { font-size: .875rem; }
.status-history { margin: 0; padding: 0; list-style: none; }
.status-history li { padding: .7rem 0; border-top: 1px solid #d8e3ed; }
@media (max-width: 850px) { .item-grid { grid-template-columns: 1fr; } }
.checkbox { display: flex; align-items: center; }
.checkbox input { width: auto; }
.deposit-summary { margin-bottom: .5rem; }
.deposit-amount { font-size: 1.4rem; font-weight: 700; margin-top: .3rem; }
.table-wrap { overflow-x: auto; }
.table-wrap table { border-collapse: collapse; width: 100%; text-align: left; margin-top: .45rem; }
.table-wrap th, .table-wrap td { border-bottom: 1px solid #d8e3ed; padding: .6rem; vertical-align: top; }
.table-wrap td time { white-space: nowrap; }
