/* Pilot: BnBNerd redesign tokens and shell are vendored from site@0bb104d (Inter, dark header, teal buttons). */
@font-face { font-family: Inter; src: url('../fonts/inter-latin.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-2); color: var(--text-1); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: #0F766E; }
:focus-visible { outline: 3px solid #0F766E; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-to-content { position: fixed; left: 10px; top: -70px; z-index: 1000; background: var(--bg-0); color: white; padding: 8px 12px; }
.skip-to-content:focus { top: 10px; }
.bnb-nav__links { margin-top: 0; margin-bottom: 0; }
.bnb-nav__cta { text-decoration: none !important; }
.bnb-nav__links .identity-action { display: inline-block; background: transparent; border: 0; color: #C7D2E0; padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.bnb-nav__links .identity-action:hover { color: white; background: rgba(255,255,255,.04); }
.bnb-nav__drawer .identity-action { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: var(--text-0); padding: 14px 12px; font-size: 17px; }
.bnb-nav__drawer .identity-action:hover { background: var(--bg-card-dark); }
.bnb-nav__drawer .drawer-consult { margin-top: 12px; background: var(--accent); color: var(--bg-0); text-align: center; font-weight: 600; }
.bnb-footer__contact span { color: #94A3B8; }
.pilot-container { max-width: var(--container); padding: 0 24px; margin: 0 auto; }
.pilot-subnav { background: var(--bg-1); color: var(--text-0); border-bottom: 1px solid var(--border-dark); }
.pilot-subnav .pilot-container { min-height: 50px; display: flex; gap: 32px; align-items: center; }
.pilot-subnav span { color: var(--accent); font-weight: 700; letter-spacing: .02em; }
.pilot-subnav nav { display: flex; align-items: center; gap: 24px; }
.pilot-subnav a { color: #C7D2E0; text-decoration: none; font-size: 14px; font-weight: 600; }
.pilot-subnav a:hover { color: white; }
.pilot-hero { background: var(--bg-0); color: var(--text-0); padding: 72px 0 88px; position: relative; overflow: hidden; }
.pilot-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 65% at 85% 0%,rgba(45,212,191,.15),transparent 65%), linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: auto,56px 56px,56px 56px; pointer-events: none; }
.pilot-hero .pilot-container { position: relative; }
.pilot-hero h1 { max-width: 830px; font-size: clamp(38px,5.2vw,64px); letter-spacing: -.035em; line-height: 1.04; margin: 0 0 22px; color: var(--text-0); }
.pilot-hero p { color: #C7D2E0; font-size: 18px; max-width: 690px; margin: 0; }
.pilot-hero--compact { padding: 60px 0 70px; }
.pilot-content { padding-top: 56px; padding-bottom: 80px; min-height: 360px; }
.pilot-intake-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(260px,1fr); gap: 24px; align-items: start; }
.pilot-card { background: var(--bg-3); border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: clamp(24px,3.5vw,40px); }
.pilot-card h2 { font-size: clamp(24px,2.5vw,32px); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 14px; }
.pilot-card h3 { font-size: 18px; margin: 0 0 8px; }
.pilot-card p { color: var(--text-2); margin: 0 0 18px; }
.pilot-card .pilot-eyebrow { color: #0F766E; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.pilot-card .pilot-muted { color: var(--text-2); }
.pilot-card label { display: block; font-weight: 600; color: var(--text-1); margin: 22px 0 8px; }
.pilot-card label span { color: var(--text-2); font-weight: 400; }
.pilot-card input, .pilot-card select, .pilot-card textarea { display: block; width: 100%; min-height: 48px; border: 1px solid #B8C4D2; border-radius: var(--radius-sm); background: #fff; color: var(--text-1); padding: 11px 13px; }
.pilot-card textarea { min-height: 110px; resize: vertical; }
.pilot-card form > .bnb-btn { margin-top: 28px; }
.pilot-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pilot-aside { background: #F0FAF9; }
.pilot-aside ol { padding-left: 23px; margin: 20px 0; }
.pilot-aside li { margin: 12px 0; }
.pilot-notice { padding: 12px 14px; border-radius: var(--radius-sm); background: #FEF2F2; border: 1px solid #FCA5A5; color: #7F1D1D !important; }
.pilot-notice[hidden] { display: none; }
.pilot-brief { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 15px; background: var(--bg-2); border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
.pilot-messages { display: grid; gap: 12px; margin-top: 22px; }
.pilot-card .pilot-message { padding: 14px 16px; margin: 0; border-radius: var(--radius-md); background: var(--bg-2); color: var(--text-1); }
.pilot-card .pilot-message--guide { background: #E9FAF7; }
.pilot-message strong { display: block; margin-bottom: 3px; font-size: 13px; color: #0F766E; }
.pilot-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.pilot-form-actions span { font-size: 13px; color: var(--text-2); }
.pilot-text-button { border: 0; background: none; color: #0F766E; text-decoration: underline; padding: 12px 0; margin-top: 10px; }
.pilot-narrow { max-width: 760px; }
.pilot-actions { margin-top: 28px !important; }
.pilot-project-link { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--border-light); border-radius: var(--radius-md); text-decoration: none; color: var(--text-1); }
.pilot-project-link:hover { border-color: var(--accent); box-shadow: var(--shadow-card-hover); }
.pilot-project-link span { color: var(--text-2); }
.pilot-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pilot-detail-grid > div { background: var(--bg-2); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 20px; }

/* ---- three views: header and sub navigation ---- */
.bnb-nav__links .identity-slot { display: inline-flex; align-items: center; }
.bnb-nav__drawer .identity-slot, .bnb-nav__drawer .drawer-group { display: block; }
.bnb-nav__drawer .drawer-group a, .bnb-nav__drawer .identity-slot a { display: block; }
.pilot-subnav .pilot-container { flex-wrap: wrap; row-gap: 0; padding-top: 6px; padding-bottom: 6px; }
.pilot-subnav nav { flex-wrap: wrap; gap: 2px 20px; min-width: 0; }
.pilot-subnav nav a { padding: 6px 0; }
.pilot-subnav nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.pilot-subnav .pilot-viewbadge { margin-left: auto; background: var(--accent); color: var(--bg-0); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.pilot-subnav .pilot-whoami { color: #C7D2E0; font-weight: 400; font-size: 13px; font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pilot-subnav .pilot-viewbadge[hidden] + .pilot-whoami { margin-left: auto; }
.pilot-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; max-width: min(92vw, 560px); padding: 12px 18px; border-radius: var(--radius-md); background: var(--bg-0); color: var(--text-0); box-shadow: var(--shadow-card-hover); border: 1px solid var(--border-dark); }
.pilot-toast[data-kind="error"] { background: #7F1D1D; border-color: #FCA5A5; }
.pilot-toast[data-kind="success"] { border-color: var(--accent); }
.pilot-toast[hidden] { display: none; }

/* ---- design workspace ---- */
.ws-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 60px; z-index: 20; background: var(--bg-2); padding: 10px 0; margin-bottom: 8px; }
.ws-status { margin: 0; color: var(--text-2); font-size: 14px; }
.ws-status[data-kind="error"], .ws-status[data-kind="stopped"] { color: #B91C1C; font-weight: 600; }
.ws-status[data-kind="saved"] { color: #0F766E; }
.ws-save { font-size: 16px; padding: 12px 26px; white-space: nowrap; }
.ws-hint { margin: 0 0 16px; color: var(--text-2); }
.ws-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ws-form label:first-of-type { margin-top: 0; }
.ws-about { margin-top: 22px; border-top: 1px solid var(--border-light); padding-top: 14px; }
.ws-about summary { cursor: pointer; font-weight: 600; }
.ws-about summary span { color: var(--text-2); font-weight: 400; }
.ws-chat .pilot-messages { margin-top: 0; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.ws-chat form { margin-top: 16px; }
.ws-chat-note { font-size: 13px; color: var(--text-2); }
.ws-chat-error { margin: 12px 0 0 !important; }
.ws-aside { margin-top: 24px; }
.pilot-card .pilot-message p { margin: 6px 0 0; color: var(--text-1); }
.pilot-card .pilot-message ul { margin: 6px 0 0; padding-left: 20px; }
.pilot-card .pilot-message--user { background: #EEF2F7; }
.pilot-card .pilot-message--system { background: transparent; border: 1px dashed var(--border-light); color: var(--text-2); }
.pilot-message time { display: block; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.pilot-message--typing { opacity: .7; }

/* ---- pages ---- */
.pilot-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pilot-card-head h2 { margin: 0; }
.pilot-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; border-color: var(--accent); background: #F0FAF9; }
.pilot-banner p { margin: 4px 0 0; }
.pilot-project-list { display: grid; gap: 12px; }
.pilot-project { display: grid; gap: 4px; }
.pilot-project-actions { font-size: 14px; color: var(--text-2); }
.pilot-project-actions .pilot-text-button { padding: 4px 0; margin: 0 8px 0 0; }
.pilot-danger { color: #B91C1C !important; }
.pilot-rule { border: 0; border-top: 1px solid var(--border-light); margin: 28px 0; }
.account-code { font: 700 clamp(26px, 6vw, 40px)/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; color: var(--text-1) !important; background: var(--bg-2); border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 16px 18px; margin: 0 0 16px; overflow-wrap: anywhere; user-select: all; }
.pilot-card input.account-code-input { font: 600 18px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.pilot-card .pilot-actions .bnb-btn + .bnb-btn { margin-left: 8px; }
.pilot-success { color: #0F766E !important; }
.pilot-private { background: var(--bg-2); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 18px !important; }
.pilot-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 24px; align-items: start; }
.pilot-list { list-style: none; margin: 0 0 12px; padding: 0; }
.pilot-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-light); overflow-wrap: anywhere; }
.pilot-list small { color: var(--text-2); }
.pilot-inline-form { display: grid; gap: 10px; }
.pilot-upload { margin-bottom: 12px; cursor: pointer; }
.pilot-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 22px; }
.pilot-dl dt { font-weight: 600; color: var(--text-1); }
.pilot-dl dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
.pilot-table-wrap { overflow-x: auto; }
.pilot-table { width: 100%; border-collapse: collapse; }
.pilot-table th, .pilot-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.pilot-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.pilot-table small { color: var(--text-2); }
.pilot-card h3 { margin-top: 24px; }
.pilot-card select { appearance: auto; }
.pilot-card .bnb-btn { text-decoration: none; }
.pilot-card .bnb-btn--ghost { color: var(--text-1); border-color: #B8C4D2; }
.pilot-hero h1:focus, main:focus { outline: none; }
.pilot-hero .pilot-container > .bnb-hero__eyebrow { display: inline-block; margin-bottom: 14px; }
@media (max-width: 900px) { .pilot-intake-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .ws-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .pilot-table thead { display: none; } .pilot-table, .pilot-table tbody, .pilot-table tr, .pilot-table td { display: block; width: 100%; } .pilot-table tr { border-bottom: 1px solid var(--border-light); padding: 10px 0; } .pilot-table td { border: 0; padding: 4px 0; } .pilot-table td::before { content: attr(data-label) ': '; font-weight: 600; color: var(--text-1); } .pilot-table td[data-label="Project"]::before { content: ''; } }
@media (max-width: 540px) { .ws-bar { flex-direction: column; align-items: stretch; gap: 8px; top: 58px; } .ws-save { width: 100%; justify-content: center; } .pilot-dl { grid-template-columns: 1fr; gap: 2px; } .pilot-dl dd { margin-bottom: 10px; } .pilot-subnav .pilot-whoami { display: none; } }
@media (max-width: 540px) { .pilot-fields, .pilot-detail-grid { grid-template-columns: 1fr; } .pilot-content { padding-top: 32px; padding-bottom: 56px; } .pilot-hero { padding: 56px 0 64px; } .pilot-subnav .pilot-container { gap: 20px; } .pilot-form-actions { align-items: flex-start; flex-direction: column; } }
@media (max-width: 320px) { .pilot-container { padding-left: 16px; padding-right: 16px; } .pilot-card { padding: 20px; } .pilot-subnav nav { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
