* { box-sizing: border-box; }
body { margin: 0; background: #0B0B0C; color: #F2F2F0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: #C6FF4D; }
button, select, input, textarea { font: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 24px 60px; }
header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.logo { font-weight: 700; font-size: 22px; letter-spacing: 0.04em; }
.logo span { color: #A1A1A6; font-weight: 500; font-size: 14px; letter-spacing: 0; margin-left: 8px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
select, .ghost { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #2E2E33; background: #141416; color: #F2F2F0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.lime { height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: #C6FF4D; color: #0B0B0C; font-weight: 600; cursor: pointer; }
.lime:disabled, .ghost:disabled { opacity: 0.5; cursor: default; }
.danger { height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #5A2A2A; background: transparent; color: #FF9C8A; cursor: pointer; }
h1 { font-size: 30px; margin: 0 0 6px; font-weight: 600; }
h2 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.muted { color: #A1A1A6; font-size: 14px; line-height: 1.5; }
.card { background: #141416; border: 1px solid #232327; border-radius: 16px; padding: 22px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 20px 0; }
.grid .card { margin: 0; }
.kpi-label { color: #A1A1A6; font-size: 14px; }
.kpi-value { font-size: 36px; font-weight: 600; margin: 8px 0 4px; }
.kpi-note { color: #C6FF4D; font-size: 13px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #232327; margin-bottom: 24px; }
.tabs a { padding: 12px 16px; color: #D6D6D3; text-decoration: none; border-bottom: 2px solid transparent; font-size: 15px; }
.tabs a.on { color: #C6FF4D; border-bottom-color: #C6FF4D; font-weight: 600; }
.pill { display: inline-block; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: #FFB561; color: #0B0B0C; font-size: 12px; font-weight: 700; text-align: center; margin-left: 4px; }
.banner { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; background: #1E2A12; border: 1px solid #3B5A1A; font-size: 15px; }
.banner.err { background: #2A1414; border-color: #5A2A2A; }
.attention { padding: 16px 18px; border-radius: 14px; margin: 18px 0 0; background: #2B2010; border: 1px solid #5A4318; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #D6D6D3; margin-bottom: 12px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; border-bottom: 1px solid #2E2E33; }
.day { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1px; height: 100%; }
.bar { width: 30%; max-width: 10px; border-radius: 3px 3px 0 0; }
.axis { display: flex; justify-content: space-between; color: #A1A1A6; font-size: 12px; margin-top: 8px; }
.titlebar { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #2E2E33; background: transparent; color: #F2F2F0; cursor: pointer; font-size: 14px; font-weight: 600; }
.chip.on { background: #C6FF4D; border-color: #C6FF4D; color: #0B0B0C; }
.review { background: #141416; border: 1px solid #232327; border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.review-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.who { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; }
.stars { color: #FFC94D; letter-spacing: 1px; font-size: 16px; }
.badge { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.b-wait { background: #3A2A12; color: #FFB561; }
.b-sched { background: #1A2440; color: #9DB8FF; }
.b-done { background: #26331A; color: #C6FF4D; }
.b-muted { background: #232327; color: #C8C8CC; }
.b-err { background: #3A1A1A; color: #FF9C8A; }
.review-text { margin: 0 0 14px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; }
.reply { background: #0F0F11; border: 1px solid #2E2E33; border-radius: 12px; padding: 14px; }
.reply-label { font-size: 12px; font-weight: 600; color: #A1A1A6; letter-spacing: 0.06em; margin-bottom: 8px; }
.reply p { margin: 0; font-size: 14px; line-height: 1.6; color: #D6D6D3; white-space: pre-wrap; }
.reply textarea { width: 100%; min-height: 110px; border-radius: 10px; border: 1px solid #2E2E33; background: #141416; color: #F2F2F0; padding: 12px; font-size: 14px; line-height: 1.6; resize: vertical; }
.flag { color: #FFB561; font-size: 13px; margin-bottom: 10px; }
.err-text { color: #FF9C8A; font-size: 13px; margin-top: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.small { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid #2E2E33; background: transparent; color: #F2F2F0; cursor: pointer; font-size: 13px; }
.small.lime { border: 0; background: #C6FF4D; color: #0B0B0C; font-weight: 600; height: 38px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: #A1A1A6; font-weight: 500; padding: 8px 10px; border-bottom: 1px solid #2E2E33; white-space: nowrap; }
td { padding: 12px 10px; border-bottom: 1px solid #232327; vertical-align: top; }
code { font-size: 12px; color: #D6D6D3; word-break: break-all; }
.msg { border: 1px solid #2E2E33; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.msg-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #A1A1A6; font-size: 13px; margin-bottom: 8px; }
.msg-text { white-space: pre-wrap; line-height: 1.5; font-size: 15px; margin-bottom: 10px; }
.msg.done { opacity: 0.55; }
label { display: block; color: #A1A1A6; font-size: 13px; margin: 14px 0 6px; }
label.check { color: #F2F2F0; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
label.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: #C6FF4D; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 16px; }
input[type=text], input[type=email], input[type=url], textarea, .formgrid select, form select { width: 100%; }
input[type=text], input[type=email], input[type=url], form textarea { border-radius: 10px; border: 1px solid #2E2E33; background: #0F0F11; color: #F2F2F0; padding: 12px; font-size: 14px; }
input[type=text], input[type=email], input[type=url] { height: 44px; }
form .lime { margin-top: 18px; }
.login { max-width: 420px; margin: 12vh auto; }
.login input { margin: 0 0 14px; }
.notice { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.leader { margin: 0; padding: 0; list-style: none; }
.leader li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #232327; }
.leader .rank { width: 32px; height: 32px; border-radius: 16px; background: #232327; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto; }
.leader li:first-child .rank { background: #C6FF4D; color: #0B0B0C; }
.leader .lname { flex: 1 1 auto; font-weight: 600; }
.leader .lbar { flex: 0 1 200px; height: 8px; border-radius: 4px; background: #232327; overflow: hidden; }
.leader .lbar span { display: block; height: 8px; background: #C6FF4D; }
.leader .lnum { color: #A1A1A6; font-size: 14px; white-space: nowrap; }
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 14px; }
.theme-col h3 { font-size: 14px; margin: 0 0 10px; letter-spacing: .04em; }
.theme { border: 1px solid #2E2E33; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.theme strong { display: block; margin-bottom: 4px; }
.action { margin-top: 14px; padding: 14px; border-radius: 12px; background: #1E2A12; border: 1px solid #3B5A1A; }
.result-ok { color: #C6FF4D; } .result-skip { color: #FFB561; } .result-fail { color: #FF9C8A; }
#smsResults ul { margin: 12px 0 0; padding-left: 18px; line-height: 1.7; font-size: 14px; }
tr.self td { font-weight: 700; color: #C6FF4D; }
details summary { margin-top: 4px; }
