:root {
  --ink: #292b3e;
  --muted: #626779;
  --line: #e4e3eb;
  --paper: #f8f7f2;
  --accent: #6546c5;
  --accent-dark: #5033a8;
  --lavender: #eee8fc;
  --lime: #e9efc7;
  --peach: #fbe9dc;
  --green: #216b56;
  --mint: #e9f5ed;
  --nav: #24283c;
  --warning: #855414;
  --warning-bg: #fff2d7;
  --danger: #9c3b45;
  --radius: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; background-color: var(--paper); background-image: radial-gradient(#dedce8 0.7px, transparent 0.7px); background-size: 22px 22px; color: var(--ink); font: 15px/1.6 "Avenir Next", "Trebuchet MS", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
button:focus-visible, a:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #9b85dc; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(34px, 3.8vw, 54px); font-weight: 750; letter-spacing: -2.4px; line-height: 1.1; }
h2 { font-size: 19px; font-weight: 700; letter-spacing: -.55px; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -.25px; }
small { font-size: 12px; }
a { color: inherit; }
.hidden { display: none !important; }
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 28px; padding: 30px 22px; background: var(--nav); color: #f3f0fd; scrollbar-width: thin; scrollbar-color: #63637f transparent; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; font-size: 18px; font-weight: 750; letter-spacing: -.65px; }
.brand > b { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 42px; flex-shrink: 0; border-radius: 14px 14px 17px 11px; background: #dfe9b2; color: #303b27; font-size: 29px; line-height: 1; transform: rotate(-7deg); }
.brand > b span { position: absolute; top: -7px; right: -7px; font-size: 17px; color: #ccbaf4; text-shadow: 0 0 0 #24283c; }
.brand > span { min-width: 0; }
.brand small { display: block; margin-top: 5px; color: #bfc0d6; font-size: 8px; font-weight: 550; letter-spacing: 1.5px; white-space: nowrap; }
.nav-label { display: block; margin-bottom: 12px; color: #adb1c7; font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: 1.7px; }
.nav-link { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 5px 0; padding: 10px 11px; border: 0; border-radius: 13px; background: transparent; color: #c5c9dd; font-size: 12px; font-weight: 550; text-align: left; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav-link:hover:not(:disabled) { background: #343a52; color: white; transform: translateX(2px); }
.nav-link.active { background: #6a51c1; color: white; box-shadow: 0 4px 0 #1b1e2f; }
.nav-link.active:hover { background: #6a51c1; }
.nav-link span { display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; flex-shrink: 0; border-radius: 8px; color: #d5c8f6; background: #34394f; font-size: 18px; }
.nav-link.active span { background: #8b74d6; color: white; }
.nav-link.compact { min-height: 32px; margin-top: 8px; padding: 5px 3px; color: #e4deb7; font-size: 11px; }
.sidebar select { width: 100%; max-width: 100%; border: 1px solid #525971; border-radius: 12px; background: #30364d; color: #f1eff8; padding: 10px; font-size: 11px; }
.side-footer { position: relative; margin-top: auto; padding: 20px 16px 15px; border: 1px solid #515773; border-radius: 20px; background: #30364d; color: #c7cbdc; font-size: 11px; }
.side-footer strong { display: block; margin-bottom: 9px; color: #f7f4ff; font-size: 15px; line-height: 1.4; letter-spacing: -.2px; }
.footer-spark { position: absolute; right: 15px; top: -18px; display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 11px; color: #4c5634; background: #e1eab5; font-size: 28px; transform: rotate(10deg); }
.local-dot { display: block; margin-top: 17px; padding-top: 11px; border-top: 1px solid #50566e; color: #c9d99a; font-size: 10px; }
.local-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #c9d99a; }
.workspace { width: 100%; max-width: 1600px; min-width: 0; margin: 0 auto; padding: 0 40px 30px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; height: 82px; border-bottom: 1px solid #dedde6; }
.crumb { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.crumb span { margin: 0 9px; color: #a2a2b0; }
.crumb strong { color: var(--ink); font-weight: 600; }
.pill, .badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid #cfc3ec; border-radius: 30px; background: #f0eafd; color: #62439d; font-size: 10px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8a71c3; }
.notice { margin: 21px 0; padding: 12px 16px; border: 1px solid #dcd8e8; border-radius: 14px; background: #f0edf6; color: #5f566f; font-size: 11px; }
.feedback { margin: 14px 0; padding: 14px 17px; border: 1px solid #bfdac8; border-radius: 14px; background: #edf8f0; color: #28674b; font-size: 13px; overflow-wrap: anywhere; }
.feedback.error { color: var(--danger); background: #fff0ed; border-color: #e6b9bd; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 14px; margin: 29px 0 22px; }
.hero-copy { min-width: 0; }
.hero h1 > span { color: var(--accent); }
.eyebrow { margin-bottom: 13px; color: #6c529e; font-size: 9px; font-weight: 750; letter-spacing: 1.65px; text-transform: uppercase; }
.eyebrow > span { display: inline-block; margin-right: 4px; color: #8869c3; font-size: 16px; vertical-align: -1px; }
.intro { max-width: 600px; margin-top: 17px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.hero-side { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 21px; padding: 9px 13px; border: 1px solid #e2dfd7; border-radius: 15px; background: #fffdf9; }
.hero-side > div { min-width: 0; }
.hero-side strong { display: block; font-size: 11px; font-weight: 650; }
.hero-side small { display: block; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.project-dot { width: 15px; height: 15px; flex-shrink: 0; border: 4px solid #dfd6f2; border-radius: 50%; background: #8062ba; }
.hero-art { position: relative; min-width: 0; padding: 0 0 20px; text-align: center; }
.orbit-scene { display: block; width: 100%; height: auto; max-height: 250px; overflow: visible; }
.orbit-caption { display: inline-block; margin-top: -9px; padding: 7px 13px; border: 1px solid #d9dcb9; border-radius: 10px; color: #56603b; background: #eef1d5; font-size: 10px; font-weight: 600; transform: rotate(-3deg); }
.compass-character { animation: compass-float 7s ease-in-out infinite; }
@keyframes compass-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.journey-guide { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 15px; margin-bottom: 23px; border: 1px solid #e0dfe6; border-radius: 15px; background: #fffdf9; color: #5d5d70; font-size: 10px; }
.journey-guide > span { display: flex; align-items: center; gap: 8px; }
.journey-guide b { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 8px; font-size: 9px; background: #eee8fc; color: #6d50a2; }
.journey-guide > span:nth-of-type(2) b { background: #fbe9dc; color: #8d5d42; }
.journey-guide > span:nth-of-type(3) b { background: #e8efcd; color: #59633c; }
.journey-guide i { color: #9c94ac; font-size: 16px; font-style: normal; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 27px; }
.stat { position: relative; min-width: 0; padding: 19px 21px; border: 1px solid #ded8ec; border-radius: 22px; background: #f0eafb; box-shadow: 0 4px 0 #e6e1ed; }
.stat-change { background: #fbece1; border-color: #ecd9ca; box-shadow: 0 4px 0 #eddfd2; }
.stat-visibility { background: #edf1d9; border-color: #d9dfc4; box-shadow: 0 4px 0 #e0e5cd; }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.stat-label { color: #645875; font-size: 9px; font-weight: 650; letter-spacing: 1px; }
.stat-change .stat-label { color: #795e4c; }
.stat-visibility .stat-label { color: #5d6843; }
.stat-icon { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; flex-shrink: 0; border: 1px solid #dbd1ef; border-radius: 10px; background: #ffffff96; color: #7853b9; font-size: 21px; }
.stat-change .stat-icon { border-color: #ecd3bf; color: #a36d49; transform: rotate(5deg); }
.stat-visibility .stat-icon { border-color: #d5ddbb; color: #6c7a44; transform: rotate(-6deg); }
.stat-value { margin: 8px 0 4px; font-size: 27px; font-weight: 750; letter-spacing: -.9px; line-height: 1.3; }
.stat-note { color: #626174; font-size: 10px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr); gap: 21px; align-items: start; }
.panel { min-width: 0; overflow: hidden; border: 1px solid #dfdee7; border-radius: var(--radius); background: #fff; box-shadow: 0 5px 0 #e8e5ed80; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 21px 24px 18px; border-bottom: 1px solid #ebe8ef; background: #fffefa; }
.panel-body { padding: 24px; }
.panel-body h3 { margin-bottom: 16px; }
.subtle { color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-bottom: 24px; }
.step { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 10px 5px; border: 1px solid #e4e1ec; border-radius: 13px; color: #6b687c; background: #fbfafc; font-size: 10px; font-weight: 600; }
.step b { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; color: #7d7291; background: #ece8f2; font-size: 9px; }
.step.active { color: #5f3db5; border-color: #c8b8ea; background: #f0eafd; }
.step.active b { background: #7354c5; color: white; }
.empty { padding: 27px 18px; border: 1px dashed #cfc3e0; border-radius: 18px; background: #fbf8ff; text-align: center; }
.empty h3 { margin-bottom: 5px; }
.empty p { max-width: 360px; margin: 10px auto 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.empty .large { margin-bottom: 10px; color: #8562c6; font-size: 35px; }
.finding-tag { display: inline-block; margin-bottom: 13px; padding: 5px 9px; border: 1px solid #ead9b9; border-radius: 8px; background: var(--warning-bg); color: var(--warning); font-size: 9px; font-weight: 650; letter-spacing: .3px; }
.source { margin: 15px 0 18px; padding: 13px; border: 1px solid #e5e2ec; border-radius: 12px; color: #5d5b6c; background: #f7f5fa; font: 11px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; white-space: pre-wrap; }
.diff-label { display: block; margin: 19px 0 8px; color: #696278; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.before { padding: 14px; border: 1px solid #ecd8cc; border-radius: 13px; color: #776555; background: #fff7f0; font-size: 13px; overflow-wrap: anywhere; }
textarea, input, select { display: block; width: 100%; padding: 12px 14px; border: 1px solid #d9d3e4; border-radius: 12px; background: #fefdfb; color: var(--ink); font-size: 13px; line-height: 1.65; }
textarea { min-height: 100px; resize: vertical; }
#proposal-text { border-color: #bcd7c9; background: #f2faf5; }
label { display: block; margin: 13px 0 8px; font-size: 12px; font-weight: 600; }
.scope { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 10px 16px; border: 1px solid #d8d2e5; border-radius: 12px; background: white; color: #524761; font-size: 11px; font-weight: 700; box-shadow: 0 3px 0 #e6e1ed; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn.primary { border-color: #593ab1; background: var(--accent); color: white; box-shadow: 0 4px 0 #433079; }
.btn.ghost { background: #faf8fd; box-shadow: none; }
.btn:hover:not(:disabled) { background: #f5f0ff; transform: translateY(-2px); }
.btn.primary:hover:not(:disabled) { background: var(--accent-dark); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.text-btn { min-height: 28px; padding: 4px; border: 0; background: transparent; color: #6744ae; font-size: 11px; font-weight: 650; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-btn:hover:not(:disabled) { text-decoration: underline; }
.status { margin: 18px 0 0; padding: 14px; border: 1px solid #bfdbc8; border-radius: 13px; background: var(--mint); color: var(--green); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.status.warning { color: var(--warning); background: var(--warning-bg); border-color: #ead4ac; }
.right-stack { display: flex; flex-direction: column; gap: 21px; }
.right-stack .panel:first-child { background: #fffdf7; }
.policy-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px dashed #e2dfd5; font-size: 11px; }
.policy-row:last-child { border: 0; }
.policy-row span:last-child { font-weight: 650; text-align: right; }
.allowed { color: var(--green); }
.blocked { color: #866149; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 20px 20px; border-left: 1px dashed #cfc4df; font-size: 11px; overflow-wrap: anywhere; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: -5px; width: 9px; height: 9px; border: 2px solid #f9f5ff; border-radius: 4px; background: #b3a0d7; transform: rotate(10deg); }
.timeline time { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.timeline.full li { padding-bottom: 24px; }
.timeline small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.section-heading { position: relative; margin: 34px 0 28px; padding: 2px 90px 0 0; }
.section-heading::after { content: ""; position: absolute; top: 20px; right: 7px; width: 64px; height: 64px; background: #e1e9b6; clip-path: polygon(50% 0,61% 26%,85% 15%,75% 40%,100% 50%,74% 61%,85% 86%,59% 75%,50% 100%,39% 74%,14% 85%,25% 59%,0 50%,26% 39%,15% 14%,40% 25%); transform: rotate(12deg); }
.heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-right: 0; }
.heading-row::after { display: none; }
.finding-list { display: grid; gap: 14px; margin-top: 22px; }
.finding-row { min-width: 0; padding: 21px 24px; border: 1px solid #e1dce8; border-left: 5px solid #b2bdc9; border-radius: 18px; background: white; box-shadow: 0 3px 0 #e8e5ed66; }
.finding-row:has(.badge.review) { border-left-color: #d8b264; }
.finding-row:has(.badge.pass) { border-left-color: #8cbea3; }
.finding-row:has(.badge.fail) { border-left-color: #cb8a90; }
.finding-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { padding: 4px 9px; border-color: #c5dfd1; background: #edf7f0; color: var(--green); font-size: 9px; text-transform: uppercase; }
.badge.review { border-color: #ead3a8; background: var(--warning-bg); color: var(--warning); }
.badge.fail { border-color: #e6bbc0; background: #fff0ed; color: var(--danger); }
.badge.not_checked { border-color: #d4d7df; background: #f0f1f5; color: #5b6172; }
.finding-row details { margin-top: 13px; font-size: 12px; }
.finding-row summary { cursor: pointer; color: var(--accent); font-size: 11px; font-weight: 600; }
.finding-row p { margin-top: 10px; }
.finding-row code { font-size: 10px; overflow-wrap: anywhere; }
.hash { display: block; padding: 11px 13px; border: 1px dashed #d4cce2; border-radius: 11px; background: #f7f5fa; color: #5e566c; font: 10px/1.8 ui-monospace, monospace; overflow-wrap: anywhere; }
.editor-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; color: var(--muted); font-size: 10px; }
.approval-record { margin-top: 14px; color: var(--green); font-size: 11px; }
.scenarios { margin-top: 25px; padding-top: 19px; border-top: 1px dashed #ded7e7; font-size: 12px; }
.scenarios summary { cursor: pointer; color: var(--muted); font-size: 11px; }
.scenarios .btn { margin: 16px 0 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check-label { display: flex; align-items: flex-start; gap: 11px; margin: 23px 0; font-weight: 400; }
.check-label input { width: 17px; margin: 4px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.plain-list { padding-left: 19px; color: var(--muted); font-size: 13px; line-height: 2.15; }
.plain-list li::marker { color: #a28acb; }
.spaced { margin-top: 19px; }
.fact { margin: 16px 0; padding: 13px 14px; border: 1px solid #e5ddc5; border-radius: 13px; background: #fcf7e9; font-size: 12px; }
.fact small { display: block; margin-top: 9px; color: #746a53; font-size: 9px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 5px 0 15px; }
.summary-grid > div { padding: 12px; border-radius: 13px; background: #f4f0fb; }
.summary-grid > div:nth-child(2) { background: #faf0e7; }
.summary-grid > div:nth-child(3) { background: #edf1de; }
.summary-grid strong { display: block; font-size: 24px; font-weight: 750; }
.summary-grid small { color: var(--muted); font-size: 11px; }
.audit-page { padding: 15px 0; border-bottom: 1px dashed #e2ddea; font-size: 12px; overflow-wrap: anywhere; }
.audit-page strong { display: block; margin-bottom: 3px; font-weight: 600; }
.audit-page:last-child { border: 0; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 31px; padding-top: 21px; border-top: 1px dashed #dcd7e4; color: var(--muted); font-size: 9px; }
dialog { width: 900px; max-width: min(1000px, 94vw); max-height: 90vh; padding: 25px; border: 1px solid #dcd5e7; border-radius: 24px; background: #fffefa; color: var(--ink); box-shadow: 0 20px 70px #211d3b33; }
dialog::backdrop { background: #27233b99; backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
pre { max-height: 60vh; overflow: auto; padding: 17px; border: 1px solid #e2dcea; border-radius: 13px; background: #f7f4fb; font: 11px/1.7 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 1550px) {
  .workspace { padding: 0 60px 38px; }
  .hero { grid-template-columns: minmax(0, 1fr) 340px; }
  .hero h1 { font-size: 60px; }
}
@media (max-width: 1150px) {
  .shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding: 26px 16px; gap: 27px; }
  .brand { gap: 8px; font-size: 16px; }
  .brand > b { width: 35px; height: 38px; }
  .brand small { font-size: 7px; letter-spacing: 1.2px; }
  .workspace { padding: 0 25px 28px; }
  .hero { grid-template-columns: minmax(0, 1fr) 220px; gap: 8px; }
  .hero h1 { font-size: 42px; }
  .hero .eyebrow { max-width: 300px; }
  .work-grid { grid-template-columns: 1fr; }
  .right-stack { display: grid; grid-template-columns: 1fr 1fr; }
  .stat { padding: 17px; }
  .stat-value { font-size: 24px; }
  .journey-guide { font-size: 9px; padding: 10px; }
}
@media (max-width: 850px) and (min-width: 701px) {
  .hero { grid-template-columns: minmax(0, 1fr) 170px; }
  .hero h1 { font-size: 35px; }
  .orbit-caption { font-size: 8px; padding: 6px; }
  .journey-guide { flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
  .stat-top { align-items: flex-start; }
  .stat-icon { width: 23px; height: 23px; font-size: 17px; }
  .stat-value { font-size: 20px; }
}
@media (max-width: 700px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; overflow: visible; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 14px; padding: 18px 17px 12px; }
  .brand { gap: 9px; font-size: 16px; }
  .brand > b { width: 33px; height: 35px; border-radius: 12px; font-size: 25px; }
  .brand > b span { top: -5px; right: -5px; font-size: 13px; }
  .brand small { font-size: 6px; letter-spacing: 1.15px; }
  .sidebar > div:nth-child(2) { min-width: 0; }
  .sidebar .nav-label, .sidebar .compact, .side-footer { display: none; }
  .sidebar select { padding: 8px; border-radius: 10px; font-size: 10px; }
  .sidebar nav { grid-column: 1 / -1; display: flex; gap: 7px; min-width: 0; overflow-x: auto; padding: 3px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .nav-link { width: auto; min-height: 39px; margin: 0; padding: 9px 13px; flex-shrink: 0; border-radius: 12px; font-size: 10px; white-space: nowrap; scroll-snap-align: start; }
  .nav-link span { display: none; }
  .nav-link:hover:not(:disabled) { transform: none; }
  .workspace { padding: 0 17px 25px; }
  .topbar { height: 64px; }
  .crumb { font-size: 10px; }
  .crumb span { margin: 0 5px; }
  .pill { padding: 5px 8px; font-size: 9px; }
  .notice { margin: 17px 0; padding: 11px 12px; border-radius: 12px; font-size: 10px; }
  .hero { grid-template-columns: minmax(0, 1fr) 108px; gap: 5px; margin: 24px 0; }
  .hero h1 { font-size: 35px; letter-spacing: -1.6px; line-height: 1.12; }
  .hero .eyebrow { margin-bottom: 12px; font-size: 8px; line-height: 1.7; letter-spacing: 1.2px; }
  .hero .eyebrow > span { font-size: 12px; }
  .intro { font-size: 12px; line-height: 1.8; }
  .hero .intro { margin-top: 12px; font-size: 11px; }
  .hero .intro br { display: none; }
  .hero-side { gap: 7px; margin-top: 15px; padding: 8px 9px; border-radius: 12px; }
  .hero-side strong { font-size: 10px; }
  .hero-side small { font-size: 9px; }
  .project-dot { width: 12px; height: 12px; border-width: 3px; }
  .hero-art { align-self: start; margin-top: 42px; padding: 0; }
  .orbit-scene { width: 128%; max-width: none; margin-left: -14%; }
  .orbit-caption, .journey-guide { display: none; }
  .stats { gap: 8px; margin-bottom: 24px; }
  .stat { padding: 12px 10px 14px; border-radius: 16px; }
  .stat-top { align-items: flex-start; }
  .stat-icon { width: 20px; height: 20px; border-radius: 7px; font-size: 15px; }
  .stat-label { font-size: 9px; line-height: 1.6; letter-spacing: .5px; }
  .stat-value { margin-top: 10px; font-size: 18px; letter-spacing: -.6px; overflow-wrap: anywhere; }
  .stat-note { font-size: 9px; line-height: 1.7; }
  .right-stack { display: flex; }
  .panel { border-radius: 20px; }
  .panel-body { padding: 19px; }
  .panel-head { padding: 17px 19px; }
  .panel-head h2 { font-size: 16px; }
  .panel-head .subtle { max-width: 115px; font-size: 9px; }
  .section-heading { margin: 27px 0 24px; padding-right: 53px; }
  .section-heading h1 { font-size: 35px; letter-spacing: -1.7px; }
  .section-heading::after { width: 40px; height: 40px; right: 0; top: 25px; }
  .section-heading .eyebrow { font-size: 8px; line-height: 1.8; }
  .steps { gap: 5px; }
  .step { gap: 6px; padding: 9px 3px; border-radius: 10px; font-size: 9px; }
  .step b { width: 22px; height: 22px; }
  .btn { min-height: 43px; padding: 10px 13px; font-size: 11px; }
  .actions { gap: 9px; }
  .actions .btn { flex-grow: 1; }
  textarea { font-size: 16px; }
  .before { padding: 12px; font-size: 12px; }
  .heading-row { display: block; padding-right: 0; }
  .heading-row .btn { margin-top: 18px; }
  .finding-row { padding: 18px; }
  .finding-top h3 { font-size: 14px; }
  .summary-grid { gap: 8px; }
  .summary-grid > div { padding: 10px; }
  .summary-grid strong { font-size: 21px; }
  .summary-grid small { font-size: 9px; }
  .form-row { gap: 10px; }
  footer { display: block; }
  footer span { display: block; margin: 8px 0; }
  dialog { padding: 18px; border-radius: 19px; }
}
@media (max-width: 380px) {
  .brand { font-size: 14px; gap: 7px; }
  .brand small { font-size: 5.5px; letter-spacing: 1px; }
  .hero { grid-template-columns: minmax(0, 1fr) 83px; }
  .hero h1 { font-size: 31px; }
  .stat { padding: 11px 8px; }
  .stat-icon { display: none; }
  .stat-value { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The own-website journey shares the playful workspace language. */
.accent-text { color: var(--accent); }
.add-site-btn { width: 100%; margin-top: 12px; padding: 9px 10px; border-color: #bbae83; background: #e8efc7; color: #3e4930; box-shadow: 0 3px 0 #171c2d; }
.add-site-btn:hover:not(:disabled) { background: #f1f6d8; }
.setup-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.setup-steps button { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px; border: 1px solid #ded8e8; border-radius: 17px; background: #fffefa; color: var(--muted); text-align: left; font-size: 13px; }
.setup-steps b { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 11px; background: #eee8fc; color: #6847b1; font-size: 11px; }
.setup-steps button.active { color: #5033a8; background: #eee8fc; border-color: #c4b4e9; box-shadow: 0 3px 0 #e0d7ee; }
.setup-steps button.active b { background: #6546c5; color: white; }
.setup-context { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; min-width: 0; }
.setup-context:empty { display: none; }
.setup-site-label { min-width: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.setup-context .text-btn { flex-shrink: 0; }
.setup-stage h2 { margin-bottom: 10px; }
.setup-stage .panel-body { padding: 28px; }
.setup-stage label { font-size: 13px; }
.setup-stage .subtle { font-size: 12px; }
.setup-stage .intro { margin-bottom: 18px; }
.setup-stage input, .setup-stage textarea, .setup-stage select { font-size: 14px; }
.setup-stage form > .btn { margin-top: 6px; }
.setup-stage .finding-tag { font-size: 10px; }
.setup-help { background: #f6f4e9; }
.setup-help h3 { font-size: 23px; line-height: 1.35; }
.setup-spark { display: inline-block; margin: 0 0 20px; color: #746296; background: #e8dfef; padding: 3px 12px; border-radius: 15px; transform: rotate(-8deg); font-size: 38px; line-height: 1.3; }
.extra-pages { margin: 17px 0; color: var(--muted); font-size: 12px; }
.extra-pages summary { cursor: pointer; color: var(--accent); padding: 4px 0; }
.scope-preview { margin-top: 20px; padding: 14px; border: 1px dashed #d4c7e5; border-radius: 13px; background: #f8f5fc; font-size: 12px; }
.scope-preview ul { padding-left: 18px; margin: 8px 0; overflow-wrap: anywhere; }
#setup-existing-web > .btn { margin-top: 18px; }
#setup-draft-preview { margin-top: 26px; padding-top: 24px; border-top: 1px dashed #d9d2e4; }
#setup-draft-preview > .btn { margin-top: 16px; }
#public-proposal-tools { margin-bottom: 24px; }
#public-proposal-tools .status { margin-bottom: 22px; }
.stale-record { padding: 12px; border-radius: 12px; color: var(--warning); background: var(--warning-bg); }
@media (max-width:700px) {
  .add-site-btn { min-height: 35px; margin-top: 8px; font-size: 10px; padding: 6px; }
  .setup-steps { gap: 7px; }
  .setup-steps button { flex-direction: column; align-items: flex-start; gap: 8px; padding: 11px 9px; font-size: 11px; }
  .setup-steps b { width: 27px; height: 27px; border-radius: 9px; }
  .setup-stage .panel-body { padding: 19px; }
  .setup-stage input, .setup-stage textarea, .setup-stage select { font-size: 16px; }
  .setup-context { flex-direction: column; align-items: flex-start; gap: 4px; }
}
.generator-card { margin: 0 0 28px; padding: 19px; border: 1px solid #d7d0e7; border-radius: 17px; background: #f2edf9; }
.generator-card h3 { font-size: 20px; margin: 0 0 12px; }
.generator-card h4 { font-size: 12px; margin: 18px 0 8px; }
.generator-card .finding-tag { white-space: normal; }
.generator-budget { margin-top: 14px; }
.generator-budget .policy-row { font-size: 12px; border-bottom-color: #d7cfe3; }
.generation-run { padding: 10px 0; border-top: 1px dashed #d7cfe3; font-size: 12px; overflow-wrap: anywhere; }
.generation-run small { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
@media (max-width:700px) { .generator-card { padding: 16px; } }

.autopilot-teaser { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 27px; padding:22px 24px; border:1px solid #d4dbc1; border-radius:22px; background:#f0f3df; box-shadow:0 4px 0 #e3e7d4; }
.autopilot-teaser .eyebrow { display:block; margin-bottom:7px; }
.autopilot-teaser p { margin-top:7px; }
.autopilot-teaser .btn { flex-shrink:0; }
.autopilot-status-row { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:24px; }
.autopilot-status-row .finding-tag { margin:0 0 0 auto; }
.plan-filter { display:flex; align-items:center; gap:14px; margin:25px 0 18px; }
.plan-filter label { margin:0; }
.plan-filter select { max-width:260px; }
.action-plan-items { display:grid; gap:16px; }
.action-item { min-width:0; padding:20px; border:1px solid #e1dce8; border-left:5px solid #bba4dd; border-radius:18px; background:#fcfaff; }
.action-resolved { border-left-color:#8cbea3; background:#f3faf5; }
.action-unverified { border-left-color:#b7bac6; background:#f6f6f8; }
.action-regressed { border-left-color:#d0a575; background:#fff8ef; }
.action-item .finding-top { align-items:flex-start; }
.action-item .finding-top h3 { margin-bottom:0; }
.action-url { margin-top:8px; overflow-wrap:anywhere; }
.action-next { margin-top:15px; margin-bottom:7px; font-size:13px; font-weight:650; }
.context-label { display:inline-block; margin-top:12px; color:#796a4a; font-size:10px; }
.page-changes { margin-top:26px; padding-top:20px; border-top:1px dashed #ddd5e6; font-size:12px; }
.page-changes summary { cursor:pointer; color:var(--accent); font-weight:650; }
.autopilot-routine { padding-left:20px; font-size:13px; color:var(--muted); }
.autopilot-routine li { padding:0 0 12px 4px; }
.autopilot-routine li::marker { color:var(--accent); font-weight:650; }
.autopilot-history { margin-top:25px; }
.monitor-run { padding:17px 0; border-bottom:1px dashed #ddd5e6; font-size:12px; }
.monitor-run:first-child { padding-top:0; }
.monitor-run:last-child { border:0; padding-bottom:0; }
#monitor-form .check-label { font-size:12px; }
#action-plan-summary h3 { margin-bottom:14px; }
#monitor-next-run { overflow-wrap:anywhere; }
#monitor-record { margin-top:14px; }
@media (max-width:700px) {
 .autopilot-teaser { display:block; padding:20px; }
 .autopilot-teaser .btn { margin-top:17px; }
 .autopilot-status-row { gap:10px; }
 .autopilot-status-row .finding-tag { margin:0; }
 .action-item { padding:16px; }
 .action-item .finding-top { flex-wrap:wrap; }
 .plan-filter { gap:10px; }
 .plan-filter select { font-size:16px; }
 #screen-autopilot .panel-head { flex-wrap:wrap; }
 #monitor-cadence { font-size:16px; }
}

.sidebar .brand-tile { display:block; width:44px; height:44px; flex-shrink:0; }
.sidebar .brand-vivo { color:#ccbaf4; }

.client-locale-symbols { position:absolute; width:0; height:0; overflow:hidden; }
.client-locale-switch { position:relative; flex:none; }
.client-locale-switch[open] { z-index:5; }
.client-locale-switch > summary { list-style:none; display:flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 9px; border:1px solid #ded8e8; border-radius:7px; background:#fff; color:var(--ink); font-size:12px; font-weight:650; cursor:pointer; }
.client-locale-switch > summary::-webkit-details-marker { display:none; }
.client-locale-switch > summary:hover { border-color:#aa96d8; }
.client-locale-switch[open] .client-locale-chevron { transform:rotate(180deg); }
.client-locale-flag { display:block; flex:none; width:20px; height:14px; border:1px solid #292b3e38; border-radius:2px; background:#fff; }
.client-locale-chevron, .client-locale-tick { flex:none; width:12px; height:12px; color:#5033a8; }
.client-locale-options { position:absolute; top:calc(100% + 5px); right:0; display:grid; min-width:146px; gap:2px; padding:4px; margin:0; list-style:none; background:#fff; border:1px solid #ded8e8; border-radius:9px; box-shadow:0 7px 22px #292b3e24; }
.client-locale-switch:not([open]) .client-locale-options { display:none; }
.client-locale-options button { display:flex; align-items:center; gap:8px; width:100%; min-height:36px; padding:0 8px; border:0; border-radius:5px; background:#fff; color:var(--ink); white-space:nowrap; font-size:13px; text-align:left; }
.client-locale-options button:hover, .client-locale-options button[aria-current="true"] { background:#eee8fc; }
.client-locale-options .client-locale-tick { margin-left:auto; visibility:hidden; }
.client-locale-options button[aria-current="true"] .client-locale-tick { visibility:visible; }
.client-locale-options { max-height:min(320px, 60vh); overflow-y:auto; }
@media (max-width:640px) {
  .client-locale-options button { min-height:44px; }
}

.lab-header-tools { display:flex; align-items:center; gap:10px; min-width:0; }
.lab-header-tools .pill { text-align:center; white-space:normal; }
.topbar .crumb { min-width:0; overflow-wrap:anywhere; }
.crumb [data-i18n] { margin:0; color:inherit; }
.hero h1 > [data-i18n="lab.overview-heading"] { color:inherit; }
.notice > a { margin-inline-start:.35em; }
#screen-findings .finding-top, #screen-autopilot .finding-top { flex-wrap:wrap; }
#screen-findings .finding-top h3, #screen-autopilot .finding-top h3 { overflow-wrap:anywhere; }
#screen-findings .badge, #screen-autopilot .badge { max-width:100%; white-space:normal; }
@media (max-width:480px) {
  .lab-header-tools .pill { display:none; }
}
