:root { color-scheme: dark; font-family: "Segoe UI", "Malgun Gothic", sans-serif; color: #e7eef8; background: #09111d; font-size: 14px; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; align-items: center; justify-content: space-between; padding: 28px 4vw; border-bottom: 1px solid #26344a; background: #101b2b; }
h1 { margin: 6px 0 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -1px; }
h2 { margin: 0 0 16px; font-size: 18px; }
h3 { font-size: 14px; color: #9eafc7; }
p { color: #9eafc7; line-height: 1.7; }
main { max-width: 1600px; margin: auto; padding: 24px 4vw; }
button { padding: 12px 18px; border: 1px solid transparent; border-radius: 8px; background: #3de0b4; color: #08251d; font: inherit; font-weight: 700; cursor: pointer; }
button:hover { filter: brightness(1.1); }
button:disabled { opacity: .4; cursor: not-allowed; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #61b1ff; outline-offset: 3px; }
input, select { width: 100%; padding: 11px; margin: 7px 0 14px; border: 1px solid #354660; border-radius: 6px; background: #101b2b; color: #eef5ff; font: inherit; }
label { display: block; color: #b9c8dd; font-size: 13px; }
a { color: #66bcff; text-decoration: none; }
small { color: #9eafc7; }
canvas { width: 100%; display: block; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-variant-numeric: tabular-nums; }
th, td { padding: 13px 14px; text-align: right; border-bottom: 1px solid #233249; }
th { color: #8d9eb7; font-size: 12px; font-weight: 600; }
th:first-child, td:first-child { text-align: left; }
footer { text-align: center; color: #7f92af; padding: 22px; font-size: 12px; }
dialog { color: #e7eef8; background: #162338; border: 1px solid #ff8c8c; border-radius: 12px; width: min(600px, 94vw); padding: 26px; }
dialog::backdrop { background: #000b; }
dt { color: #99acc7; }
dd { margin: 4px 0 13px; }
.eyebrow { font-size: 11px; letter-spacing: 2px; color: #5be9bf; }
.header-status { display: flex; align-items: center; gap: 16px; color: #9eafc7; }
.control-panel { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: #142338; padding: 22px; border: 1px solid #2e4360; border-radius: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-block; margin-right: 14px; padding: 6px 12px; background: #184b42; color: #61e9c4; border-radius: 6px; font-weight: 700; }
.badge.live { color: #ffd4a2; background: #744112; }
.secondary { background: #243952; color: #dfebff; border-color: #3a5577; }
.danger { background: #5d2631; color: #ffbfc8; border-color: #944455; }
.live-button { background: #f8b861; color: #3e2300; }
.ghost { background: transparent; color: #a7bcd7; border-color: #2b405a; }
.notice { background: #122e40; border-left: 3px solid #5ab7ed; padding: 12px 16px; margin: 18px 0; color: #aed4ec; }
.message { color: #ffd293; padding: 8px 0; min-height: 24px; }
.mode-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 12px 0 20px; }
.selected { background: #416591; color: #fff; }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.metric { padding: 18px; background: #121f31; border: 1px solid #26364e; border-radius: 10px; }
.metric-label { color: #8ea5c2; font-size: 12px; }
.metric-value { font-size: clamp(18px, 2vw, 25px); margin-top: 8px; font-variant-numeric: tabular-nums; }
.positive { color: #51deb7; }
.negative { color: #ff8797; }
.panel { background: #121f31; border: 1px solid #26364e; border-radius: 10px; padding: 22px; margin-bottom: 20px; min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head span { color: #8fa4bd; font-size: 12px; }
.section-head select { max-width: 145px; }
.table-scroll { overflow-x: auto; }
.chart-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.legend { color: #89a2bf; font-size: 11px; padding-top: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 18px; }
.check { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.check input { width: 18px; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 0 24px; }
.inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.inline-form label { min-width: 140px; }
.report-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.logs { font-size: 12px; color: #a5b8d2; max-height: 260px; overflow: auto; }
.log-line { padding: 8px 0; border-bottom: 1px solid #24334a; }
.daily { display: grid; gap: 8px; max-height: 130px; overflow: auto; }
.daily-row { display: flex; justify-content: space-between; font-size: 12px; }
.login-page { min-height: 100vh; display: grid; place-items: center; }
.login-card { max-width: 420px; margin: 30px; padding: 36px; background: #162338; border: 1px solid #304764; border-radius: 14px; }
.login-card button { width: 100%; }
.error { color: #ff96a7; }
.today-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 4px 0 18px; color: #b9c8dd; }
.today-summary strong { font-size: clamp(21px, 3vw, 30px); font-variant-numeric: tabular-nums; color: #e7eef8; }
.today-summary strong.positive { color: #51deb7; }
.today-summary strong.negative { color: #ff8797; }
.today-note { margin: 12px 0 0; font-size: 12px; }
@media (max-width: 1100px) { .metrics { grid-template-columns: repeat(3, 1fr); } .field-grid { grid-template-columns: repeat(3, 1fr); } .control-panel { align-items: flex-start; flex-direction: column; } }
@media (max-width: 760px) { header { padding: 18px; } main { padding: 16px 12px; } .metrics { grid-template-columns: repeat(2, 1fr); } .chart-grid { grid-template-columns: 1fr; gap: 0; } .field-grid { grid-template-columns: repeat(2, 1fr); } .header-status { flex-direction: column; font-size: 11px; gap: 6px; } .panel { padding: 16px; } .actions button { flex: 1 1 42%; } .section-head { align-items: flex-start; } }
@media (max-width: 420px) { .field-grid { grid-template-columns: 1fr; } .metric { padding: 12px; } .section-head span { display: none; } }
