:root { --c: #0f5c8c; --c2: #e8f2f9; --bad: #b3261e; --ok: #1b7a3a; --bg: #f6f7f9; --line: #d9dde3; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", sans-serif; background: var(--bg); color: #1d232a; }
header { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--c); color: #fff; position: sticky; top: 0; z-index: 5; }
header .brand { font-weight: 700; margin-right: auto; }
header select { max-width: 45vw; padding: 6px; border-radius: 6px; border: 0; }
nav { display: flex; gap: 4px; padding: 6px 8px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
nav a { padding: 6px 10px; border-radius: 6px; color: var(--c); text-decoration: none; white-space: nowrap; }
nav a.on { background: var(--c2); font-weight: 600; }
main { max-width: 860px; margin: 0 auto; padding: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
h1 { font-size: 20px; margin: 0 0 12px; } h2 { font-size: 16px; margin: 18px 0 8px; color: var(--c); }
label { display: block; font-size: 13px; color: #4a5360; margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; font: inherit; background: #fff; }
input:focus, select:focus { outline: 2px solid var(--c2); border-color: var(--c); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
button { padding: 10px 16px; border: 0; border-radius: 7px; background: var(--c); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
button.ghost { background: transparent; border: 1px solid rgba(255,255,255,.6); padding: 6px 10px; font-weight: 500; }
button.link { background: none; color: var(--c); padding: 6px 0; }
button:disabled { opacity: .6; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.muted { color: #6b7480; font-size: 13px; }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin-top: 8px; }
.auth { max-width: 420px; margin: 6vh auto; }
.auth .logo { text-align: center; font-size: 26px; font-weight: 800; color: var(--c); margin-bottom: 4px; }
table { width: 100%; border-collapse: collapse; } td, th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--c2); color: var(--c); font-size: 12px; }
#toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #1d232a; color: #fff; padding: 10px 16px; border-radius: 8px; max-width: 90vw; }
#toast.bad { background: var(--bad); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.tile b { display: block; font-size: 20px; margin-top: 4px; }
.chk { display: flex; gap: 8px; align-items: center; margin-top: 30px; color: #1d232a; font-size: 14px; } .chk input { width: auto; }
.bar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; } .bar input, .bar select { flex: 1; min-width: 140px; width: auto; }
.list { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.list .it { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list .it:hover { background: var(--c2); } .list .it:last-child { border-bottom: 0; }
.list .it small { color: #6b7480; display: block; } .right { text-align: right; white-space: nowrap; }
button.sec { background: #fff; color: var(--c); border: 1px solid var(--c); } button.danger { background: #fff; color: var(--bad); border: 1px solid var(--bad); }
button.sm { padding: 5px 10px; font-size: 13px; }
.band-high { color: var(--ok); font-weight: 600; } .band-medium { color: #a86b00; font-weight: 600; } .band-low { color: var(--bad); font-weight: 600; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; } .tabs a { padding: 6px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: #1d232a; text-decoration: none; }
.tabs a.on { background: var(--c); color: #fff; border-color: var(--c); }
#planBanner { padding: 8px 12px; background: #fff6d6; border-bottom: 1px solid #ecd27a; font-size: 14px; }
#planBanner.bad { background: #fde8e6; border-color: #f0b4ae; color: var(--bad); }
.tag.ok { background: #e3f4e8; color: var(--ok); } .tag.bad { background: #fde8e6; color: var(--bad); }
