:root { font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #292738; background: #f7f7fa; font-synthesis: none; text-rendering: optimizeLegibility; --purple: #7056d8; --purple-dark: #5941bd; --ink: #292738; --muted: #858391; --line: #e9e8ef; --surface: #fff; --lavender: #f2efff; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #bdb1ff; outline-offset: 2px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0,1fr); }
.sidebar { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 16px 16px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; font: 800 17px Manrope,sans-serif; letter-spacing: -.4px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg,#8d73ee,#6148c9); font: 800 22px Manrope,sans-serif; box-shadow: 0 8px 18px #7056d82b; }
.brand-mark.small { width: 32px; height: 32px; border-radius: 11px; font-size: 16px; }
.team-picker { background: #faf9fc; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.eyebrow { margin: 0 0 8px; color: #9693a1; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; }
.team-picker select { width: 100%; padding: 7px 2px; border: 0; color: var(--ink); background: transparent; font-weight: 700; outline: none; }
.main-nav { display: grid; gap: 4px; }
.nav-button { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 9px; padding: 10px 12px; background: transparent; color: #686675; text-align: left; font-weight: 600; }
.nav-button::before { width: 20px; text-align: center; color: #9592a2; font-size: 15px; }
.nav-button:nth-child(1)::before { content: "◷"; }.nav-button:nth-child(2)::before { content: "✓"; }.nav-button:nth-child(3)::before { content: "▤"; }.nav-button:nth-child(4)::before { content: "◇"; }.nav-button:nth-child(5)::before { content: "▣"; }
.nav-button:hover { background: #f8f7fb; }.nav-button.active { background: var(--lavender); color: var(--purple-dark); }
.nav-button.active::before { color: var(--purple); }
.member-list { border-top: 1px solid var(--line); padding-top: 18px; }
.member-row { display: flex; align-items: center; gap: 9px; margin: 11px 2px; }
.avatar { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #efeafd; color: #654bc2; font-weight: 700; font-size: 12px; }
.member-copy { display: grid; gap: 1px; flex: 1; min-width: 0; }.member-copy strong { font-size: 12px; }.member-copy span { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--line); padding: 15px 4px 0; display: grid; gap: 12px; }
.local-status,.connection { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #c3c1cb; }.status-dot.online { background: #4bb88a; box-shadow: 0 0 0 3px #4bb88a22; }.status-dot.warning { background: #d49b3f; }.status-dot.demo { background: #bf8b31; }.status-dot.neutral { background: #aaa7b2; }
.text-button { border: 0; padding: 4px 0; color: var(--purple); background: transparent; font-size: 12px; font-weight: 700; text-align: left; }
.main-column { min-width: 0; }.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 13px; color: #777482; font-weight: 600; }.topbar-right { display: flex; align-items: center; gap: 18px; }
.pill { display: inline-flex; align-items: center; border-radius: 20px; padding: 5px 9px; font-size: 9px; line-height: 1; letter-spacing: .55px; font-weight: 800; white-space: nowrap; }
.pill.purple { background: #f0ebff; color: #6649c9; }.pill.live { background: #e8f7ef; color: #2a9364; }.pill.demo { background: #fff3d9; color: #aa7113; }.pill.warning { background: #fff2de; color: #a8721d; }.pill.neutral { background: #f1f0f4; color: #777482; }
.view { width: min(1160px,100%); margin: 0 auto; padding: 34px 40px 60px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
h1,h2,h3,p { margin-top: 0; }.section-heading h1 { margin: 0 0 5px; font: 800 28px Manrope,sans-serif; letter-spacing: -.8px; }.section-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.button { border: 1px solid #dedbe8; border-radius: 8px; padding: 9px 14px; background: #fff; color: #555262; font-size: 12px; font-weight: 700; transition: .15s ease; }.button:hover { border-color: #bfb4eb; color: var(--purple-dark); transform: translateY(-1px); }.button.primary { border-color: var(--purple); background: var(--purple); color: #fff; box-shadow: 0 4px 10px #7056d822; }.button.primary:hover { background: var(--purple-dark); }.button.secondary { background: #fff; }.button.quiet { border-color: transparent; background: #f4f1ff; color: var(--purple-dark); }.button.danger { border-color: #f1d6d6; background: #fff; color: #b44b4b; }.button.small { padding: 7px 11px; font-size: 11px; }.button.wide { width: 100%; }.icon-button { border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.sync-card { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border: 1px solid #e7e2f7; border-radius: 12px; background: #fcfbff; margin-bottom: 20px; }.sync-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #efeaff; color: var(--purple); font-size: 20px; }.sync-copy { display: grid; gap: 3px; flex: 1; }.sync-copy strong { font-size: 12px; }.sync-copy span { font-size: 11px; color: var(--muted); }.inline-note { margin: -10px 0 16px; font-size: 12px; }
.two-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }.overview-card,.setup-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }.card-heading h2,.section-subhead h2 { margin: 0 0 4px; font: 700 15px Manrope,sans-serif; }.card-heading p { margin: 0; color: var(--muted); font-size: 11px; }.markdown-preview { margin: 0; color: #4b4958; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.7 "DM Sans",sans-serif; min-height: 64px; }.recent-section { margin-top: 28px; }.section-subhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }.doc-list { display: grid; gap: 8px; }.doc-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; }.doc-row:hover,.doc-row.selected { border-color: #c8bdf0; background: #fdfcff; }.doc-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #f4f2fa; color: var(--purple); font-size: 17px; }.doc-row-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }.doc-row-copy strong { color: var(--ink); font-size: 12px; text-transform: capitalize; }.doc-row-copy span { overflow: hidden; color: #9693a1; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.empty-inline,.empty-state { padding: 18px; border: 1px dashed #dedbe8; border-radius: 10px; color: var(--muted); text-align: center; font-size: 12px; }.empty-state strong { color: var(--ink); }.empty-state p { margin: 7px 0 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }.filter-chip { border: 1px solid var(--line); border-radius: 18px; padding: 7px 11px; background: white; color: #777482; font-size: 10px; font-weight: 700; }.filter-chip.active { border-color: #d2c8f4; background: var(--lavender); color: var(--purple-dark); }
.search-bar { display: flex; gap: 9px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }.search-bar input { min-width: 0; flex: 1; border: 0; outline: none; padding: 6px 8px; font-size: 12px; }.result-row { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: #555262; text-align: left; font-size: 11px; }.search-results { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.editor-panel { margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }.editor-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }.editor-toolbar h2 { margin: 0 0 4px; font: 700 16px Manrope,sans-serif; text-transform: capitalize; }.path-label { margin: 0; color: #9693a1; font: 10px/1.4 ui-monospace,monospace; overflow-wrap: anywhere; }.toolbar-actions { display: flex; gap: 8px; }.editor-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 260px; }.editor-wrap,.preview-wrap { min-width: 0; padding: 13px; }.preview-wrap { border-left: 1px solid var(--line); background: #fcfbfd; }.editor-label { margin-bottom: 9px; color: #9693a1; font-size: 9px; letter-spacing: .9px; font-weight: 800; }.editor { resize: vertical; width: 100%; min-height: 215px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; color: #4b4958; background: #fff; font: 12px/1.6 ui-monospace,SFMono-Regular,monospace; }.preview-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #4b4958; font: 12px/1.7 ui-monospace,monospace; }.conflict-box { margin: 14px; padding: 13px; border: 1px solid #f0dcb9; border-radius: 9px; background: #fffbf4; }.conflict-heading strong { color: #865b1b; font-size: 12px; }.conflict-heading p { margin: 4px 0 10px; color: #897a60; font-size: 11px; }.branch { margin: 8px 0; padding: 8px; border: 1px solid #efe5d3; border-radius: 7px; background: #fff; }.branch summary { color: #655d50; font-size: 11px; cursor: pointer; }.branch pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
.branch-draft { margin: 10px 0; padding: 10px; border: 1px solid #dfd7f8; border-radius: 8px; background: #fff; }.branch-draft strong { color: #5e49a8; font-size: 11px; }.branch-draft pre,.draft-content { margin: 7px 0 0; max-height: 300px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #4b4958; font: 11px/1.65 ui-monospace,SFMono-Regular,monospace; }.offline-drafts > .muted { margin: -3px 0 12px; }.draft-row { align-items: center; }.draft-row .device-details { gap: 5px; }.draft-content { max-height: min(55vh,480px); min-height: 100px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fcfbfd; }
.fingerprint-card,.recovery-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 18px; }.fingerprint-card h2,.recovery-card h2 { margin: 0 0 5px; font: 700 15px Manrope,sans-serif; }.fingerprint-card p,.recovery-card p { margin: 0; }.device-list { margin: 22px 0; }.device-row { display: flex; align-items: center; gap: 12px; padding: 13px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.device-symbol { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #f4f2fa; color: var(--purple); }.device-details { display: grid; flex: 1; gap: 4px; min-width: 0; }.device-details strong { font-size: 12px; }.device-details span { color: var(--muted); font-size: 10px; }.device-details code { overflow-wrap: anywhere; color: #777482; font-size: 10px; }.device-actions { display: flex; align-items: center; gap: 9px; }
.setup-card { display: grid; align-content: start; gap: 13px; }.setup-card h2 { margin: 0; font: 700 16px Manrope,sans-serif; }.stack { display: grid; gap: 12px; }.field { display: grid; gap: 6px; color: #686675; font-size: 11px; font-weight: 700; }.field input,.field textarea,.field select { width: 100%; min-width: 0; border: 1px solid #e3e1e9; border-radius: 8px; padding: 10px 11px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 400; }.field textarea { min-height: 110px; resize: vertical; }.muted { color: var(--muted); font-size: 12px; }.small-text { font-size: 11px; }.fine-print { margin: 0; color: #9693a1; font-size: 10px; line-height: 1.55; }.message { margin: 12px 36px 0; padding: 10px 13px; border-radius: 8px; font-size: 12px; }.message.error { color: #9a3838; background: #fff0f0; border: 1px solid #f2d4d4; }.message.success { color: #267a54; background: #edf9f2; border: 1px solid #d8efdf; }.message.info { color: #5b4c92; background: #f4f0ff; border: 1px solid #e4dcff; }.message.warning { margin: 14px 0; color: #895b15; background: #fff9ec; border: 1px solid #f2e2bd; }.message ul { margin: 8px 0 0; padding-left: 18px; }.error-text { color: #a13d3d; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(ellipse at 50% 0%,#f0ecff 0,transparent 45%),#f7f7fa; }.auth-card { width: min(100%,440px); padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 60px #27213c0d; }.auth-card > .brand-mark { margin-bottom: 20px; }.auth-card h1 { margin: 0 0 8px; font: 800 27px Manrope,sans-serif; letter-spacing: -.8px; }.auth-card > p { margin-bottom: 20px; }.auth-card h2 { margin: 18px 0 12px; font: 700 15px Manrope,sans-serif; }.divider { display: flex; align-items: center; gap: 12px; margin: 21px 0 14px; color: #aaa7b2; font-size: 9px; font-weight: 800; letter-spacing: 1px; }.divider::before,.divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }.signup-form { border-top: 1px solid var(--line); padding-top: 14px; }.auth-card .message { margin: 12px 0; }
.modal { width: min(100% - 30px, 500px); max-width: 500px; max-height: min(90vh,750px); padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 24px 90px #20193344; }.modal::backdrop { background: #28243c66; backdrop-filter: blur(2px); }.modal-card { padding: 0; }.modal-heading { display: flex; justify-content: space-between; align-items: center; padding: 16px 19px; border-bottom: 1px solid var(--line); }.modal-heading h2 { margin: 0; font: 700 16px Manrope,sans-serif; }.modal-content { display: grid; gap: 15px; padding: 18px; }.modal-content h3 { margin: 0; font-size: 13px; }.invite-code { width: 100%; min-height: 90px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; font-size: 11px; }.new-content { min-height: 130px; }.modal .message { margin: 0; }
.overview-line { margin: 0 0 8px; line-height: 1.55; }.overview-empty { margin: 0; color: var(--muted); font-size: 12px; }.summary-link { padding: 0; border: 0; background: transparent; color: var(--purple-dark); font-size: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: #d2c8f4; text-underline-offset: 2px; }.summary-link:hover { color: var(--purple); }
@media (max-width: 900px) { .app-shell { grid-template-columns: 214px minmax(0,1fr); }.view { padding: 28px 24px 50px; }.topbar { padding: 0 24px; }.connection { display: none; } }
@media (max-width: 680px) { .app-shell { display: block; }.sidebar { position: sticky; top: 0; z-index: 5; padding: 10px 12px 0; gap: 9px; border-right: 0; border-bottom: 1px solid var(--line); }.brand { padding: 0 2px; font-size: 14px; }.brand-mark.small { width: 27px; height: 27px; }.team-picker { display: flex; align-items: center; gap: 8px; padding: 5px 10px; }.team-picker .eyebrow { margin: 0; }.team-picker select { flex: 1; }.team-picker .text-button { white-space: nowrap; }.main-nav { display: flex; overflow-x: auto; gap: 3px; }.nav-button { width: auto; flex: 1 0 auto; padding: 8px; justify-content: center; font-size: 11px; }.nav-button::before { display: none; }.member-list,.sidebar-bottom { display: none; }.topbar { height: 52px; padding: 0 16px; }.view { padding: 23px 15px 40px; }.section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }.section-heading h1 { font-size: 24px; }.two-column { grid-template-columns: 1fr; }.sync-card { flex-wrap: wrap; }.sync-copy { min-width: 150px; }.editor-grid { grid-template-columns: 1fr; }.preview-wrap { border-left: 0; border-top: 1px solid var(--line); }.message { margin: 10px 15px 0; }.topbar-right { gap: 7px; }.pill { font-size: 8px; padding: 5px 7px; }.device-row { align-items: flex-start; flex-wrap: wrap; }.device-details { min-width: calc(100% - 50px); }.fingerprint-card,.recovery-card { align-items: flex-start; flex-direction: column; }.filter-row { gap: 5px; } }

/* Pilot experience: readable local work, with account setup kept quiet. */
:root { --muted: #625f70; --line: #dedce6; background: #f7f7f9; }
body { font-size: 14px; line-height: 1.5; }
.skip-link { position: absolute; z-index: 20; top: -60px; left: 12px; padding: 9px 12px; border-radius: 8px; background: #fff; color: #3e2e89; font-weight: 700; }
.skip-link:focus { top: 12px; }
.eyebrow { color: #666278; font-size: 11px; }
.muted { color: var(--muted); font-size: 13px; }
.fine-print { color: #686576; font-size: 11px; }
.button { font-size: 13px; min-height: 36px; }
.text-button { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.pill { font-size: 10px; }
.nav-button { font-size: 13px; }
.doc-row-copy strong { font-size: 13px; }
.doc-row-copy span { font-size: 11px; color: #686576; }
.member-copy strong,.sync-copy strong { font-size: 13px; }
.member-copy span,.device-details span { font-size: 11px; }
.overview-empty { color: var(--muted); font-size: 13px; }
.empty-inline,.empty-state { color: var(--muted); font-size: 13px; }
.topbar { gap: 18px; }
.topbar-right { min-width: 0; }
.top-search { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; min-width: 156px; background: #faf9fc; color: #514c62; font-size: 12px; font-weight: 650; text-align: left; }
.top-search:hover { border-color: #9c89e8; background: #f5f1ff; }
.heading-actions { display: flex; gap: 9px; flex-wrap: wrap; }

.auth-page { display: block; padding: clamp(24px,5vw,70px) 24px 30px; }
.welcome-layout { width: min(1120px,100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 24px 40px; align-items: start; }
.welcome-intro { padding: 42px 14px 8px 0; }
.welcome-intro .brand-mark { margin-bottom: 32px; }
.welcome-intro h1 { margin: 0 0 15px; font: 800 clamp(40px,6vw,64px)/1.05 Manrope,sans-serif; letter-spacing: -2px; }
.welcome-lede { max-width: 610px; margin-bottom: 14px; color: #363244; font-size: clamp(18px,2vw,23px); line-height: 1.4; }
.welcome-intro > .muted { max-width: 570px; line-height: 1.65; }
.auth-card { width: 100%; padding: 28px; box-shadow: 0 18px 50px #27213c0c; }
.auth-card h2 { margin: 0 0 8px; font: 750 22px Manrope,sans-serif; }
.auth-card > .muted { margin-bottom: 22px; line-height: 1.55; }
.auth-card .field input { min-height: 44px; font-size: 15px; }
.auth-card .button.primary { min-height: 42px; }
.auth-card .message { margin: 0 0 16px; }
.auth-options { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.auth-options .text-button:disabled { color: #767382; text-decoration: none; }
.code-sent { margin: 0; color: #4a465b; font-size: 13px; }
.welcome-divider { height: 1px; margin: 26px 0 19px; background: var(--line); }
.welcome-secondary { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.welcome-secondary .fine-print { flex: 1; min-width: 150px; }
.install-steps { grid-column: 1 / -1; padding: 22px 26px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.install-steps h2 { margin: 0 0 6px; font: 750 19px Manrope,sans-serif; }
.install-steps > .muted { max-width: 740px; line-height: 1.55; }
.command-block { margin: 16px 0 10px; padding: 15px 18px; overflow-x: auto; border-radius: 9px; background: #262339; color: #f6f3ff; font: 12px/1.75 ui-monospace,SFMono-Regular,monospace; }
.welcome-recovery { width: min(1120px,100%); margin: 14px auto 0; display: flex; gap: 10px; align-items: center; }

.readiness { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 13px; padding: 18px 21px; border: 1px solid #d9d1f0; border-radius: 12px; background: #fff; }
.readiness.pending { border-color: #e9dcbf; background: #fffdf8; }
.readiness-copy { flex: 1 1 300px; }
.readiness h2 { margin: 0 0 5px; font: 750 19px Manrope,sans-serif; }
.readiness p { margin: 0; color: #504c5e; font-size: 13px; }
.readiness .eyebrow { margin: 0 0 5px; color: #66509f; }
.readiness-actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.fingerprint-inline { flex: 1 0 100%; overflow-wrap: anywhere; font: 11px/1.5 ui-monospace,monospace !important; }
.connection-line { display: flex; align-items: center; gap: 9px; margin: 0 0 25px; color: #625f70; font-size: 12px; }
.demo-guide { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; padding: 18px 21px; border: 1px solid #eadcb5; border-radius: 12px; background: #fffcf5; }
.demo-guide h2 { margin: 0 0 4px; font: 750 17px Manrope,sans-serif; }
.demo-guide p { margin: 0; color: #554c3a; font-size: 13px; }
.demo-guide .eyebrow { margin-bottom: 4px; color: #795b20; }
.demo-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; flex: 0 0 auto; }

.search-modal { width: min(100% - 30px,700px); max-width: 700px; }
.search-modal .modal-content { gap: 14px; }
.search-form { display: grid; gap: 10px; }
.search-input-row { display: flex; gap: 9px; }
.search-input-row input { min-width: 0; flex: 1; border: 1px solid #cfcbdc; border-radius: 8px; padding: 9px 12px; font-size: 15px; }
.search-filters { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 9px; }
.search-filters select { min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; color: #454154; font-size: 12px; }
.search-status { margin: 0; color: #625f70; font-size: 12px; }
.search-dialog-results { max-height: min(50vh,440px); overflow-y: auto; }
.result-row { display: grid; gap: 3px; padding: 13px 15px; color: #343044; font-size: 13px; }
.result-row:hover { background: #f7f4ff; }
.result-row strong { font-size: 14px; }
.result-path { overflow-wrap: anywhere; color: #645b79; font: 11px/1.4 ui-monospace,monospace; }
.result-excerpt { color: #4d495b; line-height: 1.45; }

@media (max-width: 900px) {
  .welcome-layout { grid-template-columns: 1fr; gap: 18px; }
  .welcome-intro { padding: 12px 0; }
  .welcome-intro .brand-mark { margin-bottom: 17px; }
  .install-steps { grid-column: auto; }
  .top-search { min-width: auto; }
}
@media (max-width: 680px) {
  .auth-page { padding: 22px 16px; }
  .auth-card,.install-steps { padding: 21px; }
  .welcome-intro h1 { font-size: 42px; }
  .topbar { min-height: 56px; height: auto; padding: 9px 15px; }
  .topbar-right { gap: 8px; }
  .top-search { padding: 7px 9px; font-size: 0; min-width: 36px; }
  .top-search::before { content: "⌕"; font-size: 20px; line-height: 1; }
  .readiness,.demo-guide { align-items: flex-start; flex-direction: column; }
  .readiness-actions,.demo-actions { width: 100%; }
  .search-filters { grid-template-columns: 1fr 1fr; }
  .search-filters select:last-child { grid-column: 1 / -1; }
  .search-input-row { flex-wrap: wrap; }
  .search-input-row input { flex-basis: 100%; }
}

/* Safe Markdown reading view shared by local notes and the fictional preview. */
.editor-panel { scroll-margin-top: 20px; }
.reading-wrap { padding: 20px 24px; }
.rendered-markdown { color: #4b4958; font: 12px/1.75 "DM Sans", sans-serif; overflow-wrap: anywhere; }
.rendered-markdown h1,.rendered-markdown h2,.rendered-markdown h3,.rendered-markdown h4 { color: var(--ink); font-family: Manrope,sans-serif; line-height: 1.35; margin: 18px 0 8px; }
.rendered-markdown h1 { font-size: 20px; margin-top: 0; }
.rendered-markdown h2 { font-size: 17px; }
.rendered-markdown h3,.rendered-markdown h4 { font-size: 14px; }
.rendered-markdown p { margin: 0 0 12px; }
.rendered-markdown ul,.rendered-markdown ol { margin: 0 0 13px; padding-left: 23px; }
.rendered-markdown li { margin: 5px 0; }
.rendered-markdown input[type="checkbox"] { width: auto; margin: 0 7px 0 0; vertical-align: middle; }
.rendered-markdown code { background: #f2f0f7; border-radius: 4px; padding: 1px 4px; }
.demo-link { border: 0; background: none; color: var(--purple); padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.source-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 13px; }
.source-details summary { color: var(--muted); font-size: 11px; cursor: pointer; }
.source-details pre { margin: 12px 0 0; padding: 12px; border-radius: 8px; background: #f7f6fa; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; }
body.dashboard-active > .header, body.dashboard-active > #main, body.dashboard-active > footer { display: none; }
#hosted-dashboard[hidden] { display: none; }
#hosted-dashboard { min-height: 100vh; }
