:root {
    color-scheme: light;
    --ink: #17243b;
    --muted: #708099;
    --muted-strong: #8290a4;
    --line: #e4ebf4;
    --blue: #0d6efd;
    --purple: #7542a5;
    --ready-dot: #22b573;
    --ready-glow: #e6f8f0;
    --ready-pulse: rgba(230, 248, 240, .35);
    --page-top: #fff;
    --page-mid: #f4f8fe;
    --page-bottom: #edf4fc;
    --panel: rgba(255, 255, 255, .94);
    --surface: #fff;
    --soft: #f7f9fc;
    --soft-blue: #edf5ff;
    --soft-purple: #f6f0fa;
    --soft-purple-line: #eadcf2;
    --soft-note: #f5f8fc;
    --secondary-button: #edf3fb;
    --donut-track: #e2e8f0;
    --activity-bg: #f0f6ff;
    --activity-line: #dfeaff;
    --operation-line: #e5ebf4;
    --marker-bg: #f1f4f8;
    --success-bg: #e9f8f0;
    --warning-bg: #fff5dd;
    --danger-bg: #fff0f1;
    --activity-ink: #315b92;
    --elapsed-ink: #667a96;
    --note-ink: #566a85;
    --status-muted: #77869b;
    --success-ink: #176b46;
    --warning-ink: #765315;
    --danger-ink: #8c2f3d;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #e8eef7;
    --muted: #aab8ca;
    --muted-strong: #9aaac0;
    --line: #34445a;
    --page-top: #152235;
    --page-mid: #101b2b;
    --page-bottom: #0b1422;
    --panel: rgba(24, 37, 56, .96);
    --surface: #1d2d44;
    --soft: #25364d;
    --soft-blue: #203b5b;
    --soft-purple: #352d49;
    --soft-purple-line: #59486d;
    --soft-note: #25364d;
    --secondary-button: #2a3b52;
    --donut-track: #42536a;
    --activity-bg: #1c3859;
    --activity-line: #2d527b;
    --operation-line: #3a4b61;
    --marker-bg: #304158;
    --success-bg: #173d32;
    --warning-bg: #4a3b1e;
    --danger-bg: #492631;
    --activity-ink: #b8d5f5;
    --elapsed-ink: #aec1d8;
    --note-ink: #b5c5d9;
    --status-muted: #b2c0d2;
    --success-ink: #7ee0b1;
    --warning-ink: #f1d184;
    --danger-ink: #ff9eac;
    --purple: #d5b8f1;
    --ready-dot: #46d28b;
    --ready-glow: rgba(70, 210, 139, .28);
    --ready-pulse: rgba(70, 210, 139, .12);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --ink: #e8eef7;
        --muted: #aab8ca;
        --muted-strong: #9aaac0;
        --line: #34445a;
        --page-top: #152235;
        --page-mid: #101b2b;
        --page-bottom: #0b1422;
        --panel: rgba(24, 37, 56, .96);
        --surface: #1d2d44;
        --soft: #25364d;
        --soft-blue: #203b5b;
        --soft-purple: #352d49;
        --soft-purple-line: #59486d;
        --soft-note: #25364d;
        --secondary-button: #2a3b52;
        --donut-track: #42536a;
        --activity-bg: #1c3859;
        --activity-line: #2d527b;
        --operation-line: #3a4b61;
        --marker-bg: #304158;
        --success-bg: #173d32;
        --warning-bg: #4a3b1e;
        --danger-bg: #492631;
        --activity-ink: #b8d5f5;
        --elapsed-ink: #aec1d8;
        --note-ink: #b5c5d9;
        --status-muted: #b2c0d2;
        --success-ink: #7ee0b1;
        --warning-ink: #f1d184;
        --danger-ink: #ff9eac;
        --purple: #d5b8f1;
        --ready-dot: #46d28b;
        --ready-glow: rgba(70, 210, 139, .28);
        --ready-pulse: rgba(70, 210, 139, .12);
    }
}
body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: var(--ink);
    background: radial-gradient(
        ellipse at 50% 0%,
        var(--page-top) 0,
        var(--page-mid) 54%,
        var(--page-bottom) 100%
    );
    font-family: "Roboto", sans-serif;
}
.capacity-wrap {
    width: min(100% - 32px, 500px);
    margin: 0 auto;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(33, 64, 105, .1);
}
.login-wrap {
    max-width: 460px;
}
.login-form {
    display: grid;
}
.login-label {
    margin: 4px 0 6px;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 700;
}
.login-input {
    min-height: 48px;
    margin-bottom: 14px;
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
    border-radius: 12px;
}
.login-input:focus {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--blue);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
}
.login-button {
    margin-top: 2px;
}
.eyebrow {
    margin-bottom: 7px;
    color: #6c7d96;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
}
h1 {
    margin: 0;
    font-size: clamp(1.65rem, 5vw, 2rem);
    font-weight: 800;
}
.capacity-sub {
    margin: 9px 0 16px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.55;
}
.panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.panel-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu-toggle,
.menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-weight: 700;
}
.menu-toggle {
    min-height: 42px;
    padding: 0 13px;
    box-shadow: 0 3px 12px rgba(33, 64, 105, .08);
    font-size: .82rem;
}
.menu-toggle:hover,
.menu-toggle[aria-expanded="true"],
.menu-close:hover {
    background: var(--soft);
}
.menu-toggle:focus-visible,
.menu-close:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.menu-backdrop {
    position: fixed;
    z-index: 1040;
    inset: 0;
    visibility: hidden;
    background: rgba(16, 28, 45, .22);
    opacity: 0;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    transition: opacity .24s ease, visibility .24s ease;
}
.menu-backdrop.show {
    visibility: visible;
    opacity: 1;
}
.panel-menu {
    position: fixed;
    z-index: 1045;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(360px, calc(100vw - 28px));
    flex-direction: column;
    padding: max(24px, env(safe-area-inset-top)) 22px max(22px, env(safe-area-inset-bottom));
    color: var(--ink);
    background: var(--panel);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 55px rgba(19, 38, 66, .2);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .24s ease, visibility .24s ease;
}
.panel-menu.show {
    visibility: visible;
    transform: translateX(0);
}
.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.menu-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}
.menu-close {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    color: var(--muted);
    font-size: .95rem;
}
.menu-nav {
    display: grid;
    gap: 7px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}
.menu-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 13px;
    padding: 0 13px;
    color: var(--muted);
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}
.menu-link i {
    width: 18px;
    color: var(--blue);
    text-align: center;
}
.menu-link:hover,
.menu-link.is-current {
    color: var(--ink);
    background: var(--soft-blue);
}
.menu-link:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.menu-appearance {
    display: grid;
    gap: 10px;
    padding: 20px 0;
}
.menu-appearance h3 {
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.menu-logout {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.menu-logout .logout-button {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    text-align: left;
}
.menu-logout .logout-button i {
    width: 18px;
    text-align: center;
}
.menu-open {
    overflow: hidden;
}
.activity-link {
    padding: 8px 10px;
    color: var(--muted);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .76rem;
    font-weight: 700;
    text-decoration: none;
}
.activity-link:hover {
    color: var(--ink);
    background: var(--surface);
}
.activity-link:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.activity-wrap {
    width: min(100% - 32px, 760px);
}
.activity-content h1 {
    margin-top: 8px;
}
.activity-list {
    display: grid;
    gap: 9px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}
.activity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 14px;
    padding: 13px 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
}
.activity-row-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.activity-event {
    color: var(--ink);
    font-size: .88rem;
    font-weight: 700;
}
.activity-detail,
.activity-time,
.activity-footnote,
.activity-empty {
    color: var(--muted);
    font-size: .76rem;
}
.activity-status {
    align-self: start;
    padding: 4px 8px;
    color: var(--muted);
    background: var(--soft);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}
.activity-status-completed {
    color: var(--success-ink);
}
.activity-status-failed {
    color: var(--danger-ink);
}
.activity-time {
    grid-column: 1 / -1;
}
.activity-empty {
    margin: 22px 0 0;
    padding: 20px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
}
.activity-footnote {
    margin: 14px 0 0;
    text-align: center;
}
.activity-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
    color: var(--muted);
    font-size: .76rem;
}
.logout-form {
    margin: 0;
}
.logout-button {
    padding: 8px 10px;
    color: var(--muted);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .76rem;
    font-weight: 700;
}
.logout-button:hover {
    color: var(--ink);
    background: var(--surface);
}
.logout-button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.logout-button:disabled {
    cursor: wait;
    opacity: .65;
}
.auth-loading-overlay {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(23, 36, 59, .24);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}
.auth-loading-card {
    display: flex;
    min-width: min(100%, 230px);
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 20px 24px;
    color: var(--ink);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(22, 39, 67, .22);
    font-size: .9rem;
    font-weight: 700;
}
.app-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-decoration: none;
}
.app-brand img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 23%;
}
.app-brand-user {
    flex: 0 1 150px;
    min-width: 0;
    max-width: 150px;
    margin-left: -5px;
    overflow: hidden;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-brand:focus-visible {
    border-radius: 10px;
    outline: 2px solid var(--blue);
    outline-offset: 4px;
}
.theme-toggle {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--muted);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .92rem;
    transition: background .18s ease, box-shadow .18s ease, color .18s ease;
}
.theme-toggle:hover,
.theme-toggle[aria-expanded="true"] {
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(33, 64, 105, .16);
}
.theme-toggle:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.appearance-card {
    margin-bottom: 18px;
    padding: 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.appearance-title {
    margin: 0 0 9px;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 800;
}
.theme-segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.theme-option {
    min-width: 0;
    padding: 8px 6px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.2;
    transition: background .18s ease, box-shadow .18s ease, color .18s ease;
}
.theme-option:hover:not(.is-selected) {
    color: var(--ink);
    background: var(--soft);
}
.theme-option.is-selected {
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(33, 64, 105, .16);
}
.theme-option:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.mode-banner {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 7px 12px 7px 8px;
    color: var(--purple);
    background: var(--soft-purple);
    border: 1px solid var(--soft-purple-line);
    border-radius: 999px;
    font-size: .69rem;
    font-weight: 800;
    text-transform: uppercase;
}
.mode-banner i {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    background: var(--surface);
    border-radius: 50%;
}
.resource-card {
    margin-top: 10px;
    padding: 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.cpu-history {
    margin-top: 14px;
    padding: 12px 12px 10px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.cpu-history-heading {
    margin: 0;
    font-size: .76rem;
    font-weight: 800;
}
.cpu-history-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.cpu-history-toggle:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
    border-radius: 3px;
}
.cpu-history-window {
    margin-left: 5px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 500;
}
.cpu-history-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cpu-history-current {
    color: var(--muted);
    font-size: .88rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    white-space: nowrap;
}
.cpu-history-current.is-low {
    color: #22b573;
}
.cpu-history-current.is-medium {
    color: #f4a62a;
}
.cpu-history-current.is-high {
    color: #dc4b59;
}
.cpu-history-caret {
    width: 12px;
    color: var(--muted);
    font-size: .72rem;
    text-align: center;
}
.cpu-history-figure {
    margin: 8px 0 0;
}
.cpu-history-chart {
    display: block;
    width: 100%;
    height: auto;
}
.cpu-history-grid {
    stroke: var(--line);
    stroke-width: 1;
    stroke-dasharray: 3 4;
}
.cpu-history-chart text {
    fill: var(--muted);
    font-family: "Roboto", sans-serif;
    font-size: 9px;
}
.cpu-history-line {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cpu-history-line.is-low {
    stroke: #22b573;
}
.cpu-history-line.is-medium {
    stroke: #f4a62a;
}
.cpu-history-line.is-high {
    stroke: #dc4b59;
}
.cpu-history-point {
    fill: var(--surface);
    stroke-width: 2.5;
}
.cpu-history-point.is-low {
    stroke: #22b573;
}
.cpu-history-point.is-medium {
    stroke: #f4a62a;
}
.cpu-history-point.is-high {
    stroke: #dc4b59;
}
.cpu-history-times {
    display: flex;
    justify-content: space-between;
    margin: 0 2px 0 26px;
    color: var(--muted);
    font-size: .62rem;
    font-variant-numeric: tabular-nums;
}
.cpu-history-message {
    margin: 8px 0 2px;
    color: var(--muted);
    font-size: .72rem;
}
.resource-card-loading,
.resource-load-error {
    min-height: 96px;
}
.resource-loading-indicator {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
}
.resource-load-error {
    display: grid;
    align-content: center;
    gap: 7px;
}
.resource-load-error strong {
    color: var(--danger-ink);
    font-size: .84rem;
}
.resource-load-error p {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.45;
}
.resource-retry-button {
    width: fit-content;
    padding: 6px 10px;
    color: var(--ink);
    background: var(--secondary-button);
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: .76rem;
    font-weight: 700;
}
.resource-retry-button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.resource-head,
.resource-name {
    display: flex;
    align-items: center;
}
.resource-head {
    justify-content: space-between;
    gap: 10px;
}
.resource-name {
    gap: 9px;
    font-size: .94rem;
    font-weight: 800;
}
.resource-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--blue);
    background: var(--soft-blue);
    border-radius: 11px;
}
.resource-ready-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    background: #9aa8ba;
    border-radius: 50%;
}
.resource-ready-dot.is-ready {
    background: var(--ready-dot);
    box-shadow: 0 0 0 4px var(--ready-glow);
    animation: resource-ready-pulse 2s ease-in-out infinite;
}
@keyframes resource-ready-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 4px var(--ready-glow);
    }
    50% {
        box-shadow: 0 0 0 7px var(--ready-pulse);
    }
}
.resource-labels {
    display: grid;
    gap: 2px;
}
.resource-title {
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.25;
}
.resource-spec-slug {
    color: var(--muted-strong);
    font-size: .72rem;
    font-weight: 500;
}
.resource-type {
    padding: 5px 9px;
    color: var(--purple);
    background: var(--soft-purple);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}
.specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.spec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: var(--soft);
    border-radius: 12px;
}
.spec-copy {
    min-width: 0;
}
.spec small,
.spec strong {
    display: block;
}
.spec small {
    margin-bottom: 3px;
    color: var(--muted-strong);
    font-size: .68rem;
    font-weight: 600;
}
.spec strong {
    font-size: .95rem;
    font-weight: 800;
}
.utilization-donut {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    color: #8795a9;
}
.utilization-donut svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.utilization-donut-track,
.utilization-donut-progress {
    fill: none;
    stroke-width: 4;
}
.utilization-donut-track {
    stroke: var(--donut-track);
}
.utilization-donut-progress {
    stroke: #9aa8ba;
    stroke-linecap: round;
    stroke-dasharray: var(--donut-progress, 0) 100;
    transform: rotate(-90deg);
    transform-origin: center;
}
.utilization-donut.is-low .utilization-donut-progress {
    stroke: #22b573;
}
.utilization-donut.is-medium .utilization-donut-progress {
    stroke: #f4a62a;
}
.utilization-donut.is-high .utilization-donut-progress {
    stroke: #dc4b59;
}
.utilization-donut-value {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--ink);
    font-size: .63rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}
@media (prefers-reduced-motion: reduce) {
    .resource-ready-dot.is-ready {
        animation: none;
    }
    .menu-backdrop,
    .panel-menu {
        transition: none;
    }
}
.capacity-button {
    width: 100%;
    margin-top: 17px;
    padding: 14px 18px;
    color: #fff;
    background: var(--blue);
    border: 0;
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(13, 110, 253, .2);
    font-size: .94rem;
    font-weight: 800;
    transition: transform .18s ease, background .18s ease;
}
.capacity-button:hover {
    color: #fff;
    background: #0b5ed7;
    transform: translateY(-1px);
}
.capacity-button:disabled {
    cursor: not-allowed;
    opacity: .68;
    transform: none;
}
.capacity-button i {
    margin-right: 7px;
}
.capacity-button.secondary {
    color: var(--ink);
    background: var(--secondary-button);
    box-shadow: none;
}
.capacity-button.secondary:hover {
    background: #e3ecf7;
}
body.has-capacity-dock {
    box-sizing: border-box;
    padding: 16px 0 112px;
}
.capacity-dock {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: transparent;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.capacity-dock > .capacity-button,
.capacity-dock .capacity-actions {
    width: min(100%, 480px);
    margin: 0 auto;
}
.capacity-dock > .capacity-button {
    display: block;
}
.capacity-dock .capacity-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.capacity-dock .capacity-button {
    margin-top: 0;
}
.capacity-dock .capacity-actions .capacity-button {
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
}
.sync-note {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin: 13px 0 0;
    color: var(--muted-strong);
    font-size: .74rem;
    text-align: center;
}
.confirm-note {
    margin-top: 18px;
    padding: 14px;
    color: var(--note-ink);
    background: var(--soft-note);
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: .84rem;
    line-height: 1.55;
}
.flow-notice {
    margin: 0 0 14px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: .8rem;
    line-height: 1.45;
}
.flow-notice.success {
    color: var(--success-ink);
    background: var(--success-bg);
}
.flow-notice.warning {
    color: var(--warning-ink);
    background: var(--warning-bg);
}
.flow-notice.danger {
    color: var(--danger-ink);
    background: var(--danger-bg);
}
.progress {
    height: 9px;
    margin: 20px 0 23px;
    background: var(--soft);
    border-radius: 99px;
}
.progress-bar {
    background: linear-gradient(90deg, var(--blue), var(--purple));
    border-radius: 99px;
    transition: width .2s ease;
}
.activity-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
    padding: 11px 13px;
    color: var(--activity-ink);
    background: var(--activity-bg);
    border: 1px solid var(--activity-line);
    border-radius: 13px;
    font-size: .8rem;
    font-weight: 700;
}
.activity-indicator .spinner-border {
    width: 17px;
    height: 17px;
    border-width: 2px;
}
.elapsed-time {
    margin-left: auto;
    color: var(--elapsed-ink);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}
.operation-steps {
    display: grid;
    gap: 0;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}
.operation-step-row {
    position: relative;
    display: flex;
    gap: 12px;
    min-height: 62px;
    color: var(--muted);
}
.operation-step-row:not(:last-child)::before {
    position: absolute;
    top: 27px;
    left: 11px;
    height: calc(100% - 1px);
    border-left: 2px solid var(--operation-line);
    content: "";
}
.step-marker {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #9aa8ba;
    background: var(--marker-bg);
    border-radius: 50%;
    font-size: .7rem;
}
.operation-step-row.is-active .step-marker {
    color: #0d6efd;
    background: var(--soft-blue);
}
.operation-step-row.is-complete .step-marker {
    color: #168653;
    background: var(--success-bg);
}
.operation-step-row.is-failed .step-marker {
    color: #bd3545;
    background: var(--danger-bg);
}
.operation-step-row strong,
.operation-step-status {
    display: block;
}
.operation-step-row strong {
    color: var(--ink);
    font-size: .84rem;
    line-height: 1.4;
}
.operation-step-status {
    margin-top: 3px;
    color: var(--status-muted);
    font-size: .77rem;
    line-height: 1.45;
}
.resource-error {
    display: block;
    margin-top: 4px;
    color: #a72c3d;
    font-size: .76rem;
    line-height: 1.5;
}
.operation-summary {
    margin-top: 7px;
    padding: 11px 13px;
    color: var(--status-muted);
    background: var(--soft);
    border-radius: 12px;
    font-size: .77rem;
}
.view-hidden {
    display: none !important;
}
@media (max-width: 480px) {
    .capacity-wrap {
        padding: 22px 18px;
        border-radius: 22px;
    }
    .app-brand {
        min-width: 0;
        flex: 1 1 auto;
        gap: 6px;
    }
    .app-brand-user {
        flex-basis: 60px;
        max-width: 60px;
    }
    .resource-type {
        white-space: normal;
        text-align: right;
    }
}
