@font-face{font-family:"Noto Sans Devanagari";src:url("../fonts/NotoSansDevanagari.ttf") format("truetype");font-weight:100 900;font-display:swap}
:root{--brand:#1e3a8a;--brand2:#2563eb;--bg:#f1f5f9;--card:#fff;--line:#e2e8f0;--text:#0f172a;--muted:#64748b;--ok:#16a34a;--warn:#d97706;--bad:#dc2626}
*{box-sizing:border-box}
html{font-size:17px}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans","Noto Sans Devanagari",sans-serif;background:var(--bg);color:var(--text);line-height:1.45}
a{color:var(--brand2);text-decoration:none}
.hi{color:#475569;font-weight:500}
.btn .hi,.nav a .hi,.badge .hi{color:inherit;opacity:.85}
.shell{display:flex;min-height:100vh}
.side{width:250px;background:var(--brand);color:#fff;padding:18px 12px;flex-shrink:0}
.side-inner{position:sticky;top:18px}
.side-foot{margin-top:28px}
.logo{font-weight:800;font-size:1.25rem;padding:6px 10px 18px;line-height:1.2}
.logo small{display:block;font-weight:500;font-size:.8rem;opacity:.8}
.nav a{display:flex;align-items:center;gap:12px;color:#fff;padding:14px 14px;border-radius:12px;margin-bottom:6px;font-size:1.02rem;font-weight:600}
.nav a .ic{font-size:1.4rem;width:28px;text-align:center}
.nav a:hover,.nav a.on{background:rgba(255,255,255,.16)}
.nav a span.t{display:flex;flex-direction:column;line-height:1.15}
.nav a span.t small{font-weight:500;opacity:.85}
.main{flex:1;min-width:0;padding:22px 26px 90px}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.top h1{margin:0;font-size:1.6rem}
.top h1 .hi{font-size:1.2rem}
.top .actions{display:flex;gap:10px;flex-wrap:wrap}
.help-text{background:#eff6ff;border-left:5px solid var(--brand2);padding:10px 14px;border-radius:10px;color:#1e3a8a;margin:0 0 16px;font-size:.98rem}
.card{background:var(--card);border-radius:16px;padding:18px;box-shadow:0 1px 3px rgba(15,23,42,.08);margin-bottom:16px;border:1px solid var(--line)}
.card h2{margin:0 0 6px;font-size:1.2rem;line-height:1.35}
.card h2 .count{background:var(--brand2);color:#fff;border-radius:99px;padding:1px 10px;font-size:.9rem;margin-left:4px;vertical-align:middle}
.card .sub{color:var(--muted);margin:0 0 12px;font-size:.92rem}
.grid{display:grid;gap:16px}
.g2{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.g3{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.g4{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.stat{border-radius:16px;padding:16px;color:#fff}
.stat .n{font-size:1.9rem;font-weight:800}
.stat .l{font-size:.95rem;opacity:.95}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 18px;border-radius:12px;border:2px solid transparent;font-size:1rem;font-weight:700;cursor:pointer;background:var(--brand2);color:#fff;text-align:center;font-family:inherit;line-height:1.2}
.btn:hover{filter:brightness(1.08)}
.btn.big{min-height:60px;font-size:1.15rem;padding:12px 24px;border-radius:14px}
.btn.green{background:var(--ok)}
.btn.orange{background:#ea580c}
.btn.red{background:var(--bad)}
.btn.gray{background:#fff;color:var(--text);border-color:var(--line)}
.btn.wa{background:#25d366;color:#053b1a}
.btn.sm{min-height:38px;padding:6px 12px;font-size:.9rem;border-radius:10px}
.btn.block{display:flex;width:100%}
.badge{display:inline-block;color:#fff;border-radius:99px;padding:4px 12px;font-size:.85rem;font-weight:700;white-space:nowrap}
.badge small{font-weight:500}
.tag{display:inline-block;border-radius:8px;padding:2px 8px;font-size:.8rem;font-weight:700;background:#e2e8f0;color:#334155}
.tag.demo{background:#fef3c7;color:#92400e}
.tag.Strong{background:#dcfce7;color:#166534}.tag.Possible{background:#fef9c3;color:#854d0e}.tag.Weak{background:#fee2e2;color:#991b1b}
.flash{padding:14px 16px;border-radius:12px;margin-bottom:16px;font-weight:600}
.flash.ok{background:#dcfce7;color:#14532d;border:1px solid #86efac}
.flash.warn{background:#fef3c7;color:#78350f;border:1px solid #fcd34d}
.flash.err{background:#fee2e2;color:#7f1d1d;border:1px solid #fca5a5}
.todo{list-style:none;margin:0;padding:0}
.todo li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 4px;border-bottom:1px dashed var(--line)}
.todo li:last-child{border-bottom:0}
.todo .who{font-weight:700}
.todo .meta{color:var(--muted);font-size:.9rem}
.empty{text-align:center;color:var(--muted);padding:18px 8px;font-size:1rem}
.empty .e{font-size:2rem;display:block}
table.list{width:100%;border-collapse:collapse}
table.list th,table.list td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}
table.list th{font-size:.85rem;color:var(--muted);text-transform:uppercase;letter-spacing:.02em}
table.list tr:hover td{background:#f8fafc}
.num{text-align:right!important;white-space:nowrap}
form.inline{display:inline}
label{display:block;font-weight:700;margin:12px 0 6px}
label .hi{font-weight:500}
input[type=text],input[type=email],input[type=number],input[type=date],input[type=datetime-local],input[type=password],input[type=url],input[type=file],input[type=tel],select,textarea{width:100%;font-size:1.02rem;padding:12px 14px;border:2px solid #cbd5e1;border-radius:12px;background:#fff;font-family:inherit}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand2)}
textarea{min-height:110px}
.hint{color:var(--muted);font-size:.88rem;margin-top:4px}
.form-row{display:grid;gap:0 16px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
details.more{margin-top:16px;border:2px dashed #cbd5e1;border-radius:12px;padding:6px 14px}
details.more summary{cursor:pointer;font-weight:700;padding:8px 0;color:var(--brand2)}
.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.filters input,.filters select{width:auto;flex:1;min-width:160px}
.filters input[type=checkbox]{flex:0 0 auto;min-width:0}
.board{display:flex;gap:12px;overflow-x:auto;padding-bottom:16px;align-items:flex-start}
.col{background:#e2e8f0;border-radius:14px;min-width:240px;width:240px;flex-shrink:0}
.col h3{margin:0;padding:12px 14px;border-radius:14px 14px 0 0;color:#fff;font-size:1rem;display:flex;justify-content:space-between}
.col h3 small{display:block;font-weight:500}
.col .cards{padding:10px;display:flex;flex-direction:column;gap:10px;max-height:72vh;overflow-y:auto}
.kcard{background:#fff;border-radius:12px;padding:12px;box-shadow:0 1px 2px rgba(0,0,0,.08);border-left:6px solid #94a3b8}
.kcard .nm{font-weight:800}
.kcard .jb{color:var(--muted);font-size:.88rem;margin:2px 0 8px}
.kcard select{padding:8px;font-size:.88rem;border-radius:10px;margin-top:6px}
.stagebar{display:flex;flex-wrap:wrap;gap:8px}
.stagebar a{display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:12px;color:#fff;padding:10px 12px;min-width:120px;flex:1}
.stagebar a b{font-size:1.5rem}
.stagebar a span{font-size:.8rem;text-align:center;line-height:1.2}
.draft{border:2px solid var(--line);border-radius:14px;padding:14px;margin-bottom:12px;background:#fcfcfd}
.draft.sent{opacity:.65;background:#f0fdf4}
.draft .hd{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:8px}
.draft textarea{min-height:200px;font-size:.95rem;font-family:inherit}
.draft .btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.timeline{list-style:none;padding:0;margin:0}
.timeline li{padding:8px 0 8px 18px;border-left:3px solid var(--line);position:relative;font-size:.92rem}
.timeline li:before{content:"";width:11px;height:11px;border-radius:50%;background:var(--brand2);position:absolute;left:-7px;top:13px}
.kv{display:grid;grid-template-columns:170px 1fr;gap:6px 12px;font-size:.98rem}
.kv dt{color:var(--muted)}
.kv dd{margin:0;font-weight:600}
.warnbox{background:#fff7ed;border:2px solid #fb923c;color:#7c2d12;border-radius:12px;padding:12px 14px;margin-bottom:14px;font-weight:600}
.bottomnav{display:none}
.pager{margin-top:12px}
.pager nav svg{width:18px}
.pager nav{display:flex;gap:6px;flex-wrap:wrap}
.login{max-width:440px;margin:8vh auto;padding:0 16px}
@media (max-width:900px){
  html{font-size:16px}
  .side{display:none}
  .main{padding:14px 12px 100px}
  .bottomnav{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--brand);z-index:50;justify-content:space-around;padding:6px 2px calc(6px + env(safe-area-inset-bottom))}
  .bottomnav a{color:#fff;display:flex;flex-direction:column;align-items:center;font-size:.68rem;font-weight:600;padding:4px 2px;line-height:1.1;text-align:center;flex:1}
  .bottomnav a .ic{font-size:1.35rem}
  .bottomnav a.on{background:rgba(255,255,255,.18);border-radius:10px}
  .kv{grid-template-columns:1fr}
  table.list.responsive thead{display:none}
  table.list.responsive tr{display:block;border:1px solid var(--line);border-radius:12px;margin-bottom:10px;background:#fff}
  table.list.responsive td{display:block;border:0;padding:6px 12px}
  .top h1{font-size:1.35rem}
}
