:root { --navy: #002b72; --navy2: #0b3d91; --orange: #e8590c; --bg: #f5f7fb; --card: #fff; --line: #dde3ee; --muted: #5b6b86; --ink: #12243f; --ok: #1b7f4b; --warn: #b7791f; --bad: #b83232; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy2); }
.top { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 18px; padding: 10px 22px; position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.top h1 { font-size: 17px; margin: 0; font-weight: 700; letter-spacing: .2px; }
.top .grow { flex: 1; }
.top nav { display: flex; gap: 4px; }
.top nav button { background: transparent; border: 0; color: #cfd9ee; padding: 7px 14px; border-radius: 6px; font-weight: 600; }
.top nav button.on { background: #ffffff22; color: #fff; }
.who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #cfd9ee; }
.who input { background: #ffffff18; border: 1px solid #ffffff44; color: #fff; border-radius: 6px; padding: 5px 9px; width: 170px; }
.who input::placeholder { color: #b8c6e4; }
main { max-width: 1320px; margin: 0 auto; padding: 18px 22px 60px; }
h2 { font-size: 22px; color: var(--navy); margin: 4px 0 2px; }
.sub { color: var(--muted); margin-bottom: 14px; }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.bar input[type=search], .bar select { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; min-width: 190px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 7px 13px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--navy); color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.tabs button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-weight: 600; color: var(--ink); }
.tabs button .n { color: var(--muted); font-weight: 500; margin-left: 5px; }
.tabs button.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.tabs button.on .n { color: #ffe3d2; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(390px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 10px; padding: 14px 15px 13px; display: flex; flex-direction: column; gap: 9px; }
.card h3 { margin: 0; font-size: 17px; color: var(--navy); }
.card .meta { color: var(--muted); font-size: 13px; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.b { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e9eef8; color: var(--navy2); white-space: nowrap; }
.b.t20 { background: #fde8dc; color: #a23d06; }
.b.mvp { background: #e3f4ea; color: var(--ok); }
.b.tag { background: #eef0f4; color: #4a5a76; }
.stats { display: grid; gap: 2px; background: #f6f8fc; border-radius: 8px; padding: 8px 4px; }
.stats div { text-align: center; }
.stats b { display: block; font-size: 14px; color: var(--navy); }
.stats span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.stline { font-size: 11.5px; color: var(--muted); font-weight: 700; margin-bottom: -4px; text-transform: uppercase; letter-spacing: .4px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { border: 1px solid var(--navy); background: #fff; color: var(--navy); border-radius: 7px; padding: 6px 12px; font-weight: 600; }
.btn:hover { background: #eef3fc; }
.btn.pri { background: var(--navy); color: #fff; }
.btn.pri:hover { background: var(--navy2); }
.btn.org { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.sm { padding: 3px 9px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; cursor: default; }
textarea.note { width: 100%; min-height: 66px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fffdf8; }
.row { display: flex; gap: 8px; align-items: center; }
.row select { border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; background: #fff; }
.saved { font-size: 12px; color: var(--ok); margin-left: auto; min-height: 16px; }
details summary { cursor: pointer; font-weight: 600; color: var(--navy2); font-size: 13px; }
.aw { font-size: 12.5px; color: #34465f; margin: 6px 0 0; padding-left: 16px; }
.others .o { border-left: 3px solid var(--line); padding: 2px 8px; margin: 5px 0; font-size: 13px; }
.others .o small { color: var(--muted); }
.empty { padding: 40px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 10px; }
/* modal */
.ov { position: fixed; inset: 0; background: #0a1730bb; z-index: 50; display: none; align-items: center; justify-content: center; padding: 18px; }
.ov.show { display: flex; }
.win { background: #fff; border-radius: 12px; width: min(1240px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.win header { background: var(--navy); color: #fff; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.win header h3 { margin: 0; font-size: 16px; flex: 1; }
.win header button { background: #ffffff22; border: 0; color: #fff; border-radius: 6px; padding: 5px 11px; font-weight: 700; }
.win .body { padding: 12px 16px 16px; overflow: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; align-items: center; }
.chips .lab { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-right: 4px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font-weight: 600; font-size: 13px; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .n { opacity: .7; margin-left: 4px; font-weight: 500; }
.vm { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 14px; }
@media (max-width: 900px) { .vm { grid-template-columns: 1fr; } }
.screen { position: relative; background: #000; border-radius: 8px; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; color: #cfd9ee; text-align: center; overflow: hidden; }
.screen video { width: 100%; height: 100%; background: #000; }
.screen .msg { padding: 16px; font-size: 13px; }
.screen .arr { position: absolute; top: 50%; transform: translateY(-50%); background: #00000066; color: #fff; border: 0; font-size: 26px; width: 38px; height: 54px; }
.screen .arr.l { left: 0; border-radius: 0 8px 8px 0; } .screen .arr.r { right: 0; border-radius: 8px 0 0 8px; }
.cams { display: flex; gap: 5px; align-items: center; margin: 8px 0; flex-wrap: wrap; font-size: 13px; }
.cams button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 10px; font-weight: 700; }
.cams button.on { background: var(--orange); color: #fff; border-color: var(--orange); }
.cams button[disabled] { opacity: .35; cursor: default; }
.info { font-size: 13px; }
.info .mu { color: var(--muted); }
.clips { max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.clips .g { background: #eef2fa; font-weight: 700; font-size: 12px; color: var(--navy); padding: 5px 10px; position: sticky; top: 0; }
.clips .it { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px; border-bottom: 1px solid #edf0f6; cursor: pointer; }
.clips .it.on { background: #fff3e8; }
.clips .it small { color: var(--muted); display: block; }
.clips .it .t { flex: 1; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.tools select { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; max-width: 220px; }
iframe.ovf { width: 100%; height: min(80vh, 760px); border: 0; }
.pl { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.pl .h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl .h b { font-size: 16px; color: var(--navy); }
.pl .h .mu { color: var(--muted); font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #12243f; color: #fff; padding: 9px 16px; border-radius: 8px; z-index: 90; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.linkbox { display: flex; gap: 6px; align-items: center; }
.linkbox input { flex: 1; min-width: 220px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: #f6f8fc; }

.ovw .ovh { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ovw h3 { margin: 0; font-size: 19px; color: var(--navy); }
.ovw h4 { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--navy); border-bottom: 2px solid var(--orange); padding-bottom: 3px; }
.otb { width: 100%; border-collapse: collapse; font-size: 13px; }
.otb th { background: var(--navy); color: #fff; text-align: left; padding: 5px 8px; font-weight: 600; white-space: nowrap; }
.otb td { padding: 5px 8px; border-bottom: 1px solid #edf0f6; }
.otb th.n, .otb td.n { text-align: center; }
.otb tr:nth-child(even) td { background: #f8fafd; }
.star { border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--orange); padding: 0 2px; align-self: center; }
.mark { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.mark input { flex: 1; min-width: 200px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: #fffdf8; }
.b.st { font-size: 12px; }

.mpanel { border: 1px solid var(--line); border-radius: 8px; background: #fff; max-height: 230px; overflow: auto; margin: 2px 0 10px; }
.mpanel .mtools { display: flex; gap: 6px; padding: 6px 8px; position: sticky; top: 0; background: #f6f8fc; border-bottom: 1px solid var(--line); }
.mrow { display: flex; gap: 10px; align-items: center; padding: 5px 10px; border-bottom: 1px solid #edf0f6; cursor: pointer; font-size: 13px; }
.mrow:hover { background: #f8fafd; }
.mrow .mt { flex: 1; font-weight: 600; } .mrow .mc { color: var(--muted); } .mrow .mn { color: var(--muted); min-width: 64px; text-align: right; }

.scl { color: var(--navy2); font-weight: 700; text-decoration: underline; }
.mrow .ms { min-width: 150px; text-align: right; color: var(--navy); font-weight: 700; }
.clips .g .gs { float: right; font-weight: 700; color: var(--orange); }

.sclink { color: var(--navy2); font-weight: 600; text-decoration: underline; }
.clips .g .sclink { font-weight: 700; font-size: 11.5px; }

.dec { display: flex; gap: 6px; }
.dec button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 6px 4px; font-weight: 700; font-size: 13px; color: var(--muted); }
.dec button:hover { background: #f4f7fc; }
.dec button.dec-s.on { background: #1b7f4b; border-color: #1b7f4b; color: #fff; }
.dec button.dec-m.on { background: #e8a317; border-color: #e8a317; color: #fff; }
.dec button.dec-p.on { background: #6b7280; border-color: #6b7280; color: #fff; }
.dtag { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; color: #fff; }
.dtag.dec-s { background: #1b7f4b; } .dtag.dec-m { background: #e8a317; } .dtag.dec-p { background: #6b7280; }

.nm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dec button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.dec button svg, .dtag svg { flex: none; vertical-align: -2px; }
.dbadge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #fff; padding: 2px 9px 2px 7px; border-radius: 999px; }
.dbadge.dec-s { background: #1b7f4b; } .dbadge.dec-m { background: #e8a317; } .dbadge.dec-p { background: #6b7280; }
.card.d-s { border-top-color: #1b7f4b; box-shadow: inset 4px 0 0 #1b7f4b; }
.card.d-m { border-top-color: #e8a317; box-shadow: inset 4px 0 0 #e8a317; }
.card.d-p { border-top-color: #6b7280; box-shadow: inset 4px 0 0 #6b7280; opacity: .86; }
