/*
 * MetaPulse Trust Center design system
 * Scoped under .tc so it does not fight marketing/Bootstrap styles.
 * Inter is loaded from the trust_center layout.
 */

:root {
  /* MetaPulse brand: primary #4363f0, twilight text, white chrome */
  --tc-bg: #f7f8fb;
  --tc-surface: #ffffff;
  --tc-border: #e5e7eb;
  --tc-border-strong: #d1d5db;
  --tc-text: #1a233a;
  --tc-text-secondary: #3d4a66;
  --tc-muted: #687793;
  --tc-subtle: #808eaa;
  --tc-accent: #4363f0;
  --tc-accent-hover: #3451d1;
  --tc-accent-soft: #eef2ff;
  --tc-accent-text: #4363f0;
  --tc-success: #027a48;
  --tc-success-bg: #ecfdf3;
  --tc-success-border: #abefc6;
  --tc-row-hover: #f9fafb;
  --tc-radius: 10px;
  --tc-radius-sm: 6px;
  --tc-radius-full: 9999px;
  --tc-max: 1040px;
  --tc-shadow-sm: 0 1px 2px rgb(26 35 58 / 0.04);
  --tc-shadow: 0 1px 3px rgb(26 35 58 / 0.06), 0 1px 2px rgb(26 35 58 / 0.04);
  --tc-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tc-transition: 120ms ease;
}

/* ─── Base ─────────────────────────────────────────────── */

body.tc-body {
  margin: 0;
  min-height: 100vh;
  background: var(--tc-bg);
  color: var(--tc-text);
  font-family: var(--tc-font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tc-body a {
  color: var(--tc-accent-text);
  text-decoration: none;
}

.tc-body a:hover {
  color: var(--tc-accent-hover);
}

/* Primary buttons must keep white text even when they are <a> tags */
.tc-body a.tc-btn,
.tc-body a.tc-btn:hover,
.tc-body a.tc-btn:focus {
  text-decoration: none;
}

.tc-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tc-container {
  width: 100%;
  max-width: var(--tc-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ─── Top bar (MetaPulse marketing chrome) ─────────────── */

.tc-topbar {
  background: var(--tc-surface);
  border-bottom: 1px solid var(--tc-border);
  padding: 0;
}

.tc-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.tc-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tc-brand__home {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.tc-brand__home:hover {
  opacity: 0.9;
}

.tc-brand__logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 140px;
  flex-shrink: 0;
  -o-object-fit: contain;
     object-fit: contain;
}

.tc-brand__divider {
  width: 1px;
  height: 22px;
  background: var(--tc-border-strong);
  flex-shrink: 0;
}

.tc-brand__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--tc-muted);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}

.tc-brand__label:hover {
  color: var(--tc-accent);
}

.tc-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.tc-topbar__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--tc-muted);
  text-decoration: none;
}

.tc-topbar__link:hover {
  color: var(--tc-accent);
}

/* ─── Hero ─────────────────────────────────────────────── */

.tc-hero {
  background: var(--tc-surface);
  border-bottom: 1px solid var(--tc-border);
  padding: 36px 0 32px;
}

.tc-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc-accent);
}

.tc-hero__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--tc-text);
}

.tc-hero__body {
  max-width: 720px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tc-text-secondary);
}

.tc-hero__body + .tc-hero__body {
  margin-top: 10px;
}

.tc-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 18px;
}

.tc-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tc-accent-text);
}

.tc-hero__link:hover {
  color: var(--tc-accent-hover);
}

.tc-hero__link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* ─── Tabs ─────────────────────────────────────────────── */

.tc-tabs {
  background: var(--tc-surface);
  border-bottom: 1px solid var(--tc-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.tc-tabs__nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tc-tabs__nav::-webkit-scrollbar {
  display: none;
}

.tc-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 12px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tc-muted);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--tc-transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tc-tab:hover {
  color: var(--tc-text);
}

.tc-tab.is-active {
  color: var(--tc-text);
  font-weight: 600;
  border-bottom-color: var(--tc-accent);
}

/* ─── Main content ─────────────────────────────────────── */

.tc-main {
  flex: 1;
  padding: 28px 0 64px;
}

.tc-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.tc-page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tc-text);
  line-height: 1.25;
}

.tc-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tc-page-note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--tc-muted);
  line-height: 1.5;
}

/* ─── Buttons ──────────────────────────────────────────── */

.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--tc-radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--tc-transition), border-color var(--tc-transition), color var(--tc-transition), box-shadow var(--tc-transition);
  white-space: nowrap;
  box-sizing: border-box;
}

.tc-btn:focus-visible {
  outline: 2px solid var(--tc-accent);
  outline-offset: 2px;
}

/* Higher specificity so external `a { color: primary }` does not make blue-on-blue */
.tc-body a.tc-btn--primary,
.tc-btn--primary {
  background: var(--tc-accent);
  color: #fff !important;
  border-color: var(--tc-accent);
  text-decoration: none !important;
}

.tc-body a.tc-btn--primary:hover,
.tc-btn--primary:hover {
  background: var(--tc-accent-hover);
  border-color: var(--tc-accent-hover);
  color: #fff !important;
  text-decoration: none !important;
}

.tc-btn--secondary {
  background: var(--tc-surface);
  color: var(--tc-text-secondary);
  border-color: var(--tc-border-strong);
  box-shadow: var(--tc-shadow-sm);
}

.tc-btn--secondary:hover {
  background: var(--tc-row-hover);
  color: var(--tc-text);
  border-color: var(--tc-border-strong);
}

.tc-btn--ghost {
  background: transparent;
  color: var(--tc-text-secondary);
  border-color: var(--tc-border-strong);
  height: 32px;
  padding: 0 10px;
  font-weight: 500;
  font-size: 12px;
}

.tc-btn--ghost:hover {
  background: var(--tc-row-hover);
  color: var(--tc-text);
}

.tc-btn--sm {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.tc-btn:disabled,
.tc-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Search ───────────────────────────────────────────── */

.tc-search {
  position: relative;
  width: 260px;
  max-width: 100%;
}

.tc-search__icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--tc-subtle);
  pointer-events: none;
}

.tc-search__input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--tc-border-strong);
  border-radius: var(--tc-radius-sm);
  background: var(--tc-surface);
  color: var(--tc-text);
  font-family: inherit;
  font-size: 13px;
  box-shadow: var(--tc-shadow-sm);
  box-sizing: border-box;
  transition: border-color var(--tc-transition), box-shadow var(--tc-transition);
}

.tc-search__input::-moz-placeholder {
  color: var(--tc-subtle);
}

.tc-search__input::placeholder {
  color: var(--tc-subtle);
}

.tc-search__input:hover {
  border-color: #b0b7c3;
}

.tc-search__input:focus {
  outline: none;
  border-color: var(--tc-accent);
  box-shadow: 0 0 0 3px rgb(105 65 198 / 0.15);
}

/* ─── Panels & lists ───────────────────────────────────── */

.tc-panel {
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  box-shadow: var(--tc-shadow-sm);
  overflow: hidden;
}

.tc-panel--pad {
  padding: 24px 28px;
}

.tc-list {
  display: flex;
  flex-direction: column;
}

.tc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--tc-border);
  transition: background var(--tc-transition);
}

.tc-row:last-child {
  border-bottom: none;
}

.tc-row:hover {
  background: var(--tc-row-hover);
}

.tc-row--center {
  align-items: center;
}

.tc-row__lead {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.tc-row--center .tc-row__lead {
  align-items: center;
}

.tc-row__main {
  min-width: 0;
  flex: 1;
}

.tc-row__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--tc-text);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.tc-row__subtitle {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--tc-muted);
  line-height: 1.45;
}

.tc-row__meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--tc-subtle);
}

.tc-row__body {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--tc-text-secondary);
  line-height: 1.55;
}

.tc-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tc-row__aside {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tc-row__media {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--tc-border);
  background: var(--tc-row-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  color: var(--tc-text-secondary);
}

.tc-row__media img {
  width: 20px;
  height: 20px;
  -o-object-fit: contain;
     object-fit: contain;
}

.tc-row__media--favicon {
  background: var(--tc-surface);
  padding: 6px;
}

.tc-row__media--favicon img {
  width: 22px;
  height: 22px;
  -o-object-fit: contain;
     object-fit: contain;
}

.tc-row__media--doc {
  color: var(--tc-accent);
  background: var(--tc-accent-soft);
  border-color: #c7d2fe;
}

.tc-link-quiet {
  font-size: 13px;
  font-weight: 500;
  color: var(--tc-accent-text);
}

.tc-link-quiet:hover {
  color: var(--tc-accent-hover);
  text-decoration: underline;
}

.tc-link-quiet--block {
  display: inline-block;
  margin-top: 8px;
}

.tc-compliance__action {
  margin-top: 12px;
}

/* ─── Chips / badges ───────────────────────────────────── */

.tc-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--tc-radius-full);
  font-size: 11px;
  font-weight: 500;
  background: #f2f4f7;
  color: var(--tc-muted);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.tc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--tc-radius-full);
  font-size: 12px;
  font-weight: 500;
  background: var(--tc-success-bg);
  color: var(--tc-success);
  border: 1px solid var(--tc-success-border);
}

.tc-badge--ok::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ─── Overview cards ───────────────────────────────────── */

.tc-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 800px) {
  .tc-stat-grid {
    grid-template-columns: 1fr;
  }
}

.tc-stat {
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  padding: 18px 20px;
  box-shadow: var(--tc-shadow-sm);
}

.tc-stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tc-muted);
  margin: 0 0 8px;
}

.tc-stat__value {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tc-text);
  line-height: 1.25;
}

.tc-stat__desc {
  margin: 0;
  font-size: 13px;
  color: var(--tc-muted);
  line-height: 1.45;
}

.tc-stat__footer {
  margin-top: 14px;
}

.tc-compliance {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
}

.tc-compliance__badge {
  width: 64px;
  height: 64px;
  -o-object-fit: contain;
     object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--tc-border);
  background: #fff;
  padding: 4px;
}

.tc-compliance__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tc-text);
}

.tc-compliance__desc {
  margin: 0;
  font-size: 13px;
  color: var(--tc-muted);
  line-height: 1.45;
}

/* ─── Controls layout ──────────────────────────────────── */

.tc-controls {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .tc-controls {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.tc-sidebar__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tc-text);
}

.tc-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tc-sidebar__link {
  display: block;
  padding: 8px 10px;
  border-radius: var(--tc-radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--tc-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background var(--tc-transition), color var(--tc-transition);
}

.tc-sidebar__link:hover {
  background: #eceef2;
  color: var(--tc-text);
}

.tc-sidebar__link.is-active {
  background: var(--tc-accent-soft);
  color: var(--tc-accent-text);
  border-left-color: var(--tc-accent);
  font-weight: 600;
}

.tc-sidebar__meta {
  margin-top: 16px;
}

.tc-table-wrap {
  overflow-x: auto;
}

.tc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tc-table th {
  text-align: left;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tc-muted);
  border-bottom: 1px solid var(--tc-border);
  background: #fafbfc;
}

.tc-table th.tc-table__col-status {
  width: 100px;
}

.tc-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--tc-border);
  vertical-align: top;
}

.tc-table tr:last-child td {
  border-bottom: none;
}

.tc-table tbody tr:hover td {
  background: var(--tc-row-hover);
}

.tc-table__control {
  font-size: 14px;
  font-weight: 600;
  color: var(--tc-text);
  margin: 0 0 3px;
  line-height: 1.35;
}

.tc-table__desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--tc-muted);
  line-height: 1.45;
}

.tc-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tc-success-bg);
  color: var(--tc-success);
  border: 1px solid var(--tc-success-border);
}

.tc-status svg {
  width: 14px;
  height: 14px;
}

/* ─── FAQ ──────────────────────────────────────────────── */

.tc-faq {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tc-faq__item {
  border-bottom: 1px solid var(--tc-border);
  background: var(--tc-surface);
}

.tc-faq__item:first-child {
  border-top-left-radius: var(--tc-radius);
  border-top-right-radius: var(--tc-radius);
}

.tc-faq__item:last-child {
  border-bottom: none;
  border-bottom-left-radius: var(--tc-radius);
  border-bottom-right-radius: var(--tc-radius);
}

.tc-faq__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--tc-text);
  line-height: 1.4;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.tc-faq__summary::-webkit-details-marker {
  display: none;
}

.tc-faq__summary::marker {
  content: "";
}

.tc-faq__summary:hover {
  background: var(--tc-row-hover);
}

.tc-faq__question {
  flex: 1;
  min-width: 0;
}

.tc-faq__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tc-faq__copy {
  opacity: 0;
  transition: opacity var(--tc-transition);
}

.tc-faq__item:hover .tc-faq__copy,
.tc-faq__item[open] .tc-faq__copy {
  opacity: 1;
}

.tc-faq__chevron {
  width: 16px;
  height: 16px;
  color: var(--tc-subtle);
  transition: transform var(--tc-transition);
  flex-shrink: 0;
}

.tc-faq__item[open] .tc-faq__chevron {
  transform: rotate(180deg);
}

.tc-faq__answer {
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--tc-text-secondary);
  line-height: 1.6;
}

.tc-faq__answer p {
  margin: 0;
}

.tc-panel.tc-faq {
  overflow: hidden;
}

/* ─── Pagination ───────────────────────────────────────── */

.tc-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--tc-muted);
}

.tc-pagination__actions {
  display: flex;
  gap: 8px;
}

/* ─── Footer ───────────────────────────────────────────── */

.tc-footer {
  border-top: 1px solid var(--tc-border);
  background: var(--tc-surface);
  padding: 20px 0;
  margin-top: auto;
}

.tc-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--tc-muted);
}

.tc-footer__inner a {
  color: var(--tc-muted);
}

.tc-footer__inner a:hover {
  color: var(--tc-text-secondary);
}

.tc-footer__dot {
  color: var(--tc-border-strong);
}

/* ─── Utility ──────────────────────────────────────────── */

.tc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tc-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--tc-muted);
  font-size: 13px;
}

/* ─── Notices ──────────────────────────────────────────── */

.tc-notice {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: var(--tc-radius-sm);
  font-size: 13.5px;
  line-height: 1.45;
  border: 1px solid transparent;
}

.tc-notice--success {
  background: var(--tc-success-bg);
  border-color: var(--tc-success-border);
  color: var(--tc-success);
}

.tc-notice--error {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}

/* ─── Modal + form ─────────────────────────────────────── */

body.tc-modal-open {
  overflow: hidden;
}

.tc-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  overflow-y: auto;
}

.tc-modal[hidden] {
  display: none !important;
}

.tc-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgb(12 17 29 / 0.55);
}

.tc-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
  background: var(--tc-surface);
  border: 1px solid var(--tc-border);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgb(16 24 40 / 0.16);
  padding: 22px 22px 20px;
}

.tc-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tc-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--tc-text);
}

.tc-modal__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--tc-muted);
  line-height: 1.4;
}

.tc-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--tc-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.tc-modal__close:hover {
  background: var(--tc-row-hover);
  color: var(--tc-text);
}

.tc-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tc-field--full {
  grid-column: 1 / -1;
}

.tc-field__label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--tc-text-secondary);
}

.tc-field__required {
  color: #d92d20;
}

.tc-field__input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--tc-border-strong);
  border-radius: var(--tc-radius-sm);
  background: var(--tc-surface);
  color: var(--tc-text);
  font-family: inherit;
  font-size: 13.5px;
  box-sizing: border-box;
  box-shadow: var(--tc-shadow-sm);
  transition: border-color var(--tc-transition), box-shadow var(--tc-transition);
}

.tc-field__textarea {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.45;
}

.tc-field__input:focus {
  outline: none;
  border-color: var(--tc-accent);
  box-shadow: 0 0 0 3px rgb(105 65 198 / 0.15);
}

.tc-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 4px;
}

@media (max-width: 640px) {
  .tc-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tc-hero {
    padding: 24px 0 20px;
  }

  .tc-brand__logo {
    height: 30px;
    max-width: 120px;
  }

  .tc-brand__label {
    font-size: 13px;
  }

  .tc-page-header {
    align-items: stretch;
  }

  .tc-page-actions {
    width: 100%;
  }

  .tc-search {
    width: 100%;
    flex: 1;
  }

  .tc-row {
    flex-direction: column;
    align-items: stretch;
  }

  .tc-row__actions {
    justify-content: flex-start;
  }

  .tc-faq__copy {
    opacity: 1;
  }

  .tc-form__grid {
    grid-template-columns: 1fr;
  }

  .tc-modal {
    padding: 16px;
  }
}
