:root {
  --desk-navy: #061b33;
  --desk-navy-soft: #0d2f55;
  --desk-blue: #2f63ed;
  --desk-blue-soft: #eef3ff;
  --desk-ink: #13233d;
  --desk-muted: #697791;
  --desk-line: #dce3ee;
  --desk-line-soft: #edf1f6;
  --desk-canvas: #f7f9fc;
  --desk-surface: #ffffff;
  --desk-success: #179c66;
  --desk-warning: #ea6041;
  --desk-radius: 12px;
  --desk-nav-width: 82px;
  --desk-command-height: 82px;
}

body.theme-control-room {
  color: var(--desk-ink);
  background: var(--desk-canvas);
}

body.theme-control-room .surface::after {
  display: none;
}

.sr-only,
.primary-navigation__item > span:not(.ion-icon):not(.navigation-badge) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ion-search::before {
  content: "\f4a5";
}

body.theme-control-room.is-authenticated {
  min-width: 920px;
  overflow: hidden;
  background: var(--desk-canvas);
}

body.theme-control-room.is-authenticated .page-shell {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}

body.theme-control-room.is-authenticated .layout {
  display: block;
  height: 100vh;
  padding: 0;
}

body.theme-control-room.is-authenticated .app-header,
body.theme-control-room.is-authenticated .site-footer {
  display: none;
}

body.theme-control-room.is-authenticated .workspace-shell {
  display: grid;
  grid-template-columns: var(--desk-nav-width) minmax(0, 1fr);
  grid-template-rows: var(--desk-command-height) minmax(0, 1fr);
  grid-template-areas:
    "sidebar commandbar"
    "sidebar content";
  width: 100%;
  height: 100vh;
  gap: 0;
  padding: 0;
}

/* Global navigation */

body.theme-control-room.is-authenticated .sidebar.panel {
  position: relative;
  inset: auto;
  z-index: 30;
  grid-area: sidebar;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: var(--desk-nav-width);
  height: 100vh;
  gap: 42px;
  padding: 20px 11px;
  border: 0;
  border-right: 1px solid #173452;
  border-radius: 0;
  background: var(--desk-navy);
  box-shadow: none;
  backdrop-filter: none;
}

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid #31557c;
  border-radius: 12px;
  background: #173c6c;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

body.theme-control-room .primary-navigation {
  display: grid;
  width: 100%;
  gap: 18px;
}

body.theme-control-room .primary-navigation__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #9fb0c5;
  text-decoration: none;
}

body.theme-control-room .primary-navigation__item::before {
  display: none;
}

body.theme-control-room .primary-navigation__item:hover {
  border-color: #294a6d;
  background: #0d2b4a;
  color: #fff;
}

body.theme-control-room .primary-navigation__item.is-active {
  border-color: #3e6ef1;
  background: #123867;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(47, 99, 237, 0.18);
}

body.theme-control-room .primary-navigation__item .ion-icon {
  width: 24px;
  height: 24px;
  font-size: 1.35rem;
}

body.theme-control-room .navigation-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--desk-blue);
  font-size: 0.63rem;
}

/* Workspace and profile command bar */

.workspace-commandbar {
  position: relative;
  z-index: 25;
  grid-area: commandbar;
  display: grid;
  grid-template-columns: minmax(215px, 255px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  height: var(--desk-command-height);
  padding: 12px 18px;
  border-bottom: 1px solid var(--desk-line);
  background: var(--desk-surface);
}

.workspace-commandbar__workspace,
.workspace-commandbar__profiles,
.workspace-commandbar__operator {
  min-width: 0;
}

.workspace-commandbar__profiles {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace-commandbar__operator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-commandbar .sidebar-management {
  position: relative;
  width: 100%;
}

.workspace-commandbar .current-workspace-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--desk-line);
  border-radius: var(--desk-radius);
  background: #fff;
  box-shadow: none;
  color: var(--desk-ink);
}

.workspace-commandbar .current-workspace-card:hover {
  border-color: #aebbd0;
  background: #fbfcfe;
}

.workspace-commandbar .current-workspace-card__copy small:first-child,
.workspace-commandbar .current-workspace-card__copy span {
  display: none;
}

.workspace-commandbar .current-workspace-card__copy strong {
  color: var(--desk-ink);
  font-size: 0.91rem;
  font-weight: 700;
}

.workspace-commandbar .current-workspace-card > .ion-icon:first-child,
.workspace-commandbar .current-workspace-card > .ion-icon:last-child {
  color: #71809a;
}

.workspace-commandbar .workspace-popover {
  right: auto;
  bottom: auto;
  left: 0;
  top: calc(100% + 9px);
  width: 380px;
  max-height: calc(100vh - 106px);
  padding: 18px;
  border: 1px solid var(--desk-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(22, 42, 73, 0.18);
  backdrop-filter: none;
}

.workspace-commandbar .workspace-popover .surface,
.workspace-commandbar .workspace-popover .metric {
  background: #f8fafc;
  box-shadow: none;
}

.profile-roster,
.profile-roster > .list {
  display: flex;
  align-items: center;
  flex-direction: row;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.profile-roster {
  flex: 1 1 auto;
  height: 58px;
}

.profile-roster::-webkit-scrollbar,
.profile-roster > .list::-webkit-scrollbar {
  display: none;
}

.profile-roster > .list {
  width: 100%;
}

.profile-switcher {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  flex: 0 0 auto;
  min-width: 152px;
  height: 56px;
  gap: 9px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--desk-line);
  border-radius: 12px;
  background: #fff;
  color: var(--desk-ink);
  text-align: left;
}

.profile-switcher:hover {
  border-color: #aebbd0;
  background: #fbfcff;
}

.profile-switcher.is-active {
  border-color: #b9c9fa;
  border-bottom: 3px solid var(--desk-blue);
  background: #f5f7ff;
}

.profile-switcher img,
.profile-switcher__fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-switcher__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--desk-blue-soft);
  color: var(--desk-blue);
  font-size: 0.74rem;
  font-weight: 800;
}

.profile-switcher__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.profile-switcher__name,
.profile-switcher__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-switcher__name {
  font-size: 0.86rem;
  font-weight: 700;
}

.profile-switcher__meta {
  color: var(--desk-muted);
  font-size: 0.65rem;
}

.profile-roster__empty {
  margin: 0;
  color: var(--desk-muted);
  font-size: 0.82rem;
}

.profile-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.profile-search .ion-icon {
  position: absolute;
  left: 14px;
  z-index: 1;
  color: #71809a;
  pointer-events: none;
}

.profile-search input {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0 12px 0 42px;
  border-color: var(--desk-line);
  border-radius: 12px;
  background: #fff;
  color: transparent;
  cursor: pointer;
  transition: width 160ms ease, color 160ms ease;
}

.profile-search input:focus,
.profile-search input:not(:placeholder-shown) {
  width: 190px;
  color: var(--desk-ink);
  cursor: text;
}

.workspace-commandbar .operator-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  min-width: 160px;
  gap: 10px;
  padding: 0;
  border: 0;
  color: var(--desk-ink);
}

.workspace-commandbar .operator-card > .ion-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0efff;
  color: #5548e8;
}

.workspace-commandbar .operator-card strong {
  font-size: 0.83rem;
}

.workspace-commandbar .operator-card small {
  color: var(--desk-muted);
  font-size: 0.68rem;
}

.workspace-commandbar .sidebar-logout {
  justify-content: center;
  width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--desk-line);
  color: #71809a;
}

.workspace-commandbar .sidebar-logout span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.workspace-commandbar .sidebar-logout:hover {
  border-color: #c5a9b4;
  background: #fff8fa;
  color: #b24663;
}

/* Focused editor workbench */

body.theme-control-room.is-authenticated .content.panel {
  grid-area: content;
  width: 100%;
  height: calc(100vh - var(--desk-command-height));
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--desk-canvas);
  box-shadow: none;
}

.empty-state {
  height: 100%;
  padding: 80px 32px;
  background: var(--desk-canvas);
}

.editor-shell {
  display: grid;
  grid-template-columns: 260px minmax(480px, 1fr) 320px;
  grid-template-rows: 210px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #fff;
}

.editor-shell.hidden {
  display: none !important;
}

.profile-heading {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  gap: 26px;
  padding: 24px 30px;
  border: 0;
  border-bottom: 1px solid var(--desk-line);
  border-radius: 0;
  background: #f9fbff;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-portrait {
  width: 148px;
  height: 148px;
  border: 1px solid #d5deea;
  border-radius: 50%;
  object-fit: cover;
}

.profile-heading__copy {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.profile-heading__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.profile-heading h2 {
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.profile-state {
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid #bfe7d4;
  border-radius: 10px;
  background: #eaf8f1;
  color: #157c54;
  font-size: 0.8rem;
}

.profile-state > span {
  display: none;
}

.profile-meta {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.profile-heading__signals {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.profile-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--desk-muted);
  font-size: 0.82rem;
}

.profile-signal .ion-icon {
  width: 25px;
  height: 25px;
  color: #6c7b94;
  font-size: 1.12rem;
}

.profile-signal--readiness strong {
  color: var(--desk-blue);
  font-size: 1rem;
}

.profile-signal--whatsapp .ion-icon {
  color: var(--desk-success);
}

.profile-signal--autosave[data-state="saving"],
.profile-signal--autosave[data-state="pending"] {
  color: #5f6d84;
}

.profile-signal--autosave[data-state="saved"] .ion-icon {
  color: var(--desk-success);
}

.profile-signal--autosave[data-state="error"],
.profile-signal--autosave[data-state="error"] .ion-icon {
  color: var(--desk-warning);
}

.profile-heading__actions {
  display: none;
}

/* Section navigation */

.profile-tabs {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  display: grid;
  align-content: start;
  min-height: 0;
  gap: 0;
  margin: 0;
  padding: 20px 14px;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid var(--desk-line);
  border-radius: 0;
  background: #fbfcfe;
  box-shadow: none;
  backdrop-filter: none;
}

.profile-tab {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  width: 100%;
  min-height: 92px;
  gap: 12px;
  padding: 12px 8px;
  color: #64728a;
  text-decoration: none;
}

.profile-tab::after {
  display: none;
}

.profile-tab::before {
  position: absolute;
  top: 48px;
  bottom: -12px;
  left: 25px;
  width: 1px;
  background: #dfe5ee;
  content: "";
}

.profile-tab:last-child::before {
  display: none;
}

.profile-tab__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d9e0eb;
  border-radius: 50%;
  background: #f3f5f8;
  color: #4f5e77;
  font-size: 0.8rem;
  font-weight: 750;
}

.profile-tab > span:last-child {
  display: grid;
  gap: 7px;
  padding-top: 5px;
}

.profile-tab strong {
  color: var(--desk-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.profile-tab small {
  color: #8290a6;
  font-size: 0.72rem;
  line-height: 1.35;
}

.profile-tab:hover,
.profile-tab.is-active {
  color: var(--desk-blue);
}

.profile-tab.is-active .profile-tab__number {
  border-color: var(--desk-blue);
  background: var(--desk-blue);
  color: #fff;
}

.profile-tab.is-active strong,
.profile-tab.is-active small {
  color: var(--desk-blue);
}

/* Section content */

body.theme-control-room #escort-editor-form {
  grid-column: 2;
  grid-row: 2;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 24px 30px 42px;
  overflow-y: auto;
  background: #fff;
  scrollbar-gutter: stable;
}

.profile-subtabs {
  display: none;
  align-items: center;
  width: min(520px, 100%);
  min-height: 50px;
  margin: 0 0 24px;
  padding: 4px;
  border: 1px solid var(--desk-line);
  border-radius: 12px;
  background: #fafbfe;
}

.profile-subtabs button {
  flex: 1 1 0;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--desk-muted);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.profile-subtabs button:hover {
  color: var(--desk-blue);
}

.profile-subtabs button.is-active {
  background: #fff;
  color: var(--desk-blue);
  box-shadow: 0 1px 3px rgba(20, 38, 69, 0.12);
}

.editor-shell[data-active-section="profile"] .profile-subtabs {
  display: flex;
}

body.theme-control-room #escort-editor-form > section,
body.theme-control-room #escort-editor-form > .editor-grid,
body.theme-control-room #escort-editor-form > .editor-actions {
  display: none !important;
}

.editor-shell[data-active-section="profile"][data-profile-subsection="personal"] #profile-basics,
.editor-shell[data-active-section="profile"][data-profile-subsection="contact"] #profile-basics,
.editor-shell[data-active-section="profile"][data-profile-subsection="availability"] #profile-basics {
  display: grid !important;
}

.editor-shell[data-active-section="profile"][data-profile-subsection="import"] #profile-settings {
  display: grid !important;
}

.editor-shell[data-active-section="services"] #profile-services,
.editor-shell[data-active-section="services"] #service-template-section,
.editor-shell[data-active-section="services"] #pricing-section,
.editor-shell[data-active-section="communication"] #integration-section,
.editor-shell[data-active-section="bookings"] #booking-section,
.editor-shell[data-active-section="media"] #media-library-section,
.editor-shell[data-active-section="ai"] #profile-communication,
.editor-shell[data-active-section="ai"] #chat-section {
  display: grid !important;
}

.editor-shell[data-profile-subsection="personal"] .profile-section__card--basis,
.editor-shell[data-profile-subsection="contact"] .profile-section__card--contact,
.editor-shell[data-profile-subsection="availability"] .profile-section__card--contact {
  display: grid;
}

.editor-shell[data-profile-subsection="personal"] .profile-section__card--contact,
.editor-shell[data-profile-subsection="contact"] .profile-section__card--basis,
.editor-shell[data-profile-subsection="availability"] .profile-section__card--basis {
  display: none;
}

.editor-shell[data-profile-subsection="contact"] .profile-section__card--contact .contact-notes-grid,
.editor-shell[data-profile-subsection="availability"] .profile-section__card--contact > .field-grid {
  display: none;
}

body.theme-control-room .profile-section--basics,
body.theme-control-room .profile-section--secondary,
body.theme-control-room .editor-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

body.theme-control-room .surface,
body.theme-control-room .profile-section__card,
body.theme-control-room .booking-card,
body.theme-control-room .integration-card {
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--desk-line-soft);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

body.theme-control-room .surface h3,
body.theme-control-room .surface h4,
body.theme-control-room .profile-section__card h3 {
  color: var(--desk-ink);
}

body.theme-control-room .surface h3::before {
  display: none;
}

body.theme-control-room h3 {
  font-size: 1.15rem;
}

body.theme-control-room .muted {
  color: var(--desk-muted);
}

body.theme-control-room label {
  margin-bottom: 0.45rem;
  color: #53627b;
  font-size: 0.76rem;
  font-weight: 650;
}

body.theme-control-room input,
body.theme-control-room select,
body.theme-control-room textarea {
  min-height: 48px;
  padding: 0.78rem 0.88rem;
  border: 1px solid #d8e0eb;
  border-radius: 9px;
  background: #fff;
  color: var(--desk-ink);
  box-shadow: none;
}

body.theme-control-room textarea {
  line-height: 1.5;
}

body.theme-control-room input:hover,
body.theme-control-room select:hover,
body.theme-control-room textarea:hover {
  border-color: #aebbd0;
}

body.theme-control-room input:focus,
body.theme-control-room select:focus,
body.theme-control-room textarea:focus {
  border-color: var(--desk-blue);
  box-shadow: 0 0 0 3px rgba(47, 99, 237, 0.12);
}

body.theme-control-room .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

body.theme-control-room .profile-section__card--basis .field-grid:last-child,
body.theme-control-room .profile-section__card--contact > .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-section__intro {
  display: grid;
  gap: 8px;
}

body.theme-control-room .editor-shell[data-profile-subsection="personal"] .profile-section__card--basis .field-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.editor-shell[data-profile-subsection="personal"] .profile-section__card--basis .field-grid > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 66px;
  padding: 9px 0;
  border-bottom: 1px solid var(--desk-line-soft);
}

.editor-shell[data-profile-subsection="personal"] .profile-section__card--basis .field-grid > div > label {
  margin: 0;
  color: #53627b;
  font-size: 0.84rem;
}

.contact-notes-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-notes-grid textarea {
  height: auto;
  min-height: 74px;
  background: #fff;
  backdrop-filter: none;
}

.contact-advanced {
  position: static;
  width: 100%;
  border-color: var(--desk-line);
  background: #fafbfe;
  box-shadow: none;
}

body.theme-control-room .button {
  min-height: 44px;
  border: 1px solid var(--desk-blue);
  border-radius: 9px;
  background: var(--desk-blue);
  box-shadow: none;
  color: #fff;
}

body.theme-control-room .button:hover {
  background: #204fcf;
  box-shadow: none;
}

body.theme-control-room .button--secondary,
body.theme-control-room .button--ghost {
  border-color: #cbd5e3;
  background: #fff;
  color: var(--desk-blue);
}

body.theme-control-room .button--secondary:hover,
body.theme-control-room .button--ghost:hover {
  border-color: #9fb4eb;
  background: #f5f7ff;
  color: #204fcf;
}

.profile-settings,
#service-template-section,
#media-library-section,
#pricing-section,
#integration-section,
#booking-section,
#chat-section,
#profile-communication,
#profile-services {
  margin-bottom: 28px;
}

.template-format-card,
.prompt-mode-card,
.provider-choice label,
.dynamic-row,
.booking-card,
.media-library-card,
.integration-card,
.notice-card {
  border-color: var(--desk-line);
  background: #fafbfe;
  box-shadow: none;
}

.prompt-mode-card:has(input:checked),
.template-format-card:has(input:checked) {
  border-color: #9fb4eb;
  background: #f5f7ff;
}

/* Right profile check */

.readiness-inspector {
  position: relative;
  inset: auto;
  grid-column: 3;
  grid-row: 2;
  display: block;
  min-width: 0;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 20px 18px;
  overflow-y: auto;
  border-left: 1px solid var(--desk-line);
  background: #fbfcfe;
}

.readiness-inspector .inspector-card--progress,
.readiness-inspector .inspector-card:nth-of-type(3),
.readiness-inspector .inspector-card:nth-of-type(4),
.readiness-inspector .inspector-note {
  display: none;
}

.readiness-inspector .inspector-card:nth-of-type(2) {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--desk-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.readiness-inspector .inspector-card:nth-of-type(2) > h3 {
  margin: 0;
  padding: 18px 18px 4px;
  font-size: 1rem;
}

.readiness-inspector .inspector-card:nth-of-type(2) > h3::after {
  display: block;
  margin-top: 6px;
  color: var(--desk-muted);
  font-size: 0.72rem;
  font-weight: 500;
  content: "So vollständig ist dein Profil.";
}

.readiness-checklist {
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid var(--desk-line);
}

.readiness-checklist li {
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  min-height: 68px;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--desk-line-soft);
}

.readiness-checklist li > span:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.readiness-checklist strong {
  color: var(--desk-ink);
  font-size: 0.78rem;
}

.readiness-checklist small {
  max-width: 98px;
  color: var(--desk-warning);
  font-size: 0.66rem;
  text-align: right;
}

.readiness-checklist .is-complete small {
  color: var(--desk-success);
}

.inspector-preview-button {
  width: calc(100% - 32px);
  margin: 16px;
}

/* Auth stays simple and centered */

body.theme-control-room:not(.is-authenticated) {
  background: #f4f7fb;
}

body.theme-control-room:not(.is-authenticated) .app-header,
body.theme-control-room:not(.is-authenticated) .auth-panel,
body.theme-control-room:not(.is-authenticated) .surface {
  border-color: var(--desk-line);
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

body.theme-control-room:not(.is-authenticated) .brand-mark {
  background: var(--desk-blue);
  box-shadow: none;
}

/* Responsive desktop and tablet */

@media (max-width: 1240px) {
  .workspace-commandbar {
    grid-template-columns: 210px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .profile-switcher {
    min-width: 132px;
  }

  .profile-switcher__meta {
    display: none;
  }

  .workspace-commandbar .operator-card {
    min-width: 42px;
    grid-template-columns: 40px;
  }

  .workspace-commandbar .operator-card > span:last-child {
    display: none;
  }

  .editor-shell {
    grid-template-columns: 230px minmax(430px, 1fr) 285px;
  }
}

@media (max-width: 1040px) {
  :root {
    --desk-nav-width: 70px;
  }

  .workspace-commandbar {
    grid-template-columns: 190px minmax(0, 1fr) auto;
  }

  .profile-switcher {
    min-width: 120px;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .profile-switcher img,
  .profile-switcher__fallback {
    width: 34px;
    height: 34px;
  }

  .editor-shell {
    grid-template-columns: 208px minmax(0, 1fr);
  }

  .readiness-inspector {
    display: none;
  }

  .profile-heading {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .profile-portrait {
    width: 118px;
    height: 118px;
  }
}

@media (max-width: 920px) {
  body.theme-control-room.is-authenticated {
    min-width: 0;
    overflow: auto;
  }

  body.theme-control-room.is-authenticated .workspace-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas:
      "sidebar"
      "commandbar"
      "content";
    height: auto;
    min-height: 100vh;
  }

  body.theme-control-room.is-authenticated .sidebar.panel {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 62px;
    gap: 10px;
    padding: 7px 12px;
    border-right: 0;
    border-bottom: 1px solid #173452;
  }

  .sidebar-brand {
    width: 42px;
    height: 42px;
  }

  body.theme-control-room .primary-navigation {
    display: flex;
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
    gap: 6px;
  }

  body.theme-control-room .primary-navigation__item {
    width: 44px;
    height: 44px;
  }

  .workspace-commandbar {
    position: sticky;
    top: 62px;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
    height: auto;
    min-height: 76px;
  }

  .workspace-commandbar__operator {
    display: none;
  }

  body.theme-control-room.is-authenticated .content.panel {
    height: calc(100vh - 138px);
  }

  .editor-shell {
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-rows: 170px minmax(0, 1fr);
  }

  .profile-heading {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }

  .profile-portrait {
    width: 94px;
    height: 94px;
  }

  .profile-heading h2 {
    font-size: 1.8rem;
  }

  .profile-heading__signals {
    gap: 12px;
  }

  .profile-signal {
    font-size: 0.7rem;
  }

  body.theme-control-room #escort-editor-form {
    padding: 20px;
  }

  body.theme-control-room .field-grid,
  body.theme-control-room .profile-section__card--basis .field-grid:last-child,
  body.theme-control-room .profile-section__card--contact > .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-search input {
    transition: none;
  }
}
