:root {
  color-scheme: dark;
  --bg: #0d0e11;
  --topbar: #121317;
  --surface-0: #101115;
  --surface-1: #111216;
  --panel: #141519;
  --panel-2: #191a1f;
  --line: #292b33;
  --line-soft: #22242a;
  --line-strong: #393c46;
  --text: #f5f6f8;
  --muted: #a0a3ad;
  --subtle: #696c77;
  --canvas-dot: #252832;
  --shadow: rgba(0,0,0,.28);
  --thatway: #7868ff;
  --thatway-soft: #aaa1ff;
  --success: #42d58c;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef0f4;
  --topbar: #f7f8fa;
  --surface-0: #ffffff;
  --surface-1: #f7f8fa;
  --panel: #ffffff;
  --panel-2: #f2f3f6;
  --line: #d6d9e0;
  --line-soft: #e4e6eb;
  --line-strong: #b9bec9;
  --text: #171820;
  --muted: #5f6470;
  --subtle: #747985;
  --canvas-dot: #d7dae2;
  --shadow: rgba(23,24,32,.12);
  --thatway: #6250df;
  --thatway-soft: #5a49d0;
  --success: #117847;
}

.binding-slot.choosing { border-color: #7565f3; border-style: solid; background: rgba(120,104,255,.07); box-shadow: 0 0 0 3px rgba(120,104,255,.09); }
.binding-slot .binding-slot-meta { color: #8f929d; font-size: 12px; font-style: normal; font-weight: 650; line-height: 1.35; }
.binding-slot .binding-slot-warning { color: #d5a757; font-size: 12px; font-style: normal; font-weight: 750; }
.binding-slot.blocked { border-color: rgba(255,185,75,.34); background: rgba(255,185,75,.04); }
.binding-slot.invalid-binding { border-color: rgba(255,185,75,.42); background: rgba(255,185,75,.045); }.binding-slot.invalid-binding em { color: #d5a757; font-size: 12px; font-style: normal; font-weight: 750; }

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb,var(--subtle) 52%,transparent) transparent;
}
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb,var(--subtle) 52%,transparent);
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb,var(--muted) 72%,transparent); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }
html,body { width: 100%; height: 100%; margin: 0; background: var(--bg); color: var(--text); }
body { overflow: hidden; }
button,input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.app-shell { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: 66px; flex: 0 0 66px; display: flex; align-items: center; gap: 22px; padding: 0 22px; border-bottom: 1px solid var(--line); background: color-mix(in srgb,var(--topbar) 97%,transparent); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 185px; color: var(--text); text-decoration: none; }
.brand-mark { width: 37px; height: 37px; position: relative; overflow: hidden; flex: 0 0 37px; border-radius: 12px; background: linear-gradient(145deg,#8c7eff,#5948e5); box-shadow: inset 0 1px rgba(255,255,255,.26),0 10px 24px rgba(89,72,229,.25); }
.brand-mark .brand-static { width: auto; height: 64px; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); opacity: 1; image-rendering: pixelated; }
.brand-dance-video { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; opacity: 0; transform: scale(1.45); background: linear-gradient(145deg,#8c7eff,#5948e5); pointer-events: none; image-rendering: pixelated; }
.brand-mark.is-dancing { background: linear-gradient(145deg,#8c7eff,#5948e5); box-shadow: inset 0 1px rgba(255,255,255,.26),0 10px 24px rgba(89,72,229,.25); }
.brand-mark.is-dancing .brand-static { opacity: 0; }
.brand-mark.is-dancing .brand-dance-video { opacity: 1; }
.thatway-guide-icon { width: 28px; height: 28px; position: relative; overflow: hidden; display: inline-block; border-radius: 8px; background: linear-gradient(145deg,#8c7eff,#5948e5); }
.thatway-guide-icon img { width: auto; height: 48px; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); image-rendering: pixelated; }
.brand > span:last-child { display: grid; gap: 1px; }.brand strong { font-size: 13px; }.brand small { color: var(--subtle); font-size: 12px; }
.main-nav { align-self: stretch; display: flex; gap: 4px; }
.nav-item { min-width: 78px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #7e818c; cursor: pointer; font-size: 12px; font-weight: 700; }
.nav-item:hover:not(:disabled) { color: var(--text); }.nav-item.active { color: var(--text); border-bottom-color: var(--thatway); }.nav-item:disabled { opacity: .3; cursor: default; }
.canvas-source { flex: 0 0 auto; white-space: nowrap; }
.canvas-source > span { color: var(--subtle); font-size: 12px; font-weight: 600; }
.canvas-source > strong { white-space: nowrap; }
.quiet-action { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: #c9cbd2; cursor: pointer; font-size: 12px; font-weight: 700; }.quiet-action:hover { border-color: #41444e; }
.appearance-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-1); }
.appearance-switch button { width: 30px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; }
.appearance-switch button:hover { color: var(--text); background: var(--panel-2); }
.appearance-switch button[aria-pressed="true"] { background: var(--panel-2); color: var(--thatway-soft); box-shadow: 0 0 0 1px var(--line); }
.appearance-switch button:focus-visible { outline: 2px solid var(--thatway); outline-offset: 2px; }

.main-content { min-height: 0; flex: 1; position: relative; }
.view { display: none; width: 100%; height: 100%; }.view.active { display: block; }
.kicker { color: #767986; font-size: 12px; font-weight: 850; letter-spacing: .16em; }

.start-page { height: 100%; overflow-y: auto; padding: 72px 28px 90px; background: radial-gradient(circle at 18% 5%,rgba(120,104,255,.13),transparent 28%),radial-gradient(circle at 82% 35%,rgba(66,213,140,.055),transparent 22%),var(--bg); }
.start-hero { max-width: 980px; margin: 0 auto 42px; text-align: center; }
.start-hero h1 { margin: 13px 0 16px; font-size: clamp(48px,6vw,78px); line-height: .98; letter-spacing: -.065em; }.start-hero h1 em { color: #8e82ff; font-style: normal; }.start-hero p { max-width: 670px; margin: auto; color: #a8abb4; font-size: 14px; line-height: 1.65; }
.start-options { max-width: 1120px; margin: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.start-card { min-height: 330px; position: relative; overflow: hidden; padding: 30px; border: 1px solid #2d2f37; border-radius: 20px; background: rgba(20,21,25,.92); box-shadow: 0 24px 75px rgba(0,0,0,.24); }
.start-card:before { content: ""; position: absolute; width: 250px; height: 250px; right: -160px; top: -160px; border: 1px solid rgba(120,104,255,.2); border-radius: 50%; box-shadow: 0 0 0 34px rgba(120,104,255,.025),0 0 0 68px rgba(120,104,255,.02); pointer-events: none; }
.card-number { position: absolute; top: 22px; right: 25px; color: #484b55; font: 12px ui-monospace,monospace; }
.card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(120,104,255,.13); color: #a99fff; font-size: 18px; }
.blank-card .card-icon { background: rgba(66,213,140,.09); color: #65dfa0; }
.token-import-card .card-icon { background: rgba(93,214,189,.09); color: #68dfc5; font: 800 12px ui-monospace,SFMono-Regular,Menlo,monospace; }
.start-card h2 { margin: 22px 0 9px; font-size: 24px; letter-spacing: -.035em; }.start-card > p { max-width: 430px; margin: 0; color: #92959f; font-size: 12px; line-height: 1.6; }
#websiteForm { margin-top: 28px; }#websiteForm label { display: block; margin-bottom: 8px; color: #c9cbd2; font-size: 12px; font-weight: 750; }
.url-control { min-height: 52px; display: flex; align-items: center; padding: 5px; border: 1px solid #393c46; border-radius: 12px; background: #0f1013; }.url-control:focus-within { border-color: #7667f1; box-shadow: 0 0 0 4px rgba(120,104,255,.1); }.url-control > span { padding-left: 10px; color: #686b75; font-size: 12px; }.url-control input { min-width: 0; flex: 1; height: 40px; border: 0; outline: 0; background: transparent; color: white; font-size: 12px; }.url-control button,.primary-cta { height: 40px; padding: 0 15px; border: 0; border-radius: 9px; background: linear-gradient(135deg,#7d6cff,#6452ed); color: white; cursor: pointer; font-size: 12px; font-weight: 800; }.url-control button b,.primary-cta b,.secondary-cta b { margin-left: 7px; }
.privacy { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #656873; font-size: 12px; }.privacy i { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.starter-preview { min-height: 96px; display: grid; gap: 11px; margin-top: 22px; padding: 13px; border: 1px solid #2b2d34; border-radius: 12px; background: #101115; }
.starter-preview-palette { display: grid; grid-template-columns: repeat(8,minmax(0,29px)); align-items: center; justify-content: space-between; gap: 4px; }
.starter-preview-swatch { width: 100%; max-width: 29px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.starter-preview-summary { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 7px; color: #888b95; font-size: 12px; }
.starter-preview-summary > span { grid-column: 1 / -1; white-space: nowrap; }.starter-preview-summary b { color: #d7d9df; font-size: 12px; }.starter-preview-summary span i { margin: 0 4px; color: #5d606a; font-style: normal; }
.starter-preview-summary small { min-width: 0; padding: 4px 6px; overflow: hidden; border-radius: 6px; background: #1b1c22; color: #a4a7b0; font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.secondary-cta { width: 100%; min-height: 45px; margin-top: 13px; border: 1px solid #343741; border-radius: 10px; background: #1c1e24; color: white; cursor: pointer; font-size: 12px; font-weight: 800; }.secondary-cta:hover { border-color: #4a4d58; }
.token-file-action { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 12px 14px; border: 1px solid #3b3e48; border-radius: 12px; background: #101115; cursor: pointer; transition: border-color .16s,background-color .16s,transform .16s; }.token-file-action:hover,.token-file-action:focus-within { border-color: #7567eb; background: rgba(120,104,255,.07); transform: translateY(-1px); }.token-file-action > span { display: grid; gap: 5px; }.token-file-action strong { font-size: 12px; }.token-file-action small { color: #7c7f8a; font-size: 12px; line-height: 1.4; }.token-file-action > b { color: #aaa2ff; font-size: 18px; }

.import-review { width: min(1840px,100%); max-width: none; overflow: hidden; margin: 0 auto; border: 1px solid #30323a; border-radius: 22px; background: rgba(20,21,25,.96); box-shadow: 0 28px 90px rgba(0,0,0,.28); }.import-review > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 30px; border-bottom: 1px solid #2c2e35; background: radial-gradient(circle at 90% 0,rgba(120,104,255,.15),transparent 42%); }.import-review h2 { margin: 9px 0 8px; font-size: 32px; letter-spacing: -.04em; }.import-review h2:focus { outline: none; }.import-review header p { max-width: 650px; margin: 0; color: #a0a3ad; font-size: 14px; line-height: 1.55; }.import-review > header .text-button { min-height: 40px; flex: 0 0 auto; font-size: 12px; }
.import-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; padding: 22px 30px 0; }.import-summary article { min-height: 94px; display: grid; align-content: center; gap: 5px; padding: 16px; border: 1px solid #30323a; border-radius: 13px; background: #111216; }.import-summary strong { color: #f4f5f7; font-size: 24px; }.import-summary span { color: #b6b9c2; font-size: 12px; font-weight: 760; }.import-summary small { color: #737681; font-size: 12px; line-height: 1.4; }
.import-mode-picker { display: grid; gap: 8px; margin: 18px 30px 0; padding: 12px 14px; border: 1px solid #30323a; border-radius: 12px; background: #111216; }.import-mode-group { display: flex; align-items: center; gap: 12px; }.import-mode-group > span { margin-right: auto; color: #bfc1c8; font-size: 12px; font-weight: 750; }.import-mode-group > div { display: flex; gap: 8px; }.import-mode-picker button { min-height: 36px; padding: 0 14px; border: 1px solid #383b45; border-radius: 9px; background: #1a1b20; color: #9a9da7; cursor: pointer; font-size: 12px; font-weight: 760; }.import-mode-picker button.active { border-color: #796bf0; background: rgba(120,104,255,.13); color: #f2f0ff; }
.import-component-review { margin: 22px 30px; padding: 22px; border: 1px solid rgba(120,104,255,.34); border-radius: 17px; background: linear-gradient(145deg,rgba(120,104,255,.085),rgba(17,18,22,.96) 46%); }.import-component-review > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }.import-component-review h3 { margin: 7px 0 7px; font-size: 24px; letter-spacing: -.03em; }.import-component-review header p { max-width: 620px; font-size: 13px; }.import-confidence { flex: 0 0 auto; padding: 8px 10px; border-radius: 999px; background: rgba(66,213,140,.1); color: #67dfa2; font-size: 12px; font-weight: 820; }
.import-pattern-review { margin: 22px 30px; padding: 22px; border: 1px solid rgba(120,104,255,.34); border-radius: 17px; background: linear-gradient(145deg,rgba(120,104,255,.075),rgba(17,18,22,.96) 46%); }.import-pattern-review > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }.import-pattern-review h3 { margin: 7px 0; font-size: 24px; letter-spacing: -.03em; }.import-pattern-review header p { max-width: 760px; font-size: 13px; }.import-pattern-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 18px; }.import-pattern-list article,.import-pattern-empty { min-width: 0; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid #30323a; border-radius: 11px; background: #111216; }.import-pattern-list article > i,.import-pattern-empty > i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(66,213,140,.34); border-radius: 9px; background: rgba(66,213,140,.07); color: #62dda0; font-size: 13px; font-style: normal; font-weight: 850; }.import-pattern-list article > span,.import-pattern-empty > span { min-width: 0; display: grid; gap: 4px; }.import-pattern-list strong,.import-pattern-empty strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.import-pattern-list small,.import-pattern-empty small { overflow: hidden; color: #858893; font: 12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }.import-pattern-list article > b { padding: 5px 7px; border-radius: 6px; background: rgba(120,104,255,.1); color: #aaa2ff; font-size: 12px; white-space: nowrap; }.import-pattern-empty { grid-column: 1 / -1; grid-template-columns: 34px minmax(0,1fr); }.import-pattern-empty > i { border-color: #3b3e48; background: transparent; color: #a9a2e8; }.import-pattern-empty small { white-space: normal; }
.button-role-picker { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 1px solid #30333b; border-radius: 12px; background: #111216; }.button-role-picker > span { display: grid; gap: 4px; }.button-role-picker > span strong { font-size: 12px; }.button-role-picker > span small { color: #7c7f89; font-size: 12px; }.button-role-picker > div { display: flex; gap: 7px; }.button-role-picker button { min-width: 112px; display: grid; gap: 3px; padding: 9px 11px; border: 1px solid #393c46; border-radius: 9px; background: #1a1b20; color: #c5c7ce; text-align: left; cursor: pointer; }.button-role-picker button b { font-size: 12px; }.button-role-picker button small { color: #777a84; font-size: 12px; }.button-role-picker button:hover { border-color: #555965; }.button-role-picker button.active { border-color: #796bf0; background: rgba(120,104,255,.12); color: white; box-shadow: inset 0 0 0 1px rgba(151,139,255,.09); }.button-role-picker button.active small { color: #aaa3e8; }.button-role-picker button:focus-visible { outline: 2px solid #9c91ff; outline-offset: 2px; }.import-button-role { margin-top: 18px; }.canvas-button-role { margin: 16px 0 12px; }
.import-button-preview { min-height: 190px; display: grid; place-items: center; margin-top: 20px; border: 1px solid #d8dae1; border-radius: 14px; background: #f8f8f9; }.import-button-preview .live-button:hover { background: var(--import-button-hover); }.import-button-preview .live-button:focus-visible { outline: 3px solid var(--import-button-ring); outline-offset: 2px; }
.import-mapping-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(680px,100%),1fr)); gap: 10px; margin-top: 16px; }.import-mapping-row { min-width: 0; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid #30323a; border-radius: 11px; background: #111216; }.import-mapping-row > i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #3b3e48; border-radius: 9px; color: #a9a2e8; font-size: 13px; font-style: normal; font-weight: 850; }.import-mapping-row.suggested > i { border-color: rgba(66,213,140,.34); background: rgba(66,213,140,.07); color: #62dda0; }.import-mapping-row > span { min-width: 0; display: grid; gap: 4px; }.import-mapping-row strong { font-size: 13px; }.import-mapping-row small { overflow: hidden; color: #858893; font: 12px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }.import-mapping-row > b { padding: 5px 7px; border-radius: 6px; background: rgba(120,104,255,.1); color: #aaa2ff; font-size: 12px; }.import-mapping-row.open > b { background: rgba(255,185,75,.08); color: #d9aa59; }
.import-notes { display: grid; gap: 8px; margin: 0 30px 22px; }.import-notes p { margin: 0; padding: 12px 14px; border: 1px solid #30323a; border-radius: 10px; background: #111216; color: #979aa4; font-size: 12px; line-height: 1.5; }.import-notes p.attention { border-color: rgba(255,185,75,.3); background: rgba(255,185,75,.055); }.import-notes p.attention strong { color: #e2b35e; }.import-notes strong { color: #d5d1ff; }.import-review > footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 20px 30px 28px; border-top: 1px solid #2c2e35; }.import-review > footer .text-button { margin-right: auto; font-size: 12px; }.import-review > footer .primary-cta { min-height: 46px; height: auto; font-size: 12px; }

.scan-state,.scan-result { max-width: 980px; margin: 0 auto; border: 1px solid #2d2f37; border-radius: 20px; background: rgba(20,21,25,.96); }
.scan-state { min-height: 250px; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 40px; }.scan-state h2 { margin: 8px 0 5px; font-size: 22px; }.scan-state p { margin: 0; color: var(--muted); font-size: 12px; }
.scan-orbit { width: 88px; height: 88px; display: grid; place-items: center; position: relative; }.scan-orbit i { position: absolute; inset: 0; border: 1px solid #41444f; border-top-color: #8c7fff; border-radius: 50%; animation: spin 1.2s linear infinite; }.scan-orbit b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #7462f3; }@keyframes spin { to { transform: rotate(360deg); } }
.scan-error > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,90,104,.1); color: #ff8e98; font-weight: 850; }.scan-error button,.text-button { border: 0; background: transparent; color: #aaa2ff; cursor: pointer; font-size: 12px; font-weight: 750; }
.scan-result { overflow: hidden; }.scan-result > header { display: flex; align-items: center; justify-content: space-between; padding: 25px 27px; border-bottom: 1px solid var(--line); }.scan-result h2 { margin: 6px 0 4px; font-size: 24px; }.scan-result header p { margin: 0; color: var(--muted); font-size: 12px; }.coverage { display: grid; gap: 2px; text-align: right; }.coverage strong { color: #57dc96; font-size: 25px; }.coverage span { color: #777a84; font-size: 12px; }
.result-tokens { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; padding: 22px 27px; }.result-token { min-width: 0; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 9px; padding: 10px; border: 1px solid #2b2d35; border-radius: 10px; background: #111216; }.result-token i { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: var(--swatch,#25272e); color: #b9bbc2; font-size: 12px; font-style: normal; }.result-token span { min-width: 0; display: grid; gap: 3px; }.result-token strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }.result-token small { color: #747782; font: 12px ui-monospace,monospace; }
.result-note { margin: 0 27px; padding: 11px 13px; border-radius: 9px; background: rgba(120,104,255,.07); color: #8f929c; font-size: 12px; }.result-note span { color: #c3bfff; font-weight: 750; }.scan-result footer { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 27px 24px; }.scan-result .primary-cta { min-width: 130px; }

.start-page.compass-active { padding-top: 42px; background: radial-gradient(circle at 82% 13%,rgba(120,104,255,.16),transparent 30%),radial-gradient(circle at 18% 62%,rgba(66,213,140,.055),transparent 24%),var(--bg); }
.project-compass { max-width: 1120px; margin: 0 auto; padding: 24px 0; animation: compassIn .35s ease both; }
.compass-heading { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.compass-heading > div { display: flex; align-items: center; justify-content: center; gap: 10px; }
.compass-step,.compass-time { font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.compass-step { color: #a69dff; }.compass-step i { width: 24px; height: 24px; display: inline-grid; place-items: center; margin-right: 7px; border: 1px solid rgba(120,104,255,.4); border-radius: 50%; background: rgba(120,104,255,.1); font-style: normal; }
.compass-time { padding: 5px 8px; border: 1px solid #2e3038; border-radius: 999px; color: #727580; letter-spacing: 0; }
.compass-heading h2 { margin: 15px 0 9px; font-size: clamp(30px,4vw,47px); line-height: 1.04; letter-spacing: -.055em; }
.compass-heading p { max-width: 660px; margin: auto; color: #9a9da7; font-size: 12px; line-height: 1.65; }
#projectCompassForm { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.72fr); align-items: start; gap: 16px; }
.compass-questions { display: grid; gap: 12px; }
.compass-questions fieldset { min-width: 0; margin: 0; padding: 20px; border: 1px solid #2d3038; border-radius: 17px; background: rgba(20,21,25,.94); box-shadow: 0 18px 55px rgba(0,0,0,.16); }
.compass-questions legend { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 0 0 14px; }
.compass-questions legend > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #393c46; border-radius: 9px; background: #1b1c21; color: #a59cff; font-size: 12px; font-weight: 850; }
.compass-questions legend strong { font-size: 13px; }.compass-questions legend small { color: #737681; font-size: 12px; }
.compass-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.compass-options.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
.compass-options label { min-width: 0; position: relative; cursor: pointer; }
.compass-options input { position: absolute; opacity: 0; pointer-events: none; }
.compass-options label > span { min-height: 92px; position: relative; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; grid-template-rows: auto 1fr; align-items: start; gap: 4px 10px; padding: 14px; border: 1px solid #30333b; border-radius: 12px; background: #111216; transition: border-color .16s,background-color .16s,transform .16s,box-shadow .16s; }
.compass-options.compact label > span { min-height: 128px; grid-template-columns: 26px minmax(0,1fr) auto; padding: 13px; }
.compass-options label:hover > span { border-color: #4a4d58; transform: translateY(-1px); }
.compass-options input:checked + span { border-color: #796af0; background: linear-gradient(145deg,rgba(120,104,255,.12),rgba(120,104,255,.035)); box-shadow: inset 0 0 0 1px rgba(151,139,255,.12),0 10px 26px rgba(63,49,155,.1); }
.compass-options input:focus-visible + span { outline: 2px solid #9b90ff; outline-offset: 3px; }
.compass-options span > i { width: 28px; height: 28px; grid-row: 1 / 3; display: grid; place-items: center; border: 1px solid #393c46; border-radius: 8px; background: #1c1d23; color: #aaa2ff; font-size: 12px; font-style: normal; }
.compass-options span > b { min-width: 0; padding-top: 2px; font-size: 12px; line-height: 1.3; }.compass-options span > small { grid-column: 2 / -1; color: #747782; font-size: 12px; line-height: 1.5; }
.compass-options span > em { grid-column: 3; grid-row: 1; justify-self: end; padding: 3px 5px; border-radius: 999px; background: rgba(66,213,140,.09); color: #70dca6; font-size: 12px; font-style: normal; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.compass-options.compact span > em { grid-column: 2 / -1; grid-row: 3; justify-self: start; margin-top: 4px; }
.mission-card { position: sticky; top: 0; overflow: hidden; padding: 23px; border: 1px solid rgba(126,111,244,.45); border-radius: 18px; background: radial-gradient(circle at 100% 0,rgba(140,125,255,.22),transparent 43%),linear-gradient(155deg,#1b1a25,#14151a 64%); box-shadow: 0 28px 85px rgba(0,0,0,.34); }
.mission-card:after { content: ""; width: 160px; height: 160px; position: absolute; right: -92px; bottom: -105px; border: 1px solid rgba(132,117,255,.25); border-radius: 50%; box-shadow: 0 0 0 27px rgba(120,104,255,.025),0 0 0 55px rgba(120,104,255,.018); pointer-events: none; }
.mission-card .kicker { color: #a69dff; }.mission-symbol { width: 62px; height: 62px; position: relative; display: grid; place-items: center; margin: 22px 0 19px; border: 1px solid rgba(151,139,255,.35); border-radius: 19px; background: rgba(120,104,255,.1); }
.mission-symbol i { width: 28px; height: 14px; border: 2px solid #a99fff; border-top: 0; border-radius: 0 0 14px 14px; }.mission-symbol b { position: absolute; right: -7px; top: -7px; width: 24px; height: 24px; display: grid; place-items: center; border: 2px solid #191923; border-radius: 50%; background: #7767f2; color: white; font-size: 12px; }
.mission-card h3 { margin: 0 0 9px; font-size: 21px; line-height: 1.12; letter-spacing: -.035em; }.mission-card > p { margin: 0; color: #9295a0; font-size: 12px; line-height: 1.6; }
.mission-card ul { display: grid; gap: 0; margin: 20px 0; padding: 0; border-top: 1px solid #30313a; list-style: none; }
.mission-card li { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid #2b2d34; }.mission-card li > i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #3b3e48; border-radius: 8px; background: #1d1e24; color: #aaa2ff; font-size: 12px; font-style: normal; font-weight: 850; }.mission-card li > span { display: grid; gap: 3px; }.mission-card li strong { font-size: 12px; }.mission-card li small { color: #767985; font-size: 12px; line-height: 1.35; }
.mission-start { width: 100%; min-height: 44px; position: relative; z-index: 1; border: 1px solid #8b7cfb; border-radius: 10px; background: linear-gradient(135deg,#7d6cff,#6250eb); color: white; cursor: pointer; font-size: 12px; font-weight: 850; box-shadow: 0 12px 32px rgba(98,80,235,.24),inset 0 1px rgba(255,255,255,.18); }.mission-start:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(98,80,235,.33),inset 0 1px rgba(255,255,255,.18); }.mission-start b { margin-left: 7px; }
.mission-change { width: 100%; min-height: 32px; position: relative; z-index: 1; margin-top: 7px; border: 0; background: transparent; color: #7d808b; cursor: pointer; font-size: 12px; font-weight: 750; }.mission-change:hover { color: #c8c4ff; }
.project-compass { max-width: 860px; }
.compass-heading { max-width: 690px; margin-bottom: 24px; }
.compass-heading h2 { font-size: clamp(29px,3.7vw,43px); }
.compass-heading h2:focus { outline: none; }
.compass-heading p { max-width: 600px; font-size: 12px; }
.compass-progress { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.compass-progress i { width: 28px; height: 3px; overflow: hidden; border-radius: 3px; background: #2b2d34; }
.compass-progress i.active { background: #8274f5; box-shadow: 0 0 12px rgba(120,104,255,.3); }
.compass-progress i.complete { background: #4a9c73; }
#projectCompassForm { max-width: 760px; display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0 auto; }
.compass-questions fieldset { padding: 24px; }
.compass-questions legend { float: left; grid-template-columns: 1fr auto; margin: 0 0 17px; padding: 0; }
.compass-questions legend + .compass-options { clear: both; }
.compass-questions legend strong { font-size: 12px; }
.mission-card { width: min(620px,100%); position: relative; top: auto; margin: 0 auto; }
.compass-navigation { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.compass-back,.compass-next { min-height: 40px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 800; }
.compass-back { padding: 0 12px; border: 1px solid transparent; background: transparent; color: #898c96; }
.compass-back:hover { border-color: #343741; background: #17181d; color: white; }
.compass-next { min-width: 130px; margin-left: auto; padding: 0 16px; border: 1px solid #8173f3; background: linear-gradient(135deg,#7766f3,#6250df); color: white; box-shadow: 0 9px 25px rgba(98,80,223,.2); }
.compass-next:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(98,80,223,.28); }
@keyframes compassIn { from { opacity: 0; transform: translateY(8px); } }

.system-journey-page { height: 100%; overflow-y: auto; padding: 48px 28px 80px; background: radial-gradient(circle at 82% 6%,rgba(120,104,255,.16),transparent 29%),radial-gradient(circle at 8% 70%,rgba(66,213,140,.06),transparent 25%),var(--bg); }
.system-journey-page > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.system-journey-hero { display: grid; grid-template-columns: minmax(0,1fr) 250px; align-items: end; gap: 38px; margin-bottom: 26px; }
.system-journey-hero h1 { max-width: 760px; margin: 10px 0 12px; font-size: clamp(40px,5vw,66px); line-height: .98; letter-spacing: -.06em; }
.system-journey-hero p { max-width: 660px; margin: 0; color: #989ba5; font-size: 12px; line-height: 1.65; }
.journey-position { display: grid; gap: 5px; padding: 16px; border: 1px solid rgba(120,104,255,.32); border-radius: 14px; background: linear-gradient(145deg,rgba(120,104,255,.12),rgba(120,104,255,.025)); }
.journey-position span { color: #9187f7; font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }.journey-position strong { font-size: 16px; line-height: 1.15; }.journey-position small { color: #7f828d; font-size: 12px; line-height: 1.45; }
.system-journey-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(310px,.65fr); gap: 14px; align-items: start; }
.journey-roadmap,.journey-current,.journey-evidence,.journey-future-ready { border: 1px solid #2d2f37; border-radius: 18px; background: rgba(20,21,25,.94); box-shadow: 0 22px 70px rgba(0,0,0,.18); }
.journey-roadmap { padding: 23px; }.journey-roadmap > header h2,.journey-evidence h2 { margin: 7px 0 0; font-size: 20px; letter-spacing: -.025em; }
.journey-roadmap > header p { margin: 6px 0 0; color: #777a84; font-size: 12px; line-height: 1.45; }
.journey-setup-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 17px; padding-bottom: 16px; border-bottom: 1px solid #2d2f37; }
.journey-setup-summary > span { min-width: 0; display: grid; gap: 3px; padding: 10px 11px; border: 1px solid #2d2f37; border-radius: 9px; background: #111216; }
.journey-setup-summary strong { font-size: 12px; font-weight: 650; }.journey-setup-summary small { color: #747782; font-size: 11px; line-height: 1.35; }
.journey-roadmap ol { display: grid; gap: 7px; margin: 19px 0 0; padding: 0; list-style: none; }
.system-stage { position: relative; }.system-stage:not(:last-child):after { content:""; width: 1px; height: 15px; position: absolute; left: 21px; bottom: -11px; background: #30323a; }.system-stage.complete:not(:last-child):after { background: rgba(66,213,140,.42); }
.system-stage button { width: 100%; min-height: 68px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid #2c2f36; border-radius: 12px; background: #111216; color: inherit; cursor: pointer; text-align: left; transition: border-color .16s,transform .16s,background-color .16s; }
.system-stage button:hover { transform: translateY(-1px); border-color: #484b57; }.system-stage.current button { border-color: #7769ee; background: linear-gradient(135deg,rgba(120,104,255,.12),#131419 68%); box-shadow: 0 12px 30px rgba(89,72,229,.12); }.system-stage.complete button { border-color: rgba(66,213,140,.18); }
.system-stage.locked button { cursor: default; opacity: .66; }.system-stage.locked button:hover { transform: none; border-color: #2c2f36; }
.system-stage-number { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #373a43; border-radius: 11px; background: #191a20; color: #8b8e98; font-size: 12px; font-style: normal; font-weight: 850; }.system-stage.complete .system-stage-number { border-color: rgba(66,213,140,.32); background: rgba(66,213,140,.08); color: #5ddd9d; }.system-stage.current .system-stage-number { border-color: #7f72f1; background: rgba(120,104,255,.15); color: #c0baff; }
.system-stage-copy { min-width: 0; display: grid; gap: 4px; }.system-stage-copy strong { font-size: 12px; }.system-stage-copy small { color: #747782; font-size: 12px; line-height: 1.4; }
.system-stage-status { padding: 5px 7px; border-radius: 7px; background: rgba(255,255,255,.04); color: #777a84; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.system-stage.complete .system-stage-status { background: rgba(66,213,140,.08); color: #62dda0; }.system-stage.current .system-stage-status { background: rgba(120,104,255,.13); color: #b4adff; }.system-stage.review .system-stage-status { background: rgba(255,185,75,.09); color: #dfaa54; }
.journey-current { overflow: hidden; position: sticky; top: 18px; }.journey-current > header { padding: 22px; background: radial-gradient(circle at 100% 0,rgba(120,104,255,.2),transparent 54%),linear-gradient(145deg,rgba(120,104,255,.09),transparent); border-bottom: 1px solid #2b2e35; }.journey-current-step { display: inline-flex; align-items: center; gap: 6px; color: #9b92fb; font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }.journey-current-step i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #7769e9; border-radius: 50%; font-style: normal; }.journey-current h2 { margin: 12px 0 7px; font-size: 25px; line-height: 1.05; letter-spacing: -.04em; }.journey-current header p { margin: 0; color: #8b8e98; font-size: 12px; line-height: 1.55; }
.journey-current-body { display: grid; gap: 14px; padding: 19px 22px 22px; }.journey-current-body > span { color: #747782; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.journey-current-body ul { display: grid; gap: 7px; margin: -4px 0 0; padding: 0; list-style: none; }.journey-current-body li { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 8px; color: #9699a3; font-size: 12px; line-height: 1.4; }.journey-current-body li i { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #353842; border-radius: 7px; color: #9188ed; font-size: 12px; font-style: normal; font-weight: 850; }
.journey-primary-action { min-height: 42px; border: 1px solid #8a7df4; border-radius: 10px; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; cursor: pointer; font-size: 12px; font-weight: 850; box-shadow: 0 11px 28px rgba(98,80,223,.2); }.journey-primary-action:hover { transform: translateY(-1px); }
.journey-honesty { padding: 10px 11px; border: 1px solid #2b2e35; border-radius: 9px; background: #101115; color: #737680; font-size: 12px; line-height: 1.5; }.journey-honesty strong { color: #a8a3dc; }
.journey-dashboard { display: grid; gap: 10px; }
.journey-current-work { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border: 1px solid #2d2f37; border-radius: 12px; background: rgba(20,21,25,.94); }
.journey-current-work > div:first-child { min-width: 0; display: grid; gap: 4px; }
.journey-current-work h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.journey-current-work p { margin: 0; color: #777a84; font-size: 12px; }
.journey-current-work-actions { display: flex; align-items: center; gap: 8px; }
.journey-current-work-actions button { min-height: 38px; padding: 0 13px; border: 1px solid #3b3e48; border-radius: 8px; background: #1b1c21; color: #c5c0f8; cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; }
.journey-current-work-actions .journey-primary-action { border-color: #8a7df4; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; }
.journey-system-setup { border: 1px solid #2d2f37; border-radius: 10px; background: rgba(20,21,25,.8); }
.journey-system-setup summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; font-size: 12px; font-weight: 600; }
.journey-system-setup summary small { color: #777a84; font-size: 11px; font-weight: 400; }
.journey-system-setup > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 0 14px 14px; }
.journey-system-setup > div > span { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 2px 8px; align-items: center; padding: 9px 10px; border: 1px solid #2d2f37; border-radius: 8px; }
.journey-system-setup i { grid-row: 1 / 3; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(66,213,140,.35); border-radius: 7px; color: #62dda0; font-style: normal; }
.journey-system-setup b { font-size: 12px; font-weight: 600; }
.journey-system-setup small { color: #777a84; font-size: 11px; }
.journey-back { display: block; margin: 0 0 14px; padding: 0; border: 0; background: transparent; color: #aaa2ff; cursor: pointer; font-size: 12px; font-weight: 600; }
.journey-back:hover { text-decoration: underline; }
.journey-evidence { margin-top: 14px; padding: 23px; }.journey-evidence > header { display: flex; align-items: end; justify-content: space-between; gap: 30px; }.journey-evidence > header > p { max-width: 330px; margin: 0; color: #777a84; font-size: 12px; line-height: 1.5; text-align: right; }
.journey-add-component { min-height: 36px; padding: 0 12px; border: 1px solid #3b3e48; border-radius: 8px; background: #1b1c21; color: #c5c0f8; cursor: pointer; font-size: 12px; font-weight: 600; }
.journey-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 17px; }.journey-metric { min-width: 0; padding: 13px; border: 1px solid #2b2e35; border-radius: 11px; background: #111216; }.journey-metric strong { display: block; color: #d7d4ff; font-size: 20px; letter-spacing: -.04em; }.journey-metric span { display: block; margin-top: 4px; color: #767984; font-size: 12px; line-height: 1.35; }
.journey-components { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 9px; }.journey-component-card { display: grid; grid-template-columns: 37px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid #2c2f37; border-radius: 11px; background: linear-gradient(145deg,rgba(120,104,255,.04),#111216 55%); }.journey-component-card.current { border-color: #7769ee; }.journey-component-card > i { width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid #444052; border-radius: 10px; color: #aaa2ff; font-size: 12px; font-style: normal; font-weight: 850; }.journey-component-card > span { min-width: 0; display: grid; gap: 3px; }.journey-component-card strong { font-size: 12px; }.journey-component-card small { color: #777a84; font-size: 12px; line-height: 1.4; }.journey-component-card > b { grid-column: 3; grid-row: 1; align-self: start; padding: 3px 6px; border-radius: 5px; background: rgba(120,104,255,.1); color: #aaa2ff; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }.journey-component-card button { grid-column: 3; grid-row: 1; align-self: end; min-height: 30px; margin-top: 20px; padding: 0 9px; border: 1px solid #3b3e48; border-radius: 8px; background: #1b1c21; color: #c5c0f8; cursor: pointer; font-size: 12px; font-weight: 800; }.journey-component-card button:hover { border-color: #7669e7; }
.journey-components-empty { grid-column: 1 / -1; padding: 16px; border: 1px dashed #343741; border-radius: 11px; color: #777a84; font-size: 12px; text-align: center; }
.journey-future-ready { display: grid; grid-template-columns: 48px 1fr; gap: 14px; margin-top: 14px; padding: 18px 20px; background: linear-gradient(135deg,rgba(66,213,140,.055),rgba(120,104,255,.055)); }.journey-future-ready > i { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(66,213,140,.25); border-radius: 13px; color: #67dba1; font: 800 12px ui-monospace,SFMono-Regular,Menlo,monospace; }.journey-future-ready > div { display: grid; gap: 5px; }.journey-future-ready strong { font-size: 12px; }.journey-future-ready p { max-width: 820px; margin: 0; color: #7f828d; font-size: 12px; line-height: 1.55; }

.design-workspace { height: 100%; display: grid; grid-template-columns: 286px minmax(0,1fr); }
.library { overflow-y: auto; padding: 24px 16px 40px; border-right: 1px solid var(--line); background: var(--panel); }.library section + section { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line-soft); }
.library-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }.library-heading small { color: #656873; font-size: 12px; }.section-help { margin: -3px 0 12px; color: #727580; font-size: 12px; line-height: 1.5; }
.journey-section { padding-bottom: 1px; }.journey-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }.journey-heading small { color: #777a84; font-size: 12px; }.journey-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; margin: 0 0 13px; padding: 0; list-style: none; }.journey-steps li { min-width: 0; display: grid; justify-items: center; gap: 5px; position: relative; color: #555862; font-size: 12px; }.journey-steps li:before { content: ""; width: calc(100% - 18px); height: 1px; position: absolute; left: calc(-50% + 9px); top: 9px; background: #2a2c33; }.journey-steps li:first-child:before { display: none; }.journey-steps li i { width: 18px; height: 18px; z-index: 1; display: grid; place-items: center; border: 1px solid #343741; border-radius: 50%; background: #17181c; color: #737681; font-size: 12px; font-style: normal; font-weight: 800; }.journey-steps li.complete { color: #7fdbad; }.journey-steps li.complete:before { background: rgba(66,213,140,.42); }.journey-steps li.complete i { border-color: rgba(66,213,140,.45); background: rgba(66,213,140,.1); color: #61dfa0; }.journey-steps li.current { color: #c4c0ff; }.journey-steps li.current i { border-color: #7668ed; background: rgba(120,104,255,.15); color: #b4acff; box-shadow: 0 0 0 4px rgba(120,104,255,.06); }.journey-guidance { padding: 13px; border: 1px solid rgba(120,104,255,.28); border-radius: 12px; background: linear-gradient(145deg,rgba(120,104,255,.095),rgba(120,104,255,.025)); }.journey-next { color: #958bff; font-size: 12px; font-weight: 850; letter-spacing: .12em; }.journey-guidance > strong { display: block; margin-top: 7px; font-size: 12px; line-height: 1.3; }.journey-guidance > p { margin: 6px 0 11px; color: #8a8d97; font-size: 12px; line-height: 1.55; }.journey-guidance > button { width: 100%; min-height: 34px; border: 1px solid #8072f1; border-radius: 8px; background: linear-gradient(135deg,#7564f2,#6250df); color: white; cursor: pointer; font-size: 12px; font-weight: 800; }.journey-guidance > button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(98,80,223,.22); }.journey-guidance > button:disabled { opacity: .45; cursor: default; }.journey-guidance button b { margin-left: 5px; }.journey-guidance details { margin-top: 9px; }.journey-guidance summary { color: #777a84; cursor: pointer; font-size: 12px; font-weight: 750; }.journey-guidance details p { margin: 7px 0 0; color: #747782; font-size: 12px; line-height: 1.55; }.binding-slot.guide-attention { border-color: #8d80ff; background: rgba(120,104,255,.12); outline: 3px solid rgba(120,104,255,.09); animation: guidePulse 1.2s ease-in-out 2; }@keyframes guidePulse { 50% { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(90,73,232,.16); } }
.component-source { width: 100%; min-height: 67px; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid #30323a; border-radius: 11px; background: #191a1f; text-align: left; cursor: grab; }.component-source + .component-source { margin-top: 7px; }.component-source:hover { border-color: #4b4e59; transform: translateY(-1px); }.component-source.active { border-color: rgba(120,104,255,.5); background: rgba(120,104,255,.075); }.raw-button { width: 58px; height: 34px; display: grid; place-items: center; border: 1px solid #8a8a8a; border-radius: 2px; background: #efefef; color: #111; font: 12px serif; }.raw-input { width: 58px; display: grid; gap: 3px; color: #b8bac3; text-align: left; }.raw-input i { font-size: 12px; font-style: normal; }.raw-input b { height: 27px; display: flex; align-items: center; padding: 0 7px; border: 1px solid #6d707b; border-radius: 5px; background: #f4f5f7; color: #35363c; font-size: 12px; font-weight: 650; }.component-source > span:nth-child(2) { display: grid; gap: 3px; }.component-source strong { font-size: 12px; }.component-source small { color: #777a84; font-size: 12px; }.component-source > b { color: #9185ff; }
.token-list { display: grid; gap: 6px; }.token-target-guide { position: relative; display: grid; gap: 5px; margin-bottom: 4px; padding: 12px; border: 1px solid rgba(126,111,245,.42); border-radius: 11px; background: linear-gradient(145deg,rgba(120,104,255,.14),rgba(120,104,255,.045)); }.token-target-guide > span { color: #9b91ff; font-size: 12px; font-weight: 850; letter-spacing: .12em; }.token-target-guide > strong { padding-right: 20px; font-size: 12px; }.token-target-guide p { margin: 1px 0 0; color: #858893; font-size: 12px; line-height: 1.5; }.token-target-guide p b { color: #c3bdff; font: 12px ui-monospace,monospace; }.token-target-close { width: 24px; height: 24px; position: absolute; top: 7px; right: 7px; border: 0; border-radius: 6px; background: transparent; color: #858893; cursor: pointer; }.token-target-close:hover { background: rgba(255,255,255,.06); color: white; }.token-target-remove { justify-self: start; margin-top: 3px; padding: 5px 7px; border: 1px solid #484257; border-radius: 6px; background: #1d1b23; color: #a9a4b4; cursor: pointer; font-size: 12px; font-weight: 750; }.token-card { width: 100%; min-height: 47px; display: grid; grid-template-columns: 27px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; cursor: grab; }.token-card:hover,.token-card.selected { border-color: #30323a; background: #1b1c21; }.token-card.selected { border-color: #7568ed; background: rgba(120,104,255,.105); box-shadow: inset 3px 0 #8376f5; }.token-card.unsuitable { opacity: .52; cursor: not-allowed; }.token-card.unsuitable:hover { border-color: rgba(255,185,75,.25); background: rgba(255,185,75,.035); }.token-visual { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; background: var(--token-color,#24262d); color: #c9cbd2; font-size: 12px; font-weight: 750; }.token-card > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }.token-card strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }.token-card small { overflow: hidden; color: #656873; font: 12px ui-monospace,monospace; text-overflow: ellipsis; white-space: nowrap; }.token-card > b { color: #555862; font-size: 12px; }.token-card .token-fit { padding: 3px 4px; border-radius: 4px; font-size: 12px; letter-spacing: .05em; }.token-card .token-fit.recommended { background: rgba(66,213,140,.1); color: #5edc9d; }.token-card .token-fit.compatible { background: rgba(120,104,255,.11); color: #aaa2ff; }.token-card .token-fit.foundation { background: rgba(255,185,75,.09); color: #d9aa59; }.token-card .token-fit.proposal { background: rgba(255,185,75,.1); color: #efbd68; }.token-card .token-fit.incompatible { color: #a17f4b; }
.token-editor { margin-top: 10px; padding: 12px; border: 1px solid rgba(120,104,255,.25); border-radius: 10px; background: rgba(120,104,255,.06); }.token-editor label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #9497a1; font-size: 12px; }.token-editor input[type="color"] { width: 38px; height: 32px; padding: 0; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }.token-editor input[type="number"] { width: 70px; height: 32px; border: 1px solid #3a3d47; border-radius: 7px; background: #101115; color: white; padding: 0 8px; }
.token-group-label { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 7px 3px; }.token-group-title { display: inline-flex; align-items: center; gap: 5px; }.token-group-label strong { color: #a9acb5; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }.token-group-label .token-group-copy { color: #585b65; font-size: 12px; text-align: right; }.token-group-label:not(:first-child) { margin-top: 8px; padding-top: 14px; border-top: 1px solid #22242a; }.term-help { position: static; }.term-help summary { width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid #3a3d47; border-radius: 50%; background: #191a20; color: #8f92a0; cursor: help; font-size: 12px; font-weight: 850; list-style: none; }.term-help summary::-webkit-details-marker { display: none; }.term-help summary:hover,.term-help summary:focus-visible,.term-help[open] summary { border-color: #7669e7; color: #c1bbff; outline: 0; }.term-help [role="tooltip"] { position: absolute; z-index: 12; left: 7px; right: 7px; top: calc(100% + 5px); padding: 9px 10px; border: 1px solid #464050; border-radius: 8px; background: #202126; box-shadow: 0 12px 28px rgba(0,0,0,.32); color: #a7aab3; font-size: 12px; line-height: 1.5; text-transform: none; letter-spacing: 0; }.term-help:not([open]) [role="tooltip"] { display: none; }
.token-editor { display: grid; gap: 8px; }.token-editor > strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }.token-editor p { margin: 0; color: #777a84; font-size: 12px; line-height: 1.5; }.token-editor p b { color: #c5c0ff; }.editor-kicker { color: #8f84ff; font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.canvas-column { min-width: 0; display: flex; flex-direction: column; background: #0b0c0f; }.canvas-toolbar { height: 54px; flex: 0 0 54px; display: flex; align-items: center; gap: 18px; padding: 0 20px; border-bottom: 1px solid var(--line); background: #111216; }.canvas-toolbar > div { display: flex; align-items: center; gap: 8px; }.canvas-toolbar strong { font-size: 12px; }.canvas-toolbar p { min-width: 0; overflow: hidden; margin: 0; color: #6f727d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.canvas-toolbar button { min-height: 28px; padding: 0 7px; border: 0; border-radius: 6px; background: transparent; color: #777a84; cursor: pointer; font-size: 12px; }.canvas-toolbar button:hover:not(:disabled) { background: #202127; color: #d4d5da; }.canvas-toolbar button:disabled { opacity: .35; cursor: default; }.canvas-toolbar .canvas-actions { margin-left: auto; gap: 10px; }.history-actions { flex: 0 0 auto; gap: 6px !important; padding-right: 10px; border-right: 1px solid var(--line); }.history-actions button { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 5px 0 9px; border: 1px solid #30323a; border-radius: 9px; background: #191a1f; color: #a9abb4; box-shadow: inset 0 1px rgba(255,255,255,.035),0 3px 10px rgba(0,0,0,.14); font-weight: 720; transition: border-color .16s,background-color .16s,color .16s,opacity .16s,transform .12s,box-shadow .16s; }.history-actions button[data-empty="true"] { color: #72757f; opacity: .72; }.history-actions button:hover:not(:disabled) { border-color: #514a73; background: #202127; color: #f1f0f7; opacity: 1; box-shadow: inset 0 1px rgba(255,255,255,.05),0 5px 15px rgba(0,0,0,.2); }.history-actions button:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 1px 3px rgba(0,0,0,.24); }.history-actions button:focus-visible { outline: 2px solid #8174f3; outline-offset: 2px; }.history-actions button:disabled { border-color: #272930; background: #15161a; box-shadow: none; opacity: .42; }.history-actions svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.history-actions .history-label { font-size: 12px; }.history-actions kbd { min-width: 23px; height: 22px; display: grid; place-items: center; padding: 0 5px; border: 1px solid #323540; border-radius: 6px; background: #24262d; color: #9a9daa; box-shadow: 0 1px 3px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.04); font: 650 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }.history-actions button[data-empty="true"] kbd { color: #6f727c; }.history-actions button:hover:not(:disabled) kbd { border-color: #444755; color: #d0d2da; }.history-actions button:disabled kbd { border-color: #292b32; background: #1b1c21; }
.wizard-stars { width: 22px; height: 20px; position: relative; display: block; }.wizard-stars i { position: absolute; color: #e4e0ff; font-style: normal; line-height: 1; }.wizard-stars i:nth-child(1) { left: 1px; top: 6px; font-size: 12px; }.wizard-stars i:nth-child(2) { right: 1px; top: 1px; font-size: 12px; }.wizard-stars i:nth-child(3) { right: 3px; bottom: 0; font-size: 12px; }.wizard-card-action:hover .wizard-stars i { animation: twinkle .9s ease-in-out infinite alternate; }.wizard-card-action:hover .wizard-stars i:nth-child(2) { animation-delay: -.3s; }.wizard-card-action:hover .wizard-stars i:nth-child(3) { animation-delay: -.6s; }@keyframes twinkle { from { opacity: .35; transform: scale(.7) rotate(-8deg); } to { opacity: 1; transform: scale(1.18) rotate(9deg); } }
.canvas-column { min-height: 0; overflow: hidden; }.canvas { flex: 1; min-height: 0; overflow: auto; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 50px; background-color: #0c0d10; background-image: radial-gradient(#282a31 1px,transparent 1px); background-size: 20px 20px; }.canvas > #canvasContent { width: 100%; display: grid; justify-items: center; flex: 0 0 auto; }@supports (justify-content: safe center) { .canvas { justify-content: safe center; } }.canvas.drag-over:after { content: "Drop to add"; position: absolute; inset: 24px; display: grid; place-items: center; border: 2px dashed #7464ed; border-radius: 18px; background: rgba(120,104,255,.07); color: #c0baff; font-size: 12px; font-weight: 750; }
.empty-canvas { max-width: 350px; text-align: center; }.empty-symbol { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px solid #353741; border-radius: 22px; background: #15161a; box-shadow: 0 18px 50px rgba(0,0,0,.25); }.empty-symbol span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: rgba(120,104,255,.12); color: #a79dff; font-size: 18px; }.empty-canvas h2 { margin: 0 0 8px; font-size: 18px; }.empty-canvas p { margin: 0; color: #797c87; font-size: 12px; line-height: 1.55; }.empty-wizard-action { min-height: 39px; margin-top: 18px; padding: 0 17px; border: 1px solid #8375f7; border-radius: 10px; background: linear-gradient(135deg,#7c6cff,#6250eb); color: white; cursor: pointer; font-size: 12px; font-weight: 800; box-shadow: 0 11px 30px rgba(98,80,235,.25); }.empty-wizard-action span { margin-right: 6px; }
.component-instance { min-width: 500px; padding: 28px; border: 1px solid #30323a; border-radius: 18px; background: #15161a; box-shadow: 0 28px 80px rgba(0,0,0,.32); }.instance-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }.instance-title { display: grid; gap: 4px; }.instance-title span { color: #777a84; font-size: 12px; }.instance-title strong { font-size: 13px; }.instance-actions { display: flex; align-items: center; gap: 10px; }.instance-actions > b { padding: 4px 7px; border-radius: 5px; background: rgba(255,185,75,.08); color: #e7b761; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }.instance-actions > b.styled { background: rgba(66,213,140,.08); color: #58db98; }.wizard-card-action { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid #8b7cfb; border-radius: 10px; background: linear-gradient(135deg,#7d6cff,#6250eb); color: white; cursor: pointer; font-size: 12px; font-weight: 850; box-shadow: 0 10px 28px rgba(98,80,235,.24),inset 0 1px rgba(255,255,255,.2); }.wizard-card-action:hover { transform: translateY(-1px); box-shadow: 0 13px 32px rgba(98,80,235,.34),inset 0 1px rgba(255,255,255,.2); }
.wizard-progress { min-width: 430px; display: grid; justify-items: center; padding: 46px 40px; border: 1px solid rgba(126,109,255,.38); border-radius: 20px; background: radial-gradient(circle at 50% 0,rgba(122,104,255,.18),transparent 48%),#15161a; box-shadow: 0 30px 90px rgba(0,0,0,.42); text-align: center; }.wizard-orb { width: 86px; height: 86px; position: relative; display: grid; place-items: center; margin-bottom: 23px; border: 1px solid rgba(154,142,255,.3); border-radius: 27px; background: rgba(116,98,243,.12); }.wizard-orb:before,.wizard-orb:after { content: ""; position: absolute; border: 1px solid rgba(130,115,255,.2); border-radius: 50%; animation: wizardPulse 1.6s ease-out infinite; }.wizard-orb:before { inset: -12px; }.wizard-orb:after { inset: -25px; animation-delay: -.8s; }.wizard-orb span { color: #b5adff; font-size: 32px; animation: wizardSpin 2.4s ease-in-out infinite; }.wizard-progress .kicker { color: #9186ff; }.wizard-progress h2 { margin: 10px 0 8px; font-size: 20px; }.wizard-progress p { min-height: 18px; margin: 0; color: #898c96; font-size: 12px; }.wizard-progress-bar { width: 210px; height: 3px; overflow: hidden; margin-top: 22px; border-radius: 3px; background: #282a31; }.wizard-progress-bar i { display: block; width: 45%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#7361ee,#a89fff); animation: wizardBar 1.1s ease-in-out infinite alternate; }@keyframes wizardPulse { 0% { opacity: .7; transform: scale(.82); } 100% { opacity: 0; transform: scale(1.2); } }@keyframes wizardSpin { 0%,100% { transform: rotate(-7deg) scale(.9); } 50% { transform: rotate(8deg) scale(1.08); } }@keyframes wizardBar { from { transform: translateX(-35%); } to { transform: translateX(155%); } }
.component-stage { min-height: 180px; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid #292b32; border-radius: 13px; background: #f8f8f9; transition: border-color .16s,background-color .16s,box-shadow .16s; }.component-stage.token-drop-ready { border-color: #7565f3; background: #f2f0ff; box-shadow: inset 0 0 0 2px rgba(117,101,243,.24); }.component-stage.token-drop-ready:after { content: attr(data-drop-label); position: absolute; left: 50%; bottom: 13px; z-index: 2; transform: translateX(-50%); padding: 6px 9px; border-radius: 7px; background: #171820; color: #f2f0ff; font-size: 12px; font-weight: 800; box-shadow: 0 8px 24px rgba(23,24,32,.22); pointer-events: none; }.component-stage.token-drop-ready .live-button { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(117,101,243,.18),0 12px 28px rgba(23,24,32,.14); }.live-button { cursor: default; }.binding-slots { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; margin-top: 12px; }.binding-slot { min-height: 58px; display: grid; align-content: center; gap: 4px; padding: 8px; border: 1px dashed #383b45; border-radius: 9px; background: #111216; text-align: left; cursor: pointer; }.binding-slot:hover,.binding-slot.ready { border-color: #7565f3; background: rgba(120,104,255,.07); }.binding-slot.bound { border-style: solid; }.binding-slot span { color: #737681; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }.binding-slot strong { overflow: hidden; text-overflow: ellipsis; color: #c7c9d0; font-size: 12px; }.binding-slot i { width: 10px; height: 10px; border-radius: 3px; background: var(--slot-color,#444751); }.instance-help { margin: 12px 0 0; color: #6e717c; font-size: 12px; text-align: center; }
.state-tabs { display: inline-flex; gap: 3px; margin-bottom: 10px; padding: 3px; border: 1px solid #2b2d34; border-radius: 9px; background: #101115; }.state-tabs button { min-height: 27px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #70737d; cursor: pointer; font-size: 12px; font-weight: 750; }.state-tabs button.active { background: #292b32; color: white; box-shadow: inset 0 0 0 1px #393c46; }
.binding-intro { display: flex; align-items: baseline; gap: 8px; margin-top: 15px; }.binding-intro strong { flex: 0 0 auto; font-size: 12px; }.binding-intro span { color: #70737d; font-size: 12px; }.live-button { min-height: revert; transition: background-color .16s,color .16s,border-color .16s,border-radius .16s,box-shadow .16s,padding .16s,transform .16s; }.live-button.token-click-target { cursor: pointer; box-shadow: 0 0 0 4px rgba(117,101,243,.16); }.accessibility-measure { position: fixed !important; left: -10000px !important; top: 0 !important; visibility: hidden !important; white-space: nowrap !important; pointer-events: none !important; }
.design-workspace.guided-button-mode .token-section { display: none; }.guided-button-instance { width: min(690px,100%); }.guided-button-instance .component-stage { min-height: 210px; }.button-focus-guide { display: grid; gap: 17px; margin-top: 22px; padding-top: 22px; border-top: 1px solid #2b2d34; }.button-focus-copy > span { color: #978dff; font-size: 12px; font-weight: 850; letter-spacing: .12em; }.button-focus-copy h2 { margin: 7px 0 5px; font-size: 18px; letter-spacing: -.025em; }.button-focus-copy p { max-width: 500px; margin: 0; color: #898c96; font-size: 12px; line-height: 1.55; }.button-focus-recommendation { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 11px 16px; padding: 17px; border: 1px solid rgba(120,104,255,.4); border-radius: 13px; background: linear-gradient(135deg,rgba(120,104,255,.12),rgba(120,104,255,.035)); box-shadow: inset 0 1px rgba(255,255,255,.025); }.button-focus-kicker { grid-column: 1 / -1; color: #a49bff; font-size: 12px; font-weight: 850; letter-spacing: .12em; }.button-focus-token { min-width: 0; display: grid; grid-template-columns: 39px minmax(0,1fr); align-items: center; gap: 11px; }.button-focus-token > span { min-width: 0; display: grid; gap: 4px; }.button-focus-token strong { overflow: hidden; font: 750 12px ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }.button-focus-token small { color: #858893; font-size: 12px; }.guided-token-swatch,.guided-token-value { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: var(--guided-token-colour,#2a2c33); color: #dadbe0; font-size: 12px; font-style: normal; font-weight: 800; }.button-focus-recommendation details { grid-column: 1; }.button-focus-recommendation summary { color: #a9a3e2; cursor: pointer; font-size: 12px; font-weight: 750; }.button-focus-recommendation details p { max-width: 460px; margin: 7px 0 0; color: #81848e; font-size: 12px; line-height: 1.55; }.button-focus-primary { min-height: 39px; padding: 0 15px; border: 1px solid #897cf5; border-radius: 9px; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; cursor: pointer; font-size: 12px; font-weight: 830; box-shadow: 0 9px 24px rgba(98,80,223,.22); }.button-focus-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 29px rgba(98,80,223,.3); }.button-focus-primary b { margin-left: 6px; }.button-focus-alternatives { display: grid; gap: 8px; }.button-focus-alternatives > span { color: #696c77; font-size: 12px; font-weight: 800; letter-spacing: .1em; }.button-focus-alternatives > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }.button-focus-alternatives button { min-width: 0; display: grid; grid-template-columns: 31px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #30333b; border-radius: 10px; background: #111216; color: #c8cad1; text-align: left; cursor: pointer; }.button-focus-alternatives button:hover,.button-focus-alternatives button:focus-visible { border-color: #7065d6; background: rgba(120,104,255,.055); outline: none; }.button-focus-alternatives .guided-token-swatch,.button-focus-alternatives .guided-token-value { width: 31px; height: 31px; border-radius: 8px; }.button-focus-alternatives button > span { min-width: 0; display: grid; gap: 3px; }.button-focus-alternatives strong { overflow: hidden; font: 700 12px ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }.button-focus-alternatives small { color: #6f727d; font-size: 12px; }.button-focus-alternatives button > b { color: #9489ff; }.button-focus-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 2px; }.button-focus-footer > span { color: #70737d; font-size: 12px; }.button-focus-quiet { min-height: 30px; padding: 0; border: 0; background: transparent; color: #aaa5dc; cursor: pointer; font-size: 12px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }.button-focus-quiet:hover { color: white; }.button-focus-empty { margin: 0; padding: 13px; border: 1px dashed #3a3d47; border-radius: 10px; color: #888b95; font-size: 12px; }.button-focus-complete { gap: 16px; }.button-focus-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }.button-focus-summary li { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 8px; padding: 10px; border: 1px solid rgba(66,213,140,.2); border-radius: 10px; background: rgba(66,213,140,.035); }.button-focus-summary i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(66,213,140,.35); border-radius: 7px; color: #61dfa0; font-size: 12px; font-style: normal; }.button-focus-summary span { display: grid; gap: 3px; }.button-focus-summary strong { font-size: 12px; }.button-focus-summary small { color: #737680; font-size: 12px; line-height: 1.4; }.button-focus-actions { display: flex; align-items: center; gap: 16px; }.button-advanced-switch { display: flex; align-items: center; justify-content: space-between; margin: -8px 0 10px; }.button-advanced-switch button { min-height: 28px; padding: 0; border: 0; background: transparent; color: #aaa5dc; cursor: pointer; font-size: 12px; font-weight: 750; }.button-advanced-switch button:hover { color: white; }.button-advanced-switch span { color: #626570; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.button-focus-token > span > small:first-child { color: #a9a2ff; font-weight: 800; }.button-focus-alternatives summary { color: #8c8f99; cursor: pointer; font-size: 12px; font-weight: 750; }.button-focus-alternatives[open] summary { margin-bottom: 8px; color: #c3bfff; }.button-focus-footer > div { display: flex; align-items: center; gap: 13px; }.button-focus-secondary { min-height: 31px; padding: 0 11px; border: 1px solid #44404f; border-radius: 8px; background: #1a1b20; color: #c5c1e5; cursor: pointer; font-size: 12px; font-weight: 780; }.button-focus-secondary:hover { border-color: #7568df; color: white; }.button-focus-summary { grid-template-columns: 1fr; gap: 0; border-top: 1px solid #2b2e35; }.button-focus-summary li { min-height: 48px; padding: 8px 0; border: 0; border-bottom: 1px solid #2b2e35; border-radius: 0; background: transparent; }.button-focus-summary i { width: 22px; height: 22px; border-radius: 50%; }
.text-input-instance { min-width: 570px; }.text-input-state-tabs { display: flex; }.text-input-state-tabs button { flex: 1; }.text-input-stage { min-height: 230px; padding: 34px; }.live-text-input { width: min(340px,100%); display: grid; gap: 7px; text-align: left; }.live-text-input label { color: #171820; font-size: 12px; font-weight: 780; }.live-text-input input { width: 100%; min-height: 43px; border-width: 1px; border-color: #8b8d95; background: white; color: #171820; font-size: 12px; transition: background-color .16s,color .16s,border-color .16s,border-radius .16s,outline-color .16s; }.live-text-input input::placeholder { color: #777a84; }.live-text-input small { min-height: 13px; color: #62656f; font-size: 12px; line-height: 1.45; }.live-text-input.is-error small { font-weight: 700; }.text-input-instance .binding-slots { grid-template-columns: repeat(3,minmax(0,1fr)); }.text-input-stage.token-click-target { cursor: pointer; }.text-input-stage.token-click-target .live-text-input { filter: drop-shadow(0 0 9px rgba(117,101,243,.16)); }
.token-target-picker { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(8,9,12,.68); backdrop-filter: blur(8px); }.token-target-card { width: min(420px,100%); padding: 24px; border: 1px solid #383b46; border-radius: 18px; background: #17181d; box-shadow: 0 30px 100px rgba(0,0,0,.55); }.token-target-card > header { display: flex; align-items: center; gap: 13px; }.token-target-card header > div { display: grid; gap: 4px; }.token-target-card header span { color: #8f84ff; font-size: 12px; font-weight: 850; letter-spacing: .12em; }.token-target-card h2 { margin: 0; font-size: 18px; }.target-token-swatch,.target-token-size { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: var(--target-color,#2a2c33); color: white; font-size: 12px; font-style: normal; font-weight: 800; }.token-target-card > p { margin: 15px 0; color: #898c96; font-size: 12px; line-height: 1.5; }.token-target-card > p b { color: #d2d4da; }.token-target-options { display: grid; gap: 7px; }.token-target-options button { min-height: 58px; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 11px; padding: 9px 12px; border: 1px solid #30323a; border-radius: 11px; background: #111216; text-align: left; cursor: pointer; }.token-target-options button:hover,.token-target-options button:focus-visible { border-color: #7868f5; background: rgba(120,104,255,.08); outline: none; }.token-target-options button > i { width: 8px; height: 8px; border: 1px solid #7f72ee; border-radius: 50%; }.token-target-options button > span { display: grid; gap: 3px; }.token-target-options strong { font-size: 12px; }.token-target-options small { color: #737681; font: 12px ui-monospace,monospace; }.token-target-options button > b { color: #9489ff; }.token-target-cancel { width: 100%; margin-top: 10px; padding: 10px; border: 0; background: transparent; color: #777a84; cursor: pointer; font-size: 12px; font-weight: 750; }.token-target-cancel:hover { color: white; }

.code-page { height: 100%; overflow-y: auto; max-width: 980px; margin: auto; padding: 55px 28px 80px; }.code-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }.code-hero h1 { margin: 9px 0 8px; font-size: 39px; letter-spacing: -.05em; }.code-hero p { margin: 0; color: #8f929c; font-size: 12px; }.code-hero-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }.code-hero button { min-height: 38px; padding: 0 14px; border: 1px solid #373a44; border-radius: 9px; background: #1a1b20; cursor: pointer; font-size: 12px; font-weight: 750; }.code-hero button:hover:not(:disabled) { border-color: #555966; transform: translateY(-1px); }.code-hero button:disabled { opacity: .36; cursor: default; }.code-hero .package-action { border-color: #8274f3; background: linear-gradient(135deg,#7c6bf8,#6250df); box-shadow: 0 9px 24px rgba(98,80,223,.2); }.package-action span { margin-left: 6px; }
.concept-explainer { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: start; gap: 12px; margin: -10px 0 16px; padding: 13px 15px; border: 1px solid rgba(120,104,255,.28); border-radius: 12px; background: linear-gradient(135deg,rgba(120,104,255,.085),rgba(120,104,255,.025)); }.concept-explainer > i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(139,124,251,.35); border-radius: 10px; background: rgba(120,104,255,.11); color: #afa7ff; font-size: 12px; font-style: normal; font-weight: 850; }.concept-explainer > div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 9px; }.concept-explainer span { color: #9186f1; font-size: 12px; font-weight: 850; letter-spacing: .13em; }.concept-explainer strong { font-size: 12px; }.concept-explainer p { grid-column: 1 / -1; margin: 5px 0 0; color: #858893; font-size: 12px; line-height: 1.55; }
.term-explainer { margin: -10px 0 16px; padding: 10px 0; border-top: 1px solid #2b2e35; border-bottom: 1px solid #2b2e35; }.term-explainer summary { color: #8e8aaf; cursor: pointer; font-size: 12px; font-weight: 750; }.term-explainer p { max-width: 680px; margin: 8px 0 2px; color: #7f828d; font-size: 12px; line-height: 1.6; }.term-explainer strong { color: #b9b4df; }
.component-handoff-switch { display: flex; gap: 7px; margin: -10px 0 16px; }.component-handoff-switch button { min-width: 150px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #30333b; border-radius: 10px; background: #15161a; color: #92959f; text-align: left; cursor: pointer; }.component-handoff-switch button.active { border-color: rgba(120,104,255,.55); background: rgba(120,104,255,.09); color: white; }.component-handoff-switch i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #3a3d47; border-radius: 8px; color: #a59cff; font-size: 12px; font-style: normal; font-weight: 850; }.component-handoff-switch span { display: grid; gap: 2px; }.component-handoff-switch strong { font-size: 12px; }.component-handoff-switch small { color: #70737d; font-size: 12px; }
.handoff-guide { display: grid; grid-template-columns: minmax(250px,1.15fr) minmax(250px,1fr) minmax(180px,.72fr); gap: 18px; align-items: start; margin-bottom: 18px; padding: 20px; border: 1px solid #343741; border-radius: 15px; background: #15161a; box-shadow: 0 18px 50px rgba(0,0,0,.16); }.handoff-guide.ready { border-color: rgba(66,213,140,.32); background: linear-gradient(145deg,rgba(66,213,140,.045),#15161a 55%); }.handoff-copy h2 { margin: 8px 0 6px; font-size: 18px; letter-spacing: -.025em; }.handoff-copy p { margin: 0; color: #858892; font-size: 12px; line-height: 1.55; }.handoff-copy button { min-height: 34px; margin-top: 13px; padding: 0 12px; border: 1px solid #514a73; border-radius: 8px; background: #202027; color: #d8d5ff; cursor: pointer; font-size: 12px; font-weight: 800; }.handoff-copy button:hover { border-color: #7568df; }.handoff-copy button b { margin-left: 5px; }.handoff-guide ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }.handoff-guide li { display: grid; grid-template-columns: 19px 1fr; align-items: center; gap: 7px; color: #777a84; font-size: 12px; line-height: 1.35; }.handoff-guide li i { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #3a3d47; border-radius: 6px; background: #1c1d22; font-style: normal; font-weight: 850; }.handoff-guide li.ready { color: #aeb0b7; }.handoff-guide li.ready i { border-color: rgba(66,213,140,.32); background: rgba(66,213,140,.08); color: #59dc99; }.handoff-guide li.open i { border-color: rgba(255,185,75,.28); background: rgba(255,185,75,.06); color: #d9a958; }.handoff-note { display: grid; gap: 7px; padding: 12px; border: 1px solid #2d3038; border-radius: 10px; background: #101115; }.handoff-note strong { color: #bbb5ff; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }.handoff-note span { color: #747782; font-size: 12px; line-height: 1.55; }
.handoff-guide-simple { grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 18px 20px; border-color: #30333b !important; background: #15161a !important; }.handoff-guide-simple .handoff-copy h2 { margin-top: 0; }.handoff-flow { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }.handoff-guide .handoff-flow li { min-width: 112px; display: grid; grid-template-columns: 23px 1fr; padding: 7px 9px; border-left: 1px solid #30333b; }.handoff-guide .handoff-flow li:first-child { border-left: 0; }.handoff-guide .handoff-flow i { width: 23px; height: 23px; border-radius: 50%; }.handoff-flow span { display: grid; gap: 2px; }.handoff-flow strong { color: #c7c9d0; font-size: 12px; }.handoff-flow small { color: #686b75; font-size: 12px; }.handoff-flow li.complete i { color: #5edc9d; }.handoff-flow li.current i { border-color: #786cf0; color: #b6afff; }
.accessibility-coach { margin: 18px 0; padding: 22px; border: 1px solid #343741; border-radius: 15px; background: #15161a; box-shadow: 0 18px 50px rgba(0,0,0,.13); }.accessibility-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid #292b32; }.accessibility-heading h2 { max-width: 590px; margin: 8px 0 6px; font-size: 18px; letter-spacing: -.025em; }.accessibility-heading p { max-width: 570px; margin: 0; color: #858892; font-size: 12px; line-height: 1.55; }.accessibility-summary { min-width: 116px; display: grid; gap: 3px; padding: 11px 12px; border: 1px solid rgba(66,213,140,.28); border-radius: 10px; background: rgba(66,213,140,.06); }.accessibility-summary strong { color: #63dda0; font-size: 16px; }.accessibility-summary span { color: #8c918f; font-size: 12px; line-height: 1.35; }.accessibility-summary.has-issues { border-color: rgba(255,185,75,.3); background: rgba(255,185,75,.06); }.accessibility-summary.has-issues strong { color: #e2b35e; }.accessibility-columns { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(240px,.8fr); gap: 24px; padding-top: 18px; }.accessibility-group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; }.accessibility-group-title strong { font-size: 12px; }.accessibility-group-title span { color: #666975; font-size: 12px; }.accessibility-group ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }.accessibility-results li { min-height: 55px; display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #2b2d34; border-radius: 10px; background: #111216; }.accessibility-results li > i,.implementation-tests li > i { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #3a3d47; border-radius: 7px; background: #1c1d22; color: #8b8e98; font-style: normal; font-size: 12px; font-weight: 850; }.accessibility-results li > span,.implementation-tests li > span { min-width: 0; display: grid; gap: 3px; }.accessibility-results li strong,.implementation-tests li strong { font-size: 12px; }.accessibility-results li small,.implementation-tests li small { color: #777a84; font-size: 12px; line-height: 1.45; }.accessibility-results li > a { color: #777a84; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }.accessibility-results li > button { grid-column: 2 / -1; justify-self: start; min-height: 27px; padding: 0 9px; border: 1px solid #5a507e; border-radius: 7px; background: #22202c; color: #c8c2ff; cursor: pointer; font-size: 12px; font-weight: 800; }.accessibility-results li > button:hover { border-color: #8375f7; background: rgba(120,104,255,.13); }.accessibility-results li > button b { margin-left: 4px; }.accessibility-results li.pass > i { border-color: rgba(66,213,140,.32); background: rgba(66,213,140,.08); color: #59dc99; }.accessibility-results li.issue { border-color: rgba(255,185,75,.25); background: rgba(255,185,75,.035); }.accessibility-results li.issue > i { border-color: rgba(255,185,75,.34); background: rgba(255,185,75,.08); color: #e2b35e; }.accessibility-results li.open > i { color: #777a84; }.implementation-tests { padding: 14px; border: 1px solid #2b2d34; border-radius: 11px; background: #101115; }.implementation-tests li { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 9px; padding: 7px 0; }.implementation-tests > p { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid #292b32; color: #747782; font-size: 12px; line-height: 1.55; }.implementation-tests > p b { color: #a9a4dc; }
.code-tabs { height: 47px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border: 1px solid #2c2e36; border-bottom: 0; border-radius: 13px 13px 0 0; background: #17181c; }.code-tabs button { min-height: 31px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: #777a84; cursor: pointer; font-size: 12px; font-weight: 750; }.code-tabs button.active { background: #272930; color: white; }.code-tabs span { margin-left: auto; padding-right: 7px; color: #656873; font-size: 12px; }
.code-tools { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 16px; border: 1px solid #2c2e36; border-top-color: #24262d; border-bottom: 0; background: #121317; }.code-tools label { display: flex; align-items: center; gap: 10px; color: #bbbcc3; font-size: 12px; font-weight: 750; }.code-tools label > span:first-child { display: grid; gap: 2px; }.code-tools label small { color: #656873; font-size: 12px; font-weight: 600; }.prefix-input { height: 34px; display: flex; align-items: center; overflow: hidden; border: 1px solid #373a44; border-radius: 8px; background: #0c0d10; }.prefix-input:focus-within { border-color: #7e70ef; box-shadow: 0 0 0 3px rgba(120,104,255,.09); }.prefix-input b { padding-left: 10px; color: #777a84; font: 12px ui-monospace,SFMono-Regular,Menlo,monospace; }.prefix-input input { width: 118px; height: 100%; padding: 0 9px 0 2px; border: 0; outline: 0; background: transparent; color: #f1f1f4; font: 12px ui-monospace,SFMono-Regular,Menlo,monospace; }.code-tools > p { max-width: 380px; display: grid; justify-items: end; gap: 3px; margin: 0; text-align: right; }.code-tools > p strong { color: #c9c4fa; font: 12px ui-monospace,SFMono-Regular,Menlo,monospace; }.code-tools > p span { color: #696c77; font-size: 12px; line-height: 1.4; }
.code-output { min-height: 430px; margin: 0; padding: 25px; overflow: auto; border: 1px solid #2c2e36; border-radius: 0 0 13px 13px; background: #0c0d10; color: #d7d2ff; font: 12px/1.75 ui-monospace,SFMono-Regular,Menlo,monospace; white-space: pre-wrap; }.code-empty { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 14px; color: #727580; }.code-empty span { color: #988dff; font-size: 18px; }.code-empty p { max-width: 340px; font-size: 12px; line-height: 1.5; }
.contract-output { overflow: hidden; border: 1px solid #2c2e36; border-radius: 0 0 15px 15px; background: #0f1013; box-shadow: 0 24px 70px rgba(0,0,0,.16); }
.contract-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 27px; border-bottom: 1px solid #282a31; background: radial-gradient(circle at 92% 0,rgba(120,104,255,.16),transparent 33%),#141519; }.contract-heading h2 { margin: 8px 0 7px; font-size: 25px; letter-spacing: -.045em; }.contract-heading p { max-width: 600px; margin: 0; color: #8d909b; font-size: 12px; line-height: 1.6; }
.build-guide-basics { padding: 25px 27px; border-bottom: 1px solid #282a31; }.build-guide-role { display: grid; grid-template-columns: auto auto minmax(0,1fr); align-items: center; gap: 10px; margin-bottom: 20px; padding: 11px 13px; border: 1px solid rgba(120,104,255,.25); border-radius: 10px; background: rgba(120,104,255,.06); }.build-guide-role span { color: #8f929c; font-size: 12px; font-weight: 750; }.build-guide-role strong { color: #c4beff; font-size: 12px; }.build-guide-role p { margin: 0; color: #7f828c; font-size: 12px; }.build-guide-step { display: grid; grid-template-columns: 27px minmax(0,1fr); align-items: start; gap: 11px; }.build-guide-step > span,.build-step-number { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #454050; border-radius: 50%; color: #aaa2ff; font-size: 12px; font-weight: 850; }.build-guide-step h3 { margin: 2px 0 4px; font-size: 14px; }.build-guide-step p { margin: 0; color: #777a84; font-size: 12px; line-height: 1.55; }.build-guide-use { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin: 17px 0 23px 38px; }.build-guide-use article { padding-top: 11px; border-top: 1px solid #30333b; }.build-guide-use strong { font-size: 12px; }.build-guide-use p { margin: 5px 0 0; color: #777a84; font-size: 12px; line-height: 1.55; }.build-guide-parts { display: grid; grid-template-columns: minmax(220px,.7fr) minmax(240px,1fr); align-items: center; gap: 26px; padding-top: 23px; border-top: 1px solid #30333b; }.build-guide-parts .contract-anatomy-preview { min-height: 120px; }.contract-section > header > div { display: grid; grid-template-columns: 27px minmax(0,1fr); align-items: center; gap: 11px; }.contract-section > header h3 { margin: 0; }.contract-review > header > div:first-child { display: grid; grid-template-columns: 27px minmax(0,1fr); column-gap: 11px; }.contract-review > header .build-step-number { grid-row: 1 / span 2; }.contract-review > header h3,.contract-review > header p { grid-column: 2; }.contract-review > header h3 { margin: 2px 0 0; }
.contract-status { min-width: 165px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; padding: 11px; border: 1px solid rgba(255,185,75,.28); border-radius: 11px; background: rgba(255,185,75,.055); }.contract-status > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,185,75,.09); color: #e0ae58; font-size: 12px; font-style: normal; }.contract-status > span { display: grid; gap: 3px; }.contract-status strong { font-size: 12px; }.contract-status small { color: #777a84; font-size: 12px; line-height: 1.35; }.contract-status.ready { border-color: rgba(66,213,140,.3); background: rgba(66,213,140,.055); }.contract-status.ready > i { background: rgba(66,213,140,.1); color: #64dda0; }
.contract-principles { display: grid; grid-template-columns: .9fr .9fr 1.35fr; gap: 9px; padding: 17px; border-bottom: 1px solid #282a31; }.contract-principles > article { min-width: 0; display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 11px; padding: 14px; border: 1px solid #2c2e36; border-radius: 11px; background: #141519; }.contract-principles article > div:last-child { min-width: 0; display: grid; gap: 5px; }.contract-principles small { color: #6f727d; font-size: 12px; font-weight: 850; letter-spacing: .11em; }.contract-principles strong { font-size: 12px; }.contract-principles p { margin: 0; color: #777a84; font-size: 12px; line-height: 1.5; }.contract-card-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(66,213,140,.25); border-radius: 9px; background: rgba(66,213,140,.07); color: #61dc9e; font-size: 12px; }.contract-card-icon.avoid { border-color: rgba(120,104,255,.28); background: rgba(120,104,255,.07); color: #a39aff; }
.contract-principles > .contract-anatomy { grid-template-columns: minmax(130px,.9fr) 1fr; align-items: center; }.contract-anatomy-preview { min-height: 104px; position: relative; display: grid !important; place-items: center; border: 1px solid #2c2e36; border-radius: 9px; background: #f7f7f9; }.contract-anatomy-preview:before { content: ""; position: absolute; inset: 26px 30px; border: 1px dashed rgba(109,94,252,.42); border-radius: 10px; }.contract-anatomy-preview > span,.contract-anatomy-preview > em { position: absolute; z-index: 2; padding: 3px 5px; border-radius: 5px; background: #18191e; color: #d8d4ff; font-size: 12px; font-style: normal; font-weight: 800; }.contract-anatomy-preview > span { left: 6px; top: 6px; }.contract-anatomy-preview > em { right: 6px; bottom: 6px; }.contract-button-preview { position: relative; z-index: 1; cursor: default; }
.contract-text-input-preview { display: grid !important; gap: 4px; padding: 12px; border: 1px solid #2c2e36; border-radius: 9px; background: #f7f7f9; text-align: left; }.contract-text-input-preview label { color: #171820; font-size: 12px; font-weight: 800; }.contract-text-input-preview input { width: 100%; min-height: 31px; border-width: 1px; background: white; color: #171820; font-size: 12px; }.contract-text-input-preview small { min-height: 9px; color: #676a74; font-size: 12px; }.text-input-anatomy { grid-template-columns: minmax(150px,1fr) 1fr !important; }
.contract-section { padding: 25px 27px; border-bottom: 1px solid #282a31; }.contract-section > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 16px; }.contract-section h3,.contract-review h3 { margin: 7px 0 0; font-size: 17px; letter-spacing: -.03em; }.contract-section > header > p { max-width: 370px; margin: 0; color: #747782; font-size: 12px; line-height: 1.55; text-align: right; }
.contract-state-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.contract-state-card { min-width: 0; padding: 13px; border: 1px solid #2b2d34; border-radius: 11px; background: #121317; }.contract-state-card > header { display: flex; align-items: center; justify-content: space-between; }.contract-state-card > header span { color: #c8c4fa; font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }.contract-state-card > header b { min-width: 31px; padding: 4px 6px; border-radius: 6px; background: rgba(255,185,75,.08); color: #d7a550; font-size: 12px; text-align: center; }.contract-state-card > header b.ready { background: rgba(66,213,140,.08); color: #5cd99a; }.contract-state-card > p { margin: 6px 0 10px; color: #696c77; font-size: 12px; }.contract-state-card ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }.contract-state-card li { min-width: 0; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 7px; padding: 7px; border: 1px solid #292b32; border-radius: 8px; background: #0e0f12; }.contract-state-card li > i { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #353842; border-radius: 6px; color: #777a84; font-size: 12px; font-style: normal; font-weight: 850; }.contract-state-card li > span { min-width: 0; display: grid; gap: 2px; }.contract-state-card li strong { font-size: 12px; }.contract-state-card li small { overflow: hidden; color: #686b76; font: 12px ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }.contract-state-card li > button { min-height: 23px; padding: 0 7px; border: 1px solid #50486e; border-radius: 6px; background: #211f2b; color: #c5bfff; cursor: pointer; font-size: 12px; font-weight: 800; }.contract-state-card li > button:hover { border-color: #786bf0; }.contract-state-card li.ready > i { border-color: rgba(66,213,140,.3); background: rgba(66,213,140,.07); color: #5bd99a; }.contract-state-card li.review { border-color: rgba(255,185,75,.24); }.contract-state-card li.review > i { border-color: rgba(255,185,75,.3); color: #dfa953; }
.behaviour-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }.behaviour-grid article { min-height: 128px; display: grid; align-content: start; gap: 7px; padding: 13px; border: 1px solid #2b2d34; border-radius: 10px; background: linear-gradient(145deg,rgba(120,104,255,.045),#121317 55%); }.behaviour-grid i { width: 25px; height: 25px; display: grid; place-items: center; margin-bottom: 3px; border: 1px solid rgba(120,104,255,.28); border-radius: 8px; color: #a39aff; font-size: 12px; font-style: normal; font-weight: 850; }.behaviour-grid strong { font-size: 12px; }.behaviour-grid p { margin: 0; color: #747782; font-size: 12px; line-height: 1.55; }.behaviour-grid code { color: #c8c3ff; font: 12px ui-monospace,SFMono-Regular,Menlo,monospace; }
.contract-review { padding: 25px 27px 27px; background: radial-gradient(circle at 100% 100%,rgba(66,213,140,.055),transparent 30%); }.contract-review > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 16px; }.contract-review > header p { margin: 6px 0 0; color: #777a84; font-size: 12px; }.review-progress { min-width: 130px; display: grid; gap: 2px; padding: 10px 11px; border: 1px solid #30333b; border-radius: 9px; background: #131418; }.review-progress strong { color: #bdb7ff; font-size: 14px; }.review-progress span { color: #6f727d; font-size: 12px; }.contract-review-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.contract-review-list label { min-width: 0; position: relative; display: grid; grid-template-columns: 25px 1fr; align-items: start; gap: 10px; padding: 12px; border: 1px solid #2c2e36; border-radius: 10px; background: #121317; cursor: pointer; transition: border-color .16s,background-color .16s; }.contract-review-list label:hover { border-color: #494c57; }.contract-review-list label.checked { border-color: rgba(66,213,140,.3); background: rgba(66,213,140,.04); }.contract-review-list input { position: absolute; opacity: 0; }.contract-review-list label > i { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #3a3d47; border-radius: 8px; background: #1b1c21; color: #5ddd9d; font-size: 12px; font-style: normal; font-weight: 850; }.contract-review-list input:focus-visible + i { outline: 2px solid #8a7df4; outline-offset: 2px; }.contract-review-list label > span { display: grid; gap: 4px; }.contract-review-list strong { font-size: 12px; }.contract-review-list small { color: #727580; font-size: 12px; line-height: 1.5; }.contract-review > footer { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 9px; margin-top: 14px; padding: 11px; border: 1px solid #2b2d34; border-radius: 9px; background: #101115; }.contract-review > footer > i { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #393c46; border-radius: 50%; color: #9690d7; font-size: 12px; font-style: normal; font-weight: 850; }.contract-review > footer p { margin: 0; color: #747782; font-size: 12px; line-height: 1.5; }.contract-review > footer strong { color: #aaa5d8; }
.mapping-output { min-height: 430px; padding: 22px; border: 1px solid #2c2e36; border-radius: 0 0 13px 13px; background: #0c0d10; }.mapping-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 18px; padding-bottom: 17px; border-bottom: 1px solid #24262d; }.mapping-heading h2 { margin: 7px 0 0; font-size: 17px; }.mapping-heading p { max-width: 360px; margin: 0; color: #747782; font-size: 12px; line-height: 1.5; text-align: right; }.mapping-list { display: grid; gap: 8px; }.mapping-row { min-width: 0; display: grid; grid-template-columns: 94px minmax(0,1fr); align-items: center; gap: 14px; padding: 10px; border: 1px solid #282a31; border-radius: 10px; background: #111216; }.mapping-row-title { min-width: 0; display: grid; gap: 4px; padding-left: 3px; }.mapping-row-title strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }.mapping-row-title span { color: #777a84; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }.mapping-flow { min-width: 0; display: flex; align-items: stretch; gap: 7px; overflow-x: auto; padding: 2px 2px 5px; scrollbar-width: thin; }.mapping-badge { min-width: 155px; position: relative; display: grid; align-content: center; gap: 4px; padding: 9px 30px 9px 10px; border: 1px solid #383b45; border-radius: 9px; background: #17181d; }.mapping-badge small { color: #6f727d; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.mapping-badge b { overflow: hidden; color: #d0d1d7; font: 650 12px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }.mapping-badge em { color: #8f92a0; font: 600 12px ui-monospace,SFMono-Regular,Menlo,monospace; }.mapping-badge.primitive { border-color: #3a3d47; }.mapping-badge.semantic { border-color: rgba(120,104,255,.38); background: rgba(120,104,255,.065); }.mapping-badge.usage { border-color: rgba(66,213,140,.28); background: rgba(66,213,140,.045); }.mapping-badge.usage b { color: #b9e8d0; }.mapping-swatch { width: 13px; height: 13px; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.2); border-radius: 4px; background: var(--mapping-colour); }.mapping-arrow { align-self: center; color: #68637e; font-size: 12px; font-style: normal; }.mapping-empty { color: #747782; font-size: 12px; }
.export-dialog { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(5,6,8,.78); backdrop-filter: blur(9px); animation: exportFadeIn .18s ease both; }.export-dialog-card { width: min(760px,100%); max-height: min(830px,calc(100vh - 48px)); position: relative; overflow-y: auto; padding: 30px; border: 1px solid #3a3d47; border-radius: 20px; background: radial-gradient(circle at 100% 0,rgba(120,104,255,.18),transparent 34%),#15161b; box-shadow: 0 36px 120px rgba(0,0,0,.55); animation: exportCardIn .2s ease both; }.export-dialog-close { width: 40px; height: 40px; position: absolute; right: 18px; top: 18px; border: 1px solid #393c46; border-radius: 10px; background: #1d1e24; color: #9a9da7; cursor: pointer; font-size: 18px; }.export-dialog-card > header { padding-right: 48px; }.export-dialog .kicker { font-size: 12px; line-height: 1.4; }.export-dialog-card h2 { margin: 9px 0 8px; font-size: 28px; letter-spacing: -.045em; }.export-dialog-card header p { max-width: 620px; margin: 0; color: #a1a4ad; font-size: 13px; line-height: 1.6; }.export-readiness { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; margin: 22px 0 13px; padding: 14px; border: 1px solid rgba(255,185,75,.28); border-radius: 11px; background: rgba(255,185,75,.055); }.export-readiness.ready { border-color: rgba(66,213,140,.3); background: rgba(66,213,140,.05); }.export-readiness > i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,185,75,.09); color: #e4b35d; font-size: 12px; font-style: normal; font-weight: 850; }.export-readiness.ready > i { background: rgba(66,213,140,.1); color: #64dda0; }.export-readiness > span { display: grid; gap: 4px; }.export-readiness strong { font-size: 13px; }.export-readiness small { color: #8e919b; font-size: 12px; line-height: 1.45; }.export-readiness > b { padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,.045); color: #c4bff2; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }.export-file-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }.export-file-list li { min-width: 0; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 11px; padding: 12px; border: 1px solid #2c2f37; border-radius: 10px; background: #111216; }.export-file-list li:first-child { grid-column: 1 / -1; }.export-file-list i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #393c46; border-radius: 8px; color: #9f95f5; font-size: 12px; font-style: normal; font-weight: 850; }.export-file-list span { min-width: 0; display: grid; gap: 4px; }.export-file-list strong { color: #dbdce1; font: 750 12px ui-monospace,SFMono-Regular,Menlo,monospace; }.export-file-list small { color: #858893; font-size: 12px; line-height: 1.45; }.export-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 14px 0 0; }.export-details div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #2c2f37; border-radius: 9px; background: #121317; }.export-details dt { color: #8a8d97; font-size: 12px; font-weight: 750; }.export-details dd { overflow: hidden; margin: 0; color: #d2ceff; font: 650 12px ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }.export-note { margin: 14px 0 0; padding: 13px 14px; border: 1px solid #2d3038; border-radius: 9px; background: rgba(120,104,255,.045); color: #9295a0; font-size: 12px; line-height: 1.55; }.export-note strong { color: #c2bcf8; }.export-dialog-card > footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }.export-dialog-card > footer button { min-height: 44px; padding: 0 17px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 800; }.export-secondary { border: 1px solid #383b45; background: #1b1c21; color: #b5b7bf; }.export-primary { border: 1px solid #897cf5; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; box-shadow: 0 10px 26px rgba(98,80,223,.23); }.export-primary span { margin-left: 7px; }@keyframes exportFadeIn { from { opacity: 0; } }@keyframes exportCardIn { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 50; opacity: 0; transform: translate(-50%,15px); padding: 10px 14px; border: 1px solid #3b3e48; border-radius: 9px; background: #202127; font-size: 12px; transition: .2s; pointer-events: none; }.toast.show { opacity: 1; transform: translate(-50%,0); }

.live-preview-stage { min-height: 340px !important; padding: 34px 24px 140px; }
.text-input-stage.live-preview-stage { min-height: 390px !important; padding-bottom: 155px; }
.live-preview-stage > .live-button { cursor: pointer; }
.preview-test-panel { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 9px; padding: 12px 13px; border: 1px solid #d8d9df; border-radius: 10px; background: rgba(245,245,248,.98); color: #343640; text-align: left; box-shadow: 0 8px 24px rgba(32,34,42,.08); }
.preview-test-panel p { margin: 0; color: #4c4f59; font-size: 12px; line-height: 1.45; }
.preview-test-panel p strong { color: #24262d; }
.preview-test-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-test-checks span { padding: 5px 7px; border: 1px solid #d6d8de; border-radius: 7px; background: white; color: #555862; font-size: 12px; font-weight: 750; line-height: 1.25; }
.preview-test-checks span.pass { border-color: #bde1ce; background: #f1fbf6; color: #236a48; }
.preview-test-checks span.attention { border-color: #ead09f; background: #fff8ea; color: #815c20; }
.preview-test-actions { display: flex; align-items: center; gap: 7px; }
.preview-test-feedback { min-width: 0; flex: 1; color: #555862; font-size: 12px; line-height: 1.4; }
.preview-test-actions button { min-height: 34px; padding: 0 10px; border: 1px solid #bbb7df; border-radius: 8px; background: #fff; color: #51489a; cursor: pointer; font-size: 12px; font-weight: 780; }
.preview-test-actions button:hover { border-color: #7568df; background: #f5f3ff; }
.preview-test-actions button:focus-visible { outline: 3px solid #7565f3; outline-offset: 2px; }
.preview-test-actions button[aria-pressed="true"] { border-color: #7568df; background: #eeebff; color: #40378f; }

@media (max-width: 760px) {
  .live-preview-stage { min-height: 440px !important; padding-bottom: 250px; }
  .text-input-stage.live-preview-stage { min-height: 540px !important; padding-bottom: 335px; }
  .preview-test-actions { align-items: stretch; flex-direction: column; }
  .preview-test-feedback { width: 100%; }
  .preview-test-actions button { width: 100%; }
}

/* The build area is read like documentation, so it uses a comfortable text scale. */
.code-page { max-width: 1120px; }
.code-page .kicker { font-size: 12px; line-height: 1.35; }
.code-hero p { max-width: 720px; font-size: 15px; line-height: 1.55; }
.code-hero button { min-height: 42px; font-size: 12px; }
.term-explainer summary { font-size: 12px; line-height: 1.45; }
.term-explainer p { font-size: 12px; line-height: 1.65; }
.component-handoff-switch button { min-width: 180px; padding: 10px 12px; }
.component-handoff-switch strong { font-size: 12px; }
.component-handoff-switch small { font-size: 12px; line-height: 1.4; }
.handoff-copy h2 { font-size: 22px; line-height: 1.2; }
.handoff-copy p { font-size: 13px; line-height: 1.6; }
.handoff-copy button { min-height: 40px; font-size: 12px; }
.handoff-guide li { font-size: 12px; line-height: 1.45; }
.handoff-note strong { font-size: 12px; line-height: 1.4; }
.handoff-note span { font-size: 12px; line-height: 1.5; }
.handoff-flow strong { font-size: 12px; }
.handoff-flow small { font-size: 12px; line-height: 1.35; }
.code-tabs { min-height: 54px; height: auto; }
.code-tabs button { min-height: 38px; font-size: 12px; }
.code-tabs span { font-size: 12px; }
.code-tools label { font-size: 12px; }
.code-tools label small,.code-tools > p span { font-size: 12px; line-height: 1.45; }
.prefix-input b,.prefix-input input,.code-tools > p strong { font-size: 12px; }
.code-output { font-size: 13px; line-height: 1.7; }
.code-empty p { font-size: 13px; }
.contract-heading { padding: 32px; }
.contract-heading > div:first-child,.contract-section > header > div { min-width: 0; }
.contract-heading h2 { font-size: 30px; line-height: 1.15; }
.contract-heading p { font-size: 14px; line-height: 1.6; }
.contract-status { min-width: 210px; grid-template-columns: 34px 1fr; padding: 14px; }
.contract-status > i { width: 34px; height: 34px; font-size: 13px; }
.contract-status strong { font-size: 12px; }
.contract-status small { font-size: 12px; line-height: 1.4; }
.contract-principles { gap: 14px; padding: 24px; }
.contract-principles > article { grid-template-columns: 42px minmax(0,1fr); gap: 14px; padding: 18px; }
.contract-principles small { font-size: 12px; line-height: 1.4; }
.contract-principles strong { font-size: 14px; line-height: 1.35; }
.contract-principles p { font-size: 12px; line-height: 1.6; }
.contract-card-icon { width: 42px; height: 42px; font-size: 13px; }
.contract-anatomy-preview > span,.contract-anatomy-preview > em { padding: 5px 7px; font-size: 12px; }
.contract-text-input-preview { gap: 7px; padding: 16px; }
.contract-text-input-preview label { font-size: 12px; }
.contract-text-input-preview input { min-height: 42px; font-size: 13px; }
.contract-text-input-preview small { min-height: 16px; font-size: 12px; line-height: 1.4; }
.build-guide-basics,.contract-section,.contract-review { padding: 30px 32px; }
.build-guide-step { grid-template-columns: 34px minmax(0,1fr); gap: 14px; }
.build-guide-step > span,.build-step-number { width: 34px; height: 34px; font-size: 12px; }
.build-guide-step h3 { font-size: 20px; line-height: 1.25; }
.build-guide-step p,.build-guide-use p { font-size: 13px; line-height: 1.6; }
.build-guide-use { margin-left: 48px; }
.build-guide-use strong { font-size: 14px; line-height: 1.4; }
.contract-section > header { align-items: flex-start; margin-bottom: 22px; }
.contract-section > header > div { grid-template-columns: 34px minmax(0,1fr); gap: 14px; }
.contract-section h3,.contract-review h3 { font-size: 21px; line-height: 1.25; }
.contract-section h3 { overflow-wrap: anywhere; }
.contract-section > header > p { font-size: 12px; line-height: 1.6; }
.contract-state-grid { gap: 14px; }
.contract-state-card { padding: 18px; }
.contract-state-card > header span { font-size: 12px; line-height: 1.4; }
.contract-state-card > header b { min-width: 42px; padding: 6px 8px; font-size: 12px; }
.contract-state-card > p { margin: 9px 0 14px; font-size: 12px; line-height: 1.5; }
.contract-state-card ul { gap: 8px; }
.contract-state-card li { grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; padding: 11px 12px; }
.contract-state-card li > i { width: 28px; height: 28px; font-size: 12px; }
.contract-state-card li > span { gap: 4px; }
.contract-state-card li strong { font-size: 13px; line-height: 1.35; }
.contract-state-card li small { overflow: visible; font-size: 12px; line-height: 1.45; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.contract-state-card li > button { min-height: 32px; padding: 0 10px; font-size: 12px; }
.behaviour-grid { gap: 12px; }
.behaviour-grid article { min-height: 160px; gap: 10px; padding: 17px; }
.behaviour-grid i { width: 30px; height: 30px; font-size: 12px; }
.behaviour-grid strong { font-size: 13px; line-height: 1.35; }
.behaviour-grid p { font-size: 12px; line-height: 1.6; }
.behaviour-grid code { font-size: 12px; }
.contract-review > header p { font-size: 12px; line-height: 1.55; }
.review-progress { min-width: 155px; padding: 13px 14px; }
.review-progress strong { font-size: 18px; }
.review-progress span { font-size: 12px; }
.contract-review-list { gap: 12px; }
.contract-review-list label { grid-template-columns: 30px 1fr; gap: 12px; padding: 15px; }
.contract-review-list label > i { width: 30px; height: 30px; font-size: 12px; }
.contract-review-list strong { font-size: 13px; line-height: 1.35; }
.contract-review-list small { font-size: 12px; line-height: 1.55; }
.contract-review > footer { grid-template-columns: 28px 1fr; gap: 11px; padding: 14px; }
.contract-review > footer > i { width: 28px; height: 28px; font-size: 12px; }
.contract-review > footer p { font-size: 12px; line-height: 1.55; }
.accessibility-heading h2 { font-size: 22px; }
.accessibility-heading p { font-size: 13px; line-height: 1.6; }
.accessibility-summary span,.accessibility-group-title span { font-size: 12px; }
.accessibility-group-title strong { font-size: 13px; }
.accessibility-results li strong,.implementation-tests li strong { font-size: 12px; }
.accessibility-results li small,.implementation-tests li small,.implementation-tests > p { font-size: 12px; line-height: 1.5; }
.accessibility-results li > a,.accessibility-results li > button { font-size: 12px; }
.mapping-heading h2 { font-size: 21px; }
.mapping-heading p { font-size: 12px; line-height: 1.6; }
.mapping-row-title strong,.mapping-empty { font-size: 12px; }
.mapping-row-title span,.mapping-badge small { font-size: 12px; }
.mapping-badge b,.mapping-badge em { font-size: 12px; }
.mapping-badge { min-width: 205px; padding: 12px 34px 12px 12px; }

.last-change-summary { display: grid; grid-template-columns: minmax(170px,.7fr) minmax(0,1fr); gap: 14px 20px; padding: 15px; border: 1px solid rgba(120,104,255,.3); border-radius: 11px; background: rgba(120,104,255,.055); }
.last-change-summary > div { display: grid; align-content: start; gap: 5px; }
.last-change-summary > div span { color: #a39aff; font-size: 12px; font-weight: 850; letter-spacing: .1em; }
.last-change-summary > div strong { color: #e4e3eb; font-size: 13px; line-height: 1.4; }
.last-change-summary ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.last-change-summary li { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 8px; color: #b6b8c0; font-size: 12px; line-height: 1.4; }
.last-change-summary li i { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid rgba(66,213,140,.35); border-radius: 6px; background: rgba(66,213,140,.08); color: #62dda0; font-size: 12px; font-style: normal; }
.last-change-summary > small { grid-column: 1 / -1; color: #777a84; font-size: 12px; line-height: 1.4; }
.design-workspace.guided-text-input-mode .token-section { display: none; }
.guided-text-input-instance { width: min(760px,100%); min-width: 0; }
.guided-text-input-instance .component-stage { min-height: 230px; }
.button-state-overview.text-input-state-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
.button-state-overview.text-input-state-overview article > div { min-height: 124px; padding: 12px; }
.text-input-state-overview .live-text-input { width: 100%; gap: 4px; pointer-events: none; }
.text-input-state-overview .live-text-input label { font-size: 12px; }
.text-input-state-overview .live-text-input input { min-height: 34px; padding-block: 7px !important; font-size: 12px; }
.text-input-state-overview .live-text-input small { min-height: 10px; font-size: 12px; }
.button-state-overview.text-input-state-overview article:last-child { grid-column: 1 / -1; }
.text-input-instance .last-change-summary { margin-top: 14px; }
.button-focus-step-navigation { display: flex; align-items: center; gap: 10px; }
.button-focus-step-navigation > span { color: #777a84; font-size: 12px; white-space: nowrap; }
.button-focus-step-navigation > button { min-height: 32px; padding: 0 10px; border: 1px solid #3c3f48; border-radius: 8px; background: #17181d; color: #c4c0e8; cursor: pointer; font-size: 12px; font-weight: 750; }
.button-focus-step-navigation > button:hover:not(:disabled) { border-color: #7568df; color: white; }
.button-focus-step-navigation > button:disabled { opacity: .35; cursor: default; }
.button-state-overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.button-state-overview article { min-width: 0; overflow: hidden; border: 1px solid #30323a; border-radius: 11px; background: #111216; }
.button-state-overview article > span { display: block; padding: 10px 11px 0; color: #c9c5f8; font-size: 12px; font-weight: 800; }
.button-state-overview article > div { min-height: 104px; display: grid; place-items: center; margin: 8px; border: 1px solid #dedfe5; border-radius: 8px; background: #f7f7f9; }
.button-state-overview article > small { display: block; padding: 0 11px 10px; color: #777a84; font-size: 12px; }
.button-state-overview .button-state-preview { pointer-events: none; }

.handoff-guide-result { grid-template-columns: minmax(260px,.85fr) minmax(480px,1.4fr); gap: 24px; align-items: center; padding: 24px; }
.handoff-result-copy h2 { margin: 8px 0 7px; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.handoff-result-copy p { max-width: 440px; margin: 0; color: #8d909a; font-size: 13px; line-height: 1.6; }
.handoff-result-copy button { min-height: 42px; margin-top: 15px; padding: 0 14px; border: 1px solid #897cf5; border-radius: 9px; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; cursor: pointer; font-size: 12px; font-weight: 820; box-shadow: 0 9px 24px rgba(98,80,223,.22); }
.handoff-result-copy button:hover { transform: translateY(-1px); box-shadow: 0 12px 29px rgba(98,80,223,.3); }
.handoff-result-copy button b { margin-left: 7px; }
.handoff-chain { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.handoff-guide .handoff-chain li { min-width: 0; position: relative; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 8px; padding: 11px 9px; border: 1px solid #30333b; border-radius: 10px; background: #111216; }
.handoff-guide .handoff-chain li + li:before { content: "→"; position: absolute; left: -8px; z-index: 2; color: #676a74; font-size: 12px; }
.handoff-guide .handoff-chain li i { width: 28px; height: 28px; border-radius: 8px; }
.handoff-chain li > span { min-width: 0; display: grid; gap: 3px; }
.handoff-chain strong { color: #d7d8dd; font-size: 12px; line-height: 1.3; }
.handoff-chain small { color: #777a84; font-size: 12px; line-height: 1.35; }
.handoff-chain li.complete i { border-color: rgba(66,213,140,.35); background: rgba(66,213,140,.08); color: #62dda0; }
.handoff-chain li.current { border-color: rgba(120,104,255,.42); background: rgba(120,104,255,.07); }
.handoff-chain li.current i { border-color: #7568df; color: #c1bbff; }
.handoff-next { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid #2d3038; color: #8d909a; font-size: 12px; line-height: 1.5; }
.handoff-next strong { color: #d6d3f9; }
.handoff-guide.prepared { border-color: rgba(120,104,255,.38); background: linear-gradient(145deg,rgba(120,104,255,.065),#15161a 58%); }
.handoff-result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.handoff-result-copy .handoff-result-actions button { margin-top: 0; }
.handoff-result-copy .handoff-result-actions button.secondary { border-color: #3a3d47; background: #1b1c21; color: #b4b6bf; box-shadow: none; }
.handoff-result-copy .handoff-result-actions button.secondary:hover { border-color: #6f64d1; color: white; box-shadow: none; }
.handoff-chain li.automated i { border-color: rgba(120,104,255,.42); background: rgba(120,104,255,.09); color: #b8b1ff; }

.contract-status.prepared { border-color: rgba(120,104,255,.35); background: rgba(120,104,255,.06); }
.contract-status.prepared > i { background: rgba(120,104,255,.12); color: #b8b1ff; }
.contract-state-card > header b { min-width: 0; }
.contract-state-card > header b.ready { background: rgba(120,104,255,.1); color: #b8b1ff; }
.contract-state-card li.ready > i { border-color: rgba(120,104,255,.36); background: rgba(120,104,255,.08); color: #b8b1ff; }

.human-review { padding: 30px 32px; border-bottom: 1px solid #282a31; background: radial-gradient(circle at 100% 0,rgba(120,104,255,.075),transparent 34%); }
.human-review > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 18px; }
.human-review > header > div:first-child { display: grid; grid-template-columns: 34px minmax(0,1fr); column-gap: 14px; }
.human-review > header .build-step-number { grid-row: 1 / span 2; }
.human-review > header h3,.human-review > header p { grid-column: 2; }
.human-review h3 { margin: 2px 0 0; font-size: 21px; line-height: 1.25; letter-spacing: -.03em; }
.human-review > header p { margin: 6px 0 0; color: #7d808a; font-size: 12px; line-height: 1.55; }
.review-progress.complete { border-color: rgba(66,213,140,.3); background: rgba(66,213,140,.045); }
.review-progress.complete strong { color: #62dda0; }
.human-review-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.human-review-list label { min-width: 0; position: relative; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: start; gap: 13px; padding: 17px; border: 1px solid #30333b; border-radius: 12px; background: #121317; cursor: pointer; }
.human-review-list label:hover { border-color: #514b76; }
.human-review-list label.checked { border-color: rgba(66,213,140,.32); background: rgba(66,213,140,.04); }
.human-review-list input { position: absolute; opacity: 0; }
.human-review-list label > i { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #444752; border-radius: 10px; background: #1b1c21; color: #aba5e4; font: 800 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.human-review-list label.checked > i { border-color: rgba(66,213,140,.38); background: rgba(66,213,140,.09); color: #62dda0; }
.human-review-list input:focus-visible + i { outline: 2px solid #8a7df4; outline-offset: 2px; }
.human-review-list label > span { min-width: 0; display: grid; gap: 4px; }
.human-review-list small { color: #a7a0f7; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.human-review-list strong { color: #dedfe4; font-size: 14px; line-height: 1.35; }
.human-review-list em { color: #7c7f89; font-size: 12px; font-style: normal; line-height: 1.55; }
.human-review-guidance { margin-top: 13px; border: 1px solid #2c2f37; border-radius: 10px; background: #101115; }
.human-review-guidance summary { padding: 13px 15px; color: #c7c3f1; cursor: pointer; font-size: 12px; font-weight: 750; }
.human-review-guidance > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 0 15px 15px; }
.human-review-guidance p { margin: 0; color: #7c7f89; font-size: 12px; line-height: 1.55; }
.human-review-guidance strong { color: #b9bbc3; }
.human-review-result { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 11px; margin-top: 13px; padding: 14px; border: 1px solid #2d3038; border-radius: 10px; background: #101115; }
.human-review-result > i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #444752; border-radius: 8px; color: #aaa4e6; font-size: 12px; font-style: normal; font-weight: 850; }
.human-review-result > div { min-width: 0; display: grid; gap: 12px; }
.human-review-result p { margin: 0; color: #7c7f89; font-size: 12px; line-height: 1.55; }
.human-review-result strong { color: #c8c4fa; }
.human-review-result.complete { border-color: rgba(66,213,140,.25); background: rgba(66,213,140,.035); }
.human-review-result.complete > i { border-color: rgba(66,213,140,.38); color: #62dda0; }
.human-review-result.complete strong { color: #91e6ba; }
.human-review-next { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 13px; border-top: 1px solid rgba(66,213,140,.18); }
.human-review-next > span { min-width: 0; display: grid; gap: 4px; }
.human-review-next small { color: #aaa4e6; font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.human-review-next > span > strong { color: #f0f1f4; font-size: 15px; line-height: 1.35; }
.human-review-actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; }
.human-review-actions button { min-height: 40px; padding: 0 13px; border: 1px solid #897cf5; border-radius: 9px; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; cursor: pointer; font-size: 12px; font-weight: 820; box-shadow: 0 8px 20px rgba(98,80,223,.2); }
.human-review-actions button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(98,80,223,.28); }
.human-review-actions button.secondary { border-color: #4a465f; background: #1b1c21; color: #d7d4fa; box-shadow: none; }
.human-review-actions button.secondary:hover { border-color: #7568df; box-shadow: none; }

.export-readiness.prepared { border-color: rgba(120,104,255,.34); background: rgba(120,104,255,.055); }
.export-readiness.prepared > i { background: rgba(120,104,255,.12); color: #b8b1ff; }
.export-readiness > b,.export-file-list i { font-size: 12px; }
.journey-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }

.contract-review.locked .contract-review-list label { cursor: not-allowed; opacity: .58; }
.contract-review.locked .contract-review-list label:hover { border-color: #2c2e36; }
.contract-review-unlock { width: max-content; min-height: 40px; grid-column: 2; justify-self: start; margin-top: 12px; padding: 0 13px; border: 1px solid #897cf5; border-radius: 9px; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; cursor: pointer; font-size: 12px; font-weight: 820; white-space: nowrap; box-shadow: 0 8px 20px rgba(98,80,223,.2); }
.contract-review-unlock:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(98,80,223,.28); }
.contract-review-unlock b { margin-left: 6px; }
.mapping-badge.raw { min-width: 130px; border-style: dashed; border-color: #424550; background: #131419; }
.mapping-badge.raw b { color: #f0f1f4; }
.token-target-none,.token-target-proposal { justify-self: start; margin-top: 3px; padding: 7px 9px; border: 1px solid #7568df; border-radius: 7px; background: rgba(120,104,255,.1); color: #d0cbff; cursor: pointer; font-size: 12px; font-weight: 750; }
.token-target-proposal { border-color: rgba(255,185,75,.45); background: rgba(255,185,75,.07); color: #e6b85f; }
.token-target-empty { display: grid; gap: 8px; margin-top: 8px; padding: 14px; border: 1px dashed #3a3d47; border-radius: 10px; background: #111216; }
.token-target-empty strong { font-size: 14px; }
.token-target-empty p { margin: 0; color: #8a8d97; font-size: 14px; line-height: 1.5; }
.token-target-empty button { justify-self: start; min-height: 36px; padding: 0 11px; border: 1px solid #7568df; border-radius: 8px; background: rgba(120,104,255,.1); color: #d0cbff; cursor: pointer; font-weight: 780; }
.token-target-empty .kicker { color: #e5b55d; font-size: 12px; }
.token-target-empty-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; }
.token-target-empty-actions button:first-child { border-color: #8173f3; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; }
.token-target-empty-actions button.secondary { border-color: #3c3f49; background: #17181d; color: #c4c6ce; }
.token-source-alternatives { margin-top: 4px; }
.token-source-alternatives summary { color: #b8b3e8; cursor: pointer; font-size: 13px; font-weight: 760; }
.token-source-alternatives > div { display: grid; gap: 6px; margin-top: 8px; }
.token-source-alternatives button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.token-source-alternatives button span { min-width: 0; display: grid; gap: 2px; }
.token-source-alternatives button strong { overflow: hidden; font: 700 12px ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }
.token-source-alternatives button small { color: #8a8d97; font-size: 12px; }
.token-source-alternatives button b { color: #d7d9e0; font: 750 12px ui-monospace,SFMono-Regular,Menlo,monospace; }
.token-section.empty-target-choice .token-search,
.token-section.empty-target-choice .token-filters,
.token-section.empty-target-choice #newTokenButton { display: none; }
.token-section.empty-target-choice .token-result-count { color: #e5b55d; }
.generic-review-checks label.review-attention,.generic-active-state-review label.review-attention { border-color: #8d80ff; background: rgba(120,104,255,.12); outline: 3px solid rgba(120,104,255,.09); animation: guidePulse 1.2s ease-in-out 1; }
.button-focus-token > i { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: #202127; color: #aaa3ff; font-size: 16px; font-style: normal; }
.button-focus-no-border { border-color: rgba(66,213,140,.34); background: linear-gradient(135deg,rgba(66,213,140,.085),rgba(66,213,140,.025)); }
.button-focus-connected { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid rgba(66,213,140,.34); border-radius: 9px; background: rgba(66,213,140,.07); color: #61dfa0; font-size: 12px; font-weight: 750; }
.button-focus-none-choice { justify-self: start; min-height: 34px; padding: 0 11px; border: 1px solid #444752; border-radius: 8px; background: #17181d; color: #b8b4de; cursor: pointer; font-size: 12px; font-weight: 760; }
.button-focus-none-choice:hover { border-color: #7568df; color: white; }

/* Imported-system map and component provenance */
.import-system-map { margin: 18px 30px 0; padding: 20px; border: 1px solid #30323a; border-radius: 15px; background: #111216; }
.import-system-map > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 15px; }
.import-system-map h3 { margin: 6px 0 0; font-size: 20px; letter-spacing: -.025em; }
.import-system-map header p { max-width: 380px; margin: 0; color: #858893; font-size: 12px; line-height: 1.5; text-align: right; }
.import-coverage-map { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.import-coverage-map article { min-width: 0; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 12px; border: 1px solid #30323a; border-radius: 11px; background: #15161a; }
.import-coverage-map article > i { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(66,213,140,.35); border-radius: 9px; background: rgba(66,213,140,.07); color: #62dda0; font-size: 12px; font-style: normal; font-weight: 850; }
.import-coverage-map article.missing > i { border-color: rgba(255,185,75,.32); background: rgba(255,185,75,.07); color: #e1ae58; }
.import-coverage-map article > span { min-width: 0; display: grid; gap: 3px; }.import-coverage-map strong { font-size: 12px; }.import-coverage-map small { overflow: hidden; color: #7c7f89; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.import-coverage-map article > b { color: #74dba5; font-size: 12px; }.import-coverage-map article.missing > b { color: #d8a659; }

.import-family-picker { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(0,2fr); align-items: center; gap: 18px; margin-top: 11px; padding: 13px; border: 1px solid #30333b; border-radius: 12px; background: #111216; }
.import-family-picker > div:first-child { display: grid; gap: 4px; }.import-family-picker > div:first-child strong { font-size: 12px; }.import-family-picker > div:first-child small,.import-family-picker > p { margin: 0; color: #7c7f89; font-size: 12px; line-height: 1.45; }
.import-family-picker [role="radiogroup"] { min-width: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.import-family-picker button { min-width: 0; display: grid; gap: 3px; padding: 10px; border: 1px solid #393c46; border-radius: 9px; background: #191a1f; color: #d3d5dc; text-align: left; cursor: pointer; }
.import-family-picker button b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.import-family-picker button small { overflow: hidden; color: #777a84; font: 12px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }
.import-family-picker button:hover,.import-family-picker button:focus-visible { border-color: #7065d6; outline: none; }.import-family-picker button.active { border-color: #796bf0; background: rgba(120,104,255,.12); box-shadow: inset 0 0 0 1px rgba(151,139,255,.08); }.import-family-picker button.active small { color: #aaa3e8; }

.token-metro { grid-column: 1 / -1; min-width: 0; display: flex; align-items: stretch; gap: 0; margin-top: 4px; padding: 11px; overflow-x: auto; border: 1px solid rgba(120,104,255,.24); border-radius: 11px; background: rgba(8,9,12,.5); scrollbar-width: thin; }
.metro-station { width: min(178px,25%); min-width: 136px; position: relative; display: grid; align-content: start; gap: 3px; padding: 8px 10px 8px 25px; border: 1px solid #363943; border-radius: 9px; background: #17181d; }
.metro-station > i { width: 10px; height: 10px; position: absolute; left: 9px; top: 10px; border: 3px solid #8d80ff; border-radius: 50%; background: #17181d; box-shadow: 0 0 0 3px rgba(120,104,255,.08); }
.metro-station small { color: #858893; font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1.25; text-transform: uppercase; white-space: normal; }
.metro-value { min-width: 0; display: flex; align-items: center; gap: 6px; }.metro-station strong { min-width: 0; overflow: hidden; color: #e4e5e9; font: 700 12px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap: anywhere; }.metro-swatch { width: 13px; height: 13px; flex: 0 0 13px; border: 1px solid rgba(255,255,255,.26); border-radius: 4px; background: var(--metro-swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.metro-station.imported > i { border-color: #54d696; box-shadow: 0 0 0 3px rgba(66,213,140,.08); }.metro-station.imported small { color: #75cfa2; }
.metro-station.proposal { border-style: dashed; border-color: rgba(255,185,75,.42); }.metro-station.proposal > i { border-color: #e1aa4d; box-shadow: 0 0 0 3px rgba(255,185,75,.08); }.metro-station.proposal small { color: #d9a650; }
.metro-station.usage > i { border-color: #62dda0; background: #10271e; }.metro-station.usage small { color: #75dba6; }
.metro-track { min-width: 28px; flex: 0 0 28px; align-self: center; height: 3px; position: relative; z-index: 2; margin: 0 5px; border-radius: 999px; background: linear-gradient(90deg,#8073f2 0%,#60deb0 78%,#65e5b4 100%); box-shadow: 0 0 8px rgba(84,214,150,.2); }.metro-track:after { content: ""; width: 8px; height: 8px; position: absolute; right: 0; top: 50%; border-top: 3px solid #65e5b4; border-right: 3px solid #65e5b4; filter: drop-shadow(0 0 3px rgba(84,214,150,.28)); transform: translateY(-50%) rotate(45deg); transform-origin: center; }
.token-metro.compact { width: 100%; margin-top: 1px; padding: 8px; overflow-x: auto; }.token-metro.compact .metro-station { width: auto; min-width: 150px; flex: 1 0 150px; padding: 7px 9px 7px 22px; }.token-metro.compact .metro-station > i { left: 7px; top: 9px; }.token-metro.compact .metro-station small { font-size: 12px; }.token-metro.compact .metro-station strong { font-size: 12px; line-height: 1.25; }.token-metro.compact .metro-track { min-width: 22px; flex-basis: 22px; margin-inline: 4px; }
.import-mapping-row .token-metro { max-width: 100%; }.import-mapping-row .token-metro small { overflow: visible; font-family: inherit; text-overflow: clip; white-space: normal; }
.thatway-proposal-card { border-color: rgba(255,185,75,.42); background: linear-gradient(135deg,rgba(255,185,75,.085),rgba(255,185,75,.02)); }.thatway-proposal-card .button-focus-token > span > small:first-child { color: #e0ae59; }
.thatway-proposal-card .button-focus-token { grid-template-columns: 76px minmax(0,1fr); }.thatway-proposal-card .button-focus-token > .guided-token-value { width: 76px; padding: 0 7px; font-size: 12px; white-space: nowrap; }.thatway-proposal-card .manual-proposal-action { justify-self: end; }
.import-mapping-row.raw-source { border-color: rgba(255,185,75,.28); }.import-mapping-row.raw-source > b { color: #dfad56; }
.button-focus-import-note { max-width: 230px; color: #858893; font-size: 12px; line-height: 1.4; }
.guided-thatway-decide { min-height: 42px; font-size: 12px; }

.canvas-toolbar .all-tokens-action { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 7px 0 10px; border: 1px solid #3a3d47; border-radius: 9px; background: #191a1f; color: #c9cbd2; font-size: 12px; font-weight: 780; white-space: nowrap; }
.canvas-toolbar .all-tokens-action:hover:not(:disabled),.canvas-toolbar .all-tokens-action:focus-visible { border-color: #7065d6; background: rgba(120,104,255,.1); color: white; outline: none; }
.canvas-toolbar .all-tokens-action:focus-visible { box-shadow: 0 0 0 2px rgba(129,116,243,.32); }
.canvas-toolbar .all-tokens-action[aria-pressed="true"] { border-color: #7669e7; background: rgba(120,104,255,.13); color: #f0eeff; }
.all-tokens-action b { min-width: 24px; display: grid; place-items: center; padding: 3px 6px; border-radius: 999px; background: rgba(120,104,255,.14); color: #b7b0ff; font-size: 12px; line-height: 1; }
.all-tokens-action[aria-pressed="true"] b { background: #7061e7; color: white; }
.token-section:focus { outline: none; }

/* Component catalog: every source enters one broad, honest starting point. */
.component-catalog-open { width: 100%; min-height: 54px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid rgba(120,104,255,.4); border-radius: 11px; background: linear-gradient(135deg,rgba(120,104,255,.13),rgba(120,104,255,.04)); color: #e3e0ff; cursor: pointer; text-align: left; }
.component-catalog-open:hover,.component-catalog-open:focus-visible { border-color: #8174f3; background: rgba(120,104,255,.16); outline: none; }.component-catalog-open > span { min-width: 0; display: grid; gap: 3px; }.component-catalog-open strong { font-size: 12px; }.component-catalog-open small { color: #8e89bb; font-size: 12px; }.component-catalog-open > b { color: #b2aaff; font-size: 15px; }
.component-quick-list { display: grid; gap: 16px; margin-top: 16px; }.component-quick-group { display: grid; gap: 5px; }.library .component-quick-group + .component-quick-group { margin-top: 0; padding-top: 0; border-top: 0; }.component-quick-group > strong { margin: 0 2px 2px; color: #70737e; font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }.component-quick-group button { width: 100%; min-height: 36px; display: grid; grid-template-columns: 25px minmax(0,1fr) 18px; align-items: center; gap: 7px; padding: 5px 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #b7b9c1; cursor: pointer; text-align: left; }.component-quick-group button:hover,.component-quick-group button:focus-visible { border-color: #393c46; background: #1b1c21; outline: none; }.component-quick-group button.active { border-color: rgba(120,104,255,.4); background: rgba(120,104,255,.08); color: white; }.component-quick-group button > i { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #343741; border-radius: 7px; background: #191a1f; color: #9c93f1; font-size: 12px; font-style: normal; font-weight: 800; }.component-quick-group button > span { overflow: hidden; font-size: 12px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }.component-quick-group button > b { color: #746e94; font-size: 12px; text-align: center; }.component-quick-group button > b.started { color: #59d99a; }
.catalog-journey { display: grid; gap: 7px; }.catalog-journey > strong { font-size: 12px; }.catalog-journey > p { margin: 0; color: #7c7f89; font-size: 12px; line-height: 1.5; }.catalog-journey > button { min-height: 37px; margin-top: 4px; border: 1px solid #6358bd; border-radius: 9px; background: rgba(120,104,255,.1); color: #c9c4ff; cursor: pointer; font-size: 12px; font-weight: 800; }.catalog-journey > button:hover { border-color: #8073ef; }

.component-catalog { width: min(1460px,100%); overflow: hidden; border: 1px solid #30323a; border-radius: 19px; background: #141519; box-shadow: 0 28px 90px rgba(0,0,0,.28); }.component-catalog-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 28px; padding: 30px 32px; border-bottom: 1px solid #2c2e35; background: radial-gradient(circle at 92% 0,rgba(120,104,255,.18),transparent 42%),linear-gradient(145deg,rgba(120,104,255,.055),transparent 62%); }.component-catalog-hero h1 { margin: 9px 0 8px; font-size: clamp(29px,3vw,44px); line-height: 1.02; letter-spacing: -.052em; }.component-catalog-hero p { max-width: 760px; margin: 0; color: #9699a3; font-size: 13px; line-height: 1.6; }.component-catalog-summary { min-width: 155px; display: grid; justify-items: end; gap: 2px; padding: 16px; border: 1px solid rgba(120,104,255,.28); border-radius: 13px; background: rgba(12,13,16,.55); }.component-catalog-summary strong { color: #c8c2ff; font-size: 30px; line-height: 1; }.component-catalog-summary span { color: #858893; font-size: 12px; }.component-catalog-summary b { margin-top: 7px; padding: 5px 7px; border-radius: 999px; background: rgba(66,213,140,.09); color: #65dda0; font-size: 12px; }
.component-catalog-search { display: grid; grid-template-columns: auto minmax(240px,520px); align-items: center; justify-content: space-between; gap: 18px; margin: 20px 32px 0; padding: 7px 7px 7px 13px; border: 1px solid #343741; border-radius: 11px; background: #0f1013; }.component-catalog-search:focus-within { border-color: #7668ed; box-shadow: 0 0 0 3px rgba(120,104,255,.09); }.component-catalog-search > span { color: #8c8f99; font-size: 12px; font-weight: 760; }.component-catalog-search input { width: 100%; min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; outline: 0; background: #191a1f; color: white; font-size: 12px; }
.component-catalog-groups { display: grid; gap: 25px; padding: 25px 32px 34px; }.component-catalog-groups > section { display: grid; gap: 10px; }.component-catalog-groups > section > header { display: flex; align-items: center; gap: 8px; }.component-catalog-groups h2 { margin: 0; font-size: 15px; }.component-catalog-groups header > span { min-width: 24px; padding: 3px 6px; border-radius: 999px; background: #202127; color: #777a84; font-size: 12px; text-align: center; }.component-catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }.component-catalog-card { min-width: 0; min-height: 146px; display: grid; grid-template-columns: 42px minmax(0,1fr); grid-template-rows: auto 1fr auto; align-items: start; gap: 9px 12px; padding: 15px; border: 1px solid #30333b; border-radius: 12px; background: #111216; color: inherit; cursor: pointer; text-align: left; transition: border-color .16s,transform .16s,background-color .16s; }.component-catalog-card:hover,.component-catalog-card:focus-visible { transform: translateY(-2px); border-color: #6860b8; background: linear-gradient(145deg,rgba(120,104,255,.09),#121317 60%); outline: none; }.component-catalog-card.started { border-color: rgba(66,213,140,.3); }.component-catalog-icon { width: 42px; height: 42px; grid-row: 1 / 3; display: grid; place-items: center; border: 1px solid #3a3d47; border-radius: 10px; background: #1b1c21; color: #aaa2ff; font-size: 15px; font-weight: 820; }.component-catalog-card-copy { min-width: 0; display: grid; gap: 5px; }.component-catalog-card-copy strong { font-size: 13px; }.component-catalog-card-copy small { color: #81848e; font-size: 12px; line-height: 1.45; }.component-support { justify-self: start; padding: 4px 6px; border-radius: 6px; font-size: 12px; font-weight: 820; }.component-support.guided { background: rgba(120,104,255,.12); color: #b1a9ff; }.component-support.foundation { background: rgba(255,185,75,.08); color: #d7a550; }.component-evidence { grid-column: 1 / -1; color: #63dca0; font-size: 12px; font-weight: 750; }.component-catalog-card > b { grid-column: 1 / -1; justify-self: end; color: #9c93f2; font-size: 12px; }.component-catalog-empty { margin: 20px 0; padding: 25px; border: 1px dashed #3b3e48; border-radius: 12px; color: #858893; text-align: center; }

.generic-component-plan { width: min(1460px,100%); overflow: hidden; border: 1px solid #30323a; border-radius: 18px; background: #15161a; box-shadow: 0 28px 80px rgba(0,0,0,.32); }.generic-component-plan > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 27px; border-bottom: 1px solid #2b2d34; }.generic-component-plan h1 { margin: 7px 0 5px; font-size: 30px; letter-spacing: -.045em; }.generic-component-plan header p { margin: 0; color: #858893; font-size: 12px; }.generic-component-plan > header > button { min-height: 35px; padding: 0 11px; border: 1px solid #3a3d47; border-radius: 9px; background: #1a1b20; color: #aaa5dc; cursor: pointer; font-size: 12px; font-weight: 600; }.generic-component-stage { min-height: 235px; display: grid; place-items: center; padding: 34px; border-bottom: 1px solid #d7d9df; background: #f7f7f9; color: #20222a; }.generic-component-stage button,.generic-component-stage select,.generic-component-stage textarea,.generic-component-stage input { font: inherit; }.generic-component-stage button { min-height: 38px; padding: 0 14px; border: 1px solid #6257ce; border-radius: 9px; background: #6d5efc; color: white; }.generic-component-stage a { color: #4c3bc2; font-weight: 600; }.generic-component-stage label,.generic-component-stage fieldset,.generic-component-stage nav,.generic-component-stage article,.generic-component-stage section,.generic-component-stage [role="status"] { display: grid; gap: 8px; }.generic-component-stage textarea,.generic-component-stage select { min-width: 290px; padding: 10px; border: 1px solid #afb2bc; border-radius: 8px; background: white; color: #20222a; }.generic-component-stage fieldset { padding: 16px; border: 1px solid #c8cad1; border-radius: 10px; }.generic-component-stage [role="tablist"],.generic-component-stage [aria-label="Pagination"],.generic-component-stage [aria-label="Breadcrumb"] { display: flex; align-items: center; gap: 6px; }.generic-component-stage [role="tablist"] button { border-color: transparent; border-radius: 0; background: transparent; color: #5b5e68; }.generic-component-stage [role="tablist"] button[aria-selected="true"] { border-bottom-color: #6d5efc; color: #4d3dc4; }.generic-component-stage [aria-label="Pagination"] button { min-width: 38px; padding: 0 8px; background: white; color: #41358f; }.generic-component-stage [role="status"],.generic-component-stage article,.generic-component-stage [role="dialog"] { max-width: 390px; padding: 18px; border: 1px solid #d1d3da; border-radius: 12px; background: white; box-shadow: 0 10px 26px rgba(32,34,42,.08); }.generic-component-stage [role="status"] span { color: #686b75; }.preview-badge { padding: 7px 10px; border-radius: 999px; background: #ece9ff; color: #5242b8; font-weight: 600; }.generic-component-stage progress { width: 280px; accent-color: #6d5efc; }.preview-tooltip { position: relative; }.preview-tooltip > span { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 7px 9px; border-radius: 7px; background: #20222a; color: white; white-space: nowrap; }.generic-component-stage table { border-collapse: collapse; background: white; }.generic-component-stage th,.generic-component-stage td { padding: 9px 16px; border: 1px solid #d6d8de; text-align: left; }.generic-component-stage details { width: min(440px,100%); padding: 15px; border: 1px solid #d0d2d9; border-radius: 10px; background: white; }
.generic-plan-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 22px 27px 10px; }.generic-plan-grid > section { padding: 17px; border: 1px solid #2c2e36; border-radius: 12px; background: #111216; }.generic-plan-grid h2,.generic-foundations h2 { margin: 7px 0 12px; font-size: 16px; }.generic-plan-grid ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }.generic-plan-grid li { display: flex; align-items: center; gap: 8px; min-height: 35px; padding: 8px; border: 1px solid #292b32; border-radius: 8px; color: #a6a8b0; font-size: 12px; }.generic-plan-grid li i { color: #8e84e6; font-style: normal; }
.generic-foundations { margin: 0 27px; padding: 17px; border: 1px solid #2c2e36; border-radius: 12px; background: #111216; }.generic-foundations > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }.generic-foundations > header h2 { margin-bottom: 0; }.generic-foundations > header p { max-width: 310px; margin: 0; color: #777a84; font-size: 12px; line-height: 1.45; text-align: right; }.generic-foundations > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 14px; }.generic-foundations article { min-width: 0; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 8px; padding: 10px; border: 1px solid #2e3038; border-radius: 9px; background: #0d0e11; }.generic-foundations article > i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #3a3d47; border-radius: 8px; color: #d8a658; font-size: 12px; font-style: normal; }.generic-foundations article.found > i { border-color: rgba(66,213,140,.32); color: #5ddd9d; }.generic-foundations article > span { min-width: 0; display: grid; gap: 3px; }.generic-foundations strong { font-size: 12px; }.generic-foundations small { overflow: hidden; color: #727580; font: 12px ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }.generic-foundations article > b { grid-column: 2; overflow: hidden; color: #9e99c2; font: 12px ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }.generic-component-plan > footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 27px 25px; }.generic-component-plan > footer p { max-width: 690px; margin: 0; color: #858893; font-size: 12px; line-height: 1.5; }.generic-component-plan > footer strong { color: #c8c4ee; }.generic-component-plan > footer button { min-height: 42px; flex: 0 0 auto; padding: 0 16px; border: 1px solid #897cf5; border-radius: 10px; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; cursor: pointer; font-size: 12px; font-weight: 600; }

.generic-component-stage .preview-switch { position: relative; display: inline-flex; align-items: center; gap: 12px; color: #20222a; cursor: pointer; font-size: 16px; font-weight: 650; }.preview-switch > input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }.preview-switch-control { width: 52px; height: 30px; flex: 0 0 auto; display: block; padding: 3px; border: 1px solid #8075df; border-radius: 999px; background: #7568ef; transition: background-color .16s,border-color .16s; }.preview-switch-control > i { width: 22px; height: 22px; display: block; transform: translateX(20px); border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(31,27,65,.28); transition: transform .16s; }.preview-switch > input:not(:checked) + .preview-switch-control { border-color: #a4a7b1; background: #c1c3ca; }.preview-switch > input:not(:checked) + .preview-switch-control > i { transform: translateX(0); }.preview-switch > input:focus-visible + .preview-switch-control { outline: 3px solid rgba(109,94,252,.3); outline-offset: 3px; }
.generic-foundations > header > div { display: grid; gap: 5px; }.generic-foundations > header > div > p { max-width: 590px; margin: 0; color: #858893; font-size: 12px; line-height: 1.45; }.generic-foundations > header > button { min-height: 40px; flex: 0 0 auto; padding: 0 14px; border: 1px solid #897cf5; border-radius: 10px; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; cursor: pointer; font-size: 12px; font-weight: 600; }.generic-foundations > header > button:hover,.generic-foundations > header > button:focus-visible { border-color: #aaa0ff; outline: 3px solid rgba(120,104,255,.18); }.generic-foundation-choice { min-width: 0; min-height: 68px; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid #2e3038; border-radius: 9px; background: #0d0e11; color: #e2e3e8; cursor: pointer; text-align: left; }.generic-foundation-choice:hover,.generic-foundation-choice:focus-visible,.generic-foundation-choice[aria-expanded="true"] { border-color: #7065d6; background: rgba(120,104,255,.08); outline: none; }.generic-foundation-choice > i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #3a3d47; border-radius: 8px; color: #d8a658; font-size: 12px; font-style: normal; }.generic-foundation-choice.found > i { border-color: rgba(66,213,140,.32); color: #5ddd9d; }.generic-foundation-choice > span { min-width: 0; display: grid; gap: 4px; }.generic-foundation-choice > b { color: #aaa2ff; font-size: 12px; white-space: nowrap; }.generic-foundation-chooser { margin-top: 12px; padding: 14px; border: 1px solid rgba(120,104,255,.42); border-radius: 11px; background: #171722; }.generic-foundation-chooser > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.generic-foundation-chooser h3 { margin: 4px 0 0; font-size: 15px; }.generic-foundation-chooser > header > button { width: 31px; height: 31px; border: 1px solid #3b3d48; border-radius: 8px; background: #101115; color: #aaa4cf; cursor: pointer; }.generic-foundation-candidates,.generic-foundation-raw { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }.generic-foundation-candidates > button,.generic-foundation-raw > button { min-width: 0; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid #343640; border-radius: 9px; background: #0f1014; color: #ebecf0; cursor: pointer; text-align: left; }.generic-foundation-candidates > button:hover,.generic-foundation-candidates > button:focus-visible,.generic-foundation-candidates > button.selected,.generic-foundation-raw > button:hover,.generic-foundation-raw > button:focus-visible { border-color: #776bea; background: rgba(120,104,255,.09); outline: none; }.generic-foundation-candidates > button > span,.generic-foundation-raw > button > span { min-width: 0; display: grid; gap: 4px; }.generic-foundation-candidates strong,.generic-foundation-raw strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.generic-foundation-candidates small,.generic-foundation-raw small { color: #797c86; font-size: 12px; }.generic-foundation-candidates b,.generic-foundation-raw b { flex: 0 0 auto; color: #c1bcff; font: 12px ui-monospace,SFMono-Regular,Menlo,monospace; }.generic-foundation-empty { display: grid; gap: 8px; margin-top: 12px; padding: 13px; border: 1px dashed #4a4132; border-radius: 9px; background: rgba(255,185,75,.035); }.generic-foundation-empty > strong { color: #e0b15f; font-size: 12px; }.generic-foundation-empty > p { max-width: 700px; margin: 0; color: #8c8f99; font-size: 12px; line-height: 1.55; }.generic-foundation-empty > button { justify-self: start; min-height: 34px; padding: 0 10px; border: 1px solid #5f568f; border-radius: 8px; background: rgba(120,104,255,.08); color: #c3bdff; cursor: pointer; font-size: 12px; font-weight: 600; }
.generic-foundation-recommendation { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; margin-top: 12px; padding: 15px; border: 1px solid rgba(120,104,255,.52); border-radius: 11px; background: linear-gradient(135deg,rgba(120,104,255,.14),rgba(120,104,255,.045)); }.generic-foundation-recommendation > div { min-width: 0; display: grid; gap: 5px; }.generic-foundation-recommendation > div > strong { overflow: hidden; font: 600 12px ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }.generic-foundation-recommendation p { margin: 0; color: #9b9da6; font-size: 12px; line-height: 1.45; }.generic-foundation-recommendation small { color: #c6c1ff; font: 12px ui-monospace,SFMono-Regular,Menlo,monospace; }.generic-foundation-recommendation > button { min-height: 38px; padding: 0 13px; border: 1px solid #9388ff; border-radius: 9px; background: #6d5efc; color: white; cursor: pointer; font-size: 12px; font-weight: 600; }.generic-foundation-alternatives { display: grid; gap: 4px; margin-top: 14px; }.generic-foundation-alternatives > header { display: flex; justify-content: space-between; gap: 12px; color: #858893; font-size: 12px; }.generic-foundation-alternatives > header strong { color: #b7b9c1; }.generic-foundation-alternatives > button { justify-self: start; min-height: 31px; padding: 0; border: 0; background: transparent; color: #aaa2ff; cursor: pointer; font-size: 12px; font-weight: 600; }
.generic-review-progress { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 22px 27px 0; padding: 15px 17px; border: 1px solid rgba(120,104,255,.28); border-radius: 11px; background: rgba(120,104,255,.055); }.generic-review-progress > div { display: grid; gap: 4px; }.generic-review-progress strong { font-size: 12px; }.generic-review-progress span { color: #858893; font-size: 12px; }.generic-review-progress progress { width: min(320px,40%); height: 8px; accent-color: #6d5efc; }.generic-review-layout { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.5fr); gap: 10px; padding: 10px 27px 0; }.generic-review-layout > section { padding: 17px; border: 1px solid #2c2e36; border-radius: 12px; background: #111216; }.generic-review-layout h2 { margin: 7px 0 12px; font-size: 16px; }.generic-review-tokens { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }.generic-review-tokens li { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 8px; align-items: center; padding: 9px; border: 1px solid #2c2e36; border-radius: 8px; }.generic-review-tokens i { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid rgba(66,213,140,.3); border-radius: 7px; color: #5ddd9d; font-style: normal; }.generic-review-tokens span { min-width: 0; display: grid; gap: 3px; }.generic-review-tokens strong { font-size: 12px; }.generic-review-tokens small { overflow: hidden; color: #7f828c; font: 12px ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }.generic-review-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }.generic-review-checks label { min-width: 0; display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 8px; min-height: 62px; padding: 10px; border: 1px solid #2d3038; border-radius: 9px; background: #0d0e11; cursor: pointer; }.generic-review-checks label:has(input:checked) { border-color: rgba(66,213,140,.34); background: rgba(66,213,140,.04); }.generic-review-checks input { margin-top: 2px; accent-color: #6d5efc; }.generic-review-checks span { min-width: 0; display: grid; gap: 4px; }.generic-review-checks strong { font-size: 12px; }.generic-review-checks small { color: #7f828c; font-size: 12px; line-height: 1.45; }

/* Foundation choices and component-state reviews must remain distinct, readable actions. */
.generic-foundations .generic-foundation-recommendation { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,230px); align-items: center; gap: 18px; }.generic-foundations .generic-foundation-recommendation-copy { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 16px; }.generic-foundations .generic-foundation-recommendation-copy .kicker,.generic-foundations .generic-foundation-recommendation-copy p { grid-column: 1 / -1; }.generic-foundations .generic-foundation-recommendation-copy strong { min-width: 0; overflow: hidden; font: 600 12px ui-monospace,SFMono-Regular,Menlo,monospace; text-overflow: ellipsis; white-space: nowrap; }.generic-foundations .generic-foundation-recommendation-copy small { color: #c6c1ff; font: 12px ui-monospace,SFMono-Regular,Menlo,monospace; white-space: nowrap; }.generic-foundations .generic-foundation-recommendation-copy p { max-width: 680px; margin: 2px 0 0; color: #9b9da6; font-size: 12px; line-height: 1.5; }.generic-foundations .generic-foundation-recommendation > button { width: 100%; min-height: 42px; position: static; align-self: center; padding: 0 13px; white-space: nowrap; }
.generic-review-header-actions { display: flex; align-items: center; gap: 8px; }.generic-component-plan > header .generic-review-header-actions > button { min-height: 35px; padding: 0 11px; border: 1px solid #3a3d47; border-radius: 9px; background: #1a1b20; color: #aaa5dc; cursor: pointer; font-size: 12px; font-weight: 600; }.generic-component-plan > header .generic-review-header-actions > button:first-child { border-color: #655bb5; background: rgba(120,104,255,.08); color: #c1bbff; }
.generic-state-review { margin: 22px 27px 0; overflow: hidden; border: 1px solid #343741; border-radius: 14px; background: #111216; }.generic-state-review > header { display: grid; grid-template-columns: minmax(230px,.65fr) minmax(0,1.35fr); gap: 24px; align-items: end; padding: 17px; }.generic-state-review > header h2 { margin: 7px 0 5px; font-size: 17px; }.generic-state-review > header p { margin: 0; color: #858893; font-size: 12px; line-height: 1.5; }.generic-state-tabs { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(110px,1fr)); gap: 7px; }.generic-state-tabs button { min-width: 0; min-height: 55px; display: grid; gap: 4px; align-content: center; padding: 9px 11px; border: 1px solid #343741; border-radius: 9px; background: #17181d; color: #d6d7dc; cursor: pointer; text-align: left; }.generic-state-tabs button:hover,.generic-state-tabs button:focus-visible { border-color: #6f65cf; outline: none; }.generic-state-tabs button.active { border-color: #8a7df6; background: rgba(120,104,255,.13); box-shadow: inset 0 0 0 1px rgba(138,125,246,.22); }.generic-state-tabs button.confirmed { border-color: rgba(66,213,140,.38); }.generic-state-tabs strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.generic-state-tabs small { color: #777a84; font-size: 12px; }.generic-state-tabs button.viewed small { color: #aaa4cf; }.generic-state-tabs button.confirmed small { color: #66dca0; }
.generic-state-review .generic-component-stage { min-height: 270px; border-top: 1px solid #d7d9df; }.generic-active-state-review { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,.8fr); gap: 18px; align-items: center; padding: 15px 17px; border-top: 1px solid #2d3038; }.generic-active-state-review > div { display: grid; gap: 4px; }.generic-active-state-review h3 { margin: 0; font-size: 16px; }.generic-active-state-review p { margin: 0; color: #858893; font-size: 12px; line-height: 1.45; }.generic-active-state-review > label { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 9px; align-items: start; padding: 11px; border: 1px solid #3a3d47; border-radius: 10px; background: #0d0e11; cursor: pointer; }.generic-active-state-review > label:has(input:checked) { border-color: rgba(66,213,140,.4); background: rgba(66,213,140,.045); }.generic-active-state-review input { margin-top: 3px; accent-color: #6d5efc; }.generic-active-state-review label span { display: grid; gap: 4px; }.generic-active-state-review label strong { font-size: 12px; }.generic-active-state-review label small { color: #7f828c; font-size: 12px; line-height: 1.4; }
.generic-preview-state.is-focus,.generic-preview-state.is-focus select,.generic-preview-state.is-focus textarea { outline: 3px solid #7668ed; outline-offset: 4px; }.generic-preview-state.is-disabled { opacity: .58; }.preview-select { width: min(360px,100%); position: relative; display: grid; gap: 7px; text-align: left; }.preview-select > label,.preview-field { color: #20222a; font-size: 12px; font-weight: 600; }.preview-select-control { position: relative; }.preview-select-control:after { content: "⌄"; position: absolute; right: 13px; top: 50%; transform: translateY(-55%); pointer-events: none; color: #343640; font-size: 18px; }.preview-select select { width: 100%; min-height: 45px; padding-right: 38px; appearance: none; }.preview-select.is-invalid select { border-color: #c33f55; box-shadow: 0 0 0 1px rgba(195,63,85,.16); }.generic-preview-error { margin: 0; color: #a92d43; font-size: 12px; font-weight: 600; }.generic-preview-help { margin: 0; color: #686b75; font-size: 12px; }.preview-select-menu { position: absolute; z-index: 2; top: calc(100% - 1px); left: 0; right: 0; display: grid; padding: 5px; border: 1px solid #9b9eaa; border-radius: 0 0 8px 8px; background: white; box-shadow: 0 14px 30px rgba(31,33,40,.18); }.preview-select-menu [role="option"] { padding: 8px 10px; border-radius: 5px; font-size: 12px; }.preview-select-menu [role="option"][aria-selected="true"] { background: #ece9ff; color: #4d3dc4; }.generic-component-stage .state-selected,.generic-component-stage .state-hover { box-shadow: 0 0 0 3px rgba(109,94,252,.16); }.generic-component-stage tr.is-selected { background: #ece9ff; }
.generic-review-section-copy { margin: -5px 0 12px; color: #858893; font-size: 12px; line-height: 1.5; }.generic-review-layout > section > h3 { margin: 18px 0 8px; color: #aeb0b8; font-size: 12px; }.generic-review-layout > section > h3:first-of-type { margin-top: 0; }.generic-review-tokens li { grid-template-columns: 25px minmax(0,1fr) auto; }.generic-review-tokens button { min-height: 31px; padding: 0 9px; border: 1px solid #48435f; border-radius: 7px; background: #191922; color: #b7b0ff; cursor: pointer; font-size: 12px; font-weight: 600; }.generic-review-tokens button:hover,.generic-review-tokens button:focus-visible { border-color: #7c70e7; outline: none; }
.generic-foundation-handoff { grid-template-columns: minmax(320px,1.2fr) minmax(260px,.9fr) minmax(240px,.75fr); }
.generic-handoff-share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.handoff-copy .generic-handoff-share-actions > button { margin-top: 0; font-size: 13px; font-weight: 600; }
.handoff-copy button { font-weight: 600; }
.handoff-guide li i { font-weight: 650; }

@media (max-width: 1100px) {
  .component-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .generic-foundations > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .generic-state-review > header,.generic-active-state-review { grid-template-columns: 1fr; }
  .generic-foundation-handoff { grid-template-columns: 1fr 1fr; }.generic-foundation-handoff .handoff-note { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .component-catalog-hero { grid-template-columns: 1fr; }.component-catalog-summary { justify-items: start; }.component-catalog-search { grid-template-columns: 1fr; }.component-catalog-grid { grid-template-columns: 1fr; }
  .generic-component-plan > header,.generic-component-plan > footer,.generic-foundations > header,.generic-review-progress { align-items: stretch; flex-direction: column; }.generic-plan-grid,.generic-foundations > div,.generic-foundation-candidates,.generic-foundation-raw,.generic-review-layout,.generic-review-checks,.generic-foundation-recommendation { grid-template-columns: 1fr; }.generic-foundations > header p { max-width: none; text-align: left; }.generic-review-progress progress { width: 100%; }.generic-review-header-actions { align-items: stretch; flex-direction: column; }.generic-state-review { margin-inline: 14px; }.generic-state-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }.generic-foundations .generic-foundation-recommendation { grid-template-columns: 1fr; }.generic-review-tokens li { grid-template-columns: 25px minmax(0,1fr); }.generic-review-tokens button { grid-column: 2; justify-self: start; }.generic-foundation-handoff { grid-template-columns: 1fr; }.generic-foundation-handoff .handoff-note { grid-column: auto; }
}

/* Keep the guided decision readable; provenance should not become microcopy. */
.guided-button-instance { width: min(1120px,100%); }
.button-focus-copy > span,.button-focus-kicker { font-size: 12px; }.button-focus-copy p { font-size: 12px; }.button-focus-token strong { font-size: 12px; }.button-focus-token small,.button-focus-recommendation summary,.button-focus-recommendation details p { font-size: 12px; }.guided-token-swatch,.guided-token-value { font-size: 12px; }.button-focus-primary,.button-focus-secondary,.button-focus-quiet,.button-focus-none-choice { font-size: 12px; }.button-focus-alternatives summary { font-size: 12px; }.button-focus-alternatives strong { font-size: 12px; }.button-focus-alternatives small { font-size: 12px; }.button-focus-step-navigation { font-size: 12px; }

@media (max-width: 900px) {
  .topbar { padding: 0 12px; gap: 10px; }.brand { min-width: 0; }.brand > span:last-child { display: none; }.main-nav { margin-left: auto; }.nav-item { min-width: auto; padding: 0 10px; }.quiet-action { display: none; }
  .start-page { padding: 48px 16px 70px; }.start-page.compass-active { padding-top: 34px; }.start-hero h1 { font-size: 46px; }.start-options { grid-template-columns: 1fr; }.start-card { min-height: 300px; }.result-tokens { grid-template-columns: 1fr 1fr; }.import-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }.import-mapping-list { grid-template-columns: 1fr; }.import-pattern-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .system-journey-page { padding: 38px 16px 65px; }.system-journey-hero { grid-template-columns: 1fr; gap: 18px; }.journey-position { max-width: 360px; }.system-journey-layout { grid-template-columns: 1fr; }.journey-current { position: relative; top: auto; }.journey-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #projectCompassForm { grid-template-columns: 1fr; }.mission-card { position: relative; }.compass-options.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .design-workspace { grid-template-columns: 200px minmax(0,1fr); overflow-x: hidden; }.library { padding-left: 11px; padding-right: 11px; }.canvas { padding: 22px; }.component-instance { width: 100%; min-width: 0; }.canvas-toolbar { gap: 8px; padding-inline: 10px; }.canvas-toolbar > p { display: none; }
  .code-page { padding: 42px 16px 70px; }.code-hero h1 { font-size: 32px; }.handoff-guide,.accessibility-columns { grid-template-columns: 1fr; }.handoff-guide-simple { grid-template-columns: 1fr; }.accessibility-heading,.mapping-heading,.contract-heading,.contract-section > header { align-items: stretch; flex-direction: column; }.accessibility-summary,.contract-status { min-width: 0; }.code-tools { align-items: stretch; flex-direction: column; gap: 10px; }.code-tools > p { justify-items: start; text-align: left; }.mapping-row { grid-template-columns: 1fr; }.mapping-row-title { grid-template-columns: auto 1fr; align-items: baseline; }
  .contract-principles { grid-template-columns: 1fr 1fr; }.contract-principles > .contract-anatomy { grid-column: 1 / -1; }.contract-section > header > p { max-width: none; text-align: left; }.behaviour-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .button-role-picker { align-items: stretch; flex-direction: column; }.button-role-picker > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }.button-role-picker button { min-width: 0; }
}

@media (max-width: 760px) {
  .contract-principles,.contract-state-grid,.contract-review-list { grid-template-columns: 1fr; }
  .contract-principles > .contract-anatomy { grid-column: auto; grid-template-columns: 1fr; }
  .behaviour-grid { grid-template-columns: 1fr 1fr; }
  .last-change-summary { grid-template-columns: 1fr; }
  .human-review-next { align-items: stretch; flex-direction: column; }
  .human-review-actions { align-items: stretch; flex-direction: column; }
  .human-review-actions button { width: 100%; }
  .button-state-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .handoff-chain { grid-template-columns: 1fr 1fr; }
  .handoff-guide .handoff-chain li + li:before { display: none; }
  .human-review-list,.human-review-guidance > div { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .import-review > header,.import-component-review > header,.import-pattern-review > header,.import-system-map > header { align-items: stretch; flex-direction: column; }.import-system-map { margin-inline: 16px; }.import-system-map header p { text-align: left; }.import-summary,.import-coverage-map,.import-pattern-list { grid-template-columns: 1fr; }.import-family-picker { grid-template-columns: 1fr; }.import-family-picker [role="radiogroup"] { grid-template-columns: 1fr; }.import-mode-group { align-items: stretch; flex-direction: column; }.import-mode-group > span { margin-right: 0; }.import-mode-group > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }.import-review > footer { align-items: stretch; flex-direction: column; }.import-review > footer .text-button { margin-right: 0; }.import-mapping-row { grid-template-columns: 34px minmax(0,1fr); }.import-mapping-row > b { grid-column: 2; justify-self: start; }
  .compass-heading h2 { font-size: 32px; }.compass-heading > div { flex-wrap: wrap; }.compass-heading p { font-size: 12px; }
  .compass-questions fieldset { padding: 15px; }.compass-questions legend { grid-template-columns: 1fr; }.compass-questions legend small { grid-column: auto; }
  .compass-options,.compass-options.compact { grid-template-columns: 1fr; }.compass-options label > span,.compass-options.compact label > span { min-height: 86px; }
  .button-focus-recommendation { grid-template-columns: 1fr; }.button-focus-recommendation details { grid-column: auto; }.button-focus-recommendation .button-focus-primary { width: 100%; }.button-focus-alternatives > div,.button-focus-summary { grid-template-columns: 1fr; }.button-focus-footer,.button-focus-actions { align-items: stretch; flex-direction: column; }.button-focus-footer > div:not(.button-focus-step-navigation) { align-items: stretch; flex-direction: column; }.button-focus-step-navigation { flex-wrap: wrap; }.button-focus-actions .button-focus-primary { width: 100%; }.handoff-flow { align-items: stretch; flex-direction: column; }.handoff-guide .handoff-flow li,.handoff-guide .handoff-flow li:first-child { border-top: 1px solid #30333b; border-left: 0; }.build-guide-use,.build-guide-parts { grid-template-columns: 1fr; }.build-guide-use { margin-left: 0; }
  .system-journey-hero h1 { font-size: 39px; }.system-stage button { grid-template-columns: 38px minmax(0,1fr); }.system-stage-status { grid-column: 2; justify-self: start; }.journey-evidence > header { align-items: stretch; flex-direction: column; gap: 8px; }.journey-evidence > header > p { text-align: left; }.journey-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.journey-components { grid-template-columns: 1fr; }.journey-future-ready { grid-template-columns: 1fr; }.journey-component-card { grid-template-columns: 34px minmax(0,1fr); }.journey-component-card button { grid-column: 2; justify-self: start; }
  .code-hero { align-items: stretch; flex-direction: column; }.code-hero-actions { width: 100%; }.code-hero-actions button { flex: 1; }.code-tabs { overflow-x: auto; }.code-tabs span { display: none; }.contract-heading,.contract-section,.contract-review { padding: 19px; }.contract-principles,.contract-state-grid,.contract-review-list { grid-template-columns: 1fr; }.contract-principles > .contract-anatomy { grid-column: auto; grid-template-columns: 1fr; }.behaviour-grid { grid-template-columns: 1fr; }.contract-review > header { flex-direction: column; }.review-progress { width: 100%; }.export-dialog { padding: 10px; }.export-dialog-card { max-height: calc(100vh - 20px); padding: 23px 17px 19px; border-radius: 15px; }.export-dialog-close { right: 12px; top: 12px; }.export-file-list,.export-details { grid-template-columns: 1fr; }.export-file-list li:first-child { grid-column: auto; }.export-readiness { grid-template-columns: 31px 1fr; }.export-readiness > b { grid-column: 2; justify-self: start; }.export-dialog-card > footer button { flex: 1; }
  .handoff-chain { grid-template-columns: 1fr; }
  .human-review { padding: 19px; }
  .human-review > header { flex-direction: column; }
  .human-review .review-progress { width: 100%; }
  .handoff-result-actions { align-items: stretch; flex-direction: column; }
  .handoff-result-actions button { width: 100%; }
  .button-role-picker > div,.build-guide-role { grid-template-columns: 1fr; }
}

/* One stable design-system workspace: foundations are a first-class editor, not a wizard route. */
.foundations-overview { width: min(1080px,100%); display: grid; gap: 18px; padding: 26px; border: 1px solid #343640; border-radius: 18px; background: rgba(20,21,25,.97); box-shadow: 0 28px 90px rgba(0,0,0,.3); }
.design-workspace.foundations-mode .library > section:not(.token-section) { display: none; }
.design-workspace.foundations-mode .token-section { display: block; margin-top: 0; padding-top: 13px; border-top: 0; }
.design-workspace.foundations-mode #closeTokenLibrary { display: none; }
.foundations-overview > header,.foundations-overview > footer,.foundation-coverage > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.foundations-overview h1 { margin: 6px 0 5px; font-size: clamp(27px,3vw,38px); letter-spacing: -.045em; }
.foundations-overview h2 { margin: 5px 0 0; font-size: 21px; }
.foundations-overview p { max-width: 720px; margin: 0; color: #92959f; line-height: 1.55; }
.foundations-overview button { min-height: 42px; padding: 0 14px; border: 1px solid #45414f; border-radius: 10px; background: #191a20; color: #d4d0f9; cursor: pointer; font-weight: 780; }
.foundations-overview button:hover,.foundations-overview button:focus-visible { border-color: #8174f3; outline: none; background: #21212a; color: white; }
.foundation-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.foundation-summary button { min-height: 112px; display: grid; align-content: center; justify-items: start; gap: 4px; padding: 15px; text-align: left; }
.foundation-summary strong { color: white; font-size: 26px; }
.foundation-summary span { font-size: 14px; }
.foundation-summary small { color: #7d808b; font-size: 12px; }
.foundation-coverage { display: grid; gap: 13px; padding: 18px; border: 1px solid #2e3038; border-radius: 13px; background: #111216; }
.foundation-coverage > header > span { color: #8c8f99; font-size: 14px; }
.foundation-coverage > div { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.foundation-coverage article { display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 10px; padding: 12px; border: 1px solid #343640; border-radius: 10px; }
.foundation-coverage article > i { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,185,75,.34); border-radius: 8px; color: #e1ad56; font-style: normal; }
.foundation-coverage article.found > i { border-color: rgba(66,213,140,.35); color: #61dda0; }
.foundation-coverage article > span { min-width: 0; display: grid; gap: 3px; }
.foundation-coverage article strong { font-size: 14px; }
.foundation-coverage article small { color: #7c7f89; font-size: 12px; line-height: 1.35; }
.foundations-overview > footer { padding-top: 2px; border-top: 1px solid #292b32; }
.foundations-overview > footer p { padding-top: 16px; }
.relationship-detail { grid-column: 1 / -1 !important; }
.relationship-detail > summary { min-height: 34px; display: inline-flex; align-items: center; color: #b7b1ee !important; }
.relationship-detail[open] .token-metro { margin-top: 8px; }

.assist-dialog { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; background: rgba(5,6,8,.78); backdrop-filter: blur(9px); animation: exportFadeIn .18s ease both; }
.assist-dialog[hidden] { display: none; }
.assist-dialog-card { width: min(660px,100%); position: relative; padding: 30px; border: 1px solid #3c3f49; border-radius: 19px; background: radial-gradient(circle at 100% 0,rgba(120,104,255,.15),transparent 38%),#15161b; box-shadow: 0 36px 120px rgba(0,0,0,.55); animation: exportCardIn .2s ease both; }
.assist-dialog-close { width: 40px; height: 40px; position: absolute; right: 18px; top: 18px; border: 1px solid #393c46; border-radius: 10px; background: #1d1e24; color: #a7aab4; cursor: pointer; font-size: 20px; }
.assist-dialog-card > header { padding-right: 52px; }
.assist-dialog-card h2 { margin: 8px 0 7px; font-size: 27px; letter-spacing: -.04em; }
.assist-dialog-card header p,.assist-dialog-note { margin: 0; color: #989ba5; line-height: 1.55; }
.assist-change-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 22px 0 14px; }
.assist-change-summary article { min-width: 0; display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; padding: 13px; border: 1px solid #30323b; border-radius: 11px; background: #111216; }
.assist-change-summary article > i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #4a4562; border-radius: 9px; color: #a69cff; font-style: normal; }
.assist-change-summary span { min-width: 0; display: grid; gap: 3px; }
.assist-change-summary strong { font-size: 20px; }
.assist-change-summary small { color: #858893; font-size: 12px; line-height: 1.35; }
.assist-dialog-note { padding: 12px 13px; border: 1px solid #2e3038; border-radius: 9px; background: rgba(120,104,255,.04); }
.assist-dialog-card > footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.assist-dialog-card > footer button { min-height: 44px; padding: 0 17px; border-radius: 9px; cursor: pointer; font-weight: 800; }
.assist-secondary { border: 1px solid #383b45; background: #1b1c21; color: #c2c4cc; }
.assist-primary { border: 1px solid #897cf5; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; box-shadow: 0 10px 26px rgba(98,80,223,.23); }

.figma-connect-dialog { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 24px; background: rgba(5,6,8,.78); backdrop-filter: blur(9px); animation: exportFadeIn .18s ease both; }
.figma-connect-dialog[hidden] { display: none; }
.figma-connect-card { width: min(680px,100%); position: relative; padding: 30px; border: 1px solid #3c3f49; border-radius: 19px; background: radial-gradient(circle at 100% 0,rgba(120,104,255,.15),transparent 38%),#15161b; box-shadow: 0 36px 120px rgba(0,0,0,.55); animation: exportCardIn .2s ease both; }
.figma-connect-close { width: 40px; height: 40px; position: absolute; right: 18px; top: 18px; border: 1px solid #393c46; border-radius: 10px; background: #1d1e24; color: #a7aab4; cursor: pointer; font-size: 20px; }
.figma-connect-card > header { padding-right: 52px; }
.figma-connect-card h2 { margin: 8px 0 7px; font-size: 27px; letter-spacing: -.04em; }
.figma-connect-card header p { margin: 0; color: #989ba5; line-height: 1.55; }
.figma-connect-project { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 22px 0 14px; }
.figma-connect-project span { min-width: 0; display: grid; gap: 3px; padding: 12px; border: 1px solid #30323b; border-radius: 10px; background: #111216; }
.figma-connect-project strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.figma-connect-project small { color: #858893; font-size: 12px; }
.figma-connect-code { display: grid; gap: 7px; color: #c9cbd2; font-size: 12px; font-weight: 600; }
.figma-connect-code textarea { width: 100%; resize: none; padding: 12px; border: 1px solid #393c46; border-radius: 10px; outline: none; background: #0f1013; color: #cfcafc; font: 12px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace; }
.figma-connect-code textarea:focus { border-color: #7667f1; box-shadow: 0 0 0 4px rgba(120,104,255,.1); }
.figma-connect-steps { display: grid; gap: 7px; margin: 16px 0; padding-left: 22px; color: #c7c9d0; }
.figma-connect-steps li { padding-left: 3px; }
.figma-connect-note { margin: 0; padding: 12px 13px; border: 1px solid #2e3038; border-radius: 9px; background: rgba(120,104,255,.04); color: #989ba5; line-height: 1.5; }
.figma-connect-card > footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.figma-connect-card > footer button { min-height: 44px; padding: 0 17px; border-radius: 9px; cursor: pointer; font-weight: 600; }
.figma-connect-secondary { border: 1px solid #383b45; background: #1b1c21; color: #c2c4cc; }
.figma-connect-primary { border: 1px solid #897cf5; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; box-shadow: 0 10px 26px rgba(98,80,223,.23); }

@media (max-width: 900px) {
  .foundation-summary,.foundation-coverage > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .foundations-overview { padding: 18px; }
  .foundations-overview > header,.foundations-overview > footer,.foundation-coverage > header { align-items: stretch; flex-direction: column; }
  .foundation-summary,.foundation-coverage > div,.assist-change-summary { grid-template-columns: 1fr; }
  .assist-dialog { padding: 10px; }
  .assist-dialog-card { padding: 24px 17px 18px; }
  .assist-dialog-card > footer button { flex: 1; }
  .figma-connect-dialog { padding: 10px; }
  .figma-connect-card { padding: 24px 17px 18px; }
  .figma-connect-project { grid-template-columns: 1fr; }
  .figma-connect-card > footer { align-items: stretch; flex-direction: column-reverse; }
  .figma-connect-card > footer button { width: 100%; }
}
@media (max-width: 760px) {
  .design-workspace.foundations-mode:not(.token-library-open) .library { display: none; }
  .design-workspace.foundations-mode #closeTokenLibrary { display: block; }
}

/* UX model: one location, one task, and explicit Browse / Choose / Edit modes. */
.workspace-context { min-height: 62px; flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 8px 22px; border-bottom: 1px solid var(--line); background: var(--surface-0); }
.workspace-parent { min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--thatway-soft); cursor: pointer; font-size: 12px; font-weight: 750; }
.workspace-parent:hover { border-color: #6259aa; color: white; }
.workspace-location { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: baseline; gap: 2px 10px; }
.workspace-location > span { grid-column: 1 / -1; overflow: hidden; color: #7f75d5; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.workspace-location > strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-location > small { overflow: hidden; color: #858893; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.status-help { position: relative; }.status-help summary { color: #9993d0; cursor: help; font-size: 12px; font-weight: 720; list-style: none; text-decoration: underline; text-underline-offset: 2px; }.status-help summary::-webkit-details-marker { display: none; }.status-help p { width: min(480px,80vw); position: absolute; z-index: 70; right: 0; top: calc(100% + 7px); margin: 0; padding: 11px 12px; border: 1px solid #464050; border-radius: 9px; background: #202127; box-shadow: 0 16px 40px rgba(0,0,0,.38); color: #a4a7b1; font-size: 12px; line-height: 1.55; }.status-help p b { color: #dedaff; }
.workspace-next { min-height: 40px; padding: 0 14px; border: 1px solid #8275f3; border-radius: 9px; background: linear-gradient(135deg,#7868ff,#6250df); color: white; cursor: pointer; font-size: 12px; font-weight: 820; box-shadow: 0 8px 22px rgba(98,80,223,.2); }
.workspace-next:disabled { border-color: #363943; background: #1a1b20; color: #777a84; cursor: default; box-shadow: none; }

.token-library-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.token-library-heading > div { min-width: 0; display: grid; gap: 4px; }.token-library-heading strong { font-size: 16px; }
.token-library-heading > button { width: 30px; height: 30px; border: 1px solid #343741; border-radius: 8px; background: #1a1b20; color: #999ca6; cursor: pointer; font-size: 18px; }
.token-search { display: grid; gap: 5px; margin-bottom: 9px; }.token-search > span { color: #777a84; font-size: 12px; font-weight: 750; }
.token-search input { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #343741; border-radius: 8px; outline: 0; background: #0f1013; color: white; font-size: 12px; }.token-search input:focus { border-color: #7669e7; box-shadow: 0 0 0 3px rgba(120,104,255,.1); }
.token-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }.token-filters button { min-height: 29px; padding: 0 8px; border: 1px solid #30323a; border-radius: 999px; background: #17181d; color: #888b95; cursor: pointer; font-size: 12px; font-weight: 720; }.token-filters button.active { border-color: #786bf0; background: rgba(120,104,255,.13); color: #e7e4ff; }
.token-result-count { margin: 0 0 7px; color: #8d90a0; font-size: 12px; line-height: 1.4; }
.token-editor-actions { display: flex; flex-wrap: wrap; gap: 7px; }.token-editor-actions button,.token-done-action { min-height: 34px; padding: 0 11px; border: 1px solid #4a4563; border-radius: 8px; background: #1b1a22; color: #d0cbff; cursor: pointer; font-size: 12px; font-weight: 780; }.token-editor-actions .token-use-action { border-color: #8174f3; background: linear-gradient(135deg,#7464f0,#5f4dd5); color: white; }
.design-workspace.guided-button-mode.token-library-open .token-section,.design-workspace.guided-text-input-mode.token-library-open .token-section { display: block; }
.design-workspace:not(.token-library-open) .token-section { display: none; }
.design-workspace.token-library-open { grid-template-columns: minmax(310px,360px) minmax(0,1fr); }
.design-workspace.token-library-open .journey-section,.design-workspace.token-library-open .library > section:not(.token-section) { display: none; }
.design-workspace.token-library-open .token-section { margin-top: 0; padding-top: 13px; border-top: 0; }

.last-change-summary > p { margin: 0; color: #838691; font-size: 12px; line-height: 1.5; }.last-change-summary > p strong { color: #bdb8eb; }
.last-change-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.last-change-actions button { min-height: 34px; padding: 0 10px; border: 1px solid #6057a3; border-radius: 8px; background: rgba(120,104,255,.09); color: #cbc6ff; cursor: pointer; font-size: 12px; font-weight: 780; }.last-change-actions small { color: #777a84; font-size: 12px; }

.code-page { width: min(1600px,100%); max-width: none; }
.code-draft-gate { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 22px; margin-bottom: 18px; padding: 22px; border: 1px solid rgba(255,185,75,.35); border-radius: 15px; background: linear-gradient(145deg,rgba(255,185,75,.065),#15161a 58%); }
.code-draft-gate h2 { margin: 7px 0 5px; font-size: 21px; }.code-draft-gate p { margin: 0; color: #8d909a; font-size: 12px; line-height: 1.5; }.code-draft-gate ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }.code-draft-gate li { padding: 5px 7px; border: 1px solid #3b352b; border-radius: 7px; color: #bd9a61; font-size: 12px; }
.code-draft-actions { display: grid; gap: 7px; }.code-draft-actions button { min-height: 39px; padding: 0 13px; border: 1px solid #4b4e59; border-radius: 9px; background: #1b1c21; color: #c7c9d0; cursor: pointer; font-size: 12px; font-weight: 800; }.code-draft-actions .code-continue-action { border-color: #8174f3; background: linear-gradient(135deg,#7868ff,#6250df); color: white; }
.code-hero button.draft-output { border-color: #3b3e48; background: #18191e; color: #8b8e98; box-shadow: none; }

@media (max-width: 900px) {
  .workspace-context { grid-template-columns: minmax(0,1fr) auto; padding-inline: 12px; }.workspace-parent { display: none; }.workspace-location > small { display: none; }.workspace-next { padding-inline: 10px; }
  .design-workspace.token-library-open { grid-template-columns: minmax(250px,310px) minmax(0,1fr); }
  .code-draft-gate { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .design-workspace.token-library-open { grid-template-columns: 1fr; }
  .design-workspace.token-library-open .canvas-column { display: none; }
  .last-change-actions { align-items: stretch; flex-direction: column; }
  .code-hero { align-items: stretch; flex-direction: column; }
  .code-hero-actions { width: 100%; }.code-hero-actions button { flex: 1; }
}

/* System-first workbench: Plan, stable inspector and readable controls. */
body { font-size: 14px; }
button,input,select,textarea,label,summary { font-size: 14px !important; }
small { font-size: 14px !important; }
p,.section-help,.workspace-location > small,.status-help p,.start-card > p,.journey-current header p,.journey-current-body li,.journey-honesty,.journey-evidence > header > p,.journey-component-card small,.journey-components-empty,.journey-future-ready p,.generic-review-section-copy,.generic-active-state-review p,.generic-active-state-review label small,.generic-preview-error,.generic-preview-help,.handoff-note span { font-size: 14px !important; }
.kicker,.editor-kicker,.workspace-location > span,.system-plan-findings span,.system-plan-state,.context-inspector > header span,.context-inspector > header small,.history-actions kbd { font-size: 12px !important; }
.quiet-action,.primary-cta,.secondary-cta,.text-button,.workspace-parent,.workspace-next,.journey-primary-action,.component-catalog-card b,.generic-review-tokens button,.code-hero button,.code-tabs button { min-height: 40px; }

.system-journey-page > * { max-width: 1540px; }
.system-journey-hero p { font-size: 15px; }
.system-plan { display: grid; gap: 18px; margin: 0 auto 18px; padding: 24px; border: 1px solid rgba(120,104,255,.38); border-radius: 18px; background: linear-gradient(145deg,rgba(120,104,255,.1),rgba(20,21,25,.96) 48%); box-shadow: 0 24px 70px rgba(0,0,0,.18); }
.system-plan > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.system-plan h2 { margin: 7px 0 6px; font-size: 28px; letter-spacing: -.04em; }
.system-plan header p { max-width: 760px; margin: 0; color: #999ca6; line-height: 1.55; }
.system-plan-state { flex: 0 0 auto; padding: 8px 10px; border: 1px solid rgba(255,185,75,.3); border-radius: 999px; background: rgba(255,185,75,.07); color: #e0ad58; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.system-plan-state.prepared { border-color: rgba(66,213,140,.34); background: rgba(66,213,140,.08); color: #66dda1; }
.system-plan-findings { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.system-plan-findings article { min-width: 0; display: grid; gap: 6px; padding: 16px; border: 1px solid #30323a; border-radius: 12px; background: #111216; }
.system-plan-findings article.gap { border-color: rgba(255,185,75,.28); background: rgba(255,185,75,.04); }
.system-plan-findings article.ready { border-color: rgba(66,213,140,.24); }
.system-plan-findings span { color: #777a84; font-weight: 820; letter-spacing: .1em; text-transform: uppercase; }
.system-plan-findings strong { overflow-wrap: anywhere; font-size: 17px; }
.system-plan-findings small { color: #8b8e98; font-size: 14px; line-height: 1.45; }
.system-plan-components { display: grid; gap: 11px; padding-top: 2px; }
.system-plan-components > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.system-plan-components > header > div { display: grid; gap: 4px; }
.system-plan-components > header strong { font-size: 17px; }
.system-plan-components > header small { color: #858893; font-size: 14px; }
.system-plan-components > header button { min-height: 40px; border: 0; background: transparent; color: #b8b2ff; cursor: pointer; font-weight: 760; }
.system-plan-components > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.system-plan-components > div > button { min-width: 0; min-height: 112px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 12px; padding: 15px; border: 1px solid #373943; border-radius: 12px; background: #15161b; color: #e2e3e7; text-align: left; cursor: pointer; }
.system-plan-components > div > button:hover,.system-plan-components > div > button:focus-visible { border-color: #786bf0; background: rgba(120,104,255,.08); outline: none; }
.system-plan-components button > span { min-width: 0; display: grid; gap: 6px; }
.system-plan-components button b { font-size: 15px; }
.system-plan-components button small { color: #8b8e98; font-size: 14px; line-height: 1.45; }
.system-plan-components button em { padding: 6px 8px; border-radius: 7px; background: rgba(120,104,255,.12); color: #b7b0ff; font-size: 12px; font-style: normal; font-weight: 780; white-space: nowrap; }
.system-plan > footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 2px; }
.system-plan > footer button { min-height: 44px; padding: 0 16px; border-radius: 10px; cursor: pointer; font-weight: 800; }
.system-plan-secondary { border: 1px solid #3a3d47; background: #191a1f; color: #c6c8cf; }
.system-plan-primary { border: 1px solid #897cf5; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; box-shadow: 0 10px 28px rgba(98,80,223,.22); }

.design-workspace,.design-workspace.token-library-open { grid-template-columns: minmax(260px,310px) minmax(0,1fr) minmax(290px,340px); }
.canvas { padding: 34px; }
.context-inspector { min-width: 0; overflow-y: auto; border-left: 1px solid var(--line); background: var(--surface-0); }
.context-inspector > header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: #858893; }
.context-inspector > header span { font-weight: 850; letter-spacing: .13em; }
.context-inspector > header small { color: #aaa4e4; }
.context-inspector-body { display: grid; gap: 14px; padding: 20px 18px 32px; }
.context-inspector-body h2 { margin: -3px 0 0; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.context-inspector-body p { margin: 0; color: var(--muted); line-height: 1.6; }
.context-inspector-body p strong { color: var(--text); }
.context-inspector-body dl { display: grid; gap: 7px; margin: 0; }
.context-inspector-body dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.context-inspector-body dt { color: var(--subtle); }
.context-inspector-body dd { margin: 0; color: var(--text); text-align: right; }
.inspector-status { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 10px; }
.inspector-status > i { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #444052; border-radius: 8px; color: #aaa2ff; font-style: normal; font-weight: 820; }
.inspector-status > span { display: grid; gap: 2px; }
.inspector-status small { color: #777a84; font-size: 13px; }
.inspector-actions { display: grid; gap: 8px; margin-top: 4px; }
.inspector-actions button { min-height: 42px; padding: 0 12px; border: 1px solid #3b3e48; border-radius: 9px; background: #1a1b20; color: #c9cbd2; cursor: pointer; font-weight: 780; }
.inspector-actions button.primary { border-color: #8174f3; background: linear-gradient(135deg,#7868ff,#6250df); color: white; }
.inspector-component-properties { display: grid; gap: 12px; margin-top: 8px; padding-top: 18px; border-top: 1px solid #2b2d35; }
.inspector-component-properties > div { display: grid; gap: 8px; }
.inspector-component-properties > div > strong { color: #d7d8de; font-size: 14px; }
.inspector-component-properties ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.inspector-component-properties li { padding: 6px 8px; border: 1px solid #30323b; border-radius: 7px; background: #17181d; color: #a9abb4; font-size: 12px; line-height: 1.25; }
.design-workspace.token-library-open .library { width: auto; }
.design-workspace.token-library-open .context-inspector { display: block; }

.generic-foundation-workbench { overflow: clip; }
.generic-foundation-workbench > .generic-component-stage { position: sticky; z-index: 4; top: 0; box-shadow: 0 14px 28px rgba(7,8,11,.22); }
.generic-foundation-workbench > .generic-foundations { margin-top: 18px; }
.generic-foundation-choice { grid-template-columns: 30px minmax(0,1fr) auto; grid-template-rows: auto auto; align-items: start; column-gap: 9px; row-gap: 7px; }
.generic-foundation-choice > i { grid-column: 1; grid-row: 1; margin-top: 2px; }
.generic-foundation-choice > span { display: contents; }
.generic-foundation-choice > span > strong { grid-column: 2; grid-row: 1; }
.generic-foundation-choice > span > small { grid-column: 1 / -1; grid-row: 2; font-size: 12px; }
.generic-foundation-choice > b { grid-column: 3; grid-row: 1; margin-top: 2px; }
.generic-foundation-choice small,.generic-foundations .generic-foundation-recommendation-copy strong,.generic-foundation-candidates strong,.generic-foundation-raw strong { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }

.generic-anatomy-evidence { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.generic-anatomy-evidence li { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 9px; padding: 10px; border: 1px solid #2f3139; border-radius: 9px; background: #111216; }
.generic-anatomy-evidence li > i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #3b3e48; border-radius: 8px; color: #8f929c; font-style: normal; }
.generic-anatomy-evidence li > i::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.generic-anatomy-evidence li > span { display: grid; gap: 3px; }
.generic-anatomy-evidence small { color: #858893; font-size: 14px; }
.handoff-artifacts { display: grid; gap: 8px; }
.handoff-artifacts article { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(66,213,140,.24); border-radius: 10px; background: rgba(66,213,140,.035); }
.handoff-artifacts article.open { border-color: rgba(255,185,75,.26); background: rgba(255,185,75,.035); }
.handoff-artifacts i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 9px; color: #62dda0; font-style: normal; }
.handoff-artifacts article.open i { color: #d5a757; }
.handoff-artifacts span { display: grid; gap: 3px; }
.handoff-artifacts small { color: #858893; font-size: 14px; line-height: 1.4; }
.mapping-arrow { min-width: 30px; color: #65e2a4; font-size: 22px; font-weight: 900; text-align: center; text-shadow: 0 0 12px rgba(66,213,140,.45); }

@media (max-width: 1240px) {
  .design-workspace,.design-workspace.token-library-open { grid-template-columns: minmax(230px,280px) minmax(0,1fr); }
  .context-inspector { grid-column: 2; max-height: 420px; border-top: 1px solid var(--line); border-left: 0; }
  .context-inspector-body { grid-template-columns: minmax(0,1fr) minmax(240px,.65fr); align-items: start; }
  .context-inspector-body .inspector-actions { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; }
}
@media (max-width: 900px) {
  .system-plan-findings,.system-plan-components > div { grid-template-columns: 1fr; }
  .system-plan-components > header { align-items: stretch; flex-direction: column; }
  .design-workspace,.design-workspace.token-library-open { grid-template-columns: minmax(210px,250px) minmax(0,1fr); }
}
@media (max-width: 760px) {
  .system-plan > header,.system-plan > footer { align-items: stretch; flex-direction: column; }
  .design-workspace,.design-workspace.token-library-open { grid-template-columns: 1fr; }
  .library { display: none; }
  .design-workspace.token-library-open .library { display: block; }
  .context-inspector { grid-column: 1; }
  .context-inspector-body { grid-template-columns: 1fr; }
  .context-inspector-body .inspector-actions { grid-column: auto; grid-row: auto; }
}

/* Editor integrity: one action owner, one selection inspector, responsive drawers. */
.journey-side-next { display: grid; gap: 3px; margin: 10px 0 0 !important; padding: 10px; border: 1px solid #35313f; border-radius: 8px; background: rgba(0,0,0,.12); }
.journey-side-next span { color: #747782; font-size: 12px; }
.journey-side-next strong { color: #b7b1ee; font-size: 13px; }
.token-library-heading-actions { display: flex !important; align-items: center; gap: 6px; }
.token-library-heading-actions button { min-height: 34px; padding: 0 10px; border: 1px solid #3a3d47; border-radius: 8px; background: #191a20; color: #c4c0ef; cursor: pointer; font-weight: 760; }
.token-library-heading-actions #closeTokenLibrary { width: 34px; padding: 0; font-size: 19px !important; }
.context-inspector > header > button { width: 32px; height: 32px; margin-left: auto; border: 1px solid #373a43; border-radius: 8px; background: #191a20; color: #9a9da7; cursor: pointer; }
.inspector-toggle-action { display: none; min-height: 34px !important; padding: 0 10px !important; border: 1px solid #3a3d47 !important; background: #191a20 !important; }
.inspector-collapsed .inspector-toggle-action { display: inline-flex; align-items: center; }
.inspector-note { padding: 11px; border: 1px solid #30333b; border-radius: 9px; background: #101115; }
.inspector-token-form { display: grid; gap: 13px; }
.inspector-token-form h2,.inspector-token-form p { margin: 0; }
.inspector-token-form > label { display: grid; gap: 6px; }
.inspector-token-form > label > span { color: #9a9da7; font-size: 13px; font-weight: 760; }
.inspector-token-form input,.inspector-token-form select { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid #3a3d47; border-radius: 9px; outline: 0; background: #0f1013; color: #f0f1f4; }
.inspector-token-form input[type="color"] { padding: 4px; }
.inspector-token-form input:focus,.inspector-token-form select:focus { border-color: #8174f3; box-shadow: 0 0 0 3px rgba(120,104,255,.12); }
.inspector-live-value,.inspector-token-chain { display: grid; gap: 10px; margin-top: 16px; padding: 14px; border: 1px solid #353842; border-radius: 12px; background: #111216; }
.inspector-live-value h3,.inspector-token-chain h3,.inspector-live-value p,.inspector-token-chain p { margin: 0; }
.inspector-live-value p,.inspector-token-chain p,.inspector-live-value small,.inspector-token-chain small { color: #9295a0; font-size: 12px; line-height: 1.5; }
.inspector-live-value [data-live-raw-status].warning { color: #f0bd66; font-weight: 760; }
.inspector-live-colour { display: grid; grid-template-columns: minmax(0,1fr) 44px 30px; align-items: center; gap: 8px; }
.inspector-live-colour input[type="text"],.inspector-live-dimension input { width: 100%; min-width: 0; min-height: 42px; padding: 0 11px; border: 1px solid #3a3d47; border-radius: 9px; outline: 0; background: #0c0d10; color: #f1f2f5; font: 700 13px ui-monospace,SFMono-Regular,Menlo,monospace; }
.inspector-live-colour input[type="color"] { width: 44px; height: 42px; padding: 4px; border: 1px solid #3a3d47; border-radius: 9px; background: #0c0d10; cursor: pointer; }
.inspector-live-colour input:focus,.inspector-live-dimension input:focus { border-color: #8174f3; box-shadow: 0 0 0 3px rgba(120,104,255,.12); }
.inspector-live-colour input[aria-invalid="true"],.inspector-live-dimension input[aria-invalid="true"] { border-color: #e1aa4d; }
.inspector-live-colour > i { width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.24); border-radius: 8px; background: var(--live-token-colour); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.inspector-live-value > label { display: grid; gap: 6px; color: #aeb0b8; font-size: 12px; font-weight: 760; }
.inspector-live-dimension { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }.inspector-live-dimension b { color: #aeb0b8; }
.inspector-token-chain > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }.inspector-token-chain > header > div { display: grid; gap: 4px; }
.inspector-token-chain-list { display: grid; gap: 9px; min-width: 0; }.inspector-token-chain-list .token-metro { margin-top: 0; }
.inspector-source-impact { padding: 10px 11px; border: 1px solid rgba(240,189,102,.34); border-radius: 9px; background: rgba(240,189,102,.08); color: #d8d1bd !important; }
.inspector-source-impact strong { color: #f0bd66; }
.inspector-chain-actions { display: flex; flex-wrap: wrap; gap: 7px; }.inspector-chain-actions button { min-height: 34px; padding: 0 10px; border: 1px solid #454854; border-radius: 8px; background: #17181d; color: #c3bfff; font-weight: 760; cursor: pointer; }
.inspector-form-error:empty { display: none; }
.inspector-form-error { color: #ff9da9 !important; }
.inspector-actions button.danger { border-color: rgba(255,105,120,.35); color: #ff9daa; }
.project-file-open { min-height: 40px; display: grid; place-items: center; margin-top: 9px; border: 1px solid #353842; border-radius: 9px; background: #15161b; color: #b9b4e8; cursor: pointer; font-weight: 760; }
.design-workspace { position: relative; }
.library { padding: 0; }
.library-tabs { position: sticky; z-index: 12; top: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); background: color-mix(in srgb,var(--surface-0) 96%,transparent); backdrop-filter: blur(16px); }
.library-tabs button { min-width: 0; min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #858893; cursor: pointer; font-size: 12px; font-weight: 800; }
.library-tabs button:hover:not(:disabled) { border-color: var(--line-strong); background: var(--panel-2); color: var(--text); }
.library-tabs button[aria-selected="true"] { border-color: #675ec1; background: rgba(120,104,255,.12); color: var(--thatway-soft); }
.library-tabs button:focus-visible { outline: 2px solid #8b7ef5; outline-offset: 2px; }
.library-tabs button:disabled { opacity: .4; cursor: not-allowed; }
.library > .library-components-panel,.library > .token-section,.library > .journey-section { margin: 0; padding: 18px 15px 36px; border-top: 0; }
.design-workspace.library-components-active .library-components-panel { display: block !important; }
.design-workspace.library-components-active .token-section { display: none !important; }
.design-workspace.library-tokens-active .library-components-panel { display: none !important; }
.design-workspace.library-tokens-active .token-section { display: block !important; }
.design-workspace.library-tokens-active .journey-section { display: none !important; }
.design-workspace.inspector-collapsed,.design-workspace.token-library-open.inspector-collapsed { grid-template-columns: minmax(260px,310px) minmax(0,1fr); }
.design-workspace.inspector-collapsed .context-inspector { display: none !important; }

@media (max-width: 1240px) {
  .design-workspace,.design-workspace.token-library-open,.design-workspace.inspector-collapsed,.design-workspace.token-library-open.inspector-collapsed { grid-template-columns: minmax(230px,280px) minmax(0,1fr); }
  .inspector-toggle-action { display: inline-flex; align-items: center; }
  .context-inspector { width: min(390px,calc(100% - 230px)); max-height: none; position: absolute; z-index: 90; top: 0; right: 0; bottom: 0; grid-column: auto; border-top: 0; border-left: 1px solid var(--line); box-shadow: -24px 0 65px rgba(0,0,0,.42); }
  .context-inspector-body { grid-template-columns: 1fr; }
  .context-inspector-body .inspector-actions { grid-column: auto; grid-row: auto; }
}

@media (min-width: 1241px) {
  .all-tokens-action,#closeTokenLibrary { display: none !important; }
}

@media (max-width: 900px) {
  .design-workspace,.design-workspace.token-library-open,.design-workspace.inspector-collapsed,.design-workspace.token-library-open.inspector-collapsed { grid-template-columns: minmax(210px,250px) minmax(0,1fr); }
  .canvas { padding: 24px; }
  .context-inspector { width: min(390px,calc(100% - 210px)); }
  .workspace-location { grid-template-columns: minmax(0,1fr) auto; }
  .workspace-location > strong,.workspace-location > small { grid-column: 1; }
  .status-help { grid-column: 2; grid-row: 2; }
}

@media (max-width: 760px) {
  .design-workspace,.design-workspace.token-library-open,.design-workspace.inspector-collapsed,.design-workspace.token-library-open.inspector-collapsed { grid-template-columns: 1fr; }
  .context-inspector { width: min(420px,100%); }
  .design-workspace.token-library-open .canvas-column { display: flex; }
  .design-workspace.token-library-open .library { position: absolute; z-index: 70; inset: 0; width: min(360px,92vw); display: block; box-shadow: 24px 0 65px rgba(0,0,0,.48); }
  .canvas-toolbar { padding-inline: 10px; }
  .canvas-toolbar > p,.history-label,.history-actions kbd,#clearCanvasButton { display: none; }
  .component-instance { min-width: 0; width: 100%; padding: 18px; }
  .workspace-context { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 9px 12px; }
  .workspace-next { width: 100%; }
  .status-help p { right: auto; left: 0; }
}

@media (max-width: 560px) {
  .topbar { height: 104px; flex: 0 0 104px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; grid-template-rows: 52px 52px; gap: 0 10px; padding: 0 12px; }
  .brand { min-width: 0; }
  .brand > span:last-child { display: none; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .nav-item { min-width: 0; padding: 0 5px; }
  .project-file-action { grid-column: 2; grid-row: 1; justify-self: end; }
  #newStartButton { grid-column: 3; grid-row: 1; }
  .workspace-location > span,.workspace-location > strong { white-space: normal; }
  .status-help { grid-column: 1; grid-row: auto; }
  .status-help p { width: calc(100vw - 24px); }
  .canvas { padding: 14px; }
  .all-tokens-action span { display: none; }
  .canvas-toolbar .canvas-actions { gap: 5px; }
  .system-plan { padding: 17px; }
}

/* The editor appearance is independent from the design-system mode being edited. */
:root[data-theme="light"] :where(.start-card,.import-review,.scan-state,.scan-result,.project-compass,.journey-current,.journey-evidence,.component-catalog,.generic-component-plan,.foundations-overview,.system-plan,.handoff-guide,.code-draft-gate,.assist-dialog-card) {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: 0 20px 55px var(--shadow);
}
:root[data-theme="light"] :where(.import-summary article,.import-mode-picker,.import-pattern-list article,.import-pattern-empty,.import-mapping-row,.import-notes p,.import-system-map,.import-coverage-map article,.import-family-picker,.component-catalog-card,.generic-plan-grid > section,.generic-foundations,.generic-foundations article,.generic-state-review,.generic-active-state-review > label,.system-plan-findings article,.foundation-coverage,.assist-change-summary article,.handoff-note,.code-block,.mapping-row,.contract-section) {
  border-color: var(--line);
  background: var(--surface-1);
}
:root[data-theme="light"] :where(.canvas-column,.canvas-toolbar) { background: var(--surface-1); }
:root[data-theme="light"] .canvas {
  background-color: var(--bg);
  background-image: radial-gradient(var(--canvas-dot) 1px,transparent 1px);
}
:root[data-theme="light"] :where(.library,.context-inspector) { background: var(--panel); }
:root[data-theme="light"] :where(.canvas-toolbar,.library,.context-inspector,.workspace-context) { border-color: var(--line); }
:root[data-theme="light"] :where(.token-card:hover,.token-card.selected,.component-quick-group button:hover,.component-quick-group button:focus-visible,.history-actions button,.canvas-toolbar .all-tokens-action,.workspace-parent,.context-inspector > header > button,.inspector-toggle-action,.token-library-heading-actions button,.token-library-heading > button) {
  background: var(--panel-2) !important;
  border-color: var(--line-strong);
  color: var(--text);
}
:root[data-theme="light"] :where(.token-search input,.component-catalog-search,.component-catalog-search input,.inspector-token-form input,.inspector-token-form select,.inspector-live-colour input[type="text"],.inspector-live-dimension input,.inspector-live-colour input[type="color"]) {
  border-color: var(--line);
  background: var(--surface-0);
  color: var(--text);
}
:root[data-theme="light"] :where(.token-filters button,.component-quick-group button > i,.term-help summary,.inspector-component-properties li,.inspector-note,.inspector-chain-actions button,.project-file-open,.generic-state-tabs button,.generic-review-tokens button,.button-role-picker button,.import-mode-picker button,.import-family-picker button) {
  border-color: var(--line);
  background: var(--surface-1);
  color: var(--muted);
}
:root[data-theme="light"] .inspector-source-impact { border-color: rgba(159,105,13,.3); background: rgba(240,189,102,.12); color: #5f4b27 !important; }
:root[data-theme="light"] .inspector-source-impact strong { color: #8a5b0a; }
:root[data-theme="light"] :where(.token-card:hover,.token-card.selected,.component-quick-group button:hover,.component-quick-group button:focus-visible,.generic-state-tabs button:hover,.generic-state-tabs button:focus-visible) { color: var(--text); }
:root[data-theme="light"] :where(.start-hero p,.start-card > p,.import-review header p,.component-catalog-hero p,.generic-component-plan header p,.generic-plan-grid li,.generic-foundations > header p,.generic-foundation-choice small,.generic-foundation-recommendation-copy p,.generic-state-review > header p,.generic-active-state-review p,.handoff-copy p,.code-hero p,.system-plan header p,.foundation-summary small,.foundation-coverage article small,.assist-dialog-card header p,.assist-dialog-note) { color: var(--muted); }
:root[data-theme="light"] :where(.start-card h2,.import-review h2,.import-summary strong,.component-catalog-hero h1,.component-catalog-card-copy strong,.generic-component-plan h1,.generic-foundations h2,.generic-state-review h2,.system-plan h1,.foundations-overview h1,.handoff-copy h2,.code-hero h1,.context-inspector-body h2) { color: var(--text); }
:root[data-theme="light"] :where(.secondary-cta,.quiet-action,.code-hero button,.handoff-copy button,.inspector-actions button,.generic-component-plan > header > button,.generic-review-header-actions button,.workspace-next:disabled) {
  border-color: var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
}
:root[data-theme="light"] .component-handoff-switch button {
  border-color: var(--line);
  background: var(--surface-1);
  color: var(--text);
}
:root[data-theme="light"] .component-handoff-switch button:hover,
:root[data-theme="light"] .component-handoff-switch button:focus-visible {
  border-color: var(--line-strong);
  background: var(--panel-2);
}
:root[data-theme="light"] .component-handoff-switch button.active {
  border-color: rgba(98,80,223,.5);
  background: rgba(98,80,223,.09);
  color: var(--text);
}
:root[data-theme="light"] .component-handoff-switch i { border-color: var(--line-strong); }
:root[data-theme="light"] .component-handoff-switch small { color: var(--muted); }
:root[data-theme="light"] :where(.url-control,.token-file-action,.starter-preview,.component-catalog-search) { border-color: var(--line); background: var(--surface-0); }
:root[data-theme="light"] .starter-preview-summary small { background: var(--panel-2); color: var(--muted); }
:root[data-theme="light"] :where(.url-control input,.component-catalog-search input) { color: var(--text); }
:root[data-theme="light"] .component-catalog-card:hover,
:root[data-theme="light"] .component-catalog-card:focus-visible { background: linear-gradient(145deg,rgba(98,80,223,.08),var(--surface-1) 60%); }
:root[data-theme="light"] .generic-component-plan > header,
:root[data-theme="light"] .component-catalog-hero,
:root[data-theme="light"] .import-review > header,
:root[data-theme="light"] .import-review > footer { border-color: var(--line); }

/* Onboarding, Plan recommendations and transient feedback follow the editor appearance too. */
:root[data-theme="light"] :where(.compass-time,.compass-questions fieldset,.compass-options label > span,.compass-options span > i) {
  border-color: var(--line);
}
:root[data-theme="light"] .compass-questions fieldset {
  background: var(--panel);
  box-shadow: 0 18px 55px var(--shadow);
}
:root[data-theme="light"] :where(.compass-heading p,.compass-questions legend small,.compass-options span > small,.mission-card > p,.mission-card li small) { color: var(--muted); }
:root[data-theme="light"] .compass-time { color: var(--muted); }
:root[data-theme="light"] .compass-progress i { background: var(--line); }
:root[data-theme="light"] .compass-options label > span {
  background: var(--surface-1);
  color: var(--text);
}
:root[data-theme="light"] .compass-options label:hover > span {
  border-color: var(--line-strong);
  background: var(--panel-2);
}
:root[data-theme="light"] .compass-options input:checked + span {
  border-color: #7565e6;
  background: #f1efff;
  box-shadow: inset 0 0 0 1px rgba(98,80,223,.12),0 10px 26px rgba(63,49,155,.08);
}
:root[data-theme="light"] .compass-options span > i {
  background: var(--panel);
  color: var(--thatway-soft);
}
:root[data-theme="light"] .compass-options span > em { background: #eaf8f1; color: #117847; }
:root[data-theme="light"] .mission-card {
  border-color: rgba(98,80,223,.32);
  background: radial-gradient(circle at 100% 0,rgba(98,80,223,.13),transparent 43%),var(--panel);
  color: var(--text);
  box-shadow: 0 24px 70px var(--shadow);
}
:root[data-theme="light"] .mission-card ul,
:root[data-theme="light"] .mission-card li { border-color: var(--line); }
:root[data-theme="light"] .mission-card li > i { border-color: var(--line); background: var(--surface-1); color: var(--thatway-soft); }
:root[data-theme="light"] .mission-symbol b { border-color: var(--panel); }
:root[data-theme="light"] .mission-change { color: var(--muted); }
:root[data-theme="light"] .mission-change:hover { color: var(--thatway-soft); }
:root[data-theme="light"] .compass-back { color: var(--muted); }
:root[data-theme="light"] .compass-back:hover { border-color: var(--line); background: var(--surface-1); color: var(--text); }
:root[data-theme="light"] .system-plan-components > div > button {
  border-color: var(--line);
  background: var(--surface-1);
  color: var(--text);
}
:root[data-theme="light"] .system-plan-components > div > button:hover,
:root[data-theme="light"] .system-plan-components > div > button:focus-visible {
  border-color: #7565e6;
  background: #f1efff;
}
:root[data-theme="light"] .system-plan-components button small { color: var(--muted); }
:root[data-theme="light"] .system-plan-components button em { background: #ebe8ff; color: #5141be; }
:root[data-theme="light"] .system-plan-secondary { border-color: var(--line-strong); background: var(--panel-2); color: var(--text); }
:root[data-theme="light"] .toast {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 14px 36px var(--shadow);
}

/* Foundation and component-review surfaces are editor UI, so they follow the editor appearance. */
:root[data-theme="light"] .generic-foundation-workbench > .generic-component-stage {
  box-shadow: 0 10px 22px rgba(37,42,56,.12);
}
:root[data-theme="light"] .generic-foundations {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(37,42,56,.08);
}
:root[data-theme="light"] .generic-foundation-choice {
  border-color: var(--line);
  background: var(--surface-0);
  color: var(--text);
}
:root[data-theme="light"] .generic-foundation-choice:hover,
:root[data-theme="light"] .generic-foundation-choice:focus-visible,
:root[data-theme="light"] .generic-foundation-choice[aria-expanded="true"] {
  border-color: #776bea;
  background: #eeecff;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(83,69,190,.1);
}
:root[data-theme="light"] .generic-foundation-choice > i {
  border-color: var(--line-strong);
  background: var(--surface-1);
  color: #986312;
}
:root[data-theme="light"] .generic-foundation-choice.found > i {
  border-color: rgba(20,139,86,.35);
  background: #eefaf4;
  color: #0d8b55;
}
:root[data-theme="light"] .generic-foundation-choice > b { color: #5848c8; }
:root[data-theme="light"] .generic-foundation-chooser {
  border-color: #c9c2ff;
  background: var(--surface-0);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(37,42,56,.08);
}
:root[data-theme="light"] .generic-foundation-chooser > header > button {
  border-color: var(--line-strong);
  background: var(--surface-1);
  color: var(--muted);
}
:root[data-theme="light"] .generic-foundation-recommendation {
  border-color: #c9c2ff;
  background: #f4f2ff;
  color: var(--text);
}
:root[data-theme="light"] .generic-foundation-recommendation small { color: #5848c8; }
:root[data-theme="light"] .generic-foundation-recommendation p { color: var(--muted); }
:root[data-theme="light"] .generic-foundation-current { border-color: #9ed9b8; background: #eefaf4; color: #117847; }
:root[data-theme="light"] .generic-foundation-alternatives > header,
:root[data-theme="light"] .generic-foundation-candidates small,
:root[data-theme="light"] .generic-foundation-raw small { color: var(--muted); }
:root[data-theme="light"] .generic-foundation-alternatives > header strong { color: var(--text); }
:root[data-theme="light"] .generic-foundation-candidates > button,
:root[data-theme="light"] .generic-foundation-raw > button {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}
:root[data-theme="light"] .generic-foundation-candidates > button:hover,
:root[data-theme="light"] .generic-foundation-candidates > button:focus-visible,
:root[data-theme="light"] .generic-foundation-candidates > button.selected,
:root[data-theme="light"] .generic-foundation-raw > button:hover,
:root[data-theme="light"] .generic-foundation-raw > button:focus-visible {
  border-color: #776bea;
  background: #eeecff;
}
:root[data-theme="light"] .generic-foundation-candidates b,
:root[data-theme="light"] .generic-foundation-raw b { color: #5848c8; }

:root[data-theme="light"] .generic-review-layout > section,
:root[data-theme="light"] .generic-state-review,
:root[data-theme="light"] .generic-active-state-review > label {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}
:root[data-theme="light"] .generic-anatomy-summary { border-color: var(--line); }
:root[data-theme="light"] .generic-anatomy-summary > p { color: var(--muted); }
:root[data-theme="light"] .generic-anatomy-evidence li > i { border-color: var(--line-strong); color: var(--muted); }
:root[data-theme="light"] .generic-review-tokens li,
:root[data-theme="light"] .generic-review-checks label,
:root[data-theme="light"] .generic-anatomy-evidence li {
  border-color: var(--line);
  background: var(--surface-0);
  color: var(--text);
}
:root[data-theme="light"] .generic-review-checks label:has(input:checked),
:root[data-theme="light"] .generic-active-state-review > label:has(input:checked) {
  border-color: rgba(20,139,86,.38);
  background: #eefaf4;
}
:root[data-theme="light"] :where(.generic-review-layout h2,.generic-review-layout h3,.generic-review-tokens strong,.generic-review-checks strong,.generic-anatomy-evidence strong,.generic-active-state-review h3) { color: var(--text); }
:root[data-theme="light"] :where(.generic-review-section-copy,.generic-review-tokens small,.generic-review-checks small,.generic-anatomy-evidence small,.generic-active-state-review p,.generic-active-state-review label small) { color: var(--muted); }

:root[data-theme="light"] .history-actions button:disabled,
:root[data-theme="light"] .history-actions button[data-empty="true"] {
  border-color: var(--line);
  background: var(--surface-1) !important;
  color: #777b87;
  box-shadow: none;
  opacity: .62;
}
:root[data-theme="light"] .history-actions button:disabled:hover,
:root[data-theme="light"] .history-actions button[data-empty="true"]:hover {
  border-color: var(--line);
  background: var(--surface-1) !important;
  color: #777b87;
  transform: none;
  box-shadow: none;
}
:root[data-theme="light"] .history-actions button:disabled kbd,
:root[data-theme="light"] .history-actions button[data-empty="true"] kbd {
  border-color: var(--line-strong);
  background: #eceef2;
  color: #6d7280;
  box-shadow: none;
}
:root[data-theme="light"] .history-actions kbd {
  border-color: var(--line-strong);
  background: #e4e6eb;
  color: #555b68;
  box-shadow: inset 0 1px rgba(255,255,255,.8);
}

:root[data-theme="light"] .component-quick-group button { color: #626774; }
:root[data-theme="light"] .component-quick-group button.active {
  border-color: #9b90ff;
  background: #eeecff;
  color: #282b34;
}
:root[data-theme="light"] .component-quick-group button.active > i {
  border-color: #b9b2f6;
  background: #f8f7ff;
  color: #5848c8;
}
:root[data-theme="light"] .token-filters button.active {
  border-color: #776bea;
  background: #eeecff;
  color: #493ab8;
}
:root[data-theme="light"] .token-group-label:not(:first-child) { border-top-color: var(--line-soft); }

:root[data-theme="light"] .inspector-live-value,
:root[data-theme="light"] .inspector-token-chain {
  border-color: var(--line);
  background: var(--surface-0);
  color: var(--text);
}
:root[data-theme="light"] :where(.inspector-live-value h3,.inspector-token-chain h3,.inspector-live-value > label,.inspector-live-dimension b) { color: var(--text); }
:root[data-theme="light"] :where(.inspector-live-value p,.inspector-token-chain p,.inspector-live-value small,.inspector-token-chain small) { color: var(--muted); }
:root[data-theme="light"] .inspector-live-colour input[type="text"],
:root[data-theme="light"] .inspector-live-dimension input,
:root[data-theme="light"] .inspector-live-colour input[type="color"] {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
}
:root[data-theme="light"] .token-metro {
  border-color: #d6d1fa;
  background: #f5f4ff;
}
:root[data-theme="light"] .metro-station {
  border-color: var(--line-strong);
  background: var(--panel);
}
:root[data-theme="light"] .metro-station > i { background: var(--panel); }
:root[data-theme="light"] .metro-station strong { color: var(--text); }
:root[data-theme="light"] .metro-station small { color: #666b78; }
:root[data-theme="light"] .metro-station.imported small { color: #16764b; }
:root[data-theme="light"] .metro-station.proposal small { color: #8a5a0a; }
:root[data-theme="light"] .metro-station.usage > i { background: #eefaf4; }
:root[data-theme="light"] .metro-station.usage small { color: #16764b; }
:root[data-theme="light"] .canvas-toolbar button:hover:not(:disabled) {
  background: #e6e8ee;
  color: #2f3440;
}
:root[data-theme="light"] .token-visual:not(:empty) {
  border-color: var(--line-strong);
  background: #e5e7ec;
  color: #4e5461;
}
.token-card strong { font-size: 14px; }
.token-card small { font: 500 12px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace; }
:root[data-theme="light"] .token-card strong { color: var(--text); }
:root[data-theme="light"] .token-card small {
  color: #6d7280;
  font-size: 12px;
  line-height: 1.25;
}
:root[data-theme="light"] .token-card > b { color: #5d6270; }
:root[data-theme="light"] .token-card:hover,
:root[data-theme="light"] .token-card.selected { background: #f2f1ff !important; }
:root[data-theme="light"] .context-inspector > header { color: var(--subtle); }
:root[data-theme="light"] .context-inspector > header small,
:root[data-theme="light"] :where(.workspace-location > span,.text-button,.scan-error button,.component-catalog-open,.status-help summary) { color: var(--thatway-soft); }
:root[data-theme="light"] .status-help p,
:root[data-theme="light"] .term-help [role="tooltip"] { border-color: var(--line); background: var(--panel); color: var(--muted); box-shadow: 0 14px 35px var(--shadow); }
:root[data-theme="light"] :where(.component-catalog-summary,.token-target-guide,.button-focus-recommendation,.handoff-guide.ready,.handoff-guide.prepared) { background-color: rgba(98,80,223,.045); }
:root[data-theme="light"] .token-visual { border-color: rgba(23,24,32,.16); }
:root[data-theme="light"] :where(.inspector-live-value > label,.inspector-live-dimension b,.inspector-component-properties > div > strong,.generic-review-section-copy) { color: var(--muted); }
:root[data-theme="light"] .inspector-form-error { color: #b4233b !important; }
:root[data-theme="light"] :where(.handoff-chain strong,.context-inspector-body p strong,.import-notes strong) { color: var(--text); }
:root[data-theme="light"] .handoff-guide li { color: var(--muted); }
:root[data-theme="light"] .handoff-guide li.ready { color: var(--text); }
:root[data-theme="light"] .handoff-guide li i { border-color: var(--line); background: var(--surface-1); }
/* Handoff is editor UI: every nested surface follows the selected appearance together. */
:root[data-theme="light"] :where(.handoff-chain li,.code-tabs,.code-tools,.contract-output,.contract-heading,.contract-principles > article,.contract-state-card,.contract-state-card li,.behaviour-grid article,.human-review-list label,.human-review-guidance,.human-review-result,.review-progress,.contract-review-list label,.contract-review > footer,.accessibility-coach,.accessibility-results li,.implementation-tests,.button-state-overview article,.mapping-output,.mapping-row,.mapping-badge) {
  border-color: var(--line);
  background: var(--surface-1);
  color: var(--text);
}
:root[data-theme="light"] :where(.contract-output,.accessibility-coach) {
  background: var(--panel);
  box-shadow: 0 18px 45px var(--shadow);
}
:root[data-theme="light"] .contract-heading {
  border-bottom-color: var(--line);
  background: radial-gradient(circle at 92% 0,rgba(98,80,223,.09),transparent 33%),var(--panel);
}
:root[data-theme="light"] :where(.build-guide-basics,.contract-principles,.contract-section,.human-review,.contract-review) {
  border-color: var(--line);
  background-color: var(--panel);
}
:root[data-theme="light"] .human-review {
  background-image: radial-gradient(circle at 100% 0,rgba(98,80,223,.07),transparent 34%);
}
:root[data-theme="light"] .contract-review {
  background-image: radial-gradient(circle at 100% 100%,rgba(17,120,71,.06),transparent 30%);
}
:root[data-theme="light"] .handoff-chain li.current,
:root[data-theme="light"] :where(.contract-state-card li.ready,.human-review-list label.checked,.contract-review-list label.checked) {
  background-color: #f1efff;
}
:root[data-theme="light"] .handoff-guide .handoff-chain li {
  border-color: var(--line);
  background: var(--surface-1);
  color: var(--text);
}
:root[data-theme="light"] .handoff-guide .handoff-chain li i {
  border-color: var(--line-strong);
  background: var(--panel);
}
:root[data-theme="light"] .handoff-guide .handoff-chain li + li:before { color: var(--subtle); }
:root[data-theme="light"] .handoff-guide .handoff-chain li.current {
  border-color: #b9b2f6;
  background: #f1efff;
}
:root[data-theme="light"] .handoff-chain li.complete i,
:root[data-theme="light"] .contract-state-card li.ready > i {
  background: #eefaf4;
  color: #117847;
}
:root[data-theme="light"] :where(.handoff-chain small,.handoff-next,.contract-heading p,.build-guide-role span,.build-guide-role p,.build-guide-step p,.build-guide-use p,.contract-principles p,.contract-section > header > p,.contract-state-card > p,.contract-state-card li small,.behaviour-grid p,.contract-review > header p,.contract-review-list small,.human-review > header p,.human-review-list em,.human-review-guidance p,.human-review-result p,.accessibility-heading p,.accessibility-results li small,.implementation-tests li small,.implementation-tests > p,.mapping-heading p,.mapping-row-title span,.mapping-badge small,.mapping-badge em) {
  color: var(--muted);
}
:root[data-theme="light"] :where(.handoff-chain strong,.handoff-next strong,.contract-heading h2,.build-guide-step h3,.build-guide-use strong,.contract-principles strong,.contract-section h3,.contract-state-card li strong,.behaviour-grid strong,.contract-review h3,.contract-review-list strong,.human-review h3,.human-review-list strong,.human-review-guidance strong,.human-review-result strong,.accessibility-heading h2,.accessibility-results li strong,.implementation-tests li strong,.mapping-heading h2,.mapping-row-title strong,.mapping-badge b) {
  color: var(--text);
}
:root[data-theme="light"] :where(.contract-state-card > header span,.build-guide-role strong,.human-review-list small,.human-review-next small,.behaviour-grid code,.code-tools > p strong) {
  color: var(--thatway-soft);
}
:root[data-theme="light"] .code-tabs { background: var(--panel); }
:root[data-theme="light"] .code-tabs button { color: var(--muted); }
:root[data-theme="light"] .code-tabs button.active {
  background: #ece9ff;
  color: #3f32ac;
}
:root[data-theme="light"] .code-tabs span { color: var(--subtle); }
:root[data-theme="light"] .code-tools { background: var(--surface-1); }
:root[data-theme="light"] :where(.code-tools label,.code-tools label small,.code-tools > p span) { color: var(--muted); }
:root[data-theme="light"] .prefix-input {
  border-color: var(--line-strong);
  background: var(--surface-0);
}
:root[data-theme="light"] .prefix-input input { color: var(--text); }
:root[data-theme="light"] :where(.code-output,.mapping-output) {
  border-color: var(--line);
  background: var(--surface-0);
  color: #3f32ac;
}
:root[data-theme="light"] .mapping-row { background: var(--surface-1); }
:root[data-theme="light"] .mapping-badge { background: var(--panel); }
:root[data-theme="light"] .mapping-badge.semantic { background: #f1efff; }
:root[data-theme="light"] .mapping-badge.usage { background: #eefaf4; }
:root[data-theme="light"] .mapping-badge.usage b { color: #12633e; }
:root[data-theme="light"] .handoff-result-copy .handoff-result-actions button.secondary,
:root[data-theme="light"] .human-review-actions button.secondary {
  border-color: var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
}

/* Route-deep Light appearance: component work, Foundations, status help and journey evidence. */
:root[data-theme="light"] :where(.component-instance,.button-role-picker,.button-focus-recommendation,.button-focus-alternatives button,.binding-slot,.state-tabs,.button-state-overview article) {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}
:root[data-theme="light"] .component-instance { box-shadow: 0 24px 70px var(--shadow); }
:root[data-theme="light"] .button-role-picker { background: var(--surface-1); }
:root[data-theme="light"] .button-role-picker button {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}
:root[data-theme="light"] .button-role-picker button:hover { border-color: var(--line-strong); background: var(--panel-2); }
:root[data-theme="light"] .button-role-picker button.active {
  border-color: #7565e6;
  background: #f1efff;
  color: #3f32ac;
}
:root[data-theme="light"] :where(.button-role-picker > span small,.button-role-picker button small,.button-focus-copy p,.button-focus-token small,.button-focus-alternatives small,.button-focus-footer > span,.button-state-overview article > small,.binding-intro span,.instance-help) { color: var(--muted); }
:root[data-theme="light"] .button-role-picker button.active small { color: #5a49d0; }
:root[data-theme="light"] .button-focus-guide { border-color: var(--line); }
:root[data-theme="light"] .button-focus-recommendation { background: #f6f4ff; box-shadow: none; }
:root[data-theme="light"] :where(.button-focus-copy h2,.button-focus-token strong,.button-focus-summary strong,.button-state-overview article > span) { color: var(--text); }
:root[data-theme="light"] .button-focus-token > i { border-color: var(--line); background: var(--panel); color: var(--thatway-soft); }
:root[data-theme="light"] .button-focus-alternatives button:hover,
:root[data-theme="light"] .button-focus-alternatives button:focus-visible { border-color: #7565e6; background: #f1efff; }
:root[data-theme="light"] :where(.button-focus-secondary,.button-focus-none-choice,.button-focus-step-navigation > button) {
  border-color: var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
}
:root[data-theme="light"] :where(.button-focus-secondary:hover,.button-focus-none-choice:hover,.button-focus-step-navigation > button:hover:not(:disabled),.button-focus-quiet:hover,.button-advanced-switch button:hover) { color: var(--thatway-soft); }
:root[data-theme="light"] :where(.button-focus-quiet,.button-advanced-switch button) { color: #5141be; }
:root[data-theme="light"] .button-focus-summary { border-color: var(--line); }
:root[data-theme="light"] .button-focus-summary li { border-color: var(--line); }
:root[data-theme="light"] .state-tabs { background: var(--surface-1); }
:root[data-theme="light"] .state-tabs button { color: var(--muted); }
:root[data-theme="light"] .state-tabs button.active { background: #ebe8ff; color: #3f32ac; box-shadow: inset 0 0 0 1px #c7c0f7; }
:root[data-theme="light"] .binding-slot strong { color: var(--text); }

:root[data-theme="light"] .foundations-overview > header button,
:root[data-theme="light"] .foundations-overview > footer button,
:root[data-theme="light"] .foundation-summary button {
  border-color: var(--line);
  background: var(--surface-1);
  color: var(--text);
}
:root[data-theme="light"] .foundations-overview button:hover,
:root[data-theme="light"] .foundations-overview button:focus-visible { border-color: #7565e6; background: #f1efff; color: #3f32ac; }
:root[data-theme="light"] .foundation-summary strong { color: var(--text); }
:root[data-theme="light"] .foundation-coverage,
:root[data-theme="light"] .foundations-overview > footer { border-color: var(--line); }

:root[data-theme="light"] .status-help p { border-color: var(--line-strong); background: var(--panel); color: var(--muted); box-shadow: 0 16px 40px var(--shadow); }
:root[data-theme="light"] .status-help p b { color: #5141be; }

:root[data-theme="light"] :where(.journey-roadmap,.journey-current,.journey-evidence,.journey-future-ready) {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 20px 55px var(--shadow);
}
:root[data-theme="light"] .journey-position { border-color: #c7c0f7; background: #f1efff; }
:root[data-theme="light"] .journey-current-work,
:root[data-theme="light"] .journey-system-setup { border-color: var(--line); background: var(--panel); color: var(--text); }
:root[data-theme="light"] .journey-current-work p,
:root[data-theme="light"] .journey-system-setup summary small,
:root[data-theme="light"] .journey-system-setup small { color: var(--muted); }
:root[data-theme="light"] .journey-current-work-actions button,
:root[data-theme="light"] .journey-add-component { border-color: var(--line-strong); background: var(--panel); color: #5141be; }
:root[data-theme="light"] .journey-current-work-actions .journey-primary-action { border-color: #7769ee; background: linear-gradient(135deg,#7d6cff,#6250df); color: white; }
:root[data-theme="light"] .journey-system-setup > div > span { border-color: var(--line); background: var(--surface-1); }
:root[data-theme="light"] :where(.system-journey-hero p,.journey-position small,.system-stage-copy small,.journey-current header p,.journey-current-body li,.journey-evidence > header > p,.journey-metric span,.journey-component-card small,.journey-components-empty,.journey-future-ready p) { color: var(--muted); }
:root[data-theme="light"] .system-stage:not(:last-child):after { background: var(--line); }
:root[data-theme="light"] .system-stage button {
  border-color: var(--line);
  background: var(--surface-1);
  color: var(--text);
}
:root[data-theme="light"] .system-stage button:hover { border-color: var(--line-strong); background: var(--panel-2); }
:root[data-theme="light"] .system-stage.current button { border-color: #7565e6; background: #f1efff; box-shadow: 0 12px 30px rgba(89,72,229,.08); }
:root[data-theme="light"] .system-stage.complete button { border-color: #bde6cf; background: #f5fbf8; }
:root[data-theme="light"] .system-stage-number { border-color: var(--line); background: var(--panel); color: var(--muted); }
:root[data-theme="light"] .system-stage.current .system-stage-number { border-color: #7565e6; background: #ebe8ff; color: #5141be; }
:root[data-theme="light"] .system-stage.complete .system-stage-number { border-color: #9ed9b8; background: #eefaf4; color: #117847; }
:root[data-theme="light"] .system-stage-status { background: var(--panel-2); color: var(--muted); }
:root[data-theme="light"] .system-stage.current .system-stage-status { background: #e7e3ff; color: #5141be; }
:root[data-theme="light"] .system-stage.complete .system-stage-status { background: #e6f7ee; color: #117847; }
:root[data-theme="light"] .journey-current > header { border-color: var(--line); }
:root[data-theme="light"] .journey-roadmap > header p,
:root[data-theme="light"] .journey-setup-summary small { color: var(--muted); }
:root[data-theme="light"] .journey-setup-summary { border-color: var(--line); }
:root[data-theme="light"] .journey-setup-summary > span { border-color: var(--line); background: var(--surface-1); }
:root[data-theme="light"] .journey-current-body li i { border-color: var(--line-strong); color: var(--thatway-soft); }
:root[data-theme="light"] .journey-honesty { border-color: var(--line); background: var(--surface-1); color: var(--muted); }
:root[data-theme="light"] .journey-honesty strong { color: #5141be; }
:root[data-theme="light"] .journey-metric { border-color: var(--line); background: var(--surface-1); }
:root[data-theme="light"] .journey-metric strong { color: #3f32ac; }
:root[data-theme="light"] .journey-component-card { border-color: var(--line); background: var(--surface-1); }
:root[data-theme="light"] .journey-component-card.current { border-color: #7769ee; }
:root[data-theme="light"] .journey-component-card > i { border-color: var(--line-strong); background: var(--panel); color: var(--thatway-soft); }
:root[data-theme="light"] .journey-component-card button { border-color: var(--line-strong); background: var(--panel); color: #5141be; }
:root[data-theme="light"] .journey-component-card button:hover { border-color: #7565e6; background: #f1efff; }
:root[data-theme="light"] .journey-components-empty { border-color: var(--line-strong); }
:root[data-theme="light"] .journey-future-ready { background: linear-gradient(135deg,rgba(17,120,71,.06),rgba(98,80,223,.06)); }

/* Compact catalog and review controls must not retain Dark appearance inside Light routes. */
:root[data-theme="light"] .component-catalog-icon {
  border-color: #c7c0f7;
  background: #f1efff;
  color: #5141be;
}
:root[data-theme="light"] .component-catalog-groups header > span {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
}
:root[data-theme="light"] :where(.human-review-list label > i,.contract-review-list label > i,.accessibility-results li > i,.implementation-tests li > i,.contract-review > footer > i) {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--muted);
}
:root[data-theme="light"] :where(.human-review-list label.checked > i,.contract-review-list label.checked > i,.accessibility-results li.pass > i) {
  border-color: #9ed9b8;
  background: #eefaf4;
  color: #117847;
}
:root[data-theme="light"] :where(.contract-review-list label:hover > i,.human-review-list label:hover > i) { border-color: #7565e6; }

/* Dialogs are editor UI too: the complete overlay content follows Light appearance. */
:root[data-theme="light"] :where(.export-dialog,.assist-dialog,.figma-connect-dialog) { background: rgba(23,24,32,.32); }
:root[data-theme="light"] :where(.export-dialog-card,.assist-dialog-card,.figma-connect-card) {
  border-color: var(--line);
  background: radial-gradient(circle at 100% 0,rgba(98,80,223,.1),transparent 36%),var(--panel);
  color: var(--text);
  box-shadow: 0 32px 90px rgba(23,24,32,.24);
}
:root[data-theme="light"] :where(.export-dialog-card h2,.assist-dialog-card h2,.figma-connect-card h2,.export-readiness strong,.assist-change-summary strong,.figma-connect-project strong) { color: var(--text); }
:root[data-theme="light"] :where(.export-dialog-card header p,.assist-dialog-card header p,.figma-connect-card header p,.export-readiness small,.export-file-list small,.export-details dt,.export-note,.assist-change-summary small,.assist-dialog-note,.figma-connect-project small,.figma-connect-note,.figma-connect-steps) { color: var(--muted); }
:root[data-theme="light"] :where(.export-dialog-close,.assist-dialog-close,.export-secondary,.assist-secondary) {
  border-color: var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
}
:root[data-theme="light"] :where(.export-dialog-close:hover,.export-dialog-close:focus-visible,.assist-dialog-close:hover,.assist-dialog-close:focus-visible,.export-secondary:hover,.export-secondary:focus-visible,.assist-secondary:hover,.assist-secondary:focus-visible) {
  border-color: #7565e6;
  background: #f1efff;
  color: #3f32ac;
}
:root[data-theme="light"] .export-readiness { border-color: #e5c77d; background: #fff9eb; }
:root[data-theme="light"] .export-readiness.ready { border-color: #a8d8bd; background: #f2fbf6; }
:root[data-theme="light"] .export-readiness > i { background: #fff0c9; color: #865800; }
:root[data-theme="light"] .export-readiness.ready > i { background: #dcf5e7; color: #117847; }
:root[data-theme="light"] .export-readiness > b { background: #efedf8; color: #5141be; }
:root[data-theme="light"] :where(.export-file-list li,.export-details div,.assist-change-summary article,.export-note,.assist-dialog-note) {
  border-color: var(--line);
  background: var(--surface-1);
}
:root[data-theme="light"] :where(.export-file-list i,.assist-change-summary article > i) { border-color: var(--line-strong); color: #5141be; }
:root[data-theme="light"] .export-file-list strong { color: var(--text); }
:root[data-theme="light"] .export-details dd { color: #5141be; }
:root[data-theme="light"] :where(.export-note strong,.assist-dialog-note strong) { color: #5141be; }
:root[data-theme="light"] :where(.figma-connect-project span,.figma-connect-note) { border-color: var(--line); background: var(--surface-1); }
:root[data-theme="light"] .figma-connect-code { color: var(--text); }
:root[data-theme="light"] .figma-connect-code textarea { border-color: var(--line-strong); background: var(--surface-1); color: #5141be; }
:root[data-theme="light"] :where(.figma-connect-close,.figma-connect-secondary) { border-color: var(--line-strong); background: var(--panel-2); color: var(--text); }

/* Refined editor typography: quiet chrome, clear object names, restrained emphasis. */
:root {
  --ui-weight-regular: 400;
  --ui-weight-medium: 600;
  --ui-weight-label: 650;
}

body { font-weight: var(--ui-weight-regular); }

.code-identifier { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }

:where(.nav-item,.workspace-parent,.workspace-next,.library-tabs button,.component-quick-group button > span,.token-library-heading-actions button,.canvas-toolbar button) {
  font-weight: var(--ui-weight-medium);
}

:where(.kicker,.editor-kicker,.workspace-location > span,.system-plan-findings span,.context-inspector > header span,.token-section-title) {
  font-weight: var(--ui-weight-label);
}

.context-inspector > header {
  min-height: 50px;
  padding-inline: 15px;
}

.context-inspector > header span { letter-spacing: .11em; }
.context-inspector > header small { font-weight: 500; }

.context-inspector-body {
  gap: 12px;
  padding: 18px 16px 28px;
}

.context-inspector-body h2 {
  margin-top: -2px;
  font-size: 20px;
  font-weight: var(--ui-weight-medium);
  letter-spacing: -.018em;
  line-height: 1.22;
}

.context-inspector-body p,
.context-inspector-body dt,
.context-inspector-body dd {
  font-size: 13px !important;
  font-weight: var(--ui-weight-regular);
  line-height: 1.5;
}

.context-inspector-body p strong,
.context-inspector-body dd { font-weight: var(--ui-weight-medium); }
.context-inspector-body dl { gap: 4px; }
.context-inspector-body dl div { padding-block: 8px; }

.inspector-actions button,
.inspector-chain-actions button,
.project-file-open {
  font-size: 13px !important;
  font-weight: var(--ui-weight-medium);
}

.context-inspector :where(input,select,textarea,button),
.library :where(input,button),
.canvas-toolbar button {
  font-size: 13px !important;
}

:where(.token-library-heading strong,.component-quick-group > strong,.inspector-component-properties > div > strong) {
  font-weight: var(--ui-weight-medium);
}

:where(.token-search > span,.token-filters button,.token-editor-actions button,.token-done-action,.token-library-heading-actions button) {
  font-weight: var(--ui-weight-medium);
}

.inspector-live-value,
.inspector-token-chain {
  gap: 9px;
  margin-top: 12px;
  padding: 13px;
}

.inspector-live-value h3,
.inspector-token-chain h3 {
  font-size: 16px;
  font-weight: var(--ui-weight-medium);
  letter-spacing: -.01em;
  line-height: 1.3;
}

.inspector-live-value p,
.inspector-token-chain p {
  font-size: 13px !important;
  font-weight: var(--ui-weight-regular);
  line-height: 1.5;
}

.inspector-live-value small,
.inspector-token-chain small,
.inspector-live-value > label {
  font-size: 12px !important;
  font-weight: 500;
}

.inspector-token-chain > header { align-items: start; }
.inspector-token-chain > header > small { padding-top: 2px; text-align: right; }

.metro-station small {
  font-size: 12px !important;
  font-weight: var(--ui-weight-label);
  letter-spacing: .065em;
}

.metro-station strong,
.token-metro.compact .metro-station strong {
  font-size: 12px;
  font-weight: var(--ui-weight-medium);
}

.token-card strong {
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 12px;
  font-weight: var(--ui-weight-medium);
  line-height: 1.25;
}

.token-card small {
  color: #737783;
  font: 400 11px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 12px !important;
}

.token-card > b,
.token-card .token-fit { font-weight: var(--ui-weight-medium); }
.component-quick-group > strong { font-weight: var(--ui-weight-label); }
.component-quick-group button > span { font-size: 13px; }
:root[data-theme="light"] .token-card small { color: #686d79; }

/* Foundation mapping uses the connected token graph as the live preview source. */
.generic-component-stage {
  --generic-surface: #ffffff;
  --generic-content: #20222a;
  --generic-label: #20222a;
  --generic-text: #20222a;
  --generic-icon: #20222a;
  --generic-indicator: #6d5efc;
  --generic-track: #d1d3da;
  --generic-thumb: #ffffff;
  --generic-switch-track: #6d5efc;
  --generic-switch-thumb: #ffffff;
  --generic-switch-label: #20222a;
  --generic-progress-track: #d1d3da;
  --generic-progress-indicator: #6d5efc;
  --generic-progress-label: #20222a;
  --generic-control: #6d5efc;
  --generic-checkmark: #ffffff;
  --generic-dot: #6d5efc;
  --generic-link: #4c3bc2;
  --generic-separator: #a4a7b1;
  --generic-current: #20222a;
  --generic-backdrop: #171820;
  --generic-header-surface: #f0f1f4;
  --generic-row-surface: #ffffff;
  --generic-border: #d1d3da;
  --generic-focus: #6d5efc;
  --generic-radius: 10px;
  --generic-spacing: 14px;
}
.generic-component-stage .generic-preview-state { color: var(--generic-content); }
.generic-component-stage .generic-preview-state:is(button),
.generic-component-stage .generic-preview-state select,
.generic-component-stage .preview-select-control > button,
.generic-component-stage .generic-preview-state textarea {
  padding-inline: var(--generic-spacing);
  border-color: var(--generic-border);
  border-radius: var(--generic-radius);
  background: var(--generic-surface);
  color: var(--generic-content);
}
.generic-component-stage button.generic-preview-state { color: var(--generic-icon,var(--generic-content)); }
.generic-component-stage .preview-field { color: var(--generic-label); }
.generic-component-stage .preview-field textarea,
.generic-component-stage .preview-select select,
.generic-component-stage .preview-select-control > button { color: var(--generic-text); }
.generic-component-stage .preview-select > label { color: var(--generic-label); }
.generic-component-stage .preview-select-control:after { color: var(--generic-icon); }
.preview-select-control > button {
  width: 100%;
  min-height: 45px;
  padding-right: 38px;
  appearance: none;
  border: 1px solid #9b9eaa;
  background: white;
  cursor: default;
  font: inherit;
  text-align: left;
}
.generic-component-stage .preview-select.is-invalid select {
  border-color: #c33f55;
  box-shadow: 0 0 0 1px rgba(195,63,85,.16);
}
.generic-component-stage .generic-preview-state:is(article,[role="status"],[role="alert"],[role="dialog"],details),
.generic-component-stage .generic-preview-state table {
  border-color: var(--generic-border);
  border-radius: var(--generic-radius);
  background: var(--generic-surface);
  color: var(--generic-content);
}
.generic-component-stage .generic-preview-state:is(article,[role="status"],[role="alert"],[role="dialog"],details) { padding: var(--generic-spacing); }
.generic-component-stage [role="alert"] { max-width: 390px; display: grid; gap: 8px; padding: var(--generic-spacing); border: 1px solid var(--generic-border); border-radius: var(--generic-radius); background: var(--generic-surface); color: var(--generic-content); box-shadow: 0 10px 26px rgba(32,34,42,.08); }
.generic-component-stage .generic-preview-state a,
.generic-component-stage a.generic-preview-state { color: var(--generic-link,var(--generic-label)); }
.generic-component-stage .generic-preview-state label,
.generic-component-stage label.generic-preview-state,
.generic-component-stage .generic-preview-state legend { color: var(--generic-label); }
.generic-preview-state.is-focus,
.generic-preview-state.is-focus select,
.generic-preview-state.is-focus textarea { outline-color: var(--generic-focus); }
.generic-component-stage .preview-switch { gap: var(--generic-spacing); color: var(--generic-switch-label); }
.generic-component-stage .preview-switch-control {
  border-color: var(--generic-border);
  border-radius: var(--generic-radius);
  background: var(--generic-switch-track);
}
.generic-component-stage .preview-switch-control > i { background: var(--generic-switch-thumb); }
.generic-component-stage .preview-switch-label { color: var(--generic-switch-label); }
.generic-component-stage .preview-switch > input:not(:checked) + .preview-switch-control { border-color: var(--generic-border); background: color-mix(in srgb,var(--generic-switch-track) 42%,var(--generic-border)); }
.generic-component-stage .preview-switch > input:focus-visible + .preview-switch-control { outline-color: var(--generic-focus); }

.generic-component-stage .preview-checkbox,
.generic-component-stage .preview-radio-group label { display: flex; align-items: center; gap: var(--generic-spacing); color: var(--generic-label); }
.generic-component-stage .preview-checkbox > input,
.generic-component-stage .preview-radio-group label > input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.generic-component-stage .preview-checkbox-control,
.generic-component-stage .preview-radio-control { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--generic-border); border-radius: var(--generic-radius); background: var(--generic-surface); }
.generic-component-stage .preview-checkbox-control i { color: var(--generic-checkmark); font-style: normal; opacity: 0; }
.generic-component-stage .preview-checkbox > input:checked + .preview-checkbox-control { background: var(--generic-control); }
.generic-component-stage .preview-checkbox > input:checked + .preview-checkbox-control i { opacity: 1; }
.generic-component-stage .preview-checkbox > input:indeterminate + .preview-checkbox-control { background: var(--generic-control); }
.generic-component-stage .preview-checkbox > input:indeterminate + .preview-checkbox-control i { opacity: 1; }
.generic-component-stage .preview-checkbox > input:focus-visible + .preview-checkbox-control,
.generic-component-stage .preview-radio-group input:focus-visible + .preview-radio-control { outline: 3px solid var(--generic-focus); outline-offset: 3px; }
.generic-component-stage .preview-radio-control { border-radius: 50%; }
.generic-component-stage .preview-radio-control i { width: 10px; height: 10px; border-radius: 50%; background: var(--generic-dot); opacity: 0; }
.generic-component-stage .preview-radio-group input:checked + .preview-radio-control { border-color: var(--generic-control); }
.generic-component-stage .preview-radio-group input:checked + .preview-radio-control i { opacity: 1; }

.generic-component-stage [role="tablist"] { background: var(--generic-surface); }
.generic-component-stage [role="tablist"] button { padding-inline: var(--generic-spacing); color: var(--generic-label); }
.generic-component-stage [role="tablist"] button[aria-selected="true"] { border-bottom-color: var(--generic-indicator); color: var(--generic-label); }
.generic-component-stage [aria-label="Breadcrumb"] { gap: calc(var(--generic-spacing) / 2); }
.generic-component-stage .preview-breadcrumb-separator { color: var(--generic-separator); }
.generic-component-stage .preview-breadcrumb-current { color: var(--generic-current); }
.generic-component-stage [aria-label="Pagination"] button { padding-inline: var(--generic-spacing); border-color: var(--generic-border); border-radius: var(--generic-radius); background: var(--generic-surface); color: var(--generic-label); }
.generic-component-stage .preview-alert { grid-template-columns: auto minmax(0,1fr); }
.generic-component-stage .preview-alert > :not(.preview-alert-icon) { grid-column: 2; }
.generic-component-stage .preview-alert-icon { grid-row: 1 / 3; color: var(--generic-icon); font-style: normal; }
.generic-component-stage .preview-badge { padding: calc(var(--generic-spacing) / 2) var(--generic-spacing); border-radius: var(--generic-radius); background: var(--generic-surface); color: var(--generic-label); }
.generic-component-stage .preview-progress { color: var(--generic-progress-label); }
.generic-component-stage .preview-progress progress { accent-color: var(--generic-progress-indicator); background: var(--generic-progress-track); border-radius: var(--generic-radius); }
.generic-component-stage .preview-progress progress::-webkit-progress-bar { background: var(--generic-progress-track); border-radius: var(--generic-radius); }
.generic-component-stage .preview-progress progress::-webkit-progress-value { background: var(--generic-progress-indicator); border-radius: var(--generic-radius); }
.generic-component-stage .preview-progress progress::-moz-progress-bar { background: var(--generic-progress-indicator); border-radius: var(--generic-radius); }
.generic-component-stage .preview-tooltip > span { padding: calc(var(--generic-spacing) / 2) var(--generic-spacing); border-radius: var(--generic-radius); background: var(--generic-surface); color: var(--generic-content); }
.generic-component-stage .preview-dialog-backdrop { padding: var(--generic-spacing); border-radius: calc(var(--generic-radius) + 4px); background: color-mix(in srgb,var(--generic-backdrop) 42%,transparent); }
.generic-component-stage .preview-accordion summary { display: flex; align-items: center; justify-content: space-between; gap: var(--generic-spacing); }
.generic-component-stage .preview-accordion summary::marker { content: ""; }
.generic-component-stage .preview-accordion summary i { color: var(--generic-icon); font-style: normal; }
.generic-component-stage .preview-table thead { background: var(--generic-header-surface); }
.generic-component-stage .preview-table tbody { background: var(--generic-row-surface); }
.generic-component-stage .preview-table th,
.generic-component-stage .preview-table td { padding: calc(var(--generic-spacing) / 2) var(--generic-spacing); border-color: var(--generic-border); color: var(--generic-content); }

/* State previews change the interactive target a person would actually use. */
.generic-component-stage .state-selected,
.generic-component-stage .state-hover { box-shadow: none; }
.generic-component-stage [data-preview-focus="true"] { outline: 3px solid var(--generic-focus); outline-offset: 3px; }
.generic-component-stage .generic-preview-state.is-focus:has([data-preview-focus="true"]) { outline: none; }
.generic-component-stage .preview-switch > input[data-preview-focus="true"] + .preview-switch-control,
.generic-component-stage .preview-checkbox > input[data-preview-focus="true"] + .preview-checkbox-control,
.generic-component-stage .preview-radio-group input[data-preview-focus="true"] + .preview-radio-control { outline: 3px solid var(--generic-focus); outline-offset: 3px; }
.generic-component-stage button.state-hover,
.generic-component-stage button.is-preview-hover { background: color-mix(in srgb,var(--generic-surface) 84%,var(--generic-focus)); }
.generic-component-stage a.state-hover,
.generic-component-stage a.is-preview-hover { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.generic-component-stage a.state-visited { color: color-mix(in srgb,var(--generic-link) 68%,#7b2f90); }
.generic-component-stage [role="tablist"] button.is-preview-hover,
.generic-component-stage [aria-label="Pagination"] button.is-preview-hover,
.generic-component-stage .preview-accordion summary.is-preview-hover { background: color-mix(in srgb,var(--generic-surface) 86%,var(--generic-focus)); }
.generic-component-stage article.state-hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(32,34,42,.15); }
.generic-component-stage article.state-selected { outline: 3px solid var(--generic-focus); outline-offset: 3px; }
.generic-component-stage .preview-card-selection { justify-self: start; padding: 3px 7px; border-radius: 999px; background: color-mix(in srgb,var(--generic-focus) 14%,var(--generic-surface)); color: var(--generic-content); font-size: 12px; font-weight: 600; }
.generic-component-stage .preview-table tr.is-preview-hover { background: color-mix(in srgb,var(--generic-row-surface) 86%,var(--generic-focus)); }

.generic-foundation-current {
  justify-self: end;
  padding: 8px 10px;
  border: 1px solid rgba(66,213,140,.34);
  border-radius: 999px;
  background: rgba(66,213,140,.08);
  color: #62dda0;
  font-size: 12px;
  font-weight: var(--ui-weight-medium);
}

.generic-foundation-choice > .generic-foundation-choice-title {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  justify-items: start;
  text-align: left;
}
.generic-foundation-choice > .generic-foundation-choice-title > strong { grid-column: auto; grid-row: auto; text-align: left; }
.generic-foundation-choice > .generic-foundation-token-name {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-top: 7px;
  border-top: 1px solid color-mix(in srgb,var(--line) 82%,transparent);
  justify-items: start;
  text-align: left;
}
.generic-foundation-choice > .generic-foundation-token-name > small { grid-column: 1; grid-row: 1; color: var(--muted); font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size: 12px; font-weight: var(--ui-weight-regular); line-height: 1.3; text-align: left; }
.generic-foundation-choice > .generic-foundation-token-name > strong { grid-column: 1; grid-row: 2; color: var(--text); font: 600 13px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap: anywhere; text-align: left; }
.generic-foundation-candidates strong,
.generic-foundation-raw strong { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-weight: var(--ui-weight-medium); }
.inspector-token-form input[name="name"],
.inspector-token-form select[name="reference"] { font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }
.generic-foundation-choice.token-drop-ready { border-color: #7565f3; background: rgba(120,104,255,.12); box-shadow: inset 0 0 0 2px rgba(117,101,243,.16); }
.generic-foundation-choice.token-drop-blocked { border-color: rgba(213,167,87,.48); cursor: not-allowed; }
.generic-component-stage[data-generic-preview-drop] { position: relative; }
.generic-component-stage[data-generic-preview-drop].token-drop-ready,
.generic-component-stage[data-generic-preview-drop].token-drop-blocked { box-shadow: inset 0 0 0 3px rgba(117,101,243,.22); }
.generic-component-stage[data-generic-preview-drop].token-drop-blocked { box-shadow: inset 0 0 0 3px rgba(213,167,87,.24); }
.generic-component-stage[data-generic-preview-drop].token-drop-ready:after,
.generic-component-stage[data-generic-preview-drop].token-drop-blocked:after {
  content: attr(data-drop-label);
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  transform: translateX(-50%);
  padding: 7px 10px;
  border-radius: 8px;
  background: #171820;
  color: #f4f2ff;
  font-size: 13px;
  font-weight: var(--ui-weight-medium);
  white-space: nowrap;
  pointer-events: none;
}

.inspector-foundation-selection { display: grid; gap: 13px; }
.inspector-foundation-heading { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 11px; }
.inspector-foundation-heading > div { min-width: 0; display: grid; gap: 3px; }
.inspector-foundation-heading small { color: var(--muted); font-size: 12px; }
.inspector-foundation-heading h3 { margin: 0; color: var(--text); font: var(--ui-weight-medium) 13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap: anywhere; }
.inspector-foundation-swatch,.inspector-foundation-size { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--inspector-foundation-colour,var(--panel-2)); color: var(--text); font: var(--ui-weight-medium) 13px/1 ui-monospace,SFMono-Regular,Menlo,monospace; font-style: normal; }
.inspector-foundation-selection p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.inspector-drop-targets { display: grid; gap: 10px; margin: 15px 0; padding: 13px; border: 1px solid rgba(120,104,255,.35); border-radius: 11px; background: rgba(120,104,255,.06); }
.inspector-drop-targets h3 { margin: 0; font-size: 15px; }
.inspector-drop-targets p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.inspector-drop-targets > div { display: grid; gap: 7px; }
.inspector-drop-targets button { min-height: 44px; display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; }
.inspector-drop-targets button:hover,.inspector-drop-targets button:focus-visible { border-color: #7565f3; outline: none; }
.inspector-drop-targets button strong { font-size: 13px; font-weight: var(--ui-weight-medium); }
.inspector-drop-targets button small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

.token-library-empty { display: grid; gap: 8px; margin: 8px 0; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; background: color-mix(in srgb,var(--panel-2) 72%,transparent); }
.token-library-empty > strong { color: var(--text); font-size: 13px; font-weight: var(--ui-weight-medium); }
.token-library-empty p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.token-library-empty > div { display: flex; flex-wrap: wrap; gap: 7px; }
.token-library-empty button { min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); cursor: pointer; font-size: 13px; font-weight: var(--ui-weight-medium); }
.batch-action-icon { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; font-size: 13px; }
.button-focus-token strong { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; font-size: 13px; }

.token-metro-group { min-width: 0; display: grid; gap: 8px; }
.token-metro-group > .token-metro { margin-top: 0; }
.metro-usage-list { display: grid; gap: 7px; padding: 3px 4px 1px; }
.metro-usage-list > span { display: flex; align-items: center; gap: 7px; color: #43a97a; font-size: 12px; font-weight: var(--ui-weight-label); letter-spacing: .075em; text-transform: uppercase; }
.metro-usage-list > span i { width: 9px; height: 9px; border: 3px solid #62dda0; border-radius: 50%; background: var(--panel); box-shadow: 0 0 0 3px rgba(66,213,140,.08); }
.metro-usage-list ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.metro-usage-list li { min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: color-mix(in srgb,var(--panel-2) 80%,transparent); color: var(--text); font: var(--ui-weight-regular) 13px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap: anywhere; }
.metro-usage-list p { margin: 0; color: var(--muted); font-size: 13px; }
.metro-usage-list.empty > span { color: var(--muted); }
.metro-usage-list.empty > span i { border-color: var(--muted); box-shadow: none; }

.component-icon-svg { width: 18px; height: 18px; display: block; flex: none; }
.component-quick-group .component-icon-svg { width: 16px; height: 16px; }
.component-catalog-icon .component-icon-svg { width: 20px; height: 20px; }
.journey-component-card > i .component-icon-svg { width: 18px; height: 18px; }
.prepare-action { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; }
.prepare-action-icon { width: 20px; height: 20px; display: grid; flex: 0 0 auto; place-items: center; color: currentColor; }
.prepare-action-icon .component-icon-svg { width: 18px; height: 18px; }
.prepare-action > span:last-child { white-space: nowrap; }

/* Component review: decisions first, evidence and token maintenance second. */
.generic-review-layout {
  grid-template-columns: minmax(0,1.55fr) minmax(270px,.72fr);
  grid-template-areas: "decisions tokens";
  align-items: start;
  gap: 12px;
}
.generic-review-primary { grid-area: decisions; }
.generic-review-tokens-panel { grid-area: tokens; }
.generic-review-layout > section { min-width: 0; }
.generic-review-layout h2 { margin: 5px 0 5px; font-size: 18px; line-height: 1.25; }
.generic-review-section-copy { margin: 0 0 14px; font-size: 12px !important; line-height: 1.45; }
.generic-review-primary > h3 { margin: 17px 0 7px; }
.generic-anatomy-summary { margin-top: 17px; padding-top: 13px; border-top: 1px solid #30333b; }
.generic-anatomy-summary h3 { margin: 0 0 3px; font-size: 13px; }
.generic-anatomy-summary > p { margin: 0 0 8px; color: #7f828c; font-size: 12px; line-height: 1.4; }
.generic-review-checks { gap: 9px; }
.generic-review-checks label { min-height: 76px; padding: 12px; border-color: #393c46; background: #0d0e11; }
.generic-review-checks strong { font-size: 13px; }
.generic-review-checks small { font-size: 12px; line-height: 1.42; }
.generic-anatomy-evidence { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.generic-anatomy-evidence li { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 7px 8px; background: transparent; }
.generic-anatomy-evidence li > i { width: 20px; height: 20px; flex: 0 0 auto; border-color: #444752; border-radius: 6px; font-size: 11px; }
.generic-anatomy-evidence strong { min-width: 0; font-size: 12px; line-height: 1.25; }
.generic-review-tokens { gap: 5px; }
.generic-review-tokens li { display: block; padding: 0; border: 0; background: transparent; }
.generic-review-tokens li > button {
  width: 100%; min-height: 48px; display: grid; grid-template-columns: 26px minmax(0,1fr) auto;
  align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid #30333b; border-radius: 8px;
  background: #0d0e11; color: inherit; cursor: pointer; text-align: left;
}
.generic-review-tokens li > button:hover,
.generic-review-tokens li > button:focus-visible { border-color: #7669e7; background: rgba(120,104,255,.08); outline: none; }
.generic-review-tokens button > i { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid rgba(66,213,140,.28); border-radius: 7px; color: #5ddd9d; font-style: normal; }
.generic-review-tokens button > span { min-width: 0; display: grid; gap: 2px; }
.generic-review-tokens button strong { font-size: 12px; }
.generic-review-tokens button small { overflow: visible; color: #8a8d97; font: 11px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.generic-review-tokens button > b { align-self: center; color: #aaa2ff; font-size: 11px; font-weight: 650; white-space: nowrap; }
:root[data-theme="light"] .generic-review-tokens li > button { border-color: var(--line); background: var(--panel-2); }
:root[data-theme="light"] .generic-review-tokens li > button:hover,
:root[data-theme="light"] .generic-review-tokens li > button:focus-visible { border-color: #7669e7; background: rgba(120,104,255,.08); }
:root[data-theme="light"] .generic-review-tokens button > b { color: #5142b8; }
:root[data-theme="light"] .generic-component-plan > footer strong { color: #5142b8; }

@media (max-width: 1450px) {
  .generic-review-layout { grid-template-columns: 1fr; grid-template-areas: "decisions" "tokens"; }
}

@media (max-width: 620px) {
  .generic-review-checks,
  .generic-anatomy-evidence { grid-template-columns: 1fr; }
}

/* Compact editor side panels: preserve decisions, reduce chrome and repeated metadata. */
.library-tabs { gap: 3px; padding: 6px; }
.library-tabs button { min-height: 34px; gap: 6px; padding-inline: 7px; font-size: 12px !important; }
.library > .library-components-panel,
.library > .token-section,
.library > .journey-section { padding: 13px 12px 28px; }
.token-library-heading { gap: 8px; margin-bottom: 8px; }
.token-library-heading > div { gap: 2px; }
.token-library-heading .kicker { font-size: 11px !important; }
.token-library-heading strong { font-size: 14px; }
.token-library-heading-actions button { min-height: 32px; padding-inline: 9px; font-size: 12px !important; }
.library-heading { margin-bottom: 8px; }
.library-heading > span { font-size: 12px; }
.library-heading small { font-size: 11px; }
.section-help { margin: -1px 0 9px; color: var(--muted); font-size: 12px !important; line-height: 1.42; }
.token-search { gap: 3px; margin-bottom: 7px; }
.token-search > span { font-size: 11px; }
.token-search input { min-height: 34px; padding-inline: 9px; font-size: 12px !important; }
.token-filters { gap: 4px; margin-bottom: 6px; }
.token-filters button { min-height: 26px; padding-inline: 7px; font-size: 11px !important; }
.token-result-count { margin-bottom: 5px; font-size: 11px; }
.token-group-label { gap: 6px; padding: 7px 6px 2px; }
.token-group-label:not(:first-child) { margin-top: 6px; padding-top: 10px; }
.token-group-label strong,
.token-group-label .token-group-copy { font-size: 11px; line-height: 1.25; }
.term-help summary { width: 14px; height: 14px; font-size: 11px !important; }
.token-list { gap: 3px; }
.token-card { min-height: 42px; grid-template-columns: 25px minmax(0,1fr) auto; gap: 7px; padding: 5px 7px; }
.token-visual { width: 25px; height: 25px; border-radius: 7px; font-size: 11px; }
.token-card strong { font-size: 12px; line-height: 1.2; }
.token-card small { font: 400 11px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 11px !important; }
.token-card > b,
.token-card .token-fit { font-size: 11px; }

.context-inspector > header { min-height: 46px; padding-inline: 13px; }
.context-inspector > header span,
.context-inspector > header small { font-size: 11px !important; }
.context-inspector-body { gap: 10px; padding: 14px 13px 24px; }
.context-inspector-body h2 { font-size: 18px; line-height: 1.18; }
.context-inspector-body p,
.context-inspector-body dt,
.context-inspector-body dd { font-size: 12px !important; line-height: 1.42; }
.context-inspector-body dl { gap: 2px; }
.context-inspector-body dl div { padding-block: 6px; }
.inspector-live-value,
.inspector-token-chain { gap: 7px; margin-top: 8px; padding: 10px; border-radius: 10px; }
.inspector-live-value h3,
.inspector-token-chain h3 { font-size: 14px; line-height: 1.25; }
.inspector-live-value p,
.inspector-token-chain p { font-size: 12px !important; line-height: 1.4; }
.inspector-live-value small,
.inspector-token-chain small,
.inspector-live-value > label { font-size: 11px !important; }
.inspector-live-colour { grid-template-columns: minmax(0,1fr) 40px 26px; gap: 6px; }
.inspector-live-colour input[type="text"],
.inspector-live-dimension input { min-height: 38px; padding-inline: 9px; }
.inspector-live-colour input[type="color"] { width: 40px; height: 38px; }
.inspector-live-colour > i { width: 25px; height: 25px; border-radius: 7px; }
.inspector-token-chain > header { gap: 8px; }
.inspector-token-chain > header > div { gap: 2px; }
.inspector-token-chain > header .kicker,
.inspector-token-chain > header > small { font-size: 11px !important; }
.inspector-token-chain-list { gap: 7px; }
.token-metro-group { gap: 5px; }
.token-metro.compact { padding: 6px; border-radius: 9px; }
.token-metro.compact .metro-station { min-width: 132px; flex-basis: 132px; gap: 2px; padding: 6px 7px 6px 20px; border-radius: 8px; }
.token-metro.compact .metro-station > i { left: 6px; top: 8px; }
.token-metro.compact .metro-station small { font-size: 11px !important; }
.token-metro.compact .metro-station strong { font-size: 12px; line-height: 1.2; }
.token-metro.compact .metro-track { min-width: 20px; flex-basis: 20px; margin-inline: 3px; }
.metro-usage-list { gap: 4px; padding: 0 2px; }
.metro-usage-list > span { gap: 6px; font-size: 11px; }
.metro-usage-list ul { gap: 4px; }
.metro-usage-list li { padding: 5px 7px; font-size: 12px; line-height: 1.3; }
.metro-usage-list p { font-size: 12px !important; line-height: 1.35; }

/* Quiet application hierarchy: the workspace behaves like a tool, not a landing page. */
:root { --ui-weight-label: 600; }

.topbar { height: 56px; flex-basis: 56px; gap: 14px; padding-inline: 16px; }
.brand { min-width: 175px; }
.nav-item { min-width: 72px; padding-inline: 11px; font-weight: 500; }
.quiet-action,
.workspace-parent,
.workspace-next,
.canvas-toolbar button,
.library-tabs button { font-weight: 500; }
.kicker,
.editor-kicker { font-size: 11px; font-weight: 600; letter-spacing: .11em; }

.system-journey-page { padding: 28px 24px 60px; background: var(--bg); }
.system-journey-hero { gap: 24px; margin-bottom: 18px; }
.system-journey-hero h1 { max-width: 680px; margin: 6px 0 7px; font-size: clamp(28px,3vw,34px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; }
.system-journey-hero p { max-width: 620px; font-size: 13px; line-height: 1.5; }
.journey-position { padding: 12px 13px; border-radius: 10px; background: var(--surface-1); }
.journey-position span,
.journey-current-step,
.journey-current-body > span,
.system-stage-status { font-weight: 600; }
.journey-current h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.journey-roadmap,
.journey-current,
.journey-evidence,
.journey-future-ready { border-radius: 12px; box-shadow: none; }
.system-plan { border-radius: 12px; box-shadow: none; }
.system-plan h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

.component-catalog { border-radius: 12px; box-shadow: none; }
.component-catalog-hero { gap: 20px; padding: 20px 22px; background: var(--surface-1); }
.component-catalog-hero h1 { margin: 5px 0 5px; font-size: clamp(26px,2.5vw,32px); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; }
.component-catalog-hero p { max-width: 720px; font-size: 13px; line-height: 1.5; }
.component-catalog-summary { padding: 12px; border-radius: 9px; background: var(--panel); }
.component-catalog-summary strong { font-size: 24px; font-weight: 600; }
.component-catalog-groups h2,
.component-catalog-card-copy strong { font-weight: 600; }
.component-support,
.component-catalog-card > b { font-weight: 500; }

.generic-component-plan { border-radius: 12px; box-shadow: none; }
.generic-component-plan > header { gap: 18px; padding: 17px 20px; }
.generic-component-plan h1 { margin: 5px 0 4px; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.generic-component-plan header p { max-width: 720px; font-size: 13px; line-height: 1.45; }
.generic-foundations > header > div > p { text-align: left; }
.generic-foundations > header h2,
.generic-state-review > header h2 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.generic-review-layout h2,
.generic-anatomy-summary h3 { font-weight: 600; }

.foundations-overview h1 { margin: 4px 0; font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.foundations-overview > header p { max-width: 760px; font-size: 13px; line-height: 1.5; }
.foundation-summary strong,
.foundation-coverage h2 { font-weight: 600; }

.code-page { max-width: 1180px; padding: 32px 28px 70px; }
.code-hero { margin-bottom: 22px; }
.code-hero h1 { margin: 5px 0; font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.code-hero p { font-size: 13px; line-height: 1.5; }

.start-page { padding-top: 48px; }
.start-hero h1 { font-size: clamp(40px,5vw,56px); font-weight: 600; letter-spacing: -.045em; }
.start-card h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

.library-tabs button { font-weight: 500; }
.component-quick-group > strong,
.token-group-label strong { font-weight: 600; letter-spacing: .08em; }
.component-quick-group button > span { font-weight: 500; }
.token-card { width: calc(100% - 8px); margin-left: 8px; }
.token-card strong { font-weight: 500; }
.token-card .token-fit,
.token-card > b { font-weight: 500; }

.context-inspector > header span { font-weight: 600; letter-spacing: .09em; }
.context-inspector-body h2 { font-size: 16px; font-weight: 600; line-height: 1.25; }
.context-inspector-body p,
.context-inspector-body dt,
.context-inspector-body dd { font-weight: 400; }
.inspector-live-value h3,
.inspector-token-chain h3 { font-size: 14px; font-weight: 600; }
.inspector-actions button,
.inspector-chain-actions button,
.project-file-open { font-weight: 500; }

@media (max-width: 760px) {
  .system-journey-page { padding-inline: 16px; }
  .journey-current-work { align-items: stretch; flex-direction: column; }
  .journey-current-work-actions { align-items: stretch; flex-direction: column; }
  .journey-system-setup > div { grid-template-columns: 1fr; }
  .journey-setup-summary { grid-template-columns: 1fr; }
  .journey-component-card > b { grid-column: 2; justify-self: start; }
  .system-journey-hero h1,
  .component-catalog-hero h1 { font-size: 27px; }
}

/* Contextual foundation picker: choose the visible part first, then its colour. */
.generic-token-target-guide {
  display: grid;
  gap: 3px;
  margin: 0 0 9px;
  padding: 9px 10px;
  border: 1px solid #31333d;
  border-radius: 8px;
  background: #121318;
}
.generic-token-target-guide strong { font-size: 12px; font-weight: 600; }
.generic-token-target-guide p {
  margin: 0;
  color: #92959f;
  font-size: 12px !important;
  line-height: 1.4;
}
.generic-source-confirm {
  display: grid;
  gap: 7px;
  margin: 0 0 9px;
  padding: 10px;
  border: 1px solid #4b446b;
  border-radius: 9px;
  background: rgba(120,104,255,.08);
}
.generic-source-confirm > strong { font-size: 13px; font-weight: 600; }
.generic-source-confirm p {
  margin: 0;
  color: #999ca6;
  font-size: 12px !important;
  line-height: 1.4;
}
.generic-source-warning {
  padding: 7px 8px;
  border: 1px solid rgba(229,181,93,.32);
  border-radius: 7px;
  background: rgba(229,181,93,.07);
  color: #d3a85b !important;
}
.generic-source-confirm-actions { display: grid; gap: 5px; margin-top: 2px; }
.generic-source-confirm-actions button {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #3b3e48;
  border-radius: 7px;
  background: #18191e;
  color: #c8cad2;
  cursor: pointer;
  font-size: 12px !important;
  font-weight: 600;
  text-align: left;
}
.generic-source-confirm-actions button:hover,
.generic-source-confirm-actions button:focus-visible { border-color: #786bf0; outline: none; }
.generic-source-confirm-actions button.primary { border-color: #786bf0; background: #6657e4; color: #fff; }
.generic-picker-card { min-height: 54px !important; padding: 8px 9px !important; }
.generic-picker-card > b { font-size: 12px !important; font-weight: 500; }
.generic-foundation-chooser.compact { margin-top: 9px; padding: 10px; }
.generic-foundation-chooser.compact h3 { font-size: 13px; font-weight: 600; }
.generic-foundation-choice-summary {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid #343640;
  border-radius: 8px;
  background: #0f1014;
}
.generic-foundation-choice-summary > strong {
  font: 600 12px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace;
  overflow-wrap: anywhere;
}
.generic-foundation-choice-summary small {
  color: #858893;
  font: 12px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace;
  overflow-wrap: anywhere;
}
.generic-foundation-choice-summary p { margin: 4px 0 0; color: #92959f; font-size: 12px !important; line-height: 1.4; }

:root[data-theme="light"] .generic-token-target-guide,
:root[data-theme="light"] .generic-foundation-choice-summary {
  border-color: var(--line);
  background: var(--surface-1);
  color: var(--text);
}
:root[data-theme="light"] .generic-token-target-guide p,
:root[data-theme="light"] .generic-foundation-choice-summary p,
:root[data-theme="light"] .generic-foundation-choice-summary small { color: var(--muted); }
:root[data-theme="light"] .generic-source-confirm {
  border-color: #c9c2ff;
  background: #f4f2ff;
  color: var(--text);
}
:root[data-theme="light"] .generic-source-confirm p { color: var(--muted); }
:root[data-theme="light"] .generic-source-warning { border-color: #e8c784; background: #fff9ea; color: #855c0e !important; }
:root[data-theme="light"] .generic-source-confirm-actions button {
  border-color: var(--line-strong);
  background: var(--surface-0);
  color: var(--text);
}
:root[data-theme="light"] .generic-source-confirm-actions button.primary { border-color: #6657e4; background: #6657e4; color: #fff; }

/* Governance and release keep evidence separate from provider approval. */
.govern-page { width: min(1180px,100%); height: 100%; overflow-y: auto; margin: 0 auto; padding: 34px 28px 80px; }
.govern-hero { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.govern-hero h1 { margin: 6px 0; font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
.govern-hero p { max-width: 700px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.govern-hero button,.govern-components header button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--panel-2); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600; }
.govern-hero button { border-color: var(--thatway); background: var(--thatway); color: #fff; }
.govern-hero button:hover,.govern-components header button:hover { transform: translateY(-1px); }
.govern-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.govern-summary article { min-width: 0; display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.govern-summary span { color: var(--subtle); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.govern-summary strong { overflow: hidden; font-size: 18px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.govern-summary small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.govern-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,.8fr); gap: 14px; }
.govern-components,.govern-boundaries { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.govern-components > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); }
.govern-components h2,.govern-boundaries h2 { margin: 5px 0 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
#governComponentList { display: grid; gap: 8px; padding: 12px; }
#governComponentList > article { display: grid; grid-template-columns: minmax(160px,.7fr) minmax(0,1.3fr); align-items: center; gap: 16px; padding: 13px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-1); }
#governComponentList article > div { display: grid; gap: 4px; }
#governComponentList article strong { font-size: 14px; font-weight: 600; }
#governComponentList article span { color: var(--thatway-soft); font-size: 12px; }
#governComponentList ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
#governComponentList li { padding: 8px; border-radius: 7px; background: var(--panel-2); color: var(--muted); font-size: 12px; line-height: 1.35; }
.govern-empty { padding: 28px 18px; text-align: center; }
.govern-empty strong { font-size: 14px; }.govern-empty p { max-width: 460px; margin: 7px auto 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.govern-appearance-summary { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-1); }
.govern-appearance-summary > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; cursor: pointer; list-style: none; }
.govern-appearance-summary > summary::-webkit-details-marker { display: none; }
.govern-appearance-summary > summary > span { display: grid; gap: 3px; }
.govern-appearance-summary > summary strong { font-size: 13px; font-weight: 600; }
.govern-appearance-summary > summary small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.govern-appearance-summary > summary b { color: var(--thatway-soft); font-size: 12px; font-weight: 600; }
.govern-appearance-summary[open] > summary { border-bottom: 1px solid var(--line); }
.govern-appearance-summary[open] > summary b { font-size: 0; }.govern-appearance-summary[open] > summary b:after { content: "Hide components"; font-size: 12px; }
.govern-appearance-summary > div { display: grid; gap: 8px; padding: 10px; }
.govern-appearance-summary > div > article { display: grid; grid-template-columns: minmax(160px,.7fr) minmax(0,1.3fr); align-items: center; gap: 16px; padding: 13px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--panel); }
.govern-appearance-summary article > div { display: grid; gap: 4px; }.govern-appearance-summary article > div strong { font-size: 13px; font-weight: 600; }.govern-appearance-summary article > div span { color: var(--thatway-soft); font-size: 12px; }
.govern-appearance-summary article ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.govern-appearance-summary article li { padding: 8px; border-radius: 7px; background: var(--panel-2); color: var(--muted); font-size: 12px; line-height: 1.35; }
.govern-boundaries { padding: 18px; }
.govern-boundaries > p { margin: 9px 0 17px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.govern-boundaries ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.govern-boundaries li { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 9px; align-items: start; }
.govern-boundaries li > i { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--subtle); font-size: 12px; font-style: normal; }
.govern-boundaries li.complete > i { border-color: color-mix(in srgb,var(--success) 55%,var(--line)); background: color-mix(in srgb,var(--success) 10%,transparent); color: var(--success); }
.govern-boundaries li > span { display: grid; gap: 3px; padding-top: 2px; }
.govern-boundaries li strong { font-size: 13px; font-weight: 600; }
.govern-boundaries li small { color: var(--muted); font-size: 12px; line-height: 1.4; }

.release-destinations { margin: 0 0 22px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.release-destinations > header { display: grid; gap: 5px; margin-bottom: 14px; }
.release-destinations h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.release-destinations header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.release-destinations > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.release-destinations article { min-width: 0; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface-1); }
.release-destination-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb,var(--thatway) 14%,var(--panel)); color: var(--thatway-soft); font-size: 13px; font-weight: 650; }
.release-destination-icon.github { background: var(--panel-2); color: var(--text); }
.release-destinations article > div { min-width: 0; display: grid; gap: 3px; }
.release-destinations article strong { font-size: 13px; font-weight: 600; }
.release-destinations article small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.release-destinations article > b { color: var(--subtle); font-size: 12px; font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .govern-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .govern-layout { grid-template-columns: 1fr; }
  .release-destinations > div { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .govern-page { padding: 24px 16px 70px; }
  .govern-hero,.govern-components > header { align-items: stretch; flex-direction: column; }
  .govern-summary { grid-template-columns: 1fr; }
  #governComponentList > article { grid-template-columns: 1fr; }
  #governComponentList ul { grid-template-columns: 1fr; }
  .govern-appearance-summary > div > article { grid-template-columns: 1fr; }
  .govern-appearance-summary article ul { grid-template-columns: 1fr; }
  .release-destinations article { grid-template-columns: 38px minmax(0,1fr); }
  .release-destinations article > b { grid-column: 2; white-space: normal; }
}

.account-action { min-height: 34px; max-width: 180px; padding: 0 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-action:hover { border-color: var(--line-strong); color: var(--text); }
.cloud-save-action { border-color: color-mix(in srgb,var(--thatway) 52%,var(--line)); color: var(--thatway-soft); }
.cloud-save-action.saved { border-color: color-mix(in srgb,var(--success) 45%,var(--line)); color: var(--success); }

.auth-dialog { position: fixed; z-index: 160; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(5,6,9,.72); backdrop-filter: blur(10px); }
.auth-dialog-card { width: min(460px,100%); position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 17px; background: var(--panel); box-shadow: 0 34px 100px rgba(0,0,0,.38); }
.auth-dialog-card > header { padding: 24px 24px 18px; border-bottom: 1px solid var(--line); }
.auth-dialog-card h2 { margin: 7px 0; font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.auth-dialog-card header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-dialog-close { width: 32px; height: 32px; position: absolute; z-index: 1; top: 13px; right: 13px; border: 0; border-radius: 8px; background: var(--panel-2); color: var(--muted); cursor: pointer; font-size: 20px; }
.auth-message { margin: 14px 24px 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-1); color: var(--muted); font-size: 12px; line-height: 1.45; }
.auth-message.error { border-color: rgba(190,58,75,.35); background: rgba(190,58,75,.08); color: #dc8b96; }
.auth-dialog form { display: grid; gap: 10px; padding: 20px 24px 24px; }
.auth-dialog label { display: grid; gap: 7px; }.auth-dialog label span { font-size: 12px; font-weight: 600; }
.auth-dialog input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; outline: 0; background: var(--surface-1); color: var(--text); font-size: 14px; }
.auth-dialog input:focus { border-color: var(--thatway); box-shadow: 0 0 0 3px color-mix(in srgb,var(--thatway) 14%,transparent); }
.auth-dialog form button,.account-session > button { min-height: 42px; padding: 0 14px; border: 1px solid var(--thatway); border-radius: 9px; background: var(--thatway); color: #fff; cursor: pointer; font-size: 13px; font-weight: 600; }
.auth-dialog form button:disabled { opacity: .55; cursor: progress; }
.auth-dialog form .auth-secondary { border-color: var(--line); background: transparent; color: var(--muted); }
.account-session { display: grid; gap: 14px; padding: 20px 24px 24px; }
.account-session > div:first-child { display: grid; gap: 4px; }.account-session > div:first-child strong { font-size: 14px; }.account-session > div:first-child span { color: var(--muted); font-size: 12px; }
.account-session > button { justify-self: start; border-color: var(--line); background: transparent; color: var(--muted); }
.cloud-projects { display: grid; gap: 7px; padding-top: 14px; border-top: 1px solid var(--line); }
.cloud-projects > strong { font-size: 12px; font-weight: 600; }
.cloud-projects > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.cloud-projects button { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-1); color: var(--text); text-align: left; cursor: pointer; }
.cloud-projects button span { min-width: 0; display: grid; gap: 3px; }.cloud-projects button strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.cloud-projects button small { color: var(--muted); font-size: 12px; }.cloud-projects button b { color: var(--thatway-soft); font-size: 12px; font-weight: 600; }

@media (max-width: 900px) {
  .topbar .project-file-action { display: none; }
  .account-action { max-width: 92px; }
}
