:root {
  --ink: #171716;
  --ink-soft: #5d5a54;
  --paper: #f4f0e8;
  --surface: #fffdf8;
  --line: #ded8cd;
  --teal: #168e82;
  --teal-deep: #08685f;
  --teal-pale: #d9f0eb;
  --gold: #f07a32;
  --rose: #d74782;
  --pink-pale: #f9deea;
  --shadow: 0 18px 50px rgba(23, 23, 22, 0.08);
  --radius: 24px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 90% 0, #dff3ee 0, transparent 28rem), radial-gradient(circle at 8% 35%, #f8e0ea 0, transparent 22rem), var(--paper); }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.app-shell { width: min(1440px, 100%); margin: auto; min-height: 100vh; }
.site-header { display: flex; align-items: center; gap: 2rem; padding: 1.3rem clamp(1.2rem, 4vw, 4rem); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 2.85rem; aspect-ratio: 1; border: 1px solid rgba(215,71,130,.16); border-radius: 50%; overflow: hidden; background: #fff7fb; box-shadow: 0 8px 20px rgba(215,71,130,.13); transform: rotate(-2deg); transition: transform .18s ease, box-shadow .18s ease; }
.brand:hover .brand-mark { transform: rotate(2deg) translateY(-1px); box-shadow: 0 10px 24px rgba(215,71,130,.2); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-halo { fill: #fffdf9; stroke: #f4bfd6; stroke-width: 1.2; }.brand-wave-pink { fill: #ef8eb6; }.brand-wave-teal { fill: #69cfc1; }.brand-spark { fill: #ff9b4a; }
.brand-w { fill: none; stroke: #493144; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, serif; font-size: 1.08rem; letter-spacing: -.01em; }
.brand small { color: var(--ink-soft); font-size: .68rem; margin-top: .12rem; }
.primary-nav { display: flex; gap: .35rem; }
.primary-nav a { padding: .6rem .9rem; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-weight: 650; font-size: .92rem; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 4px 16px rgba(30, 61, 56, .05); }
.local-badge, .soft-status { border: 1px solid var(--line); border-radius: 999px; padding: .42rem .72rem; color: var(--ink-soft); background: rgba(255,255,255,.45); font-size: .75rem; font-weight: 700; }
.account-chip { max-width: 10rem; overflow: hidden; padding: .48rem .72rem; border: 1px solid rgba(22,142,130,.32); border-radius: 999px; background: #eaf8f5; color: var(--teal-deep); font-size: .76rem; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.account-chip[aria-current="page"], .account-chip:hover { border-color: var(--teal); background: var(--teal); color: white; }
.header-logout { margin: 0; }.header-logout button { padding: .45rem .1rem; border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-size: .75rem; font-weight: 750; cursor: pointer; }.header-logout button:hover { color: var(--ink); }
main { padding: 1rem clamp(1.2rem, 4vw, 4rem) 5rem; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 3rem; min-height: 22rem; padding: clamp(2rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem); }
.hero h1, .page-heading h1, .detail-hero h1 { font: 500 clamp(3rem, 7vw, 6.5rem)/.96 Georgia, serif; letter-spacing: -.055em; margin: .25rem 0 1.3rem; max-width: 12ch; }
.hero-copy, .page-heading p, .lead-copy { color: var(--ink-soft); font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.65; max-width: 44rem; }
.eyebrow { margin: 0 0 .55rem; color: var(--teal); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 850; }
.hero-orbit { display: grid; place-items: center; align-content: center; flex: 0 0 min(28vw, 15rem); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(31,117,105,.25); background: radial-gradient(circle, var(--surface) 45%, rgba(220,236,231,.8) 46%, transparent 70%); box-shadow: var(--shadow); }
.hero-orbit span { font: 500 3.8rem/1 Georgia, serif; }
.hero-orbit small { color: var(--ink-soft); margin-top: .45rem; }
.dashboard-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 1.25rem; }
.panel, .opportunity-card { background: rgba(255,253,248,.92); border: 1px solid rgba(216,225,216,.9); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: clamp(1.4rem, 3vw, 2.25rem); }
.panel-heading, .section-heading, .card-topline, .detail-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
h2 { font: 500 clamp(1.5rem, 2.5vw, 2.15rem)/1.12 Georgia, serif; letter-spacing: -.025em; margin: 0; }
h3 { font: 600 1.22rem/1.28 Georgia, serif; margin: 0; }
.progress-track { height: .52rem; margin: 2rem 0 1.5rem; border-radius: 999px; background: #e9ece5; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #58a194); border-radius: inherit; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.metric-row > div, .metric-row > .metric-link { padding: 1.15rem; border-radius: 16px; background: #f6f6ef; }
.metric-link { color: inherit; text-decoration: none; transition: background .18s ease, transform .18s ease; }.metric-link:hover { background: var(--teal-pale); transform: translateY(-2px); }
.metric-row strong, .metric-row span { display: block; }
.metric-row strong { font: 500 1.85rem/1 Georgia, serif; }
.metric-row span { color: var(--ink-soft); font-size: .78rem; margin-top: .45rem; }
.gentle-note { margin: 1.3rem 0 0; padding: 1rem 1.1rem; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; color: var(--ink-soft); background: #fbf5e8; line-height: 1.5; }
.compass-home-link { display: inline-block; margin-top: 1.2rem; }
.pulse-list { display: grid; gap: .25rem; margin: 1.55rem 0; }
.pulse-list > div { display: grid; grid-template-columns: auto 2rem 1fr; align-items: center; gap: .6rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.pulse-list > div:last-child { border-bottom: 0; }
.pulse-list strong { font: 500 1.35rem Georgia, serif; }
.pulse-list span:last-child { color: var(--ink-soft); font-size: .86rem; }
.status-dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--teal); }
.status-dot.closed { background: var(--rose); }.status-dot.recheck { background: var(--gold); }
.text-link, .back-link { color: var(--teal-deep); text-underline-offset: .25rem; font-weight: 750; }
.section-block { margin-top: 4.5rem; }
.section-heading { align-items: end; margin-bottom: 1.25rem; }
.opportunity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.opportunity-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opportunity-card { display: flex; flex-direction: column; gap: 1.2rem; min-height: 21rem; padding: 1.5rem; transition: transform .18s ease, box-shadow .18s ease; }
.opportunity-card:hover { transform: translateY(-3px); box-shadow: 0 24px 58px rgba(30,61,56,.12); }
.card-link { color: inherit; text-decoration: none; cursor: pointer; }
.card-link:hover h3, .card-link:focus-visible h3 { color: var(--teal-deep); }
.availability, .fit-label { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: .4rem .62rem; }
.availability { background: var(--teal-pale); color: var(--teal-deep); }
.availability > span { width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; }
.availability.expired { background: #f3e6e3; color: #804e48; }.availability.unreachable, .availability.needs_attention { background: #f5ecd9; color: #785b2c; }
.fit-label { border: 1px solid var(--line); color: var(--ink-soft); }.fit-label.top { border-color: #aed1c8; color: var(--teal-deep); }.fit-label.blocked { border-color: #dbc0bd; color: #804e48; }
.company { margin: 0 0 .5rem; color: var(--teal); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.location { color: var(--ink-soft); margin: .45rem 0 0; font-size: .88rem; }
.card-summary { color: var(--ink-soft); line-height: 1.58; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .72rem; }
.card-footer strong { color: var(--ink); font-size: 1rem; }
.empty-state { text-align: center; padding: 2.2rem 1rem; color: var(--ink-soft); }
.empty-state.wide { padding: 4.5rem 1.5rem; }
.empty-state > span { display: block; color: var(--teal); font: 500 2.8rem Georgia, serif; margin-bottom: .75rem; }
.empty-state h2, .empty-state h3 { color: var(--ink); margin-bottom: .55rem; }
code { display: inline-block; max-width: 100%; padding: .6rem .75rem; border-radius: 9px; background: #e9eee7; color: var(--ink); overflow-wrap: anywhere; }
.page-heading { padding: 5rem 0 2.5rem; }.page-heading h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
.error-page { min-height: 65vh; display: grid; place-items: center; text-align: center; }.error-page h1 { margin-inline: auto; }.error-page .primary-button { margin-top: 1rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.filter-bar a { padding: .65rem .95rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink-soft); background: rgba(255,255,255,.45); font-size: .85rem; font-weight: 700; }
.filter-bar a[aria-current="page"] { color: white; background: var(--teal); border-color: var(--teal); }
.back-link { display: inline-block; margin: 2rem 0; }
.detail-hero { align-items: end; padding: 2rem 0 3rem; }.detail-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); margin-top: 1.2rem; }
.primary-button { display: inline-flex; gap: .5rem; align-items: center; justify-content: center; flex: 0 0 auto; padding: .9rem 1.15rem; border: 0; border-radius: 999px; color: white; background: var(--ink); text-decoration: none; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 9px 25px rgba(23,23,22,.16); }
.primary-button:hover { background: var(--teal-deep); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(18rem, .8fr); gap: 1.2rem; align-items: start; }
.lead-copy { margin: 1.2rem 0 2rem; }.metric-row.compact strong { font-size: 1.45rem; }
.subheading { margin: 2.25rem 0 1rem; }.evidence-list { padding: 0; list-style: none; display: grid; gap: .7rem; }
.evidence-list li { padding: 1rem; border-radius: 14px; background: #f6f6ef; border-left: 3px solid var(--gold); }
.evidence-list li.satisfied, .evidence-list li.supporting { border-left-color: var(--teal); }
.evidence-list li.violated { border-left-color: var(--rose); }
.evidence-list strong, .evidence-list span { display: block; }.evidence-list span { color: var(--ink-soft); margin-top: .3rem; line-height: 1.45; }
blockquote { margin: .75rem 0 0; color: var(--ink-soft); font-size: .85rem; font-style: italic; }
.source-panel { position: sticky; top: 1rem; }.source-list { margin: 1.5rem 0; }
.source-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.source-list dt { color: var(--ink-soft); }.source-list dd { margin: 0; font-weight: 750; text-align: right; }
.source-url { display: block; overflow-wrap: anywhere; color: var(--teal-deep); font-size: .82rem; line-height: 1.4; }
details { margin-top: 1.5rem; }.history-list { padding-left: 1.2rem; }.history-list li { padding: .45rem 0; }.history-list span, .history-list small { display: block; color: var(--ink-soft); font-size: .75rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; margin: 0 clamp(1.2rem,4vw,4rem); padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .75rem; }

.flash { margin: .5rem clamp(1.2rem,4vw,4rem); padding: .85rem 1rem; border-radius: 14px; font-weight: 700; }
.flash.notice { background: var(--teal-pale); color: var(--teal-deep); }
.flash.error { background: var(--pink-pale); color: #87244f; }
.busy-overlay[hidden] { display: none !important; }
.busy-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.5rem; background: rgba(244,240,232,.82); backdrop-filter: blur(10px); }
.busy-dialog { width: min(100%, 31rem); display: grid; justify-items: center; gap: .8rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 24px 70px rgba(35,31,27,.2); text-align: center; }
.busy-dialog h2 { margin: 0; font: 500 2rem/1.05 Georgia,serif; }
.busy-dialog p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.confirm-dialog { width: min(calc(100% - 2rem), 34rem); padding: 0; border: 0; border-radius: var(--radius); color: var(--ink); background: transparent; box-shadow: 0 30px 90px rgba(35,31,27,.28); }
.confirm-dialog::backdrop { background: rgba(35,31,27,.38); backdrop-filter: blur(5px); }
.confirm-dialog-card { display: grid; justify-items: center; gap: .8rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.confirm-dialog-card h2 { margin: 0; font: 500 2rem/1.08 Georgia,serif; }
.confirm-dialog-card p { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.confirm-dialog-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: #8b403b; background: var(--pink-pale); font-weight: 900; }
.confirm-dialog-actions { width: 100%; justify-content: center; margin-top: .4rem; }
.confirm-dialog-actions > button { flex: 1 1 0; }
.operations-panel { margin-top: 1.25rem; }
.operations-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.operations-panel summary::-webkit-details-marker { display: none; }
.operations-panel summary > span:first-child { display: grid; gap: .25rem; }
.operations-panel summary strong { font: 500 1.4rem/1.1 Georgia,serif; }
.operations-metrics { margin: 1.25rem 0 .75rem; grid-template-columns:repeat(4,minmax(0,1fr)); }
.operations-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin:1.25rem 0; }
.operations-control { margin:1.25rem 0; }
.guard-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-top:1rem; }
.guard-grid > div { display:grid; gap:.35rem; padding:1rem; border-radius:18px; background:#f6f6ef; }
.guard-grid strong { font:500 1.6rem/1 Georgia,serif; }
.guard-grid code,.estimate-list code { display:block; overflow-wrap:anywhere; color:var(--muted); font-size:.75rem; }
.operations-table-wrap { overflow-x:auto; padding:.5rem 1rem; }
.operations-history-scroll { max-height:28rem; overflow:auto; scrollbar-gutter:stable; overscroll-behavior:contain; }
.operations-history-scroll:focus-visible { outline:3px solid rgba(20,150,137,.28); outline-offset:3px; }
.operations-history-scroll .operations-table thead th { position:sticky; top:0; z-index:2; background:#fffdf9; box-shadow:0 1px 0 var(--line); }
.operations-table { width:100%; border-collapse:collapse; min-width:760px; }
.operations-table th,.operations-table td { padding:.85rem .7rem; border-bottom:1px solid var(--line); text-align:left; }
.operations-table thead th { color:var(--muted); font-size:.75rem; text-transform:uppercase; letter-spacing:.08em; }
.estimate-list { display:grid; gap:0; margin-top:1rem; }
.estimate-list > div { display:flex; justify-content:space-between; gap:1rem; padding:.9rem 0; border-bottom:1px solid var(--line); }
.estimate-list > div > span { min-width:0; }
.readiness-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; margin-top:1rem; }
.readiness-item { display:flex; gap:.7rem; padding:1rem; border-radius:14px; background:#f6f6ef; }
.readiness-item > span { display:grid; flex:0 0 1.6rem; height:1.6rem; place-items:center; border-radius:50%; font-weight:900; }
.readiness-item p { margin:.25rem 0 0; color:var(--ink-soft); line-height:1.45; }
.readiness-item.is-ready > span { background:#dff3e7; color:#17643e; }
.readiness-item.needs-work > span { background:#f9e0e9; color:#8a2851; }
.billing-calibration-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.85rem; align-items:end; margin:1rem 0 1.25rem; }
.billing-calibration-form .primary-button { width:100%; min-height:3.25rem; justify-content:center; }
.operations-table small { display:block; margin-top:.2rem; color:var(--ink-soft); font-weight:500; }
.legal-check { display:grid !important; grid-template-columns:auto 1fr; align-items:start; gap:.65rem; color:var(--ink-soft); font-weight:500 !important; line-height:1.45; }
.legal-check input { width:1.15rem; height:1.15rem; margin:.15rem 0 0; accent-color:var(--teal); }
.legal-document { display:grid; gap:1.5rem; max-width:58rem; margin:0 auto; }
.legal-document section { padding-bottom:1.25rem; border-bottom:1px solid var(--line); }
.legal-document section:last-child { padding-bottom:0; border:0; }
.legal-document h2 { margin:0 0 .65rem; }
.legal-document p,.legal-document li { color:var(--ink-soft); line-height:1.65; }
.legal-status-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.legal-status-grid article { display:grid; gap:.4rem; padding:1rem; border-radius:14px; background:#f7f5ef; }
.legal-status-grid span { color:var(--ink-soft); }
.legal-account-form { max-width:34rem; }
@media (max-width: 760px) { .operations-summary-grid,.guard-grid,.readiness-list,.billing-calibration-form,.legal-status-grid { grid-template-columns:1fr; } .operations-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.compass-search-primary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 1.15rem; border-radius: 1.2rem; background: linear-gradient(120deg, var(--pink-pale), var(--teal-pale)); }
.compass-search-primary h2, .compass-search-primary p { margin: .2rem 0 0; }
.manual-explore { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.manual-explore summary { color: var(--teal-deep); cursor: pointer; font-weight: 800; }
.manual-explore[open] summary { margin-bottom: 1rem; }
.manual-explore .secondary-button { margin-top: .85rem; }
.busy-spinner { width: 2.8rem; height: 2.8rem; border: 4px solid var(--teal-pale); border-top-color: var(--teal); border-radius: 50%; animation: busy-spin .9s linear infinite; }
.busy-progress { width: 100%; height: .35rem; margin-top: .5rem; overflow: hidden; border-radius: 999px; background: #e8e2d8; }
.busy-progress span { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--teal),#5fc7b9); animation: busy-progress 1.4s ease-in-out infinite alternate; }
body.is-busy { overflow: hidden; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@keyframes busy-progress { from { transform: translateX(-15%); } to { transform: translateX(155%); } }
.conversation-intro { min-height: 70vh; display: grid; place-content: center; justify-items: start; max-width: 62rem; padding: 4rem 0; }
.conversation-intro h1, .review-heading h1 { font: 500 clamp(3rem,7vw,6.6rem)/.97 Georgia,serif; letter-spacing: -.055em; margin: .4rem 0 1.4rem; }
.profile-opening { width: min(100%, 50rem); margin-top: 1.5rem; }
.conversation-layout { display: grid; grid-template-columns: 14rem minmax(0, 50rem); justify-content: center; gap: clamp(1.25rem,5vw,5rem); padding: 3.5rem 0; }
.conversation-progress { position: sticky; top: 1.25rem; align-self: start; display: grid; gap: .45rem; padding: 1rem 0; }
.conversation-progress > strong { font: 500 3rem/1 Georgia,serif; }
.conversation-progress > span { color: var(--ink-soft); }
.conversation-card { min-width: 0; }
.message-stream { display: grid; gap: 1.2rem; margin-bottom: 1.5rem; }
.message { max-width: 82%; padding: 1.15rem 1.3rem; border-radius: 22px 22px 22px 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.message.user { justify-self: end; border-radius: 22px 22px 6px 22px; background: var(--ink); color: white; }
.message > span { display: block; margin-bottom: .45rem; color: var(--teal); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.message.user > span { color: #7de1d3; }
.message p { margin: 0; line-height: 1.65; white-space: pre-line; }
.composer, .form-panel { display: grid; gap: 1rem; padding: clamp(1.25rem,3vw,2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
label { display: grid; gap: .48rem; color: var(--ink); font-weight: 750; }
label > span, label small { color: var(--ink-soft); font-weight: 500; line-height: 1.45; }
textarea, input, select { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; background: #fffefa; color: var(--ink); font: inherit; }
textarea { resize: vertical; line-height: 1.55; }
textarea:focus, input:focus, select:focus { outline: 3px solid rgba(22,142,130,.22); border-color: var(--teal); }
.composer-actions, .quick-actions { display: flex; justify-content: space-between; gap: .75rem; }
.secondary-button, .quiet-button, .confirm-button { display: inline-flex; justify-content: center; padding: .78rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.confirm-button { color: white; background: var(--teal); border-color: var(--teal); }
.quiet-button { color: var(--ink-soft); }
.completion-card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.completion-card > p:not(.eyebrow), .profile-reset p, .form-help, .reference-card small { color: var(--ink-soft); line-height: 1.55; }
.compass-ready { display: grid; justify-items: start; gap: 1rem; }
.profile-reset { padding-top: .75rem; border-top: 1px solid var(--line); }
.profile-reset summary { color: var(--teal-deep); cursor: pointer; font-weight: 750; }
.profile-reset form { display: grid; gap: .8rem; margin-top: .8rem; }
.review-heading { max-width: 62rem; padding: 4rem 0 2rem; }
.summary-note { max-width: 48rem; margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-left: 4px solid var(--teal); background: var(--teal-pale); border-radius: 0 14px 14px 0; line-height: 1.55; }
.review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.bulk-review { display: grid; gap: 1rem; }
.bulk-review-toolbar { position: sticky; top: .75rem; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.96); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.bulk-review-toolbar strong, .bulk-review-toolbar span { display: block; }
.bulk-review-toolbar span { margin-top: .2rem; color: var(--ink-soft); font-size: .82rem; }
.bulk-review-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.review-card { padding: 1.35rem; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.review-selection { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: .55rem; margin-bottom: .85rem; color: var(--teal-deep); font-size: .8rem; }
.review-selection input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--teal); }
.review-card.level-must_have { border-top-color: var(--gold); }.review-card.level-exclusion { border-top-color: var(--rose); }.review-card.level-open { border-top-color: #817a70; }
.review-card.reviewed { opacity: .62; box-shadow: none; }
.fact-level { color: var(--teal-deep); font-weight: 850; }.fact-key { color: var(--ink-soft); font-family: ui-monospace,monospace; font-size: .78rem; }
.review-card blockquote { padding: .75rem; border-radius: 12px; background: #f5f1e9; }
.edit-panel { border-top: 1px solid var(--line); padding-top: .75rem; }.edit-panel summary { cursor: pointer; font-weight: 750; }.edit-panel form { display: grid; gap: .65rem; margin-top: .8rem; }
.saved-marker { display: inline-block; color: var(--teal-deep); font-weight: 800; }
.page-heading { max-width: 65rem; }.split-layout { display: grid; grid-template-columns: minmax(18rem,.8fr) minmax(0,1.2fr); gap: 1.2rem; align-items: start; }
.switch-row { grid-template-columns: auto 1fr; align-items: start; }.switch-row input, .chip-checks input { width: auto; margin-top: .25rem; }.switch-row strong, .switch-row small { display: block; }.switch-row small { margin-top: .22rem; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }legend { font-weight: 800; }.chip-checks { display: flex; flex-wrap: wrap; gap: .55rem; }.chip-checks label { display: flex; grid-template-columns: auto 1fr; align-items: center; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 999px; }
.reference-list { display: grid; gap: 1rem; }.reference-card { display: grid; gap: .75rem; }.reference-card > a { color: var(--teal-deep); overflow-wrap: anywhere; }
.reference-card ul { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); line-height: 1.5; }
.match-input-layout { display: grid; grid-template-columns: minmax(20rem,.9fr) minmax(0,1.1fr); gap: 1.2rem; align-items: start; }
.reference-summary { min-width: 0; }
.slot-heading, .archive-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.slot-heading h2 { font-size: 1.65rem; }
.archive-summary { margin-bottom: 1.5rem; }
.archive-summary > div { flex: 0 0 auto; padding: 1rem; border-radius: 16px; background: #f6f6ef; }
.archive-summary strong, .archive-summary span { display: block; }
.archive-summary strong { font: 500 2rem/1 Georgia,serif; }
.archive-summary span { margin-top: .35rem; color: var(--ink-soft); font-size: .78rem; }
.archive-summary p { max-width: 46rem; color: var(--ink-soft); line-height: 1.55; }
.result-story { margin-top: 4.5rem; }
.danger-zone { padding-top: 1rem; border-top: 1px solid #e4c8c4; }
.danger-zone summary { color: #804e48; cursor: pointer; font-weight: 800; }
.danger-zone p { color: var(--ink-soft); font-size: .86rem; line-height: 1.5; }
.danger-button { display: inline-flex; justify-content: center; width: 100%; padding: .78rem 1rem; border: 1px solid #b96d64; border-radius: 999px; background: #fff7f4; color: #804e48; font: inherit; font-weight: 800; cursor: pointer; }
.danger-button:hover { color: white; background: #804e48; }
.result-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; max-width: none; }
.result-heading > div { max-width: 65rem; }
.result-summary { display: grid; grid-template-columns: repeat(3,minmax(6rem,.35fr)) minmax(18rem,1.4fr); align-items: center; gap: 1rem; }
.result-summary > div { padding: 1rem; border-radius: 16px; background: #f6f6ef; }
.result-summary strong, .result-summary span { display: block; }.result-summary strong { font: 500 2rem/1 Georgia,serif; }.result-summary span { margin-top: .35rem; color: var(--ink-soft); }
.result-summary p, .section-heading p, .action-copy { color: var(--ink-soft); line-height: 1.55; }
.result-section { scroll-margin-top: 1rem; }.result-section .section-heading > div { max-width: 48rem; }
.access-label { padding: .38rem .6rem; border-radius: 999px; background: var(--teal-pale); color: var(--teal-deep); font-size: .68rem; font-weight: 800; }.access-label.locked { background: #f5ecd9; color: #785b2c; }
.evidence-counts { display: flex; flex-wrap: wrap; gap: .4rem; }.evidence-counts span { padding: .38rem .55rem; border-radius: 999px; background: #f6f6ef; color: var(--ink-soft); font-size: .68rem; }
.locked-result { background: rgba(255,253,248,.68); border-style: dashed; }.locked-result:hover { transform: none; }.locked-copy { display: grid; place-items: start; gap: .65rem; margin: auto 0; }.locked-copy > span { color: var(--gold); font: 500 2.5rem Georgia,serif; }.locked-copy p { color: var(--ink-soft); line-height: 1.55; margin: 0; }
.result-detail-grid { grid-template-columns: minmax(0,1.6fr) minmax(20rem,.75fr); }.result-actions { display: grid; gap: 1.2rem; position: sticky; top: 1rem; }.stacked-form { display: grid; gap: .75rem; margin-top: 1.2rem; }.stacked-form .confirm-button, .stacked-form .secondary-button { width: 100%; }
.why-apply { margin: 2rem 0 0; padding: 1.2rem; border-radius: 16px; background: var(--teal-pale); }.why-apply p:last-child { margin: 0; line-height: 1.6; }
.skill-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 2rem; }.skill-grid > div { padding: 1.2rem; border-radius: 16px; background: #f6f6ef; }.skill-grid h3 { margin-bottom: .75rem; }.skill-grid ul { margin: 0; padding-left: 1.2rem; }.skill-grid li, .skill-grid p { color: var(--ink-soft); line-height: 1.5; }
.commute-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.commute-chips span { padding: .4rem .58rem; border: 1px solid transparent; border-radius: 999px; font-size: .7rem; font-weight: 750; }
.commute-chips .route-within { border-color: #b4dfc5; background: #dff3e7; color: #17613b; }
.commute-chips .route-stretch { border-color: #ead18f; background: #fff0c2; color: #76520b; }
.commute-chips .route-unavailable { border-color: #ddd9d0; background: #eceae5; color: #68645d; }
.commute-chips .route-conflict { border-color: #e7aea5; background: #f8d8d3; color: #8a3027; }
.compass-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; max-width: none; }
.compass-heading > div:first-child { max-width: 65rem; }
.heading-actions, .inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.guided-setup-button { background: var(--teal-deep); box-shadow: 0 12px 30px rgba(8,104,95,.24); }
.compass-summary { display: grid; grid-template-columns: repeat(2,minmax(8rem,.35fr)) minmax(18rem,1.3fr); align-items: center; gap: 1rem; }
.compass-summary > div:not(.summary-progress) { padding: 1rem; border-radius: 16px; background: #f6f6ef; }
.compass-summary strong, .compass-summary span { display: block; }
.compass-summary strong { font: 500 2rem/1 Georgia,serif; }
.compass-summary span { margin-top: .35rem; color: var(--ink-soft); font-size: .78rem; }
.summary-progress .progress-track { margin: .7rem 0 0; }
.compass-summary .gentle-note { grid-column: 1 / -1; margin-top: 0; }
.compass-section-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.compass-section-card { display: flex; flex-direction: column; gap: 1rem; scroll-margin-top: 1rem; }
.compass-section-card:target, .saved-fact:target { box-shadow: 0 0 0 3px rgba(22,142,130,.3), var(--shadow); }
.saved-fact { scroll-margin-top: 1rem; }
.compass-section-card h3 { font-size: 1.45rem; }
.compass-section-card > div > p, .empty-copy { color: var(--ink-soft); line-height: 1.55; }
.section-number { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal); color: white; font: 700 .85rem Georgia,serif; }
.saved-answer, .saved-fact, .section-addition { margin-top: 0; border-top: 1px solid var(--line); padding-top: .8rem; }
.saved-answer summary, .saved-fact summary, .section-addition summary { cursor: pointer; color: var(--teal-deep); font-weight: 800; }
.saved-answer p { max-height: 12rem; overflow: auto; white-space: pre-line; color: var(--ink-soft); line-height: 1.55; }
.saved-facts { display: grid; gap: .55rem; }
.saved-facts h4 { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.saved-fact summary { display: flex; align-items: baseline; gap: .65rem; color: var(--ink); }
.saved-fact summary strong { font-weight: 700; }
.saved-fact form, .section-addition form { display: grid; gap: .7rem; margin-top: .85rem; }
.destructive-text { color: #804e48; }
.compass-reset { margin-top: 3rem; }
.cv-document { display: grid; gap: 1rem; }.cv-document p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.5; }.retention-options { display: grid; gap: .75rem; }
.commute-grid { display: grid; gap: .7rem; }
.commute-evidence { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: .35rem 1rem; padding: 1rem; border-left: 3px solid var(--gold); border-radius: 14px; background: #f6f6ef; }
.commute-evidence.within { border-left-color: #2c9a5b; background: #f0f8f2; }
.commute-evidence.stretch { border-left-color: #d8a72d; background: #fff9e8; }
.commute-evidence.unavailable { border-left-color: #a8a39a; background: #f1f0ec; }
.commute-evidence.conflict { border-left-color: #c7554b; background: #fff1ef; }
.commute-evidence span, .commute-evidence small, .commute-evidence p { color: var(--ink-soft); }
.commute-evidence span { display: block; margin-top: .25rem; font-size: .8rem; }
.commute-evidence small, .commute-evidence p { grid-column: 1 / -1; }
.commute-evidence p { margin: .25rem 0 0; }
.commute-evidence details { grid-column: 1 / -1; margin-top: .4rem; }.commute-evidence details ul { color: var(--ink-soft); line-height: 1.5; }
.context-evidence { padding: 1rem; border-left: 3px solid var(--teal); border-radius: 14px; background: #f6f6ef; }.context-evidence > div { display: flex; justify-content: space-between; gap: 1rem; }.context-evidence p { color: var(--ink-soft); line-height: 1.55; }
.canonical-source-panel { margin-bottom: 1.2rem; }.canonical-source-panel .stacked-form { grid-template-columns: minmax(0,1fr) auto; align-items: end; }.canonical-source-panel .switch-row { grid-column: 1 / -1; }
.stacked-actions { display: grid; gap: .75rem; }
.explore-search { display: grid; gap: 1.25rem; }
.explore-search-grid { display: grid; grid-template-columns: minmax(16rem,1.2fr) minmax(13rem,.8fr); gap: 1rem; align-items: end; }
.selection-toolbar { position: sticky; top: .75rem; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 1rem 1.2rem; backdrop-filter: blur(10px); }
.selection-toolbar > span { color: var(--ink-soft); font-weight: 750; }
.selection-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.danger-toolbar { border-color: rgba(185,109,100,.28); }
.danger-toolbar .danger-button { width: auto; }
.compact-confirm { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: .45rem; color: #804e48; font-size: .78rem; }
.compact-confirm input { width: auto; margin: 0; accent-color: #804e48; }
.slot-warning { max-width: 20rem; padding: .55rem .7rem; border-radius: 10px; background: var(--pink-pale); color: #87244f !important; font-size: .76rem; line-height: 1.35; }
.selectable-card { display: flex; flex-direction: column; min-width: 0; }
.card-selector { display: flex; align-items: center; gap: .5rem; color: var(--teal-deep); font-size: .8rem; cursor: pointer; }
.card-selector input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--teal); }
.delete-selector { color: #884b45; }
.delete-selector input { accent-color: #b96d64; }
.card-actions-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--line); }
.card-application-control { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.card-application-control label { grid-template-columns: auto minmax(7.5rem,1fr); align-items: center; gap: .5rem; font-size: .78rem; }
.card-application-control label > span { color: var(--ink-soft); font-weight: 750; }
.card-application-control select { min-height: 2.2rem; padding: .45rem 2rem .45rem .65rem; border-radius: 10px; font-size: .78rem; font-weight: 750; }
.card-application-control small { color: var(--ink-soft); font-size: .67rem; white-space: nowrap; }
.card-application-control small:empty { display: none; }
[data-application-state-card="saved"], [data-application-state-card="preparing"] { box-shadow: inset 4px 0 0 #df8caf, var(--shadow); }
[data-application-state-card="applied"] { box-shadow: inset 4px 0 0 #6f9fc6, var(--shadow); }
[data-application-state-card="interview"] { box-shadow: inset 4px 0 0 #d8a72d, var(--shadow); }
[data-application-state-card="offer"] { box-shadow: inset 4px 0 0 #49a66e, var(--shadow); }
[data-application-state-card="rejected"], [data-application-state-card="withdrawn"] { box-shadow: inset 4px 0 0 #a8a39a, var(--shadow); opacity: .84; }
.card-body-link { display: flex; flex: 1 1 auto; flex-direction: column; gap: 1.2rem; min-width: 0; }
.consistency-review { display: grid; gap: 1.25rem; margin: 0 0 2rem; padding: clamp(1.25rem,3vw,2rem); border-color: rgba(240,122,50,.36); background: linear-gradient(135deg,rgba(255,253,248,.97),rgba(249,222,234,.58)); }
.consistency-review > div:first-child p:last-child { color: var(--ink-soft); max-width: 52rem; line-height: 1.55; }
.consistency-issues { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.consistency-issues article { padding: 1rem; border-left: 3px solid var(--gold); border-radius: 14px; background: rgba(255,255,255,.72); }
.consistency-issues p, .consistency-issues li { color: var(--ink-soft); line-height: 1.45; }.consistency-issues ul { margin-bottom: 0; padding-left: 1.2rem; }
.compact-danger { margin-top: .25rem; }.compact-danger form { display: grid; gap: .65rem; }.compact-danger .danger-button { width: auto; justify-self: start; }
.suggestion-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.suggestion-chips button { padding: .52rem .72rem; border: 1px solid #c7dfd9; border-radius: 999px; background: #f2faf7; color: var(--teal-deep); font: inherit; font-size: .76rem; font-weight: 750; cursor: pointer; }
.suggestion-chips button::before { content: "+"; margin-right: .35rem; color: var(--rose); font-weight: 900; }
.suggestion-chips button:hover { border-color: var(--teal); background: var(--teal-pale); }
.explore-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.explore-card { display: flex; flex-direction: column; gap: .8rem; min-height: 22rem; }
.explore-card[hidden] { display: none !important; }
.explore-card h3 a { text-decoration-color: transparent; text-underline-offset: .25rem; }.explore-card h3 a:hover { color: var(--teal-deep); text-decoration-color: currentColor; }
.explore-card > p:not(.company):not(.location) { color: var(--ink-soft); line-height: 1.55; }
.explore-selector { display: flex; grid-template-columns: auto 1fr; gap: .5rem; align-items: center; color: var(--teal-deep); font-size: .8rem; }
.explore-selector input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--teal); }
.discovery-source { align-self: flex-start; padding: .32rem .52rem; border-radius: 999px; background: var(--teal-pale); color: var(--teal-deep); font-size: .65rem; font-weight: 800; }
.source-attributions { display: grid; gap: .35rem; justify-items: end; }
.job-tags { display: flex; flex-wrap: wrap; gap: .4rem; }.job-tags span { padding: .35rem .55rem; border-radius: 999px; background: #f6f6ef; color: var(--ink-soft); font-size: .68rem; }
.salary-evidence { padding: 1rem; border-left: 3px solid var(--gold); border-radius: 14px; background: #f6f6ef; }.salary-evidence > div { display: flex; justify-content: space-between; gap: 1rem; }.salary-evidence span, .salary-evidence p { color: var(--ink-soft); }.salary-evidence p { line-height: 1.55; }
.search-rank { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0; }.search-rank span { padding: .38rem .6rem; border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-size: .78rem; }.search-rank strong { color: var(--ink); }
.company-intelligence { padding: 1rem; border-left: 3px solid var(--teal); border-radius: 14px; background: #f6f6ef; }.company-intelligence > div:first-child { display: flex; justify-content: space-between; gap: 1rem; }.company-intelligence p, .company-intelligence small { color: var(--ink-soft); line-height: 1.55; }.company-intelligence blockquote { margin: .7rem 0; }.reputation-signal { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }.reputation-signal p { margin: .3rem 0; }
.task-progress-shell { display: grid; min-height: 68vh; place-items: center; padding: 4rem 0; }
.task-progress-card { display: grid; width: min(42rem,100%); gap: 1rem; padding: clamp(1.5rem,5vw,3rem); text-align: center; }
.task-progress-card h1 { margin: 0 auto; max-width: 12ch; font-size: clamp(2.4rem,6vw,4.6rem); line-height: .96; }
.task-progress-card .hero-copy { margin: 0 auto; max-width: 34rem; }
.working-spinner { width: 3rem; height: 3rem; margin: 0 auto; border: 4px solid var(--teal-pale); border-top-color: var(--teal); border-radius: 50%; animation: busy-spin .9s linear infinite; }
.working-spinner.is-stopped { animation: none; border-color: var(--pink); }
.task-progress-card progress { width: 100%; height: .75rem; overflow: hidden; border: 0; border-radius: 999px; background: #e8e3d9; accent-color: var(--teal); }
.task-progress-card progress::-webkit-progress-bar { border-radius: 999px; background: #e8e3d9; }
.task-progress-card progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg,var(--rose),var(--teal)); transition: width .3s ease; }
.task-progress-card progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg,var(--rose),var(--teal)); }
.task-progress-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.task-progress-actions { align-items: center; justify-content: center; }
.task-progress-actions .form-help { margin: 0; }
.task-updated { margin: -.35rem 0 0; }
.task-error { padding: 1rem; border: 1px solid rgba(185,109,100,.3); border-radius: 14px; background: var(--pink-pale); color: #804e48; }
.auth-shell { display: grid; min-height: 68vh; place-items: center; padding: 4rem 0; }
.auth-card { width: min(32rem,100%); padding: clamp(1.5rem,5vw,3rem); }
.auth-card h1 { margin: .25rem 0 1rem; font: 500 clamp(2.7rem,7vw,4.6rem)/.96 Georgia,serif; letter-spacing: -.045em; }
.auth-card .hero-copy { margin-bottom: 1.5rem; }
.auth-card .stacked-form { gap: 1rem; }
.auth-switch { margin: 1.25rem 0 0; color: var(--ink-soft); text-align: center; }
.account-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(19rem,.8fr); gap: 1.2rem; align-items: start; }
.account-identity { display: grid; gap: .35rem; margin: 1.4rem 0; padding: 1.1rem; border-radius: 16px; background: #f7f5ef; }
.account-identity strong { font-size: 1.15rem; }.account-identity span { color: var(--ink-soft); overflow-wrap: anywhere; }
.account-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.privacy-list { display: grid; gap: .7rem; padding: 0; list-style: none; }.privacy-list li { padding: .9rem 1rem; border-left: 3px solid var(--teal); border-radius: 12px; background: #f6f6ef; color: var(--ink-soft); line-height: 1.5; }
.account-settings { display: grid; gap: 1.2rem; margin-top: 1.2rem; scroll-margin-top: 1rem; }
.account-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.account-settings-grid form { align-content: start; margin: 0; padding: 1.2rem; border-radius: 16px; background: #f7f5ef; }
.account-settings-grid h3 { margin: 0 0 .3rem; }
.danger-zone { margin-top: 1.2rem; border-color: rgba(215,71,130,.25); background: linear-gradient(145deg,var(--surface),#fff4f8); }
.danger-zone .stacked-form { margin-top: 1.2rem; }
.account-delete-zone { padding: 1.2rem clamp(1.2rem,3vw,2rem); }
.account-delete-zone > summary { list-style-position: inside; }
.account-delete-content { padding-top: 1.2rem; }

@media (max-width: 900px) {
  .local-badge { display: none; }
  .dashboard-grid, .detail-grid, .result-detail-grid, .compass-section-grid, .consistency-issues, .account-layout, .account-settings-grid { grid-template-columns: 1fr; }
  .conversation-layout, .split-layout, .match-input-layout, .explore-search-grid { grid-template-columns: 1fr; }.conversation-progress { position: static; }
  .opportunity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .source-panel { position: static; }
  .result-actions { position: static; }.result-summary, .compass-summary { grid-template-columns: repeat(2,1fr); }.result-summary p, .compass-summary .summary-progress, .compass-summary .gentle-note { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .site-header { flex-wrap: wrap; gap: .7rem; }.brand { width: 100%; }.primary-nav { width: 100%; flex-wrap: wrap; }.primary-nav a { flex: 1 1 40%; text-align: center; }.account-chip { margin-left: auto; }
  main { padding-top: 0; }.hero { min-height: 0; padding: 4rem 0; }.hero-orbit { display: none; }
  .hero h1 { font-size: 3.6rem; }.panel-heading, .section-heading, .detail-hero { flex-direction: column; align-items: flex-start; }
  .metric-row { grid-template-columns: 1fr; }.opportunity-grid, .opportunity-grid-wide { grid-template-columns: 1fr; }
  .review-grid, .explore-grid { grid-template-columns: 1fr; }.message { max-width: 94%; }.composer-actions { flex-direction: column-reverse; }
  .bulk-review-toolbar { position: static; align-items: stretch; flex-direction: column; }.bulk-review-toolbar .inline-actions { align-items: stretch; flex-direction: column; }
  .detail-hero { padding-top: 0; }.primary-button { width: 100%; justify-content: center; }
  .canonical-source-panel .stacked-form { grid-template-columns: 1fr; }
  .slot-heading, .archive-summary { align-items: flex-start; flex-direction: column; }
  .selection-toolbar { position: static; align-items: stretch; flex-direction: column; }.selection-toolbar .inline-actions { flex-direction: column; }
  .danger-toolbar .danger-button { width: 100%; }
  .compass-search-primary { align-items: stretch; flex-direction: column; }
  .compass-search-primary .primary-button { width: 100%; }
  .result-heading, .compass-heading { align-items: flex-start; flex-direction: column; }.result-summary, .skill-grid, .compass-summary { grid-template-columns: 1fr; }.result-summary p, .compass-summary .summary-progress, .compass-summary .gentle-note { grid-column: auto; }
  .site-footer, .card-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .busy-spinner, .busy-progress span, .working-spinner { animation: none !important; }
}
.explore-card[hidden] {
  display: none !important;
}

.explore-scope-controls {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .explore-scope-controls {
    grid-template-columns: 1fr;
  }
}
