@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --font-ui: 'Manrope', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --brand: #ff7800;
  --brand-highlight: #ff9a24;
  --brand-pressed: #e85d00;
  --brand-ink: #130a03;
  --bg: #050505;
  --surface: #0b0b0b;
  --surface-2: #111111;
  --surface-3: #181818;
  --ink: #f7f7f5;
  --muted: #b8b2ac;
  --muted-strong: #d9d4cf;
  --line: #292929;
  --line-strong: #414141;
  --green: #36d47d;
  --green-soft: #0d2a1b;
  --green-border: #23784a;
  --red: #ff3657;
  --red-soft: #3d101a;
  --red-border: #ff4d69;
  --balance: #f7f7f5;
  --balance-soft: #171717;
  --balance-border: #3a3a3a;
  --blue: #60a5fa;
  --blue-soft: #12244a;
  --purple: var(--brand);
  --purple-bright: var(--brand-highlight);
  --purple-soft: #2b1708;
  --purple-deep: #1f0f04;
  --teal: #58d8c5;
  --teal-soft: #123633;
  --kpi-red: #ff2348;
  --shadow: 0 18px 42px rgba(0, 0, 0, .42);
  --shadow-soft: 0 9px 24px rgba(0, 0, 0, .3);
  --ring: 0 0 0 3px rgba(255, 120, 0, .24);
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.4;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
*::selection { background: rgba(255, 120, 0, .35); color: #fff; }
body { margin: 0; background: var(--bg); color: var(--ink); touch-action: pan-y; overscroll-behavior-x: none; }
.app-shell, .page-screen, .modal-backdrop { touch-action: pan-y; }
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.app-shell { max-width: 860px; margin: auto; padding: 28px 24px 112px; }
.app-shell main { width: min(100%, 700px); margin: 0 auto; }
.topbar, .date-row, .section-heading, .goal-footer, .quick-actions, .bottom-nav { display: flex; align-items: center; }
.topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: min(100%, 700px); margin: 0 auto; justify-content: space-between; align-items: center; gap: 24px; text-align: left; }
.topbar > .avatar { justify-self: end; }
.topbar > div:first-child { display: grid; justify-items: start; gap: 1px; }
.welcome-copy { min-width: 0; }
.topbar-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: rgba(20, 16, 25, .82); box-shadow: 0 10px 24px rgba(0, 0, 0, .16); }
.top-transactions { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: 12px; }
.top-action-symbol { font-size: 16px; line-height: 1; }
.eyebrow { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.topbar h1 { color: var(--ink); font-size: 28px; letter-spacing: -.05em; margin: 5px 0 0; }
.avatar { border: 0; border-radius: 50%; background: var(--purple); color: #fff; width: 42px; height: 42px; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 8px 20px rgba(139, 63, 209, .28); }
.date-row { width: min(100%, 700px); justify-content: center; gap: 8px; margin: 28px auto 10px; flex-wrap: wrap; }
.period-tabs { display: flex; align-items: center; gap: 8px; }
.period-chip, .calendar-button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 10px; padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.period-chip:hover, .calendar-button:hover { border-color: #554166; color: var(--ink); }
.period-chip.active { background: var(--purple); color: #fff; border-color: var(--purple); box-shadow: 0 7px 18px rgba(139, 63, 209, .22); }
.calendar-button { margin-left: 4px; padding: 9px 13px; font-size: 18px; line-height: 1; }
.period-control { display: grid; gap: 16px; width: 100%; margin: 20px auto 22px; }
.period-navigation { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: 100%; padding: 4px; border: 1px solid #2c3442; border-radius: 13px; background: #1b202b; }
.period-navigation .period-chip { min-width: 0; border: 0; border-radius: 9px; padding: 9px 7px; background: transparent; color: #657089; font-size: 13px; font-weight: 700; box-shadow: none; }
.period-navigation .period-chip:hover { color: var(--ink); }
.period-navigation .period-chip.active { background: var(--green); color: #07110b; border-color: transparent; box-shadow: 0 6px 14px rgba(54, 212, 125, .16); }
.period-date-navigation { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; width: 100%; }
.period-arrow { display: grid; place-items: center; width: 36px; height: 36px; justify-self: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted-strong); font-size: 30px; font-weight: 400; line-height: 1; cursor: pointer; }
.period-arrow:hover { background: var(--surface-2); color: var(--ink); }
.period-date-trigger { justify-self: center; border: 0; padding: 3px 8px; background: transparent; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; text-align: center; cursor: pointer; }
.period-date-trigger:hover { color: var(--purple-bright); }
.period-native-inputs { position: absolute; width: 1px; height: 1px; overflow: hidden; pointer-events: none; opacity: 0; }
.period-native-input { position: absolute; width: 1px; height: 1px; }

.financial-overview { position: relative; background: linear-gradient(145deg, rgba(28, 20, 37, .98), rgba(18, 14, 24, .98)); border: 1px solid #3b2b4a; border-radius: 22px; padding: 24px 22px 18px; box-shadow: var(--shadow); }
.financial-heading { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; text-align: left; }
.financial-heading > div { display: grid; justify-items: start; }
.financial-heading h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.045em; }
.financial-heading > span { position: static; border: 1px solid rgba(255, 255, 255, .08); border-radius: 99px; padding: 4px 9px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 11px; font-weight: 600; }
.financial-period-trigger { flex: 0 0 auto; min-width: 188px; }
.primary-financial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.primary-financial-card { position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; min-height: 154px; border: 1px solid var(--finance-border); border-radius: 16px; padding: 19px 17px; background: var(--finance-soft); color: var(--finance); text-align: center; }
.primary-financial-card::after { content: ''; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -35px; bottom: -42px; background: var(--finance); opacity: .16; }
.revenue-card { grid-column: 1 / -1; min-height: 214px; --finance: var(--green); --finance-soft: #102e20; --finance-border: var(--green-border); }
.expenses-card { --finance: var(--red); --finance-soft: #351a23; --finance-border: var(--red-border); }
.balance-card { --finance: var(--balance); --finance-soft: var(--balance-soft); --finance-border: var(--balance-border); }
.expenses-card, .balance-card { min-height: 164px; }
.balance-card.is-positive { --finance: var(--green); --finance-soft: #102e20; --finance-border: var(--green-border); }
.balance-card.is-negative { --finance: var(--red); --finance-soft: #351a23; --finance-border: var(--red-border); }
.financial-label { position: relative; z-index: 1; display: block; margin-top: 17px; color: var(--muted-strong); font-size: 12px; font-weight: 700; }
.primary-financial-card strong { position: relative; z-index: 1; display: block; margin-top: 4px; color: var(--finance); font-size: clamp(25px, 3vw, 32px); letter-spacing: -.06em; line-height: 1.05; white-space: nowrap; }
.revenue-card > strong { font-size: clamp(30px, 4vw, 38px); }
.primary-financial-card small { position: relative; z-index: 1; display: block; margin-top: 9px; color: var(--muted); font-size: 11px; }
.expenses-card small, .balance-card small { margin-top: auto; }
.primary-financial-card .financial-detail { margin-top: 4px; color: var(--purple-bright); font-size: 10px; }
.goal-inline { position: relative; z-index: 1; display: grid; gap: 6px; width: min(100%, 320px); margin: 16px auto 0; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; color: rgba(233, 229, 237, .7); font-size: 10px; text-align: left; }
.goal-inline-top, .goal-inline-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.goal-inline-top strong, .goal-inline-bottom strong { color: var(--ink); font-size: 11px; letter-spacing: -.02em; }
.goal-inline-bottom { color: rgba(233, 229, 237, .62); }
.goal-inline-bottom em { border-radius: 99px; background: rgba(54, 212, 125, .12); padding: 3px 6px; color: var(--green); font-size: 10px; font-style: normal; font-weight: 700; }
.goal-inline-track { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.goal-inline-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); box-shadow: 0 0 10px rgba(54, 212, 125, .34); transition: width .25s ease; }
.goal-inline.is-below-target .goal-inline-bottom em { background: rgba(255, 107, 112, .13); color: var(--red); }
.goal-inline.is-below-target .goal-inline-track span, .progress-track span.is-below-target { background: var(--red); box-shadow: 0 0 10px rgba(255, 107, 112, .3); }
.goal-inline.has-no-target .goal-inline-bottom em { background: rgba(255, 255, 255, .08); color: var(--muted); }
.progress-track span.is-achieved { background: var(--green); box-shadow: 0 0 14px rgba(54, 212, 125, .3); }
.financial-context { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 15px; color: var(--muted); font-size: 11px; font-weight: 600; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(54, 212, 125, .12); }
.context-rule { width: 1px; height: 12px; background: var(--line); margin-left: 4px; }

.secondary-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; margin: 14px 0; }
.secondary-metric { display: flex; align-items: center; gap: 11px; min-height: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.secondary-metric small { display: block; color: var(--muted); font-size: 11px; }
.secondary-metric strong { display: block; margin-top: 3px; color: var(--ink); font-size: 17px; letter-spacing: -.04em; }
.metric-icon { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 9px; font-size: 15px; font-weight: 700; }
.metric-icon.blue { background: var(--blue-soft); color: var(--blue); }
.metric-icon.purple { background: var(--purple-soft); color: var(--purple-bright); }
.metric-icon.teal { background: var(--teal-soft); color: var(--teal); }
.metric-icon.green { background: var(--green-soft); color: var(--green); }
.metric-icon.red { background: var(--red-soft); color: var(--red); }
.metric-icon.green + div strong { color: var(--green); }
.metric-icon.red + div strong { color: var(--red); }
.metric-icon.purple + div strong { color: var(--purple-bright); }

.profit-goal-card { position: relative; display: grid; gap: 4px; margin-top: 22px; overflow: hidden; border: 1px solid #3b2b4a; border-radius: 20px; padding: 20px 22px 17px; background: radial-gradient(circle at 50% 100%, rgba(139, 63, 209, .13), transparent 46%), linear-gradient(145deg, rgba(28, 20, 37, .98), rgba(18, 14, 24, .98)); box-shadow: var(--shadow); }
.profit-goal-card::after { content: ''; position: absolute; width: 155px; height: 155px; right: -92px; top: -84px; border-radius: 50%; background: var(--purple); opacity: .08; pointer-events: none; }
.profit-goal-card.is-positive { border-color: var(--green-border); background: radial-gradient(circle at 50% 100%, rgba(54, 212, 125, .13), transparent 46%), linear-gradient(145deg, rgba(19, 46, 32, .98), rgba(18, 14, 24, .98)); }
.profit-goal-card.is-negative { border-color: var(--red-border); background: radial-gradient(circle at 50% 100%, rgba(255, 107, 112, .12), transparent 46%), linear-gradient(145deg, rgba(55, 27, 35, .98), rgba(18, 14, 24, .98)); }
.profit-goal-heading { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.profit-goal-heading h2 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.045em; }
.profit-goal-period { border: 1px solid rgba(255, 255, 255, .09); border-radius: 99px; padding: 4px 9px; color: var(--muted); font-size: 10px; font-weight: 700; }
.profit-gauge { position: relative; width: min(100%, 330px); height: 166px; margin: 1px auto -3px; }
.profit-gauge svg { display: block; width: 100%; height: 166px; overflow: visible; }
.profit-gauge-track, .profit-gauge-progress { fill: none; stroke-width: 13; stroke-linecap: round; }
.profit-gauge-track { stroke: rgba(255, 255, 255, .1); }
.profit-gauge-progress { stroke: url(#profit-gauge-gradient); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s ease, stroke .25s ease; }
.profit-goal-card.is-negative .profit-gauge-progress { stroke: var(--red); }
.profit-goal-card.has-no-target .profit-gauge-progress { opacity: .35; }
.profit-gauge-center { position: absolute; left: 50%; top: 72px; display: grid; justify-items: center; gap: 2px; transform: translateX(-50%); text-align: center; }
.profit-gauge-center strong { color: var(--ink); font-size: clamp(28px, 5vw, 35px); letter-spacing: -.065em; line-height: 1; white-space: nowrap; }
.profit-gauge-center span { color: var(--muted-strong); font-size: 11px; font-weight: 700; }
.profit-gauge-center small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.profit-goal-footer { position: relative; z-index: 1; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.profit-goal-footer > span { min-width: 0; }
.profit-goal-footer > span:last-child { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.profit-goal-footer b { color: var(--ink); }
.profit-goal-card.is-negative .profit-goal-footer b { color: var(--red); }
.profit-goal-footer > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.profit-goal-configure { min-height: 0; padding: 2px 0; justify-self: end; font-size: 10px; line-height: 1.2; text-align: right; }
.profit-goal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(54, 212, 125, .12); }
.profit-goal-card.is-negative .profit-goal-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 107, 112, .12); }
.profit-goal-badge { border-radius: 99px; padding: 4px 7px; background: rgba(255, 255, 255, .06); color: var(--purple-bright); font-size: 9px; font-weight: 700; white-space: nowrap; }
.profit-goal-card.is-positive .profit-goal-badge { background: rgba(54, 212, 125, .12); color: var(--green); }
.profit-goal-card.is-negative .profit-goal-badge { background: rgba(255, 107, 112, .12); color: var(--red); }
.dashboard-chart-section { display: grid; gap: 10px; margin: 22px 0 6px; }
.dashboard-chart-section .section-heading { margin-bottom: 0; }
.dashboard-chart-section h2 { margin: 3px 0 0; font-size: 18px; letter-spacing: -.045em; }
.dashboard-chart-best { color: var(--green); font-size: 10px; font-weight: 700; text-align: right; }
.dashboard-revenue-chart-card { display: grid; gap: 12px; border: 1px solid #3b2b4a; border-radius: 16px; padding: 15px; background: linear-gradient(145deg, #1b1424, #13101a); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.dashboard-revenue-chart-plot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; min-height: 190px; padding: 13px 7px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 44px, rgba(255, 255, 255, .055) 45px); }
.dashboard-revenue-chart-plot.is-week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.dashboard-revenue-chart-plot.is-month { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.dashboard-revenue-chart-plot.is-year { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.dashboard-chart-column { display: grid; grid-template-rows: auto 142px auto; align-items: end; gap: 5px; min-width: 0; text-align: center; }
.dashboard-chart-bars { display: flex; align-items: end; justify-content: center; height: 142px; }
.dashboard-chart-bar { display: block; width: min(28px, 72%); min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--purple-bright); box-shadow: 0 0 10px rgba(169, 107, 234, .18); transition: height .25s ease, background .2s ease, box-shadow .2s ease; }
.dashboard-chart-bar.is-best { background: var(--green); box-shadow: 0 0 12px rgba(54, 212, 125, .28); }
.dashboard-chart-column-label { overflow: hidden; color: var(--muted-strong); font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-chart-column-value { overflow: hidden; align-self: end; color: var(--ink); font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-chart-empty { grid-column: 1 / -1; align-self: center; color: var(--muted); font-size: 12px; text-align: center; }
.dashboard-revenue-chart-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.dashboard-revenue-chart-footer > span { display: inline-flex; align-items: center; gap: 6px; }
.dashboard-revenue-chart-footer strong { color: var(--green); font-size: 13px; }
.settings-subheading { margin: 1px 0 -3px; color: var(--muted-strong); font-size: 11px; font-weight: 700; }
.profit-goal-subheading { margin-top: 5px; }

.goal-card, .ride-summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 17px; box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }
.activity-section { margin-top: 28px; }
.goal-card { margin-top: 12px; }
.section-heading { justify-content: space-between; }
.section-heading h2 { font-size: 19px; letter-spacing: -.04em; margin: 4px 0 0; }
.section-heading > span { font-size: 12px; color: var(--muted); }
.progress-track { height: 9px; background: #2c2534; border-radius: 99px; margin: 18px 0 8px; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .2s ease; box-shadow: 0 0 14px rgba(54, 212, 125, .3); }
.goal-footer { justify-content: space-between; font-size: 11px; color: var(--muted); }
.goal-footer span:first-child { color: var(--ink); font-weight: 700; }
.ride-summary-card { margin-top: 12px; }
.ride-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ride-counts div { background: var(--surface-2); border: 1px solid rgba(255, 255, 255, .035); border-radius: 10px; padding: 10px; }
.ride-counts strong { display: block; font-size: 20px; letter-spacing: -.04em; }
.ride-counts span { color: var(--muted); font-size: 11px; }
.small-action { padding: 8px 11px; font-size: 11px; }
.quick-actions { gap: 10px; margin: 22px 0 36px; }
.primary-action, .secondary-action { border-radius: 11px; padding: 13px 17px; font-weight: 700; font-size: 13px; cursor: pointer; }
.primary-action { border: 1px solid var(--purple); background: var(--purple); color: #fff; box-shadow: 0 8px 20px rgba(139, 63, 209, .26); }
.primary-action:hover { background: var(--purple-bright); border-color: var(--purple-bright); }
.secondary-action { border: 1px solid #5a2b84; background: var(--purple-soft); color: var(--purple-bright); }
.secondary-action:hover { background: #38204f; }
.primary-action span, .secondary-action span { font-size: 18px; vertical-align: -1px; margin-right: 4px; }
.compact { margin-bottom: 14px; }
.text-button { border: 0; background: none; color: var(--purple-bright); font-size: 12px; cursor: pointer; }
.text-button:hover { color: #d0adff; }
.activity-tools { display: inline-flex; align-items: center; gap: 12px; }
.activity-range-inputs { position: absolute; width: 1px; height: 1px; overflow: hidden; pointer-events: none; opacity: 0; }
.activity-tools .danger-text-button { color: var(--red); }
.activity-tools .danger-text-button:hover { color: #ffb0b5; }
.activity-count { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 600; }
.activity-day-group { display: grid; gap: 9px; }
.activity-day-group + .activity-day-group { margin-top: 15px; }
.activity-day-group h3 { margin: 0 2px 1px; color: var(--muted-strong); font-size: 11px; font-weight: 700; text-transform: capitalize; }
.activity-list { display: grid; gap: 9px; }
.activity-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; }
.activity-symbol { width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; }
.activity-item .description { flex: 1; min-width: 0; }
.activity-item strong { font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-item small { font-size: 11px; color: var(--muted); }
.activity-item .amount { font-size: 14px; font-weight: 700; white-space: nowrap; }
.activity-actions { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.activity-action { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-3); color: var(--muted); font-size: 13px; cursor: pointer; }
.activity-action:hover { border-color: var(--purple-bright); color: var(--ink); }
.activity-action.delete:hover { border-color: var(--red-border); color: var(--red); }
.activity-item.provisioned { border-style: dashed; border-color: rgba(169, 107, 234, .38); background: rgba(169, 107, 234, .06); }
.activity-item.provisioned .amount { color: var(--red); }
.activity-status { border: 1px solid rgba(169, 107, 234, .35); border-radius: 999px; padding: 4px 7px; color: var(--purple-bright); font-size: 9px; font-weight: 700; white-space: nowrap; }
.activity-edited { margin-left: 5px; color: var(--purple-bright); font-size: 9px; font-style: normal; }
.income .activity-symbol { background: var(--green-soft); color: var(--green); }
.expense .activity-symbol { background: var(--red-soft); color: var(--red); }
.income .amount { color: var(--green); }
.expense .amount { color: var(--red); }
.work-session .activity-symbol { background: rgba(255, 154, 36, .14); color: var(--brand-highlight); }
.work-session .amount { color: var(--brand-highlight); font-size: 12px; text-align: right; }
.work-session .description small { display: block; }

.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 700px); justify-content: space-around; gap: 4px; background: rgba(20, 16, 25, .94); border: 1px solid rgba(59, 43, 74, .7); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 10px 10px 9px; backdrop-filter: blur(16px); box-shadow: 0 -12px 30px rgba(0, 0, 0, .18); z-index: 4; }
.nav-item { border: 0; background: none; color: #847b8e; font-size: 11px; display: grid; gap: 4px; justify-items: center; cursor: pointer; }
.nav-item { flex: 1; min-width: 0; padding: 0 4px; text-align: center; }
.nav-item span { font-size: 17px; }
.nav-item.active { color: var(--purple-bright); font-weight: 700; }
.nav-launcher { position: relative; z-index: 1; gap: 2px; color: var(--green); font-weight: 700; }
.nav-launcher .launcher-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: -25px auto 0; border: 5px solid var(--bg); border-radius: 19px; background: var(--green); color: #07130b; font-size: 31px; line-height: 1; box-shadow: 0 8px 22px rgba(54, 212, 125, .3); transition: transform .2s ease, box-shadow .2s ease; }
.nav-launcher:hover .launcher-icon, .nav-launcher:focus-visible .launcher-icon { transform: translateY(-2px); box-shadow: 0 11px 27px rgba(54, 212, 125, .4); }
.nav-launcher.active { color: var(--green); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .74); display: grid; place-items: center; padding: 20px; z-index: 5; }
.page-screen { display: block; overflow-y: auto; padding: 0 20px 118px; background: var(--bg); z-index: 3; }
.page-screen > .modal { width: min(100%, 700px); min-height: calc(100vh - 118px); max-height: none; margin: 0 auto; overflow: visible; align-content: start; border: 0; border-radius: 0; padding: 30px 0 36px; background: transparent; box-shadow: none; }
.page-screen > .modal h2 { font-size: clamp(28px, 4vw, 36px); margin-top: 5px; }
.page-screen > .modal .modal-intro { max-width: 560px; font-size: 13px; }
.page-screen .planning-section { border-color: #3a2a1e; }
.profile-modal { gap: 18px; }
.profile-hero { display: grid; gap: 4px; max-width: 560px; }
#settings-modal.is-profile-detail .profile-hero { display: none; }
.profile-hero h2 { margin: 0; }
.profile-hero .modal-intro { margin-top: 4px; }
.profile-view { display: grid; gap: 12px; }
.profile-access-card { display: grid; gap: 12px; border: 1px solid #3a2a1e; border-radius: 18px; padding: 16px; background: linear-gradient(145deg, #24170d, #17120d); }
.profile-access-main { display: flex; align-items: center; gap: 12px; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; background: var(--purple); color: #fff; font-size: 18px; font-weight: 800; }
.profile-access-main > div { display: grid; gap: 3px; min-width: 0; }
.profile-access-main strong { font-size: 16px; }
.profile-access-main small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.profile-section-label { margin: 7px 2px 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.personal-section-label { margin-top: 17px; color: var(--purple-bright); }
.profile-data-label { margin-top: 13px; }
.profile-menu-list { display: grid; gap: 8px; }
.profile-menu-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.profile-menu-item:hover { border-color: var(--purple-bright); background: var(--surface-2); transform: translateY(-1px); }
.profile-placeholder-item, .profile-placeholder-item:hover { border-color: rgba(255, 255, 255, .07); background: var(--surface-2); cursor: default; transform: none; }
.profile-placeholder-item { opacity: .78; }
.profile-menu-item > span:nth-child(2), .profile-menu-item > span:first-child:not(.profile-menu-icon) { display: grid; gap: 3px; min-width: 0; }
.profile-menu-item strong { font-size: 13px; }
.profile-menu-item small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-item > span:last-child { color: var(--muted); font-size: 21px; line-height: 1; }
.profile-status { border: 1px solid rgba(255, 120, 0, .28); border-radius: 999px; padding: 4px 7px; color: var(--purple-bright) !important; font-size: 9px !important; font-weight: 700; white-space: nowrap; }
.profile-menu-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--purple-soft); color: var(--purple-bright); font-size: 16px; font-weight: 800; }
.profile-access-link { grid-template-columns: minmax(0, 1fr) auto; border: 0; border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0; padding: 11px 0 0; background: transparent; }
.profile-access-link:hover { border-color: rgba(255, 255, 255, .08); background: transparent; transform: none; }
.profile-access-link > span:first-child { display: grid; gap: 3px; min-width: 0; }
.profile-access-link > span:last-child { color: var(--purple-bright); }
.profile-logout-button { justify-self: start; border: 0; padding: 10px 0; background: transparent; color: var(--red); font-size: 12px; font-weight: 700; cursor: pointer; }
.profile-detail-view { display: grid; gap: 14px; }
.profile-back { justify-self: start; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--surface); color: var(--muted-strong); font-size: 12px; font-weight: 700; cursor: pointer; }
.profile-back:hover { border-color: var(--purple-bright); color: var(--ink); }
.profile-detail-panel { display: grid; gap: 12px; }
.profile-detail-panel .planning-section { margin: 0; }
.profile-detail-actions { display: flex; justify-content: flex-end; padding-top: 2px; }
.profile-detail-actions .primary-action { min-width: 190px; }
.profile-save-feedback { flex: 1; align-self: center; min-height: 17px; margin: 0; color: var(--green); font-size: 12px; line-height: 1.35; }
.profile-save-feedback.error { color: var(--red); }
.profile-detail-panel .account-panel { margin-top: 0; }
.backup-panel { display: grid; gap: 13px; }
.backup-identity-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: var(--surface-2); }
.backup-identity-card > div { display: grid; gap: 3px; min-width: 0; }
.backup-identity-card strong { font-size: 14px; }
.backup-identity-card small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.backup-status { border: 1px solid rgba(69, 229, 142, .25); border-radius: 999px; padding: 4px 8px; color: var(--green); font-size: 9px; font-weight: 700; white-space: nowrap; }
.backup-status.is-pending { border-color: rgba(255, 190, 99, .28); color: #ffbe63; }
.backup-feedback { min-height: 17px; margin: 0; color: var(--green); font-size: 12px; line-height: 1.35; }
.backup-feedback.error { color: var(--red); }
.backup-security-note { margin: 0; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.legal-panel { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 17px; padding: 16px; background: linear-gradient(145deg, rgba(25, 20, 31, .98), rgba(18, 15, 23, .98)); }
.legal-document-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 13px; }
.legal-document-header > div { display: grid; gap: 3px; min-width: 0; }
.legal-document-header h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.legal-document-version { flex: 0 0 auto; border: 1px solid rgba(255, 120, 0, .28); border-radius: 999px; padding: 5px 8px; color: var(--purple-bright); font-size: 9px; font-weight: 700; white-space: nowrap; }
.legal-config-warning { display: grid; gap: 5px; border: 1px solid rgba(255, 190, 99, .32); border-radius: 12px; padding: 11px 12px; background: rgba(255, 160, 40, .07); color: #ffbe63; }
.legal-config-warning strong { font-size: 11px; }
.legal-config-warning p { margin: 0; color: var(--muted-strong); font-size: 10px; line-height: 1.45; }
.legal-lead { margin: 0; color: var(--muted-strong); font-size: 12px; line-height: 1.55; }
.legal-section { display: grid; gap: 6px; }
.legal-section h4 { margin: 0; color: var(--ink); font-size: 13px; }
.legal-section p { margin: 0; color: var(--muted-strong); font-size: 11px; line-height: 1.55; }
.legal-section ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; color: var(--muted-strong); font-size: 11px; line-height: 1.5; }
.legal-document-footer { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 13px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.legal-document-footer strong { color: var(--muted-strong); font-size: 11px; }
.auth-consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.auth-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--purple-bright); }
.auth-consent a { color: var(--purple-bright); font-weight: 700; }
.privacy-panel { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 17px; padding: 16px; background: linear-gradient(145deg, rgba(25, 20, 31, .98), rgba(18, 15, 23, .98)); }
.privacy-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.privacy-panel-heading > div { display: grid; gap: 3px; }
.privacy-panel-heading h3 { margin: 0; font-size: 18px; }
.privacy-public-link { color: var(--purple-bright); font-size: 11px; font-weight: 700; }
.privacy-consent-status { border: 1px solid rgba(69, 229, 142, .24); border-radius: 12px; padding: 11px 12px; color: var(--green); font-size: 12px; line-height: 1.45; }
.privacy-consent-status.is-pending { border-color: rgba(255, 190, 99, .28); color: #ffbe63; }
.privacy-rights-list { display: grid; gap: 5px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted-strong); font-size: 11px; line-height: 1.5; }
.privacy-rights-list strong { color: var(--ink); font-size: 12px; }
.privacy-feedback { min-height: 17px; margin: 0; color: var(--green); font-size: 11px; line-height: 1.4; }
.privacy-feedback.error { color: var(--red); }
.permission-status-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: var(--surface-2); }
.permission-status-card > div { display: grid; gap: 3px; }
.permission-status-card strong { font-size: 13px; }
.permission-status-card small { color: var(--muted); font-size: 11px; }
.permission-status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(160, 150, 170, .08); }
.permission-status-dot.is-active { background: var(--green); box-shadow: 0 0 0 4px rgba(69, 229, 142, .12); }
.delete-warning { margin: 0; border: 1px solid rgba(255, 82, 108, .28); border-radius: 12px; padding: 12px; background: rgba(255, 82, 108, .07); color: #ffc3cc; font-size: 12px; line-height: 1.5; }
.danger-action { width: 100%; border: 1px solid rgba(255, 82, 108, .38); border-radius: 11px; padding: 12px 15px; background: rgba(255, 82, 108, .12); color: #ff8799; font-size: 12px; font-weight: 800; cursor: pointer; }
.danger-action:hover { border-color: var(--red); background: rgba(255, 82, 108, .18); }
.profile-danger-item .profile-menu-icon { background: rgba(255, 82, 108, .11); color: #ff8799; }
.profile-danger-item strong { color: #ffb8c2; }
.personal-control-panel { display: grid; gap: 16px; }
.personal-control-panel > .section-heading { align-items: flex-start; margin-bottom: 0; }
.personal-control-panel h3 { margin-top: 3px; }
.personal-isolation-note { border: 1px solid rgba(132, 168, 255, .28); border-radius: 999px; padding: 5px 8px; color: var(--blue); font-size: 10px; font-weight: 700; white-space: nowrap; }
.personal-intro { margin: -5px 0 0; }
.personal-expense-form { display: grid; gap: 11px; border: 1px solid var(--line); border-radius: 17px; padding: 14px; background: linear-gradient(145deg, rgba(25, 20, 31, .98), rgba(18, 15, 23, .98)); }
.personal-expense-form .primary-action { justify-self: start; min-width: 150px; }
.personal-feedback { min-height: 16px; margin: -3px 0 0; color: var(--green); font-size: 11px; }
.personal-feedback.error { color: var(--red); }
.personal-summary, .personal-recent { display: grid; gap: 11px; border: 1px solid var(--line); border-radius: 17px; padding: 14px; background: var(--surface); }
.personal-month-control { display: grid; align-items: center; grid-template-columns: auto auto; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.personal-month-control input { width: 125px; padding: 8px 9px; font-size: 11px; }
.personal-month-control .mk-field-trigger { width: 125px; min-height: 36px; padding: 7px 9px; font-size: 11px; }
.personal-month-control .mk-field-trigger-icon { width: 20px; height: 20px; flex-basis: 20px; font-size: 13px; }
.personal-summary-cards { display: grid; grid-template-columns: 1.35fr .7fr 1fr; gap: 8px; }
.personal-summary-cards article { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: var(--surface-2); }
.personal-summary-cards small, .personal-summary-cards strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personal-summary-cards small { color: var(--muted); font-size: 10px; }
.personal-summary-cards strong { margin-top: 5px; color: var(--purple-bright); font-size: 15px; }
.personal-summary-cards article:first-child strong { color: var(--red); font-size: 18px; }
.personal-category-chart { display: grid; gap: 11px; }
.personal-category-row { display: grid; gap: 6px; }
.personal-category-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted-strong); font-size: 11px; }
.personal-category-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personal-category-label strong { color: var(--ink); font-size: 11px; }
.personal-category-track { height: 7px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.personal-category-track i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--purple-bright)); }
.obligation-summary, .obligation-history { margin-top: 6px; }
.obligation-summary .personal-summary-cards article:first-child strong { color: var(--brand-highlight); }
.obligation-summary .personal-category-track i { background: linear-gradient(90deg, var(--brand), var(--brand-highlight)); }
.personal-expense-list { display: grid; gap: 7px; }
.personal-expense-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; padding: 10px 11px; background: var(--surface-2); }
.personal-expense-item strong, .personal-expense-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personal-expense-item strong { font-size: 12px; }
.personal-expense-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.personal-expense-item > span { color: var(--red); font-size: 12px; font-weight: 800; white-space: nowrap; }
.obligation-history .personal-expense-item > span { color: var(--brand-highlight); }
.personal-expense-item .activity-action { width: 26px; height: 26px; }
.personal-empty { margin: 0; color: var(--muted); font-size: 11px; }
.copilot-modal { gap: 20px; }
.copilot-heading { display: grid; gap: 4px; max-width: 560px; }
.copilot-heading h2 { margin: 4px 0 0; }
.copilot-hero { position: relative; display: grid; gap: 17px; overflow: hidden; border: 1px solid rgba(54, 212, 125, .34); border-radius: 20px; padding: 20px; background: radial-gradient(circle at 92% 8%, rgba(54, 212, 125, .2), transparent 35%), linear-gradient(145deg, #102d20, #17120d 70%); }
.copilot-hero::after { content: ''; position: absolute; width: 170px; height: 170px; right: -72px; bottom: -104px; border-radius: 50%; background: var(--green); opacity: .12; }
.copilot-hero-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.copilot-orb { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(54, 212, 125, .44); border-radius: 16px; background: rgba(54, 212, 125, .14); color: var(--green); font-size: 24px; box-shadow: 0 0 0 7px rgba(54, 212, 125, .05); }
.copilot-status { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(54, 212, 125, .3); border-radius: 99px; padding: 6px 9px; background: rgba(6, 22, 13, .26); color: var(--green); font-size: 10px; font-weight: 700; }
.copilot-status i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(54, 212, 125, .13); }
.copilot-hero > div:last-child { position: relative; z-index: 1; max-width: 500px; }
.copilot-hero h3 { margin: 4px 0 5px; font-size: 23px; letter-spacing: -.05em; }
.copilot-hero p:not(.eyebrow) { margin: 0; color: var(--muted-strong); font-size: 12px; line-height: 1.55; }
.copilot-feature-section { display: grid; gap: 2px; }
.copilot-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.copilot-feature { display: flex; align-items: flex-start; gap: 9px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: var(--surface); }
.copilot-feature > span { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; background: var(--purple-soft); color: var(--purple-bright); font-size: 14px; font-weight: 800; }
.copilot-feature div { display: grid; gap: 3px; min-width: 0; }
.copilot-feature strong { font-size: 12px; }
.copilot-feature small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.copilot-next-step { display: flex; align-items: center; gap: 11px; border: 1px dashed rgba(255, 120, 0, .4); border-radius: 15px; padding: 13px; background: rgba(255, 120, 0, .06); }
.copilot-next-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px; background: var(--purple-soft); color: var(--purple-bright); font-size: 12px; font-weight: 800; }
.copilot-next-step > div { display: grid; gap: 2px; min-width: 0; }
.copilot-next-step strong { font-size: 12px; }
.copilot-next-step small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.copilot-menu-list { display: grid; gap: 9px; }
.copilot-menu-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; border: 1px solid var(--line); border-radius: 15px; padding: 13px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.copilot-menu-item:hover { border-color: #784b2b; background: var(--surface-2); transform: translateY(-1px); }
.copilot-menu-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; background: var(--purple-soft); color: var(--purple-bright); font-size: 17px; font-weight: 800; }
.copilot-menu-copy { display: grid; gap: 3px; min-width: 0; }
.copilot-menu-copy strong { font-size: 13px; }
.copilot-menu-copy small { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.copilot-menu-chevron { color: var(--purple-bright); font-size: 25px; line-height: 1; }
.copilot-detail-view { display: grid; gap: 15px; }
.copilot-back { justify-self: start; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: var(--surface); color: var(--muted-strong); font-size: 12px; font-weight: 700; cursor: pointer; }
.copilot-back:hover { border-color: var(--purple-bright); color: var(--ink); }
.copilot-settings-section { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: rgba(20, 16, 25, .72); }
.copilot-settings-section .section-heading { margin-bottom: 0; }
.copilot-settings-section .section-heading h3 { max-width: 540px; }
.copilot-settings-section .field-hint { display: block; margin-top: 5px; }
.copilot-toggle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.copilot-toggle { position: relative; display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 64px; border: 1px solid var(--line); border-radius: 13px; padding: 11px; background: var(--surface); cursor: pointer; }
.copilot-toggle:hover { border-color: #704019; background: var(--surface-2); }
.copilot-toggle input { position: absolute; width: 1px !important; height: 1px; margin: -1px; padding: 0 !important; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; opacity: 0; }
.copilot-toggle input:focus-visible ~ .copilot-toggle-switch { outline: 3px solid rgba(255, 120, 0, .38); outline-offset: 2px; }
.copilot-toggle-icon { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 9px; background: var(--purple-soft); color: var(--purple-bright); font-size: 14px; font-weight: 800; }
.copilot-toggle-copy { display: grid; gap: 2px; min-width: 0; }
.copilot-toggle-copy strong { color: var(--ink); font-size: 12px; }
.copilot-toggle-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.copilot-toggle-switch { position: relative; display: block; flex: 0 0 34px; width: 34px; height: 20px; border-radius: 99px; background: #3a3042; transition: background .2s ease; }
.copilot-toggle-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #b5abbc; transition: transform .2s ease, background .2s ease; }
.copilot-toggle input:checked ~ .copilot-toggle-switch { background: var(--green); }
.copilot-toggle input:checked ~ .copilot-toggle-switch::after { transform: translateX(14px); background: #07130b; }
.copilot-toggle input:checked ~ .copilot-toggle-icon { background: var(--green-soft); color: var(--green); }
.copilot-channel-settings { display: grid; gap: 11px; border: 1px solid rgba(255, 120, 0, .22); border-radius: 14px; padding: 13px; background: rgba(255, 120, 0, .045); }
.copilot-channel-settings h4 { margin: 4px 0 0; font-size: 14px; letter-spacing: -.03em; }
.copilot-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.copilot-choice { position: relative; display: grid !important; gap: 0 !important; min-height: 60px; border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: var(--surface); cursor: pointer; }
.copilot-choice:hover { border-color: #784b2b; background: var(--surface-2); }
.copilot-choice input { position: absolute; width: 1px !important; height: 1px; margin: -1px; padding: 0 !important; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; opacity: 0; }
.copilot-choice input:focus-visible ~ span { outline: 3px solid rgba(255, 120, 0, .38); outline-offset: 2px; border-radius: 6px; }
.copilot-choice input:checked ~ span { color: var(--green); }
.copilot-choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.copilot-choice span { display: grid; gap: 3px; }
.copilot-choice strong { font-size: 11px; }
.copilot-choice small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.copilot-choice input:checked ~ span small { color: var(--muted-strong); }
.copilot-criteria-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.copilot-criteria-mode .copilot-choice { min-height: 70px; }
.copilot-criteria-mode .copilot-choice input:disabled ~ span { opacity: .52; }
.copilot-criteria-mode .copilot-choice input:checked ~ span strong { color: var(--green); }
.copilot-criteria-summary { border: 1px solid rgba(255, 120, 0, .23); border-radius: 11px; padding: 10px 11px; background: rgba(255, 120, 0, .06); color: var(--muted-strong); font-size: 11px; line-height: 1.4; }
.copilot-channel-action { justify-self: start; padding: 9px 12px; font-size: 11px; }
.copilot-preview-feedback { min-height: 14px; margin: 0; color: var(--muted); font-size: 10px; }
.copilot-voice-preview { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: var(--surface); }
.copilot-voice-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 17px; font-weight: 800; }
.copilot-voice-preview > div { display: grid; gap: 3px; min-width: 0; }
.copilot-voice-preview strong { font-size: 11px; line-height: 1.4; }
.copilot-voice-preview small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.copilot-voice-preview .secondary-action { white-space: nowrap; padding: 9px 10px; font-size: 10px; }
.overfly-panel .section-heading { align-items: flex-start; }
.overfly-preview-card {
  --overfly-status: #807789;
  --overfly-surface: #f0edf2;
  --overfly-surface-strong: #e6e1e9;
  --overfly-label: #625b69;
  --overfly-shell-glow: transparent;
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  gap: 0;
  justify-self: stretch;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  padding: 12px 0 0;
  overflow: hidden;
  background: #121212;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}
.overfly-preview-card[data-metric-count="1"] { width: min(100%, 230px); justify-self: center; }
.overfly-preview-card[data-metric-count="2"] { width: min(100%, 330px); justify-self: center; }
.overfly-preview-card[data-metric-count="0"] { width: min(100%, 230px); justify-self: center; }
.overfly-preview-card[data-status="good"] { --overfly-status: #20b96c; --overfly-surface: #fff; --overfly-surface-strong: #fff; --overfly-label: #225f43; --overfly-shell-glow: transparent; }
.overfly-preview-card[data-status="attention"] { --overfly-status: #f3a712; --overfly-surface: #fff; --overfly-surface-strong: #fff; --overfly-label: #765318; --overfly-shell-glow: transparent; }
.overfly-preview-card[data-status="bad"] { --overfly-status: #e1485b; --overfly-surface: #fff; --overfly-surface-strong: #fff; --overfly-label: #742b38; --overfly-shell-glow: transparent; }
.overfly-preview-card::after {
  display: none;
}
.overfly-status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 29px; padding: 0 12px 12px; }
.overfly-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 27px;
  border-radius: 9px;
  padding: 6px 11px;
  background: var(--overfly-status);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}
.overfly-status-badge strong { font-size: 10px; font-weight: 900; letter-spacing: .055em; line-height: 1; text-transform: uppercase; }
.overfly-status-dot { width: 7px; height: 7px; border: 2px solid rgba(255, 255, 255, .95); border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .22); }
.overfly-fare-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 29px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 9px;
  padding: 6px 10px;
  background: var(--overfly-status);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  white-space: nowrap;
}
.overfly-fare-badge span { font-size: 8px; font-weight: 800; letter-spacing: .06em; opacity: .78; text-transform: uppercase; }
.overfly-fare-badge strong { font-size: 14px; font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.overfly-offer-card {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}
.overfly-offer-card::before { display: none; }
.overfly-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overfly-metric-grid[data-metric-count="1"] { grid-template-columns: minmax(0, 1fr); }
.overfly-metric-grid[data-metric-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overfly-metric-grid[data-metric-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overfly-metric-grid article {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  overflow: hidden;
  min-width: 0;
  min-height: 68px;
  border-right: 1px solid #e7e7e7;
  padding: 8px 8px 9px;
  background: #fff;
}
.overfly-metric-grid article:last-child { border-right: 0; }
.overfly-metric-grid article[data-metric-last="true"] { border-right: 0; }
.overfly-metric-grid article span { display: flex; align-items: flex-end; justify-content: center; min-height: 20px; color: var(--overfly-label); font-size: 9px; font-weight: 750; letter-spacing: 0; line-height: 1.1; text-align: center; white-space: normal; }
.overfly-metric-grid article strong { color: #17131c; font-size: clamp(21px, 5.6vw, 29px); font-variant-numeric: tabular-nums; font-weight: 950; line-height: 1; letter-spacing: -.065em; text-align: center; white-space: nowrap; }
.overfly-metric-grid[data-metric-count="3"] article { padding-inline: 10px; }
.overfly-metric-grid[data-metric-count="3"] article strong {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  justify-self: stretch;
  font-size: clamp(18px, 5.6vw, 28px);
  letter-spacing: -.08em;
  transform: scaleX(.78) scaleY(1.16);
  transform-origin: center;
}
.overfly-metric[data-status="good"] strong { color: #118b50; }
.overfly-metric[data-status="attention"] strong { color: #c77700; }
.overfly-metric[data-status="bad"] strong { color: #cf3148; }
.overfly-metric[data-status="empty"] strong { color: #817989; }
.overfly-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.overfly-form-grid label:last-child { grid-column: 1 / -1; }
.overfly-simulation-label { margin: 1px 0 -3px; color: var(--muted-strong); font-size: 10px; font-weight: 800; }
.overfly-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.copilot-form-row { margin-top: 1px; }
.copilot-cost-preview { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; border: 1px solid rgba(54, 212, 125, .2); border-radius: 12px; padding: 11px 12px; background: rgba(54, 212, 125, .055); }
.copilot-cost-preview span { color: var(--muted-strong); font-size: 11px; }
.copilot-cost-preview strong { color: var(--green); font-size: 15px; }
.copilot-cost-preview small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.copilot-rule-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.copilot-rule { display: grid; gap: 4px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: var(--surface); }
.copilot-rule span { font-size: 10px; font-weight: 800; }
.copilot-rule strong { overflow: hidden; font-size: 13px; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.copilot-rule small { color: var(--muted); font-size: 10px; }
.copilot-rule-good { border-color: var(--green-border); background: var(--green-soft); }
.copilot-rule-good span, .copilot-rule-good strong { color: var(--green); }
.copilot-rule-attention { border-color: rgba(255, 190, 99, .38); background: rgba(255, 190, 99, .08); }
.copilot-rule-attention span, .copilot-rule-attention strong { color: #ffbe63; }
.copilot-rule-bad { border-color: var(--red-border); background: var(--red-soft); }
.copilot-rule-bad span, .copilot-rule-bad strong { color: var(--red); }
.copilot-settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.copilot-settings-actions .primary-action { min-width: 190px; }
.copilot-save-feedback { flex: 1; min-height: 17px; margin: 0; color: var(--green); font-size: 11px; text-align: right; }
.copilot-save-feedback.error { color: var(--red); }

/* Menu inicial do copiloto: foco em ações, sem repetir a explicação dos detalhes. */
#copilot-menu-view { display: grid; gap: 14px; }
#copilot-menu-view .copilot-heading { gap: 2px; }
#copilot-menu-view .copilot-heading h2 { margin-top: 2px; font-size: 24px; }
#copilot-menu-view .copilot-heading .modal-intro { display: none; }
#copilot-menu-view .copilot-hero { display: flex; align-items: center; gap: 12px; min-height: 0; padding: 11px 13px; border-radius: 14px; background: linear-gradient(135deg, rgba(16, 45, 32, .92), rgba(23, 18, 31, .96)); }
#copilot-menu-view .copilot-hero::after { display: none; }
#copilot-menu-view .copilot-hero > div:last-child { display: grid; max-width: none; gap: 1px; }
#copilot-menu-view .copilot-hero-top { width: auto; }
#copilot-menu-view .copilot-orb { width: 32px; height: 32px; border-radius: 10px; font-size: 17px; box-shadow: none; }
#copilot-menu-view .copilot-status { padding: 5px 8px; font-size: 10px; }
#copilot-menu-view .copilot-feature-section,
#copilot-menu-view .copilot-next-step { display: none; }
#copilot-menu-view .copilot-menu-list { gap: 8px; }
#copilot-menu-view .copilot-menu-item { min-height: 62px; border-radius: 14px; padding: 11px 12px; }
#copilot-menu-view .copilot-menu-copy { gap: 1px; }
#copilot-menu-view .copilot-menu-copy strong { font-size: 14px; }
#copilot-menu-view .copilot-menu-copy small { font-size: 10px; }
#copilot-menu-view .copilot-menu-icon { width: 32px; height: 32px; border-radius: 10px; font-size: 15px; }
#copilot-menu-view .copilot-menu-chevron { font-size: 23px; }
body.page-open { overflow: hidden; }
.modal-backdrop[hidden], .auth-screen[hidden], .auth-form[hidden], .recovery-panel[hidden] { display: none; }
.swipe-enter-next, .swipe-enter-prev { will-change: transform, opacity; }
.swipe-enter-next { animation: metakm-swipe-enter-next .24s cubic-bezier(.22, .75, .25, 1) both; }
.swipe-enter-prev { animation: metakm-swipe-enter-prev .24s cubic-bezier(.22, .75, .25, 1) both; }
@keyframes metakm-swipe-enter-next { from { opacity: .72; transform: translate3d(26px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes metakm-swipe-enter-prev { from { opacity: .72; transform: translate3d(-26px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .swipe-enter-next, .swipe-enter-prev { animation: none; } }
.modal { position: relative; width: min(100%, 420px); max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 14px; box-shadow: 0 20px 70px rgba(0, 0, 0, .55); }
.modal h2 { margin: -6px 0 8px; font-size: 25px; letter-spacing: -.05em; }
.modal h3 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.04em; }
.modal-intro { margin: -2px 0 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.modal-close { position: absolute; right: 18px; top: 17px; border: 0; background: var(--surface-3); border-radius: 50%; width: 28px; height: 28px; font-size: 20px; line-height: 20px; color: var(--muted); cursor: pointer; }
.modal-close:hover { color: var(--ink); background: #32263d; }
.modal label, .auth-form label { display: grid; gap: 6px; color: var(--muted-strong); font-size: 12px; font-weight: 700; }
.modal input, .modal select, .auth-form input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; font-size: 14px; color: var(--ink); background: var(--surface-2); }
.modal input::placeholder, .auth-form input::placeholder { color: #82798d; }
.modal input:focus, .modal select:focus, .auth-form input:focus, button:focus-visible { outline: 3px solid rgba(169, 107, 234, .38); outline-offset: 1px; border-color: var(--purple-bright); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.optional-label { color: var(--muted); font-weight: 500; }
.transaction-modal { width: min(100%, 510px); }
.launch-modal { width: min(100%, 700px); }
.launch-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.launch-card {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 8px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(25, 20, 31, .98), rgba(18, 15, 23, .98));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.launch-card:hover { border-color: var(--brand); background: rgba(255, 120, 0, .08); transform: translateY(-2px); }
.launch-card:focus-visible { outline: 3px solid rgba(255, 154, 36, .42); outline-offset: 2px; }
.launch-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 120, 0, .12); color: var(--brand-highlight); font-size: 20px; font-weight: 900; }
.launch-card strong { font-size: 15px; letter-spacing: -.02em; }
.launch-card small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.launch-card-today { border-color: rgba(255, 154, 36, .38); background: linear-gradient(145deg, rgba(65, 35, 11, .9), rgba(23, 18, 14, .98)); }
.launch-card-today .launch-card-icon { background: rgba(255, 154, 36, .18); color: var(--brand-highlight); }
.work-session-modal { width: min(100%, 480px); }
.work-session-form-row { gap: 10px; }
.work-session-feedback { min-height: 17px; margin: -3px 0 0; color: var(--green); font-size: 12px; line-height: 1.4; }
.work-session-feedback.error { color: var(--red); }
.transaction-review-panel { display: grid; gap: 10px; }
.transaction-review-paper { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: linear-gradient(145deg, rgba(169, 107, 234, .09), rgba(255, 255, 255, .025)); }
.transaction-review-header, .transaction-review-section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.transaction-review-header h3 { margin: 2px 0 0; font-size: 18px; }
.transaction-review-header > span { color: var(--muted); font-size: 11px; text-align: right; }
.transaction-review-section { display: grid; gap: 7px; border-top: 1px dashed rgba(255, 255, 255, .12); padding-top: 11px; }
.transaction-review-section-title { color: var(--muted-strong); font-size: 12px; font-weight: 700; }
.transaction-review-section-title strong { color: var(--green); font-size: 15px; }
.transaction-review-section.expense-review .transaction-review-section-title strong { color: var(--red); }
.transaction-review-lines { display: grid; gap: 5px; }
.transaction-review-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.transaction-review-line strong { color: var(--ink); font-size: 12px; }
.transaction-review-line small { color: var(--muted); font-size: 10px; }
.transaction-review-empty { color: var(--muted); font-size: 11px; }
.transaction-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.transaction-tab { border: 0; border-radius: 8px; padding: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.transaction-tab.active { background: var(--purple); color: #fff; box-shadow: 0 4px 12px rgba(139, 63, 209, .25); }
.transaction-meta output { display: flex; align-items: center; min-height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; background: var(--surface-2); color: var(--muted-strong); text-transform: capitalize; }
.transaction-platforms { display: grid; gap: 9px; }
.transaction-platforms .section-heading { margin-bottom: 0; }
.platform-rows { display: grid; gap: 8px; }
.platform-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(86px, .8fr) 30px; align-items: end; gap: 8px; }
.platform-row label { min-width: 0; }
.remove-platform { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-3); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.remove-platform:hover:not(:disabled) { color: var(--red); border-color: var(--red-border); }
.transaction-expenses { display: grid; gap: 9px; }
.transaction-expenses .section-heading { margin-bottom: 0; }
.expense-rows { display: grid; gap: 8px; }
.expense-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(100px, .8fr) 30px; align-items: end; gap: 8px; }
.expense-row label { min-width: 0; }
.remove-expense { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-3); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.remove-expense:hover:not(:disabled) { color: var(--red); border-color: var(--red-border); }
.expense-total { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); font-size: 12px; }
.expense-total strong { color: var(--red); font-size: 17px; }
.transaction-payments { display: grid; gap: 9px; border: 1px solid rgba(169, 107, 234, .2); border-radius: 14px; padding: 13px; background: rgba(169, 107, 234, .045); }
.transaction-payments .section-heading { margin-bottom: 0; }
.payment-rows { display: grid; gap: 8px; }
.payment-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(100px, .8fr) 30px; align-items: end; gap: 8px; }
.payment-row label { min-width: 0; }
.remove-payment { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-3); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.remove-payment:hover { color: var(--red); border-color: var(--red-border); }
.transaction-payment-feedback { margin: -1px 0 0; color: var(--red); font-size: 11px; line-height: 1.35; }
.field-hint { color: var(--muted); font-size: 10px; line-height: 1.35; }
.transaction-preview { margin-top: 2px; }
.transaction-feedback { min-height: 17px; margin: -3px 0 0; color: var(--green); font-size: 12px; line-height: 1.4; }
.transaction-feedback.error { color: var(--red); }
.transaction-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.transaction-actions > button:not(.danger-action) { flex: 1 1 105px; min-width: 105px; }
.danger-action { border: 1px solid var(--red-border); border-radius: 11px; padding: 11px 14px; background: var(--red-soft); color: var(--red); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.danger-action:hover { background: rgba(244, 94, 108, .18); }
.transaction-actions > .danger-action { flex: 1 0 100%; }
button:disabled { cursor: wait; opacity: .62; }
.planning-modal { width: min(100%, 580px); }
.planning-modal > .modal-close { order: -3; }
.planning-modal > .eyebrow { order: -2; }
.planning-modal > h2 { order: -1; }
.planning-modal > .modal-intro { order: 0; }
.planning-modal > .planning-overview { order: 1; }
.planning-modal > .planning-insights { order: 2; }
.planning-modal > .planning-section:not(.planning-insights), .planning-modal > .transaction-actions { display: none; }
.planning-overview { display: grid; gap: 13px; }
.planning-overview-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border: 1px solid #3a2a1e; border-radius: 18px; padding: 19px; background: linear-gradient(135deg, #24170d, #15110b 72%); }
.planning-overview-hero > div { display: grid; gap: 4px; }
.planning-overview-hero h3 { margin: 0; font-size: 23px; letter-spacing: -.05em; }
.planning-overview-hero p:not(.eyebrow) { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.planning-health-badge { flex: 0 0 auto; border: 1px solid var(--green-border); border-radius: 99px; padding: 6px 9px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 700; }
.planning-health-badge.has-alert { border-color: var(--red-border); background: var(--red-soft); color: var(--red); }
.planning-overview-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.overview-metric { min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: 12px; background: var(--surface); }
.overview-metric small { display: block; color: var(--muted); font-size: 10px; }
.overview-metric strong { display: block; overflow: hidden; margin-top: 5px; color: var(--ink); font-size: 15px; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.overview-metric.revenue-overview strong { color: var(--green); }
.overview-metric.expense-overview strong { color: var(--red); }
.overview-metric.profit-overview strong { color: var(--balance); }
.overview-metric.goal-overview strong { color: var(--purple-bright); }
.planning-trends { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.planning-trends article { display: flex; align-items: center; gap: 9px; min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: 11px; background: var(--surface-2); }
.planning-trends article > div { min-width: 0; }
.planning-trends small { display: block; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.planning-trends strong { display: block; overflow: hidden; margin-top: 3px; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.trend-icon { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 9px; background: var(--green-soft); color: var(--green); font-weight: 700; }
.trend-icon.red-trend { background: var(--red-soft); color: var(--red); }
.trend-icon.purple-trend { background: var(--purple-soft); color: var(--purple-bright); }
.trend-icon.blue-trend { background: var(--blue-soft); color: var(--blue); }
.planning-trends strong.trend-positive { color: var(--green); }
.planning-trends strong.trend-negative { color: var(--red); }
.planning-obligations { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 15px; background: var(--surface); }
.planning-obligations .section-heading { margin-bottom: 0; }
.planning-obligations .section-heading > span { color: var(--muted); font-size: 11px; }
.planning-obligation-actions { display: grid; justify-items: end; gap: 2px; }
.planning-obligation-actions > span { color: var(--muted); font-size: 10px; }
.planning-obligation-actions .text-button { padding: 0; font-size: 10px; }
.planning-obligation-list { display: grid; gap: 7px; }
.planning-obligation-row { display: flex; align-items: center; gap: 9px; min-width: 0; border: 1px solid rgba(255, 255, 255, .05); border-radius: 11px; padding: 10px; background: var(--surface-2); }
.planning-obligation-row > div { flex: 1; min-width: 0; }
.planning-obligation-row strong, .planning-obligation-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.planning-obligation-row strong { color: var(--ink); font-size: 12px; }
.planning-obligation-row small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.planning-obligation-row b { flex: 0 0 auto; color: var(--red); font-size: 10px; text-align: right; }
.planning-obligation-row.is-paid b { color: var(--green); }
.planning-obligation-row.is-scheduled b { color: var(--purple-bright); }
.obligation-status-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(255, 107, 112, .1); }
.is-paid .obligation-status-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(54, 212, 125, .1); }
.is-scheduled .obligation-status-dot { background: var(--purple-bright); box-shadow: 0 0 0 3px rgba(255, 120, 0, .1); }
.settings-section { display: grid; gap: 12px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.settings-section .section-heading { margin-bottom: 0; }
.settings-section .planning-section:first-child { border-top: 0; padding-top: 0; }
.settings-section .transaction-actions { display: none; }
.settings-save { width: 100%; }
.planning-section { display: grid; gap: 11px; border-top: 1px solid var(--line); padding-top: 14px; }
.planning-section:first-of-type { border-top: 0; padding-top: 0; }
.vehicle-cost-preview { display: grid; gap: 10px; border: 1px solid rgba(255, 120, 0, .28); border-radius: 14px; padding: 12px; background: linear-gradient(145deg, rgba(45, 29, 61, .72), rgba(24, 19, 30, .72)); }
.vehicle-cost-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vehicle-cost-preview-header span { color: var(--ink); font-size: 12px; font-weight: 800; }
.vehicle-cost-preview-header small { color: var(--muted); font-size: 10px; text-align: right; }
.vehicle-cost-preview-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.vehicle-cost-preview-grid > div { display: grid; gap: 4px; min-width: 0; border: 1px solid rgba(255, 255, 255, .06); border-radius: 10px; padding: 9px; background: rgba(14, 11, 18, .46); }
.vehicle-cost-preview-grid small { color: var(--muted); font-size: 9px; }
.vehicle-cost-preview-grid strong { overflow: hidden; color: var(--green); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.planning-financing-fields[hidden] { display: none; }
.planning-insurance-fields { display: grid; gap: 7px; }
.planning-insurance-fields[hidden] { display: none; }
.planning-goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.planning-operation-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.planning-expected-result { display: grid; gap: 10px; border: 1px solid rgba(255, 120, 0, .28); border-radius: 16px; padding: 14px; background: linear-gradient(145deg, rgba(45, 29, 61, .72), rgba(24, 19, 30, .72)); }
.planning-expected-result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.planning-expected-result-heading h3 { margin: 3px 0 0; font-size: 16px; }
.planning-expected-result-heading > span { color: var(--muted); font-size: 10px; text-align: right; }
.planning-expected-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.planning-expected-result-grid article { display: grid; gap: 5px; min-width: 0; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; padding: 10px; background: rgba(14, 11, 18, .46); }
.planning-expected-result-grid small { color: var(--muted); font-size: 10px; }
.planning-expected-result-grid strong { overflow: hidden; color: var(--ink); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.planning-expected-result-grid article:first-child strong { color: var(--brand-highlight); }
.planning-expected-result-grid article:nth-child(2) strong { color: var(--green); }
.planning-expected-result-grid article:nth-child(3) strong { color: var(--blue); }
.planning-expected-result-note { margin: 0; }
.planning-expected-result-note.is-warning { color: var(--brand-highlight); }
.obligation-rows { display: grid; gap: 9px; }
.obligation-row { display: grid; grid-template-columns: minmax(120px, 1.15fr) minmax(88px, .8fr) minmax(105px, .9fr) minmax(130px, 1.1fr); align-items: end; gap: 7px; padding-bottom: 9px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.obligation-row label { min-width: 0; }
.obligation-row.is-derived { border-color: rgba(255, 120, 0, .28); background: rgba(44, 27, 59, .2); }
.obligation-row.is-derived [data-obligation-value] { opacity: .72; }
.obligation-derived-summary { grid-column: 1 / -1; margin-top: -2px; color: var(--purple-bright); font-size: 11px; font-weight: 600; }
.obligation-row [data-obligation-day-field] { grid-column: 1 / 2; }
.obligation-row [data-obligation-month-field] { grid-column: 2 / 3; }
.obligation-row .remove-obligation { grid-column: 4 / 5; justify-self: end; }
.obligation-include { grid-column: 1 / -1; display: flex !important; flex-direction: row; align-items: center; gap: 7px; color: var(--muted) !important; font-size: 11px !important; font-weight: 500 !important; }
.obligation-include input { width: 15px; height: 15px; margin: 0; accent-color: var(--purple-bright); }
.remove-obligation { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-3); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.remove-obligation:hover:not(:disabled) { color: var(--red); border-color: var(--red-border); }
.obligation-total { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); font-size: 12px; }
.obligation-total strong { color: var(--red); font-size: 17px; }
.obligation-total-detail { display: block; margin-top: -3px; line-height: 1.45; }
.obligation-economic-total { margin-top: 8px; border-top-style: dashed; }
.obligation-economic-total strong { color: var(--purple-bright); }
.planning-rental-fields[hidden] { display: none; }
.planning-feedback { min-height: 17px; margin: -2px 0 0; color: var(--green); font-size: 12px; }
.planning-feedback.error { color: var(--red); }
.planning-insights { gap: 12px; }
.chart-period-control { display: grid !important; gap: 5px !important; min-width: 92px; color: var(--muted) !important; font-size: 10px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .06em; }
.chart-period-control select { padding: 7px 8px !important; font-size: 11px !important; }
.planning-chart-card { display: grid; gap: 12px; border: 1px solid #3a2a1e; border-radius: 16px; padding: 15px; background: linear-gradient(145deg, #1b140d, #13100d); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.planning-chart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.planning-chart-header > div { display: grid; gap: 3px; }
.chart-kicker { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.planning-chart-header strong { font-size: 15px; letter-spacing: -.03em; }
.chart-goal { color: var(--purple-bright); font-size: 11px; font-weight: 700; text-align: right; }
.planning-chart-plot { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 7px; min-height: 176px; padding: 13px 5px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, rgba(255, 255, 255, .055) 44px); }
.planning-chart-plot.is-month { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.planning-chart-plot.is-year { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.chart-column { display: grid; grid-template-rows: 136px auto; align-items: end; gap: 7px; min-width: 0; text-align: center; }
.chart-column-bars { display: flex; align-items: end; justify-content: center; gap: 3px; height: 136px; }
.chart-bar { display: block; width: min(12px, 30%); min-height: 3px; border-radius: 5px 5px 2px 2px; background: var(--green); box-shadow: 0 0 9px rgba(54, 212, 125, .16); transition: height .25s ease; }
.chart-bar.expense-bar { background: var(--red); box-shadow: 0 0 9px rgba(255, 107, 112, .14); }
.chart-bar.profit-bar { background: var(--balance); box-shadow: 0 0 9px rgba(184, 154, 255, .18); }
.chart-bar.profit-bar.negative { background: #9b4d70; }
.chart-column-label { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.chart-column-value { display: none; }
.chart-empty { grid-column: 1 / -1; align-self: center; color: var(--muted); font-size: 12px; text-align: center; }
.planning-chart-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 10px; }
.planning-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.legend-dot.expense-dot { background: var(--red); }
.legend-dot.profit-dot { background: var(--balance); }
.planning-chart-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.planning-chart-summary > div { min-width: 0; border: 1px solid rgba(255, 255, 255, .05); border-radius: 10px; padding: 9px; background: var(--surface-2); }
.planning-chart-summary small { display: block; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.planning-chart-summary strong { display: block; margin-top: 4px; color: var(--ink); font-size: 12px; letter-spacing: -.03em; white-space: nowrap; }
.planning-chart-summary .chart-summary-revenue strong { color: var(--green); }
.planning-chart-summary .chart-summary-expense strong { color: var(--red); }
.planning-chart-summary .chart-summary-profit strong { color: var(--balance); }
.planning-chart-summary .chart-summary-goal strong { color: var(--purple-bright); }
.account-modal { width: min(100%, 470px); }
.session-form { gap: 13px; }
.session-fieldset { min-width: 0; border: 0; border-top: 1px solid var(--line); margin: 2px 0 0; padding: 13px 0 0; }
.session-fieldset legend { padding: 0 8px 0 0; color: var(--muted-strong); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.session-count-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-preview { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: 13px; }
.metric-preview .section-heading { align-items: flex-start; margin-bottom: 11px; }
.metric-preview .section-heading > span { max-width: 110px; text-align: right; line-height: 1.3; }
.metric-preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.metric-preview-card { min-width: 0; border: 1px solid rgba(255, 255, 255, .05); border-radius: 10px; background: var(--surface-3); padding: 10px; }
.metric-preview-card small { display: block; color: var(--muted); font-size: 10px; }
.metric-preview-card strong { display: block; margin-top: 4px; color: var(--ink); font-size: 15px; letter-spacing: -.03em; white-space: nowrap; }
.metric-preview-card.balance-preview { background: var(--balance-soft); border-color: var(--balance-border); }
.metric-preview-card.balance-preview strong { color: var(--balance); }
.metric-preview-card.expense-preview strong { color: var(--red); }
.metric-preview-card.profit-preview strong { color: var(--green); }
.ride-result { border-radius: 10px; padding: 13px; font-size: 13px; font-weight: 600; background: var(--green-soft); color: var(--green); }
.ride-result.warning { background: #3a2b17; color: #ffbe63; }
.ride-result.bad { background: var(--red-soft); color: var(--red); }
.settings-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; background: var(--surface-2); border-radius: 9px; padding: 10px 12px; }
.empty-state { color: var(--muted); font-size: 13px; margin: 8px 0; }
.auth-lock .app-shell, .auth-lock .bottom-nav, .auth-lock .page-screen { display: none; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.auth-card { width: min(100%, 390px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.auth-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--purple); color: #fff; border-radius: 12px; font-size: 22px; margin-bottom: 22px; box-shadow: 0 8px 20px rgba(139, 63, 209, .25); }
.auth-card h1 { font-size: 28px; letter-spacing: -.05em; margin: 7px 0; }
.auth-subtitle { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); padding: 4px; border-radius: 10px; margin-bottom: 18px; }
.auth-tab { border: 0; background: none; border-radius: 7px; padding: 9px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.auth-tab.active { background: var(--purple); color: #fff; box-shadow: 0 3px 10px rgba(139, 63, 209, .25); }
.auth-form { display: grid; gap: 13px; }
.auth-message { min-height: 19px; color: var(--green); font-size: 12px; margin: 14px 0 0; }
.auth-message.error { color: var(--red); }
.auth-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 10px; }
.auth-link-button { padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.auth-link-preview { display: block; margin-top: 8px; color: var(--purple-bright); font-size: 12px; font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }
.recovery-panel { display: grid; gap: 14px; margin-top: 4px; }
.recovery-panel h2 { font-size: 24px; letter-spacing: -.05em; margin: -7px 0 0; }
.recovery-panel .auth-subtitle { margin: 0; }
.recovery-panel .auth-link-button { justify-self: start; margin-top: 2px; }
.demo-note { color: var(--muted); font-size: 11px; line-height: 1.4; margin: 12px 0 0; }
.account-panel { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 2px; }
.account-email { margin: -4px 0 0; color: var(--ink); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.account-panel small { color: var(--green); font-size: 11px; }
.account-message { min-height: 16px; margin: 0; color: var(--red); font-size: 12px; }

@media (max-width: 760px) {
  .app-shell { padding: 24px 16px 100px; }
  .page-screen { padding-left: 16px; padding-right: 16px; }
  .page-screen > .modal { min-height: calc(100vh - 106px); padding-top: 24px; }
  .topbar h1 { font-size: 23px; }
  .financial-overview { padding: 16px; }
  .primary-financial-grid { gap: 8px; }
  .primary-financial-card { min-height: 143px; padding: 13px; }
  .revenue-card { min-height: 170px; }
  .financial-label { margin-top: 16px; }
  .primary-financial-card strong { font-size: 22px; }
  .primary-financial-card small { font-size: 10px; }
  .secondary-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .date-row { margin-top: 24px; }
  .page-screen { padding-left: 14px; padding-right: 14px; }
  .page-screen > .modal { padding-top: 20px; }
  .topbar { display: grid; justify-items: center; gap: 13px; text-align: center; }
  .topbar > div:first-child { justify-items: center; }
  .topbar > .avatar { justify-self: center; }
  .topbar-actions { justify-content: center; }
  .topbar-subtitle { text-align: center; }
  .financial-heading { display: grid !important; justify-items: center; gap: 8px; }
  .financial-heading > div { justify-items: center; text-align: center; }
  .financial-heading > span { position: static; }
  .planning-overview-hero { display: grid; gap: 11px; }
  .planning-health-badge { justify-self: start; }
  .planning-overview-metrics { grid-template-columns: repeat(2, 1fr); }
  .planning-trends { grid-template-columns: 1fr; }
  .period-chip, .calendar-button { padding: 8px 11px; }
  .period-tabs { width: 100%; justify-content: center; }
  .period-navigation { width: 100%; min-width: 0; gap: 0; }
  .period-navigation .period-chip { padding: 8px 4px; font-size: 11px; }
  .period-date-trigger { font-size: 15px; }
  .primary-financial-grid { grid-template-columns: repeat(2, 1fr); }
  .primary-financial-card { min-height: 126px; }
  .revenue-card { grid-column: 1 / -1; min-height: 150px; }
  .financial-label { margin-top: 13px; }
  .primary-financial-card strong { font-size: 29px; }
  .secondary-metrics { grid-template-columns: 1fr 1fr; }
  .profit-goal-card { padding-left: 16px; padding-right: 16px; }
  .profit-goal-footer { grid-template-columns: auto auto; }
  .profit-goal-footer > span:last-child { grid-column: 1 / -1; text-align: center; }
  .session-count-row { grid-template-columns: 1fr; }
  .metric-preview-grid { grid-template-columns: 1fr 1fr; }
  .quick-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .primary-action, .secondary-action { padding: 13px 9px; }
  .ride-counts strong { font-size: 17px; }
  .bottom-nav { padding-left: 6px; padding-right: 6px; }
  .nav-item { font-size: 9px; }
  .nav-item span { font-size: 15px; }
  .nav-launcher .launcher-icon { width: 53px; height: 53px; font-size: 28px; }
  .copilot-feature-grid { grid-template-columns: 1fr; }
  .copilot-choice-grid { grid-template-columns: 1fr; }
  .copilot-criteria-mode { grid-template-columns: 1fr; }
  .copilot-voice-preview { grid-template-columns: auto minmax(0, 1fr); }
  .copilot-voice-preview .secondary-action { grid-column: 1 / -1; width: 100%; }
  .copilot-toggle-grid, .copilot-rule-preview { grid-template-columns: 1fr; }
  .overfly-form-grid { grid-template-columns: 1fr; }
  .overfly-form-grid label:last-child { grid-column: auto; }
  .copilot-settings-actions { align-items: stretch; flex-direction: column; }
  .copilot-settings-actions .primary-action { width: 100%; }
  .copilot-save-feedback { text-align: left; }
}

/* Comunidade: visual compacto, privacidade explícita e mapa sem rastreio contínuo. */
.community-modal { width: min(100%, 700px); gap: 18px; }
.community-modal h2 { margin-bottom: 0; }
.community-identity-card, .community-privacy-card, .community-add-card, .community-list-section { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(28, 22, 37, .98), rgba(20, 16, 27, .98)); padding: 16px; }
.community-identity-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-color: rgba(255, 120, 0, .42); transition: border-color .2s ease, background .2s ease; }
.community-modal > .modal-intro,
.community-modal > .community-tabs,
.community-modal > .community-view { filter: none; opacity: 1; transition: filter .2s ease, opacity .2s ease; }
.community-modal.is-offline > .modal-intro,
.community-modal.is-offline > .community-tabs,
.community-modal.is-offline > .community-view { filter: grayscale(.35) saturate(.72); opacity: .76; }
.community-modal.is-offline .community-identity-card { border-color: rgba(140, 129, 150, .34); background: linear-gradient(145deg, rgba(34, 30, 42, .98), rgba(24, 22, 30, .98)); }
.community-modal.is-offline .community-identity-card strong { color: var(--muted-strong); }
.community-modal.is-offline .community-live-dot i { background: var(--muted); box-shadow: 0 0 0 4px rgba(140, 129, 150, .08); }
.community-identity-card strong { display: block; margin-top: 4px; color: var(--purple-bright); font-size: 22px; letter-spacing: .08em; }
.community-identity-card small { display: block; margin-top: 4px; color: var(--muted); }
.community-identity-actions, .community-privacy-actions { display: flex; align-items: center; gap: 9px; }
.community-online-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 4px 0; background: transparent; color: var(--muted-strong); font-size: 11px; font-weight: 800; cursor: pointer; transition: color .2s ease, opacity .2s ease; }
.community-switch-track { position: relative; display: block; width: 46px; height: 26px; border: 1px solid rgba(140, 129, 150, .5); border-radius: 999px; background: rgba(140, 129, 150, .2); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: border-color .2s ease, background .2s ease; }
.community-switch-track i { position: absolute; top: 3px; left: 3px; display: block; width: 18px; height: 18px; border-radius: 50%; background: #b8aebe; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); transition: transform .2s ease, background .2s ease; }
.community-online-toggle:hover { color: var(--ink); }
.community-online-toggle.is-online { color: var(--green); }
.community-online-toggle.is-online .community-switch-track { border-color: var(--green-border); background: var(--green); }
.community-online-toggle.is-online .community-switch-track i { transform: translateX(20px); background: #07130b; }
.community-online-toggle:disabled { cursor: wait; opacity: .6; }
.community-add-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.community-add-field { display: grid; gap: 6px; color: var(--muted-strong); font-size: 10px; font-weight: 700; }
.compact-action { padding: 9px 11px; font-size: 11px; white-space: nowrap; }
.community-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: rgba(12, 10, 17, .72); }
.community-tab { border: 0; border-radius: 9px; padding: 10px 12px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.community-tab.active { background: var(--purple-deep); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 120, 0, .42); }
.community-view[hidden] { display: none; }
.community-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.community-section-heading h3 { margin-top: 2px; }
.community-live-dot { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.community-live-dot i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(54, 212, 125, .1); }
.community-map { min-height: 320px; height: min(52vh, 420px); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #111018; }
.community-map .leaflet-container { width: 100%; height: 100%; font: inherit; }
.community-map .leaflet-control-attribution { font-size: 9px; }
.community-map .leaflet-popup-content-wrapper, .community-map .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
.community-map .leaflet-popup-content { margin: 12px 14px; font-size: 12px; line-height: 1.45; }
.community-map-marker-wrapper { border: 0; background: transparent; }
.community-map-marker { position: relative; display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid var(--marker-status); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 10px; font-weight: 800; box-shadow: 0 4px 12px rgba(0, 0, 0, .38); overflow: visible; }
.community-map-marker img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.community-map-marker > i { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border: 2px solid var(--surface); border-radius: 50%; background: var(--marker-status); }
.community-map-marker.is-current { border-radius: 11px; }
.community-map-marker.is-current > i { display: none; }
.community-feedback { min-height: 17px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.community-feedback.error { color: var(--red); }
.community-feedback.success { color: var(--green); }
.community-location-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.community-add-row input { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; font-size: 14px; color: var(--ink); background: var(--surface-2); }
.community-add-card { border-color: rgba(255, 120, 0, .32); }
.community-add-field input { text-transform: none; letter-spacing: normal; }
.community-add-field:first-child input { text-transform: uppercase; letter-spacing: .08em; }
.community-add-row .primary-action { width: auto; white-space: nowrap; }
.community-list-section { margin-top: 14px; }
.community-list-count { display: grid; min-width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--purple-deep); color: var(--purple-bright); font-weight: 800; }
.community-request-list, .community-friend-list { display: grid; gap: 8px; }
.community-request-item, .community-friend-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid rgba(76, 61, 91, .7); border-radius: 12px; background: rgba(13, 11, 18, .62); }
.community-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.community-person-avatar { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; overflow: hidden; border-radius: 10px; background: var(--purple-deep); color: var(--purple-bright); font-weight: 800; }
.community-person-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.community-person strong, .community-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.community-person strong { color: var(--ink); font-size: 12px; }
.community-person small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.community-person-status { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.community-person-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.community-person-status.working i, .community-person-status.online i { background: var(--green); }
.community-person-status.paused i { background: #f2bd58; }
.community-popup-card { display: grid; min-width: 172px; gap: 5px; }
.community-popup-person { display: flex; align-items: center; gap: 8px; }
.community-popup-person strong { color: var(--ink); font-size: 13px; }
.community-popup-avatar { display: grid; width: 28px; height: 28px; place-items: center; overflow: hidden; border: 2px solid var(--purple-bright); border-radius: 9px; background: var(--purple-deep); color: var(--purple-bright); font-size: 10px; font-weight: 800; }
.community-popup-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.community-popup-status { display: inline-flex; align-items: center; gap: 5px; color: var(--muted-strong); font-size: 11px; font-weight: 700; }
.community-popup-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.community-popup-status.working i, .community-popup-status.online i { background: var(--green); }
.community-popup-status.paused i { background: #f2bd58; }
.community-popup-card small { color: var(--muted); font-size: 10px; }
.community-request-actions { display: flex; gap: 6px; }
.community-request-actions button { padding: 7px 9px; font-size: 10px; }
.community-empty { padding: 16px 4px; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 520px) {
  .community-identity-card, .community-section-heading { align-items: flex-start; }
  .community-identity-card { flex-direction: column; }
  .community-identity-actions { width: 100%; }
  .community-identity-actions button { flex: 1; }
  .community-online-toggle { justify-content: center; }
  .community-add-row { grid-template-columns: 1fr; align-items: stretch; }
  .community-add-row .primary-action { width: 100%; }
  .community-request-item, .community-friend-item { align-items: flex-start; flex-direction: column; }
  .community-request-actions { width: 100%; }
  .community-request-actions button { flex: 1; }
}

@media (max-width: 560px) {
  .planning-goals { grid-template-columns: 1fr; }
  .planning-operation-fields { grid-template-columns: 1fr; }
  .planning-expected-result-grid { grid-template-columns: 1fr; }
  .planning-expected-result-heading { flex-direction: column; }
  .planning-expected-result-heading > span { text-align: left; }
  .vehicle-cost-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planning-chart-summary { grid-template-columns: repeat(2, 1fr); }
  .planning-chart-plot.is-year { gap: 2px; padding-left: 0; padding-right: 0; }
  .planning-chart-plot.is-year .chart-column-bars { gap: 1px; }
  .planning-chart-plot.is-year .chart-bar { width: 4px; }
  .dashboard-revenue-chart-plot { min-height: 164px; gap: 5px; padding-left: 2px; padding-right: 2px; }
  .dashboard-revenue-chart-plot.is-week { gap: 3px; }
  .dashboard-revenue-chart-plot.is-month { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; }
  .dashboard-revenue-chart-plot.is-year { gap: 2px; padding-left: 0; padding-right: 0; }
  .dashboard-chart-column { grid-template-rows: auto 116px auto; gap: 4px; }
  .dashboard-chart-bars { height: 116px; }
  .dashboard-revenue-chart-plot.is-year .dashboard-chart-column-value { display: none; }
  .dashboard-revenue-chart-plot.is-month .dashboard-chart-bar { width: 5px; }
  .dashboard-revenue-chart-plot.is-year .dashboard-chart-bar { width: 5px; }
  .dashboard-chart-column-value { font-size: 8px; }
  .obligation-row { grid-template-columns: 1fr 1fr; }
  .obligation-row label:first-child { grid-column: 1 / -1; }
  .obligation-row label:nth-child(2) { grid-column: 1 / 2; }
  .obligation-row label:nth-child(3) { grid-column: 2 / 3; }
  .obligation-row label:nth-child(4) { grid-column: 1 / -1; }
  .obligation-row [data-obligation-day-field] { grid-column: 1 / 2; }
  .obligation-row [data-obligation-month-field] { grid-column: 2 / 3; }
  .obligation-row .remove-obligation { grid-column: 2 / 3; justify-self: end; }
  .obligation-row .obligation-include { grid-column: 1 / -1; }
  .auth-actions { display: grid; justify-content: stretch; gap: 8px; }
  .platform-row { grid-template-columns: minmax(0, 1fr) minmax(82px, .72fr) 30px; }
  .expense-row { grid-template-columns: minmax(0, 1fr) minmax(92px, .78fr) 30px; }
}

/* Sistema visual 2026: camada de apresentação, sem alterar estrutura ou regras. */
html { scrollbar-color: #5c426c #110e15; scrollbar-width: thin; }
html::-webkit-scrollbar, .page-screen::-webkit-scrollbar, .modal::-webkit-scrollbar { width: 9px; height: 9px; }
html::-webkit-scrollbar-track, .page-screen::-webkit-scrollbar-track, .modal::-webkit-scrollbar-track { background: #110e15; }
html::-webkit-scrollbar-thumb, .page-screen::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb { border: 2px solid #110e15; border-radius: 99px; background: #5c426c; }
html::-webkit-scrollbar-thumb:hover, .page-screen::-webkit-scrollbar-thumb:hover, .modal::-webkit-scrollbar-thumb:hover { background: #79578d; }

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -180px, rgba(141, 50, 210, .16), transparent 420px),
    linear-gradient(180deg, #0b080f 0, var(--bg) 460px);
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}

button { transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, opacity .18s ease; }
button:not(:disabled):active { filter: brightness(.94); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(192, 122, 242, .28); outline-offset: 2px; }
.eyebrow { color: #b7aabd; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.app-shell { max-width: 900px; padding: 24px 20px calc(118px + env(safe-area-inset-bottom)); }
.app-shell main, .topbar { width: min(100%, 700px); }

.topbar { gap: 16px; padding: 7px 3px 12px; }
.topbar > div:first-child { gap: 2px; }
.topbar .eyebrow { color: var(--purple-bright); }
.topbar h1 { margin-top: 3px; font-size: clamp(25px, 5vw, 31px); line-height: 1.12; }
.topbar-subtitle { margin-top: 4px; color: var(--muted); font-size: 12px; }
.avatar {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(145deg, #a347e2, #6f20ae);
  box-shadow: 0 9px 26px rgba(141, 50, 210, .3), inset 0 1px rgba(255, 255, 255, .18);
}

.period-control { gap: 9px; margin: 15px auto 19px; }
.period-navigation {
  padding: 5px;
  border-color: var(--line);
  border-radius: 17px;
  background: rgba(23, 19, 29, .94);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), var(--shadow-soft);
}
.period-navigation .period-chip { min-height: 44px; border-radius: 12px; color: #8e8498; font-size: 12px; }
.period-navigation .period-chip:hover { background: rgba(255, 255, 255, .035); color: var(--ink); }
.period-navigation .period-chip.active {
  background: linear-gradient(135deg, #9e42de, #7d27bd);
  color: #fff;
  box-shadow: 0 7px 18px rgba(141, 50, 210, .28), inset 0 1px rgba(255, 255, 255, .16);
}
.period-date-navigation { min-height: 50px; }
.period-arrow { width: 48px; height: 48px; color: var(--muted); font-size: 28px; }
.period-arrow:hover { background: rgba(255, 255, 255, .045); color: var(--ink); }
.period-date-trigger { min-height: 48px; padding: 7px 14px; border-radius: 12px; font-size: 15px; }
.period-date-trigger:hover { background: var(--surface); color: var(--purple-bright); }

.financial-overview {
  overflow: hidden;
  border-color: rgba(108, 75, 127, .55);
  border-radius: 25px;
  padding: 15px;
  background:
    radial-gradient(circle at 100% 0, rgba(141, 50, 210, .12), transparent 250px),
    linear-gradient(145deg, rgba(26, 20, 33, .99), rgba(15, 12, 20, .99));
  box-shadow: 0 22px 58px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .035);
}
.primary-financial-grid { gap: 10px; }
.primary-financial-card {
  min-height: 148px;
  border-radius: 19px;
  padding: 18px 16px;
  background: var(--finance-soft);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
.primary-financial-card::after { width: 104px; height: 104px; right: -48px; bottom: -52px; opacity: .12; }
.revenue-card {
  min-height: 220px;
  --finance-soft: #0d3220;
  background:
    radial-gradient(circle at 92% 100%, rgba(69, 223, 138, .18), transparent 190px),
    linear-gradient(145deg, #103522, #0d291b);
}
.expenses-card { --finance-soft: #361a22; }
.balance-card { --finance-soft: #291f3b; }
.balance-card.is-positive { --finance-soft: #102f21; }
.balance-card.is-negative { --finance-soft: #351a22; }
.financial-label { margin-top: 1px; color: var(--muted-strong); font-size: 12px; }
.primary-financial-card > strong { margin-top: 7px; font-size: clamp(27px, 5.7vw, 34px); line-height: 1; }
.revenue-card > strong { margin-top: 6px; font-size: clamp(37px, 8vw, 48px); letter-spacing: -.065em; }
.primary-financial-card > small { margin-top: 8px; color: rgba(224, 217, 229, .68); font-size: 10px; }
.goal-inline { gap: 8px; width: min(100%, 390px); margin-top: 18px; padding-top: 14px; }
.goal-inline-top, .goal-inline-bottom { gap: 12px; }
.goal-inline-top strong { font-size: 16px; }
.goal-inline-bottom strong { font-size: 14px; }
.goal-inline-track { height: 8px; background: rgba(255, 255, 255, .11); }
.goal-inline-track span { box-shadow: 0 0 16px rgba(69, 223, 138, .35); }
.goal-inline-bottom em { padding: 4px 8px; }
.financial-context { margin-top: 14px; color: #93889c; font-size: 10px; }
.status-dot { background: var(--green); }

.secondary-metrics { gap: 10px; margin: 15px 0 4px; }
.secondary-metric {
  min-height: 84px;
  gap: 12px;
  border-color: var(--line);
  border-radius: 17px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(25, 20, 31, .98), rgba(18, 15, 23, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.secondary-metric:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-1px); }
.secondary-metric small { color: #a99faf; font-size: 10px; line-height: 1.25; }
.secondary-metric strong { margin-top: 5px; font-size: clamp(16px, 3.5vw, 19px); line-height: 1.05; }
.metric-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }

.profit-goal-card {
  margin-top: 19px;
  border-color: rgba(108, 75, 127, .54);
  border-radius: 23px;
  padding: 19px;
  background:
    radial-gradient(circle at 50% 110%, rgba(141, 50, 210, .14), transparent 48%),
    linear-gradient(145deg, #1a1421, #110e16);
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, .03);
}
.profit-goal-heading h2 { font-size: 20px; }
.profit-goal-period { padding: 5px 10px; background: rgba(255, 255, 255, .035); }
.profit-gauge { width: min(100%, 350px); }
.profit-gauge-track, .profit-gauge-progress { stroke-width: 11; }
.profit-gauge-center strong { font-size: clamp(30px, 7vw, 39px); }
.profit-goal-footer { padding-top: 2px; }

.dashboard-chart-section { gap: 11px; margin-top: 24px; }
.dashboard-chart-section h2 { font-size: 20px; }
.dashboard-revenue-chart-card, .planning-chart-card {
  border-color: var(--line);
  border-radius: 19px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(25, 20, 31, .98), rgba(16, 13, 21, .98));
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, .025);
}
.dashboard-revenue-chart-plot, .planning-chart-plot {
  border-bottom-color: var(--line-strong);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, rgba(255, 255, 255, .045) 44px);
}
.dashboard-chart-bar { border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--purple-bright), var(--purple)); box-shadow: 0 5px 16px rgba(141, 50, 210, .23); }
.dashboard-chart-bar.is-best { background: linear-gradient(180deg, #6af0a6, var(--green)); }
.dashboard-chart-column-value { color: var(--muted-strong); }
.dashboard-revenue-chart-footer { border-top: 1px solid rgba(255, 255, 255, .04); padding-top: 2px; }

.activity-section { margin-top: 26px; }
.activity-list { gap: 8px; }
.activity-day-group + .activity-day-group { margin-top: 18px; }
.activity-day-group h3 { margin: 0 4px 2px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.activity-item {
  min-height: 66px;
  border-color: var(--line);
  border-radius: 16px;
  padding: 12px 13px;
  background: linear-gradient(145deg, rgba(24, 19, 30, .98), rgba(18, 15, 23, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .02);
  transition: border-color .18s ease, background .18s ease;
}
.activity-item:hover { border-color: var(--line-strong); background: var(--surface-2); }
.activity-symbol { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 12px; }
.activity-item strong { font-size: 13px; }
.activity-item .amount { font-size: 14px; }
.activity-action { width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .035); }

.bottom-nav {
  width: min(calc(100% - 16px), 700px);
  min-height: 76px;
  bottom: 0;
  gap: 2px;
  border-color: rgba(90, 65, 104, .68);
  border-radius: 23px 23px 0 0;
  padding: 10px 9px calc(9px + env(safe-area-inset-bottom));
  background: rgba(18, 14, 23, .92);
  box-shadow: 0 -16px 38px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(22px) saturate(140%);
}
.nav-item { min-height: 48px; border-radius: 14px; color: #8e8396; font-size: 10px; font-weight: 600; }
.nav-item:not(.nav-launcher) > span:first-child { display: grid; width: 34px; height: 27px; place-items: center; border-radius: 10px; font-size: 17px; }
.nav-item:not(.nav-launcher).active { color: var(--purple-bright); }
.nav-item:not(.nav-launcher).active > span:first-child { background: rgba(192, 122, 242, .13); color: var(--purple-bright); }
.nav-launcher { color: var(--green); }
.nav-launcher .launcher-icon {
  width: 58px;
  height: 58px;
  margin-top: -27px;
  border: 5px solid #0c0910;
  border-radius: 19px;
  background: linear-gradient(145deg, #5bec9c, #33cd79);
  box-shadow: 0 11px 27px rgba(69, 223, 138, .28), inset 0 1px rgba(255, 255, 255, .28);
}

.page-screen { background: radial-gradient(circle at 50% -160px, rgba(255, 120, 0, .12), transparent 380px), var(--bg); }
.page-screen > .modal { gap: 18px; padding-top: 24px; }
.page-screen > .modal h2 { margin-top: 4px; font-size: clamp(27px, 5vw, 34px); line-height: 1.12; }
.profile-back, .copilot-back {
  min-height: 44px;
  border-color: var(--line);
  border-radius: 13px;
  padding: 10px 13px;
  background: rgba(29, 23, 36, .88);
}
.profile-back:hover, .copilot-back:hover { border-color: var(--purple-bright); background: var(--surface-2); }
.modal {
  border-color: var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(24, 19, 30, .99), rgba(16, 13, 21, .99));
  box-shadow: 0 26px 80px rgba(0, 0, 0, .55), inset 0 1px rgba(255, 255, 255, .03);
}
.modal h2 { line-height: 1.12; }
.modal-intro { color: var(--muted); font-size: 12px; line-height: 1.55; }
.modal label, .auth-form label { gap: 7px; color: var(--muted-strong); font-size: 11px; }
.modal input, .modal select, .auth-form input, .transaction-meta output {
  min-height: 48px;
  border-color: var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #1b1521;
  color: var(--ink);
}
.modal input:hover, .modal select:hover, .auth-form input:hover { border-color: var(--line-strong); }
.modal input:focus, .modal select:focus, .auth-form input:focus { border-color: var(--purple-bright); box-shadow: var(--ring); outline: 0; }
.primary-action, .secondary-action, .danger-action { min-height: 48px; border-radius: 14px; padding: 13px 17px; }
.primary-action { border-color: var(--purple); background: linear-gradient(135deg, #9b3cdb, #7a25b9); box-shadow: 0 10px 24px rgba(141, 50, 210, .26), inset 0 1px rgba(255, 255, 255, .15); }
.primary-action:hover { border-color: var(--purple-bright); background: linear-gradient(135deg, #ad50e7, #892fc8); }
.secondary-action { border-color: #65417d; background: rgba(141, 50, 210, .12); color: var(--purple-bright); }
.secondary-action:hover { border-color: var(--purple-bright); background: rgba(141, 50, 210, .2); }
.danger-action { border-color: var(--red-border); background: rgba(255, 115, 125, .09); }
.text-button { min-height: 40px; padding: 7px 4px; color: var(--purple-bright); font-weight: 700; }

.transaction-modal { gap: 16px; }
.transaction-platforms, .transaction-expenses, .transaction-payments, .metric-preview {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(29, 23, 36, .72);
}
.transaction-payments { border-color: rgba(141, 50, 210, .34); background: rgba(141, 50, 210, .06); }
.platform-row, .expense-row, .payment-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) 44px; gap: 9px; }
.platform-row input, .platform-row select,
.expense-row input, .expense-row select,
.payment-row input, .payment-row select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.platform-row select, .expense-row select, .payment-row select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.remove-platform, .remove-expense, .remove-payment { width: 44px; height: 44px; border-radius: 12px; }
.expense-total { margin-top: 2px; padding-top: 12px; }
.transaction-review-paper { border-color: rgba(192, 122, 242, .28); border-radius: 19px; padding: 17px; background: linear-gradient(145deg, rgba(141, 50, 210, .09), rgba(255, 255, 255, .022)); }
.metric-preview { background: rgba(29, 23, 36, .86); }
.metric-preview-grid { gap: 9px; }
.metric-preview-card { min-height: 68px; border-radius: 13px; padding: 11px; background: rgba(39, 30, 48, .86); }
.metric-preview-card strong { margin-top: 6px; font-size: 16px; }
.transaction-actions { gap: 10px; padding-top: 2px; }

.profile-hero { gap: 3px; }
.profile-access-card, .planning-overview-hero {
  border-color: rgba(108, 75, 127, .55);
  border-radius: 21px;
  background: radial-gradient(circle at 100% 0, rgba(255, 120, 0, .14), transparent 180px), linear-gradient(145deg, #23162f, #15111b);
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, .035);
}
.profile-avatar { border-radius: 15px; background: linear-gradient(145deg, #ff9a24, #e85d00); }
.profile-section-label { color: #aca198; }
.profile-menu-list { gap: 8px; }
.profile-menu-item, .copilot-menu-item {
  min-height: 64px;
  border-color: var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(25, 20, 31, .98), rgba(18, 15, 23, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .022);
}
.profile-menu-item:hover, .copilot-menu-item:hover { border-color: #784b2b; background: var(--surface-2); }
.profile-menu-icon, .copilot-menu-icon { width: 36px; height: 36px; border-radius: 12px; }
.profile-menu-item strong, .copilot-menu-copy strong { font-size: 13px; }
.profile-menu-item small, .copilot-menu-copy small { font-size: 10px; }
.profile-logout-button { min-height: 48px; border: 1px solid rgba(255, 115, 125, .2); border-radius: 14px; padding: 11px 14px; background: rgba(255, 115, 125, .06); }

.planning-overview { gap: 12px; }
.planning-overview-metrics, .planning-trends { gap: 9px; }
.overview-metric, .planning-trends article, .planning-obligations {
  border-color: var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(24, 19, 30, .98), rgba(18, 15, 23, .98));
}
.overview-metric { min-height: 74px; padding: 13px; }
.planning-obligation-row { min-height: 58px; border-radius: 13px; }
.planning-chart-summary > div { border-radius: 13px; padding: 10px; background: rgba(39, 30, 48, .72); }

#copilot-menu-view { gap: 15px; }
#copilot-menu-view .copilot-heading h2 { font-size: 27px; }
#copilot-menu-view .copilot-hero {
  border-color: rgba(69, 223, 138, .32);
  border-radius: 17px;
  padding: 13px 14px;
  background: radial-gradient(circle at 10% 50%, rgba(69, 223, 138, .12), transparent 120px), linear-gradient(145deg, #102a1e, #15111c);
}
.copilot-status { background: rgba(69, 223, 138, .08); }
.copilot-settings-section {
  border-color: var(--line);
  border-radius: 21px;
  padding: 16px;
  background: rgba(21, 17, 26, .86);
}
.copilot-toggle, .copilot-choice, .copilot-voice-preview, .copilot-rule { border-radius: 15px; background: var(--surface); }
.copilot-toggle { min-height: 70px; }
.copilot-toggle-switch { width: 40px; height: 24px; }
.copilot-toggle-switch::after { width: 18px; height: 18px; }
.copilot-toggle input:checked ~ .copilot-toggle-switch::after { transform: translateX(16px); }
.copilot-choice:has(input:checked) { border-color: var(--green-border); background: rgba(69, 223, 138, .08); }
.overfly-preview-card { border-radius: 20px; padding: 12px 0 0; }
.overfly-metric-grid article { min-height: 72px; padding: 9px 8px 10px; }
.overfly-metric-grid article strong { font-size: clamp(21px, 5.6vw, 29px); }

.community-identity-card, .community-add-card, .community-list-section {
  border-color: var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(25, 20, 31, .98), rgba(18, 15, 23, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.community-identity-card { border-color: rgba(255, 120, 0, .48); }
.community-tabs { border-radius: 15px; padding: 5px; background: rgba(21, 17, 26, .88); }
.community-tab { min-height: 44px; border-radius: 11px; }
.community-tab.active { background: var(--purple-soft); box-shadow: inset 0 0 0 1px rgba(255, 154, 36, .35); }
.community-map { border-color: var(--line); border-radius: 18px; background: #111017; box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.community-switch-track { width: 48px; height: 28px; }
.community-switch-track i { width: 20px; height: 20px; }
.community-online-toggle.is-online .community-switch-track i { transform: translateX(20px); }
.community-modal.is-offline > .modal-intro, .community-modal.is-offline > .community-tabs, .community-modal.is-offline > .community-view { filter: grayscale(.45) saturate(.62); opacity: .66; }
.community-modal[data-presence="online"] > .modal-intro, .community-modal[data-presence="online"] > .community-tabs, .community-modal[data-presence="online"] > .community-view { filter: none !important; opacity: 1 !important; }

.auth-screen { background: radial-gradient(circle at 50% 0, rgba(141, 50, 210, .2), transparent 420px), var(--bg); }
.auth-card { border-color: rgba(108, 75, 127, .55); border-radius: 26px; padding: 30px; background: linear-gradient(145deg, rgba(25, 20, 31, .99), rgba(16, 13, 21, .99)); box-shadow: 0 28px 80px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 255, 255, .04); }
.auth-mark { border-radius: 15px; background: linear-gradient(145deg, #a347e2, #7423b3); }
.auth-tabs { border: 1px solid var(--line); border-radius: 14px; padding: 5px; }
.auth-tab { min-height: 42px; border-radius: 10px; }
.auth-tab.active { background: linear-gradient(135deg, #9b3cdb, #7a25b9); }

@media (max-width: 760px) {
  .app-shell { padding: 18px 14px calc(108px + env(safe-area-inset-bottom)); }
  .page-screen { padding-left: 14px; padding-right: 14px; }
  .page-screen > .modal { padding-top: 18px; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; justify-items: stretch; gap: 12px; text-align: left; }
  .topbar > div:first-child { justify-items: start; }
  .topbar > .avatar { justify-self: end; }
  .financial-overview { padding: 12px; }
  .revenue-card { min-height: 210px; }
  .expenses-card, .balance-card { min-height: 150px; }
  .secondary-metric { min-height: 80px; padding: 12px; }
  .profit-goal-card { padding: 16px; }
  .bottom-nav { width: calc(100% - 10px); }
}

@media (max-width: 560px) {
  .topbar h1 { font-size: 25px; }
  .topbar-subtitle { font-size: 11px; }
  .avatar { width: 44px; height: 44px; }
  .period-control { margin-top: 11px; }
  .period-navigation .period-chip { min-height: 42px; padding: 8px 4px; font-size: 11px; }
  .period-arrow { width: 44px; height: 44px; }
  .period-date-trigger { min-height: 44px; font-size: 14px; }
  .primary-financial-grid { gap: 8px; }
  .primary-financial-card { border-radius: 17px; padding: 16px 11px; }
  .revenue-card > strong { font-size: clamp(36px, 11vw, 45px); }
  .expenses-card > strong, .balance-card > strong { font-size: clamp(23px, 6.9vw, 29px); }
  .goal-inline-top { align-items: flex-end; }
  .goal-inline-top span { max-width: 55%; }
  .goal-inline-top strong { font-size: 15px; }
  .secondary-metrics { gap: 8px; }
  .secondary-metric { gap: 9px; min-height: 78px; border-radius: 15px; padding: 11px; }
  .metric-icon { flex-basis: 31px; width: 31px; height: 31px; }
  .secondary-metric strong { font-size: 16px; }
  .profit-gauge { height: 158px; }
  .profit-gauge svg { height: 158px; }
  .profit-gauge-center { top: 69px; }
  .activity-item { gap: 9px; padding: 11px; }
  .activity-actions { gap: 3px; }
  .activity-action { width: 34px; height: 34px; }
  .bottom-nav { padding-left: 4px; padding-right: 4px; }
  .nav-item { font-size: 9px; }
  .nav-launcher .launcher-icon { width: 55px; height: 55px; }
  .form-row { grid-template-columns: 1fr; }
  .platform-row, .expense-row, .payment-row { grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr) 42px; }
  .remove-platform, .remove-expense, .remove-payment { width: 42px; height: 42px; }
  .transaction-platforms, .transaction-expenses, .transaction-payments, .metric-preview { padding: 12px; }
  .profile-menu-item, .copilot-menu-item { min-height: 62px; }
  .copilot-settings-section { padding: 13px; }
  .community-map { min-height: 300px; }
  .auth-screen { padding: 14px; }
  .auth-card { padding: 24px 20px; }
}

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

/* Identidade MetaKM: preto, branco e laranja. */
*::selection { background: rgba(255, 120, 0, .34); color: var(--ink); }
html { scrollbar-color: #784216 #090807; }
html::-webkit-scrollbar-track, .page-screen::-webkit-scrollbar-track, .modal::-webkit-scrollbar-track { background: #090807; }
html::-webkit-scrollbar-thumb, .page-screen::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb { border-color: #090807; background: #784216; }
html::-webkit-scrollbar-thumb:hover, .page-screen::-webkit-scrollbar-thumb:hover, .modal::-webkit-scrollbar-thumb:hover { background: var(--brand); }

body {
  background:
    radial-gradient(circle at 50% -180px, rgba(255, 120, 0, .12), transparent 420px),
    linear-gradient(180deg, #090704 0, var(--bg) 460px);
}
button:focus-visible, input:focus-visible, select:focus-visible { outline-color: rgba(255, 120, 0, .35); }
.eyebrow { color: #c4b9af; }

.auth-wordmark {
  display: block;
  width: min(240px, 76%);
  height: auto;
  margin: 2px 0 24px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(255, 120, 0, .12));
}
.topbar-wordmark { width: 105px; height: auto; margin-bottom: 9px; object-fit: contain; }
.topbar .eyebrow { color: var(--brand-highlight); }
.avatar, .profile-avatar {
  border-color: rgba(255, 154, 36, .28);
  background: linear-gradient(145deg, var(--brand-highlight), var(--brand-pressed));
  color: var(--brand-ink);
  box-shadow: 0 9px 26px rgba(255, 120, 0, .24), inset 0 1px rgba(255, 255, 255, .2);
}

.period-navigation { border-color: var(--line); background: rgba(15, 13, 11, .96); }
.period-navigation .period-chip { color: #958b82; }
.period-navigation .period-chip.active,
.transaction-tab.active,
.auth-tab.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand-highlight), var(--brand));
  color: var(--brand-ink);
  box-shadow: 0 7px 18px rgba(255, 120, 0, .24), inset 0 1px rgba(255, 255, 255, .18);
}
.period-date-trigger:hover { color: var(--brand-highlight); }

.financial-overview {
  border-color: rgba(120, 66, 22, .6);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 120, 0, .08), transparent 250px),
    linear-gradient(145deg, rgba(20, 17, 14, .99), rgba(9, 8, 7, .99));
}
.balance-card { --finance-soft: var(--balance-soft); }
.secondary-metric,
.activity-item,
.dashboard-revenue-chart-card,
.planning-chart-card,
.profile-menu-item,
.copilot-menu-item,
.overview-metric,
.planning-trends article,
.planning-obligations,
.community-identity-card,
.community-add-card,
.community-list-section {
  background: linear-gradient(145deg, rgba(22, 19, 16, .98), rgba(12, 11, 10, .98));
}
.financial-context, .secondary-metric small { color: #a79d94; }
.profit-goal-card {
  border-color: rgba(120, 66, 22, .58);
  background:
    radial-gradient(circle at 50% 110%, rgba(255, 120, 0, .13), transparent 48%),
    linear-gradient(145deg, #17120e, #0b0907);
}
.dashboard-chart-bar { background: linear-gradient(180deg, var(--brand-highlight), var(--brand)); box-shadow: 0 5px 16px rgba(255, 120, 0, .2); }

.bottom-nav {
  border-color: rgba(91, 59, 36, .72);
  background: rgba(10, 9, 8, .94);
}
.nav-item { color: #958b82; }
.nav-item:not(.nav-launcher).active { color: var(--brand-highlight); }
.nav-item:not(.nav-launcher).active > span:first-child { background: rgba(255, 120, 0, .13); color: var(--brand-highlight); }
.nav-launcher { color: var(--brand-highlight); }
.nav-launcher .launcher-icon {
  border-color: #080706;
  background: linear-gradient(145deg, var(--brand-highlight), var(--brand));
  color: var(--brand-ink);
  box-shadow: 0 11px 27px rgba(255, 120, 0, .27), inset 0 1px rgba(255, 255, 255, .3);
}

.page-screen { background: radial-gradient(circle at 50% -160px, rgba(255, 120, 0, .09), transparent 380px), var(--bg); }
.profile-back, .copilot-back { background: rgba(21, 18, 15, .9); }
.modal {
  background: linear-gradient(145deg, rgba(22, 19, 16, .995), rgba(10, 9, 8, .995));
}
.modal input, .modal select, .auth-form input, .transaction-meta output { background: #171411; }
.modal input:focus, .modal select:focus, .auth-form input:focus { border-color: var(--brand-highlight); }
.primary-action {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand-highlight), var(--brand));
  color: var(--brand-ink);
  box-shadow: 0 10px 24px rgba(255, 120, 0, .25), inset 0 1px rgba(255, 255, 255, .18);
}
.primary-action:hover { border-color: #ffad4d; background: linear-gradient(135deg, #ffad4d, #ff8612); }
.secondary-action { border-color: #784216; background: rgba(255, 120, 0, .1); color: var(--brand-highlight); }
.secondary-action:hover { border-color: var(--brand-highlight); background: rgba(255, 120, 0, .18); }
.text-button { color: var(--brand-highlight); }
.transaction-platforms, .transaction-expenses, .transaction-payments, .metric-preview { background: rgba(24, 20, 16, .74); }
.transaction-payments { border-color: rgba(255, 120, 0, .32); background: rgba(255, 120, 0, .055); }
.transaction-review-paper { border-color: rgba(255, 154, 36, .3); background: linear-gradient(145deg, rgba(255, 120, 0, .08), rgba(255, 255, 255, .018)); }
.metric-preview-card, .planning-chart-summary > div { background: rgba(36, 29, 23, .78); }
.activity-item.provisioned,
.copilot-next-step,
.copilot-channel-settings,
.copilot-criteria-summary,
.obligation-row.is-derived {
  border-color: rgba(255, 154, 36, .3);
  background: rgba(255, 120, 0, .055);
}
.activity-status, .profile-status { border-color: rgba(255, 154, 36, .32); }
.copilot-toggle input:focus-visible ~ .copilot-toggle-switch,
.copilot-choice input:focus-visible ~ span { outline-color: rgba(255, 120, 0, .36); }
.vehicle-cost-preview {
  border-color: rgba(255, 154, 36, .3);
  background: linear-gradient(145deg, rgba(47, 27, 11, .76), rgba(18, 15, 12, .76));
}

.profile-access-card, .planning-overview-hero {
  border-color: rgba(120, 66, 22, .58);
  background: radial-gradient(circle at 100% 0, rgba(255, 120, 0, .12), transparent 180px), linear-gradient(145deg, #21170f, #0f0d0b);
}
.profile-section-label { color: #aca198; }
.profile-menu-item:hover, .copilot-menu-item:hover { border-color: #784b2b; }
.copilot-settings-section, .community-tabs { background: rgba(15, 13, 11, .9); }
.copilot-toggle, .copilot-choice, .copilot-voice-preview, .copilot-rule { background: var(--surface); }
.community-identity-card { border-color: rgba(255, 120, 0, .42); }
.community-add-card { border-color: rgba(255, 120, 0, .3); }
.community-tab.active { background: var(--purple-soft); color: var(--brand-highlight); box-shadow: inset 0 0 0 1px rgba(255, 154, 36, .34); }
.community-map { background: #0c0c0c; }

.auth-screen { background: radial-gradient(circle at 50% 0, rgba(255, 120, 0, .16), transparent 420px), var(--bg); }
.auth-card {
  border-color: rgba(120, 66, 22, .58);
  background: linear-gradient(145deg, rgba(21, 18, 15, .995), rgba(9, 8, 7, .995));
}

@media (max-width: 560px) {
  .auth-wordmark { width: min(220px, 78%); margin-bottom: 21px; }
  .topbar-wordmark { width: 96px; margin-bottom: 7px; }
  .launch-card-grid { grid-template-columns: 1fr; }
  .launch-card { min-height: 104px; }
}

/* Refinamento dark: superfícies sólidas e laranja apenas em pontos de ação. */
body,
.auth-screen,
.page-screen {
  background: var(--bg);
}

.auth-brand,
.topbar-brand { display: flex; align-items: center; }
.auth-brand { gap: 8px; margin: 0 0 24px; }
.auth-brand-icon { width: 76px; height: 76px; flex: 0 0 76px; object-fit: contain; }
.auth-wordmark { width: min(210px, 64%); margin: 0; filter: none; }
.topbar-brand { gap: 2px; margin-bottom: 8px; }
.topbar-brand-icon { width: 46px; height: 46px; flex: 0 0 46px; object-fit: contain; }
.topbar-wordmark { width: 96px; margin: 0; }

.auth-card,
.modal {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-card { border-radius: 24px; }
.auth-tabs,
.period-navigation { border-color: var(--line); background: #0d0d0d; box-shadow: none; }
.auth-tab.active,
.period-navigation .period-chip.active,
.transaction-tab.active {
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: none;
}
.avatar,
.profile-avatar {
  background: var(--brand);
  border-color: #ff902e;
  box-shadow: none;
}
.primary-action {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: none;
}
.primary-action:hover { background: var(--brand-highlight); border-color: var(--brand-highlight); }
.secondary-action { background: #141414; border-color: #6d3b12; }
.secondary-action:hover { background: #1c1c1c; }
.nav-launcher .launcher-icon {
  background: var(--brand);
  border-color: #050505;
  box-shadow: none;
}

.financial-overview {
  border-color: #292929;
  background: #090909;
  box-shadow: var(--shadow-soft);
}
.primary-financial-card {
  background: var(--finance-soft);
  box-shadow: none;
}
.primary-financial-card::after { display: none; }
.revenue-card {
  --finance-soft: #082d1c;
  --finance-border: #168f50;
  background: #082d1c;
}
.expenses-card {
  --finance-soft: #3a1218;
  --finance-border: #bd3945;
  background: #3a1218;
}
.balance-card {
  --finance-soft: #171717;
  --finance-border: #3a3a3a;
  background: #171717;
}
.balance-card.is-positive { --finance-soft: #082d1c; --finance-border: #168f50; background: #082d1c; }
.balance-card.is-negative { --finance-soft: #3a1218; --finance-border: #bd3945; background: #3a1218; }
.primary-financial-card > small { color: #d0d0ce; }
.expenses-card .financial-detail { color: #ffd0d3; font-weight: 700; line-height: 1.35; }
.balance-card:not(.is-positive):not(.is-negative) > strong { color: var(--ink); }

.secondary-metric,
.dashboard-revenue-chart-card,
.planning-chart-card,
.activity-item,
.profile-menu-item,
.copilot-menu-item,
.overview-metric,
.planning-trends article,
.planning-obligations,
.community-identity-card,
.community-add-card,
.community-list-section {
  border-color: var(--line);
  background: #0f0f0f;
  box-shadow: none;
}
.secondary-metric:hover,
.activity-item:hover,
.profile-menu-item:hover,
.copilot-menu-item:hover { border-color: var(--line-strong); background: #151515; }
.metric-icon.green { background: #08311d; color: #45e58e; }
.metric-icon.red { background: #3b1218; color: #ff6973; }
.metric-icon.blue { background: #10283a; color: #64c2ff; }
.metric-icon.purple { background: #242424; color: #f7f7f5; }

.profit-goal-card,
.profit-goal-card.is-positive,
.profit-goal-card.is-negative {
  border-color: var(--line);
  background: #0d0d0d;
  box-shadow: var(--shadow-soft);
}
.dashboard-chart-bar { box-shadow: none; }

.activity-item.provisioned {
  border-style: solid;
  border-color: #642c33;
  background: #211316;
}
.activity-item.provisioned .description small { color: #d3b7ba; }
.activity-status { border-color: #8d3c45; color: #ff9299; background: #32171b; }

.bottom-nav {
  border-color: #292929;
  background: #090909;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .42);
  backdrop-filter: none;
}
.nav-item:not(.nav-launcher).active > span:first-child { background: #24170d; }

.profile-back,
.copilot-back,
.modal input,
.modal select,
.auth-form input,
.transaction-meta output { background: #161616; }
.transaction-platforms,
.transaction-expenses,
.transaction-payments,
.metric-preview,
.metric-preview-card,
.planning-chart-summary > div,
.copilot-settings-section,
.community-tabs { background: #111111; }
.transaction-payments,
.transaction-review-paper,
.copilot-next-step,
.copilot-channel-settings,
.copilot-criteria-summary,
.obligation-row.is-derived,
.vehicle-cost-preview {
  border-color: #383838;
  background: #121212;
}
.profile-access-card,
.planning-overview-hero,
#copilot-menu-view .copilot-hero {
  border-color: #303030;
  background: #101010;
  box-shadow: none;
}
.community-identity-card,
.community-add-card { border-color: #303030; }
.community-tab.active { background: #23170d; box-shadow: inset 0 0 0 1px #704019; }
.community-map { background: #080808; }

html { scrollbar-color: #3b3b3b #090909; }
html::-webkit-scrollbar-track,
.page-screen::-webkit-scrollbar-track,
.modal::-webkit-scrollbar-track { background: #090909; }
html::-webkit-scrollbar-thumb,
.page-screen::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb {
  border-color: #090909;
  background: #3b3b3b;
}
html::-webkit-scrollbar-thumb:hover,
.page-screen::-webkit-scrollbar-thumb:hover,
.modal::-webkit-scrollbar-thumb:hover { background: #555555; }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px #161616 inset;
  transition: background-color 9999s ease-out 0s;
}

@media (max-width: 560px) {
  .auth-brand { gap: 3px; margin-bottom: 21px; }
  .auth-brand-icon { width: 68px; height: 68px; flex-basis: 68px; }
  .auth-wordmark { width: min(190px, 62%); margin: 0; }
  .topbar-brand { margin-bottom: 6px; }
  .topbar-brand-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .topbar-wordmark { width: 90px; margin: 0; }
}

/* Dashboard compacto: mais informação útil antes da primeira rolagem. */
.financial-overview {
  padding: 10px;
  border-radius: 20px;
}
.primary-financial-grid { gap: 7px; }
.primary-financial-card {
  min-height: 120px;
  padding: 12px 10px;
  border-radius: 15px;
}
.revenue-card {
  min-height: 176px;
  --finance: #ffffff;
  --finance-soft: #08783f;
  --finance-border: #18b866;
  background: #08783f;
}
.expenses-card {
  --finance: #ffffff;
  --finance-soft: #a92335;
  --finance-border: #ef5668;
  background: #a92335;
}
.balance-card.is-positive {
  --finance: #ffffff;
  --finance-soft: #08783f;
  --finance-border: #18b866;
  background: #08783f;
}
.balance-card.is-negative {
  --finance: #ffffff;
  --finance-soft: #a92335;
  --finance-border: #ef5668;
  background: #a92335;
}
.financial-label { color: rgba(255, 255, 255, .86); font-size: 11px; }
.primary-financial-card > strong {
  margin-top: 4px;
  color: var(--finance);
  font-size: clamp(25px, 5.2vw, 31px);
}
.revenue-card > strong {
  margin-top: 3px;
  color: #ffffff;
  font-size: clamp(34px, 8vw, 40px);
}
.primary-financial-card > small,
.expenses-card small,
.balance-card small {
  margin-top: 6px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.25;
}
.balance-card:not(.is-positive):not(.is-negative) > small { color: #cfcfcd; }
.expenses-card .financial-detail {
  margin-top: 4px;
  color: #ffffff;
  font-size: 9px;
}
.goal-inline {
  gap: 5px;
  margin-top: 10px;
  padding-top: 8px;
  color: rgba(255, 255, 255, .82);
}
.goal-inline-top,
.goal-inline-bottom { gap: 8px; }
.goal-inline-top strong { color: #ffffff; font-size: 13px; }
.goal-inline-bottom,
.goal-inline-bottom strong { color: rgba(255, 255, 255, .9); }
.goal-inline-bottom strong { font-size: 12px; }
.goal-inline-track {
  height: 6px;
  background: rgba(0, 0, 0, .28);
}
.goal-inline-track span { box-shadow: none; }
.goal-inline-bottom em { padding: 2px 6px; }
.financial-context { margin-top: 9px; }
.secondary-metrics { margin-top: 10px; }
.activity-item {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 560px) {
  .app-shell { padding: 12px 14px calc(104px + env(safe-area-inset-bottom)); }
  .topbar { gap: 8px; padding: 2px 3px 6px; }
  .topbar-brand { margin-bottom: 2px; }
  .topbar-brand-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .topbar-wordmark { width: 82px; }
  .topbar h1 { margin-top: 2px; font-size: 23px; }
  .topbar-subtitle { margin-top: 2px; font-size: 10px; }
  .avatar { width: 40px; height: 40px; }
  .period-control { gap: 5px; margin: 8px auto 12px; }
  .period-navigation { padding: 4px; border-radius: 14px; }
  .period-navigation .period-chip { min-height: 38px; padding: 6px 4px; }
  .period-date-navigation { min-height: 42px; }
  .period-arrow { width: 40px; height: 40px; }
  .period-date-trigger { min-height: 40px; padding: 5px 10px; }
  .financial-overview { padding: 8px; border-radius: 18px; }
  .primary-financial-card { min-height: 112px; padding: 10px 8px; }
  .revenue-card { min-height: 164px; }
  .revenue-card > strong { font-size: clamp(33px, 10vw, 39px); }
  .expenses-card > strong,
  .balance-card > strong { font-size: clamp(22px, 6.2vw, 27px); }
  .goal-inline-top { align-items: center; }
  .goal-inline-top span { max-width: 58%; }
  .financial-context { margin-top: 7px; }
}

/* Identidade premium: gradientes saturados, azul financeiro e tipografia editorial. */
html {
  font-family: var(--font-ui);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body,
button,
input,
select,
textarea { font-family: var(--font-ui); }
body { line-height: 1.36; }

h1,
h2,
h3,
h4,
.topbar h1,
.modal h2,
.modal h3,
.section-heading h2,
.profit-goal-heading h2,
.planning-overview-hero h3,
.copilot-hero h3 {
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.eyebrow {
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
}
label,
.financial-label,
.period-chip,
.period-date-trigger,
.nav-item,
.profit-goal-period { font-weight: 700; }
small,
.topbar-subtitle,
.financial-context { line-height: 1.35; }
input,
select,
textarea {
  font-weight: 500;
  letter-spacing: -.01em;
}

.primary-financial-card strong,
.secondary-metric strong,
.profit-gauge-center strong,
.overview-metric strong,
.planning-chart-summary strong,
.metric-preview-card strong,
.ride-counts strong,
.activity-item .amount,
.personal-summary-cards strong,
output,
input[type='number'],
.money-input {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1, 'kern' 1;
}
.primary-financial-card > strong,
.profit-gauge-center strong { font-weight: 800; letter-spacing: -.045em; }
.secondary-metric strong,
.overview-metric strong,
.planning-chart-summary strong { font-weight: 700; letter-spacing: -.025em; }

.revenue-card {
  --finance: #ffffff;
  --finance-soft: #056b39;
  --finance-border: #19bd68;
  background: linear-gradient(135deg, #087a41 0%, #056b39 52%, #034c2a 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .13);
}
.expenses-card {
  --finance: #ffffff;
  --finance-soft: #a6132d;
  --finance-border: #ff4d69;
  background: linear-gradient(135deg, #c81e3a 0%, #a6132d 52%, #6e1020 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .13);
}
.balance-card,
.balance-card.is-positive,
.balance-card.is-negative {
  --finance: #ffffff;
  --finance-soft: #1d4ed8;
  --finance-border: #60a5fa;
  background: linear-gradient(135deg, #2f6fdc 0%, #1d4ed8 52%, #15358f 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .13);
}
.revenue-card > strong,
.expenses-card > strong,
.balance-card > strong,
.balance-card:not(.is-positive):not(.is-negative) > strong { color: #ffffff; }
.revenue-card .financial-label,
.expenses-card .financial-label,
.balance-card .financial-label { color: rgba(255, 255, 255, .88); }
.revenue-card > small,
.expenses-card > small,
.balance-card > small,
.balance-card:not(.is-positive):not(.is-negative) > small { color: rgba(255, 255, 255, .8); }

.goal-inline.is-below-target .goal-inline-bottom em {
  background: var(--kpi-red);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 12px rgba(255, 35, 72, .58);
}
.goal-inline.is-below-target .goal-inline-track span,
.progress-track span.is-below-target {
  background: var(--kpi-red);
  box-shadow: 0 0 12px rgba(255, 35, 72, .72);
}
.profit-goal-card.is-negative .profit-gauge-progress {
  stroke: var(--kpi-red);
  filter: drop-shadow(0 0 4px rgba(255, 35, 72, .72));
}
.profit-goal-card.is-negative .profit-goal-footer b,
.profit-goal-card.is-negative .profit-goal-badge { color: var(--kpi-red); }
.profit-goal-card.is-negative .profit-goal-badge {
  border: 1px solid rgba(255, 35, 72, .42);
  background: rgba(255, 35, 72, .15);
}
.profit-goal-card.is-negative .profit-goal-dot {
  background: var(--kpi-red);
  box-shadow: 0 0 0 3px rgba(255, 35, 72, .18), 0 0 10px rgba(255, 35, 72, .55);
}

/* Controles premium: substituem menus e calendários nativos sem alterar os campos dos formulários. */
.mk-native-control {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
}
.mk-field-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid #383838;
  border-radius: 12px;
  padding: 10px 12px;
  background: #161616;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.mk-field-trigger:hover { border-color: #6a421f; background: #1b1b1b; }
.mk-field-trigger:active { transform: scale(.99); }
.mk-field-trigger:focus-visible {
  border-color: var(--brand);
  outline: 3px solid rgba(255, 120, 0, .2);
  outline-offset: 1px;
}
.mk-field-trigger:disabled { cursor: not-allowed; opacity: .5; }
.mk-field-trigger-value {
  min-width: 0;
  overflow: hidden;
  color: #f3f3f1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-field-trigger-icon {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #242424;
  color: var(--brand-highlight);
  font-size: 16px;
  line-height: 1;
}
.mk-calendar-icon { font-size: 14px; }
.chart-period-control .mk-field-trigger { min-height: 36px; padding: 7px 9px; font-size: 11px; }
.chart-period-control .mk-field-trigger-icon { width: 20px; height: 20px; flex-basis: 20px; font-size: 13px; }

body.mk-picker-open { overflow: hidden; }
.mk-picker-backdrop {
  position: fixed;
  z-index: 12000;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px 14px max(14px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(7px);
}
.mk-picker-backdrop[hidden] { display: none !important; }
.mk-picker-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 440px);
  max-height: min(82vh, 720px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #3b3b3b;
  border-radius: 24px;
  background: #0d0d0d;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .72), inset 0 1px rgba(255, 255, 255, .06);
  animation: mk-picker-enter .2s cubic-bezier(.2, .8, .2, 1);
}
.mk-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #292929;
  padding: 17px 18px 14px;
  background: linear-gradient(180deg, #151515, #0d0d0d);
}
.mk-picker-header h2 { margin: 4px 0 0; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.mk-picker-header .eyebrow { color: var(--brand-highlight); }
.mk-picker-close {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #383838;
  border-radius: 13px;
  background: #191919;
  color: #d9d9d7;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.mk-picker-close:hover { border-color: #6a421f; color: #fff; }
.mk-picker-close:focus-visible,
.mk-choice-option:focus-visible,
.mk-calendar button:focus-visible { outline: 3px solid rgba(255, 120, 0, .28); outline-offset: -3px; }
.mk-picker-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

.mk-choice-list { display: grid; padding: 7px 10px 12px; }
.mk-choice-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid #242424;
  border-radius: 11px;
  padding: 10px 10px 10px 12px;
  background: transparent;
  color: #d7d7d5;
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.mk-choice-option:last-child { border-bottom-color: transparent; }
.mk-choice-option:hover { background: #171717; color: #fff; }
.mk-choice-option[aria-selected='true'] {
  background: linear-gradient(135deg, #2b1a0d, #1b130d);
  color: #fff;
}
.mk-choice-option:disabled { cursor: not-allowed; opacity: .42; }
.mk-choice-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-choice-indicator {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid #4a4a4a;
  border-radius: 50%;
  color: #080808;
  font-size: 15px;
  font-weight: 900;
}
.mk-choice-option[aria-selected='true'] .mk-choice-indicator {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand-highlight), var(--brand));
  box-shadow: 0 0 0 3px rgba(255, 120, 0, .12);
}

.mk-calendar { display: grid; gap: 10px; padding: 14px; }
.mk-calendar-navigation {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
}
.mk-calendar-navigation strong { color: #fff; font-size: 16px; font-weight: 800; text-align: center; text-transform: capitalize; }
.mk-calendar-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #353535;
  border-radius: 13px;
  background: #171717;
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.mk-calendar-arrow:hover { border-color: #6a421f; background: #202020; }
.mk-calendar-weekdays,
.mk-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mk-calendar-weekdays span { padding: 5px 0 2px; color: #858583; font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; }
.mk-calendar-day {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 3px;
  place-items: center;
  min-width: 0;
  min-height: 62px;
  padding: 6px 3px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #dfdfdc;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  cursor: pointer;
}
.mk-calendar-day-number { line-height: 1; }
.mk-calendar-day-value {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  color: #aaa9a5;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  text-align: center;
}
.mk-calendar-day.is-outside .mk-calendar-day-value { color: #555552; }
.mk-calendar-day.is-selected .mk-calendar-day-value { color: #0a0703; }
.mk-calendar-day:hover { border-color: #454545; background: #1a1a1a; }
.mk-calendar-day.is-outside { color: #50504e; }
.mk-calendar-day.is-today { border-color: #704019; color: var(--brand-highlight); }
.mk-calendar-day.is-today::after {
  content: '';
  position: absolute;
  top: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-highlight);
}
.mk-calendar-day.is-selected {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand-highlight), var(--brand));
  color: #0a0703;
  box-shadow: 0 7px 16px rgba(255, 120, 0, .22);
}
.mk-calendar-day.is-selected::after { background: #0a0703; }
.mk-calendar-day:disabled { cursor: not-allowed; opacity: .28; }
.mk-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.mk-calendar-month {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #dfdfdc;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  text-transform: capitalize;
}
.mk-calendar-month:hover { border-color: #454545; background: #1a1a1a; }
.mk-calendar-month.is-today { border-color: #704019; color: var(--brand-highlight); }
.mk-calendar-month.is-selected {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand-highlight), var(--brand));
  color: #0a0703;
  box-shadow: 0 7px 16px rgba(255, 120, 0, .22);
}
.mk-calendar-month:disabled { cursor: not-allowed; opacity: .28; }
.mk-calendar-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; border-top: 1px solid #292929; padding-top: 12px; }
.mk-calendar-actions button {
  min-height: 44px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.mk-calendar-secondary { border: 1px solid #383838; background: #171717; color: #d7d7d5; }
.mk-calendar-primary { border: 1px solid var(--brand); background: linear-gradient(135deg, var(--brand-highlight), var(--brand)); color: #0a0703; }
.mk-calendar-actions button:disabled { cursor: not-allowed; opacity: .42; }

@keyframes mk-picker-enter {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (min-width: 700px) {
  .mk-picker-backdrop { align-items: center; }
}

@media (max-width: 390px) {
  .mk-picker-backdrop { padding-left: 8px; padding-right: 8px; }
  .mk-picker-sheet { border-radius: 21px; }
  .mk-picker-header { padding: 14px; }
  .mk-calendar { padding: 11px; }
  .mk-calendar-weekdays,
  .mk-calendar-days { gap: 2px; }
  .mk-calendar-day { min-height: 58px; border-radius: 10px; font-size: 12px; }
  .mk-calendar-day-value { font-size: 7px; }
  .mk-months { gap: 5px; }
  .mk-calendar-month { min-height: 44px; border-radius: 10px; font-size: 11px; }
}

/* Fluxo de entrada e configuração inicial */
.startup-lock .app-shell,
.startup-lock .bottom-nav,
.startup-lock .page-screen,
.startup-lock .auth-screen { display: none !important; }
.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100dvh;
  overflow: auto;
  padding: max(34px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  background: #050505;
  color: #f7f7f5;
}
.welcome-screen.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: #000;
}
.welcome-screen.is-loading .welcome-glow,
.welcome-screen.is-loading .welcome-wordmark,
.welcome-screen.is-loading .welcome-kicker,
.welcome-screen.is-loading .welcome-content h1,
.welcome-screen.is-loading .welcome-description,
.welcome-screen.is-loading .welcome-benefits,
.welcome-screen.is-loading .welcome-actions,
.welcome-screen.is-loading .welcome-loading { display: none; }
.welcome-screen.is-loading .welcome-content {
  display: grid;
  width: 100%;
  place-items: center;
  margin: 0;
}
.welcome-screen.is-loading .welcome-icon {
  width: clamp(112px, 31vw, 156px);
  filter: none;
}
.welcome-glow {
  position: absolute;
  left: 50%;
  top: 24%;
  width: min(72vw, 430px);
  height: min(72vw, 430px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 125, 20, .12), rgba(255, 125, 20, .025) 44%, transparent 72%);
  pointer-events: none;
}
.welcome-content { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: min(100%, 520px); margin: auto; text-align: center; }
.welcome-icon { width: clamp(112px, 32vw, 160px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .48)); }
.welcome-wordmark { width: min(76%, 310px); margin-top: 20px; object-fit: contain; }
.welcome-kicker { margin: 28px 0 9px; color: #ff941f; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.welcome-content h1 { max-width: 440px; margin: 0; font-size: clamp(29px, 8vw, 44px); line-height: 1.02; letter-spacing: -.055em; }
.welcome-description { max-width: 430px; margin: 18px auto 0; color: #a9a9a6; font-size: 14px; line-height: 1.65; }
.welcome-benefits { display: grid; width: min(100%, 410px); gap: 8px; margin-top: 28px; text-align: left; }
.welcome-benefits span { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid #242424; border-radius: 14px; background: #0c0c0c; color: #d8d8d5; font-size: 12px; font-weight: 700; }
.welcome-benefits i { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: #19130d; color: #ff941f; font-size: 9px; font-style: normal; letter-spacing: .06em; }
.welcome-actions { position: relative; display: grid; width: min(100%, 420px); gap: 12px; margin: 30px auto 0; }
.welcome-actions .primary-action { width: 100%; }
.welcome-actions .text-button { min-height: 44px; color: #b8b8b5; font-weight: 700; }
.welcome-loading { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 30px auto 0; color: #777774; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.welcome-loading span { width: 8px; height: 8px; border-radius: 50%; background: #ff8a15; box-shadow: 0 0 0 5px rgba(255, 138, 21, .08); animation: welcome-pulse 1.2s ease-in-out infinite; }
@keyframes welcome-pulse { 50% { opacity: .45; transform: scale(.78); } }

.auth-screen { min-height: 100dvh; padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom)); background: #050505; }
.auth-card { width: min(100%, 430px); border-color: #2c2c2b; background: #0b0b0b; box-shadow: 0 28px 80px rgba(0, 0, 0, .58); }
.auth-card h1 { color: #f7f7f5; }
.auth-subtitle { color: #9e9e9b; }
.google-auth-block { display: grid; gap: 8px; margin: 14px 0 0; }
.google-button { display: flex; justify-content: center; min-height: 44px; }
.google-button-fallback { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 46px; border: 1px solid #353535; border-radius: 13px; background: #121212; color: #d6d6d3; font-size: 13px; font-weight: 800; }
.google-button-fallback:disabled { cursor: not-allowed; opacity: .72; }
.google-g { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #4285f4; font-size: 14px; font-weight: 900; }
.google-status { min-height: 16px; margin: 0; color: #7f7f7c; font-size: 10px; text-align: center; }
.google-status.error { color: #ff5a62; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: #686866; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: #252525; }
.auth-divider span { white-space: nowrap; }

.onboarding-backdrop { z-index: 20; align-items: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); background: rgba(0, 0, 0, .88); }
.onboarding-modal { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; width: min(100%, 620px); max-height: calc(100dvh - 24px); overflow: hidden; padding: 0; border: 1px solid #2d2d2c; border-radius: 26px; background: #0b0b0b; box-shadow: 0 32px 100px rgba(0, 0, 0, .72); }
.onboarding-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 24px 13px; }
.onboarding-header h2 { margin: 7px 0 0; font-size: 24px; letter-spacing: -.045em; }
.onboarding-step-label { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #3b2a1b; border-radius: 999px; background: #17110b; color: #ff941f; font-size: 10px; font-weight: 800; }
.onboarding-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; padding: 0 24px 16px; }
.onboarding-progress span { height: 3px; border-radius: 99px; background: #292929; transition: background .2s ease, transform .2s ease; }
.onboarding-progress span.active { background: #ff8a15; }
.onboarding-step { overflow: auto; padding: 4px 24px 8px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.onboarding-step-copy { display: flex; align-items: center; gap: 13px; margin: 3px 0 20px; }
.onboarding-step-copy h3 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.onboarding-step-copy p { margin: 3px 0 0; color: #8d8d8a; font-size: 12px; }
.onboarding-step-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid #4b3017; border-radius: 13px; background: #1a120b; color: #ff941f; font-size: 11px; font-weight: 900; }
.onboarding-step > label, .onboarding-conditional > label { display: grid; gap: 7px; margin-bottom: 14px; color: #c6c6c2; font-size: 11px; font-weight: 700; }
.onboarding-step input, .onboarding-step select { min-height: 48px; border-color: #313131; background: #121212; color: #f4f4f1; }
.onboarding-step input:focus, .onboarding-step select:focus { border-color: #ff8a15; box-shadow: 0 0 0 3px rgba(255, 138, 21, .09); outline: none; }
.onboarding-conditional { padding: 14px; margin-bottom: 14px; border: 1px solid #292929; border-radius: 16px; background: #0e0e0e; }
.onboarding-cost-preview { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 2px 0 16px; padding: 15px; border: 1px solid #244737; border-radius: 15px; background: #0d1712; }
.onboarding-cost-preview span { color: #9dafa5; font-size: 11px; }
.onboarding-cost-preview strong { color: #33dc83; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.onboarding-note { margin: 6px 0 0; padding: 12px 14px; border-left: 2px solid #ff8a15; background: #11100f; color: #8e8e8b; font-size: 11px; line-height: 1.5; }
.onboarding-ready-card { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 16px; border: 1px solid #3c2a19; border-radius: 17px; background: #15110d; }
.onboarding-ready-card img { width: 48px; height: 48px; border-radius: 13px; }
.onboarding-ready-card div { display: grid; gap: 4px; }
.onboarding-ready-card span { color: #9e9e9a; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.onboarding-ready-card strong { color: #f4f4f1; font-size: 13px; line-height: 1.45; }
.onboarding-feedback { min-height: 18px; margin: 4px 24px 0; color: #ff5a62; font-size: 11px; }
.onboarding-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 24px 22px; border-top: 1px solid #222; }
.onboarding-actions .primary-action { grid-column: 2; width: 100%; }
.onboarding-actions .secondary-action { min-width: 104px; }

@media (max-width: 520px) {
  .welcome-screen { padding-left: 18px; padding-right: 18px; }
  .welcome-benefits { margin-top: 22px; }
  .auth-card { padding: 24px 20px; border-radius: 22px; }
  .onboarding-modal { max-height: calc(100dvh - 12px); border-radius: 22px; }
  .onboarding-header { padding: 20px 18px 12px; }
  .onboarding-header h2 { font-size: 21px; }
  .onboarding-progress { padding: 0 18px 14px; }
  .onboarding-step { padding: 4px 18px 8px; }
  .onboarding-step .form-row { grid-template-columns: 1fr 1fr; gap: 9px; }
  .onboarding-feedback { margin-left: 18px; margin-right: 18px; }
  .onboarding-actions { padding: 11px 18px 18px; }
}

/* Fluxo de lanÃ§amento: aÃ§Ã£o Ãºnica, hierarquia curta e leitura de tela escura. */
#transactions-modal.page-screen {
  display: grid;
  place-items: center;
  padding: max(14px, env(safe-area-inset-top)) 12px max(90px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .84);
}
#transactions-modal.page-screen > .transaction-modal {
  width: min(100%, 430px);
  min-height: 0;
  max-height: calc(100dvh - 28px);
  margin: 0;
  overflow-y: auto;
  border: 1px solid #2d2d2d;
  border-radius: 26px;
  padding: 20px 18px 17px;
  background: #0b0b0b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .72), inset 0 1px rgba(255, 255, 255, .035);
}
#transaction-form.single-flow,
#work-session-form.day-flow {
  gap: 13px;
}
#transaction-form.single-flow > h2,
#work-session-form.day-flow > h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #f5f5f2;
  font-size: 18px;
  letter-spacing: -.035em;
}
#transaction-form.single-flow > h2::before,
#work-session-form.day-flow > h2::before {
  content: '';
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 7px;
  background: #17120d url('assets/brand/metakm-app-icon.png') center / 17px 17px no-repeat;
}
#transaction-form.single-flow > .modal-intro,
#work-session-form.day-flow > .modal-intro {
  min-height: 1px;
  margin: 0 0 3px;
  padding-top: 13px;
  border-top: 1px solid #252525;
  color: #7d7d79;
  font-size: 11px;
  line-height: 1.45;
}
#transaction-form.single-flow .transaction-meta { display: none; }
#transaction-form.single-flow .transaction-value-field {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin: 7px 0 11px;
  color: #767672;
  text-align: center;
}
#transaction-form.single-flow .transaction-value-field > span {
  color: #767672;
  font-size: 10px;
  font-weight: 600;
}
#transaction-form.single-flow .transaction-value-field input {
  width: 100%;
  min-height: 54px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #f5f5f2;
  font-size: clamp(31px, 10vw, 42px);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1;
  text-align: center;
  box-shadow: none;
}
#transaction-form.single-flow .transaction-value-field input::placeholder { color: rgba(245, 245, 242, .34); opacity: 1; }
#transaction-form.single-flow .transaction-value-field input:focus::placeholder { color: transparent; opacity: 0; }
#transaction-form.single-flow .transaction-value-field input:focus { border: 0; box-shadow: none; outline: 0; }
#transaction-form.single-flow .transaction-payments {
  display: grid;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
}
#transaction-form.single-flow .transaction-payments .section-heading { margin: 0; }
#transaction-form.single-flow .transaction-payments .section-heading .text-button { display: none; }
#transaction-form.single-flow .transaction-payments .eyebrow { color: #7d7d79; font-size: 10px; }
.transaction-payment-choices { display: none; }
#transaction-form.single-flow .transaction-payment-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.payment-choice {
  min-height: 40px;
  border: 1px solid #292929;
  border-radius: 11px;
  padding: 9px 8px;
  background: #111;
  color: #858581;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.payment-choice:hover,
.payment-choice.active {
  border-color: #f07a12;
  background: #241507;
  color: #ff9a24;
}
#transaction-form.single-flow .payment-rows { display: none; }
#transaction-form.single-flow .transaction-note-field {
  gap: 6px;
  color: #898985;
  font-size: 10px;
}
#transaction-form.single-flow .transaction-note-field input {
  min-height: 42px;
  border-color: #252525;
  border-radius: 11px;
  background: #111;
  font-size: 12px;
}
#transaction-form.single-flow .transaction-actions,
#work-session-form.day-flow .transaction-actions {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}
#transaction-form.single-flow .transaction-actions .primary-action,
#work-session-form.day-flow .transaction-actions .primary-action {
  order: 1;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff941f, #ff7200);
  color: #120b04;
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}
#transaction-form.single-flow .transaction-actions #transaction-close,
#work-session-form.day-flow .transaction-actions [data-close] {
  order: 2;
  min-height: 30px;
  border: 0;
  padding: 5px;
  background: transparent;
  color: #696965;
  font-size: 10px;
}
#transaction-form.single-flow .transaction-actions #transaction-close:hover,
#work-session-form.day-flow .transaction-actions [data-close]:hover { color: #b4b4b0; }
#transaction-form.single-flow .transaction-feedback { margin: 0; font-size: 11px; text-align: center; }

#transaction-form.single-flow .transaction-expenses {
  display: grid;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
}
#transaction-form.single-flow .transaction-expenses .section-heading { margin: 0; }
#transaction-form.single-flow .transaction-expenses .section-heading .eyebrow { color: #7d7d79; font-size: 10px; }
#transaction-form.single-flow .expense-row {
  grid-template-columns: minmax(0, 1fr) minmax(120px, .9fr) 34px;
  gap: 7px;
  padding: 10px;
  border: 1px solid #292929;
  border-radius: 14px;
  background: #111;
}
#transaction-form.single-flow .expense-row label { gap: 5px; font-size: 10px; }
#transaction-form.single-flow .expense-row input,
#transaction-form.single-flow .expense-row select {
  min-height: 42px;
  border-color: #252525;
  border-radius: 10px;
  background: #171717;
}
#transaction-form.single-flow .expense-row label:nth-child(2) input {
  color: #f5f5f2;
  font-size: 17px;
  font-weight: 800;
  text-align: right;
}
#transaction-form.single-flow .expense-total {
  border-top-color: #292929;
  color: #858581;
}
#transaction-form.single-flow .expense-total strong { color: #ff747a; }

#work-session-modal {
  padding: max(14px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .84);
}
#work-session-form.day-flow {
  width: min(100%, 430px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  border: 1px solid #2d2d2d;
  border-radius: 26px;
  padding: 20px 18px 17px;
  background: #0b0b0b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .72), inset 0 1px rgba(255, 255, 255, .035);
}
#work-session-form.day-flow .work-session-date-field {
  display: grid;
  gap: 6px;
  color: #7d7d79;
  font-size: 10px;
}
#work-session-form.day-flow .work-session-date-field input {
  min-height: 42px;
  border-color: #252525;
  border-radius: 11px;
  background: #111;
  font-size: 12px;
}
#work-session-form.day-flow .work-session-form-row { gap: 8px; }
#work-session-form.day-flow .work-session-metric {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #292929;
  border-radius: 14px;
  background: #111;
  color: #7d7d79;
  font-size: 10px;
}
#work-session-form.day-flow .work-session-metric input {
  min-height: 43px;
  border-color: #252525;
  border-radius: 10px;
  background: #171717;
  color: #f5f5f2;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
}
#work-session-form.day-flow .work-session-trips-field { margin-top: 0; }
#work-session-form.day-flow .work-session-feedback { text-align: center; }

@media (max-width: 520px) {
  #transactions-modal.page-screen { padding-left: 9px; padding-right: 9px; }
  #transactions-modal.page-screen > .transaction-modal,
  #work-session-form.day-flow { border-radius: 22px; }
  #transaction-form.single-flow .transaction-value-field input { font-size: clamp(29px, 11vw, 38px); }
}

/* Dados financeiros da entrada e distribuição das viagens do dia. */
#transaction-form.single-flow .transaction-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0 0 2px;
  order: 1;
}
#transaction-form.single-flow .transaction-meta label:nth-child(2) { display: none; }
#transaction-form.single-flow .transaction-meta label {
  gap: 6px;
  color: #7d7d79;
  font-size: 10px;
}
#transaction-form.single-flow .transaction-meta input {
  min-height: 42px;
  border-color: #252525;
  border-radius: 11px;
  background: #111;
  font-size: 12px;
}
#transaction-form.single-flow .transaction-single-platform {
  display: grid;
  gap: 6px;
  color: #7d7d79;
  font-size: 10px;
  order: 2;
}
#transaction-form.single-flow .transaction-single-platform select {
  min-height: 42px;
  border-color: #252525;
  border-radius: 11px;
  background: #111;
  color: #f5f5f2;
  font-size: 12px;
}
#transaction-form.single-flow .transaction-value-field { order: 3; }
#transaction-form.single-flow .transaction-note-field { order: 4; }
#transaction-form.single-flow .transaction-payments { order: 5; }
#transaction-form.single-flow .transaction-actions { order: 6; }
#transaction-form.single-flow .transaction-feedback { order: 7; }
#work-session-form.day-flow .work-session-platforms {
  display: grid;
  gap: 8px;
  margin-top: 1px;
}
#work-session-form.day-flow .work-session-platforms .section-heading {
  align-items: start;
  margin: 0;
}
#work-session-form.day-flow .work-session-platforms .section-heading h3 {
  margin: 2px 0 0;
  color: #e9e9e5;
  font-size: 13px;
  letter-spacing: -.02em;
}
#work-session-form.day-flow .work-session-platforms .field-hint {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.35;
}
#work-session-form.day-flow .work-session-platform-rows {
  display: grid;
  gap: 8px;
}
#work-session-form.day-flow .work-session-platform-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) 30px;
  gap: 7px;
  align-items: end;
  padding: 9px;
  border: 1px solid #292929;
  border-radius: 14px;
  background: #111;
}
#work-session-form.day-flow .work-session-platform-row label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #7d7d79;
  font-size: 10px;
}
#work-session-form.day-flow .work-session-platform-row input,
#work-session-form.day-flow .work-session-platform-row select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border-color: #252525;
  border-radius: 10px;
  background: #171717;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#work-session-form.day-flow .work-session-platform-row input {
  color: #f5f5f2;
  font-size: 18px;
  font-weight: 800;
  text-align: right;
}
#work-session-form.day-flow .remove-work-session-platform {
  width: 30px;
  height: 30px;
  border: 1px solid #302424;
  border-radius: 9px;
  background: #171313;
  color: #a57474;
  font: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
#work-session-form.day-flow .remove-work-session-platform:disabled {
  opacity: .32;
  cursor: default;
}
#work-session-form.day-flow .work-session-platforms .text-button {
  white-space: nowrap;
}

@media (max-width: 380px) {
  #work-session-form.day-flow .work-session-platform-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) 28px;
    gap: 5px;
    padding: 7px;
  }
  #work-session-form.day-flow .work-session-platform-row input,
  #work-session-form.day-flow .work-session-platform-row select { padding-left: 8px; padding-right: 8px; }
}

/* Privacidade e consentimento mantêm leitura confortável mesmo com os estilos
   gerais de formulário e em telas estreitas. */
.auth-form label.auth-consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.45; font-weight: 500; }
.auth-form label.auth-consent input[type="checkbox"] { flex: 0 0 16px; width: 16px; min-height: 16px; height: 16px; margin: 1px 0 0; padding: 0; accent-color: var(--purple-bright); }
.auth-form label.auth-consent a { color: var(--purple-bright); font-weight: 700; }
@media (max-width: 520px) {
  .legal-document-header, .privacy-panel-heading { display: grid; gap: 9px; }
  .legal-document-version { justify-self: start; }
  .privacy-public-link { justify-self: start; }
}

.copilot-rides-date-field { display: grid; gap: 7px; max-width: 220px; margin: 16px 0 8px; color: var(--muted-strong); font-size: 11px; font-weight: 700; }
.copilot-rides-date-field input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; background: var(--surface-2); color: var(--ink); font: inherit; }
.captured-rides-summary { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 8px; margin: 2px 0 8px; }
.captured-rides-summary > div { display: grid; gap: 3px; min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 10px 11px; background: var(--surface-2); }
.captured-rides-summary span { color: var(--muted); font-size: 10px; }
.captured-rides-summary strong { overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.copilot-rides-feedback { min-height: 17px; margin: 7px 0 10px; color: var(--green); font-size: 11px; }
.copilot-rides-feedback.error { color: var(--red); }
.captured-rides-list { display: grid; gap: 10px; }
.captured-ride-card { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 15px; padding: 13px; background: var(--surface); transition: border-color .2s ease, background .2s ease; }
.captured-ride-card.accepted { border-color: rgba(54, 212, 125, .55); background: linear-gradient(135deg, rgba(18, 56, 39, .82), var(--surface)); }
.captured-ride-card.rejected { background: var(--surface); }
.captured-ride-card.pending { border-color: rgba(255, 120, 0, .34); }
.captured-ride-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.captured-ride-heading > div { display: grid; gap: 2px; min-width: 0; }
.captured-ride-platform { display: flex !important; grid-template-columns: none; align-items: center; gap: 9px; }
.captured-ride-platform-logo { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: #222; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: -.04em; }
.captured-ride-platform-logo.platform-uber { background: #f5f5f5; color: #111; }
.captured-ride-platform-logo.platform-99 { background: #e91e63; color: #fff; }
.captured-ride-platform-logo.platform-ifood { background: #ea1d2c; color: #fff; }
.captured-ride-platform-logo.platform-rappi { background: #ff5a1f; color: #fff; }
.captured-ride-platform-logo.platform-indrive { background: #b9e937; color: #162000; }
.captured-ride-platform-logo.platform-lalamove { background: #ff7a00; color: #fff; }
.captured-ride-heading strong { overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.captured-ride-heading small { color: var(--muted); font-size: 10px; }
.captured-ride-status { flex: 0 0 auto; border: 1px solid rgba(255, 120, 0, .34); border-radius: 999px; padding: 4px 8px; color: var(--purple-bright); font-size: 9px; font-weight: 800; }
.captured-ride-card.accepted .captured-ride-status { border-color: rgba(54, 212, 125, .4); color: var(--green); }
.captured-ride-card.rejected .captured-ride-status { border-color: rgba(201, 193, 210, .3); color: var(--muted-strong); }
.captured-ride-details { margin: 8px 0 0; color: var(--muted-strong); font-size: 12px; font-weight: 700; }
.captured-ride-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.captured-ride-action { min-height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted-strong); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.captured-ride-action:hover { border-color: var(--purple-bright); color: var(--ink); }
.captured-ride-action.is-active[data-captured-ride-status="accepted"] { border-color: var(--green-border); background: var(--green-soft); color: var(--green); }
.captured-ride-action.is-active[data-captured-ride-status="rejected"] { border-color: #6a626e; background: #26222a; color: var(--ink); }
@media (min-width: 640px) {
  .captured-ride-card { grid-template-columns: minmax(0, 1fr) 215px; align-items: center; }
  .captured-ride-actions { align-self: end; }
}

/* A tonalidade acompanha o percentual da meta: vermelho, laranja, amarelo e verde. */
.goal-inline,
.goal-card,
.profit-goal-card {
  --goal-progress-color: var(--green);
  --goal-progress-soft: rgba(69, 229, 142, .16);
  --goal-progress-shadow: rgba(69, 229, 142, .46);
}
.goal-inline .goal-inline-bottom em {
  background: var(--goal-progress-soft) !important;
  color: var(--goal-progress-color) !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 12px var(--goal-progress-shadow) !important;
}
.goal-inline .goal-inline-track span,
.goal-card .progress-track span,
#dashboard-goal-bar,
#progress-bar {
  background: var(--goal-progress-color) !important;
  box-shadow: 0 0 12px var(--goal-progress-shadow) !important;
  transition: width .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.profit-goal-card #profit-goal-progress {
  stroke: var(--goal-progress-color) !important;
  filter: drop-shadow(0 0 4px var(--goal-progress-shadow)) !important;
}
.profit-goal-card .profit-goal-footer b {
  color: var(--goal-progress-color) !important;
}
.profit-goal-card .profit-goal-dot {
  background: var(--goal-progress-color) !important;
  box-shadow: 0 0 0 3px var(--goal-progress-soft), 0 0 10px var(--goal-progress-shadow) !important;
}
.profit-goal-footer .profit-goal-configure { min-height: 0; padding: 2px 0; font-size: 10px; line-height: 1.2; }

/* Phosphor local: um Ãºnico desenho de Ã­cones, sem depender de glifos da fonte. */
[data-icon] {
  --ph-size: 18px;
  font-size: 0 !important;
  line-height: 1;
}
[data-icon]::before {
  content: '';
  display: block;
  width: var(--ph-size);
  height: var(--ph-size);
  background: currentColor;
  -webkit-mask: var(--ph-icon) center / contain no-repeat;
  mask: var(--ph-icon) center / contain no-repeat;
}
[data-icon='house'] { --ph-icon: url('assets/icons/phosphor/regular/house.svg'); }
[data-icon='map-trifold'] { --ph-icon: url('assets/icons/phosphor/regular/map-trifold.svg'); }
[data-icon='plus'] { --ph-icon: url('assets/icons/phosphor/regular/plus.svg'); }
[data-icon='robot'] { --ph-icon: url('assets/icons/phosphor/regular/robot.svg'); }
[data-icon='list'] { --ph-icon: url('assets/icons/phosphor/regular/list.svg'); }
[data-icon='trend-up'] { --ph-icon: url('assets/icons/phosphor/regular/trend-up.svg'); }
[data-icon='trend-down'] { --ph-icon: url('assets/icons/phosphor/regular/trend-down.svg'); }
[data-icon='road-horizon'] { --ph-icon: url('assets/icons/phosphor/regular/road-horizon.svg'); }
[data-icon='gauge'] { --ph-icon: url('assets/icons/phosphor/regular/gauge.svg'); }
[data-icon='camera'] { --ph-icon: url('assets/icons/phosphor/regular/camera.svg'); }
[data-icon='ticket'] { --ph-icon: url('assets/icons/phosphor/regular/ticket.svg'); }
[data-icon='car'] { --ph-icon: url('assets/icons/phosphor/regular/car.svg'); }
[data-icon='percent'] { --ph-icon: url('assets/icons/phosphor/regular/percent.svg'); }
[data-icon='clock'] { --ph-icon: url('assets/icons/phosphor/regular/clock.svg'); }
[data-icon='receipt'] { --ph-icon: url('assets/icons/phosphor/regular/receipt.svg'); }
[data-icon='target'] { --ph-icon: url('assets/icons/phosphor/regular/target.svg'); }
[data-icon='wallet'] { --ph-icon: url('assets/icons/phosphor/regular/wallet.svg'); }
[data-icon='calendar-blank'] { --ph-icon: url('assets/icons/phosphor/regular/calendar-blank.svg'); }
[data-icon='lock-key'] { --ph-icon: url('assets/icons/phosphor/regular/lock-key.svg'); }
[data-icon='file-text'] { --ph-icon: url('assets/icons/phosphor/regular/file-text.svg'); }
[data-icon='shield-check'] { --ph-icon: url('assets/icons/phosphor/regular/shield-check.svg'); }
[data-icon='map-pin'] { --ph-icon: url('assets/icons/phosphor/regular/map-pin.svg'); }
[data-icon='download-simple'] { --ph-icon: url('assets/icons/phosphor/regular/download-simple.svg'); }
[data-icon='trash'] { --ph-icon: url('assets/icons/phosphor/regular/trash.svg'); }
[data-icon='bell'] { --ph-icon: url('assets/icons/phosphor/regular/bell.svg'); }
[data-icon='sliders-horizontal'] { --ph-icon: url('assets/icons/phosphor/regular/sliders-horizontal.svg'); }
[data-icon='speaker-high'] { --ph-icon: url('assets/icons/phosphor/regular/speaker-high.svg'); }
[data-icon='device-mobile-speaker'] { --ph-icon: url('assets/icons/phosphor/regular/device-mobile-speaker.svg'); }
[data-icon='microphone'] { --ph-icon: url('assets/icons/phosphor/regular/microphone.svg'); }
[data-icon='notification'] { --ph-icon: url('assets/icons/phosphor/regular/notification.svg'); }
[data-icon='x'] { --ph-icon: url('assets/icons/phosphor/regular/x.svg'); }
[data-icon='caret-right'] { --ph-icon: url('assets/icons/phosphor/regular/caret-right.svg'); }
[data-icon='caret-down'] { --ph-icon: url('assets/icons/phosphor/regular/caret-down.svg'); }
[data-icon='caret-left'] { --ph-icon: url('assets/icons/phosphor/regular/caret-left.svg'); }
[data-icon='check'] { --ph-icon: url('assets/icons/phosphor/regular/check.svg'); }
[data-icon='arrow-counter-clockwise'] { --ph-icon: url('assets/icons/phosphor/regular/arrow-counter-clockwise.svg'); }
[data-icon='navigation-arrow'] { --ph-icon: url('assets/icons/phosphor/regular/navigation-arrow.svg'); }
[data-icon='dots-three'] { --ph-icon: url('assets/icons/phosphor/regular/dots-three.svg'); }
[data-icon='user-plus'] { --ph-icon: url('assets/icons/phosphor/regular/user-plus.svg'); }

.metric-icon[data-icon],
.profile-menu-icon[data-icon],
.copilot-menu-icon[data-icon],
.copilot-toggle-icon[data-icon],
.launch-card-icon[data-icon],
.activity-symbol[data-icon],
.mk-field-trigger-icon[data-icon] { display: grid; place-items: center; }
.metric-icon[data-icon] { --ph-size: 17px; }
.nav-item > [data-icon] { --ph-size: 19px; }
.nav-launcher .launcher-icon[data-icon] { --ph-size: 25px; }
.profile-menu-icon[data-icon],
.copilot-menu-icon[data-icon] { --ph-size: 18px; }
.copilot-toggle-icon[data-icon],
.launch-card-icon[data-icon] { --ph-size: 20px; }
.modal-close[data-icon] { --ph-size: 18px; display: grid; place-items: center; }
.copilot-menu-chevron[data-icon],
.mk-calendar-arrow[data-icon],
.mk-choice-indicator[data-icon],
.trend-icon[data-icon] { display: grid; place-items: center; }
.copilot-menu-chevron[data-icon],
.mk-calendar-arrow[data-icon] { --ph-size: 16px; }
.mk-choice-indicator[data-icon] { --ph-size: 15px; }
.trend-icon[data-icon] { --ph-size: 18px; }
.community-popup-location [data-icon] { --ph-size: 13px; display: inline-grid; margin-right: 4px; vertical-align: -2px; }

/* Resultado consolidado mantém a cor ligada ao estado já calculado pelo app. */
.balance-card {
  --finance: #ffffff;
  --finance-soft: #1d4ed8;
  --finance-border: #60a5fa;
  background: linear-gradient(135deg, #2f6fdc 0%, #1d4ed8 52%, #15358f 100%);
}
.balance-card.is-positive {
  --finance: #ffffff;
  --finance-soft: #056b39;
  --finance-border: #19bd68;
  background: linear-gradient(135deg, #087a41 0%, #056b39 52%, #034c2a 100%);
}
.balance-card.is-negative {
  --finance: #ffffff;
  --finance-soft: #a6132d;
  --finance-border: #ff4d69;
  background: linear-gradient(135deg, #c81e3a 0%, #a6132d 52%, #6e1020 100%);
}

/* Legibilidade para consulta rápida; o Overfly mantém sua microtipografia própria. */
.topbar-subtitle,
.secondary-metric small,
.community-person small,
.community-person-status,
.community-live-dot,
.community-add-field { font-size: 12px; }
.nav-item { font-size: 10px; }
@media (max-width: 560px) {
  .topbar-subtitle { font-size: 11px; }
  .nav-item { font-size: 10px; }
  .revenue-card { min-height: 156px; }
}

/* Copiloto: nova central de jornada e recursos. */
.copilot-home-v2 { display: grid; gap: 18px; }
.copilot-home-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.copilot-home-header > div { min-width: 0; }
.copilot-home-header .eyebrow { margin-bottom: 4px; }
.copilot-home-header h2 { margin: 0; font-size: clamp(29px, 5.2vw, 42px); line-height: 1.05; letter-spacing: -.055em; }
.copilot-home-availability { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 34px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: rgba(20, 22, 21, .92); color: #8de8bb; font-size: 11px; font-weight: 800; }
.copilot-home-availability i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(54, 212, 125, .1); }

.copilot-journey-hero { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: center; gap: 10px 18px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; padding: 22px; background: radial-gradient(circle at 8% 28%, rgba(255, 120, 0, .12), transparent 170px), linear-gradient(145deg, #141414, #0e1011); box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.copilot-journey-hero-icon { --ph-size: 39px; display: grid; place-items: center; grid-row: 1 / span 2; width: 78px; height: 78px; border: 1px solid rgba(255, 120, 0, .42); border-radius: 50%; background: rgba(255, 120, 0, .08); color: var(--brand-highlight); box-shadow: inset 0 0 28px rgba(255, 120, 0, .06); }
.copilot-journey-hero-copy { min-width: 0; }
.copilot-journey-hero-copy .eyebrow { color: var(--brand-highlight); }
.copilot-journey-hero-copy h3 { margin: 4px 0 5px; font-size: clamp(21px, 4vw, 29px); letter-spacing: -.045em; }
.copilot-journey-hero-copy p:not(.eyebrow) { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.copilot-journey-stage { align-self: start; border: 1px solid rgba(255, 174, 71, .28); border-radius: 999px; padding: 6px 9px; background: rgba(255, 120, 0, .07); color: #ffc477; font-size: 9px; font-weight: 800; white-space: nowrap; }
.copilot-journey-stage.is-active { border-color: rgba(54, 212, 125, .34); background: rgba(54, 212, 125, .09); color: var(--green); }
.copilot-journey-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; grid-column: 1 / -1; min-height: 52px; margin-top: 7px; border: 1px solid var(--brand); border-radius: 14px; background: linear-gradient(135deg, var(--brand-highlight), var(--brand-pressed)); color: #120900; font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; box-shadow: 0 10px 24px rgba(255, 120, 0, .2), inset 0 1px rgba(255, 255, 255, .18); }
.copilot-journey-action [data-icon] { --ph-size: 18px; }
.copilot-journey-action:hover { filter: brightness(1.06); }

.copilot-home-paths { display: grid; gap: 10px; }
.copilot-home-path { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; width: 100%; min-height: 86px; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; background: linear-gradient(145deg, #141515, #101112); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.copilot-home-path:hover { border-color: rgba(54, 212, 125, .32); background: #151716; transform: translateY(-1px); }
.copilot-home-path-icon { --ph-size: 25px; display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgba(54, 212, 125, .18); border-radius: 50%; background: rgba(54, 212, 125, .065); color: var(--green); }
.copilot-home-path-copy { display: grid; min-width: 0; gap: 4px; }
.copilot-home-path-copy strong { font-size: 18px; letter-spacing: -.025em; }
.copilot-home-path-copy small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.copilot-home-path .copilot-menu-chevron { color: var(--muted); }

.copilot-home-group { display: grid; gap: 8px; }
.copilot-home-group-label { margin: 0 2px; color: #8f8f8b; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.copilot-home-compact-list { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #111212; }
#copilot-menu-view .copilot-home-compact-list .copilot-menu-item { min-height: 64px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 14px; background: transparent; box-shadow: none; transform: none; }
#copilot-menu-view .copilot-home-compact-list .copilot-menu-item:last-child { border-bottom: 0; }
#copilot-menu-view .copilot-home-compact-list .copilot-menu-item:hover { background: rgba(255, 255, 255, .025); }
#copilot-menu-view .copilot-home-compact-list .copilot-menu-icon { width: 38px; height: 38px; border: 1px solid rgba(255, 120, 0, .16); border-radius: 12px; background: rgba(255, 120, 0, .07); color: var(--brand-highlight); }
#copilot-menu-view .copilot-home-compact-list .copilot-menu-copy strong { font-size: 14px; }
#copilot-menu-view .copilot-home-compact-list .copilot-menu-copy small { font-size: 10px; }

.copilot-journey-panel { display: grid; gap: 14px; }
.copilot-journey-state-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: radial-gradient(circle at 8% 35%, rgba(255, 120, 0, .12), transparent 140px), var(--surface); }
.copilot-journey-state { display: inline-flex; align-items: center; gap: 7px; grid-column: 1 / -1; width: max-content; border-radius: 999px; padding: 6px 9px; background: rgba(255, 120, 0, .08); color: #ffc477; font-size: 10px; font-weight: 800; }
.copilot-journey-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-highlight); }
.copilot-journey-state.is-active { background: rgba(54, 212, 125, .1); color: var(--green); }
.copilot-journey-state.is-active i { background: var(--green); box-shadow: 0 0 0 4px rgba(54, 212, 125, .1); }
.copilot-journey-panel[data-active="true"] .copilot-journey-state-card { background: radial-gradient(circle at 8% 35%, rgba(54, 212, 125, .12), transparent 140px), var(--surface); }
.copilot-journey-state-icon { --ph-size: 28px; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid rgba(255, 120, 0, .34); border-radius: 50%; color: var(--brand-highlight); }
.copilot-journey-state-card h3 { margin: 4px 0 5px; font-size: 20px; letter-spacing: -.035em; }
.copilot-journey-state-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.copilot-journey-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.copilot-journey-flow article { display: flex; align-items: flex-start; gap: 9px; min-height: 82px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface); }
.copilot-journey-flow article > span { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border-radius: 50%; background: rgba(54, 212, 125, .1); color: var(--green); font-size: 10px; font-weight: 900; }
.copilot-journey-flow article div { display: grid; gap: 4px; }
.copilot-journey-flow strong { font-size: 12px; }
.copilot-journey-flow small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.copilot-journey-config-group { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.copilot-journey-config-group .section-heading { margin: 0 2px; }
.copilot-journey-config-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.copilot-journey-config-list.is-single { grid-template-columns: 1fr; }
.copilot-journey-config-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; min-height: 72px; border: 1px solid var(--line); border-radius: 15px; padding: 11px 12px; background: linear-gradient(145deg, #141515, #101112); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.copilot-journey-config-item:hover { border-color: rgba(255, 120, 0, .34); background: #171615; transform: translateY(-1px); }
.copilot-journey-config-item .copilot-menu-icon { width: 40px; height: 40px; border: 1px solid rgba(255, 120, 0, .2); border-radius: 12px; background: rgba(255, 120, 0, .075); color: var(--brand-highlight); }
.copilot-journey-config-item > span:nth-child(2) { display: grid; min-width: 0; gap: 4px; }
.copilot-journey-config-item strong { font-size: 13px; line-height: 1.25; }
.copilot-journey-config-item small { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.copilot-journey-config-item .copilot-menu-chevron { color: var(--muted); }
.copilot-journey-upcoming { display: grid; gap: 5px; border: 1px solid rgba(255, 174, 71, .25); border-radius: 14px; padding: 13px; background: rgba(255, 120, 0, .06); }
.copilot-journey-upcoming strong { color: #ffc477; font-size: 12px; }
.copilot-journey-upcoming p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.copilot-journey-panel > .primary-action { width: 100%; }
.copilot-journey-panel > .primary-action.copilot-journey-stop { border-color: rgba(255, 92, 92, .7); background: rgba(255, 92, 92, .08); color: #ff8585; box-shadow: none; }
.copilot-journey-panel > .primary-action.copilot-journey-stop:hover { border-color: var(--red); background: rgba(255, 92, 92, .14); }
.copilot-journey-panel > .primary-action:disabled { cursor: wait; filter: saturate(.7); opacity: .72; }
.copilot-journey-feedback { min-height: 18px; margin: -3px 2px 0; text-align: center; }
.copilot-goals-panel { display: grid; gap: 14px; }
.copilot-goals-panel #copilot-goals-target { display: grid; }
.copilot-goals-panel .planning-section { margin: 0; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--surface); }
.copilot-goals-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.copilot-goals-actions .profile-save-feedback { flex: 1 1 auto; }
.copilot-goals-actions .primary-action { flex: 0 0 auto; min-width: 190px; }
.copilot-camera-detail > .security-camera-panel { margin: 0; }

@media (max-width: 560px) {
  .copilot-home-v2 { gap: 14px; }
  .copilot-home-header { align-items: center; }
  .copilot-home-header h2 { font-size: 28px; }
  .copilot-home-availability { min-height: 30px; padding: 0 10px; font-size: 10px; }
  .copilot-journey-hero { grid-template-columns: 62px minmax(0, 1fr); gap: 10px 12px; border-radius: 18px; padding: 16px; }
  .copilot-journey-hero-icon { --ph-size: 27px; grid-row: 1 / span 2; width: 58px; height: 58px; }
  .copilot-journey-hero-copy h3 { font-size: 21px; }
  .copilot-journey-stage { grid-column: 2; justify-self: start; }
  .copilot-journey-action { min-height: 48px; }
  .copilot-home-path { min-height: 76px; border-radius: 16px; padding: 12px; }
  .copilot-home-path-icon { --ph-size: 21px; width: 46px; height: 46px; }
  .copilot-home-path-copy strong { font-size: 16px; }
  .copilot-home-path-copy small { font-size: 10px; }
  .copilot-journey-flow { grid-template-columns: 1fr; }
  .copilot-journey-flow article { min-height: 0; }
  .copilot-journey-config-list { grid-template-columns: 1fr; }
  .copilot-journey-config-item { min-height: 68px; }
  .copilot-goals-actions { align-items: stretch; flex-direction: column; }
  .copilot-goals-actions .primary-action { width: 100%; min-width: 0; }
}

/* Copiloto: central de ferramentas separada da execução técnica da jornada. */
.copilot-home-intro { max-width: 520px; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.copilot-home-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #111212; }
.copilot-home-status > div { display: grid; gap: 5px; min-width: 0; padding: 13px 15px; border-right: 1px solid var(--line); }
.copilot-home-status > div:last-child { border-right: 0; }
.copilot-home-status span { color: #8f918f; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.copilot-home-status strong { overflow: hidden; color: #f5f6f5; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.copilot-home-section-heading { display: grid; gap: 3px; }
.copilot-home-section-heading h3 { margin: 0 2px; font-size: 16px; letter-spacing: -.025em; }
.copilot-home-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.copilot-home-card-grid-primary > .copilot-home-card:first-child { grid-column: 1 / -1; min-height: 96px; }
.copilot-home-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 86px; border: 1px solid var(--line); border-radius: 17px; padding: 14px; background: linear-gradient(145deg, #151616, #101111); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.copilot-home-card:hover { border-color: rgba(54, 212, 125, .34); background: #171918; transform: translateY(-1px); }
.copilot-home-card:focus-visible { outline: 3px solid rgba(255, 120, 0, .36); outline-offset: 2px; }
.copilot-home-card[data-tone="orange"] { border-color: rgba(255, 120, 0, .28); background: radial-gradient(circle at 5% 50%, rgba(255, 120, 0, .12), transparent 180px), linear-gradient(145deg, #171513, #101111); }
.copilot-home-card[data-tone="green"] { border-color: rgba(54, 212, 125, .18); background: radial-gradient(circle at 5% 50%, rgba(54, 212, 125, .075), transparent 160px), linear-gradient(145deg, #141716, #101111); }
.copilot-home-card-icon { --ph-size: 22px; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(54, 212, 125, .2); border-radius: 15px; background: rgba(54, 212, 125, .07); color: var(--green); }
.copilot-home-card[data-tone="orange"] .copilot-home-card-icon { border-color: rgba(255, 120, 0, .34); background: rgba(255, 120, 0, .085); color: var(--brand-highlight); }
.copilot-home-card .copilot-menu-copy { gap: 3px; }
.copilot-home-card .copilot-menu-copy > span { color: #8f918f; font-size: 9px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.copilot-home-card .copilot-menu-copy strong { font-size: 15px; letter-spacing: -.02em; }
.copilot-home-card .copilot-menu-copy small { color: var(--muted); font-size: 10px; line-height: 1.4; white-space: normal; }
.copilot-home-card .copilot-menu-chevron { --ph-size: 17px; color: #747774; }
.copilot-card-status { position: absolute; top: 12px; right: 42px; border: 1px solid rgba(255, 174, 71, .25); border-radius: 999px; padding: 5px 8px; background: rgba(255, 120, 0, .07); color: #ffc477; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.copilot-card-status.is-active { border-color: rgba(54, 212, 125, .32); background: rgba(54, 212, 125, .09); color: var(--green); }
.copilot-home-card.is-compact { min-height: 76px; }
.copilot-home-card.is-compact .copilot-home-card-icon { --ph-size: 18px; width: 40px; height: 40px; border-radius: 12px; }
.copilot-home-card.is-full { width: 100%; }

.copilot-journey-runtime { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.copilot-journey-runtime article { display: grid; gap: 5px; min-width: 0; border: 1px solid var(--line); border-radius: 15px; padding: 14px; background: #111212; }
.copilot-journey-runtime article.is-emphasis { border-color: rgba(255, 120, 0, .28); background: rgba(255, 120, 0, .06); }
.copilot-journey-panel[data-active="true"] .copilot-journey-runtime article.is-emphasis { border-color: rgba(54, 212, 125, .3); background: rgba(54, 212, 125, .07); }
.copilot-journey-runtime span { color: #8f918f; font-size: 9px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.copilot-journey-runtime strong { overflow: hidden; font-size: 17px; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.copilot-journey-runtime .is-emphasis strong { color: #ffc477; font-variant-numeric: tabular-nums; }
.copilot-journey-panel[data-active="true"] .copilot-journey-runtime .is-emphasis strong,
.copilot-journey-panel[data-active="true"] #copilot-journey-shortcut { color: var(--green); }
.copilot-journey-runtime small { color: var(--muted); font-size: 9px; line-height: 1.35; }

#copilot-section-rules { gap: 10px; }
#copilot-section-alerts > .section-heading,
#copilot-section-rules > .section-heading,
#copilot-section-risk > .section-heading,
#copilot-section-overfly > .section-heading,
#copilot-section-rides > .section-heading,
#copilot-section-goals > .section-heading { display: none; }
.copilot-criteria-step { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #111212; }
.copilot-criteria-step[hidden] { display: none; }
.copilot-criteria-step-heading { display: flex; align-items: flex-start; gap: 10px; }
.copilot-criteria-step-heading > span { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border: 1px solid rgba(255, 120, 0, .3); border-radius: 9px; background: rgba(255, 120, 0, .08); color: #ffc477; font-size: 10px; font-weight: 900; }
.copilot-criteria-step-heading > div { display: grid; gap: 3px; }
.copilot-criteria-step-heading strong { font-size: 13px; }
.copilot-criteria-step-heading small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.copilot-criteria-step .copilot-form-row { margin: 0; }
.copilot-criteria-step label { font-size: 11px; }
.copilot-criteria-step input { min-height: 50px; font-size: 15px; }
.copilot-cost-step { border-color: rgba(54, 212, 125, .18); }
.copilot-semaphore-step { background: linear-gradient(145deg, #131413, #101111); }
.copilot-semaphore-step .copilot-rule strong { overflow: visible; white-space: normal; }

@media (max-width: 560px) {
  .copilot-home-header { align-items: flex-start; }
  .copilot-home-intro { font-size: 11px; }
  .copilot-home-status { grid-template-columns: 1fr; }
  .copilot-home-status > div { grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 11px 13px; }
  .copilot-home-status > div:last-child { border-bottom: 0; }
  .copilot-home-card-grid { grid-template-columns: 1fr; }
  .copilot-home-card-grid-primary > .copilot-home-card:first-child { grid-column: auto; }
  .copilot-home-card { min-height: 78px; padding: 12px; }
  .copilot-card-status { top: 9px; right: 38px; }
  .copilot-journey-runtime { grid-template-columns: 1fr 1fr; }
  .copilot-journey-runtime article.is-emphasis { grid-column: 1 / -1; }
  .copilot-criteria-step { padding: 12px; }
}

.security-camera-panel { gap: 16px; }
.camera-local-badge { border: 1px solid rgba(112, 220, 170, .25); border-radius: 999px; color: #8de8bb; font-size: 10px; padding: 6px 9px; white-space: nowrap; }
.camera-disclosure-box { display: grid; gap: 9px; border: 1px solid rgba(255, 170, 72, .3); border-radius: 14px; background: rgba(255, 138, 0, .07); padding: 14px; }
.camera-disclosure-box strong { color: #ffc477; font-size: 13px; }
.camera-disclosure-box p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.camera-consent-check { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); font-size: 12px; line-height: 1.45; }
.camera-consent-check input, .camera-auto-delete input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--orange); }
.camera-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.camera-choice-card { display: flex; align-items: flex-start; gap: 10px; min-height: 82px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 13px; cursor: pointer; }
.camera-choice-card:has(input:checked) { border-color: rgba(255, 138, 0, .7); background: rgba(255, 138, 0, .08); }
.camera-choice-card input { margin-top: 3px; accent-color: var(--orange); }
.camera-choice-card span, .camera-auto-delete span { display: grid; gap: 4px; }
.camera-choice-card strong, .camera-auto-delete strong { font-size: 12px; }
.camera-choice-card small, .camera-auto-delete small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.camera-quality-section { display: grid; gap: 10px; }
.camera-quality-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.camera-quality-card { display: flex; align-items: flex-start; gap: 8px; min-height: 88px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 11px; cursor: pointer; }
.camera-quality-card:has(input:checked) { border-color: rgba(255, 138, 0, .7); background: rgba(255, 138, 0, .08); }
.camera-quality-card input { margin-top: 3px; accent-color: var(--orange); }
.camera-quality-card span { display: grid; gap: 4px; }
.camera-quality-card strong { font-size: 12px; }
.camera-quality-card small, .camera-quality-card em { color: var(--muted); font-size: 10px; line-height: 1.35; font-style: normal; }
.camera-quality-card em { color: #ffc477; font-weight: 800; }
.camera-quality-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.camera-space-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.camera-space-grid > div { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 11px; }
.camera-space-grid small { color: var(--muted); font-size: 10px; }
.camera-space-grid strong { font-size: 15px; }
.camera-storage-policy, .camera-export-hint { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.camera-auto-delete { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.camera-recording-banner { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255, 82, 108, .36); border-radius: 13px; background: rgba(255, 82, 108, .08); padding: 12px; }
.camera-recording-banner > div { display: grid; gap: 3px; }
.camera-recording-banner strong { font-size: 12px; }
.camera-recording-banner small { color: var(--muted); font-size: 10px; }
.camera-recording-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff526c; box-shadow: 0 0 0 5px rgba(255, 82, 108, .12); animation: camera-recording-pulse 1.5s ease-in-out infinite; }
@keyframes camera-recording-pulse { 50% { opacity: .45; transform: scale(.8); } }
.camera-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.camera-actions button { min-height: 42px; }
.camera-feedback { min-height: 18px; margin: 0; color: #9cecc3; font-size: 12px; }
.camera-feedback.error { color: #ff9bad; }
.risk-addresses-panel { gap: 14px; }
.risk-address-disclosure { display: grid; gap: 5px; border: 1px solid rgba(255, 170, 72, .28); border-radius: 14px; padding: 13px; background: rgba(255, 138, 0, .06); }
.risk-address-disclosure strong { color: #ffc477; font-size: 12px; }
.risk-address-disclosure p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.risk-rule-editor { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 15px; padding: 13px; background: var(--surface); }
.risk-category-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.risk-category-tab { display: grid; gap: 3px; min-height: 54px; border: 1px solid var(--line); border-radius: 11px; padding: 8px; background: var(--surface-2); color: var(--muted-strong); cursor: pointer; text-align: left; }
.risk-category-tab span { font-size: 10px; font-weight: 800; }
.risk-category-tab strong { color: var(--muted); font-size: 11px; }
.risk-category-tab:hover, .risk-category-tab.is-active { border-color: rgba(255, 138, 0, .55); background: rgba(255, 138, 0, .09); color: var(--ink); }
.risk-category-tab.is-active strong { color: var(--brand-highlight); }
.risk-rule-editor form { display: grid; gap: 10px; }
.risk-rule-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.risk-rule-form-actions button { min-height: 40px; }
.risk-rules-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.risk-rules-heading > div { display: grid; gap: 3px; }
.risk-rules-heading strong { font-size: 13px; }
.risk-rules-heading small { color: var(--muted); font-size: 10px; }
.risk-local-only { border: 1px solid rgba(112, 220, 170, .25); border-radius: 999px; padding: 5px 8px; color: #8de8bb; font-size: 9px; font-weight: 800; white-space: nowrap; }
.risk-rules-list { display: grid; gap: 8px; }
.risk-rule-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: var(--surface); }
.risk-rule-card > div { display: grid; gap: 4px; min-width: 0; }
.risk-rule-card strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.risk-rule-card small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.risk-rule-card em { color: #ffc477; font-size: 9px; font-style: normal; font-weight: 800; }
.risk-rule-actions { display: flex; gap: 5px; }
.risk-rule-actions button { min-width: 38px; min-height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: var(--surface-2); color: var(--muted-strong); font-size: 10px; font-weight: 800; cursor: pointer; }
.risk-rule-actions button:hover { border-color: var(--brand-highlight); color: var(--ink); }
.risk-rule-actions button[data-risk-delete] { color: #ff9bad; }
.risk-default-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.risk-default-actions button { min-height: 40px; }
.risk-feedback { min-height: 18px; margin: 0; color: #9cecc3; font-size: 11px; line-height: 1.4; }
.risk-feedback.error { color: #ff9bad; }
@media (max-width: 560px) {
  .risk-category-tabs { grid-template-columns: 1fr; }
  .risk-category-tab { min-height: 42px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .risk-default-actions, .risk-rule-form-actions { flex-direction: column; }
  .risk-default-actions button, .risk-rule-form-actions button { width: 100%; }
  .risk-rules-heading { align-items: flex-start; flex-direction: column; }
}
.camera-recordings-section { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 15px; }
.camera-recordings-section h4 { margin: 0; font-size: 16px; }
.camera-recordings-list { display: grid; gap: 8px; }
.camera-recording-item { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 12px; }
.camera-recording-item > div:first-child { display: grid; gap: 4px; min-width: 0; }
.camera-recording-item strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.camera-recording-item small { color: var(--muted); font-size: 10px; }
.camera-recording-item-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.camera-recording-item-actions button { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--ink); padding: 7px 9px; font-size: 10px; cursor: pointer; }
.camera-recording-item-actions button:hover { border-color: var(--purple-bright); }
.camera-recording-item-actions button[data-camera-action="share"] { border-color: rgba(112, 220, 170, .35); color: #9cecc3; }
.camera-recording-item-actions button[data-camera-action="gallery"] { border-color: rgba(255, 170, 72, .35); color: #ffc477; }
.camera-empty-state { margin: 0; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); padding: 14px; font-size: 12px; text-align: center; }
.camera-policy-inline-note { display: grid; gap: 6px; border: 1px solid rgba(112, 220, 170, .24); border-radius: 13px; background: rgba(112, 220, 170, .06); padding: 13px; }
.camera-policy-inline-note strong { color: #9cecc3; font-size: 12px; }
.camera-policy-inline-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
@media (max-width: 520px) {
  .camera-choice-grid, .camera-space-grid { grid-template-columns: 1fr; }
  .camera-local-badge { display: none; }
}

/* Social: o status próprio não desativa a leitura do mapa e os controles
   essenciais mantêm área de toque confortável. */
.community-modal.is-offline > .modal-intro,
.community-modal.is-offline > .community-tabs,
.community-modal.is-offline > .community-view {
  filter: none;
  opacity: 1;
}
.community-identity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.community-privacy-shortcut {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 11px 0 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.community-privacy-shortcut > [data-icon]:first-child { --ph-size: 18px; color: var(--brand-highlight); }
.community-privacy-shortcut > [data-icon]:last-child { --ph-size: 15px; color: var(--muted); }
.community-privacy-shortcut > span:nth-child(2) { display: grid; gap: 2px; }
.community-privacy-shortcut strong { font-size: 12px; }
.community-privacy-shortcut small { color: var(--muted); font-size: 11px; }
.community-online-toggle { min-height: 44px; }
.community-refresh-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 11px;
  background: var(--surface-2);
  color: var(--muted-strong);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.community-refresh-map [data-icon] { --ph-size: 15px; }
.community-refresh-map:disabled { cursor: wait; opacity: .62; }
.community-map-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.community-center-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: 1px solid rgba(255, 120, 0, .38);
  border-radius: 11px;
  padding: 8px 11px;
  background: rgba(255, 120, 0, .1);
  color: var(--brand-highlight);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.community-center-location [data-icon] { --ph-size: 15px; }
.community-center-location:hover { border-color: var(--brand-highlight); background: rgba(255, 120, 0, .18); }
.community-center-location:disabled { cursor: wait; opacity: .62; }

/* A atualização cromática fica restrita às três páginas secundárias. */
.page-screen .primary-action {
  border-color: var(--brand);
  background: linear-gradient(135deg, var(--brand-highlight), var(--brand-pressed));
  box-shadow: 0 10px 24px rgba(255, 120, 0, .26), inset 0 1px rgba(255, 255, 255, .15);
}
.page-screen .primary-action:hover { border-color: var(--brand-highlight); background: linear-gradient(135deg, #ffad4d, var(--brand)); }
.page-screen .secondary-action { border-color: #784b2b; background: rgba(255, 120, 0, .12); color: var(--brand-highlight); }
.page-screen .secondary-action:hover { border-color: var(--brand-highlight); background: rgba(255, 120, 0, .2); }
.page-screen button:focus-visible,
.page-screen input:focus-visible,
.page-screen select:focus-visible { outline-color: rgba(255, 154, 36, .5); }

/* O check confirma a seleção sem acrescentar texto ou mudar os critérios. */
.copilot-choice::after {
  content: '';
  position: absolute;
  top: 9px;
  right: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  -webkit-mask: url('assets/icons/phosphor/regular/check.svg') center / 12px 12px no-repeat;
  mask: url('assets/icons/phosphor/regular/check.svg') center / 12px 12px no-repeat;
  transition: opacity .16s ease;
}
.copilot-choice:has(input:checked)::after { opacity: 1; }
.copilot-choice:has(input:checked) { padding-right: 34px; }

/* Salvar permanece alcançável nos formulários longos, acima da navegação. */
.profile-detail-actions,
.copilot-settings-actions {
  position: static;
  z-index: auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.profile-detail-actions .primary-action,
.copilot-settings-actions .primary-action { min-height: 44px; }
.profile-menu-list .profile-menu-item small { font-size: 11px; }

@media (max-width: 520px) {
  .community-identity-card { grid-template-columns: 1fr; }
  .community-identity-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-section-heading { align-items: center; }
  .community-section-heading > div { min-width: 0; }
  .community-map-actions { width: 100%; justify-content: stretch; }
.community-map-actions button { flex: 1 1 0; min-width: 0; }
.community-map-actions .community-refresh-map { flex: 1 1 0; }
  .community-refresh-map { flex: 0 0 auto; }
  .profile-detail-actions,
  .copilot-settings-actions { flex-direction: column; align-items: stretch; }
  .profile-detail-actions .primary-action,
  .copilot-settings-actions .primary-action { width: 100%; min-width: 0; }
  .profile-save-feedback,
  .copilot-save-feedback { min-height: 0; text-align: left; }
}

/* Legibilidade para consulta rÃ¡pida; o Overfly mantÃ©m sua microtipografia prÃ³pria. */
.topbar-subtitle,
.secondary-metric small,
.community-person small,
.community-person-status,
.community-live-dot,
.community-add-field { font-size: 12px; }
.nav-item { font-size: 10px; }
@media (max-width: 560px) {
  .topbar-subtitle { font-size: 11px; }
  .nav-item { font-size: 10px; }
  .revenue-card { min-height: 156px; }
}
