:root {
    --ocop-ink: #12241a;
    --ocop-gold: #d4a017;
    --ocop-gold-2: #f0d060;
    --ocop-green: #1b5e3b;
    --ocop-green-2: #0f3d28;
    --ocop-red: #c41e3a;
    --ocop-blue: #1e4d8c;
    --ocop-font: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
    --ocop-header-h: 118px;
    --ocop-logo-w: 90px;
    /* Header — tông KHCN: xanh dương, chữ trắng */
    --ocop-header-bg: linear-gradient(105deg, #062a5c 0%, #0b4a9a 48%, #1565c0 100%);
    --ocop-header-border: #ffffff;
    --ocop-header-title: #ffffff;
    --ocop-header-sub: #e8f3ff;
    --ocop-header-sub-shadow: 0 1px 2px rgba(6, 30, 70, .35);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--ocop-font);
    color: var(--ocop-ink);
}

.ocop-app {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.ocop-map-body {
    background: #eef5fc;
    overflow: hidden;
}

    .ocop-map-body .ocop-app {
        height: 100%;
        min-height: 0;
    }

.ocop-page-body {
    background: #f4f7f2;
}

/* ===== Header ===== */
.ocop-header {
    flex: 0 0 auto;
    min-height: var(--ocop-header-h);
    display: flex;
    align-items: center;
    gap: 12px 16px;
    padding: 10px 16px 10px 12px;
    background: var(--ocop-header-bg);
    border-bottom: 3px solid var(--ocop-header-border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .28);
    z-index: 1200;
    position: relative;
    box-sizing: border-box;
}

.ocop-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: min(820px, 68vw);
    text-decoration: none;
    color: var(--ocop-header-title);
    flex: 1 1 auto;
}
    /* Không dùng icon trên header — chặn cache cũ phình full màn hình */
    .ocop-header .ocop-icon,
    .ocop-brand > img.ocop-icon {
        display: none !important;
    }

.ocop-logo-plate {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: #ffffff;
    border: 1.5px solid #dbeafe;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    box-sizing: border-box;
}

    .ocop-logo,
    .ocop-header img.ocop-logo,
    .ocop-logo-plate img {
        width: var(--ocop-logo-w) !important;
        max-width: var(--ocop-logo-w) !important;
        min-width: var(--ocop-logo-w) !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        display: block !important;
    }

.ocop-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
    border-left: 1px solid rgba(255, 255, 255, .28);
    padding-left: 12px;
}

.ocop-brand-org {
    font-weight: 800;
    font-size: clamp(.72rem, 1.2vw, 1.5rem);
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.25;
    color: var(--ocop-header-sub);
    text-shadow: var(--ocop-header-sub-shadow);
}

.ocop-brand-name {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--ocop-header-title);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    text-transform: uppercase;
}

    .ocop-brand-name .ln1,
    .ocop-brand-name .ln2,
    .ocop-brand-name .ln3 {
        font-size: clamp(.84rem, 1.25vw, 1.25rem);
        font-weight: 800;
        letter-spacing: .02em;
        line-height: 1.25;
    }

.ocop-brand-sub {
    font-weight: 700;
    font-size: clamp(.78rem, 1.15vw, .92rem);
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.25;
}

.ocop-brand-sub-line {
    display: inline;
    white-space: nowrap;
    color: var(--ocop-header-sub);
    font-weight: 800;
    text-shadow: var(--ocop-header-sub-shadow);
}

.ocop-brand-sub-slogan {
    color: var(--ocop-header-sub);
    font-weight: 800;
    text-shadow: var(--ocop-header-sub-shadow);
}

.ocop-brand-sub-sep {
    opacity: .95;
    color: var(--ocop-header-sub);
    text-shadow: var(--ocop-header-sub-shadow);
}

.ocop-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
    min-width: 0;
    justify-content: flex-end;
}

.ocop-kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 68px;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

a.ocop-kpi:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgba(255, 255, 255, .35);
}

.ocop-kpi b {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.ocop-kpi span {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .8;
}

.ocop-kpi--alert.is-hot {
    background: rgba(185, 28, 28, .92);
    border-color: #fecaca;
    box-shadow: 0 0 0 2px rgba(254, 202, 202, .45), 0 6px 16px rgba(127, 29, 29, .35);
}

    .ocop-kpi--alert.is-hot b {
        color: #fff;
    }

    .ocop-kpi--alert.is-hot span {
        color: #fee2e2;
        opacity: 1;
    }

.ocop-account {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 8px;
}

.ocop-map-body .ocop-account {
    margin-left: 0;
}

.ocop-page-body .ocop-account {
    margin-left: auto;
}

.admin-body .ocop-account {
    margin-left: auto;
}

.admin-body .ocop-visits {
    margin-left: 8px;
}

.ocop-visits {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: 8px;
    padding: 8px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 253, 248, .18), rgba(255, 240, 184, .14));
    border: 1px solid rgba(245, 200, 66, .55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}

.ocop-visits--public {
    min-width: 210px;
    padding: 8px 14px;
}

.ocop-visits-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.ocop-visits-line {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    line-height: 1.15;
}

    .ocop-visits-line > i {
        flex-shrink: 0;
        width: 16px;
        text-align: center;
        font-size: .88rem;
    }

    .ocop-visits-line.ocop-visits-online > i {
        color: #dbeafe;
    }

    .ocop-visits-line.ocop-visits-tong > i {
        color: #ffffff;
    }

.ocop-visits-lbl {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #dbeafe;
}

.ocop-visits-line b {
    font-size: .98rem;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

.ocop-visits--admin {
    min-width: 340px;
    max-width: min(420px, 42vw);
}

.ocop-visits-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px 8px;
    width: 100%;
}

    .ocop-visits-grid .ocop-visits-cell {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2px;
        padding: 2px 2px;
        border-radius: 8px;
        background: rgba(0, 0, 0, .12);
    }

    .ocop-visits-grid span {
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: #dbeafe;
        opacity: .95;
        line-height: 1.1;
    }

    .ocop-visits-grid b {
        font-size: 1.05rem;
        font-weight: 900;
        color: #fff;
        letter-spacing: .02em;
        font-variant-numeric: tabular-nums;
        line-height: 1.15;
    }

    .ocop-visits-grid .ocop-visits-tong {
        background: rgba(245, 200, 66, .18);
    }

    .ocop-visits-grid .ocop-visits-online b {
        color: #dbeafe;
    }

.ocop-hi {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
    padding: .35rem .55rem;
    white-space: nowrap;
}

    .ocop-hi i {
        color: #ffffff;
        font-size: 1.15rem;
        flex-shrink: 0;
    }

    .ocop-hi span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.ocop-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: inherit;
    font-weight: 800;
    font-size: .86rem;
    padding: .42rem .9rem;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.nav-cho {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 6px;
    margin-left: .15rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff !important;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}

.ocop-btn-login {
    background: #ffffff;
    color: #0b4a9a !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
}

    .ocop-btn-login:hover {
        background: #e8f3ff;
        color: #062a5c !important;
    }

.ocop-btn-ghost {
    background: rgba(255, 255, 255, .14);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .28);
}

    .ocop-btn-ghost:hover {
        background: rgba(255, 255, 255, .22);
    }

.ocop-btn-logout {
    background: transparent;
    color: #fecaca !important;
    border: 1px solid rgba(248, 113, 113, .45);
}

    .ocop-btn-logout:hover {
        background: rgba(248, 113, 113, .15);
    }

.ocop-logout-form {
    margin: 0;
}

.ocop-main {
    flex: 1;
    min-height: 0;
}

    .ocop-main.is-map {
        position: relative;
        display: flex;
        flex-direction: column;
    }

.ocop-stage {
    position: relative;
    flex: 1;
    min-height: 0;
}

.ocop-admin-placeholder {
    max-width: 720px;
    margin: 40px auto;
    padding: 28px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 61, 40, .08);
}

    .ocop-admin-placeholder h1 {
        margin: 0 0 8px;
        color: var(--ocop-green-2);
    }

    .ocop-admin-placeholder p {
        color: #5c6f64;
    }

.ocop-page-body .ocop-btn-login {
    color: #2a1d02;
}

/* ===== Login ===== */
.login-body {
    min-height: 100%;
    margin: 0;
    background: radial-gradient(900px 420px at 8% 0%, rgba(147, 197, 253, .28), transparent 55%), linear-gradient(165deg, #062a5c, #0b4a9a 55%, #1565c0);
    font-family: var(--ocop-font);
}

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.login-card {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    background: #f4f8fc;
    border: 1px solid #dbeafe;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.login-left {
    padding: 36px 32px 28px;
    background: linear-gradient(165deg, #0b4a9a, #1565c0 55%, #1d4ed8);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    text-align: center;
    gap: 20px;
    min-height: 100%;
    container-type: inline-size;
}

.login-left-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.login-left-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.login-dev-label {
    margin: 0 0 10px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(232, 243, 255, .9);
}

.login-dev-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    color: #fff;
}

    .login-dev-brand:hover {
        color: #fff;
    }

.login-dev-logo {
    height: 52px;
    width: auto;
    max-width: min(220px, 90%);
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
}

.login-dev-name {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #fff;
    border: 1.5px solid #dbeafe;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 18px rgba(0, 0, 0, .18);
}

.login-logo {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    object-fit: contain !important;
    display: block !important;
}

.login-icon {
    display: none !important;
}

.login-app-name {
    margin: 14px 0 0;
    max-width: 100%;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

    .login-app-name .ln1,
    .login-app-name .ln3 {
        font-size: clamp(1.28rem, 2.3vw, 1.62rem);
        letter-spacing: .04em;
    }

    .login-app-name .ln2 {
        font-size: clamp(10px, 2.9cqw, 13.6px);
        font-weight: 800;
        letter-spacing: .01em;
        line-height: 1.25;
        white-space: nowrap;
        max-width: 100%;
    }

    .login-app-name .ln3 {
        margin-top: 2px;
    }

.login-app-sub {
    margin: 0;
    color: #e8f3ff;
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.login-lead {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    line-height: 1.5;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}

.login-setup-note {
    margin: 0 0 14px;
    color: #334155;
    font-size: .92rem;
    line-height: 1.45;
}

.login-back {
    margin-top: 8px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: .88rem;
    text-align: center;
}

    .login-back:hover {
        color: #dbeafe;
    }

.login-right {
    padding: 36px 32px;
    background: #ffffff;
}

    .login-right h2.login-title {
        margin: 0 0 18px;
        display: flex;
        align-items: center;
        gap: 12px;
        color: #0b4a9a;
        font-weight: 900;
        font-size: 1.4rem;
    }

.login-title-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(165deg, #0b4a9a, #1565c0);
    color: #fff;
    font-size: 1.15rem;
    border: 1.5px solid #dbeafe;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px rgba(11, 74, 154, .28);
}

.login-label {
    display: block;
    font-weight: 800;
    font-size: .82rem;
    color: #0b4a9a;
    margin: 12px 0 6px;
}

    .login-label:first-of-type {
        margin-top: 0;
    }

.login-field {
    position: relative;
    display: flex;
    align-items: stretch;
}

.login-field-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 46px;
    display: grid;
    place-items: center;
    color: #0b4a9a;
    font-size: .95rem;
    pointer-events: none;
    border-right: 1px solid #dbeafe;
    background: #eef5fc;
    border-radius: 12px 0 0 12px;
    transition: color .15s ease, background .15s ease;
}

.login-field .login-input {
    padding-left: 3.25rem;
}

.login-field--password .login-input {
    padding-right: 2.85rem;
}

.login-pass-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #5c6f64;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

    .login-pass-toggle:hover {
        color: #0b4a9a;
        background: #e8f3ff;
    }

    .login-pass-toggle:focus-visible {
        outline: 2px solid #93c5fd;
        outline-offset: 1px;
    }

.login-field:focus-within .login-field-icon {
    color: #fff;
    background: linear-gradient(165deg, #0b4a9a, #1565c0);
    border-right-color: #bfdbfe;
}

.login-input {
    width: 100%;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: .72rem .85rem;
    font: inherit;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .login-input::placeholder {
        color: #9ca89f;
        font-weight: 500;
    }

    .login-input:focus {
        outline: none;
        border-color: #1d4ed8;
        box-shadow: 0 0 0 3px rgba(29, 78, 216, .16);
    }

.login-field:focus-within .login-input {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .16);
}

.login-err {
    display: block;
    color: #b91c1c;
    font-size: .78rem;
    font-weight: 700;
    margin-top: 4px;
}

.login-alert {
    margin: 10px 0;
    color: #b91c1c;
    font-weight: 800;
}

.login-submit {
    width: 100%;
    margin-top: 16px;
    border: 0;
    border-radius: 999px;
    padding: .75rem 1rem;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    background: #0b4a9a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

    .login-submit:hover {
        filter: brightness(1.05);
    }

.login-recaptcha-note {
    margin: 12px 0 0;
    font-size: .75rem;
    color: #64748b;
    text-align: center;
}

/* ===== Popup đổi mật khẩu ===== */
.pwd-modal-bg {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.35), transparent 40%), radial-gradient(ellipse at 80% 20%, rgba(37, 99, 235, .28), transparent 48%), rgba(15, 40, 90, .42);
    backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    padding: 16px;
}

    .pwd-modal-bg[hidden] {
        display: none !important;
    }

.pwd-modal {
    position: relative;
    width: min(400px, 100%);
    background: linear-gradient(165deg, rgba(255,255,255,.94) 0%, rgba(239,246,255,.88) 100%);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 18px;
    padding: 22px 20px 18px;
    box-shadow: 0 28px 70px rgba(15, 40, 90, .28), inset 0 1px 0 rgba(255, 255, 255, .95);
    font-family: var(--ocop-font);
}

    .pwd-modal h3 {
        margin: 0 0 4px;
        color: #0b2f6b;
        font-size: 1.2rem;
        font-weight: 900;
    }

.pwd-modal-sub {
    margin: 0 0 14px;
    color: #5c6f64;
    font-size: .86rem;
    font-weight: 600;
}

.pwd-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eef2ee;
    color: #0f3d28;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

    .pwd-modal-close:hover {
        background: #e2e8e0;
    }

.pwd-label {
    display: block;
    margin: 10px 0 5px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #5c6f64;
}

.pwd-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d7e3da;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    background: #fff;
    box-sizing: border-box;
}

.pwd-field {
    position: relative;
    margin: 0 0 12px;
}

    .pwd-field .pwd-input {
        padding-right: 44px;
        margin: 0;
    }

.pwd-field-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #5c6f64;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .pwd-field-toggle:hover {
        background: #eef5f0;
        color: #0f3d28;
    }

.pwd-msg {
    margin: 12px 0 0;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 700;
}

    .pwd-msg.ok {
        background: #ecfdf5;
        color: #047857;
        border: 1px solid #a7f3d0;
    }

    .pwd-msg.err {
        background: #fef2f2;
        color: #b91c1c;
        border: 1px solid #fecaca;
    }

.pwd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

    .pwd-actions .ocop-btn {
        cursor: pointer;
    }

    .pwd-actions .ocop-btn-login {
        color: #2a1d02;
    }

    .pwd-actions .ocop-btn-ghost {
        background: #fff;
        color: #0f3d28 !important;
        border: 1px solid #d7e3da;
    }

#pwdSubmit.is-busy {
    opacity: .7;
    pointer-events: none;
}

body.pwd-modal-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .ocop-visits--admin {
        min-width: 280px;
    }

    .ocop-visits-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

        .ocop-visits-grid .ocop-visits-tong {
            grid-column: span 1;
        }
}

@media (max-width: 900px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-left {
        padding: 24px 22px 16px;
        align-items: center;
        text-align: center;
    }

    .ocop-kpis {
        display: none;
    }

    .ocop-hi span {
        max-width: 120px;
    }

    .ocop-visits--admin {
        min-width: 0;
        width: 100%;
        max-width: none;
        order: 3;
    }

    .admin-body .ocop-header {
        flex-wrap: wrap;
    }
}
/* Trang bản đồ mobile: chỉ xem — ẩn Login / tài khoản, chừa chỗ tiêu đề */
@media (max-width: 820px) {
    .ocop-map-body .ocop-account {
        display: none !important;
    }

    .ocop-map-body .ocop-header {
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        min-height: 0;
    }

    .ocop-map-body .ocop-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        gap: 8px;
    }

    .ocop-map-body .ocop-brand-text {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        padding-left: 8px;
        gap: 2px;
    }

    .ocop-map-body .ocop-brand-name {
        white-space: normal;
        line-height: 1.2;
    }

    .ocop-map-body .ocop-brand-name .ln1,
    .ocop-map-body .ocop-brand-name .ln2,
    .ocop-map-body .ocop-brand-name .ln3 {
        font-size: .72rem;
        line-height: 1.25;
        letter-spacing: .01em;
    }

    .ocop-map-body .ocop-brand-sub {
        display: none;
    }

    .ocop-map-body .ocop-visits,
    .ocop-map-body .ocop-visits--public {
        margin-left: 0;
        flex-shrink: 0;
        min-width: 0;
        width: auto;
        max-width: 88px;
        padding: 5px 8px;
        border-radius: 10px;
    }

    .ocop-map-body .ocop-visits-lines {
        gap: 3px;
    }

    .ocop-map-body .ocop-visits-line {
        gap: 5px;
    }

    .ocop-map-body .ocop-visits-lbl {
        display: none;
    }

    .ocop-map-body .ocop-visits-line > i {
        width: 14px;
        font-size: .78rem;
    }

    .ocop-map-body .ocop-visits-line b {
        font-size: .78rem;
    }
}

@media (max-width: 640px) {
    :root {
        --ocop-logo-w: 80px;
        --ocop-header-h: auto;
    }

    .ocop-map-body {
        --ocop-logo-w: 56px;
    }

    .ocop-header {
        padding: 6px 8px;
        gap: 6px 8px;
        min-height: 0;
        align-items: center;
    }

        .ocop-logo,
        .ocop-header img.ocop-logo,
        .ocop-logo-plate img {
            width: var(--ocop-logo-w) !important;
            max-width: var(--ocop-logo-w) !important;
            min-width: var(--ocop-logo-w) !important;
        }

    .ocop-logo-plate {
        padding: 3px 6px;
        border-radius: 6px;
    }

    .ocop-brand {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        gap: 8px;
    }
    /* Giữ tên PM + tỉnh trên mobile — trước đây ẩn hết brand-text */
    .ocop-brand-text {
        display: flex;
        flex: 1;
        min-width: 0;
        padding-left: 8px;
    }

    .ocop-brand-name {
        line-height: 1.18;
        white-space: normal;
    }

        .ocop-brand-name .ln1,
        .ocop-brand-name .ln2,
        .ocop-brand-name .ln3 {
            font-size: .78rem;
        }

    .ocop-map-body .ocop-brand-name .ln1,
    .ocop-map-body .ocop-brand-name .ln2,
    .ocop-map-body .ocop-brand-name .ln3 {
        font-size: .68rem;
    }

    .ocop-brand-sub {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1px;
        white-space: normal;
    }

    .ocop-map-body .ocop-brand-sub {
        display: none;
    }

    .ocop-brand-sub-sep {
        display: none;
    }

    .ocop-brand-sub-line {
        display: block;
        white-space: normal;
        line-height: 1.2;
        color: var(--ocop-header-sub);
        font-weight: 800;
        text-shadow: var(--ocop-header-sub-shadow);
    }

    .ocop-brand-sub-slogan {
        color: var(--ocop-header-sub);
        font-weight: 800;
        text-shadow: var(--ocop-header-sub-shadow);
    }

    .ocop-account {
        flex-shrink: 0;
        margin-left: auto;
        gap: 4px;
    }

    .ocop-hi {
        font-size: .78rem;
        padding: .28rem .4rem;
    }

        .ocop-hi span {
            max-width: 4.5rem;
        }
    /* Nút chỉ icon — không ẩn hẳn Quản trị / Đổi MK */
    .ocop-btn-ghost,
    .ocop-btn-logout {
        padding: .38rem .5rem;
        gap: 0;
        font-size: 0;
        line-height: 1;
    }

        .ocop-btn-ghost i,
        .ocop-btn-logout i {
            font-size: 1rem;
            margin: 0;
        }

    .ocop-btn-login {
        padding: .38rem .7rem;
        font-size: .78rem;
    }
}