:root {
  color-scheme: light;
  --paper: #fff;
  --canvas: #f6f7f5;
  --ink: #1c2828;
  --muted: #53625e;
  --line: #d9dfd9;
  --dark: #1a2527;
  --gold: #ffc565;
  --link: #245e55;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; }
body.workspace { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); min-height: 100vh; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #b56d18; outline-offset: 3px; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 5; top: .75rem; left: .75rem; padding: .6rem 1rem; background: white; }

.shell-header { background: var(--dark); color: white; }
.bar { display: flex; gap: 2.75rem; padding: 1.9rem 1rem 1rem; }
.workspace .bar { position: sticky; top: 0; height: 100vh; height: 100dvh; flex-direction: column; overflow: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding-inline: .8rem;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.brand b { font-weight: 450; color: #b5c5d8; }
.brand i { width: 1.05rem; height: 1.05rem; background: #ffc565; box-shadow: inset -.33rem -.33rem 0 #dc902b; }
.primary-nav { display: grid; align-content: start; gap: .35rem; }
.primary-nav a {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .76rem .85rem;
  border-radius: .55rem;
  color: #c4cecb;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 550;
}
.primary-nav a:hover, .signout button:hover { background: #2c383a; color: white; }
.primary-nav a[aria-current] { color: #ffda93; background: #38403b; box-shadow: inset 3px 0 var(--gold); }
.nav-icon { display: inline-block; flex: none; width: 1.1rem; height: 1.1rem; position: relative; }
.nav-icon::before, .nav-icon::after { content: ""; position: absolute; }
.icon-projects::before {
  width: .43rem; height: .43rem; background: currentColor; border-radius: 1px; top: .06rem; left: .05rem;
  box-shadow: .57rem 0, 0 .57rem, .57rem .57rem;
}
.icon-pods::before, .icon-pods::after { inset: .05rem 0 auto; height: .44rem; border: 1.5px solid; border-radius: 2px; }
.icon-pods::after { top: .65rem; }
.icon-runs::before { width: .23rem; height: .48rem; top: .55rem; left: .12rem; background: currentColor; box-shadow: .36rem -.45rem, .36rem 0, .72rem -.2rem, .72rem 0; }
.icon-users::before { left: .35rem; width: .4rem; height: .4rem; border: 1.5px solid; border-radius: 50%; }
.icon-users::after { inset: .68rem .06rem 0; border: 1.5px solid; border-radius: .4rem .4rem .1rem .1rem; }

.signout { margin-top: auto; padding: 1rem .3rem .2rem; border-top: 1px solid #3a4748; display: flex; align-items: center; gap: .5rem; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: .62rem; background: #e7efe9; color: #23544a; font-weight: 700; }
.signout .avatar { width: 1.7rem; height: 1.7rem; background: #424c47; color: #ffda93; }
.account-name { font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signout .plain { margin-left: auto; background: transparent; color: #c4cecb; border: 0; padding: .45rem; font-size: .82rem; }

main { min-width: 0; width: 100%; max-width: 94rem; margin-inline: auto; padding: clamp(1.25rem, 3.5vw, 3.5rem) clamp(1rem, 3.6vw, 4rem) 5rem; }
h1, h2, h3, p { margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 3.5vw, 3.2rem); letter-spacing: -.055em; line-height: 1.12; overflow-wrap: anywhere; }
h2 { font-size: 1.28rem; letter-spacing: -.035em; line-height: 1.3; }
h3 { font-size: 1.05rem; }
.heading, .actions, .row, .pool-search, .invite-fields, .member, .person { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.heading { justify-content: space-between; gap: 1rem; margin-block: .4rem 1.8rem; }
.heading h1 { margin: 0; }
.section-title { display: flex; align-items: center; gap: .55rem; margin: 2.25rem 0 .85rem; }
.counter { display: inline-grid; place-items: center; min-width: 1.55rem; height: 1.55rem; padding: 0 .35rem; background: #e4eae5; color: #435650; border-radius: .45rem; font-size: .8rem; letter-spacing: 0; }
.panel, .card, .scroll, .empty, .quota-summary section {
  min-width: 0; border: 1px solid var(--line); border-radius: .85rem; background: var(--paper);
}
.panel, .card, .empty { padding: clamp(1.1rem, 2.3vw, 1.75rem); }
.panel { margin-block: 1.25rem; }
.panel > :last-child, .card > :last-child { margin-bottom: 0; }
.panel > form + form, .panel > details, .panel > label + button { margin-top: 1rem; }
form:not(.grid, .row, .pool-search, .pool-toolbar, .pod-fields) > label + label { margin-top: .85rem; }
.empty { color: var(--muted); border-style: dashed; }
.narrow { max-width: 30rem; margin: 6vh auto; }
.grid, .quota-summary { display: grid; gap: 1rem; }
small, dt, .member > span { color: var(--muted); }

button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 2.65rem; padding: .55rem 1rem; border: 1px solid #e1a94d; border-radius: .52rem;
  background: var(--gold); color: #302710; font: inherit; font-size: .92rem; line-height: 1.35;
  font-weight: 650; cursor: pointer; text-decoration: none; text-align: center;
}
button:hover, .button:hover { background: #f7ba52; }
.secondary { background: white; border-color: #c7d0c8; color: var(--ink); }
.secondary:hover { background: #f0f3ef; border-color: #91a095; }
.compact { min-height: 2.1rem; font-size: .81rem; padding: .4rem .7rem; }
.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.wide { grid-column: 1/-1; }
label { display: block; font-size: .9rem; font-weight: 600; }
input:not([type=hidden], [type=checkbox], [type=radio]), textarea, select {
  display: block; width: 100%; min-width: 0; padding: .62rem .78rem; margin-top: .35rem; border: 1px solid #b2c0b6;
  border-radius: .5rem; background: white; color: var(--ink); font: inherit; font-weight: 450; line-height: 1.45;
}
input::placeholder, textarea::placeholder { color: #69776f; }
input[type=checkbox], input[type=radio] { accent-color: #386251; }
textarea { resize: vertical; }
small { font-size: .84rem; font-weight: 450; }
label small { display: inline-block; margin-top: .2rem; }
.row, .invite-fields, .pool-search { align-items: flex-end; }
.row { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.row label { flex: 1 1 12rem; min-width: 0; }
.invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.invite h2 { margin: 0; }
.invite-fields label { flex: 1 1 10rem; min-width: 0; }
.member { padding-block: .6rem; overflow-wrap: anywhere; }
.member form { margin-left: auto; }
.person { flex-wrap: nowrap; }
.users-table td:last-child { text-align: right; }
dl { display: grid; grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); gap: .55rem 1rem; margin: 0 0 1.4rem; }
dd { margin: 0; overflow-wrap: anywhere; }
code, .date, .log, time { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .87rem; }
h1 code { color: var(--muted); font-size: .58em; }
.ssh-public { overflow-wrap: anywhere; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .93rem; }
th, td { padding: .85rem 1.05rem; border-bottom: 1px solid var(--line); }
th { font-size: .8rem; font-weight: 650; color: #4f5c56; background: #f0f3ef; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbf9; }
.status { display: inline-flex; align-items: center; gap: .38rem; white-space: nowrap; padding: .21rem .59rem; border-radius: 2rem; font-size: .8rem; font-weight: 600; color: #4d5d57; background: #eaf0ec; }
.status::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.success { background: #dff2e6; color: #226043; }
.failed { background: #fae6e3; color: #983e31; }
[role=alert] { color: #983e31; }
.activating, .building, .running, .partial, .unconfirmed { background: #fff0cf; color: #78530e; }
.log { background: #202d2e; color: #f1f4ef; list-style: none; padding: .8rem 1.2rem; border-radius: .75rem; }
.log li { display: flex; gap: 1rem; margin: .4rem 0; overflow-wrap: anywhere; }
.log time { color: #a7c4b6; flex: none; }

.quota-summary { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.quota-summary section { padding: 1rem 1.2rem; }
.quota-summary strong { font-size: 1.9rem; color: var(--ink); line-height: 1.15; letter-spacing: -.04em; }
.pool-search { margin: 1.25rem 0 1rem; }
.pool-search label { width: min(100%, 20rem); }
.pool-table small { display: block; }
summary { cursor: pointer; color: var(--link); font-weight: 600; }
details[open] > summary { margin-bottom: 1rem; }
.run-tabs, .pages { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1rem 0; }
.run-tabs { border-bottom: 1px solid var(--line); }
.run-tabs a, .pages a { padding: .65rem .1rem; color: var(--muted); font-size: .92rem; text-decoration: none; }
.run-tabs a:hover, .pages a:hover { color: var(--ink); text-decoration: underline; }
.run-tabs a[aria-current] { color: var(--ink); font-weight: 650; box-shadow: inset 0 -3px #467760; }
.quota-summary h2 { color: var(--muted); font-size: .94rem; }
.quota-summary p { margin: .35rem 0; }

.public .bar { padding: 1.1rem clamp(1rem, 3.6vw, 4rem); }
.public .brand { padding: 0; }
.public.login-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.login-page main {
  display: grid; place-items: center; flex: 1; max-width: none; padding: 2rem 1rem;
  background-image: radial-gradient(#d4dbd1 1px, transparent 1px); background-size: 16px 16px;
}
.login-card { width: min(100%, 24rem); overflow: hidden; border: 1px solid #d2dad1; border-radius: 1rem; background: white; box-shadow: 0 12px 40px #15271d12; }
.pixel-sky {
  height: 9rem; position: relative; overflow: hidden; display: grid; place-items: center; background-color: #233032;
  background-image: linear-gradient(#ffffff0c 1px, transparent 1px), linear-gradient(90deg, #ffffff0c 1px, transparent 1px);
  background-size: 16px 16px;
}
.pixel-sky i {
  width: 5rem; height: 5rem;
  background: linear-gradient(to bottom, #ffe2a1 0 30%, #ffca69 30% 55%, #efab4a 55% 75%, #cc873c 75%);
  clip-path: polygon(30% 0,70% 0,70% 10%,85% 10%,85% 20%,95% 20%,95% 35%,100% 35%,100% 65%,95% 65%,95% 80%,85% 80%,85% 90%,70% 90%,70% 100%,30% 100%,30% 90%,15% 90%,15% 80%,5% 80%,5% 65%,0 65%,0 35%,5% 35%,5% 20%,15% 20%,15% 10%,30% 10%);
}
.pixel-sky::after { content: ""; position: absolute; bottom: 1rem; left: 12%; width: .25rem; height: .25rem; background: #789387; box-shadow: 1.5rem -4rem #b6c2a2, 4.25rem -5.5rem #939f87, 14rem -3rem #caaf76, 16rem -1rem #939f87; }
.login-content { padding: 1.9rem; }
.login-content h1 { font-size: 2.15rem; margin-bottom: 1.4rem; }
.login-content .button { width: 100%; justify-content: space-between; }

@media (max-width: 52rem) {
  body.workspace { display: block; }
  .workspace .bar { position: static; height: auto; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .8rem; padding: .75rem 1rem 0; }
  .brand { padding: 0; }
  .signout { grid-column: 2; grid-row: 1; margin: 0; border: 0; padding: 0; max-width: 48vw; }
  .primary-nav { grid-column: 1/-1; grid-row: 2; display: flex; gap: .25rem; overflow-x: auto; }
  .primary-nav a { flex: none; gap: .45rem; padding: .65rem .7rem; border-radius: .4rem .4rem 0 0; }
  .primary-nav a[aria-current] { box-shadow: inset 0 -3px var(--gold); }
}
@media (max-width: 38rem) {
  .primary-nav .nav-icon { display: none; }
  .primary-nav a { padding-inline: .5rem; font-size: .86rem; }
  .grid { grid-template-columns: 1fr; }
  .heading { align-items: flex-start; }
  .invite-fields { width: 100%; }
  .actions { gap: .5rem; }
  dl { grid-template-columns: 1fr; gap: .15rem; }
  dd + dt { margin-top: .6rem; }
  th, td { padding: .7rem .8rem; }
  .users-table, .users-table tbody { display: block; }
  .users-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .users-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .4rem .65rem; padding: .9rem; }
  .users-table tbody tr + tr { border-top: 1px solid var(--line); }
  .users-table td { grid-column: 1; padding: 0; border: 0; }
  .users-table td:nth-child(3) { grid-column: 2; grid-row: 1/3; }
  .users-table td:empty { display: none; }
  .users-table .person { overflow-wrap: anywhere; }
}

/* Work areas */
.workspace { background: #f3f5f2; }
.workspace main { --pad: clamp(1rem, 2vw, 1.6rem); padding-top: clamp(1.35rem, 3vw, 3.2rem); }
.surface, .terminal { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 2px 6px #1f3c3105; }
.surface + .surface, .settings-group, .terminal, .inventory { margin-top: 1.25rem; }
.surface-head { padding: 1rem var(--pad); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; border-bottom: 1px solid var(--line); }
.surface-head h2, .terminal h2 { margin: 0; font-size: 1.12rem; }
.surface-head a, .empty-state a, .back-link { font-size: .9rem; font-weight: 600; text-decoration: none; }
.surface-head a:hover, .empty-state a:hover, .back-link:hover { text-decoration: underline; }
.surface .scroll { border: none; border-radius: 0 0 1rem 1rem; }
.surface .empty { border: 0; margin: 0; background: transparent; }
.page-head, .page-identity, .back-link { display: flex; align-items: center; gap: 1rem; }
.back-link { width: fit-content; margin: 0 0 .9rem; gap: .45rem; }
.page-head { flex-wrap: wrap; justify-content: space-between; margin-bottom: 1.7rem; }
.page-identity { min-width: 0; }
.page-identity > div { min-width: 0; }
.page-identity h1 { margin: 0; font-size: clamp(1.85rem, 3.2vw, 3rem); }
.page-identity p { margin: .28rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.symbol { width: 2.75rem; height: 2.75rem; flex: none; display: inline-grid; place-items: center; border: 1px solid #ead5a7; background: #fff0ce; color: #875710; border-radius: .8rem; }
.symbol-database, .symbol-users { background: #eeeaf9; border-color: #dfd6ee; color: #6d548b; }
.symbol-pods, .symbol-runs { background: #e0eee8; border-color: #d1e0d9; color: #29644e; }
.icon-app::before { inset: .1rem 0; border: 1.6px solid; border-radius: .16rem; background: linear-gradient(currentColor,currentColor) 0 .22rem / 100% 1px no-repeat; }
.icon-database::before { inset: .1rem .06rem .02rem; border: 1.6px solid; border-radius: 50% / 18%; }
.icon-database::after { inset: .1rem .06rem auto; height: .26rem; border: 1.5px solid; border-radius: 50%; }
.catalog-hero {
  position: relative; isolation: isolate; overflow: hidden; margin-bottom: 1.4rem; padding: clamp(1.35rem, 3vw, 2.6rem);
  color: #f7f8f1; border-radius: 1.1rem; background: linear-gradient(110deg, #1d3736, #244842 62%, #385b46);
}
.catalog-hero > div:first-child { position: relative; z-index: 1; width: fit-content; }
.catalog-hero h1 { margin-bottom: 1.05rem; font-size: clamp(2.2rem, 4vw, 3.65rem); }
.catalog-hero::before { content: ""; position: absolute; inset: 0 0 0 40%; background-image: radial-gradient(#d5eac036 1px,transparent 1px); background-size: 12px 12px; mask-image: linear-gradient(90deg, transparent, black 28%); }
.ghost { background: #25403d; border-color: #718a78; color: #f0f5e8; }
.ghost:hover { background: #324e47; }
.rack-art { position: absolute; right: clamp(3rem, 8vw, 8rem); top: 50%; width: 8rem; height: 6.4rem; transform: translateY(-50%) skewY(-9deg); }
.rack-art i { display: block; position: relative; width: 100%; height: 1.65rem; margin-bottom: .55rem; background: linear-gradient(105deg,#7b9a78,#98b18a); border: 1px solid #a7bb97; border-right: .55rem solid #5b7d65; border-bottom: .3rem solid #557362; border-radius: .18rem; }
.rack-art i:first-child { background: #ffd38a; border-color: #ffe2ab #c39a56 #b48c4c #ffe2ab; }
.rack-art i::before { content: ""; position: absolute; inset: .42rem auto auto .5rem; width: .28rem; height: .28rem; background: #335943; box-shadow: .54rem 0 #335943; }
.rack-art i::after { content: ""; position: absolute; inset: .42rem .5rem auto auto; height: .25rem; width: 2rem; background: repeating-linear-gradient(90deg,#43644d 0 2px,transparent 2px 5px); }

.catalog form { padding: var(--pad) var(--pad) 0; }
.search-line { display: flex; align-items: center; gap: .6rem; }
.search-box { flex: 1; min-width: 0; position: relative; }
.search-box::before { content: ""; position: absolute; left: .9rem; top: calc(50% - .48rem); width: .62rem; height: .62rem; border: 1.6px solid #68766f; border-radius: 50%; pointer-events: none; }
.search-box::after { content: ""; position: absolute; left: 1.55rem; top: calc(50% + .22rem); width: .36rem; height: 1.6px; background: #68766f; transform: rotate(45deg); pointer-events: none; }
.search-box input[type=search] { margin: 0; padding-left: 2.45rem; min-height: 2.7rem; background: #f7f9f6; }
.filter-strip { border: 0; display: flex; gap: .35rem; flex-wrap: wrap; margin: 1.1rem 0 .8rem; padding: 0; }
.filter-strip label { position: relative; }
.filter-strip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filter-strip span { display: inline-flex; gap: .4rem; padding: .4rem .65rem; align-items: center; border: 1px solid transparent; border-radius: .45rem; cursor: pointer; color: var(--muted); font-size: .86rem; }
.filter-strip span:hover { background: #f1f4ef; }
.filter-strip b { color: #47594f; font-size: .72rem; }
.filter-strip :checked + span { color: #254f41; background: #e7f0e9; border-color: #ccded0; }
.filter-strip :focus-visible + span { outline: 3px solid #b56d18; outline-offset: 2px; }
.result-summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .45rem var(--pad) .8rem; color: var(--muted); font-size: .87rem; }
.catalog-list, .activity-list, .target-list { list-style: none; margin: 0; padding: 0; }
.project-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(4rem, .28fr) 5rem auto; align-items: center; gap: 1rem; padding: .88rem var(--pad); text-decoration: none; color: var(--ink); border-top: 1px solid #e1e7df; }
.project-entry:hover, .project-entry:focus-visible { background: #f1f6f0; }
.catalog-list li:last-child a { border-radius: 0 0 1rem 1rem; }
.project-entry:focus-visible { outline-offset: -3px; }
.entry-name, .event-name { min-width: 0; display: grid; }
.entry-name strong { font-size: 1.05rem; }
.entry-name strong, .entry-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-meta { overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: .8rem; color: var(--muted); }
.entry-pods { font-size: .81rem; color: var(--muted); }
.entry-pods b { color: var(--ink); }
.entry-open { color: #61766a; font-size: 1.15rem; }
.empty-state { display: flex; align-items: center; gap: 1rem; padding: clamp(1.25rem, 3vw, 2.35rem) var(--pad); }
.empty-state h3 { margin: 0; font-size: 1.05rem; }
.empty-state p { margin: .2rem 0; color: var(--muted); font-size: .91rem; }
.empty-state a { display: inline-block; margin-top: .45rem; }
.catalog .empty-state { border-top: 1px solid var(--line); background: linear-gradient(120deg,#fcfdf9,#f7f9f4); border-radius: 0 0 1rem 1rem; }
.activity-list li { display: grid; grid-template-columns: auto minmax(0,1fr) auto 10.6rem; gap: .8rem; align-items: center; padding: .76rem var(--pad); }
.activity-list li + li { border-top: 1px solid #e2e7e1; }
.event-dot { width: .6rem; height: .6rem; border-radius: 50%; border: 2px solid currentColor; color: #727e76; }
.event-dot.success { color: #377655; }.event-dot.failed { color: #a44838; }.event-dot.running, .event-dot.building, .event-dot.activating, .event-dot.partial { color: #9c6515; }
.event-name > a { font-size: .95rem; font-weight: 650; color: var(--ink); text-decoration: none; width: fit-content; }
.event-name a:hover { text-decoration: underline; }
.event-name small { overflow-wrap: anywhere; }
.event-name small:empty { display: none; }
.event-time { color: var(--muted); font-size: .78rem; text-align: right; font-variant-numeric: tabular-nums; }
.project-workspace, .directory { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(15rem,1fr); gap: 1.15rem; align-items: start; }
.stack { min-width: 0; }
.project-workspace .activity-list li { grid-template-columns: auto minmax(0,1fr) auto; }
.project-workspace .event-time { grid-column: 2/-1; text-align: left; margin-top: -.6rem; }
.fact-list { display: block; padding: .2rem var(--pad) 1.35rem; margin: 0; }
.fact-list dt { margin: .95rem 0 .12rem; font-size: .8rem; }
.fact-list dd { font-size: .94rem; }
.surface-head > code { border-radius: .35rem; background: #ecf1ed; color: #405748; padding: .12rem .45rem; overflow-wrap: anywhere; }
.target-list { counter-reset: pod; padding: .3rem var(--pad); }
.target-list li { counter-increment: pod; position: relative; display: flex; align-items: center; padding: .68rem 0; gap: .8rem; }
.target-list li::before { content: counter(pod); flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 1px solid #b8cebc; border-radius: .52rem; background: #edf4ed; color: #355b44; font: 600 .8rem ui-monospace,monospace; }
.target-list li:not(:last-child)::after { content: ""; position: absolute; top: calc(50% + .85rem); left: .85rem; height: calc(100% - 1.7rem); border-left: 1px dashed #b1c6b5; }
.target-list small { display: block; }
.deploy-bar { display: flex; align-items: end; flex-wrap: wrap; gap: .7rem; border-top: 1px solid var(--line); background: #f9faf6; padding: 1rem var(--pad); border-radius: 0 0 1rem 1rem; }
.deploy-bar label { flex: 1 1 12rem; }
.settings-group > h2 { margin: 1.55rem 0 .7rem; }
.fold { margin: .65rem 0; padding: .85rem var(--pad); }
.fold > summary { font-size: 1rem; color: var(--ink); }
.fold summary .counter { margin-left: .35rem; }
.fold.danger > summary { color: #993e32; }
.quota-summary section { position: relative; overflow: hidden; padding: 1rem 1.2rem 1.1rem; border-top: 3px solid #c9d7cd; }
.quota-summary { gap: .7rem; }
.quota-summary section:nth-child(2) { border-top-color: #439174; }
.quota-summary section:nth-child(3) { border-top-color: #d8a84c; }
.quota-summary .metric-value { margin: .55rem 0; font-size: .85rem; color: var(--muted); }
.inventory .pool-search { padding: var(--pad); margin: 0; }
.directory .surface { margin: 0; }
.surface.invite { display: block; }
.invite-fields { padding: var(--pad); }
.directory .invite-fields { display: grid; }
.directory .invite-fields button { justify-self: start; }
.inbox .run-tabs { padding: .25rem var(--pad) 0; margin: 0; }
.pages { padding: 0 var(--pad); }
.run-tabs a[aria-current] { color: #254f41; box-shadow: inset 0 -3px #438266; }
.jump-links { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.2rem; }
.jump-links a { background: white; border: 1px solid var(--line); border-radius: 2rem; padding: .36rem .8rem; text-decoration: none; font-size: .85rem; }
.jump-links a:hover { border-color: #779783; }
.terminal { overflow: hidden; background: #192c2a; border-color: #233b36; }
.terminal header { display: flex; justify-content: space-between; align-items: center; padding: .85rem var(--pad); border-bottom: 1px solid #52625a; color: #eff5eb; background: #2d423b; }
.terminal header small { color: #c2d2c7; }
.terminal .log { background: transparent; margin: 0; min-height: 3rem; }
.form-sheet { max-width: 56rem; }
.sheet-body { padding: var(--pad); }
.sheet-body + .surface-head, .group-title { border-top: 1px solid var(--line); }
.group-title { padding-top: 1rem; }
.form-sheet.grid h2 { margin-bottom: 0; }
.panel pre, .ssh-public { white-space: pre-wrap; overflow-wrap: anywhere; background: #eff4ef; border-radius: .5rem; padding: .8rem; }
.panel :where(p, td) code { overflow-wrap: anywhere; }
.panel form:not(.grid,.row) > button { margin-top: .75rem; }
[hidden] { display: none !important; }

@media (max-width: 70rem) {
  .directory { grid-template-columns: 1fr; }
  .directory .invite { grid-row: 1; }
  .directory .invite-fields { display: flex; }
  .directory .invite-fields label { flex: 1; }
  .project-workspace { grid-template-columns: minmax(0, 1.55fr) minmax(12rem, 1fr); }
}
@media (max-width: 48rem) {
  .project-workspace { grid-template-columns: 1fr; }
  .rack-art { right: 1.8rem; transform: translateY(-50%) scale(.78) skewY(-9deg); transform-origin: right; }
  .entry-meta { display: none; }
  .project-entry { grid-template-columns: auto minmax(0,1fr) auto auto; gap: .7rem; }
  .page-identity p { font-size: .86rem; }
}
@media (max-width: 35rem) {
  .primary-nav { gap: 0; }
  .primary-nav a { padding-inline: .38rem; font-size: .81rem; }
  .catalog-hero { padding: 1.25rem; }
  .catalog-hero .actions { gap: .45rem; }
  .catalog-hero .button { min-height: 2.5rem; font-size: .84rem; padding: .5rem .65rem; }
  .rack-art { top: .5rem; right: .8rem; transform: scale(.42) skewY(-9deg); transform-origin: top right; }
  .catalog-hero h1 { padding-right: 3.7rem; }
  .search-line { gap: .4rem; }
  .filter-strip { gap: .05rem; }
  .filter-strip span { padding: .35rem .45rem; font-size: .78rem; }
  .project-entry { grid-template-columns: auto minmax(0,1fr) auto; }
  .entry-open { display: none; }
  .entry-pods { font-size: .75rem; }
  .activity-list li { grid-template-columns: auto minmax(0,1fr) auto; gap: .5rem; }
  .event-time { grid-column: 2/-1; text-align: left; margin-top: -.35rem; }
  .quota-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quota-summary section:first-child { grid-column: 1/-1; }
  .page-head { gap: .8rem; margin-bottom: 1rem; }
  .empty-state { align-items: flex-start; }
}
.run-facts > dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,11rem), 1fr)); gap: 1.2rem; }
.run-facts dt { font-size: .8rem; } .run-facts dd { font-size: .95rem; font-variant-numeric: tabular-nums; }
.run-facts dl:last-child { margin: 0; }
.event-name a code { font-size: .73rem; color: var(--muted); font-weight: 450; }
.step-list li > .status { margin-left: auto; white-space: normal; }
.credential { overflow-wrap: anywhere; }
.pod-inventory { container: pod-inventory / inline-size; }
@container pod-inventory (max-width: 52rem) {
  :is(.pool-table, .quota-table), :is(.pool-table, .quota-table) tbody { display: block; }
  :is(.pool-table, .quota-table) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  :is(.pool-table, .quota-table) tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; padding: 1rem; }
  :is(.pool-table, .quota-table) tbody tr + tr { border-top: 1px solid var(--line); }
  :is(.pool-table, .quota-table) td { min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  :is(.pool-table, .quota-table) td:first-child, :is(.pool-table, .quota-table) td:last-child:not([data-label]) { grid-column: 1/-1; }
  :is(.pool-table, .quota-table) td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .75rem; }
}
.cluster-nodes > .surface-head { background: #e6efe8; border-radius: 1rem 1rem 0 0; }
.cluster-count { font-size: .9rem; color: #355b46; }
.cluster-count strong { margin-left: .25rem; }
.cluster-body { padding: var(--pad); }
.cluster-body > :last-child { margin-bottom: 0; }
.cluster-body > form, .cluster-body > .scroll + p { margin-top: 1rem; }
.cluster-body code { overflow-wrap: anywhere; }
.cluster-body .scroll { border: 1px solid var(--line); border-radius: .55rem; }

.pool-toolbar { display:flex; gap:.65rem; flex-wrap:wrap; margin:0 0 1rem; align-items:center; }
.pool-toolbar .search-box { flex:1 1 14rem; max-width:32rem; }
.pool-toolbar input, .pool-toolbar select { width:100%; margin:0; min-height:2.7rem; }
.quota-pools { margin-bottom:1.4rem; }
.quota-pools .surface-head small, .pool-meter span, .pool-name small { color:var(--muted); }
.pool-row { display:grid; grid-template-columns:minmax(8rem, 1fr) minmax(0,3.6fr); gap:1.4rem; align-items:center; padding:1rem var(--pad); }
.pool-row + .pool-row { border-top:1px solid var(--line); }
.pool-name { overflow-wrap:anywhere; }
.pool-name small { display:block; font-size:.76rem; }
.pool-meters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1.1rem; }
.pool-meter > div { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:0 .25rem; font-size:.82rem; }
.pool-meter small { color:var(--ink); font-size:.8rem; font-variant-numeric:tabular-nums; }
.pool-meter progress { display:block; appearance:none; width:100%; height:.36rem; border:0; border-radius:1rem; margin-top:.4rem; overflow:hidden; background:#e3ebe5; color:#367052; }
.pool-meter progress::-webkit-progress-bar { background:#e3ebe5; }
.pool-meter progress::-webkit-progress-value { background:#367052; border-radius:1rem; }
.pool-meter progress::-moz-progress-bar { background:#367052; border-radius:1rem; }
.pod-toggle { white-space: nowrap; }
.pod-toggle::after {
  content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.12rem) rotate(45deg);
}
.pod-toggle[aria-expanded=true] { background: #e5f0e8; border-color: #a5c3b0; color: #24533e; }
.pod-toggle[aria-expanded=true]::after { transform: translateY(.12rem) rotate(225deg); }
.quota-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.pod-inventory .pod-actions-row { padding: 0; }
.pod-inventory .pod-actions-row > td { padding: 0; background: #f2f6f2; }
.pod-actions {
  container-type: inline-size; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem 2rem; padding: 1.1rem var(--pad) 1.3rem; border-inline-start: 3px solid #77a38b;
}
.pod-actions section { min-width: 0; }
.pod-actions h3 { font-size: .95rem; margin: 0 0 .65rem; }
.pod-transfer { display: flex; align-items: end; flex-wrap: wrap; gap: .55rem; max-width: 40rem; }
.pod-transfer label { min-width: 0; flex: 1 1 12rem; }
.pod-transfer small { flex-basis: 100%; max-width: 60ch; }
.pod-repair { margin-top: .85rem; }
.pod-repair summary { width: fit-content; }
.pod-repair form > button { margin-top: .85rem; }
@container pod-inventory (max-width: 42rem) {
  .pod-actions { grid-template-columns: minmax(0, 1fr); }
  .pod-actions section + section { border-top: 1px solid var(--line); padding-top: 1rem; }
}
#pod-import { width:min(28rem,calc(100% - 2rem)); max-height:90dvh; border:1px solid var(--line); border-radius:1rem; padding:1.4rem; color:var(--ink); background:#fff; box-shadow:0 18px 80px #15251f38; }
#pod-import::backdrop { background:#14251e70; }
#pod-import header { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1rem; }
#pod-import h2 { margin:0; }
#pod-import [data-close] { background:transparent; border-color:transparent; font-size:1.5rem; line-height:1; padding:.3rem .55rem; }
.import-sheet { max-width:28rem; padding:var(--pad); }
.pod-fields { display:grid; gap:1rem; }
.pod-fields p { margin:0; }
.import-actions { display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin-top:.4rem; }
.import-actions a { font-size:.85rem; }
.ssh-fingerprint { overflow-wrap:anywhere; background:#eef4ee; border-radius:.5rem; padding:.6rem; }
.confirm-key { display:flex; flex-direction:row; align-items:center; gap:.55rem; }
.confirm-key input { width:1rem; margin:0; }
[data-import-status]:empty { display:none; }
@media (max-width:62rem) {
  .pool-row { grid-template-columns:1fr; gap:.65rem; }
}
@media (max-width:40rem) {
  .pool-meters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem 1rem; }
}
