@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');
:root {
  font-family:"DM Sans","PingFang SC","Microsoft YaHei",sans-serif;
  color:#e9eeeb;
  background:#101511;
  font-synthesis:none;
  --surface:#191f1b;
  --surface-2:#1d2520;
  --line:#303b33;
  --muted:#97a69a;
  --soft:#b7c4b9;
  --accent:#b5e989;
  --green:#a4da79;
  --amber:#e8c786;
  --red:#eea99c;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  min-width:320px;
}
button {
  font:inherit;
}
button:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:3px;
}
.hidden {
  display:none!important;
}
.shell {
  display:flex;
  min-height:100vh;
}
.sidebar {
  width:236px;
  flex-shrink:0;
  background:#151b17;
  border-right:1px solid #29332c;
  padding:29px 17px 22px;
  display:flex;
  flex-direction:column;
  position:sticky;
  top:0;
  height:100vh;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 8px 58px;
}
.brand-mark {
  width:37px;
  height:37px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:#bfed97;
  color:#1a2419;
  font-size:21px;
  font-weight:700;
  letter-spacing:-2px;
}
.brand strong {
  display:block;
  font-size:15px;
  letter-spacing:-.2px;
}
.brand small {
  display:block;
  font:500 9px/1.5 "IBM Plex Mono",monospace;
  letter-spacing:1.1px;
  color:#849487;
  margin-top:2px;
}
.side-label {
  font-size:11px;
  color:#718076;
  margin:0 12px 11px;
}
.navigation {
  display:grid;
  gap:5px;
}
.nav-item {
  border:0;
  background:transparent;
  color:#a7b5a9;
  text-align:left;
  width:100%;
  padding:12px 13px;
  border-radius:8px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:13px;
  font-size:13px;
  font-weight:500;
  transition:background .15s,color .15s;
}
.nav-item:hover {
  background:#222d25;
  color:#eff6ee;
}
.nav-item.active {
  background:#2d3b2c;
  color:#d8f5c6;
}
.nav-icon {
  font-size:17px;
  width:18px;
  text-align:center;
  color:#9caea0;
  line-height:1;
}
.nav-item.active .nav-icon {
  color:#b5e989;
}
.sidebar-foot {
  margin:auto 8px 0;
  padding:16px 4px 0;
  border-top:1px solid #2e3830;
  display:flex;
  gap:10px;
  font-size:12px;
  color:#d5dfd5;
}
.sidebar-foot small {
  display:block;
  color:#7f9082;
  margin-top:4px;
}
.online-dot,.status-dot,.dot {
  width:7px;
  height:7px;
  border-radius:50%;
  display:inline-block;
  background:#95d778;
  flex:0 0 auto;
}
.online-dot {
  margin-top:4px;
}
.main {
  min-width:0;
  flex:1;
}
.topbar {
  height:72px;
  border-bottom:1px solid #29342c;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 48px;
  background:#151b17;
}
.breadcrumb {
  font-size:12px;
  color:#839287;
}
.breadcrumb strong {
  color:#cfd9d0;
  font-weight:500;
}
.slash {
  padding:0 11px;
  color:#58665b;
}
.top-actions {
  display:flex;
  align-items:center;
  gap:24px;
}
.connection {
  display:flex;
  align-items:center;
  gap:7px;
  color:#9aab9d;
  font-size:11px;
}
.connection.offline .status-dot {
  background:var(--red);
}
.refresh-button {
  background:#253129;
  color:#dce9dd;
  border:1px solid #39483b;
  padding:9px 13px;
  border-radius:7px;
  cursor:pointer;
  font-size:12px;
}
.refresh-button:hover {
  background:#304037;
}
.refresh-button:disabled {
  cursor:wait;
  opacity:.65;
}
.refresh-button span {
  font-size:16px;
}
.page {
  max-width:1580px;
  margin:auto;
  padding:43px 48px 0;
}
.page-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  margin-bottom:29px;
  gap:20px;
}
.eyebrow {
  font:500 10px/1 "IBM Plex Mono",monospace;
  letter-spacing:1.4px;
  color:#a5d884;
  margin:0 0 14px;
}
.page-heading h1 {
  font-size:29px;
  letter-spacing:-1px;
  line-height:1.2;
  margin:0;
  font-weight:600;
}
.page-heading p:not(.eyebrow) {
  font-size:13px;
  color:var(--muted);
  margin:9px 0 0;
}
.updated {
  font-size:11px;
  color:#7d8d80;
  white-space:nowrap;
  padding-bottom:3px;
}
.updated strong {
  font-weight:500;
  color:#b3c2b5;
  margin-left:7px;
}
.metric-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.metric {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:11px;
  padding:19px 20px 17px;
  min-height:134px;
  display:flex;
  flex-direction:column;
}
.metric-label {
  font-size:12px;
  color:#a4b4a6;
}
.metric-value {
  font-size:25px;
  letter-spacing:-.8px;
  line-height:1.2;
  font-weight:600;
  margin:18px 0 8px;
  overflow-wrap:anywhere;
}
.metric-value.compact {
  font-size:18px;
  letter-spacing:-.4px;
}
.metric-value small {
  font-size:12px;
  color:#a8b7a9;
  margin-left:4px;
  letter-spacing:0;
}
.metric-meta {
  font-size:11px;
  color:#829386;
  margin-top:auto;
}
.metric-meta.good {
  color:#acd997;
}
.overview-grid {
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);
  gap:16px;
  margin-top:16px;
}
.panel {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:11px;
  min-width:0;
}
.panel-heading {
  padding:21px 22px 18px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:15px;
  border-bottom:1px solid #2c372f;
}
.panel-heading h2 {
  font-size:14px;
  font-weight:600;
  margin:0;
  color:#edf2ed;
}
.panel-heading p {
  font-size:11px;
  color:#829286;
  margin:6px 0 0;
}
.panel-note {
  font:500 10px/1 "IBM Plex Mono",monospace;
  color:#839387;
}
.environment-list {
  padding:3px 22px;
}
.environment {
  padding:18px 0;
  display:grid;
  grid-template-columns:108px 1fr auto;
  gap:13px;
  align-items:start;
}
.environment+.environment {
  border-top:1px solid #2c372f;
}
.environment-name {
  font-size:13px;
  font-weight:600;
}
.environment-name small {
  display:block;
  font:400 10px/1.5 "IBM Plex Mono",monospace;
  color:#819084;
  margin-top:4px;
}
.environment-info {
  min-width:0;
}
.environment-info strong {
  display:block;
  color:#d9e5db;
  font:500 11px/1.5 "IBM Plex Mono",monospace;
  overflow-wrap:anywhere;
}
.environment-info span {
  display:block;
  color:#819286;
  font-size:11px;
  margin-top:5px;
}
.pill {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 8px;
  border-radius:5px;
  font-size:10px;
  white-space:nowrap;
  background:#273a29;
  color:#b9e8aa;
}
.pill.warn {
  background:#413b29;
  color:#e7d097;
}
.pill.bad {
  background:#432c2b;
  color:#f1b3a8;
}
.pill .dot {
  width:5px;
  height:5px;
}
.pill.warn .dot {
  background:var(--amber);
}
.pill.bad .dot {
  background:var(--red);
}
.storage-content {
  padding:21px 22px 19px;
}
.storage-total {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:10px;
}
.storage-total strong {
  font-size:24px;
  font-weight:600;
  letter-spacing:-.7px;
}
.storage-total span {
  font-size:11px;
  color:#8fa092;
}
.bar {
  height:7px;
  background:#344038;
  border-radius:9px;
  overflow:hidden;
  margin:17px 0 12px;
}
.bar>span {
  display:block;
  background:linear-gradient(90deg,#92c77b,#c2e9a7);
  height:100%;
  border-radius:9px;
}
.storage-caption {
  font-size:11px;
  color:#88998c;
}
.storage-items {
  margin-top:19px;
  display:grid;
  gap:13px;
}
.storage-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  color:#a3b3a5;
  gap:10px;
}
.storage-row strong {
  font:500 11px/1.2 "IBM Plex Mono",monospace;
  color:#dde8dd;
}
.recent-panel {
  margin-top:16px;
}
.text-button {
  border:0;
  background:transparent;
  color:#b6dc9c;
  font-size:11px;
  padding:3px 0;
  cursor:pointer;
  white-space:nowrap;
}
.text-button:hover {
  color:#e2ffd1;
}
.table-wrap {
  overflow:auto;
}
.preview-list {
  max-height:480px;
}
.preview-list th {
  position:sticky;
  top:0;
  z-index:1;
}
.data-table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:11px;
  min-width:650px;
}
.data-table th {
  color:#819185;
  font-weight:500;
  background:#1c2420;
  padding:11px 22px;
  white-space:nowrap;
}
.data-table td {
  padding:14px 22px;
  border-top:1px solid #29342c;
  color:#b9c8bb;
  vertical-align:middle;
}
.data-table tbody tr:hover {
  background:#202a23;
}
.data-table td strong {
  color:#e1ebe1;
  font-weight:500;
}
.mono {
  font-family:"IBM Plex Mono",monospace;
  font-size:10px;
  overflow-wrap:anywhere;
}
.status-text {
  display:inline-flex;
  gap:7px;
  align-items:center;
  white-space:nowrap;
}
.muted {
  color:#859589;
}
.empty {
  padding:30px 22px;
  color:#879a8b;
  font-size:12px;
}
.notice {
  padding:13px 16px;
  border:1px solid #51482e;
  background:#342f21;
  border-radius:8px;
  color:#e7d5aa;
  font-size:12px;
  line-height:1.7;
  margin-bottom:16px;
}
.section-gap {
  margin-top:16px;
}
.environment-badge {
  font:500 10px/1 "IBM Plex Mono",monospace;
  letter-spacing:.3px;
  padding:6px 8px;
  border-radius:5px;
}
.environment-badge.prod {
  background:#3c3528;
  color:#e6ca96;
}
.environment-badge.pre {
  background:#293a2b;
  color:#b5dfab;
}
.manager-content {
  padding:20px 22px;
  color:#bacaba;
  font-size:12px;
  line-height:1.8;
}
.manager-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
}
.manager-item span {
  display:block;
  color:#84978a;
  font-size:11px;
}
.manager-item strong {
  display:block;
  color:#dce8dd;
  margin-top:6px;
  font-weight:500;
}
.footer {
  max-width:1580px;
  margin:35px auto 0;
  padding:0 48px 26px;
  display:flex;
  justify-content:space-between;
  color:#697a6d;
  font:400 9px/1.5 "IBM Plex Mono",monospace;
  letter-spacing:.4px;
}
.skeleton {
  background:linear-gradient(90deg,#1b241e 25%,#27332a 50%,#1b241e 75%);
  background-size:200% 100%;
  animation:loading 1.5s infinite;
  border:1px solid var(--line);
  border-radius:11px;
}
.metric-skeleton {
  min-height:134px;
}
@keyframes loading {
  to {
    background-position:-200% 0;
  }
}
@media(max-width:1100px) {
  .metric-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .overview-grid {
    grid-template-columns:1fr;
  }
  .sidebar {
    width:200px;
  }
  .page,.topbar {
    padding-left:30px;
    padding-right:30px;
  }
  .footer {
    padding-left:30px;
    padding-right:30px;
  }
}
@media(max-width:680px) {
  .shell {
    display:block;
  }
  .sidebar {
    position:static;
    width:auto;
    height:auto;
    padding:15px 16px 0;
    border-right:0;
    border-bottom:1px solid #29332c;
  }
  .brand {
    margin:0 0 16px;
  }
  .brand-mark {
    width:32px;
    height:32px;
    font-size:18px;
  }
  .side-label,.sidebar-foot {
    display:none;
  }
  .navigation {
    display:flex;
    overflow:auto;
    gap:2px;
  }
  .nav-item {
    width:auto;
    white-space:nowrap;
    padding:10px 12px;
    border-radius:7px 7px 0 0;
    font-size:12px;
    gap:6px;
  }
  .nav-icon {
    font-size:14px;
  }
  .topbar {
    height:56px;
    padding:0 18px;
  }
  .top-actions {
    gap:10px;
  }
  .connection {
    font-size:10px;
  }
  .page {
    padding:32px 18px 0;
  }
  .page-heading h1 {
    font-size:25px;
  }
  .updated {
    display:none;
  }
  .metric-grid {
    gap:9px;
  }
  .metric {
    padding:15px;
    min-height:115px;
  }
  .metric-value {
    font-size:20px;
    margin-top:14px;
  }
  .metric-value.compact {
    font-size:15px;
  }
  .environment {
    grid-template-columns:80px 1fr;
    gap:10px;
  }
  .environment .pill {
    grid-column:2;
    justify-self:start;
  }
  .manager-grid {
    grid-template-columns:1fr;
  }
  .footer {
    padding:0 18px 24px;
    gap:15px;
    flex-wrap:wrap;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}

/* Theme tokens keep every status and surface readable in both appearances. */
:root {
  color-scheme:light;
  color:#192b40;
  background:#f4f7fb;
  --surface:#fff;
  --surface-2:#f4f7fb;
  --chrome:#fff;
  --line:#dfe7f0;
  --text:#192b40;
  --muted:#586b80;
  --soft:#425970;
  --faint:#65778a;
  --accent:#285bb5;
  --accent-hover:#17458f;
  --nav-hover:#f2f5fa;
  --nav-active:#e9f1ff;
  --nav-active-text:#2455ad;
  --brand-bg:#356bd4;
  --brand-text:#fff;
  --good-bg:#e7f5ec;
  --good-text:#24643f;
  --warn-bg:#fff4df;
  --warn-text:#80520f;
  --bad-bg:#ffebe9;
  --bad-text:#9a342d;
  --notice-border:#efd7a8;
  --bar-track:#e5edf5;
  --bar-start:#6ba5ef;
  --bar-end:#326cce;
  --green:#218454;
  --amber:#a15d08;
  --red:#b54137;
  --shadow:0 2px 10px rgb(35 58 89 / 4%);
  --switch-shadow:0 1px 3px rgb(28 44 68 / 13%);
  --skeleton-start:#f1f5f9;
  --skeleton-middle:#e5edf5;
}
:root[data-theme="dark"] {
  color-scheme:dark;
  color:#eaf1fa;
  background:#101b2b;
  --surface:#19283c;
  --surface-2:#1e2e43;
  --chrome:#162338;
  --line:#304156;
  --text:#eaf1fa;
  --muted:#a5b6ca;
  --soft:#c3d0df;
  --faint:#96a9bf;
  --accent:#a6c6ff;
  --accent-hover:#d7e6ff;
  --nav-hover:#22354a;
  --nav-active:#2d4362;
  --nav-active-text:#d9e8ff;
  --brand-bg:#8eb7ff;
  --brand-text:#10213b;
  --good-bg:#214638;
  --good-text:#b2eccc;
  --warn-bg:#514025;
  --warn-text:#f4d8a3;
  --bad-bg:#532f32;
  --bad-text:#ffc4bc;
  --notice-border:#725b35;
  --bar-track:#35465b;
  --bar-start:#79adf6;
  --bar-end:#aac9ff;
  --green:#7cdaa5;
  --amber:#ecc982;
  --red:#f1a49b;
  --shadow:none;
  --switch-shadow:0 1px 3px rgb(0 0 0 / 22%);
  --skeleton-start:#1d2d41;
  --skeleton-middle:#2a3e56;
}
.sidebar,.topbar {
  background:var(--chrome);
  border-color:var(--line);
}
.brand-mark {
  background:var(--brand-bg);
  color:var(--brand-text);
}
.brand small,.side-label,.sidebar-foot small,.breadcrumb,.slash,.connection,
.updated,.metric-label,.metric-value small,.metric-meta,.panel-heading p,.panel-note,
.environment-name small,.environment-info span,.storage-total span,.storage-caption,
.storage-row,.data-table th,.muted,.empty,.manager-item span,.footer {
  color:var(--muted);
}
.nav-item,.sidebar-foot,.breadcrumb strong,.data-table td,.manager-content {
  color:var(--soft);
}
.nav-item:hover {
  background:var(--nav-hover);
  color:var(--text);
}
.nav-item.active {
  background:var(--nav-active);
  color:var(--nav-active-text);
}
.nav-icon {
  color:var(--faint);
}
.nav-item.active .nav-icon,.eyebrow,.text-button,.metric-meta.good {
  color:var(--accent);
}
.text-button:hover {
  color:var(--accent-hover);
}
.sidebar-foot,.panel-heading,.environment+.environment,.data-table td {
  border-color:var(--line);
}
.online-dot,.status-dot,.dot {
  background:var(--green);
}
.refresh-button {
  background:var(--surface);
  border-color:var(--line);
  color:var(--text);
}
.refresh-button:hover {
  background:var(--nav-hover);
}
.theme-switch {
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:3px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--surface-2);
}
.theme-option {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:6px 8px;
  border:0;
  border-radius:6px;
  color:var(--muted);
  background:transparent;
  font-size:11px;
  white-space:nowrap;
  cursor:pointer;
  transition:background .15s,color .15s;
}
.theme-option svg {
  width:14px;
  height:14px;
  flex:none;
}
.theme-option:hover {
  color:var(--text);
}
.theme-option[aria-pressed="true"] {
  background:var(--surface);
  color:var(--text);
  box-shadow:var(--switch-shadow);
}
.metric,.panel {
  box-shadow:var(--shadow);
}
.updated strong,.panel-heading h2,.environment-info strong,.storage-row strong,
.data-table td strong,.manager-item strong {
  color:var(--text);
}
.pill,.environment-badge.pre {
  background:var(--good-bg);
  color:var(--good-text);
}
.pill.warn,.environment-badge.prod {
  background:var(--warn-bg);
  color:var(--warn-text);
}
.pill.bad {
  background:var(--bad-bg);
  color:var(--bad-text);
}
.bar {
  background:var(--bar-track);
}
.bar>span {
  background:linear-gradient(90deg,var(--bar-start),var(--bar-end));
}
.data-table th {
  background:var(--surface-2);
}
.data-table tbody tr:hover {
  background:var(--nav-hover);
}
.notice {
  background:var(--warn-bg);
  border-color:var(--notice-border);
  color:var(--warn-text);
}
.skeleton {
  background:linear-gradient(90deg,var(--skeleton-start) 25%,var(--skeleton-middle) 50%,var(--skeleton-start) 75%);
  background-size:200% 100%;
}
@media(max-width:480px) {
  .breadcrumb {
    display:none;
  }
  .top-actions {
    margin-left:auto;
    gap:8px;
  }
  .theme-option {
    padding:6px;
  }
}

.logout-form {
  margin:0;
}
.logout-button {
  border:0;
  padding:8px 0;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  cursor:pointer;
  white-space:nowrap;
}
.logout-button:hover {
  color:var(--text);
}
.login-page {
  background:var(--surface-2);
}
.login-shell {
  min-height:100vh;
  padding:80px 20px;
  display:grid;
  place-items:center;
}
.login-toolbar {
  position:absolute;
  top:25px;
  right:32px;
}
.login-card {
  width:min(100%, 440px);
  padding:38px 40px 30px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface);
  box-shadow:0 12px 38px rgb(30 51 80 / 7%);
}
.login-brand {
  display:flex;
  align-items:center;
  gap:12px;
}
.login-brand strong {
  display:block;
  font-size:15px;
}
.login-brand small {
  display:block;
  margin-top:3px;
  color:var(--muted);
  font:500 9px/1.5 "IBM Plex Mono",monospace;
  letter-spacing:1.1px;
}
.login-heading {
  margin:45px 0 28px;
}
.login-heading h1 {
  margin:0;
  font-size:27px;
  letter-spacing:-.7px;
}
.login-heading p:not(.eyebrow) {
  margin:10px 0 0;
  color:var(--muted);
  font-size:13px;
}
.login-form {
  display:flex;
  flex-direction:column;
  gap:10px;
}
.login-form label {
  margin-top:6px;
  color:var(--text);
  font-size:12px;
  font-weight:600;
}
.login-form input {
  width:100%;
  min-height:46px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
  color:var(--text);
  font:inherit;
}
.login-form input:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:1px;
}
.login-submit {
  min-height:46px;
  margin-top:17px;
  border:0;
  border-radius:8px;
  background:var(--brand-bg);
  color:var(--brand-text);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}
.login-submit:hover {
  filter:brightness(.94);
}
.login-error {
  padding:11px 13px;
  border-radius:7px;
  background:var(--bad-bg);
  color:var(--bad-text);
  font-size:12px;
  line-height:1.5;
}
.login-footer {
  margin:34px 0 0;
  color:var(--muted);
  font:500 9px/1.5 "IBM Plex Mono",monospace;
  letter-spacing:.4px;
  text-align:center;
}
@media(max-width:420px) {
  .topbar .connection {
    display:none;
  }
  .login-toolbar {
    top:20px;
    right:20px;
  }
  .login-card {
    padding:32px 26px 26px;
  }
}

.brand {
  margin:0 8px 36px;
}
.topbar {
  justify-content:flex-end;
}
.page {
  padding-bottom:48px;
}
.page-heading {
  align-items:center;
  margin-bottom:25px;
}
.panel-heading {
  align-items:center;
  padding:18px 22px;
}
.metric {
  min-height:120px;
}
.metric-value {
  margin:14px 0 0;
}
.metric-meta {
  padding-top:8px;
}
#all-runs .table-wrap {
  border-radius:10px;
}
.login-heading {
  margin:36px 0 24px;
}
@media(max-width:680px) {
  .brand {
    margin:0 0 16px;
  }
  .page {
    padding-bottom:28px;
  }
  .metric {
    min-height:108px;
  }
}

.heading-actions { display:flex; align-items:center; gap:18px; }
.action-button, .danger-button {
  min-height:36px; padding:8px 14px; border:1px solid var(--line); border-radius:8px;
  background:var(--surface); color:var(--text); font-size:12px; font-weight:600; cursor:pointer;
}
.action-button:hover:not(:disabled) { background:var(--surface-2); }
.action-button:disabled, .danger-button:disabled { opacity:.48; cursor:not-allowed; }
.danger-button { border-color:transparent; background:#b8433a; color:#fff; }
.danger-button:hover:not(:disabled) { background:#a0352d; }
.select-cell { width:36px; padding-right:0!important; }
.data-table .duration-cell { min-width:120px; white-space:nowrap; }
.select-cell input, .cleanup-confirm input { accent-color:var(--brand-bg); width:15px; height:15px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.cleanup-dialog {
  width:min(680px, calc(100vw - 32px)); max-height:min(760px, calc(100vh - 32px));
  padding:0; border:1px solid var(--line); border-radius:14px; background:var(--surface);
  color:var(--text); box-shadow:0 20px 70px rgb(12 25 43 / 25%);
}
.cleanup-dialog[open] { display:flex; flex-direction:column; overflow:hidden; }
.cleanup-dialog::backdrop { background:rgb(12 23 38 / 52%); }
.dialog-heading { display:flex; flex:0 0 auto; justify-content:space-between; align-items:flex-start; gap:20px; padding:24px 25px 18px; border-bottom:1px solid var(--line); }
.dialog-heading h2 { margin:0; font-size:19px; letter-spacing:-.3px; }
.dialog-heading p { margin:7px 0 0; color:var(--muted); font-size:12px; }
.dialog-close { border:0; background:none; color:var(--muted); font-size:25px; line-height:1; cursor:pointer; }
.dialog-content { padding:18px 25px; flex:1 1 auto; min-height:0; overflow:auto; }
.dialog-confirmation { flex:0 0 auto; padding:0 25px 14px; }
.dialog-confirmation:empty { display:none; }
.dialog-confirmation .cleanup-confirm { margin-top:0; }
.dialog-footer { display:flex; flex:0 0 auto; justify-content:flex-end; gap:9px; padding:16px 25px 21px; border-top:1px solid var(--line); }
.cleanup-item { padding:13px 15px; border:1px solid var(--line); border-radius:9px; margin-bottom:9px; font-size:12px; }
.cleanup-item-head { display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
.cleanup-eligible { color:var(--good-text); font-weight:600; white-space:nowrap; }
.cleanup-blocked { color:var(--warn-text); text-align:right; }
.cleanup-stage { color:var(--muted); margin-top:6px; line-height:1.5; }
.cleanup-parts { display:flex; flex-wrap:wrap; gap:7px 14px; margin-top:12px; color:var(--muted); }
.cleanup-parts strong { color:var(--text); font-weight:600; margin-left:3px; }
.cleanup-confirm { display:flex; align-items:flex-start; gap:9px; padding:13px 14px; margin-top:16px; border-radius:8px; background:var(--warn-bg); color:var(--warn-text); font-size:12px; line-height:1.6; cursor:pointer; }
.cleanup-confirm input { flex:0 0 auto; margin:2px 0 0; }
.cleanup-hint { color:var(--muted); font-size:12px; line-height:1.6; margin:13px 0 0; }
.cleanup-result { display:flex; flex-direction:column; gap:7px; padding:14px 0 18px; }
.cleanup-result strong { font-size:28px; letter-spacing:-.8px; }
.cleanup-result span { color:var(--muted); font-size:12px; }
.asset-toolbar { display:flex; justify-content:flex-end; align-items:center; gap:16px; padding:12px 22px; color:var(--muted); font-size:11px; }
.cache-overview { display:flex; flex-wrap:wrap; gap:24px; color:var(--muted); font-size:12px; }
.version-table { min-width:900px; font-size:12px; }
.version-table td { padding-top:14px; padding-bottom:14px; }
.version-expand { display:inline-flex; align-items:center; gap:8px; padding:0; border:0; background:none; color:var(--text); text-align:left; cursor:pointer; white-space:nowrap; }
.version-expand>span { color:var(--accent); font-size:19px; line-height:1; width:10px; }
.version-expand strong { font-weight:600; }
.version-actions { display:flex; flex-wrap:wrap; gap:12px; }
.version-protection { margin:5px 0 0 18px; color:var(--good-text); font-size:10px; }
.asset-main, .asset-detail { display:block; white-space:nowrap; }
.asset-main { color:var(--text); font-weight:500; }
.asset-detail { color:var(--muted); font-size:10px; margin-top:4px; }
.version-detail>td { padding:0!important; background:var(--surface-2); }
.version-detail-inner { padding:20px 22px 24px; }
.version-detail-header { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:14px; font-size:12px; }
.version-detail-header span { color:var(--muted); font-size:11px; }
.asset-host-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.asset-host { padding:15px; border:1px solid var(--line); border-radius:9px; background:var(--surface); }
.asset-host h4 { margin:0 0 13px; font-size:12px; }
.asset-host-meta { display:flex; justify-content:space-between; gap:12px; margin:7px 0; color:var(--muted); font-size:11px; }
.asset-host-meta strong { color:var(--text); font-weight:600; }
.image-detail-list { margin-top:12px; border-top:1px solid var(--line); }
.image-detail-row { display:flex; justify-content:space-between; gap:15px; padding-top:10px; font-size:11px; color:var(--muted); }
.image-detail-row strong { color:var(--text); font-weight:500; }
.image-detail-row small { margin-left:8px; font:10px "IBM Plex Mono",monospace; color:var(--faint); }
.attempt-heading { margin:22px 0 10px; font-size:12px; font-weight:600; }
.version-detail .data-table { background:var(--surface); border:1px solid var(--line); border-radius:8px; }
.fold-section { border-top:1px solid var(--line); }
.fold-toggle { display:flex; align-items:center; gap:9px; width:100%; padding:17px 22px; border:0; background:transparent; color:var(--text); font-weight:600; font-size:12px; text-align:left; cursor:pointer; }
.fold-toggle>span { color:var(--accent); font-size:19px; line-height:1; }
.fold-toggle small { color:var(--muted); font-size:11px; font-weight:500; }
@media(max-width:680px) {
  .heading-actions { gap:9px; }
  .heading-actions .updated { display:none; }
  .dialog-heading { padding:20px 18px 15px; }
  .dialog-content { padding:16px 18px; }
  .dialog-confirmation { padding:0 18px 12px; }
  .dialog-footer { padding:14px 18px 18px; }
  .cleanup-item-head { flex-wrap:wrap; }
  .asset-host-grid { grid-template-columns:1fr; }
  .version-detail-header { flex-direction:column; }
}
