@font-face {
  font-family: Inter;
  src: url(/static/fonts/InterVariable.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg-canvas: #10141a;
  --bg-base: #171c24;
  --bg-surface: #1c222c;
  --bg-surfaceAlt: #232a35;
  --bg-surfaceRaised: #262e3a;
  --bg-sidebar: #141921;
  --bg-header: #161c25;
  --bg-rowHover: #212834;
  --bg-rowSelected: #26303f;
  --bg-inputBg: #141921;
  --bg-taskLog: #121620;
  --border-default: #2a3240;
  --border-subtle: #222934;
  --border-strong: #3a4556;
  --border-focus: #e07b22;
  --text-primary: #e8ebf1;
  --text-secondary: #9ca8ba;
  --text-muted: #6b7586;
  --text-disabled: #4b5562;
  --text-inverse: #15191f;
  --text-link: #5fa8e0;
  --accent-orange: #e07b22;
  --accent-orangeHover: #f08d34;
  --accent-orangeMuted: #8a5323;
  --accent-orangeBg: #2e2013;
  --state-green: #4ebd6b;
  --state-greenBg: #17301f;
  --state-greenBorder: #28492f;
  --state-red: #e25a5a;
  --state-redBg: #331d1d;
  --state-redBorder: #4a2a2a;
  --state-amber: #d7a23b;
  --state-amberBg: #332a16;
  --state-amberBorder: #4a3c20;
  --state-blue: #5b9bd5;
  --state-blueBg: #1b2733;
  --state-blueBorder: #2a3c4d;
  --state-gray: #8a93a3;
  --state-grayBg: #262c35;
}
.organization-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg-surface);
}
.organization-filters .field {
  min-width: 160px;
  max-width: 280px;
  flex: 1;
}
.organization-filters small {
  align-self: center;
}
.organization-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.resource-project,
.resource-tag {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 500;
  overflow-wrap: anywhere;
  white-space: normal;
  background: var(--state-blueBg);
  color: var(--state-blue);
}
.resource-tag {
  background: var(--bg-surfaceRaised);
  color: var(--text-secondary);
}
.tag-picker {
  margin: 20px 0;
  padding: 14px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
}
.tag-picker .check + .check {
  margin-top: 10px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font:
    13px/1.45 Inter,
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--text-link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
input,
select,
textarea {
  color: var(--text-primary);
  background: var(--bg-inputBg);
  border: 1px solid var(--border-default);
  border-radius: 4px;
  padding: 9px 11px;
  outline: none;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px #e07b2220;
}
input::placeholder {
  color: var(--text-muted);
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
}
h3 {
  font-size: 13px;
  font-weight: 600;
}
.muted,
small {
  color: var(--text-secondary);
}
.subtle {
  color: var(--text-muted);
}
.mono {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 600;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  min-height: 32px;
  padding: 6px 12px;
  line-height: 18px;
  color: var(--text-primary);
  background: var(--bg-surfaceAlt);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.button:hover:not(:disabled) {
  background: var(--bg-surfaceRaised);
  text-decoration: none;
  border-color: var(--border-strong);
}
.button.primary {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--text-inverse);
  font-weight: 600;
}
.button.primary:hover:not(:disabled) {
  background: var(--accent-orangeHover);
}
.button.danger {
  background: var(--state-redBg);
  border-color: var(--state-redBorder);
  color: var(--state-red);
}
.button.small {
  min-height: 26px;
  padding: 3px 9px;
  font-size: 11px;
}
.button.link {
  background: transparent;
  border-color: transparent;
  color: var(--text-link);
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 20px;
  padding: 3px 8px;
  line-height: 1.3;
}
.icon-button:hover {
  color: var(--text-primary);
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.app-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
}
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.brand {
  height: 76px;
  padding: 20px;
  flex: none;
}
.brand strong {
  font-size: 16px;
  letter-spacing: 0.2px;
  display: block;
  line-height: 22px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 1.4px;
  display: block;
  margin-top: 3px;
  color: var(--accent-orange);
  font-weight: 600;
}
.resource-search {
  padding: 0 12px 12px;
}
.resource-search input {
  width: 100%;
  font-size: 12px;
  padding: 7px 10px;
  height: 33px;
}
.nav-heading {
  font-size: 10px;
  letter-spacing: 0.9px;
  color: var(--text-muted);
  padding: 10px 15px 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--text-secondary);
  padding: 7px 15px;
  border-left: 2px solid transparent;
  font-size: 12px;
}
.nav-link:hover,
.tree-vm:hover {
  background: var(--bg-rowHover);
  color: var(--text-primary);
  text-decoration: none;
}
.nav-link.active {
  background: var(--bg-rowSelected);
  color: var(--accent-orange);
  border-left-color: var(--accent-orange);
  font-weight: 600;
}
.nav-symbol {
  width: 17px;
  text-align: center;
  font-size: 14px;
  opacity: 0.9;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--bg-surfaceRaised);
  color: var(--text-secondary);
}
.resource-tree {
  flex: 1;
  min-height: 90px;
  overflow-y: auto;
  padding-bottom: 12px;
}
.tree-host {
  font-size: 12px;
  padding: 8px 14px;
  color: var(--text-primary);
  display: block;
}
.tree-group summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 11px;
  padding: 7px 22px;
  user-select: none;
}
.tree-vm {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 38px;
  color: var(--text-secondary);
  font-size: 11px;
  min-height: 28px;
  border-left: 2px solid transparent;
}
.tree-vm span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-vm.active {
  background: var(--bg-rowSelected);
  color: var(--text-primary);
  border-left-color: var(--accent-orange);
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex: none;
  border-radius: 50%;
  background: var(--state-gray);
}
.dot.running {
  background: var(--state-green);
}
.host-online {
  border-top: 1px solid var(--border-subtle);
  padding: 13px 16px;
  flex: none;
}
.host-online strong {
  font-size: 10px;
  color: var(--state-green);
  font-weight: 500;
  letter-spacing: 0.7px;
  display: block;
  margin-bottom: 4px;
}
.host-online small {
  font-size: 11px;
  color: var(--text-muted);
}
.workspace {
  min-width: 0;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 176px;
}
.topbar {
  padding: 0 24px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumb {
  font-size: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  min-width: 0;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
}
.breadcrumb span {
  color: var(--text-muted);
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 240px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-size: 12px;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: var(--bg-surfaceRaised);
  display: grid;
  place-items: center;
  color: var(--accent-orange);
  font-size: 11px;
  font-weight: 600;
}
.role-label {
  text-transform: capitalize;
  font-size: 10px;
  padding: 3px 7px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  color: var(--text-secondary);
}
.content {
  overflow: auto;
  padding: 24px;
  min-height: 0;
  scrollbar-gutter: stable;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  min-height: 44px;
}
.page-title p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 5px;
}
.title-status {
  display: flex;
  align-items: center;
  gap: 12px;
}
.resource-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  border: 1px solid var(--border-default);
  border-radius: 5px;
  background: var(--bg-surface);
  padding: 16px;
  min-height: 120px;
}
.stat-card .label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.stat-card .value {
  font-size: 25px;
  font-weight: 600;
  line-height: 35px;
  margin: 5px 0 2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-card small {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}
.usage-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-surfaceRaised);
  overflow: hidden;
}
.usage-bar i {
  display: block;
  height: 100%;
  background: var(--accent-orange);
  min-width: 1px;
}
.overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
  min-width: 0;
}
.panel-header {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 12px;
}
.panel-header small {
  font-size: 11px;
  color: var(--text-muted);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  height: 32px;
  background: var(--bg-surfaceAlt);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
th,
td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  line-height: 17px;
}
td {
  height: 36px;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--bg-rowHover);
}
.clickable {
  cursor: pointer;
}
td .name {
  font-weight: 500;
  color: var(--text-primary);
}
td small {
  font-size: 10px;
  display: block;
  color: var(--text-muted);
  margin-top: 2px;
}
.vm-name-cell {
  min-width: 200px;
  max-width: 360px;
  overflow-wrap: anywhere;
}
.iso-name-cell {
  min-width: 260px;
  overflow-wrap: anywhere;
}
.numeric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  padding: 3px 7px;
  background: var(--state-grayBg);
  color: var(--state-gray);
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
  text-transform: capitalize;
  font-weight: 500;
}
.badge.running,
.badge.completed,
.badge.active {
  color: var(--state-green);
  background: var(--state-greenBg);
}
.badge.failed,
.badge.interrupted {
  color: var(--state-red);
  background: var(--state-redBg);
}
.badge.queued,
.badge.paused {
  color: var(--state-amber);
  background: var(--state-amberBg);
}
.badge.incus,
.badge.administrator {
  color: var(--state-blue);
  background: var(--state-blueBg);
}
.badge.libvirt,
.badge.operator {
  color: var(--state-amber);
  background: var(--state-amberBg);
}
.properties {
  margin: 0;
}
.property {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 14px;
  min-height: 40px;
  font-size: 12px;
  border-top: 1px solid var(--border-subtle);
}
.property dt {
  color: var(--text-secondary);
}
.property dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.toolbar input {
  max-width: 370px;
  flex: 1;
  min-width: 170px;
  height: 34px;
  font-size: 12px;
}
.toolbar select {
  height: 34px;
  font-size: 12px;
  padding: 6px 10px;
}
.toolbar .result-count {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-default);
  gap: 24px;
  margin-bottom: 20px;
  min-height: 36px;
  overflow: auto;
}
.tab {
  padding: 0 0 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  background: none;
  font-size: 12px;
  white-space: nowrap;
}
.tab.active {
  border-bottom-color: var(--accent-orange);
  color: var(--accent-orange);
  font-weight: 600;
}
.hardware-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 46px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
}
.hardware-row .hardware-label {
  color: var(--text-secondary);
  font-weight: 500;
}
.hardware-row .hardware-value {
  overflow-wrap: anywhere;
}
.hardware-row:hover {
  background: var(--bg-rowHover);
}
.hint,
.warning,
.error-banner {
  padding: 12px 14px;
  border: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: 4px;
  margin-bottom: 18px;
  font-size: 12px;
}
.warning {
  border-color: var(--state-amberBorder);
  background: var(--state-amberBg);
  color: var(--state-amber);
}
.error-banner {
  border-color: var(--state-redBorder);
  background: var(--state-redBg);
  color: var(--state-red);
}
.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
}
.empty strong {
  display: block;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
}
.empty .button {
  margin-top: 16px;
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 140px;
  border: 1px dashed var(--border-strong);
  background: var(--bg-surface);
  border-radius: 5px;
  margin-bottom: 20px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 24px;
}
.dropzone:hover,
.dropzone.dragging {
  border-color: var(--accent-orange);
  background: var(--bg-rowHover);
}
.dropzone .upload-symbol {
  font-size: 25px;
  color: var(--accent-orange);
  line-height: 1;
}
.dropzone strong {
  font-size: 14px;
  font-weight: 500;
}
.dropzone small {
  font-size: 12px;
  color: var(--text-muted);
}
.dropzone input {
  display: none;
}
.upload-progress {
  width: 100%;
  max-width: 600px;
  margin-top: 12px;
}
.upload-progress progress {
  display: block;
  width: 100%;
  height: 6px;
  accent-color: var(--accent-orange);
  margin-bottom: 8px;
}
.access-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  gap: 24px;
}
.role-card .role-body {
  padding: 14px 16px 20px;
  font-size: 12px;
  color: var(--text-secondary);
}
.role-card small {
  display: block;
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 11px;
}
.task-dock {
  height: 176px;
  background: var(--bg-taskLog);
  border-top: 1px solid var(--border-default);
  overflow: hidden;
}
.dock-tabs {
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 22px;
  border-bottom: 1px solid var(--border-subtle);
}
.dock-tabs button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font-size: 11px;
}
.dock-tabs button.active {
  color: var(--accent-orange);
}
.dock-tabs small {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 10px;
}
.task-dock table {
  font-size: 11px;
}
.task-dock th {
  font-size: 10px;
  height: 27px;
  padding: 5px 14px;
}
.task-dock td {
  height: 32px;
  padding: 5px 14px;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-dock .badge {
  padding: 1px 6px;
  font-size: 10px;
}
.task-dock .empty {
  padding: 22px;
}
.console-frame {
  width: 100%;
  height: max(480px, calc(100dvh - 390px));
  border: 1px solid var(--border-default);
  border-radius: 5px;
  background: var(--bg-canvas);
}
.console-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--text-secondary);
  font-size: 12px;
}
.login-screen {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
  background: var(--bg-base);
}
.login-card {
  width: min(424px, 100%);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 32px;
}
.login-brand {
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
  margin-bottom: 12px;
}
.login-card .product {
  color: var(--accent-orange);
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 600;
}
.login-card h1 {
  font-size: 18px;
  line-height: 25px;
  margin: 24px 0 12px;
}
.login-card .host-address {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.login-card .field {
  margin-bottom: 18px;
}
.login-card .button {
  width: 100%;
  margin: 5px 0 20px;
}
.login-card .login-foot {
  font-size: 11px;
  color: var(--text-muted);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  min-width: 0;
}
.field > span {
  font-weight: 500;
  color: var(--text-secondary);
}
.field input,
.field select {
  height: 36px;
  width: 100%;
  font-size: 12px;
}
.field small {
  font-size: 11px;
  line-height: 16px;
  color: var(--text-muted);
}
.field.full {
  grid-column: 1/-1;
}
.field textarea {
  resize: vertical;
  font-size: 12px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  cursor: pointer;
}
.check input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent-orange);
  margin: 2px 0 0;
}
.check small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
  color: var(--text-muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.form-grid[hidden] {
  display: none;
}
.form-section {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  grid-column: 1/-1;
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 8px;
  margin-top: 4px;
}
.form-error {
  color: var(--state-red);
  font-size: 12px;
  margin: 0 24px 18px;
  padding: 10px 12px;
  border: 1px solid var(--state-redBorder);
  border-radius: 4px;
  background: var(--state-redBg);
}
.login-card .form-error {
  margin: 0 0 18px;
}
dialog {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0;
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  box-shadow: 0 24px 80px #0008;
}
dialog.wide {
  width: min(920px, calc(100vw - 40px));
}
dialog::backdrop {
  background: #000a;
}
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-default);
}
dialog header h2 {
  margin-top: 5px;
}
dialog header .eyebrow {
  font-size: 9px;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-default);
}
dialog footer .button[hidden] {
  display: none;
}
dialog .dialog-content {
  padding: 24px;
  max-height: calc(100dvh - 260px);
  overflow: auto;
}
dialog .warning {
  margin-bottom: 20px;
}
.wizard-layout {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
}
.wizard-rail {
  background: var(--bg-sidebar);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 12px;
  color: var(--text-muted);
}
.wizard-step {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-muted);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.wizard-step:hover,
.wizard-step[aria-current="step"] {
  color: var(--accent-orange);
}
.wizard-step[aria-current="step"] {
  font-weight: 600;
}
.wizard-form section {
  min-height: 320px;
}
#vm-create-review h4 {
  margin: 16px 0 8px;
  font-size: 12px;
}
#vm-create-review h4:first-child {
  margin-top: 0;
}
#vm-create-review dd {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.wizard-rail small {
  font-size: 10px;
  line-height: 16px;
  margin-top: auto;
}
.wizard-form {
  min-width: 0;
}
.wizard-form .form-grid {
  gap: 16px 20px;
}
.wizard-form textarea {
  height: 65px;
}
.wizard-form .form-section:first-child {
  margin: 0;
}
.extra-disks {
  grid-column: 1/-1;
}
.extra-disk-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.extra-disk-row input {
  width: 100px;
  height: 32px;
  font-size: 12px;
}
.extra-disk-row small {
  font-size: 11px;
}
.extra-disk-row button {
  font-size: 20px;
}
.initial-loading {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  color: var(--text-muted);
}
#toasts {
  position: fixed;
  right: 24px;
  bottom: 192px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  max-width: 420px;
}
.toast {
  padding: 13px 16px;
  background: var(--bg-surfaceRaised);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--state-green);
  color: var(--text-primary);
  border-radius: 5px;
  box-shadow: 0 6px 24px #0004;
  font-size: 12px;
}
.toast.error {
  border-left-color: var(--state-red);
}
.toast.warning {
  border-left-color: var(--state-amber);
}
.mobile-menu {
  display: none;
}
.footer-note {
  font-size: 11px;
  color: var(--text-muted);
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
}
.storage-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.storage-body {
  padding: 18px;
}
.storage-value {
  font-size: 24px;
  font-weight: 600;
  margin: 6px 0 12px;
}
.account-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.account-summary .avatar {
  width: 46px;
  height: 46px;
  font-size: 18px;
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
@media (min-width: 1600px) {
  .content {
    padding: 28px 32px;
  }
  .overview-columns {
    grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr);
  }
}
@media (max-width: 1150px) {
  .resource-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-columns,
  .access-columns {
    grid-template-columns: 1fr;
  }
  .topbar {
    padding: 0 16px;
  }
  .role-label {
    display: none;
  }
  .hardware-row {
    grid-template-columns: 150px minmax(0, 1fr) auto;
  }
}
@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    display: none;
  }
  .sidebar-open .sidebar {
    position: fixed;
    display: flex;
    z-index: 20;
    width: 224px;
    top: 56px;
    bottom: 0;
    box-shadow: 12px 0 36px #0008;
  }
  .mobile-menu {
    display: block;
  }
  .workspace {
    grid-template-rows: 56px minmax(0, 1fr) 140px;
  }
  .task-dock {
    height: 140px;
  }
  .topbar {
    gap: 8px;
    padding: 0 12px;
  }
  .breadcrumb > span,
  .breadcrumb > a {
    display: none;
  }
  .topbar .button {
    font-size: 11px;
    padding: 6px 9px;
  }
  .account-button .account-name {
    display: none;
  }
  .content {
    padding: 18px 14px;
  }
  .page-title {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
  }
  .resource-cards {
    gap: 10px;
  }
  .stat-card {
    padding: 12px;
    min-height: 110px;
  }
  .stat-card .value {
    font-size: 20px;
  }
  .hardware-row {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
  }
  .hardware-row > .actions {
    grid-column: 2;
  }
  .wizard-layout {
    grid-template-columns: 1fr;
  }
  .wizard-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .wizard-rail small {
    display: none;
  }
  .wizard-form section {
    min-height: 0;
  }
  .form-grid {
    gap: 16px;
  }
  .storage-cards {
    grid-template-columns: 1fr;
  }
  .toolbar input {
    max-width: none;
  }
  .role-card {
    margin-bottom: 12px;
  }
  #toasts {
    left: 14px;
    right: 14px;
    bottom: 156px;
  }
  .task-dock td:nth-child(2),
  .task-dock th:nth-child(2) {
    display: none;
  }
  .property {
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .login-card {
    padding: 28px;
  }
  .console-frame {
    height: 480px;
  }
}

.brand {
  color: var(--text-primary);
}
.brand:hover {
  text-decoration: none;
  color: var(--text-primary);
}
.form-grid > .full {
  grid-column: 1/-1;
}
@media (max-width: 760px) {
  .stat-card .value {
    font-size: 18px;
  }
  .stat-card:nth-child(3) .value {
    font-size: 16px;
  }
}
.app-shell {
  grid-template-rows: minmax(0, 1fr);
}
.workspace {
  min-height: 0;
}

/* Inline copy controls are siblings of links so copying never navigates. */
.copy-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  vertical-align: middle;
}
.copy-value > a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  vertical-align: middle;
}
.copy-button:hover {
  color: var(--text-primary);
  background: var(--bg-surfaceRaised);
  border-color: var(--border-default);
}
.tree-vm > .copy-value {
  flex: 1;
  min-width: 0;
}
.tree-vm > .copy-value > a {
  flex: 1;
}

.dialog-toasts:empty {
  display: none;
}
.dialog-toasts {
  padding: 0 24px 16px;
}

.tree-host a,
.tree-vm a {
  color: inherit;
}

.vm-select-cell { width: 36px; }
.vm-select-cell input, #vm-select-all, input[name="preserve_backups"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent-orange); }
.bulk-vm-toolbar { margin-bottom: 16px; }

.task-output {
  margin-top: 18px;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 12px;
}
.task-output summary {
  cursor: pointer;
  font-weight: 600;
}
.task-output-text {
  background: var(--bg-taskLog);
  color: var(--text-primary);
  padding: 12px;
  border-radius: 4px;
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.6 ui-monospace, monospace;
}
.task-output-text:empty { display: none; }
