body:has(.ih-side) {
    margin: 0;
    background: #f3f6fb;
    color: #1e293b;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ih-side {
    position: fixed;
    left: 0;
    top: 0;
    width: 268px;
    height: 100vh;
    background: linear-gradient(180deg, #0c2344 0%, #0a1b36 100%);
    color: #d6e0ee;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 0 30px rgba(10, 27, 54, 0.12);
}

.ih-brand {
    padding: 26px 22px 18px;
}

.ih-brand-name {
    font-size: 34px;
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: -1px;
    color: #fff;
}

.ih-brand-name span {
    color: #7eb6ff;
}

.ih-brand-kicker {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #fff;
}

.ih-brand p {
    margin: 10px 0 0;
    max-width: 150px;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.6px;
    color: rgba(214, 224, 238, 0.72);
}

.ih-menu {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 16px;
}

.ih-menu::-webkit-scrollbar {
    width: 0;
}

.ih-side .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 14px;
    padding: 12px 14px;
    border-radius: 12px;
    color: #d5deea;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-left: 0;
    transform: none;
}

.ih-side .menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding-left: 14px;
    transform: none;
}

.ih-side .menu-item.active {
    background: #2f6fed;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(47, 111, 237, 0.35);
}

.ih-side .menu-icon {
    width: 22px;
    height: 22px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
}

.ih-side .menu-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ih-side .menu-text {
    flex: 1;
}

.ih-side .menu-caret {
    width: 8px;
    height: 8px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
}

.ih-side .menu-item.open .menu-caret {
    transform: rotate(225deg);
}

.ih-side .submenu {
    max-height: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
}

.ih-side .submenu.open {
    max-height: 280px;
}

.ih-side .submenu-item {
    display: block;
    margin: 2px 14px 2px 36px;
    padding: 8px 12px;
    border-radius: 8px;
    color: rgba(214, 224, 238, 0.78);
    text-decoration: none;
    font-size: 13px;
}

.ih-side .submenu-item::before {
    display: none;
}

.ih-side .submenu-item:hover,
.ih-side .submenu-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 12px;
}

.ih-foot {
    padding: 14px 18px 18px;
}

.ih-version {
    color: rgba(214, 224, 238, 0.55);
    font-size: 12px;
}

.ih-top {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-left: 268px;
    height: 78px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    background: rgba(243, 246, 251, 0.92);
    backdrop-filter: blur(10px);
}

.ih-burger {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #0c2344;
    font-size: 20px;
    cursor: pointer;
}

.ih-search {
    flex: 1;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ih-search svg {
    width: 18px;
    height: 18px;
    stroke: #94a3b8;
    fill: none;
    stroke-width: 1.8;
}

.ih-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: #1e293b;
}

.ih-search kbd {
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 3px 6px;
    color: #94a3b8;
    font-size: 11px;
    font-family: inherit;
}

.ih-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.ih-top .theme-toggle {
    width: auto;
    margin: 0;
    padding: 8px 10px;
    background: #fff;
}

.ih-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 999px;
}

.ih-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2f6fed;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.ih-user strong,
.ih-user span {
    display: block;
    line-height: 1.15;
}

.ih-user strong {
    font-size: 12px;
    letter-spacing: 0.3px;
}

.ih-user span {
    font-size: 11px;
    color: #64748b;
}

.ih-logout {
    text-decoration: none;
    color: #b91c1c;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
}

body:has(.ih-side) .header {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    height: auto;
    width: auto;
    margin: 0 0 8px 268px;
    padding: 4px 28px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: 1;
}

body:has(.ih-side) .header-right,
body:has(.ih-side) .header-user,
body:has(.ih-side) .btn-logout {
    display: none;
}

body:has(.ih-side) .header-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
}

body:has(.ih-side) .main-content {
    margin-left: 268px;
    padding: 12px 28px 36px;
    background: transparent;
    min-height: calc(100vh - 90px);
}

.ih-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.ih-kicker {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 4px;
}

.ih-hero h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.6px;
    color: #0f172a;
}

.ih-hero p {
    margin: 6px 0 0;
    color: #64748b;
}

.ih-hero-art {
    text-align: right;
    color: #0f172a;
}

.ih-hero-art strong {
    display: block;
    font-size: 28px;
    letter-spacing: -0.4px;
}

.ih-hero-art span {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 1.4px;
    color: #cbd5e1;
}

.ih-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.ih-card {
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.ih-stat {
    padding: 18px 18px 14px;
    min-height: 132px;
}

.ih-stat-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.ih-stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.ih-dot {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ih-stat-value {
    margin-top: 10px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.ih-stat-note {
    margin-top: 8px;
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
}

.ih-stat-note.down {
    color: #dc2626;
}

.ih-stat-note.muted {
    color: #64748b;
    font-weight: 500;
}

.spark {
    width: 92px;
    height: 36px;
}

.ih-grid-2 {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 16px;
    margin-bottom: 16px;
}

.ih-grid-main {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr;
    gap: 16px;
}

.ih-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 18px 0;
}

.ih-card-head h3 {
    margin: 0;
    font-size: 16px;
    color: #0f172a;
}

.ih-card-head p,
.ih-card-head a {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 12px;
    text-decoration: none;
}

.ih-card-head a:hover {
    color: #2f6fed;
}

.ih-card-body {
    padding: 12px 18px 18px;
}

.ih-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ih-table th {
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.4px;
    color: #94a3b8;
    font-weight: 600;
    padding: 8px 10px;
}

.ih-table td {
    padding: 12px 10px;
    border-top: 1px solid #f1f5f9;
    color: #334155;
}

.ih-table a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.ih-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.ih-badge.ok { background: #dcfce7; color: #15803d; }
.ih-badge.wait { background: #ffedd5; color: #c2410c; }
.ih-badge.info { background: #dbeafe; color: #1d4ed8; }
.ih-badge.muted { background: #f1f5f9; color: #64748b; }
.ih-badge.bad { background: #fee2e2; color: #b91c1c; }

.ih-demo {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
}

.ih-demo time {
    width: 48px;
    color: #2f6fed;
    font-weight: 700;
    font-size: 13px;
}

.ih-demo a {
    color: #0f172a;
    text-decoration: none;
}

.ih-demo strong,
.ih-demo span {
    display: block;
}

.ih-demo span {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 2px;
}

.ih-empty {
    padding: 28px 8px;
    text-align: center;
    color: #94a3b8;
}

@media (max-width: 1100px) {
    .ih-stats,
    .ih-grid-2,
    .ih-grid-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .ih-side {
        transform: translateX(-105%);
        transition: transform 0.2s ease;
    }

    .ih-side.mobile-open {
        transform: none;
    }

    .ih-top,
    body:has(.ih-side) .header,
    body:has(.ih-side) .main-content {
        margin-left: 0;
    }

    .ih-burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ih-search kbd,
    .ih-user span,
    .ih-hero-art {
        display: none;
    }
}
