:root {
  color-scheme: dark;
  --t2p-bg: #040405;
  --t2p-bg-2: #0a0b0f;
  --t2p-bg-3: #12131a;
  --t2p-panel: rgba(12, 13, 18, 0.76);
  --t2p-panel-strong: rgba(16, 17, 23, 0.9);
  --t2p-panel-soft: rgba(255, 255, 255, 0.04);
  --t2p-line: rgba(255, 255, 255, 0.10);
  --t2p-line-strong: rgba(255, 255, 255, 0.18);
  --t2p-text: #f6f4f8;
  --t2p-text-strong: #ffffff;
  --t2p-muted: #b9b2bf;
  --t2p-muted-2: #8f8799;
  --t2p-accent: #d82136;
  --t2p-accent-2: #7c2cff;
  --t2p-accent-3: #ff6a49;
  --t2p-good: #2cc17e;
  --t2p-warn: #f2a140;
  --t2p-radius-xs: 10px;
  --t2p-radius-sm: 14px;
  --t2p-radius-md: 18px;
  --t2p-radius-lg: 24px;
  --t2p-radius-xl: 30px;
  --t2p-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
  --t2p-shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.28);
  --t2p-max-content: 1180px;
  --t2p-focus: 0 0 0 2px rgba(255, 255, 255, 0.04), 0 0 0 6px rgba(216, 33, 54, 0.24);
  --t2p-asset-logo-primary: url('/assets/img/brand/t2p-logo-primary-v1.png');
  --t2p-bg-public: url('/assets/img/backgrounds/public/t2p-bg-portal-core-v1.png');
  --t2p-bg-reader: url('/assets/img/backgrounds/reader/t2p-bg-nebula-passive-v1.png');
  --t2p-bg-runtime: url('/assets/img/backgrounds/runtime/t2p-bg-vortex-core-v1.png');
  --t2p-bg-workflow: url('/assets/img/backgrounds/runtime/t2p-bg-vortex-core-v1.png');
  --t2p-bg-operator: url('/assets/img/backgrounds/operator/t2p-bg-nebula-hud-v1.png');
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--t2p-text);
  background:
    radial-gradient(circle at 18% 10%, rgba(216, 33, 54, 0.18), transparent 18%),
    radial-gradient(circle at 78% 12%, rgba(124, 44, 255, 0.18), transparent 16%),
    radial-gradient(circle at 55% 92%, rgba(255, 106, 73, 0.09), transparent 22%),
    linear-gradient(180deg, #050507 0%, #07070a 55%, #040405 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    radial-gradient(circle at 50% 8%, rgba(216, 33, 54, 0.18), transparent 18%),
    radial-gradient(circle at 42% 16%, rgba(124, 44, 255, 0.12), transparent 17%),
    radial-gradient(circle at 58% 23%, rgba(255, 255, 255, 0.08), transparent 12%),
    url("/assets/img/tat2portal-portal.svg");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: 50% -6rem, 80% 16rem, 12% 12rem, center 5%;
  background-size: 1100px auto, 500px auto, 420px auto, min(1200px, 120vw) auto;
  opacity: 0.72;
  filter: saturate(1.05);
}

body.surface-runtime::before,
body.surface-runtime.surface-map::before,
body.surface-workflow::before {
  content: none;
}

body.surface-public,
body.surface-reader,
body.surface-runtime,
body.surface-workflow,
body.surface-operator {
  position: relative;
}

body.surface-public {
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.22), rgba(5, 5, 8, 0.58)), var(--t2p-bg-public) center center / cover no-repeat;
  background-color: #050508;
}

body.surface-reader {
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.26), rgba(5, 5, 8, 0.62)), var(--t2p-bg-reader) center center / cover no-repeat;
  background-color: #050508;
}

body.surface-runtime {
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.28), rgba(5, 5, 8, 0.64)), var(--t2p-bg-runtime) center center / cover no-repeat;
  background-color: #050508;
}

body.surface-workflow {
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.28), rgba(5, 5, 8, 0.64)), var(--t2p-bg-workflow) center center / cover no-repeat;
  background-color: #050508;
}

body.surface-operator {
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.28), rgba(5, 5, 8, 0.66)), var(--t2p-bg-operator) center center / cover no-repeat;
  background-color: #050508;
}

body.front-door::before {
  content: none;
}

body::after {
  background-image: url("/assets/img/tat2portal-noise.png");
  background-repeat: repeat;
  opacity: 0.06;
  mix-blend-mode: screen;
}

body.surface-runtime .t2p-visual-chrome,
body.surface-runtime.surface-map .t2p-visual-chrome,
body.surface-workflow .t2p-visual-chrome {
  display: none;
}

img,
svg,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a.button,
.nav a,
.nav button,
.btn-join,
.btn-login,
.messages-drawer-link,
.messages-drawer-close,
.appointment a,
.card a,
.legal-nav a,
.control-toggle,
.topbar button,
.topbar a,
.messages-thread,
.messages-reply-actions button {
  min-height: 44px;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
a.button,
.nav a,
.nav button,
.btn-join,
.btn-login,
.messages-drawer-link,
.messages-drawer-close,
.appointment a,
.card a,
.legal-nav a,
.control-toggle,
.topbar button,
.topbar a,
.messages-thread,
.messages-reply-actions button {
  border-radius: 16px;
  border: 1px solid var(--t2p-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), rgba(12, 13, 18, 0.84);
  color: var(--t2p-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
a.button:hover,
.nav a:hover,
.nav button:hover,
.btn-join:hover,
.btn-login:hover,
.messages-drawer-link:hover,
.messages-drawer-close:hover,
.appointment a:hover,
.card a:hover,
.legal-nav a:hover,
.control-toggle:hover,
.topbar button:hover,
.topbar a:hover,
.messages-thread:hover,
.messages-reply-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.22);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: var(--t2p-focus);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--t2p-line);
  border-radius: 16px;
  background: rgba(10, 11, 16, 0.80);
  color: var(--t2p-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

input::placeholder,
textarea::placeholder {
  color: var(--t2p-muted-2);
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

:where(main, .shell, .app, .workspace, .page, .content, .page-shell) {
  width: 100%;
}

:where(.landing-container, .card, .panel, .hero, .legal-card, .appointment, .messages-drawer-panel, .messages-thread, .messages-preview-message, .summary, .section-card, .nav-card, .empty, .control, .workspace-rail, .workspace-card, .workspace-panel, .workspace-sidebar, .workspace-toolbar, .workspace-inspector, .workspace-surface, .workspace-viewport, .workspace-pane, .form-card, .auth-card, .join-card, .surface-card, .surface-panel, .message-card, .payment-card, .workflow-card, .professional-card, .legal-reader, .settings-panel, .shell-panel, .shell-card) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(12, 13, 18, 0.96), rgba(12, 13, 18, 0.86));
  border: 1px solid var(--t2p-line);
  border-radius: var(--t2p-radius-lg);
  box-shadow: var(--t2p-shadow);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

:where(.topbar, .legal-nav, .messages-drawer-header, .hero, .summary, .page-head, .section-head, .workspace-topbar, .workspace-header, .shell-header, .join-header) {
  border: 1px solid var(--t2p-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(14, 15, 20, 0.94), rgba(10, 11, 16, 0.88));
  box-shadow: var(--t2p-shadow-soft);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

:where(.badge, .status, .messages-thread-state, .messages-drawer-kicker, .kicker, .eyebrow, .brand-subtitle, .meta, .facts, .lede, .summary, .messages-thread-meta, .messages-thread-snippet, .messages-preview-message-meta, .messages-drawer-status, .control label, .control .label, .legal-body, .empty, .field-hint, .help, .muted) {
  color: var(--t2p-muted);
}

:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl) {
  margin: 0;
}

:where(h1, h2, h3) {
  letter-spacing: -0.03em;
}

:where(h1) {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 0.96;
}

:where(h2) {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.02;
}

:where(h3) {
  font-size: 1.1rem;
  line-height: 1.12;
}

:where(.platform-name, .brand-title, .brand, .brand strong, .rail-mark, .title, .page-title) {
  letter-spacing: -0.03em;
}

:where(.shell, .app, .workspace, .page, .auth-page, .legal-page, .reader-page, .join-page) {
  position: relative;
  z-index: 1;
}

:where(.landing-container, .auth-card, .join-card, .legal-card, .hero, .summary, .section-card, .nav-card, .appointment, .messages-drawer-panel, .messages-thread, .messages-preview-message, .workflow-card, .payment-card, .message-card, .professional-card, .settings-panel, .workspace-card, .workspace-panel, .workspace-rail, .shell-panel, .shell-card) {
  padding: clamp(16px, 2.4vw, 24px);
}

:where(.entry-buttons, .nav, .grid, .appointments, .messages-drawer-grid, .messages-drawer-column, .messages-thread-list, .messages-preview-body, .messages-reply, .page-grid, .stack, .panel-grid, .form-grid, .summary-grid, .toolbar, .toolbar-row, .section-grid, .settings-grid, .workspace-grid, .workspace-columns, .field-grid, .chip-row) {
  display: grid;
  gap: 12px;
}

:where(.nav) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

:where(.nav a, .nav button, .messages-drawer-link, .messages-drawer-close, .appointment a, .card a, .legal-nav a, .control-toggle, .messages-reply-actions button, .btn-join, .btn-login, .topbar button, .topbar a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

:where(.btn-join, .btn-login, .messages-drawer-close, .appointment a, .messages-reply-actions button, .primary, .primary-button, .save-button, .submit-button) {
  border-color: rgba(216, 33, 54, 0.45);
  background: linear-gradient(180deg, rgba(216, 33, 54, 0.96), rgba(130, 24, 41, 0.94));
  color: var(--t2p-text-strong);
}

:where(.btn-login, .messages-drawer-link, .secondary, .secondary-button, .ghost, .outline, .outline-button) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), rgba(10, 11, 16, 0.78);
  border-color: var(--t2p-line-strong);
}

:where(.topbar) {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0.9rem 1rem;
}

:where(.topbar .brand, .topbar .brand-title) {
  display: grid;
  gap: 0.2rem;
  font-size: 1rem;
  font-weight: 800;
}

:where(.topbar .brand-subtitle) {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

:where(.badge, .status) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 1.7rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:where(.status, .badge, .messages-thread-state) {
  color: var(--t2p-text);
}

:where(.status.confirmed, .badge.confirmed, [data-status="confirmed"], .is-confirmed) {
  border-color: rgba(44, 193, 126, 0.35);
  background: rgba(44, 193, 126, 0.14);
  color: #9df0c9;
}

:where(.status.pending, .badge.pending, [data-status="pending"], .is-pending) {
  border-color: rgba(242, 161, 64, 0.35);
  background: rgba(242, 161, 64, 0.14);
  color: #ffd39a;
}

:where(.status.error, .badge.error, [data-status="error"], .is-error) {
  border-color: rgba(216, 33, 54, 0.35);
  background: rgba(216, 33, 54, 0.16);
  color: #ffb5be;
}

:where(.status.complete, .badge.complete, [data-status="complete"], .is-complete) {
  border-color: rgba(124, 44, 255, 0.3);
  background: rgba(124, 44, 255, 0.15);
  color: #d2c6ff;
}

:where(.status.in-progress, .badge.in-progress, [data-status="in-progress"], .is-in-progress) {
  border-color: rgba(255, 106, 73, 0.3);
  background: rgba(255, 106, 73, 0.15);
  color: #ffd4c8;
}

:where(.tag, .chip, .pill, .label-pill, .section-pill, .filter-pill, .keyword, .count-pill) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--t2p-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--t2p-text);
  font-size: 0.75rem;
  font-weight: 700;
}

:where(.grid, .summary-grid, .messages-drawer-grid, .messages-thread-list, .messages-preview-body, .appointments, .controls-grid, .section-grid, .workflow-grid, .settings-grid, .operator-grid) {
  align-items: start;
}

:where(.legal-body, pre, code, kbd, samp) {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:where(.legal-body) {
  white-space: pre-wrap;
  overflow-x: auto;
  line-height: 1.75;
}

:where(.messages-drawer) {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(4, 4, 5, 0.66);
  backdrop-filter: blur(6px);
}

:where(.messages-overlay) {
  background: rgba(4, 4, 5, 0.58);
  backdrop-filter: blur(6px);
}

:where(.messages-drawer-panel) {
  width: min(100%, 1060px);
  max-height: min(100%, 860px);
  overflow: auto;
}

:where(.messages-thread) {
  text-align: left;
}

:where(.messages-thread.is-active) {
  border-color: rgba(216, 33, 54, 0.5);
  box-shadow: inset 0 0 0 1px rgba(216, 33, 54, 0.42), var(--t2p-shadow-soft);
}

:where(.messages-thread.is-unread) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)), rgba(15, 16, 22, 0.92);
}

:where(.messages-preview-message.own) {
  border-color: rgba(216, 33, 54, 0.36);
}

:where(.messages-reply textarea) {
  min-height: 96px;
}

body.surface-runtime :where(.summary, .appointment, .empty, .panel, .section-card, .nav-card, .workflow-card, .payment-card, .professional-card, .settings-panel, .shell-panel, .shell-card),
body.surface-workflow :where(.summary, .appointment, .empty, .panel, .section-card, .nav-card, .workflow-card, .payment-card, .professional-card, .settings-panel, .shell-panel, .shell-card) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(12, 13, 18, 0.70), rgba(12, 13, 18, 0.56));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

body.surface-runtime .empty,
body.surface-workflow .empty {
  min-height: 132px;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  align-content: center;
  padding: 1rem 1.15rem;
  text-align: center;
}

body.surface-runtime .empty strong,
body.surface-workflow .empty strong {
  color: var(--t2p-text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

body.surface-runtime .empty span,
body.surface-workflow .empty span {
  color: var(--t2p-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

:where(.landing-container) {
  width: min(100%, 560px);
  position: relative;
  overflow: hidden;
}

:where(.landing-container::before, .hero::before, .legal-card::before, .join-card::before, .messages-drawer-panel::before, .appointment::before, .summary::before, .card::before, .panel::before, .shell-card::before, .workspace-panel::before, .workspace-card::before) {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(216, 33, 54, 0.10), transparent 32%), radial-gradient(circle at left center, rgba(124, 44, 255, 0.10), transparent 28%);
  opacity: 0.95;
}

:where(.landing-container, .hero, .legal-card, .messages-drawer-panel, .appointment, .summary, .card, .panel, .workspace-card, .workspace-panel, .shell-card, .join-card, .legal-reader, .auth-card) > * {
  position: relative;
  z-index: 1;
}

:where(.hero, .summary, .section-card, .nav-card) {
  position: relative;
}

@media (min-width: 768px) {
  :where(.topbar) {
    padding-inline: 1.2rem;
  }

  :where(.landing-container) {
    width: min(100%, 620px);
  }

  :where(.messages-drawer) {
    padding: 20px;
  }
}

@media (max-width: 767px) {
  :where(.topbar) {
    flex-wrap: wrap;
  }

  :where(.nav) {
    justify-content: flex-start;
    width: 100%;
  }

  :where(.messages-drawer) {
    padding: 10px;
  }

  :where(.messages-drawer-panel) {
    max-height: calc(100dvh - 20px);
  }

  :where(.landing-container, .hero, .legal-card, .messages-drawer-panel, .appointment, .summary, .card, .panel, .workspace-card, .workspace-panel, .shell-card, .join-card, .legal-reader, .auth-card) {
    border-radius: 20px;
  }
}

.t2p-visual-chrome {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.t2p-visual-chrome__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.7;
}

.t2p-visual-chrome__orb--one {
  width: 26rem;
  height: 26rem;
  top: -8rem;
  left: -3rem;
  background: radial-gradient(circle, rgba(216, 33, 54, 0.36), rgba(216, 33, 54, 0.04) 60%, transparent 72%);
}

.t2p-visual-chrome__orb--two {
  width: 30rem;
  height: 30rem;
  top: 10rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(124, 44, 255, 0.22), rgba(124, 44, 255, 0.04) 62%, transparent 74%);
}

.t2p-visual-chrome__trail {
  position: absolute;
  inset: auto 0 8% 0;
  height: 220px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 73, 0.10), rgba(216, 33, 54, 0.18), rgba(124, 44, 255, 0.10), transparent);
  filter: blur(40px);
  opacity: 0.75;
}

.t2p-availability-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.t2p-availability-toggle-form {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0;
}

.t2p-availability-toggle-button {
  min-height: 44px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--t2p-line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)), rgba(10, 11, 16, 0.82);
  color: var(--t2p-text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.t2p-availability-toggle-button.is-active {
  border-color: rgba(44, 193, 126, 0.35);
  background: linear-gradient(180deg, rgba(44, 193, 126, 0.96), rgba(21, 104, 67, 0.94));
}

.t2p-availability-toggle-button.is-busy,
.t2p-availability-toggle-button:disabled {
  cursor: progress;
  opacity: 0.75;
  transform: none;
}

.t2p-availability-toggle-copy {
  display: grid;
  gap: 0.15rem;
  text-align: left;
  min-width: 0;
}

.t2p-availability-toggle-state {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t2p-muted);
}

.t2p-availability-toggle-message {
  min-height: 1em;
  font-size: 0.72rem;
  color: var(--t2p-muted-2);
  max-width: 26ch;
  white-space: normal;
}

@media (max-width: 740px) {
  .t2p-availability-toggle,
  .t2p-availability-toggle-form {
    width: 100%;
  }
}

body.surface-runtime .t2p-product-header,
body.surface-workflow .t2p-product-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.88), rgba(10, 11, 16, 0.72)),
    rgba(10, 11, 16, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(18px);
}

body.surface-runtime .t2p-product-header__brand,
body.surface-workflow .t2p-product-header__brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.surface-runtime .t2p-product-header__brand-label,
body.surface-workflow .t2p-product-header__brand-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 244, 248, 0.72);
}

body.surface-runtime .t2p-product-header__title,
body.surface-workflow .t2p-product-header__title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--t2p-text-strong);
}

body.surface-runtime .t2p-product-header__subtitle,
body.surface-workflow .t2p-product-header__subtitle {
  font-size: 13px;
  color: var(--t2p-muted);
  line-height: 1.45;
}

body.surface-runtime .t2p-product-nav,
body.surface-workflow .t2p-product-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.surface-runtime .t2p-product-nav__item,
body.surface-workflow .t2p-product-nav__item {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), rgba(12, 13, 18, 0.84);
  color: var(--t2p-text);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.surface-runtime .t2p-product-nav__item[aria-current="page"],
body.surface-workflow .t2p-product-nav__item[aria-current="page"] {
  border-color: rgba(216, 33, 54, 0.45);
  background: linear-gradient(180deg, rgba(216, 33, 54, 0.26), rgba(216, 33, 54, 0.12)), rgba(12, 13, 18, 0.88);
}

body.surface-runtime .t2p-product-nav__label,
body.surface-workflow .t2p-product-nav__label {
  font-size: 12px;
  font-weight: 700;
}

body.surface-runtime .t2p-product-nav__badge,
body.surface-workflow .t2p-product-nav__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45em;
  min-height: 1.45em;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(216, 33, 54, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

body.surface-runtime .t2p-product-nav__badge[hidden],
body.surface-workflow .t2p-product-nav__badge[hidden] {
  display: none !important;
}

body.surface-runtime .t2p-product-header__actions,
body.surface-workflow .t2p-product-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.surface-runtime .t2p-product-header__actions form,
body.surface-workflow .t2p-product-header__actions form {
  margin: 0;
  display: inline-flex;
}

body.surface-runtime .t2p-product-header__actions .t2p-product-header__logout,
body.surface-workflow .t2p-product-header__actions .t2p-product-header__logout {
  display: inline-flex;
}

body.surface-runtime .t2p-product-header__actions .t2p-product-header__action,
body.surface-workflow .t2p-product-header__actions .t2p-product-header__action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)), rgba(12, 13, 18, 0.84);
  color: var(--t2p-text);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font: inherit;
  cursor: pointer;
}


body.surface-runtime .t2p-runtime-panel,
body.surface-runtime .t2p-runtime-section,
body.surface-runtime .t2p-runtime-card,
body.surface-runtime .t2p-map-frame,
body.surface-runtime .t2p-map-shell,
body.surface-workflow .t2p-runtime-panel,
body.surface-workflow .t2p-runtime-section,
body.surface-workflow .t2p-runtime-card,
body.surface-workflow .t2p-map-frame,
body.surface-workflow .t2p-map-shell,
body.surface-runtime :where(.summary, .appointment, .empty, .panel, .thread, .bubble, .nav-card, .section-card, .detail-card, .summary-card, .item-card, .resolved-client, .messages-drawer-panel, .messages-thread, .messages-preview-message, .module-shell, .section, .calendar-panel, .day-panel, .resolution-panel, .map-panel, .results-panel, .result-card),
body.surface-workflow :where(.summary, .appointment, .empty, .panel, .thread, .bubble, .nav-card, .section-card, .detail-card, .summary-card, .item-card, .resolved-client, .messages-drawer-panel, .messages-thread, .messages-preview-message, .module-shell, .section, .calendar-panel, .day-panel, .resolution-panel, .map-panel, .results-panel, .result-card) {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(10, 11, 16, 0.64);
  box-shadow: var(--t2p-shadow-soft);
  backdrop-filter: blur(18px);
}

body.surface-runtime .t2p-runtime-panel,
body.surface-workflow .t2p-runtime-panel,
body.surface-runtime .t2p-runtime-section,
body.surface-workflow .t2p-runtime-section,
body.surface-runtime :where(.summary, .appointment, .empty, .panel, .thread, .bubble, .nav-card, .section-card, .detail-card, .summary-card, .item-card, .resolved-client, .messages-drawer-panel, .messages-thread, .messages-preview-message, .module-shell, .section, .calendar-panel, .day-panel, .resolution-panel, .map-panel, .results-panel, .result-card),
body.surface-workflow :where(.summary, .appointment, .empty, .panel, .thread, .bubble, .nav-card, .section-card, .detail-card, .summary-card, .item-card, .resolved-client, .messages-drawer-panel, .messages-thread, .messages-preview-message, .module-shell, .section, .calendar-panel, .day-panel, .resolution-panel, .map-panel, .results-panel, .result-card) {
  padding: 16px;
}

body.surface-runtime .t2p-runtime-card,
body.surface-workflow .t2p-runtime-card {
  padding: 14px;
}

body.surface-appointments .content {
  background: transparent;
}

body.surface-appointments :where(.resolution-panel, .calendar-panel, .day-panel, .resolved-client, .scheduled-list, .blocks-grid, .editor-intro, .appointment-item, .block-item, .calendar-cell, .appointment-card, .qr-card, .modal-shell, .modal-header, .editor-shell, .editor-section, .service-recipient-summary, .duration-box) {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(10, 11, 16, 0.64);
  box-shadow: var(--t2p-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.surface-appointments :where(.scheduled-list, .blocks-grid, .editor-intro) {
  padding: 14px;
}

body.surface-appointments .calendar-cell.empty-slot {
  background: transparent;
  border-style: dashed;
  opacity: 0.32;
  box-shadow: none;
}

body.surface-appointments .calendar-cell.selected,
body.surface-appointments .block-item.selected {
  border-color: rgba(216, 33, 54, 0.55);
  box-shadow: inset 0 0 0 1px rgba(216, 33, 54, 0.18), var(--t2p-shadow-soft);
  background:
    linear-gradient(180deg, rgba(216, 33, 54, 0.12), rgba(10, 11, 16, 0.74)),
    rgba(10, 11, 16, 0.70);
}

body.surface-appointments .calendar-cell.today {
  box-shadow: inset 0 0 0 1px rgba(124, 44, 255, 0.20), var(--t2p-shadow-soft);
}

body.surface-appointments .meta,
body.surface-appointments .fact,
body.surface-appointments .message,
body.surface-appointments .muted,
body.surface-appointments .resolved-client small,
body.surface-appointments .panel-title {
  color: var(--t2p-muted);
}

body.surface-appointments .fact strong,
body.surface-appointments .resolved-name,
body.surface-appointments h1,
body.surface-appointments h2,
body.surface-appointments h3,
body.surface-appointments h4 {
  color: var(--t2p-text);
}

body.surface-appointments .status {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--t2p-text);
}

body.surface-appointments .action,
body.surface-appointments .links a,
body.surface-appointments .btn-dark,
body.surface-appointments .btn-ghost {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(10, 11, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--t2p-text);
  box-shadow: var(--t2p-shadow-soft);
}

body.surface-appointments .btn-red {
  background: linear-gradient(180deg, rgba(216, 33, 54, 0.98), rgba(146, 17, 31, 0.98));
  border: 1px solid rgba(216, 33, 54, 0.55);
  color: #fff;
}

body.surface-appointments .calendar-panel,
body.surface-appointments .day-panel,
body.surface-appointments .resolution-panel {
  padding: 12px;
  gap: 12px;
}

body.surface-appointments .calendar-cell {
  min-height: 78px;
  padding: 8px 9px;
  display: grid;
  align-content: start;
  gap: 4px;
}

body.surface-appointments .calendar-cell .date-number {
  font-size: 14px;
  line-height: 1;
}

body.surface-appointments .calendar-cell .count-badge {
  min-width: 1.75rem;
  min-height: 1.75rem;
  padding-inline: 0.45rem;
}

body.surface-appointments .day-group,
body.surface-appointments .editor-shell,
body.surface-appointments .editor-grid,
body.surface-appointments .editor-section {
  gap: 10px;
}

body.surface-appointments .day-group,
body.surface-appointments .editor-shell,
body.surface-appointments .editor-section,
body.surface-appointments .duration-box,
body.surface-appointments .service-recipient-summary,
body.surface-appointments .qr-card {
  padding: 12px;
}

body.surface-appointments .editor-shell {
  border-radius: 16px;
}

body.surface-appointments .editor-section {
  border-radius: 14px;
}

body.surface-appointments .radio-row {
  gap: 8px;
}

body.surface-appointments .radio-chip {
  min-height: 44px;
  padding: 0 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 11, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--t2p-text);
}

body.surface-appointments .radio-chip input {
  accent-color: var(--primary-red, #c01c28);
}

body.surface-appointments .input,
body.surface-appointments .textarea,
body.surface-appointments select.input {
  min-height: 44px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(9, 10, 15, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--t2p-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.surface-appointments .textarea {
  min-height: 88px;
}

body.surface-appointments .input::placeholder,
body.surface-appointments .textarea::placeholder {
  color: rgba(218, 226, 234, 0.5);
}

body.surface-appointments .modal-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(10, 11, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--t2p-shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.surface-appointments .modal-header {
  padding: 12px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(10, 11, 16, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.surface-appointments .modal-title {
  font-size: 15px;
}

body.surface-appointments .qr-card {
  gap: 12px;
}

@media (max-width: 767px) {
  body.surface-appointments .calendar-panel,
  body.surface-appointments .day-panel,
  body.surface-appointments .resolution-panel {
    padding: 10px;
    gap: 10px;
  }

  body.surface-appointments .calendar-cell {
    min-height: 66px;
    padding: 7px 8px;
  }

  body.surface-appointments .editor-shell,
  body.surface-appointments .editor-section,
  body.surface-appointments .duration-box,
  body.surface-appointments .service-recipient-summary,
  body.surface-appointments .qr-card {
    padding: 10px;
  }

  body.surface-appointments .modal-header {
    padding: 10px 14px;
  }
}

body.surface-runtime .t2p-map-shell,
body.surface-workflow .t2p-map-shell {
  display: grid;
  gap: 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.surface-runtime .t2p-map-frame,
body.surface-workflow .t2p-map-frame {
  overflow: hidden;
}

body.surface-runtime .member-qr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 11, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--t2p-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.surface-runtime .member-qr__copy,
body.surface-runtime .member-qr__sheet-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.surface-runtime .member-qr__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t2p-muted);
}

body.surface-runtime .member-qr__handle {
  display: block;
  font-size: 15px;
  color: var(--t2p-text);
  overflow-wrap: anywhere;
}

body.surface-runtime .member-qr__tier {
  color: var(--t2p-muted);
  font-size: 13px;
}

body.surface-runtime .member-qr__button,
body.surface-runtime .member-qr__close {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(10, 11, 16, 0.84);
  color: var(--t2p-text);
  box-shadow: var(--t2p-shadow-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body.surface-runtime .member-qr__button:hover,
body.surface-runtime .member-qr__close:hover {
  filter: brightness(1.05);
}

body.surface-runtime .member-qr__modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 16px;
}

body.surface-runtime .member-qr__modal[hidden] {
  display: none !important;
}

body.surface-runtime .member-qr__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 2, 4, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.surface-runtime .member-qr__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(10, 11, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--t2p-shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.surface-runtime .member-qr__sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.surface-runtime .member-qr__text,
body.surface-runtime .member-qr__payload {
  margin: 0;
  color: var(--t2p-muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.surface-runtime .member-qr__code {
  display: grid;
  place-items: center;
  width: min(70vw, 240px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

body.surface-runtime .member-qr__code svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

body.surface-runtime .member-qr__fallback {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: #172033;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

body.surface-runtime .member-qr__sheet .member-qr__close {
  flex: 0 0 auto;
}

body.surface-appointments .client-resolution-summary {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 11, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--t2p-shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.surface-appointments .client-resolution-summary__body {
  display: grid;
  gap: 10px;
}

body.surface-appointments .client-resolution-summary__actions {
  display: flex;
  justify-content: flex-end;
}

body.surface-appointments .client-resolution-summary__actions .btn {
  min-width: 170px;
}

body.surface-appointments .client-resolution-summary .resolved-client {
  display: grid;
  justify-content: start;
  align-items: start;
  gap: 2px;
  min-height: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 11, 16, 0.66);
}

body.surface-appointments .client-resolution-summary .resolved-client > div {
  display: grid;
  gap: 2px;
}

body.surface-appointments .resolve-client-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 16px;
}

body.surface-appointments .resolve-client-modal[hidden] {
  display: none !important;
}

body.surface-appointments .resolve-client-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 2, 4, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.surface-appointments .resolve-client-modal__sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(10, 11, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--t2p-shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.surface-appointments .resolve-client-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.surface-appointments .resolve-client-modal__header h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.2;
  color: var(--t2p-text);
}

body.surface-appointments .resolve-client-modal__close {
  min-width: 88px;
}

body.surface-appointments .resolve-client-modal .resolution-panel {
  padding: 0;
  gap: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.surface-appointments .resolve-client-modal .resolution-grid {
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
}

body.surface-appointments .resolve-client-modal .resolve-stack {
  gap: 10px;
}

body.surface-appointments .resolve-status,
body.surface-appointments .qr-status {
  margin: 0;
  min-height: 1.25rem;
  color: var(--t2p-muted);
  font-size: 13px;
  line-height: 1.4;
  padding: 0 2px;
}

@media (max-width: 767px) {
  body.surface-runtime .member-qr {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  body.surface-runtime .member-qr__button {
    width: 100%;
  }

  body.surface-runtime .member-qr__modal {
    padding: 10px;
  }

  body.surface-runtime .member-qr__sheet {
    width: min(100%, 100vw - 20px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 14px;
  }

  body.surface-runtime .member-qr__code {
    width: min(72vw, 210px);
  }

  body.surface-appointments .client-resolution-summary {
    padding: 12px;
  }

  body.surface-appointments .client-resolution-summary__actions {
    justify-content: stretch;
  }

  body.surface-appointments .client-resolution-summary__actions .btn {
    width: 100%;
    min-width: 0;
  }

  body.surface-appointments .resolve-client-modal {
    padding: 10px;
  }

  body.surface-appointments .resolve-client-modal__sheet {
    width: min(100%, calc(100vw - 20px));
    padding: 12px;
  }

  body.surface-appointments .resolve-client-modal__header {
    flex-direction: column;
  }

  body.surface-appointments .resolve-client-modal .resolution-grid {
    grid-template-columns: 1fr;
  }

  body.surface-appointments .resolve-client-modal .scan-button {
    min-height: 44px;
  }
}

body.surface-runtime .t2p-product-header,
body.surface-workflow .t2p-product-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 11, 16, 0.72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.surface-runtime .t2p-product-header--compact,
body.surface-workflow .t2p-product-header--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  min-height: 68px;
  padding: 12px 14px;
}

body.surface-runtime .t2p-product-header--compact .t2p-product-header__brand,
body.surface-workflow .t2p-product-header--compact .t2p-product-header__brand {
  min-width: 0;
  gap: 1px;
}

body.surface-runtime .t2p-product-header--compact .t2p-product-header__title,
body.surface-workflow .t2p-product-header--compact .t2p-product-header__title {
  font-size: 16px;
}

body.surface-runtime .t2p-product-header--compact .t2p-product-header__subtitle,
body.surface-workflow .t2p-product-header--compact .t2p-product-header__subtitle {
  font-size: 12px;
}

body.surface-runtime .t2p-product-header--compact .t2p-product-header__actions,
body.surface-workflow .t2p-product-header--compact .t2p-product-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
}

body.surface-runtime .t2p-product-header__return,
body.surface-workflow .t2p-product-header__return {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(12, 13, 18, 0.84);
  color: var(--t2p-text);
  text-decoration: none;
  box-shadow: var(--t2p-shadow-soft);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
}

body.surface-runtime .t2p-product-header__return:hover,
body.surface-workflow .t2p-product-header__return:hover {
  filter: brightness(1.05);
}

body.surface-runtime .member-qr__modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 16px;
  isolation: isolate;
}

body.surface-runtime .member-qr__modal[hidden] {
  display: none !important;
}

body.surface-runtime .member-qr__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 2, 4, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.surface-runtime .member-qr__sheet {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  body.surface-runtime .t2p-product-header,
  body.surface-workflow .t2p-product-header {
    padding: 12px 12px;
  }

  body.surface-runtime .t2p-product-header--compact,
  body.surface-workflow .t2p-product-header--compact {
    padding: 10px 12px;
    gap: 10px;
  }

  body.surface-runtime .t2p-product-header__return,
  body.surface-workflow .t2p-product-header__return {
    min-height: 36px;
    padding: 0 12px;
  }

  body.surface-runtime .member-qr__modal {
    padding: 10px;
  }

  body.surface-runtime .member-qr__sheet {
    width: min(100%, 100vw - 20px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 14px;
  }
}


body.surface-runtime .t2p-product-header,
body.surface-workflow .t2p-product-header {
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
  will-change: transform, opacity;
}

body.surface-runtime.t2p-shell-header-collapsed .t2p-product-header,
body.surface-workflow.t2p-shell-header-collapsed .t2p-product-header {
  transform: translate3d(0, -110%, 0);
  opacity: 0;
  pointer-events: none;
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"],
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 290px);
  align-items: start;
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-header__brand,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-header__brand {
  grid-column: 1 / -1;
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-nav,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-nav {
  grid-column: 1;
  align-items: flex-start;
  justify-content: flex-start;
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-header__actions,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-header__actions {
  grid-column: 2;
  justify-self: end;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}

body.surface-runtime .t2p-dashboard-header-actions,
body.surface-workflow .t2p-dashboard-header-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

body.surface-runtime .t2p-dashboard-header-actions__row,
body.surface-workflow .t2p-dashboard-header-actions__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

body.surface-runtime .t2p-dashboard-header-actions__availability,
body.surface-workflow .t2p-dashboard-header-actions__availability {
  justify-self: end;
  width: fit-content;
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle {
  display: grid;
  gap: 4px;
  justify-items: start;
  width: fit-content;
  max-width: 100%;
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-copy,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-copy {
  display: contents;
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-state,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-state {
  order: 0;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle[data-current-status="AVAILABLE"] .t2p-availability-toggle-state,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle[data-current-status="AVAILABLE"] .t2p-availability-toggle-state {
  color: #4ade80;
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle[data-current-status="UNAVAILABLE"] .t2p-availability-toggle-state,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle[data-current-status="UNAVAILABLE"] .t2p-availability-toggle-state {
  color: #fb7185;
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-message,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-message {
  order: 2;
  font-size: 11px;
  line-height: 1.35;
  color: var(--t2p-muted-2);
  max-width: 28ch;
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button {
  order: 1;
  width: 84px;
  min-width: 84px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  color: transparent;
  text-shadow: none;
  border-color: rgba(255, 255, 255, 0.14);
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button::before,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.04);
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button::after,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
  transition: left 160ms ease, background 160ms ease;
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button.is-active,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button.is-active {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.42), rgba(22, 163, 74, 0.20)), rgba(12, 13, 18, 0.84);
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button:not(.is-active),
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button:not(.is-active) {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.36), rgba(239, 68, 68, 0.18)), rgba(12, 13, 18, 0.84);
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button.is-active::after,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button.is-active::after {
  left: calc(100% - 26px);
}

body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button:focus-visible,
body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] .t2p-availability-toggle-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"],
  body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] {
    grid-template-columns: 1fr;
  }

  body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-header__brand,
  body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-header__brand,
  body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-nav,
  body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-nav,
  body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-header__actions,
  body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-header__actions {
    grid-column: 1;
    justify-self: stretch;
  }

  body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-nav,
  body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-nav {
    justify-content: flex-start;
  }

  body.surface-runtime .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-header__actions,
  body.surface-workflow .t2p-product-header[data-t2p-dashboard-header="true"] > .t2p-product-header__actions {
    align-items: stretch;
  }

  body.surface-runtime .t2p-dashboard-header-actions,
  body.surface-workflow .t2p-dashboard-header-actions,
  body.surface-runtime .t2p-dashboard-header-actions__row,
  body.surface-workflow .t2p-dashboard-header-actions__row {
    justify-items: stretch;
    justify-content: flex-start;
  }

  body.surface-runtime .t2p-dashboard-header-actions__availability,
  body.surface-workflow .t2p-dashboard-header-actions__availability {
    justify-self: start;
  }
}


body.surface-runtime,
body.surface-workflow,
body.surface-appointments {
  color: var(--t2p-text);
}

body.surface-runtime :where(.summary, .appointment, .empty, .panel, .thread, .bubble, .nav-card, .section-card, .detail-card, .summary-card, .item-card, .resolved-client, .messages-drawer-panel, .messages-thread, .messages-preview-message, .module-shell, .section, .calendar-panel, .day-panel, .resolution-panel, .map-panel, .results-panel, .result-card, .dashboard-card, .dashboard-stat),
body.surface-workflow :where(.summary, .appointment, .empty, .panel, .thread, .bubble, .nav-card, .section-card, .detail-card, .summary-card, .item-card, .resolved-client, .messages-drawer-panel, .messages-thread, .messages-preview-message, .module-shell, .section, .calendar-panel, .day-panel, .resolution-panel, .map-panel, .results-panel, .result-card, .dashboard-card, .dashboard-stat),
body.surface-appointments :where(.summary, .appointment, .empty, .panel, .thread, .bubble, .nav-card, .section-card, .detail-card, .summary-card, .item-card, .resolved-client, .messages-drawer-panel, .messages-thread, .messages-preview-message, .module-shell, .section, .calendar-panel, .day-panel, .resolution-panel, .map-panel, .results-panel, .result-card, .dashboard-card, .dashboard-stat) {
  color: var(--t2p-text);
}

body.surface-runtime :where(.meta, .message, .muted, .helper, .identity, .facts, .dashboard-card__eyebrow, .dashboard-copy, .dashboard-stat span, .messages-thread-meta, .messages-thread-snippet, .messages-preview-message-meta, .messages-drawer-status, .messages-drawer-kicker, .messages-drawer-count, .messages-drawer-empty, .t2p-product-header__brand-label, .t2p-product-header__subtitle, .t2p-product-nav__label, .note, .field-hint, .help, .brand-subtitle, .legal-body, .resolved-client small, .panel-title, .status, .tag, .tag small),
body.surface-workflow :where(.meta, .message, .muted, .helper, .identity, .facts, .dashboard-card__eyebrow, .dashboard-copy, .dashboard-stat span, .messages-thread-meta, .messages-thread-snippet, .messages-preview-message-meta, .messages-drawer-status, .messages-drawer-kicker, .messages-drawer-count, .messages-drawer-empty, .t2p-product-header__brand-label, .t2p-product-header__subtitle, .t2p-product-nav__label, .note, .field-hint, .help, .brand-subtitle, .legal-body, .resolved-client small, .panel-title, .status, .tag, .tag small),
body.surface-appointments :where(.meta, .message, .muted, .helper, .identity, .facts, .dashboard-card__eyebrow, .dashboard-copy, .dashboard-stat span, .messages-thread-meta, .messages-thread-snippet, .messages-preview-message-meta, .messages-drawer-status, .messages-drawer-kicker, .messages-drawer-count, .messages-drawer-empty, .t2p-product-header__brand-label, .t2p-product-header__subtitle, .t2p-product-nav__label, .note, .field-hint, .help, .brand-subtitle, .legal-body, .resolved-client small, .panel-title, .status, .tag, .tag small) {
  color: var(--t2p-muted);
}

body.surface-runtime :where(h1, h2, h3, h4, h5, h6, .fact strong, .dashboard-stat strong, .resolved-name, .snippet, .t2p-product-header__title, .brand, .messages-drawer-header h2, .messages-drawer-column-head h3, .messages-preview-message-body),
body.surface-workflow :where(h1, h2, h3, h4, h5, h6, .fact strong, .dashboard-stat strong, .resolved-name, .snippet, .t2p-product-header__title, .brand, .messages-drawer-header h2, .messages-drawer-column-head h3, .messages-preview-message-body),
body.surface-appointments :where(h1, h2, h3, h4, h5, h6, .fact strong, .dashboard-stat strong, .resolved-name, .snippet, .t2p-product-header__title, .brand, .messages-drawer-header h2, .messages-drawer-column-head h3, .messages-preview-message-body) {
  color: var(--t2p-text-strong);
}

body.surface-runtime .input,
body.surface-runtime .textarea,
body.surface-runtime select.input,
body.surface-workflow .input,
body.surface-workflow .textarea,
body.surface-workflow select.input,
body.surface-appointments .input,
body.surface-appointments .textarea,
body.surface-appointments select.input {
  color: var(--t2p-text);
}

body.surface-runtime .input::placeholder,
body.surface-runtime .textarea::placeholder,
body.surface-workflow .input::placeholder,
body.surface-workflow .textarea::placeholder,
body.surface-appointments .input::placeholder,
body.surface-appointments .textarea::placeholder {
  color: var(--t2p-muted-2);
  opacity: 1;
}

body.surface-runtime .input:disabled,
body.surface-runtime .textarea:disabled,
body.surface-runtime select.input:disabled,
body.surface-runtime button:disabled,
body.surface-workflow .input:disabled,
body.surface-workflow .textarea:disabled,
body.surface-workflow select.input:disabled,
body.surface-workflow button:disabled,
body.surface-appointments .input:disabled,
body.surface-appointments .textarea:disabled,
body.surface-appointments select.input:disabled,
body.surface-appointments button:disabled {
  color: var(--t2p-muted-2);
  opacity: 0.72;
}
body.surface-runtime .profile-light-panel {
  color: var(--t2p-text-strong);
}

body.surface-runtime .profile-light-panel .meta,
body.surface-runtime .profile-light-panel .message,
body.surface-runtime .profile-light-panel .muted,
body.surface-runtime .profile-light-panel .facts,
body.surface-runtime .profile-light-panel .location-card__meta,
body.surface-runtime .profile-light-panel .note {
  color: var(--t2p-muted);
}

body.surface-runtime .profile-light-panel .location-toggle summary,
body.surface-runtime .profile-light-panel .panel-title,
body.surface-runtime .profile-light-panel .fact strong,
body.surface-runtime .profile-light-panel .portfolio-card__count,
body.surface-runtime .profile-light-panel h1,
body.surface-runtime .profile-light-panel h2,
body.surface-runtime .profile-light-panel h3,
body.surface-runtime .profile-light-panel h4 {
  color: var(--t2p-text-strong);
}
body.surface-runtime .profile-light-panel :where(h1, h2, h3, h4, h5, h6, p, div, strong, small, label, summary, li, dt, dd) {
  color: var(--t2p-text-strong);
}

body.surface-runtime .profile-light-panel :where(.meta, .message, .muted, .facts, .location-card__meta, .note) {
  color: var(--t2p-muted);
}

body.surface-runtime .profile-light-panel :where(.location-badge, .pill) {
  color: #172033;
}

body.surface-runtime .profile-light-panel .highlight {
  color: #fff;
}
