:root {
  --tf-bg: #ffffff;
  --tf-surface: #ffffff;
  --tf-subtle: #f7f8fa;
  --tf-subtle-2: #eef1f5;
  --tf-text: #111318;
  --tf-muted: #667085;
  --tf-faint: #98a2b3;
  --tf-line: #e5e9ef;
  --tf-line-strong: #d7dde5;
  --tf-black: #0d1016;
  --tf-blue: #0969ff;
  --tf-green: #0a8f47;
  --tf-green-bg: #e7f7ee;
  --tf-orange: #c96a00;
  --tf-orange-bg: #fff2d8;
  --tf-red: #c83532;
  --tf-red-bg: #fdecec;
  --tf-radius-sm: 8px;
  --tf-radius: 12px;
  --tf-radius-lg: 16px;
  --tf-ease: cubic-bezier(.22, 1, .36, 1);
  --tf-sidebar: 248px;
  --tf-topbar: 70px;
}

/* WebRTC developer control plane */
.rtc-page{max-width:1480px;margin:0 auto;display:grid;gap:20px}.rtc-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.rtc-heading h1{margin:7px 0 8px;font-size:clamp(30px,4vw,52px);letter-spacing:-.05em}.rtc-heading p{max-width:750px;margin:0;color:#667085}.rtc-status{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #d0d5dd;border-radius:999px;background:#fff;font-size:12px}.rtc-status i{width:8px;height:8px;border-radius:50%;background:#98a2b3}.rtc-status.connected i{background:#16a34a;box-shadow:0 0 0 5px #dcfce7}.rtc-status.connecting i,.rtc-status.starting i{background:#f59e0b}.rtc-status.failed i{background:#dc2626}.rtc-grid,.rtc-video-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rtc-panel,.rtc-metrics,.rtc-video-grid article{background:#fff;border:1px solid #e4e7ec;border-radius:20px;box-shadow:0 10px 34px rgba(16,24,40,.045)}.rtc-panel{padding:22px;display:grid;gap:15px}.rtc-panel>header{display:flex;gap:12px;align-items:flex-start;padding-bottom:3px}.rtc-panel>header>span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#101828;color:#fff;font:600 11px/1 'DM Mono',monospace}.rtc-panel h2,.rtc-metrics h2{margin:0;font-size:20px;letter-spacing:-.025em}.rtc-panel header p{margin:3px 0 0;color:#667085;font-size:12px}.rtc-controls label{display:grid;gap:7px;color:#344054;font-size:11px;font-weight:700;letter-spacing:.035em}.rtc-controls input,.rtc-controls select{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;color:#101828;font:500 13px/1.2 Manrope,sans-serif}.rtc-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rtc-actions{display:flex;flex-wrap:wrap;gap:8px}.rtc-actions button,.rtc-message button,.rtc-metrics header button,.rtc-primary{min-height:40px;padding:9px 13px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;color:#344054;font:700 12px/1 Manrope,sans-serif;cursor:pointer}.rtc-primary,.rtc-actions .rtc-primary{background:#101828;color:#fff;border-color:#101828}.rtc-actions button:disabled,.rtc-primary:disabled{opacity:.42;cursor:not-allowed}.rtc-permissions{display:flex;gap:10px;flex-wrap:wrap}.rtc-permissions span{padding:7px 10px;border-radius:8px;background:#f2f4f7;color:#667085;font-size:11px}.rtc-permissions b{color:#101828}.rtc-message{display:grid;grid-template-columns:1fr auto;gap:8px}.rtc-video-grid article{overflow:hidden;background:#101318}.rtc-video-grid header{height:48px;display:flex;justify-content:space-between;align-items:center;padding:0 15px;color:#fff;font-size:11px}.rtc-video-grid header b{color:#98a2b3}.rtc-video-grid video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:radial-gradient(circle at center,#263244,#0c111b 70%)}.rtc-metrics{padding:22px;display:grid;gap:18px}.rtc-metrics>header{display:flex;justify-content:space-between;align-items:center}.rtc-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.rtc-stat-grid article{padding:15px;border:1px solid #eaecf0;border-radius:14px;background:#fcfcfd}.rtc-stat-grid span,.rtc-stat-grid small{display:block;color:#667085;font-size:10px}.rtc-stat-grid strong{display:block;margin:7px 0 4px;font-size:19px;letter-spacing:-.03em}.rtc-log{max-height:220px;overflow:auto;border-top:1px solid #eaecf0;padding-top:8px}.rtc-log p{display:grid;grid-template-columns:90px 1fr;gap:10px;margin:0;padding:8px 3px;border-bottom:1px solid #f2f4f7;font-size:11px}.rtc-log time{color:#98a2b3;font-family:'DM Mono',monospace}.rtc-log span{color:#344054}@media(max-width:980px){.rtc-grid,.rtc-video-grid{grid-template-columns:1fr}.rtc-stat-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.rtc-heading{align-items:flex-start;flex-direction:column}.rtc-row,.rtc-stat-grid{grid-template-columns:1fr}.rtc-page{gap:14px}}

/* Visual journey studio and campaign journey rotation */
.journey-rotation-picker{margin:14px 0;padding:18px;background:#f8fafc;border:1px solid #e3e8ef;border-radius:14px}.journey-rotation-picker>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.journey-rotation-picker>header>div{display:flex;flex-direction:column;gap:3px}.journey-rotation-picker>header strong{font-size:13px}.journey-rotation-picker>header small{color:#69778b;font-size:10px}.journey-rotation-picker>header a{color:#111827;font-size:10px;font-weight:800}.journey-rotation-picker>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.journey-rotation-picker>div>button{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;text-align:left;background:#fff;border:1px solid #dfe5ed;border-radius:10px}.journey-rotation-picker>div>button.is-selected{border-color:#111827;box-shadow:inset 0 0 0 1px #111827}.journey-rotation-picker>div>button:disabled{opacity:.42}.journey-rotation-picker button span{display:grid;gap:3px}.journey-rotation-picker button b{font-size:11px}.journey-rotation-picker button small{max-width:250px;overflow:hidden;color:#7b8798;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.journey-rotation-picker button i{font-size:8px;font-style:normal;font-weight:800}.journey-studio-page .journey-layout{grid-template-columns:238px minmax(0,1fr)}.journey-studio{display:grid;grid-template-columns:minmax(340px,.9fr) minmax(430px,1.1fr);gap:14px;margin-top:16px}.journey-preview-panel,.journey-timeline-panel{min-width:0;overflow:hidden;background:#fbfcfd;border:1px solid #e5e9ef;border-radius:14px}.journey-preview-panel>header,.journey-timeline-panel>header{min-height:63px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#fff;border-bottom:1px solid #e8ebf0}.journey-preview-panel>header>div,.journey-timeline-panel>header>div{display:grid;gap:3px}.journey-preview-panel>header span,.journey-timeline-panel>header span{color:#7b8796;font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.journey-preview-panel>header strong,.journey-timeline-panel>header strong{font-size:13px}.journey-preview-panel>header button,.journey-timeline-panel>header button{min-height:32px;padding:0 10px;color:#fff;background:#111827;border:0;border-radius:8px;font-size:8px;font-weight:800}.journey-timeline-panel>header button{display:flex;align-items:center;gap:6px}.journey-timeline-panel>header svg{width:13px;height:13px;fill:none;stroke:currentColor}.journey-preview-address{display:grid;grid-template-columns:1fr auto auto;gap:6px;padding:10px;background:#f5f7fa;border-bottom:1px solid #e6eaf0}.journey-preview-address input{min-width:0;padding:9px 10px;background:#fff;border:1px solid #d8dfe8;border-radius:8px;font-size:9px}.journey-preview-address button,.journey-preview-address a{display:grid;place-items:center;padding:0 10px;color:#374151;background:#fff;border:1px solid #d8dfe8;border-radius:8px;font-size:8px;font-weight:800;text-decoration:none}.journey-browser-frame{height:330px;background:#eef1f5}.journey-browser-frame iframe{width:100%;height:100%;background:#fff;border:0}.journey-browser-frame>div{height:100%;display:grid;place-items:center;align-content:center;gap:8px;color:#69768a;text-align:center}.journey-browser-frame svg{width:30px;height:30px;fill:none;stroke:currentColor}.journey-browser-frame p{margin:0;font-size:10px}.journey-frame-note{margin:0;padding:9px 12px;color:#7d8998;background:#fff;border-top:1px solid #e8ecf1;font-size:8px;line-height:1.5}.journey-inspector{max-height:360px;overflow:auto;padding:12px}.journey-inspector>header{display:flex;justify-content:space-between;margin:4px 0 8px}.journey-inspector>header span{font-size:9px;font-weight:800}.journey-inspector>header small{color:#8994a3;font-size:8px}.journey-control-list,.journey-section-list{display:grid;gap:6px;margin-bottom:14px}.journey-control-list button,.journey-section-list button{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;text-align:left;background:#fff;border:1px solid #e2e7ed;border-radius:8px}.journey-control-list button span{min-width:0;display:grid;gap:2px}.journey-control-list strong{max-width:250px;overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.journey-control-list small{color:#8590a0;font-size:7px}.journey-control-list i,.journey-section-list i{color:#111827;font-size:7px;font-style:normal;font-weight:800}.journey-section-list span{max-width:280px;overflow:hidden;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.journey-timeline-panel .journey-steps{max-height:690px;overflow:auto;margin:0;padding:12px}.journey-timeline-panel .journey-steps article>div{grid-template-columns:118px minmax(110px,1fr)}.journey-timeline-panel .journey-steps article>div>*:nth-child(n+3){grid-column:1/-1}.journey-page-suggestions{padding:11px 12px;border-bottom:1px solid #e7ebf0}.journey-page-suggestions>span{display:block;margin-bottom:7px;color:#7c8796;font-size:8px;font-weight:800;text-transform:uppercase}.journey-page-suggestions>div{display:flex;gap:5px;overflow:auto}.journey-page-suggestions button{flex:0 0 auto;max-width:180px;overflow:hidden;padding:6px 8px;color:#4b5563;background:#fff;border:1px solid #dfe4eb;border-radius:7px;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.journey-add-row{display:flex;gap:6px;padding:0 12px 12px}.journey-add-row button{padding:7px 9px;color:#4b5563;background:#fff;border:1px dashed #cbd3de;border-radius:7px;font-size:8px;font-weight:700}@media(max-width:1180px){.journey-studio{grid-template-columns:1fr}.journey-browser-frame{height:420px}}@media(max-width:900px){.journey-studio-page .journey-layout,.journey-rotation-picker>div{grid-template-columns:1fr}.journey-preview-address{grid-template-columns:1fr auto}.journey-preview-address a{display:none}}

/* Desktop-first Journey Studio overrides */
.journey-studio { grid-template-columns: minmax(0, 1fr); }
.journey-preview-panel > header > div:first-child { display: grid; gap: 3px; }
.journey-preview-actions { display: flex !important; align-items: center; gap: 9px; }
.journey-viewport-badge {
  padding: 6px 8px;
  color: #526071 !important;
  background: #f3f5f8;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  font-size: 8px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em !important;
  text-transform: none !important;
}
.journey-browser-frame {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #e9edf2;
  border-bottom: 1px solid #e0e5eb;
}
.journey-browser-frame iframe {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1440px;
  height: 900px;
  background: #fff;
  border: 0;
  transform-origin: top left;
}
.journey-browser-frame > div {
  position: absolute;
  inset: 0;
  height: 100%;
  padding: 30px;
}
.journey-browser-frame p { max-width: 560px; }
.journey-embed-blocked a {
  margin-top: 5px;
  padding: 9px 12px;
  color: #fff;
  background: #111827;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}
.journey-embed-blocked button {
  margin-top: 5px;
  padding: 9px 12px;
  color: #fff;
  background: #111827;
  border: 0;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
}
.journey-preview-actions .journey-record-stop { background: #a73535; }
.journey-recorder-status {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 12px;
  color: #344054;
  background: #f8fafc;
  border-bottom: 1px solid #e2e7ed;
  font-size: 9px;
}
.journey-recorder-status span { display: flex; align-items: center; gap: 7px; font-weight: 800; }
.journey-recorder-status span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d04444;
  box-shadow: 0 0 0 4px rgba(208,68,68,.12);
  animation: journey-record-pulse 1.6s ease-in-out infinite;
}
.journey-recorder-status strong { margin-left: auto; font-size: 9px; font-variant-numeric: tabular-nums; }
.journey-recorder-status small { color: #7b8796; }
.journey-browser-frame.is-recording { background: #111827; }
.journey-recorder-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  cursor: crosshair;
  user-select: none;
}
@keyframes journey-record-pulse { 50% { opacity: .42; transform: scale(.82); } }
.journey-inspector { max-height: 420px; padding: 14px; }
.journey-control-list, .journey-section-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.journey-control-list strong, .journey-section-list span { max-width: 360px; }
.journey-timeline-panel .journey-steps article > div { grid-template-columns: 140px minmax(180px, 1fr) minmax(180px, 1fr); }
.journey-timeline-panel .journey-steps article > div > *:nth-child(n+3) { grid-column: auto; }
@media (max-width: 1180px) {
  .journey-studio-page .journey-layout { grid-template-columns: 1fr; }
  .journey-control-list, .journey-section-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .journey-preview-panel > header { align-items: flex-start; flex-direction: column; }
  .journey-preview-actions { width: 100%; justify-content: space-between; }
  .journey-timeline-panel .journey-steps article > div { grid-template-columns: 1fr; }
}

/* Verified Journey Builder and persistent website tools */
.hero-actions{display:flex;gap:10px;align-items:center}.website-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.website-tool-grid article,.tools-foundation,.tool-job-list,.journey-canvas,.journey-layout>aside{background:#fff;border:1px solid #e6e8ee;border-radius:18px}.website-tool-grid article{padding:24px;display:grid;gap:10px;align-content:start}.website-tool-grid article .option-icon{width:42px;height:42px;border-radius:12px;background:#f5f7fa;display:grid;place-items:center}.website-tool-grid article .option-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.website-tool-grid article>small,.tools-foundation>div>span{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#607087}.website-tool-grid article h2{font-size:20px;margin:0;color:#101828}.website-tool-grid article p{min-height:48px;margin:0;color:#667085;line-height:1.55}.website-tool-grid article button,.website-tool-grid article>a{justify-self:start;border:0;border-radius:9px;background:#111827;color:#fff;padding:10px 14px;font-weight:700;text-decoration:none}.website-tool-grid article>a svg{width:14px;height:14px;fill:none;stroke:currentColor}.website-tool-grid label{display:flex;align-items:center;gap:10px;font-size:12px;color:#667085}.website-tool-grid input{width:76px;border:1px solid #d8dee8;border-radius:8px;padding:8px}.tools-foundation{padding:22px 24px;display:grid;grid-template-columns:1.2fr .8fr;gap:30px;align-items:end}.tools-foundation h2{margin:5px 0;font-size:19px}.tools-foundation p{margin:0;color:#667085}.tool-job-list{padding:24px}.tool-job-list>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.tool-job-list h2{margin:4px 0 0}.tool-job-list article{display:grid;grid-template-columns:110px 1fr auto;gap:16px;align-items:center;padding:14px 0;border-top:1px solid #edf0f4}.tool-job-list article div{display:grid;gap:3px}.tool-job-list article small{color:#778195}.tool-job-list article p{color:#a53a3a;margin:0}.job-status{font-size:11px;text-transform:uppercase;font-weight:800;color:#526071}.job-status.is-completed{color:#087a55}.job-status.is-failed{color:#a63c3c}.tool-result-modal{position:fixed;inset:0;background:rgba(15,23,42,.35);display:grid;place-items:center;z-index:80;padding:24px}.tool-result-modal>section{width:min(680px,100%);max-height:80vh;overflow:auto;background:#fff;border-radius:20px;padding:28px;box-shadow:0 28px 80px rgba(15,23,42,.2)}.tool-result-modal>section>button{float:right;border:0;background:transparent;font-size:28px}.tool-result-modal>section>div{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-top:1px solid #edf0f4}.journey-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px}.journey-layout>aside{padding:14px;display:flex;flex-direction:column;gap:6px}.journey-layout>aside>button{border:0;background:transparent;text-align:left;padding:12px;border-radius:10px;display:grid;gap:4px}.journey-layout>aside>button.is-active{background:#f0f4f8}.journey-layout>aside small{color:#738095}.journey-layout .journey-new{background:#111827;color:#fff;display:flex;align-items:center;gap:8px}.journey-layout .journey-new svg{width:16px;height:16px;fill:none;stroke:currentColor}.journey-canvas{padding:26px}.journey-canvas>header,.journey-canvas>footer{display:flex;justify-content:space-between;align-items:center;gap:12px}.journey-canvas h2{margin:4px 0}.safe-badge{display:flex;align-items:center;gap:7px;background:#edf9f4;color:#087a55;padding:8px 10px;border-radius:999px;font-size:12px;font-weight:700}.safe-badge svg{width:15px;height:15px;fill:none;stroke:currentColor}.journey-meta{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}.journey-safety{padding:13px 15px;background:#f7f8fa;border:1px solid #e8ebf0;border-radius:10px;color:#536174;font-size:13px;line-height:1.5}.journey-steps{margin:18px 0;display:grid;gap:10px}.journey-steps article{display:grid;grid-template-columns:36px 1fr 30px;gap:10px;align-items:start;border:1px solid #e6e9ef;border-radius:12px;padding:12px}.journey-steps article>span{width:30px;height:30px;border-radius:9px;background:#111827;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800}.journey-steps article>div{display:grid;grid-template-columns:150px 1fr 1fr;gap:9px}.journey-steps select,.journey-steps input{border:1px solid #d8dee8;border-radius:8px;padding:9px;min-width:0}.journey-steps article>button{border:0;background:transparent;font-size:20px;color:#7a8494}.add-step{border:1px dashed #b9c2cf;background:#fff;border-radius:10px;padding:10px 14px;display:flex;align-items:center;gap:7px}.add-step svg{width:15px;height:15px;fill:none;stroke:currentColor}.journey-canvas>footer{justify-content:flex-end;margin-top:24px}.composer-error.is-success{background:#edf9f4;border-color:#bce9d7;color:#087a55}@media(max-width:900px){.website-tool-grid,.tools-foundation,.journey-layout{grid-template-columns:1fr}.journey-meta{grid-template-columns:1fr}.journey-steps article>div{grid-template-columns:1fr}.hero-actions{flex-wrap:wrap}}

* { box-sizing: border-box; }
html { background: var(--tf-bg); color: var(--tf-text); scroll-behavior: smooth; }
body.tf-app { margin: 0; min-width: 320px; background: var(--tf-bg); color: var(--tf-text); font-family: Manrope, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.tf-app button, body.tf-app input, body.tf-app select, body.tf-app textarea { font: inherit; }
body.tf-app button, body.tf-app a { -webkit-tap-highlight-color: transparent; }
body.tf-app button { cursor: pointer; }
[x-cloak] { display: none !important; }
.tf-svg-library { position: fixed; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--tf-black); color: #fff; padding: 10px 14px; border-radius: 8px; transition: top 180ms var(--tf-ease); }
.skip-link:focus { top: 16px; }

.tf-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--tf-sidebar); display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--tf-line); }
.tf-brand-wrap { height: var(--tf-topbar); display: flex; align-items: center; padding: 10px 18px 8px 22px; border-bottom: 1px solid var(--tf-line); }
.tf-brand { position: relative; width: 172px; height: 48px; display: block; overflow: hidden; }
.tf-brand img { position: absolute; left: -25px; top: -86px; display: block; width: 223px; max-width: none; height: 223px; object-fit: contain; transform: none !important; }
.tf-sidebar-close { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--tf-text); }
.tf-sidebar-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.tf-nav { display: grid; gap: 5px; padding: 28px 14px; }
.tf-nav a { position: relative; min-height: 48px; display: flex; align-items: center; gap: 16px; padding: 0 16px; border-radius: 9px; color: #20242c; font-size: 14px; font-weight: 600; text-decoration: none; transition: color 180ms var(--tf-ease), background-color 180ms var(--tf-ease), transform 180ms var(--tf-ease); }
.tf-nav a::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: transparent; }
.tf-nav a:hover { background: #f5f7fa; color: #0b0d12; transform: translateX(1px); }
.tf-nav a:active { transform: scale(.985); }
.tf-nav a.is-active { color: #101319; background: #eef2f7; }
.tf-nav a.is-active::before { background: var(--tf-blue); }
.tf-nav svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.tf-nav-beta { margin-left: auto; padding: 2px 6px; border: 1px solid #d9e2ef; border-radius: 5px; color: #526276; background: #f7f9fc; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tf-nav-bottom { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--tf-line); }

.tf-shell { min-height: 100dvh; margin-left: var(--tf-sidebar); background: #fff; }
.tf-topbar { position: sticky; top: 0; z-index: 30; height: var(--tf-topbar); display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 30px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--tf-line); backdrop-filter: blur(16px); }
.tf-topbar-spacer { flex: 1; }
.tf-mobile-menu, .tf-icon-button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--tf-text); transition: background-color 180ms var(--tf-ease), transform 180ms var(--tf-ease); }
.tf-mobile-menu { display: none; }
.tf-icon-button:hover, .tf-mobile-menu:hover { background: var(--tf-subtle); }
.tf-icon-button:active, .tf-mobile-menu:active { transform: scale(.94); }
.tf-icon-button svg, .tf-mobile-menu svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.tf-utility { position: relative; }
.tf-account-trigger { min-height: 48px; display: flex; align-items: center; gap: 11px; padding: 4px 8px 4px 5px; border: 0; border-radius: 12px; background: transparent; color: var(--tf-text); font-weight: 650; transition: background-color 180ms var(--tf-ease); }
.tf-account-trigger:hover { background: var(--tf-subtle); }
.tf-account-trigger > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; transform: rotate(90deg); }
.tf-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #f0f2f5; color: #27303d; font-size: 12px; font-weight: 700; }
.tf-popover { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 220px; padding: 8px; border: 1px solid rgba(15,23,42,.09); border-radius: 13px; background: #fff; box-shadow: 0 18px 50px rgba(22,29,37,.14); }
.tf-notifications { padding: 18px; }
.tf-notifications strong { font-size: 14px; }
.tf-notifications p { margin: 4px 0 0; color: var(--tf-muted); }
.tf-account-menu a, .tf-account-menu button { width: 100%; min-height: 42px; display: flex; align-items: center; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--tf-text); font-size: 13px; font-weight: 600; text-decoration: none; text-align: left; }
.tf-account-menu a:hover, .tf-account-menu button:hover { background: var(--tf-subtle); }
.tf-main { width: 100%; max-width: 1390px; margin: 0 auto; padding: 34px 34px 56px; }

/* Shared page language */
.tf-app h1, .tf-app h2, .tf-app h3, .tf-app p { text-wrap: pretty; }
.tf-app h1 { letter-spacing: -.045em; }
.tf-app h2 { letter-spacing: -.025em; }
.page-heading, .reports-heading, .account-heading, .section-editorial-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 0 30px; }
.page-heading h1, .reports-heading h1, .account-heading h1, .crm-title { margin: 0; color: var(--tf-text) !important; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; font-weight: 800; }
.page-heading p, .reports-heading p, .account-heading p { margin: 6px 0 0; max-width: 650px; color: var(--tf-muted) !important; font-size: 15px; }
.crm-eyebrow, .page-kicker { color: var(--tf-muted) !important; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.button-primary, .crm-primary-action, .reports-heading .is-primary { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 21px; border: 1px solid var(--tf-black); border-radius: 9px; background: var(--tf-black) !important; color: #fff !important; font-weight: 700; text-decoration: none; box-shadow: 0 5px 16px rgba(13,16,22,.12); transition: transform 180ms var(--tf-ease), box-shadow 180ms var(--tf-ease), background-color 180ms var(--tf-ease); }
.button-primary:hover, .crm-primary-action:hover, .reports-heading .is-primary:hover { background: #22262f !important; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(13,16,22,.16); }
.button-primary:active, .crm-primary-action:active { transform: scale(.98); }
.button-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid var(--tf-line-strong); border-radius: 9px; background: #fff; color: var(--tf-text); font-weight: 650; }
.text-link { color: var(--tf-blue) !important; font-weight: 650; text-decoration: none; }
.inline-icon { width: 16px; height: 16px; display: inline-block; flex: 0 0 16px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.text-link, .reports-heading .is-primary, .composer-section > header a { display: inline-flex; align-items: center; gap: 7px; }
.tf-app :focus-visible { outline: 3px solid rgba(9,105,255,.24) !important; outline-offset: 2px; }

/* Dashboard, aligned to the approved concept */
.customer-dashboard { color: var(--tf-text); }
.customer-dashboard .page-date { display: none; }
.metric-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 38px; padding: 0 !important; border: 0 !important; background: transparent !important; }
.metric-strip article { min-height: 174px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border: 1px solid var(--tf-line); border-radius: var(--tf-radius); background: #fff; box-shadow: none; }
.metric-icon { width: 24px; height: 24px; margin: 0 0 auto; fill: none; stroke: var(--tf-text); stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.metric-strip span { color: #5c6470; font-size: 14px; }
.metric-strip strong { margin-top: 7px; color: var(--tf-text); font-size: 30px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.metric-strip small { margin-top: 9px; color: var(--tf-muted); font-size: 12px; }
.overview-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; align-items: start; }
.overview-layout.is-full-width { grid-template-columns: 1fr; }
.campaign-panel, .workspace-panel, .current-operation-panel, .activity-panel, .overview-progress, .report-ledger, .ledger-card, .account-reports-card, .account-limits, .current-plan-card, .addon-card { border: 1px solid var(--tf-line) !important; border-radius: var(--tf-radius) !important; background: #fff !important; box-shadow: none !important; color: var(--tf-text) !important; }
.campaign-panel { border: 0 !important; }
.panel-heading { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.panel-heading h2 { margin: 0; color: var(--tf-text); font-size: 21px; font-weight: 750; }
.count-label { color: var(--tf-muted); font-size: 14px; font-weight: 600; }
.campaign-toolbar { display: flex; justify-content: space-between; gap: 16px; margin: 10px 0; }
.status-tabs { display: flex; align-items: center; gap: 4px; }
.status-tabs button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--tf-muted); font-size: 12px; font-weight: 650; }
.status-tabs button:hover, .status-tabs button.is-active { background: var(--tf-subtle); color: var(--tf-text); }
.campaign-filters { display: flex; gap: 8px; }
.campaign-filters label { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--tf-line); border-radius: 8px; }
.campaign-filters svg { width: 17px; height: 17px; fill: none; stroke: var(--tf-muted); stroke-width: 1.7; }
.campaign-filters input, .campaign-filters select { border: 0; outline: 0; background: transparent; color: var(--tf-text); font-size: 12px; }
.campaign-ledger { overflow: visible; border: 1px solid var(--tf-line); border-radius: var(--tf-radius); background: #fff; }
.campaign-ledger-head, .campaign-record { display: grid; grid-template-columns: minmax(230px,1.6fr) minmax(170px,1fr) 100px 105px 72px; align-items: center; gap: 12px; padding: 0 18px; }
.campaign-ledger-head { min-height: 50px; background: #f8f9fb; border-radius: var(--tf-radius) var(--tf-radius) 0 0; color: var(--tf-muted); font-size: 12px; font-weight: 650; }
.campaign-record { position: relative; min-height: 76px; border-top: 1px solid var(--tf-line); transition: background-color 160ms var(--tf-ease); }
.campaign-record:hover { background: #fbfcfd; }
.campaign-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.campaign-engine-code { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border-radius: 9px; background: var(--tf-subtle); color: var(--tf-text); font-size: 10px; font-weight: 800; }
.campaign-engine-code svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.schedule-identity > span svg, .audit-target-identity > span svg, .account-avatar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.campaign-identity small { display: block; color: var(--tf-faint); font-size: 10px; }
.campaign-identity a { display: block; overflow: hidden; color: var(--tf-text); font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.campaign-identity p { margin: 1px 0 0; overflow: hidden; color: var(--tf-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.campaign-delivery div { display: flex; justify-content: space-between; font-size: 11px; }
.campaign-delivery strong { font-variant-numeric: tabular-nums; }
.campaign-delivery span { color: var(--tf-muted); }
.campaign-delivery > i, .operation-progress > i { height: 6px; display: block; overflow: hidden; margin-top: 7px; border-radius: 999px; background: #e9edf2; }
.campaign-delivery > i b, .operation-progress > i b { width: 100%; height: 100%; display: block; transform-origin: left; border-radius: inherit; background: var(--tf-blue); }
.campaign-duration strong, .campaign-duration span { display: block; }
.campaign-duration strong { font-size: 12px; }
.campaign-duration span { color: var(--tf-muted); font-size: 10px; }
.campaign-state, .report-state { width: max-content; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 7px; background: var(--tf-subtle); color: #566070; font-size: 11px; font-weight: 650; text-transform: capitalize; }
.campaign-state i, .report-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.campaign-state.is-running, .campaign-state.is-completed, .report-state.is-running, .report-state.is-completed { background: var(--tf-green-bg); color: var(--tf-green); }
.campaign-state.is-needs_attention, .campaign-state.is-completed_with_attention, .report-state.is-needs_attention, .report-state.is-completed_with_attention { background: #fff5db; color: #8a5900; }
.campaign-state.is-pending, .report-state.is-pending { background: var(--tf-orange-bg); color: var(--tf-orange); }
.campaign-state.is-failed, .report-state.is-failed { background: var(--tf-red-bg); color: var(--tf-red); }
.campaign-control-cell { display: flex; justify-content: flex-end; gap: 4px; }
.campaign-quick-control, .campaign-menu-trigger { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--tf-muted); }
.campaign-quick-control:hover, .campaign-menu-trigger:hover { background: var(--tf-subtle); color: var(--tf-text); }
.campaign-menu-trigger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.empty-symbol { display: grid; place-items: center; }
.empty-symbol svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.campaign-quick-control svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.campaign-menu-wrap { position: relative; }
.campaign-action-menu { position: absolute; z-index: 25; right: 0; top: 42px; width: 210px; padding: 7px; border: 1px solid rgba(15,23,42,.09); border-radius: 11px; background: #fff; box-shadow: 0 16px 42px rgba(19,28,39,.14); }
.campaign-action-menu a, .campaign-action-menu button { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--tf-text); font-size: 12px; text-align: left; text-decoration: none; }
.campaign-action-menu a:hover, .campaign-action-menu button:hover { background: var(--tf-subtle); }
.campaign-action-menu .is-danger { color: var(--tf-red); }
.ledger-footer { display: flex; justify-content: space-between; padding: 13px 18px; border-top: 1px solid var(--tf-line); color: var(--tf-muted); font-size: 11px; }
.overview-side { display: grid; gap: 18px; }
.overview-side > section { padding: 18px; }
.workspace-facts { margin: 0; }
.workspace-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--tf-line); }
.workspace-facts dt { color: var(--tf-muted); }
.workspace-facts dd { margin: 0; font-weight: 700; }
.workspace-shortcut, .activity-list-v3 a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--tf-line); color: var(--tf-text); text-decoration: none; }
.workspace-shortcut strong, .workspace-shortcut small, .activity-list-v3 strong, .activity-list-v3 span { display: block; }
.workspace-shortcut small, .activity-list-v3 span { color: var(--tf-muted); font-size: 11px; }
.current-operation-content h3 { margin: 0; }
.current-operation-content p { margin: 2px 0 16px; color: var(--tf-muted); }
.operation-actions { display: flex; gap: 8px; margin-top: 16px; }
.operation-actions > * { flex: 1; }
.overview-progress { margin-top: 26px; padding: 20px; }
.delivery-comparison a { display: grid; grid-template-columns: minmax(140px,220px) 1fr 44px; gap: 14px; align-items: center; min-height: 42px; color: var(--tf-text); text-decoration: none; }
.delivery-comparison i { height: 6px; border-radius: 999px; background: var(--tf-subtle-2); }
.delivery-comparison i b { height: 100%; display: block; border-radius: inherit; background: var(--tf-blue); }
.delivery-comparison strong { text-align: right; font-variant-numeric: tabular-nums; }

/* Existing feature pages inherit one coherent light system */
.tf-main .glass, .tf-main .bg-gray-900, .tf-main .bg-gray-950, .tf-main .bg-slate-900, .tf-main .bg-slate-950, .tf-main .bg-white\/5, .tf-main .bg-black\/20 { background: #fff !important; }
.tf-main .text-white, .tf-main .text-gray-100, .tf-main .text-slate-100 { color: var(--tf-text) !important; }
.tf-main .text-gray-300, .tf-main .text-gray-400, .tf-main .text-slate-300, .tf-main .text-slate-400 { color: var(--tf-muted) !important; }
.tf-main .border-gray-700, .tf-main .border-gray-800, .tf-main .border-slate-700, .tf-main .border-slate-800 { border-color: var(--tf-line) !important; }
.tf-main input, .tf-main select, .tf-main textarea { color: var(--tf-text); }
.tf-main input:not([type=checkbox]):not([type=radio]):not([type=file]), .tf-main select, .tf-main textarea { min-height: 46px; border-color: var(--tf-line-strong) !important; border-radius: 9px !important; background: #fff !important; }
.tf-main input::placeholder, .tf-main textarea::placeholder { color: var(--tf-faint); }
.tf-main table { border-color: var(--tf-line); }
.tf-main .shadow-2xl, .tf-main .shadow-xl { box-shadow: 0 14px 36px rgba(20,28,38,.08) !important; }
.customer-toast { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: flex; gap: 10px; align-items: center; padding: 13px 16px; border: 1px solid var(--tf-line); border-radius: 10px; background: #fff; box-shadow: 0 18px 45px rgba(18,27,38,.14); }
.customer-toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--tf-green); }
.customer-toast.is-error i { background: var(--tf-red); }

/* Campaign creation */
.composer-page { max-width: 1160px; margin: 0 auto; color: var(--tf-text); }
.composer-heading-v3 { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.composer-heading-v3 h1 { margin: 14px 0 0; color: var(--tf-text); font-size: clamp(30px,3vw,40px); line-height: 1.1; font-weight: 800; letter-spacing: -.045em; }
.composer-heading-v3 p { margin: 7px 0 0; color: var(--tf-muted); font-size: 15px; }
.composer-back { color: var(--tf-muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.composer-back::before { content: "←"; margin-right: 7px; }
.composer-back:hover { color: var(--tf-text); }
.draft-state { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; border-radius: 8px; background: var(--tf-subtle); color: var(--tf-muted); font-size: 11px; font-weight: 650; }
.draft-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--tf-orange); }
.composer-stepper { display: grid; grid-template-columns: repeat(5,1fr); margin: 0 0 28px; border-bottom: 1px solid var(--tf-line); }
.composer-stepper button { position: relative; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; background: transparent; color: var(--tf-faint); font-size: 12px; transition: color 180ms var(--tf-ease), background-color 180ms var(--tf-ease); }
.composer-stepper button::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px; background: transparent; }
.composer-stepper button:hover { color: var(--tf-text); background: #fbfcfd; }
.composer-stepper button.is-active { color: var(--tf-text); background: transparent !important; }
.composer-stepper button.is-active::after { background: var(--tf-black); }
.composer-stepper button.is-complete { color: var(--tf-blue); }
.composer-stepper button span { font-family: "DM Mono", monospace; font-size: 10px; }
.composer-stepper button strong { font-weight: 700; }
.composer-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 28px; align-items: start; }
.composer-main { min-width: 0; }
.composer-section { min-height: 430px; padding: 30px; border: 1px solid var(--tf-line); border-radius: var(--tf-radius); background: #fff; color: var(--tf-text); }
.composer-section > header { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 28px; }
.composer-section > header > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 9px; background: var(--tf-black); color: #fff; font-family: "DM Mono", monospace; font-size: 10px; }
.composer-section > header h2 { margin: 0; color: var(--tf-text); font-size: 22px; font-weight: 750; }
.composer-section > header p { margin: 4px 0 0; color: var(--tf-muted); font-size: 13px; }
.composer-section > header a { margin-left: auto; color: var(--tf-blue); font-size: 12px; font-weight: 650; text-decoration: none; }
.engine-selector { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-bottom: 24px; }
.engine-selector button { position: relative; min-height: 104px; display: grid; grid-template-columns: 42px 1fr 18px; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--tf-line); border-radius: 11px; background: #fff !important; color: var(--tf-text); font-family: Manrope, "Segoe UI", sans-serif !important; text-align: left; transition: border-color 180ms var(--tf-ease), box-shadow 180ms var(--tf-ease), transform 180ms var(--tf-ease); }
.engine-selector button:hover { border-color: #b9c2ce; transform: translateY(-1px); box-shadow: 0 7px 20px rgba(24,32,43,.06); }
.engine-selector button:active { transform: scale(.992); }
.engine-selector button.is-selected { border-color: var(--tf-black); background: #fff !important; box-shadow: 0 0 0 1px var(--tf-black); }
.option-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--tf-subtle); color: var(--tf-text); }
.option-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.engine-selector button > .option-copy, .network-options button > .option-copy { display: block; width: auto; height: auto; min-width: 0; border-radius: 0; background: transparent !important; color: inherit !important; font: inherit; }
.engine-selector strong, .engine-selector small, .network-options strong, .network-options small { display: block; }
.engine-selector strong, .network-options strong { color: var(--tf-text); font-size: 13px; font-weight: 750; }
.engine-selector small, .network-options small { margin-top: 4px; color: var(--tf-muted); font-size: 11px; line-height: 1.45; }
.engine-selector button > .option-check { display: block; width: 17px; height: 17px; border: 1.5px solid var(--tf-line-strong); border-radius: 50%; background: #fff !important; }
.is-selected .option-check { border: 5px solid var(--tf-black); }
.crm-field { display: grid; gap: 7px; color: var(--tf-text); }
.crm-field > span { font-size: 12px; font-weight: 700; }
.crm-field > span em { float: right; color: var(--tf-faint); font-style: normal; font-weight: 500; }
.crm-field > small { color: var(--tf-muted); font-size: 11px; }
.crm-field input, .crm-field textarea, .crm-field select { width: 100%; padding: 11px 13px; border: 1px solid var(--tf-line-strong); border-radius: 9px; background: #fff; color: var(--tf-text); outline: 0; }
.crm-field input:focus, .crm-field textarea:focus, .crm-field select:focus { border-color: var(--tf-blue) !important; box-shadow: 0 0 0 3px rgba(9,105,255,.12); }
.delivery-control-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.number-control { min-height: 160px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--tf-line); border-radius: 10px; }
.number-control > span { color: var(--tf-muted); font-size: 12px; font-weight: 650; }
.number-control > div { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 12px; }
.number-control input { width: 90px; min-height: auto !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: var(--tf-text); font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; outline: 0; }
.number-control small { color: var(--tf-muted); font-size: 11px; }
.number-control p { margin: auto 0 0; color: var(--tf-muted); font-size: 10px; line-height: 1.5; }
.duration-callout { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 15px; border-radius: 9px; background: var(--tf-subtle); }
.duration-callout > span { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border-radius: 8px; background: #fff; }
.duration-callout svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.duration-callout strong { font-size: 12px; }
.duration-callout p { margin: 3px 0 0; color: var(--tf-muted); font-size: 11px; }
.network-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.network-options button { min-height: 130px; display: flex; flex-direction: column; align-items: flex-start; padding: 15px; border: 1px solid var(--tf-line); border-radius: 10px; background: #fff; color: var(--tf-text); text-align: left; transition: border-color 180ms var(--tf-ease), transform 180ms var(--tf-ease); }
.network-options button:hover { border-color: #b9c2ce; transform: translateY(-1px); }
.network-options button.is-selected { border-color: var(--tf-black); box-shadow: 0 0 0 1px var(--tf-black); }
.network-options .option-icon { width: 36px; height: 36px; margin-bottom: 12px; }
.network-options .option-icon svg { width: 19px; height: 19px; }
.network-subpanel, .proxy-result { margin-top: 16px; padding: 17px; border-radius: 10px; background: var(--tf-subtle); }
.schedule-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.schedule-options button { min-height: 90px; padding: 16px; border: 1px solid var(--tf-line); border-radius: 10px; background: #fff; color: var(--tf-text); text-align: left; }
.schedule-options button.is-selected { border-color: var(--tf-black); box-shadow: 0 0 0 1px var(--tf-black); }
.schedule-options strong, .schedule-options small { display: block; }
.schedule-options small { margin-top: 4px; color: var(--tf-muted); font-size: 11px; }
.schedule-select, .toggle-row, .review-manifest { margin-top: 18px; }
.toggle-row { display: flex; align-items: center; gap: 12px; }
.toggle-row > input { width: 42px; height: 24px; accent-color: var(--tf-black); }
.toggle-row > span { display: none; }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row small { color: var(--tf-muted); }
.review-manifest { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--tf-line); }
.review-manifest > div { padding: 14px 0; border-bottom: 1px solid var(--tf-line); }
.review-manifest span, .review-manifest strong { display: block; }
.review-manifest span { color: var(--tf-muted); font-size: 11px; }
.review-manifest strong { margin-top: 3px; font-size: 13px; }
.wizard-navigation { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 12px 0; }
.wizard-navigation > div { text-align: center; }
.wizard-navigation > div span, .wizard-navigation > div strong { display: block; }
.wizard-navigation > div span { color: var(--tf-faint); font-size: 10px; }
.wizard-navigation > div strong { font-size: 12px; }
.wizard-back, .wizard-next { min-height: 46px; padding: 0 18px; border-radius: 9px; font-weight: 700; }
.wizard-back { border: 1px solid var(--tf-line-strong); background: #fff; color: var(--tf-text); }
.wizard-back:disabled { opacity: .35; cursor: not-allowed; }
.wizard-next { border: 1px solid var(--tf-black); background: var(--tf-black); color: #fff; }
.wizard-next:hover { background: #22262f; transform: translateY(-1px); }
.composer-summary { position: sticky; top: calc(var(--tf-topbar) + 22px); padding: 20px; border: 1px solid var(--tf-line); border-radius: var(--tf-radius); background: #fff; }
.summary-status { display: flex; align-items: center; gap: 8px; color: var(--tf-muted); font-size: 11px; }
.summary-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--tf-orange); }
.summary-kicker { display: block; margin-top: 22px; color: var(--tf-faint); font-size: 10px; }
.composer-summary h2 { margin: 4px 0; font-size: 18px; }
.composer-summary > p { margin: 0 0 20px; color: var(--tf-muted); font-size: 11px; }
.summary-destination { padding: 14px; border-radius: 9px; background: var(--tf-subtle); }
.summary-destination span, .summary-destination strong, .summary-destination small { display: block; }
.summary-destination span, .summary-destination small { color: var(--tf-muted); font-size: 10px; }
.summary-destination strong { overflow: hidden; margin: 4px 0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.summary-list { margin: 14px 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--tf-line); font-size: 11px; }
.summary-list span { color: var(--tf-muted); }
.composer-summary > button { width: 100%; min-height: 46px; border: 0; border-radius: 9px; background: var(--tf-black); color: #fff; font-weight: 700; }
.summary-note { display: block; margin-top: 10px; color: var(--tf-faint); font-size: 9px; text-align: center; }
.composer-error { margin-bottom: 14px; padding: 12px 14px; border-left: 3px solid var(--tf-red); border-radius: 7px; background: var(--tf-red-bg); color: #852623; font-size: 12px; }

/* Context-aware campaign setup */
.composer-stepper button:focus-visible,
.engine-selector button:focus-visible,
.network-options button:focus-visible,
.schedule-options button:focus-visible,
.wizard-back:focus-visible,
.wizard-next:focus-visible,
.summary-submit:focus-visible {
  outline: 3px solid rgba(9,105,255,.22);
  outline-offset: 3px;
}
.engine-context-card {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  margin: -2px 0 22px;
  padding: 16px;
  border: 1px solid var(--tf-line);
  border-radius: 11px;
  background: var(--tf-subtle);
}
.engine-context-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tf-line);
  border-radius: 10px;
  background: #fff;
  color: var(--tf-text);
}
.engine-context-icon svg,
.workflow-note svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.engine-context-copy { min-width: 0; }
.engine-context-copy small,
.engine-context-copy strong,
.engine-context-copy p { display: block; }
.engine-context-copy small { margin-bottom: 3px; color: var(--tf-faint); font-size: 10px; font-weight: 700; }
.engine-context-copy strong { color: var(--tf-text); font-size: 14px; }
.engine-context-copy p { margin: 4px 0 0; max-width: 54ch; color: var(--tf-muted); font-size: 11px; line-height: 1.5; }
.engine-context-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 260px; }
.engine-context-tags span {
  padding: 6px 8px;
  border: 1px solid var(--tf-line);
  border-radius: 7px;
  background: #fff;
  color: var(--tf-muted);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.workflow-note {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid #cbd7e6;
  border-radius: 10px;
  background: #f4f8fc;
}
.workflow-note > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  color: var(--tf-blue);
}
.workflow-note strong { display: block; color: var(--tf-text); font-size: 13px; }
.workflow-note p { margin: 4px 0 0; max-width: 68ch; color: var(--tf-muted); font-size: 11px; line-height: 1.55; }
.crm-field > span b { color: inherit; font: inherit; }
.delivery-control-grid.has-1 { grid-template-columns: minmax(260px,.48fr); }
.delivery-control-grid.has-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.delivery-control-grid.has-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.delivery-control-grid.has-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.summary-submit,
.wizard-back,
.wizard-next,
.composer-stepper button,
.engine-selector button,
.network-options button,
.schedule-options button { cursor: pointer; touch-action: manipulation; }
.summary-submit:disabled,
.wizard-next:disabled { opacity: .5; cursor: wait; }

@media (max-width: 760px) {
  .engine-context-card { grid-template-columns: 42px minmax(0,1fr); }
  .engine-context-icon { width: 42px; height: 42px; }
  .engine-context-tags { grid-column: 1/-1; justify-content: flex-start; max-width: none; }
  .delivery-control-grid.has-2,
  .delivery-control-grid.has-3,
  .delivery-control-grid.has-4 { grid-template-columns: 1fr; }
  .wizard-navigation {
    position: static;
    bottom: auto;
    z-index: auto;
    margin: 14px 0 0;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
}

/* Site Intelligence: cached website model and autonomous-route previews */
.site-intelligence-page{max-width:1440px;margin:0 auto}.si-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:22px}.si-hero>div{max-width:780px}.si-hero h1{max-width:720px;margin:8px 0 10px;color:#151922;font-size:clamp(30px,4vw,52px);line-height:1.02;letter-spacing:-.052em;text-wrap:balance}.si-hero p{max-width:690px;margin:0;color:#6e7a8b;font-size:12px;line-height:1.7;text-wrap:pretty}.si-control-bar{display:grid;grid-template-columns:minmax(260px,1fr) minmax(250px,.8fr) auto;gap:14px;align-items:end;padding:16px 18px;background:#fff;border:1px solid #e2e6eb;border-radius:15px}.si-control-bar>label{display:grid;gap:7px}.si-control-bar label>span,.si-preview-controls label>span{color:#697587;font-size:9px;font-weight:750}.si-control-bar select,.si-preview-controls select{height:40px;padding:0 12px;color:#1b2029;background:#f9fafb;border:1px solid #dce2e8;border-radius:9px;font:650 11px Manrope,sans-serif}.si-control-bar>button,.si-preview-controls>button{height:40px;padding:0 16px;color:#fff;background:#151922;border:0;border-radius:9px;font-size:10px;font-weight:750;transition:transform 180ms var(--tf-ease),background 180ms var(--tf-ease)}.si-control-bar>button:hover,.si-preview-controls>button:hover{background:#282d37;transform:translateY(-1px)}.si-control-bar>button:disabled,.si-preview-controls>button:disabled{opacity:.45;cursor:wait}.si-scan-state{display:flex;align-items:center;gap:11px;min-height:40px}.si-scan-state>i{width:9px;height:9px;border-radius:50%;background:#c7a34e;box-shadow:0 0 0 5px rgba(199,163,78,.12)}.si-scan-state>i.is-ready{background:#289963;box-shadow:0 0 0 5px rgba(40,153,99,.11)}.si-scan-state>span{display:grid;gap:2px}.si-scan-state strong{font-size:10px}.si-scan-state small{color:#7c8796;font-size:8px}.si-empty{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:13px;align-items:center;margin-top:18px;padding:18px;background:#fff;border:1px solid #e3e7ec;border-radius:14px}.si-empty>span{width:42px;height:42px;display:grid;place-items:center;color:#526071;background:#eff3f6;border-radius:11px}.si-empty svg{width:20px;height:20px;fill:none;stroke:currentColor}.si-empty>div{display:grid;gap:3px}.si-empty strong{font-size:12px}.si-empty p{margin:0;color:#748093;font-size:9px}.si-empty a{padding:9px 12px;color:#fff;background:#171b23;border-radius:8px;font-size:9px;font-weight:750;text-decoration:none}.si-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:18px;overflow:hidden;background:#fff;border:1px solid #e2e6eb;border-radius:14px}.si-metrics article{display:grid;gap:5px;padding:17px 18px;border-right:1px solid #e7eaee}.si-metrics article:last-child{border-right:0}.si-metrics span{color:#748092;font-size:8px;font-weight:700}.si-metrics strong{color:#171b23;font:650 25px/1 DM Mono,monospace}.si-metrics small{color:#8a94a2;font-size:8px}.si-content-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:18px;margin-top:18px}.si-page-map,.si-plan-preview{min-width:0;background:#fff;border:1px solid #e2e6eb;border-radius:15px}.si-page-map>header{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:18px;border-bottom:1px solid #e8ebef}.si-page-map>header>div,.si-plan-preview>header{display:grid;gap:3px}.si-page-map header span,.si-plan-preview>header>span{color:#758193;font-size:8px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.si-page-map h2,.si-plan-preview h2{margin:0;color:#181c24;font-size:18px;letter-spacing:-.025em}.si-page-map>header>small{color:#7f8a99;font-size:8px}.si-type-strip{display:flex;gap:6px;overflow:auto;padding:10px 12px;border-bottom:1px solid #eceef2}.si-type-strip button{flex:0 0 auto;display:flex;align-items:center;gap:7px;padding:7px 9px;color:#657184;background:#f5f7f9;border:1px solid transparent;border-radius:8px;font-size:8px;font-weight:700}.si-type-strip button.is-active{color:#171b22;background:#fff;border-color:#cfd6df}.si-type-strip b{min-width:17px;height:17px;display:grid;place-items:center;color:#596575;background:#e6ebf0;border-radius:5px;font:650 7px DM Mono,monospace}.si-page-list{max-height:610px;overflow:auto}.si-page-list article{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 16px;border-bottom:1px solid #eef0f3}.si-page-list article:last-child{border-bottom:0}.si-page-type{color:#556273;font-size:8px;font-weight:750}.si-page-list article>div{min-width:0;display:grid;gap:3px}.si-page-list strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.si-page-list small{overflow:hidden;color:#85909f;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.si-page-list dl{display:flex;gap:15px;margin:0}.si-page-list dl>div{display:grid;gap:2px}.si-page-list dt{color:#9099a5;font-size:7px}.si-page-list dd{margin:0;color:#313a47;font:650 9px DM Mono,monospace}.si-plan-preview{align-self:start;overflow:hidden}.si-plan-preview>header{padding:18px 18px 14px}.si-plan-preview>header p{margin:4px 0 0;color:#788496;font-size:9px;line-height:1.6}.si-preview-controls{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:end;padding:12px 18px;background:#f7f9fa;border-block:1px solid #e7eaee}.si-preview-controls label{display:grid;gap:6px}.si-plan-list{display:grid;gap:9px;padding:12px}.si-plan-list>article{padding:12px;background:#fafbfc;border:1px solid #e5e9ee;border-radius:10px}.si-plan-list article>header{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px}.si-plan-list article>header span{font-size:9px;font-weight:750}.si-plan-list article>header small{color:#7b8696;font:500 8px DM Mono,monospace}.si-plan-list ol{display:grid;gap:0;margin:0;padding:0;list-style:none}.si-plan-list li{position:relative;display:grid;grid-template-columns:15px minmax(0,1fr);gap:7px;padding:5px 0}.si-plan-list li:not(:last-child)::before{content:"";position:absolute;left:4px;top:14px;bottom:-5px;width:1px;background:#d8dee5}.si-plan-list li>i{width:9px;height:9px;margin-top:2px;border:2px solid #dfe4e9;border-radius:50%;background:#596777}.si-plan-list li>div{min-width:0;display:grid;gap:2px}.si-plan-list li strong{font-size:8px}.si-plan-list li small{overflow:hidden;color:#808b9a;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.si-plan-empty{display:grid;justify-items:start;gap:5px;padding:24px 18px 28px}.si-plan-empty span{color:#8691a0;font-size:8px}.si-plan-empty strong{font-size:12px}.si-plan-empty p{margin:0;color:#7c8797;font-size:9px}@media(max-width:1100px){.si-content-grid{grid-template-columns:1fr}.si-plan-preview{position:static}.si-metrics{grid-template-columns:repeat(2,1fr)}.si-metrics article:nth-child(2){border-right:0}.si-metrics article:nth-child(n+3){border-top:1px solid #e7eaee}}@media(max-width:760px){.si-hero{align-items:flex-start;flex-direction:column}.si-control-bar{grid-template-columns:1fr}.si-metrics{grid-template-columns:1fr}.si-metrics article{border-right:0;border-bottom:1px solid #e7eaee}.si-page-list article{grid-template-columns:58px minmax(0,1fr)}.si-page-list dl{grid-column:2}.si-preview-controls{grid-template-columns:1fr}}

/* Campaign composer: autonomous mode is visually distinct from saved journey rotation. */
.autonomous-target-panel{display:grid;gap:15px;margin-top:16px;padding:17px;background:#f7f9fa;border:1px solid #dce2e8;border-radius:14px}.autonomous-target-panel>header{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:11px;align-items:center}.autonomous-target-panel>header>span{width:38px;height:38px;display:grid;place-items:center;color:#566476;background:#fff;border:1px solid #e1e5ea;border-radius:10px}.autonomous-target-panel>header svg{width:18px;height:18px;fill:none;stroke:currentColor}.autonomous-target-panel>header>div{display:grid;gap:3px}.autonomous-target-panel>header strong{font-size:11px}.autonomous-target-panel>header small{color:#758194;font-size:8px}.autonomous-target-panel>header>a{padding:8px 10px;color:#202631;background:#fff;border:1px solid #d8dee5;border-radius:8px;font-size:8px;font-weight:750;text-decoration:none}.autonomous-target-panel .toggle-row{margin-top:0;background:#fff;border:1px solid #e1e5ea;border-radius:10px}@media(max-width:680px){.autonomous-target-panel>header{grid-template-columns:38px 1fr}.autonomous-target-panel>header>a{grid-column:1/-1;text-align:center}}

@media (max-width: 430px) {
  .engine-context-card { align-items: start; padding: 14px; }
  .engine-context-tags { display: grid; grid-template-columns: 1fr; width: 100%; }
  .engine-context-tags span { white-space: normal; }
  .workflow-note { grid-template-columns: 1fr; }
  .delivery-control-grid.has-1 { grid-template-columns: 1fr; }
}

/* Website tools, connections, and campaign monitor */
.crm-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.crm-hero-main { max-width: 720px; }
.crm-hero .crm-title { margin: 0; }
.crm-hero .crm-subtitle { margin: 7px 0 0; color: var(--tf-muted); font-size: 15px; }
.tool-tabs { gap: 0 !important; margin-bottom: 24px !important; padding: 0 !important; border-bottom: 1px solid var(--tf-line) !important; }
.tool-tabs button { min-height: 48px; padding: 0 14px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--tf-muted) !important; box-shadow: none !important; }
.tool-tabs button:hover { color: var(--tf-text) !important; background: var(--tf-subtle) !important; }
.tool-tabs button.bg-indigo-600 { color: var(--tf-text) !important; box-shadow: inset 0 -2px 0 var(--tf-black) !important; }
.tool-tabs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.website-tools-page .space-y-6 > .rounded-2xl, .connection-card, .monitor-log-panel, .monitor-preview-panel { border: 1px solid var(--tf-line) !important; border-radius: var(--tf-radius) !important; background: #fff !important; box-shadow: none !important; }
.website-tools-page .p-6 { padding: 24px !important; }
.website-tools-page .grid { display: grid; }
.website-tools-page .gap-4 { gap: 16px; }
.website-tools-page .mb-4 { margin-bottom: 16px; }
.website-tools-page .space-y-6 > * + * { margin-top: 24px; }
.website-tools-page label { display: block; margin-bottom: 6px; color: var(--tf-muted) !important; font-size: 12px; font-weight: 650; }
.website-tools-page h2, .website-tools-page h3 { color: var(--tf-text) !important; }
.website-tools-page button[class*="bg-indigo-600"] { min-height: 46px; padding: 0 18px !important; border-radius: 9px !important; }
.website-tools-page button[class*="bg-indigo-600"], .connections-page button[type=submit] { background: var(--tf-black) !important; color: #fff !important; border-color: var(--tf-black) !important; box-shadow: none !important; }
.website-tools-page .text-indigo-300, .website-tools-page .text-indigo-400, .connections-page .text-indigo-300, .connections-page .text-indigo-400 { color: var(--tf-blue) !important; }
.connection-heading { margin-bottom: 28px; }
.connection-heading .page-title { margin: 0; color: var(--tf-text); font-size: 38px; font-weight: 800; letter-spacing: -.045em; }
.connection-heading .page-subtitle { margin: 7px 0 0; color: var(--tf-muted); }
.connection-card { padding: 28px !important; }
.connection-card-head { border-color: var(--tf-line) !important; }
.connection-card-head h3 { color: var(--tf-text) !important; }
.connection-card-head code { color: var(--tf-muted) !important; }
.connection-card-head > span { border: 0 !important; border-radius: 7px !important; background: var(--tf-subtle) !important; color: var(--tf-muted) !important; }
.connections-page label { color: var(--tf-text) !important; text-transform: none !important; letter-spacing: 0 !important; }
.connection-token-panel { border-color: var(--tf-line) !important; background: var(--tf-subtle) !important; }
.monitor-head h1 { color: var(--tf-text) !important; font-size: 34px !important; font-weight: 800 !important; letter-spacing: -.04em; }
.monitor-head .page-kicker { display: none; }
.monitor-run-controls { display: flex; gap: 8px; }
.monitor-run-controls button, .monitor-lab-link { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--tf-line-strong); border-radius: 8px; background: #fff; color: var(--tf-text); font-weight: 650; text-decoration: none; }
.monitor-lab-link { border-color: #cfe0f7; background: #f3f7fc; color: #21558f; }
.monitor-run-controls button.is-primary { border-color: var(--tf-black); background: var(--tf-black); color: #fff; }
.monitor-run-controls button.is-danger { color: var(--tf-red); }
.monitor-run-controls svg, .monitor-lab-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.monitor-view-switcher { border-color: var(--tf-line) !important; background: var(--tf-subtle) !important; }
.monitor-view-switcher button { background: transparent !important; color: var(--tf-muted) !important; }
.monitor-view-switcher button.bg-indigo-600 { background: #fff !important; color: var(--tf-text) !important; box-shadow: 0 2px 8px rgba(18,27,38,.08); }
.monitor-telemetry { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.monitor-telemetry > div { min-height: 120px; padding: 17px; border: 1px solid var(--tf-line); border-radius: 10px; background: #fff; }
.monitor-telemetry span, .monitor-telemetry small { display: block; color: var(--tf-muted); font-size: 11px; }
.monitor-telemetry strong { display: block; margin: 13px 0 6px; color: var(--tf-text); font-size: 17px; }
.monitor-log-panel { overflow: hidden; }
.monitor-log-head, .monitor-log-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--tf-line); }
.monitor-log-head { padding: 18px; }
.monitor-log-head h2 { margin: 2px 0; color: var(--tf-text); }
.monitor-log-head p { margin: 0; color: var(--tf-muted); }
.monitor-log-toolbar { padding: 11px 18px; background: var(--tf-subtle); }
.log-filter-group { display: flex; gap: 4px; }
.log-filter-group button { min-height: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--tf-muted); }
.log-filter-group button.is-active { background: #fff; color: var(--tf-text); box-shadow: 0 2px 7px rgba(18,27,38,.07); }

/* Account and disabled-state polish */
.account-portal { display: block; }
.account-tabs { position: static; display: flex; flex-direction: row; align-items: center; gap: 6px; margin: -4px 0 28px; padding: 0; border-bottom: 1px solid var(--tf-line); }
.account-tabs button { position: relative; min-height: 48px; padding: 0 16px; border: 0; border-radius: 8px 8px 0 0; background: transparent; color: var(--tf-muted); font-size: 13px; font-weight: 650; text-align: center; }
.account-tabs button:hover { background: var(--tf-subtle); color: var(--tf-text); }
.account-tabs button.is-active { background: transparent; color: var(--tf-text); box-shadow: inset 0 -2px var(--tf-black); }
.account-grid { grid-template-columns: minmax(0,1fr) 300px; gap: 24px; }
.account-secure { align-self: center; }
.account-identity-card, .account-security-mini, .security-grid > article { border-color: var(--tf-line) !important; border-radius: var(--tf-radius) !important; background: #fff !important; }
.account-avatar { background: var(--tf-subtle-2); color: var(--tf-text); }
.account-limits header small { color: var(--tf-muted); }
.limit-icon { display: grid; width: 29px; height: 29px; place-items: center; margin-bottom: 12px; border-radius: 8px; background: var(--tf-subtle); color: var(--tf-text); }
.limit-icon svg, .security-provider svg, .security-large-icon svg, .audit-disabled-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.verified-pill { background: var(--tf-green-bg); color: #08743b; }
.current-plan-card, .plan-grid > article { background: #fff !important; border-color: var(--tf-line) !important; }
.plan-grid > article.is-featured { border-color: var(--tf-black) !important; background: #fff !important; }
.account-usage-card footer button:not(.quiet), .current-plan-card button, .plan-grid button:not(:disabled) { min-height: 44px; border-color: var(--tf-black) !important; background: var(--tf-black) !important; color: #fff !important; }
.account-usage-card footer button:not(.quiet):hover, .current-plan-card button:hover, .plan-grid button:not(:disabled):hover { background: #242831 !important; }
.account-usage-card footer button.quiet { min-height: 44px; border-color: var(--tf-line-strong); color: var(--tf-text); }
.account-security-mini header button { min-height: 38px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--tf-blue); font-size: 12px; font-weight: 650; }
.account-security-mini header button:hover { background: var(--tf-subtle); }
.security-provider, .security-large-icon { display: grid; place-items: center; background: var(--tf-subtle); color: var(--tf-text); }
.security-large-icon svg { width: 22px; height: 22px; }
.security-large-icon.danger { background: var(--tf-red-bg); color: var(--tf-red); }
.audit-disabled { border-color: var(--tf-line); }
.audit-disabled-mark { background: var(--tf-subtle); color: var(--tf-text); }
.audit-disabled-mark svg { width: 23px; height: 23px; }
@media (min-width: 768px) {
  .website-tools-page .md\:grid-cols-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .website-tools-page .md\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .website-tools-page .md\:grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .website-tools-page .md\:col-span-2 { grid-column: span 2; }
}

/* Modals and command palette */
.customer-modal-layer, .command-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(10,14,20,.48); backdrop-filter: blur(8px); }
.customer-modal, .command-palette { width: min(650px,100%); max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid rgba(255,255,255,.36); border-radius: 15px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.22); }
.command-palette { width: min(600px,100%); padding: 8px; }
.command-search { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--tf-line); }
.command-search svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.command-search input { flex: 1; min-height: 42px; border: 0; outline: 0; }
.command-search button { border: 0; border-radius: 6px; background: var(--tf-subtle); color: var(--tf-muted); }
.command-list { padding: 6px 0; }
.command-list button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--tf-text); }
.command-list button:hover { background: var(--tf-subtle); }
.command-list svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

@media (max-width: 1120px) {
  .overview-layout { grid-template-columns: 1fr; }
  .overview-side { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .campaign-ledger-head, .campaign-record { grid-template-columns: minmax(220px,1.5fr) minmax(150px,1fr) 90px 90px 58px; }
   .composer-layout { grid-template-columns: 1fr; }
  .composer-summary { position: static; }
}
@media (max-width: 900px) {
  :root { --tf-sidebar: 0px; }
  .tf-sidebar { width: 248px; transform: translateX(-104%); box-shadow: 20px 0 60px rgba(20,28,38,.16); transition: transform 240ms var(--tf-ease); }
  .tf-sidebar.is-open { transform: translateX(0); }
  .tf-sidebar-close, .tf-mobile-menu { display: grid; }
  .tf-brand-wrap { justify-content: space-between; }
  .tf-brand { width: 158px; }
  .tf-mobile-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(10,14,20,.32); }
  .tf-main { padding: 28px 22px 48px; }
  .overview-side { grid-template-columns: 1fr; }
  .composer-layout { grid-template-columns: 1fr; }
  .composer-summary { position: static; }
}
@media (max-width: 720px) {
  .tf-topbar { padding: 0 14px; }
  .tf-account-trigger > span:nth-child(2) { display: none; }
  .tf-main { padding: 24px 16px 44px; }
  .page-heading, .reports-heading, .account-heading { display: grid; }
  .page-heading-actions { display: flex; }
  .metric-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-strip article { min-height: 140px; }
  .campaign-toolbar { display: grid; }
  .status-tabs { max-width: 100%; overflow-x: auto; }
  .campaign-filters { display: grid; grid-template-columns: 1fr; }
  .campaign-ledger-head { display: none; }
  .campaign-record { grid-template-columns: 1fr auto; gap: 14px; padding: 16px; }
  .campaign-record > :nth-child(2), .campaign-record > :nth-child(3) { grid-column: 1 / -1; }
  .campaign-record > :nth-child(4) { grid-column: 1; }
  .campaign-record > :nth-child(5) { grid-column: 2; grid-row: 1; }
  .ledger-footer { display: none; }
  .composer-heading-v3 { display: grid; }
  .composer-stepper { grid-template-columns: repeat(5,minmax(52px,1fr)); overflow-x: auto; }
  .composer-stepper button { display: grid; place-items: center; align-content: center; gap: 2px; }
  .composer-section { min-height: 0; padding: 20px; }
  .engine-selector, .delivery-control-grid, .network-options, .schedule-options { grid-template-columns: 1fr; }
  .wizard-navigation > div { display: none; }
  .crm-hero { display: grid; }
  .tool-tabs { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  .tool-tabs::-webkit-scrollbar, .account-tabs::-webkit-scrollbar { display: none; }
  .tool-tabs button { flex: 0 0 auto; }
  .monitor-telemetry { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .monitor-head-actions, .monitor-run-controls { width: 100%; flex-wrap: wrap; }
  .monitor-log-head, .monitor-log-toolbar { align-items: flex-start; flex-direction: column; }
  .account-tabs { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .account-tabs button { flex: 0 0 auto; }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .metric-strip { grid-template-columns: 1fr; }
  .metric-strip article { min-height: 124px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Developer Lab — isolated browser recording workspace */
.lab-page { max-width: 1340px; margin: 0 auto; }
.lab-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 28px; }
.lab-heading h1 { max-width: 760px; margin: 7px 0 10px; font-size: clamp(34px,4vw,52px); line-height: 1.02; font-weight: 800; }
.lab-heading p { max-width: 720px; margin: 0; color: var(--tf-muted); font-size: 15px; line-height: 1.65; }
.lab-safety { flex: 0 0 260px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--tf-line); border-radius: 12px; background: #fafbfc; }
.lab-safety > i { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #13a05a; box-shadow: 0 0 0 5px #e1f6ea; }
.lab-safety strong, .lab-safety span { display: block; }
.lab-safety strong { color: var(--tf-text); font-size: 11px; }
.lab-safety span { color: var(--tf-muted); font-size: 10px; line-height: 1.45; }

.lab-setup { display: grid; grid-template-columns: minmax(260px,.78fr) minmax(520px,1.42fr); gap: 42px; align-items: center; padding: 26px; border: 1px solid var(--tf-line); border-radius: 17px; background: #fff; box-shadow: 0 14px 42px rgba(15,23,42,.055); }
.lab-setup-copy { padding: 8px 12px; }
.lab-setup-copy > span, .lab-form label > span { color: var(--tf-muted); font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.lab-setup-copy h2 { margin: 7px 0 9px; font-size: 25px; line-height: 1.15; }
.lab-setup-copy p { margin: 0; color: var(--tf-muted); font-size: 12px; line-height: 1.65; }
.lab-form { display: grid; grid-template-columns: minmax(220px,1.4fr) minmax(150px,.75fr) minmax(135px,.6fr); gap: 13px; align-items: end; padding: 17px; border-radius: 13px; background: #f6f8fa; }
.lab-form label { display: block; min-width: 0; }
.lab-form input, .lab-form select { width: 100%; height: 47px; margin-top: 7px; padding: 0 12px; border: 1px solid var(--tf-line-strong); border-radius: 9px; outline: 0; background: #fff; color: var(--tf-text); font-size: 12px; }
.lab-form input:focus, .lab-form select:focus { border-color: var(--tf-blue); box-shadow: 0 0 0 3px rgba(9,105,255,.11); }
.lab-form small { display: block; margin-top: 5px; color: var(--tf-faint); font-size: 9px; }
.lab-start { grid-column: 1 / -1; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 3px; border: 1px solid #111318; border-radius: 9px; background: #111318; color: #fff; font-weight: 750; transition: transform 180ms var(--tf-ease), background 180ms var(--tf-ease); }
.lab-start:hover { background: #252a33; transform: translateY(-1px); }
.lab-start:active { transform: scale(.99); }
.lab-start:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.lab-start svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lab-error { grid-column: 1/-1; margin: 0; padding: 10px 13px; border: 1px solid #f2c8c6; border-radius: 8px; background: var(--tf-red-bg); color: #8e2f2b; font-size: 11px; }

.lab-workspace { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(310px,.72fr); gap: 18px; align-items: start; margin-top: 18px; }
.lab-stage-card, .lab-progress-card, .lab-events-card, .lab-fingerprint-card, .lab-result-card { border: 1px solid var(--tf-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.045); }
.lab-stage-card { min-width: 0; overflow: hidden; }
.lab-stage-head { min-height: 55px; display: grid; grid-template-columns: 60px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 0 15px; border-bottom: 1px solid var(--tf-line); background: #f6f8fa; }
.lab-window-dots { display: flex; gap: 6px; }
.lab-window-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d6dbe3; }
.lab-window-dots i:first-child { background: #e56b61; }
.lab-window-dots i:nth-child(2) { background: #e2b24e; }
.lab-window-dots i:nth-child(3) { background: #54ad70; }
.lab-address { min-width: 0; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #dfe4ea; border-radius: 8px; background: #fff; color: #647083; }
.lab-address svg { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lab-address span { overflow: hidden; font-family: "DM Mono", monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.lab-live-pill { display: inline-flex; align-items: center; gap: 6px; min-width: 61px; justify-content: center; padding: 5px 8px; border-radius: 999px; background: #fff; color: #667085; font-size: 9px; text-transform: capitalize; }
.lab-live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #98a2b3; }
.lab-live-pill.is-live { color: #097a3e; }
.lab-live-pill.is-live i { background: #13a05a; box-shadow: 0 0 0 4px #e2f7ea; animation: labPulse 1.5s ease-in-out infinite; }
@keyframes labPulse { 50% { opacity: .45; } }

.lab-viewport { position: relative; min-height: 570px; display: grid; place-items: center; overflow: hidden; background: #0c0f15; }
.lab-viewport > img, .lab-viewport > video { display: block; width: 100%; max-height: 720px; aspect-ratio: 16/9; object-fit: contain; background: #0c0f15; }
.lab-viewport-empty { max-width: 350px; padding: 40px 24px; color: #fff; text-align: center; }
.lab-viewport-empty strong { display: block; margin-top: 24px; font-size: 15px; }
.lab-viewport-empty p { margin: 8px 0 0; color: #8d97a6; font-size: 11px; line-height: 1.55; }
.lab-orbit { position: relative; width: 52px; height: 52px; margin: 0 auto; border: 1px solid #333b49; border-radius: 50%; }
.lab-orbit span { position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.lab-orbit i { position: absolute; left: 22px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #4a8eff; transform-origin: 4px 30px; animation: labOrbit 1.4s linear infinite; }
@keyframes labOrbit { to { transform: rotate(360deg); } }
.lab-action-overlay { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); padding: 9px 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 9px; background: rgba(10,14,22,.86); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); backdrop-filter: blur(12px); }
.lab-action-overlay span { display: block; margin-bottom: 2px; color: #95a1b2; font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.lab-action-overlay strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.lab-stage-foot { min-height: 68px; display: flex; align-items: center; gap: 24px; padding: 11px 15px; border-top: 1px solid var(--tf-line); }
.lab-stage-foot > div span, .lab-stage-foot > div strong { display: block; }
.lab-stage-foot > div span { color: var(--tf-faint); font-size: 8px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.lab-stage-foot > div strong { max-width: 145px; margin-top: 2px; overflow: hidden; color: #344054; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.lab-stage-foot > div strong.is-playing { color: var(--tf-green); }
.lab-stage-foot > div strong.is-not_playing, .lab-stage-foot > div strong.is-not_detected { color: var(--tf-orange); }
.lab-stage-foot button, .lab-stage-foot a { min-height: 34px; display: inline-flex; align-items: center; margin-left: auto; padding: 0 12px; border: 1px solid var(--tf-line-strong); border-radius: 8px; background: #fff; color: #344054; font-size: 10px; font-weight: 700; text-decoration: none; }
.lab-stage-foot a { border-color: var(--tf-black); background: var(--tf-black); color: #fff; }
.lab-stage-foot button + a { margin-left: 0; }

.lab-inspector { display: grid; gap: 14px; }
.lab-progress-card { padding: 19px; }
.lab-progress-card > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--tf-line); }
.lab-progress-card > header span { font-size: 12px; font-weight: 750; }
.lab-progress-card > header b { padding: 3px 7px; border-radius: 5px; background: #eef3fb; color: #436084; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.lab-progress-card ol { display: grid; gap: 0; margin: 17px 0 0; padding: 0; list-style: none; }
.lab-progress-card li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 10px; min-height: 55px; color: #98a2b3; }
.lab-progress-card li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 27px; bottom: 0; width: 1px; background: #e5e9ef; }
.lab-progress-card li > i { position: relative; z-index: 1; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #e2e7ed; border-radius: 50%; background: #fff; font-style: normal; font-size: 8px; }
.lab-progress-card li strong, .lab-progress-card li small { display: block; }
.lab-progress-card li strong { margin-top: 1px; color: #667085; font-size: 10px; }
.lab-progress-card li small { margin-top: 2px; font-size: 8px; line-height: 1.45; }
.lab-progress-card li.is-current > i { border-color: #216fe7; background: #216fe7; color: #fff; box-shadow: 0 0 0 5px #e6efff; }
.lab-progress-card li.is-current strong { color: #111318; }
.lab-progress-card li.is-done > i { border-color: #b9e2ca; background: #e6f7ed; color: #08743b; }
.lab-progress-card li.is-done > i span { font-size: 0; }
.lab-progress-card li.is-done > i span::after { content: "✓"; font-size: 10px; font-weight: 800; }
.lab-progress-card li.is-error > i { border-color: #efc1bf; background: #fdecec; color: #a6322e; }

.lab-events-card { padding: 19px; }
.lab-events-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--tf-line); }
.lab-events-card > header span { color: var(--tf-muted); font-size: 8px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.lab-events-card > header h2 { margin: 3px 0 0; font-size: 14px; }
.lab-events-card > header b { min-width: 22px; padding: 4px 6px; border-radius: 6px; background: #eef3fb; color: #436084; font-size: 8px; text-align: center; }
.lab-events-card ol { max-height: 290px; display: grid; gap: 0; margin: 0; padding: 0; overflow: auto; list-style: none; }
.lab-events-card li { display: grid; grid-template-columns: 10px minmax(0,1fr); gap: 10px; padding: 11px 2px; border-bottom: 1px solid #eef1f4; }
.lab-events-card li:last-child { border-bottom: 0; }
.lab-events-card li > i { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #7b8ba1; box-shadow: 0 0 0 4px #edf1f5; }
.lab-events-card li.is-verified > i { background: var(--tf-green); box-shadow: 0 0 0 4px var(--tf-green-bg); }
.lab-events-card li.is-needs_attention > i, .lab-events-card li.is-failed > i, .lab-events-card li.is-stalled > i { background: var(--tf-orange); box-shadow: 0 0 0 4px #fff3df; }
.lab-events-card li strong, .lab-events-card li small { display: block; }
.lab-events-card li strong { color: #344054; font-size: 9px; font-weight: 650; line-height: 1.5; }
.lab-events-card li small { margin-top: 3px; color: var(--tf-faint); font-size: 7px; letter-spacing: .04em; text-transform: capitalize; }

.lab-fingerprint-card { padding: 19px; }
.lab-fingerprint-card > header { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.lab-fingerprint-card > header span { color: var(--tf-muted); font-size: 9px; }
.lab-fingerprint-card > header h2 { margin: 2px 0 0; font-size: 16px; }
.lab-fingerprint-card > header > i { align-self: start; padding: 3px 7px; border: 1px solid #cce2ff; border-radius: 5px; background: #eef6ff; color: #1665c1; font-size: 8px; font-style: normal; font-weight: 750; text-transform: uppercase; }
.lab-fingerprint-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; border-top: 1px solid var(--tf-line); border-left: 1px solid var(--tf-line); }
.lab-fingerprint-card dl > div { min-width: 0; padding: 10px; border-right: 1px solid var(--tf-line); border-bottom: 1px solid var(--tf-line); }
.lab-fingerprint-card dl > div.is-wide { grid-column: 1/-1; }
.lab-fingerprint-card dt { color: var(--tf-faint); font-size: 8px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.lab-fingerprint-card dd { margin: 3px 0 0; overflow: hidden; color: #344054; font-family: "DM Mono", monospace; font-size: 8px; line-height: 1.55; text-overflow: ellipsis; }
.lab-result-card { display: flex; gap: 12px; padding: 16px; }
.lab-result-card > i { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 5px; border-radius: 50%; background: var(--tf-green); box-shadow: 0 0 0 5px var(--tf-green-bg); }
.lab-result-card.is-error > i { background: var(--tf-red); box-shadow: 0 0 0 5px var(--tf-red-bg); }
.lab-result-card strong { font-size: 11px; }
.lab-result-card p { margin: 4px 0 0; color: var(--tf-muted); font-size: 9px; line-height: 1.55; }

@media (max-width: 1150px) {
  .lab-workspace { grid-template-columns: 1fr; }
  .lab-inspector { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lab-result-card { grid-column: 1/-1; }
  .lab-viewport { min-height: 480px; }
}
@media (max-width: 900px) {
  .lab-heading { align-items: flex-start; flex-direction: column; }
  .lab-safety { width: 100%; flex-basis: auto; }
  .lab-setup { grid-template-columns: 1fr; gap: 18px; }
  .lab-form { grid-template-columns: 1fr 1fr; }
  .lab-url-field { grid-column: 1/-1; }
  .lab-inspector { grid-template-columns: 1fr; }
  .lab-result-card { grid-column: auto; }
}
@media (max-width: 640px) {
  .lab-heading h1 { font-size: 36px; }
  .lab-setup { padding: 16px; }
  .lab-form { grid-template-columns: 1fr; padding: 13px; }
  .lab-url-field { grid-column: auto; }
  .lab-viewport { min-height: 300px; }
  .lab-stage-head { grid-template-columns: 45px minmax(0,1fr); }
  .lab-live-pill { display: none; }
  .lab-stage-foot { align-items: flex-start; flex-wrap: wrap; gap: 12px 18px; }
  .lab-stage-foot button, .lab-stage-foot a { margin-left: 0; }
}

/* Authentication */
body.crm-auth { margin: 0; min-width: 320px; background: #fff; color: var(--tf-text); font-family: Manrope, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
.portal-auth-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(380px,.9fr) minmax(500px,1.1fr); }
.portal-auth-story { display: flex; flex-direction: column; padding: 42px clamp(34px,5vw,78px); background: var(--tf-black) !important; color: #fff; }
.portal-auth-brand { position: relative; width: 190px; height: 62px; display: block; overflow: hidden; }
.portal-auth-brand img { position: absolute; left: -28px; top: -92px; width: 246px; max-width: none; height: 246px; object-fit: contain; transform: none !important; }
.portal-auth-copy { margin: auto 0; max-width: 540px; }
.portal-auth-copy .crm-eyebrow { color: #aeb6c2 !important; }
.portal-auth-copy h1 { margin: 20px 0; color: #fff; font-size: clamp(42px,5vw,68px); line-height: 1.03; font-style: normal; letter-spacing: -.06em; }
.portal-auth-copy h1 em { color: #fff; font-style: normal; }
.portal-auth-copy p { max-width: 500px; color: #b9c0ca; font-size: 16px; line-height: 1.65; }
.portal-auth-proof { display: grid; gap: 0; margin-bottom: 26px; }
.portal-auth-proof > div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.portal-auth-proof i > div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }
.portal-auth-proof i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.portal-auth-proof strong, .portal-auth-proof small { display: block; }
.portal-auth-proof span strong, .portal-auth-proof span small { display: block; }
.portal-auth-proof small { color: #939dab; }
.portal-auth-story footer { display: flex; justify-content: space-between; color: #8e98a6; font-size: 11px; }
.portal-auth-panel { position: relative; display: grid; place-items: center; padding: 72px 36px 36px; background: #fff; }
.auth-site-return { position: absolute; top: 28px; left: 32px; color: var(--tf-muted); font-size: 12px; font-weight: 650; text-decoration: none; transition: color 180ms var(--tf-ease), transform 180ms var(--tf-ease); }
.auth-site-return:hover { color: var(--tf-text); transform: translateX(-2px); }
.auth-site-return:focus-visible { outline: 3px solid rgba(9,105,255,.24); outline-offset: 4px; border-radius: 4px; }
.portal-auth-card { width: min(430px,100%); }
.portal-auth-card header { margin-bottom: 26px; }
.portal-auth-card header .auth-symbol-symbol { display: none; }
.portal-auth-card header .auth-symbol { display: none; }
.portal-auth-card header p { margin: 0 0 8px; color: var(--tf-muted); font-size: 12px; font-weight: 650; }
.portal-auth-card header h2 { margin: 0; color: var(--tf-text); font-size: 32px; line-height: 1.15; letter-spacing: -.04em; }
.portal-auth-card header small { display: block; margin-top: 8px; color: var(--tf-muted); }
.auth-google { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--tf-line-strong); border-radius: 9px; background: #fff; color: var(--tf-text); font-weight: 650; }
.auth-google:hover { background: var(--tf-subtle); }
.auth-google svg { width: 19px; height: 19px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--tf-faint); font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--tf-line); }
.portal-auth-form { display: grid; gap: 16px; }
.portal-auth-form label > span { display: block; margin-bottom: 7px; color: var(--tf-text); font-size: 12px; font-weight: 700; }
.portal-auth-form input:not([type=checkbox]) { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--tf-line-strong); border-radius: 9px; background: #fff; color: var(--tf-text); outline: 0; }
.portal-auth-form input:focus { border-color: var(--tf-blue); box-shadow: 0 0 0 3px rgba(9,105,255,.12); }
.auth-form-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--tf-muted); font-size: 11px; }
.auth-form-meta label { display: flex; align-items: center; gap: 7px; }
.auth-form-meta label span { display: none; }
.auth-primary { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--tf-black); border-radius: 9px; background: var(--tf-black); color: #fff; font-weight: 750; }
.auth-primary i { display: none; }
.auth-primary:hover { background: #242831; }
.auth-primary:disabled, .auth-google:disabled { opacity: .5; cursor: wait; }
.auth-switch { margin: 22px 0 0; color: var(--tf-muted); font-size: 12px; text-align: center; }
.auth-switch a { color: var(--tf-blue); font-weight: 650; }
.auth-message { margin-bottom: 16px; padding: 11px 13px; border-radius: 8px; background: var(--tf-red-bg); color: #852623; font-size: 12px; }
.auth-message.is-success { background: var(--tf-green-bg); color: #08743b; }
.trial-capacity { margin-top: auto; }
.trial-capacity > span { color: #9da6b3; font-size: 11px; }
.trial-capacity > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 12px; }
.trial-capacity strong { color: #fff; font-size: 22px; }
.trial-capacity small { display: block; color: #8f99a7; font-size: 10px; font-weight: 500; }
@media (max-width: 900px) {
  .portal-auth-shell { grid-template-columns: 1fr; }
  .portal-auth-story { min-height: 260px; padding: 28px; }
  .portal-auth-copy { margin: 34px 0; }
  .portal-auth-copy h1 { font-size: 40px; }
  .portal-auth-proof, .portal-auth-story footer, .trial-capacity { display: none; }
  .portal-auth-panel { padding: 74px 20px 54px; }
  .auth-site-return { top: 26px; left: 22px; }
}

/* Recorder-first website journey experience */
.journey-recorder-page { max-width: 1480px; margin: 0 auto; }
.journey-recorder-hero .crm-subtitle { max-width: 760px; text-wrap: pretty; }
.journey-recorder-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 18px; align-items: start; }
.journey-recorder-page.is-live-recording .journey-recorder-layout { grid-template-columns: minmax(0, 1fr); }
.journey-recordings,
.journey-recorder-workspace { background: #fff; border: 1px solid #e4e8ee; border-radius: 18px; }
.journey-recordings { position: sticky; top: 88px; overflow: hidden; }
.journey-recordings > header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-bottom: 1px solid #ebedf1; }
.journey-recordings > header > div { display: grid; gap: 2px; }
.journey-recordings > header span { color: #7a8493; font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.journey-recordings > header strong { color: #20242c; font-size: 12px; }
.journey-recordings > header button { min-height: 34px; display: flex; align-items: center; gap: 5px; padding: 0 10px; color: #fff; background: #11151d; border: 0; border-radius: 8px; font-size: 10px; font-weight: 750; transition: transform 180ms var(--tf-ease), background 180ms var(--tf-ease); }
.journey-recordings > header button:hover { background: #242933; transform: translateY(-1px); }
.journey-recordings > header button:active { transform: scale(.98); }
.journey-recordings > header button:disabled { opacity: .4; cursor: not-allowed; }
.journey-recordings > header button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.journey-recordings > header button span { color: inherit; font-size: 9px; letter-spacing: 0; text-transform: none; }
.journey-recording-list { max-height: 620px; overflow: auto; padding: 7px; }
.journey-recording-list > button { width: 100%; display: grid; grid-template-columns: 32px minmax(0,1fr) 15px; gap: 9px; align-items: center; padding: 10px; color: #222833; text-align: left; background: transparent; border: 0; border-radius: 10px; transition: background 180ms var(--tf-ease), transform 180ms var(--tf-ease); }
.journey-recording-list > button:hover { background: #f6f8fa; transform: translateX(1px); }
.journey-recording-list > button.is-active { background: #eef2f6; }
.journey-recording-list > button > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.journey-recording-list > button strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.journey-recording-list > button small { display: flex; gap: 5px; color: #7a8493; font-size: 8px; }
.journey-recording-list > button small b { color: #18734a; font-weight: 750; text-transform: capitalize; }
.journey-recording-list > button small i { font-style: normal; }
.journey-recording-list > button > svg { width: 14px; height: 14px; fill: none; stroke: #9ba4b0; transform: rotate(-90deg); }
.journey-recording-index { width: 30px; height: 30px; display: grid; place-items: center; color: #586576; background: #edf1f5; border-radius: 8px; font: 700 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.journey-library-empty { display: grid; justify-items: start; gap: 8px; padding: 22px 16px 26px; }
.journey-library-empty > span { width: 38px; height: 38px; display: grid; place-items: center; color: #526071; background: #f0f3f6; border-radius: 11px; }
.journey-library-empty svg { width: 18px; height: 18px; fill: none; stroke: currentColor; }
.journey-library-empty strong { font-size: 12px; }
.journey-library-empty p { margin: 0; color: #768295; font-size: 10px; line-height: 1.6; text-wrap: pretty; }
.journey-recorder-workspace { min-width: 0; overflow: hidden; }
.journey-workspace-head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid #e8ebef; }
.journey-workspace-head > div { display: grid; gap: 2px; }
.journey-workspace-head > div > span,
.journey-recording-summary header span { color: #768294; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.journey-workspace-head h2 { margin: 0; color: #151922; font-size: 20px; letter-spacing: -.03em; }
.journey-authorized-mark { display: flex; align-items: center; gap: 7px; color: #426653; font-size: 10px; font-weight: 700; }
.journey-authorized-mark i { width: 7px; height: 7px; border-radius: 50%; background: #27a267; box-shadow: 0 0 0 4px rgba(39,162,103,.1); }
.journey-record-setup { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 20px 20px; background: #fafbfc; border-bottom: 1px solid #e8ebef; }
.journey-record-url { grid-column: 1 / -1; }
.journey-record-url > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.journey-record-url button { min-width: 142px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; color: #fff; background: #11151d; border: 0; border-radius: 9px; font-size: 11px; font-weight: 750; transition: background 180ms var(--tf-ease), transform 180ms var(--tf-ease); }
.journey-record-url button:hover { background: #252a34; transform: translateY(-1px); }
.journey-record-url button:active { transform: scale(.985); }
.journey-record-url button:disabled { opacity: .45; cursor: wait; }
.journey-record-url button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; }
.journey-record-url small { margin-top: 6px; color: #7a8595; font-size: 9px; }
.journey-no-target { margin: 18px 20px 0; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 13px; background: #fff8eb; border: 1px solid #f1dfbb; border-radius: 12px; }
.journey-no-target > div { width: 40px; height: 40px; display: grid; place-items: center; color: #85621e; background: #f8e9ca; border-radius: 10px; }
.journey-no-target svg { width: 19px; height: 19px; fill: none; stroke: currentColor; }
.journey-no-target > span { display: grid; gap: 2px; }
.journey-no-target strong { font-size: 11px; }
.journey-no-target small { color: #7d6b49; font-size: 9px; }
.journey-no-target a { padding: 8px 11px; color: #fff; background: #1b1f27; border-radius: 8px; font-size: 9px; font-weight: 750; text-decoration: none; }
.journey-live-shell { margin: 20px; overflow: hidden; background: #0d1118; border: 1px solid #dce1e8; border-radius: 14px; box-shadow: 0 18px 42px rgba(26,35,50,.09); }
.journey-live-shell.is-active { margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.journey-live-toolbar { height: 49px; display: grid; grid-template-columns: 80px minmax(0,1fr) 100px; gap: 12px; align-items: center; padding: 0 14px; background: #f5f6f8; border-bottom: 1px solid #dce1e8; }
.journey-window-controls { display: flex; gap: 7px; }
.journey-window-controls i { width: 9px; height: 9px; border-radius: 50%; background: #cfd5dd; }
.journey-window-controls i:first-child { background: #d7635c; }
.journey-window-controls i:nth-child(2) { background: #dbad4e; }
.journey-window-controls i:nth-child(3) { background: #5cae77; }
.journey-live-address { min-width: 0; height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 11px; color: #556172; background: #fff; border: 1px solid #dfe3e9; border-radius: 7px; }
.journey-live-address svg { width: 13px; height: 13px; flex: 0 0 auto; fill: none; stroke: #7a8593; }
.journey-live-address span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.journey-live-state { justify-self: end; display: flex; align-items: center; gap: 6px; color: #687486; font-size: 9px; font-weight: 750; }
.journey-live-state i { width: 7px; height: 7px; border-radius: 50%; background: #aab3bf; }
.journey-live-state.is-recording { color: #9a312f; }
.journey-live-state.is-recording i { background: #d54c48; box-shadow: 0 0 0 4px rgba(213,76,72,.11); animation: journey-record-pulse 1.4s ease-in-out infinite; }
.journey-live-stage { position: relative; min-height: 390px; overflow: hidden; background: radial-gradient(circle at 50% 35%,#28303b 0,#171d26 46%,#0e131b 100%); }
.journey-live-stage > img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: fill; cursor: none; user-select: none; }
.journey-dotted-cursor { position: absolute; left: -12px; top: -12px; z-index: 5; width: 24px; height: 24px; display: grid; place-items: center; pointer-events: none; will-change: transform; }
.journey-dotted-cursor::before { content: ""; position: absolute; inset: 2px; border: 1px dashed rgba(255,255,255,.95); border-radius: 50%; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); animation: journey-cursor-spin 4s linear infinite; }
.journey-dotted-cursor i { width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(15,20,29,.68); }
@keyframes journey-cursor-spin { to { transform: rotate(360deg); } }
.journey-stage-empty,
.journey-stage-opening { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 9px; padding: 28px; color: #dce3eb; text-align: center; }
.journey-stage-empty > strong,
.journey-stage-opening > strong { font-size: 15px; }
.journey-stage-empty > p,
.journey-stage-opening > p { max-width: 470px; margin: 0; color: #8f9bab; font-size: 10px; line-height: 1.6; text-wrap: balance; }
.journey-stage-illustration { position: relative; width: 66px; height: 52px; margin-bottom: 7px; border: 1px solid #46505e; border-radius: 8px; background: #202732; box-shadow: 16px 12px 0 -7px #121821,16px 12px 0 -6px #3a4554; }
.journey-stage-illustration::before { content: ""; position: absolute; inset: 8px; border-top: 1px solid #4a5564; background: linear-gradient(145deg,transparent 45%,#4d5968 46% 48%,transparent 49%); }
.journey-stage-illustration span { position: absolute; left: 6px; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: #d7635c; box-shadow: 7px 0 #dbad4e,14px 0 #5cae77; }
.journey-stage-illustration i { position: absolute; right: -5px; bottom: -7px; width: 21px; height: 21px; border: 1px dashed #dbe2ea; border-radius: 50%; }
.journey-stage-illustration b { position: absolute; right: 3px; bottom: 1px; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.journey-stage-opening > span { display: flex; gap: 6px; }
.journey-stage-opening > span i { width: 7px; height: 7px; border-radius: 50%; background: #7f8b9b; animation: journey-opening 1s ease-in-out infinite; }
.journey-stage-opening > span i:nth-child(2) { animation-delay: .14s; }
.journey-stage-opening > span i:nth-child(3) { animation-delay: .28s; }
@keyframes journey-opening { 50% { opacity: .3; transform: translateY(-3px); } }
.journey-recording-bar { min-height: 68px; display: grid; grid-template-columns: minmax(220px,.7fr) minmax(240px,1fr) auto; gap: 20px; align-items: center; padding: 11px 15px; color: #dfe5ec; background: #111720; border-top: 1px solid #2a323e; }
.journey-recording-bar > div { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: center; }
.journey-recording-dot { width: 8px; height: 8px; border-radius: 50%; background: #e25651; box-shadow: 0 0 0 5px rgba(226,86,81,.1); animation: journey-record-pulse 1.4s ease-in-out infinite; }
.journey-recording-bar strong { font: 700 12px/1 ui-monospace,SFMono-Regular,Consolas,monospace; font-variant-numeric: tabular-nums; }
.journey-recording-bar small { color: #8f9bac; font-size: 9px; }
.journey-recording-bar p { margin: 0; color: #8f9bac; font-size: 9px; line-height: 1.5; }
.journey-recording-bar button { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 13px; color: #fff; background: #b33e3b; border: 0; border-radius: 8px; font-size: 9px; }
.journey-recording-bar button span { width: 8px; height: 8px; background: currentColor; border-radius: 2px; }
.journey-recording-bar button b { font-weight: 750; }
.journey-recording-summary { margin: 20px; padding: 20px; background: #fafbfc; border: 1px solid #e4e8ed; border-radius: 14px; }
.journey-recording-summary > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.journey-recording-summary > header > div { display: grid; gap: 3px; }
.journey-recording-summary h3 { margin: 0; color: #181c24; font-size: 18px; letter-spacing: -.025em; }
.journey-recording-summary header button { display: flex; align-items: center; gap: 7px; padding: 8px 10px; color: #354153; background: #fff; border: 1px solid #dce2e9; border-radius: 8px; font-size: 9px; font-weight: 750; }
.journey-recording-summary header button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.journey-summary-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border: 1px solid #e2e6eb; border-radius: 11px; background: #fff; }
.journey-summary-metrics article { min-width: 0; display: grid; gap: 5px; padding: 14px; border-right: 1px solid #e7eaee; }
.journey-summary-metrics article:last-child { border-right: 0; }
.journey-summary-metrics span { color: #7b8695; font-size: 8px; font-weight: 700; }
.journey-summary-metrics strong { color: #161a22; font: 650 19px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace; font-variant-numeric: tabular-nums; }
.journey-route-summary { margin-top: 15px; }
.journey-route-summary > span { display: block; margin-bottom: 8px; color: #7b8695; font-size: 8px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.journey-route-summary ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.journey-route-summary li { position: relative; min-width: 0; display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 8px; padding: 7px 0; }
.journey-route-summary li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: -7px; width: 1px; background: #d7dde5; }
.journey-route-summary li > i { width: 11px; height: 11px; margin-top: 3px; border: 3px solid #dfe4e9; border-radius: 50%; background: #596779; }
.journey-route-summary li > div { min-width: 0; display: grid; gap: 2px; }
.journey-route-summary li strong { font-size: 10px; }
.journey-route-summary li small { overflow: hidden; color: #7e8998; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.journey-summary-note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 10px 12px; color: #5f6d7e; background: #eef3f6; border-radius: 9px; font-size: 9px; line-height: 1.55; }
.journey-summary-note i { width: 6px; height: 6px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: #4d6b7b; }
.journey-workspace-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 20px 20px; }
.journey-workspace-actions > span { max-width: 430px; display: flex; align-items: flex-start; gap: 7px; color: #718093; font-size: 8px; line-height: 1.5; }
.journey-workspace-actions > span i { width: 6px; height: 6px; flex: 0 0 auto; margin-top: 3px; border-radius: 50%; background: #2c9b64; }
.journey-workspace-actions > div { display: flex; gap: 8px; }
@media (max-width: 1180px) {
  .journey-recorder-layout { grid-template-columns: 1fr; }
  .journey-recordings { position: static; }
  .journey-summary-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .journey-summary-metrics article:nth-child(3) { border-right: 0; }
  .journey-summary-metrics article:nth-child(n+4) { border-top: 1px solid #e7eaee; }
}
@media (max-width: 760px) {
  .journey-record-setup { grid-template-columns: 1fr; }
  .journey-record-url { grid-column: auto; }
  .journey-record-url > div { grid-template-columns: 1fr; }
  .journey-record-url button { min-height: 42px; }
  .journey-live-toolbar { grid-template-columns: 50px minmax(0,1fr); }
  .journey-live-state { display: none; }
  .journey-recording-bar { grid-template-columns: 1fr auto; }
  .journey-recording-bar p { display: none; }
  .journey-summary-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .journey-summary-metrics article { border-top: 1px solid #e7eaee; }
  .journey-summary-metrics article:nth-child(-n+2) { border-top: 0; }
  .journey-summary-metrics article:nth-child(2n) { border-right: 0; }
  .journey-workspace-actions { align-items: stretch; flex-direction: column; }
  .journey-workspace-actions > div { display: grid; grid-template-columns: 1fr; }
}

/* Internal project repair board */
.project-repair-board{margin-top:24px;overflow:hidden;color:var(--tf-text);background:#fff;border:1px solid var(--tf-line);border-radius:var(--tf-radius-lg)}
.repair-board-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:26px 28px 22px;background:radial-gradient(circle at 94% 0%,rgba(9,105,255,.07),transparent 34%),#fff;border-bottom:1px solid var(--tf-line)}
.repair-board-header>div:first-child{max-width:720px}.repair-board-kicker{display:block;margin-bottom:6px;color:var(--tf-blue);font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.repair-board-header h2{margin:0;font-size:clamp(22px,2vw,30px);font-weight:800;letter-spacing:-.035em;line-height:1.1;text-wrap:balance}.repair-board-header p{max-width:68ch;margin:9px 0 0;color:var(--tf-muted);font-size:13px;line-height:1.6}.repair-board-actions{display:flex;gap:8px;flex:0 0 auto}
.repair-board-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--tf-line)}.repair-board-summary button{min-height:62px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;padding:0 22px;color:var(--tf-muted);background:#fff;border:0;text-align:left;transition:background .2s ease,color .2s ease}.repair-board-summary button+button{border-left:1px solid var(--tf-line)}.repair-board-summary button:hover{color:var(--tf-text);background:var(--tf-subtle)}.repair-board-summary button:active{transform:translateY(1px)}
.repair-board-summary i,.repair-task-column>header i{width:8px;height:8px;border-radius:50%;background:#8b96a5}.repair-board-summary i.is-ongoing,.repair-task-column>header i.is-ongoing{background:var(--tf-blue)}.repair-board-summary i.is-blocked,.repair-task-column>header i.is-blocked{background:var(--tf-red)}.repair-board-summary i.is-planned,.repair-task-column>header i.is-planned{background:var(--tf-orange)}.repair-board-summary i.is-fixed,.repair-task-column>header i.is-fixed{background:var(--tf-green)}.repair-board-summary span{font-size:12px;font-weight:650}.repair-board-summary strong{color:var(--tf-text);font-family:"DM Mono",monospace;font-size:16px}
.repair-task-form{display:grid;grid-template-columns:1.2fr .7fr .45fr .45fr;gap:12px;padding:20px 28px;background:#f8fafc;border-bottom:1px solid var(--tf-line)}.repair-task-form label{display:grid;align-content:start;gap:6px}.repair-task-form label.is-wide{grid-column:1/-1}.repair-task-form label>span{color:#4f5d6f;font-size:10px;font-weight:750}.repair-task-form input,.repair-task-form select,.repair-task-form textarea{width:100%;min-height:40px;padding:9px 11px;color:var(--tf-text);background:#fff;border:1px solid var(--tf-line-strong);border-radius:var(--tf-radius-sm);font-size:12px;outline:none;transition:border-color .2s ease,box-shadow .2s ease}.repair-task-form textarea{min-height:72px;resize:vertical}
.repair-task-form input:focus,.repair-task-form select:focus,.repair-task-form textarea:focus,.repair-board-toolbar input:focus,.repair-board-toolbar select:focus,.repair-task-card select:focus{border-color:var(--tf-blue);box-shadow:0 0 0 3px rgba(9,105,255,.12)}.repair-task-form footer{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}.repair-task-form footer button{min-height:38px;padding:0 15px;border:1px solid var(--tf-line-strong);border-radius:var(--tf-radius-sm);font-size:11px;font-weight:750}.repair-task-form footer button:last-child{color:#fff;background:var(--tf-black);border-color:var(--tf-black)}
.repair-board-toolbar{min-height:62px;display:grid;grid-template-columns:minmax(240px,1fr) 220px auto;align-items:center;gap:10px;padding:11px 18px;background:#fff;border-bottom:1px solid var(--tf-line)}.repair-board-toolbar label{position:relative}.repair-board-toolbar svg{position:absolute;top:50%;left:12px;width:15px;height:15px;fill:none;stroke:#7c8795;stroke-width:1.8;transform:translateY(-50%)}.repair-board-toolbar input,.repair-board-toolbar select{width:100%;min-height:38px;padding:0 12px;color:var(--tf-text);background:var(--tf-subtle);border:1px solid transparent;border-radius:var(--tf-radius-sm);font-size:11px;outline:none}.repair-board-toolbar input{padding-left:36px}.repair-board-toolbar>span{color:var(--tf-faint);font:500 10px/1 "DM Mono",monospace;white-space:nowrap}.repair-board-loading{padding:44px;color:var(--tf-muted);text-align:center;font-size:12px}
.repair-board-columns{display:grid;grid-template-columns:repeat(4,minmax(230px,1fr));gap:1px;background:var(--tf-line)}.repair-task-column{min-width:0;background:#f6f8fa}.repair-task-column>header{min-height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:#fbfcfd;border-bottom:1px solid var(--tf-line)}.repair-task-column>header>div{display:flex;align-items:center;gap:8px}.repair-task-column>header h3{margin:0;font-size:11px;font-weight:800}.repair-task-column>header span{min-width:24px;padding:4px 6px;color:#526071;background:#e9edf2;border-radius:6px;font:600 9px/1 "DM Mono",monospace;text-align:center}.repair-task-column>div{min-height:260px;max-height:670px;overflow:auto;display:grid;align-content:start;gap:10px;padding:10px}
.repair-task-card{position:relative;padding:14px;overflow:hidden;background:#fff;border:1px solid #e1e6ec;border-radius:10px;box-shadow:0 3px 12px rgba(34,48,70,.045);transition:transform .2s var(--tf-ease),box-shadow .2s ease,border-color .2s ease}.repair-task-card:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#9ba5b2}.repair-task-card.priority-critical:before{background:var(--tf-red)}.repair-task-card.priority-high:before{background:var(--tf-orange)}.repair-task-card:hover{z-index:1;border-color:#cbd4df;box-shadow:0 8px 24px rgba(34,48,70,.09);transform:translateY(-2px)}.repair-task-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.repair-task-meta span{min-width:0;overflow:hidden;color:var(--tf-muted);font-size:9px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.repair-task-meta b{color:#6a7584;font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.repair-task-card h4{margin:0;font-size:12px;font-weight:780;letter-spacing:-.015em;line-height:1.4;text-wrap:pretty}.repair-task-card p{margin:7px 0 13px;color:var(--tf-muted);font-size:10px;line-height:1.55;text-wrap:pretty}.repair-task-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid #edf0f4}.repair-task-card select{min-height:30px;padding:0 8px;color:#465365;background:#f4f6f8;border:1px solid transparent;border-radius:7px;font-size:9px;font-weight:700;outline:none}.repair-task-card footer button{padding:5px 0;color:#8a4b49;background:none;border:0;font-size:8px;font-weight:750}.repair-task-card footer button:hover{color:var(--tf-red);text-decoration:underline}.repair-column-empty{margin:0;padding:36px 10px;color:var(--tf-faint);font-size:10px;text-align:center}
@media(max-width:1180px){.repair-board-columns{grid-template-columns:repeat(2,minmax(260px,1fr))}.repair-task-form{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.repair-board-header{display:grid;padding:22px 18px}.repair-board-actions{width:100%}.repair-board-actions>*{flex:1;justify-content:center}.repair-board-summary{grid-template-columns:repeat(2,1fr)}.repair-board-summary button:nth-child(3){border-left:0;border-top:1px solid var(--tf-line)}.repair-board-summary button:nth-child(4){border-top:1px solid var(--tf-line)}.repair-task-form{grid-template-columns:1fr;padding:18px}.repair-task-form label.is-wide,.repair-task-form footer{grid-column:1}.repair-board-toolbar{grid-template-columns:1fr 1fr}.repair-board-toolbar>span{grid-column:1/-1}.repair-board-columns{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.repair-task-column{flex:0 0 84vw;scroll-snap-align:start}}

.rtc-check{grid-template-columns:auto 1fr!important;align-items:flex-start;gap:9px!important;padding:11px 12px;border:1px solid #e4e7ec;border-radius:10px;background:#f9fafb}.rtc-check input{width:16px!important;min-height:16px!important;margin-top:1px;padding:0!important}.rtc-check span{font-size:11px;font-weight:600;line-height:1.45;letter-spacing:0}

/* Browser runtime administrator health */
.browser-health-page{max-width:1480px;margin:0 auto;display:grid;gap:18px}.browser-health-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.browser-health-heading h1{margin:7px 0 8px;font-size:clamp(32px,4vw,52px);letter-spacing:-.055em}.browser-health-heading p{max-width:760px;margin:0;color:var(--tf-muted);line-height:1.6}.browser-health-heading>button{min-height:42px;padding:0 15px;color:#fff;background:var(--tf-black);border:0;border-radius:10px;font-size:11px;font-weight:750}.browser-health-error{padding:12px 14px;color:#8a2422;background:var(--tf-red-bg);border:1px solid #f4c7c5;border-radius:10px;font-size:12px}.browser-health-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:hidden;background:#fff;border:1px solid var(--tf-line);border-radius:18px}.browser-health-summary article{min-width:0;padding:19px;border-right:1px solid var(--tf-line)}.browser-health-summary article:last-child{border-right:0}.browser-health-summary span,.browser-health-summary small{display:block;color:var(--tf-muted);font-size:10px}.browser-health-summary strong{display:block;overflow:hidden;margin:8px 0 5px;font:700 21px/1.1 'DM Mono',monospace;text-overflow:ellipsis}.browser-health-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.browser-health-panel,.browser-runs-panel{overflow:hidden;background:#fff;border:1px solid var(--tf-line);border-radius:18px}.browser-health-panel>header,.browser-runs-panel>header{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;border-bottom:1px solid var(--tf-line)}.browser-health-panel h2,.browser-runs-panel h2,.browser-run-detail h2{margin:2px 0 0;font-size:18px;letter-spacing:-.025em}.browser-health-panel>header>b{min-width:28px;padding:6px;color:#fff;background:var(--tf-black);border-radius:7px;font:650 10px/1 'DM Mono',monospace;text-align:center}.browser-pool-list{padding:8px}.browser-pool-list>div{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:12px;border-bottom:1px solid #edf0f3}.browser-pool-list i{width:8px;height:8px;border-radius:50%;background:#98a2b3}.browser-pool-list i.is-online{background:var(--tf-green);box-shadow:0 0 0 5px var(--tf-green-bg)}.browser-pool-list span{display:grid;gap:3px}.browser-pool-list strong{font-size:11px}.browser-pool-list small,.browser-pool-list p{color:var(--tf-muted);font-size:9px}.browser-pool-list em{padding:5px 7px;color:#5b6674;background:#f1f3f6;border-radius:6px;font-size:8px;font-style:normal;font-weight:750}.browser-pool-list>p{margin:0;padding:25px 12px}.browser-cleanup-form{display:grid;grid-template-columns:1fr 1fr;gap:11px;padding:17px}.browser-cleanup-form label{display:grid;gap:6px;color:#465365;font-size:9px;font-weight:750}.browser-cleanup-form input{width:100%;min-height:40px;padding:0 10px;border:1px solid var(--tf-line-strong);border-radius:9px}.browser-cleanup-form>div,.browser-cleanup-form>p{grid-column:1/-1}.browser-cleanup-form>div{display:flex;gap:7px}.browser-cleanup-form button{min-height:37px;padding:0 12px;color:#273142;background:#fff;border:1px solid var(--tf-line-strong);border-radius:8px;font-size:9px;font-weight:750}.browser-cleanup-form button:last-child{color:#fff;background:var(--tf-black);border-color:var(--tf-black)}.browser-cleanup-form button:disabled{opacity:.45}.browser-cleanup-form p{margin:0;padding:10px;color:#5e6977;background:#f7f8fa;border-radius:8px;font-size:9px}.browser-runs-panel>header>span{color:var(--tf-muted);font:600 9px/1 'DM Mono',monospace}.browser-run-table{overflow:auto}.browser-run-head,.browser-run-table>button{min-width:850px;display:grid;grid-template-columns:1fr .7fr .75fr .8fr .7fr 1.2fr;gap:12px;align-items:center;padding:11px 17px;text-align:left}.browser-run-head{color:#7a8595;background:#fafbfc;border-bottom:1px solid var(--tf-line);font-size:8px;font-weight:750;text-transform:uppercase}.browser-run-table>button{width:100%;color:#3c4654;background:#fff;border:0;border-bottom:1px solid #edf0f3;font-size:10px}.browser-run-table>button:hover{background:#f8fafc}.browser-run-table code{color:#172033;font:650 10px/1 'DM Mono',monospace}.browser-run-table button span:nth-child(2){justify-self:start;padding:5px 7px;border-radius:6px;background:#eef1f4;text-transform:capitalize}.browser-run-table button .is-completed{color:#08743b;background:var(--tf-green-bg)}.browser-run-table button .is-failed{color:#912c29;background:var(--tf-red-bg)}.browser-run-table>p{margin:0;padding:28px;color:var(--tf-muted);font-size:10px;text-align:center}.browser-run-detail{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:24px;background:rgba(12,17,25,.54);backdrop-filter:blur(5px)}.browser-run-detail>article{width:min(920px,100%);max-height:90vh;overflow:hidden;display:grid;grid-template-rows:auto auto 1fr;background:#fff;border-radius:18px;box-shadow:0 25px 80px rgba(0,0,0,.25)}.browser-run-detail header{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid var(--tf-line)}.browser-run-detail header button{width:34px;height:34px;border:1px solid var(--tf-line);border-radius:9px;background:#fff;font-size:19px}.browser-detail-metrics{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--tf-line)}.browser-detail-metrics span{display:grid;gap:5px;padding:12px 18px;color:var(--tf-muted);font-size:8px}.browser-detail-metrics b{color:var(--tf-text);font-size:11px}.browser-run-detail pre{margin:0;overflow:auto;padding:18px;color:#dbe4f0;background:#111722;font:10px/1.65 'DM Mono',monospace}@media(max-width:1100px){.browser-health-summary{grid-template-columns:repeat(3,1fr)}.browser-health-summary article:nth-child(3){border-right:0}.browser-health-summary article:nth-child(n+4){border-top:1px solid var(--tf-line)}.browser-health-grid{grid-template-columns:1fr}}@media(max-width:680px){.browser-health-heading{align-items:flex-start;flex-direction:column}.browser-health-summary{grid-template-columns:1fr 1fr}.browser-health-summary article:nth-child(3){border-right:1px solid var(--tf-line)}.browser-health-summary article:nth-child(2n){border-right:0}.browser-health-summary article:nth-child(n+3){border-top:1px solid var(--tf-line)}.browser-detail-metrics{grid-template-columns:1fr 1fr}}
