:root { color-scheme: dark; font-family: system-ui, -apple-system, sans-serif; background: #101723; color: #e6edf6; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header, main { max-width: 1320px; margin: auto; padding: 24px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h1 { margin: 6px 0; font-size: 30px; }
h1 small { font-size: 13px; font-weight: 500; color: #a5b4cc; }
h2 { font-size: 18px; margin: 0 0 16px; }
p { color: #b7c4d7; font-size: 14px; line-height: 1.6; }
.eyebrow { color: #7dd3c7; font-size: 11px; letter-spacing: 2px; font-weight: 700; }
.card { background: #192334; border: 1px solid #2c3b51; border-radius: 12px; padding: 24px; margin-bottom: 20px; }
.login { max-width: 460px; margin: 40px auto; }
.banner, #notice { padding: 15px 20px; border-radius: 8px; background: #253e3b; color: #a5f3d9; margin-bottom: 20px; line-height: 1.6; }
.banner.warning, #notice.error { background: #4d3420; color: #fed7aa; }
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.summary span { display: block; color: #a5b4cc; font-size: 13px; margin-bottom: 12px; }
.summary strong { font-size: 21px; overflow-wrap: anywhere; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-heading h2 { margin: 0; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; font-size: 13px; color: #bdcbe0; }
input, select, textarea { font: inherit; color: #e6edf6; background: #101a29; border: 1px solid #3b4f6b; border-radius: 6px; padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid #69cdbd; outline-offset: 1px; }
button { font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; padding: 11px 16px; border-radius: 6px; background: #72d9c6; color: #10232b; }
button:hover { filter: brightness(1.1); }
button:disabled { opacity: .5; cursor: wait; }
button.secondary { background: #26354b; color: #d9e6fa; border-color: #3b4f6b; }
button.danger { background: #4c2932; color: #fecdd3; }
#account { display: flex; gap: 16px; align-items: center; }
.row { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 16px; }
.hint { color: #96a9c3; font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { color: #95aac4; font-weight: 500; }
th, td { padding: 14px 10px; border-bottom: 1px solid #2c3b51; vertical-align: top; }
td small { display: block; color: #96a9c3; margin-top: 6px; }
.actions { display: flex; gap: 8px; }
.actions button { padding: 7px 10px; }
.audit { padding-left: 18px; font-size: 12px; color: #b7c4d7; line-height: 1.8; max-height: 260px; overflow: auto; }
dialog { background: #192334; color: #e6edf6; border: 1px solid #3b4f6b; border-radius: 12px; width: min(1000px, 94vw); padding: 24px; }
dialog::backdrop { background: #000b; }
textarea { min-height: 400px; font-family: ui-monospace, monospace; font-size: 12px; margin-bottom: 16px; }
@media (max-width: 850px) { .summary { grid-template-columns: 1fr 1fr; gap: 12px; } .grid, .row { grid-template-columns: 1fr; } header, main { padding: 16px; } .section-heading { flex-wrap: wrap; } }
