:root {
    --ink: #17202a;
    --muted: #667085;
    --line: #e6eaf0;
    --paper: #ffffff;
    --soft: #f5f7fb;
    --accent: #0f766e;
    --accent-2: #2563eb;
    --danger: #dc2626;
}

* {
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-body {
    background: var(--soft);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    width: 260px;
    height: 100vh;
    flex: 0 0 260px;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem;
    background: #ffffff;
    border-right: 1px solid var(--line);
    box-shadow: 12px 0 35px rgba(16, 24, 40, .04);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 58px;
    padding: .75rem;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    font-weight: 750;
}

.admin-brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.admin-menu {
    display: grid;
    gap: .35rem;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: .65rem .75rem;
    color: #344054;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 650;
}

.admin-menu-link:hover {
    color: var(--ink);
    background: #f1f5f9;
}

.admin-menu-link.active {
    color: #fff;
    background: var(--accent);
}

.admin-sidebar-footer {
    margin-top: auto;
    padding: .9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.admin-main {
    min-width: 0;
    flex: 1;
}

.admin-content {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
    padding: 1.25rem;
}

.app-navbar {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    color: var(--ink);
}

.brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.login-body {
    background:
        radial-gradient(circle at 8% 10%, rgba(15, 118, 110, .12), transparent 28rem),
        radial-gradient(circle at 92% 90%, rgba(37, 99, 235, .1), transparent 28rem),
        #f5f7fb;
}

.login-main {
    display: flex;
    min-height: calc(100vh - 65px);
    align-items: center;
    padding: clamp(1.25rem, 4vw, 4rem) 0;
}

.login-shell {
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
}

.login-card {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .13);
}

.login-visual {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: flex-end;
    padding: clamp(2rem, 5vw, 4rem);
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 45%),
        linear-gradient(155deg, #0f766e 0%, #0b5d58 48%, #123f54 100%);
}

.login-visual::before {
    position: absolute;
    top: 12%;
    left: 12%;
    width: 74px;
    height: 74px;
    content: '';
    border: 18px solid rgba(255, 255, 255, .08);
    border-radius: 22px;
    transform: rotate(18deg);
}

.login-visual-content {
    position: relative;
    z-index: 2;
}

.login-eyebrow,
.login-kicker {
    display: block;
    margin-bottom: .85rem;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-eyebrow {
    color: #a7f3d0;
}

.login-visual h2 {
    max-width: 430px;
    margin: 0 0 1.15rem;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.08;
    font-weight: 780;
    letter-spacing: -.04em;
}

.login-visual p {
    max-width: 440px;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, .76);
    line-height: 1.75;
}

.login-feature-list {
    display: grid;
    gap: .8rem;
    color: rgba(255, 255, 255, .9);
    font-size: .92rem;
    font-weight: 650;
}

.login-feature-icon {
    display: inline-grid;
    width: 25px;
    height: 25px;
    margin-right: .55rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.login-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
}

.login-orbit-one {
    top: -150px;
    right: -170px;
    width: 420px;
    height: 420px;
}

.login-orbit-two {
    top: -85px;
    right: -100px;
    width: 280px;
    height: 280px;
}

.login-form-panel {
    display: grid;
    place-items: center;
    padding: clamp(2rem, 6vw, 4.5rem);
}

.login-form-wrap {
    width: min(100%, 410px);
}

.login-mark {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 1.5rem;
    place-items: center;
    border: 1px solid #dce4ec;
    border-radius: 15px;
    background: #f8fafc;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.login-mark img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.login-kicker {
    margin-bottom: .5rem;
    color: var(--accent);
}

.login-form-panel h1 {
    margin-bottom: .7rem;
    color: #0f172a;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    font-weight: 780;
    letter-spacing: -.035em;
}

.login-subtitle {
    margin-bottom: 2rem;
    color: var(--muted);
}

.login-alert {
    margin-bottom: 1.25rem;
    border-radius: 12px;
    font-size: .9rem;
}

.login-form {
    display: grid;
    gap: 1.25rem;
}

.login-form .form-label {
    margin-bottom: .5rem;
    color: #334155;
    font-size: .88rem;
    font-weight: 700;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap > svg,
.password-toggle svg,
.login-submit svg,
.login-security-note svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-input-wrap > svg {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 16px;
    width: 20px;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input-wrap .form-control {
    min-height: 52px;
    padding: .8rem 3rem;
    border-color: #dbe2ea;
    border-radius: 12px;
    color: #0f172a;
    background: #fbfcfe;
    box-shadow: none;
}

.login-input-wrap .form-control::placeholder {
    color: #a5afbd;
}

.login-input-wrap .form-control:focus {
    border-color: #5eead4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .1);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: #64748b;
    border: 0;
    border-radius: 9px;
    background: transparent;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--accent);
    background: #ecfdf5;
}

.password-toggle svg {
    width: 20px;
}

.login-submit {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: .25rem;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f766e, #0b5d58);
    box-shadow: 0 12px 25px rgba(15, 118, 110, .22);
    transition: transform .18s ease, box-shadow .18s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #0d6b64, #094e4a);
    box-shadow: 0 15px 30px rgba(15, 118, 110, .3);
    transform: translateY(-1px);
}

.login-submit svg {
    width: 20px;
}

.login-security-note {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 1.5rem 0 0;
    color: #7b8797;
    font-size: .78rem;
    line-height: 1.5;
}

.login-security-note svg {
    width: 18px;
    flex: 0 0 18px;
    color: var(--accent);
}

@media (max-width: 820px) {
    .login-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .login-visual {
        min-height: 270px;
        align-items: center;
    }

    .login-visual h2 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .login-visual p {
        margin-bottom: 0;
    }

    .login-feature-list {
        display: none;
    }
}

@media (max-width: 576px) {
    .login-main {
        align-items: flex-start;
        padding: 1rem 0 2rem;
    }

    .login-shell {
        width: min(100% - 1rem, 520px);
    }

    .login-card {
        border-radius: 18px;
    }

    .login-visual {
        min-height: 220px;
        padding: 1.75rem;
    }

    .login-visual p {
        font-size: .9rem;
        line-height: 1.6;
    }

    .login-form-panel {
        padding: 2rem 1.35rem;
    }
}

.nav-link.active {
    color: var(--accent) !important;
    font-weight: 650;
}

.simple-login-shell {
    width: min(100% - 2rem, 420px);
    margin: 0 auto;
}

.simple-login-card {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(16, 24, 40, .07);
}

.simple-login-logo {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    object-fit: contain;
}

.simple-login-card h1 {
    margin-bottom: .35rem;
    text-align: center;
    font-size: 1.65rem;
    font-weight: 700;
}

.simple-login-card > p {
    margin-bottom: 1.75rem;
    color: var(--muted);
    text-align: center;
}

.simple-login-form {
    display: grid;
    gap: 1.4rem;
}

.simple-login-form .form-label {
    margin-bottom: .45rem;
    font-size: .9rem;
    font-weight: 650;
}

.simple-login-form .form-control,
.simple-login-form .btn {
    min-height: 46px;
}

.simple-password-wrap {
    position: relative;
}

.simple-password-wrap .form-control {
    padding-right: 4.5rem;
}

.simple-password-toggle {
    position: absolute;
    top: 50%;
    right: .6rem;
    padding: .25rem .45rem;
    color: var(--muted);
    border: 0;
    background: transparent;
    font-size: .8rem;
    font-weight: 650;
    transform: translateY(-50%);
}

.simple-password-toggle:hover,
.simple-password-toggle:focus-visible {
    color: var(--ink);
}

.reference-input-wrapper {
    position: relative;
}

.reference-input-wrapper input {
    width: 100%;
    height: 58px;
    padding: 16px 48px;
    color: #0f172a;
    border: 1.6px solid #e2e8f0;
    border-radius: 16px;
    outline: none;
    background: #f8fafc;
    font-size: 1rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.reference-input-wrapper input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .1);
}

.reference-input-wrapper label {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 48px;
    padding: 0 .3rem;
    color: #64748b;
    background: #f8fafc;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
    transition: top .18s ease, left .18s ease, color .18s ease, font-size .18s ease, background .18s ease;
}

.reference-input-wrapper input:focus + label,
.reference-input-wrapper input:not(:placeholder-shown) + label {
    top: 0;
    left: 18px;
    color: #4f46e5;
    background: #fff;
    font-size: .78rem;
    font-weight: 700;
}

.reference-input-icon,
.reference-password-toggle svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reference-input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    width: 20px;
    color: #64748b;
    transform: translateY(-50%);
    pointer-events: none;
}

.reference-input-wrapper:focus-within .reference-input-icon {
    color: #4f46e5;
}

.reference-password-toggle {
    position: absolute;
    top: 50%;
    right: 11px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    color: #64748b;
    border: 0;
    border-radius: 50%;
    background: transparent;
    transform: translateY(-50%);
}

.reference-password-toggle:hover,
.reference-password-toggle:focus-visible {
    color: #4f46e5;
    background: #eef2ff;
}

.reference-password-toggle svg {
    width: 20px;
}

.reference-login-button {
    width: 100%;
    min-height: 54px;
    color: #fff;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, .5);
}

.reference-login-button:hover,
.reference-login-button:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #4338ca, #4f46e5);
}

@media (max-width: 576px) {
    .simple-login-card {
        padding: 1.5rem;
    }
}

.hero-panel {
    padding: clamp(1.4rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 18px 55px rgba(16, 24, 40, .08);
}

.page-title {
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 750;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
}

.muted {
    color: var(--muted);
}

.card,
.modal-content {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(16, 24, 40, .06);
}

.form-control,
.form-select,
.btn {
    border-radius: 8px;
}

.btn {
    font-weight: 650;
}

.btn-accent {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.btn-accent:hover {
    color: #fff;
    background: #115e59;
    border-color: #115e59;
}

.table {
    vertical-align: middle;
}

.table thead th {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-orange {
    padding: .5rem .7rem;
    color: #fff;
    background: #f97316;
    font-size: .85rem;
    font-weight: 750;
}

.report-description-highlight {
    min-height: 48px;
    padding: .75rem .85rem;
    color: #713f12;
    background: #fef3c7;
    border: 1px solid #facc15;
    border-radius: 8px;
    line-height: 1.6;
}

.stat-card {
    min-height: 116px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 780;
}

.ticket-code {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    padding: .8rem 1rem;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    background: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 800;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: .75rem;
}

.component-choice {
    position: relative;
}

.component-choice input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.component-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 650;
}

.component-choice input:checked + span {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.qr-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: .5rem;
}

.photo-preview {
    max-width: 100%;
    max-height: 360px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.empty-state {
    padding: 2rem;
    color: var(--muted);
    text-align: center;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.monitoring-lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.monitoring-lab-card {
    width: 100%;
    min-height: 190px;
    padding: 0;
    color: var(--ink);
    background: #fff;
    border-top: 4px solid var(--accent-2);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.monitoring-lab-card:hover,
.monitoring-lab-card:focus-visible {
    color: var(--ink);
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 16px 38px rgba(16, 24, 40, .12);
}

.monitoring-lab-card.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .14), 0 16px 38px rgba(16, 24, 40, .1);
}

.monitoring-lab-counts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.monitoring-lab-counts div {
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.monitoring-lab-counts strong,
.monitoring-lab-counts span {
    display: block;
}

.monitoring-lab-counts strong {
    font-size: 1.5rem;
    line-height: 1;
}

.monitoring-lab-counts span,
.monitoring-open-label {
    color: var(--muted);
    font-size: .82rem;
}

.monitoring-open-label {
    margin-top: 1rem;
    font-weight: 650;
}

.monitoring-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
}

.monitoring-asset-section {
    padding: 1.25rem;
}

.monitoring-refresh-note {
    padding: .55rem .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}


.landing-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.landing-copy,
.landing-media,
.announcement-panel,
.quick-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 18px 55px rgba(16, 24, 40, .08);
}

.landing-copy {
    display: flex;
    aspect-ratio: 1 / 1;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.35rem, 4vw, 3rem);
}

.landing-eyebrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    object-fit: contain;
}

.landing-lead {
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.7;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-top: auto;
}

.landing-stats .landing-stat {
    display: flex;
    min-height: 74px;
    align-items: center;
    gap: .7rem;
    padding: .8rem;
    border: 1px solid transparent;
    border-radius: 12px;
}

.landing-stat-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .72);
}

.landing-stat-icon svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.landing-stat-copy {
    min-width: 0;
}

.landing-stats .landing-stat-copy strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1.1;
}

.landing-stats .landing-stat-copy > span {
    display: block;
    margin-top: .2rem;
    font-size: .84rem;
}

.landing-stat-lab {
    color: #1d4ed8;
    border-color: #bfdbfe !important;
    background: #dbeafe;
}

.landing-stat-computer {
    color: #047857;
    border-color: #a7f3d0 !important;
    background: #d1fae5;
}

.landing-stat-report {
    color: #b45309;
    border-color: #fde68a !important;
    background: #fef3c7;
}

.landing-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    overflow: hidden;
    background: #f8fafc;
}

.landing-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: #f8fafc;
}

.landing-carousel,
.landing-carousel .carousel-inner,
.landing-carousel .carousel-item {
    height: 100%;
    min-height: 0;
}

.landing-placeholder {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .16), rgba(37, 99, 235, .12)),
        #f8fafc;
}

.landing-placeholder-mark {
    display: flex;
    width: 112px;
    height: 112px;
    align-items: center;
    justify-content: center;
    border: 1px solid #b6c7d8;
    border-radius: 8px;
    background: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.announcement-panel,
.quick-panel {
    padding: 1.25rem;
}

.quick-actions {
    display: grid;
    gap: .75rem;
}

.quick-action {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    min-height: 64px;
    align-items: center;
    gap: .75rem;
    padding: .65rem .85rem;
    color: #1e293b;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.quick-action:hover,
.quick-action:focus-visible {
    color: var(--accent);
    border-color: rgba(15, 118, 110, .35);
    background: #f0fdfa;
    transform: translateY(-1px);
}

.quick-action-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--accent);
    border-radius: 10px;
    background: #ccfbf1;
}

.quick-action svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-action-icon svg {
    width: 21px;
}

.quick-action-arrow {
    width: 18px;
    color: #94a3b8;
}

.quick-action-primary {
    color: #fff;
    border-color: var(--accent);
    background: var(--accent);
}

.quick-action-primary .quick-action-icon {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.quick-action-primary .quick-action-arrow {
    color: rgba(255, 255, 255, .7);
}

.quick-action-primary:hover,
.quick-action-primary:focus-visible {
    color: #fff;
    border-color: #115e59;
    background: #115e59;
}

.announcement-body {
    color: #334155;
    line-height: 1.75;
    white-space: normal;
}

.public-section {
    margin-top: 1rem;
    padding: clamp(1.15rem, 3vw, 1.5rem);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(16, 24, 40, .06);
}

.public-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.public-section-heading h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 750;
}

.public-section-heading > span {
    color: var(--muted);
    font-size: .82rem;
}

.public-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 10px;
}

.public-icon svg {
    width: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.public-icon-blue {
    color: #1d4ed8;
    background: #dbeafe;
}

.public-icon-green {
    color: #047857;
    background: #d1fae5;
}

.public-icon-orange {
    color: #b45309;
    background: #fef3c7;
}

.lab-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: .75rem;
}

.lab-status-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
}

.lab-status-top {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.lab-status-top h3,
.public-info-card h3 {
    margin: 0;
    font-size: .95rem;
    font-weight: 750;
}

.lab-active-count {
    margin: .9rem 0;
    color: var(--muted);
    font-size: .84rem;
}

.lab-active-count strong {
    color: var(--ink);
    font-size: 1.15rem;
}

.lab-today-schedule {
    display: grid;
    gap: .3rem;
    padding-top: .8rem;
    border-top: 1px solid var(--line);
}

.lab-today-schedule span {
    color: var(--muted);
    font-size: .76rem;
}

.lab-today-schedule strong {
    font-size: .83rem;
    font-weight: 650;
}

.device-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.device-summary-card {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
}

.device-summary-card .public-icon {
    background: rgba(255, 255, 255, .72);
}

.device-summary-card strong,
.device-summary-card small {
    display: block;
}

.device-summary-card strong {
    font-size: 1.55rem;
    line-height: 1.1;
}

.device-summary-card small {
    margin-top: .25rem;
    font-size: .78rem;
}

.device-summary-blue { color: #1d4ed8; border-color: #bfdbfe; background: #dbeafe; }
.device-summary-green { color: #047857; border-color: #a7f3d0; background: #d1fae5; }
.device-summary-red { color: #b91c1c; border-color: #fecaca; background: #fee2e2; }
.device-summary-orange { color: #b45309; border-color: #fde68a; background: #fef3c7; }

.public-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.public-info-card {
    display: flex;
    min-height: 120px;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
}

.public-info-card p {
    margin: .45rem 0 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.55;
}

.public-service-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.public-service-section .public-section-heading {
    margin-bottom: 0;
}

.public-service-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.public-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.public-schedule-table {
    min-width: 720px;
}

.public-schedule-table th,
.public-schedule-table td {
    padding: .85rem 1rem;
}

.public-empty {
    padding: 2rem !important;
    color: var(--muted) !important;
    text-align: center;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.rules-grid article {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
}

.rules-grid span {
    display: block;
    margin-bottom: .75rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
}

.rules-grid p {
    margin: 0;
    color: #334155;
    font-size: .86rem;
    line-height: 1.55;
}

.landing-admin-preview {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.landing-admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
}

.landing-admin-image {
    display: grid;
    gap: .5rem;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.landing-admin-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    background: #f8fafc;
}

.admin-rule-list {
    display: grid;
    gap: .65rem;
}

.admin-rule-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}

.admin-rule-order {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    color: var(--accent);
    border-radius: 9px;
    background: #ccfbf1;
    font-size: .82rem;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .admin-layout {
        display: block;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex: none;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 35px rgba(16, 24, 40, .04);
    }

    .admin-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-sidebar-footer {
        margin-top: 0;
    }

    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-copy {
        aspect-ratio: auto;
        min-height: auto;
    }

    .landing-media,
    .landing-media img,
    .landing-carousel,
    .landing-carousel .carousel-inner,
    .landing-carousel .carousel-item,
    .landing-placeholder {
        min-height: 0;
    }

    .device-summary-grid,
    .rules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .admin-menu {
        grid-template-columns: 1fr;
    }

    .landing-stats {
        grid-template-columns: 1fr;
    }

    .device-summary-grid,
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .public-service-section {
        display: block;
    }

    .public-service-section .public-section-heading {
        margin-bottom: 1rem;
    }

    .public-service-actions {
        display: grid;
    }

    .admin-rule-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .admin-rule-item > .text-nowrap {
        width: 100%;
        padding-left: 3.2rem;
    }
}
