/* Shared semantic UI layer for the portal and admin surfaces. */
:root,
html[data-theme="vibenotes"],
html[data-theme="dark"],
html.dark {
  --fc-canvas: #10151a;
  --fc-surface: #1a2229;
  --fc-surface-raised: #222d35;
  --fc-border: #3d4b53;
  --fc-text: #f3f5f1;
  --fc-text-muted: #b5c1c6;
  --fc-accent: #efb08b;
  --fc-accent-text: #20252a;
  --fc-danger: #ee9c98;
  --fc-success: #9ce5b1;
  --fc-focus: #83d3e3;
}

html[data-theme="light"],
html.light {
  --fc-canvas: #f4f5f1;
  --fc-surface: #ffffff;
  --fc-surface-raised: #e9eeeb;
  --fc-border: #b9c5c4;
  --fc-text: #1c292e;
  --fc-text-muted: #42565d;
  --fc-accent: #984323;
  --fc-accent-text: #ffffff;
  --fc-danger: #a72f2f;
  --fc-success: #176b39;
  --fc-focus: #086c84;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--fc-focus);
  outline-offset: 3px;
}

.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;
}

.fc-skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200000;
  padding: 10px 14px;
  background: var(--fc-surface);
  color: var(--fc-text);
  border: 2px solid var(--fc-focus);
  transform: translateY(-180%);
}

.fc-skip-link:focus { transform: translateY(0); }

.fc-eyebrow {
  color: var(--fc-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fc-field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--fc-text);
  font-size: 14px;
  font-weight: 700;
}

.fc-feedback {
  min-height: 1.5em;
  margin-top: 10px;
  color: var(--fc-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.fc-feedback[data-state="error"] { color: var(--fc-danger); }

.fc-button-primary {
  background: var(--fc-accent);
  border: 1px solid var(--fc-accent);
  border-radius: 7px;
  color: var(--fc-accent-text);
  font: inherit;
  font-weight: 750;
  min-height: 44px;
  padding: 10px 18px;
  cursor: pointer;
}

.fc-button-primary:hover { filter: brightness(.94); }
.fc-button-primary:disabled { opacity: .55; cursor: not-allowed; }
.fc-button-primary { box-shadow: none; }

.fc-button-quiet {
  background: transparent;
  border: 1px solid var(--fc-border);
  border-radius: 7px;
  color: var(--fc-text);
  font: inherit;
  min-height: 40px;
  padding: 8px 12px;
  cursor: pointer;
}

.fc-button-quiet:hover { background: var(--fc-surface-raised); }

/* Portal: one primary URL action, then a compact set of examples. */
body.fc-portal {
  background: var(--fc-canvas);
  color: var(--fc-text);
  padding: clamp(16px, 3vw, 36px);
}

.fc-portal .top-nav {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto 38px;
  padding: 12px 18px;
  background: var(--fc-surface);
  border-color: var(--fc-border);
  border-radius: 6px;
  box-shadow: none;
  gap: 14px;
  flex-wrap: wrap;
}

.fc-portal .window-dots, .fc-portal .token-badge { display: none; }
.fc-portal .brand-name { color: var(--fc-text); font-size: 15px; }
.fc-portal .nav-tabs { background: transparent; padding: 0; flex-wrap: wrap; border-radius: 6px; }
.fc-portal .nav-tab-btn { color: var(--fc-text-muted); font-size: 13px; min-height: 38px; }
.fc-portal .nav-tab-btn.active { color: var(--fc-text); border-bottom: 2px solid var(--fc-accent); border-radius: 0; box-shadow: none; }
.fc-portal .nav-tab-btn:hover { background: var(--fc-surface-raised); box-shadow: none; }
.fc-portal .status-pill { color: var(--fc-text-muted); background: transparent; border: 0; border-radius: 0; padding: 4px; }
.fc-portal .status-dot-green { display: none; }
.fc-portal .action-btn-danger { color: var(--fc-danger); background: transparent; }

.fc-portal .workspace-container { max-width: 1120px; gap: 34px; }
.fc-portal .hero-banner { max-width: 780px; }
.fc-portal .hero-title { color: var(--fc-text); font-size: clamp(30px, 4vw, 48px); line-height: 1.13; margin: 10px 0 14px; }
.fc-portal .hero-title span { color: var(--fc-text); }
.fc-portal .hero-desc { color: var(--fc-text-muted); font-size: 16px; line-height: 1.7; }
.fc-portal .ds-card { padding: clamp(18px, 3vw, 30px); border-color: var(--fc-border); background: var(--fc-surface); box-shadow: none; border-radius: 6px; }
.fc-portal .omnibox-input { min-width: 0; min-height: 48px; background: var(--fc-canvas); color: var(--fc-text); border-color: var(--fc-border); }
.fc-portal .omnibox-input::placeholder { color: var(--fc-text-muted); }
.fc-portal .omnibox-input:focus { background: var(--fc-canvas); border-color: var(--fc-focus); box-shadow: none; }
.fc-portal .btn-launch { box-shadow: none; min-height: 48px; white-space: nowrap; }
.fc-portal .quick-chips { border-color: var(--fc-border); gap: 8px; }
.fc-portal .chips-label { color: var(--fc-text-muted); font-size: 13px; margin-right: 8px; }
.fc-portal .chip-tag { color: var(--fc-text); background: transparent; border-color: var(--fc-border); border-radius: 6px; font-size: 13px; min-height: 36px; padding: 7px 10px; }
.fc-portal .chip-tag:hover { background: var(--fc-surface-raised); }
.fc-portal .chip-tag-highlight { border-color: var(--fc-accent); }
.fc-portal .section-header { color: var(--fc-text); font-size: 18px; }
.fc-portal .grid-presets { gap: 0; border-top: 1px solid var(--fc-border); }
.fc-portal .preset-card { min-width: 0; text-align: left; border: 0; border-bottom: 1px solid var(--fc-border); border-radius: 0; box-shadow: none; background: transparent; padding: 20px 18px; }
.fc-portal .preset-card:hover { background: var(--fc-surface); border-color: var(--fc-border); box-shadow: none; transform: none; }
.fc-portal .preset-title { color: var(--fc-text); font-size: 15px; }
.fc-portal .preset-desc { color: var(--fc-text-muted); font-size: 13px; }
.fc-portal .preset-footer { color: var(--fc-text-muted); font-family: inherit; font-size: 12px; }
.fc-portal .gateway-card { background: var(--fc-surface); border-color: var(--fc-border); border-radius: 6px; box-shadow: none; }
.fc-portal .gateway-heading { color: var(--fc-text); }
.fc-portal .gateway-sub { color: var(--fc-text-muted); }
.fc-portal #auth-error-title { color: var(--fc-danger) !important; }
.fc-portal #auth-gate-overlay { background: var(--fc-canvas); backdrop-filter: none; }

.fc-portal {
  --cds-background: var(--fc-canvas);
  --cds-layer-01: var(--fc-surface);
  --cds-layer-02: var(--fc-surface-raised);
  --cds-layer-03: var(--fc-surface-raised);
  --cds-border-subtle: var(--fc-border);
  --cds-border-strong: var(--fc-border);
  --cds-text-primary: var(--fc-text);
  --cds-text-secondary: var(--fc-text-muted);
  --cds-text-helper: var(--fc-text-muted);
  --cds-interactive: var(--fc-accent);
  --cds-focus: var(--fc-focus);
}
.fc-portal .sdk-browser-modal-overlay { padding: clamp(0px, 2vw, 18px); backdrop-filter: none; }
.fc-portal .sdk-browser-modal-content { height: min(96dvh, 1100px); border: 1px solid var(--fc-border); border-radius: 6px; box-shadow: none; }
.fc-portal .sdk-browser-status { color: var(--fc-text-muted); background: var(--fc-surface); border-bottom: 1px solid var(--fc-border); margin: 0; padding: 8px 16px; font-size: 14px; line-height: 1.5; }
.fc-portal .sdk-browser-btn { min-height: 36px; height: auto; white-space: nowrap; border-radius: 5px; }
.fc-portal .sdk-browser-btn.active-engine { color: var(--fc-text); background: var(--fc-surface-raised); border-bottom: 2px solid var(--fc-accent); }
.fc-portal .sdk-btn-go, .fc-portal .sdk-btn-go:hover { background: var(--fc-accent); color: var(--fc-accent-text); }
.fc-portal .sdk-browser-iframe-container.hidden, .fc-portal .sdk-browser-cdp-container.hidden { display: none; }
.fc-portal .sdk-cdp-loading { background: var(--fc-surface); color: var(--fc-text); backdrop-filter: none; }
.fc-portal .sdk-cdp-status-pill, .fc-portal .sdk-spinner { border-radius: 6px; box-shadow: none; }
.fc-portal .sdk-cdp-screen, .fc-portal .sdk-cdp-som-tag { box-shadow: none; }
.fc-portal .sdk-cdp-som-tag, .fc-portal .sdk-cdp-som-tag:hover { background: #111827; color: #fff; border: 1px solid #fff; border-radius: 3px; }
.fc-portal .sdk-btn-chat, .fc-portal .sdk-btn-chat:hover, .fc-portal .sdk-btn-chat.active-chat { background: var(--fc-surface); border-color: var(--fc-border); color: var(--fc-text); }
.fc-portal .sdk-btn-shield, .fc-portal .sdk-btn-shield.active-shield { background: var(--fc-surface); border-color: var(--fc-border); color: var(--fc-text-muted); }
.fc-portal .sdk-cdp-status-pill { background: transparent; border: 0; color: var(--fc-text-muted); }
.fc-portal .sdk-browser-chat-drawer, .fc-portal .sdk-browser-settings-drawer { background: var(--fc-surface); border-color: var(--fc-border); box-shadow: none; }
.fc-portal .cds--ai-slug { background: transparent; color: var(--fc-text-muted); border-left: 2px solid var(--fc-accent); padding: 0 0 0 6px; box-shadow: none; }
.fc-portal .sdk-btn-chat-send, .fc-portal .sdk-btn-chat-send:hover { background: var(--fc-accent); color: var(--fc-accent-text); box-shadow: none; transform: none; }
.fc-portal .sdk-btn-action, .fc-portal .sdk-btn-action:hover { background: var(--fc-surface-raised); color: var(--fc-text); border: 1px solid var(--fc-border); box-shadow: none; transform: none; }
.fc-portal .sdk-chip-btn:hover, .fc-portal .sdk-chat-input:focus { box-shadow: none; }
.fc-portal #sdk-btn-purge-session { background: transparent !important; color: var(--fc-danger) !important; border: 1px solid var(--fc-border) !important; }
.fc-portal .sdk-bookmark-chip { min-height: 34px; }
.fc-portal .sdk-tab-close { background: transparent; border: 0; border-radius: 4px; color: var(--fc-text-muted); cursor: pointer; }

/* Admin: evidence and last response first; counts are supporting facts. */
.fc-admin {
  --bg-page: var(--fc-canvas);
  --bg-header: var(--fc-surface);
  --bg-card: var(--fc-surface);
  --bg-card-hover: var(--fc-surface-raised);
  --bg-input: var(--fc-surface-raised);
  --bg-subtle: var(--fc-surface-raised);
  --border-subtle: var(--fc-border);
  --border-strong: var(--fc-border);
  --text-primary: var(--fc-text);
  --text-secondary: var(--fc-text-muted);
  --text-muted: var(--fc-text-muted);
  --accent: var(--fc-accent);
  --accent-light: var(--fc-surface-raised);
}
.fc-admin .theme-accent-btn { color: var(--fc-accent-text); box-shadow: none !important; }
.fc-admin #btn-execute-action { width: auto !important; max-width: 100%; min-width: 150px; }
.fc-admin #tab-panel-users form .theme-accent-btn { background: var(--fc-surface-raised); color: var(--fc-text); border: 1px solid var(--fc-border); }
.fc-admin #sessions-badge { color: var(--fc-text-muted); background: transparent; border: 0; }
.fc-admin .fc-action-danger { background: var(--fc-surface-raised); color: var(--fc-danger); border-color: var(--fc-border); }
.fc-admin .fc-action-danger:hover { text-decoration: underline; }
.fc-admin .fc-status-tag {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--fc-border);
  border-radius: 4px;
  background: var(--fc-surface-raised);
  color: var(--fc-text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.fc-admin .fc-status-success { color: var(--fc-success); }
.fc-admin .fc-status-error { color: var(--fc-danger); }
.fc-admin .fc-flow-label, .fc-admin .fc-flow-count {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--fc-border);
  border-radius: 4px;
  background: var(--fc-surface-raised);
  color: var(--fc-text);
  font-size: 11px;
  line-height: 1.3;
}
.fc-admin #tab-panel-verb-flow :is(.text-white, .text-cyan-300, .text-cyan-400, .text-slate-300, .text-slate-400, .text-amber-400, .text-emerald-400) {
  color: var(--fc-text) !important;
}
.fc-admin .text-slate-500 { color: var(--fc-text-muted) !important; }
.fc-admin #tab-panel-verb-flow :is(#vf-stat-nodes, #vf-stat-relations, #vf-stat-scenes, #vf-stat-duration) { color: var(--fc-text); }
.fc-admin #vf-core-verb-badges button { background: var(--fc-surface-raised) !important; color: var(--fc-text) !important; border: 1px solid var(--fc-border) !important; }
.fc-admin #tab-panel-gateway .grid > div, .fc-admin #tab-panel-gateway .theme-card > .p-5, .fc-admin #auth-detail-box { border: 0 !important; }
.fc-admin #tab-panel-gateway :is(#auth-current-subject, #auth-perms-list, #target-login-shield + span, .text-slate-400) { color: var(--fc-text-muted) !important; }
.fc-admin #auth-current-role-badge { color: var(--fc-text-muted) !important; background: transparent !important; border: 0 !important; }
.fc-admin #tab-panel-gateway .theme-accent-btn { background: var(--fc-surface-raised); color: var(--fc-text); border: 1px solid var(--fc-border); }
.fc-admin #tab-panel-gateway .theme-accent-btn[onclick="handleAuthLoginClick()"] { background: var(--fc-accent); color: var(--fc-accent-text); border-color: var(--fc-accent); }
.fc-admin #tab-panel-gateway button[onclick="handleTargetPurgeSession()"] { background: var(--fc-surface); color: var(--fc-danger); border: 1px solid var(--fc-border); }
.fc-admin #tab-panel-gateway #gateway-discovery-json, .fc-admin #tab-panel-gateway #target-login-result-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.fc-admin #tab-panel-gateway #auth-detail-box > div:first-child { flex-wrap: wrap; gap: 8px; }
.fc-admin #auth-logout-btn { color: var(--fc-text-muted) !important; }
.fc-admin #auth-logout-btn:hover { color: var(--fc-danger) !important; }
.fc-admin :is(div, span, section, header, form)[class*="rounded-"] { border-radius: 6px !important; }
.fc-admin nav.rounded-xl { border-radius: 6px; }
.fc-admin .shadow-sm, .fc-admin .shadow-lg, .fc-admin .shadow-xl, .fc-admin .shadow-2xl { box-shadow: none !important; }
.fc-admin .theme-header { border-radius: 6px; box-shadow: none; background: var(--fc-surface); border-color: var(--fc-border); }
.fc-admin .theme-card { box-shadow: none; border: 0; }
.fc-admin .theme-card:hover { box-shadow: none; }
.fc-admin .fc-operations-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--fc-border);
  border-radius: 6px;
  background: var(--fc-surface);
}
.fc-admin .fc-overview-primary { padding: clamp(20px, 3vw, 34px); }
.fc-admin .fc-overview-primary h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin: 12px 0 14px; font-weight: 750; }
.fc-admin .fc-overview-primary p { color: var(--fc-text-muted); line-height: 1.65; max-width: 58ch; }
.fc-admin .fc-overview-secondary { border-left: 1px solid var(--fc-border); padding: 10px 24px; }
.fc-admin .fc-metric { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--fc-border); }
.fc-admin .fc-metric:last-child { border-bottom: 0; }
.fc-admin .fc-metric dt { color: var(--fc-text-muted); font-size: 13px; }
.fc-admin .fc-metric dd { color: var(--fc-text); font-size: 17px; font-weight: 700; text-align: right; }
.fc-admin .fc-admin-tabs { scrollbar-width: thin; }
.fc-admin .fc-admin-tabs button { min-height: 44px; font-size: 13px; }
.fc-admin #overview-feedback[data-state="error"] { color: var(--fc-danger); }
.fc-admin .fc-overview-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.fc-admin .fc-button-secondary,
.fc-admin .fc-button-danger {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--fc-border);
  border-radius: 6px;
  background: var(--fc-surface-raised);
  color: var(--fc-text);
  font-weight: 700;
}
.fc-admin .fc-button-secondary:hover { border-color: var(--fc-text-muted); }
.fc-admin .fc-button-danger { background: transparent; color: var(--fc-danger); }
.fc-admin .fc-button-danger:hover { text-decoration: underline; }
.fc-admin :is(.fc-button-secondary, .fc-button-danger):disabled { opacity: .55; cursor: wait; }
.fc-admin #cdp-recovery-status[data-state="error"] { color: var(--fc-danger); }
.fc-admin #cdp-recovery-region[aria-busy="true"] { cursor: progress; }

.fc-admin .fc-target-auth-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-admin .fc-target-auth-actions .theme-accent-btn:hover { opacity: 1; box-shadow: none; }
.fc-admin .fc-target-auth-actions button:disabled {
  opacity: 1;
  cursor: progress;
  border-color: var(--fc-border);
  border-style: dashed;
  background: var(--fc-surface);
  color: var(--fc-text-muted);
}
.fc-admin .fc-target-auth-actions .fc-button-danger:disabled { color: var(--fc-danger); }
.fc-admin .fc-target-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .75fr);
  border: 1px solid var(--fc-border);
  border-radius: 6px;
  overflow: hidden;
}
.fc-admin .fc-target-auth-verification {
  padding: clamp(18px, 2.5vw, 26px);
  border-left: 4px solid var(--fc-text-muted);
}
.fc-admin .fc-target-auth-verification[data-state="loading"] { border-left-color: var(--fc-focus); }
.fc-admin .fc-target-auth-verification[data-state="verified"] { border-left-color: var(--fc-success); }
.fc-admin .fc-target-auth-verification[data-state="unverified"],
.fc-admin .fc-target-auth-verification[data-state="challenge"] { border-left-color: var(--fc-accent); }
.fc-admin .fc-target-auth-verification[data-state="error"] { border-left-color: var(--fc-danger); }
.fc-admin .fc-target-auth-state-copy h4 { margin-top: 6px; color: var(--fc-text); font-size: clamp(21px, 2vw, 27px); font-weight: 760; line-height: 1.2; }
.fc-admin .fc-target-auth-state-copy p { max-width: 62ch; margin-top: 8px; color: var(--fc-text-muted); font-size: 13px; line-height: 1.6; }
.fc-admin .fc-target-auth-evidence { margin-top: 18px; border-top: 1px solid var(--fc-border); }
.fc-admin .fc-target-auth-evidence > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--fc-border); }
.fc-admin .fc-target-auth-evidence dt { color: var(--fc-text-muted); font-size: 12px; }
.fc-admin .fc-target-auth-evidence dd { color: var(--fc-text); font-size: 12px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.fc-admin .fc-target-auth-evidence-note { margin-top: 14px; color: var(--fc-text-muted); font-size: 12px; line-height: 1.55; }
.fc-admin .fc-target-auth-procedure { padding: clamp(18px, 2.5vw, 26px); border-left: 1px solid var(--fc-border); background: var(--fc-surface-raised); }
.fc-admin .fc-target-auth-procedure h4 { color: var(--fc-text); font-size: 13px; font-weight: 750; }
.fc-admin .fc-target-auth-procedure ol { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: auth-step; }
.fc-admin .fc-target-auth-procedure li { counter-increment: auth-step; display: grid; grid-template-columns: 24px 54px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--fc-border); color: var(--fc-text-muted); font-size: 12px; line-height: 1.5; }
.fc-admin .fc-target-auth-procedure li:last-child { border-bottom: 0; }
.fc-admin .fc-target-auth-procedure li::before { content: counter(auth-step, decimal-leading-zero); color: var(--fc-accent); font-variant-numeric: tabular-nums; font-weight: 750; }
.fc-admin .fc-target-auth-procedure b { color: var(--fc-text); }
.fc-admin .fc-target-auth-technical { border-top: 1px solid var(--fc-border); padding-top: 12px; }
.fc-admin .fc-target-auth-technical summary { width: max-content; color: var(--fc-text-muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.fc-admin .fc-target-auth-technical pre { max-height: 220px; margin-top: 10px; padding: 14px; overflow: auto; background: var(--fc-canvas); color: var(--fc-text-muted); border: 1px solid var(--fc-border); border-radius: 6px; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .fc-portal .top-nav { align-items: flex-start; }
  .fc-portal .brand-section, .fc-portal .nav-tabs, .fc-portal .user-actions { width: 100%; }
  .fc-portal .user-actions { justify-content: space-between; flex-wrap: wrap; }
  .fc-admin .fc-operations-overview { grid-template-columns: 1fr; }
  .fc-admin .fc-overview-secondary { border-left: 0; border-top: 1px solid var(--fc-border); }
  .fc-admin .fc-overview-actions > button { flex: 1 1 220px; }
  .fc-admin .fc-target-auth-layout { grid-template-columns: 1fr; }
  .fc-admin .fc-target-auth-procedure { border-left: 0; border-top: 1px solid var(--fc-border); }
  .fc-portal .sdk-browser-header-bar { flex-wrap: wrap; justify-content: flex-start; }
  .fc-portal .sdk-browser-url-container { order: -1; flex-basis: 100%; min-width: 0; }
  .fc-portal .sdk-browser-nav-tools { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .fc-admin #tab-panel-users table,
  .fc-admin #tab-panel-users tbody,
  .fc-admin #tab-panel-users tbody tr,
  .fc-admin #tab-panel-users tbody td { display: block; width: 100%; }
  .fc-admin #tab-panel-users thead { position: absolute; left: -10000px; width: max-content; height: auto; white-space: nowrap; }
  .fc-admin #tab-panel-users tbody tr { padding: 14px; border-bottom: 1px solid var(--fc-border); }
  .fc-admin #tab-panel-users tbody td { max-width: none; padding: 7px 0; text-align: left; white-space: normal; }
  .fc-admin #tab-panel-users tbody td:first-child { display: flex; gap: 12px; }
  .fc-admin #tab-panel-users tbody td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: var(--fc-text-muted); font-size: 12px; font-weight: 600; line-height: 1.4; }
  .fc-admin #tab-panel-users tbody td .truncate { max-width: none; overflow-wrap: anywhere; white-space: normal; }
  .fc-admin #tab-panel-users tbody td:last-child button { margin: 0 8px 6px 0; }
  .fc-admin :is(#tab-panel-sessions, #tab-panel-audit) :is(table, tbody, tbody tr, tbody td) { display: block; width: 100%; }
  .fc-admin :is(#tab-panel-sessions, #tab-panel-audit) thead { position: absolute; left: -10000px; width: max-content; height: auto; white-space: nowrap; }
  .fc-admin :is(#tab-panel-sessions, #tab-panel-audit) tbody tr { padding: 12px 14px; border-bottom: 1px solid var(--fc-border); }
  .fc-admin :is(#tab-panel-sessions, #tab-panel-audit) tbody td { max-width: none; padding: 7px 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .fc-admin :is(#tab-panel-sessions, #tab-panel-audit) tbody td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--fc-text-muted); font-size: 12px; font-weight: 600; }
  .fc-admin #tab-panel-sessions tbody td:last-child button { margin-top: 3px; }
  .fc-portal .omnibox-row { flex-direction: column; }
  .fc-portal .grid-presets { grid-template-columns: 1fr; }
  .fc-portal .quick-chips { align-items: stretch; }
  .fc-portal .chips-label { width: 100%; }
  .fc-portal .chip-tag { text-align: left; }
  .fc-admin .theme-header { position: static; }
  .fc-admin .theme-header > div:last-child { flex-wrap: wrap; gap: 8px; min-width: 0; }
  .fc-admin .theme-header > div:last-child > * { margin-left: 0 !important; }
  .fc-admin #tab-panel-users .theme-card > div:first-child { min-width: 0; }
  .fc-admin #tab-panel-users form { max-width: 100%; min-width: 0; }
  .fc-admin #tab-panel-users form > * { width: 100%; min-width: 0; }
  .fc-admin #tab-panel-users form button { white-space: normal; justify-content: center; }
  .fc-admin .theme-card p { font-size: 14.5px !important; line-height: 1.55; }
  .fc-admin .fc-overview-secondary { padding: 8px 18px; }
  .fc-admin .fc-metric { align-items: flex-start; }
  .fc-admin .fc-target-auth-actions, .fc-admin .fc-target-auth-actions > button { width: 100%; }
  .fc-admin .fc-target-auth-evidence > div { align-items: flex-start; }
  .fc-portal .sdk-browser-modal-overlay { padding: 0; }
  .fc-portal .sdk-browser-modal-content { height: 100dvh; border-radius: 0; }
  .fc-portal .sdk-browser-header-bar { padding: 8px; gap: 6px; }
  .fc-portal .sdk-browser-nav-tools { width: 100%; gap: 4px; }
  .fc-portal .sdk-browser-btn { font-size: 11px; padding: 7px 8px; }
  .fc-portal .sdk-browser-bookmarks-bar { padding: 4px 8px; }
  .fc-portal .sdk-browser-body-container { flex-direction: column; }
  .fc-portal .sdk-browser-iframe-container, .fc-portal .sdk-browser-cdp-container { flex: 1; min-height: 0; width: 100%; }
  .fc-portal .sdk-browser-chat-drawer, .fc-portal .sdk-browser-settings-drawer { width: 100%; max-height: 46%; overflow-y: auto; border-left: 0; border-top: 1px solid var(--fc-border); }
}

@media (prefers-reduced-motion: reduce) {
  .fc-portal *, .fc-admin * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
