:root {
    color-scheme: dark;
    --bg: #07111f;
    --bg-soft: #0a1728;
    --panel: #101d2f;
    --panel-2: #13233a;
    --panel-3: #0b1828;
    --line: #253650;
    --line-soft: rgba(143, 166, 197, .15);
    --text: #edf5ff;
    --muted: #91a3bb;
    --muted-2: #63758e;
    --cyan: #34d5ff;
    --green: #38e6a0;
    --violet: #a98aff;
    --amber: #ffc765;
    --danger: #ff6b7d;
    --shadow: 0 24px 75px rgba(0, 0, 0, .3);
    --sidebar-width: 260px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    display: inline-block;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.2;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-lockup strong,
.brand-lockup small {
    display: block;
}

.brand-lockup strong {
    font-size: 14px;
    letter-spacing: -.01em;
}

.brand-lockup small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    color: #03131f;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    box-shadow: 0 10px 28px rgba(52, 213, 255, .22);
    font-weight: 950;
    font-size: 14px;
}

.brand-lockup--large .brand-mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 16px;
    font-size: 16px;
}

.brand-lockup--large strong {
    font-size: 16px;
}

/* Authentication */
.auth-body {
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        radial-gradient(circle at 12% 14%, rgba(52, 213, 255, .11), transparent 26%),
        radial-gradient(circle at 89% 88%, rgba(56, 230, 160, .08), transparent 25%),
        var(--bg);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr);
    width: min(1100px, 100%);
    min-height: 650px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.auth-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 650px;
    padding: 42px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(52, 213, 255, .08), transparent 40%),
        var(--panel-3);
}

.auth-visual::before,
.auth-visual::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(52, 213, 255, .15);
    border-radius: 50%;
}

.auth-visual::before {
    width: 460px;
    height: 460px;
    right: -210px;
    top: -190px;
}

.auth-visual::after {
    width: 290px;
    height: 290px;
    left: -160px;
    bottom: -170px;
}

.auth-copy {
    position: relative;
    z-index: 2;
    width: min(480px, 100%);
    margin: auto 0;
}

.auth-copy h1 {
    margin: 14px 0 18px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.auth-copy p {
    width: min(430px, 100%);
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.signal-art {
    position: relative;
    width: 250px;
    height: 120px;
    margin-left: auto;
}

.signal-art > span {
    position: absolute;
    inset: 50% auto auto 50%;
    border: 1px solid rgba(52, 213, 255, .22);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.signal-art > span:nth-child(1) { width: 70px; height: 70px; }
.signal-art > span:nth-child(2) { width: 110px; height: 110px; }
.signal-art > span:nth-child(3) { width: 150px; height: 150px; }
.signal-art > span:nth-child(4) { width: 200px; height: 200px; }

.signal-node {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 42px;
    border: 1px solid rgba(52, 213, 255, .45);
    border-radius: 10px;
    color: var(--cyan);
    background: #081725;
    box-shadow: 0 0 35px rgba(52, 213, 255, .18);
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 6vw, 72px);
    background: var(--panel);
}

.auth-card__head h2 {
    margin: 13px 0 10px;
    font-size: 32px;
    letter-spacing: -.035em;
}

.auth-card__head p {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.mobile-brand {
    display: none;
    margin-bottom: 34px;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field > span {
    color: #c9d6e6;
    font-size: 13px;
    font-weight: 750;
}

.field input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--text);
    background: #091625;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input {
    padding: 0 14px;
}

.field input:hover,
.filter-bar input:hover,
.filter-bar select:hover {
    border-color: #385173;
}

.field input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--cyan);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 213, 255, .11);
    background: #0b192a;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 850;
    transition: transform .2s, border-color .2s, background .2s, opacity .2s;
}

.button:active {
    transform: translateY(1px);
}

.button--primary {
    color: #03131f;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    box-shadow: 0 12px 30px rgba(52, 213, 255, .13);
}

.button--primary:hover {
    filter: brightness(1.05);
}

.button--ghost {
    color: #c9d9eb;
    border-color: var(--line);
    background: rgba(255, 255, 255, .02);
}

.button--ghost:hover {
    border-color: #3a567a;
    background: rgba(255, 255, 255, .04);
}

.button--full {
    width: 100%;
    margin-top: 5px;
}

.alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.alert--danger {
    color: #ffd8de;
    border-color: rgba(255, 107, 125, .36);
    background: rgba(255, 107, 125, .1);
}

.auth-foot {
    margin: 25px 0 0;
    color: var(--muted-2);
    font-size: 12px;
    text-align: center;
}

/* Dashboard */
.dashboard-body {
    background:
        radial-gradient(circle at 84% 4%, rgba(52, 213, 255, .06), transparent 22%),
        var(--bg);
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    padding: 24px 18px;
    border-right: 1px solid var(--line-soft);
    background: rgba(8, 20, 34, .96);
    backdrop-filter: blur(18px);
}

.sidebar-brand {
    padding: 2px 7px 25px;
    border-bottom: 1px solid var(--line-soft);
}

.nav-list {
    display: grid;
    gap: 7px;
    margin-top: 25px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 47px;
    gap: 12px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--muted);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
}

.nav-item:not(:disabled):hover {
    color: var(--text);
    background: rgba(255, 255, 255, .035);
}

.nav-item--active {
    color: var(--text);
    border-color: rgba(52, 213, 255, .15);
    background: linear-gradient(90deg, rgba(52, 213, 255, .11), rgba(52, 213, 255, .02));
}

.nav-item--active::before {
    content: "";
    position: absolute;
    left: -19px;
    width: 3px;
    height: 25px;
    border-radius: 0 4px 4px 0;
    background: var(--cyan);
    box-shadow: 0 0 15px rgba(52, 213, 255, .55);
}

.nav-item:disabled {
    opacity: .52;
    cursor: not-allowed;
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 24px;
    color: var(--cyan);
    font-size: 19px;
}

.nav-item small {
    margin-left: auto;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: rgba(255, 255, 255, .02);
}

.sidebar-status strong,
.sidebar-status small {
    display: block;
}

.sidebar-status strong {
    font-size: 12px;
}

.sidebar-status small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.status-light {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
}

.status-light--online {
    background: var(--green);
    box-shadow: 0 0 12px rgba(56, 230, 160, .7);
}

.status-light--offline {
    background: var(--danger);
    box-shadow: 0 0 12px rgba(255, 107, 125, .65);
}

.status-light--loading {
    background: var(--amber);
    box-shadow: 0 0 12px rgba(255, 199, 101, .55);
    animation: blink 1.1s infinite;
}

@keyframes blink {
    50% { opacity: .35; }
}

.logout-link {
    margin-top: 13px;
    padding: 10px 12px;
    color: var(--muted);
    border-radius: 9px;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
}

.logout-link:hover {
    color: #ffd8de;
    background: rgba(255, 107, 125, .07);
}

.sidebar-overlay {
    display: none;
}

.main-content {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    padding: 0 clamp(20px, 3.3vw, 48px);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    gap: 20px;
    border-bottom: 1px solid var(--line-soft);
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar h1 {
    margin: 4px 0 0;
    font-size: 22px;
    letter-spacing: -.035em;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--text);
    background: var(--panel);
    cursor: pointer;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sync-state {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 17px;
    border-left: 1px solid var(--line-soft);
}

.user-chip strong,
.user-chip small {
    display: block;
}

.user-chip strong {
    max-width: 140px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(52, 213, 255, .25);
    border-radius: 12px;
    color: var(--cyan);
    background: rgba(52, 213, 255, .08);
    font-weight: 900;
}

.hero-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 185px;
    margin-top: 30px;
    padding: clamp(25px, 4vw, 39px);
    overflow: hidden;
    border: 1px solid rgba(52, 213, 255, .15);
    border-radius: 22px;
    background:
        linear-gradient(110deg, rgba(52, 213, 255, .1), transparent 42%),
        var(--panel-3);
}

.hero-panel::after {
    content: "";
    position: absolute;
    right: 9%;
    bottom: -135px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(52, 213, 255, .11);
    border-radius: 50%;
}

.hero-panel h2 {
    margin: 10px 0 9px;
    font-size: clamp(25px, 3vw, 38px);
    letter-spacing: -.045em;
}

.hero-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.hero-pulse {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
}

.hero-pulse span {
    position: absolute;
    border: 1px solid rgba(56, 230, 160, .21);
    border-radius: 50%;
    animation: pulseRing 2.5s ease-out infinite;
}

.hero-pulse span:nth-child(1) { width: 58px; height: 58px; }
.hero-pulse span:nth-child(2) { width: 84px; height: 84px; animation-delay: .5s; }
.hero-pulse span:nth-child(3) { width: 110px; height: 110px; animation-delay: 1s; }

@keyframes pulseRing {
    0%, 100% { opacity: .25; transform: scale(.92); }
    50% { opacity: .8; transform: scale(1.03); }
}

.hero-pulse strong {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #062019;
    background: var(--green);
    box-shadow: 0 0 28px rgba(56, 230, 160, .28);
    font-size: 11px;
    letter-spacing: .08em;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.metric-card {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line-soft);
    border-radius: 17px;
    background: rgba(16, 29, 47, .88);
    transition: border-color .2s, transform .2s;
}

.metric-card:hover {
    border-color: rgba(52, 213, 255, .2);
    transform: translateY(-2px);
}

.metric-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border: 1px solid;
    border-radius: 13px;
    font-weight: 900;
}

.metric-icon--cyan { color: var(--cyan); border-color: rgba(52, 213, 255, .22); background: rgba(52, 213, 255, .08); }
.metric-icon--green { color: var(--green); border-color: rgba(56, 230, 160, .22); background: rgba(56, 230, 160, .08); }
.metric-icon--violet { color: var(--violet); border-color: rgba(169, 138, 255, .22); background: rgba(169, 138, 255, .08); }
.metric-icon--amber { color: var(--amber); border-color: rgba(255, 199, 101, .22); background: rgba(255, 199, 101, .08); }

.metric-card > div:last-child {
    min-width: 0;
}

.metric-card span,
.metric-card strong,
.metric-card small {
    display: block;
}

.metric-card span {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-card strong {
    margin-top: 5px;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.metric-card strong.metric-time {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-card small {
    overflow: hidden;
    margin-top: 5px;
    color: var(--muted-2);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-card {
    margin-top: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 19px;
    background: rgba(16, 29, 47, .88);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 22px 18px;
}

.panel-head h2 {
    margin: 7px 0 0;
    font-size: 20px;
    letter-spacing: -.03em;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 200px 180px;
    gap: 10px;
    padding: 0 22px 18px;
}

.filter-bar input,
.filter-bar select {
    min-height: 43px;
    padding: 0 13px;
    color: #d7e3f3;
    font-size: 12px;
}

.filter-bar select {
    appearance: none;
    padding-right: 34px;
    background-color: #091625;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.search-field {
    position: relative;
}

.search-field > span:not(.sr-only) {
    position: absolute;
    z-index: 1;
    left: 14px;
    top: 50%;
    color: var(--muted);
    transform: translateY(-50%);
}

.search-field input {
    padding-left: 39px;
}

.table-wrap {
    overflow-x: auto;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.activity-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.activity-table th,
.activity-table td {
    padding: 15px 17px;
    border-bottom: 1px solid rgba(143, 166, 197, .1);
    text-align: left;
    vertical-align: middle;
}

.activity-table th {
    color: var(--muted-2);
    background: rgba(5, 14, 24, .4);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.activity-table td {
    color: #d8e3f2;
    font-size: 12px;
}

.activity-table tbody tr {
    transition: background .18s;
}

.activity-table tbody tr:hover {
    background: rgba(52, 213, 255, .025);
}

.activity-table tbody tr:last-child td {
    border-bottom: 0;
}

.table-state {
    padding: 36px 20px;
    color: var(--muted);
    text-align: center;
}

.time-cell strong,
.time-cell small,
.device-cell strong,
.device-cell small {
    display: block;
}

.time-cell strong,
.device-cell strong {
    color: #e8f1fc;
    font-size: 12px;
}

.time-cell small,
.device-cell small {
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 10px;
}

.sensor-label {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    border: 1px solid rgba(52, 213, 255, .16);
    border-radius: 8px;
    color: var(--cyan);
    background: rgba(52, 213, 255, .06);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .03em;
}

.value-cell {
    color: #fff;
    font-weight: 850;
}

.value-cell small {
    margin-left: 3px;
    color: var(--muted);
    font-weight: 500;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.status-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge--info { color: var(--cyan); border-color: rgba(52, 213, 255, .18); background: rgba(52, 213, 255, .06); }
.status-badge--success { color: var(--green); border-color: rgba(56, 230, 160, .18); background: rgba(56, 230, 160, .06); }
.status-badge--warning { color: var(--amber); border-color: rgba(255, 199, 101, .18); background: rgba(255, 199, 101, .06); }
.status-badge--danger { color: var(--danger); border-color: rgba(255, 107, 125, .18); background: rgba(255, 107, 125, .06); }

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 22px;
    color: var(--muted);
    font-size: 11px;
}

.pagination-bar > div {
    display: flex;
    gap: 8px;
}

.page-button {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #cbd8e8;
    background: transparent;
    cursor: pointer;
    font-size: 11px;
}

.page-button:hover:not(:disabled) {
    border-color: #3f5b7e;
    background: rgba(255, 255, 255, .03);
}

.page-button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 3px 26px;
    color: var(--muted-2);
    font-size: 10px;
}

.toast {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 100;
    max-width: min(380px, calc(100vw - 36px));
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: #13233a;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s, transform .2s;
    font-size: 12px;
}

.toast--visible {
    opacity: 1;
    transform: translateY(0);
}

.toast--error {
    border-color: rgba(255, 107, 125, .32);
}

@media (max-width: 1180px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-102%);
        transition: transform .25s ease;
    }

    .sidebar--open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 30;
        display: block;
        background: rgba(2, 8, 15, .65);
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s;
    }

    .sidebar-overlay--open {
        opacity: 1;
        pointer-events: auto;
    }

    .main-content {
        margin-left: 0;
    }

    .menu-button {
        display: grid;
        place-items: center;
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .auth-body {
        padding: 0;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .auth-visual {
        display: none;
    }

    .auth-card {
        padding: 36px 24px;
    }

    .mobile-brand {
        display: flex;
    }

    .topbar {
        min-height: 78px;
    }

    .topbar-actions {
        gap: 9px;
    }

    .sync-state {
        display: none;
    }

    .user-chip {
        padding-left: 0;
        border-left: 0;
    }

    .user-chip > span:last-child {
        display: none;
    }

    .hero-panel {
        min-height: 165px;
    }

    .hero-pulse {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
    }

    .hero-pulse span:nth-child(1) { width: 48px; height: 48px; }
    .hero-pulse span:nth-child(2) { width: 65px; height: 65px; }
    .hero-pulse span:nth-child(3) { width: 82px; height: 82px; }

    .hero-pulse strong {
        width: 44px;
        height: 44px;
        font-size: 9px;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 0 14px;
    }

    .topbar h1 {
        font-size: 18px;
    }

    .hero-panel {
        margin-top: 18px;
        padding: 22px;
    }

    .hero-panel h2 {
        font-size: 25px;
    }

    .hero-panel p {
        max-width: 270px;
        line-height: 1.5;
    }

    .hero-pulse {
        display: none;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    .metric-card {
        padding: 16px;
    }

    .panel-card {
        margin-top: 10px;
    }

    .panel-head {
        padding: 18px 16px 14px;
    }

    .panel-head h2 {
        font-size: 17px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
        padding: 0 16px 15px;
    }

    .search-field {
        grid-column: auto;
    }

    .pagination-bar {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 16px;
    }

    .app-footer {
        flex-direction: column;
        gap: 4px;
    }

    .toast {
        right: 18px;
        bottom: 18px;
        left: 18px;
    }
}
