:root{--teal:#0f766e;--teal-dark:#115e59;--accent:#ff4961;--bg:#eef3f3;--card:#fff;--text:#16302e;--muted:#64748b;--border:#dbe7e6}
*{box-sizing:border-box}body{margin:0;font-family:"Hind Siliguri",system-ui,sans-serif;background:var(--bg);color:var(--text)}
a{color:var(--teal)}button{cursor:pointer;font-family:inherit}
.topbar{position:sticky;top:0;z-index:20;background:var(--teal);color:#fff;display:flex;align-items:center;gap:12px;padding:10px 16px}
.logo{font-weight:800;font-size:20px}.logo small{display:block;font-size:11px;opacity:.85;font-weight:400}
.spacer{flex:1}.pill{background:#fff;color:var(--teal-dark);border:0;border-radius:999px;padding:7px 14px;font-weight:700}
.pill.accent{background:var(--accent);color:#fff}
.layout{display:flex;min-height:calc(100vh - 56px)}
.sidebar{width:260px;background:#fff;border-right:1px solid var(--border);padding:12px;position:sticky;top:56px;height:calc(100vh - 56px);overflow:auto}
.sidebar h3{font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin:18px 8px 6px}
.sidebar a{display:block;padding:8px 10px;border-radius:8px;color:var(--text);text-decoration:none}
.sidebar a:hover,.sidebar a.active{background:#e6f4f2;color:var(--teal-dark);font-weight:700}
.main{flex:1;padding:20px;max-width:1100px}
.card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:16px;margin-bottom:16px;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.stat{font-size:28px;font-weight:800}.muted{color:var(--muted);font-size:14px}
.notice{background:#fef3c7;border:1px solid #fde68a;border-radius:10px;padding:10px 12px}
.closed{background:#fee2e2;border:1px solid #fecaca;border-radius:10px;padding:10px 12px;color:#991b1b;font-weight:700}
label{display:block;font-size:14px;margin:10px 0 4px;font-weight:600}
input,select,textarea{width:100%;padding:10px;border:1px solid var(--border);border-radius:9px;font-family:inherit}
textarea{min-height:90px}
.btn{background:var(--teal);color:#fff;border:0;border-radius:9px;padding:10px 16px;font-weight:700}
.btn.accent{background:var(--accent)} .btn.ghost{background:#fff;color:var(--teal);border:1px solid var(--teal)}
.opt{display:inline-block;border:1px solid var(--border);border-radius:10px;padding:8px 12px;margin:4px;cursor:pointer;background:#fff}
.opt.sel{border-color:var(--accent);background:#fff1f2;font-weight:700}
table{width:100%;border-collapse:collapse;font-size:14px}th,td{border-bottom:1px solid var(--border);padding:8px;text-align:left}
.modal-back{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:center;justify-content:center;z-index:50;padding:16px}
.modal-back.open{display:flex}.modal{background:#fff;border-radius:14px;padding:20px;max-width:560px;width:100%;max-height:90vh;overflow:auto}
.swatch{width:32px;height:32px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #ccc;display:inline-block;margin:3px;cursor:pointer}
body.dark{background:#0f172a;color:#e2e8f0}body.dark .card,body.dark .sidebar{background:#1e293b;color:#e2e8f0;border-color:#334155}body.dark .sidebar a{color:#e2e8f0}body.dark input,body.dark select,body.dark textarea{background:#0f172a;color:#e2e8f0;border-color:#334155}body.dark .modal{background:#1e293b;color:#e2e8f0}
@media(max-width:800px){.sidebar{position:fixed;left:-280px;z-index:40;top:56px;transition:.2s}.sidebar.open{left:0}.main{padding:12px}}

.sidebar a{display:flex;align-items:center;gap:10px}
.card-ico{font-size:28px;margin-bottom:6px}
.main{width:100%}
.card{overflow-x:auto}
table{min-width:520px}
.topbar{flex-wrap:wrap}
@media(max-width:800px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.logo{font-size:17px}.pill{padding:6px 10px;font-size:13px}table{font-size:13px}input,select,textarea{font-size:16px}}
@media(max-width:520px){.grid{grid-template-columns:1fr}.main{padding:10px}.card{padding:12px}.topbar{gap:8px;padding:8px 10px}.logo{font-size:16px}.sidebar{width:270px}}

.ico{width:24px;height:24px;min-width:24px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#334155;font-size:0}
.ico svg{width:22px;height:22px}
.sidebar a.active .ico{color:var(--teal-dark)}
.sidebar a{padding:9px 10px}
.card-ico{display:inline-flex;align-items:center;justify-content:center;color:#fff}
.card-ico svg{width:28px;height:28px}
.svc-card{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--card);box-shadow:0 1px 3px rgba(0,0,0,.04)}
.svc-head{color:#fff;padding:18px 12px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.svc-head b{font-size:16px}
.svc-body{display:flex;justify-content:space-between;gap:8px;padding:12px 14px;font-size:14px}
.svc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.dark .ico{color:#e2e8f0}
body.dark .sidebar a.active .ico{color:#5eead4}
@media(max-width:800px){.svc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.svc-grid{grid-template-columns:1fr}}
/* Dashboard service-card header icons: large white, reference-matching.
   Bug fixed: the header icon was nested as .card-ico > .ico, and .ico set
   color:#334155 (dark) and 22px, overriding .card-ico's white/28px intent.
   These higher-specificity rules force white + large size on coloured headers only.
   Sidebar icons (.ico, 22px) and white-background cards are NOT changed. */
.svc-head{padding:22px 12px 20px;gap:10px}
.svc-head .card-ico{color:#fff}
.svc-head .card-ico .ico{width:56px;height:56px;min-width:56px;color:#fff}
.svc-head .card-ico .ico svg{width:52px;height:52px;stroke:#fff;stroke-width:2.2}
body.dark .svc-head .card-ico,body.dark .svc-head .card-ico .ico,body.dark .svc-head .card-ico .ico svg{color:#fff;stroke:#fff}
@media(max-width:520px){.svc-head{padding:20px 12px 18px}.svc-head .card-ico .ico{width:44px;height:44px;min-width:44px}.svc-head .card-ico .ico svg{width:42px;height:42px}}
