:root {
  --ink: #14201c;
  --muted: #5c6b64;
  --line: #d5ddd8;
  --paper: #f3f6f4;
  --paper-2: #e8eee9;
  --surface: #ffffff;
  --brand: #0f6b5c;
  --brand-deep: #0a4d42;
  --brand-soft: #d8efe9;
  --danger: #9b2c2c;
  --ok: #1f7a45;
  --shadow: 0 18px 50px rgba(20, 32, 28, 0.08);
  --radius: 16px;
  /* Local-only fonts — no Google Fonts / CDN (nothing external can block UI). */
  --font: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #d9efe8 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #e7efe4 0%, transparent 45%),
    linear-gradient(180deg, #f7faf8 0%, var(--paper) 100%);
}

body.viewer-active {
  background: #0b100e;
  overflow: hidden;
}

body.dashboard-active,
body.login-active {
  overflow: auto;
}

body[data-view="login"] #dashboard-panel,
body[data-view="login"] #viewer-panel,
body[data-view="dashboard"] #login-panel,
body[data-view="dashboard"] #viewer-panel,
body[data-view="viewer"] #login-panel,
body[data-view="viewer"] #dashboard-panel {
  display: none !important;
}

a {
  color: var(--brand-deep);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup.compact .brand-name {
  font-size: 1.25rem;
}

.brand-mark {
  display: block;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(15, 107, 92, 0.12);
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tag,
.dash-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.btn,
.tb,
.login-form button,
.bar button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  min-height: 36px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: 0.15s ease;
}

.btn:hover,
.tb:hover,
.bar button:hover {
  border-color: #b7c4bd;
  transform: translateY(-1px);
}

.btn-primary,
#login-btn {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover,
#login-btn:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
}

.btn.danger,
.tb.danger {
  color: var(--danger);
  border-color: #e2b4b4;
  background: #fff5f5;
}

.btn.icon,
.tb.icon {
  min-width: 36px;
  padding-inline: 0.55rem;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  margin-top: 10px;
}

.login-panel {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(213, 221, 216, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
#device-search,
.cmd-row input,
.share-box input,
.settings-panel input,
#send-text,
.os-install-col textarea,
#install-page-url,
#share-link-url,
#settings-link-url {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
}

.login-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f1;
  border: 1px solid #f0c2c2;
  color: var(--danger);
}

.login-hint {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.dashboard-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 16px 48px;
}

.dash-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.dash-header-actions {
  display: flex;
  gap: 8px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: grid;
  gap: 2px;
}

.stat-card strong {
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.agents-section {
  margin-bottom: 18px;
}

.agents-section-head {
  margin-bottom: 12px;
}

.agents-section-head h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 4px;
}

.usage-panel {
  margin-bottom: 18px;
  margin-top: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
}

.usage-panel > summary {
  cursor: pointer;
  list-style: none;
}

.usage-panel > summary::-webkit-details-marker {
  display: none;
}

.usage-panel[open] > summary {
  margin-bottom: 14px;
}

.usage-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.usage-panel-head h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.usage-live-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.usage-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.85rem;
}

.usage-pill strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.gpu-machine-list {
  display: grid;
  gap: 10px;
}

.gpu-machine-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1.2fr) minmax(0, 1.6fr) 56px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.gpu-machine-row.offline {
  opacity: 0.72;
}

.device-type-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  flex-shrink: 0;
}

.device-type-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.gpu-machine-name {
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gpu-machine-sub {
  color: var(--muted);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gpu-bar-wrap {
  display: grid;
  gap: 4px;
}

.gpu-bar-track {
  height: 10px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
}

.gpu-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand);
  min-width: 0;
  transition: width 0.4s ease;
}

.gpu-bar-fill.hot {
  background: #b45309;
}

.gpu-bar-fill.crit {
  background: var(--danger);
}

.gpu-pct {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
}

.usage-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

.device-gpu-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.device-gpu-inline .gpu-bar-track {
  flex: 1;
  max-width: 140px;
  height: 8px;
}

.agent-install-card,
.share-box,
.device-empty {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.agent-install-card {
  margin-bottom: 14px;
  margin-top: 8px;
}

.device-install-code {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-top: 6px;
  font-size: 0.9rem;
}

.device-install-code span {
  color: var(--muted);
}

.device-install-code strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.device-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.agent-install-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.agent-install-head h2,
.os-install-col h3,
.share-box-head strong {
  font-family: var(--display);
  font-size: 1.2rem;
}

.agent-install-head p {
  color: var(--muted);
  margin-top: 4px;
  max-width: 46ch;
  line-height: 1.45;
}

.install-link-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.install-link-box > label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.cmd-row,
.step-actions,
.os-install-col,
.device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cmd-row {
  align-items: center;
}

.cmd-row input {
  flex: 1;
  min-width: 180px;
}

.os-install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.os-install-col {
  flex-direction: column;
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.os-install-col textarea {
  min-height: 72px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 10px;
}

#device-search {
  flex: 1;
  min-width: 200px;
}

.filter-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  user-select: none;
}

.device-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.device-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.device-main {
  min-width: 0;
}

.device-row.clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.device-row.clickable:hover {
  border-color: rgba(15, 107, 92, 0.4);
}

.device-row.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(15, 107, 92, 0.18), var(--shadow);
}

.device-row.offline {
  opacity: 0.78;
}

.device-detail {
  margin: 16px 0 8px;
}

.device-detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 20px 22px 18px;
  animation: rise-in 0.35s ease both;
}

.device-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.device-detail-head h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
}

.detail-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.detail-pill {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

.detail-fields {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 8px 16px;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-fields dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.detail-fields dd {
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}

.detail-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.detail-channels {
  margin-bottom: 16px;
}

.detail-channels h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}

.detail-channel-list {
  list-style: none;
  display: grid;
  gap: 6px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 720px) {
  .detail-fields {
    grid-template-columns: 1fr;
  }

  .detail-fields dt {
    margin-top: 4px;
  }
}

.device-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.device-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}

.device-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--brand-deep);
}

.device-user::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
}

.device-status {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid;
}

.device-status.online {
  color: var(--ok);
  background: #e8f7ee;
  border-color: #b9e3c8;
}

.device-status.offline {
  color: var(--muted);
  background: #eef1ef;
  border-color: var(--line);
}

.device-status.waiting {
  color: #8a5a00;
  background: #fff4d6;
  border-color: #efd48a;
}

.device-status.disabled {
  color: var(--danger);
  background: #fdecec;
  border-color: #e2b0b0;
}

.device-row.waiting {
  border-color: rgba(138, 90, 0, 0.22);
}

.device-row.disabled {
  opacity: 0.7;
}

.add-agent-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 14px 0 8px;
}

.add-agent-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.add-agent-form input {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}

.install-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem !important;
}

.channel-list {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.channel-list-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink);
  padding: 4px 0;
}

@media (max-width: 720px) {
  .add-agent-form {
    grid-template-columns: 1fr;
  }
}

.device-meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
}

.device-meta span + span::before {
  content: " · ";
  color: #9aa79f;
}

.device-notes {
  margin-top: 6px;
  color: var(--muted);
  font-style: italic;
  font-size: 0.88rem;
}

.device-actions {
  align-content: start;
  justify-content: flex-end;
  max-width: 320px;
}

.device-empty {
  text-align: center;
  color: var(--muted);
}

.share-box {
  margin-top: 14px;
}

.share-box-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.share-warning {
  background: #fff7e8;
  border: 1px solid #f0d7a4;
  color: #7a5a12;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.share-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.viewer-panel {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  background: #0b100e;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  background: #151c19;
  border-bottom: 1px solid #24302b;
  flex-shrink: 0;
}

.bottom-bar {
  border-top: 1px solid #24302b;
  border-bottom: 0;
}

.viewer-mark {
  border-radius: 6px;
}

.viewer-panel .btn,
.viewer-panel .tb {
  background: #1d2823;
  border-color: #314038;
  color: #edf4f0;
}

.tb-status {
  color: #9db0a7;
  font-size: 0.9rem;
}

.tb-status.online {
  color: #6ddea0;
}

.tb-expires {
  margin-left: auto;
  color: #9db0a7;
  font-size: 0.85rem;
}

body.guest-link .admin-only {
  display: none !important;
}

.mirror-tip {
  flex-shrink: 0;
  padding: 10px 12px;
  background: #3a2f14;
  color: #ffe8a8;
  border-bottom: 1px solid #6a5724;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
}

.mirror-tip button {
  margin-left: auto;
}

.screen-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #000;
  overflow: hidden;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
}

.no-video-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #aebbb4;
  font-size: clamp(13px, 2.4vw, 17px);
  z-index: 1;
  pointer-events: none;
  text-align: center;
  padding: 0 12px;
  max-width: 90%;
}

#screen-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  touch-action: none;
  image-rendering: auto;
}

.input-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d7e4dd;
  font-size: 0.9rem;
  user-select: none;
}

.input-hint {
  color: #ffb4b4;
  font-size: 0.85rem;
}

.screen-wrap.input-off {
  outline: 2px dashed #c45c5c;
}

.send-panel,
.settings-panel {
  position: fixed;
  z-index: 30;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 14px;
}

.send-panel {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 95vw;
}

.settings-panel {
  right: 12px;
  top: 58px;
  width: min(340px, 92vw);
}

.settings-panel p {
  margin: 8px 0;
  word-break: break-all;
}

@media (max-width: 720px) {
  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .os-install-grid,
  .device-row {
    grid-template-columns: 40px 1fr;
  }

  .device-row .device-actions {
    grid-column: 2;
  }

  .gpu-machine-row {
    grid-template-columns: 40px 1fr 48px;
  }

  .gpu-machine-row .gpu-bar-wrap {
    grid-column: 1 / -1;
  }

  .device-actions {
    max-width: none;
    justify-content: flex-start;
  }

  .tb-expires {
    margin-left: 0;
    width: 100%;
  }
}

/* Install page */
.install-page {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 56px;
}

.install-card {
  width: min(720px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 28px 28px 22px;
  animation: rise-in 0.45s ease both;
}

.install-lead {
  color: var(--muted);
  margin: 18px 0 16px;
  line-height: 1.5;
}

.detect-banner {
  padding: 10px 12px;
  background: var(--brand-soft);
  border: 1px solid rgba(15, 107, 92, 0.28);
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: var(--brand-deep);
}

.os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.os-tabs button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  min-height: 36px;
  padding: 0.4rem 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.os-tabs button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.os-tabs button.detected:not(.active) {
  box-shadow: inset 0 0 0 2px rgba(15, 107, 92, 0.35);
}

.os-panel {
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.os-panel h2 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 14px 0 8px;
}

.os-panel h2:first-child {
  margin-top: 0;
}

.os-panel ol {
  margin: 0 0 12px 18px;
  line-height: 1.55;
  color: var(--muted);
}

.os-panel p {
  color: var(--muted);
  margin-bottom: 10px;
}

.cmd-box {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 8px 0 4px;
}

.cmd-box textarea {
  flex: 1;
  min-height: 72px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  resize: vertical;
  background: var(--surface);
  color: var(--ink);
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.install-error {
  padding: 12px 14px;
  background: #fdecec;
  border: 1px solid #e2b0b0;
  color: var(--danger);
  border-radius: 12px;
  margin-bottom: 14px;
  line-height: 1.45;
}

.install-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.45;
}

.auto-dl-note {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--brand-deep);
}

.install-optional {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.install-app-downloads {
  margin: 10px 0 14px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
