@font-face { font-family: CosticonSans; src: url('/static/fonts/NotoSans-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: CosticonSans; src: url('/static/fonts/NotoSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: CosticonSans; src: url('/static/fonts/NotoSans-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --cp-bg: #f4f7fa;
  --cp-surface: #ffffff;
  --cp-sidebar: #0c2033;
  --cp-sidebar-muted: #91a5b5;
  --cp-text: #102a43;
  --cp-muted: #627789;
  --cp-border: #d9e2e9;
  --cp-border-strong: #bccbd6;
  --cp-blue: #1769aa;
  --cp-blue-dark: #0f4f83;
  --cp-blue-soft: #eaf2f8;
  --cp-green: #23845c;
  --cp-green-soft: #e6f5ef;
  --cp-amber: #d96f12;
  --cp-amber-soft: #fff1e4;
  --cp-red: #bd3d4a;
  --cp-red-soft: #fdecef;
  --cp-shadow: 0 8px 24px rgba(23, 33, 43, .07);
  font-family: CosticonSans, Arial, sans-serif;
}

/* Costicon operator control plane */
.cp-shell-admin {
  --cp-sidebar: #052b4f;
  --cp-admin-blue: #0868d7;
  --cp-admin-orange: #f58220;
  --cp-admin-canvas: #f7f9fc;
  background: var(--cp-admin-canvas);
}

.cp-shell-admin .cp-sidebar {
  background: var(--cp-sidebar);
}

.cp-shell-admin .cp-brand {
  min-height: 58px;
  margin-bottom: 18px;
}

.cp-shell-admin .cp-brand img {
  width: 38px;
  height: 38px;
}

.cp-shell-admin .cp-brand strong {
  font-size: 17px;
}

.cp-shell-admin .cp-brand span {
  margin-top: 2px;
  font-size: 9px;
}

.cp-shell-admin .cp-nav {
  gap: 6px;
}

.cp-shell-admin .cp-nav button {
  min-height: 42px;
  color: #d5e2ee;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}

.cp-shell-admin .cp-nav button svg,
.cp-admin-topbar svg,
.cp-account-menu svg,
.cp-admin-content svg {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cp-shell-admin .cp-nav button[aria-current="page"] {
  background: #0868d7;
  box-shadow: inset 3px 0 0 var(--cp-admin-orange);
}

.cp-shell-admin .cp-nav button:hover {
  background: rgba(8, 104, 215, .34);
}

.cp-operator-identity {
  display: flex !important;
  align-items: center;
  gap: 9px;
}

.cp-operator-identity > div {
  min-width: 0;
}

.cp-operator-avatar {
  display: inline-grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d8e1e9;
  border-radius: 50%;
  background: #f2f6fa;
  color: #102a43;
  font-size: 11px;
  font-weight: 700;
}

.cp-operator-identity .cp-operator-avatar {
  border-color: rgba(255, 255, 255, .75);
  background: #fff;
}

.cp-admin-topbar {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(320px, 440px) minmax(310px, 1fr);
  gap: 20px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .98);
}

.cp-admin-context,
.cp-admin-tools {
  display: flex;
  align-items: center;
}

.cp-admin-context {
  gap: 10px;
}

.cp-admin-context > strong {
  font-size: 14px;
}

.cp-admin-tools {
  justify-content: flex-end;
  gap: 16px;
}

.cp-command-search {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid var(--cp-border);
  border-radius: 5px;
  background: #fff;
  color: #6e8395;
}

.cp-command-search:focus-within {
  border-color: #7daee5;
  box-shadow: 0 0 0 2px rgba(8, 104, 215, .08);
}

.cp-command-search svg {
  width: 17px;
  height: 17px;
}

.cp-command-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cp-text);
  font-size: 11px;
}

.cp-command-search input::placeholder {
  color: #8da0b0;
}

.cp-command-search kbd {
  padding: 2px 5px;
  border: 1px solid #dce4eb;
  border-radius: 4px;
  background: #f5f7fa;
  color: #728597;
  font: 10px/1.2 inherit;
}

.cp-service-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f945f;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.cp-service-state i,
.cp-service-result i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.cp-service-state.warning {
  color: var(--cp-admin-orange);
}

.cp-admin-account {
  position: relative;
  padding-left: 14px;
  border-left: 1px solid var(--cp-border);
}

.cp-account-trigger {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cp-account-trigger > svg {
  width: 15px;
  height: 15px;
  transition: transform .14s ease;
}

.cp-account-trigger[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

.cp-account-menu {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  border: 1px solid var(--cp-border);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(10, 35, 58, .16);
  overflow: hidden;
}

.cp-account-menu-head {
  padding: 15px 16px 13px;
  border-bottom: 1px solid var(--cp-border);
}

.cp-account-menu-head strong,
.cp-account-menu-head span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-account-menu-head strong {
  font-size: 12px;
}

.cp-account-menu-head span {
  margin-top: 4px;
  color: var(--cp-muted);
  font-size: 10px;
}

.cp-account-menu a,
.cp-account-menu button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid #edf1f4;
  background: #fff;
  color: var(--cp-text);
  text-align: left;
  text-decoration: none;
  font-size: 11px;
  cursor: pointer;
}

.cp-account-menu a:hover,
.cp-account-menu button:hover {
  background: #f7f9fc;
}

.cp-account-menu .cp-account-signout {
  border-bottom: 0;
  color: var(--cp-red);
  font-weight: 700;
}

.cp-admin-page-head {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 20px 14px;
}

.cp-admin-page-head h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.cp-admin-page-head p {
  margin: 4px 0 0;
  color: var(--cp-muted);
  font-size: 11px;
}

.cp-admin-content {
  width: min(1600px, 100%);
  padding: 0 20px 40px;
}

.cp-shell-admin .cp-panel,
.cp-shell-admin .cp-detail,
.cp-admin-metrics {
  border-color: #d5dfe7;
  border-radius: 5px;
  box-shadow: none;
  overflow: hidden;
}

.cp-shell-admin .cp-panel-header {
  min-height: 46px;
}

.cp-shell-admin .cp-panel-header h2 {
  font-size: 12px;
}

.cp-shell-admin .cp-panel-header button {
  border: 0;
  background: transparent;
  color: var(--cp-admin-blue);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.cp-admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #d5dfe7;
  background: #fff;
}

.cp-admin-metric {
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-right: 1px solid var(--cp-border);
}

.cp-admin-metric:last-child {
  border-right: 0;
}

.cp-admin-metric-icon,
.cp-service-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3f7fb;
  color: var(--cp-admin-blue);
}

.cp-admin-metric-icon {
  width: 46px;
  height: 46px;
}

.cp-admin-metric-icon svg {
  width: 24px;
  height: 24px;
}

.cp-admin-metric > div {
  min-width: 0;
}

.cp-admin-metric > div > span {
  display: block;
  color: var(--cp-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.cp-admin-metric strong {
  display: block;
  margin: 6px 0 8px;
  overflow: hidden;
  color: var(--cp-text);
  font-size: 20px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-admin-metric button,
.cp-attention-row button {
  border: 0;
  background: transparent;
  color: var(--cp-admin-blue);
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.cp-admin-metric button b {
  margin-left: 4px;
  font-size: 15px;
}

.cp-attention-panel {
  margin-top: 14px;
}

.cp-attention-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px 150px 52px minmax(220px, 1fr) 180px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--cp-border);
  font-size: 11px;
}

.cp-attention-row:last-child {
  border-bottom: 0;
}

.cp-attention-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--cp-admin-orange);
}

.cp-attention-icon svg {
  width: 15px;
  height: 15px;
}

.cp-attention-row.info .cp-attention-icon,
.cp-attention-row.healthy .cp-attention-icon {
  color: var(--cp-admin-blue);
}

.cp-attention-row > b {
  color: var(--cp-admin-orange);
  font-size: 12px;
}

.cp-attention-row.info > b,
.cp-attention-row.healthy > b {
  color: var(--cp-admin-blue);
}

.cp-attention-row > span:not(.cp-attention-icon) {
  min-width: 0;
  overflow: hidden;
  color: var(--cp-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-attention-row button {
  justify-self: end;
}

.cp-attention-row button i {
  margin-left: 6px;
  font-size: 15px;
  font-style: normal;
}

.cp-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr);
  gap: 14px;
  margin-top: 14px;
}

.cp-dashboard-table th,
.cp-dashboard-table td {
  padding-inline: 15px;
}

.cp-service-list {
  background: #fff;
}

.cp-service-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px 105px minmax(130px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--cp-border);
}

.cp-service-row:last-child {
  border-bottom: 0;
}

.cp-service-icon {
  width: 32px;
  height: 32px;
}

.cp-service-icon svg {
  width: 17px;
  height: 17px;
}

.cp-service-row strong {
  font-size: 11px;
}

.cp-service-result {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cp-muted);
  font-size: 10px;
}

.cp-service-result.healthy {
  color: var(--cp-green);
}

.cp-service-result.unhealthy {
  color: var(--cp-red);
}

.cp-service-row small {
  color: var(--cp-muted);
  font-size: 9px;
  text-align: right;
}

.cp-shell-admin .cp-toolbar {
  margin-bottom: 12px;
}

.cp-shell-admin .cp-layout {
  gap: 14px;
  margin-top: 0;
}

.cp-shell-admin .cp-detail {
  background: #fff;
}

.cp-shell-admin .cp-table th {
  background: #fbfcfd;
}

.cp-shell-admin .cp-table tr:hover td {
  background: #f8fbfe;
}

@media (max-width: 1120px) and (min-width: 681px) {
  .cp-admin-topbar {
    grid-template-columns: minmax(160px, 1fr) minmax(280px, 400px) auto;
  }

  .cp-service-state {
    display: none;
  }

  .cp-admin-metric {
    grid-template-columns: 38px minmax(0, 1fr);
    padding-inline: 14px;
  }

  .cp-admin-metric-icon {
    width: 38px;
    height: 38px;
  }

  .cp-attention-row {
    grid-template-columns: 32px 115px 38px minmax(170px, 1fr) 145px;
  }
}

@media (max-width: 1360px) and (min-width: 681px) {
  .cp-shell-admin .cp-service-row {
    grid-template-columns: 36px 105px minmax(130px, 1fr);
  }

  .cp-shell-admin .cp-service-row small {
    display: none;
  }
}

@media (max-width: 860px) and (min-width: 681px) {
  .cp-admin-topbar {
    grid-template-columns: auto minmax(240px, 1fr) auto;
  }

  .cp-admin-context > strong {
    display: none;
  }

  .cp-admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cp-admin-metric:nth-child(2) {
    border-right: 0;
  }

  .cp-admin-metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--cp-border);
  }

  .cp-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .cp-admin-topbar {
    display: flex;
  }

  .cp-admin-context {
    flex: 1;
  }

  .cp-admin-context > strong {
    font-size: 12px;
  }

  .cp-command-search,
  .cp-service-state {
    display: none;
  }

  .cp-admin-tools {
    gap: 0;
  }

  .cp-admin-account {
    padding-left: 0;
    border-left: 0;
  }

  .cp-account-menu {
    position: fixed;
    top: 56px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .cp-admin-page-head {
    padding: 16px 14px 12px;
  }

  .cp-admin-page-head h1 {
    font-size: 20px;
  }

  .cp-admin-content {
    padding: 0 14px 32px;
  }

  .cp-admin-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .cp-admin-metric {
    min-height: 108px;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }

  .cp-admin-metric:nth-child(2) {
    border-right: 0;
  }

  .cp-admin-metric:nth-child(-n+2) {
    border-bottom: 1px solid var(--cp-border);
  }

  .cp-admin-metric-icon {
    width: 34px;
    height: 34px;
  }

  .cp-admin-metric strong {
    font-size: 16px;
  }

  .cp-attention-row {
    grid-template-columns: 28px 1fr auto;
    gap: 8px;
    padding: 10px 12px;
  }

  .cp-attention-row > b {
    justify-self: end;
  }

  .cp-attention-row > span:not(.cp-attention-icon) {
    grid-column: 2 / 4;
    white-space: normal;
  }

  .cp-attention-row button {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .cp-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .cp-service-row {
    grid-template-columns: 34px 1fr auto;
    padding-inline: 12px;
  }

  .cp-service-row small {
    display: none;
  }
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--cp-bg); color: var(--cp-text); font-size: 14px; letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.cp-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.cp-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--cp-sidebar); color: #fff; padding: 18px 14px; }
.cp-brand { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 4px 8px 20px; text-decoration: none; }
.cp-brand img { width: 34px; height: 34px; object-fit: contain; }
.cp-brand strong, .cp-brand span { display: block; }
.cp-brand strong { font-size: 14px; line-height: 1.2; }
.cp-brand span { margin-top: 3px; color: var(--cp-sidebar-muted); font-size: 11px; }
.cp-nav { display: grid; gap: 3px; }
.cp-nav button { width: 100%; border: 0; background: transparent; color: #b9c5cf; text-align: left; border-radius: 5px; padding: 10px 11px; cursor: pointer; font-size: 13px; }
.cp-nav button:hover { color: #fff; background: rgba(255,255,255,.055); }
.cp-nav button[aria-current="page"] { color: #fff; background: rgba(23,105,170,.24); box-shadow: inset 3px 0 0 #f58220; }
.cp-sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.09); padding: 14px 8px 2px; }
.cp-sidebar-foot strong, .cp-sidebar-foot span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-sidebar-foot strong { font-size: 12px; }
.cp-sidebar-foot span { color: var(--cp-sidebar-muted); font-size: 11px; margin-top: 4px; }

.cp-main { min-width: 0; }
.cp-topbar { position: sticky; z-index: 10; top: 0; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 28px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--cp-border); }
.cp-title { min-width: 0; }
.cp-title h1 { margin: 0; font-size: 18px; line-height: 1.2; }
.cp-title p { margin: 4px 0 0; color: var(--cp-muted); font-size: 12px; }
.cp-actions { display: flex; align-items: center; gap: 8px; }
.cp-content { width: min(1440px, 100%); margin: 0 auto; padding: 24px 28px 48px; }

.cp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; border: 1px solid var(--cp-border-strong); border-radius: 5px; background: #fff; color: var(--cp-text); padding: 0 13px; font-weight: 600; font-size: 12px; cursor: pointer; text-decoration: none; }
.cp-button:hover { border-color: #aebdca; background: #f9fbfd; }
.cp-button.primary { color: #fff; border-color: var(--cp-blue); background: var(--cp-blue); }
.cp-button.primary:hover { background: var(--cp-blue-dark); }
.cp-button.danger { color: var(--cp-red); border-color: #ebbdc3; }
.cp-button.compact { min-height: 30px; padding: 5px 9px; font-size: 12px; }
.cp-row-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 190px; }
.cp-table td small { display: block; margin-top: 3px; color: var(--cp-muted); }
.cp-message-list { display: grid; gap: 12px; margin-bottom: 20px; }
.cp-message { border-left: 3px solid var(--cp-blue); padding: 8px 12px; background: #f8fafc; }
.cp-message strong { font-size: 13px; }
.cp-message time { margin-left: 8px; color: var(--cp-muted); font-size: 12px; }
.cp-message p { margin: 7px 0 0; white-space: pre-wrap; }
.cp-button:disabled { opacity: .5; cursor: default; }
.cp-icon-button { width: 36px; height: 36px; border: 1px solid var(--cp-border-strong); border-radius: 5px; background: #fff; color: var(--cp-text); cursor: pointer; }
.cp-icon-button:hover { border-color: #aebdca; background: #f9fbfd; }
.cp-navigation-back { flex: 0 0 36px; display: inline-grid; place-items: center; font-size: 20px; line-height: 1; }

.cp-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--cp-border); background: var(--cp-surface); }
.cp-metric { min-height: 102px; padding: 18px 20px; border-right: 1px solid var(--cp-border); }
.cp-metric:last-child { border-right: 0; }
.cp-metric span, .cp-metric small { display: block; color: var(--cp-muted); font-size: 11px; }
.cp-metric strong { display: block; margin: 10px 0 5px; font-size: 26px; line-height: 1; }

.cp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 20px; }
.cp-layout > *, .cp-panel, .cp-detail { min-width: 0; }
.cp-panel { background: var(--cp-surface); border: 1px solid var(--cp-border); }
.cp-panel + .cp-panel { margin-top: 18px; }
.cp-panel-header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--cp-border); }
.cp-panel-header h2 { margin: 0; font-size: 13px; }
.cp-panel-header span { color: var(--cp-muted); font-size: 11px; }
.cp-panel-body { padding: 16px; }
.cp-notice { display: grid; gap: 5px; margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--cp-amber); background: var(--cp-amber-soft); }
.cp-notice.danger { border-left-color: var(--cp-red); background: var(--cp-red-soft); }
.cp-notice strong { font-size: 12px; }
.cp-notice span { color: var(--cp-muted); font-size: 11px; line-height: 1.45; }
.cp-button.selected { border-color: var(--cp-blue); background: var(--cp-blue-soft); color: var(--cp-blue-dark); }
.cp-plan-tax-note { margin: 0 0 14px; color: var(--cp-muted); font-size: 11px; }
.cp-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cp-plan-card { min-width: 0; border: 1px solid var(--cp-border); background: #fff; padding: 16px; }
.cp-plan-card header { min-height: 100px; }
.cp-plan-card h3 { margin: 0; font-size: 16px; }
.cp-plan-card header p { margin: 8px 0 0; color: var(--cp-muted); font-size: 11px; line-height: 1.5; }
.cp-plan-limits { padding: 11px 0; border-block: 1px solid var(--cp-border); color: var(--cp-muted); font-size: 11px; }
.cp-plan-limits strong { color: var(--cp-text); font-size: 13px; }
.cp-plan-limits span { margin: 0 4px; }
.cp-plan-includes { min-height: 34px; margin: 12px 0; color: var(--cp-muted); font-size: 11px; line-height: 1.45; }
.cp-plan-actions { display: grid; gap: 8px; }
.cp-plan-price { min-height: 92px; display: grid; align-content: center; justify-items: start; gap: 3px; width: 100%; border: 1px solid var(--cp-border-strong); border-radius: 5px; background: #fff; color: var(--cp-text); padding: 10px 12px; cursor: pointer; text-align: left; }
.cp-plan-price:hover { border-color: var(--cp-blue); background: #f9fbfd; }
.cp-plan-price > span { color: var(--cp-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.cp-plan-price strong { font-size: 14px; }
.cp-plan-price small { color: var(--cp-muted); font-size: 10px; }
.cp-plan-price em { color: var(--cp-blue-dark); font-size: 10px; font-style: normal; font-weight: 700; }
.cp-plan-price.selected { border-color: var(--cp-blue); background: var(--cp-blue-soft); }
.cp-plan-price:disabled { cursor: default; opacity: 1; }

.cp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cp-toolbar-group { display: flex; align-items: center; gap: 8px; }
.cp-field { display: grid; gap: 6px; }
.cp-field span { color: var(--cp-muted); font-size: 11px; font-weight: 600; }
.cp-input, .cp-select, .cp-textarea { min-height: 36px; width: 100%; border: 1px solid var(--cp-border-strong); border-radius: 5px; background: #fff; color: var(--cp-text); padding: 7px 10px; outline: none; }
.cp-input:focus, .cp-select:focus, .cp-textarea:focus { border-color: var(--cp-blue); box-shadow: 0 0 0 3px rgba(23,105,170,.12); }
.cp-search { width: min(340px, 46vw); }
.cp-textarea { min-height: 86px; resize: vertical; }

.cp-table-wrap { max-width: 100%; overflow: auto; }
.cp-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cp-table th { height: 38px; padding: 0 12px; background: #f8fafc; border-bottom: 1px solid var(--cp-border); color: var(--cp-muted); text-align: left; font-size: 10px; text-transform: uppercase; font-weight: 700; }
.cp-table td { height: 48px; padding: 7px 12px; border-bottom: 1px solid #edf1f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-table tbody tr { cursor: pointer; }
.cp-table tbody tr:hover { background: #f8fbff; }
.cp-table tbody tr.selected { background: var(--cp-blue-soft); }
.cp-table tbody tr:last-child td { border-bottom: 0; }
.cp-table .wide { width: 34%; }
.cp-table .numeric { text-align: right; }
.cp-empty { min-height: 160px; display: grid; place-items: center; color: var(--cp-muted); text-align: center; padding: 24px; }

.cp-status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 4px; background: #eef2f5; color: #536370; font-size: 10px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.cp-status.active, .cp-status.succeeded, .cp-status.paid, .cp-status.processed { background: var(--cp-green-soft); color: var(--cp-green); }
.cp-status.internal { background: var(--cp-blue-soft); color: var(--cp-blue-dark); }
.cp-status.trial, .cp-status.trialing, .cp-status.queued, .cp-status.received { background: var(--cp-blue-soft); color: var(--cp-blue-dark); }
.cp-status.past_due, .cp-status.grace_period, .cp-status.retry, .cp-status.open { background: var(--cp-amber-soft); color: var(--cp-amber); }
.cp-status.failed, .cp-status.suspended, .cp-status.dead_letter, .cp-status.unpaid, .cp-status.read_only, .cp-status.canceled { background: var(--cp-red-soft); color: var(--cp-red); }
.cp-status.expired { background: var(--cp-amber-soft); color: var(--cp-amber); }

.cp-detail { position: sticky; top: 90px; align-self: start; background: var(--cp-surface); border: 1px solid var(--cp-border); box-shadow: var(--cp-shadow); }
.cp-detail-header { padding: 18px; border-bottom: 1px solid var(--cp-border); }
.cp-detail-back { margin-bottom: 14px; }
.cp-detail-header h2 { margin: 0; font-size: 16px; }
.cp-detail-header p { margin: 5px 0 0; color: var(--cp-muted); font-size: 11px; overflow-wrap: anywhere; }
.cp-detail-section { padding: 16px 18px; border-bottom: 1px solid var(--cp-border); }
.cp-detail-section:last-child { border-bottom: 0; }
.cp-detail-section h3 { margin: 0 0 12px; font-size: 11px; text-transform: uppercase; color: var(--cp-muted); }
.cp-kv { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; }
.cp-kv span { color: var(--cp-muted); font-size: 11px; }
.cp-kv strong { font-size: 11px; text-align: right; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.cp-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-detail-actions-spaced { margin-top: 14px; }

.cp-tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--cp-border); margin-bottom: 18px; }
.cp-tabs button { min-height: 40px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--cp-muted); padding: 0 14px; cursor: pointer; font-size: 12px; font-weight: 600; }
.cp-tabs button[aria-selected="true"] { color: var(--cp-blue-dark); border-bottom-color: var(--cp-blue); }
.cp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cp-form-grid .full { grid-column: 1 / -1; }
.cp-form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; }

.cp-alert-list { display: grid; }
.cp-alert-row { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 48px; padding: 8px 16px; border-bottom: 1px solid #edf1f5; }
.cp-alert-row:last-child { border-bottom: 0; }
.cp-alert-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cp-blue); }
.cp-alert-dot.warning { background: var(--cp-amber); }
.cp-alert-dot.danger { background: var(--cp-red); }
.cp-alert-row strong, .cp-alert-row span { display: block; }
.cp-alert-row strong { font-size: 12px; }
.cp-alert-row span { margin-top: 3px; color: var(--cp-muted); font-size: 10px; }
.cp-alert-row time { color: var(--cp-muted); font-size: 10px; }

.cp-dialog { width: min(480px, calc(100vw - 32px)); border: 1px solid var(--cp-border); border-radius: 6px; padding: 0; box-shadow: 0 24px 70px rgba(13,24,34,.24); }
.cp-dialog::backdrop { background: rgba(18,29,40,.46); }
.cp-dialog header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--cp-border); }
.cp-dialog h2 { margin: 0; font-size: 15px; }
.cp-dialog-copy { margin: 0; color: var(--cp-muted); font-size: 12px; line-height: 1.5; }
.cp-dialog form > div { padding: 18px; display: grid; gap: 14px; }
.cp-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 18px; border-top: 1px solid var(--cp-border); }

.cp-toast { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: min(420px, calc(100vw - 40px)); padding: 12px 14px; border-radius: 5px; background: #17212b; color: #fff; box-shadow: var(--cp-shadow); font-size: 12px; }
.cp-toast.error { background: #8f2935; }
.cp-mobile-menu { display: none; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); background: #fff; }
.login-brand { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 44px 52px; background: #17212b; color: #fff; }
.auth-brand-dark { background: #0c2033; }
.auth-brand-light { background: #f8fafc; border-right: 1px solid var(--cp-border); color: var(--cp-text); }
.auth-brand-visual { display: inline-block; width: 230px; max-width: 46%; text-decoration: none; }
.auth-brand-visual img { display: block; width: 100%; height: auto; }
.auth-brand-light .login-product p { color: var(--cp-muted); }
.auth-brand-light footer { color: #8793a0; }
.login-brand .cp-brand { padding: 0; }
.login-product h1 { max-width: 660px; margin: 0; font-size: clamp(34px, 5vw, 72px); line-height: 1; font-weight: 650; }
.login-product p { max-width: 560px; margin: 24px 0 0; color: #aebbc6; font-size: 16px; line-height: 1.55; }
.login-brand footer { color: #738594; font-size: 11px; }
.login-form-wrap { display: grid; place-items: center; padding: 32px; }
.login-form { width: min(390px, 100%); }
.login-form h2 { margin: 0; font-size: 24px; }
.login-form > p { margin: 9px 0 28px; color: var(--cp-muted); }
.login-form form { display: grid; gap: 15px; }
.login-form .cp-button { min-height: 42px; margin-top: 3px; }
.login-error { min-height: 20px; margin: 10px 0 0; color: var(--cp-red); font-size: 11px; }
.auth-switch { margin: 22px 0 0 !important; color: var(--cp-muted); font-size: 12px; text-align: center; }
.auth-switch a { color: var(--cp-blue-dark); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-inline-link { margin-top: -7px; text-align: right; }
.auth-inline-link a { color: var(--cp-blue-dark); font-size: 11px; font-weight: 700; text-decoration: none; }
.auth-inline-link a:hover { text-decoration: underline; }
.auth-result { border-left: 3px solid var(--cp-blue); padding: 14px 16px; background: #f8fbff; }
.auth-result strong { display: block; font-size: 14px; }
.auth-result p { margin: 7px 0 14px; color: var(--cp-muted); font-size: 12px; line-height: 1.5; }
.auth-result-actions { display: grid; gap: 8px; }
.auth-status { min-height: 18px; margin: 10px 0 0 !important; color: var(--cp-muted); font-size: 11px; line-height: 1.45; }
.auth-confirmation-help { margin-top: 14px; }
.auth-confirmation-success { margin: -8px 0 18px; border-left-color: #2e8b57; background: #f2faf5; }
.auth-confirmation-success p { margin-bottom: 0; }
.auth-confirmation-help .cp-button { width: 100%; min-height: 38px; }
.auth-confirmation-help .auth-captcha { margin-bottom: 10px; }
.auth-code-input { height: 52px; text-align: center; font-size: 23px; font-variant-numeric: tabular-nums; }
.auth-link-button { border: 0; padding: 0; background: transparent; color: var(--cp-blue-dark); font-weight: 700; cursor: pointer; }
.auth-eyebrow { margin: 0 0 18px !important; color: #77a2ff !important; font-size: 11px !important; font-weight: 700; text-transform: uppercase; }
.auth-trial-label { display: block; margin-bottom: 12px; color: var(--cp-blue-dark); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.registration-form { width: min(470px, 100%); padding-block: 32px; }
.registration-form > div > p { margin: 9px 0 24px; color: var(--cp-muted); }
.auth-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cp-field small { color: var(--cp-muted); font-size: 10px; line-height: 1.4; }
.auth-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.auth-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; color: var(--cp-muted); font-size: 11px; line-height: 1.45; cursor: pointer; }
.auth-consent input { width: 16px; height: 16px; margin: 0; accent-color: var(--cp-blue); }
.auth-consent a { color: var(--cp-blue-dark); font-weight: 700; }
.auth-captcha { min-height: 65px; }
.registration-success { padding: 8px 0 0; text-align: center; }
.registration-success h2 { margin: 16px 0 8px; }
.registration-success p { margin: 0 0 24px; color: var(--cp-muted); line-height: 1.6; }
.registration-success .cp-button { width: 100%; }
.success-mark { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto; border: 1px solid #b9d2ff; border-radius: 50%; background: var(--cp-blue-soft); color: var(--cp-blue-dark); font-size: 21px; font-weight: 800; }
.cp-mfa-setup { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 20px; border-bottom: 1px solid var(--cp-border); background: #f8fafc; }
.cp-mfa-qr { display: grid; place-items: center; min-height: 240px; background: #fff; border: 1px solid var(--cp-border); }
.cp-mfa-qr img { width: 220px; height: 220px; object-fit: contain; }
.cp-mfa-setup h3 { margin: 2px 0 8px; font-size: 15px; }
.cp-mfa-setup p { max-width: 560px; color: var(--cp-muted); line-height: 1.5; }
.cp-mfa-setup code { display: block; max-width: 560px; padding: 10px; border: 1px solid var(--cp-border); background: #fff; overflow-wrap: anywhere; }
.cp-mfa-setup form { display: flex; align-items: end; gap: 10px; max-width: 420px; margin-top: 16px; }
.cp-mfa-setup form .cp-field { flex: 1; }
.mfa-enrollment { display: grid; gap: 18px; }
.mfa-login-form .cp-mfa-setup { grid-template-columns: 1fr; gap: 16px; padding: 16px 0 0; border: 0; background: transparent; }
.mfa-login-form .cp-mfa-qr { min-height: 222px; }
.mfa-login-form .cp-mfa-setup form { align-items: stretch; flex-direction: column; }

@media (max-width: 980px) {
  .cp-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .cp-sidebar { padding-inline: 10px; }
  .cp-brand { justify-content: center; padding-inline: 0; }
  .cp-brand > div, .cp-nav button span, .cp-sidebar-foot { display: none; }
  .cp-nav button { text-align: center; padding-inline: 4px; font-size: 10px; }
  .cp-layout { grid-template-columns: 1fr; }
  .cp-detail { position: static; }
  .cp-metrics { grid-template-columns: repeat(2, 1fr); }
  .cp-metric:nth-child(2) { border-right: 0; }
  .cp-metric:nth-child(-n+2) { border-bottom: 1px solid var(--cp-border); }
}

@media (max-width: 680px) {
  .cp-shell { display: block; }
  .cp-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 232px; transform: translateX(-100%); transition: transform .18s ease; }
  .cp-shell.menu-open .cp-sidebar { transform: translateX(0); }
  .cp-brand { justify-content: flex-start; }
  .cp-brand > div, .cp-nav button span, .cp-sidebar-foot { display: block; }
  .cp-nav button { text-align: left; padding-inline: 11px; font-size: 13px; }
  .cp-mobile-menu { display: inline-grid; place-items: center; }
  .cp-topbar { min-height: 60px; padding: 0 14px; }
  .cp-topbar > .cp-actions:first-child { flex: 1; min-width: 0; }
  .cp-topbar > .cp-actions:first-child .cp-icon-button { flex: 0 0 36px; }
  .cp-title { flex: 1; }
  .cp-title h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cp-route-shortcuts { display: none; }
  .cp-title p { display: none; }
  .cp-content { padding: 16px 14px 36px; }
  .cp-actions .cp-button:not(.mobile-keep) { display: none; }
  .cp-metrics { grid-template-columns: 1fr 1fr; }
  .cp-panel-header { min-height: 54px; padding-block: 10px; flex-wrap: wrap; }
  .cp-panel-header .cp-row-actions { width: 100%; min-width: 0; }
  .cp-panel-header .cp-row-actions .cp-button { flex: 1 1 auto; }
  .cp-plan-grid { grid-template-columns: 1fr; }
  .cp-plan-card header, .cp-plan-includes { min-height: 0; }
  .cp-metric { min-height: 88px; padding: 14px; }
  .cp-metric strong { font-size: 22px; }
  .cp-toolbar { align-items: stretch; flex-direction: column; }
  .cp-toolbar-group { width: 100%; }
  .cp-search { width: 100%; }
  .cp-form-grid { grid-template-columns: 1fr; }
  .cp-form-grid .full { grid-column: auto; }
  .cp-table { min-width: 720px; }
  .login-page { display: block; }
  .login-brand { min-height: 210px; padding: 24px; }
  .auth-brand-light { border-right: 0; border-bottom: 1px solid var(--cp-border); }
  .auth-brand-visual { width: 185px; max-width: 58%; }
  .login-product h1 { font-size: 34px; }
  .login-product p, .login-brand footer { display: none; }
  .login-form-wrap { min-height: calc(100vh - 210px); padding: 28px 20px; }
  .registration-form { padding-block: 8px; }
  .auth-form-grid { grid-template-columns: 1fr; }
  .cp-mfa-setup { grid-template-columns: 1fr; }
  .cp-mfa-setup form { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Costicon compact control plane: same typography and navigation as the workspace. */
:root {
  font-family: CosticonSans, Arial, sans-serif;
}

body {
  font-family: CosticonSans, Arial, sans-serif;
  font-size: 13px;
}

@media (min-width: 681px) {
  .cp-shell {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .cp-sidebar {
    z-index: 40;
    width: 64px;
    padding: 10px 8px;
    overflow: hidden;
    box-shadow: 1px 0 0 #071523;
    transition: width .16s ease, box-shadow .16s ease;
  }

  .cp-sidebar:hover,
  .cp-sidebar:has(:focus-visible) {
    width: 208px;
    box-shadow: 12px 0 30px rgba(4, 19, 32, .2);
  }

  .cp-brand {
    width: 48px;
    min-height: 46px;
    justify-content: center;
    gap: 9px;
    padding: 4px 6px;
    margin-bottom: 14px;
    transition: width .16s ease;
  }

  .cp-brand img {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
  }

  .cp-brand > div,
  .cp-nav button span,
  .cp-sidebar-foot {
    display: none;
  }

  .cp-sidebar:hover .cp-brand,
  .cp-sidebar:has(:focus-visible) .cp-brand {
    width: 192px;
    justify-content: flex-start;
  }

  .cp-sidebar:hover .cp-brand > div,
  .cp-sidebar:has(:focus-visible) .cp-brand > div,
  .cp-sidebar:hover .cp-nav button span,
  .cp-sidebar:has(:focus-visible) .cp-nav button span,
  .cp-sidebar:hover .cp-sidebar-foot,
  .cp-sidebar:has(:focus-visible) .cp-sidebar-foot {
    display: block;
  }

  .cp-brand strong {
    font-size: 14px;
  }

  .cp-brand span {
    font-size: 9px;
  }

  .cp-nav {
    gap: 3px;
  }

  .cp-nav button {
    width: 48px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0;
    font-size: 12px;
    white-space: nowrap;
    transition: width .16s ease, background-color .12s ease;
  }

  .cp-nav button svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .cp-sidebar:hover .cp-nav button,
  .cp-sidebar:has(:focus-visible) .cp-nav button {
    width: 192px;
    justify-content: flex-start;
    padding: 0 11px;
  }

  .cp-sidebar-foot {
    width: 192px;
    padding: 12px 8px 2px;
  }

  .cp-topbar {
    min-height: 60px;
    padding: 0 20px;
  }

  .cp-title h1 {
    font-size: 16px;
  }

  .cp-title p {
    margin-top: 3px;
    font-size: 10px;
  }

  .cp-content {
    padding: 16px 20px 36px;
  }

  .cp-button {
    min-height: 34px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .cp-icon-button {
    width: 34px;
    height: 34px;
  }

  .cp-navigation-back {
    flex-basis: 34px;
  }

  .cp-panel + .cp-panel,
  .cp-notice {
    margin-top: 12px;
  }

  .cp-panel-header {
    min-height: 46px;
    padding: 0 14px;
  }

  .cp-panel-header h2 {
    font-size: 12px;
  }

  .cp-panel-body {
    padding: 14px;
  }

  .cp-field {
    gap: 5px;
  }

  .cp-field span {
    font-size: 10px;
  }

  .cp-input,
  .cp-select,
  .cp-textarea {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .cp-textarea {
    min-height: 76px;
  }

  .cp-form-grid {
    gap: 11px 12px;
  }

  .cp-form-actions {
    padding-top: 12px;
  }

  .cp-tabs {
    margin-bottom: 14px;
  }

  .cp-tabs button {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .cp-table th {
    height: 32px;
    font-size: 9px;
  }

  .cp-table td {
    height: 42px;
    padding-block: 5px;
    font-size: 11px;
  }

  .cp-plan-grid {
    gap: 11px;
  }

  .cp-plan-card {
    padding: 14px;
  }

  .cp-plan-card header {
    min-height: 88px;
  }

  .cp-plan-price {
    min-height: 78px;
  }

  .cp-shell.cp-shell-admin {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .cp-shell.cp-shell-organization {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .cp-shell-admin .cp-sidebar,
  .cp-shell-admin .cp-sidebar:hover,
  .cp-shell-admin .cp-sidebar:has(:focus-visible) {
    width: 232px;
    padding: 14px 12px;
    overflow: hidden;
    box-shadow: 1px 0 0 #071523;
  }

  .cp-shell-admin .cp-brand,
  .cp-shell-admin .cp-sidebar:hover .cp-brand,
  .cp-shell-admin .cp-sidebar:has(:focus-visible) .cp-brand {
    width: 208px;
    justify-content: flex-start;
    padding-inline: 8px;
  }

  .cp-shell-admin .cp-brand > div,
  .cp-shell-admin .cp-nav button span,
  .cp-shell-admin .cp-sidebar-foot {
    display: block;
  }

  .cp-shell-admin .cp-nav button,
  .cp-shell-admin .cp-sidebar:hover .cp-nav button,
  .cp-shell-admin .cp-sidebar:has(:focus-visible) .cp-nav button {
    width: 208px;
    justify-content: flex-start;
    padding: 0 11px;
  }

  .cp-shell-admin .cp-sidebar-foot {
    width: 208px;
  }

  .cp-shell-organization .cp-sidebar,
  .cp-shell-organization .cp-sidebar:hover,
  .cp-shell-organization .cp-sidebar:has(:focus-visible) {
    width: 232px;
    padding: 14px 12px;
    overflow: hidden;
    box-shadow: 1px 0 0 #071523;
  }

  .cp-shell-organization .cp-brand,
  .cp-shell-organization .cp-sidebar:hover .cp-brand,
  .cp-shell-organization .cp-sidebar:has(:focus-visible) .cp-brand {
    width: 208px;
    justify-content: flex-start;
    padding-inline: 8px;
  }

  .cp-shell-organization .cp-brand > div,
  .cp-shell-organization .cp-nav button span,
  .cp-shell-organization .cp-sidebar-foot {
    display: block;
  }

  .cp-shell-organization .cp-nav button,
  .cp-shell-organization .cp-sidebar:hover .cp-nav button,
  .cp-shell-organization .cp-sidebar:has(:focus-visible) .cp-nav button {
    width: 208px;
    justify-content: flex-start;
    padding: 0 11px;
  }

  .cp-shell-organization .cp-sidebar-foot {
    width: 208px;
  }
}

.cp-brand-lockup { display: none; }

@media (min-width: 681px) {
  .cp-shell-admin .cp-brand,
  .cp-shell-organization .cp-brand {
    min-height: 58px;
    padding: 0 7px;
  }

  .cp-shell-admin .cp-brand-mark,
  .cp-shell-organization .cp-brand-mark,
  .cp-shell-admin .cp-brand > div,
  .cp-shell-organization .cp-brand > div {
    display: none;
  }

  .cp-shell-admin .cp-brand-lockup,
  .cp-shell-organization .cp-brand-lockup {
    display: block;
    width: 186px;
    height: 61px;
    object-fit: contain;
    object-position: left center;
  }
}

@media (max-width: 680px) {
  .cp-shell-admin .cp-brand-mark,
  .cp-shell-organization .cp-brand-mark,
  .cp-shell-admin .cp-brand > div,
  .cp-shell-organization .cp-brand > div {
    display: none;
  }

  .cp-shell-admin .cp-brand-lockup,
  .cp-shell-organization .cp-brand-lockup {
    display: block;
    width: 186px;
    height: 61px;
    object-fit: contain;
    object-position: left center;
  }
}

/* Final operator-shell cascade: keep the dedicated admin layout independent
   from the compact organization shell declared above. */
.cp-shell-admin .cp-admin-topbar {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(320px, 440px) minmax(310px, 1fr);
  gap: 20px;
  padding: 0 20px;
}

.cp-shell-admin .cp-admin-content {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.cp-shell-admin .cp-button {
  white-space: nowrap;
}

@media (max-width: 1120px) and (min-width: 681px) {
  .cp-shell-admin .cp-admin-topbar {
    grid-template-columns: minmax(160px, 1fr) minmax(280px, 400px) auto;
  }
}

@media (max-width: 860px) and (min-width: 681px) {
  .cp-shell-admin .cp-admin-topbar {
    grid-template-columns: auto minmax(240px, 1fr) auto;
  }
}

@media (max-width: 680px) {
  .cp-shell-admin .cp-admin-topbar {
    min-height: 60px;
    display: flex;
    padding: 0 14px;
  }

  .cp-shell-admin .cp-admin-content {
    padding: 0 14px 32px;
  }
}

/* Organization settings share the compact workspace language. */
.cp-organization-page {
  --cp-bg: #f5f8fb;
  --cp-sidebar: #03243d;
  --cp-sidebar-muted: #93b2c8;
  --cp-text: #243b53;
  --cp-muted: #647a90;
  --cp-border: #d9e2ec;
  --cp-border-strong: #c6d3df;
  --cp-blue: #0b69b7;
  --cp-blue-dark: #07559a;
  --cp-blue-soft: #e9f3fb;
}

.cp-shell-organization {
  background: var(--cp-bg);
}

.cp-shell-organization .cp-sidebar {
  background: linear-gradient(180deg, #03243d, #062e4d);
}

.cp-shell-organization .cp-brand {
  color: #fff;
}

.cp-shell-organization .cp-nav button {
  color: #d9e9f5;
  font-weight: 600;
}

.cp-shell-organization .cp-nav button svg,
.cp-shell-organization .cp-topbar svg,
.cp-shell-organization .cp-button svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cp-shell-organization .cp-nav button[aria-current="page"] {
  background: #0d66b6;
  box-shadow: inset 3px 0 0 #ef7d18;
}

.cp-shell-organization .cp-topbar {
  min-height: 60px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
}

.cp-shell-organization .cp-title h1 {
  color: #102a43;
  font-size: 16px;
  font-weight: 700;
}

.cp-shell-organization .cp-title p {
  color: #647a90;
  font-size: 10px;
}

.cp-settings-user {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  border-right: 1px solid var(--cp-border);
}

.cp-settings-avatar {
  width: 30px;
  height: 30px;
  display: inline-grid;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: #eef3f7;
  color: #102a43;
  font-size: 10px;
  font-weight: 700;
}

.cp-settings-user-copy {
  min-width: 0;
}

.cp-settings-user-copy strong,
.cp-settings-user-copy small {
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-settings-user-copy strong {
  color: #102a43;
  font-size: 11px;
}

.cp-settings-user-copy small {
  margin-top: 1px;
  color: var(--cp-muted);
  font-size: 9px;
}

.cp-shell-organization .cp-icon-button {
  display: inline-grid;
  place-items: center;
}

.cp-shell-organization .cp-navigation-back svg {
  width: 20px;
  height: 20px;
}

.cp-shell-organization .cp-button {
  gap: 7px;
}

.cp-settings-content {
  width: min(1180px, 100%);
  padding-top: 18px;
}

.cp-settings-content .cp-panel {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(14, 47, 73, .04);
}

.cp-settings-content .cp-panel-header {
  min-height: 48px;
  background: #fbfdff;
}

.cp-settings-content .cp-panel-header h2 {
  color: #102a43;
  font-size: 13px;
  font-weight: 700;
}

.cp-settings-content .cp-panel-body {
  padding: 18px;
}

.cp-settings-content .cp-field span {
  color: #60788f;
  font-size: 10px;
  font-weight: 700;
}

.cp-settings-content .cp-input,
.cp-settings-content .cp-select,
.cp-settings-content .cp-textarea {
  border-color: #c6d3df;
  color: #102a43;
}

.cp-settings-content .cp-input:hover:not(:disabled),
.cp-settings-content .cp-select:hover:not(:disabled),
.cp-settings-content .cp-textarea:hover:not(:disabled) {
  border-color: #9fb3c5;
}

.cp-settings-content .cp-input:disabled,
.cp-settings-content .cp-select:disabled,
.cp-settings-content .cp-textarea:disabled {
  border-color: #d9e2ec;
  background: #f6f9fb;
  color: #526b81;
  opacity: 1;
}

.cp-settings-content .cp-form-grid {
  gap: 13px 14px;
}

.cp-settings-content .cp-form-actions {
  margin-top: 15px;
  border-top: 1px solid #e5ecf2;
  padding-top: 14px;
}

.cp-settings-content .cp-table th {
  background: #f4f8fb;
  color: #71869c;
}

.cp-settings-content .cp-table tbody tr:hover {
  background: #f0f7fc;
}

.cp-settings-content .cp-status {
  min-height: 22px;
  font-size: 9px;
}

@media (max-width: 1080px) and (min-width: 681px) {
  .cp-settings-user-copy {
    display: none;
  }

  .cp-settings-user {
    padding-right: 8px;
  }
}

@media (max-width: 680px) {
  .cp-shell-organization .cp-route-shortcuts {
    display: flex;
  }

  .cp-shell-organization .cp-settings-user,
  .cp-shell-organization #adminLink,
  .cp-shell-organization .mobile-keep {
    display: none;
  }

  .cp-settings-content {
    padding-top: 14px;
  }
}
