:root {
  --ink: #102241;
  --muted: #465b77;
  --blue: #184eb8;
  --deep: #10377d;
  --line: #d5e2f3;
  --pale: #eaf2ff;
  --back: #f8fafd;
  --card: white;
  --shadow: 0 17px 48px #153b7820;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--back);
  font-size: 100%;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; line-height: 1.55; }
main { flex: 1; min-width: 0; }
a { color: var(--deep); text-underline-offset: .19em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #2967d6; outline-offset: 3px;
}
svg { flex: 0 0 auto; vertical-align: middle; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.043em; }
p { margin: 0; color: var(--muted); }
.wrap { max-width: 1260px; padding-inline: clamp(17px, 4.2vw, 48px); margin: 0 auto; width: 100%; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.skip:focus { clip-path: none; z-index: 10; width: auto; height: auto; background: #fff; padding: .6rem 1rem; }
.header { background: white; border-bottom: 1px solid var(--line); }
.topline { display: flex; justify-content: space-between; gap: .75rem; align-items: center; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.55rem; font-weight: 820; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand .domain { color: var(--blue); font-size: 1.02rem; letter-spacing: -.025em; }
.header-actions { display: flex; gap: clamp(.4rem, 2vw, 1.3rem); align-items: center; }
.header-actions .small { white-space: nowrap; }
.topnav { color: var(--muted); text-decoration: none; font-size: .96rem; font-weight: 650; }
.button { border: 1px solid transparent; text-decoration: none; font-weight: 720; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; gap: .45rem; border-radius: 10px; padding: .65rem 1.12rem; line-height: 1.26; text-align: center; }
.small { min-height: 42px; font-size: .93rem; padding: .55rem .92rem; }
.primary { background: var(--blue); color: white; border-color: var(--blue); box-shadow: 0 5px 14px #13499b25; }
.primary:hover { background: var(--deep); border-color: var(--deep); }
.ghost { background: white; color: var(--deep); border-color: #b9cdea; }
.pale { background: var(--pale); color: var(--deep); border-color: var(--line); }
.pale:hover, .ghost:hover { background: #dbeaff; }
.hero { background: radial-gradient(ellipse at 90% 12%,#dceaff 0%,transparent 55%), linear-gradient(107deg,#f9fbff,#edf4fd); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 90px); padding-block: clamp(43px, 8vw, 116px); align-items: center; }
.eyebrow { color: var(--deep); font-size: .82rem; letter-spacing: .1em; font-weight: 780; display: inline-flex; align-items: center; gap: .45rem; line-height: 1.4; }
.tick { color: var(--blue); display: inline-flex; }
.tick svg { width: 17px; height: 17px; }
.hero h1 { font-size: clamp(2.55rem, 5.2vw, 5rem); line-height: 1.03; margin-block: .65rem 1.1rem; max-width: 13ch; letter-spacing: -.066em; }
.hero h1 span { color: var(--blue); }
.lede { font-size: clamp(1.12rem, 2vw, 1.35rem); max-width: 38ch; line-height: 1.52; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.55rem; }
.assurance { display: flex; align-items: center; gap: .35rem; margin-top: 1.1rem; font-size: .94rem; }
.assurance svg { width: 18px; height: 18px; color: var(--blue); }
.preview { overflow: hidden; background: #fff; border-radius: 19px; border: 1px solid #bed4f0; box-shadow: var(--shadow); width: 100%; min-width: 0; }
.preview-bar { display: flex; align-items: center; gap: .63rem; padding: clamp(.76rem, 2vw, 1.27rem); border-bottom: 1px solid var(--line); }
.preview-bar strong, .preview-bar div span, .preview-row div span, .preview-row strong { display: block; }
.preview-bar div span, .preview-row div span { color: var(--muted); font-size: .88rem; }
.preview-bar .badge { margin-left: auto; }
.tile-icon { background: var(--pale); color: var(--blue); border-radius: 11px; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; flex: 0 0 auto; }
.tile-icon.cyan { background: #e5f6fa; color: #146577; }
.tile-icon.indigo { background: #edefff; color: #4a4c9e; }
.badge { border: 1px solid #cbdcf2; border-radius: 999px; padding: .16rem .56rem; font-size: .82rem; font-weight: 730; line-height: 1.35; white-space: nowrap; width: fit-content; }
.mild { background: #edf4ff; color: var(--deep); }
.preview-body { padding: clamp(.75rem, 2vw, 1.35rem); background: #f7faff; }
.preview-intro { display: flex; align-items: center; justify-content: space-between; padding: .15rem .15rem .65rem; color: var(--deep); }
.preview-intro strong { display: block; color: var(--ink); font-size: 1.35rem; line-height: 1.2; }
.micro { font-size: .75rem; font-weight: 750; letter-spacing: .08em; }
.preview-row { display: flex; align-items: center; gap: .65rem; padding: .65rem .7rem; margin-block: .45rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.preview-row .tile-icon { width: 34px; height: 34px; border-radius: 8px; }
.preview-row .tile-icon svg { width: 19px; height: 19px; }
.preview-note { display: flex; align-items: center; gap: .5rem; font-size: .88rem; padding: .78rem 1.1rem; color: var(--muted); border-top: 1px solid var(--line); }
.preview-note svg { width: 16px; height: 16px; color: var(--deep); }
.workspace { padding-block: clamp(34px, 7vw, 78px); }
.workspace h2 { font-size: clamp(1.95rem, 4vw, 3.1rem); margin: .4rem 0 .7rem; }
.intro { font-size: 1.075rem; max-width: 66ch; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 1.65vw, 1.4rem); margin-block: 1.5rem; }
.panel { background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 30px #153b780a; }
.feature { padding: clamp(1rem, 2.8vw, 1.55rem); }
.feature h3 { font-size: 1.27rem; margin: .72rem 0 .42rem; }
.note { display: flex; align-items: flex-start; gap: .85rem; background: #edf4ff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.note .tile-icon { background: #dce9ff; }
footer { background: #fff; border-top: 1px solid var(--line); }
.footline { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1.1rem; align-items: center; font-size: .92rem; color: var(--muted); }
.footline strong { color: var(--deep); }
.footline span:last-child { margin-left: auto; }
.auth-shell { padding: clamp(1.55rem, 7vw, 5.25rem) 1rem; background: radial-gradient(ellipse at 75% 0,#deecff,transparent 75%); }
.auth { width: 100%; max-width: 470px; padding: clamp(1.25rem, 5vw, 2.2rem); margin-inline: auto; }
.auth h1 { font-size: clamp(1.9rem, 6vw, 2.7rem); margin: .6rem 0 .45rem; }
.auth p { margin: .6rem 0; }
.auth-form { display: grid; gap: .95rem; margin: 1rem 0; }
.auth-form label { display: grid; align-items: start; gap: .33rem; font-weight: 680; }
.auth-form input, .native-campaign-form select, textarea { width: 100%; border: 1px solid #b3c9e5; border-radius: 9px; padding: .65rem; color: var(--ink); background: #fcfdff; min-height: 45px; }
.auth-form small { color: var(--muted); }
.notice, .error { border-radius: 10px; padding: .75rem; font-size: .95rem; line-height: 1.5; margin-block: .6rem; }
.notice { border: 1px solid var(--line); background: #edf5ff; color: var(--deep); }
.error { background: #fff0f1; border: 1px solid #e9bec6; color: #88233c; }
.dashboard { display: grid; grid-template-columns: minmax(195px, .32fr) minmax(0, 1fr); gap: clamp(14px, 2.4vw, 26px); padding-block: clamp(18px, 4vw, 48px); align-items: start; }
.sidebar { overflow: hidden; padding: .7rem; }
.workspace-mobile { display: none; }
.side-heading { padding: .58rem .6rem .86rem; border-bottom: 1px solid var(--line); }
.side-heading strong, .side-heading span { display: block; overflow-wrap: anywhere; }
.side-heading span { color: var(--muted); font-size: .9rem; }
.dashboard :is(.sidebar,.workspace-mobile) nav { display: grid; gap: .23rem; padding-top: .65rem; }
.dashboard :is(.sidebar,.workspace-mobile) nav a { display: flex; gap: .6rem; align-items: center; border-radius: 8px; color: var(--muted); text-decoration: none; padding: .57rem .6rem; font-size: .95rem; font-weight: 660; min-height: 41px; line-height: 1.3; }
.dashboard :is(.sidebar,.workspace-mobile) nav a:is(:hover,[aria-current]) { background: #e8f1ff; color: var(--deep); }
.dashboard :is(.sidebar,.workspace-mobile) nav a svg { width: 18px; height: 18px; }
.dash-banner { border: 1px solid var(--line); border-radius: 15px; background: radial-gradient(ellipse at 100% 0,#dceaff,transparent 70%), #fff; padding: clamp(1rem, 3.5vw, 2rem); }
.dash-banner h1 { margin: .3rem 0 .48rem; font-size: clamp(1.9rem, 4.2vw, 3.25rem); }
.dash-banner p { max-width: 66ch; font-size: 1.04rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; padding: .8rem 0 0; }
.filters a { display: inline-flex; justify-content: center; align-items: center; text-decoration: none; border: 1px solid var(--line); padding: .4rem .7rem; border-radius: 8px; min-height: 42px; font-weight: 660; font-size: .92rem; background: white; }
.filters a[aria-current] { background: var(--blue); border-color: var(--blue); color: white; }
.empty, .chat, .listing { margin-top: .85rem; }
.empty { text-align: center; padding: clamp(1rem, 5vw, 2.7rem); }
.empty h2 { font-size: 1.55rem; margin: .62rem 0 .5rem; }
.empty p { max-width: 48ch; margin-inline: auto; }
.empty .button { margin-top: .9rem; }
.listing { overflow: hidden; }
.service-row { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .6rem .85rem; padding: 1rem; }
.service-row + .service-row { border-top: 1px solid var(--line); }
.service-row h2, .chat h2 { font-size: 1.16rem; letter-spacing: -.02em; }
.service-row p, .chat-top div span, .service-row a { font-size: .92rem; }
.chat { padding: clamp(1rem, 3.2vw, 1.65rem); }
.chat-top { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.chat-top div span { color: var(--muted); }
.chat-top .badge { margin-left: auto; }
.chat textarea { min-height: 5rem; margin-block: .55rem; resize: none; opacity: 1; background: #f3f7fc; display: block; }
.missing { padding-block: 3rem; }
.missing p { margin-block: .8rem; }
.pilot-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: .7rem; margin-block: .8rem; }
.pilot-stat { padding: 1rem; display: flex; align-items: flex-start; gap: .75rem; }
.pilot-stat > div { min-width: 0; }
.pilot-stat h2, .pilot-list h2 { font-size: 1.15rem; }
.pilot-stat .pilot-count { font-size: 1.65rem; color: var(--ink); font-weight: 790; letter-spacing: -.035em; line-height: 1.25; margin-top: .35rem; }
.pilot-count span { font-size: .9rem; font-weight: 650; letter-spacing: 0; color: var(--muted); }
.pilot-stat a:not(.button), .pilot-stat small { display: block; margin-top: .25rem; font-size: .92rem; }
.pilot-stat small { color: var(--muted); }
.pilot-wide { margin-top: .8rem; }
.pilot-wide .actions { margin-top: .8rem; }
.pilot-list-head { padding: .95rem; }
.pilot-list-head p { margin-top: .27rem; }
.pilot-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) auto; align-items: center; gap: .75rem; padding: .75rem .95rem; border-top: 1px solid var(--line); }
.pilot-lead div { overflow-wrap: anywhere; }
.pilot-lead div span { display: block; color: var(--muted); font-size: .91rem; }
.pilot-service a { overflow-wrap: anywhere; }
.workspace-detail { margin-top: .8rem; padding: clamp(1rem, 3vw, 1.6rem); }
.workspace-detail h2 { font-size: clamp(1.2rem, 3vw, 1.55rem); margin-bottom: .35rem; overflow-wrap: anywhere; }
.workspace-detail header .eyebrow { margin-bottom: .35rem; }
.workspace-detail .actions, .workspace-campaign .actions, .print-controls { margin-top: .8rem; }
.workspace-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: .9rem 0; }
.workspace-fields div { border-top: 1px solid var(--line); padding-top: .5rem; }
.workspace-fields dt { font-weight: 700; }
.workspace-fields dd { margin: .1rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.workspace-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; margin-top: .85rem; }
.workspace-form label { display: grid; gap: .27rem; font-weight: 650; }
.workspace-form input, .workspace-form textarea { width: 100%; padding: .65rem; border: 1px solid #b3c9e5; border-radius: 9px; color: var(--ink); background: #fcfdff; }
.workspace-form button { justify-self: start; }
.workspace-form textarea { resize: vertical; }
.workspace-note { margin-top: .7rem; font-size: .92rem; }
.workspace-search { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.workspace-campaigns { display: grid; gap: .75rem; margin-top: .8rem; }
.workspace-campaign { padding: .7rem 1rem; display: grid; grid-template-columns: auto minmax(0,1fr); gap: .8rem; align-items: center; }
.workspace-campaign h2 { font-size: 1.22rem; margin-bottom: .25rem; }
.workspace-campaign img { width: 112px; height: 112px; border: 1px solid var(--line); border-radius: 9px; }
.workspace-url { overflow-wrap: anywhere; font-size: .92rem; }
.workspace-poster { margin-top: .85rem; border: 2px solid var(--line); background: linear-gradient(135deg,#fff,#eaf2ff); text-align: center; padding: clamp(1rem, 6vw, 3rem); }
.workspace-poster h2 { margin-block: .55rem .8rem; font-size: clamp(1.8rem,5vw,3.1rem); }
.workspace-poster img { display: block; max-width: 86%; height: auto; margin: 1rem auto; }
.workspace-poster a, .workspace-poster strong { display: block; margin: .4rem 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .hero-grid, .dashboard { grid-template-columns: minmax(0,1fr); }
  .hero-grid { padding-block: 2.3rem 2rem; gap: 1.75rem; }
  .hero h1 { max-width: 15ch; }
  .feature-grid { grid-template-columns: minmax(0,1fr); gap: .65rem; }
  .sidebar { display: none; }
  .workspace-mobile { display: block; padding: .55rem .7rem; }
  .workspace-mobile summary { cursor: pointer; min-height: 42px; line-height: 1.3; align-content: center; }
  .workspace-mobile summary span { float: right; color: var(--muted); font-size: .85rem; margin-left: .4rem; padding-block: .08rem; }
  .dashboard .workspace-mobile nav { grid-template-columns: repeat(2,minmax(0,1fr)); padding: .45rem 0 .15rem; }
  .service-row { grid-template-columns: auto minmax(0,1fr); }
  .service-row .badge { grid-column: 2; }
  .service-row a { grid-column: 2; }
}
@media (max-width: 410px) {
  .header-actions .topnav { display: none; }
  .topline { min-height: 65px; }
  .brand img { width: 37px; height: 37px; }
  .header-actions .small { padding-inline: .65rem; }
  .preview-bar strong, .preview-row strong { font-size: .94rem; }
  .preview-bar > .tile-icon { display: none; }
  .chat-top { flex-wrap: wrap; }
  .chat-top .badge { margin-left: 0; }
  .footline span:last-child { margin-left: 0; }
  .pilot-lead { grid-template-columns: minmax(0, 1fr) auto; }
  .pilot-lead > div:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
  .workspace-fields { grid-template-columns: minmax(0,1fr); }
  .workspace-campaign img { width: 82px; height: 82px; }
  .workspace-search { grid-template-columns: minmax(0,1fr); }
}
@media print {
  body:has(.workspace-poster) > :not(main),
  main:has(.workspace-poster) > :not(.dash-body),
  .dash-body:has(.workspace-poster) > :not(.workspace-poster) { display: none !important; }
  main:has(.workspace-poster) { display: block; background: white; width: 100%; padding: 0; }
  .workspace-poster { print-color-adjust: exact; margin: 0; padding: 22mm 10mm; box-shadow: none; break-inside: avoid; }
}
