:root {
  --tp-ink: #162034;
  --tp-muted: #6d788d;
  --tp-paper: #f5f7fb;
  --tp-white: #fff;
  --tp-line: #dfe4ef;
  --tp-line-soft: #edf0f6;
  --tp-purple: #6d5ce8;
  --tp-purple-dark: #5243c8;
  --tp-purple-pale: #eeebff;
  --tp-cyan: #31b8c9;
  --tp-cyan-pale: #e2f7f8;
  --tp-gold: #dba94c;
  --tp-danger: #d55368;
  --tp-success: #25977f;
  --tp-shadow: 0 22px 70px rgba(31, 42, 74, .1);
  --primary: var(--tp-purple);
  --secondary: #283554;
  --accent: #fff;
  --primary-fg: #fff;
  --body-fg: var(--tp-ink);
  --body-bg: var(--tp-paper);
  --body-quiet-color: #8a94a7;
  --body-medium-color: var(--tp-muted);
  --body-loud-color: var(--tp-ink);
  --header-color: var(--tp-ink);
  --header-branding-color: var(--tp-ink);
  --header-bg: rgba(255, 255, 255, .9);
  --header-link-color: var(--tp-muted);
  --breadcrumbs-fg: #8c95a8;
  --breadcrumbs-link-fg: var(--tp-purple);
  --breadcrumbs-bg: transparent;
  --link-fg: #594bd0;
  --link-hover-color: #2b93a2;
  --link-selected-fg: #4d40be;
  --hairline-color: var(--tp-line-soft);
  --border-color: var(--tp-line);
  --error-fg: #c24158;
  --message-success-bg: #e5f6f1;
  --message-warning-bg: #fff3db;
  --message-error-bg: #fde9ed;
  --darkened-bg: #f8f9fc;
  --selected-bg: var(--tp-purple-pale);
  --selected-row: #f5f3ff;
  --button-fg: #fff;
  --button-bg: var(--tp-purple);
  --button-hover-bg: var(--tp-purple-dark);
  --default-button-bg: var(--tp-purple);
  --default-button-hover-bg: var(--tp-purple-dark);
  --close-button-bg: #748096;
  --close-button-hover-bg: #5f6a7e;
  --delete-button-bg: var(--tp-danger);
  --delete-button-hover-bg: #b94055;
  --object-tools-fg: #fff;
  --object-tools-bg: var(--tp-purple);
  --object-tools-hover-bg: var(--tp-purple-dark);
  --font-family-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

html, body { min-height: 100%; }
body.tp-console {
  color: var(--tp-ink);
  background:
    radial-gradient(circle at 5% 0, rgba(109, 92, 232, .14), transparent 27rem),
    radial-gradient(circle at 96% 7%, rgba(49, 184, 201, .13), transparent 26rem),
    var(--tp-paper);
  font-feature-settings: "tnum" 1;
}
.tp-console *, .tp-console *::before, .tp-console *::after { box-sizing: border-box; }
.tp-console a { text-decoration: none; }
.tp-console a:focus-visible, .tp-console button:focus-visible, .tp-console input:focus-visible, .tp-console select:focus-visible { outline: 3px solid rgba(49, 184, 201, .28); outline-offset: 2px; }

/* Shared header */
.tp-console #container { min-height: 100vh; }
.tp-console #header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  padding: 0 clamp(20px, 4vw, 58px);
  border-bottom: 1px solid rgba(71, 82, 110, .1);
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 4px 20px rgba(35, 46, 78, .035);
  backdrop-filter: blur(16px);
}
.tp-console #branding { display: flex; flex: none; order: 1; align-items: center; }
.tp-console-brand { display: inline-flex; align-items: center; gap: 13px; color: var(--tp-ink) !important; }
.tp-console-brand > i { width: 18px; height: 18px; border: 3px solid var(--tp-purple); transform: rotate(45deg); }
.tp-console-brand > span { display: grid; gap: 3px; }
.tp-console-brand strong { font-size: 13px; font-weight: 850; letter-spacing: .15em; }
.tp-console-brand small { color: #8c96a8; font-size: 10px; letter-spacing: .08em; }
.tp-console #nav-global { display: block; min-width: 0; flex: 1; order: 2; }
.tp-console #header > .tp-console-nav { min-width: 0; flex: 1; order: 2; }
.tp-console-nav { display: flex; align-items: center; gap: 5px; }
.tp-console-nav a { padding: 10px 13px; border-radius: 10px; color: #778195 !important; font-size: 13px; font-weight: 650; white-space: nowrap; transition: .16s ease; }
.tp-console-nav a:hover, .tp-console-nav a.is-current { color: var(--tp-purple) !important; background: var(--tp-purple-pale); }
.tp-console #user-tools { display: flex; flex: none; order: 3; align-items: center; gap: 12px; margin: 0; padding: 0; color: #778195; font-size: 12px; letter-spacing: 0; text-transform: none; }
.tp-console-account > span { display: grid; max-width: 180px; gap: 1px; overflow: hidden; color: #788296; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.tp-console-account > span b { color: var(--tp-purple); font-size: 10px; font-weight: 800; }
.tp-console-account a, .tp-console-account button { border: 0; padding: 0; color: #69758b !important; background: transparent; box-shadow: none; font: inherit; cursor: pointer; }
.tp-console-account a:hover, .tp-console-account button:hover { color: var(--tp-purple) !important; }
.tp-console-account form { margin: 0; }
.tp-console-account form button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; border: 0; border-radius: 10px; padding: 9px 15px; color: #fff !important; background: linear-gradient(120deg, #715de9, #469ce4) !important; box-shadow: 0 10px 20px rgba(94, 86, 218, .18); font: 700 12px inherit; line-height: 1; white-space: nowrap; }
.tp-console-account form button:hover { color: #fff !important; background: linear-gradient(120deg, #6250dd, #338fcf) !important; }
.tp-console-guard { margin-left: auto; color: #8892a5; font-size: 11px; letter-spacing: .12em; }
.tp-console div.breadcrumbs { width: min(calc(100% - 64px), 2100px); margin: 0 auto; padding: 18px 0 0; color: #9aa3b3; background: transparent; font-size: 12px; }

/* Django admin surfaces */
.tp-console #main { display: block; min-height: calc(100vh - 155px); padding: 0; }
.tp-console #content-start { width: min(calc(100% - 64px), 2100px); margin: 0 auto; padding: 30px 0 70px; }
.tp-console #nav-sidebar { display: none !important; }
.tp-console #content { float: none; width: auto; margin: 0; }
.tp-console h1 { margin: 0 0 24px; color: var(--tp-ink); font-size: 30px; font-weight: 790; letter-spacing: -.035em; }
.tp-console h2, .tp-console h3 { color: var(--tp-ink); }
.tp-console .module, .tp-console #changelist, .tp-console .inline-group, .tp-console .submit-row {
  overflow: hidden;
  border: 1px solid rgba(104, 118, 148, .15);
  border-radius: 17px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 18px 55px rgba(36, 48, 80, .075);
}
.tp-console .module { margin-bottom: 18px; }
.tp-console .module h2, .tp-console .module caption, .tp-console .inline-group h2 { margin: 0; padding: 15px 18px; color: #59657b; background: linear-gradient(90deg, #f1efff, #eefafb); font-size: 14px; font-weight: 760; }
.tp-console .module td, .tp-console .module th { padding: 13px 16px; border-color: var(--tp-line-soft); }
.tp-console .module a { color: #594bd0; }
.tp-console .module a:hover { color: #258e9c; }
.tp-console .addlink, .tp-console .changelink, .tp-console .viewlink { padding-left: 0; background-image: none !important; }
.tp-console .object-tools { margin: 0 0 15px; }
.tp-console .object-tools a { display: inline-flex; min-height: 40px; align-items: center; border: 0; border-radius: 11px; padding: 9px 15px; background: linear-gradient(120deg, #715de9, #469ce4) !important; box-shadow: 0 12px 24px rgba(94, 86, 218, .2); font-size: 12px; font-weight: 750; }
.tp-console .object-tools a:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(94, 86, 218, .27); }
.tp-console #changelist { overflow: hidden; }
.tp-console #changelist-search { margin: 0; padding: 16px 18px; border-bottom: 1px solid var(--tp-line-soft); background: rgba(255, 255, 255, .8); }
.tp-console #changelist-search > div { display: flex; width: min(100%, 620px); align-items: center; gap: 10px; }
.tp-console #changelist-search label { display: grid; width: 41px; height: 41px; flex: 0 0 41px; place-items: center; margin: 0; border: 1px solid #e2def8; border-radius: 11px; background: #f4f2ff; }
.tp-console #changelist-search label img { width: 16px; height: 16px; opacity: .72; }
.tp-console #changelist-search #searchbar { width: auto; min-width: 0; flex: 1 1 auto; margin: 0; }
.tp-console #changelist-search input[type="submit"] { min-width: 78px; flex: 0 0 auto; margin: 0; white-space: nowrap; }
.tp-console .tp-live-search-status { min-height: 16px; margin: -5px 18px 11px 69px; color: #78839a; font-size: 11px; line-height: 1.45; }
.tp-console .tp-live-search-empty td { padding: 28px 16px !important; color: #7c879a; background: #fbfcff; text-align: center; }
.tp-console #changelist-form .actions { margin: 0; padding: 13px 18px; border-bottom: 1px solid var(--tp-line-soft); background: #fafbfe; }
.tp-console #changelist table { border: 0; }
.tp-console #changelist table thead th { border-bottom: 1px solid var(--tp-line); color: #69758b; background: #f6f7fb; font-size: 11px; font-weight: 780; letter-spacing: .04em; }
.tp-console #changelist table thead th a { color: inherit; }
.tp-console #changelist table tbody td, .tp-console #changelist table tbody th { padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--tp-line-soft); color: #445066; vertical-align: middle; }
.tp-console #changelist table tbody tr:nth-child(even) { background: rgba(249, 250, 253, .65); }
.tp-console #changelist table tbody tr:hover { background: #f5f3ff; }
.tp-console #changelist table tbody a { color: #5547c8; font-weight: 680; }
.tp-console #changelist-filter { border-left: 1px solid var(--tp-line-soft); background: #fafbfe; }
.tp-console #changelist-filter h2 { padding: 14px 16px; color: #536078; background: linear-gradient(90deg, #efedff, #eaf8fa); font-size: 13px; }
.tp-console #changelist-filter h3 { padding: 12px 16px 5px; color: #667188; font-size: 12px; }
.tp-console #changelist-filter li { padding: 4px 16px; }
.tp-console #changelist-filter a { color: #778195; }
.tp-console #changelist-filter li.selected a { color: var(--tp-purple); font-weight: 750; }
.tp-console #changelist .paginator { border-top: 1px solid var(--tp-line-soft); color: #7d8799; background: #fafbfe; }
.tp-console .date-hierarchy { border-radius: 11px; color: #6b7589; background: rgba(255, 255, 255, .82); }
.tp-console .field-access_code_display { min-width: 128px; }
.tp-console .tp-access-code-readonly { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tp-console .tp-access-code-readonly code { display: inline-block; min-width: 8ch; padding: 5px 7px; border-radius: 7px; color: #39465d; background: #f3f5fa; letter-spacing: .07em; }
.tp-console .form-row.field-access_code .tp-access-code-input { width: 10ch; min-width: 10ch; min-height: 35px; padding: 6px 8px; letter-spacing: .08em; text-transform: uppercase; }
.tp-console .tp-code-generate { min-height: 30px; margin: 0 0 0 5px; border: 1px solid #d9d3ff; border-radius: 8px; padding: 5px 8px; color: #5b4cd1; background: #f6f4ff; box-shadow: none; font-size: 10px; white-space: nowrap; }
.tp-console .tp-code-generate:hover { color: #fff; border-color: #6555d9; background: #6555d9; }
.tp-console .tp-code-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tp-console .tp-code-link > a { font-size: 11px; }
.tp-console .tp-code-copy { min-height: 29px; border: 1px solid #dce2ed; border-radius: 8px; padding: 5px 8px; color: #647188; background: #fff; box-shadow: none; font-size: 10px; }
.tp-console .tp-code-copy:hover { color: #5446c6; border-color: #cfc8f6; background: #f5f3ff; }
.tp-console .tp-temporary-code-module { overflow: hidden; margin: -4px 0 15px; border: 1px solid #e0e3ef; border-radius: 10px; background: #fff; box-shadow: 0 5px 14px rgba(64, 75, 108, .035); }
.tp-console .tp-temporary-code-module > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 9px 13px; cursor: pointer; color: #43506a; background: #fcfcff; list-style: none; }
.tp-console .tp-temporary-code-module > summary::-webkit-details-marker { display: none; }
.tp-console .tp-temporary-code-module > summary::after { flex: 0 0 auto; content: "+"; width: 20px; height: 20px; border: 1px solid #d9d4f6; border-radius: 50%; color: #6858d4; background: #f8f7ff; font-size: 16px; line-height: 18px; text-align: center; }
.tp-console .tp-temporary-code-module[open] > summary { border-bottom: 1px solid #ececf3; background: linear-gradient(90deg, #fbfaff, #fbffff); }
.tp-console .tp-temporary-code-module[open] > summary::after { content: "−"; }
.tp-console .tp-temporary-code-summary-copy { display: flex; min-width: 0; align-items: baseline; gap: 9px; }
.tp-console .tp-temporary-code-summary-copy b { color: #34405a; font-size: 13px; font-weight: 760; }
.tp-console .tp-temporary-code-summary-copy small { overflow: hidden; color: #8993a7; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tp-console .tp-temporary-code-summary-meta { margin-left: auto; color: #786ac9; font-size: 11px; font-weight: 650; white-space: nowrap; }
.tp-console .tp-temporary-code-body { padding: 11px 13px 13px; }
.tp-console .tp-temporary-code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.tp-console .tp-temporary-code-toolbar p { max-width: 650px; margin: 0; color: #778398; font-size: 11px; line-height: 1.65; }
.tp-console .tp-temporary-code-create { flex: 0 0 auto; min-height: 32px; border: 1px solid #6555d9; border-radius: 8px; padding: 6px 10px; color: #fff; background: linear-gradient(135deg, #7463e5, #4e9be3); box-shadow: none; font-size: 11px; font-weight: 740; }
.tp-console .tp-temporary-code-create:hover { border-color: #5443cd; color: #fff; background: linear-gradient(135deg, #6250d9, #3c89d1); }
.tp-console .tp-temporary-code-empty { margin: 11px 0 0; border-top: 1px dashed #e7e7ef; padding-top: 10px; color: #8a93a5; font-size: 11px; }
.tp-console .tp-temporary-code-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; border-top: 1px dashed #e3e4ed; padding: 10px 2px 0; }
.tp-console .tp-temporary-code-footer small { color: #7c879a; font-size: 11px; line-height: 1.55; }
.tp-console .tp-temporary-code-save { min-height: 34px !important; flex: 0 0 auto; border: 1px solid #d8d2fa !important; border-radius: 8px !important; padding: 6px 11px !important; color: #5d4ed0 !important; background: #f6f4ff !important; box-shadow: none !important; font-size: 11px !important; font-weight: 760 !important; }
.tp-console .tp-temporary-code-save:hover { border-color: #6e5fdb !important; color: #fff !important; background: #6555d9 !important; }
.tp-console .tp-temporary-code-module .inline-group { margin: 12px 0 0; overflow: visible; border: 0; border-top: 1px dashed #e3e4ed; border-radius: 0; background: transparent; box-shadow: none; }
.tp-console .tp-temporary-code-module .inline-group fieldset.module { min-width: 0; margin: 0; border: 0; padding: 0; }
.tp-console .tp-temporary-code-module .inline-group .inline-heading,
.tp-console .tp-temporary-code-module .inline-group th.original,
.tp-console .tp-temporary-code-module .inline-group td.original { display: none; }
.tp-console .tp-temporary-code-module .inline-group .tabular thead th:last-child,
.tp-console .tp-temporary-code-module .inline-group .tabular td.delete { display: none; }
.tp-console .tp-temporary-code-module .tabular { overflow-x: auto; }
.tp-console .tp-temporary-code-module .tabular table { min-width: 770px; margin-top: 0; }
.tp-console .tp-temporary-code-module .tabular thead th { padding-top: 9px; padding-bottom: 8px; font-size: 10px; }
.tp-console .tp-temporary-code-module .tabular td { padding-top: 8px; padding-bottom: 8px; font-size: 11px; }
.tp-console .inline-group .field-code .tp-temporary-code-input { width: 126px; min-width: 126px; letter-spacing: .08em; text-transform: uppercase; }
.tp-console .inline-group .field-note .tp-temporary-code-note-input { min-width: 180px; }
.tp-console .inline-group .field-expires_at .tp-temporary-code-expires-input {
  width: 196px;
  min-width: 196px;
  min-height: 40px;
  border: 1px solid #d8d2fa;
  border-radius: 10px;
  padding: 7px 10px;
  color: #3b4660;
  background: linear-gradient(135deg, #fff 0%, #f6f4ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 5px rgba(91, 76, 209, .04);
  font: 650 12px/1.2 inherit;
  letter-spacing: .015em;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.tp-console .inline-group .field-expires_at .tp-temporary-code-expires-input:hover { border-color: #aaa0ec; background: #fbfaff; }
.tp-console .inline-group .field-expires_at .tp-temporary-code-expires-input:focus { border-color: #7b6dde; outline: 0; box-shadow: 0 0 0 4px rgba(109, 92, 232, .11); }
.tp-console .inline-group .field-expires_at .tp-temporary-code-expires-input::-webkit-datetime-edit { padding: 0; }
.tp-console .inline-group .field-expires_at .tp-temporary-code-expires-input::-webkit-calendar-picker-indicator { border-radius: 6px; padding: 3px; opacity: .72; cursor: pointer; }
.tp-console .tp-temporary-code-module .field-delete_access_code_button { width: 38px; text-align: center; }
.tp-console .tp-temporary-code-module .field-delete_access_code_button > p { margin: 0; }
.tp-console .tp-temporary-code-delete {
  display: inline-flex;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border: 1px solid #e7cbd2 !important;
  border-radius: 50% !important;
  padding: 0 !important;
  color: #bd5368 !important;
  background: #fff8f9 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  font: 700 18px/1 Arial, sans-serif !important;
  line-height: 1 !important;
  text-align: center;
  vertical-align: middle;
}
.tp-console .tp-temporary-code-delete:hover { border-color: #cc536c !important; color: #fff !important; background: #cc536c !important; box-shadow: 0 4px 10px rgba(204, 83, 108, .17) !important; }
.tp-console.app-tenants.model-tenanttestavailability.change-list #changelist-search > div { display: flex; align-items: center; gap: 8px; }
.tp-console.app-tenants.model-tenanttestavailability.change-list .tp-access-code-actions { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.tp-console .tp-access-code-export, .tp-console .tp-access-code-rotate-all { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; border-radius: 8px; padding: 6px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tp-console .tp-access-code-export { border: 1px solid #d8d2fd; color: #5c4cd1; background: #f6f4ff; }
.tp-console .tp-access-code-export:hover { color: #fff; border-color: #6555d9; background: #6555d9; }
.tp-console .tp-access-code-rotate-all { border: 1px solid #f0c9d2; color: #b23c5c; background: #fff7f8; box-shadow: none; }
.tp-console .tp-access-code-rotate-all:hover { color: #fff; border-color: #d8496d; background: #d8496d; }
@media (max-width: 700px) {
  .tp-console.app-tenants.model-tenanttestavailability.change-list #changelist-search > div { flex-wrap: wrap; }
  .tp-console.app-tenants.model-tenanttestavailability.change-list .tp-access-code-actions { width: 100%; justify-content: flex-end; }
  .tp-console .tp-temporary-code-module > summary { gap: 9px; padding: 9px 11px; }
  .tp-console .tp-temporary-code-summary-copy { display: grid; gap: 1px; }
  .tp-console .tp-temporary-code-summary-copy small { max-width: 190px; }
  .tp-console .tp-temporary-code-summary-meta { font-size: 10px; }
  .tp-console .tp-temporary-code-body { padding: 10px 11px 11px; }
  .tp-console .tp-temporary-code-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .tp-console .tp-temporary-code-create { width: 100%; }
  .tp-console .tp-temporary-code-footer { align-items: stretch; flex-direction: column; gap: 9px; }
  .tp-console .tp-temporary-code-save { width: 100%; }
  .tp-console .inline-group .field-note .tp-temporary-code-note-input { min-width: 130px; }
}
.tp-console .form-row.field-promotion_content .flex-container { align-items: flex-start; }
.tp-console .tp-promotion-editor-source { display: none !important; }
.tp-console .tp-promotion-editor { width: min(100%, 720px); overflow: hidden; border: 1px solid #d9dff0; border-radius: 12px; background: #fff; box-shadow: 0 9px 24px rgba(70, 89, 130, .07); }
.tp-console .tp-promotion-editor-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; border-bottom: 1px solid #e6eaf3; background: linear-gradient(90deg, #f7f5ff, #f5fbff); }
.tp-console .tp-promotion-editor-toolbar button { min-height: 28px !important; margin: 0; border: 1px solid #d9d4fa; border-radius: 7px; padding: 4px 8px !important; color: #574ac4; background: #fff; box-shadow: none; font-size: 10px; font-weight: 730; }
.tp-console .tp-promotion-editor-toolbar button:hover { border-color: #8275df; color: #fff; background: #7062d7; }
.tp-console .tp-promotion-editor-canvas { min-height: 180px; padding: 15px 16px; color: #354158; font-size: 13px; line-height: 1.8; outline: 0; }
.tp-console .tp-promotion-editor-canvas:empty::before { content: attr(data-placeholder); color: #9aa4b8; }
.tp-console .tp-promotion-editor-canvas h3, .tp-console .tp-promotion-editor-canvas h4 { margin: 0 0 8px; color: #263450; line-height: 1.4; }
.tp-console .tp-promotion-editor-canvas h3 { font-size: 18px; }
.tp-console .tp-promotion-editor-canvas h4 { font-size: 15px; }
.tp-console .tp-promotion-editor-canvas p, .tp-console .tp-promotion-editor-canvas blockquote { margin: 0 0 10px; }
.tp-console .tp-promotion-editor-canvas ul, .tp-console .tp-promotion-editor-canvas ol { margin: 0 0 10px; padding-left: 22px; }
.tp-console .tp-promotion-editor-canvas a { color: #5d4ed0; font-weight: 700; text-decoration: underline; }
.tp-console .tp-promotion-editor-canvas blockquote { border-left: 3px solid #aa9ff0; padding-left: 11px; color: #65718a; }
.tp-console .tp-promotion-editor-canvas figure { margin: 12px 0; }
.tp-console .tp-promotion-editor-canvas img { display: block; max-width: min(100%, 460px); height: auto; margin: 10px 0; border-radius: 9px; }
.tp-console .tp-promotion-editor-html { display: block; width: 100%; min-height: 220px; border: 0; border-radius: 0; padding: 15px 16px; color: #263450; background: #fbfcff; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; outline: 0; resize: vertical; }
.tp-console .tp-promotion-editor-html[hidden] { display: none; }

/* Forms */
.tp-console input[type="text"], .tp-console input[type="password"], .tp-console input[type="email"], .tp-console input[type="number"], .tp-console input[type="url"], .tp-console input[type="search"], .tp-console select, .tp-console textarea, .tp-console .vTextField {
  max-width: 100%;
  border: 1px solid var(--tp-line);
  border-radius: 10px;
  color: var(--tp-ink);
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.tp-console input[type="text"], .tp-console input[type="password"], .tp-console input[type="email"], .tp-console input[type="number"], .tp-console input[type="url"], .tp-console input[type="search"], .tp-console select, .tp-console .vTextField { min-height: 41px; padding: 8px 11px; }
.tp-console textarea { padding: 10px 11px; }
.tp-console input:hover, .tp-console select:hover, .tp-console textarea:hover { border-color: #b8b1ee; }
.tp-console input:focus, .tp-console select:focus, .tp-console textarea:focus { border-color: #8f82ef; outline: 0; box-shadow: 0 0 0 4px rgba(109, 92, 232, .08); }
.tp-console input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--tp-purple); }
.tp-console .form-row { padding: 15px 18px; border-bottom-color: var(--tp-line-soft); }
.tp-console .aligned label, .tp-console label { color: #536078; font-size: 12px; font-weight: 700; }
.tp-console .help, .tp-console p.help, .tp-console div.help, .tp-console .description { color: #8791a3; line-height: 1.65; }
.tp-console .readonly { color: #546077; }
.tp-console.app-tenants.model-tenant.change-form .form-row.field-enabled_tests .flex-container { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; row-gap: 8px; }
.tp-console.app-tenants.model-tenant.change-form .form-row.field-enabled_tests .flex-container > label { float: none; min-width: 0; width: auto; margin: 0; padding: 0; }
.tp-console.app-tenants.model-tenant.change-form .form-row.field-enabled_tests .flex-container > * { min-width: 0; }
.tp-console .field-enabled_tests .tp-test-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; width: min(100%, 790px); margin-top: 8px; }
.tp-console.app-tenants.model-tenant.change-form .field-enabled_tests .tp-test-selector { grid-column: 1; justify-self: start; width: 100%; max-width: none; margin-top: 0; }
.tp-console .field-enabled_tests .tp-test-category { overflow: hidden; border: 1px solid #e0e5f0; border-radius: 12px; background: #fafbfe; }
.tp-console .field-enabled_tests .tp-test-category-head { display: flex; min-height: 48px; align-items: center; gap: 6px; padding: 7px 8px; border-bottom: 1px solid #e7ebf3; background: linear-gradient(90deg, #f3f1ff, #f2fafb); }
.tp-console.app-tenants.model-tenant.change-form .field-enabled_tests .tp-test-category-toggle { display: flex; min-width: 0; width: auto; min-height: 32px; align-items: center; margin: 0; padding: 6px 5px; cursor: pointer; }
.tp-console .field-enabled_tests .tp-test-category-toggle input { flex: 0 0 auto; margin: 0; }
.tp-console .field-enabled_tests .tp-test-category-expand { display: flex; width: 100%; min-width: 0; min-height: 34px; align-items: center; justify-content: flex-start; gap: 8px; border: 0; border-radius: 8px; padding: 6px 7px; color: #34415a; background: transparent; box-shadow: none; font: 700 12px inherit; text-align: left; cursor: pointer; }
.tp-console .field-enabled_tests .tp-test-category-expand:hover { color: #5143c5; background: rgba(109, 92, 232, .08); }
.tp-console .field-enabled_tests .tp-test-category-expand > span { flex: 1 1 auto; min-width: 0; margin-right: auto; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.tp-console .field-enabled_tests .tp-test-category-expand small { flex: 0 0 auto; margin-left: auto; color: #8b96a8; font-size: 10px; font-weight: 600; white-space: nowrap; }
.tp-console .field-enabled_tests .tp-test-category-expand i { flex: 0 0 auto; color: #77849a; font-size: 16px; font-style: normal; line-height: 1; transition: transform .16s ease; }
.tp-console .field-enabled_tests .tp-test-category.is-expanded .tp-test-category-expand i { transform: rotate(180deg); }
.tp-console .field-enabled_tests .tp-test-options { display: none; gap: 6px; padding: 8px; }
.tp-console .field-enabled_tests .tp-test-category.is-expanded .tp-test-options { display: grid; }
.tp-console .field-enabled_tests .tp-test-option { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-height: 44px; margin: 0; border: 1px solid transparent; border-radius: 9px; padding: 7px 8px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.tp-console .field-enabled_tests .tp-test-option:hover { border-color: #ddd8fa; background: #f3f1ff; }
.tp-console .field-enabled_tests .tp-test-option input { flex: 0 0 auto; margin: 0; }
.tp-console .field-enabled_tests .tp-test-option > span { display: grid; min-width: 0; gap: 3px; }
.tp-console .field-enabled_tests .tp-test-option b, .tp-console .field-enabled_tests .tp-test-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-console .field-enabled_tests .tp-test-option b { color: #3e4b62; font-size: 11px; }
.tp-console .field-enabled_tests .tp-test-option small { color: #929cac; font-size: 9px; letter-spacing: .04em; }
.tp-console.app-tenants.model-tenant.change-form .form-row.field-enabled_tests .help { margin-left: 0; padding-left: 0; }
.tp-console .submit-row { display: flex; gap: 9px; align-items: center; padding: 15px 18px; background: rgba(255, 255, 255, .94); }
.tp-console .submit-row input, .tp-console input[type="submit"], .tp-console button, .tp-console .button { min-height: 40px; border: 0; border-radius: 10px; padding: 9px 15px; color: #fff; background: linear-gradient(120deg, #715de9, #469ce4); box-shadow: 0 10px 20px rgba(94, 86, 218, .18); font: 700 12px inherit; cursor: pointer; }
.tp-console .submit-row input:hover, .tp-console input[type="submit"]:hover, .tp-console button:hover, .tp-console .button:hover { background: linear-gradient(120deg, #6250dd, #338fcf); }
.tp-console .submit-row .closelink { display: inline-flex; height: auto; min-height: 40px; align-items: center; justify-content: center; border: 1px solid #dfe4ef; border-radius: 10px; padding: 9px 15px; color: #536078 !important; background: #f6f7fb; box-shadow: none; font: 700 12px inherit; line-height: 1; white-space: nowrap; }
.tp-console .submit-row .closelink:hover { color: var(--tp-purple) !important; border-color: #cfc8f6; background: var(--tp-purple-pale); }
.tp-console .submit-row:has(.closelink) { display: flex; min-height: 0; overflow: visible; margin: 20px 0 0; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.tp-console.app-tenants.model-tenanttestavailability.change-form .submit-row,
.tp-console.app-tenants.model-tenanttestavailability.change-form .submit-row:has(.closelink) {
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  overflow: visible;
  margin: 20px 0 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.tp-console .submit-row .deletelink { background: var(--tp-danger); }
.tp-console .errornote, .tp-console ul.errorlist { border: 1px solid rgba(213, 83, 104, .2); border-radius: 10px; color: #bd4055; background: #fdecef; }
.tp-console .messagelist li { border-radius: 11px; box-shadow: none; }
.tp-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.tp-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(37, 151, 127, .1); }
.tp-status-online { color: var(--tp-success); background: #e8f7f2; }
.tp-status-offline { color: #9a6570; background: #f7edf0; }
.tp-role { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 720; }
.tp-role-member { color: #68748a; background: #eef1f6; }
.tp-role-admin { color: #257e8b; background: var(--tp-cyan-pale); }
.tp-role-superadmin { color: #5c4cd0; background: var(--tp-purple-pale); }

/* User detail */
.tp-user-hero { display: flex; align-items: center; gap: 17px; margin-bottom: 19px; padding: 23px 25px; border: 1px solid rgba(104, 118, 148, .14); border-radius: 19px; background: linear-gradient(118deg, rgba(255,255,255,.97), rgba(244,242,255,.9)); box-shadow: 0 16px 45px rgba(36,48,80,.07); }
.tp-user-avatar-large { display: grid; width: 54px; height: 54px; flex: 0 0 54px; place-items: center; border-radius: 17px; color: #fff; background: linear-gradient(145deg, #6f5ce9, #38b4c6); box-shadow: 0 11px 25px rgba(85,77,197,.22); font-size: 21px; font-weight: 850; }
.tp-user-hero-copy { display: grid; min-width: 0; gap: 4px; }
.tp-user-hero-copy .tp-eyebrow { margin: 0; color: var(--tp-purple); }
.tp-user-hero-copy h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.tp-user-hero-copy > p:last-child { overflow: hidden; margin: 0; color: #788397; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tp-user-hero-badges { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin-left: auto; }
.tp-user-state { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 720; }
.tp-user-state.is-active { color: var(--tp-success); background: #e8f7f2; }
.tp-user-state.is-inactive { color: #a24c5d; background: #fbedf0; }
.tp-user-insights { overflow: hidden; margin-top: 19px; border: 1px solid rgba(104,118,148,.14); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 16px 45px rgba(36,48,80,.065); }
.tp-user-section-heading { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--tp-line-soft); }
.tp-user-section-heading .tp-eyebrow { margin: 0 0 4px; color: var(--tp-purple); }
.tp-user-section-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.tp-user-section-heading > a { color: #707c91 !important; font-size: 11px; font-weight: 720; white-space: nowrap; }
.tp-user-section-heading > a span { margin-left: 5px; color: var(--tp-purple); }
.tp-user-audit-note { color: #8e98a9; font-size: 11px; }
.tp-user-stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-bottom: 1px solid var(--tp-line-soft); background: var(--tp-line-soft); }
.tp-user-stat-row article { display: grid; gap: 5px; padding: 18px 20px; background: #fff; }
.tp-user-stat-row span, .tp-user-stat-row small { color: #8791a3; font-size: 11px; }
.tp-user-stat-row strong { color: var(--tp-ink); font-size: 20px; letter-spacing: -.025em; }
.tp-user-record-list { display: grid; }
.tp-user-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--tp-line-soft); transition: background .16s ease; }
.tp-user-record:last-child { border-bottom: 0; }
.tp-user-record:hover { background: #f8f7ff; }
.tp-user-record-main { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(100px, .55fr) auto; gap: 11px; align-items: center; min-width: 0; padding: 13px 10px 13px 20px; color: var(--tp-ink) !important; }
.tp-user-record-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #278d9b; background: var(--tp-cyan-pale); font-size: 12px; font-weight: 850; }
.tp-user-record-main > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.tp-user-record-main b, .tp-user-record-main small, .tp-user-record-main em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-user-record-main b { font-size: 12px; }
.tp-user-record-main small { color: #8993a5; font-size: 10px; }
.tp-user-record-main em { color: #6f7a8e; font-size: 11px; font-style: normal; }
.tp-user-record-main i { color: var(--tp-purple); font-style: normal; }
.tp-user-result-link { display: inline-flex; align-items: center; gap: 5px; margin-right: 20px; border-radius: 9px; padding: 7px 9px; color: var(--tp-purple) !important; background: var(--tp-purple-pale); font-size: 10px; font-weight: 780; white-space: nowrap; }
.tp-user-result-link:hover { color: #3f8fc6 !important; background: #e7f7fa; }
.tp-user-audit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--tp-line-soft); }
.tp-user-audit-grid > article { padding: 20px; background: #fff; }
.tp-user-audit-grid h3 { margin: 0 0 14px; color: #536078; font-size: 13px; }
.tp-user-audit-grid dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 18px; margin: 0; }
.tp-user-audit-grid dl div { min-width: 0; }
.tp-user-audit-grid dt { margin-bottom: 4px; color: #929bac; font-size: 10px; font-weight: 700; }
.tp-user-audit-grid dd { overflow-wrap: anywhere; margin: 0; color: #4e5b71; font-size: 11px; line-height: 1.55; }
.tp-user-audit-grid .tp-user-audit-wide { grid-column: 1 / -1; }

/* Dashboard */
.tp-dashboard { display: grid; gap: 20px; }
.tp-dashboard-hero { position: relative; display: grid; grid-template-columns: 1fr 210px; min-height: 230px; overflow: hidden; align-items: center; padding: 35px 39px; border: 1px solid rgba(109, 92, 232, .22); border-radius: 24px; color: #fff; background: linear-gradient(125deg, #202b49, #5f52d3 66%, #418cae); box-shadow: 0 24px 70px rgba(66, 60, 145, .22); }
.tp-dashboard-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 81% 18%, rgba(255,255,255,.18), transparent 14rem), linear-gradient(115deg, transparent 0 58%, rgba(255,255,255,.05) 58.2%, transparent 58.5%); }
.tp-dashboard-hero > * { position: relative; z-index: 1; }
.tp-eyebrow { margin: 0 0 10px; color: #bfb8ff; font-size: 10px; font-weight: 850; letter-spacing: .19em; }
.tp-dashboard-hero h1 { margin: 0; color: #fff; font-size: clamp(28px, 3.4vw, 43px); letter-spacing: -.045em; }
.tp-dashboard-hero > div > p:last-child { max-width: 650px; margin: 13px 0 0; color: #d9dded; font-size: 13px; line-height: 1.8; }
.tp-dashboard-planet { position: relative; display: grid; width: 145px; height: 145px; place-content: center; justify-items: center; margin: auto; border-radius: 50%; background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(13,24,53,.35)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 17px 40px rgba(16,25,62,.24); }
.tp-dashboard-planet i { position: absolute; border: 1px solid rgba(213, 240, 247, .25); border-radius: 50%; }
.tp-dashboard-planet i:nth-child(1) { inset: -21px; transform: rotate(22deg) scaleY(.46); }
.tp-dashboard-planet i:nth-child(2) { inset: -43px; transform: rotate(-22deg) scaleY(.53); }
.tp-dashboard-planet i:nth-child(3) { top: 9px; right: -27px; width: 13px; height: 13px; background: #72d7e1; box-shadow: 0 0 18px rgba(114,215,225,.8); }
.tp-dashboard-planet b { font-size: 42px; line-height: 1; }
.tp-dashboard-planet span { margin-top: 7px; color: #d7e4ed; font-size: 10px; letter-spacing: .08em; }
.tp-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.tp-metric-grid article { position: relative; min-height: 150px; overflow: hidden; padding: 21px 22px; border: 1px solid rgba(104, 118, 148, .14); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 14px 38px rgba(36,48,80,.065); }
.tp-metric-grid article::after { content: ""; position: absolute; right: -30px; bottom: -42px; width: 100px; height: 100px; border: 1px solid rgba(109,92,232,.08); border-radius: 50%; }
.tp-metric-grid p { margin: 3px 0 13px; color: #7c879a; font-size: 12px; font-weight: 680; }
.tp-metric-grid strong { display: block; color: var(--tp-ink); font-size: 35px; line-height: 1; letter-spacing: -.04em; }
.tp-metric-grid strong em { margin-left: 5px; color: #a0a8b7; font-size: 14px; font-style: normal; font-weight: 650; }
.tp-metric-grid small { display: block; margin-top: 10px; color: #929bac; font-size: 10px; }
.tp-metric-grid .tp-metric-note { margin-top: 4px; color: #728096; }
.tp-metric-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: #fff; background: var(--tp-purple); font-size: 14px; font-weight: 800; }
.tp-metric-icon.records { background: var(--tp-cyan); }
.tp-metric-icon.tests { background: #4d8de0; }
.tp-metric-icon.admins { background: #d6a448; }
.tp-metric-icon.service { background: #299b8d; }
.tp-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: 14px; }
.tp-panel { overflow: hidden; border: 1px solid rgba(104,118,148,.14); border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 18px 50px rgba(36,48,80,.07); }
.tp-panel > header { display: flex; min-height: 79px; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 21px; border-bottom: 1px solid var(--tp-line-soft); }
.tp-panel > header .tp-eyebrow { margin-bottom: 4px; color: var(--tp-purple); }
.tp-panel > header h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.tp-panel > header > a { color: #727d90 !important; font-size: 11px; font-weight: 680; }
.tp-panel > header > a span { margin-left: 5px; color: var(--tp-purple); }
.tp-test-summary { display: grid; grid-template-columns: 150px 1fr; gap: 27px; align-items: center; padding: 25px 23px 28px; }
.tp-ring-meter { position: relative; display: grid; width: 132px; height: 132px; place-items: center; border-radius: 50%; background: conic-gradient(var(--tp-purple) 0 var(--open), #e9edf5 var(--open) 100%); }
.tp-ring-meter::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--tp-line-soft); }
.tp-ring-meter span { position: relative; color: #8b94a4; font-size: 12px; }
.tp-ring-meter b { color: var(--tp-ink); font-size: 32px; }
.tp-test-summary h3 { margin: 0; font-size: 19px; }
.tp-test-summary p { margin: 9px 0 17px; color: #758095; font-size: 12px; line-height: 1.75; }
.tp-inline-action { display: inline-flex; min-height: 36px; align-items: center; border-radius: 9px; padding: 8px 12px; color: var(--tp-purple) !important; background: var(--tp-purple-pale); font-size: 11px; font-weight: 760; }
.tp-quick-panel nav { display: grid; }
.tp-quick-panel nav a { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--tp-line-soft); color: var(--tp-ink) !important; transition: background .16s ease; }
.tp-quick-panel nav a:last-child { border-bottom: 0; }
.tp-quick-panel nav a:hover { background: #f7f5ff; }
.tp-quick-panel nav a > span { color: var(--tp-purple); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.tp-quick-panel nav div { display: grid; gap: 4px; }
.tp-quick-panel nav b { font-size: 13px; }
.tp-quick-panel nav small { color: #8d96a8; font-size: 10px; }
.tp-quick-panel nav i { color: var(--tp-purple); font-style: normal; }
.tp-dashboard-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-ledger { display: grid; }
.tp-ledger > a { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--tp-line-soft); color: var(--tp-ink) !important; }
.tp-ledger > a:last-child { border-bottom: 0; }
.tp-ledger > a:hover { background: #f8f7ff; }
.tp-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: var(--tp-purple); background: var(--tp-purple-pale); font-size: 13px; font-weight: 850; }
.tp-avatar.alt { color: #278d9b; background: var(--tp-cyan-pale); }
.tp-ledger > a > div { display: grid; min-width: 0; gap: 4px; }
.tp-ledger b, .tp-ledger small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-ledger b { font-size: 12px; }
.tp-ledger small { color: #8b95a6; font-size: 10px; }
.tp-ledger em { max-width: 140px; overflow: hidden; color: #7c879a; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.tp-empty { margin: 0; padding: 42px 20px; color: #929bad; font-size: 12px; text-align: center; }
.tp-empty-state { display: grid; justify-items: center; }
.tp-empty-state .tp-empty { padding-bottom: 13px; }
.tp-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; padding: 0 20px 31px; }
.tp-empty-actions a { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; border: 1px solid #ddd6ff; border-radius: 9px; padding: 7px 11px; color: var(--tp-purple) !important; background: #f8f7ff; font-size: 11px; font-weight: 750; }
.tp-empty-actions a:hover { border-color: #b9adff; background: #f0edff; }
.tp-list-intro { max-width: 760px; margin: -7px 0 23px; color: #6f7c92; font-size: 12px; line-height: 1.75; }
.tp-empty-results { display: grid; justify-items: center; padding: 52px 20px 42px; text-align: center; }
.tp-empty-results p { margin: 0; color: var(--tp-ink); font-size: 15px; font-weight: 760; }
.tp-empty-results > span { margin: 8px 0 20px; color: #8490a2; font-size: 12px; }

/* The tenant landing page is a member workspace, not a reduced platform dashboard. */
.tp-tenant-console .tp-tenant-dashboard .tp-dashboard-hero { border-color: rgba(109, 92, 232, .26); background: linear-gradient(125deg, #28355c, #6558d8 63%, #3f9ab2); }
.tp-tenant-console .tp-tenant-dashboard .tp-dashboard-hero h1 em { color: #bff7f4; font-style: normal; }
.tp-tenant-console .tp-tenant-dashboard .tp-dashboard-planet { background: linear-gradient(145deg, rgba(191,247,244,.26), rgba(35,48,98,.34)); }
.tp-tenant-console .tp-tenant-dashboard .tp-metric-grid article:nth-child(1)::after { border-color: rgba(109,92,232,.15); }
.tp-tenant-console .tp-tenant-dashboard .tp-metric-grid article:nth-child(2)::after { border-color: rgba(41,155,141,.18); }
.tp-tenant-console .tp-tenant-dashboard .tp-metric-grid article:nth-child(3)::after { border-color: rgba(77,141,224,.18); }
.tp-tenant-console .tp-tenant-dashboard .tp-metric-grid article:nth-child(4)::after { border-color: rgba(49,184,201,.19); }

/* Login */
.tp-console-login #main { min-height: calc(100vh - 148px); }
.tp-console-login #content-start { width: 100%; max-width: none; padding: 0; }
.tp-console-login #content { padding: 0; }
.tp-login-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(390px, .72fr); gap: clamp(45px, 8vw, 120px); align-items: center; width: min(1120px, calc(100% - 44px)); min-height: calc(100vh - 152px); margin: auto; padding: 65px 0 80px; }
.tp-login-story { position: relative; min-height: 510px; padding-top: 40px; }
.tp-login-story .tp-eyebrow { color: var(--tp-purple); }
.tp-login-story h1 { max-width: 680px; margin: 0; color: var(--tp-ink); font-size: clamp(48px, 5.8vw, 76px); line-height: 1.04; letter-spacing: -.062em; }
.tp-login-story h1 em { color: var(--tp-purple); font-style: normal; }
.tp-login-story > p:last-of-type { max-width: 580px; margin: 24px 0 0; color: var(--tp-muted); font-size: 15px; line-height: 1.9; }
.tp-login-orbit { position: absolute; right: -10px; bottom: 0; width: 245px; height: 245px; }
.tp-login-orbit > i { position: absolute; border: 1px solid rgba(109,92,232,.17); border-radius: 50%; }
.tp-login-orbit .orbit-a { inset: 8px; }
.tp-login-orbit .orbit-b { inset: 39px; border-color: rgba(49,184,201,.27); }
.tp-login-orbit .orbit-c { inset: 71px; border-color: rgba(219,169,76,.3); }
.tp-login-orbit > b { position: absolute; inset: 88px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #1d2946, #6858dd); box-shadow: 0 17px 45px rgba(67,58,159,.28); }
.tp-login-orbit > span { position: absolute; z-index: 2; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid #fff; border-radius: 50%; color: var(--tp-purple); background: rgba(255,255,255,.94); box-shadow: 0 10px 24px rgba(31,42,74,.1); font-size: 10px; font-weight: 750; }
.tp-login-orbit > span:nth-of-type(1) { top: 4px; left: 99px; }
.tp-login-orbit > span:nth-of-type(2) { right: 2px; bottom: 67px; }
.tp-login-orbit > span:nth-of-type(3) { bottom: 16px; left: 30px; }
.tp-login-card { padding: 36px 35px; border: 1px solid #fff; border-radius: 26px; background: rgba(255,255,255,.9); box-shadow: 0 30px 90px rgba(43,48,91,.15); backdrop-filter: blur(17px); }
.tp-login-card > header { display: flex; gap: 14px; align-items: center; margin-bottom: 30px; }
.tp-login-card header > div { display: grid; gap: 3px; }
.tp-login-card header p { margin: 0; color: var(--tp-purple); font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.tp-login-card h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.tp-login-mark { display: grid; width: 47px; height: 47px; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #6f5ce9, #38b4c6); }
.tp-login-mark i { width: 15px; height: 15px; border: 3px solid #fff; transform: rotate(45deg); }
.tp-login-field { display: grid; gap: 8px; margin-top: 17px; }
.tp-login-field label { color: #566279; font-size: 12px; font-weight: 720; }
.tp-login-card input[type="text"], .tp-login-card input[type="password"] { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 13px; font-size: 15px; }
.tp-console-primary { display: flex; width: 100%; min-height: 53px; align-items: center; justify-content: space-between; margin-top: 24px; border-radius: 13px !important; padding: 0 17px !important; font-size: 14px !important; font-weight: 800 !important; }
.tp-console-primary span { font-size: 18px; }
.tp-login-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 20px 0 0; color: #929bad; font-size: 10px; }
.tp-login-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--tp-success); box-shadow: 0 0 0 3px rgba(37,151,127,.1); }
.tp-console-footer { display: flex; justify-content: space-between; gap: 20px; width: min(100% - 40px, 1280px); margin: 0 auto; padding: 24px 0 33px; border-top: 1px solid rgba(102,116,143,.13); color: #919aac; font-size: 10px; letter-spacing: .04em; }

/* Tenant exit confirmation */
.tp-logout-site-link { display: flex; align-items: center; min-height: 40px; }
.tp-logout-site-link a { color: #657187 !important; font-size: 12px; font-weight: 720; }
.tp-logout-site-link a:hover { color: var(--tp-purple) !important; }
.tp-logout-site-link span { color: var(--tp-purple); }
.tp-console .tp-logout-page { display: grid; width: min(100%, 1040px); min-height: calc(100vh - 245px); place-items: center; margin: 0 auto; padding: 32px 0 58px; }
.tp-logout-card { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(290px, .72fr); width: 100%; overflow: hidden; border: 1px solid rgba(105, 96, 205, .17); border-radius: 25px; background: rgba(255,255,255,.93); box-shadow: 0 28px 80px rgba(51, 52, 106, .14); }
.tp-logout-copy { position: relative; min-height: 390px; padding: 54px 60px; overflow: hidden; }
.tp-logout-copy::before { position: absolute; width: 330px; height: 330px; border-radius: 50%; content: ""; right: -172px; bottom: -198px; background: radial-gradient(circle, rgba(97, 82, 222, .15), rgba(69, 183, 203, .06) 48%, transparent 70%); }
.tp-logout-copy > * { position: relative; z-index: 1; }
.tp-logout-copy .tp-eyebrow { margin: 0 0 23px; color: var(--tp-purple); font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.tp-logout-mark { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 17px; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #6f5ce9, #36b8c1); box-shadow: 0 12px 26px rgba(80, 77, 198, .22); font-size: 24px; font-weight: 800; }
.tp-logout-copy h1 { margin: 0; color: var(--tp-ink); font-size: clamp(34px, 4vw, 48px); line-height: 1.08; letter-spacing: -.055em; }
.tp-logout-copy > p:last-of-type { max-width: 550px; margin: 16px 0 0; color: var(--tp-muted); font-size: 14px; line-height: 1.85; }
.tp-logout-copy > p:last-of-type b { color: #4d5970; font-weight: 780; }
.tp-logout-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.tp-logout-actions a { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 16px; border-radius: 12px; padding: 0 17px; font-size: 13px; font-weight: 770; }
.tp-logout-primary { color: #fff !important; background: linear-gradient(120deg, #6d5ce7, #469fdf); box-shadow: 0 12px 23px rgba(78, 83, 203, .21); }
.tp-logout-primary:hover { color: #fff !important; transform: translateY(-1px); box-shadow: 0 16px 28px rgba(78, 83, 203, .3); }
.tp-logout-primary span { font-size: 19px; line-height: 1; }
.tp-logout-secondary { border: 1px solid #dce2ee; color: #59657b !important; background: #fff; }
.tp-logout-secondary:hover { border-color: #cac3f3; color: var(--tp-purple) !important; background: #faf9ff; }
.tp-logout-summary { display: grid; align-content: center; gap: 9px; padding: 46px 42px; color: #eff2ff; background: linear-gradient(155deg, #202b4a, #493e9b 68%, #287f9b); }
.tp-logout-summary > p { margin: 0 0 4px; color: #bdb8ff; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.tp-logout-summary > strong { color: #fff; font-size: 31px; letter-spacing: -.04em; }
.tp-logout-summary > span { color: #d7d9f5; font-size: 13px; }
.tp-logout-summary > div { display: flex; align-items: center; gap: 8px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.17); padding-top: 17px; color: #e4e6ff; font-size: 11px; line-height: 1.5; }
.tp-logout-summary i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #62e5ca; box-shadow: 0 0 0 4px rgba(98,229,202,.14); }

@media (max-width: 980px) {
  .tp-console #header { flex-wrap: wrap; gap: 5px 16px; padding-top: 11px; padding-bottom: 9px; }
  .tp-console #nav-global { flex-basis: 100%; order: 4; }
  .tp-console-nav { justify-content: center; }
  .tp-console-account > span { display: none; }
  .tp-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-dashboard-grid { grid-template-columns: 1fr; }
  .tp-dashboard-lists { grid-template-columns: 1fr; }
  .tp-user-audit-grid { grid-template-columns: 1fr; }
  .tp-login-stage { grid-template-columns: 1fr; gap: 30px; padding-top: 45px; }
  .tp-login-story { min-height: 390px; }
}

@media (max-width: 650px) {
  .tp-console #header { position: relative; padding-right: 14px; padding-left: 14px; }
  .tp-console-brand small { display: none; }
  .tp-console-brand strong { font-size: 11px; }
  .tp-console #user-tools { margin-left: auto; }
  .tp-console-account > a { display: none; }
  .tp-console-nav { justify-content: flex-start; overflow-x: auto; }
  .tp-console-nav a { padding: 9px 10px; font-size: 11px; }
  .tp-console #content-start, .tp-console div.breadcrumbs { width: calc(100% - 28px); }
  .tp-dashboard-hero { grid-template-columns: 1fr; min-height: 0; padding: 28px 24px; }
  .tp-dashboard-planet { display: none; }
  .tp-metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .tp-metric-grid article { min-height: 137px; padding: 17px; }
  .tp-metric-grid strong { font-size: 29px; }
  .tp-test-summary { grid-template-columns: 1fr; }
  .tp-ring-meter { margin: auto; }
  .tp-panel > header { padding: 16px; }
  .tp-ledger > a { grid-template-columns: 35px minmax(0, 1fr); padding: 13px 16px; }
  .tp-ledger em { display: none; }
  .tp-user-hero { flex-wrap: wrap; gap: 13px; padding: 19px; }
  .tp-user-hero-copy { flex: 1; }
  .tp-user-hero-badges { width: 100%; margin-left: 0; }
  .tp-user-section-heading { min-height: 0; align-items: flex-start; padding: 16px; }
  .tp-user-stat-row { grid-template-columns: 1fr; }
  .tp-user-record-main { grid-template-columns: 32px minmax(0, 1fr) auto; padding: 13px 8px 13px 16px; }
  .tp-user-record-main em { display: none; }
  .tp-user-result-link { margin-right: 12px; }
  .tp-user-audit-grid > article { padding: 17px 16px; }
  .tp-user-audit-grid dl { grid-template-columns: 1fr; }
  .tp-login-stage { width: calc(100% - 28px); padding: 34px 0 55px; }
  .tp-login-story { min-height: 340px; padding-top: 0; }
  .tp-login-story h1 { font-size: 47px; }
  .tp-login-story > p:last-of-type { font-size: 13px; }
  .tp-login-orbit { right: -15px; transform: scale(.72); transform-origin: right bottom; }
  .tp-login-card { padding: 28px 20px; border-radius: 21px; }
  .tp-console .tp-logout-page { min-height: calc(100vh - 215px); padding: 16px 0 36px; }
  .tp-logout-card { grid-template-columns: 1fr; border-radius: 20px; }
  .tp-logout-copy { min-height: 0; padding: 35px 24px; }
  .tp-logout-summary { gap: 7px; padding: 25px 24px; }
  .tp-logout-summary > strong { font-size: 26px; }
  .tp-logout-summary > div { margin-top: 13px; padding-top: 13px; }
  .tp-console-footer { flex-direction: column; width: calc(100% - 28px); }
  .tp-console #changelist-filter { position: static; width: auto; border-top: 1px solid var(--tp-line); border-left: 0; }
}

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

/* Tenant editor: keep one focused form instead of stretching it across ultrawide screens. */
.tp-console.app-tenants.model-tenant.change-form #content-start { position: relative; width: min(calc(100% - 64px), 980px); padding-top: 24px; }
.tp-console.app-tenants.model-tenant.change-form div.breadcrumbs { width: min(calc(100% - 64px), 980px); }
.tp-console.app-tenants.model-tenant.change-form .object-tools { display: none; }
.tp-console.app-tenants.model-tenant.change-form .form-row { padding: 16px 22px; }
.tp-console.app-tenants.model-tenant.change-form .aligned label { width: 132px; margin-right: 20px; }
.tp-console.app-tenants.model-tenant.change-form #id_name,
.tp-console.app-tenants.model-tenant.change-form #id_slug { width: min(100%, 360px); }
.tp-console.app-tenants.model-tenant.change-form #id_owner_search { width: 100%; }
.tp-console.app-tenants.model-tenant.change-form .field-owner_search .help { max-width: 500px; margin: 8px 0 0 152px; }
.tp-console.app-tenants.model-tenant.change-form .module,
.tp-console.app-tenants.model-tenant.change-form .form-row.field-owner_search,
.tp-console.app-tenants.model-tenant.change-form .form-row.field-owner_search .flex-container { overflow: visible; }
.tp-console.app-tenants.model-tenant.change-form .form-row.field-owner_search { position: relative; z-index: 6; }
.tp-console.app-tenants.model-tenant.change-form .submit-row { min-height: 70px; margin-top: 18px; padding: 14px 16px; }
.tp-console.app-tenants.model-tenant.change-form .submit-row p { margin: 0; }
.tp-console.app-tenants.model-tenant.change-form .submit-row input[name="_addanother"] { display: none; }
.tp-console.app-tenants.model-tenant.change-form .submit-row input[name="_continue"] { border: 1px solid #d4cef7; color: #5e50cb; background: #f3f1ff; box-shadow: none; }
.tp-console.app-tenants.model-tenant.change-form .submit-row .deletelink-box { margin-left: auto; }
.tp-console.app-tenants.model-tenant.change-form .submit-row .deletelink { display: inline-flex; min-height: 40px; align-items: center; border-radius: 10px; padding: 9px 15px; color: #fff; }

.tp-owner-picker { position: relative; width: min(100%, 480px); }
.tp-owner-picker-results { position: absolute; z-index: 30; top: calc(100% + 7px); right: 0; left: 0; overflow: auto; max-height: 250px; border: 1px solid #d9d3fa; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(42, 47, 87, .18); }
.tp-owner-picker-option, .tp-owner-picker-empty { display: block; width: 100%; min-height: 0 !important; margin: 0; border: 0 !important; border-bottom: 1px solid #eef0f6 !important; border-radius: 0 !important; padding: 11px 13px !important; color: #344058 !important; background: #fff !important; box-shadow: none !important; font: 13px inherit !important; text-align: left; }
.tp-owner-picker-option:last-child { border-bottom: 0 !important; }
.tp-owner-picker-option:hover, .tp-owner-picker-option:focus { color: #5547c8 !important; background: #f4f2ff !important; }
.tp-owner-picker-empty { color: #8791a3 !important; cursor: default; }

/* Platform control plane: deliberately distinct from the tenant's light purple/cyan workspace. */
body.tp-platform-console {
  --tp-ink: #e8f1ff;
  --tp-muted: #91a4bf;
  --tp-paper: #09111f;
  --tp-white: #111d31;
  --tp-line: #2a3b55;
  --tp-line-soft: #1c2b42;
  --tp-purple: #62d7ff;
  --tp-purple-dark: #26a6d5;
  --tp-purple-pale: rgba(98, 215, 255, .12);
  --tp-cyan: #39d9b6;
  --tp-cyan-pale: rgba(57, 217, 182, .12);
  --tp-gold: #f3be63;
  --tp-danger: #f06f81;
  --tp-success: #48d6a5;
  --primary: #62d7ff;
  --secondary: #111d31;
  --body-fg: #e8f1ff;
  --body-bg: #09111f;
  --body-quiet-color: #8093ae;
  --body-medium-color: #a1b2ca;
  --body-loud-color: #f4f8ff;
  --header-color: #e8f1ff;
  --header-branding-color: #e8f1ff;
  --header-bg: #0d1728;
  --header-link-color: #afc0d8;
  --breadcrumbs-fg: #8195b0;
  --breadcrumbs-link-fg: #62d7ff;
  --link-fg: #78dbff;
  --link-hover-color: #6cf0c9;
  --link-selected-fg: #fff;
  --hairline-color: #1c2b42;
  --border-color: #2a3b55;
  --message-success-bg: rgba(72, 214, 165, .14);
  --message-warning-bg: rgba(243, 190, 99, .14);
  --message-error-bg: rgba(240, 111, 129, .15);
  --darkened-bg: #0d1728;
  --selected-bg: rgba(98, 215, 255, .16);
  --selected-row: rgba(98, 215, 255, .08);
  --button-fg: #06101d;
  --button-bg: #62d7ff;
  --button-hover-bg: #92e6ff;
  --default-button-bg: #62d7ff;
  --default-button-hover-bg: #92e6ff;
  background:
    radial-gradient(circle at 2% 0, rgba(44, 119, 180, .28), transparent 32rem),
    radial-gradient(circle at 96% 9%, rgba(36, 205, 173, .14), transparent 28rem),
    linear-gradient(135deg, #09111f 0%, #0b1628 46%, #08111d 100%);
}
body.tp-platform-console #header { border-bottom-color: rgba(125, 169, 214, .2); background: rgba(9, 18, 33, .88); box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }
.tp-platform-console .tp-console-brand { color: #f3f8ff !important; }
.tp-platform-console .tp-console-brand small { color: #86a3c3; }
.tp-platform-brand { gap: 11px; }
.tp-platform-brand > .tp-platform-mark { position: relative; display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid rgba(98, 215, 255, .58); border-radius: 9px; background: linear-gradient(145deg, #183755, #10223a); box-shadow: inset 0 0 0 1px rgba(57, 217, 182, .14), 0 9px 20px rgba(0, 0, 0, .22); }
.tp-platform-brand .tp-platform-mark i { position: absolute; width: 13px; height: 13px; border: 2px solid #74dcff; transform: rotate(45deg); }
.tp-platform-brand .tp-platform-mark i:last-child { width: 7px; height: 7px; border-color: #52e2bd; }
.tp-platform-brand-badge { margin-left: 2px; border: 1px solid rgba(243, 190, 99, .4); border-radius: 999px; padding: 3px 7px; color: #ffd68b; background: rgba(243, 190, 99, .11); font-size: 9px; letter-spacing: .13em; }
.tp-platform-console .tp-console-nav { gap: 7px; }
.tp-platform-console .tp-console-nav a { color: #a9bad0 !important; border: 1px solid transparent; border-radius: 8px; }
.tp-platform-console .tp-console-nav a:hover { color: #dff7ff !important; border-color: rgba(98, 215, 255, .18); background: rgba(98, 215, 255, .08); }
.tp-platform-console .tp-console-nav a.is-current { color: #effbff !important; border-color: rgba(98, 215, 255, .34); background: linear-gradient(120deg, rgba(43, 122, 174, .5), rgba(31, 180, 157, .19)); box-shadow: inset 0 1px 0 rgba(170, 237, 255, .12); }
.tp-platform-console #user-tools, .tp-platform-console .tp-console-account > span { color: #a4b4c9; }
.tp-platform-console .tp-console-account > span b { color: #ffd68b; }
.tp-platform-console .tp-console-account a { color: #a8c2df !important; }
.tp-platform-console .tp-console-account a:hover { color: #69e7c6 !important; }
.tp-platform-console .tp-console-account form button { color: #06101d !important; background: linear-gradient(120deg, #65d8ff, #3cddb8) !important; box-shadow: 0 10px 22px rgba(52, 191, 214, .16); }
.tp-platform-console .tp-console-account form button:hover { color: #06101d !important; background: linear-gradient(120deg, #9de9ff, #6cf0cb) !important; }
.tp-platform-console div.breadcrumbs { color: #8193ad; }
.tp-platform-console h1, .tp-platform-console h2, .tp-platform-console h3 { color: #edf5ff; }
.tp-platform-console .module, .tp-platform-console #changelist, .tp-platform-console .inline-group, .tp-platform-console .submit-row, .tp-platform-console .tp-panel { border-color: rgba(116, 158, 204, .2); background: rgba(15, 28, 48, .9); box-shadow: 0 20px 55px rgba(0, 0, 0, .17); }
.tp-platform-console .module h2, .tp-platform-console .module caption, .tp-platform-console .inline-group h2 { color: #bed1e9; background: linear-gradient(90deg, rgba(35, 72, 111, .8), rgba(18, 59, 77, .72)); }
.tp-platform-console .module td, .tp-platform-console .module th, .tp-platform-console .form-row, .tp-platform-console .tp-panel > header, .tp-platform-console .tp-ledger > a, .tp-platform-console .tp-quick-panel nav a { border-color: var(--tp-line-soft); }
.tp-platform-console .module a, .tp-platform-console #changelist table tbody a { color: #75dcff; }
.tp-platform-console .module a:hover, .tp-platform-console #changelist table tbody a:hover { color: #69ecc8; }
.tp-platform-console .object-tools a, .tp-platform-console .tp-tenant-add-button { color: #06101d !important; background: linear-gradient(120deg, #65d8ff, #3cddb8) !important; box-shadow: 0 12px 24px rgba(34, 178, 190, .17); }
.tp-platform-console #changelist-search, .tp-platform-console #changelist-form .actions, .tp-platform-console #changelist-filter, .tp-platform-console #changelist .paginator { background: rgba(11, 22, 38, .82); border-color: var(--tp-line-soft); }
.tp-platform-console #changelist-search label { border-color: rgba(98, 215, 255, .25); background: rgba(98, 215, 255, .08); }
.tp-platform-console #changelist table thead th { color: #a9bed7; border-color: var(--tp-line); background: #132139; }
.tp-platform-console #changelist table tbody td, .tp-platform-console #changelist table tbody th { color: #c5d2e4; border-color: var(--tp-line-soft); }
.tp-platform-console #changelist table tbody tr:nth-child(even) { background: rgba(20, 37, 61, .45); }
.tp-platform-console #changelist table tbody tr:hover { background: rgba(57, 134, 180, .15); }
.tp-platform-console #changelist-filter h2 { color: #c6d9ee; background: linear-gradient(90deg, #193651, #123342); }
.tp-platform-console #changelist-filter h3, .tp-platform-console #changelist-filter a, .tp-platform-console .help, .tp-platform-console p.help, .tp-platform-console div.help, .tp-platform-console .description { color: #91a7c2; }
.tp-platform-console #changelist-filter li.selected a { color: #6be9c7; }
.tp-platform-console input[type="text"], .tp-platform-console input[type="password"], .tp-platform-console input[type="email"], .tp-platform-console input[type="number"], .tp-platform-console input[type="url"], .tp-platform-console input[type="search"], .tp-platform-console select, .tp-platform-console textarea, .tp-platform-console .vTextField { border-color: #304764; color: #ecf5ff; background: #0b1729; }
.tp-platform-console input:hover, .tp-platform-console select:hover, .tp-platform-console textarea:hover { border-color: #4f9dca; }
.tp-platform-console input:focus, .tp-platform-console select:focus, .tp-platform-console textarea:focus { border-color: #66dbff; box-shadow: 0 0 0 4px rgba(98, 215, 255, .11); }
.tp-platform-console input[type="checkbox"] { accent-color: #50dabe; }
.tp-platform-console .aligned label, .tp-platform-console label, .tp-platform-console .readonly { color: #b6c8dc; }
.tp-platform-console .field-enabled_tests .tp-test-category { border-color: #2d435e; background: #0d1a2c; }
.tp-platform-console .field-enabled_tests .tp-test-category-head { border-color: #263c56; background: linear-gradient(90deg, #14334e, #113239); }
.tp-platform-console .field-enabled_tests .tp-test-category-toggle { color: #d5e7f9; }
.tp-platform-console .field-enabled_tests .tp-test-category-expand { color: #d5e7f9; background: transparent; box-shadow: none; }
.tp-platform-console .field-enabled_tests .tp-test-category-expand > span { color: #e5f2ff; }
.tp-platform-console .field-enabled_tests .tp-test-category-expand:hover { color: #ecfbff; background: rgba(98, 215, 255, .09); }
.tp-platform-console .field-enabled_tests .tp-test-category-expand small, .tp-platform-console .field-enabled_tests .tp-test-option small { color: #819bb5; }
.tp-platform-console .field-enabled_tests .tp-test-category-expand i { color: #75e7cb; }
.tp-platform-console .field-enabled_tests .tp-test-option b { color: #d5e7f9; }
.tp-platform-console .field-enabled_tests .tp-test-option:hover { border-color: #3f7894; background: #14334b; }
.tp-platform-console .submit-row input, .tp-platform-console input[type="submit"], .tp-platform-console button, .tp-platform-console .button { color: #06101d; background: linear-gradient(120deg, #65d8ff, #3cddb8); box-shadow: 0 10px 20px rgba(46, 188, 202, .16); }
.tp-platform-console .submit-row input:hover, .tp-platform-console input[type="submit"]:hover, .tp-platform-console button:hover, .tp-platform-console .button:hover { color: #06101d; background: linear-gradient(120deg, #9de9ff, #6cf0cb); }
.tp-platform-console .submit-row .closelink { border-color: #3a4f69; color: #bfd0e4 !important; background: #15243a; }
.tp-platform-console .submit-row .closelink:hover { color: #e7f6ff !important; border-color: #5a98bd; background: #1c3550; }
.tp-platform-console .tp-dashboard-hero { border-color: rgba(98, 215, 255, .24); background: linear-gradient(125deg, #101f36, #174166 64%, #145b5a); box-shadow: 0 25px 75px rgba(0, 0, 0, .27); }
.tp-platform-console .tp-dashboard-hero::before { background: radial-gradient(circle at 81% 18%, rgba(130, 227, 255, .19), transparent 14rem), linear-gradient(115deg, transparent 0 58%, rgba(255, 255, 255, .055) 58.2%, transparent 58.5%); }
.tp-platform-console .tp-eyebrow, .tp-platform-console .tp-panel > header .tp-eyebrow { color: #76e5ca; }
.tp-platform-console .tp-dashboard-hero > div > p:last-child { color: #d3e6f5; }
.tp-platform-scope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.tp-platform-scope span { border: 1px solid rgba(202, 244, 255, .24); border-radius: 999px; padding: 6px 10px; color: #d8f4ff; background: rgba(5, 19, 34, .2); font-size: 10px; font-weight: 760; letter-spacing: .05em; }
.tp-platform-core { position: relative; display: grid; width: 150px; height: 150px; place-content: center; justify-items: center; margin: auto; border: 1px solid rgba(167, 234, 255, .42); border-radius: 23px; background: linear-gradient(145deg, rgba(149, 226, 255, .18), rgba(4, 22, 40, .47)); box-shadow: inset 0 0 0 1px rgba(57, 217, 182, .13), 0 18px 40px rgba(1, 11, 24, .25); }
.tp-platform-core i { position: absolute; border: 1px solid rgba(160, 234, 255, .28); border-radius: 50%; }
.tp-platform-core i:nth-child(1) { inset: 17px; }
.tp-platform-core i:nth-child(2) { inset: 7px; border-color: rgba(91, 235, 199, .25); }
.tp-platform-core i:nth-child(3) { top: 18px; right: 22px; width: 9px; height: 9px; border: 0; background: #67ebc8; box-shadow: 0 0 16px #67ebc8; }
.tp-platform-core b { position: relative; color: #fff; font-size: 42px; line-height: 1; }
.tp-platform-core span, .tp-platform-core small { position: relative; color: #d4e9f4; font-size: 10px; }
.tp-platform-core span { margin-top: 7px; letter-spacing: .08em; }
.tp-platform-core small { margin-top: 4px; color: #93bfd1; font-size: 9px; }
.tp-platform-console .tp-metric-grid article { border-color: rgba(106, 157, 207, .2); background: linear-gradient(145deg, rgba(20, 36, 59, .95), rgba(13, 26, 45, .92)); box-shadow: 0 16px 40px rgba(0, 0, 0, .15); }
.tp-platform-console .tp-metric-grid article::after { border-color: rgba(98, 215, 255, .12); }
.tp-platform-console .tp-metric-grid p, .tp-platform-console .tp-metric-grid small { color: #90a7c2; }
.tp-platform-console .tp-metric-grid strong, .tp-platform-console .tp-test-summary h3, .tp-platform-console .tp-quick-panel nav b, .tp-platform-console .tp-ledger b { color: #edf6ff; }
.tp-platform-console .tp-metric-grid strong em { color: #7f9ab8; }
.tp-platform-console .tp-metric-icon { color: #071220; background: #63d8ff; }
.tp-platform-console .tp-metric-icon.records { background: #43dbba; }
.tp-platform-console .tp-metric-icon.tests { background: #6fa4ff; }
.tp-platform-console .tp-metric-icon.admins { color: #2b1c05; background: #f1bd66; }
.tp-platform-console .tp-test-summary p, .tp-platform-console .tp-quick-panel nav small, .tp-platform-console .tp-ledger small, .tp-platform-console .tp-ledger em { color: #91a8c2; }
.tp-platform-console .tp-ring-meter { background: conic-gradient(#59d8be 0 var(--open), #243850 var(--open) 100%); }
.tp-platform-console .tp-ring-meter::before { background: #101e32; box-shadow: inset 0 0 0 1px #29405b; }
.tp-platform-console .tp-ring-meter b { color: #ecf7ff; }
.tp-platform-console .tp-inline-action { color: #c7f8ee !important; background: rgba(57, 217, 182, .13); }
.tp-platform-console .tp-quick-panel nav a, .tp-platform-console .tp-ledger > a { color: #e3effd !important; }
.tp-platform-console .tp-quick-panel nav a:hover, .tp-platform-console .tp-ledger > a:hover { background: rgba(66, 161, 202, .13); }
.tp-platform-console .tp-quick-panel nav a > span, .tp-platform-console .tp-quick-panel nav i { color: #69e6c6; }
.tp-platform-console .tp-avatar { color: #aeeeff; background: rgba(98, 215, 255, .13); }
.tp-platform-console .tp-avatar.alt { color: #8df1d6; background: rgba(57, 217, 182, .12); }
.tp-platform-console .tp-user-hero { border-color: rgba(112, 164, 216, .24); background: linear-gradient(118deg, rgba(20, 43, 70, .96), rgba(15, 38, 58, .9)); box-shadow: 0 18px 48px rgba(0, 0, 0, .2); }
.tp-platform-console .tp-user-avatar-large { color: #071421; background: linear-gradient(145deg, #69dcff, #45dcb9); box-shadow: 0 11px 25px rgba(28, 169, 196, .2); }
.tp-platform-console .tp-user-hero-copy > p:last-child { color: #91abc5; }
.tp-platform-console .tp-role-member { color: #bbd1e7; background: rgba(145, 171, 197, .13); }
.tp-platform-console .tp-role-admin { color: #93eed9; background: rgba(57, 217, 182, .13); }
.tp-platform-console .tp-role-superadmin { color: #ffd88d; background: rgba(243, 190, 99, .14); }
.tp-platform-console .tp-user-state.is-active { color: #7ceac6; background: rgba(72, 214, 165, .13); }
.tp-platform-console .tp-user-state.is-inactive { color: #ff9cac; background: rgba(240, 111, 129, .13); }
.tp-platform-console .tp-user-insights { border-color: rgba(112, 164, 216, .22); background: rgba(14, 29, 49, .94); box-shadow: 0 18px 50px rgba(0, 0, 0, .19); }
.tp-platform-console .tp-user-section-heading { border-color: #20354e; background: linear-gradient(90deg, rgba(23, 51, 78, .72), rgba(14, 34, 54, .4)); }
.tp-platform-console .tp-user-section-heading > a { color: #b8d7ef !important; }
.tp-platform-console .tp-user-section-heading > a:hover { color: #82efcf !important; }
.tp-platform-console .tp-user-section-heading > a span { color: #72e6c9; }
.tp-platform-console .tp-user-audit-note { color: #8faac4; }
.tp-platform-console .tp-user-stat-row { border-color: #20354e; background: #20354e; }
.tp-platform-console .tp-user-stat-row article { background: #101f35; }
.tp-platform-console .tp-user-stat-row span, .tp-platform-console .tp-user-stat-row small { color: #8da7c1; }
.tp-platform-console .tp-user-stat-row strong { color: #edf7ff; }
.tp-platform-console .tp-user-record { border-color: #20354e; }
.tp-platform-console .tp-user-record:hover { background: rgba(54, 139, 187, .13); }
.tp-platform-console .tp-user-record-main { color: #e7f3ff !important; }
.tp-platform-console .tp-user-record-main small, .tp-platform-console .tp-user-record-main em { color: #91abc5; }
.tp-platform-console .tp-user-record-main i { color: #70e4c7; }
.tp-platform-console .tp-user-record-mark { color: #91e9d7; background: rgba(57, 217, 182, .13); }
.tp-platform-console .tp-user-result-link { color: #b9f7e8 !important; background: rgba(57, 217, 182, .13); }
.tp-platform-console .tp-user-result-link:hover { color: #ddfbff !important; background: rgba(98, 215, 255, .15); }
.tp-platform-console .tp-user-audit-grid { background: #20354e; }
.tp-platform-console .tp-user-audit-grid > article { background: #101f35; }
.tp-platform-console .tp-user-audit-grid h3 { color: #d5e8fa; }
.tp-platform-console .tp-user-audit-grid dt { color: #819db9; }
.tp-platform-console .tp-user-audit-grid dd { color: #c4d7e9; }
.tp-platform-console .tp-user-insights .tp-empty { color: #91abc5; }
.tp-platform-console .tp-console-footer { border-color: rgba(128, 173, 217, .18); color: #7189a5; }
.tp-platform-console .tp-login-story .tp-eyebrow, .tp-platform-console .tp-login-card header p { color: #75e5ca; }
.tp-platform-console .tp-login-story h1, .tp-platform-console .tp-login-card h2 { color: #eff7ff; }
.tp-platform-console .tp-login-story h1 em { color: #67dcff; }
.tp-platform-console .tp-login-story > p:last-of-type { color: #aec2d8; }
.tp-platform-console .tp-login-card { border-color: rgba(120, 174, 225, .18); background: rgba(15, 29, 49, .91); box-shadow: 0 30px 90px rgba(0, 0, 0, .3); }
.tp-platform-console .tp-login-mark { background: linear-gradient(145deg, #237fb5, #35cfae); }
.tp-platform-console .tp-login-field label { color: #b9cbe0; }
.tp-platform-console .tp-login-note { color: #8ea7c1; }
.tp-platform-console .tp-login-note i { background: #55e0bc; }

/* Tenant list: creation is a control inside the search form, not a separate toolbar item. */
.tp-console.app-tenants.model-tenant.change-list .tp-tenant-add-button { display: inline-flex; min-height: 40px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 11px; padding: 9px 15px; color: #fff !important; background: linear-gradient(120deg, #715de9, #469ce4); box-shadow: 0 12px 24px rgba(94, 86, 218, .2); font-size: 12px; font-weight: 750; white-space: nowrap; }
.tp-console.app-tenants.model-tenant.change-list .tp-tenant-add-button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 15px 30px rgba(94, 86, 218, .27); }

@media (max-width: 600px) {
  .tp-console.app-tenants.model-tenant.change-form #content-start,
  .tp-console.app-tenants.model-tenant.change-form div.breadcrumbs { width: calc(100% - 28px); }
  .tp-console.app-tenants.model-tenant.change-form .aligned label { float: none; width: auto; margin: 0 0 8px; }
  .tp-console.app-tenants.model-tenant.change-form .field-owner_search .help { margin-left: 0; }
  .tp-console.app-tenants.model-tenant.change-form .submit-row { flex-wrap: wrap; }
  .tp-console.app-tenants.model-tenant.change-form .submit-row .deletelink-box { width: 100%; margin-left: 0; }
  .tp-console.app-tenants.model-tenant.change-list #changelist-search > div { flex-wrap: wrap; }
  .tp-console.app-tenants.model-tenant.change-list .tp-tenant-add-button { width: 100%; margin-top: 4px; }
}

/* Keep the late tenant-editor overrides from reintroducing the tenant palette on the platform. */
body.tp-platform-console.app-tenants.model-tenant.change-form .submit-row input[name="_continue"] { border-color: #3b7091; color: #c5f3ff; background: #163550; }
body.tp-platform-console.app-tenants.model-tenant.change-list .tp-tenant-add-button { color: #06101d !important; background: linear-gradient(120deg, #65d8ff, #3cddb8); box-shadow: 0 12px 24px rgba(34, 178, 190, .17); }
body.tp-platform-console .tp-owner-picker-results { border-color: #3a6686; background: #0d1a2c; box-shadow: 0 18px 40px rgba(0, 0, 0, .34); }
body.tp-platform-console .tp-owner-picker-option, body.tp-platform-console .tp-owner-picker-empty { border-color: #1e334c !important; color: #c4d4e7 !important; background: #0d1a2c !important; }
body.tp-platform-console .tp-owner-picker-option:hover, body.tp-platform-console .tp-owner-picker-option:focus { color: #d9fbff !important; background: #153651 !important; }
