/* ─── THEME ─────────────────────────────── */
:root {
    --bg: #07090f;
    --s1: #0d1117;
    --s2: #161b27;
    --s3: #1c2333;
    --border: #1e3a5f;
    --b2: rgba(30, 58, 95, .45);
    --ac: #0ea5e9;
    --ac2: #38bdf8;
    --ac3: #bae6fd;
    --gold: #f59e0b;
    --rose: #f43f5e;
    --emerald: #10b981;
    --text: #e2e8f0;
    --t2: #8b9ab3;
    --t3: #4a5568;
    --r: 12px;
    --r2: 20px;
    --sh: 0 8px 32px rgba(14, 165, 233, .1);
    --sh2: 0 20px 60px rgba(0, 0, 0, .4);
}

[data-theme="light"] {
    --bg: #f0f4f8;
    --s1: #fff;
    --s2: #f7fafc;
    --s3: #edf2f7;
    --border: #cbd5e0;
    --b2: rgba(203, 213, 224, .6);
    --ac: #0284c7;
    --ac2: #0369a1;
    --ac3: #075985;
    --text: #1a202c;
    --t2: #4a5568;
    --t3: #718096;
    --sh: 0 4px 20px rgba(0, 0, 0, .08);
    --sh2: 0 12px 40px rgba(0, 0, 0, .12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Noto Sans Bengali', 'Hind Siliguri', 'SolaimanLipi', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background .3s, color .3s
}

/* ─── NOISE OVERLAY ─────────────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: .5
}

/* ─── GRID BG ───────────────────────────── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(14, 165, 233, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 165, 233, .025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0
}

[data-theme="light"] body::before {
    background-image: linear-gradient(rgba(2, 132, 199, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(2, 132, 199, .05) 1px, transparent 1px)
}

/* ─── LOADER ─────────────────────────────── */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .6s, visibility .6s
}

#loader.out {
    opacity: 0;
    visibility: hidden
}

.ld-glow {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, .3), transparent 70%);
    animation: ldPulse 2s ease-in-out infinite;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem
}

@keyframes ldPulse {

    0%,
    100% {
        transform: scale(.9);
        opacity: .6
    }

    50% {
        transform: scale(1.1);
        opacity: 1
    }
}

.ld-title {
    font-family: 'Tiro Bangla', serif;
    font-size: 1.6rem;
    color: var(--ac);
    margin-bottom: .3rem;
    text-align: center
}

.ld-sub {
    color: var(--t2);
    font-size: .82rem;
    margin-bottom: 2rem;
    text-align: center
}

.ld-track {
    width: 220px;
    height: 3px;
    background: var(--s2);
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 1.5rem
}

.ld-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ac), var(--gold));
    border-radius: 9px;
    width: 0;
    animation: ldFill 2.4s cubic-bezier(.4, 0, .2, 1) forwards
}

@keyframes ldFill {
    0% {
        width: 0
    }

    60% {
        width: 80%
    }

    100% {
        width: 100%
    }
}

.ld-msg {
    color: var(--t2);
    font-size: .78rem;
    min-height: 1.2em
}

.ld-msgs {
    animation: ldMsg 2.4s steps(1) forwards
}

@keyframes ldMsg {
    0% {
        content: "CSV ফাইল লোড হচ্ছে..."
    }

    40% {
        content: "ডেটা প্রস্তুত হচ্ছে..."
    }

    80% {
        content: "সিস্টেম চালু হচ্ছে..."
    }
}

/* ─── LOGIN ──────────────────────────────── */
#loginWrap {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg)
}

#loginWrap.gone {
    display: none
}

.lg-card {
    width: 100%;
    max-width: 400px;
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.25rem;
    box-shadow: var(--sh2);
    position: relative;
    overflow: hidden
}

.lg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ac), var(--gold), var(--ac))
}

.lg-logo {
    text-align: center;
    margin-bottom: 1.75rem
}

.lg-icon {
    font-size: 2.75rem;
    display: block;
    margin-bottom: .5rem
}

.lg-name {
    font-family: 'Tiro Bangla', serif;
    font-size: 1.35rem;
    color: var(--ac)
}

.lg-sub {
    font-size: .78rem;
    color: var(--t2);
    margin-top: .2rem
}

.fg {
    margin-bottom: 1rem
}

.fg label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--t2);
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .05em
}

.fi {
    width: 100%;
    padding: .72rem 1rem;
    background: var(--s2);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    font-family: inherit;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s
}

.fi:focus {
    outline: none;
    border-color: var(--ac);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15)
}

.fi::placeholder {
    color: var(--t3)
}

.fi option {
    background: var(--s2)
}

.err {
    background: rgba(244, 63, 94, .08);
    border: 1px solid rgba(244, 63, 94, .25);
    border-radius: 8px;
    padding: .55rem .9rem;
    color: var(--rose);
    font-size: .82rem;
    margin-bottom: 1rem;
    display: none
}

/* ─── BUTTONS ────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: none;
    border-radius: var(--r);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all .2s;
    white-space: nowrap
}

.btn-w {
    width: 100%
}

.btn-prim {
    background: linear-gradient(135deg, var(--ac), #0369a1);
    color: #fff;
    padding: .78rem 1.5rem;
    font-size: .92rem;
    box-shadow: 0 4px 20px rgba(14, 165, 233, .25)
}

.btn-prim:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, .35)
}

.btn-sec {
    background: var(--s2);
    color: var(--text);
    border: 1.5px solid var(--border);
    padding: .6rem 1.1rem;
    font-size: .82rem
}

.btn-sec:hover {
    border-color: var(--ac);
    color: var(--ac)
}

.btn-ghost {
    background: transparent;
    color: var(--t2);
    padding: .5rem .8rem;
    font-size: .82rem
}

.btn-ghost:hover {
    color: var(--text)
}

.btn-danger {
    background: rgba(244, 63, 94, .1);
    color: var(--rose);
    border: 1px solid rgba(244, 63, 94, .25);
    padding: .5rem .9rem;
    font-size: .78rem
}

.btn-danger:hover {
    background: var(--rose);
    color: #fff
}

.btn-sm {
    padding: .38rem .8rem;
    font-size: .76rem;
    border-radius: 8px
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #000;
    padding: .5rem .9rem;
    font-size: .78rem
}

.btn-emerald {
    background: rgba(16, 185, 129, .1);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, .25);
    padding: .5rem .9rem;
    font-size: .78rem
}

.btn-emerald:hover {
    background: var(--emerald);
    color: #fff
}

/* ─── APP ────────────────────────────────── */
#app {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh
}

#app.on {
    display: block
}

/* ─── HEADER ─────────────────────────────── */
.hdr {
    background: rgba(13, 17, 23, .85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: .65rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100
}

[data-theme="light"] .hdr {
    background: rgba(255, 255, 255, .9)
}

.hdr-l {
    display: flex;
    align-items: center;
    gap: .9rem
}

.brand {
    font-family: 'Tiro Bangla', serif;
    font-size: 1.1rem;
    color: var(--ac);
    display: flex;
    align-items: center;
    gap: .4rem
}

.hdr-badge {
    background: rgba(14, 165, 233, .1);
    border: 1px solid rgba(14, 165, 233, .2);
    color: var(--ac2);
    font-size: .66rem;
    padding: .18rem .55rem;
    border-radius: 99px;
    font-weight: 600
}

.hdr-r {
    display: flex;
    align-items: center;
    gap: .6rem
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ac), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: #000;
    flex-shrink: 0
}

.u-name {
    font-size: .8rem;
    color: var(--t2);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.u-role {
    font-size: .66rem;
    padding: .12rem .45rem;
    border-radius: 99px;
    background: rgba(245, 158, 11, .12);
    color: var(--gold);
    font-weight: 700
}

#themeToggle {
    width: 34px;
    height: 34px;
    background: var(--s2);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all .2s
}

#themeToggle:hover {
    border-color: var(--ac)
}

/* ─── TABS ───────────────────────────────── */
.tabs {
    background: var(--s1);
    border-bottom: 1px solid var(--border);
    padding: 0 1.25rem;
    display: flex;
    gap: 0;
    overflow-x: auto
}

.tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: .7rem 1.1rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--t2);
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    white-space: nowrap
}

.tab:hover {
    color: var(--text)
}

.tab.on {
    color: var(--ac);
    border-bottom-color: var(--ac)
}

/* ─── PAGES ──────────────────────────────── */
.pg {
    display: none;
    padding: 1.25rem;
    max-width: 1100px;
    margin: 0 auto
}

.pg.on {
    display: block;
    animation: pgIn .25s ease
}

@keyframes pgIn {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ─── SEARCH HERO ────────────────────────── */
.hero {
    text-align: center;
    padding: 1.75rem 0 2rem
}

.hero h1 {
    font-family: 'Tiro Bangla', serif;
    font-size: 1.9rem;
    color: var(--ac);
    margin-bottom: .35rem
}

.hero p {
    color: var(--t2);
    font-size: .88rem
}

.hero .dbs {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .75rem;
    padding: .35rem .9rem;
    background: rgba(16, 185, 129, .08);
    border: 1px solid rgba(16, 185, 129, .2);
    border-radius: 99px;
    font-size: .75rem;
    color: var(--emerald)
}

.hero .dbs .dot {
    width: 6px;
    height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    animation: blink 1.5s infinite
}

@keyframes blink {

    0%,
    100% {
        opacity: .3
    }

    50% {
        opacity: 1
    }
}

/* ─── SEARCH BOX ─────────────────────────── */
.sb-wrap {
    max-width: 660px;
    margin: 0 auto 1.25rem;
    position: relative
}

.sb {
    width: 100%;
    padding: 1rem 5.5rem 1rem 3.25rem;
    background: var(--s1);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
    transition: all .3s;
    box-shadow: var(--sh)
}

.sb:focus {
    outline: none;
    border-color: var(--ac);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .12), var(--sh)
}

.sb::placeholder {
    color: var(--t3)
}

.sb-ic {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--t2);
    font-size: 1.05rem;
    pointer-events: none
}

.sb-help {
    position: absolute;
    right: 3.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--ac);
    cursor: pointer;
    font-size: 1.25rem;
    transition: color .2s;
    line-height: 1;
}
.sb-help:hover { color: var(--ac2); }

.sb-cl {
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--t2);
    cursor: pointer;
    font-size: 1.1rem;
    display: none;
    line-height: 1
}

.sb-cl.on {
    display: block
}

/* ─── FILTERS ────────────────────────────── */
.filters {
    max-width: 660px;
    margin: 0 auto 1.5rem;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap
}

.fsel {
    flex: 1;
    min-width: 140px;
    padding: .58rem .9rem;
    background: var(--s1);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    color: var(--text);
    font-family: inherit;
    font-size: .8rem;
    transition: border-color .2s
}

.fsel:focus {
    outline: none;
    border-color: var(--ac)
}

.fsel option {
    background: var(--s2)
}

/* ─── LOADING INDICATOR ──────────────────── */
#loadingBar {
    height: 2px;
    background: linear-gradient(90deg, var(--ac), var(--gold));
    border-radius: 1px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    transition: width .4s, opacity .3s;
    opacity: 0;
    width: 0
}

#loadingBar.show {
    opacity: 1
}

#searchSpinner {
    display: none;
    text-align: center;
    padding: 1rem;
    color: var(--t2);
    font-size: .85rem
}

#searchSpinner.on {
    display: block
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--ac);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin-right: .5rem;
    vertical-align: middle
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* ─── RESULTS ────────────────────────────── */
.rh {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .9rem;
    padding: 0 .1rem
}

.rc {
    font-size: .82rem;
    color: var(--t2)
}

.rc strong {
    color: var(--ac)
}

.rg {
    display: grid;
    gap: .75rem
}

/* ─── VOTER CARD ─────────────────────────── */
.vc {
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1rem 1.1rem;
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: .9rem;
    align-items: start;
    transition: border-color .2s, transform .15s, box-shadow .2s;
    animation: cIn .3s ease both
}

@keyframes cIn {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.vc:hover {
    border-color: rgba(14, 165, 233, .35);
    box-shadow: 0 4px 20px rgba(14, 165, 233, .08);
    transform: translateY(-1px)
}

.vsn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ac), #0369a1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    color: #fff;
    flex-shrink: 0
}

.vsn.f {
    background: linear-gradient(135deg, #ec4899, #be185d)
}

.vi .vn {
    font-size: .97rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .3rem
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .4rem
}

.chip {
    font-size: .68rem;
    padding: .18rem .55rem;
    border-radius: 99px;
    background: var(--s2);
    color: var(--t2);
    border: 1px solid var(--b2);
    white-space: nowrap
}

.chip.ac {
    background: rgba(14, 165, 233, .08);
    color: var(--ac2);
    border-color: rgba(14, 165, 233, .2)
}

.chip.go {
    background: rgba(245, 158, 11, .08);
    color: var(--gold);
    border-color: rgba(245, 158, 11, .2)
}

.chip.em {
    background: rgba(16, 185, 129, .08);
    color: var(--emerald);
    border-color: rgba(16, 185, 129, .2)
}

.va {
    font-size: .76rem;
    color: var(--t2);
    line-height: 1.5
}

.vnid {
    font-size: .7rem;
    color: var(--t3);
    font-family: monospace;
    margin-top: .25rem
}

.vbtns {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex-shrink: 0
}

mark {
    background: rgba(14, 165, 233, .2);
    color: var(--ac2);
    border-radius: 3px;
    padding: 0 2px
}

/* ─── EMPTY ──────────────────────────────── */
.empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--t2)
}

.empty .ei {
    font-size: 3.5rem;
    margin-bottom: .75rem;
    opacity: .4
}

.empty h3 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: .3rem
}

/* ─── PAGINATION ─────────────────────────── */
.pag {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.25rem;
    flex-wrap: wrap
}

.pb {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--s2);
    color: var(--t2);
    cursor: pointer;
    font-size: .8rem;
    font-family: inherit;
    transition: all .2s
}

.pb.on {
    background: var(--ac);
    color: #fff;
    border-color: var(--ac)
}

.pb:hover:not(.on) {
    border-color: var(--ac);
    color: var(--ac)
}

/* ─── STATS ──────────────────────────────── */
.sg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .9rem;
    margin-bottom: 1.5rem
}

.sc {
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.1rem;
    text-align: center
}

.sv {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--ac);
    font-family: 'Tiro Bangla', serif
}

.sl {
    font-size: .75rem;
    color: var(--t2);
    margin-top: .2rem
}

/* ─── FILE PROGRESS ──────────────────────── */
.fp-list {
    display: grid;
    gap: .5rem
}

.fp-item {
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: .75rem 1rem
}

.fp-top {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    margin-bottom: .4rem
}

.fp-bar-t {
    height: 5px;
    background: var(--s2);
    border-radius: 3px;
    overflow: hidden
}

.fp-bar {
    height: 100%;
    border-radius: 3px;
    transition: width .5s
}

.fp-bar.done {
    background: var(--emerald)
}

.fp-bar.err {
    background: var(--rose)
}

.fp-bar.ld {
    background: linear-gradient(90deg, var(--ac), var(--gold));
    animation: barPulse 1s ease-in-out infinite
}

@keyframes barPulse {

    0%,
    100% {
        opacity: .7
    }

    50% {
        opacity: 1
    }
}

/* ─── ADMIN / SECTION ────────────────────── */
.sec {
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.25rem;
    margin-bottom: 1.25rem
}

.sec-t {
    font-size: .92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .5rem
}

.tw {
    overflow-x: auto
}

table {
    width: 100%;
    border-collapse: collapse
}

th {
    text-align: left;
    font-size: .72rem;
    color: var(--t2);
    font-weight: 600;
    padding: .55rem .9rem;
    background: var(--s2);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: .04em
}

td {
    padding: .7rem .9rem;
    font-size: .82rem;
    border-bottom: 1px solid var(--b2);
    color: var(--text)
}

tr:last-child td {
    border-bottom: none
}

tr:hover td {
    background: rgba(14, 165, 233, .03)
}

.badge {
    display: inline-block;
    padding: .18rem .55rem;
    border-radius: 99px;
    font-size: .68rem;
    font-weight: 700
}

.ba {
    background: rgba(245, 158, 11, .12);
    color: var(--gold)
}

.bm {
    background: rgba(14, 165, 233, .1);
    color: var(--ac2)
}

.bon {
    background: rgba(16, 185, 129, .1);
    color: var(--emerald)
}

.boff {
    background: rgba(244, 63, 94, .1);
    color: var(--rose)
}

/* ─── MODAL ──────────────────────────────── */
.mo {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 600;
    padding: 1rem;
    backdrop-filter: blur(6px)
}

.mo.on {
    display: flex
}

.mb {
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: var(--r2);
    padding: 1.75rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--sh2);
    animation: mbIn .25s ease
}

@keyframes mbIn {
    from {
        opacity: 0;
        transform: scale(.95)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.mt {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.mcl {
    background: none;
    border: none;
    color: var(--t2);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: color .2s
}

.mcl:hover {
    color: var(--rose)
}

/* ─── TOAST ──────────────────────────────── */
.tw2 {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    z-index: 9000;
    pointer-events: none
}

.toast {
    background: var(--s1);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: .65rem 1.1rem;
    font-size: .82rem;
    box-shadow: var(--sh);
    animation: tIn .3s ease;
    pointer-events: all;
    max-width: 280px
}

@keyframes tIn {
    from {
        transform: translateX(16px);
        opacity: 0
    }

    to {
        transform: translateX(0);
        opacity: 1
    }
}

.toast.s {
    border-color: var(--emerald);
    color: var(--emerald)
}

.toast.e {
    border-color: var(--rose);
    color: var(--rose)
}

.toast.i {
    border-color: var(--ac);
    color: var(--ac2)
}

.toast.w {
    border-color: var(--gold);
    color: var(--gold)
}

/* ─── PRINT ──────────────────────────────── */
#pa {
    display: none
}

@media print {
    html, body {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
    }
    body>*:not(#pa) {
        display: none !important
    }

    #pa {
        display: block !important;
        background: #fff;
        color: #000;
        padding: 0;
        font-family: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif
    }

    #pa * {
        color: #000 !important
    }
}

/* ─── RESPONSIVE ─────────────────────────── */
@media(max-width:600px) {
    .hdr { padding: .5rem .75rem; }
    .brand { font-size: .95rem; }
    .hdr-badge { padding: .15rem .4rem; font-size: .6rem; }
    .u-name, .u-role { display: none; }

    .pg { padding: .75rem; }
    .hero { padding: 1rem 0 1.25rem; }
    .hero h1 { font-size: 1.35rem; }
    .hero p { font-size: .8rem; }

    .sb { padding: .8rem 4rem .8rem 2.5rem; font-size: .85rem; }
    .sb-ic { left: .8rem; font-size: .9rem; }
    .sb-help { right: 2.25rem; font-size: 1.05rem; }
    .sb-cl { right: .8rem; font-size: 1rem; }

    .filters { gap: .4rem; }
    .fsel { min-width: 46%; font-size: .75rem; padding: .5rem .7rem; flex: 1 1 45%; }

    .vc { grid-template-columns: 36px 1fr; gap: .75rem; padding: .85rem; }
    .vsn { width: 36px; height: 36px; font-size: .8rem; border-radius: 8px; }
    .vbtns {
        grid-column: 1 / -1;
        flex-direction: row;
        border-top: 1px solid var(--b2);
        padding-top: .75rem;
        margin-top: .25rem;
        gap: .5rem;
    }
    .vbtns .btn { flex: 1; padding: .5rem; font-size: .8rem; justify-content: center; }

    .vi .vn { font-size: .9rem; margin-bottom: .2rem; }
    .chip { font-size: .62rem; padding: .15rem .45rem; }
    .va { font-size: .72rem; }
    .vnid { font-size: .68rem; }

    .sg { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .sc { padding: .8rem .5rem; }
    .sv { font-size: 1.3rem; }
    .sl { font-size: .68rem; }

    .sec { padding: 1rem; margin-bottom: 1rem; }
    .sec-t { font-size: .85rem; margin-bottom: .75rem; padding-bottom: .6rem; }

    .mb { padding: 1.25rem; width: calc(100% - 2rem); margin: 1rem; }
    .mt { font-size: .9rem; margin-bottom: 1rem; }
    .lg-card { padding: 1.5rem; border-radius: 16px; margin: 1rem; }

    .toast { max-width: 240px; font-size: .75rem; padding: .5rem .8rem; }
}