:root {
  color-scheme: light;
  --canvas: #f5f6f7;
  --nav: #ffffff;
  --surface: #ffffff;
  --raised: #f0f2f4;
  --hover: #f0f2f4;
  --sunken: #eceef0;
  --field: #ffffff;
  --ink: #15181c;
  --muted: #59606a;
  --line: #dde0e4;
  --line-strong: #c4c9cf;
  --accent: #0f6b56;
  --accent-hover: #0b5644;
  --accent-soft: #e3f0eb;
  --on-accent: #ffffff;
  --ok: #1a7f37;
  --ok-soft: #e6f4ea;
  --ok-line: #b5dcc0;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --danger-line: #f1c0bb;
  --term: #16191d;
  --term-bar: #1e2226;
  --term-line: #2c3136;
  --term-ink: #d9dde1;
  --term-muted: #8b939c;
  --shadow: 0 1px 2px #0000000d;
  --radius: 8px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.55;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #111315;
  --nav: #15181b;
  --surface: #181b1e;
  --raised: #1f2326;
  --hover: #1f2326;
  --sunken: #0d0f11;
  --field: #0f1113;
  --ink: #e6e8ea;
  --muted: #9ba2aa;
  --line: #2a2f34;
  --line-strong: #3b4248;
  --accent: #4fc19c;
  --accent-hover: #6ccfae;
  --accent-soft: #16302a;
  --on-accent: #0a1512;
  --ok: #57c27a;
  --ok-soft: #15291c;
  --ok-line: #2a5236;
  --danger: #f2837d;
  --danger-soft: #2d1a1a;
  --danger-line: #5a2e2c;
  --term: #0b0d0f;
  --term-bar: #15181b;
  --term-line: #2a2f34;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 8px;
}
h2 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  color: var(--muted);
}
small {
  display: block;
  font-size: 0.79rem;
  color: var(--muted);
}
.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;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  padding: 10px;
  background: var(--surface);
  z-index: 99;
}
.skip-link:focus {
  top: 10px;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  background: var(--ink);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 19px;
  height: 19px;
  fill: var(--canvas);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 0;
  background: var(--nav);
  border-right: 1px solid var(--line);
  z-index: 5;
}
.workspace-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin: 28px 10px 8px;
}
.sidebar nav {
  display: grid;
  gap: 2px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.sidebar nav a .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.sidebar nav a:hover {
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.sidebar nav a[aria-current] {
  background: var(--hover);
  color: var(--ink);
  font-weight: 600;
}
.sidebar nav a[aria-current] .icon {
  color: var(--accent);
}
.account {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 14px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}
.avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}
.account strong {
  display: block;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.account small {
  font-size: 0.7rem;
  margin-top: 2px;
  color: var(--muted);
}
.account form {
  margin-left: auto;
}
.signout {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 7px;
}
.signout:hover {
  color: var(--ink);
  background: var(--raised);
}
.workspace main {
  margin-left: 232px;
}
.topbar {
  height: 56px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--nav);
}
.topbar-title {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
}
.content {
  padding: 32px 40px 48px;
  max-width: 1320px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.page-heading p {
  margin-bottom: 0;
  max-width: 70ch;
  font-size: 0.9rem;
}
.breadcrumb {
  font-size: 0.8rem !important;
  color: var(--muted);
  margin-bottom: 8px !important;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 15px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 0.87rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  text-decoration: none;
}
.button .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}
.button.secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.button.secondary:hover {
  background: var(--hover);
  border-color: var(--muted);
}
.button.danger {
  background: var(--surface);
  border-color: var(--danger-line);
  color: var(--danger);
}
.button.danger:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
}
.button.small {
  padding: 5px 11px;
  font-size: 0.8rem;
  min-height: 32px;
}
.button.full {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
}
.text-link {
  font-size: 0.86rem;
  font-weight: 500;
}
.back-link {
  display: inline-block;
  font-size: 0.83rem;
  margin-bottom: 20px;
}
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.padded {
  padding: 24px;
}
.surface p {
  max-width: 85ch;
}
.surface form .field,
.panel form .field {
  max-width: 560px;
}
.summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  overflow: hidden;
}
.summary-bar > div {
  padding: 22px 25px;
  border-right: 1px solid var(--line);
  position: relative;
}
.summary-bar > div:last-child {
  border: 0;
}
.summary-bar > div > .icon {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--muted);
  width: 18px;
  height: 18px;
}
.summary-bar > div > span {
  color: var(--muted);
  font-size: 0.8rem;
  display: block;
  padding-right: 23px;
}
.summary-bar strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 14px;
  font-variant-numeric: tabular-nums;
}
.summary-bar small {
  display: inline;
  font-size: 0.76rem;
  margin-left: 7px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.section-heading h2 {
  margin: 0;
}
.muted {
  color: var(--muted);
  font-size: 0.82rem;
}
.table-scroll {
  position: relative;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}
th {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--raised);
  padding: 10px 20px;
  white-space: nowrap;
}
td {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
td small {
  margin-top: 5px;
}
tbody tr:hover {
  background: var(--hover);
}
td > a {
  white-space: nowrap;
}
.service-name {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 170px;
}
.service-name a {
  color: var(--ink);
  font-weight: 600;
}
.service-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--raised);
  border: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
}
.mono {
  font-family: var(--mono);
  font-size: 0.82rem;
}
.wrap {
  overflow-wrap: anywhere;
}
.empty-state {
  padding: 44px 24px;
  text-align: center;
}
.empty-state h2,
.empty-state h3 {
  margin-bottom: 12px;
}
.empty-state p {
  max-width: 52ch;
  margin: 0 auto 22px;
  font-size: 0.88rem;
}
.empty-illustration {
  width: 90px;
  height: 72px;
  position: relative;
  margin: 0 auto 23px;
  transform: rotate(-6deg);
}
.empty-illustration div {
  width: 70px;
  height: 19px;
  background: var(--hover);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  position: absolute;
  left: 10px;
  box-shadow: none;
}
.empty-illustration div:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.empty-illustration div:after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 24px;
  border-top: 2px solid var(--line-strong);
}
.empty-illustration div:nth-child(1) {
  top: 0;
}
.empty-illustration div:nth-child(2) {
  top: 24px;
}
.empty-illustration div:nth-child(3) {
  top: 48px;
}
.empty-person {
  font-size: 3rem;
  display: block;
  color: var(--accent);
  margin-bottom: 16px;
}
.hosting-empty {
  display: block;
  padding: 40px 32px;
  text-align: left;
}
.empty-copy {
  max-width: 60ch;
}
.empty-copy h3 {
  font-size: 1.5rem;
}
.empty-copy p {
  margin-left: 0;
}
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 28px;
}
.event {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.event:first-of-type {
  border-top: 0;
}
.event p {
  color: var(--ink);
  font-size: 0.86rem;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}
.event small {
  font-size: 0.73rem;
}
.event-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  margin-top: 8px;
  flex-shrink: 0;
}
.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.pill.running {
  background: var(--ok-soft);
  border-color: var(--ok-line);
  color: var(--ok);
}
.pill.unavailable,
.pill.failed {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  color: var(--danger);
}
.notice {
  padding: 11px 14px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  margin-bottom: 20px;
  font-size: 0.87rem;
  overflow-wrap: anywhere;
}
.notice.success {
  background: var(--ok-soft);
  border-color: var(--ok-line);
  border-left-color: var(--ok);
  color: var(--ink);
}
.notice.error {
  background: var(--danger-soft);
  border-color: var(--danger-line);
  border-left-color: var(--danger);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(220px, 1fr);
  gap: 44px;
  align-items: start;
}
.form-surface {
  padding: 30px;
}
.inventory-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
}
.inventory-filters .field {
  flex: 1 1 200px;
  min-width: 0;
  margin-bottom: 0;
}
.inventory-filters .inventory-search {
  flex-basis: 280px;
}
.inventory-filters > .text-link {
  padding-block: 12px;
}
.field {
  margin-bottom: 23px;
}
.field > label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input:not([type="checkbox"]),
.field select {
  width: 100%;
  display: block;
  min-height: 40px;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 11px;
}
.field input:not([type="checkbox"]):focus,
.field select:focus {
  border-color: var(--accent);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
}
.helptext {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 8px;
}
.helptext ul {
  padding-left: 18px;
  margin: 0;
}
.errorlist {
  list-style: none;
  padding: 8px 12px;
  border: 1px solid var(--danger-line);
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 6px;
  font-size: 0.82rem;
  margin: 8px 0 15px;
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.checkbox-field input {
  margin-top: 5px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.checkbox-field label {
  flex: 1;
  line-height: 1.6;
}
.checkbox-field .errorlist {
  flex-basis: 100%;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.form-aside {
  padding: 20px 0;
  max-width: 320px;
}
.form-aside h2 {
  font-size: 1.4rem;
}
.form-aside p,
.form-aside dd {
  font-size: 0.85rem;
}
.form-aside dl {
  margin-top: 28px;
}
dt {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 20px;
}
dd {
  margin: 5px 0 0;
}
.form-aside dt {
  color: var(--ink);
  font-weight: 550;
}
.form-aside dd {
  color: var(--muted);
}
.node-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  margin-bottom: 12px;
}
.node-symbol {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--raised);
  color: var(--muted);
}
.node-symbol .icon {
  width: 22px;
  height: 22px;
}
.node-description {
  flex: 1;
}
.node-description h2 {
  margin-bottom: 5px;
}
.node-description p {
  font-size: 0.85rem;
  margin-bottom: 3px;
}
.node-description small {
  overflow-wrap: anywhere;
}
.node-capacity {
  font-size: 0.87rem;
  min-width: 200px;
}
.node-capacity strong {
  font-weight: 500;
}
.node-capacity small {
  margin-top: 7px;
}
.node-meter {
  display: block;
  width: 100%;
  height: 6px;
  margin: 10px 0 12px;
  background: var(--raised);
  border: 0;
  border-radius: 3px;
  overflow: hidden;
}
.node-meter::-webkit-meter-bar {
  background: var(--raised);
  border: 0;
  height: 6px;
}
.node-meter::-webkit-meter-optimum-value {
  background: var(--accent);
}
.node-meter::-moz-meter-bar {
  background: var(--accent);
}
.footnote {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 18px 0 0;
  line-height: 1.7;
  max-width: 80ch;
}
.server-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  margin-bottom: 30px;
}
.console-area {
  min-width: 0;
}
.console-toolbar {
  padding: 12px 16px;
  border: 1px solid var(--term-line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--term-bar);
  color: var(--term-ink);
}
.console-toolbar h2 {
  font-size: 0.88rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.console-toolbar h2 .icon {
  color: var(--term-muted);
  width: 17px;
  height: 17px;
}
.console-toolbar label {
  font-size: 0.78rem;
  color: var(--term-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.console-toolbar input {
  accent-color: var(--accent);
}
.console-output {
  height: 410px;
  min-height: 350px;
  margin: 0;
  padding: 21px;
  border-inline: 1px solid var(--term-line);
  background: var(--term);
  color: var(--term-ink);
  font:
    0.8rem/1.75 var(--mono);
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.console-area .notice {
  margin: 0;
  border-radius: 0;
}
.command-form {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  background: var(--term-bar);
  border: 1px solid var(--term-line);
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--term-muted);
}
.command-form input[name="command"] {
  min-width: 0;
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--term-ink);
  padding: 7px;
  font: 0.82rem var(--mono);
}
.command-form input::placeholder {
  color: var(--term-muted);
}
.service-controls h2 {
  font-size: 1rem;
}
.power-buttons {
  display: flex;
  gap: 7px;
  margin: 16px 0 24px;
}
.power-buttons .button {
  padding: 8px 11px;
  font-size: 0.8rem;
  min-height: 37px;
}
.service-controls dl {
  margin: 0;
}
.service-controls dd {
  font-size: 0.88rem;
}
.service-controls .padded {
  padding: 22px;
}
.provision-retry {
  padding: 18px 8px;
}
.provision-retry p {
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.provision-retry small {
  font-size: 0.74rem;
  margin-top: 10px;
}
.job-result {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 430px;
  font-size: 0.8rem;
}

/* Public pages: landing and sign-in. */
.public {
  min-height: 100vh;
  background: var(--canvas);
}
.public-header {
  max-width: 1160px;
  padding: 20px 32px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.public-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.public .content {
  max-width: 1160px;
  padding: 24px 32px 48px;
}
.hero {
  max-width: 60ch;
  padding: 64px 0;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.05rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
.login-card {
  max-width: 400px;
  margin: 40px auto 64px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.login-card h1,
.login-card h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.login-card > p {
  font-size: 0.88rem;
  margin-bottom: 24px;
}
.login-help {
  padding-top: 18px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.login-help p {
  font-size: 0.82rem;
  line-height: 1.8;
  margin: 0;
}

/* Theme switch, shared by the topbar and the public header. */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
.theme-sun,
[data-theme="dark"] .theme-moon {
  display: none;
}
[data-theme="dark"] .theme-sun {
  display: inline;
}

/* Owner pages that use page-header/panel markup share the workspace look. */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.page-header p {
  margin-bottom: 0;
  max-width: 75ch;
  font-size: 0.9rem;
}
.eyebrow {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.panel button:not(.button) {
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.87rem;
  font-weight: 600;
}
.panel button:not(.button):disabled {
  cursor: not-allowed;
}
.panel input:not([type="checkbox"]):not([type="hidden"]) {
  min-height: 40px;
  max-width: 420px;
  width: 100%;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 11px;
}
.content > .surface + .surface,
.content > .surface + details,
.content > details + .surface {
  margin-top: 24px;
}
details.surface > summary {
  cursor: pointer;
  font-weight: 600;
}
.field-error {
  color: var(--danger);
  font-size: 0.82rem;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
}

/* Compact layouts keep the same hosting identity and real controls. */
@media (min-width: 1600px) {
  .content {
    padding-top: 44px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 215px;
    padding-inline: 16px;
  }
  .workspace main {
    margin-left: 215px;
  }
  .content {
    padding: 30px;
  }
  .topbar {
    padding-inline: 30px;
  }
  .summary-bar > div {
    padding: 20px;
  }
  .summary-bar > div > .icon {
    right: 17px;
  }
  .summary-bar strong {
    font-size: 1.85rem;
  }
  .summary-bar small {
    display: block;
    margin: 3px 0 0;
  }
  .node-row {
    flex-wrap: wrap;
  }
  .node-description {
    min-width: 160px;
  }
  .form-layout {
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .server-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
  }
  .power-buttons {
    flex-wrap: wrap;
  }
  .public-header {
    padding-inline: 40px;
  }
  .public .content {
    padding-inline: 40px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: relative;
    width: auto;
    display: block;
    padding: 17px 22px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .workspace-label {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 6px;
    margin-top: 20px;
  }
  .sidebar nav a {
    padding: 8px 11px;
    font-size: 0.79rem;
    white-space: nowrap;
  }
  .sidebar nav a .icon {
    width: 16px;
    height: 16px;
  }
  .account {
    position: absolute;
    top: 15px;
    right: 20px;
    border: 0;
    padding: 0;
  }
  .account > .avatar,
  .account > div {
    display: none;
  }
  .workspace main {
    margin-left: 0;
  }
  .topbar {
    position: absolute;
    top: 14px;
    right: 64px;
    z-index: 6;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .topbar-title {
    display: none;
  }
  .content {
    padding: 28px 24px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .button {
    margin-top: 5px;
  }
  .breadcrumb {
    margin-bottom: 16px !important;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .form-aside {
    max-width: none;
    padding: 0 10px;
  }
  .form-aside dl {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
  }
  .form-aside dt,
  .form-aside dd {
    margin: 0;
  }
  .public-header {
    padding: 24px 28px;
  }
  .public .content {
    padding: 20px 28px 30px;
  }
}
@media (max-width: 700px) {
  .login-card {
    margin-top: 16px;
    padding: 24px;
  }
}
@media (max-width: 600px) {
  .content {
    padding: 24px 17px;
  }
  .sidebar nav a .icon {
    display: none;
  }
  .page-heading {
    display: block;
    margin-bottom: 24px;
  }
  .page-heading > .button,
  .page-heading > .pill {
    margin-top: 18px;
  }
  .page-heading h1 {
    font-size: 1.9rem;
  }
  .page-heading p {
    font-size: 0.86rem;
  }
  .summary-bar {
    grid-template-columns: 1fr 1fr;
  }
  .summary-bar > div {
    padding: 20px;
  }
  .summary-bar > div:nth-child(2) {
    border-right: 0;
  }
  .summary-bar > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .summary-bar strong {
    font-size: 1.9rem;
  }
  .summary-bar > div > span {
    font-size: 0.73rem;
  }
  .summary-bar > div > .icon {
    width: 18px;
    height: 18px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading .muted {
    font-size: 0.72rem;
    max-width: 125px;
    text-align: right;
  }
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
  .empty-state {
    padding: 32px 20px;
  }
  .empty-state p {
    font-size: 0.85rem;
  }
  .server-grid {
    grid-template-columns: 1fr;
  }
  .console-output {
    height: 320px;
    min-height: 320px;
    font-size: 0.73rem;
  }
  .service-controls dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
  .service-controls dt,
  .service-controls dd {
    margin: 0;
  }
  .power-buttons {
    flex-wrap: nowrap;
  }
  .power-buttons .button {
    flex: 1;
  }
  .form-surface {
    padding: 23px;
  }
  .form-aside dl {
    display: block;
  }
  .form-aside dt {
    margin-top: 15px;
  }
  .node-row {
    padding: 20px;
    gap: 15px;
  }
  .node-row form,
  .node-row form button {
    width: 100%;
  }
  .node-description {
    min-width: 0;
  }
  .node-capacity {
    width: calc(100% - 63px);
    min-width: 0;
    margin-left: 63px;
  }
  .public-header {
    padding: 22px;
  }
  .public-header nav {
    gap: 18px;
  }
  .public .content {
    padding: 20px 22px 28px;
  }
  .notice {
    font-size: 0.81rem;
  }
  .form-footer {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Service storage workspace */
.server-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 28px;
}
.server-tabs a {
  padding: 10px 12px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}
.server-tabs a:hover {
  color: var(--ink);
  text-decoration: none;
}
.server-tabs a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.server-tabs .icon {
  display: none;
}
.storage-guidance {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 24px;
  background: var(--surface);
  color: var(--muted);
}
.storage-guidance .icon {
  color: var(--muted);
  margin-top: 3px;
  flex-shrink: 0;
}
.storage-guidance p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
}
.file-location {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.file-location > span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.file-location > div {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
}
.file-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.file-row:last-child {
  border-bottom: 0;
}
.file-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 150px;
}
.file-entry > div {
  min-width: 0;
}
.file-entry a,
.file-entry strong {
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}
.file-entry small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.75rem;
}
.file-download {
  font-size: 0.82rem;
}
.file-options {
  font-size: 0.83rem;
}
.file-options[open] {
  flex-basis: 100%;
}
.file-options summary,
.backup-options summary {
  cursor: pointer;
  color: var(--accent);
  padding: 6px 0;
}
.file-options-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 20px;
}
.file-options input:not([type="checkbox"]),
.backup-options input:not([type="checkbox"]) {
  width: 100%;
  margin: 8px 0 14px;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 14px 0;
  line-height: 1.6;
}
.check-label input {
  margin-top: 4px;
  flex-shrink: 0;
}
.storage-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0 32px;
}
.storage-tools > * {
  min-width: 0;
}
.storage-tools h2 {
  font-size: 1.12rem;
}
.storage-tools p {
  font-size: 0.85rem;
  line-height: 1.7;
}
.storage-tools input[type="file"] {
  width: 100%;
  padding: 12px;
  font-size: 0.8rem;
}
.storage-tools input[type="file"]::file-selector-button {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 9px;
  margin-right: 12px;
  background: var(--raised);
  color: var(--ink);
}
.storage-empty {
  padding: 45px 28px;
  text-align: center;
}
.storage-empty .access-icon {
  margin: 0 auto 22px;
}
.storage-empty h2 {
  font-size: 1.2rem;
}
.storage-empty p {
  color: var(--muted);
  font-size: 0.9rem;
}
.editor-surface {
  overflow: hidden;
}
.editor-heading {
  padding: 23px;
}
.editor-heading label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.editor-heading input {
  width: 100%;
  font-family: var(--mono);
}
.code-editor {
  display: block;
  width: 100%;
  min-height: 440px;
  resize: vertical;
  border-radius: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px;
  background: var(--term);
  color: var(--term-ink);
  font:
    14px/1.8 var(--mono);
  tab-size: 2;
}
.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
}
.editor-actions p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.backup-card {
  padding: 25px;
  margin-bottom: 18px;
}
.backup-title {
  display: flex;
  gap: 18px;
  align-items: center;
}
.backup-title > div {
  min-width: 0;
}
.backup-title h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.backup-title p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 6px;
}
.backup-title small {
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 0.73rem;
}
.backup-options {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 15px;
}
.backup-options h3 {
  font-size: 1rem;
}
.backup-options label:not(.check-label) {
  font-size: 0.82rem;
}
@media (max-width: 700px) {
  .storage-tools,
  .file-options-body {
    grid-template-columns: 1fr;
  }
  .file-location {
    flex-direction: column;
  }
  .file-row {
    padding: 18px;
    gap: 14px;
  }
  .file-entry {
    flex-basis: 100%;
  }
  .editor-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .editor-actions .button {
    width: 100%;
  }
  .backup-card {
    padding: 20px;
  }
}
.editor-heading input,
.file-options-body input:not([type="checkbox"]),
.backup-options input:not([type="checkbox"]) {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--canvas);
  color: var(--ink);
  padding: 11px 13px;
  font: inherit;
}
.editor-heading input[readonly] {
  color: var(--muted);
}

/* Account and team access reuse the hosting workspace surfaces. */
.permission-grid { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 20px 0; }
.permission-grid legend { padding: 0 8px; font-weight: 600; }
.permission-grid > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.permission-grid > div > div { display: block; }
.permission-grid label { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.permission-grid input[type=checkbox] { width: 16px; height: 16px; flex-shrink: 0; }
.team-member { margin-bottom: 16px; }
.team-remove { margin-top: 16px; }
.team-invite .field { max-width: 540px; }
@media (max-width: 540px) { .permission-grid > div { grid-template-columns: 1fr; } }

.storage-usage { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.storage-usage form { min-width: 180px; }
.schedule-card { margin-bottom: 18px; }
.schedule-history { min-width: 850px; }
.schedule-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.schedule-form { margin: 28px 0; max-width: 800px; }
.schedule-card h2 { overflow-wrap: anywhere; }
.storage-usage form button { margin-top: 10px; }
.transfer-credentials { margin: 24px 0; }
.credential-secret { overflow-wrap: anywhere; padding: 16px; background: var(--term); border-radius: 8px; }
.transfer-revoke { display: flex; gap: 20px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
[data-upload-progress] { width: 100%; accent-color: var(--accent); }
@media (max-width: 640px) { .storage-usage { flex-direction: column; } }

.application-card { padding: 28px; margin: 0 0 22px; min-width: 0; overflow-wrap: anywhere; }
.application-card h2 { margin: 0 0 12px; }
.application-card > p { color: var(--muted); line-height: 1.65; max-width: 85ch; }
.application-card form { max-width: 760px; min-width: 0; }
.application-card form p { margin: 20px 0; }
.application-card label { display: block; margin-bottom: 8px; font-weight: 600; }
.application-card input:not([type="hidden"]), .application-card select, .application-card textarea {
  display: block; width: 100%; max-width: 100%; min-width: 0; margin-top: 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--canvas);
  padding: 12px 14px; color: var(--ink); font: inherit; box-sizing: border-box;
}
.application-card input:focus, .application-card select:focus, .application-card textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.application-card article { padding: 18px 0; border-top: 1px solid var(--line); }
.application-card article h3 { margin: 0 0 8px; }
.application-card article p { margin: 8px 0; }
.application-card .helptext { display: block; color: var(--muted); margin-top: 8px; font-size: .88rem; }
.application-card .button { margin-top: 8px; }
.application-card details summary { cursor: pointer; color: var(--accent); font-size: .88rem; }
.log-output { margin: 12px 0 0; max-height: 420px; overflow: auto; padding: 14px 16px; border-radius: 6px;
  background: var(--term); color: var(--term-ink); font-family: var(--mono); font-size: .8rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) { .application-card { padding: 20px; } }

/* Keep exact hashes readable in the keyboard-scrollable content preview. */
.content-file-preview { min-width: 850px; table-layout: fixed; }
.content-file-preview th:first-child { width: 24%; }
.content-file-preview th:nth-child(2) { width: 12%; }
.content-file-preview td { overflow-wrap: anywhere; vertical-align: top; }
.content-file-preview .job-result { font-family: var(--mono); }
[data-operation-form][aria-busy="true"] button { opacity: .7; cursor: wait; }
