/* ============================
   精致的监控面板设计 - 参考图优化版
   柔和、现代、舒适
   ============================ */

:root {
    /* 柔和的米色背景 */
    --bg-primary: #faf9f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f4f2;

    /* 图标背景色 */
    --icon-bg-cpu: #ffe8e0;
    --icon-bg-memory: #e8f5e0;
    --icon-bg-disk: #fff4e0;
    --icon-bg-network: #e8e8f5;

    /* 图标颜色 */
    --icon-cpu: #d97757;
    --icon-memory: #7fb069;
    --icon-disk: #e8b05c;
    --icon-network: #8b7fc9;

    /* 文字颜色 */
    --text-primary: #2d2d2d;
    --text-secondary: #6b6b6b;
    --text-tertiary: #9b9b9b;

    /* 边框 */
    --border-light: #ebe9e6;
    --border-medium: #ddd9d4;

    /* 状态色 */
    --success: #7fb069;
    --success-bg: #e8f5e0;
    --warning: #e8b05c;
    --danger: #d97757;
    --info: #7ba7cc;

    /* 间距 */
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;

    /* 圆角 */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 999px;

    /* 阴影 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);

    /* 过渡 */
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    padding: 0.6rem 0.85rem;
    color: var(--text-primary);
    background: var(--surface-strong);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform var(--transition);
}

.skip-link:focus-visible {
    transform: translateY(0);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-6);
}

/* 卡片基础样式 */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-medium);
}

/* 标题 */
.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
}

/* 状态部分 */
.status-section {
    margin-bottom: var(--space-8);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.status-card {
    padding: var(--space-6);
}

/* 图标样式 - 柔和的圆角方形 */
.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
}

.card-icon svg {
    width: 26px;
    height: 26px;
}

.cpu-icon {
    background: var(--icon-bg-cpu);
    color: var(--icon-cpu);
}

.memory-icon {
    background: var(--icon-bg-memory);
    color: var(--icon-memory);
}

.disk-icon {
    background: var(--icon-bg-disk);
    color: var(--icon-disk);
}

.network-icon {
    background: var(--icon-bg-network);
    color: var(--icon-network);
}

/* 标签和数值 */
.card-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.card-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.card-sub {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

/* 网络卡片特殊样式 */
.network-speed-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin: var(--space-4) 0;
}

.speed-item-inline {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.speed-icon {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.speed-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.network-total {
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-light);
    margin-top: var(--space-3);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.total-label {
    margin-right: var(--space-2);
}

.total-value {
    font-weight: 600;
    color: var(--text-secondary);
}

/* 信息栏 */
.info-bar {
    padding: var(--space-5);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.info-item svg {
    width: 24px;
    height: 24px;
    color: var(--text-tertiary);
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-bottom: 0.125rem;
}

.info-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 快捷链接 */
.links-section {
    margin-bottom: var(--space-8);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-4);
}

.link-card {
    padding: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.link-card:hover {
    transform: translateY(-2px);
}

.link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.link-icon svg {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
}

.link-content {
    flex: 1;
}

.link-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.link-desc {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.link-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    transition: all var(--transition);
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
    color: var(--text-secondary);
}

/* 容器部分 */
.containers-section {
    margin-bottom: var(--space-8);
}

.containers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-4);
}

.container-card {
    padding: var(--space-5);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.container-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.container-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.container-info {
    flex: 1;
    min-width: 0;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2);
}

.container-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.container-image {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.25rem var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.running {
    background: var(--success-bg);
    color: var(--success);
}

.status-badge.stopped {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.container-ports {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.port-tag {
    padding: 0.25rem var(--space-2);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

/* 焦点样式 */
button:focus-visible,
.link-card:focus-visible,
.container-card:focus-visible {
    outline: 2px solid var(--icon-network);
    outline-offset: 2px;
}

/* 响应式 */
@media (max-width: 768px) {
    .status-grid,
    .links-grid,
    .containers-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-card,
.link-card,
.container-card {
    animation: fadeIn 0.4s ease-out backwards;
}

.status-card:nth-child(1) { animation-delay: 0.05s; }
.status-card:nth-child(2) { animation-delay: 0.1s; }
.status-card:nth-child(3) { animation-delay: 0.15s; }
.status-card:nth-child(4) { animation-delay: 0.2s; }

/* ============================
   Langxo 监控面板改造层
   ============================ */

:root {
    --bg-primary: #f3f5ef;
    --bg-secondary: rgba(255, 255, 255, 0.88);
    --bg-tertiary: #eef1ea;
    --surface-strong: #ffffff;
    --surface-muted: #e7ece3;

    --icon-bg-cpu: #fae7dc;
    --icon-bg-memory: #dcefe3;
    --icon-bg-disk: #f7ecd1;
    --icon-bg-network: #e6e3f2;

    --icon-cpu: #b76546;
    --icon-memory: #2f8f6f;
    --icon-disk: #b98225;
    --icon-network: #6c62b3;

    --text-primary: #18231d;
    --text-secondary: #56625b;
    --text-tertiary: #849089;

    --border-light: rgba(24, 35, 29, 0.08);
    --border-medium: rgba(24, 35, 29, 0.16);

    --success: #2f8f6f;
    --success-bg: #dcefe3;
    --warning: #b98225;
    --danger: #b76546;
    --info: #556f94;

    --space-1: 0.25rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.5rem;

    --shadow-xs: 0 1px 2px rgba(37, 46, 39, 0.05);
    --shadow-sm: 0 10px 30px rgba(48, 58, 51, 0.08);
    --shadow-md: 0 18px 50px rgba(48, 58, 51, 0.12);
    --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100dvh;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(circle at 8% 4%, rgba(47, 143, 111, 0.13), transparent 32rem),
        radial-gradient(circle at 95% 12%, rgba(185, 130, 37, 0.12), transparent 26rem),
        linear-gradient(135deg, #f7f8f4 0%, var(--bg-primary) 52%, #eef2ec 100%);
}

.background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(24, 35, 29, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 35, 29, 0.025) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), transparent 75%);
}

.container {
    position: relative;
    max-width: 1320px;
    padding: 2rem;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0 2.25rem;
}

.eyebrow,
.section-kicker {
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
}

.page-header h1 {
    margin-top: 0.35rem;
    color: var(--text-primary);
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    line-height: 0.96;
    letter-spacing: 0;
    text-wrap: balance;
}

.header-desc {
    max-width: 36rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.live-pill,
.host-pill,
.section-note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.25rem;
    padding: 0.48rem 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    font-size: 0.82rem;
    font-weight: 600;
}

.live-dot {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0.32rem rgba(47, 143, 111, 0.12);
}

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

.section-title {
    margin: 0.1rem 0 0;
    color: var(--text-primary);
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 0;
}

.card,
.glass-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(14px);
}

.card:hover,
.glass-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.status-section,
.links-section,
.containers-section {
    margin-bottom: 2rem;
}

.status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.status-card {
    position: relative;
    min-height: 13.5rem;
    padding: 1.15rem;
    overflow: hidden;
}

.status-card::after {
    content: "";
    position: absolute;
    right: -3rem;
    bottom: -4rem;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: rgba(47, 143, 111, 0.06);
}

.status-card:nth-child(2)::after {
    background: rgba(47, 143, 111, 0.09);
}

.status-card:nth-child(3)::after {
    background: rgba(185, 130, 37, 0.09);
}

.status-card:nth-child(4)::after {
    background: rgba(108, 98, 179, 0.09);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.card-icon svg {
    width: 1.45rem;
    height: 1.45rem;
}

.card-label {
    margin-bottom: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
}

.card-value,
.speed-value,
.info-value,
.total-value,
.port-tag {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-variant-numeric: tabular-nums;
}

.card-value {
    margin-bottom: 1.1rem;
    color: var(--text-primary);
    font-size: clamp(1.75rem, 2.6vw, 2.35rem);
    font-weight: 600;
    line-height: 1.05;
}

.progress-bar {
    height: 0.42rem;
    background: rgba(24, 35, 29, 0.07);
}

.progress-fill {
    box-shadow: 0 0 18px rgba(47, 143, 111, 0.2);
}

.network-speed-primary {
    gap: 0.8rem;
    margin: 0.95rem 0;
}

.speed-item-inline {
    min-width: 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.speed-icon {
    color: var(--icon-network);
    line-height: 1;
}

.speed-value {
    overflow-wrap: anywhere;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.2;
}

.network-total {
    position: relative;
    z-index: 1;
    border-color: var(--border-light);
}

.info-bar {
    padding: 0.95rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.info-item {
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.55);
}

.info-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--success);
}

.info-label {
    color: var(--text-tertiary);
    font-size: 0.76rem;
}

.info-value {
    overflow-wrap: anywhere;
    font-size: 0.9rem;
}

.links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.link-card {
    min-height: 7.25rem;
    padding: 1.05rem;
    isolation: isolate;
    overflow: hidden;
}

.link-card::before {
    content: "";
    position: absolute;
    inset: auto -2rem -4rem auto;
    z-index: -1;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    background: rgba(47, 143, 111, 0.1);
}

.link-card-secondary::before {
    background: rgba(85, 111, 148, 0.11);
}

.link-card:hover {
    transform: translateY(-3px);
}

.link-card:active,
.container-card:active {
    transform: translateY(0) scale(0.99);
}

.link-icon,
.container-icon {
    border: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.68);
}

.link-card-primary .link-icon {
    color: var(--success);
    background: var(--success-bg);
}

.link-card-secondary .link-icon {
    color: var(--info);
    background: #e3eaf2;
}

.link-title {
    font-size: 1rem;
    font-weight: 700;
}

.link-desc {
    margin-top: 0.16rem;
    color: var(--text-secondary);
}

.link-arrow {
    color: var(--text-secondary);
}

.containers-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

.container-card {
    position: relative;
    min-height: 10.4rem;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.container-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.94);
}

.container-card:hover .container-icon {
    color: var(--success);
    background: var(--success-bg);
}

.container-header {
    display: block;
    padding-right: 4.2rem;
    gap: 0.75rem;
    align-items: center;
}

.container-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 700;
}

.container-card .status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    flex-shrink: 0;
}

.container-image {
    color: var(--text-tertiary);
    font-size: 0.76rem;
}

.status-badge {
    border-radius: var(--radius-md);
    font-size: 0.72rem;
}

.status-badge.running {
    background: var(--success-bg);
    color: var(--success);
}

.port-tag {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.66);
}

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

@media (max-width: 760px) {
    .container {
        padding: 1rem;
    }

    .page-header,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .status-grid,
    .links-grid,
    .containers-grid,
    .info-bar {
        grid-template-columns: 1fr;
    }

    .status-card,
    .container-card,
    .link-card {
        min-height: auto;
    }
}

/* ============================
   redesign-existing-projects 技能二次优化
   ============================ */

.page-header {
    align-items: center;
    padding: 0.75rem 0 1.5rem;
    border-bottom: 1px solid rgba(24, 35, 29, 0.08);
}

.page-header h1 {
    max-width: 42rem;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1;
}

.header-desc {
    max-width: 40rem;
    margin-top: 0.75rem;
    font-size: 0.96rem;
}

.header-actions {
    max-width: 24rem;
}

.live-pill,
.host-pill,
.section-note {
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 6px 18px rgba(48, 58, 51, 0.06);
}

.live-pill.is-online .live-dot {
    background: var(--success);
    box-shadow: 0 0 0 0.32rem rgba(47, 143, 111, 0.12);
}

.live-pill.is-error .live-dot {
    background: var(--danger);
    box-shadow: 0 0 0 0.32rem rgba(183, 101, 70, 0.12);
}

.status-message {
    display: none;
    margin: 1rem 0 0;
    padding: 0.75rem 0.9rem;
    color: var(--danger);
    background: rgba(250, 231, 220, 0.78);
    border: 1px solid rgba(183, 101, 70, 0.22);
    border-radius: var(--radius-md);
    font-weight: 600;
}

.status-message.is-visible {
    display: block;
}

.status-grid {
    align-items: stretch;
}

.status-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 3px solid transparent;
}

.metric-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.metric-heading .card-label {
    margin: 0;
}

.metric-state {
    display: inline-flex;
    align-items: center;
    min-height: 1.35rem;
    padding: 0.12rem 0.45rem;
    color: var(--text-tertiary);
    background: rgba(24, 35, 29, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-card[data-level="normal"] {
    border-top-color: var(--success);
}

.status-card[data-level="normal"] .metric-state {
    color: var(--success);
    background: rgba(47, 143, 111, 0.12);
}

.status-card[data-level="warning"] {
    border-top-color: var(--warning);
}

.status-card[data-level="warning"] .metric-state {
    color: var(--warning);
    background: rgba(185, 130, 37, 0.12);
}

.status-card[data-level="danger"] {
    border-top-color: var(--danger);
}

.status-card[data-level="danger"] .metric-state {
    color: var(--danger);
    background: rgba(183, 101, 70, 0.12);
}

.card-value {
    text-wrap: balance;
}

.progress-bar {
    position: relative;
}

.progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 1px rgba(24, 35, 29, 0.06);
}

.is-loading .card-value,
.is-loading .info-value,
.is-loading .total-value {
    color: transparent;
    background: linear-gradient(90deg, rgba(24, 35, 29, 0.06), rgba(24, 35, 29, 0.12), rgba(24, 35, 29, 0.06));
    background-size: 220% 100%;
    border-radius: var(--radius-sm);
    animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: -220% 0;
    }
}

.empty-state {
    grid-column: 1 / -1;
    padding: 1.25rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    font-weight: 600;
}

.container-card {
    border-top: 3px solid rgba(47, 143, 111, 0.18);
}

.container-card:hover {
    border-top-color: var(--success);
}

.link-card:hover .link-icon,
.container-card:hover .container-icon {
    transform: translateY(-1px);
}

.link-icon,
.container-icon {
    transition: transform var(--transition), background var(--transition), color var(--transition);
}

@media (max-width: 760px) {
    .page-header {
        padding-top: 0.35rem;
    }

    .page-header h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .header-desc {
        line-height: 1.65;
    }

    .metric-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================
   Claude 风格：暖白、陶土橙、深墨色
   ============================ */

:root {
    --bg-primary: #f7f3ea;
    --bg-secondary: rgba(255, 252, 245, 0.92);
    --bg-tertiary: #eee7dc;
    --surface-strong: #fffaf2;
    --surface-muted: #eee3d5;

    --icon-bg-cpu: #f6dfd2;
    --icon-bg-memory: #f0e2d4;
    --icon-bg-disk: #f4e6cf;
    --icon-bg-network: #ece4dc;

    --icon-cpu: #c15f3c;
    --icon-memory: #8c5a3d;
    --icon-disk: #b67935;
    --icon-network: #6f6258;

    --text-primary: #241915;
    --text-secondary: #675a50;
    --text-tertiary: #95887b;

    --border-light: rgba(64, 42, 32, 0.1);
    --border-medium: rgba(64, 42, 32, 0.18);

    --success: #9a5b3f;
    --success-bg: #f1dfd2;
    --warning: #b67935;
    --danger: #b84f35;
    --info: #73675f;

    --shadow-xs: 0 1px 2px rgba(64, 42, 32, 0.05);
    --shadow-sm: 0 10px 28px rgba(64, 42, 32, 0.08);
    --shadow-md: 0 18px 46px rgba(64, 42, 32, 0.12);
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(circle at 0% 0%, rgba(193, 95, 60, 0.12), transparent 28rem),
        radial-gradient(circle at 100% 6%, rgba(182, 121, 53, 0.1), transparent 28rem),
        linear-gradient(135deg, #fbf7ef 0%, #f7f3ea 48%, #f1e9dc 100%);
}

.background {
    background-image:
        linear-gradient(rgba(64, 42, 32, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 42, 32, 0.025) 1px, transparent 1px);
}

.container {
    max-width: 1440px;
    padding: 1rem 2rem 2rem;
}

.status-message {
    margin-top: 0;
    margin-bottom: 1rem;
}

.section-kicker {
    color: var(--success);
}

.section-title {
    color: var(--text-primary);
}

.card,
.glass-card {
    background: var(--bg-secondary);
    border-color: var(--border-light);
    box-shadow: var(--shadow-xs);
}

.card:hover,
.glass-card:hover {
    box-shadow: var(--shadow-sm);
}

.status-card[data-level="normal"],
.container-card {
    border-top-color: rgba(154, 91, 63, 0.45);
}

.status-card[data-level="normal"] .metric-state,
.status-badge.running {
    color: #8c4f36;
    background: #f1dfd2;
}

.progress-fill {
    box-shadow: 0 0 18px rgba(154, 91, 63, 0.18);
}

.link-card-primary .link-icon,
.container-card:hover .container-icon {
    color: var(--success);
    background: var(--success-bg);
}

.link-card::before {
    background: rgba(193, 95, 60, 0.09);
}

.link-card-secondary::before {
    background: rgba(111, 98, 88, 0.1);
}

.card-value,
.speed-value,
.info-value,
.total-value,
.port-tag {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

.is-loading .card-value,
.is-loading .info-value,
.is-loading .total-value {
    color: inherit;
    background: none;
    animation: none;
}

@media (max-width: 760px) {
    .container {
        padding: 0.85rem;
    }
}

/* ============================
   A+ 控制台最终布局
   ============================ */

:root {
    --paper: #f6f1e8;
    --paper-2: #fffaf2;
    --paper-3: #eee4d6;
    --ink: #241915;
    --muted: #76685d;
    --faint: #a99b8e;
    --line: rgba(58, 39, 30, 0.13);
    --line-strong: rgba(58, 39, 30, 0.23);
    --rust: #b7603d;
    --rust-dark: #8f432c;
    --dark-panel: #2a211d;
    --dark-panel-soft: rgba(255, 248, 239, 0.08);
    --shadow: 0 22px 55px rgba(66, 43, 31, 0.11);
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    color: var(--ink);
    background:
        radial-gradient(circle at 0 0, rgba(183, 96, 61, 0.08), transparent 420px),
        linear-gradient(135deg, #fbf7ef 0%, var(--paper) 48%, #efe5d6 100%);
    font-family: var(--sans);
}

.background {
    background-image:
        linear-gradient(rgba(58, 39, 30, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 39, 30, 0.025) 1px, transparent 1px);
}

.container.dashboard-layout {
    width: min(100%, 1440px);
    max-width: 1440px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 26px;
    display: grid;
    grid-template-columns: 318px minmax(0, 1fr);
    gap: 16px;
}

.status-message {
    grid-column: 1 / -1;
    margin: 0;
}

.card,
.glass-card {
    background: rgba(255, 250, 242, 0.86);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72), var(--shadow);
    backdrop-filter: blur(12px);
}

.status-card::after,
.link-card::before,
.bento-card::after {
    display: none !important;
}

.dashboard-sidebar {
    padding: 18px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
}

.host-panel {
    padding: 18px;
    color: #fff8ef;
    background: var(--dark-panel);
    border-radius: 12px;
    box-shadow: 0 24px 62px rgba(37, 24, 18, 0.23);
}

.live-pill,
.soft-badge,
.metric-state,
.service-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 10px;
    color: var(--rust-dark);
    background: #f2dfd2;
    border: 1px solid rgba(183, 96, 61, 0.18);
    border-radius: 7px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.live-pill {
    color: var(--rust-dark);
    background: #f2dfd2;
}

.live-pill .status-dot,
.service-status .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.host-system {
    margin: 18px 0 0;
    color: #dacabc;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 650;
}

.host-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.host-metrics div {
    min-height: 78px;
    padding: 12px;
    border: 1px solid rgba(255, 248, 239, 0.13);
    border-radius: 9px;
    background: var(--dark-panel-soft);
}

.host-metrics span {
    display: block;
    color: #d7c6b6;
    margin-bottom: 5px;
}

.host-metrics strong {
    color: #fff8ef;
}

.tool-list {
    display: grid;
    align-content: start;
    gap: 10px;
}

.tool-row {
    min-height: 76px;
    padding: 14px;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.tool-row:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.tool-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: var(--rust-dark);
    background: #f4dfd2;
    border-radius: 7px;
    font-weight: 800;
}

.tool-row strong,
.tool-row small {
    display: block;
}

.tool-row strong {
    color: var(--ink);
    font-size: 17px;
}

.tool-row small,
.tool-arrow {
    color: var(--muted);
}

.tool-arrow {
    font-size: 20px;
}

.dashboard-main {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 14px;
}

.dashboard-topbar {
    min-height: 86px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dashboard-topbar h1 {
    margin: 0;
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0;
}

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

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.status-card {
    min-height: 138px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-top: 0;
}

.metric-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 18px;
}

.card-icon {
    width: 42px;
    height: 42px;
    margin: 0;
    display: grid;
    place-items: center;
    color: var(--rust-dark);
    background: #f4dfd2;
    border: 1px solid rgba(183, 96, 61, 0.14);
    border-radius: 8px;
    font-size: 20px;
    font-weight: 800;
    box-shadow: none;
}

.card-label {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
}

.card-value {
    margin: 0 0 7px;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.network-subline {
    margin: -2px 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.progress-bar {
    height: 6px;
    margin: 0;
    background: rgba(58, 39, 30, 0.09);
}

.progress-fill {
    background: linear-gradient(90deg, var(--rust), #d59163) !important;
    box-shadow: none;
}

.service-table {
    min-height: 0;
    overflow: hidden;
}

.service-head,
.service-row {
    display: grid;
    grid-template-columns: 260px 230px 132px 76px;
    align-items: center;
    gap: 16px;
}

.service-head {
    padding: 13px 18px;
    color: var(--muted);
    background: rgba(58, 39, 30, 0.055);
    font-size: 12px;
    font-weight: 800;
}

.service-row {
    min-height: 78px;
    padding: 12px 18px;
    color: inherit;
    text-decoration: none;
    border-top: 1px solid var(--line);
    background: rgba(255, 250, 242, 0.72);
    cursor: grab;
    transition: background var(--transition), opacity var(--transition), transform var(--transition);
}

.service-row:hover {
    background: rgba(255, 250, 242, 0.95);
}

.service-row:active {
    cursor: grabbing;
}

.service-row.is-dragging {
    opacity: 0.45;
    transform: scale(0.995);
}

.service-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.service-drag-handle {
    width: 12px;
    flex: 0 0 auto;
    color: rgba(117, 98, 83, 0.55);
    font-size: 16px;
    line-height: 1;
    cursor: grab;
    user-select: none;
}

.service-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--rust-dark);
    background: #f4dfd2;
    border: 1px solid rgba(183, 96, 61, 0.12);
    border-radius: 7px;
    overflow: hidden;
    font-weight: 800;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-icon svg {
    width: 21px;
    height: 21px;
}

.service-icon-alist {
    background: #fff8ef;
}

.service-icon-alist img {
    width: 26px;
    height: 22px;
}

.service-icon-1panel {
    background: #eff7ed;
    border-color: rgba(80, 152, 73, 0.18);
}

.service-icon-1panel img {
    width: 24px;
    height: 24px;
}

.service-icon-cpa {
    background: #fff8ef;
    border-color: rgba(183, 96, 61, 0.12);
}

.service-icon-cpa img {
    width: 23px;
    height: 23px;
}

.service-icon-emby {
    background: #dcefe3;
    border-color: rgba(47, 143, 111, 0.16);
}

.service-icon-emby img {
    width: 24px;
    height: 24px;
}

.service-icon-openlist {
    background: #f3ead8;
    border-color: rgba(185, 130, 37, 0.18);
}

.service-icon-openlist img {
    width: 23px;
    height: 23px;
}

.service-icon-sub2api {
    background: #e5e8f0;
    border-color: rgba(89, 103, 131, 0.16);
}

.service-icon-sub2api img {
    width: 24px;
    height: 24px;
}

.service-name strong,
.service-image {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-resources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.resource-metric {
    min-width: 0;
}

.resource-metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.resource-metric-top strong {
    min-width: 0;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-bar {
    height: 5px;
    overflow: hidden;
    background: rgba(58, 39, 30, 0.08);
    border-radius: 999px;
}

.resource-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--rust), #d59163);
    border-radius: inherit;
    transition: width 420ms ease;
}

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

.service-ports {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.port-tag {
    padding: 5px 8px;
    color: var(--muted);
    background: rgba(255, 250, 242, 0.8);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 12px;
}

.open-button {
    justify-self: end;
    padding: 8px 12px;
    color: #fff8ef;
    background: var(--dark-panel);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(42, 33, 29, 0.14);
    text-decoration: none;
    cursor: pointer;
}

.open-button.is-disabled {
    color: var(--muted);
    background: rgba(58, 39, 30, 0.08);
    box-shadow: none;
    cursor: default;
}

.empty-state {
    margin: 18px;
}

.mono {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

.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;
}

@media (max-width: 1180px) {
    .container.dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

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

    .service-head,
    .service-row {
        grid-template-columns: 220px 210px 110px 70px;
    }
}

@media (max-width: 760px) {
    .container.dashboard-layout {
        padding: 12px;
        gap: 12px;
    }

    .dashboard-sidebar,
    .status-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-actions {
        flex-wrap: wrap;
    }

    .service-head {
        display: none;
    }

    .service-row {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

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

    .service-resources,
    .service-status,
    .service-ports {
        grid-column: 1 / -1;
    }

    .open-button {
        grid-row: 1;
        grid-column: 2;
    }
}

/* ============================
   Langxo Editions-style redesign
   ============================ */

:root {
    --stage: #070706;
    --stage-2: #141210;
    --paper: #f7f5ea;
    --paper-2: #e4e0d2;
    --ink: #24221a;
    --muted: #777064;
    --line: rgba(36, 34, 26, 0.12);
    --line-strong: rgba(36, 34, 26, 0.24);
    --accent-blue: #739bff;
    --accent-green: #35a66f;
    --accent-rust: #c15f3c;
    --accent-gold: #c9922f;
    --panel-dark: #1b1815;
    --panel-dark-soft: #28231e;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --transition: 180ms cubic-bezier(0.2, 0, 0, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100svh;
    color: var(--ink);
    background:
        linear-gradient(115deg, rgba(115, 155, 255, 0.16), transparent 28%),
        linear-gradient(245deg, rgba(53, 166, 111, 0.12), transparent 34%),
        var(--stage);
}

.background {
    position: fixed;
    inset: 0;
    z-index: -3;
    opacity: 0.34;
    background-image:
        linear-gradient(rgba(247, 245, 234, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 245, 234, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000 0, transparent 92%);
}

.scene-layer {
    position: fixed;
    inset: 50px 0 auto auto;
    z-index: -2;
    width: min(48vw, 680px);
    height: min(68svh, 620px);
    pointer-events: none;
    perspective: 900px;
}

.scene-frame {
    position: absolute;
    inset: 7% 6% 8% 12%;
    border: 1px solid rgba(247, 245, 234, 0.18);
    border-radius: 8px;
    transform: rotateX(58deg) rotateZ(-14deg);
    transform-origin: center;
    background:
        linear-gradient(90deg, rgba(247, 245, 234, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(247, 245, 234, 0.1) 1px, transparent 1px);
    background-size: 54px 54px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38);
}

.scene-mark {
    position: absolute;
    left: 12%;
    top: 12%;
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    color: var(--paper);
    background: var(--panel-dark);
    border: 1px solid rgba(247, 245, 234, 0.3);
    border-radius: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 68px;
    font-weight: 700;
    line-height: 1;
}

.scene-line,
.scene-chip {
    position: absolute;
    display: block;
    border-radius: 8px;
}

.scene-line {
    height: 8px;
    background: rgba(247, 245, 234, 0.74);
}

.scene-line-a {
    right: 16%;
    top: 22%;
    width: 34%;
}

.scene-line-b {
    left: 23%;
    bottom: 18%;
    width: 52%;
    background: rgba(115, 155, 255, 0.74);
}

.scene-chip {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(247, 245, 234, 0.22);
}

.scene-chip-a {
    right: 19%;
    bottom: 31%;
    background: rgba(53, 166, 111, 0.72);
}

.scene-chip-b {
    right: 33%;
    bottom: 44%;
    background: rgba(193, 95, 60, 0.78);
}

.scene-chip-c {
    left: 23%;
    top: 42%;
    background: rgba(201, 146, 47, 0.74);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 24px;
    color: var(--paper);
    background: rgba(7, 7, 6, 0.78);
    border-bottom: 1px solid rgba(247, 245, 234, 0.13);
    backdrop-filter: blur(18px);
}

.brand-mark,
.site-nav {
    display: flex;
    align-items: center;
}

.brand-mark {
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--stage);
    background: var(--paper);
    border-radius: 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 800;
}

.brand-mark strong,
.brand-mark small {
    display: block;
    line-height: 1.05;
}

.brand-mark small {
    color: rgba(247, 245, 234, 0.58);
    font-size: 11px;
    text-transform: uppercase;
}

.site-nav {
    gap: 4px;
}

.site-nav a {
    min-height: 34px;
    padding: 8px 12px;
    color: rgba(247, 245, 234, 0.72);
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    color: var(--paper);
    border-color: rgba(247, 245, 234, 0.18);
    background: rgba(247, 245, 234, 0.08);
}

.container.dashboard-layout {
    width: min(100%, 1380px);
    min-height: calc(100svh - 58px);
    padding: 20px 24px 28px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 16px;
}

.card {
    border-radius: 8px;
    border-color: rgba(36, 34, 26, 0.13);
    box-shadow: 0 18px 45px rgba(7, 7, 6, 0.18);
}

.dashboard-sidebar {
    position: sticky;
    top: 78px;
    min-height: calc(100svh - 106px);
    align-self: start;
    padding: 16px;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 12px;
    color: var(--paper);
    background:
        linear-gradient(180deg, rgba(247, 245, 234, 0.06), transparent 42%),
        var(--panel-dark);
    border-color: rgba(247, 245, 234, 0.14);
}

.host-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.live-pill {
    align-self: flex-start;
    color: rgba(247, 245, 234, 0.76);
    background: rgba(247, 245, 234, 0.08);
    border: 1px solid rgba(247, 245, 234, 0.12);
    border-radius: 999px;
}

.live-pill.is-online {
    color: #dff8e9;
}

.live-pill.is-error {
    color: #ffd9ca;
}

.host-system {
    color: var(--paper);
    font-size: 30px;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.08;
}

.host-metrics {
    display: grid;
    gap: 9px;
}

.host-metrics div {
    padding: 10px 0;
    border-top: 1px solid rgba(247, 245, 234, 0.12);
}

.host-metrics span,
.tool-row small {
    color: rgba(247, 245, 234, 0.54);
}

.host-metrics strong,
.tool-row strong {
    color: var(--paper);
}

.tool-list {
    gap: 8px;
}

.tool-row {
    min-height: 62px;
    padding: 10px;
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    color: var(--paper);
    background: rgba(247, 245, 234, 0.07);
    border: 1px solid rgba(247, 245, 234, 0.12);
    border-radius: 8px;
    text-decoration: none;
}

.tool-row:hover,
.tool-row:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(247, 245, 234, 0.24);
    background: rgba(247, 245, 234, 0.1);
}

.tool-icon {
    color: var(--paper);
    background: rgba(115, 155, 255, 0.2);
}

.dashboard-main {
    gap: 12px;
}

.dashboard-topbar {
    min-height: 150px;
    padding: 22px;
    align-items: flex-end;
    background: rgba(247, 245, 234, 0.92);
}

.hero-kicker {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-topbar h1 {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 54px;
    line-height: 0.96;
}

.hero-copy {
    max-width: 520px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.soft-badge {
    padding: 7px 10px;
    color: var(--ink);
    background: rgba(36, 34, 26, 0.06);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.status-card {
    min-height: 124px;
    padding: 14px;
    background: rgba(247, 245, 234, 0.9);
}

.metric-heading {
    margin-bottom: 12px;
}

.card-icon {
    width: 34px;
    height: 34px;
    color: var(--ink);
    background: rgba(36, 34, 26, 0.07);
    border-color: var(--line);
    border-radius: 7px;
    font-size: 17px;
}

.card-label {
    font-size: 13px;
}

.card-value {
    font-size: 23px;
}

.metric-state {
    padding: 4px 7px;
    color: var(--muted);
    background: rgba(36, 34, 26, 0.05);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.status-card[data-level="normal"] .metric-state {
    color: #1d7750;
    background: rgba(53, 166, 111, 0.12);
}

.status-card[data-level="warning"] .metric-state {
    color: #93630d;
    background: rgba(201, 146, 47, 0.16);
}

.status-card[data-level="danger"] .metric-state {
    color: #9a3e24;
    background: rgba(193, 95, 60, 0.16);
}

.progress-bar {
    height: 5px;
    background: rgba(36, 34, 26, 0.08);
}

.service-table {
    background: rgba(247, 245, 234, 0.92);
}

.service-head {
    grid-template-columns: minmax(190px, 1.1fr) minmax(210px, 1fr) 104px 68px;
    padding: 11px 16px;
    color: var(--muted);
    background: rgba(36, 34, 26, 0.05);
    letter-spacing: 0;
}

.service-row {
    min-height: 68px;
    grid-template-columns: minmax(190px, 1.1fr) minmax(210px, 1fr) 104px 68px;
    padding: 10px 16px;
    background: rgba(247, 245, 234, 0.58);
}

.service-row:hover {
    background: rgba(255, 255, 255, 0.72);
}

.service-row.is-dragging {
    opacity: 0.5;
    transform: scale(0.99);
}

.service-name {
    gap: 9px;
}

.service-drag-handle {
    color: rgba(36, 34, 26, 0.36);
}

.service-icon {
    width: 32px;
    height: 32px;
    background: rgba(36, 34, 26, 0.05);
    border-color: var(--line);
}

.service-name strong {
    color: var(--ink);
    font-size: 15px;
}

.service-resources {
    gap: 9px;
}

.resource-metric-top {
    margin-bottom: 5px;
    color: var(--muted);
}

.resource-metric-top strong {
    color: var(--ink);
}

.resource-metric[data-level="normal"] .resource-bar span {
    background: linear-gradient(90deg, var(--accent-green), #85d4a8);
}

.resource-metric[data-level="warning"] .resource-bar span {
    background: linear-gradient(90deg, var(--accent-gold), #dfbd65);
}

.resource-metric[data-level="danger"] .resource-bar span {
    background: linear-gradient(90deg, var(--accent-rust), #e08b6f);
}

.service-status {
    width: max-content;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.service-status.running {
    color: #1d7750;
    background: rgba(53, 166, 111, 0.12);
}

.service-status.stopped {
    color: #9a3e24;
    background: rgba(193, 95, 60, 0.12);
}

.open-button {
    padding: 7px 10px;
    color: var(--paper);
    background: var(--panel-dark);
    border-radius: 7px;
    font-size: 12px;
}

.status-message {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
}

a:focus-visible,
.service-row:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .scene-layer {
        width: 60vw;
        opacity: 0.55;
    }

    .container.dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        min-height: auto;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

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

    .service-head,
    .service-row {
        grid-template-columns: minmax(180px, 1fr) minmax(210px, 1fr) 104px 68px;
    }
}

@media (max-width: 760px) {
    .site-header {
        height: auto;
        min-height: 56px;
        padding: 10px 12px;
    }

    .brand-mark small,
    .site-nav a:nth-child(2) {
        display: none;
    }

    .site-nav a {
        padding: 7px 9px;
        font-size: 12px;
    }

    .scene-layer {
        inset: 78px 0 auto auto;
        width: 92vw;
        height: 280px;
        opacity: 0.32;
    }

    .container.dashboard-layout {
        min-height: auto;
        padding: 12px;
        gap: 12px;
    }

    .dashboard-sidebar {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .host-system {
        font-size: 24px;
    }

    .dashboard-topbar {
        min-height: 132px;
        padding: 16px;
        align-items: flex-start;
    }

    .dashboard-topbar h1 {
        font-size: 38px;
    }

    .hero-copy {
        font-size: 14px;
    }

    .topbar-actions {
        width: 100%;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .status-card {
        min-height: 112px;
    }

    .service-head {
        display: none;
    }

    .service-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .service-resources,
    .service-status {
        grid-column: 1 / -1;
    }

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

    .open-button {
        grid-row: 1;
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }

    .scene-frame {
        transform: none;
    }
}

/* ============================
   Stronger Editions layout pass
   ============================ */

body::before {
    content: "";
    position: fixed;
    inset: 58px 0 auto 0;
    z-index: -2;
    height: 78svh;
    background:
        radial-gradient(circle at 72% 32%, rgba(115, 155, 255, 0.18), transparent 28%),
        radial-gradient(circle at 86% 58%, rgba(53, 166, 111, 0.16), transparent 22%),
        linear-gradient(180deg, rgba(7, 7, 6, 0), var(--stage) 86%);
    pointer-events: none;
}

.scene-layer {
    inset: 58px 0 auto auto;
    width: min(64vw, 940px);
    height: min(82svh, 760px);
    opacity: 0.96;
}

.scene-frame {
    inset: 4% -2% 0 8%;
    border-color: rgba(247, 245, 234, 0.22);
    transform: rotateX(62deg) rotateZ(-17deg) translate3d(0, 0, 0);
    background:
        linear-gradient(90deg, rgba(247, 245, 234, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(247, 245, 234, 0.12) 1px, transparent 1px);
    background-size: 46px 46px;
}

.scene-frame::before,
.scene-frame::after {
    content: "";
    position: absolute;
    inset: 7%;
    border: 1px dashed rgba(247, 245, 234, 0.22);
    border-radius: 8px;
}

.scene-frame::after {
    inset: 17% 13%;
    border-color: rgba(115, 155, 255, 0.28);
}

.scene-mark {
    left: 14%;
    top: 13%;
    width: 118px;
    height: 118px;
    border-radius: 8px;
    font-size: 82px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.scene-orbit {
    position: absolute;
    display: block;
    border: 1px solid rgba(247, 245, 234, 0.26);
    border-radius: 999px;
}

.scene-orbit-a {
    left: 8%;
    top: 6%;
    width: 52%;
    height: 52%;
}

.scene-orbit-b {
    right: 12%;
    bottom: 10%;
    width: 48%;
    height: 36%;
    border-color: rgba(53, 166, 111, 0.28);
}

.scene-module {
    position: absolute;
    min-width: 118px;
    padding: 12px 14px;
    color: var(--paper);
    background: rgba(27, 24, 21, 0.86);
    border: 1px solid rgba(247, 245, 234, 0.18);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.scene-module b,
.scene-module em {
    display: block;
}

.scene-module b {
    color: rgba(247, 245, 234, 0.54);
    font-family: var(--mono);
    font-size: 11px;
}

.scene-module em {
    margin-top: 4px;
    font-family: var(--mono);
    font-size: 22px;
    font-style: normal;
    font-weight: 900;
}

.scene-module-a {
    right: 18%;
    top: 24%;
}

.scene-module-b {
    left: 25%;
    bottom: 23%;
}

.scene-module-c {
    right: 8%;
    bottom: 31%;
}

.scene-line-a {
    top: 29%;
    right: 20%;
    width: 30%;
}

.scene-line-b {
    left: 34%;
    bottom: 15%;
    width: 46%;
}

.container.dashboard-layout {
    width: min(100%, 1500px);
    min-height: calc(100svh - 58px);
    grid-template-columns: 74px 290px minmax(0, 1fr);
    align-items: start;
    padding-top: 20px;
}

.edition-nav {
    position: sticky;
    top: 78px;
    min-height: calc(100svh - 106px);
    display: grid;
    align-content: start;
    gap: 9px;
    color: var(--paper);
}

.edition-nav a {
    min-height: 66px;
    padding: 10px 8px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    color: rgba(247, 245, 234, 0.56);
    border: 1px solid rgba(247, 245, 234, 0.11);
    border-radius: 8px;
    text-decoration: none;
    background: rgba(247, 245, 234, 0.045);
}

.edition-nav a:hover,
.edition-nav a:focus-visible {
    color: var(--paper);
    border-color: rgba(247, 245, 234, 0.28);
    background: rgba(247, 245, 234, 0.09);
}

.edition-nav span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 800;
}

.edition-nav strong {
    font-size: 12px;
}

.dashboard-sidebar {
    top: 78px;
}

.dashboard-main {
    min-height: calc(100svh - 106px);
    grid-template-rows: minmax(340px, 0.85fr) auto minmax(290px, auto);
}

.dashboard-topbar {
    position: relative;
    min-height: min(54svh, 460px);
    align-items: flex-end;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(247, 245, 234, 0.97), rgba(247, 245, 234, 0.78) 52%, rgba(247, 245, 234, 0.18)),
        transparent;
}

.dashboard-topbar::before {
    content: "WINTER SYSTEM";
    position: absolute;
    right: 22px;
    top: 18px;
    color: rgba(36, 34, 26, 0.1);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 900;
}

.dashboard-topbar > div:first-child {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.dashboard-topbar h1 {
    max-width: 760px;
    font-size: clamp(52px, 8vw, 116px);
    line-height: 0.9;
}

.hero-copy {
    max-width: 620px;
    font-size: 17px;
}

.hero-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-button {
    min-height: 38px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    color: var(--paper);
    background: var(--panel-dark);
    border: 1px solid var(--panel-dark);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.hero-button.is-secondary {
    color: var(--ink);
    background: rgba(36, 34, 26, 0.06);
    border-color: var(--line);
}

.status-grid {
    position: relative;
    z-index: 2;
}

.status-card {
    backdrop-filter: blur(14px);
}

.service-table {
    position: relative;
    z-index: 2;
}

.service-intro {
    min-height: 84px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(247, 245, 234, 0.72);
}

.section-kicker {
    margin: 0 0 4px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 900;
}

.service-intro h2 {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1;
}

.service-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-controls input {
    width: 180px;
    min-height: 36px;
    padding: 8px 10px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
    outline: none;
}

.service-controls input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(115, 155, 255, 0.18);
}

.filter-button {
    min-height: 36px;
    padding: 8px 11px;
    color: var(--muted);
    background: rgba(36, 34, 26, 0.05);
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.filter-button.is-active {
    color: var(--paper);
    background: var(--panel-dark);
    border-color: var(--panel-dark);
}

.service-row[hidden] {
    display: none;
}

@media (max-width: 1180px) {
    .container.dashboard-layout {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .dashboard-sidebar {
        grid-column: 2;
    }

    .dashboard-main {
        grid-column: 2;
    }

    .edition-nav {
        grid-row: 1 / span 2;
    }

    .scene-layer {
        width: 76vw;
        opacity: 0.7;
    }
}

@media (max-width: 760px) {
    .container.dashboard-layout {
        display: grid;
        grid-template-columns: 1fr;
    }

    .edition-nav {
        display: none;
    }

    .dashboard-sidebar,
    .dashboard-main {
        grid-column: auto;
    }

    .dashboard-main {
        grid-template-rows: auto;
    }

    .dashboard-topbar {
        min-height: 54svh;
        background:
            linear-gradient(180deg, rgba(247, 245, 234, 0.95), rgba(247, 245, 234, 0.78)),
            transparent;
    }

    .dashboard-topbar h1 {
        font-size: 48px;
    }

    .scene-layer {
        top: 56px;
        width: 120vw;
        height: 52svh;
        opacity: 0.24;
    }

    .scene-module {
        min-width: 88px;
        padding: 9px 10px;
    }

    .scene-module em {
        font-size: 16px;
    }

    .service-intro {
        align-items: stretch;
        flex-direction: column;
    }

    .service-controls {
        display: grid;
        grid-template-columns: 1fr auto auto;
    }

    .service-controls input {
        width: 100%;
    }
}

/* ============================
   Hero cleanup and metric icons
   ============================ */

.dashboard-topbar {
    align-items: flex-start;
    min-height: min(46svh, 390px);
    padding-top: clamp(18px, 4svh, 40px);
}

.dashboard-topbar > div:first-child {
    padding-top: 0;
}

.dashboard-topbar h1 {
    margin-top: 0;
}

.hero-actions {
    margin-top: 26px;
}

.card-icon svg {
    width: 23px;
    height: 23px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.network-icon svg {
    fill: currentColor;
    stroke-width: 0;
}

@media (max-width: 760px) {
    .dashboard-topbar {
        min-height: 44svh;
        padding-top: 18px;
    }

    .hero-actions {
        margin-top: 18px;
    }
}

.tool-icon-image {
    background: rgba(247, 245, 234, 0.1);
}

.tool-icon-image img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

/* ============================
   Headerless Editions composition
   ============================ */

body::before {
    inset: 0;
    height: 92svh;
    background:
        linear-gradient(110deg, rgba(247, 245, 234, 0.13), transparent 19%),
        radial-gradient(circle at 74% 22%, rgba(115, 155, 255, 0.24), transparent 25%),
        radial-gradient(circle at 86% 54%, rgba(53, 166, 111, 0.18), transparent 20%),
        linear-gradient(180deg, rgba(7, 7, 6, 0), var(--stage) 88%);
}

.site-header {
    display: none;
}

.background {
    opacity: 0.44;
}

.scene-layer {
    inset: 0 0 auto auto;
    width: min(66vw, 980px);
    height: min(88svh, 800px);
}

.scene-frame {
    inset: 8% -2% 2% 10%;
    transform: rotateX(63deg) rotateZ(-18deg);
}

.container.dashboard-layout {
    width: min(100%, 1540px);
    min-height: 100svh;
    padding: clamp(18px, 3vw, 34px);
    grid-template-columns: 76px minmax(260px, 300px) minmax(0, 1fr);
    gap: 14px;
}

.edition-nav,
.dashboard-sidebar {
    top: clamp(18px, 3vw, 34px);
    min-height: calc(100svh - clamp(36px, 6vw, 68px));
}

.dashboard-main {
    min-height: calc(100svh - clamp(36px, 6vw, 68px));
    display: grid;
    grid-template-rows: minmax(420px, 56svh) auto minmax(310px, auto);
    gap: 12px;
}

.dashboard-topbar {
    min-height: 0;
    padding: clamp(20px, 4vw, 44px);
    align-items: flex-end;
    background:
        linear-gradient(92deg, rgba(247, 245, 234, 0.97), rgba(247, 245, 234, 0.8) 46%, rgba(247, 245, 234, 0.14) 78%),
        transparent;
}

.dashboard-topbar::before {
    content: "LANGXO CONTROL";
    right: clamp(16px, 2vw, 28px);
    top: clamp(14px, 2vw, 24px);
}

.hero-brand {
    width: max-content;
    margin-bottom: clamp(28px, 8svh, 82px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.hero-brand .brand-logo {
    color: var(--paper);
    background: var(--stage);
}

.hero-brand strong,
.hero-brand small {
    display: block;
    line-height: 1.05;
}

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

.hero-brand small {
    color: rgba(36, 34, 26, 0.56);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-topbar h1 {
    max-width: 700px;
    font-size: clamp(58px, 8.6vw, 128px);
}

.topbar-actions {
    align-self: flex-start;
}

.host-system {
    font-size: clamp(23px, 1.8vw, 28px);
    line-height: 1.08;
    text-wrap: balance;
}

.status-grid {
    margin-top: 0;
}

@media (max-width: 1180px) {
    .container.dashboard-layout {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .dashboard-sidebar,
    .dashboard-main {
        grid-column: 2;
    }

    .edition-nav {
        top: 18px;
        min-height: calc(100svh - 36px);
        grid-row: 1 / span 2;
    }

    .dashboard-main {
        grid-template-rows: minmax(360px, auto) auto auto;
    }

    .scene-layer {
        width: 86vw;
        opacity: 0.62;
    }
}

@media (max-width: 760px) {
    .container.dashboard-layout {
        padding: 12px;
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar,
    .dashboard-main {
        grid-column: auto;
    }

    .dashboard-main {
        order: -1;
    }

    .dashboard-sidebar {
        order: 1;
    }

    .dashboard-main {
        min-height: auto;
        grid-template-rows: auto auto auto;
    }

    .dashboard-topbar {
        min-height: 50svh;
        padding: 18px;
        display: grid;
        grid-template-rows: 1fr auto;
        background:
            linear-gradient(180deg, rgba(247, 245, 234, 0.97), rgba(247, 245, 234, 0.8) 72%, rgba(247, 245, 234, 0.62)),
            transparent;
    }

    .hero-brand {
        margin-bottom: 34px;
    }

    .host-system {
        font-size: 24px;
    }

    .dashboard-topbar h1 {
        font-size: clamp(46px, 16vw, 64px);
    }

    .topbar-actions {
        display: flex;
        flex-wrap: wrap;
        align-self: end;
    }

    .scene-layer {
        inset: 0 -18vw auto auto;
        width: 136vw;
        height: 48svh;
        opacity: 0.24;
    }
}

@media (max-width: 760px) {
    .container.dashboard-layout {
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .dashboard-main {
        order: 0 !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .dashboard-topbar {
        min-height: 360px !important;
        max-height: 390px !important;
        display: grid !important;
        grid-template-rows: auto 1fr auto !important;
        align-items: start !important;
    }

    .dashboard-topbar > div:first-child {
        align-self: center;
    }

    .dashboard-topbar h1 {
        margin-top: 0 !important;
    }

    .hero-brand {
        margin-bottom: 30px !important;
    }

    .topbar-actions {
        align-self: end !important;
        margin-top: 18px;
    }

    .status-grid {
        display: none !important;
    }

    .service-table {
        position: relative !important;
        z-index: 4 !important;
        margin-top: 0 !important;
    }

    .dashboard-sidebar {
        order: 3 !important;
        min-height: auto !important;
    }
    .scene-layer {
        display: none !important;
    }
}

/* Compact the hero after removing the brand strip and CTA buttons. */
.dashboard-main {
    grid-template-rows: minmax(260px, 40svh) auto minmax(300px, auto);
}

.dashboard-topbar {
    min-height: min(40svh, 340px);
    padding: clamp(18px, 3vw, 34px) clamp(22px, 4vw, 44px);
    align-items: center;
}

.dashboard-topbar > div:first-child {
    align-self: center;
}

.dashboard-topbar h1 {
    font-size: clamp(58px, 7.2vw, 108px);
}

.topbar-actions {
    align-self: flex-start;
}

@media (max-width: 760px) {
    .dashboard-topbar {
        min-height: 244px !important;
        max-height: none !important;
        padding: 18px !important;
        grid-template-rows: 1fr auto !important;
        align-content: center !important;
    }

    .dashboard-topbar > div:first-child {
        align-self: center !important;
    }

    .dashboard-topbar h1 {
        font-size: clamp(46px, 15vw, 62px) !important;
        line-height: 0.9 !important;
    }

    .topbar-actions {
        align-self: end !important;
        margin-top: 12px !important;
    }
}

/* Host metric cards: improve spacing after the sidebar redesign. */
.host-metrics {
    gap: 12px;
}

.host-metrics div {
    min-height: 84px;
    padding: 13px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.host-metrics span {
    margin: 0 0 12px;
    color: rgba(247, 245, 234, 0.58);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.host-metrics strong {
    color: var(--paper);
    font-family: var(--mono);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .host-metrics {
        gap: 10px;
    }

    .host-metrics div {
        min-height: 78px;
        padding: 12px;
    }

    .host-metrics strong {
        font-size: 18px;
    }
}


/* service icon fixes 2026-07-20 */
.service-icon {
    font-size: 10px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.service-icon.service-icon-label,
.service-icon.service-icon-fallback {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.service-icon.service-icon-svg {
    background: transparent;
    border-color: transparent;
    padding: 0;
}

.service-icon.service-icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.service-icon-grok,
.service-icon-gpt,
.service-icon-cloudsaver,
.service-icon-pdf,
.service-icon-retain,
.service-icon-media {
    background: #fff;
}

.service-icon-remind,
.service-icon-register,
.service-icon-movie,
.service-icon-mimi,
.service-icon-ds,
.service-icon-glm,
.service-icon-cliproxy {
    background: transparent;
    border-color: transparent;
}
