:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, .86);
  --surface-solid: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --blue: #0071e3;
  --purple: #7157ff;
  --green: #23a55a;
  --red: #d93045;
  --orange: #c87500;
  --shadow: 0 20px 60px rgba(0, 0, 0, .07);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }

.app-body { background: var(--bg); min-height: 100vh; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px 18px; background: rgba(248, 248, 250, .82); border-right: 1px solid var(--line); backdrop-filter: blur(28px); display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 750; letter-spacing: -.02em; padding: 4px 8px 24px; }
.brand-mark, .public-wordmark span { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; color: white; background: linear-gradient(135deg, #141416, #494950); font-weight: 800; box-shadow: inset 0 1px #fff4; }
.primary-nav, .secondary-nav { display: grid; gap: 3px; }
.primary-nav a, .secondary-nav a { min-height: 41px; padding: 9px 11px; border-radius: 11px; color: #58585d; display: flex; align-items: center; gap: 11px; transition: .18s ease; }
.primary-nav a span { width: 18px; text-align: center; color: #85858c; }
.primary-nav a:hover, .secondary-nav a:hover { background: #fff9; color: #111; }
.primary-nav a.active, .secondary-nav a.active { color: #111; background: #fff; box-shadow: 0 3px 14px #0000000b; font-weight: 650; }
.primary-nav a.active span { color: var(--blue); }
.nav-divider { height: 1px; background: var(--line); margin: 14px 10px; }
.secondary-nav a { min-height: 35px; font-size: 13px; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; background: var(--red); color: #fff; font-size: 10px; border-radius: 99px; }
.sidebar-footer { margin-top: auto; padding: 16px 10px 2px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 7px; color: var(--muted); border-top: 1px solid var(--line); }
.sidebar-footer form { grid-column: 1 / -1; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #aaa; display: inline-block; }
.status-dot.on { background: var(--green); box-shadow: 0 0 0 4px #23a55a18; }
.workspace { min-width: 0; }
.topbar { height: 70px; padding: 14px clamp(24px, 4vw, 64px); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 12; background: rgba(245, 245, 247, .82); backdrop-filter: blur(25px); border-bottom: 1px solid transparent; }
.global-search { width: min(430px, 55vw); background: #e8e8ed; border-radius: 12px; padding: 8px 12px; display: flex; gap: 9px; color: #777; }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: #222; }
.topbar-link { font-size: 13px; color: var(--muted); }
main { width: min(1440px, 100%); margin: 0 auto; padding: 32px clamp(24px, 4vw, 64px) 90px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 28px; }
.page-header h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.055em; margin: 6px 0 10px; max-width: 900px; }
.page-header p { margin: 0; color: var(--muted); max-width: 700px; font-size: 16px; }
.eyebrow, .kicker { color: var(--blue); font-size: 11px; letter-spacing: .13em; font-weight: 750; }
.kicker.purple { color: var(--purple); }
.cloud-pill, .model-chip { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 11px 17px; box-shadow: 0 8px 30px #00000008; white-space: nowrap; }
.cloud-pill div { display: grid; }
.cloud-pill small { color: var(--muted); }
.pulse { width: 10px; height: 10px; background: #28b76c; border-radius: 50%; box-shadow: 0 0 0 7px #28b76c16; }
.surface { background: var(--surface); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; backdrop-filter: blur(20px); }
.today-grid { display: grid; grid-template-columns: 1.22fr .78fr; gap: 20px; margin-bottom: 20px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-title h2 { font-size: 22px; letter-spacing: -.03em; margin: 2px 0 0; }
.section-title a { color: var(--blue); font-size: 13px; }
.digest-preview { color: white; overflow: hidden; position: relative; background: radial-gradient(circle at 80% 10%, #7367ff 0, transparent 35%), linear-gradient(145deg, #17171e, #050507); border-color: #ffffff18; }
.digest-preview::after { content: ""; width: 260px; height: 260px; border: 1px solid #ffffff16; border-radius: 50%; position: absolute; right: -100px; bottom: -130px; box-shadow: 0 0 0 40px #ffffff05, 0 0 0 80px #ffffff03; }
.digest-preview .section-title a, .digest-preview p { color: #b8b8c3; }
.digest-preview h3 { font-size: 31px; letter-spacing: -.04em; line-height: 1.1; margin: 35px 0 12px; max-width: 420px; }
.digest-preview .button { position: relative; z-index: 2; margin-top: 14px; }
.digest-date { display: inline-flex; border: 1px solid #ffffff2c; padding: 5px 10px; border-radius: 99px; font-size: 11px; }
.orb { width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff 0, #a993ff 9%, #4f46e5 38%, #111 72%); box-shadow: 0 0 70px #735cff80; }
.orb.small { width: 54px; height: 54px; margin-top: 30px; }
.task-list { display: grid; gap: 9px; }
.task-list.roomy { gap: 11px; }
.task { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task h3 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.task p { color: var(--muted); margin: 4px 0 0; }
.task.done { opacity: .52; }
.task.done h3 { text-decoration: line-through; }
.grow { flex: 1; min-width: 0; }
.check { width: 23px; height: 23px; border: 1.5px solid #b5b5ba; border-radius: 50%; background: #fff; color: var(--blue); cursor: pointer; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 11px; margin-top: 7px; }
.priority { border-radius: 99px; padding: 1px 7px; }
.priority.high { color: var(--red); background: #d9304510; }
.priority.medium { color: var(--orange); background: #c8750010; }
.priority.low { color: var(--green); background: #23a55a10; }
.overdue { color: var(--red); }
.icon-button { min-width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; color: #777; }
.icon-button.selected { color: var(--blue); border-color: #0071e34a; background: #0071e309; }
.icon-button.danger { color: var(--red); }
.inline-add { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.inline-add input { flex: 1; border: 0; outline: 0; background: transparent; }
.inline-add button { width: 34px; border: 0; border-radius: 10px; background: #e9f3ff; color: var(--blue); cursor: pointer; }
.backlog-preview { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.backlog-preview > .kicker { display: block; margin-bottom: 6px; color: var(--muted); }
.intelligence-strip { margin-bottom: 20px; }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.event-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; min-width: 0; background: #fff; }
.event-card h2, .event-card h3 { letter-spacing: -.025em; line-height: 1.25; margin: 10px 0 8px; }
.event-card h2 { font-size: 22px; }
.event-card h3 { font-size: 17px; }
.event-card > p { color: var(--muted); margin: 0; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.category, .ai-state, .rule { padding: 3px 8px; border-radius: 99px; background: #eee; color: #555; }
.category.release, .ai-state.ready { background: #e8f7ee; color: #178044; }
.category.research { background: #eeeaff; color: #6046cf; }
.category.incident, .ai-state.failed { background: #fff0f1; color: #c52d42; }
.category.tooling { background: #e8f3ff; color: #0969c3; }
.alert-chip { color: #b35c00; background: #fff4dd; padding: 3px 8px; border-radius: 99px; }
.impact { margin-top: 13px; padding: 12px 14px; background: #f5f5f7; border-radius: 12px; color: #56565b; font-size: 13px; }
.impact strong { display: block; color: #1d1d1f; margin-bottom: 3px; }
.evidence { margin: 14px 0; border-top: 1px solid var(--line); padding-top: 12px; }
.evidence summary { color: var(--blue); cursor: pointer; font-size: 12px; }
.evidence a { display: block; padding: 8px 0 0; font-size: 12px; color: #555; }
.evidence a span { color: var(--purple); margin-right: 8px; }
.feedback-form { border-top: 1px solid var(--line); padding-top: 13px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.feedback-buttons { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.feedback-buttons button { border: 1px solid var(--line); border-radius: 99px; background: #fff; padding: 5px 10px; color: #555; cursor: pointer; font-size: 11px; }
.feedback-form input { width: 100%; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.mini-metric { padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; }
.mini-metric strong { font-size: 28px; letter-spacing: -.04em; }
.mini-metric span { color: var(--muted); font-size: 12px; }
.notice { border-radius: 15px; padding: 14px 17px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.notice.warning { color: #72510a; background: #fff6d8; border: 1px solid #f4df9f; }
.notice span { flex: 1; }
.notice a { text-decoration: underline; }
.form-surface { margin-bottom: 20px; }
.smart-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.smart-form .span-2 { grid-column: span 2; }
.smart-form input, .smart-form textarea, .smart-form select, .filter-bar select, .feedback-form input, .capture-card input, .capture-card textarea, .search-hero input, .login-card input { border: 1px solid #d8d8dd; border-radius: 12px; padding: 11px 12px; color: #222; background: #fff; outline: 0; width: 100%; }
.smart-form input:focus, .smart-form textarea:focus, .smart-form select:focus, .search-hero input:focus, .login-card input:focus { border-color: #56a6f6; box-shadow: 0 0 0 4px #0071e313; }
.smart-form textarea { resize: vertical; min-height: 48px; }
.smart-form textarea.tall { min-height: 130px; }
.check-label { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.check-label input { width: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 99px; padding: 10px 17px; cursor: pointer; font-weight: 650; white-space: nowrap; }
.button.primary { background: var(--blue); color: white; }
.button.secondary { background: #e9e9ed; color: #222; }
.button.dark { background: white; color: #111; }
.text-button { border: 0; background: transparent; color: var(--blue); padding: 4px 0; cursor: pointer; }
.tabs { display: flex; gap: 6px; overflow: auto; padding-bottom: 12px; }
.tabs a { white-space: nowrap; padding: 7px 13px; border-radius: 99px; color: var(--muted); }
.tabs a.active { background: #1d1d1f; color: #fff; }
.filter-bar { margin-bottom: 12px; }
.filter-bar select { width: auto; min-width: 180px; }
.news-list { padding-top: 4px; }
.news-row { display: flex; gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.news-row:last-child { border-bottom: 0; }
.news-row.read { opacity: .58; }
.news-main { flex: 1; min-width: 0; }
.news-main h2 { font-size: 19px; margin: 7px 0; letter-spacing: -.02em; }
.news-main > p { color: var(--muted); margin: 0; }
.news-main > small { display: block; color: #999; margin-top: 10px; }
.news-actions { display: flex; gap: 6px; }
.source { color: var(--purple); }
.card-grid, .note-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { display: flex; align-items: flex-start; gap: 16px; }
.project-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--project-color), white 84%); color: var(--project-color); font-weight: 800; }
.project-card h2, .note-card h2 { margin: 4px 0 6px; font-size: 20px; }
.project-card p, .note-card p { color: var(--muted); margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-card .count { margin-left: auto; font-size: 28px; display: grid; text-align: right; }
.project-card .count small { color: var(--muted); font-size: 10px; font-weight: 400; }
.note-card p { max-height: 180px; overflow: hidden; }
.note-card > small { display: block; margin-top: 12px; color: var(--purple); }
.timeline { display: grid; }
.timeline-row { display: flex; align-items: center; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.timeline-row:last-child { border-bottom: 0; }
.timeline-row > time { width: 55px; font-size: 17px; font-weight: 700; }
.timeline-row > time small { display: block; font-size: 12px; color: var(--muted); }
.timeline-row h3, .timeline-row p { margin: 0; }
.timeline-row p { color: var(--muted); }
.timeline-row.done { opacity: .5; }
.preference-list { display: grid; gap: 10px; }
.preference-row { display: flex; align-items: center; gap: 14px; padding: 17px 20px; }
.preference-row .grow { display: grid; }
.preference-row small { color: var(--muted); }
.rule.follow { background: #e8f7ee; color: #178044; }
.rule.mute { background: #fff0f1; color: #c52d42; }
.digest-stack { display: grid; gap: 18px; }
.digest-sheet { display: flex; gap: 28px; }
.digest-side { width: 70px; flex: 0 0 70px; display: grid; align-content: start; border-right: 1px solid var(--line); }
.digest-side time { font-size: 24px; font-weight: 750; }
.digest-side span { color: var(--muted); }
.digest-sheet h2 { font-size: 28px; margin: 0; }
.digest-sheet > .grow > p { color: var(--muted); }
.digest-sheet ol { padding-left: 22px; }
.digest-sheet li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; }
.digest-sheet li p { margin: 3px 0 0; color: var(--muted); }
.digest-sheet li > span { color: var(--purple); font-weight: 700; }
.search-hero { display: flex; gap: 10px; margin-bottom: 20px; }
.search-hero input { font-size: 18px; }
.search-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.search-result { display: block; border-top: 1px solid var(--line); padding: 12px 0; }
.search-result p { color: var(--muted); margin: 3px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-bottom: 16px; }
.management-links { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
.management-links a { padding: 7px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.admin-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.admin-row strong { display: block; margin-top: 3px; }
.admin-row p { color: var(--muted); margin: 3px 0; }
.audit-row { display: grid; grid-template-columns: 110px 1fr 160px; gap: 15px; border-top: 1px solid var(--line); padding: 10px 0; color: var(--muted); font-size: 12px; }
.audit-row code { color: #222; }
.empty-state { min-height: 130px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); gap: 7px; }
.empty-state.wide { grid-column: 1 / -1; }
.empty-state > span { font-size: 28px; color: #bbb; }
.empty-state p { margin: 0; }
.empty-state a { color: var(--blue); }

.quick-capture { position: fixed; right: 26px; bottom: 26px; z-index: 40; }
.quick-capture > summary { list-style: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #1d1d1f; color: white; font-size: 27px; cursor: pointer; box-shadow: 0 12px 35px #0004; margin-left: auto; }
.quick-capture > summary::-webkit-details-marker { display: none; }
.quick-capture[open] > summary { transform: rotate(45deg); }
.capture-card { width: min(520px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px; margin: 0 0 10px; box-shadow: 0 30px 100px #0004; }
.capture-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.capture-head small { color: var(--muted); }
.capture-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.capture-tabs form { display: grid; gap: 8px; }
.capture-card textarea { min-height: 70px; resize: vertical; }
.mobile-nav { display: none; }
.toast { position: fixed; z-index: 99; left: 50%; bottom: 24px; transform: translateX(-50%); color: #fff; background: #1d1d1f; padding: 10px 16px; border-radius: 99px; box-shadow: 0 10px 40px #0004; }

.login-body { min-height: 100vh; background: #050507; color: #fff; display: grid; place-items: center; padding: 32px; }
.login-layout { width: min(1050px, 100%); display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 80px; }
.public-wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 730; }
.login-layout h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -.06em; margin: 34px 0 18px; }
.login-layout section > p { color: #9b9ba3; font-size: 17px; }
.login-orb { width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff 0, #9e8aff 8%, #5842e8 35%, #08080a 70%); box-shadow: 0 0 100px #634cff8a; margin-top: 60px; }
.login-card { background: #151519; border: 1px solid #ffffff18; border-radius: 26px; padding: 30px; display: grid; gap: 17px; box-shadow: 0 40px 120px #000; }
.login-card h2 { font-size: 28px; margin: 0; }
.login-card label { display: grid; gap: 7px; color: #bbb; }
.login-card input { color: #fff; background: #0b0b0e; border-color: #ffffff1c; }
.login-card small { color: #777; }
.error { color: #ffb2b9; background: #4e1921; padding: 9px 12px; border-radius: 10px; }

.public-body { background: #fff; color: #1d1d1f; overflow-x: hidden; }
.public-nav { height: 64px; position: sticky; top: 0; z-index: 30; padding: 0 max(24px, calc((100vw - 1200px)/2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, .78); backdrop-filter: blur(24px); border-bottom: 1px solid #0000000a; }
.public-nav > div { display: flex; align-items: center; gap: 28px; font-size: 12px; }
.public-login { color: white; background: #1d1d1f; padding: 8px 15px; border-radius: 99px; }
.public-main { overflow: hidden; }
.public-hero { min-height: 900px; padding: 120px 24px 0; text-align: center; background: radial-gradient(circle at 50% 55%, #eeeaff 0, #fff 42%); }
.public-eyebrow { color: #77777d; letter-spacing: .16em; font-size: 11px; font-weight: 750; }
.public-hero h1 { font-size: clamp(56px, 8.5vw, 112px); line-height: .98; letter-spacing: -.075em; margin: 28px auto; max-width: 1180px; }
.public-hero h1 span { background: linear-gradient(90deg, #5c46df, #0071e3 55%, #3ab6a0); color: transparent; background-clip: text; }
.public-hero > p { max-width: 760px; margin: 0 auto; color: #6e6e73; font-size: clamp(17px, 2vw, 22px); }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 25px; margin: 34px 0 70px; color: var(--blue); }
.public-cta { background: var(--blue); color: white; padding: 12px 21px; border-radius: 99px; }
.hero-device { width: min(1120px, 95vw); height: 520px; margin: auto; text-align: left; border: 1px solid #00000016; border-radius: 28px 28px 0 0; background: #f5f5f7; box-shadow: 0 40px 140px #3d2e8e28; overflow: hidden; }
.browser-bar { height: 40px; background: #fff; border-bottom: 1px solid #ddd; display: flex; align-items: center; gap: 7px; padding: 0 15px; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ddd; }
.browser-bar span { margin-left: 10px; font-size: 10px; color: #999; }
.device-ui { height: 100%; display: grid; grid-template-columns: 95px 1fr; }
.device-ui aside { background: #f0f0f2; padding: 22px; display: grid; align-content: start; gap: 23px; }
.device-ui aside b { width: 30px; height: 30px; border-radius: 9px; color: #fff; background: #222; display: grid; place-items: center; }
.device-ui aside span { width: 45px; height: 7px; border-radius: 5px; background: #d5d5d9; }
.device-ui > div { padding: 45px 55px; }
.device-ui h3 { font-size: 40px; letter-spacing: -.05em; margin: 5px 0 25px; }
.mock-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 15px; }
.mock-grid article { min-height: 220px; padding: 20px; border-radius: 18px; background: #fff; }
.mock-grid em { color: var(--blue); font-size: 9px; letter-spacing: .1em; }
.mock-grid strong { display: block; margin: 4px 0 16px; font-size: 18px; }
.mock-grid p { border-top: 1px solid #eee; padding: 9px 0; margin: 0; font-size: 12px; }
.mock-grid .mock-dark { color: white; background: radial-gradient(circle at 90% 0, #6c5cff, #101014 45%); }
.mock-dark em, .mock-dark p { color: #b7aaff; }
.mock-dark p { border: 0; }
.mock-dark button { border: 0; border-radius: 99px; padding: 7px 10px; }
.public-section { padding: 140px max(24px, calc((100vw - 1200px)/2)); }
.dark-section { min-height: 760px; color: white; background: #050507; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 90px; }
.section-copy h2, .section-center h2, .build-section h2 { font-size: clamp(44px, 6vw, 76px); line-height: 1.03; letter-spacing: -.06em; margin: 18px 0; }
.section-copy p, .section-center > p { color: #8d8d94; font-size: 18px; max-width: 600px; }
.purple-text { color: #9182ff; }
.pipeline-visual { display: grid; gap: 12px; }
.pipeline-visual > div { border: 1px solid #ffffff18; background: #111115; border-radius: 22px; padding: 24px; display: grid; grid-template-columns: 55px 1fr; }
.pipeline-visual b { color: #7764ff; grid-row: span 2; font-size: 24px; }
.pipeline-visual span { font-size: 20px; font-weight: 700; }
.pipeline-visual small { color: #777780; }
.pipeline-visual i { text-align: center; color: #555; }
.workflow-section { background: #f5f5f7; }
.section-center { text-align: center; max-width: 900px; margin: auto; }
.section-center > p { margin: auto; }
.device-trio { margin: 90px auto 0; max-width: 950px; display: grid; grid-template-columns: 320px 1fr; align-items: center; gap: 100px; }
.phone-mock { min-height: 620px; background: #fff; border: 8px solid #111; border-radius: 52px; padding: 45px 20px 20px; box-shadow: 0 35px 80px #0002; position: relative; }
.phone-island { width: 90px; height: 24px; background: #111; border-radius: 99px; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); }
.phone-mock > small { display: block; }
.phone-mock h3 { font-size: 30px; letter-spacing: -.04em; }
.phone-card { border: 1px solid #eee; border-radius: 20px; padding: 18px; margin-top: 14px; display: grid; }
.phone-card strong { font-size: 20px; margin: 5px 0; }
.phone-card p { border-top: 1px solid #eee; margin: 0; padding: 10px 0; }
.purple-card { color: white; background: linear-gradient(145deg, #1d1a34, #6048e8); }
.purple-card span { color: #c9c1ff; font-size: 11px; }
.feature-list { display: grid; gap: 35px; }
.feature-list > div { display: flex; gap: 25px; border-top: 1px solid #ccc; padding-top: 22px; }
.feature-list b { color: var(--purple); }
.feature-list span { display: grid; }
.feature-list strong { font-size: 22px; }
.feature-list small { color: var(--muted); font-size: 15px; margin-top: 5px; }
.build-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.build-grid article { border-radius: 22px; padding: 24px; background: #f5f5f7; }
.build-grid strong { font-size: 20px; }
.build-grid p { color: var(--muted); }
.signals-section { background: #f5f5f7; }
.public-signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 70px; }
.public-signal-grid article { background: #fff; border-radius: 24px; padding: 25px; }
.public-signal-grid h3 { font-size: 22px; }
.public-signal-grid p { color: var(--muted); }
.public-signal-grid > article > strong { display: block; padding-top: 15px; border-top: 1px solid #eee; }
.public-footer { padding: 70px max(24px, calc((100vw - 1200px)/2)); background: #050507; color: #fff; display: grid; gap: 15px; }
.public-footer p, .public-footer small { color: #777; }

@media (max-width: 1100px) {
  .event-grid.compact { grid-template-columns: 1fr 1fr; }
  .dark-section, .build-section { grid-template-columns: 1fr; }
  .pipeline-visual { max-width: 760px; width: 100%; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { height: 58px; padding: 10px 16px; }
  .topbar-link { display: none; }
  .global-search { width: 100%; }
  main { padding: 24px 15px 110px; }
  .page-header { align-items: flex-start; }
  .page-header h1 { font-size: 36px; }
  .page-header > .button, .page-header .model-chip, .cloud-pill { display: none; }
  .today-grid, .event-grid, .event-grid.compact, .card-grid, .note-grid, .search-columns, .admin-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr 1fr; }
  .smart-form { grid-template-columns: 1fr; }
  .smart-form .span-2 { grid-column: auto; }
  .feedback-form { grid-template-columns: 1fr auto; }
  .feedback-form input:first-of-type { grid-column: 1 / -1; }
  .digest-sheet { display: block; }
  .digest-side { width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; display: flex; justify-content: space-between; }
  .audit-row { grid-template-columns: 90px 1fr; }
  .audit-row span { display: none; }
  .quick-capture { right: 18px; bottom: 82px; }
  .quick-capture > summary { width: 48px; height: 48px; }
  .capture-tabs { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(65px + env(safe-area-inset-bottom)); padding: 7px 7px env(safe-area-inset-bottom); background: rgba(251, 251, 252, .94); backdrop-filter: blur(24px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 35; }
  .mobile-nav a { display: grid; place-items: center; align-content: center; gap: 1px; color: #777; font-size: 9px; }
  .mobile-nav a span { font-size: 18px; line-height: 1; }
  .mobile-nav a.active { color: var(--blue); }
  .login-body { padding: 20px; }
  .login-layout { grid-template-columns: 1fr; gap: 40px; }
  .login-layout section .login-orb, .login-layout section > p { display: none; }
  .login-layout h1 { font-size: 44px; margin-bottom: 0; }
  .public-nav { padding: 0 16px; }
  .public-nav > div a:not(.public-login) { display: none; }
  .public-hero { min-height: 760px; padding-top: 85px; }
  .public-hero h1 { font-size: 44px; }
  .public-hero .public-eyebrow { font-size: 9px; letter-spacing: .1em; }
  .public-hero > p { width: 100%; max-width: 340px; font-size: 15px; overflow-wrap: anywhere; word-break: break-all; }
  .hero-actions { flex-direction: column; margin-bottom: 45px; }
  .hero-device { height: 360px; }
  .device-ui { grid-template-columns: 52px 1fr; }
  .device-ui aside { padding: 15px 10px; }
  .device-ui aside span { width: 30px; }
  .device-ui > div { padding: 28px 20px; }
  .device-ui h3 { font-size: 25px; }
  .mock-grid { grid-template-columns: 1fr; }
  .mock-grid article { min-height: 160px; }
  .mock-grid article:first-child { display: none; }
  .public-section { padding: 90px 22px; }
  .section-copy h2, .section-center h2, .build-section h2 { font-size: 44px; }
  .device-trio { grid-template-columns: 1fr; gap: 65px; }
  .phone-mock { width: 300px; margin: auto; }
  .build-grid, .public-signal-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
