.studio-shell {
  min-height: 100vh;
  background: #0a0e11;
}

.studio-topbar {
  display: flex;
  height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid #27333b;
  background: #0d1216;
}

.studio-brand .brand-mark {
  transform: scale(0.84);
}

.studio-context {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-context > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.studio-context strong {
  font-size: 0.82rem;
}

.studio-context span {
  color: #6f818c;
  font-family: Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.studio-context .avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #486b80;
  border-radius: 50%;
  color: #c3dfef;
  background: #17232b;
  font-size: 0.68rem;
}

.studio-frame {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}

.studio-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 27px 16px 20px;
  border-right: 1px solid #27333b;
  background: #0d1216;
}

.nav-label {
  margin: 18px 12px 7px;
  color: #53636d;
  font-family: Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.nav-label:first-child {
  margin-top: 0;
}

.nav-button {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 11px;
  border: 1px solid transparent;
  background: transparent;
  color: #82929c;
  text-align: left;
}

.nav-button:hover {
  color: #e7edf0;
  background: #131a1f;
}

.nav-button.active {
  border-color: #344550;
  border-left-color: #ff7a1a;
  color: #fff;
  background: #151d22;
}

.nav-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #344650;
  color: #7ca9c1;
  font-family: Consolas, monospace;
  font-size: 0.58rem;
}

.nav-icon.accent {
  border-color: #86502b;
  color: #ff9f59;
}

.nav-spacer {
  flex: 1;
}

.studio-main {
  position: relative;
  min-width: 0;
  padding: 42px clamp(24px, 4vw, 58px);
  overflow: hidden;
}

.library-page {
  max-width: 1420px;
  margin: 0 auto;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 38px;
}

.page-heading h1 {
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 3.3vw, 3.8rem);
}

.page-heading p:last-child {
  margin-bottom: 0;
  color: #8797a1;
}

.compact-button {
  width: auto;
  min-width: 205px;
  gap: 18px;
  margin: 0;
}

.secondary-button {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid #3a4a54;
  background: #11181d;
  color: #c1ccd2;
  font-family: Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.secondary-button:hover:not(:disabled) {
  border-color: #79b8dc;
  color: #fff;
}

.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 17px;
}

.sequence-tile {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid #2c3942;
  background:
    linear-gradient(135deg, rgba(121, 184, 220, 0.03), transparent 45%),
    #11171c;
  color: #eef3f5;
  text-align: left;
}

.sequence-tile:hover:not(:disabled) {
  border-color: #5d7f92;
  transform: translateY(-2px);
}

.sequence-tile strong {
  margin-top: 42px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.sequence-tile small {
  margin-top: 9px;
  color: #74848e;
  font-family: Consolas, monospace;
  font-size: 0.61rem;
  letter-spacing: 0.05em;
}

.new-sequence-tile {
  justify-content: center;
  align-items: center;
  border-style: dashed;
  color: #a9bbc5;
  text-align: center;
}

.new-sequence-tile strong {
  margin-top: 18px;
}

.tile-plus {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #ff7a1a;
  color: #ff984f;
  font-size: 1.6rem;
}

.tile-status-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  color: #667780;
  font-family: Consolas, monospace;
  font-size: 0.59rem;
}

.sequence-status {
  color: #9bbacc;
}

.sequence-status.published {
  color: #74d6a2;
}

.tile-arrow {
  margin-top: auto;
  color: #79b8dc;
  font-family: Consolas, monospace;
  font-size: 0.64rem;
}

.source-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.source-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border: 1px solid #2d3a43;
  background: #11171c;
}

.source-glyph {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid #45677a;
  color: #9bc7df;
  font-family: Consolas, monospace;
  font-size: 0.7rem;
}

.source-card h3 {
  margin: 5px 0;
}

.source-card p {
  margin: 0;
  color: #74858f;
  font-family: Consolas, monospace;
  font-size: 0.65rem;
}

.source-card .source-evidence {
  margin-top: 9px;
  color: #a5b5bd;
  line-height: 1.55;
}

.source-card .source-digest {
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #61717a;
}

.source-kind,
.readiness {
  font-family: Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.source-kind {
  color: #79b8dc;
}

.readiness {
  padding: 7px 9px;
  border: 1px solid #725033;
  color: #e2a572;
}

.readiness.measured {
  border-color: #3d7056;
  color: #74d6a2;
}

.page-footnote {
  max-width: 830px;
  margin: 24px 0 0;
  color: #70818b;
  font-size: 0.78rem;
  line-height: 1.6;
}

.large-empty-state {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  border: 1px dashed #2c3942;
  color: #75858e;
  text-align: center;
}

.large-empty-state > span {
  display: grid;
  width: 78px;
  height: 78px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid #3b4c56;
  color: #79b8dc;
  font-family: Consolas, monospace;
}

.large-empty-state strong {
  font-family: Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.large-empty-state p {
  max-width: 420px;
  margin-top: 10px;
}

.studio-notice {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 20;
  max-width: min(540px, calc(100vw - 40px));
  padding: 14px 17px;
  border: 1px solid #486b80;
  border-left: 3px solid #79b8dc;
  background: #10191f;
  color: #c0d9e7;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  font-size: 0.78rem;
}

.editor-page {
  max-width: 1600px;
  margin: 0 auto;
}

.editor-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.back-button {
  padding: 9px 0;
  border: 0;
  background: transparent;
  color: #79b8dc;
  font-family: Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.draft-state {
  margin-right: 8px;
  color: #71828c;
  font-family: Consolas, monospace;
  font-size: 0.6rem;
}

.sequence-name-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.sequence-name-input {
  min-width: min(650px, 62vw);
  height: auto;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid #34434d;
  background: transparent;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.sequence-name-input:focus {
  border-color: #79b8dc;
  box-shadow: none;
}

.sequence-name-row > p {
  max-width: 430px;
  margin-bottom: 7px;
  color: #75858f;
  font-size: 0.76rem;
  line-height: 1.55;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(215px, 0.7fr) minmax(390px, 1.4fr) minmax(270px, 0.9fr);
  min-height: 650px;
  border: 1px solid #29363e;
  background: #0d1216;
}

.step-library,
.sequence-canvas,
.step-inspector {
  min-width: 0;
  padding: 20px;
}

.step-library,
.sequence-canvas {
  border-right: 1px solid #29363e;
}

.sequence-canvas {
  background:
    linear-gradient(rgba(121, 184, 220, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 184, 220, 0.025) 1px, transparent 1px),
    #0a0f12;
  background-size: 32px 32px;
}

.editor-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: #aab7be;
  font-family: Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.editor-panel-heading small {
  color: #586872;
  font-size: 0.56rem;
}

.library-step {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
  padding: 13px 11px;
  border: 1px solid #2d3a42;
  background: #11181c;
  color: #dae2e6;
  text-align: left;
}

.library-step:hover {
  border-color: #56778a;
}

.library-step > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.library-step strong {
  font-size: 0.78rem;
}

.library-step small {
  overflow: hidden;
  color: #657680;
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-step b {
  color: #ff8f3f;
  font-size: 1.1rem;
}

.step-library-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #436274;
  color: #79b8dc;
  font-family: Consolas, monospace;
  font-size: 0.55rem;
}

.library-lock-note {
  margin-top: 24px;
  padding: 15px;
  border-left: 2px solid #5d7482;
  background: #10171b;
}

.library-lock-note strong {
  color: #839ba8;
  font-family: Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}

.library-lock-note p {
  margin: 8px 0 0;
  color: #64747d;
  font-size: 0.7rem;
  line-height: 1.5;
}

.canvas-empty {
  display: grid;
  min-height: 510px;
  place-items: center;
  align-content: center;
  color: #667781;
  text-align: center;
}

.canvas-empty span {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px dashed #48616f;
  color: #79b8dc;
  font-size: 1.4rem;
}

.canvas-empty strong {
  font-family: Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
}

.canvas-empty p {
  margin-top: 8px;
  font-size: 0.76rem;
}

.step-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sequence-step {
  display: grid;
  grid-template-columns: 29px 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 15px 13px;
  border: 1px solid #2c3a43;
  background: #12191e;
  cursor: pointer;
}

.sequence-step.selected {
  border-color: #5e879e;
  box-shadow: inset 3px 0 0 #79b8dc;
}

.step-order {
  color: #5c6c75;
  font-family: Consolas, monospace;
  font-size: 0.62rem;
}

.step-kind-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #755033;
  color: #ff9f59;
  font-family: Consolas, monospace;
  font-size: 0.59rem;
}

.step-kind-icon.apply_os {
  border-color: #426b82;
  color: #8cc5e3;
}

.sequence-step > div:nth-child(3) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.sequence-step strong {
  font-size: 0.82rem;
}

.sequence-step small {
  overflow: hidden;
  color: #6c7d86;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enabled-chip,
.disabled-chip {
  font-family: Consolas, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
}

.enabled-chip {
  color: #74d6a2;
}

.disabled-chip {
  color: #7a858a;
}

.step-buttons {
  display: flex;
  gap: 3px;
}

.step-buttons button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #33434c;
  background: #0d1317;
  color: #82939d;
}

.step-buttons button:hover:not(:disabled) {
  border-color: #6c8a9a;
  color: #fff;
}

.step-buttons button:disabled {
  cursor: default;
  opacity: 0.25;
}

.step-buttons .remove-step {
  color: #d9877e;
}

.inspector-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inspector-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.inspector-form label > span,
.locked-setting span {
  color: #788993;
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inspector-form input,
.inspector-form select {
  min-height: 42px;
  font-size: 0.75rem;
}

.checkbox-row {
  flex-direction: row !important;
  align-items: center;
}

.checkbox-row input {
  width: 17px;
  min-height: 17px;
  accent-color: #ff7a1a;
}

.inspector-divider {
  height: 1px;
  background: #2b3840;
}

.locked-setting {
  padding: 11px;
  border: 1px solid #27343c;
  background: #0c1115;
}

.locked-setting span {
  display: block;
  margin-bottom: 5px;
  color: #576771;
  font-size: 0.55rem;
}

.locked-setting strong {
  color: #a8b6bd;
  font-size: 0.7rem;
  font-weight: 600;
}

.destructive-warning {
  margin: 0;
  padding: 11px;
  border-left: 2px solid #ff7a1a;
  background: rgba(255, 122, 26, 0.06);
  color: #c99a78;
  font-size: 0.68rem;
  line-height: 1.5;
}

.inspector-empty {
  display: grid;
  min-height: 410px;
  place-items: center;
  align-content: center;
  color: #667781;
  text-align: center;
}

.inspector-empty span {
  margin-bottom: 10px;
  color: #79b8dc;
  font-size: 1.4rem;
}

@media (max-width: 1150px) {
  .studio-frame {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .studio-nav .nav-label,
  .studio-nav .nav-button > span:last-child {
    display: none;
  }

  .studio-nav {
    align-items: center;
  }

  .nav-button {
    padding-inline: 9px;
  }

  .editor-grid {
    grid-template-columns: 210px minmax(370px, 1fr);
  }

  .step-inspector {
    grid-column: 1 / -1;
    border-top: 1px solid #29363e;
  }
}

@media (max-width: 760px) {
  .studio-frame {
    display: block;
  }

  .studio-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-direction: row;
    justify-content: center;
    padding: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #27333b;
  }

  .nav-spacer {
    display: none;
  }

  .studio-main {
    padding: 28px 16px;
  }

  .page-heading,
  .sequence-name-row,
  .editor-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-actions {
    flex-wrap: wrap;
  }

  .sequence-name-input {
    min-width: 0;
    width: 100%;
  }

  .editor-grid {
    display: block;
  }

  .step-library,
  .sequence-canvas {
    border-right: 0;
    border-bottom: 1px solid #29363e;
  }

  .sequence-step {
    grid-template-columns: 24px 38px minmax(0, 1fr);
  }

  .sequence-step > .enabled-chip,
  .sequence-step > .disabled-chip,
  .step-buttons {
    grid-column: 3;
  }
}

/* Device kiosk view (/device) */
.device-shell {
  width: min(1100px, 100%);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  padding: 20px clamp(22px, 5vw, 60px) 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.device-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0;
  overflow-y: auto;
}

/* Kiosk empty state stays compact so the page fits the window without scroll. */
.device-session .empty-state {
  min-height: auto;
  padding: 26px 0;
}

.device-card,
.device-session {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 44px);
}

.device-card {
  max-width: 620px;
  margin: 0 auto;
}

.device-card h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.device-note {
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.device-session-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.device-session-head h1 {
  margin: 6px 0 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.device-role {
  align-self: center;
  padding: 6px 12px;
  border: 1px solid var(--steel-dim);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--steel);
  white-space: nowrap;
}

.device-sequence-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.device-sequence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 120ms ease, transform 120ms ease;
}

.device-sequence:hover,
.device-sequence:focus-visible {
  border-color: var(--steel);
  transform: translateY(-1px);
  outline: none;
}

.device-sequence-main h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.device-sequence-meta {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.device-sequence-status {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--success);
  border: 1px solid rgba(116, 214, 162, 0.4);
  white-space: nowrap;
}

/* Deployment progress: the staged pipeline shown while a device images itself. */
.deploy-panel {
  margin-top: 16px;
  padding: 22px 22px 24px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.deploy-headline {
  margin: 6px 0 18px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.deploy-progress-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.deploy-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--steel);
  transition: width 400ms ease;
}

.deploy-progress-fill.is-failed {
  background: var(--orange);
}

.deploy-progress-fill.is-indeterminate {
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--steel), transparent);
  animation: deploy-indeterminate 1.3s ease-in-out infinite;
}

@keyframes deploy-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.deploy-percent {
  margin: 8px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
}

.deploy-stages {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deploy-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.deploy-stage-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid var(--steel-dim);
  flex: 0 0 auto;
}

.deploy-stage.is-done {
  color: var(--success);
}

.deploy-stage.is-done .deploy-stage-dot {
  background: var(--success);
  border-color: var(--success);
}

.deploy-stage.is-active {
  color: #e7eef4;
}

.deploy-stage.is-active .deploy-stage-dot {
  border-color: var(--steel);
  box-shadow: 0 0 0 4px rgba(120, 170, 255, 0.18);
  animation: deploy-pulse 1.2s ease-in-out infinite;
}

.deploy-stage.is-failed {
  color: var(--orange);
}

.deploy-stage.is-failed .deploy-stage-dot {
  background: var(--orange);
  border-color: var(--orange);
}

@keyframes deploy-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(120, 170, 255, 0.12); }
  50% { box-shadow: 0 0 0 6px rgba(120, 170, 255, 0.26); }
}

.device-card form {
  margin-top: 18px;
}

.device-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  text-align: left;
}

.device-field > span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.device-field input {
  padding: 12px 14px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  font-size: 1rem;
}

.device-field input:focus-visible {
  outline: none;
  border-color: var(--steel);
}

.bench-code {
  margin: 12px 0 6px;
  font-family: "Cascadia Code", "Consolas", ui-monospace, monospace;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--orange);
  user-select: all;
}

.pairing-qr {
  margin: 20px auto 12px;
  width: min(280px, 70vw);
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.pairing-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.pairing-tag {
  margin: 6px 0 10px;
  font-family: "Cascadia Code", "Consolas", ui-monospace, monospace;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--orange);
  text-align: center;
  user-select: all;
}

.pairing-expired {
  margin-top: 16px;
}

.recovery-codes {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.recovery-codes ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
}

.recovery-codes li {
  font-family: "Cascadia Code", "Consolas", ui-monospace, monospace;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  user-select: all;
}

.admin-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.admin-table {
  margin: 8px 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-row:first-child {
  border-top: none;
}

.admin-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-row-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-row-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.admin-row-action {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.admin-badge {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
}

.admin-badge.on {
  color: #7ee0a2;
  background: rgba(126, 224, 162, 0.12);
}

.admin-badge.off {
  color: #ff9a8b;
  background: rgba(255, 154, 139, 0.12);
}

.admin-toggle {
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: inherit;
}

.admin-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Sign-out affordance in the top bars (admin, console, studio). */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.ghost-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: inherit;
    font: inherit;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ghost-button:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

/* Prepare Disk: informational fixed-layout panel (structure is not a choice). */
.layout-panel {
    border: 1px solid var(--line, rgba(255,255,255,.10));
    border-radius: 10px;
    padding: 14px 16px;
    margin: 4px 0 6px;
    background: rgba(255, 255, 255, 0.02);
}
.layout-panel-label {
    display: block;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    color: #6db3f2;
    margin-bottom: 10px;
}
.layout-part {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 5px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}
.layout-part:first-of-type { border-top: 0; }
.layout-part strong { font-weight: 600; }
.layout-part span { color: #9aa7b4; font-size: 0.82rem; }
.layout-note {
    margin: 10px 0 0;
    color: #9aa7b4;
    font-size: 0.78rem;
}
