:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #11171d;
  --panel-soft: #151d24;
  --panel-strong: #0d1218;
  --text: #f4f8fb;
  --muted: #93a2ad;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #9de0d8;
  --accent-strong: #55c7bd;
  --warn: #ffd166;
  --bad: #ff6b6b;
  --good: #5ee6a8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

body {
  overflow-x: hidden;
  min-height: 100svh;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(157, 224, 216, 0.12), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(45, 101, 179, 0.16), transparent 30%),
    linear-gradient(180deg, #0b1016, var(--bg));
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select,
input,
textarea {
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.demo-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: #080b10;
  padding: 0 4vw;
}

.brand,
.demo-header nav {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand,
.demo-header a {
  color: var(--text);
  font-weight: 780;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(157, 224, 216, 0.22);
  border-radius: 10px;
  background: linear-gradient(135deg, #145c67, #2d65b3);
  color: #d9fffb;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.demo-header nav a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  color: var(--muted);
}

.demo-header nav .nav-back {
  border-color: rgba(157, 224, 216, 0.18);
  background: rgba(157, 224, 216, 0.08);
  color: #dffdf9;
}

.demo-header nav a:hover,
.demo-header nav a:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.demo-shell {
  display: grid;
  width: min(1480px, 88vw);
  gap: 0.9rem;
  margin-inline: auto;
  padding: clamp(0.85rem, 1.7vw, 1.25rem) 0 2rem;
}

.demo-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.25rem 0 0.15rem;
}

.demo-intro p:not(.eyebrow) {
  max-width: 620px;
  color: #b4c0c8;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.demo-cues {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.demo-cues span {
  border: 1px solid rgba(157, 224, 216, 0.18);
  border-radius: 999px;
  background: rgba(157, 224, 216, 0.08);
  color: #c9dedf;
  padding: 0.36rem 0.58rem;
  font-size: 0.78rem;
  font-weight: 790;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: 1.1rem;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.demo-overlay {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(2, 4, 7, 0.58);
  backdrop-filter: blur(12px);
}

.demo-panel,
.device-preview {
  position: fixed;
  z-index: 50;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 12% 0, rgba(157, 224, 216, 0.08), transparent 16rem),
    rgba(12, 17, 22, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.demo-panel {
  top: 86px;
  right: max(1rem, 4vw);
  display: grid;
  width: min(420px, calc(100vw - 2rem));
  max-height: calc(100svh - 110px);
  gap: 1rem;
  overflow: auto;
  border-radius: 18px;
  padding: 1rem;
}

.demo-panel-head,
.device-preview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.demo-panel-head button,
.device-preview-head button {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border-radius: 999px;
  padding: 0;
}

.panel-actions,
.panel-commands,
.auth-report,
.auth-check-list,
.settings-grid,
.settings-controls {
  display: grid;
  gap: 0.55rem;
}

.auth-report-summary,
.auth-report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.auth-report-summary {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.75rem;
}

.auth-report-summary strong {
  flex: 1 1 100%;
}

.auth-report-summary span {
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-report-summary em,
.auth-check-row b {
  border-radius: 999px;
  background: rgba(94, 230, 168, 0.18);
  color: #cbffe4;
  padding: 0.16rem 0.48rem;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 820;
}

.auth-report-status {
  color: var(--accent);
  font-size: 0.86rem;
}

.auth-report-empty {
  margin: 0;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--muted);
  padding: 0.75rem;
  font-size: 0.86rem;
}

.auth-check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.18rem 0.6rem;
  text-align: left;
}

.auth-check-row span {
  grid-row: 1 / span 2;
  color: var(--good);
}

.auth-check-row.warning span,
.auth-check-row.warning b {
  color: var(--warn);
}

.auth-check-row small {
  color: var(--muted);
}

.panel-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-actions button,
.panel-commands button,
.settings-grid button {
  min-height: 44px;
  text-align: left;
}

.panel-commands button,
.settings-grid button {
  display: grid;
  gap: 0.16rem;
}

.panel-commands span,
.settings-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 620;
}

.settings-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.mobile-settings-section {
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.mobile-settings-section h3 {
  margin: 0;
  color: #b9c4c8;
  font-size: 0.88rem;
}

.mobile-settings-section p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
}

.mobile-settings-section p strong {
  color: var(--text);
}

.settings-controls {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.settings-controls label {
  display: grid;
  gap: 0.35rem;
}

.settings-controls select {
  width: 100%;
}

.settings-toggle input {
  width: 1.1rem;
  height: 1.1rem;
}

.device-preview {
  inset: 1.25rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
  border-radius: 22px;
  padding: 1rem;
}

.device-preview-head > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.device-preview-head [aria-pressed="true"],
.settings-grid button:focus-visible,
.panel-actions button:focus-visible,
.panel-commands button:focus-visible {
  border-color: rgba(157, 224, 216, 0.48);
  background: rgba(157, 224, 216, 0.16);
  color: #effffc;
}

.device-frame {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: auto;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.09), transparent 18rem),
    #030405;
  padding: 1rem;
}

.device-frame iframe {
  width: min(390px, 100%);
  height: min(844px, calc(100svh - 160px));
  border: 0;
  border-radius: 44px;
  background: #000;
}

.device-frame[data-frame="tablet"] iframe {
  width: min(900px, 100%);
  height: min(1120px, calc(100svh - 160px));
  border-radius: 28px;
}

body.is-embed {
  min-height: 100svh;
}

body.is-embed .demo-header,
body.is-embed .demo-intro,
body.is-embed .demo-overlay,
body.is-embed .demo-panel,
body.is-embed .device-preview {
  display: none !important;
}

body.is-embed .demo-shell {
  width: 100%;
  padding: 0;
}

body.is-embed .app-window {
  margin-inline: auto;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.62rem 0.72rem;
}

button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  color: var(--text);
  padding: 0.62rem 0.78rem;
  font-weight: 780;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  border-color: rgba(157, 224, 216, 0.42);
  background: rgba(157, 224, 216, 0.14);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.app-window {
  overflow: hidden;
  max-height: calc(100svh - 150px);
  border: 1px solid rgba(142, 163, 174, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(49, 58, 59, 0.98), rgba(28, 34, 36, 0.98));
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.window-titlebar {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.48);
  background:
    linear-gradient(180deg, rgba(45, 54, 56, 0.98), rgba(35, 43, 45, 0.98));
  padding: 0.6rem 0.8rem;
}

.chrome-cluster,
.chrome-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.traffic-lights {
  display: inline-flex;
  gap: 0.48rem;
}

.traffic-lights span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #5c6670;
}

.traffic-lights span:nth-child(1) {
  background: #ff5f57;
}

.traffic-lights span:nth-child(2) {
  background: #ffbd2e;
}

.traffic-lights span:nth-child(3) {
  background: #28c840;
}

.chrome-buttons {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  gap: 0;
}

.chrome-buttons span {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d6dde0;
  padding: 0;
}

.window-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
}

.window-title strong {
  margin-left: 0.25rem;
  font-size: 1rem;
  font-weight: 850;
}

.window-title select {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  padding: 0.38rem 0.7rem;
  color: #f2f5f6;
  font-weight: 760;
}

.window-titlebar label {
  grid-template-columns: auto minmax(118px, 150px);
  align-items: center;
  gap: 0.5rem;
}

.window-titlebar select,
.window-titlebar button {
  min-height: 36px;
  padding-block: 0.42rem;
}

.toolbar-actions button:not(.ghost-button) {
  display: grid;
  width: 36px;
  min-width: 36px;
  place-items: center;
  border-radius: 999px;
  padding: 0;
}

.workspace-shell {
  display: grid;
  background:
    radial-gradient(circle at 24% 12%, rgba(157, 224, 216, 0.08), transparent 36%),
    #252d2f;
}

.workspace {
  display: grid;
  grid-template-columns: 260px minmax(420px, 1fr) minmax(360px, 0.78fr);
  height: min(640px, calc(100svh - 220px));
  min-height: 540px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #2f383a;
  box-shadow: none;
}

.sidebar,
.content-pane,
.detail-pane {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.detail-pane {
  border-right: 0;
}

.sidebar {
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  background:
    linear-gradient(180deg, rgba(58, 67, 69, 0.98), rgba(40, 49, 51, 0.98));
  padding: 1rem;
  border-right-color: rgba(37, 125, 216, 0.72);
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin: 0.7rem 0 0.5rem;
  color: #b9c4c8;
  font-size: 0.83rem;
  font-weight: 820;
}

.sidebar-title button {
  min-height: 28px;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  color: #69b9ff;
  font-size: 0.74rem;
}

.context-search {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.sidebar-divider {
  height: 1px;
  margin-top: 0.9rem;
  background: rgba(255, 255, 255, 0.16);
}

.status-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 18px rgba(94, 230, 168, 0.7);
}

.section-list {
  display: grid;
  gap: 0.36rem;
}

.phone-shortcut-bar {
  display: none;
}

.section-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-color: transparent;
  background: transparent;
  color: #d2d9dc;
  text-align: left;
}

.section-button.is-active {
  border-color: rgba(157, 224, 216, 0.24);
  background: rgba(157, 224, 216, 0.12);
  color: var(--text);
}

.section-count {
  color: #d9e0e2;
  font-size: 0.8rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.section-icon {
  display: inline-grid;
  width: 1.1rem;
  place-items: center;
  color: #dce7e9;
}

.context-list {
  display: grid;
  gap: 0.3rem;
}

.context-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
  border-color: transparent;
  background: transparent;
  color: #d8dfe1;
  text-align: left;
}

.context-row span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #8d969a;
}

.context-row.is-active {
  background: rgba(45, 101, 179, 0.34);
}

.context-row.is-active span {
  background: #2196ff;
}

.readonly-toggle {
  align-self: end;
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
  color: #eef4f5;
  font-size: 0.92rem;
}

.readonly-toggle input {
  width: 1.1rem;
  height: 1.1rem;
}

.content-pane,
.detail-pane {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 0;
}

.content-pane {
  background:
    radial-gradient(circle at 44% 12%, rgba(255, 255, 255, 0.04), transparent 24%),
    #30393b;
}

.detail-pane {
  background: #202526;
  padding: 1.1rem;
}

.pane-head,
.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.34);
  padding: 1rem;
}

.detail-head {
  border-radius: 14px 14px 0 0;
  background: #262b2c;
}

.resource-search {
  width: min(260px, 45%);
}

.resource-search input {
  width: 100%;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  padding: 0.8rem 1rem;
}

.summary-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.72rem;
}

.summary-card strong {
  display: block;
  font-size: 1.2rem;
}

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

.resource-list {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  overflow: auto;
  padding: 0.95rem 1rem 1rem;
}

.kind-tabs {
  display: flex;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.kind-tabs button {
  min-height: 32px;
  flex: 1 1 auto;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  color: #d9e1e3;
  padding: 0.35rem 0.65rem;
}

.kind-tabs button:last-child {
  border-right: 0;
}

.kind-tabs button.is-active {
  background: #1684ff;
  color: white;
}

.kind-tabs span {
  margin-left: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #b9c4c8;
  font-size: 0.8rem;
}

.table-actions button {
  min-height: 28px;
  border-radius: 8px;
  padding: 0.28rem 0.65rem;
}

.table-actions b {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.78rem;
}

.resource-table {
  display: grid;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.resource-table-head,
.resource-table-row {
  display: grid;
  grid-template-columns: 34px minmax(220px, 1.5fr) minmax(70px, 0.55fr) minmax(80px, 0.6fr) minmax(82px, 0.55fr) minmax(70px, 0.5fr) minmax(116px, 0.7fr) 36px;
  align-items: center;
  gap: 0;
}

.resource-table-head {
  min-height: 34px;
  color: #dbe3e5;
  font-size: 0.78rem;
  font-weight: 820;
}

.resource-table-head span,
.resource-table-row span {
  min-width: 0;
  overflow: hidden;
  padding: 0 0.52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-table-row {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.14);
  color: #dbe3e5;
  text-align: left;
}

.resource-table-row + .resource-table-row {
  margin-top: 0.22rem;
}

.resource-table-row.is-selected {
  border-color: rgba(80, 151, 224, 0.58);
  background: rgba(45, 101, 179, 0.34);
}

.row-check {
  width: 0.95rem;
  height: 0.95rem;
  justify-self: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  padding: 0;
}

.row-star {
  color: #aab4b8;
  text-align: center;
}

.mobile-resource-card {
  display: none;
}

.status-pill {
  display: inline-flex;
  justify-content: center;
  min-width: 86px;
  border-radius: 999px;
  background: rgba(94, 230, 168, 0.24);
  color: #67f09c;
  padding: 0.15rem 0.55rem;
  font-weight: 850;
}

.status-pill.warning {
  background: rgba(255, 209, 102, 0.2);
  color: #ffd166;
}

.status-pill.failed {
  background: rgba(255, 107, 107, 0.22);
  color: #ff8888;
}

.overview-dashboard {
  display: grid;
  gap: 1rem;
}

.mobile-overview-root {
  display: none;
}

.overview-mobile-detail {
  display: grid;
  gap: 0.7rem;
}

.mobile-detail-card {
  display: grid;
  gap: 0.65rem;
}

.mobile-card-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mobile-card-title h3 {
  margin: 0;
}

.mobile-card-title b {
  margin-left: auto;
}

.mobile-info-list {
  display: grid;
  gap: 0.45rem;
}

.mobile-info-list p {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.7rem;
}

.mobile-chip-row,
.mobile-signal-list {
  display: grid;
  gap: 0.45rem;
}

.mobile-chip-row {
  display: flex;
  flex-wrap: wrap;
}

.mobile-signal-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 0.2rem 0.55rem;
  align-items: start;
  text-align: left;
}

.mobile-signal-row small {
  grid-column: 2;
}

.mobile-signal-row em {
  grid-row: 1 / span 2;
  grid-column: 3;
  font-style: normal;
}

.status-banner,
.auth-doctor-strip,
.health-panel,
.recent-panel {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  padding: 1rem;
}

.auth-doctor-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.auth-doctor-strip strong {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-doctor-strip em {
  border-radius: 999px;
  background: rgba(94, 230, 168, 0.18);
  color: #c9ffe0;
  padding: 0.24rem 0.55rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
}

.auth-doctor-strip > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-doctor-strip button:first-of-type {
  margin-left: auto;
}

.status-banner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.status-banner span:nth-of-type(2) {
  margin-left: auto;
  color: #dce4e6;
  font-size: 0.82rem;
}

.status-banner b {
  border-radius: 9px;
  background: rgba(94, 230, 168, 0.26);
  color: #dfffee;
  padding: 0.42rem 0.65rem;
  font-size: 0.78rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric-card {
  display: grid;
  min-height: 100px;
  align-content: space-between;
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  text-align: left;
}

.metric-card span {
  color: #18b9ff;
  font-size: 1.05rem;
}

.metric-card strong {
  display: block;
  font-size: 1.45rem;
}

.metric-card em {
  color: #b4bec2;
  font-style: normal;
  font-size: 0.85rem;
}

.health-panel h3,
.recent-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.72rem;
}

.panel-title-row h3 {
  margin: 0;
}

.panel-title-row b {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #dce4e6;
  padding: 0.22rem 0.5rem;
  font-size: 0.76rem;
}

.signal-list {
  display: grid;
  gap: 0;
}

.signal-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 38px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  padding: 0.42rem 0;
  color: #dbe3e5;
  text-align: left;
}

.signal-row:first-child {
  border-top: 0;
}

.signal-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-row b {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.48rem;
  font-size: 0.72rem;
}

.health-panel > div:not(.panel-title-row):not(.signal-list) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.health-chip {
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  color: #f2f8f7;
  font-size: 0.82rem;
  font-weight: 790;
}

.health-chip.running {
  background: rgba(94, 230, 168, 0.24);
}

.health-chip.pending {
  background: rgba(255, 209, 102, 0.24);
}

.health-chip.failed {
  background: rgba(255, 107, 107, 0.24);
}

.health-chip.other {
  background: rgba(255, 255, 255, 0.14);
}

.recent-panel p {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  color: #cbd5d8;
}

.recent-panel p + p {
  margin-top: 0.6rem;
}

.recent-panel span {
  color: var(--good);
  font-size: 0.8rem;
}

.recent-panel em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}

.resource-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.78rem;
  text-align: left;
}

.terminal-card,
.port-forward-card,
.rollout-card {
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.terminal-card span,
.port-forward-card span,
.rollout-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

#describe-output,
#values-output,
#manifest-output,
#unified-logs-output,
#exec-output {
  min-height: 320px;
  color: #d8e9ef;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.resource-row.is-selected {
  border-color: rgba(157, 224, 216, 0.44);
  background: rgba(157, 224, 216, 0.1);
}

.resource-name {
  display: block;
  font-weight: 820;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.16rem 0.46rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 740;
}

.health {
  display: inline-flex;
  min-width: 74px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.24rem 0.5rem;
  color: #06100d;
  font-size: 0.74rem;
  font-weight: 850;
}

.health.ready {
  background: var(--good);
}

.health.warning {
  background: var(--warn);
}

.health.failed {
  background: var(--bad);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.mobile-detail-back {
  display: none;
}

.detail-actions button {
  min-width: 40px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem;
}

.tabs button {
  min-height: 34px;
  padding: 0.4rem 0.65rem;
}

.tabs button.is-active {
  border-color: rgba(157, 224, 216, 0.42);
  background: rgba(157, 224, 216, 0.16);
}

.detail-body {
  min-height: 0;
  overflow: hidden;
}

.tab-panel {
  display: none;
  height: 100%;
  overflow: auto;
  padding: 1rem;
}

.tab-panel.is-active {
  display: block;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.overview-inspector {
  display: grid;
  gap: 1rem;
  height: 100%;
  align-content: start;
  border-radius: 14px;
  background: #252a2b;
  padding: 1rem;
}

.overview-inspector-grid {
  display: grid;
  gap: 0;
}

.inspector-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #d7dee0;
}

.inspector-row span {
  color: #aeb8bc;
  font-size: 0.82rem;
}

.inspector-row strong {
  min-width: 0;
  overflow: hidden;
  font-weight: 790;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector-row button {
  min-width: 30px;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #aeb8bc;
  padding: 0;
}

.overview-inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.9rem;
}

.overview-inspector-actions button,
.inspector-footer button {
  min-height: 32px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.38rem 0.7rem;
}

.write-audit {
  display: grid;
  gap: 0.45rem;
}

.write-audit div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.write-audit p {
  color: #aeb8bc;
  font-size: 0.84rem;
}

.write-audit p strong {
  display: block;
  color: #d7dee0;
}

.write-audit p span {
  color: var(--muted);
  font-size: 0.76rem;
}

.inspector-footer {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.info-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.85rem;
}

.info-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.info-card strong {
  display: block;
  margin-top: 0.25rem;
}

#yaml-editor {
  width: 100%;
  min-height: 410px;
  resize: vertical;
  background: #070a0f;
  color: #d9fff8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.5;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.detail-pane.is-terminal .editor-actions {
  display: none;
}

#apply-status {
  color: var(--accent);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

#logs-output,
#terminal-output {
  color: #d8e9ef;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.events-list {
  display: grid;
  gap: 0.55rem;
}

.event-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem;
}

.event-item strong {
  display: block;
}

.event-item span {
  color: var(--muted);
  font-size: 0.78rem;
}

.terminal-workspace {
  display: grid;
  gap: 0.8rem;
}

.terminal-resource-card {
  display: grid;
  gap: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.85rem;
}

.terminal-card-head,
.terminal-control-row,
.terminal-status-row,
.terminal-session-tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.terminal-card-head {
  justify-content: space-between;
}

.terminal-card-head strong,
.terminal-card-head small {
  display: block;
}

.terminal-card-head strong {
  font-size: 0.92rem;
}

.terminal-card-head strong span {
  margin-right: 0.35rem;
  color: #e2f0f0;
}

.terminal-card-head mark {
  margin-left: 0.42rem;
  border-radius: 999px;
  background: rgba(45, 101, 179, 0.42);
  color: #75bfff;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
}

.terminal-card-head small,
.terminal-status-row,
.terminal-ready span,
.terminal-notes p {
  color: var(--muted);
}

.terminal-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.42rem;
}

.terminal-card-actions button,
.terminal-control-row button,
.terminal-session-tabs > span,
.terminal-session-tabs button,
.terminal-prompt button,
.terminal-command-row button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 30px;
  border-radius: 7px;
  padding: 0.3rem 0.62rem;
  font-size: 0.78rem;
}

.terminal-status-row {
  min-height: 54px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0.7rem;
}

.terminal-status-row em {
  color: #aeb8bc;
  font-style: normal;
}

.terminal-status-row b {
  margin-left: auto;
  color: #c9d3d5;
  font: 0.78rem "SFMono-Regular", Consolas, monospace;
}

.muted-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: #9ba4a8;
}

.terminal-session-tabs {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.25rem;
}

.terminal-session-tabs > span.is-active {
  border-color: #1684ff;
  background: rgba(22, 132, 255, 0.22);
}

.terminal-session-tabs > span span {
  color: #b7c1c5;
}

.terminal-control-row {
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.16);
  padding: 0.5rem;
}

.terminal-control-row span {
  color: #c9d3d5;
  font-size: 0.8rem;
  font-weight: 760;
}

.terminal-control-row select {
  min-width: 260px;
  flex: 1;
  min-height: 32px;
  padding-block: 0.35rem;
}

#terminal-output {
  min-height: 220px;
  max-height: 300px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 10%, rgba(157, 224, 216, 0.05), transparent 28%),
    rgba(8, 12, 15, 0.55);
  padding: 0.75rem;
}

.terminal-prompt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
}

.terminal-command-help {
  color: #aeb8bc;
  font-size: 0.78rem;
  line-height: 1.35;
}

.terminal-quick-commands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.terminal-quick-commands button {
  min-height: 30px;
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  color: #d8e9ef;
  font: 0.76rem "SFMono-Regular", Consolas, monospace;
}

.terminal-prompt span {
  color: var(--accent);
  font-weight: 850;
}

#terminal-input {
  width: 100%;
  background: transparent;
}

.terminal-inspector {
  display: grid;
  gap: 0.9rem;
}

.terminal-ready {
  display: grid;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
}

.terminal-command-list {
  display: grid;
  gap: 0.45rem;
}

.terminal-command-list h3,
.terminal-notes h3 {
  margin: 0;
  font-size: 0.94rem;
}

.terminal-command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.45rem;
}

.terminal-command-row button:first-child {
  justify-content: start;
  background: rgba(255, 255, 255, 0.07);
  color: #eef6f7;
  font-family: "SFMono-Regular", Consolas, monospace;
  text-align: left;
}

.terminal-notes {
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.85rem;
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .detail-pane {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 740px) {
  .demo-header,
  .demo-intro,
  .pane-head,
  .detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-cues {
    justify-content: flex-start;
  }

  .window-titlebar {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .content-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .resource-search,
  .toolbar-actions,
  .toolbar-actions label {
    width: 100%;
  }

  .window-titlebar label {
    grid-template-columns: 1fr;
  }

  .summary-strip,
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  body {
    background: #f4f5f8;
    color: #111315;
  }

  .demo-shell {
    width: min(1180px, 100vw);
    padding: 0;
  }

  .demo-intro {
    display: none;
  }

  .app-window {
    max-height: none;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .window-titlebar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
    border-bottom: 1px solid rgba(17, 19, 21, 0.1);
    background: rgba(255, 255, 255, 0.94);
    padding-inline: 1rem;
  }

  .chrome-cluster {
    display: none;
  }

  .window-title {
    grid-column: 1;
    min-width: 0;
  }

  .toolbar-actions {
    grid-column: 2;
  }

  .window-title select {
    border-color: rgba(17, 19, 21, 0.12);
    background: #f3f3f5;
    color: #111315;
  }

  .toolbar-actions button:not(.ghost-button),
  .window-titlebar button {
    border-color: rgba(17, 19, 21, 0.1);
    background: #f3f3f5;
    color: #111315;
    box-shadow: none;
  }

  .workspace-shell {
    background: #fff;
  }

  .workspace {
    grid-template-areas: "content detail";
    grid-template-columns: minmax(320px, 0.82fr) minmax(440px, 1.18fr);
    height: calc(100svh - 126px);
    min-height: 720px;
    background: #fff;
  }

  .sidebar {
    display: none;
  }

  .content-pane,
  .detail-pane {
    border-color: rgba(17, 19, 21, 0.1);
    background: #fff;
    color: #111315;
  }

  .content-pane {
    grid-area: content;
    grid-column: 1;
    border-right: 1px solid rgba(17, 19, 21, 0.12);
  }

  .detail-pane {
    grid-area: detail;
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    border-top: 0;
  }

  .pane-head,
  .detail-head {
    min-height: 116px;
    align-items: end;
    border-bottom: 0;
    padding: 1.1rem 1.25rem 0.85rem;
  }

  .pane-head {
    display: grid;
    gap: 0.75rem;
  }

  .detail-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    background: #fff;
  }

  .detail-actions button {
    display: inline-grid;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    border-color: rgba(17, 19, 21, 0.1);
    border-radius: 999px;
    background: #f3f3f5;
    color: #1684ff;
    padding: 0;
    opacity: 1;
  }

  .pane-head .eyebrow,
  .detail-head .eyebrow {
    display: none;
  }

  .pane-head h2,
  .detail-head h2 {
    color: #111315;
    font-size: 1.75rem;
    line-height: 1.1;
  }

  .resource-search {
    width: 100%;
  }

  .resource-search input {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: #eeeeef;
    color: #111315;
    padding-inline: 1rem;
  }

  .resource-list {
    overflow: auto;
    padding: 0.7rem 1.25rem 1.25rem;
  }

  .overview-dashboard > :not(.mobile-overview-root) {
    display: none;
  }

  .mobile-overview-root {
    display: grid;
  }

  .mobile-cluster-card {
    display: none;
  }

  .mobile-auth-card {
    display: none;
  }

  .mobile-section-group {
    display: grid;
    gap: 0.75rem;
    background: transparent;
  }

  .mobile-section-group h3 {
    display: none;
  }

  .mobile-section-row,
  .resource-table-row {
    display: grid;
    min-height: 86px;
    border: 1px solid rgba(17, 19, 21, 0.08);
    border-radius: 8px;
    background: #f8f8f9;
    color: #111315;
    padding: 0.78rem;
    box-shadow: 0 1px 0 rgba(17, 19, 21, 0.03);
  }

  .mobile-section-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-section-row span,
  .mobile-section-row b,
  .mobile-section-row em {
    display: none;
  }

  .mobile-section-row strong {
    display: grid;
    gap: 0.16rem;
    font-size: 1.08rem;
  }

  .mobile-section-row small {
    color: #8b8d92;
    font-size: 0.88rem;
    font-weight: 520;
    line-height: 1.35;
  }

  .kind-tabs {
    overflow-x: auto;
    border-radius: 999px;
    background: #eeeeef;
    scrollbar-width: none;
  }

  .kind-tabs::-webkit-scrollbar {
    display: none;
  }

  .kind-tabs button {
    min-height: 34px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111315;
  }

  .kind-tabs button.is-active {
    background: #fff;
    color: #1684ff;
    box-shadow: 0 1px 0 rgba(17, 19, 21, 0.08);
  }

  .table-actions,
  .resource-table-head {
    display: none;
  }

  .resource-table {
    display: grid;
    gap: 0.75rem;
    border-top: 0;
    padding-top: 0.8rem;
  }

  .resource-table-row {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .resource-table-row > span:not(.mobile-resource-card) {
    display: none;
  }

  .mobile-resource-card {
    display: grid;
    gap: 0.24rem;
    padding: 0;
    overflow: visible;
    white-space: normal;
  }

  .mobile-resource-card span {
    padding: 0;
    overflow: visible;
    white-space: normal;
  }

  .mobile-resource-main {
    display: flex;
    gap: 0.55rem;
    align-items: center;
  }

  .mobile-resource-main strong {
    overflow: hidden;
    color: #111315;
    font-size: 1.08rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-resource-main em {
    min-width: auto;
    font-style: normal;
  }

  .mobile-resource-namespace,
  .mobile-resource-detail {
    color: #8b8d92;
    font-size: 0.92rem;
  }

  .mobile-resource-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
  }

  .mobile-resource-chips b,
  .mobile-chip-row b,
  .mobile-card-title b,
  .mobile-signal-row b {
    border-radius: 999px;
    background: #e9eaec;
    padding: 0.15rem 0.52rem;
    color: #8b8d92;
    font-size: 0.78rem;
  }

  .status-pill {
    min-width: auto;
    background: #e9eaec;
    color: #7f8489;
    padding-inline: 0.48rem;
  }

  .status-pill.ready {
    background: rgba(45, 209, 111, 0.18);
    color: #21b85b;
  }

  .status-pill.warning,
  .signal-warning {
    background: rgba(255, 149, 0, 0.14);
    color: #ff9500;
  }

  .status-pill.failed,
  .signal-critical {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
  }

  .tabs {
    flex-wrap: nowrap;
    gap: 0;
    border-bottom: 0;
    padding: 0 1.25rem 0.9rem;
  }

  .tabs button {
    flex: 1 1 0;
    min-height: 34px;
    border: 0;
    border-radius: 0;
    background: #eeeeef;
    color: #111315;
  }

  .tabs button:first-child {
    border-radius: 999px 0 0 999px;
  }

  .tabs button:last-child {
    border-radius: 0 999px 999px 0;
  }

  .tabs button.is-active {
    background: #fff;
    box-shadow: 0 1px 0 rgba(17, 19, 21, 0.08);
  }

  .detail-body,
  .tab-panel {
    overflow: auto;
  }

  .tab-panel {
    padding: 0 1.25rem 1.25rem;
  }

  .overview-inspector,
  .info-card,
  .event-item,
  .terminal-card,
  .port-forward-card,
  .rollout-card,
  .mobile-detail-card {
    border-color: rgba(17, 19, 21, 0.08);
    border-radius: 8px;
    background: #f8f8f9;
    color: #111315;
  }

  .overview-inspector {
    height: auto;
    padding: 0;
    background: transparent;
  }

  .mobile-detail-card {
    padding: 0.85rem;
  }

  .mobile-card-title span {
    color: #1684ff;
  }

  .mobile-info-list p {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .mobile-info-list span,
  .mobile-card-copy,
  .mobile-signal-row small {
    color: #8b8d92;
  }

  .mobile-signal-row {
    min-height: 58px;
    border-color: rgba(17, 19, 21, 0.08);
    background: #eeeeef;
    color: #111315;
  }

  #yaml-editor,
  #describe-output,
  #values-output,
  #manifest-output,
  #unified-logs-output,
  #exec-output,
  #logs-output {
    border-color: rgba(17, 19, 21, 0.08);
    background: #f8f8f9;
    color: #111315;
  }
}

@media (max-width: 760px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    background:
      radial-gradient(circle at 50% 8%, rgba(70, 76, 82, 0.42), transparent 18rem),
      linear-gradient(180deg, #050607, #000 72%);
    color: #f5f6f9;
    font-size: 14px;
  }

  button:hover,
  button:focus-visible {
    transform: none;
  }

  button,
  select,
  input,
  textarea {
    min-height: 42px;
  }

  .demo-header {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    min-height: 62px;
    align-items: center;
    justify-content: initial;
    gap: 0.7rem;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(5, 6, 7, 0.88);
    padding: 0.68rem max(1rem, env(safe-area-inset-right)) 0.68rem
      max(1rem, env(safe-area-inset-left));
    backdrop-filter: blur(18px);
  }

  .brand {
    grid-column: 1;
    min-width: 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand span:last-child {
    overflow: hidden;
    max-width: 44vw;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .demo-header nav {
    grid-column: 2;
    min-width: 0;
    gap: 0.35rem;
    overflow-x: auto;
    justify-content: flex-start;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .demo-header nav::-webkit-scrollbar {
    display: none;
  }

  .demo-header nav a {
    color: rgba(245, 246, 249, 0.72);
    padding: 0.42rem 0.55rem;
    font-size: 0.86rem;
  }

  .demo-header nav .nav-back {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .demo-panel {
    top: auto;
    right: max(0.65rem, env(safe-area-inset-right));
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    left: max(0.65rem, env(safe-area-inset-left));
    width: auto;
    max-height: min(78svh, 620px);
    border-radius: 24px;
  }

  .settings-panel {
    border-color: rgba(17, 19, 21, 0.08);
    background: #f5f6f9;
    color: #111315;
  }

  .settings-panel .eyebrow {
    display: none;
  }

  .settings-panel .demo-panel-head {
    align-items: center;
  }

  .settings-panel .demo-panel-head h2 {
    color: #111315;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .settings-panel .demo-panel-head button {
    min-width: 72px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #111315;
  }

  .mobile-settings-section {
    gap: 0;
    border-top: 0;
    border-radius: 24px;
    background: #fff;
    padding: 0.55rem 1rem;
  }

  .mobile-settings-section h3 {
    margin: 0.75rem 0 0.5rem;
    color: #8a8d91;
    font-size: 1rem;
  }

  .mobile-settings-section label,
  .mobile-settings-section p,
  .mobile-settings-section button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 48px;
    border: 0;
    border-radius: 0;
    border-top: 1px solid rgba(17, 19, 21, 0.08);
    background: transparent;
    color: #111315;
    padding: 0;
    text-align: left;
  }

  .mobile-settings-section label:first-of-type {
    border-top: 0;
  }

  .mobile-settings-section label span {
    color: #111315;
    font-size: 1rem;
    font-weight: 520;
  }

  .mobile-settings-section select {
    min-width: 130px;
    border: 0;
    background: transparent;
    color: #8a8d91;
    padding: 0;
    text-align: right;
  }

  .mobile-settings-section button {
    color: #1684ff;
    font-weight: 520;
  }

  .mobile-settings-section p {
    color: #111315;
  }

  .mobile-settings-section p strong {
    color: #8a8d91;
    font-weight: 520;
  }

  .settings-grid {
    border-radius: 24px;
    background: #fff;
    padding: 0.55rem 1rem;
  }

  .settings-grid button {
    border: 0;
    border-top: 1px solid rgba(17, 19, 21, 0.08);
    border-radius: 0;
    background: transparent;
    color: #111315;
    padding-inline: 0;
  }

  .settings-grid button:first-child {
    border-top: 0;
  }

  .settings-grid span {
    color: #8a8d91;
  }

  .settings-toggle {
    border-top: 0;
    border-radius: 24px;
    background: #fff;
    color: #111315;
    padding: 0.9rem 1rem;
  }

  .panel-actions {
    grid-template-columns: 1fr;
  }

  .device-preview {
    inset: max(0.55rem, env(safe-area-inset-top)) max(0.4rem, env(safe-area-inset-right))
      max(0.55rem, env(safe-area-inset-bottom)) max(0.4rem, env(safe-area-inset-left));
    gap: 0.7rem;
    border-radius: 24px;
    padding: 0.7rem;
  }

  .device-preview-head {
    align-items: center;
  }

  .device-preview-head h2 {
    font-size: 1rem;
  }

  .device-preview-head > div:last-child {
    flex-wrap: nowrap;
  }

  .device-preview-head button {
    min-width: 34px;
    min-height: 34px;
    padding-inline: 0.55rem;
  }

  .device-frame {
    padding: 0.35rem;
  }

  .device-frame iframe,
  .device-frame[data-frame="tablet"] iframe {
    width: 100%;
    height: calc(100svh - 116px);
    border-radius: 34px;
  }

  .demo-shell {
    position: relative;
    width: min(438px, 100vw);
    height: calc(100svh - 62px);
    gap: 0;
    margin-inline: auto;
    padding: 0.85rem max(0.45rem, env(safe-area-inset-left)) 1.2rem;
  }

  body.is-embed .demo-shell {
    height: 100svh;
    padding: max(0.45rem, env(safe-area-inset-top)) max(0.45rem, env(safe-area-inset-right))
      max(0.45rem, env(safe-area-inset-bottom)) max(0.45rem, env(safe-area-inset-left));
  }

  .demo-intro {
    display: none;
  }

  .app-window {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    position: relative;
    overflow: hidden;
    height: 100%;
    max-height: none;
    min-height: 0;
    margin: 0 auto;
    border: clamp(8px, 2.4vw, 12px) solid #090a0c;
    border-radius: clamp(38px, 10vw, 54px);
    background: #f5f6f9;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.22),
      0 0 0 3px rgba(255, 255, 255, 0.05),
      0 34px 90px rgba(0, 0, 0, 0.58);
  }

  .app-window::before {
    position: absolute;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;
    height: 78px;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(245, 246, 249, 0.98), rgba(245, 246, 249, 0.86));
    content: "";
  }

  .app-window::after {
    position: absolute;
    z-index: 21;
    top: 18px;
    left: 50%;
    width: 116px;
    height: 33px;
    border-radius: 999px;
    background: #000;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    content: "";
    transform: translateX(-50%);
  }

  .window-titlebar::before {
    position: absolute;
    z-index: 22;
    top: 26px;
    left: 28px;
    color: #111315;
    font-size: 0.86rem;
    font-weight: 760;
    content: "13:33";
  }

  .window-titlebar::after {
    position: absolute;
    z-index: 22;
    top: 25px;
    right: 24px;
    color: #111315;
    font-size: 0.78rem;
    font-weight: 800;
    content: "•••  ▰";
  }

  .window-titlebar {
    position: relative;
    z-index: 23;
    top: auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: end;
    gap: 0.65rem;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    min-height: 138px;
    padding: 5.15rem 1rem 1rem;
    backdrop-filter: none;
  }

  .chrome-cluster {
    display: none;
  }

  .window-title {
    display: none;
  }

  .window-title strong {
    display: none;
  }

  .window-title select {
    min-width: 0;
    min-height: 38px;
    border-color: rgba(17, 19, 21, 0.1);
    background: rgba(255, 255, 255, 0.78);
    padding-inline: 0.6rem;
    color: #111315;
    font-size: 0.86rem;
  }

  .toolbar-actions {
    display: grid;
    grid-template-columns: repeat(3, 38px);
    width: auto;
    gap: 0.38rem;
  }

  .toolbar-actions button:not(.ghost-button) {
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    border: 0;
    background: rgba(255, 255, 255, 0.86);
    color: #1684ff;
    box-shadow: 0 10px 26px rgba(16, 20, 24, 0.1);
  }

  .toolbar-actions .ghost-button {
    display: none;
  }

  .workspace-shell,
  .workspace {
    position: relative;
    min-height: 0;
    overflow: hidden;
  }

  .workspace {
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    background: #f5f6f9;
    padding-bottom: 0;
  }

  .content-pane {
    order: 1;
  }

  .detail-pane {
    order: 2;
  }

  .sidebar {
    position: absolute;
    z-index: 14;
    right: 0.75rem;
    bottom: max(0.6rem, env(safe-area-inset-bottom));
    left: 0.75rem;
    width: auto;
    order: 3;
    display: block;
    border: 1px solid rgba(157, 224, 216, 0.2);
    border-color: rgba(17, 19, 21, 0.1);
    border-radius: 999px;
    background: rgba(250, 250, 250, 0.9);
    padding: 0.55rem max(0.65rem, env(safe-area-inset-left));
    box-shadow: 0 -14px 36px rgba(16, 20, 24, 0.14);
    backdrop-filter: blur(18px);
  }

  .context-search,
  .sidebar-title,
  .sidebar-divider,
  .context-list,
  .readonly-toggle {
    display: none;
  }

  .section-list {
    display: none;
  }

  .phone-shortcut-bar {
    display: flex;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .phone-shortcut-bar::-webkit-scrollbar {
    display: none;
  }

  .phone-shortcut-bar button {
    flex: 0 0 38px;
    display: grid;
    width: 38px;
    min-width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #111315;
    padding: 0;
    font-size: 1.14rem;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(17, 19, 21, 0.04);
  }

  .phone-shortcut-bar button.is-active {
    background: rgba(22, 132, 255, 0.12);
    color: #1684ff;
    box-shadow: inset 0 0 0 1px rgba(22, 132, 255, 0.13);
  }

  .phone-shortcut-bar button:disabled {
    opacity: 0.34;
  }

  .section-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 48px;
    min-height: 44px;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111315;
    padding: 0.42rem 0.58rem;
  }

  .section-button.is-active {
    background: rgba(22, 132, 255, 0.12);
    color: #1684ff;
  }

  .section-label {
    gap: 0;
    font-size: 0;
    text-align: center;
  }

  .section-icon {
    width: auto;
    color: currentColor;
    font-size: 1.18rem;
  }

  .section-count {
    display: none;
  }

  .content-pane,
  .detail-pane {
    display: block;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 0;
    background: #f5f6f9;
    color: #111315;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .content-pane::-webkit-scrollbar,
  .detail-pane::-webkit-scrollbar {
    display: none;
  }

  .pane-head,
  .detail-head {
    align-items: stretch;
    border-bottom-color: rgba(17, 19, 21, 0.08);
    padding: 1rem;
  }

  .pane-head {
    display: grid;
    gap: 0.75rem;
  }

  .detail-head {
    display: grid;
    grid-template-areas:
      "actions"
      "title";
    gap: 0.85rem;
    border-radius: 0;
    background: #f5f6f9;
  }

  .detail-head > div:first-child {
    grid-area: title;
  }

  .pane-head .eyebrow,
  .detail-head .eyebrow {
    color: #1684ff;
  }

  .pane-head h2,
  .detail-head h2 {
    color: #111315;
    font-size: clamp(1.7rem, 8vw, 2.55rem);
  }

  .resource-search {
    width: 100%;
  }

  .app-window.is-phone-search .resource-search {
    position: absolute;
    z-index: 16;
    right: 1rem;
    bottom: calc(max(0.6rem, env(safe-area-inset-bottom)) + 72px);
    left: 1rem;
    width: auto;
    border-radius: 999px;
    background: rgba(250, 250, 250, 0.9);
    padding: 0.32rem;
    box-shadow: 0 -12px 30px rgba(16, 20, 24, 0.12);
    backdrop-filter: blur(18px);
  }

  .resource-search input {
    border: 0;
    border-radius: 999px;
    background: #e9e9ec;
    color: #111315;
    padding-inline: 1rem;
  }

  .summary-strip {
    display: none;
  }

  .summary-card {
    min-width: 0;
    padding: 0.62rem;
  }

  .summary-card strong {
    font-size: 1rem;
  }

  .resource-list {
    overflow: visible;
    padding: 0.75rem 1rem calc(6.8rem + env(safe-area-inset-bottom));
  }

  .app-window.is-overview .detail-pane {
    display: none;
  }

  .app-window.is-resource-list .detail-pane,
  .app-window.is-resource-detail .content-pane {
    display: none;
  }

  .mobile-overview-root {
    display: grid;
    gap: 1.55rem;
  }

  .overview-dashboard > :not(.mobile-overview-root) {
    display: none;
  }

  .mobile-cluster-card {
    display: grid;
    gap: 0.5rem;
    border: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    padding: 1rem;
    box-shadow:
      0 1px 0 rgba(17, 19, 21, 0.06),
      0 18px 38px rgba(16, 20, 24, 0.07);
  }

  .mobile-cluster-card button {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 34px;
    border: 0;
    background: transparent;
    color: #111315;
    padding: 0;
    text-align: left;
  }

  .mobile-cluster-card button span {
    color: #8a8d91;
    font-size: 1.2rem;
  }

  .mobile-cluster-card button strong {
    overflow: hidden;
    font-size: 1.12rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-cluster-card button em {
    color: #8a8d91;
    font-style: normal;
    font-weight: 850;
  }

  .mobile-cluster-card div {
    display: flex;
    gap: 0.55rem;
    padding-left: 1.9rem;
  }

  .mobile-cluster-card b {
    border-radius: 999px;
    background: #ececef;
    padding: 0.18rem 0.58rem;
    color: #8a8d91;
    font-size: 0.8rem;
  }

  .mobile-cluster-card p {
    padding-left: 1.9rem;
    color: #8a8d91;
    font-weight: 720;
  }

  .mobile-auth-card {
    display: grid;
    gap: 0.52rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.95rem;
    box-shadow:
      0 1px 0 rgba(17, 19, 21, 0.05),
      0 18px 38px rgba(16, 20, 24, 0.06);
  }

  .mobile-auth-card div:first-child {
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .mobile-auth-card div:first-child span {
    color: #111315;
    font-size: 1.35rem;
  }

  .mobile-auth-card strong {
    color: #111315;
    font-size: 1.08rem;
  }

  .mobile-auth-card b {
    margin-left: auto;
    border-radius: 999px;
    background: #ececef;
    padding: 0.14rem 0.48rem;
    color: #8a8d91;
    font-size: 0.78rem;
  }

  .mobile-auth-card p {
    color: #8a8d91;
  }

  .mobile-auth-actions {
    display: flex;
    gap: 0.5rem;
  }

  .mobile-auth-actions button {
    display: grid;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    border: 1px solid rgba(17, 19, 21, 0.08);
    border-radius: 12px;
    background: #f1f2f4;
    color: #1684ff;
    padding: 0;
    font-size: 1.05rem;
  }

  .mobile-auth-actions button:last-child {
    color: #ff3b30;
  }

  .mobile-section-group {
    display: grid;
    gap: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    padding: 1rem 0.9rem;
    box-shadow:
      0 1px 0 rgba(17, 19, 21, 0.05),
      0 18px 38px rgba(16, 20, 24, 0.06);
  }

  .mobile-section-group h3 {
    margin: 0 0 0.8rem;
    padding-inline: 0.4rem;
    color: #8a8d91;
    font-size: 1.24rem;
  }

  .mobile-section-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.7rem;
    min-height: 58px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #111315;
    padding: 0.45rem 0.4rem;
    text-align: left;
  }

  .mobile-section-row + .mobile-section-row {
    border-top: 1px solid rgba(17, 19, 21, 0.08);
  }

  .mobile-section-row span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(17, 19, 21, 0.09);
    border-radius: 9px;
    background: #f6f6f7;
    color: #8a8d91;
  }

  .mobile-section-row strong {
    display: grid;
    gap: 0.12rem;
    font-size: 1.12rem;
  }

  .mobile-section-row small {
    color: #8a8d91;
    font-size: 0.84rem;
    font-weight: 540;
    line-height: 1.3;
  }

  .mobile-section-row b {
    border-radius: 999px;
    background: #ececef;
    padding: 0.1rem 0.48rem;
    color: #8a8d91;
    font-size: 0.82rem;
  }

  .mobile-section-row em {
    color: #b8bbc0;
    font-style: normal;
    font-size: 1.35rem;
  }

  .mobile-detail-back {
    display: inline-flex;
  }

  .kind-tabs {
    overflow-x: auto;
    border-radius: 999px;
    background: transparent;
    scrollbar-width: none;
  }

  .kind-tabs::-webkit-scrollbar {
    display: none;
  }

  .kind-tabs button {
    min-width: auto;
    flex: 0 0 auto;
    border: 1px solid rgba(17, 19, 21, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #111315;
    padding: 0.45rem 0.72rem;
  }

  .kind-tabs button + button {
    margin-left: 0.45rem;
  }

  .kind-tabs button.is-active {
    border-color: rgba(22, 132, 255, 0.26);
    background: rgba(22, 132, 255, 0.12);
    color: #1684ff;
  }

  .table-actions {
    display: none;
  }

  .resource-table {
    display: grid;
    gap: 0.85rem;
    border-top: 0;
    padding-top: 0.85rem;
  }

  .resource-table-head {
    display: none;
  }

  .resource-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 94px;
    border-color: rgba(17, 19, 21, 0.08);
    border-radius: 14px;
    background: #f8f8f9;
    padding: 0.88rem;
    color: #111315;
    box-shadow: 0 1px 0 rgba(17, 19, 21, 0.035);
  }

  .resource-table-row > span:not(.mobile-resource-card):not(.row-star) {
    display: none;
  }

  .resource-table-row > span:nth-child(3),
  .resource-table-row > span:nth-child(4),
  .resource-table-row > span:nth-child(5),
  .resource-table-row > span:nth-child(6) {
    display: none;
  }

  .status-pill {
    min-width: 74px;
    background: #e9eaec;
    color: #7f8489;
    padding-inline: 0.45rem;
  }

  .status-pill.ready {
    background: rgba(45, 209, 111, 0.18);
    color: #21b85b;
  }

  .status-pill.warning {
    background: rgba(255, 149, 0, 0.16);
    color: #ff9500;
  }

  .status-pill.failed {
    background: rgba(255, 59, 48, 0.14);
    color: #ff3b30;
  }

  .mobile-resource-card {
    display: grid;
    min-width: 0;
    gap: 0.24rem;
    padding: 0;
    overflow: visible;
    text-align: left;
    white-space: normal;
  }

  .mobile-resource-card span {
    padding: 0;
    overflow: visible;
    white-space: normal;
  }

  .mobile-resource-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.55rem;
  }

  .mobile-resource-main strong {
    overflow: hidden;
    font-size: 1.05rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-resource-main em {
    min-width: auto;
    flex: 0 0 auto;
    font-style: normal;
  }

  .mobile-resource-namespace,
  .mobile-resource-detail {
    color: #8a8d91;
    font-size: 0.9rem;
  }

  .mobile-resource-chips {
    display: flex;
    gap: 0.42rem;
    margin-top: 0.2rem;
  }

  .mobile-resource-chips b {
    border-radius: 999px;
    background: #e9eaec;
    padding: 0.12rem 0.5rem;
    color: #8a8d91;
    font-size: 0.78rem;
  }

  .metric-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .status-banner,
  .auth-doctor-strip,
  .recent-panel p {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .status-banner {
    flex-direction: column;
    border-color: rgba(17, 19, 21, 0.08);
    background: #f8f8f9;
    color: #111315;
  }

  .status-banner span:nth-of-type(2) {
    margin-left: 0;
  }

  .auth-doctor-strip {
    display: none;
  }

  .detail-actions {
    grid-area: actions;
    justify-content: flex-start;
  }

  .detail-actions button {
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #1684ff;
    padding: 0;
    box-shadow: 0 10px 26px rgba(16, 20, 24, 0.08);
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 0;
    padding: 0.35rem 1rem 0.75rem;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: #e9e9ec;
    color: #111315;
  }

  .tabs button.is-active {
    background: #fff;
    color: #111315;
    box-shadow: 0 1px 0 rgba(17, 19, 21, 0.06);
  }

  .detail-body,
  .tab-panel {
    overflow: visible;
  }

  .tab-panel {
    padding: 0.9rem 0.9rem calc(6.8rem + env(safe-area-inset-bottom));
  }

  .overview-inspector {
    height: auto;
    border-radius: 14px;
    background: #f8f8f9;
    padding: 0.85rem;
  }

  .inspector-row {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.65rem;
  }

  .inspector-row span {
    grid-column: 1 / -1;
  }

  .terminal-card-head,
  .terminal-control-row,
  .terminal-status-row,
  .terminal-session-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .terminal-resource-card {
    border-color: rgba(17, 19, 21, 0.08);
    background: #f8f8f9;
    color: #111315;
  }

  .terminal-card-head strong span,
  .terminal-prompt span {
    color: #1684ff;
  }

  .terminal-card-head small,
  .terminal-status-row,
  .terminal-ready span,
  .terminal-notes p,
  .terminal-command-help {
    color: #8a8d91;
  }

  .terminal-card-head mark {
    background: rgba(22, 132, 255, 0.12);
    color: #1684ff;
  }

  .terminal-status-row,
  .terminal-control-row,
  .terminal-session-tabs {
    background: #eceef1;
  }

  .terminal-card-actions {
    justify-content: flex-start;
  }

  .terminal-card-actions button,
  .terminal-control-row button {
    flex: 1 1 auto;
  }

  .terminal-status-row b {
    margin-left: 0;
  }

  .terminal-control-row select {
    min-width: 0;
    width: 100%;
  }

  .terminal-session-tabs button {
    width: 100%;
  }

  #terminal-output {
    min-height: 210px;
    max-height: none;
    border-color: rgba(17, 19, 21, 0.08);
    background: #111315;
    color: #e9eef2;
  }

  .terminal-prompt {
    grid-template-columns: auto 1fr;
  }

  .terminal-prompt button {
    grid-column: 2;
    width: 100%;
  }

  .terminal-command-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .terminal-command-row button:last-child {
    display: none;
  }

  .terminal-quick-commands {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .terminal-quick-commands::-webkit-scrollbar {
    display: none;
  }

  .terminal-quick-commands button {
    flex: 0 0 auto;
    border: 1px solid rgba(17, 19, 21, 0.08);
    background: #fff;
    color: #111315;
  }

  #yaml-editor,
  #describe-output,
  #values-output,
  #manifest-output,
  #unified-logs-output,
  #exec-output {
    min-height: 240px;
    border-color: rgba(17, 19, 21, 0.08);
    background: #f8f8f9;
    color: #111315;
    font-size: 0.8rem;
  }
}

@media (max-width: 420px) {
  .demo-header {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .demo-header .brand span:last-child {
    display: none;
  }

  .app-window {
    margin-inline: 0;
    border-width: 8px;
    border-radius: clamp(36px, 11vw, 48px);
  }

  .window-titlebar {
    grid-template-columns: 1fr;
    border-radius: 0;
    padding-top: 5.1rem;
  }

  .toolbar-actions {
    grid-template-columns: repeat(3, 38px);
    width: auto;
    justify-content: end;
  }

  .toolbar-actions .ghost-button {
    display: none;
  }

  .summary-strip {
    grid-template-columns: 1fr;
  }

  .resource-table-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-table-row > span:nth-child(7),
  .row-star {
    display: none;
  }

  .sidebar {
    right: 0.45rem;
    left: 0.45rem;
    width: auto;
  }
}
