:root { font-family: system-ui, sans-serif; color: #17212b; background: #f5f6f8; font-size: 15px; }
* { box-sizing: border-box; }
body { margin: 0; }
header { background: white; border-bottom: 1px solid #dde1e7; padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
header strong { font-size: 20px; }
#account { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
main { max-width: 1320px; margin: auto; padding: 24px; }
h1 { margin-top: 0; font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
p { line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button { padding: 9px 14px; border: 1px solid #c7ced8; border-radius: 5px; background: white; cursor: pointer; color: inherit; }
button:hover { background: #eef2f7; } button:disabled { opacity: .5; cursor: wait; }
button.primary, nav button.active { background: #233d69; color: white; border-color: #233d69; }
button.danger { color: #9d2020; } button.small { padding: 5px 9px; font-size: 13px; }
a { color: #234f95; overflow-wrap: anywhere; }
nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
label { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; }
input, select, textarea { width: 100%; border: 1px solid #bdc6d1; padding: 10px; border-radius: 4px; background: white; color: inherit; }
textarea { min-height: 90px; resize: vertical; }
input:focus, button:focus-visible, select:focus, textarea:focus { outline: 3px solid #a8c8f4; outline-offset: 2px; }
[hidden] { display: none !important; }
.card { background: white; border: 1px solid #dde1e7; border-radius: 7px; padding: 20px; margin-bottom: 20px; }
.login { max-width: 420px; margin: 50px auto; }
.muted { color: #647183; font-size: 14px; }
.metrics, .grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 16px; }
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics .value { display: block; font-size: 27px; font-weight: 650; margin-top: 10px; }
.toolbar, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.toolbar input { max-width: 300px; } .toolbar select { width: auto; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid #dde1e7; border-radius: 5px; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { border-bottom: 1px solid #e7eaf0; padding: 12px 14px; font-size: 14px; vertical-align: top; }
th { background: #f9fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td.wrap { white-space: normal; min-width: 160px; max-width: 450px; overflow-wrap: anywhere; }
.badge { display: inline-block; background: #eaf0f7; border-radius: 4px; padding: 3px 7px; font-size: 12px; }
.warning { background: #fff0ce; color: #77520b; }
#notice { padding: 12px 16px; border: 1px solid #bbd0ee; background: #edf4ff; margin-bottom: 20px; border-radius: 5px; overflow-wrap: anywhere; }
#notice.error { background: #fff0f0; border-color: #ecc3c3; color: #952020; }
.pager { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.order-page { max-width: 800px; } .order-item { padding: 18px 0; border-bottom: 1px solid #ddd; }
code { font-size: 13px; overflow-wrap: anywhere; } pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) { main { padding: 16px; } header { padding: 16px; } .metrics { grid-template-columns: 1fr 1fr; } .metrics .value { font-size: 22px; } }
