:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #10284a;
  background: #eaf0f8;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #7aabf7; outline-offset: 2px; }

.demo-stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: clamp(32px, 7vw, 110px); padding: 36px 24px; }
.demo-intro { width: min(390px, 34vw); }
.intro-kicker { color: #1662a3; font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.demo-intro h1 { margin: 16px 0; font-size: clamp(38px, 4vw, 62px); line-height: 1.02; letter-spacing: -.055em; }
.demo-intro p { color: #52677f; font-size: 17px; line-height: 1.65; }
.demo-intro .intro-note { margin-top: 28px; padding-left: 14px; border-left: 3px solid #1b66b2; font-size: 13px; }
.intro-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 25px; }
.intro-links a, .settings-link { color: #125eaa; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.intro-links a:focus-visible, .settings-link:focus-visible { outline: 3px solid #7aabf7; outline-offset: 3px; }

.phone-frame { flex: 0 0 420px; height: min(890px, calc(100vh - 60px)); min-height: 620px; padding: 8px; border: 1px solid #d1dbea; border-radius: 39px; background: #fff; box-shadow: 0 26px 75px #163f7828, 0 5px 20px #18395a16; }
.phone-screen { width: 100%; height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden; border-radius: 32px; background: #f6f8fc; }
.screen-top { flex: 0 0 auto; padding: 25px 24px 12px; background: #f6f8fc; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.wordmark { font-size: 18px; font-weight: 850; letter-spacing: -.035em; }
.wordmark span { color: #1768b3; }
.demo-chip { padding: 5px 8px; border-radius: 100px; background: #e8f2ff; color: #1664aa; font-size: 10px; font-weight: 850; letter-spacing: .11em; }
.page-heading { margin: 22px 0 0; color: #0e2b4f; font-size: 36px; font-weight: 820; letter-spacing: -.055em; line-height: 1.12; }
.identity-line { margin: 15px 0 0; color: #697e92; font-size: 12px; font-weight: 750; }
.scroll-area { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 25px; scrollbar-width: thin; }
.screen-footer { flex: 0 0 auto; display: flex; align-items: stretch; min-height: 78px; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #e2e9f1; box-shadow: 0 -4px 18px #1132530a; }
.nav-button { flex: 1; min-width: 0; border: 0; border-top: 3px solid transparent; background: transparent; color: #718092; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 650; }
.nav-button.active { color: #1261a8; border-top-color: #1266b5; }
.nav-button svg { width: 22px; height: 22px; }

.pulse { margin-top: 20px; padding: 18px; border: 1px solid #dce5ef; border-radius: 20px; background: #fff; box-shadow: 0 5px 15px #133d6710; }
.pulse-head { width: 100%; padding: 0; display: flex; align-items: center; gap: 11px; border: 0; background: transparent; text-align: left; color: #112f55; }
.pulse-icon { width: 35px; height: 35px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; background: #eaf2ff; color: #1465b4; }
.pulse-icon svg { width: 20px; height: 20px; }
.pulse-title { flex: 1; font-size: 18px; font-weight: 780; letter-spacing: -.025em; }
.pulse-total { color: #125ba2; font-size: 13px; font-weight: 800; white-space: nowrap; }
.chevron { width: 17px; height: 17px; color: #175b9b; transition: transform .2s ease; }
.chevron.closed { transform: rotate(180deg); }
.pulse-sub { margin: 6px 0 0 46px; color: #74879b; font-size: 11px; }
.age-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 15px; }
.age-box { min-height: 76px; padding: 9px 5px; border: 1px solid #dce5ef; border-radius: 12px; background: #f7faff; color: #1765b0; text-align: center; }
.age-box:nth-child(2) { background: #fff9ed; color: #a76000; }
.age-box:nth-child(3) { background: #fff3f3; color: #bd3042; }
.age-box.selected { outline: 2px solid currentColor; outline-offset: -2px; }
.age-box strong { display: block; font-size: 24px; line-height: 1.15; }
.age-box span { display: block; margin-top: 5px; font-size: 10px; font-weight: 750; }
.section-title { margin: 28px 2px 13px; font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.sort-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px 2px; }
.sort-label { color: #728398; font-size: 11px; font-weight: 700; margin-right: 2px; }
.pill-button { padding: 6px 11px; border: 1px solid #c9d7e5; border-radius: 100px; background: #fff; color: #45647f; font-size: 12px; font-weight: 750; }
.pill-button.active { color: #115d9f; border-color: #1b67ab; background: #ecf5ff; }
.search { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #cbd8e6; border-radius: 11px; background: #fff; color: #17324d; font-size: 13px; }
.search::placeholder { color: #9aabba; }
.quote-list { display: grid; gap: 11px; margin-top: 16px; }
.quote-card { width: 100%; display: grid; grid-template-columns: 48px 1fr auto; column-gap: 12px; align-items: center; padding: 15px 13px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; color: inherit; text-align: left; box-shadow: 0 4px 12px #0d294714; }
.quote-card:hover { border-color: #a5c4e2; transform: translateY(-1px); }
.quote-icon { width: 48px; height: 54px; display: grid; place-items: center; border-radius: 13px; background: #edf4ff; color: #1768b4; }
.quote-icon.attention { background: #fff4df; color: #d58100; }
.quote-icon.critical { background: #fff0f0; color: #cf2c3c; }
.quote-icon svg { width: 26px; height: 26px; }
.quote-number { color: #60748a; font-size: 12px; font-weight: 650; }
.quote-customer { display: block; margin: 2px 0 7px; font-size: 16px; font-weight: 790; letter-spacing: -.035em; line-height: 1.25; }
.urgency { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 100px; background: #eaf2ff; color: #1b64af; font-size: 10px; font-weight: 780; }
.urgency.attention { background: #fff4dd; color: #a96500; }
.urgency.critical { background: #ffe9e9; color: #ba2436; }
.urgency::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.quote-side { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; white-space: nowrap; }
.quote-amount { color: #102d52; font-size: 15px; font-weight: 820; letter-spacing: -.03em; }
.quote-wait { color: #7b8a9a; font-size: 11px; }
.quote-arrow { color: #1766ae; font-size: 25px; line-height: .7; }
.quote-meta { grid-column: 1 / -1; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin: 12px 0 0 2px; color: #728497; font-size: 10px; }
.meta-tag { padding: 5px 7px; border-radius: 100px; background: #f1f5fa; color: #39516b; font-weight: 700; }

.back-row { width: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: #1262a6; display: flex; align-items: center; gap: 7px; text-align: left; font-size: 13px; font-weight: 750; }
.back-row svg { width: 18px; height: 18px; }
.review-heading { margin-top: 21px; font-size: 28px; }
.review-scroll { padding-top: 14px; padding-bottom: 20px; }
.accordion { margin-bottom: 11px; border: 1px solid #e0e7f0; border-radius: 17px; background: #fff; overflow: hidden; box-shadow: 0 3px 11px #153f6910; }
.accordion-toggle { width: 100%; min-height: 54px; padding: 15px 16px; border: 0; display: flex; align-items: center; justify-content: space-between; gap: 9px; background: transparent; color: #123353; text-align: left; font-size: 16px; font-weight: 780; }
.accordion-body { padding: 0 16px 17px; border-top: 1px solid #e9eef4; }
.review-number { color: #1263a7; font-size: 14px; font-weight: 800; }
.review-customer { margin: 7px 0 4px; font-size: 22px; font-weight: 820; letter-spacing: -.04em; }
.muted { color: #73869a; }
.small { font-size: 11px; line-height: 1.5; }
.review-intro { padding-top: 16px; }
.divider { height: 1px; margin: 16px 0; background: #e5ebf1; }
.subhead { margin: 13px 0 10px; font-size: 13px; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.metric { min-height: 68px; padding: 9px; border-radius: 11px; background: #edf5fd; }
.metric span { color: #6d8196; font-size: 10px; }
.metric strong { display: block; margin-top: 5px; font-size: 14px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.reason-card { padding: 12px; border: 2px solid #1764a6; border-radius: 11px; background: #eef6ff; }
.reason-card strong { display: block; font-size: 13px; }
.reason-card small { color: #1764a6; font-weight: 780; }
.details-list { display: grid; gap: 9px; margin: 0; }
.details-list div { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.details-list dt { color: #71869a; }
.details-list dd { margin: 0; color: #233d58; font-weight: 700; text-align: right; }
.line-card { padding: 13px 0; border-bottom: 1px solid #e8edf3; }
.line-card:last-child { border-bottom: 0; padding-bottom: 0; }
.line-top { display: flex; justify-content: space-between; gap: 9px; }
.line-top strong { font-size: 13px; }
.line-top span { color: #153a60; font-size: 12px; font-weight: 800; white-space: nowrap; }
.line-card p { margin: 5px 0 0; color: #73869a; font-size: 11px; }
.activity-item { padding: 12px 0; border-bottom: 1px solid #e8edf3; }
.activity-item:last-child { border: 0; }
.activity-item strong { font-size: 12px; }
.activity-item p { margin: 4px 0 0; font-size: 11px; color: #74869a; }
.action-footer { flex: 0 0 auto; padding: 12px 17px 16px; border-top: 1px solid #dce5ef; background: #fff; box-shadow: 0 -6px 20px #102a4910; }
.decision-label { margin: 0 0 9px; font-size: 11px; font-weight: 800; color: #135e9f; }
.comment-box { width: 100%; height: 48px; resize: vertical; min-height: 48px; max-height: 95px; padding: 10px; border: 1px solid #c8d6e4; border-radius: 10px; background: #fafcff; color: #17324d; font-size: 12px; }
.action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.action-button { min-height: 42px; border-radius: 10px; font-size: 13px; font-weight: 800; }
.action-button.approve { border: 1px solid #138244; background: #138244; color: #fff; }
.action-button.reject { border: 1px solid #b83542; background: #fff; color: #b12a37; }
.message { padding: 12px; border-radius: 11px; background: #eaf7ef; color: #14613d; font-size: 12px; line-height: 1.4; font-weight: 700; }
.message.error { background: #fff1f1; color: #b52c3b; }
.empty-state { padding: 24px 16px; border: 1px dashed #cbd8e5; border-radius: 15px; background: #fff; color: #697f93; text-align: center; font-size: 13px; line-height: 1.5; }
.empty-state strong { display: block; color: #173653; font-size: 16px; margin-bottom: 3px; }
.history-card { margin: 13px 0; padding: 16px; border: 1px solid #e1e8f0; border-radius: 15px; background: #fff; box-shadow: 0 3px 11px #153f6910; }
.history-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.history-top strong { color: #145fa2; font-size: 15px; }
.history-top small { display: block; margin-top: 4px; color: #7c8fa1; }
.decision-badge { padding: 5px 8px; border-radius: 50px; background: #e2f8e9; color: #137343; font-size: 10px; font-weight: 800; }
.decision-badge.rejected { background: #ffe9eb; color: #ab2b3a; }
.history-card h3 { margin: 14px 0 3px; color: #71869a; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.history-card p { margin: 0; font-size: 12px; line-height: 1.45; }
.settings-card { margin-top: 20px; padding: 18px; border: 1px solid #e0e8f0; border-radius: 16px; background: #fff; }
.settings-card h2 { margin: 0 0 13px; font-size: 16px; }
.settings-card p { color: #5d7286; font-size: 12px; line-height: 1.55; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid #e9eef3; font-size: 12px; }
.settings-row span { color: #74889b; }
.settings-row strong { text-align: right; }
.secondary-button { width: 100%; min-height: 42px; margin-top: 15px; border: 1px solid #bed0e0; border-radius: 10px; background: #fff; color: #145f9f; font-size: 12px; font-weight: 800; }
.demo-disclaimer { margin: 19px 3px; color: #7f90a1; font-size: 10px; line-height: 1.5; text-align: center; }
.modal-backdrop { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 22px; background: #14284291; }
.modal { width: 100%; max-width: 355px; padding: 20px; border-radius: 18px; background: #fff; box-shadow: 0 20px 48px #001c3660; }
.modal h2 { margin: 0 0 8px; font-size: 19px; }
.modal p { margin: 0 0 17px; color: #63798c; font-size: 12px; line-height: 1.5; }
.modal-buttons { display: flex; gap: 9px; }
.modal-buttons button { flex: 1; min-height: 40px; border-radius: 9px; font-size: 12px; font-weight: 800; }
.cancel-button { border: 1px solid #cbd8e4; background: #fff; color: #34536d; }
.confirm-button { border: 1px solid #1769ad; background: #1769ad; color: #fff; }
.confirm-button.rejected { border-color: #bd3040; background: #bd3040; }

@media (max-width: 850px) { .demo-stage { gap: 25px; } .demo-intro { width: 30vw; } }
@media (max-width: 700px) {
  .demo-stage { display: block; padding: 0; }
  .demo-intro { display: none; }
  .phone-frame { width: 100%; height: 100dvh; min-height: 520px; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .phone-screen { border-radius: 0; }
  .screen-top { padding-top: max(23px, env(safe-area-inset-top)); }
}
@media (max-width: 370px) {
  .quote-card { grid-template-columns: 40px 1fr auto; column-gap: 9px; padding: 12px 9px; }
  .quote-icon { width: 40px; height: 48px; }
  .quote-amount { font-size: 13px; }
  .quote-customer { font-size: 14px; }
  .scroll-area { padding-left: 15px; padding-right: 15px; }
}
