@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #ffffff;
  --silver: #f3f5f6;
  --ink: #121d23;
  --muted: #53616c;
  --line: #e0e5e8;
  --orange: #af3c1b;
  --mandarin: #ce562d;
  --orange-soft: #f8e5dc;
  --danger: #a94734;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Manrope", var(--font);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; appearance: none; -webkit-appearance: none; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button, input, select, textarea { border-radius: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h1 { font: 700 38px/1.08 var(--display); letter-spacing: -1px; }
h2 { font: 700 22px/1.15 var(--display); letter-spacing: -.25px; }
h3 { font-size: 15px; font-weight: 650; }
svg { display: block; flex-shrink: 0; }
button svg, .icon, .primary-nav svg, .utility-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--mandarin); outline-offset: 4px; }
#contenu:focus { outline: none; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 100; padding: 12px 18px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.app-shell, .workspace, #contenu, #app { min-width: 0; }
.sidebar .brand, .sidebar-foot { display: none; }
.primary-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 18px calc(8px + env(safe-area-inset-bottom)); background: rgba(252,252,250,.95); backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.primary-nav a { display: flex; min-height: 48px; align-items: center; flex-direction: column; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 550; border-radius: 10px; transition: color 140ms, background 140ms; }
.primary-nav a[aria-current="page"] { color: var(--orange); }
.primary-nav a[aria-current="page"] svg { stroke-width: 2; }
.primary-nav a:hover { background: var(--silver); }
body.detail-view .primary-nav { display: none; }
.workspace { padding: 0 22px 98px; }
.mobile-masthead { display: flex; align-items: center; justify-content: space-between; min-height: 57px; gap: 12px; }
.mobile-masthead > a:first-child { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; letter-spacing: -.25px; }
.mobile-masthead svg { width: 23px; height: 26px; color: var(--mandarin); }
.demo-badge, .neutral-badge { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 11px; font-weight: 550; line-height: 1.5; white-space: nowrap; }
.demo-badge:hover { color: var(--ink); border-color: var(--ink); }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 9px 0 23px; }
.page-header .subtitle { margin-top: 7px; color: var(--muted); font-size: 13px; }
.header-actions { display: flex; gap: 8px; padding-top: 2px; }
.icon-button { display: inline-flex; flex-shrink: 0; justify-content: center; align-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; transition: background 140ms, border-color 140ms; }
.icon-button:hover { background: var(--surface); border-color: #adb2af; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.visit-summary { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border: 0; border-radius: 13px; background: var(--silver); text-align: left; transition: background 160ms; }
.visit-summary:hover { background: #e1e4e3; }
.visit-summary > div > span { display: block; color: #535b5f; font-size: 12px; }
.visit-summary strong { display: block; margin-top: 2px; font-size: 15px; font-weight: 650; }
.visit-summary > svg { width: 18px; }
.project-filters { display: flex; gap: 10px; margin: 19px -22px 15px; padding: 9px 22px 9px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.project-filter { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0 0 52px; min-width: 0; padding: 2px; background: transparent; border: 0; border-radius: 10px; color: var(--muted); }
.project-filter .project-logo, .all-projects { width: 43px; height: 43px; border-radius: 12px; transition: transform 160ms, box-shadow 160ms; }
.all-projects { display: grid; place-items: center; background: #e3e5e2; color: var(--ink); }
.all-projects svg { width: 23px; height: 23px; }
.project-filter > span:last-child { width: 100%; font-size: 10px; line-height: 1.5; text-align: center; white-space: nowrap; }
.project-filter[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.project-filter[aria-pressed="true"] .project-logo, .project-filter[aria-pressed="true"] .all-projects { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--mandarin); }
.project-filter:hover .project-logo, .project-filter:hover .all-projects { transform: translateY(-2px); }
.project-logo { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; overflow: hidden; }
.project-logo svg { width: 100%; height: 100%; fill: none; stroke: none; stroke-width: 0; }
.project-logo.large { width: 78px; height: 78px; border-radius: 21px; }
.project-logo.medium { width: 60px; height: 60px; border-radius: 16px; }
.activity-controls { display: flex; gap: 8px; margin: 0 0 22px; }
.content-columns { display: grid; min-width: 0; gap: 34px; }
.content-columns > * { min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 13px; }
.section-heading h2 { font-size: 18px; }
.section-heading > span, .section-heading > a { color: var(--muted); font-size: 12px; }
.feed-section + .feed-section { margin-top: 26px; }
.feature-sale { position: relative; display: block; padding: 21px 19px 17px; background: var(--surface); border: 1px solid #e2e4e0; border-radius: 16px; box-shadow: 0 5px 18px rgba(25,30,26,.025); transition: border-color 150ms, box-shadow 150ms; }
.feature-sale:hover { border-color: #c6c9c4; box-shadow: 0 7px 22px rgba(25,30,26,.05); }
.feature-top { display: flex; align-items: center; gap: 13px; }
.feature-top .project-logo { width: 52px; height: 52px; border-radius: 14px; }
.feature-title { min-width: 0; padding-right: 21px; }
.feature-title strong { display: block; font-size: 16px; font-weight: 700; }
.feature-title .product-description { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
.event-tag { display: inline-block; margin-top: 6px; color: #674b3d; font-size: 10px; line-height: 1.4; font-weight: 550; }
.event-tag.first { padding: 3px 8px; border-radius: 5px; background: var(--orange-soft); color: #a33b1b; }
.event-tag.returning, .event-tag.renewal { color: var(--muted); }
.event-tag.refund { color: var(--danger); }
.sale-glint { position: absolute; width: 32px; height: 32px; top: 12px; right: 11px; fill: none; stroke: var(--mandarin); stroke-width: 3; stroke-linecap: round; }
.feature-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-left: 65px; }
.amount { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: -1.3px; }
.feature-amount { display: block; font: 700 35px/1.1 var(--display); }
.currency-code { color: var(--muted); font: 550 11px/1.5 var(--font); letter-spacing: .04em; white-space: nowrap; }
.amount-caption { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.feature-bottom .icon { width: 18px; height: 18px; }
.event-list { padding: 0; margin: 0; list-style: none; }
.event-row { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 80px; padding: 13px 0; border-bottom: 1px solid var(--line); transition: background 140ms; }
.event-list li:last-child .event-row { border-bottom: 0; }
.event-row:hover { background: rgba(255,255,255,.45); }
.event-copy { flex: 1; min-width: 0; }
.event-copy strong { display: block; font-size: 13px; font-weight: 650; }
.event-copy > small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.event-copy .event-tag { display: block; margin-top: 3px; font-size: 10px; }
.event-copy .event-tag.first { display: inline-block; }
.event-right { flex: 0 0 auto; text-align: right; }
.row-amount { display: block; font: 700 18px/1.2 var(--display); letter-spacing: -.3px; }
.row-amount.refund { color: var(--danger); }
.event-right small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.quiet-list .event-row { min-height: 72px; }
.quiet-list .project-logo { width: 40px; height: 40px; border-radius: 10px; }
.quiet-list .event-right { display: flex; align-items: center; gap: 12px; }
.quiet-list .event-right .icon { width: 16px; height: 16px; }
.quiet-list .event-right small { margin-top: 0; }
.demo-footnote { margin-top: 25px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.context-panel { display: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-weight: 600; font-size: 12px; min-height: 44px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 47px; padding: 12px 19px; border: 1px solid var(--ink); border-radius: 11px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 600; transition: background 140ms, transform 140ms; }
.button:hover { background: #3e4447; }
.button:active { transform: scale(.985); }
.button.secondary { background: transparent; color: var(--ink); border-color: #c5c9c5; }
.button.secondary:hover { background: var(--silver); }
.button.wide { width: 100%; }
.button svg { width: 18px; height: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 12px; font-weight: 550; color: #535c60; }
.back-link .icon { width: 18px; height: 18px; }
.detail-topbar { display: flex; align-items: center; justify-content: space-between; margin: 2px -5px 25px; gap: 12px; }
.detail-topbar .eyebrow { font-size: 10px; letter-spacing: .06em; }
.detail-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.detail-hero h1 { font-size: 31px; margin-top: 18px; letter-spacing: -.65px; }
.detail-hero > p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.detail-hero .event-tag { font-size: 11px; margin-top: 12px; }
.detail-amount { display: block; font: 700 61px/1.05 var(--display); margin-top: 14px; letter-spacing: -2px; }
.detail-hero .amount-caption { margin-top: 5px; font-size: 12px; }
.confirmed { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; font-size: 11px; color: var(--orange); }
.confirmed .icon { width: 16px; height: 16px; }
.detail-layout { display: grid; gap: 30px; }
.detail-info { min-width: 0; }
.milestone { display: flex; align-items: center; gap: 13px; padding: 15px 16px; margin-top: 25px; background: var(--silver); border-radius: 11px; text-align: left; width: 100%; }
.milestone svg { width: 28px; height: 28px; color: #e5a734; fill: currentColor; stroke: none; }
.milestone strong { display: block; font: 700 16px/1.3 var(--display); }
.milestone small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.facts { margin: 0; }
.fact-row { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 10px 0; font-size: 12px; }
.fact-row dt { color: var(--muted); }
.fact-row dd { margin: 0; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fact-row.total { margin-top: 4px; padding: 15px 0; border-top: 1px solid #b9bfbd; border-bottom: 1px solid var(--line); font-size: 15px; }
.fact-row.total dt, .fact-row.total dd { color: var(--ink); font-weight: 700; }
.fact-row.total + .fact-row { margin-top: 14px; }
.detail-info .button { margin-top: 27px; }
.detail-info .demo-footnote { text-align: center; margin-top: 11px; }
.client-context { display: flex; gap: 11px; align-items: center; margin: 20px 0 0; padding: 15px 0; border-top: 1px solid var(--line); }
.client-context .icon { width: 20px; color: var(--muted); }
.client-context strong { display: block; font-size: 12px; font-weight: 600; }
.client-context small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.briefing-controls { display: grid; gap: 13px; margin-bottom: 27px; }
.period-tabs { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #e9ebe7; }
.period-tabs button { flex: 1; min-width: 0; min-height: 44px; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; color: #656d6f; font-size: 12px; font-weight: 550; white-space: nowrap; }
.period-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px #2531220c; }
.briefing-controls > .custom-select { width: 100%; }
.brief-intro { margin: 0 0 28px; }
.brief-intro .eyebrow { margin-bottom: 9px; }
.brief-intro p:last-child { max-width: 600px; font-size: 17px; line-height: 1.6; letter-spacing: -.15px; }
.currency-grid { display: grid; gap: 16px; }
.currency-block { min-width: 0; padding: 23px 21px; border: 1px solid var(--line); background: var(--surface); border-radius: 15px; }
.currency-block .section-heading { margin: 0 0 21px; }
.currency-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; }
.currency-label .currency-mark { display: grid; place-items: center; width: 29px; height: 29px; background: var(--silver); border-radius: 50%; font-size: 15px; font-weight: 550; }
.currency-block .money-large { display: block; font: 700 39px/1.1 var(--display); letter-spacing: -1px; }
.currency-block .amount-caption { margin-bottom: 17px; }
.mini-facts { border-top: 1px solid var(--line); padding-top: 9px; margin: 0; }
.mini-facts .fact-row { padding: 7px 0; font-size: 11px; }
.expand-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 44px; padding: 10px 0 0; margin-top: 9px; border: 0; border-top: 1px solid var(--line); background: transparent; font-size: 11px; color: var(--muted); }
.expand-button svg { width: 17px; height: 17px; }
.expanded-body { padding-top: 10px; }
.brief-signups { margin: 40px 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-breakdown { margin-top: 33px; }
.project-stat-row { display: flex; gap: 12px; align-items: center; min-height: 78px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.project-stat-row:hover { background: #ffffff55; }
.project-stat-row .event-right { display: flex; flex-direction: column; gap: 3px; font-weight: 650; font-size: 13px; font-variant-numeric: tabular-nums; }
.briefing-footer { display: flex; gap: 15px; align-items: center; justify-content: space-between; margin-top: 27px; }
.briefing-footer .demo-footnote { margin: 0; }
.search-field { position: relative; display: block; margin-bottom: 20px; }
.search-field .icon { position: absolute; top: 13px; left: 13px; width: 19px; height: 19px; color: var(--muted); }
.search-field input { width: 100%; min-height: 47px; padding: 11px 16px 11px 41px; border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 11px; font-size: 13px; }
input::placeholder { color: var(--muted); }
.projects-list { display: grid; }
.project-card { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.project-card:hover { background: #ffffff55; }
.project-card .event-copy strong { font: 700 23px/1.2 var(--display); letter-spacing: -.3px; }
.project-card .event-copy small { font-size: 11px; }
.project-card .project-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.project-card .project-meta svg { width: 12px; height: 12px; }
.project-card > .icon { width: 18px; height: 18px; color: var(--muted); }
.project-hero { display: flex; align-items: center; gap: 17px; margin: 0 0 27px; }
.project-hero > div { min-width: 0; overflow-wrap: anywhere; }
.project-hero h1 { font-size: 35px; }
.project-hero p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.project-overview { padding: 23px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.project-overview .eyebrow { margin-bottom: 16px; }
.project-totals { display: flex; flex-wrap: wrap; gap: 20px 45px; }
.project-totals .amount { display: block; font: 700 33px/1.1 var(--display); letter-spacing: -.75px; }
.project-totals small { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; }
.project-source { display: flex; align-items: center; gap: 11px; border-top: 1px solid var(--line); padding: 15px 0; }
.project-source .source-symbol { width: 35px; height: 35px; }
.project-source > div { flex: 1; }
.project-source strong { font-size: 12px; font-weight: 600; }
.project-source small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.settings-section { margin: 28px 0 0; }
.settings-section h2 { margin-bottom: 7px; }
.settings-note { color: var(--muted); font-size: 12px; line-height: 1.7; }
.notice { display: flex; align-items: flex-start; gap: 11px; padding: 16px; border-radius: 11px; background: var(--silver); font-size: 12px; line-height: 1.7; color: #596266; }
.notice > .icon { width: 19px; height: 19px; margin-top: 1px; }
.notice strong { color: var(--ink); font-weight: 650; }
.setting-row { display: flex; align-items: center; gap: 17px; justify-content: space-between; min-height: 79px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.setting-text { flex: 1; min-width: 0; }
.setting-text strong, .setting-text label { display: block; font-size: 13px; font-weight: 600; }
.setting-text p { margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.switch { position: relative; flex: 0 0 auto; width: 44px; height: 26px; min-height: 44px; padding: 0; border: 0; border-radius: 20px; background: transparent; }
.switch::before { content: ""; position: absolute; top: 9px; left: 0; width: 44px; height: 26px; border-radius: 20px; background: #cbd0cc; transition: background 150ms; }
.switch::after { content: ""; position: absolute; top: 12px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #0000001a; transition: transform 150ms; }
.switch[aria-checked="true"]::before { background: var(--mandarin); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.switch:disabled { opacity: .45; cursor: default; }
.setting-row:has(.switch:disabled) .setting-text { opacity: .65; }
.schedule-fields { display: flex; gap: 15px; flex-wrap: wrap; padding: 17px 0; border-bottom: 1px solid var(--line); }
.schedule-fields label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 11px; flex: 1; min-width: 110px; }
input[type="time"] { min-height: 44px; width: 100%; border: 1px solid var(--line); border-radius: 9px; background: transparent; padding: 9px 11px; color: var(--ink); }
.schedule-fields.disabled { opacity: .5; }
.settings-links { margin-top: 31px; }
.settings-link { display: flex; align-items: center; gap: 12px; min-height: 68px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 13px; }
.settings-link > span { flex: 1; }
.settings-link small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; margin-top: 3px; }
.settings-link > .icon:last-child { width: 17px; }
.settings-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 30px; }
.settings-bottom .settings-note { font-size: 11px; }
.source-list { margin-top: 29px; }
.source-row { display: flex; align-items: center; gap: 13px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.source-row:hover { background: #ffffff55; }
.source-symbol { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; background: #e3e5e1; border-radius: 12px; }
.source-symbol svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.source-symbol.lemon { background: #f5eecb; color: #8b762c; }
.source-symbol.revenuecat { background: #f2e0da; color: #ab5136; }
.source-symbol.apple { background: #e1e4e6; color: #3c4348; }
.source-symbol.google { background: #e4e7dd; color: #566044; }
.source-symbol.signup { background: #e9e2f0; color: #756584; }
.source-row .event-copy strong { font-size: 14px; }
.source-row .event-copy small { font-size: 11px; }
.source-row > .icon { width: 18px; }
.setup-page { max-width: 700px; }
.setup-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.setup-hero .source-symbol { width: 64px; height: 64px; border-radius: 17px; }
.setup-hero h1 { font-size: 36px; }
.setup-hero p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.setup-steps { counter-reset: setup; list-style: none; padding: 0; margin: 22px 0; }
.setup-steps li { position: relative; padding: 19px 0 19px 41px; border-bottom: 1px solid var(--line); counter-increment: setup; }
.setup-steps li::before { content: counter(setup, decimal-leading-zero); position: absolute; left: 0; top: 21px; font: 550 12px/1.4 var(--font); color: var(--orange); }
.setup-steps strong { display: block; font-size: 13px; font-weight: 600; }
.setup-steps p { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 5px; }
.code-example { margin-top: 20px; padding: 17px; border: 1px solid var(--line); background: var(--surface); border-radius: 11px; font: 11px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.transaction-ticket { padding: 24px 21px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; max-width: 560px; }
.ticket-header { display: flex; gap: 12px; align-items: center; padding-bottom: 21px; margin-bottom: 15px; border-bottom: 1px dashed #c9ceca; }
.ticket-header strong { display: block; font-size: 14px; }
.ticket-header small { color: var(--muted); font-size: 11px; }
.transaction-ticket code { font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.transaction-ticket .button { margin-top: 22px; }
.empty-state { padding: 40px 20px; text-align: center; border: 1px dashed #c8ceca; border-radius: 14px; margin: 8px 0; }
.empty-state .icon { width: 30px; height: 30px; color: #929a95; margin: 0 auto 15px; }
.empty-state h2 { font-size: 24px; }
.empty-state p { max-width: 360px; margin: 10px auto 20px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.empty-state .button { font-size: 12px; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 15px); max-width: calc(100vw - 36px); width: max-content; padding: 12px 17px; border-radius: 10px; background: var(--ink); color: white; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity 140ms, transform 140ms; box-shadow: 0 6px 30px #23282b20; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.copy-dialog { width: min(520px, calc(100% - 30px)); padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); }
.copy-dialog::backdrop { background: #23282b55; backdrop-filter: blur(3px); }
.copy-dialog p { font-size: 12px; color: var(--muted); }
.copy-dialog textarea { width: 100%; min-height: 220px; padding: 13px; margin: 15px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--ink); }
.noscript-note { padding: 20px; }
.view-enter { animation: view-in 170ms ease-out both; }
@keyframes view-in { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 700px) {
  .workspace { padding-left: 36px; padding-right: 36px; }
  .mobile-masthead { min-height: 70px; }
  .page-header { margin-bottom: 28px; }
  h1 { font-size: 46px; }
  .project-filters { margin-left: 0; margin-right: 0; padding-left: 8px; padding-right: 8px; gap: 15px; }
  .feature-sale { padding: 25px; }
  .feature-bottom { padding-left: 65px; }
  .feature-amount { font-size: 43px; }
  .currency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .briefing-controls { display: flex; justify-content: space-between; gap: 20px; }
  .period-tabs { flex: 1; max-width: 440px; }
  .briefing-controls > .custom-select { width: 210px; }
  .projects-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 45px; align-items: start; padding: 25px 0; }
  .detail-hero { padding: 0 10px; }
  .detail-amount { font-size: 68px; }
  .detail-info { padding-top: 5px; }
  .detail-topbar { margin-bottom: 30px; }
  .settings-page { max-width: 730px; }
  .source-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 35px; }
  .project-view-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; }
  .project-view-layout .settings-section { margin-top: 0; }
}
@media (min-width: 1050px) {
  .app-shell { display: grid; grid-template-columns: 233px minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 30px 22px 22px; border-right: 1px solid var(--line); background: #edeeea; }
  .sidebar .brand { display: flex; gap: 9px; align-items: center; font-size: 17px; font-weight: 750; letter-spacing: -.6px; }
  .brand svg { width: 30px; height: 33px; color: var(--mandarin); }
  .primary-nav, body.detail-view .primary-nav { display: flex; position: static; flex-direction: column; gap: 6px; padding: 0; margin-top: 56px; border: 0; background: transparent; backdrop-filter: none; }
  .primary-nav a { flex-direction: row; justify-content: flex-start; gap: 13px; padding: 12px 15px; min-height: 48px; font-size: 13px; border-radius: 9px; }
  .primary-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 5px #242d2405; }
  .primary-nav a[aria-current="page"] svg { color: var(--mandarin); }
  .sidebar-foot { display: block; margin-top: auto; }
  .utility-link { display: flex; gap: 12px; align-items: center; min-height: 46px; padding: 10px 13px; color: #666e70; font-size: 12px; border-radius: 9px; }
  .utility-link:hover, .utility-link[aria-current="page"] { background: var(--silver); color: var(--ink); }
  .utility-link .small-count { margin-left: auto; padding: 1px 6px; border: 1px solid #ced3cc; border-radius: 4px; color: #7b817d; font-size: 10px; }
  .utility-link svg { width: 19px; height: 19px; }
  .demo-note { border-top: 1px solid var(--line); padding: 19px 12px 0; margin-top: 22px; }
  .demo-note strong { font-size: 11px; font-weight: 600; }
  .demo-dot { display: inline-block; width: 5px; height: 5px; margin: 0 6px 2px 0; background: var(--mandarin); border-radius: 50%; }
  .demo-note p { color: var(--muted); font-size: 10px; margin-top: 6px; line-height: 1.8; }
  .workspace { padding: 51px 48px 60px; max-width: 1390px; width: 100%; margin: 0 auto; }
  .mobile-masthead { display: none; }
  .page-header { margin-top: 0; margin-bottom: 29px; }
  h1 { font-size: 50px; letter-spacing: -1.35px; }
  .page-header .subtitle { font-size: 13px; margin-top: 10px; }
  .content-columns { grid-template-columns: minmax(0, 1fr) 260px; gap: 38px; }
  .visit-summary { padding: 16px 19px; }
  .visit-summary strong { font-size: 16px; }
  .project-filters { gap: 10px; margin-top: 24px; margin-bottom: 17px; }
  .project-filter { flex-basis: 50px; }
  .activity-controls { margin-bottom: 27px; }
  .feature-sale { padding: 25px 26px 23px; }
  .feature-top .project-logo { width: 62px; height: 62px; border-radius: 16px; }
  .feature-title strong { font-size: 19px; }
  .feature-top { gap: 16px; }
  .feature-bottom { padding-left: 78px; margin-top: 11px; }
  .feature-amount { font-size: 47px; }
  .feature-bottom .amount-caption { font-size: 12px; }
  .event-row { min-height: 86px; }
  .event-copy strong { font-size: 14px; }
  .event-copy > small { font-size: 12px; }
  .row-amount { font-size: 21px; }
  .context-panel { display: block; padding-left: 24px; border-left: 1px solid var(--line); align-self: start; margin-top: 5px; }
  .context-panel .eyebrow { margin-bottom: 23px; }
  .context-money { margin-bottom: 22px; }
  .context-money .amount { display: block; font: 700 31px/1.15 var(--display); letter-spacing: -.8px; }
  .context-money small { color: var(--muted); font-size: 11px; }
  .context-caption { color: var(--muted); font-size: 11px; margin: 0 0 26px; line-height: 1.7; }
  .context-signups { display: flex; gap: 25px; margin: 23px 0; padding: 21px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .context-signups strong { display: block; font: 650 27px/1.2 var(--display); }
  .context-signups > div > span { font-size: 10px; color: var(--muted); }
  .context-projects { display: flex; margin: 16px 0 20px; padding-left: 2px; }
  .context-projects .project-logo { width: 33px; height: 33px; border-radius: 9px; margin-left: -2px; box-shadow: 0 0 0 3px var(--paper); }
  .context-panel .context-note { margin-top: 29px; padding-top: 23px; border-top: 1px solid var(--line); }
  .context-note h3 { font: 700 20px/1.2 var(--display); }
  .context-note p { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 8px; }
  .detail-topbar { max-width: 920px; margin-top: -7px; }
  .detail-layout { gap: 65px; max-width: 920px; padding-top: 37px; }
  .detail-hero .project-logo.large { width: 108px; height: 108px; border-radius: 27px; }
  .detail-hero h1 { font-size: 40px; }
  .detail-amount { font-size: 80px; }
  .detail-info { padding-top: 26px; }
  .fact-row { padding: 13px 0; font-size: 13px; }
  .fact-row.total { font-size: 17px; }
  .milestone { max-width: 370px; margin-top: 29px; }
  .currency-grid { gap: 22px; }
  .currency-block { padding: 27px; }
  .currency-block .money-large { font-size: 48px; }
  .projects-list { column-gap: 52px; }
  .project-card { padding: 25px 0; }
  .search-field { max-width: 450px; margin-bottom: 14px; }
  .project-card .project-logo.medium { width: 65px; height: 65px; }
  .project-hero .project-logo.large { width: 88px; height: 88px; }
  .project-hero h1 { font-size: 46px; }
  .transaction-ticket { margin: 30px auto 0; padding: 30px; }
  .toast { bottom: 28px; }
}
@media (min-width: 1450px) {
  .workspace { padding-left: 68px; padding-right: 68px; }
  .content-columns { grid-template-columns: minmax(0,1fr) 295px; gap: 55px; }
  .project-filters { gap: 16px; }
  .context-panel { padding-left: 31px; }
}
@media (max-width: 359px) {
  .workspace { padding-left: 16px; padding-right: 16px; }
  .project-filters { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 34px; }
  .event-row { gap: 9px; }
  .event-copy > small { font-size: 10px; }
  .row-amount { font-size: 17px; }
  .feature-sale { padding-left: 15px; padding-right: 15px; }
  .briefing-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Contrast and typography: self-hosted Fontsource variable fonts. */
h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 750; letter-spacing: -1.3px; }
h2 { font-size: 21px; font-weight: 750; }
.feature-sale { background: var(--surface); border-color: #9daa9f; box-shadow: 0 3px 0 #b8c2b640; }
.feature-amount { font-size: clamp(32px, 5vw, 44px); font-weight: 700; letter-spacing: -1.5px; }
.detail-amount { font-size: clamp(36px, 6vw, 68px); max-width: 100%; overflow-wrap: anywhere; }
.money-large { overflow-wrap: anywhere; }
.event-copy, .feature-title, .setting-text, .setup-hero > div { min-width: 0; }
.detail-layout > section { min-width: 0; }
.detail-hero h1 { max-width: 100%; overflow-wrap: anywhere; }
.event-copy strong, .feature-title strong, .setup-hero h1, .fact-row dd { overflow-wrap: anywhere; }
.event-list { border-top: 1px solid var(--line); }
.event-copy > small, .event-right > small, .amount-caption, .context-signups > div > span, .demo-note p { font-size: 12px; }
.event-tag, .project-filter > span:last-child, .demo-footnote { font-size: 11px; }
.event-right .row-amount { font-weight: 650; }
.setting-row { border-color: var(--line); }
.switch, .switch[aria-checked="false"] { background: transparent; border-radius: 8px; }
.mode-picker { display: inline-flex; background: #cdd5cd; border: 1px solid #a9b6aa; border-radius: 9px; padding: 3px; flex-shrink: 0; }
.mode-picker button { border: 0; padding: 8px 14px; min-height: 38px; background: transparent; color: #37463b; font-size: 12px; font-weight: 600; border-radius: 6px; }
.mode-picker button[aria-pressed="true"] { background: var(--ink); color: white; box-shadow: 0 1px 4px #13221d20; }
.mode-status { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #37473e; }
.mode-status .icon { width: 14px; height: 14px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #277a45; flex-shrink: 0; }
.status-dot.error { background: var(--danger); }
.connection-form { display: grid; gap: 17px; margin-top: 18px; }
.connection-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 550; }
.connection-form input { min-width: 0; width: 100%; background: white; border: 1px solid #8a9b90; border-radius: 8px; padding: 12px; min-height: 46px; }
.connection-form input::placeholder { color: #607166; font-weight: 400; }
.connection-form .button { justify-self: start; }
.field-optional { color: var(--muted); font-size: 11px; font-weight: 400; }
.form-error { padding: 12px 16px; color: #8d2d1d; background: #ffede6; border: 1px solid #c87c66; border-radius: 8px; font-size: 13px; }
.source-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.source-actions .text-link { border: 0; background: transparent; padding: 10px 0; }
.mapping-list { margin-top: 18px; }
.mapping-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .75fr); align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mapping-row strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.mapping-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.agent-link { margin-top: 30px; }
.settings-note code, .notice code { font-size: 11px; overflow-wrap: anywhere; }
button:disabled { cursor: default; opacity: .55; }
@media (min-width: 1050px) {
  .sidebar { background: #16242c; border-right-color: #16242c; color: #f4f7f4; }
  .sidebar .brand { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: -.5px; }
  .sidebar .primary-nav a { color: #c8d4db; }
  .sidebar .primary-nav a:hover { background: #263942; }
  .sidebar .primary-nav a[aria-current="page"] { background: #fff; color: var(--ink); }
  .utility-link { color: #d2dce1; font-size: 13px; }
  .utility-link:hover, .utility-link[aria-current="page"] { background: #263942; color: white; }
  .utility-link .small-count { color: #eff4f6; border-color: #607782; }
  .demo-note p { color: #bacbd2; }
  .context-panel { border-left-color: #9aaba0; }
}
@media (max-width: 699px) {
  .mode-picker button { padding: 7px 9px; font-size: 11px; }
  .mode-status { font-size: 10px; max-width: 125px; }
  .mapping-row { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .currency-block .money-large { font-size: 38px; }
  .fact-row { gap: 14px; }
  .fact-row dd { max-width: 58%; }
}

/* Custom controls and motion share one neutral surface system. */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.slot-value { display: inline-block; vertical-align: baseline; max-width: 100%; }
.slot-visual { display: inline-flex; max-width: 100%; }
.slot-value .char-slot { letter-spacing: inherit; }
.slot-value .char-sizer { margin: 0; color: inherit; font: inherit; }
.slot-value .char-face { margin: 0; color: inherit; font: inherit; }
.custom-select { position: relative; min-width: 0; }
.select-trigger { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #c7d0d6; border-radius: 10px; background: white; color: var(--ink); text-align: left; font-size: 12px; transition: border-color 140ms, background 140ms; }
.select-trigger:hover, .select-trigger[aria-expanded="true"] { border-color: #82919c; background: #fafbfc; }
.select-trigger > .slot-value { min-width: 0; overflow: hidden; }
.select-trigger > .icon { width: 16px; height: 16px; color: var(--muted); transition: transform 140ms; }
.select-trigger[aria-expanded="true"] > .icon { transform: rotate(180deg); }
.select-menu { position: fixed; z-index: 100; padding: 5px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border: 1px solid #d4dce1; border-radius: 12px; background: white; box-shadow: 0 12px 36px #15252f18, 0 2px 6px #15252f0a; animation: menu-in 130ms ease-out; }
.select-option { display: flex; justify-content: space-between; align-items: center; gap: 15px; width: 100%; min-height: 44px; padding: 10px 11px; border: 0; border-radius: 7px; background: transparent; text-align: left; font-size: 13px; }
.select-option > span { overflow-wrap: anywhere; }
.select-option:hover, .select-option:focus { outline: none; background: #f0f3f5; }
.select-option[aria-selected="true"] { color: var(--orange); font-weight: 600; }
.selection-check { width: 17px; height: 17px; opacity: 0; }
.select-option[aria-selected="true"] .selection-check { opacity: 1; }
.activity-controls > .custom-select:first-child { flex: 1; }
.activity-controls > .custom-select:last-child { flex: 1.15; }
.period-tabs, .mode-picker { background: #f3f5f6; border-color: #dce2e6; }
.mode-picker button { color: var(--muted); }
.switch::before { background: #c1cbd2; box-shadow: inset 0 0 0 1px #a7b4be; }
.switch[aria-checked="true"]::before { box-shadow: none; }
.switch:hover::before { filter: brightness(.97); }
.switch:focus-visible { outline-offset: 2px; }
.settings-page { max-width: 930px; }
.settings-layout { display: grid; gap: 30px; }
.settings-tabs { display: flex; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.settings-tabs button { display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0; min-height: 46px; gap: 8px; padding: 10px 12px; border: 0; background: transparent; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 550; }
.settings-tabs button > .icon { width: 17px; height: 17px; }
.settings-tabs button:hover { background: #f6f7f8; }
.settings-tabs button[aria-selected="true"] { color: var(--ink); background: #f0f3f5; font-weight: 650; }
#settings-panel { min-width: 0; }
#settings-panel .settings-section { margin: 0 0 38px; }
#settings-panel .settings-section > h2 { font-size: 18px; margin-bottom: 14px; }
#settings-panel .setting-row { min-height: 94px; padding: 22px 0; border-color: #e8edf0; }
#settings-panel .setting-text strong { font-size: 14px; }
#settings-panel .setting-text p { font-size: 12px; margin-top: 5px; }
.delivery-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 15px; font-size: 11px; }
.delivery-note > .icon { width: 15px; height: 15px; margin-top: 2px; }
.event-choices { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 7px; }
.choice-chip { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 14px; border: 1px solid #d9e0e5; border-radius: 9px; background: white; font-size: 12px; color: var(--muted); }
.choice-chip:hover { border-color: #a9b7c1; }
.choice-chip[aria-checked="true"] { color: var(--ink); background: #f7f8f9; border-color: #aab6bf; }
.choice-check { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid #a7b4be; border-radius: 4px; background: white; }
.choice-check .icon { width: 12px; height: 12px; opacity: 0; stroke-width: 2.4; }
.choice-chip[aria-checked="true"] .choice-check { border-color: var(--ink); background: var(--ink); color: white; }
.choice-chip[aria-checked="true"] .choice-check .icon { opacity: 1; }
.schedule-fields { gap: 22px; padding: 22px 0 16px; border: 0; }
.time-field, .schedule-frequency { flex: 1; min-width: 135px; }
.time-field > span, .schedule-frequency > span { display: block; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.time-picker { display: flex; align-items: center; justify-content: space-between; max-width: 160px; gap: 3px; padding: 0 4px; border: 1px solid #c7d0d6; border-radius: 10px; }
.time-picker .custom-select { flex: 1; }
.time-picker .select-trigger { min-height: 46px; padding: 10px 8px; border: 0; font-variant-numeric: tabular-nums; gap: 4px; }
.time-picker .select-trigger .icon { width: 12px; }
.settings-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
#storage-status { display: flex; align-items: center; gap: 7px; font-size: 12px; }
#storage-status .icon { width: 15px; height: 15px; }
.reset-link { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.sources-page { max-width: 950px; }
.sources-intro { max-width: 500px; color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.connection-grid { display: grid; gap: 16px; }
.connection-card { display: flex; flex-direction: column; justify-content: space-between; gap: 34px; padding: 26px; border: 1px solid #dce3e7; border-radius: 16px; transition: background 150ms, border-color 150ms, transform 150ms; }
.connection-card:hover { border-color: #a4b2bd; background: #fcfcfd; transform: translateY(-2px); }
.connection-heading { display: flex; align-items: center; gap: 15px; }
.connection-heading > div { min-width: 0; }
.connection-heading h2 { font-size: 19px; letter-spacing: -.4px; }
.connection-heading p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.connection-heading .source-symbol { width: 52px; height: 52px; border-radius: 14px; }
.connection-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.connection-status { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.connection-status .status-dot { background: #7d8993; }
.connection-status.configured .status-dot { background: #277a45; }
.connection-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-size: 12px; font-weight: 600; white-space: nowrap; }
.connection-cta .icon { width: 16px; height: 16px; }
.registration-connection { display: flex; align-items: center; gap: 15px; margin-top: 18px; padding: 23px 4px; border-bottom: 1px solid var(--line); }
.registration-connection > div { flex: 1; min-width: 0; }
.registration-connection h2 { font-size: 17px; }
.registration-connection p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.registration-connection:hover .connection-cta { text-decoration: underline; }
.source-privacy { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; margin-top: 19px; }
.source-privacy > .icon { width: 15px; height: 15px; }
.agent-shortcut { display: flex; align-items: center; gap: 16px; margin-top: 38px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.agent-shortcut > span { flex: 1; }
.agent-shortcut strong { display: block; font-size: 14px; font-weight: 600; }
.agent-shortcut small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.agent-shortcut:hover > .icon:last-child { transform: translateX(3px); }
.data-settings { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 34px; }
.data-settings h2 { font-size: 14px; font-family: var(--font); letter-spacing: 0; font-weight: 600; }
.data-settings p { margin-top: 5px; font-size: 12px; color: var(--muted); }
.agents-page { max-width: 740px; }
.agent-connection { display: flex; align-items: center; gap: 15px; padding: 18px 0 26px; border-bottom: 1px solid var(--line); }
.agent-connection > div { flex: 1; min-width: 0; }
.agent-connection strong { font-size: 15px; }
.agent-connection p { margin-top: 5px; font-size: 12px; color: var(--muted); }
.agent-mark { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 13px; background: #f1f3f5; }
.agent-requests { margin-top: 34px; }
.agent-requests h2 { font-size: 18px; }
.agent-requests > p { margin-top: 7px; margin-bottom: 16px; color: var(--muted); font-size: 12px; }
.agent-request { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 90px; padding: 20px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; font-size: 15px; line-height: 1.6; }
.agent-request > span:first-child { max-width: 410px; }
.agent-request:hover { background: #fafbfc; }
.agent-copy { display: flex; align-items: center; gap: 7px; flex-shrink: 0; color: var(--orange); font-size: 11px; }
.agent-copy > .icon { width: 16px; height: 16px; }
.agent-scope-note { display: flex; gap: 8px; align-items: center; margin-top: 24px; color: var(--muted); font-size: 12px; }
.agent-scope-note > .icon { width: 17px; height: 17px; }
.agent-advanced { margin-top: 36px; }
.agent-advanced .expand-button { padding: 16px 0; min-height: 56px; font-size: 13px; }
#agent-details { padding: 16px 0; }
#agent-details .text-link { margin: 18px 0; }
.revenue-chart { margin: 34px 0 38px; padding: 26px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.chart-total { display: block; margin-top: 9px; font: 700 clamp(30px, 4vw, 42px)/1.2 var(--display); letter-spacing: -1.3px; }
.chart-total .currency-code { margin-left: 5px; }
.chart-caption { color: var(--muted); font-size: 12px; margin-top: 5px; }
.chart-currencies { display: flex; gap: 3px; padding: 3px; border: 1px solid #dde3e7; border-radius: 9px; }
.chart-currencies button { min-height: 38px; padding: 5px 11px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 600; }
.chart-currencies button[aria-pressed="true"] { background: var(--ink); color: white; }
.chart-plot { position: relative; width: 100%; height: 245px; margin-top: 20px; border-radius: 8px; cursor: crosshair; touch-action: pan-y; }
.chart-svg { width: 100%; height: 100%; overflow: visible; }
.chart-gridline { stroke: #e8edf0; stroke-width: 1; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.chart-axis { fill: #64727c; font: 11px var(--font); }
.chart-line { fill: none; stroke: var(--mandarin); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-dot { fill: white; stroke: var(--mandarin); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-guide { stroke: #a3afb7; stroke-width: 1; stroke-dasharray: 3 5; }
.chart-highlight { fill: var(--mandarin); stroke: white; stroke-width: 3; }
.chart-bottom { display: flex; justify-content: space-between; padding: 0 3.3%; color: var(--muted); font-size: 11px; }
.chart-inspect { min-height: 30px; margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 11px; }
.chart-inspect .slot-visual { flex-wrap: wrap; justify-content: center; white-space: normal; }
.chart-unavailable { padding: 45px 0 30px; color: var(--muted); font-size: 13px; }
.brief-signups .section-heading { margin-bottom: 25px; }
.brief-signups h2 { font-size: 21px; }
.brief-signups .settings-note { margin-top: 7px; }
.signup-total { font: 700 32px/1.2 var(--display); }
.signup-breakdown { display: grid; gap: 25px; }
.signup-heading { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.signup-heading > .icon { width: 17px; height: 17px; color: var(--muted); }
.signup-heading > span { flex: 1; }
.signup-heading > strong { font: 650 22px/1.2 var(--display); }
.signup-track { height: 5px; width: 100%; margin: 13px 0 10px; background: #edf1f3; border-radius: 6px; overflow: hidden; }
.signup-track > span { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width 180ms; }
.signup-track > .waitlist { background: var(--mandarin); }
.signup-metric > p { font-size: 11px; color: var(--muted); }
.modal-open { overflow: hidden; }
.modal-layer { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: #14222d55; backdrop-filter: blur(3px); }
.project-dialog { width: min(480px, 100%); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px; border-radius: 18px; background: white; box-shadow: 0 22px 80px #101e2a24; animation: menu-in 160ms ease-out; }
.project-dialog .section-heading h2 { font-size: 24px; }
.project-dialog .icon-button { width: 38px; height: 38px; border: 0; }
.project-dialog > p { color: var(--muted); font-size: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.project-dialog .form-error { font-size: 12px; }
.add-project-button { min-height: 44px; font-size: 12px; white-space: nowrap; }
.add-project-button .icon { width: 18px; height: 18px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 700px) {
  .activity-controls > .custom-select { flex: 0 1 auto; min-width: 175px; }
  .briefing-controls > .custom-select { width: 220px; }
  .connection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}
@media (min-width: 1050px) {
  .settings-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 50px; }
  .settings-tabs { flex-direction: column; align-self: start; border: 0; padding: 0; }
  .settings-tabs button { justify-content: flex-start; flex: none; }
}
@media (max-width: 519px) {
  .add-project-button { position: relative; width: 44px; height: 44px; padding: 0; border-radius: 12px; }
  .add-project-button > span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .settings-tabs { gap: 3px; }
  .settings-tabs button { padding: 10px 7px; gap: 5px; font-size: 11px; }
  .settings-tabs button > .icon { width: 15px; height: 15px; }
  .choice-chip { padding: 9px 11px; font-size: 11px; }
  .connection-card { padding: 23px 21px; gap: 28px; }
  .registration-connection { gap: 11px; }
  .registration-connection .connection-cta { font-size: 0; gap: 0; }
  .registration-connection .connection-cta > .icon { width: 20px; height: 20px; }
  .agent-request { font-size: 14px; gap: 15px; }
  .agent-copy > .icon { display: none; }
  .chart-plot { height: 195px; }
  .chart-axis { font-size: 15px; }
  .chart-inspect { font-size: 10px; }
  .project-dialog { padding: 22px; }
}

.chart-axis-labels { position: absolute; inset: 0; pointer-events: none; }
.chart-axis-labels > span { position: absolute; left: 3.3%; padding: 0 8px 0 0; background: #ffffffde; color: var(--muted); font-size: 11px; }
.page-header > div:first-child { min-width: 0; }
.page-header .subtitle .slot-visual { flex-wrap: wrap; white-space: normal; }

/* Private cloud entry, designed alongside the dashboard. */
.auth-view .sidebar, .auth-view .mobile-masthead, .auth-view .mobile-nav { display:none; }
.auth-view .app-shell { display:block; }
.auth-view .workspace { margin:0; width:100%; }
.auth-view main { max-width:none; padding:0; margin:0; }
.auth-page { min-height:100svh; max-width:1200px; margin:auto; padding:44px 64px 24px; display:flex; flex-direction:column; }
.auth-brand { display:inline-flex; width:max-content; align-items:center; gap:10px; font-size:16px; font-weight:650; letter-spacing:-.5px; }
.auth-brand svg { color:var(--mandarin); width:30px; height:30px; }
.auth-layout { flex:1; display:grid; grid-template-columns:1.15fr 1fr; gap:100px; align-items:center; padding:68px 0; }
.auth-eyebrow { color:var(--orange); font-size:11px; letter-spacing:1.7px; font-weight:650; }
.auth-intro h1 { font-size:64px; line-height:1.04; letter-spacing:-2.8px; margin:20px 0; }
.auth-intro > p { max-width:350px; color:var(--muted); font-size:17px; line-height:1.65; }
.auth-art { width:330px; height:170px; position:relative; margin-top:36px; }
.auth-art-line { position:absolute; left:40px; right:42px; top:67px; height:1px; background:var(--line); transform:rotate(-9deg); }
.auth-project { position:absolute; display:flex; align-items:center; gap:9px; padding:9px 15px 9px 9px; border:1px solid var(--line); border-radius:14px; background:#fff; font-weight:550; box-shadow:0 8px 25px #12202a08; font-size:12px; }
.auth-project .project-logo { width:32px; height:32px; border-radius:9px; }
.auth-project-one { top:17px;left:0;transform:rotate(-7deg); }
.auth-project-two { right:0;top:4px;transform:rotate(5deg); }
.auth-project-three { bottom:0;left:87px;transform:rotate(-3deg); }
.auth-art-center { width:45px; height:45px; background:var(--orange-soft); border:6px solid #fff; box-sizing:content-box; border-radius:50%; color:var(--orange); position:absolute; top:49px;left:137px; display:grid;place-items:center; }
.auth-art-center .icon { width:23px;height:23px; }
.auth-intro > .auth-private-note { font-size:12px;display:flex;gap:7px;align-items:center;margin-top:24px; }
.auth-private-note .icon { width:16px;height:16px; }
.auth-card { border:1px solid var(--line); border-radius:22px; padding:36px; background:#fff; box-shadow:0 20px 80px #12202a05; }
.auth-lock { width:42px;height:42px;display:grid;place-items:center;background:var(--silver);border-radius:13px;margin-bottom:24px;color:var(--muted); }
.auth-card h2 { font-size:27px;letter-spacing:-.8px; }
.auth-card > p { margin:12px 0 28px;color:var(--muted);line-height:1.6; }
.auth-card label { font-size:13px;font-weight:600;display:block;margin-bottom:9px; }
.auth-password { position:relative; }
.auth-password input { width:100%; height:52px; padding:12px 52px 12px 15px; border:1px solid #ccd4d9; border-radius:11px; background:#fff; font-size:16px; }
.auth-password:focus-within input { border-color:var(--mandarin); }
.auth-password button { position:absolute;right:4px;top:4px;width:44px;height:44px;border:0;background:transparent;display:grid;place-items:center;color:var(--muted);border-radius:8px; }
.auth-password button:hover { background:var(--silver);color:var(--ink); }
.auth-error { min-height:23px;margin:8px 0 11px;font-size:12px;color:var(--danger); }
.auth-submit { width:100%;display:flex;justify-content:space-between;min-height:51px;border-radius:11px; }
.auth-help { margin-top:28px;padding-top:22px;border-top:1px solid var(--line); }
.auth-help span { font-size:12px;font-weight:550; }
.auth-help p { margin-top:6px; font-size:12px;line-height:1.7;color:var(--muted); }
.auth-footer { padding-top:20px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;font-size:11px;color:var(--muted); }
.cloud-logout { border:0;background:transparent;color:#bbc6cc;padding:12px 0 0;display:flex;gap:7px;align-items:center;cursor:pointer;font-size:11px; }
.cloud-logout:hover { color:#fff; }
.cloud-logout .icon { width:15px;height:15px; }
.agent-access { margin:34px 0; }
.agent-token-list { margin:18px 0; }
.agent-token { display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line); }
.agent-token strong { display:block;font-weight:600; }
.agent-token small { color:var(--muted);display:block;margin-top:3px; }
.agent-token-form { display:grid;grid-template-columns:1fr 1fr;gap:15px;padding-top:15px;align-items:end; }
.agent-token-form label { font-size:12px;color:var(--muted); }
.agent-token-form input { display:block;width:100%;border:1px solid var(--line);border-radius:9px;height:44px;padding:10px;margin-top:8px;background:#fff; }
.agent-token-form .button { grid-column:1/-1;justify-self:start; }
.new-agent-token { background:var(--silver);border-radius:12px;padding:20px;margin-top:20px; }
.new-agent-token p { font-size:12px;color:var(--muted);margin:7px 0; }
.new-agent-token code { display:block;overflow-wrap:anywhere;padding:12px;background:#fff;border:1px solid var(--line);border-radius:8px;margin:12px 0;font-size:12px; }
@media(max-width:950px) { .auth-page{padding:32px;} .auth-layout{gap:42px;} .auth-intro h1{font-size:52px;} .auth-art{width:280px;} .auth-card{padding:28px;} }
@media(max-width:650px) { .auth-page{padding:26px 22px 22px;} .auth-layout{display:block;padding:38px 0 34px;} .auth-intro h1{font-size:40px;letter-spacing:-1.5px;margin:14px 0;} .auth-intro h1 br{display:none;} .auth-intro>p{font-size:14px;max-width:100%;} .auth-art,.auth-private-note{display:none!important;} .auth-card{margin-top:32px;padding:26px 24px;border-radius:17px;box-shadow:none;} .auth-lock{margin-bottom:18px;} .auth-card h2{font-size:25px;} .auth-card>p{font-size:13px;margin:10px 0 23px;} .auth-footer{align-items:flex-start;} .auth-footer span:last-child{max-width:185px;text-align:right;} .agent-token-form{grid-template-columns:1fr;} }
