/* ChunavDesk — shared shell styles. Tokens, shell, cards, tables (density), filter bar, page header,
   pastel avatars, skeleton / empty states, motion (drawer, toast, buttons). Tailwind CDN carries the rest. */
:root { --cd-blue: #2563eb; --cd-blue-d: #1d4ed8; --cd-border: #e5e7eb; --cd-ink: #0f172a; --cd-muted: #6b7280; --cd-bg: #f6f7fb;
  --c1: #2563eb; --c2: #0d9488; --c3: #db2777; --c4: #7c3aed; --c5: #d97706; --c6: #16a34a; --c7: #ea580c; --c8: #0891b2; --c9: #475569;
  --ease-out: cubic-bezier(.23, 1, .32, 1); --dur: 220ms; --dur-fast: 160ms;
  --topbar-h: 56px; --row-h: 40px; --row-pad: 6px; }
html { font-family: Hind, Poppins, "Noto Sans Devanagari", system-ui, sans-serif; font-size: 15px; }
body { background: var(--cd-bg); color: var(--cd-ink); font-size: 14px; line-height: 1.45; }
h1, h2, h3, .font-h, .stat .val, .num-big { font-family: Poppins, Hind, "Noto Sans Devanagari", sans-serif; }
.brand { font-family: Poppins, sans-serif; font-weight: 700; letter-spacing: -.01em; }
.grad { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #7c3aed 100%); }
.tint-1 { background: #eff6ff; color: #1d4ed8; } .tint-2 { background: #f0fdfa; color: #0f766e; } .tint-3 { background: #fdf2f8; color: #be185d; }
.tint-4 { background: #f5f3ff; color: #6d28d9; } .tint-5 { background: #fffbeb; color: #b45309; } .tint-6 { background: #f0fdf4; color: #15803d; }
.tint-7 { background: #fff7ed; color: #c2410c; } .tint-8 { background: #ecfeff; color: #0e7490; } .tint-9 { background: #f1f5f9; color: #334155; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
a.lnk, .lnk { color: var(--cd-blue); }
@media (hover: hover) { a.lnk:hover, .lnk:hover { text-decoration: underline; cursor: pointer; } }

/* ---- icons (CD.icon) ---- */
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; display: inline-block; vertical-align: -.2em; }
.btn .ic { width: 15px; height: 15px; } .btn-sm .ic { width: 14px; height: 14px; }
.ico .ic { width: 18px; height: 18px; }
.side a .ic { width: 17px; height: 17px; color: #6b7280; } .side a.on .ic { color: #1d4ed8; }
.tab-ic { width: 20px; height: 20px; margin-bottom: 2px; }
.pill .ic { width: 11px; height: 11px; vertical-align: -.1em; }

/* ---- shell ---- */
.side-wrap { background: #fff; border-right: 1px solid var(--cd-border); }
.topbar { background: rgba(255,255,255,.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--cd-border); }
.side a { display: flex; align-items: center; gap: 9px; padding: 6px 12px; border-radius: 6px; font-size: 13px; color: #374151; }
@media (hover: hover) { .side a:hover { background: #f3f4f6; } }
.side a.on { background: linear-gradient(90deg, #dbeafe, #ede9fe); color: #1d4ed8; font-weight: 600; }
.side .sec { padding: 12px 12px 4px; font-size: 10px; color: #9ca3af; text-transform: uppercase; letter-spacing: .08em; }
.btabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10.5px; color: #6b7280; gap: 1px; flex: 1; }
.btabs a.on { color: var(--cd-blue); font-weight: 600; }

/* ---- cards / stat tiles ---- */
.card { background: #fff; border: 1px solid var(--cd-border); border-radius: 8px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--cd-border); font-size: 13px; font-weight: 600; }
.card-h .legend { font-size: 12px; font-weight: 400; color: var(--cd-muted); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.card-b { padding: 12px 14px; }
.ico { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.stat { display: flex; gap: 12px; align-items: center; padding: 12px 14px; min-width: 0; }
.stat .lbl { font-size: 11px; color: var(--cd-muted); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .val { font-size: 22px; font-weight: 700; color: var(--cd-blue); margin-top: 2px; line-height: 1.2; }
.stat .sub { font-size: 12px; color: var(--cd-muted); margin-top: 2px; }
.stat.c1 .val { color: var(--c1); } .stat.c2 .val { color: var(--c2); } .stat.c3 .val { color: var(--c3); } .stat.c4 .val { color: var(--c4); }
.stat.c5 .val { color: var(--c5); } .stat.c6 .val { color: var(--c6); } .stat.c7 .val { color: var(--c7); } .stat.c8 .val { color: var(--c8); } .stat.c9 .val { color: var(--c9); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats-4, .stats-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .stats-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .stats-8 .stat { padding: 10px 12px; gap: 10px; } .stats-8 .stat .val { font-size: 20px; } .stats-8 .ico { width: 30px; height: 30px; border-radius: 8px; } }
.bar { height: 6px; background: #eff6ff; border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--c1), var(--c4)); }

/* ---- tables: compact 40 px rows, comfortable 48 px (body.density-comfortable), sticky head, zebra + hover ---- */
body.density-comfortable { --row-h: 48px; --row-pad: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { position: sticky; top: 0; z-index: 2; background: #f9fafb; text-align: left; font-weight: 600; font-size: 12px; color: #4b5563; padding: 0 10px; height: 36px; border-bottom: 1px solid var(--cd-border); white-space: nowrap; }
.tbl td { padding: var(--row-pad) 10px; height: var(--row-h); border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.tbl tbody tr:nth-child(even) td { background: #fafbfd; }
@media (hover: hover) { .tbl tbody tr:hover td { background: #f1f5f9; } }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl .name { font-size: 14px; font-weight: 500; }
.tbl .sub { font-size: 12px; color: var(--cd-muted); }
.tbl-wrap { overflow-x: auto; }
.tbl-wrap.scroll { overflow: auto; max-height: var(--tbl-max, calc(100vh - 180px)); }
@media (min-width: 768px) { .tbl-wrap:not(.scroll) { overflow: visible; } .tbl-wrap:not(.scroll) .tbl th { top: var(--topbar-h); } }
.tbl-wrap.scroll .tbl th { top: 0; }
.col-hide { display: none !important; }
.mono-tag { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; background: #f3f4f6; color: #4b5563; border-radius: 4px; padding: 1px 6px; letter-spacing: .02em; white-space: nowrap; }
.tbl-cards > .crow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #f1f5f9; }
@media (min-width: 768px) { .tbl-cards { display: none; } }
.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.pager .info { color: var(--cd-muted); margin-right: auto; }
.pager .pg { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--cd-border); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; cursor: pointer; }
.pager .pg.on { background: var(--cd-blue); color: #fff; border-color: transparent; }
.pager .pg[disabled] { opacity: .4; cursor: default; }
.pager .dots { padding: 0 4px; color: #9ca3af; }
@media (max-width: 767px) { .pager .pg:not(.nav) { display: none; } }
@media (min-width: 768px) { .pager .pager-more { display: none; } }

/* ---- pills / tags / chips / buttons / inputs ---- */
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pill-grey { background: #f3f4f6; color: #374151; }
.pill-blue { background: #dbeafe; color: #1d4ed8; }
.pill-amber { background: #fef3c7; color: #92400e; }
.pill-green { background: #dcfce7; color: #166534; }
.pill-red { background: #fee2e2; color: #991b1b; }
.pill-purple { background: #ede9fe; color: #5b21b6; }
.tag { display: inline-flex; width: 18px; height: 18px; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 700; align-items: center; justify-content: center; }
.tag-B { background: #f97316; } .tag-C { background: #2563eb; } .tag-P { background: #ca8a04; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid var(--cd-border); border-radius: 999px; font-size: 12px; background: #fff; white-space: nowrap; cursor: pointer; transition: background-color 150ms, border-color 150ms; }
.chip.on { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.chip .ic { width: 12px; height: 12px; opacity: .7; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--cd-border); font-size: 13px; background: #fff; cursor: pointer; white-space: nowrap; transition: background-color 150ms, transform 120ms var(--ease-out), box-shadow 150ms; }
@media (hover: hover) { .btn:hover { background: #f9fafb; } .btn-p:hover { background: #1a5fd0; } }
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[disabled] { transform: none; cursor: default; }
.btn-p { background: linear-gradient(90deg, var(--c1), #4f46e5); color: #fff; border-color: transparent; }
.btn-sm { padding: 3px 8px; font-size: 12px; }
.btn-ic { padding: 6px; } .btn-sm.btn-ic { padding: 4px; }
.inp { border: 1px solid var(--cd-border); border-radius: 6px; padding: 6px 10px; font-size: 13px; background: #fff; transition: border-color 150ms, box-shadow 150ms; }
.inp:focus { outline: none; border-color: #93c5fd; box-shadow: 0 0 0 3px #dbeafe; }
.btn:focus-visible, .chip:focus-visible, .pg:focus-visible, .seg span:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--cd-border); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 8px 12px; font-size: 13px; color: #4b5563; border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; }
.tabs a.on { color: var(--cd-blue); border-color: var(--cd-blue); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--cd-border); border-radius: 6px; overflow: hidden; font-size: 12px; }
.seg span { padding: 3px 9px; cursor: pointer; }
.seg span.on { background: linear-gradient(90deg, var(--c1), var(--c4)); color: #fff; }
.cnt { background: var(--cd-blue); color: #fff; border-radius: 999px; font-size: 10px; min-width: 16px; height: 16px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; line-height: 1; }

/* ---- avatars (pastel) ---- */
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; flex-shrink: 0; line-height: 1; }
.photo-frame { border-radius: 8px; overflow: hidden; border: 1px solid var(--cd-border); display: flex; align-items: center; justify-content: center; }

/* ---- page header (CD.pageHeader) ---- */
.page-head { display: flex; align-items: flex-start; gap: 8px 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ph-main { display: flex; align-items: flex-start; gap: 10px; min-width: 0; flex: 1 1 0; }
.ph-back { display: inline-flex; width: 32px; height: 32px; border-radius: 8px; align-items: center; justify-content: center; color: #4b5563; border: 1px solid var(--cd-border); background: #fff; flex-shrink: 0; margin-top: 1px; }
.ph-crumbs { font-size: 12px; color: var(--cd-muted); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.ph-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-head h1 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; }
.ph-sub { font-size: 13px; color: var(--cd-muted); margin-top: 1px; }
.ph-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; position: relative; }
.ph-actions .sec { display: none; }
.ph-more { position: relative; }
.ph-menu { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--cd-border); border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,.12); min-width: 190px; padding: 4px; z-index: 30; display: none; transform-origin: top right; }
.ph-menu.open { display: block; animation: cd-pop var(--dur-fast) var(--ease-out); }
.ph-menu a, .ph-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; font-size: 13px; border-radius: 6px; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; }
@media (hover: hover) { .ph-menu a:hover, .ph-menu button:hover { background: #f3f4f6; } }
@media (min-width: 768px) { .ph-actions .sec { display: inline-flex; } .ph-more { display: none; } }
@keyframes cd-pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---- filter bar (CD.filterBar) ---- */
.fbar { background: #fff; border: 1px solid var(--cd-border); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.fbar-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; align-items: end; }
.fbar-search { grid-column: 1 / -1; position: relative; }
.fbar-search .ic { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: #9ca3af; width: 16px; height: 16px; pointer-events: none; }
.fbar-search .inp { width: 100%; padding-left: 30px; }
.fctl > .flbl { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--cd-muted); margin-bottom: 2px; line-height: 1.2; white-space: nowrap; }
.fctl .inp { width: 100%; }
.fctl .chips { padding-bottom: 0; }
.fbar-more { grid-column: 1 / -1; justify-content: center; }
@media (max-width: 767px) { .fbar-row > .fctl { display: none; } .fbar-row > .fbar-search { display: block; } .card-h .seg { white-space: nowrap; overflow-x: auto; max-width: 100%; } }
.fbar-chips { margin-top: 8px; flex-wrap: wrap; }
.fbar-chips:empty { display: none; }
@media (min-width: 768px) {
  .fbar-row { display: flex; flex-wrap: wrap; }
  .fbar-search { flex: 1 1 240px; max-width: 340px; }
  .fbar-row > .fctl { flex: 0 1 auto; min-width: 130px; max-width: 220px; }
  .fbar-row > .fctl.w-chips { min-width: 0; }
  .fbar-more { margin-left: auto; grid-column: auto; }
}
.fgrid-more { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fgrid-more .fctl.wide { grid-column: 1 / -1; }

/* ---- skeleton / empty ---- */
.sk { display: block; background: linear-gradient(90deg, #f1f5f9 25%, #e5e7eb 37%, #f1f5f9 63%); background-size: 400% 100%; animation: cd-sk 1.4s ease infinite; border-radius: 6px; }
.sk-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #f1f5f9; }
@keyframes cd-sk { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.empty { text-align: center; padding: 36px 16px; color: var(--cd-muted); }
.empty-ic { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; background: #f1f5f9; color: #64748b; align-items: center; justify-content: center; margin-bottom: 10px; }
.empty-ic .ic { width: 22px; height: 22px; }
.empty-t { font-size: 14px; font-weight: 600; color: #374151; }
.empty-h { font-size: 12.5px; margin-top: 2px; }

/* ---- drawer (slide-in 220 ms / out 160 ms) + toast ---- */
.drawer { position: fixed; inset: 0; z-index: 1200; visibility: hidden; transition: visibility 0s linear var(--dur-fast); }
.drawer.open { visibility: visible; transition-delay: 0s; }
.drawer .bg { position: absolute; inset: 0; background: rgba(15,23,42,.35); opacity: 0; transition: opacity var(--dur-fast) ease-out; }
.drawer.open .bg { opacity: 1; transition-duration: var(--dur); }
.drawer .panel { position: absolute; top: 0; bottom: 0; right: 0; width: min(520px, 100%); background: #fff; overflow: auto; box-shadow: -1px 0 0 var(--cd-border), -12px 0 32px rgba(15,23,42,.12); transform: translateX(100%); transition: transform var(--dur-fast) ease-in; }
.drawer.open .panel { transform: none; transition: transform var(--dur) var(--ease-out); }
.cd-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1300; display: none; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-size: 13px; color: #fff; background: #0f172a; box-shadow: 0 8px 24px rgba(15,23,42,.25); transform: translate(-50%, 12px); opacity: 0; transition: opacity var(--dur) ease-out, transform var(--dur) ease-out; max-width: 92vw; }
.cd-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 767px) { .cd-toast { bottom: 76px; } }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--cd-muted); } .kv dd { margin: 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.dot-g { background: #16a34a; } .dot-a { background: #d97706; } .dot-r { background: #dc2626; }
.dash-card.dragging { opacity: .4; }
.dash-card .grip { cursor: grab; color: #9ca3af; }
.leaflet-container { font: inherit; border-radius: 8px; }
@media (max-width: 767px) {
  .tbl th, .tbl td { padding: 6px 8px; font-size: 12.5px; }
  .stat .val { font-size: 18px; }
  main { padding-bottom: 64px; }
  .card-h .legend { flex-basis: 100%; order: 9; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- public website ---- */
.site-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--cd-border); }
.site-link { padding: 6px 10px; border-radius: 6px; font-size: 14px; color: #374151; }
.site-link:hover, .site-link.on { color: var(--cd-blue); background: #eff6ff; }
.site-footer { background: #fff; border-top: 1px solid var(--cd-border); }
.hero { background: radial-gradient(1200px 500px at 20% -10%, #dbeafe 0%, transparent 60%), radial-gradient(900px 400px at 90% 10%, #ede9fe 0%, transparent 60%); }
.h-xl { font-family: Poppins, Hind, sans-serif; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.feat { border: 1px solid var(--cd-border); border-radius: 12px; padding: 18px; background: #fff; transition: transform .15s, box-shadow .15s; }
.feat:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.step-n { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: Poppins; font-weight: 700; background: linear-gradient(135deg, #2563eb, #7c3aed); }
.plan { border: 1px solid var(--cd-border); border-radius: 14px; padding: 20px; background: #fff; display: flex; flex-direction: column; }
.plan.hot { border: 2px solid #7c3aed; box-shadow: 0 10px 30px rgba(124,58,237,.15); position: relative; }
.plan.hot::before { content: attr(data-badge); position: absolute; top: -12px; left: 16px; background: linear-gradient(90deg,#2563eb,#7c3aed); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.price { font-family: Poppins; font-size: 30px; font-weight: 700; }
.mock { border: 1px solid var(--cd-border); border-radius: 12px; background: #fff; box-shadow: 0 20px 50px rgba(15,23,42,.12); overflow: hidden; }
.mock .bar-top { height: 28px; background: #f1f5f9; display: flex; gap: 6px; align-items: center; padding: 0 10px; }
.mock .bar-top i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; display: block; }
.faq details { border: 1px solid var(--cd-border); border-radius: 10px; padding: 12px 16px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; }
.band { background: linear-gradient(135deg, #1e3a8a, #2563eb 55%, #7c3aed); color: #fff; border-radius: 16px; }
.check li { padding-left: 22px; position: relative; }
.check li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.band .btn { background: #fff; color: #1e3a8a; border-color: #fff; font-weight: 600; }
.band .btn.bg-transparent { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

/* scope selector (district > assembly) */
.scope-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 1px solid var(--cd-border); border-radius: 10px; background: #fff; font-size: 13px; max-width: 360px; white-space: nowrap; overflow: hidden; transition: border-color 160ms ease, transform 160ms ease-out; }
.scope-btn b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.scope-btn .ic { width: 16px; height: 16px; color: #6366f1; flex: none; }
.scope-btn:active { transform: scale(.97); }
@media (hover: hover) { .scope-btn:hover { border-color: #a5b4fc; } }
@media (max-width: 767px) { .scope-btn { max-width: 150px; padding: 0 8px; } }
.scope-a { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--cd-border); border-radius: 10px; background: #fff; margin-bottom: 6px; }
.scope-a.on { border-color: #818cf8; background: #eef2ff; }
@media (hover: hover) { .scope-a:hover { border-color: #a5b4fc; } }
.scope-a .ic { width: 16px; height: 16px; color: #6366f1; }
.scope-no { width: 30px; height: 30px; border-radius: 8px; background: #eef2ff; color: #4338ca; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.map-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 500; background: #fff; border: 1px solid var(--cd-border); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: #475569; display: flex; gap: 6px; align-items: center; box-shadow: 0 4px 12px rgba(15,23,42,.08); }

/* collapsible PC sidebar: 228 px ↔ 64 px icon rail (body.side-collapsed) */
.side-wrap { transition: width 200ms cubic-bezier(.23,1,.32,1); }
#wrap { transition: padding-left 200ms cubic-bezier(.23,1,.32,1); }
.side-toggle .ic { width: 16px; height: 16px; color: #6b7280; }
@media (min-width: 768px) {
  body.side-collapsed .side-wrap { width: 64px !important; }
  body.side-collapsed #wrap { padding-left: 64px !important; }
  body.side-collapsed .side-label { display: none; }
  body.side-collapsed .side-head { flex-direction: column; justify-content: center; gap: 4px; height: auto; padding: 8px 0; }
  body.side-collapsed .side-head > a { flex: none; justify-content: center; }
  body.side-collapsed .side a { justify-content: center; padding: 8px 0; }
  body.side-collapsed .side a .ic { width: 19px; height: 19px; }
  body.side-collapsed .side .sec { padding: 8px 0 4px; margin: 4px 10px 0; border-top: 1px solid var(--cd-border); }
  body.side-collapsed .side-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) { .side-wrap, #wrap { transition: none; } }
