@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;
  --orange: var(--brand-highlight);
  --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; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !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); }
.profit-goal-description { max-width: 330px; margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.profit-goal-result { display: grid; justify-items: center; gap: 4px; margin: 18px 0 14px; text-align: center; }
.profit-goal-result strong { color: var(--ink); font-size: clamp(32px, 8vw, 46px); letter-spacing: -.065em; line-height: 1; }
.profit-goal-result span { color: var(--muted-strong); font-size: 11px; font-weight: 700; }
.profit-goal-progress-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.profit-goal-progress-summary b { margin-left: 4px; color: var(--ink); font-weight: 700; }
.profit-goal-progress-summary > strong { color: var(--green); font-size: 18px; }
.profit-goal-card.is-negative .profit-goal-progress-summary > strong { color: var(--red); }
.profit-goal-track { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.profit-goal-progress { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .45s ease; }
.profit-goal-card.is-negative .profit-goal-progress { background: var(--red); }
.profit-goal-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; color: var(--muted); font-size: 10px; }
.profit-goal-status > span { display: inline-flex; align-items: center; gap: 6px; }
.profit-goal-status b { color: var(--ink); }
.profit-goal-breakdown { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.profit-goal-breakdown > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); color: var(--muted); font-size: 11px; }
.profit-goal-breakdown strong { color: var(--ink); white-space: nowrap; }
.profit-goal-breakdown-total { font-weight: 700; }
.profit-goal-breakdown-total strong { color: var(--green); font-size: 14px; }
.profit-goal-card.is-negative .profit-goal-breakdown-total strong { color: var(--red); }
.profit-goal-note { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.profit-goal-card .profit-gauge { display: none; }
.profit-goal-card .profit-goal-footer { display: none; }
.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-note { display: block; max-width: 300px; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.35; }
.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 .activity-symbol { background: rgba(255, 154, 36, .14); color: var(--brand-highlight); }
.activity-item.provisioned .amount { color: var(--brand-highlight); }
.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; }
.context-config-tabs { display: flex; gap: 6px; width: 100%; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line); border-radius: 14px; padding: 4px; background: rgba(17, 18, 18, .92); }
.context-config-tabs::-webkit-scrollbar { display: none; }
.context-config-tabs button { flex: 1 0 auto; min-height: 34px; border: 1px solid transparent; border-radius: 10px; padding: 7px 10px; background: transparent; color: var(--muted); font: inherit; font-size: 10px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.context-config-tabs button.active { border-color: rgba(255, 120, 0, .38); background: rgba(255, 120, 0, .12); color: var(--brand-highlight); }
.context-config-tabs button:hover { border-color: rgba(255, 120, 0, .24); color: var(--ink); }
.context-config-tabs button[hidden] { display: none; }
.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; white-space: nowrap; 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); }
.permissions-panel { gap: 16px; }


.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-summary-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(205px, .82fr); gap: 12px; align-items: stretch; }
.personal-donut-panel { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: 10px; background: rgba(13, 11, 18, .56); }
.personal-donut-chart { display: grid; min-width: 116px; min-height: 116px; place-items: center; }
.personal-donut { position: relative; display: grid; width: 110px; height: 110px; place-items: center; border-radius: 50%; background: var(--donut-gradient, conic-gradient(var(--line) 0 100%)); }
.personal-donut::after { content: ''; position: absolute; width: 66px; height: 66px; border-radius: 50%; background: var(--surface); }
.personal-donut-center { position: relative; z-index: 1; display: grid; max-width: 62px; gap: 2px; place-items: center; text-align: center; }
.personal-donut-center strong { max-width: 62px; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.personal-donut-center small { color: var(--muted); font-size: 9px; line-height: 1.1; }
.personal-donut.is-empty { background: var(--line); }
.personal-donut-legend { display: grid; gap: 6px; min-width: 0; }
.personal-donut-legend-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 6px; align-items: center; color: var(--muted-strong); font-size: 10px; }
.personal-donut-legend-row i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--legend-color); }
.personal-donut-legend-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.personal-donut-legend-row strong { color: var(--ink); font-size: 10px; }
.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; }
.obligation-intro, .obligation-total-detail { display: none; }
#profile-section-personal .personal-control-panel > .section-heading,
#profile-section-personal-fixed .personal-control-panel > .section-heading { display: none; }
.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-goal-guidance { display: grid; gap: 10px; border: 1px solid rgba(255, 154, 36, .3); border-radius: 14px; padding: 13px; background: rgba(255, 120, 0, .055); }
.copilot-goal-guidance-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; }
.copilot-goal-guidance-heading > div { display: grid; gap: 3px; min-width: 0; }
.copilot-goal-guidance-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255, 154, 36, .36); border-radius: 10px; background: rgba(255, 154, 36, .1); color: var(--brand-highlight); font-size: 17px; font-weight: 900; }
.copilot-goal-guidance-heading strong { color: var(--ink); font-size: 13px; }
.copilot-goal-guidance-heading small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.copilot-goal-guidance-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.copilot-goal-guidance-values > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3px 6px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 11px; padding: 9px 10px; background: rgba(0, 0, 0, .16); }
.copilot-goal-guidance-values small { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }
.copilot-goal-guidance-values strong { color: var(--brand-highlight); font-size: 16px; font-variant-numeric: tabular-nums; }
.copilot-goal-guidance-values span { color: var(--muted-strong); font-size: 10px; font-weight: 800; }
.copilot-goal-guidance p { margin: 0; color: var(--muted-strong); font-size: 10px; line-height: 1.45; }
.copilot-goal-guidance-decision { color: var(--brand-highlight) !important; font-weight: 800; }
.copilot-goal-guidance.is-warning { border-color: rgba(255, 80, 80, .42); background: rgba(255, 80, 80, .065); }
.copilot-goal-guidance.is-warning .copilot-goal-guidance-decision { color: #ff9a9f !important; }
.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-theme-picker, .overfly-layout-picker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.overfly-theme-options { display: inline-flex; gap: 5px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.overfly-theme-option { min-height: 29px; border: 0; border-radius: 999px; padding: 5px 12px; background: transparent; color: var(--muted-strong); font: inherit; font-weight: 800; cursor: pointer; }
.overfly-theme-option.is-active { background: var(--orange); color: #17100b; }
.overfly-preview-card {
  --overfly-status: #858a91;
  --overfly-card-bg: #10181c;
  --overfly-card-ink: #f7fafb;
  --overfly-label: #aeb8bc;
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  justify-self: stretch;
  margin-top: 18px;
  border: 2px solid var(--overfly-status);
  border-radius: 18px;
  padding: 9px 12px 0;
  overflow: visible;
  background: var(--overfly-card-bg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .24);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.overfly-preview-card[data-status="good"] { --overfly-status: #00d94f; }
.overfly-preview-card[data-status="attention"] { --overfly-status: #ffc21c; }
.overfly-preview-card[data-status="bad"] { --overfly-status: #ff3d48; }
.overfly-preview-card[data-status="empty"] { --overfly-status: #858a91; }
.overfly-status-badge { position: absolute; z-index: 2; top: -17px; left: 12px; display: inline-flex; align-items: center; gap: 7px; min-height: 33px; border-radius: 11px; padding: 6px 12px; background: var(--overfly-status); color: #09110b; box-shadow: 0 5px 12px rgba(0, 0, 0, .22); }
.overfly-status-badge strong { font-size: 13px; font-weight: 950; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.overfly-status-mark { display: grid; place-items: center; width: 17px; height: 17px; border: 2px solid currentColor; border-radius: 50%; font-size: 11px; font-weight: 950; }
.overfly-status-mark::after { content: '✓'; }
.overfly-preview-card[data-status="attention"] .overfly-status-mark::after { content: '!'; }
.overfly-preview-card[data-status="bad"] .overfly-status-mark::after { content: '×'; }
.overfly-preview-card[data-status="empty"] .overfly-status-mark::after { content: '…'; }
.overfly-card-content { min-width: 0; }
.overfly-offer-meta { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 30px; margin: 0 0 7px; color: var(--overfly-card-ink); }
.overfly-platform-label { display: inline-grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #050607; color: #fff; font-size: 9px; font-weight: 900; }
.overfly-offer-meta strong { overflow: hidden; color: var(--overfly-card-ink); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.overfly-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; }
.overfly-metric-grid article { --overfly-metric-status: var(--overfly-label); display: grid; align-content: center; justify-items: start; gap: 3px; min-width: 0; min-height: 50px; padding: 1px 7px 5px; }
.overfly-metric-grid article + article { border-left: 2px solid var(--overfly-metric-status); border-radius: 0; }
.overfly-metric-grid article span { color: var(--overfly-label); font-size: 10px; font-weight: 800; line-height: 1.1; text-align: left; white-space: nowrap; }
.overfly-metric-grid article strong { color: var(--overfly-card-ink); font-size: clamp(20px, 5.6vw, 30px); font-variant-numeric: tabular-nums; font-weight: 950; line-height: 1; letter-spacing: -.055em; text-align: left; white-space: nowrap; }
.overfly-metric[data-status="good"] { --overfly-metric-status: #00d94f; }
.overfly-metric[data-status="attention"] { --overfly-metric-status: #ffc21c; }
.overfly-metric[data-status="bad"] { --overfly-metric-status: #ff3d48; }
.overfly-metric[data-status="good"] strong,
.overfly-metric[data-status="attention"] strong,
.overfly-metric[data-status="bad"] strong { color: var(--overfly-metric-status); }
.overfly-metric[data-status="empty"] strong { color: var(--overfly-label); }
.overfly-bottom-band { height: 8px; width: 100%; margin: 3px 0 0; border-radius: 0 0 16px 16px; background: var(--overfly-status); }
.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-detail-cards { order: 2; }
.planning-modal > .planning-insights { order: 3; }
.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); }
.planning-detail-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.planning-detail-card { display: grid; gap: 11px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.planning-detail-card.is-focused { border-color: var(--brand-highlight); box-shadow: 0 0 0 3px rgba(255, 120, 0, .14); }
.planning-detail-card header { display: flex; align-items: center; gap: 9px; min-width: 0; }
.planning-detail-card header > div { min-width: 0; }
.planning-detail-card h3 { overflow: hidden; margin: 2px 0 0; color: var(--ink); font-size: 16px; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.planning-detail-card-icon { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(255, 120, 0, .42); border-radius: 9px; background: rgba(255, 120, 0, .1); color: var(--brand-highlight); font-size: 15px; }
.planning-detail-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; margin: 0; }
.planning-detail-card dl > div { min-width: 0; border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 7px; }
.planning-detail-card dt { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.planning-detail-card dd { overflow: hidden; margin: 3px 0 0; color: var(--ink); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.planning-detail-card-status, .planning-detail-card-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.planning-detail-card-total { margin: -3px 0 0; color: var(--brand-highlight); font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
.planning-detail-card-list { display: grid; gap: 5px; }
.planning-detail-card-list > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; border-top: 1px solid rgba(255, 255, 255, .07); padding-top: 7px; color: var(--muted); font-size: 10px; }
.planning-detail-card-list > span b { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.planning-detail-card-list > span strong { flex: 0 0 auto; color: var(--brand-highlight); }
.planning-detail-card-list > small { color: var(--muted); font-size: 10px; }
.planning-detail-view { gap: 18px; }
.planning-detail-view > .planning-detail-back {
  justify-self: start;
  min-height: 44px;
  border: 1px solid rgba(255, 120, 0, .46);
  border-radius: 13px;
  padding: 10px 14px;
  background: rgba(29, 23, 18, .9);
  color: var(--brand-highlight);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.planning-detail-view > .planning-detail-back:hover,
.planning-detail-view > .planning-detail-back:focus-visible { border-color: var(--brand-highlight); background: rgba(255, 120, 0, .12); }
.planning-detail-view > .planning-detail-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.planning-detail-view .planning-detail-card { min-height: 190px; padding: 18px; }
.planning-detail-view .planning-detail-card h3 { white-space: normal; }
.planning-detail-view .planning-detail-card.is-focused { border-color: var(--brand-highlight); box-shadow: 0 0 0 3px rgba(255, 120, 0, .12); }
.planning-goal-automatic-note { display: flex; align-items: flex-start; gap: 10px; grid-column: 1 / -1; border: 1px solid rgba(54, 212, 125, .28); border-radius: 14px; padding: 12px; background: rgba(54, 212, 125, .07); }
.planning-goal-automatic-icon { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 16px; }
.planning-goal-automatic-note strong { color: var(--ink); font-size: 12px; }
.planning-goal-automatic-note p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.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-heading { display: grid; gap: 3px; margin: 2px 0 3px; padding-left: 11px; border-left: 3px solid var(--brand-highlight); }
.planning-operation-heading h3 { margin: 0; color: var(--ink); font-size: 16px; letter-spacing: -.035em; }
.planning-operation-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.planning-operation-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.planning-operation-fields > label { display: grid; grid-template-rows: minmax(2.6em, auto) minmax(46px, 1fr); align-content: stretch; gap: 6px; min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px; background: rgba(18, 16, 22, .82); color: var(--muted); font-size: 9px; font-weight: 700; }
.planning-operation-label { display: block; min-height: 2.6em; line-height: 1.3; }
.planning-operation-label small { color: var(--muted); font-size: .9em; font-weight: 600; }
.planning-operation-fields > label input { align-self: end; min-width: 0; min-height: 46px; height: 46px; margin: 0; border-color: rgba(255, 255, 255, .08); background: rgba(10, 9, 12, .72); color: var(--ink); font-size: 13px; font-weight: 800; }
.planning-calendar-summary { display: flex; align-items: center; gap: 10px; margin-top: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 10px; background: rgba(18, 16, 22, .82); }
.planning-calendar-summary-icon { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(255, 120, 0, .42); border-radius: 7px; background: rgba(255, 120, 0, .1); color: var(--brand-highlight); }
.planning-calendar-summary > span:last-child { display: grid; gap: 2px; }
.planning-calendar-summary strong { color: var(--ink); font-size: 11px; }
.planning-calendar-summary small { color: var(--purple-bright); font-size: 10px; font-weight: 800; }
.planning-goals-section > .planning-goal-card { display: grid; align-content: start; gap: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: linear-gradient(145deg, rgba(25, 22, 29, .98), rgba(17, 15, 20, .98)); }
.planning-goal-card-heading { display: flex; align-items: center; gap: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.planning-goal-card-heading > [data-icon] { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(54, 212, 125, .35); border-radius: 7px; color: var(--green); }
.planning-goal-card-heading h4 { margin: 0; color: var(--ink); font-size: 14px; }
.planning-goal-card .goal-choice-group { gap: 7px; }
.planning-goal-card .goal-choice-label { color: var(--muted-strong); font-size: 10px; }
.planning-goal-card .planning-goals { grid-template-columns: 1fr; gap: 8px; }
.planning-goal-card .planning-goals label { min-width: 0; }
.planning-goal-card .goal-derived-summary { margin-top: 0; }
.planning-goals-section > .settings-subheading,
.planning-goals-section > .field-hint { display: none; }
.planning-goals-section { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.planning-goals-section > .planning-goal-card { grid-column: 1 / -1; }
.planning-goals-section > .planning-expected-result { grid-column: 1 / -1; }
.goal-choice-group { display: grid; gap: 8px; }
.goal-choice-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.goal-choice-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.goal-choice-buttons button { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.goal-choice-buttons button.is-active, .goal-choice-buttons button[aria-checked="true"] { border-color: var(--brand-highlight); background: rgba(255, 120, 0, .14); color: var(--ink); box-shadow: 0 0 0 2px rgba(255, 120, 0, .08); }
.goal-derived-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: -2px; }
.goal-derived-summary span { display: grid; gap: 4px; min-width: 0; padding: 10px; border-left: 2px solid rgba(255, 120, 0, .42); color: var(--muted); font-size: 11px; line-height: 1.35; }
.goal-derived-summary span:first-child { grid-column: 1 / -1; border-left: 0; padding: 0 0 2px; color: var(--purple-bright); font-weight: 800; }
.goal-derived-summary.is-empty { grid-template-columns: 1fr auto; align-items: center; padding: 10px 12px; border: 1px solid rgba(255, 120, 0, .28); border-radius: 12px; background: rgba(255, 120, 0, .08); }
.goal-derived-summary.is-empty span:first-child { grid-column: auto; padding: 0; color: var(--brand-highlight); }
.goal-derived-summary.is-empty .text-button { white-space: nowrap; }
.planning-calendar-header { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.planning-calendar-header strong { color: var(--ink); font-size: 14px; text-align: center; text-transform: capitalize; }
.planning-calendar-header button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.planning-calendar-weekdays, .planning-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.planning-calendar-weekdays { margin-top: 10px; color: var(--muted); font-size: 9px; font-weight: 800; text-align: center; }
.planning-calendar-day { display: block !important; margin: 0 !important; color: var(--ink) !important; font-size: 12px !important; font-weight: 700 !important; }
.planning-calendar-day input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.planning-calendar-day span { display: grid; min-height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; }
.planning-calendar-day input:checked + span { border-color: var(--brand-highlight); background: rgba(255, 120, 0, .2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--brand-highlight); }
.planning-calendar-day input:focus-visible + span { outline: 3px solid rgba(192, 122, 242, .3); outline-offset: 2px; }
.planning-calendar-empty { min-height: 42px; }
.planning-calendar-summary { display: block; color: var(--purple-bright); font-size: 12px; font-weight: 800; }
.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; }
.account-plan-badge { display: inline-flex; align-items: center; width: fit-content; margin-top: 5px; padding: 4px 9px; border: 1px solid rgba(255, 145, 0, .45); border-radius: 999px; color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.account-plan-badge.is-premium { border-color: rgba(255, 145, 0, .8); background: rgba(255, 145, 0, .14); color: #ffb347; }
.account-plan-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 4px 0 2px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.account-plan-panel > div { display: grid; gap: 4px; }
.account-plan-panel .eyebrow { margin: 0; font-size: 10px; }
.account-plan-panel strong { color: var(--ink); font-size: 16px; }
.account-plan-panel small { color: var(--muted); font-size: 11px; }
#claim-purchase-feedback { color: var(--muted); }
#claim-purchase-feedback.error { color: var(--red); }

@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; }
  .planning-detail-cards { grid-template-columns: 1fr; }
  .planning-detail-card dl { gap: 7px 9px; }
  .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; }
}



@media (max-width: 560px) {
  
  
  
  
}

@media (max-width: 380px) {
  
  
  
  
  
}

/* Comunidade: visual compacto, privacidade explícita e mapa sem rastreio contínuo. */


.compact-action { padding: 9px 11px; font-size: 11px; white-space: nowrap; }


@media (max-width: 520px) {
  
  
  
  
  
  
  
  
  
  
}

@media (max-width: 560px) {
  .planning-goals { grid-template-columns: 1fr; }
  .planning-operation-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .planning-operation-fields > label { padding: 8px 6px; font-size: 8px; }
  .planning-operation-fields > label input { min-height: 44px; height: 44px; padding: 9px 5px; font-size: 11px; }
  .goal-derived-summary { grid-template-columns: 1fr; gap: 0; }
  .goal-derived-summary span { border-top: 1px solid rgba(255, 120, 0, .16); border-left: 0; padding: 7px 0; }
  .goal-derived-summary span:first-child { border-top: 0; }
  .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: 18px; padding: 9px 12px 0; }
.overfly-metric-grid article { min-height: 50px; padding: 1px 7px 5px; }
.overfly-metric-grid article strong { font-size: clamp(20px, 5.6vw, 30px); }


.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; }
  
  .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 {
  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 { background: rgba(15, 13, 11, .9); }
.copilot-toggle, .copilot-choice, .copilot-voice-preview, .copilot-rule { background: var(--surface); }


.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; }
}

/* Navegação 2026: listas agrupadas no lugar de cartões independentes. */
.profile-menu-list,
#copilot-menu-view .copilot-home-compact-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(22, 19, 16, .98), rgba(12, 11, 10, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.profile-menu-list {
  gap: 0;
}

.profile-menu-list > .profile-menu-item {
  min-height: 60px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 13px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.profile-menu-list > .profile-menu-item:last-child {
  border-bottom: 0;
}

.profile-menu-list > .profile-menu-item:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, .035);
  transform: none;
}

.profile-menu-list > .profile-menu-item:focus-visible {
  position: relative;
  z-index: 1;
}

.profile-menu-list .profile-menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 120, 0, .08);
  color: var(--brand-highlight);
}

.profile-menu-list .profile-menu-item strong {
  font-size: 13px;
}

.profile-menu-list .profile-menu-item small {
  font-size: 10px;
}

#copilot-menu-view .copilot-home-card-grid {
  grid-template-columns: 1fr;
}

#copilot-menu-view .copilot-home-card-grid-primary > .copilot-home-card:first-child {
  grid-column: auto;
  min-height: 70px;
}

#copilot-menu-view .copilot-home-compact-list {
  gap: 0;
}

#copilot-menu-view .copilot-home-compact-list > .copilot-home-card {
  min-height: 68px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 13px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

#copilot-menu-view .copilot-home-compact-list > .copilot-home-card:last-child {
  border-bottom: 0;
}

#copilot-menu-view .copilot-home-compact-list > .copilot-home-card:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, .035);
  transform: none;
}

#copilot-menu-view .copilot-home-compact-list .copilot-home-card-icon {
  --ph-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border-color: rgba(255, 120, 0, .18);
  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-menu-view .copilot-home-compact-list .copilot-menu-chevron {
  color: #8c837b;
}

@media (max-width: 560px) {
  .profile-menu-list,
  #copilot-menu-view .copilot-home-compact-list {
    border-radius: 14px;
  }

  .profile-menu-list > .profile-menu-item,
  #copilot-menu-view .copilot-home-compact-list > .copilot-home-card {
    min-height: 58px;
    padding: 10px 11px;
  }

  #copilot-menu-view .copilot-home-compact-list .copilot-home-card-icon {
    width: 34px;
    height: 34px;
  }
}

/* Cabeçalhos das três áreas principais: o Início mantém a identidade, enquanto
   Painel e Perfil recebem a mesma faixa clara sem duplicar a marca ou a saudação. */
.dashboard-topbar {
  display: block;
  width: calc(100% + 28px);
  margin: -12px -14px 12px;
  padding: 0;
}
.dashboard-topbar-surface {
  display: flex;
  align-items: flex-end;
  min-height: 88px;
  padding: 20px 22px 20px;
  border-radius: 0 0 30px 30px;
  background: #f4f1eb;
  color: #17202a;
}
.dashboard-topbar-title {
  color: #17202a;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
}
.dashboard-topbar-legacy,
.dashboard-topbar-avatar { display: none !important; }

#copilot-menu-view .home-welcome-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#copilot-menu-view .home-welcome-brand-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  object-fit: contain;
}
#copilot-menu-view .home-welcome-brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: #17202a;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1;
}
#copilot-menu-view .home-welcome-brand-wordmark b { color: #17202a; }
#copilot-menu-view .home-welcome-brand-wordmark strong { color: #f27b12; font-weight: 800; }

#settings-modal:not(.is-profile-detail) .profile-hero {
  display: grid;
  gap: 10px;
  width: calc(100% + 28px);
  max-width: none;
  margin: -20px -14px 14px;
  border-radius: 0 0 30px 30px;
  padding: 22px 22px 24px;
  background: #f4f1eb;
  color: #17202a;
}
#settings-modal:not(.is-profile-detail) .profile-hero h2 {
  color: #17202a;
  font-size: 30px;
  letter-spacing: -.055em;
  line-height: 1;
}
.profile-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #17202a;
}
.profile-hero-brand img {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  object-fit: contain;
}
.profile-hero-brand span {
  display: inline-flex;
  align-items: baseline;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}
.profile-hero-brand b { color: #17202a; }
.profile-hero-brand strong { color: #f27b12; font-weight: 800; }

@media (min-width: 561px) and (max-width: 760px) {
  .dashboard-topbar { margin-top: -18px; }
}
@media (min-width: 761px) {
  .dashboard-topbar {
    width: calc(100% + 48px);
    margin: -28px -24px 18px;
  }
  #settings-modal:not(.is-profile-detail) .profile-hero {
    width: calc(100% + 40px);
    margin: -24px -20px 18px;
  }
}
@media (max-width: 560px) {
  .dashboard-topbar-surface { min-height: 76px; padding: 16px 18px 17px; border-radius: 0 0 26px 26px; }
  .dashboard-topbar-title { font-size: 25px; }
  #copilot-menu-view .home-welcome-brand-icon { width: 30px; height: 30px; flex-basis: 30px; }
  #copilot-menu-view .home-welcome-brand-wordmark { font-size: 20px; }
  #settings-modal:not(.is-profile-detail) .profile-hero { width: calc(100% + 28px); margin: -20px -14px 14px; padding: 19px 18px 21px; border-radius: 0 0 26px 26px; }
  #settings-modal:not(.is-profile-detail) .profile-hero h2 { font-size: 28px; }
}

/* 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 {
  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 { 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;
}


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; }
.mk-time-trigger { min-height: 46px; }
.mk-time-icon { font-size: 17px; }
.mk-time-picker { display: grid; gap: 14px; padding: 14px; }
.mk-time-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid rgba(255, 120, 0, .3); border-radius: 15px; padding: 13px 15px; background: linear-gradient(135deg, rgba(255, 120, 0, .15), rgba(38, 24, 14, .72)); }
.mk-time-preview-value { color: #fff; font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.mk-time-preview small { color: #bcb7b0; font-size: 10px; text-align: right; }
.mk-time-columns { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 10px; min-height: 0; }
.mk-time-column { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 7px; min-width: 0; }
.mk-time-column-label { color: var(--brand-highlight); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.mk-time-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; padding: 4px; border: 1px solid #2c2c2c; border-radius: 15px; background: #111; scrollbar-color: #704019 #111; }
.mk-time-option { min-height: 40px; border: 1px solid transparent; border-radius: 10px; background: #181818; color: #d9d9d7; font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 750; cursor: pointer; }
.mk-time-option:hover { border-color: #704019; background: #24170d; color: #fff; }
.mk-time-option.is-selected, .mk-time-option[aria-selected='true'] { border-color: var(--brand); background: linear-gradient(135deg, var(--brand-highlight), var(--brand)); color: #0a0703; box-shadow: 0 5px 14px rgba(255, 120, 0, .18); }
.mk-time-option:disabled { cursor: not-allowed; opacity: .25; }
.mk-time-separator { align-self: center; color: var(--brand-highlight); font-size: 26px; font-weight: 850; }
.mk-time-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; border-top: 1px solid #292929; padding-top: 12px; }
.mk-time-actions button { min-height: 44px; border-radius: 13px; font-size: 13px; font-weight: 800; cursor: pointer; }
.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; }
  .mk-time-picker { padding: 11px; }
  .mk-time-options { gap: 4px; max-height: 225px; }
  .mk-time-option { min-height: 37px; font-size: 13px; }
}

/* 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; overflow-y: auto; padding: max(22px, env(safe-area-inset-top)) 18px max(28px, 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; }

body.onboarding-open { overflow: hidden; overscroll-behavior: none; }
.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); overscroll-behavior: contain; }
.onboarding-modal { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; width: min(100%, 620px); height: min(calc(100dvh - 24px), 760px); max-height: calc(100dvh - 24px); min-height: 0; 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-header-intro { max-width: 420px; margin: 6px 0 0; color: #8d8d8a; font-size: 12px; line-height: 1.45; }
.onboarding-header-actions { display: grid; justify-items: end; gap: 10px; flex: 0 0 auto; }
.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-skip { padding: 0; border: 0; background: transparent; color: #a7a7a3; font-size: 11px; font-weight: 800; cursor: pointer; }
.onboarding-skip:hover { color: #ff941f; }
.onboarding-progress { display: grid; grid-template-columns: repeat(8, 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-progress span.completed { background: #a95a0c; }
.onboarding-step { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 24px 30px; scroll-padding-block: 10px 30px; 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-operational-card { display: grid; gap: 12px; margin-bottom: 14px; padding: 14px; border: 1px solid #3c2a19; border-radius: 18px; background: #15110d; }
.onboarding-operational-heading { display: grid; gap: 3px; }
.onboarding-operational-heading strong { color: #f4f4f1; font-size: 14px; }
.onboarding-operational-heading small { color: #9e9e9a; font-size: 11px; line-height: 1.4; }
.onboarding-operational-card label { display: grid; gap: 7px; color: #c6c6c2; font-size: 11px; font-weight: 700; }
.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-field-heading { display: grid; gap: 3px; margin: 0 0 10px; }
.onboarding-field-heading strong { color: #f4f4f1; font-size: 14px; }
.onboarding-field-heading small { color: #858581; font-size: 11px; }
.onboarding-goal-automatic-note { display: grid; gap: 4px; margin-top: 12px; padding: 12px; border: 1px solid rgba(54, 212, 125, .28); border-radius: 14px; background: rgba(54, 212, 125, .07); }
.onboarding-goal-automatic-note strong { color: #36d47d; font-size: 12px; }
.onboarding-goal-automatic-note span { color: #a9aaa6; font-size: 10px; line-height: 1.45; }
.onboarding-choice-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.onboarding-choice { position: relative; display: grid; align-content: center; min-height: 66px; padding: 12px 14px; border: 1px solid #2d2d2d; border-radius: 16px; background: #111; color: #c5c5c1; cursor: pointer; }
.onboarding-choice input, .onboarding-calendar-day input { position: absolute; width: 1px; height: 1px; min-height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }
.onboarding-choice span { display: grid; gap: 4px; }
.onboarding-choice strong { color: #f4f4f1; font-size: 13px; }
.onboarding-choice small { color: #858581; font-size: 10px; line-height: 1.35; }
.onboarding-choice:has(input:checked) { border-color: #ff941f; background: #24170d; box-shadow: inset 0 0 0 1px rgba(255, 148, 31, .3); }
.onboarding-choice:has(input:checked) strong { color: #ffad4f; }
.onboarding-choice:focus-within, .onboarding-calendar-day:focus-within { outline: 2px solid rgba(255, 148, 31, .8); outline-offset: 2px; }
.onboarding-goal-preview { display: grid; gap: 4px; margin: 4px 0 6px; padding: 14px; border: 1px solid #3c2a19; border-radius: 16px; background: #15110d; }
.onboarding-goal-preview strong { color: #ffad4f; font-size: 13px; }
.onboarding-goal-preview span { color: #9e9e9a; font-size: 11px; line-height: 1.45; }
.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-calendar-card { padding: 12px; margin-bottom: 14px; border: 1px solid #292929; border-radius: 18px; background: #0f0f0f; }
.onboarding-calendar-header { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 8px; margin-bottom: 10px; }
.onboarding-calendar-header strong { text-align: center; color: #f4f4f1; font-size: 14px; }
.onboarding-calendar-header button { width: 36px; height: 36px; border: 1px solid #303030; border-radius: 11px; background: #171717; color: #f4f4f1; font-size: 20px; cursor: pointer; }
.onboarding-calendar-header button:hover { border-color: #ff941f; color: #ffad4f; }
.onboarding-calendar-days { display: grid; gap: 6px; }
.onboarding-calendar-weekdays, .onboarding-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.onboarding-calendar-weekdays { margin-bottom: 6px; }
.onboarding-calendar-weekdays span { color: #777773; font-size: 9px; font-weight: 800; text-align: center; }
.onboarding-calendar-day { position: relative; display: grid; place-items: center; min-height: 38px; border: 1px solid #2a2a2a; border-radius: 10px; background: #171717; color: #bcbcb7; font-size: 11px; cursor: pointer; }
.onboarding-calendar-day.is-selected { border-color: #ff941f; background: #2b1b0d; color: #ffad4f; box-shadow: inset 0 0 0 1px rgba(255, 148, 31, .25); }
.onboarding-calendar-day:hover { border-color: #8e551e; }
.onboarding-calendar-empty { min-height: 38px; }
.onboarding-calendar-card > small { display: block; margin-top: 12px; color: #ffad4f; font-size: 11px; font-weight: 800; }
.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-optional-badge { display: inline-flex; padding: 6px 9px; margin: -4px 0 15px; border: 1px solid #3c2a19; border-radius: 999px; background: #17110b; color: #ffad4f; font-size: 10px; font-weight: 800; }
.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-ready-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.onboarding-ready-summary-grid article { display: grid; gap: 5px; min-width: 0; padding: 12px; border: 1px solid #292929; border-radius: 14px; background: #111; }
.onboarding-ready-summary-grid small { color: #858581; font-size: 10px; }
.onboarding-ready-summary-grid strong { overflow: hidden; color: #f4f4f1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.onboarding-next-step-card { display: grid; gap: 5px; margin-top: 14px; padding: 14px; border: 1px solid #24435a; border-radius: 16px; background: #0e1821; }
.onboarding-next-step-card span { color: #7fb6dc; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.onboarding-next-step-card strong { color: #f4f4f1; font-size: 13px; }
.onboarding-next-step-card p { margin: 0; color: #a9b7c0; font-size: 11px; line-height: 1.5; }
.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 max(18px, env(safe-area-inset-bottom)); border-top: 1px solid #222; background: #0b0b0b; }
.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 { height: calc(100dvh - 12px); max-height: none; border-radius: 22px; }
  .onboarding-header { padding: 20px 18px 12px; }
  .onboarding-header h2 { font-size: 21px; }
  .onboarding-header-intro { font-size: 11px; }
  .onboarding-progress { padding: 0 18px 14px; }
  .onboarding-step { padding: 4px 18px 32px; }
  .onboarding-step .form-row { grid-template-columns: 1fr; gap: 0; }
  .onboarding-choice-group { grid-template-columns: 1fr 1fr; }
  .onboarding-ready-summary-grid { grid-template-columns: 1fr; }
  .onboarding-feedback { margin-left: 18px; margin-right: 18px; }
  .onboarding-actions { padding: 11px 18px max(18px, env(safe-area-inset-bottom)); }
  .onboarding-operational-card { padding: 12px; margin-bottom: 12px; }
  .onboarding-calendar-card { padding: 10px; margin-bottom: 10px; }
  .onboarding-calendar-header { margin-bottom: 9px; }
  .onboarding-calendar-weekdays, .onboarding-calendar-grid { gap: 3px; }
  .onboarding-calendar-day, .onboarding-calendar-empty { min-height: 32px; border-radius: 8px; }
  .onboarding-calendar-day { font-size: 10px; }
}

/* 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; }
}

/* Login: composição inspirada em telas móveis, mantendo a identidade MetaKM. */
.auth-screen {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% -120px, rgba(255, 120, 0, .16), transparent 350px),
    #050505;
}
.auth-card {
  position: relative;
  width: min(100%, 410px);
  overflow: hidden;
  padding: 30px 26px 25px;
  border: 1px solid #292929;
  border-radius: 27px;
  background: linear-gradient(180deg, #0d0d0d, #090909);
  box-shadow: 0 26px 74px rgba(0, 0, 0, .56), inset 0 1px rgba(255, 255, 255, .035);
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 13%;
  right: 13%;
  height: 2px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, transparent, #ff7800 35%, #ff9a24 65%, transparent);
  opacity: .9;
}
.auth-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 2px 0 25px;
  text-align: center;
}
.auth-brand-icon {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(255, 120, 0, .14));
}
.auth-wordmark {
  width: min(218px, 78%);
  margin: 0;
  object-fit: contain;
  filter: none;
}
.auth-card > .eyebrow {
  margin: 0 0 8px;
  color: #ff941f;
  font-size: 10px;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
}
.auth-card h1 {
  margin: 0;
  color: #f7f7f5;
  font-size: clamp(25px, 7vw, 30px);
  letter-spacing: -.045em;
  text-align: center;
}
.auth-subtitle {
  max-width: 310px;
  margin: 9px auto 22px;
  color: #999996;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0 0 20px;
  padding: 4px;
  border: 1px solid #292929;
  border-radius: 14px;
  background: #111;
}
.auth-tab {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #898985;
  font-size: 12px;
  font-weight: 800;
}
.auth-tab:hover { color: #f2f2ef; }
.auth-tab.active {
  border-color: #ff7800;
  background: #ff7800;
  color: #1b0b02;
  box-shadow: 0 7px 20px rgba(255, 120, 0, .2);
}
.google-auth-block {
  display: grid;
  gap: 9px;
  margin: 0 0 17px;
}
.google-button { display: flex; justify-content: center; min-height: 46px; }
.google-button-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 1px solid #343434;
  border-radius: 13px;
  background: #141414;
  color: #e5e5e2;
  font-size: 13px;
  font-weight: 800;
}
.google-button-fallback:hover { border-color: #555; background: #191919; }
.google-g { width: 22px; height: 22px; }
.google-status { min-height: 15px; margin: 0; color: #777773; font-size: 10px; text-align: center; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 17px;
  color: #676764;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.auth-divider[hidden] { display: none; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: #292929; }
.auth-divider span { white-space: nowrap; }
.auth-form { display: grid; gap: 13px; }
.auth-form label {
  display: grid;
  gap: 7px;
  color: #c5c5c1;
  font-size: 11px;
  font-weight: 800;
}
.auth-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #303030;
  border-radius: 14px;
  background: #141414;
  color: #f4f4f1;
  font-size: 14px;
}
.auth-form input::placeholder { color: #70706d; }
.auth-form input:hover { border-color: #454545; }
.auth-form input:focus { border-color: #ff941f; box-shadow: 0 0 0 3px rgba(255, 148, 31, .1); outline: none; }
.auth-form > .primary-action {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
}
.auth-actions { justify-content: center; margin-top: 14px; }
.auth-link-button { color: #b3b3af; font-size: 11px; font-weight: 700; }
.auth-link-button:hover { color: #ff9a24; }
.auth-message { margin: 13px 0 0; text-align: center; }
.auth-link-preview { text-align: center; }
.demo-note { color: #6e6e6b; text-align: center; }
@media (max-width: 520px) {
  .auth-screen { padding-right: 12px; padding-left: 12px; }
  .auth-card { padding: 28px 20px 23px; border-radius: 24px; }
  .auth-brand-icon { width: 76px; height: 76px; flex-basis: 76px; }
  .auth-wordmark { width: min(205px, 82%); }
}

.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.local-capture-card { grid-template-columns: minmax(0, 1fr); border-color: rgba(54, 212, 125, .24); background: linear-gradient(145deg, rgba(19, 38, 29, .36), var(--surface)); }
.captured-ride-screenshot { display: block; width: 100%; max-height: 360px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; object-fit: contain; background: #090a0a; }
.captured-ride-screenshot-placeholder { display: grid; place-items: center; min-height: 120px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; }
.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-details { margin: 8px 0 0; color: var(--muted-strong); font-size: 12px; font-weight: 700; }
@media (min-width: 640px) {
  .captured-ride-card.local-capture-card { grid-template-columns: minmax(0, 1fr); }
}

/* 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'); }
[data-icon='sparkle'] { --ph-icon: url('assets/icons/phosphor/regular/sparkle.svg'); }
[data-icon='chat-circle'] { --ph-icon: url('assets/icons/lucide/message-circle.svg'); }
[data-icon='user-circle'] { --ph-icon: url('assets/icons/phosphor/regular/user.svg'); }
[data-icon='gear'] { --ph-icon: url('assets/icons/phosphor/regular/sliders-horizontal.svg'); }
[data-icon='question'],
[data-icon='chat'] { --ph-icon: url('assets/icons/phosphor/regular/bell.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; }


/* Resultado operacional mantém o azul como identidade fixa do indicador. */
.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%);
}

/* Legibilidade para consulta rápida; o Overfly mantém sua microtipografia própria. */
.topbar-subtitle,
.secondary-metric small { 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; }
}

/* Relatório técnico: documento compacto, legível e compartilhável. */
.period-report-action { display: flex; justify-content: flex-end; margin-top: 10px; }
.financial-report-modal { width: min(100%, 620px); max-height: 94vh; overflow-y: auto; }
.financial-report-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.financial-report-heading > div { min-width: 0; }
.financial-report-mark { display: inline-grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid rgba(255, 120, 0, .38); border-radius: 10px; background: rgba(255, 120, 0, .12); color: var(--brand-highlight); font-size: 22px; }
.financial-report-period-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 18px; }
.report-period-tab { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.report-period-tab.active { border-color: var(--brand); background: rgba(255, 120, 0, .13); color: var(--brand-highlight); }
.financial-report-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 10px; color: var(--muted); font-size: 11px; }
.financial-report-meta strong { color: var(--text); font-size: 13px; }
.financial-report-paper { min-height: 280px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 5px; padding: 13px; background: #f5f5f0; color: #171717; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.financial-report-loading { display: grid; min-height: 240px; place-items: center; color: #5c5c58; font-size: 13px; text-align: center; }
.technical-report-document { font-family: Manrope, Inter, system-ui, sans-serif; font-size: 11px; line-height: 1.4; }
.technical-report-document-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #c7c7c0; }
.technical-report-document-head div { display: grid; gap: 2px; }
.technical-report-document-head strong { font-size: 17px; letter-spacing: -.02em; }
.technical-report-document-head small { color: #686863; font-size: 10px; }
.technical-report-document-head > span { color: #62625d; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.technical-report-document-subhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 7px; }
.technical-report-document-subhead strong { font-size: 12px; }
.technical-report-document-subhead span { color: #686863; font-size: 10px; }
.technical-report-document-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 8px 0 2px; }
.technical-report-document-meta div { display: grid; gap: 2px; }
.technical-report-document-meta small { color: #74746f; font-size: 9px; letter-spacing: .08em; }
.technical-report-document-meta strong { font-size: 11px; }
.technical-report-section { padding: 11px 0 2px; border-top: 1px dashed #b7b7b0; }
.technical-report-section h3 { margin: 0 0 4px; color: #52524e; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.technical-report-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 25px; padding: 4px 0; border-bottom: 1px solid #e1e1db; }
.technical-report-line span { min-width: 0; color: #555550; }
.technical-report-line strong { color: #171717; font-size: 11px; text-align: right; white-space: nowrap; }
.technical-report-line.is-highlight strong { font-size: 14px; }
.technical-report-line.is-expense strong { color: #aa3b3b; }
.technical-report-line.is-positive strong { color: #087b4b; }
.technical-report-line.is-negative strong { color: #b42318; }
.technical-report-line.is-total { margin-top: 5px; padding-top: 8px; border-top: 1px solid #a9a9a2; border-bottom: 0; }
.technical-report-line.is-total span, .technical-report-line.is-total strong { font-size: 12px; font-weight: 900; }
.technical-report-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; color: #777771; font-size: 9px; }
.technical-report-foot strong { color: #4d4d48; white-space: nowrap; }
.financial-report-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.financial-report-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 10px; font-size: 11px; }
.financial-report-actions button:first-child { grid-column: 1 / -1; }
.financial-report-actions [data-icon] { --ph-size: 15px; }
.financial-report-feedback { min-height: 18px; margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.financial-report-feedback.error { color: #ff8d8d; }
@media (max-width: 560px) {
  .financial-report-modal { padding: 15px; }
  .financial-report-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .technical-report-document-meta { grid-template-columns: 1fr; gap: 6px; }
  .technical-report-line { gap: 8px; }
  .technical-report-line span { font-size: 10px; }
  .technical-report-line strong { font-size: 10px; }
}

@media print {
  body.printing-financial-report * { visibility: hidden !important; }
  body.printing-financial-report #financial-report-modal,
  body.printing-financial-report #financial-report-modal * { visibility: visible !important; }
  body.printing-financial-report #financial-report-modal { position: static; display: block !important; overflow: visible; padding: 0; background: #fff; }
  body.printing-financial-report #financial-report-modal .financial-report-modal { width: 100%; max-height: none; overflow: visible; border: 0; border-radius: 0; padding: 0; background: #fff; box-shadow: none; }
  body.printing-financial-report .financial-report-heading,
  body.printing-financial-report .financial-report-period-tabs,
  body.printing-financial-report .financial-report-meta,
  body.printing-financial-report .financial-report-actions,
  body.printing-financial-report .financial-report-feedback { display: none !important; }
  body.printing-financial-report .financial-report-paper { max-height: none; overflow: visible; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
}

/*
 * Linguagem visual mais firme: menos efeito "cartão inflado" e mais
 * agrupamento por linhas. Mantemos círculos, chips de status e indicadores
 * como elementos semânticos; apenas os contêineres e controles principais
 * ficam com cantos discretos.
 */
:root {
  --mk-radius-panel: 12px;
  --mk-radius-control: 8px;
  --mk-radius-icon: 8px;
}

/* Superfícies principais */
.financial-overview,
.primary-financial-card,
.profit-goal-card,
.dashboard-revenue-chart-card,
.goal-card,
.ride-summary-card,
.profile-access-card,
.legal-panel,
.privacy-panel,
.personal-expense-form,
.personal-summary,
.personal-recent,
.copilot-hero,
.copilot-settings-section,
.transaction-review-paper,
.transaction-payments,
.planning-overview-hero,
.planning-obligations,
.planning-expected-result,
.planning-chart-card,
.auth-card,
.camera-setup-overview,
.camera-step-panel,
.camera-choice-card,
.camera-quality-card,
.obligation-entry-form {
  border-radius: var(--mk-radius-panel) !important;
}

/* Listas e blocos de conteúdo */
.profile-menu-item,
.backup-identity-card,
.permission-status-card,
.copilot-feature,
.copilot-menu-item,
.copilot-toggle,
.copilot-choice,
.copilot-voice-preview,
.copilot-rule,
.activity-item,
.secondary-metric,
.personal-expense-item,
.planning-obligation-row,
.overview-metric,
.planning-trends article,
.planning-chart-summary > div,
.metric-preview,
.metric-preview-card,
.obligation-history-item {
  border-radius: var(--mk-radius-control) !important;
}

/* Botões, abas e campos */
.primary-action,
.secondary-action,
.danger-action,
.profile-back,
.period-chip,
.calendar-button,
.planning-calendar-header button,
.goal-choice-buttons button,
.transaction-tab,
.auth-tab,
.camera-step-tab,
.obligation-entry-actions button,
.remove-platform,
.remove-expense,
.remove-payment,
.remove-obligation {
  border-radius: var(--mk-radius-control) !important;
}

input:not([type='checkbox']):not([type='radio']),
select,
textarea,
.modal input,
.modal select,
.auth-form input {
  border-radius: var(--mk-radius-control) !important;
}

.period-navigation,
.transaction-switch,
.auth-tabs {
  border-radius: var(--mk-radius-control) !important;
}

/* Ícones continuam reconhecíveis, mas sem o aspecto de cápsula. */
.metric-icon,
.activity-symbol,
.profile-menu-icon,
.copilot-menu-icon,
.copilot-home-card-icon[data-icon],
.copilot-toggle-icon,
.launch-card-icon,
.trend-icon,
.copilot-next-icon,
.copilot-orb,
.auth-mark {
  border-radius: var(--mk-radius-icon) !important;
}

/* A navegação ganha uma base mais reta; Lançar continua sendo o destaque. */
.bottom-nav {
  border-radius: 12px 12px 0 0 !important;
}
.bottom-nav .nav-item:not(.nav-launcher) > [data-icon] {
  border-radius: var(--mk-radius-icon) !important;
}
.bottom-nav .nav-launcher .launcher-icon {
  border-radius: 14px !important;
}

/* As telas de página ocupam a largura inteira; seus modais continuam sem moldura. */
.modal { border-radius: var(--mk-radius-panel) !important; }
.page-screen > .modal { border-radius: 0 !important; }

@media (max-width: 520px) {
  :root {
    --mk-radius-panel: 10px;
    --mk-radius-control: 7px;
    --mk-radius-icon: 7px;
  }
}

/*
 * Início: um único painel para a leitura rápida do período.
 * Os mesmos IDs continuam sendo atualizados pelo app; aqui só mudamos
 * a composição visual para reduzir a rolagem e a repetição de cartões.
 */
.financial-overview {
  display: block;
  padding: 12px !important;
  border-radius: var(--mk-radius-panel) !important;
}
.financial-overview .primary-financial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.financial-overview .primary-financial-card {
  min-height: 82px;
  padding: 10px 9px;
  border-radius: var(--mk-radius-control) !important;
}
.financial-overview .revenue-card {
  grid-column: 1 / -1;
  min-height: 132px;
}
.financial-overview .expenses-card,
.financial-overview .balance-card { min-height: 78px; }
.financial-overview .revenue-card > strong {
  margin-top: 2px;
  font-size: clamp(31px, 5vw, 42px);
}
.financial-overview .expenses-card > strong,
.financial-overview .balance-card > strong {
  margin-top: 2px;
  font-size: clamp(20px, 3vw, 27px);
}
.financial-overview .primary-financial-card > small {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.15;
}
.financial-overview .goal-inline {
  gap: 4px;
  margin-top: 7px;
  padding-top: 6px;
}
.financial-overview .financial-context {
  justify-content: center;
  margin: 8px 0 0;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 10px;
}
.financial-overview .secondary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 8px 0 0;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.financial-overview .secondary-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 7px 6px;
  border: 0 !important;
  border-right: 1px solid rgba(255, 255, 255, .09) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .09) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none;
  transform: none;
}
.financial-overview .secondary-metric:nth-child(2n) { border-right: 0 !important; }
.financial-overview .secondary-metric:nth-last-child(-n + 2) { border-bottom: 0 !important; }
.financial-overview .secondary-metric .metric-icon {
  width: 23px;
  height: 23px;
  border-radius: 6px !important;
  font-size: 11px;
}
.financial-overview .secondary-metric small {
  display: block;
  overflow-wrap: anywhere;
  color: #a79d94;
  font-size: 9px;
  line-height: 1.1;
}
.financial-overview .secondary-metric strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .financial-overview { padding: 9px !important; }
  .financial-overview .primary-financial-grid { gap: 6px; }
  .financial-overview .primary-financial-card { padding: 8px 7px; }
  .financial-overview .revenue-card { min-height: 126px; }
  .financial-overview .expenses-card,
  .financial-overview .balance-card { min-height: 70px; }
  .financial-overview .financial-context { font-size: 9px; }
  .financial-overview .secondary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .financial-overview .secondary-metric {
    min-height: 45px;
    gap: 5px;
    padding: 6px 4px;
  }
  .financial-overview .secondary-metric:nth-child(2n) { border-right: 0 !important; }
  .financial-overview .secondary-metric:nth-last-child(-n + 2) { border-bottom: 0 !important; }
  .financial-overview .secondary-metric .metric-icon { width: 21px; height: 21px; }
  .financial-overview .secondary-metric small { font-size: 8px; }
  .financial-overview .secondary-metric strong { font-size: 12px; }
}

/* Gráfico: cada rótulo acompanha o topo da própria barra. */
.dashboard-chart-column {
  grid-template-rows: 142px auto;
  gap: 5px;
}
.dashboard-chart-bars {
  position: relative;
  align-items: flex-end;
  height: 142px;
  overflow: visible;
}
.dashboard-chart-bar-stack {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  align-self: flex-end;
  width: min(28px, 72%);
  min-height: 3px;
}
.dashboard-chart-bar-stack .dashboard-chart-bar {
  width: 100%;
  height: 100% !important;
  min-height: 3px;
}
.dashboard-chart-column-value {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 2;
  overflow: visible;
  align-self: auto;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}
.dashboard-revenue-chart-plot.is-month .dashboard-chart-bar-stack,
.dashboard-revenue-chart-plot.is-year .dashboard-chart-bar-stack { width: 5px; }

@media (max-width: 560px) {
  .dashboard-chart-column { grid-template-rows: 116px auto; gap: 4px; }
  .dashboard-chart-bars { height: 116px; }
  .dashboard-chart-column-value { font-size: 8px; }
}

/* Navegação inferior: ícones como linguagem principal, com rótulos preservados para acessibilidade. */
.bottom-nav .nav-item {
  position: relative;
  min-height: 56px;
  gap: 0;
  padding: 5px 8px;
}
.bottom-nav .nav-item .nav-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.bottom-nav .nav-item:not(.nav-launcher) > [data-icon] {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  --ph-size: 22px;
  background: transparent;
}
.bottom-nav .nav-item:not(.nav-launcher).active > [data-icon] {
  background: rgba(255, 120, 0, .14);
  color: var(--brand-highlight);
}
.bottom-nav .nav-launcher .launcher-icon {
  width: 60px;
  height: 60px;
  margin: -28px auto 0;
  border: 5px solid var(--bg);
  border-radius: 19px;
  background: linear-gradient(145deg, var(--brand-highlight), var(--brand));
  color: #17100a;
  --ph-size: 27px;
  box-shadow: 0 9px 24px rgba(255, 120, 0, .34);
}
.bottom-nav .nav-launcher:hover .launcher-icon,
.bottom-nav .nav-launcher:focus-visible .launcher-icon { box-shadow: 0 12px 29px rgba(255, 120, 0, .45); }


/* Obrigações: uma inclusão por vez, com a mesma leitura das despesas pessoais. */
.obligations-editor-section { gap: 13px; }
.obligation-intro { margin: -4px 0 0; }
.obligation-entry-form { gap: 12px; }
.obligation-entry-heading { display: grid; gap: 3px; }
.obligation-entry-heading h4 { margin: 0; color: var(--ink); font-size: 15px; }
.obligation-entry-include { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px; min-height: 34px; color: var(--muted-strong); font-size: 11px; }
.obligation-entry-include input { width: 18px !important; min-width: 18px; min-height: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--brand-highlight); }
.obligation-entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.obligation-entry-actions .primary-action { min-width: 174px; }
.obligation-entry-actions .secondary-action { min-height: 42px; }
.obligation-entry-form .personal-feedback { min-height: 16px; margin: 0; }
.obligation-rows[hidden] { display: none !important; }
.obligation-history-item { grid-template-columns: minmax(0, 1fr) auto auto; }
.obligation-history-actions { display: flex; align-items: center; gap: 4px; }
.obligation-history-actions .activity-action { width: auto; min-width: 28px; padding: 5px 7px; font-size: 10px; }
.obligation-history-actions .activity-action.delete { width: 26px; min-width: 26px; padding: 0; }
@media (max-width: 520px) {
  .bottom-nav .nav-item:not(.nav-launcher) > [data-icon] { width: 40px; height: 40px; }
  .bottom-nav .nav-launcher .launcher-icon { width: 58px; height: 58px; }
  .obligation-entry-actions { align-items: stretch; flex-direction: column; }
  .obligation-entry-actions button { width: 100%; }
}

/* Harmonização das telas internas: menos repetição, mesma informação útil. */
#profile-detail-view > .modal-intro,
#copilot-detail-view .copilot-heading .modal-intro { display: none; }
#profile-detail-view,
#copilot-detail-view { gap: 12px; }

/* A tela já informa o nome da seção no cabeçalho; o segundo cabeçalho não precisa repetir. */
#profile-section-vehicle .planning-section > .section-heading,
#profile-section-planning .planning-section > .section-heading,
#profile-section-goals .planning-section > .section-heading,
#profile-section-obligations .planning-section > .section-heading { display: none; }
#profile-detail-view .profile-detail-panel .section-heading.compact > div > .eyebrow,
#profile-section-personal .personal-control-panel > .section-heading .eyebrow,
#profile-section-personal-fixed .personal-control-panel > .section-heading .eyebrow { display: none; }
#profile-section-personal .personal-intro,
#profile-section-personal-fixed .personal-intro { display: none; }
#profile-detail-view .profile-detail-panel .section-heading.compact { margin-bottom: 0; }

/* Jornada: métricas viram uma lista agrupada, sem perder nenhum valor. */
#copilot-section-journey .copilot-journey-runtime {
  overflow: hidden;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
#copilot-section-journey .copilot-journey-runtime article {
  min-height: 70px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 11px 12px;
  background: transparent;
}
#copilot-section-journey .copilot-journey-runtime article:nth-child(even) { border-right: 0; }
#copilot-section-journey .copilot-journey-runtime article:nth-last-child(-n + 2) { border-bottom: 0; }
#copilot-section-journey .copilot-journey-runtime article small,
#copilot-section-journey .copilot-journey-value-grid article small,
#copilot-section-journey .copilot-journey-flow article small,
#copilot-section-journey .copilot-journey-history .field-hint { display: none; }
#copilot-section-journey .copilot-journey-value { gap: 10px; }
#copilot-section-journey .copilot-journey-flow {
  overflow: hidden;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
#copilot-section-journey .copilot-journey-flow article {
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 12px;
  background: transparent;
}
#copilot-section-journey .copilot-journey-flow article:last-child { border-bottom: 0; }
#copilot-section-journey .copilot-journey-upcoming p { display: none; }

/* Copiloto: os títulos dos grupos bastam; a explicação fica nas telas de configuração. */
#copilot-detail-view .section-heading.compact > div > .field-hint,
#copilot-detail-view .copilot-criteria-step-heading small,
#copilot-detail-view .copilot-toggle-copy small { display: none; }
#copilot-detail-view .copilot-settings-section { gap: 12px; }

/* Overfly: o simulador continua disponível, mas não domina a prévia principal. */
#copilot-section-overfly > .section-heading .field-hint,
#copilot-section-overfly > .overfly-criteria-hint { display: none; }
.overfly-simulator {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 10px 12px;
  background: var(--surface);
}
.overfly-simulator summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.overfly-simulator summary::-webkit-details-marker { display: none; }
.overfly-simulator summary::after {
  content: '+';
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand-highlight);
  font-size: 15px;
  line-height: 1;
}
.overfly-simulator[open] summary::after { content: '−'; }
.overfly-simulator summary strong { font-size: 12px; }
.overfly-simulator summary small,
.overfly-simulation-label,
.overfly-note { color: var(--muted); font-size: 10px; line-height: 1.4; }
.overfly-simulation-label,
.overfly-note { margin: 0; }
.overfly-form-grid { gap: 8px; }

/* Câmera: mantém a política transparente, sem transformar a ativação em um segundo aceite. */
#copilot-detail-view .security-camera-panel > .privacy-panel-heading { display: none; }
.camera-step-heading > div > div > .eyebrow,
.camera-step-heading > div > div > small,
.camera-step-nav .camera-step-tab small { display: none; }
.camera-step-heading { align-items: center; }
.camera-step-nav .camera-step-tab { min-height: 46px; padding: 9px 10px; }
.camera-disclosure-box p { font-size: 10.5px; line-height: 1.42; }
.camera-quality-note,
.camera-storage-policy { font-size: 10px; line-height: 1.4; }
.camera-space-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.camera-space-grid > div { min-width: 0; padding: 10px; }

#launch-modal > .launch-modal > .modal-intro,
#launch-modal .launch-card small { display: none; }

#launch-modal .launch-card { min-height: 76px; }

@media (max-width: 560px) {
  #copilot-section-journey .copilot-journey-runtime article { min-height: 62px; padding: 9px 10px; }
  #copilot-section-journey .copilot-journey-runtime article > span { font-size: 9px; }
  #copilot-section-journey .copilot-journey-runtime article > strong { font-size: 14px; }
  .camera-space-grid small { font-size: 9px; }
  .camera-space-grid strong { font-size: 14px; }
}

/* 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-journey-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
.copilot-journey-actions > .primary-action,
.copilot-journey-actions > .secondary-action { width: 100%; min-height: 48px; }
.copilot-journey-actions > .secondary-action { border-color: rgba(255, 174, 71, .35); color: #ffc477; }
.journey-collection { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px 12px; border: 1px solid rgba(255, 120, 0, .28); border-radius: 16px; padding: 14px; background: rgba(255, 120, 0, .045); }
.journey-collection > div:first-child { display: grid; min-width: 0; gap: 4px; }
.journey-collection strong { font-size: 13px; }
.journey-collection small,
.journey-collection > p { color: var(--muted); font-size: 10px; line-height: 1.5; }
.journey-collection > p { grid-column: 1 / -1; margin: 0; }
.journey-collection-toggle { min-height: 44px; padding-inline: 15px; }
.journey-collection-toggle.is-active { border-color: rgba(255, 92, 92, .65); background: rgba(255, 92, 92, .1); color: #ff9a9a; }
.journey-collection-files { display: flex; grid-column: 1 / -1; gap: 8px; }
.journey-collection-files[hidden] { display: none; }
.journey-collection-files button { flex: 1; min-height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #171819; color: var(--text); font: inherit; font-size: 11px; font-weight: 800; }
.copilot-journey-history { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.copilot-journey-history-list { display: grid; gap: 8px; }
.copilot-journey-history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #111212; }
.copilot-journey-history-item strong { display: block; font-size: 12px; }
.copilot-journey-history-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.copilot-journey-history-item > span { color: var(--green); font-size: 11px; font-weight: 800; text-align: right; }

/* Jornada 2.0: leitura rápida da sessão, das plataformas e dos dados lidos. */
.copilot-journey-tabs { margin-bottom: 1px; }
.copilot-journey-tabs button { font-size: 11px; }
.copilot-journey-platforms { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 13px; background: #111212; }
.copilot-journey-platforms .section-heading { align-items: center; margin: 0; }
.copilot-journey-platforms .section-heading h3 { margin: 2px 0 0; font-size: 16px; }
.journey-platforms-updated { color: var(--muted); font-size: 10px; white-space: nowrap; }
.copilot-journey-platform-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.journey-platform-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: 10px; background: #0d0e0e; }
.journey-platform-card.is-connected { border-color: rgba(54, 212, 125, .38); background: rgba(54, 212, 125, .055); }
.journey-platform-logo { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 9px; background: #202121; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: -.05em; }
.journey-platform-logo.platform-uber { background: #f4f4f2; color: #101010; }
.journey-platform-logo.platform-99 { background: #f2db00; color: #111; }
.journey-platform-logo.platform-indrive { background: #b9e937; color: #182000; }
.journey-platform-card > div { display: grid; min-width: 0; gap: 3px; }
.journey-platform-card strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.journey-platform-card div span { color: var(--muted); font-size: 9px; }
.journey-platform-card.is-connected div span { color: var(--green); }
.journey-platform-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(255, 82, 82, .1); }
.journey-platform-card.is-connected .journey-platform-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(54, 212, 125, .1); }
.journey-platforms-note { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.journey-history-period-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: #111212; }
.journey-history-period-tabs button { min-height: 35px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.journey-history-period-tabs button.active { border-color: rgba(255, 120, 0, .42); background: rgba(255, 120, 0, .1); color: var(--brand-highlight); }
@media (max-width: 560px) {
  .copilot-journey-platform-list { grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
  .journey-platform-card { grid-template-columns: auto minmax(0, 1fr); gap: 6px; padding: 8px 6px; }
  .journey-platform-card .journey-platform-dot { grid-column: 2; justify-self: start; margin-top: -3px; }
  .journey-platform-logo { width: 28px; height: 28px; }
  .journey-platform-card strong { font-size: 10px; }
  .journey-platform-card div span { font-size: 8px; }
}
.fuel-record-panel { display: grid; gap: 12px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.fuel-record-form { display: grid; gap: 10px; }
.fuel-record-primary-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fuel-record-secondary { border-top: 1px solid var(--line); padding-top: 10px; }
.fuel-record-secondary summary { cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 800; }
.fuel-record-secondary[open] summary { margin-bottom: 10px; }
.fuel-record-form .secondary-action { min-height: 46px; }
.fuel-observation-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fuel-observation-summary > div { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 13px; padding: 11px; background: #111212; }
.fuel-observation-summary small { color: var(--muted); font-size: 9px; }
.fuel-observation-summary strong { font-size: 13px; }
.fuel-record-list { display: grid; gap: 7px; }
.fuel-record-item { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 2px; }
.fuel-record-item strong, .fuel-record-item small { display: block; }
.fuel-record-item strong { font-size: 12px; }
.fuel-record-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.fuel-record-item > span { font-size: 12px; font-weight: 800; text-align: right; }
.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-value { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(54, 212, 125, .18); border-radius: 16px; background: rgba(54, 212, 125, .035); }
.copilot-journey-value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.copilot-journey-value-grid article { display: grid; gap: 5px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: #111212; }
.copilot-journey-value-grid span { color: #8f918f; font-size: 9px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.copilot-journey-value-grid strong { overflow: hidden; color: var(--green); font-size: 16px; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.copilot-journey-value-grid small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.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-super-step { gap: 10px; }
.copilot-super-settings { display: grid; gap: 10px; padding-top: 2px; }
.copilot-super-settings[hidden] { display: none; }
.copilot-super-settings > label { display: grid; gap: 6px; }
.copilot-super-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 11px; border: 1px solid rgba(255, 196, 119, .22); border-radius: 13px; background: rgba(255, 120, 0, .07); }
.copilot-super-preview strong { grid-column: 1 / -1; color: #ffc477; font-size: 11px; }
.copilot-super-preview span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.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, .copilot-journey-value-grid { grid-template-columns: 1fr 1fr; }
  .copilot-journey-runtime article.is-emphasis { grid-column: 1 / -1; }
  .copilot-journey-actions { grid-template-columns: 1fr; }
  .fuel-record-primary-fields { grid-template-columns: 1fr; }
  .fuel-observation-summary { grid-template-columns: 1fr; }
  .copilot-criteria-step { padding: 12px; }
}

.security-camera-panel { --orange: var(--brand-highlight); 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-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 { display: grid; gap: 4px; }
.camera-choice-card strong { font-size: 12px; }
.camera-choice-card 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-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-primary-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; border: 1px solid var(--line); border-radius: 13px; padding: 4px; background: rgba(255, 255, 255, .025); }
.camera-primary-tab { min-height: 42px; border: 0; border-bottom: 2px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.camera-primary-tab:hover, .camera-primary-tab:focus-visible { color: var(--ink); outline: none; }
.camera-primary-tab.is-active { border-bottom-color: var(--orange); background: rgba(255, 138, 0, .1); color: var(--orange); }
.camera-config-options { display: grid; gap: 8px; }
.camera-config-option { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 70px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); padding: 10px 11px; font: inherit; text-align: left; cursor: pointer; }
.camera-config-option:hover, .camera-config-option:focus-visible, .camera-config-option.is-active { border-color: rgba(255, 138, 0, .65); background: rgba(255, 138, 0, .08); outline: none; }
.camera-config-option > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.camera-config-option strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.camera-config-option small { color: var(--muted); font-size: 10px; }
.camera-config-option.is-active small { color: #ffc477; }
.camera-config-option-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255, 138, 0, .45); border-radius: 10px; background: rgba(255, 138, 0, .09); color: var(--orange); font-size: 14px; font-weight: 900; }
.camera-config-option-arrow { color: var(--muted-strong); font-size: 22px; line-height: 1; }
.camera-config-option:hover .camera-config-option-arrow, .camera-config-option.is-active .camera-config-option-arrow { color: var(--orange); }
.camera-step-back { justify-self: start; border: 0; background: transparent; color: var(--orange); padding: 0; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.camera-step-back:hover, .camera-step-back:focus-visible { color: var(--ink); outline: none; }
.camera-recording-group { display: grid; gap: 8px; }
.camera-recording-group > h4 { color: var(--ink); font-size: 14px; }
.camera-recording-group-list { display: grid; gap: 8px; }
.camera-recording-item { position: relative; display: grid; grid-template-columns: 82px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 8px; }
.camera-recording-thumb-wrap { position: relative; width: 82px; height: 58px; overflow: hidden; border-radius: 9px; background: #17191b; }
.camera-recording-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.camera-recording-thumb-empty { display: grid; place-items: center; color: var(--orange); font-size: 25px; }
.camera-recording-duration { position: absolute; right: 4px; bottom: 4px; border-radius: 4px; background: rgba(0, 0, 0, .78); color: #fff; padding: 2px 4px; font-size: 8px; font-weight: 800; }
.camera-recording-item-info { display: grid; gap: 5px; min-width: 0; }
.camera-recording-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.camera-recording-item small { color: var(--muted); font-size: 10px; }
.camera-recording-play, .camera-recording-menu-trigger { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--orange); font: inherit; cursor: pointer; }
.camera-recording-play:hover, .camera-recording-play:focus-visible, .camera-recording-menu-trigger:hover, .camera-recording-menu-trigger:focus-visible { border-color: var(--orange); background: rgba(255, 138, 0, .1); outline: none; }
.camera-recording-play [data-icon] { font-size: 13px; }
.camera-recording-menu-wrap { position: relative; }
.camera-recording-menu-trigger { border: 0; width: 30px; color: var(--muted-strong); font-size: 20px; }
.camera-recording-menu { position: absolute; z-index: 5; top: 38px; right: 0; display: grid; min-width: 118px; gap: 3px; border: 1px solid var(--line); border-radius: 10px; padding: 5px; background: #151313; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.camera-recording-menu[hidden] { display: none; }
.camera-recording-menu button { border: 0; border-radius: 6px; background: transparent; color: var(--ink); padding: 8px 9px; font: inherit; font-size: 10px; text-align: left; cursor: pointer; }
.camera-recording-menu button:hover, .camera-recording-menu button:focus-visible { background: rgba(255, 138, 0, .12); color: var(--orange); outline: none; }
.camera-recording-menu button[data-camera-action="delete"] { color: #ff9bad; }
.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-storage-footer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(70px, .8fr) auto; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.camera-storage-footer-copy { display: flex; align-items: center; gap: 9px; min-width: 0; }
.camera-storage-footer-copy > span:last-child { display: grid; gap: 4px; min-width: 0; }
.camera-storage-footer-copy strong { font-size: 11px; }
.camera-storage-footer-copy small { color: var(--muted); font-size: 9px; }
.camera-storage-footer > strong { color: var(--muted-strong); font-size: 10px; white-space: nowrap; }
.camera-storage-footer-meter { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .09); }
.camera-storage-footer-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--orange); transition: width .2s ease; }
.camera-setup-overview[hidden], .camera-step-nav[hidden], .camera-step[hidden], .camera-feedback[hidden], .camera-recordings-section[hidden] { display: none !important; }
.camera-config-options[hidden] { display: none !important; }
.security-camera-panel > .camera-recordings-section { border-top: 0; padding-top: 0; }
#camera-start-button { display: none !important; }
.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; }
.camera-setup-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; border: 1px solid rgba(255, 138, 0, .28); border-radius: 17px; padding: 13px; background: linear-gradient(145deg, rgba(255, 138, 0, .12), rgba(20, 16, 25, .82)); }
.camera-setup-overview-current, .camera-setup-overview-config { display: flex; align-items: center; gap: 10px; min-width: 0; }
.camera-setup-overview-current > div, .camera-setup-overview-config { display: grid; gap: 3px; }
.camera-setup-overview small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.camera-setup-overview strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.camera-setup-overview-config { align-content: center; justify-content: end; text-align: right; }
.camera-setup-overview-number { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 12px; background: var(--orange); color: #17100a; font-size: 14px; font-weight: 900; }
.camera-setup-progress { display: block; grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .09); }
.camera-setup-progress span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #ffd166); transition: width .2s ease; }
.camera-step-nav { position: sticky; top: 0; z-index: 2; display: flex; gap: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; padding: 6px; background: rgba(20, 16, 25, .94); box-shadow: 0 9px 24px rgba(0, 0, 0, .2); backdrop-filter: blur(12px); scrollbar-width: thin; }
.camera-step-tab { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1px 7px; min-width: 128px; min-height: 54px; flex: 1 0 128px; border: 1px solid transparent; border-radius: 11px; padding: 8px 9px; background: transparent; color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.camera-step-tab > span { display: grid; place-items: center; grid-row: 1 / span 2; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; font-weight: 900; }
.camera-step-tab strong { overflow: hidden; color: var(--muted-strong); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.camera-step-tab small { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.camera-step-tab:hover, .camera-step-tab:focus-visible { border-color: rgba(255, 138, 0, .35); color: var(--ink); outline: none; }
.camera-step-tab.is-active { border-color: rgba(255, 138, 0, .68); background: rgba(255, 138, 0, .12); color: var(--ink); }
.camera-step-tab.is-active > span, .camera-step-tab.is-complete > span { border-color: var(--orange); background: var(--orange); color: #17100a; }
.camera-step-tab.is-active strong, .camera-step-tab.is-complete strong { color: var(--ink); }
.camera-step { display: grid; gap: 12px; scroll-margin-top: 84px; border-top: 1px solid var(--line); padding-top: 17px; }
.camera-step.is-current { border-top-color: rgba(255, 138, 0, .55); }
.camera-step-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.camera-step-heading > div { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.camera-step-heading > div > div { display: grid; gap: 3px; min-width: 0; }
.camera-step-heading .eyebrow { margin: 0; }
.camera-step-heading h4 { margin: 0; color: var(--ink); font-size: 16px; letter-spacing: -.02em; }
.camera-step-heading small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.camera-step-number { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border: 1px solid rgba(255, 138, 0, .45); border-radius: 10px; background: rgba(255, 138, 0, .1); color: #ffc477; font-size: 11px; font-weight: 900; }
.camera-step-state { flex: 0 0 auto; border: 1px solid rgba(255, 138, 0, .3); border-radius: 999px; padding: 6px 8px; color: #ffc477; font-size: 9px; font-weight: 900; white-space: nowrap; }
.camera-step-state.is-ready { border-color: rgba(112, 220, 170, .26); color: #9cecc3; }
.camera-step-state.is-complete { border-color: rgba(112, 220, 170, .38); background: rgba(112, 220, 170, .08); color: #9cecc3; }
.camera-disclosure-box { border-radius: 16px; padding: 15px; }
.camera-choice-card input[type='radio'], .camera-quality-card input[type='radio'] { width: 22px !important; min-width: 22px; min-height: 22px; height: 22px; flex: 0 0 22px; margin: 2px 0 0; padding: 0; border: 0; background: transparent; accent-color: var(--orange); }
.camera-choice-card, .camera-quality-card { position: relative; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.camera-choice-card:hover, .camera-quality-card:hover { border-color: rgba(255, 138, 0, .48); transform: translateY(-1px); }
.camera-choice-card:has(input:checked), .camera-quality-card:has(input:checked) { box-shadow: 0 0 0 2px rgba(255, 138, 0, .09); }
.camera-choice-card::after, .camera-quality-card::after { position: absolute; top: 9px; right: 10px; border-radius: 999px; padding: 4px 6px; background: var(--orange); color: #17100a; content: 'Selecionada'; font-size: 8px; font-weight: 900; opacity: 0; transform: translateY(-2px); transition: opacity .18s ease, transform .18s ease; }
.camera-choice-card:has(input:checked)::after, .camera-quality-card:has(input:checked)::after { opacity: 1; transform: translateY(0); }
.camera-choice-card:has(input:checked), .camera-quality-card:has(input:checked) { padding-right: 82px; }
.camera-quality-section { gap: 12px; }
.camera-quality-note { border-left: 2px solid rgba(255, 138, 0, .4); padding-left: 10px; }
.camera-space-grid > div { min-height: 67px; align-content: center; }
.camera-step-storage .camera-recordings-section { margin-top: 2px; }
@media (max-width: 520px) {
  .camera-recording-item { grid-template-columns: 70px minmax(0, 1fr) auto auto; gap: 8px; }
  .camera-recording-thumb-wrap { width: 70px; height: 52px; }
  .camera-recording-item strong { font-size: 10px; }
  .camera-recording-item small { font-size: 9px; }
  .camera-choice-grid, .camera-space-grid { grid-template-columns: 1fr; }
  .camera-local-badge { display: none; }
  .camera-setup-overview { grid-template-columns: 1fr; gap: 10px; }
  .camera-setup-overview-config { justify-content: start; padding-left: 44px; text-align: left; }
  .camera-step-heading { display: grid; gap: 8px; }
  .camera-step-state { justify-self: start; }
  .camera-step-tab { min-width: 116px; flex-basis: 116px; }
}



/* 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; }
/* Controle de localização pertence ao mapa; os controles do Leaflet ficam logo abaixo. */


.fuel-record-actions { display: flex; gap: 6px; grid-column: 1 / -1; }
.fuel-record-actions button { border: 0; background: transparent; color: var(--brand); cursor: pointer; font-size: 11px; padding: 2px 0; }
.fuel-record-actions button + button { color: var(--danger, #b42318); }


/* Limpeza visual: títulos conduzem a leitura; detalhes continuam nas telas internas. */
#settings-modal > .profile-modal > .profile-hero .modal-intro,
#settings-modal #profile-menu-view #account-email-preview,
#settings-modal #profile-menu-view .profile-menu-item small,
#copilot-menu-view .copilot-home-intro,
#copilot-menu-view .copilot-home-card .copilot-menu-copy > span,
#copilot-menu-view .copilot-home-card .copilot-menu-copy small,
#copilot-detail-view .copilot-heading .modal-intro { display: none; }

/* Copiloto: módulos agrupados e acessos de configuração no próprio contexto. */
#copilot-menu-view .copilot-home-header { align-items: center; }
#copilot-menu-view .copilot-home-header h2 { margin: 0; }
#copilot-menu-view .copilot-home-availability,
#copilot-menu-view .copilot-home-status,
#copilot-menu-view .copilot-home-section-heading { display: none; }
#copilot-menu-view .copilot-module-main .copilot-menu-copy > span,
#copilot-menu-view .copilot-module-main .copilot-menu-copy > small,
#copilot-menu-view .copilot-module-controls .copilot-card-status { display: none; }
#copilot-menu-view .copilot-module-controls { grid-template-columns: minmax(0, 1fr) auto; }
#copilot-menu-view .copilot-home-group { gap: 0; }
#copilot-menu-view .copilot-home-group + .copilot-home-group { margin-top: 10px; }
#copilot-menu-view .copilot-protection-title { display: none; }

/* Limpeza global: títulos principais já comunicam a seção; mantemos apenas texto funcional. */
.page-screen > .modal > .eyebrow,
.page-screen > .modal > .modal-intro,
.page-screen .section-heading > div > .eyebrow { display: none; }
.financial-overview .primary-financial-card > small:not(.financial-detail) { display: none; }
.dashboard-quick-actions .dashboard-quick-action-label { display: none; }

#copilot-menu-view .copilot-module-list {
  display: grid;
  gap: 10px;
  overflow: visible;
  border: 0;
  background: transparent;
}

#copilot-menu-view .copilot-module-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  background: linear-gradient(145deg, rgba(25, 23, 21, .98), rgba(14, 14, 13, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}

#copilot-menu-view .copilot-module-card[data-module-tone="green"] { border-color: rgba(54, 212, 125, .23); }
#copilot-menu-view .copilot-module-card[data-module-tone="purple"] { border-color: rgba(167, 115, 255, .25); }
#copilot-menu-view .copilot-module-card[data-module-tone="blue"] { border-color: rgba(88, 151, 255, .25); }
#copilot-menu-view .copilot-module-card.is-disabled { opacity: .58; }
#copilot-menu-view .copilot-module-main { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 11px; min-width: 0; }
#copilot-menu-view .copilot-module-main .copilot-home-card-icon { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 120, 0, .08); color: var(--brand-highlight); }
#copilot-menu-view .copilot-module-main .copilot-menu-copy { gap: 3px; }
#copilot-menu-view .copilot-module-main .copilot-menu-copy > span { color: #8f918f; font-size: 9px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
#copilot-menu-view .copilot-module-main .copilot-menu-copy strong { font-size: 15px; letter-spacing: -.02em; }
#copilot-menu-view .copilot-module-main .copilot-menu-copy small { overflow: visible; color: var(--muted); font-size: 10px; line-height: 1.35; white-space: normal; }
#copilot-menu-view .copilot-module-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; }
#copilot-menu-view .copilot-module-controls .copilot-card-status { position: static; width: max-content; border-radius: 999px; padding: 4px 7px; font-size: 8px; }
#copilot-menu-view .copilot-module-switch { display: inline-grid; place-items: center; width: 42px; height: 26px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 2px; background: rgba(255, 255, 255, .1); cursor: pointer; }
#copilot-menu-view .copilot-module-switch i { display: block; width: 20px; height: 20px; margin-right: auto; border-radius: 50%; background: #d8d3cf; transition: transform .18s ease, background .18s ease; }
#copilot-menu-view .copilot-module-switch[data-state="on"] { border-color: rgba(54, 212, 125, .34); background: rgba(54, 212, 125, .2); }
#copilot-menu-view .copilot-module-switch[data-state="on"] i { transform: translateX(16px); background: var(--green); }
#copilot-menu-view .copilot-module-switch:focus-visible, #copilot-menu-view .copilot-module-config:focus-visible, #copilot-menu-view .copilot-module-links button:focus-visible { outline: 2px solid var(--brand-highlight); outline-offset: 2px; }
#copilot-menu-view .copilot-module-config { min-height: 34px; border: 1px solid rgba(255, 120, 0, .35); border-radius: 10px; padding: 7px 9px; background: rgba(255, 120, 0, .08); color: var(--brand-highlight); font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
#copilot-menu-view .copilot-module-config:hover, #copilot-menu-view .copilot-module-links button:hover { background: rgba(255, 120, 0, .16); }
#copilot-menu-view .copilot-module-links { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 49px; }
#copilot-menu-view .copilot-module-links button { min-height: 28px; border: 1px solid var(--line); border-radius: 9px; padding: 5px 8px; background: rgba(255, 255, 255, .025); color: var(--muted-strong); font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; }

@media (max-width: 560px) {
  .context-config-tabs { gap: 4px; border-radius: 12px; }
  .context-config-tabs button { min-height: 32px; padding-inline: 9px; font-size: 9px; }
  #copilot-menu-view .copilot-module-card { padding: 11px; border-radius: 14px; }
  #copilot-menu-view .copilot-module-main .copilot-home-card-icon { width: 34px; height: 34px; }
  #copilot-menu-view .copilot-module-main .copilot-menu-copy strong { font-size: 14px; }
  #copilot-menu-view .copilot-module-links { padding-left: 45px; }
  #copilot-menu-view .copilot-module-controls { grid-template-columns: minmax(0, 1fr) auto; }
  #copilot-menu-view .copilot-module-config { grid-column: 1 / -1; width: 100%; }
}

#settings-modal #profile-menu-view .profile-access-main > div { gap: 6px; }
#settings-modal #profile-menu-view .profile-access-link { min-height: 42px; padding-top: 9px; }
#settings-modal #profile-menu-view .profile-menu-item { min-height: 52px; padding: 9px 11px; }
#settings-modal #profile-menu-view .profile-menu-icon { width: 34px; height: 34px; border-radius: 10px; }
#settings-modal #profile-menu-view .profile-menu-item > span:last-child { width: 18px; height: 18px; }

#copilot-menu-view .copilot-home-card { min-height: 60px; padding: 10px 12px; }
#copilot-menu-view .copilot-home-card-icon[data-icon] { display: inline-grid; place-items: center; align-self: center; justify-self: center; width: 34px; height: 34px; border-radius: 10px; }
#copilot-menu-view .copilot-home-card .copilot-menu-copy { gap: 0; }

/* Copiloto: lista compacta inspirada na referência, preservando os handlers existentes. */
#copilot-menu-view .copilot-reference-group { gap: 6px; }
#copilot-menu-view .copilot-reference-heading {
  margin: 4px 0 2px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#copilot-menu-view .copilot-reference-group .copilot-module-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 13px;
  background: var(--surface);
}
#copilot-menu-view .copilot-reference-group .copilot-module-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 74px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 10px 0 12px;
  background: transparent;
  box-shadow: none;
  transition: background .18s ease, opacity .18s ease;
}
#copilot-menu-view .copilot-reference-group .copilot-module-card:last-child { border-bottom: 0; }
#copilot-menu-view .copilot-reference-group .copilot-module-card:hover { border-color: var(--line); background: rgba(255, 255, 255, .035); transform: none; }
#copilot-menu-view .copilot-reference-group .copilot-module-main { grid-template-columns: auto minmax(0, 1fr); gap: 10px; min-width: 0; }
#copilot-menu-view .copilot-reference-group .copilot-module-main .copilot-home-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(137, 105, 255, .14);
  color: #a895ff;
}
#copilot-menu-view .copilot-reference-group .copilot-module-card[data-module-tone="green"] .copilot-home-card-icon { background: rgba(54, 212, 125, .12); color: var(--green); }
#copilot-menu-view .copilot-reference-group .copilot-module-card[data-module-tone="orange"] .copilot-home-card-icon { background: rgba(255, 120, 0, .12); color: var(--brand-highlight); }
#copilot-menu-view .copilot-reference-group .copilot-module-card[data-module-tone="blue"] .copilot-home-card-icon { background: rgba(88, 151, 255, .12); color: #78aaff; }
#copilot-menu-view .copilot-reference-group .copilot-home-card-icon,
#copilot-menu-view .copilot-reference-group .copilot-module-card[data-module-tone] .copilot-home-card-icon {
  border: 1px solid rgba(255, 120, 0, .72);
  background: rgba(255, 120, 0, .06);
  color: #fff;
}
#copilot-menu-view .copilot-reference-group .copilot-menu-copy { gap: 0; }
#copilot-menu-view .copilot-reference-group .copilot-menu-copy strong { font-size: 14px; letter-spacing: -.01em; }
#copilot-menu-view .copilot-reference-group .copilot-menu-copy small,
#copilot-menu-view .copilot-reference-group .copilot-card-status { display: none; }
#copilot-menu-view .copilot-reference-group .copilot-module-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
#copilot-menu-view .copilot-reference-group .copilot-module-switch { flex: 0 0 auto; width: 36px; height: 22px; }
#copilot-menu-view .copilot-reference-group .copilot-module-switch i { width: 16px; height: 16px; }
#copilot-menu-view .copilot-reference-group .copilot-module-switch i { background: var(--brand-highlight); }
#copilot-menu-view .copilot-reference-group .copilot-module-switch[data-state="on"] i { transform: translateX(12px); }
#copilot-menu-view .copilot-reference-group .copilot-module-switch[data-state="on"] {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .14);
}
#copilot-menu-view .copilot-reference-group .copilot-module-switch[data-state="on"] i {
  background: var(--brand-highlight);
}
#copilot-menu-view .copilot-reference-group .copilot-module-config {
  display: inline-grid;
  width: 22px;
  height: 34px;
  min-height: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: transparent;
  color: var(--muted);
}
#copilot-menu-view .copilot-reference-group .copilot-module-config:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
#copilot-menu-view .copilot-reference-group .copilot-module-config [data-icon] { --ph-size: 16px; }
#copilot-menu-view .copilot-reference-hint {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding: 15px 4px 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
#copilot-menu-view .copilot-reference-hint strong {
  color: var(--muted-strong);
  font-size: 11px;
}
#copilot-menu-view .copilot-reference-hint span::before {
  content: '•';
  margin-right: 7px;
  color: var(--brand-highlight);
}

/* Todos os ícones compartilham a mesma caixa de alinhamento, inclusive os SVG mascarados. */
[data-icon] {
  display: inline-grid;
  place-items: center;
  align-content: center;
  justify-content: center;
  align-self: center;
  vertical-align: middle;
  line-height: 1;
  flex: 0 0 auto;
}
[data-icon]::before { place-self: center; margin: 0; }
.nav-item > [data-icon],
.profile-menu-item > [data-icon],
.copilot-home-card > [data-icon],
.modal-close[data-icon] { align-self: center; justify-self: center; }
.profile-menu-icon[data-icon],
.copilot-menu-icon[data-icon],
.copilot-home-card-icon[data-icon],
.copilot-toggle-icon[data-icon],
.launch-card-icon[data-icon],
.metric-icon[data-icon],
.activity-symbol[data-icon],
.mk-field-trigger-icon[data-icon] { display: inline-grid; place-items: center; }

@media (max-width: 520px) {
  .personal-summary-overview { grid-template-columns: 1fr; }
  .personal-donut-panel { grid-template-columns: 116px minmax(0, 1fr); }
  
  
  
  
  


  
  .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 { 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; }
}

/*
 * Início — camada autoritativa do painel financeiro.
 * Deve permanecer depois das regras globais de legibilidade para que o painel
 * conserve sua hierarquia e a grade mobile em duas colunas.
 */
.financial-overview {
  padding: 10px !important;
  border: 1px solid #272a2d;
  background: linear-gradient(180deg, #0e1011 0%, #090a0b 100%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .28);
}
.financial-overview .primary-financial-grid { gap: 7px; }
.financial-overview .primary-financial-card {
  min-width: 0;
  min-height: 86px;
  justify-content: flex-start;
  padding: 11px 12px 10px;
  border-width: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.financial-overview .primary-financial-card::after { display: none; }
.financial-overview .revenue-card {
  min-height: 140px;
  border-color: #25d978;
  background: linear-gradient(135deg, #087a3f 0%, #076a39 56%, #075b33 100%);
}
.financial-overview .expenses-card {
  border-color: #fb4c6b;
  background: linear-gradient(135deg, #c7163b 0%, #aa1435 58%, #8d1632 100%);
}
.financial-overview .balance-card,
.financial-overview .balance-card.is-positive,
.financial-overview .balance-card.is-negative {
  border-color: #69a7ff;
  background: linear-gradient(135deg, #3478e5 0%, #2563d5 54%, #1d46a6 100%);
}
.financial-overview .financial-label {
  margin-top: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.financial-overview .revenue-card > strong {
  margin-top: 3px;
  color: #fff;
  font-size: clamp(34px, 8vw, 42px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.financial-overview .expenses-card > strong,
.financial-overview .balance-card > strong {
  margin-top: 4px;
  color: #fff;
  font-size: clamp(23px, 5.5vw, 29px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.financial-overview .primary-financial-card > small {
  margin-top: 5px;
  color: rgba(255, 255, 255, .8);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
}
.financial-overview .after-costs-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 52px;
  border: 1px solid #2b2b2b;
  border-radius: var(--mk-radius-control);
  padding: 8px 10px;
  background: #111;
  color: var(--ink);
}
.financial-overview .after-costs-card.is-positive,
.financial-overview .after-costs-card.is-negative,
.financial-overview .after-costs-card.is-neutral { border-color: #2b2b2b; background: #111; }
.financial-overview .after-costs-summary {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.financial-overview .after-costs-summary .financial-label { margin: 0; }
.financial-overview #balance-after-costs {
  color: #ddd;
  font-size: 16px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.financial-overview .after-costs-card.is-positive #balance-after-costs { color: #74efa8; }
.financial-overview .after-costs-card.is-negative #balance-after-costs { color: #ff8f9a; }
.financial-overview .after-costs-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c9c9c7;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.financial-overview .after-costs-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.financial-overview .after-costs-status.is-positive { color: #74efa8; }
.financial-overview .after-costs-status.is-negative { color: #ff9aa4; }
.financial-overview .after-costs-breakdown {
  min-width: 0;
  color: #aaa5a0;
  font-size: 9px;
  line-height: 1.2;
  text-align: right;
}
.financial-overview .after-costs-breakdown > span { font-weight: 600; }
.financial-overview .after-costs-breakdown > span strong { color: #d6d2cd; font-weight: 800; }
.financial-overview .goal-inline {
  gap: 5px;
  width: 100%;
  margin-top: 9px;
  padding-top: 8px;
  border-top-color: rgba(255, 255, 255, .18);
}
.financial-overview .goal-inline-top,
.financial-overview .goal-inline-bottom { gap: 10px; }
.financial-overview .goal-inline-top { font-size: 10px; font-weight: 650; }
.financial-overview .goal-inline-top strong,
.financial-overview .goal-inline-bottom strong { font-size: 11px; font-weight: 800; }
.financial-overview .goal-inline-track { height: 5px; }
.financial-overview .goal-inline-bottom { font-size: 9px; }
.financial-overview .goal-inline-bottom em { padding: 2px 6px; font-size: 9px; }
.financial-overview .financial-context {
  justify-content: flex-start;
  min-height: 24px;
  margin: 5px 0 0;
  padding: 6px 4px 0;
  color: #a9adaf;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .01em;
}
.financial-overview .financial-context .status-dot {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 3px rgba(54, 212, 125, .1);
}
.financial-overview .secondary-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 6px 0 0;
  padding-top: 0;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  background: rgba(255, 255, 255, .018);
  overflow: hidden;
}
.financial-overview .secondary-metric {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  min-height: 49px;
  padding: 7px 9px;
  border-right-color: rgba(255, 255, 255, .1) !important;
  border-bottom-color: rgba(255, 255, 255, .1) !important;
}
.financial-overview .secondary-metric > div { min-width: 0; }
.financial-overview .secondary-metric .metric-icon,
.financial-overview .secondary-metric .metric-icon[data-icon] {
  --ph-size: 15px;
  width: 28px;
  height: 28px;
  border-radius: 7px !important;
}
.financial-overview .secondary-metric small {
  color: #aeb2b4;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: 0;
}
.financial-overview .secondary-metric strong {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .financial-overview { padding: 8px !important; }
  .financial-overview .primary-financial-grid { gap: 6px; }
  .financial-overview .after-costs-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: 0;
    padding: 8px;
  }
  .financial-overview .after-costs-breakdown {
    text-align: left;
  }
  .financial-overview .primary-financial-card { min-height: 82px; padding: 10px 8px 9px; }
  .financial-overview .revenue-card { min-height: 136px; }
  .financial-overview .expenses-card > strong,
  .financial-overview .balance-card > strong { font-size: clamp(21px, 6.1vw, 27px); }
  .financial-overview .primary-financial-card > small { font-size: 9px; }
  .financial-overview .financial-context { font-size: 9px; }
  .financial-overview .secondary-metric {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 7px;
    min-height: 47px;
    padding: 6px 8px;
  }
  .financial-overview .secondary-metric .metric-icon,
  .financial-overview .secondary-metric .metric-icon[data-icon] {
    --ph-size: 14px;
    width: 26px;
    height: 26px;
  }
  .financial-overview .secondary-metric small { font-size: clamp(9px, 2.5vw, 10px); }
  .financial-overview .secondary-metric strong { font-size: 13px; }
}
/* Dashboard executive shortcuts */
.dashboard-kpi-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: stretch;
}
.dashboard-quick-actions {
  display: grid;
  grid-template-rows: repeat(3, minmax(42px, 1fr));
  gap: 6px;
  padding-block: 1px;
}
.dashboard-quick-actions button {
  width: 46px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 122, 0, .36);
  border-radius: 9px;
  background: #18120d;
  color: #ff8a18;
  font-size: 20px;
  cursor: pointer;
}
.dashboard-quick-actions button:active,
.dashboard-quick-actions button:focus-visible {
  background: #ff7a00;
  color: #090909;
  outline: 2px solid rgba(255, 145, 48, .45);
  outline-offset: 1px;
}
.planning-calendar-intro {
  display: grid;
  gap: 4px;
  margin: 2px 0 14px;
  padding-left: 12px;
  border-left: 3px solid #ff7a00;
}
.planning-calendar-intro strong { color: #fff; font-size: .98rem; }
.planning-calendar-intro small { color: var(--muted, #a9a9a9); line-height: 1.45; }
.dashboard-chart-section,
.activity-section { scroll-margin-top: 18px; transition: box-shadow .25s ease, border-color .25s ease; }
.dashboard-chart-section.is-quick-highlight,
.activity-section.is-quick-highlight { box-shadow: 0 0 0 2px rgba(255, 122, 0, .55); border-color: rgba(255, 122, 0, .7); }
@media (max-width: 370px) {
  .dashboard-kpi-area { grid-template-columns: minmax(0, 1fr) 42px; gap: 5px; }
  .dashboard-quick-actions button { width: 42px; }
}
.copilot-alert-center-settings .section-heading { align-items: center; }
.copilot-alert-center-list { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.copilot-alert-history-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; background: #0b0b0c; }
.copilot-alert-history-item > span { width: 32px; height: 32px; border-radius: 8px; background: #24201c; color: var(--orange); }
.copilot-alert-history-item div { min-width: 0; display: grid; gap: 2px; }
.copilot-alert-history-item strong { font-size: .88rem; }
.copilot-alert-history-item small, .copilot-alert-history-item time { color: var(--muted); font-size: .72rem; }
.copilot-alert-history-item.is-good > span { color: #39da88; background: #073923; }
.copilot-alert-history-item.is-bad > span { color: #ff4768; background: #3c0e18; }

/* Atalhos principais: coluna flutuante dentro da moldura do painel. */
.dashboard-kpi-area { display: block; }
.financial-overview { position: relative; }
.dashboard-quick-actions {
  position: fixed;
  right: max(24px, calc((100vw - min(700px, calc(100vw - 48px))) / 2 + 24px));
  bottom: calc(16px + env(safe-area-inset-bottom) + 58px + 12px);
  z-index: 14;
  width: 58px;
  display: grid;
  grid-template-rows: 46px 56px 46px;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.dashboard-quick-actions button {
  width: 46px;
  height: 46px;
  justify-self: center;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 154, 36, .7);
  border-radius: 50%;
  background: rgba(15, 13, 11, .94);
  color: #ff922b;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .38);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.dashboard-quick-actions button:hover,
.dashboard-quick-actions button:focus-visible {
  border-color: rgba(255, 154, 36, .78);
  background: #21170f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .34);
  outline: 2px solid rgba(255, 145, 48, .35);
  outline-offset: 1px;
  transform: translateY(-1px);
}
.dashboard-quick-actions button.is-primary {
  width: 56px;
  height: 56px;
  background: #ff7a00;
  color: #090909;
  border-color: #ff9a24;
  box-shadow: 0 10px 26px rgba(255, 122, 0, .42);
}
.dashboard-quick-actions button.is-primary:hover,
.dashboard-quick-actions button.is-primary:focus-visible {
  background: #ff922b;
  color: #090909;
  box-shadow: 0 12px 29px rgba(255, 122, 0, .42);
}
.dashboard-quick-action-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  --ph-size: 18px;
}
.dashboard-quick-actions button.is-primary .dashboard-quick-action-icon {
  width: 34px;
  height: 34px;
  --ph-size: 30px;
  font-size: 30px;
  font-weight: 500;
}
.dashboard-quick-action-label {
  color: inherit;
  display: none;
  font-weight: 800;
  letter-spacing: .02em;
}
.page-open .dashboard-quick-actions,
.auth-lock .dashboard-quick-actions,
.startup-lock .dashboard-quick-actions,
.onboarding-open .dashboard-quick-actions { opacity: 0; pointer-events: none; }

/* O saldo completo pertence ao relatório gerencial, não à leitura rápida da Início. */
.report-profit-goal-card {
  margin: 0 0 13px;
  border-color: #343434;
  border-radius: 10px;
  padding: 17px;
  background: linear-gradient(145deg, #121212, #0b0b0b);
  box-shadow: none;
}
.report-profit-goal-card .profit-goal-heading h3 { margin: 3px 0 0; font-size: 18px; letter-spacing: -.035em; }
.report-profit-goal-card .profit-goal-result { padding-block: 13px 9px; }
.report-profit-goal-card .profit-goal-result strong { font-size: clamp(30px, 8vw, 42px); }
.report-profit-goal-card .profit-goal-breakdown { margin-top: 12px; }

.managerial-report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 12px;
}
.managerial-report-summary article { display: grid; align-content: space-between; min-height: 68px; border: 1px solid #d7d7d0; padding: 9px; background: #fff; }
.managerial-report-summary span { color: #666660; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.managerial-report-summary strong { margin-top: 7px; color: #171717; font-size: 13px; letter-spacing: -.03em; }
.managerial-report-summary .is-expense strong { color: #aa3b3b; }
.managerial-report-summary .is-positive strong { color: #087b4b; }
.managerial-report-summary .is-negative strong { color: #b42318; }

/* Histórico de jornadas: resumo do conjunto e ficha gerencial de cada turno. */
.copilot-journey-history-panel { display: grid; gap: 14px; }
.copilot-journey-history-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: #151515; }
.copilot-journey-history-summary article { display: grid; gap: 5px; min-width: 0; padding: 12px; border-right: 1px solid var(--line); }
.copilot-journey-history-summary article:last-child { border-right: 0; }
.copilot-journey-history-summary span { color: var(--muted); font-size: 10px; }
.copilot-journey-history-summary strong { color: var(--text); font-size: 16px; letter-spacing: -.03em; }
.copilot-journey-history-list { display: grid; gap: 10px; }
.copilot-journey-history-item { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #101010; }
.copilot-journey-history-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.copilot-journey-history-date { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "weekday month-year" "day month-year"; align-items: center; column-gap: 9px; min-width: 0; }
.copilot-journey-history-weekday { grid-area: weekday; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; line-height: 1; text-transform: uppercase; }
.copilot-journey-history-day { grid-area: day; color: var(--text); font-size: 22px !important; font-weight: 800; letter-spacing: -.04em; line-height: .95; }
.copilot-journey-history-month-year { grid-area: month-year; align-self: center; color: var(--muted); font-size: 11px; line-height: 1.25; text-transform: capitalize; }
.copilot-journey-history-status { display: grid; justify-items: end; gap: 6px; min-width: 0; }
.copilot-journey-history-status-badge { border: 1px solid rgba(54, 212, 125, .35); border-radius: 99px; padding: 4px 7px; background: rgba(54, 212, 125, .09); color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.copilot-journey-history-time { display: flex !important; align-items: center; gap: 4px; margin-top: 0 !important; color: var(--muted); font-size: 10px !important; line-height: 1.2; white-space: nowrap; }
.copilot-journey-history-time-icon { --ph-size: 13px; flex: 0 0 auto; color: var(--muted); }
.copilot-journey-history-duration { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.copilot-journey-history-duration > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.copilot-journey-history-duration > strong { color: var(--text); font-size: 18px !important; line-height: 1; }
.copilot-journey-history-note { color: var(--muted); font-size: 10px; line-height: 1.4; }

@media (max-width: 560px) {
  .dashboard-quick-actions { right: max(12px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom) + 58px + 12px); width: 56px; gap: 7px; grid-template-rows: 44px 54px 44px; }
  .dashboard-quick-actions button { width: 44px; height: 44px; }
  .dashboard-quick-actions button.is-primary { width: 54px; height: 54px; }
  .financial-report-modal { padding-inline: 12px; }
  .report-profit-goal-card { padding: 14px 13px; }
  .managerial-report-summary strong { font-size: 11px; }
  .copilot-journey-history-summary span { font-size: 8px; }
  .copilot-journey-history-summary strong { font-size: 13px; }
  .copilot-journey-history-item { gap: 12px; padding: 13px; }
  .copilot-journey-history-header { gap: 8px; }
  .copilot-journey-history-date { column-gap: 8px; }
  .copilot-journey-history-weekday { font-size: 8px; }
  .copilot-journey-history-day { font-size: 21px !important; }
  .copilot-journey-history-month-year { font-size: 10px; }
  .copilot-journey-history-status-badge { padding: 4px 6px; font-size: 8px; }
  .copilot-journey-history-time { font-size: 9px !important; }
}

/* Diálogos MetaKM substituem alertas, prompts e confirmações do navegador. */
.metakm-dialog-backdrop {
  z-index: 120;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(8px);
}
.metakm-dialog {
  width: min(420px, calc(100vw - 28px));
  display: grid;
  gap: 13px;
  border: 1px solid #35302b;
  border-radius: 12px;
  padding: 22px;
  background: linear-gradient(155deg, #171411, #0d0d0e 58%);
  color: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
}
.metakm-dialog-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 122, 0, .42);
  border-radius: 9px;
  background: rgba(255, 122, 0, .12);
  color: #ff8b1f;
  font-size: 20px;
  font-weight: 900;
}
.metakm-dialog.is-danger .metakm-dialog-icon { border-color: rgba(255, 71, 104, .42); background: rgba(255, 71, 104, .12); color: #ff4768; }
.metakm-dialog h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.metakm-dialog > p { margin: -5px 0 0; color: #bcb8b4; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.metakm-dialog-field { display: grid; gap: 7px; color: #f0eeeb; font-size: 12px; font-weight: 750; }
.metakm-dialog-field input,
.metakm-dialog-field textarea,
.metakm-dialog-field select { width: 100%; border-radius: 8px; }
.metakm-dialog-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; margin-top: 3px; }
.metakm-dialog-actions button { min-height: 48px; border-radius: 8px; }
.metakm-dialog.is-danger #metakm-dialog-confirm { background: #d92d4e; color: #fff; }

.account-name-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: end; margin: 16px 0 4px; padding: 14px 0; border-block: 1px solid var(--line); }
.account-name-editor label { min-width: 0; }
.account-name-editor button { min-height: 47px; }
.account-name-editor .account-message { grid-column: 1 / -1; margin: 0; }

/* Grupos com convite consentido, conversa e controles explícitos. */


/* A ação de salvar permanece presente: o estado comunica se há algo pendente. */
.profile-detail-actions[hidden] { display: none; }
.profile-detail-actions.is-available { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 18px; padding: 14px 0 calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.profile-detail-actions .primary-action:disabled { border-color: #333; background: #202020; color: #8f8f8f; box-shadow: none; cursor: default; }

@media (max-width: 560px) {
  .metakm-dialog-backdrop { align-items: end; padding: 12px; }
  .metakm-dialog { width: 100%; padding: 20px 17px calc(18px + env(safe-area-inset-bottom)); }
  .account-name-editor { grid-template-columns: 1fr; }
  .account-name-editor .account-message { grid-column: auto; }
  
  
  
  
  .profile-detail-actions.is-available { grid-template-columns: 1fr; }
  .profile-detail-actions .primary-action { width: 100%; }
}

/* Navegação inferior inspirada em uma pílula flutuante, com a paleta MetaKM. */
.bottom-nav {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(228px, calc(100% - 32px)) !important;
  min-height: 58px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  gap: 4px;
  padding: 6px;
  border: 1px solid #2f2f2f;
  border-radius: 999px !important;
  background: rgba(13, 13, 13, .96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(18px);
  z-index: 15;
}
.bottom-nav .nav-item {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  color: #9a948d;
}
.bottom-nav .nav-item:not(.nav-launcher) > [data-icon] {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  --ph-size: 19px;
}
.bottom-nav .nav-item:not(.nav-launcher).active {
  color: #17100a;
}
.bottom-nav .nav-item:not(.nav-launcher).active > [data-icon] {
  background: var(--brand-highlight);
  color: #17100a;
  box-shadow: 0 5px 14px rgba(255, 120, 0, .28);
}
.bottom-nav .nav-item:not(.nav-launcher):hover > [data-icon],
.bottom-nav .nav-item:not(.nav-launcher):focus-visible > [data-icon] {
  background: rgba(255, 120, 0, .14);
  color: var(--brand-highlight);
}

/* Retorno ao formato anterior: barra inferior fixa, sem pílula flutuante. */
.bottom-nav {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(calc(100% - 16px), 700px) !important;
  min-height: 76px;
  bottom: 0;
  gap: 2px;
  padding: 10px 9px calc(9px + env(safe-area-inset-bottom));
  border: 1px solid #292929;
  border-bottom: 0;
  border-radius: 12px 12px 0 0 !important;
  background: #090909;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .42);
  backdrop-filter: none;
}
.bottom-nav .nav-item {
  flex: 1;
  min-height: 56px;
  padding: 5px 8px;
  border-radius: 14px;
  color: #9a948d;
}
.bottom-nav .nav-item:not(.nav-launcher) > [data-icon] {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: transparent;
  color: inherit;
  --ph-size: 22px;
}
.bottom-nav .nav-item:not(.nav-launcher).active {
  color: var(--brand-highlight);
}
.bottom-nav .nav-item:not(.nav-launcher).active > [data-icon] {
  background: #24170d;
  color: var(--brand-highlight);
  box-shadow: none;
}



@media (max-width: 560px) {
  
  
  
  
  
  
}



@media (max-width: 560px) {
  
  
  
  
  
  
}

/* Conversas: estrutura compacta inspirada na referência, mantendo a paleta MetaKM. */


@media (max-width: 560px) {
  
  
  
}

/* Refinamento final do componente compartilhado de conversa. */


@media (max-width: 560px) {
  
}

/*
 * Política visual global: o laranja continua sendo a linguagem de ação,
 * seleção, foco e feedback. Superfícies e brilhos permanentes ficam neutros
 * para evitar a névoa laranja sobre a leitura do aplicativo.
 */
:root {
  --mk-accent-surface: #171717;
  --mk-accent-surface-strong: #1d1d1d;
  --mk-accent-outline: rgba(255, 154, 36, .42);
}

.page-screen,
.auth-screen,
.welcome-screen {
  background: var(--bg) !important;
}

.welcome-glow { display: none !important; }

.secondary-action,
.page-screen .secondary-action {
  background: var(--mk-accent-surface) !important;
  box-shadow: none !important;
}
.secondary-action:hover,
.secondary-action:active,
.secondary-action:focus-visible,
.page-screen .secondary-action:hover,
.page-screen .secondary-action:active,
.page-screen .secondary-action:focus-visible {
  background: var(--mk-accent-surface-strong) !important;
}

.context-config-tabs button.active,
.report-period-tab.active,
.goal-choice-buttons button.is-active,
.goal-choice-buttons button[aria-checked="true"],
.planning-calendar-day input:checked + span {
  background: var(--mk-accent-surface) !important;
}

.launch-card-icon,
.launch-card-today .launch-card-icon,
.copilot-menu-icon,
.copilot-home-card-icon[data-icon],
.copilot-toggle-icon[data-icon],
.copilot-journey-hero-icon,
.copilot-journey-state-icon,
.copilot-journey-config-item .copilot-menu-icon,
.financial-report-mark {
  background: var(--mk-accent-surface) !important;
  box-shadow: none !important;
}

.copilot-channel-settings,
.copilot-criteria-summary,
.copilot-next-step,
.copilot-super-preview,
.copilot-journey-upcoming,
.copilot-journey-runtime article.is-emphasis,
.copilot-card-status,
.transaction-payments,
.transaction-review-paper {
  background: var(--mk-accent-surface) !important;
  box-shadow: none !important;
}

.copilot-home-card[data-tone="orange"],
.copilot-journey-hero,
.copilot-journey-state-card {
  background: var(--surface-2) !important;
}

.bottom-nav .nav-launcher .launcher-icon,
.page-screen .primary-action,
.copilot-journey-action {
  box-shadow: none !important;
}
.bottom-nav .nav-launcher:hover .launcher-icon,
.bottom-nav .nav-launcher:focus-visible .launcher-icon,
.page-screen .primary-action:hover,
.page-screen .primary-action:active,
.copilot-journey-action:hover,
.copilot-journey-action:active {
  box-shadow: 0 0 0 2px rgba(255, 154, 36, .16) !important;
}


/* Atalhos laterais: escondem somente durante a rolagem para baixo. */
.dashboard-quick-actions {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}
.dashboard-quick-actions.is-scroll-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(22px, 0, 0);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}

/* Controles do mapa agrupados no lado direito, na regiao inferior do container. */


/* Reserva a area da navegacao inferior em telas estreitas. */
@media (max-width: 560px) {
  
  
}

/* Meu veículo: categorias compactas e controles de percentual inspirados no modelo de referência. */
.vehicle-form-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.vehicle-form-category:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.vehicle-form-category > [data-icon] {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255, 154, 36, .48);
  border-radius: 7px;
  color: var(--brand-highlight);
  font-size: 13px;
}
.vehicle-annual-costs { align-items: end; }
.vehicle-rate-field { display: grid; gap: 6px; min-width: 0; }
.vehicle-rate-field > label { display: block; }
.vehicle-stepper {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: stretch;
  overflow: hidden;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}
.vehicle-stepper button {
  min-width: 42px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .06);
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.vehicle-stepper button:last-child { border-right: 0; border-left: 1px solid rgba(255, 255, 255, .06); }
.vehicle-stepper button:hover,
.vehicle-stepper button:focus-visible { background: rgba(255, 154, 36, .1); color: var(--brand-highlight); }
.vehicle-stepper input {
  width: 100%;
  min-width: 0;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}
.vehicle-percent-input { display: inline-flex; align-items: center; justify-content: center; min-width: max-content; gap: 3px; white-space: nowrap; }
.vehicle-percent-input input { flex: 0 0 auto; min-width: 3ch; padding: 0 !important; text-align: right; }
.vehicle-percent-input > span { flex: 0 0 auto; padding: 0; color: var(--muted-strong); font-size: 13px; font-weight: 800; line-height: 1; }
.vehicle-stepper input:focus { outline: 0; }
.vehicle-stepper input::-webkit-outer-spin-button,
.vehicle-stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
#profile-section-vehicle .fuel-record-panel { display: none; }

@media (max-width: 560px) {
  .vehicle-annual-costs { grid-template-columns: 1fr; }
  .vehicle-form-category { margin-top: 6px; padding-top: 7px; }
}
/* Semáforo de Valores: configuração visual curta e orientada à decisão. */
#copilot-config-tabs[data-group="overfly"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Jornada no próprio card: estado, pausa e plataformas sem uma tela intermediária. */
#copilot-menu-view .copilot-journey-home-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border-color: rgba(255, 120, 0, .34);
  background: radial-gradient(circle at 4% 0%, rgba(255, 120, 0, .1), transparent 240px), linear-gradient(145deg, rgba(25, 23, 21, .98), rgba(14, 14, 13, .98));
}
#copilot-menu-view .copilot-journey-home-card[data-active="true"] {
  border-color: rgba(54, 212, 125, .36);
  background: radial-gradient(circle at 4% 0%, rgba(54, 212, 125, .11), transparent 240px), linear-gradient(145deg, rgba(20, 27, 23, .98), rgba(14, 14, 13, .98));
}
#copilot-menu-view .copilot-journey-home-card .copilot-module-controls { grid-template-columns: minmax(0, 1fr) auto auto; }
#copilot-menu-view .copilot-journey-home-card .copilot-module-switch[data-state="on"] { border-color: rgba(54, 212, 125, .5); background: rgba(54, 212, 125, .22); }
#copilot-menu-view .copilot-journey-home-card .copilot-module-switch[data-state="on"] i { background: var(--green); }
#copilot-menu-view .copilot-journey-home-card .copilot-card-status.is-active { border-color: rgba(54, 212, 125, .36); background: rgba(54, 212, 125, .1); color: var(--green); }
#copilot-menu-view .copilot-journey-home-summary,
#copilot-menu-view .copilot-journey-home-card > .copilot-journey-platforms,
#copilot-menu-view .copilot-journey-home-card > .journey-collection,
#copilot-menu-view .copilot-journey-home-card > .copilot-journey-feedback { grid-column: 1 / -1; }
#copilot-menu-view .copilot-journey-home-summary { display: grid; gap: 9px; }
#copilot-menu-view .copilot-journey-home-runtime { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
#copilot-menu-view .copilot-journey-home-runtime article { min-height: 72px; padding: 10px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
#copilot-menu-view .copilot-journey-home-runtime article.is-emphasis { border-color: rgba(255, 120, 0, .34); background: rgba(255, 120, 0, .08); }
#copilot-menu-view .copilot-journey-home-card[data-active="true"] .copilot-journey-home-runtime article.is-emphasis { border-color: rgba(54, 212, 125, .34); background: rgba(54, 212, 125, .08); }
#copilot-menu-view .copilot-journey-home-runtime span { font-size: 8px; }
#copilot-menu-view .copilot-journey-home-runtime strong { font-size: 16px; }
#copilot-menu-view .copilot-journey-home-runtime small { color: var(--muted); font-size: 9px; line-height: 1.3; }
#copilot-menu-view .copilot-journey-home-card[data-active="true"] .copilot-journey-home-runtime .is-emphasis strong { color: var(--green); }
#copilot-menu-view .copilot-journey-home-actions { display: flex; justify-content: flex-end; }
#copilot-menu-view .copilot-journey-home-actions .secondary-action { min-height: 38px; padding-inline: 13px; border-color: rgba(255, 174, 71, .35); color: #ffc477; }
#copilot-menu-view .copilot-journey-home-card .copilot-journey-platforms { gap: 8px; padding: 10px; border-radius: 13px; background: rgba(0, 0, 0, .16); }
#copilot-menu-view .copilot-journey-home-card .copilot-journey-platforms .section-heading h3 { font-size: 13px; }
#copilot-menu-view .copilot-journey-home-card .copilot-journey-platform-list { gap: 6px; }
#copilot-menu-view .copilot-journey-home-card .journey-platforms-note { margin: 0; font-size: 9px; line-height: 1.35; }
#copilot-menu-view .copilot-journey-home-card .journey-collection { gap: 7px 10px; padding: 10px; border-radius: 13px; }
#copilot-menu-view .copilot-journey-home-card .journey-collection strong { font-size: 11px; }
#copilot-menu-view .copilot-journey-home-card .journey-collection small,
#copilot-menu-view .copilot-journey-home-card .journey-collection > p { font-size: 9px; line-height: 1.35; }
#copilot-menu-view .copilot-journey-home-card .journey-collection-toggle { min-height: 36px; padding-inline: 11px; font-size: 10px; }
#copilot-menu-view .copilot-journey-home-card > .copilot-journey-feedback { min-height: 0; margin: -3px 2px 0; text-align: left; font-size: 10px; }

@media (max-width: 560px) {
  #copilot-menu-view .copilot-journey-home-card { grid-template-columns: minmax(0, 1fr) auto; padding: 11px; }
  #copilot-menu-view .copilot-journey-home-card .copilot-module-controls { grid-template-columns: minmax(0, 1fr) auto auto; }
  #copilot-menu-view .copilot-journey-home-card .copilot-module-config { grid-column: auto; width: auto; }
  #copilot-menu-view .copilot-journey-home-runtime { grid-template-columns: 1fr 1fr; }
  #copilot-menu-view .copilot-journey-home-runtime article.is-emphasis { grid-column: 1 / -1; }
  #copilot-menu-view .copilot-journey-home-runtime article { min-height: 64px; }
  #copilot-menu-view .copilot-journey-home-card .copilot-journey-platform-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#copilot-section-rules,
#copilot-section-alerts,
#copilot-section-overfly { gap: 12px; }
#copilot-section-rules .copilot-criteria-step,
#copilot-section-alerts .copilot-channel-settings,
#copilot-section-overfly .overfly-simulator { border-radius: 14px; background: #111212; }
#copilot-section-rules .copilot-criteria-step-heading > span { border-color: rgba(255, 138, 0, .45); background: rgba(255, 138, 0, .08); color: var(--brand-highlight); }
#copilot-section-rules > .copilot-criteria-step:first-of-type { background: transparent; }
#copilot-section-rules > .copilot-criteria-step:first-of-type .copilot-criteria-summary { background: transparent; }
#copilot-section-rules .copilot-criteria-mode { width: min(100%, 365px); grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: start; gap: 6px; }
#copilot-section-rules .copilot-criteria-mode .copilot-choice { width: 100%; height: 92px; min-height: 92px; aspect-ratio: auto; align-content: center; justify-items: center; border-color: rgba(255, 255, 255, .12); border-radius: 13px; padding: 10px 7px; background: transparent; box-shadow: none; text-align: center; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
#copilot-section-rules .copilot-criteria-mode .copilot-choice > span { width: 100%; justify-items: center; text-align: center; }
#copilot-section-rules .copilot-criteria-mode .copilot-choice::before { content: ''; position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border: 1px solid rgba(174, 178, 174, .46); border-radius: 6px; background: rgba(255, 255, 255, .015); transform: scale(.92); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
#copilot-section-rules .copilot-criteria-mode .copilot-choice::after { content: '✓'; position: absolute; top: 9px; right: 9px; display: grid; width: 18px; height: 18px; place-items: center; color: var(--green); font-size: 12px; font-weight: 950; line-height: 1; opacity: 0; transform: scale(.6); transition: opacity .18s ease, transform .2s cubic-bezier(.2, .8, .2, 1); }
#copilot-section-rules .copilot-criteria-mode .copilot-choice:hover { border-color: rgba(255, 138, 0, .62); background: transparent; transform: translateY(-1px); }
#copilot-section-rules .copilot-criteria-mode .copilot-choice:focus-within { outline: 3px solid rgba(255, 138, 0, .28); outline-offset: 2px; }
#copilot-section-rules .copilot-criteria-mode .copilot-choice input:focus-visible ~ span { outline: 0; }
#copilot-section-rules .copilot-criteria-mode .copilot-choice:has(input:checked) { border-color: rgba(54, 212, 125, .76); background: transparent; box-shadow: none; transform: translateY(0); }
#copilot-section-rules .copilot-criteria-mode .copilot-choice:has(input:checked)::before { border-color: rgba(54, 212, 125, .85); background: rgba(54, 212, 125, .11); transform: translateY(-50%) scale(1); }
#copilot-section-rules .copilot-criteria-mode .copilot-choice:has(input:checked)::after { opacity: 1; transform: translateY(-50%) scale(1); }
#copilot-section-rules .copilot-criteria-mode .copilot-choice:has(input:checked)::before,
#copilot-section-rules .copilot-criteria-mode .copilot-choice:has(input:checked)::after { transform: scale(1); }
#copilot-section-alerts #copilot-sound-settings { background: transparent; }
#copilot-section-alerts .copilot-choice-grid { width: min(100%, 365px); grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: start; gap: 6px; }
#copilot-section-alerts .copilot-choice-grid .copilot-choice { width: 100%; height: 92px; min-height: 92px; align-content: center; justify-items: center; border-color: rgba(255, 255, 255, .12); border-radius: 13px; padding: 10px 7px; background: transparent; box-shadow: none; text-align: center; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
#copilot-section-alerts .copilot-choice-grid .copilot-choice > span { width: 100%; justify-items: center; text-align: center; }
#copilot-section-alerts .copilot-choice-grid .copilot-choice::before { content: ''; position: absolute; top: 9px; right: 9px; width: 18px; height: 18px; border: 1px solid rgba(174, 178, 174, .46); border-radius: 6px; background: rgba(255, 255, 255, .015); transform: scale(.92); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
#copilot-section-alerts .copilot-choice-grid .copilot-choice::after { content: '✓'; position: absolute; top: 9px; right: 9px; display: grid; width: 18px; height: 18px; place-items: center; color: var(--green); font-size: 12px; font-weight: 950; line-height: 1; opacity: 0; transform: scale(.6); transition: opacity .18s ease, transform .2s cubic-bezier(.2, .8, .2, 1); }
#copilot-section-alerts .copilot-choice-grid .copilot-choice:hover { border-color: rgba(255, 138, 0, .62); background: transparent; transform: translateY(-1px); }
#copilot-section-alerts .copilot-choice-grid .copilot-choice:focus-within { outline: 3px solid rgba(255, 138, 0, .28); outline-offset: 2px; }
#copilot-section-alerts .copilot-choice-grid .copilot-choice input:focus-visible ~ span { outline: 0; }
#copilot-section-alerts .copilot-choice-grid .copilot-choice:has(input:checked) { border-color: rgba(54, 212, 125, .76); background: transparent; box-shadow: none; transform: translateY(0); }
#copilot-section-alerts .copilot-choice-grid .copilot-choice:has(input:checked)::before { border-color: rgba(54, 212, 125, .85); background: rgba(54, 212, 125, .11); transform: scale(1); }
#copilot-section-alerts .copilot-choice-grid .copilot-choice:has(input:checked)::after { opacity: 1; transform: scale(1); }
#copilot-section-rules .copilot-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.copilot-vehicle-source-note { margin: 0; padding: 2px 2px 4px; color: #a8ada9; font-size: 11px; }
.copilot-criteria-scale { position: relative; display: grid; grid-template-rows: 6px auto; gap: 8px; padding: 10px 10px 4px; }
.copilot-criteria-scale > div { display: flex; grid-row: 2; justify-content: space-between; padding: 0 2px; font-size: 10px; font-weight: 800; }
.copilot-criteria-scale > div span:nth-child(1) { color: #ff4b4b; }
.copilot-criteria-scale > div span:nth-child(2) { color: #f5b82e; }
.copilot-criteria-scale > div span:nth-child(3) { color: #36d47d; }
.copilot-criteria-scale .copilot-threshold-track { display: block; grid-row: 1; height: 6px; padding: 0; border-radius: 999px; background: linear-gradient(90deg, #ff4545 0 var(--attention-position, 42%), #f5b82e var(--attention-position, 42%) var(--target-position, 66%), #36d47d var(--target-position, 66%) 100%); }
#copilot-section-rules .copilot-criteria-scale .copilot-threshold-range { position: absolute; z-index: 2; top: 0; right: 10px; bottom: auto; left: 10px; width: calc(100% - 20px); min-height: 0 !important; height: 24px !important; margin: 0; padding: 0 !important; appearance: none; border: 0 !important; outline: 0; box-shadow: none !important; pointer-events: none; background: transparent !important; }
.copilot-threshold-range::-webkit-slider-runnable-track { height: 6px; background: transparent; }
.copilot-threshold-range::-moz-range-track { height: 6px; background: transparent; }
.copilot-threshold-range::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7px; appearance: none; border: 3px solid currentColor; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); pointer-events: auto; cursor: grab; }
.copilot-threshold-range::-moz-range-thumb { width: 15px; height: 15px; border: 3px solid currentColor; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); pointer-events: auto; cursor: grab; }
.copilot-threshold-range.is-attention { color: #ff5454; }
.copilot-threshold-range.is-target { color: #36d47d; }
.copilot-threshold-range:focus-visible::-webkit-slider-thumb { outline: 3px solid rgba(255, 138, 0, .35); outline-offset: 3px; }
.copilot-threshold-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.copilot-threshold-values label { gap: 5px; min-width: 0; color: var(--muted); font-size: 10px; }
.copilot-threshold-control { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 4px; align-items: stretch; min-width: 0; }
.copilot-threshold-control input { min-width: 0; width: 100%; }
.copilot-threshold-step { display: grid; place-items: center; min-width: 32px; min-height: 43px; padding: 0; border: 1px solid rgba(255, 138, 0, .42); border-radius: 10px; background: #0d0e0e; color: var(--brand-highlight); font-size: 18px; font-weight: 900; line-height: 1; cursor: pointer; }
.copilot-threshold-step:hover:not(:disabled) { border-color: var(--brand-highlight); background: rgba(255, 138, 0, .1); }
.copilot-threshold-step:focus-visible { outline: 3px solid rgba(255, 138, 0, .3); outline-offset: 2px; }
.copilot-threshold-step:disabled { opacity: .35; cursor: not-allowed; }
.copilot-threshold-values input { min-height: 43px; padding: 9px 10px; border-color: var(--line); background: #0d0e0e; color: #fff; font-size: 15px; font-weight: 800; text-align: center; }
.copilot-threshold-values input:read-only { cursor: default; }
@media (max-width: 400px) {
  #copilot-section-rules .copilot-criteria-mode { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #copilot-section-rules .copilot-criteria-mode .copilot-choice { height: 92px; min-height: 92px; }
}
#copilot-section-rules .copilot-cost-step { border-color: rgba(54, 212, 125, .22); }
#copilot-section-rules .copilot-cost-step .copilot-criteria-step-heading,
#copilot-section-rules .copilot-cost-step .copilot-form-row,
#copilot-section-rules .copilot-cost-step .copilot-cost-preview { display: none; }
#copilot-section-alerts .copilot-toggle-grid { grid-template-columns: 1fr; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #111212; }
#copilot-section-alerts .copilot-toggle { min-height: 62px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
#copilot-section-alerts .copilot-toggle:last-child { border-bottom: 0; }
#copilot-section-alerts .copilot-toggle-copy small { display: none; }
#copilot-section-overfly .overfly-simulator { display: grid; padding: 14px; }
#copilot-section-overfly .overfly-simulator summary { display: block; cursor: default; }
#copilot-section-overfly .overfly-simulator summary::after { display: none; }
#copilot-section-overfly .overfly-simulator summary strong { display: block; font-size: 15px; }
#copilot-section-overfly .overfly-simulator summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
#copilot-section-overfly .overfly-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#copilot-section-overfly .overfly-form-grid input { min-height: 46px; }
#copilot-section-overfly .overfly-test-action { width: 100%; min-height: 46px; margin-top: 2px; }
@media (max-width: 560px) {
  #copilot-section-rules .copilot-form-row,
  #copilot-section-overfly .overfly-form-grid { grid-template-columns: 1fr; }
}

/* Navegações internas: mesmo padrão compacto da Câmera Secreta. */
.period-navigation,
.camera-primary-tabs,
.context-config-tabs,
.journey-history-period-tabs,
.financial-report-period-tabs {
  gap: 4px;
  border: 1px solid #302936;
  border-radius: 14px;
  padding: 4px;
  background: #17141d;
}

.period-navigation .period-chip,
.camera-primary-tab,
.context-config-tabs button,
.journey-history-period-tabs button,
.report-period-tab {
  min-height: 42px;
  border: 1px solid transparent;
  border-bottom: 4px solid transparent;
  border-radius: 9px;
  background: transparent !important;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.period-navigation .period-chip:hover,
.period-navigation .period-chip:focus-visible,
.camera-primary-tab:hover,
.camera-primary-tab:focus-visible,
.context-config-tabs button:hover,
.context-config-tabs button:focus-visible,
.journey-history-period-tabs button:hover,
.journey-history-period-tabs button:focus-visible,
.report-period-tab:hover,
.report-period-tab:focus-visible {
  border: 1px solid transparent !important;
  border-bottom: 4px solid var(--orange) !important;
  background: #2b1d17 !important;
  color: var(--orange) !important;
  outline: none !important;
}

.period-navigation .period-chip.active,
.camera-primary-tab.is-active,
.context-config-tabs button.active,
.journey-history-period-tabs button.active,
.report-period-tab.active {
  border: 1px solid transparent !important;
  border-bottom: 4px solid var(--orange) !important;
  background: #2b1d17 !important;
  color: var(--orange) !important;
  box-shadow: none !important;
  outline: none !important;
}

.period-navigation .period-chip.active:focus-visible,
.camera-primary-tab.is-active:focus-visible,
.context-config-tabs button.active:focus-visible,
.journey-history-period-tabs button.active:focus-visible,
.report-period-tab.active:focus-visible {
  border: 1px solid transparent !important;
  border-bottom: 4px solid var(--orange) !important;
  background: #2b1d17 !important;
  outline: none !important;
}

/* O foco nativo não pode criar uma borda clara nas abas ao trocar de seção. */
.period-navigation .period-chip:focus,
.period-navigation .period-chip:focus-visible,
.camera-primary-tab:focus,
.camera-primary-tab:focus-visible,
.context-config-tabs button:focus,
.context-config-tabs button:focus-visible,
.journey-history-period-tabs button:focus,
.journey-history-period-tabs button:focus-visible,
.report-period-tab:focus,
.report-period-tab:focus-visible {
  outline: none !important;
}

.period-navigation .period-chip:not(.active):focus,
.period-navigation .period-chip:not(.active):focus-visible,
.camera-primary-tab:not(.is-active):focus,
.camera-primary-tab:not(.is-active):focus-visible,
.context-config-tabs button:not(.active):focus,
.context-config-tabs button:not(.active):focus-visible,
.journey-history-period-tabs button:not(.active):focus,
.journey-history-period-tabs button:not(.active):focus-visible,
.report-period-tab:not(.active):focus,
.report-period-tab:not(.active):focus-visible {
  border: 1px solid transparent !important;
  border-bottom: 4px solid transparent !important;
  background: transparent !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}

.period-navigation .period-chip.active:focus,
.period-navigation .period-chip.active:focus-visible,
.camera-primary-tab.is-active:focus,
.camera-primary-tab.is-active:focus-visible,
.context-config-tabs button.active:focus,
.context-config-tabs button.active:focus-visible,
.journey-history-period-tabs button.active:focus,
.journey-history-period-tabs button.active:focus-visible,
.report-period-tab.active:focus,
.report-period-tab.active:focus-visible {
  border: 1px solid transparent !important;
  border-bottom: 4px solid var(--orange) !important;
  background: #2b1d17 !important;
  color: var(--orange) !important;
  box-shadow: none !important;
  outline: none !important;
}

.camera-primary-tabs,
.journey-history-period-tabs,
.financial-report-period-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.camera-primary-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.financial-report-period-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.context-config-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.context-config-tabs::-webkit-scrollbar { display: none; }
.context-config-tabs button { flex: 1 0 auto; white-space: nowrap; }

@media (max-width: 560px) {
  .camera-primary-tab,
.context-config-tabs button,
.journey-history-period-tabs button,
.report-period-tab { min-height: 38px; padding-inline: 8px; font-size: 10px; }
}

/* Calendários: dias selecionados seguem a mesma assinatura das navegações internas. */
.planning-calendar-day span,
.onboarding-calendar-day {
  border: 1px solid transparent !important;
  border-bottom: 4px solid transparent !important;
  border-radius: 10px;
  background: #171717;
  color: var(--muted);
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.planning-calendar-day:hover span,
.planning-calendar-day:focus-within span,
.onboarding-calendar-day:hover,
.onboarding-calendar-day:focus-within {
  border: 1px solid transparent !important;
  border-bottom: 4px solid var(--orange) !important;
  background: #2b1d17;
  color: var(--orange);
  outline: none;
}

.planning-calendar-day input:checked + span,
.onboarding-calendar-day.is-selected {
  border: 1px solid transparent !important;
  border-bottom: 4px solid var(--orange) !important;
  background: #2b1d17 !important;
  color: var(--orange) !important;
  box-shadow: none !important;
}

.planning-calendar-day input:checked + span:focus-visible,
.onboarding-calendar-day:has(input:checked):focus-within {
  border: 1px solid transparent !important;
  border-bottom: 4px solid var(--orange) !important;
  background: #2b1d17 !important;
  color: var(--orange) !important;
  outline: none !important;
}

/* Calendário de datas MetaKM: números livres, hoje contornado e seleção preenchida. */
.planning-calendar-weekdays,
.onboarding-calendar-weekdays,
.planning-calendar-grid,
.onboarding-calendar-grid { gap: 0 !important; }

.planning-calendar-weekdays,
.onboarding-calendar-weekdays { margin-bottom: 8px; }

.planning-calendar-weekdays span,
.onboarding-calendar-weekdays span {
  color: #858583;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
}

.planning-calendar-day,
.onboarding-calendar-day,
.planning-calendar-empty,
.onboarding-calendar-empty {
  min-height: 52px !important;
}

.planning-calendar-day span,
.onboarding-calendar-day {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 14px;
  background: transparent !important;
  color: #d9d8d5 !important;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.planning-calendar-day:hover span,
.planning-calendar-day:focus-within span,
.onboarding-calendar-day:hover,
.onboarding-calendar-day:focus-within {
  border: 0 !important;
  border-bottom: 0 !important;
  background: rgba(255, 138, 21, .1) !important;
  color: var(--orange) !important;
  outline: none;
}

.planning-calendar-day input:checked + span,
.onboarding-calendar-day.is-selected {
  border: 0 !important;
  border-bottom: 0 !important;
  background: #ff8a15 !important;
  color: #0a0703 !important;
  box-shadow: 0 8px 18px rgba(255, 120, 0, .2);
}

.planning-calendar-day.is-today:not(:has(input:checked)) span,
.onboarding-calendar-day.is-today:not(.is-selected) {
  border: 1px solid var(--orange) !important;
  background: transparent !important;
  color: var(--orange) !important;
}

.planning-calendar-day input:checked + span:focus-visible,
.onboarding-calendar-day:has(input:checked):focus-within {
  border: 0 !important;
  border-bottom: 0 !important;
  background: #ff8a15 !important;
  color: #0a0703 !important;
  outline: none !important;
}

/* Planejamento operacional: mesma linguagem visual do seletor de datas MetaKM. */
#planning-calendar-panel {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 16px 14px 14px;
  background: #0d0d0e;
}

#planning-calendar-panel .planning-calendar-intro {
  margin: 0 0 14px;
  border: 0;
  padding: 0;
}

#planning-calendar-panel .planning-calendar-intro strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

#planning-calendar-panel .planning-calendar-intro small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

#planning-calendar-panel .planning-calendar-header {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 10px;
  margin-bottom: 6px;
}

#planning-calendar-panel .planning-calendar-header strong {
  font-size: 16px;
  font-weight: 800;
}

#planning-calendar-panel .planning-calendar-header button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 13px;
  background: #171719;
  color: var(--ink);
  font-size: 24px;
}

#planning-calendar-panel .planning-calendar-header button:hover,
#planning-calendar-panel .planning-calendar-header button:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
  outline: none;
}

#planning-calendar-panel .planning-calendar-weekdays,
#planning-calendar-panel .planning-calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
}

#planning-calendar-panel .planning-calendar-weekdays {
  margin: 10px 0 2px;
  color: #858583;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
}

#planning-calendar-panel .planning-calendar-weekdays span { text-align: center; }

#planning-calendar-panel .planning-calendar-day,
#planning-calendar-panel .planning-calendar-empty { min-height: 52px; }

#planning-calendar-panel .planning-calendar-day {
  display: block !important;
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

#planning-calendar-panel .planning-calendar-day input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#planning-calendar-panel .planning-calendar-day span {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid transparent !important;
  border-radius: 14px;
  background: transparent !important;
  color: #d9d8d5 !important;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

#planning-calendar-panel .planning-calendar-day.is-outside span {
  color: #4d4d4c !important;
  cursor: default;
}

#planning-calendar-panel .planning-calendar-day:not(.is-outside):hover span,
#planning-calendar-panel .planning-calendar-day:focus-within span {
  border-color: rgba(255, 138, 21, .42) !important;
  background: rgba(255, 138, 21, .1) !important;
  color: var(--orange) !important;
  outline: none;
}

#planning-calendar-panel .planning-calendar-day.is-selected span,
#planning-calendar-panel .planning-calendar-day input:checked + span {
  border-color: transparent !important;
  background: #ff8a15 !important;
  color: #0a0703 !important;
  box-shadow: 0 8px 18px rgba(255, 120, 0, .2);
}

#planning-calendar-panel .planning-calendar-day.is-today:not(.is-selected) span {
  border-color: var(--orange) !important;
  background: transparent !important;
  color: var(--orange) !important;
}

#planning-calendar-panel .planning-calendar-day input:focus-visible + span {
  outline: 3px solid rgba(255, 138, 21, .28);
  outline-offset: 2px;
}

#planning-calendar-panel .planning-calendar-weekdays,
#planning-calendar-panel .planning-calendar-grid {
  gap: 6px !important;
}

#planning-calendar-panel .planning-calendar-summary {
  margin-top: 12px;
  border-color: rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: #121214;
}

/* Seleção semanal do planejamento: as referências externas não definem a
   paleta do produto; a seleção usa o laranja oficial do MetaKM. */
#planning-calendar-panel .planning-weekday-selector {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-top: 16px;
}

#planning-calendar-panel .planning-weekday-selector button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 8px 4px;
  background: var(--surface-2);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

#planning-calendar-panel .planning-weekday-selector button:hover,
#planning-calendar-panel .planning-weekday-selector button:focus-visible {
  border-color: rgba(255, 154, 36, .72);
  color: var(--brand-highlight);
  outline: none;
  transform: translateY(-1px);
}

#planning-calendar-panel .planning-weekday-selector button.is-selected,
#planning-calendar-panel .planning-weekday-selector button[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-highlight), var(--brand));
  color: var(--brand-ink);
  box-shadow: 0 7px 16px rgba(255, 120, 0, .22);
}

#planning-calendar-panel .planning-weekday-selector button.is-selected:hover,
#planning-calendar-panel .planning-weekday-selector button[aria-pressed="true"]:focus-visible {
  border-color: transparent;
  color: var(--brand-ink);
}

#planning-calendar-panel .planning-calendar-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

#planning-calendar-panel .planning-calendar-toggle {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
}

#planning-calendar-panel .planning-calendar-toggle:disabled {
  opacity: .5;
  cursor: not-allowed;
}

#planning-calendar-panel .planning-calendar-detail-hint {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

#planning-calendar-panel #planning-calendar-detail {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 13px;
}

#planning-calendar-panel #planning-calendar-detail[hidden] {
  display: none;
}

#planning-calendar-panel .planning-calendar-day[data-planning-date] {
  cursor: default;
}

#planning-calendar-panel .planning-calendar-day[data-planning-date]:hover span,
#planning-calendar-panel .planning-calendar-day[data-planning-date]:focus-within span {
  border-color: transparent !important;
  background: transparent !important;
  color: #d9d8d5 !important;
}

#planning-calendar-panel .planning-calendar-day.is-selected[data-planning-date]:hover span {
  border-color: transparent !important;
  background: var(--orange) !important;
  color: #0a0703 !important;
}

#planning-calendar-panel .planning-hours-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

#planning-calendar-panel .planning-hours-summary article {
  display: grid;
  min-width: 0;
  min-height: 72px;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 8px;
  background: var(--surface-2);
  text-align: center;
}

#planning-calendar-panel .planning-hours-summary small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

#planning-calendar-panel .planning-hours-summary strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.04em;
}

#planning-calendar-panel .planning-hours-summary article:first-child strong,
#planning-calendar-panel .planning-hours-summary article:last-child strong {
  color: var(--brand-highlight);
}

#planning-calendar-panel .planning-hours-summary span {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 420px) {
  #planning-calendar-panel .planning-weekday-selector { gap: 4px; }
  #planning-calendar-panel .planning-weekday-selector button { min-height: 40px; font-size: 10px; }
  #planning-calendar-panel .planning-hours-summary { gap: 5px; }
  #planning-calendar-panel .planning-hours-summary article { padding-inline: 4px; }
  #planning-calendar-panel .planning-hours-summary strong { font-size: 15px; }
}

/* Painel de decisão: todos os indicadores permanecem visíveis em uma grade contínua. */
.financial-overview .secondary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
  background: #0e0e0f;
  overflow: hidden;
}
.financial-overview .secondary-metrics .secondary-metric {
  min-height: 68px;
  padding: 11px 12px;
  border-top: 1px solid rgba(255, 255, 255, .09) !important;
  border-right: 1px solid rgba(255, 255, 255, .09) !important;
  border-bottom: 0 !important;
  background: transparent;
}
.financial-overview .secondary-metrics .secondary-metric:nth-child(-n + 2) { border-top: 0 !important; }
.financial-overview .secondary-metrics .secondary-metric:nth-child(2n) { border-right: 0 !important; }
.financial-overview .secondary-metrics .secondary-metric small {
  color: #bbb7b2;
  font-size: 12px;
  line-height: 1.2;
}
.financial-overview .secondary-metrics .secondary-metric strong {
  margin-top: 5px;
  font-size: 18px;
}
.financial-overview .secondary-metrics .metric-icon,
.financial-overview .secondary-metrics .metric-icon[data-icon] {
  width: 32px;
  height: 32px;
  background: #191919;
}
.activity-period-context {
  display: block;
  margin-top: 4px;
  color: #d4d0cb;
  font-size: 12px;
  font-weight: 650;
}
.activity-count { display: block; margin-top: 3px; }

@media (max-width: 560px) {
  .financial-overview .secondary-metrics .secondary-metric {
    min-height: 64px;
    padding: 10px 9px;
  }
  .financial-overview .secondary-metrics .secondary-metric small { font-size: 11px; }
  .financial-overview .secondary-metrics .secondary-metric strong { font-size: 17px; }
}

/* Gráfico executivo: superfície neutra, contraste claro e cor apenas nos dados. */
.dashboard-revenue-chart-card {
  gap: 14px;
  border: 1px solid #2d2d2f;
  border-radius: 14px;
  padding: 16px;
  background: #101011;
  box-shadow: none;
}
.dashboard-revenue-chart-plot {
  min-height: 196px;
  padding: 18px 8px 0;
  border-bottom-color: #38383a;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 46px, rgba(255, 255, 255, .055) 47px);
}
.dashboard-chart-bar {
  border-radius: 5px 5px 2px 2px;
  background: var(--brand-highlight);
  box-shadow: none;
}
.dashboard-chart-bar.is-best {
  background: var(--green);
  box-shadow: none;
}
.dashboard-chart-column-label {
  color: #aaa7a3;
  font-size: 10px;
  font-weight: 700;
}
.dashboard-chart-column-value {
  bottom: calc(100% + 6px);
  color: #e7e4e0;
  font-size: 10px;
  font-weight: 750;
}
.dashboard-chart-empty {
  align-self: center;
  margin: 0;
  color: #aaa7a3;
  font-size: 13px;
  line-height: 1.45;
}
.dashboard-revenue-chart-footer {
  border-top: 1px solid #29292b;
  padding-top: 10px;
  color: #aaa7a3;
  font-size: 11px;
}
.dashboard-revenue-chart-footer strong { font-size: 14px; }

@media (max-width: 560px) {
  .dashboard-revenue-chart-card { gap: 12px; padding: 13px 10px; }
  .dashboard-revenue-chart-plot { min-height: 174px; padding-inline: 2px; }
  .dashboard-chart-column-label { font-size: 9px; }
  .dashboard-chart-column-value { font-size: 8px; }
}

/* Movimentações: leitura de extrato, superfície neutra e ações subordinadas. */
.activity-section > .section-heading {
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 12px;
}
.activity-section .activity-tools { gap: 8px; }
.activity-section #clear-day-activity {
  border: 1px solid #343436;
  border-radius: 8px;
  padding: 7px 9px;
  color: #aaa7a3;
  font-size: 10px;
  font-weight: 700;
}
.activity-section #clear-day-activity:hover,
.activity-section #clear-day-activity:focus-visible {
  border-color: #74383d;
  background: #1b1213;
  color: #ff9299;
}
.activity-period-context { font-weight: 700; }
.activity-count { color: #918e8a; font-size: 11px; }
.activity-list { gap: 0; overflow: hidden; border: 1px solid #2d2d2f; border-radius: 14px; background: #101011; }
.activity-day-group { gap: 0; }
.activity-day-group + .activity-day-group { margin-top: 0; border-top: 1px solid #343436; }
.activity-day-group h3 {
  margin: 0;
  padding: 9px 13px;
  border-bottom: 1px solid #29292b;
  background: #141415;
  color: #aaa7a3;
  font-size: 10px;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.activity-item,
.activity-item:hover {
  min-height: 64px;
  border: 0;
  border-bottom: 1px solid #29292b;
  border-radius: 0;
  padding: 11px 13px;
  background: transparent;
  box-shadow: none;
}
.activity-item:last-child { border-bottom: 0; }
.activity-item:hover { background: #151516; }
.activity-item .description strong { color: #e7e4e0; font-size: 13px; }
.activity-item .description small { color: #918e8a; font-size: 10px; }
.activity-item .amount { font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.activity-item.income .amount { color: var(--green); }
.activity-item.expense .amount { color: var(--red); }
.activity-item.provisioned,
.activity-item.provisioned:hover {
  border-color: #29292b;
  background: #121213;
}
.activity-item.provisioned .activity-symbol { background: #1c1c1d; color: #aaa7a3; }
.activity-item.provisioned .amount { color: #c7c3be; }
.activity-status {
  border-color: #414143;
  border-radius: 6px;
  background: #1a1a1b;
  color: #aaa7a3;
  font-size: 9px;
}
.activity-action.delete {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-color: transparent;
  background: transparent;
  color: #817e7a;
}
.activity-action.delete [data-icon] { width: 17px; height: 17px; }
.activity-action.delete:hover,
.activity-action.delete:focus-visible { border-color: #74383d; background: #1b1213; color: #ff9299; }
.activity-list > .empty-state { margin: 0; padding: 28px 16px; background: #101011; }

@media (max-width: 560px) {
  .activity-section > .section-heading { align-items: flex-start; }
  .activity-item { gap: 9px; padding: 10px 9px; }
  .activity-symbol { flex-basis: 32px; width: 32px; height: 32px; }
  .activity-item .amount { font-size: 13px; }
}

/* Ações rápidas: speed dial vertical inspirado na referência Uiverse. */
.dashboard-quick-actions {
  display: grid;
  width: auto;
  grid-template-rows: auto 56px;
  justify-items: end;
  gap: 9px;
  right: max(12px, calc((100vw - min(700px, calc(100vw - 24px))) / 2 + 8px));
  bottom: calc(36px + env(safe-area-inset-bottom) + 58px + 12px);
}
.dashboard-quick-action-menu {
  display: grid;
  justify-items: end;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.dashboard-quick-actions.is-open .dashboard-quick-action-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}
.dashboard-quick-action-menu button {
  display: inline-flex;
  width: auto;
  min-width: 118px;
  height: 44px;
  justify-content: flex-end;
  gap: 9px;
  border: 1px solid #343436;
  border-radius: 22px;
  padding: 5px 7px 5px 13px;
  background: #151516;
  color: #e7e4e0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .26);
  backdrop-filter: none;
}
.dashboard-quick-action-menu button:hover,
.dashboard-quick-action-menu button:focus-visible {
  border-color: #6f4a2b;
  background: #1c1814;
  color: #ff922b;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .26);
  transform: none;
}
.dashboard-quick-action-menu .dashboard-quick-action-label {
  display: inline;
  font-size: 11px;
}
.dashboard-quick-action-menu .dashboard-quick-action-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #222223;
  --ph-size: 17px;
}
#dashboard-actions-toggle.is-primary {
  width: 56px;
  height: 56px;
  border: 0;
  background: #ff7a00;
  color: #090909;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .34);
  backdrop-filter: none;
}
#dashboard-actions-toggle.is-primary:hover,
#dashboard-actions-toggle.is-primary:focus-visible {
  background: #ff922b;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .34);
}
#dashboard-actions-toggle .dashboard-quick-action-icon { transition: transform .16s ease; }
.dashboard-quick-actions.is-open #dashboard-actions-toggle .dashboard-quick-action-icon { transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  .dashboard-quick-action-menu,
  #dashboard-actions-toggle .dashboard-quick-action-icon { transition: none; }
}

@media (max-width: 560px) {
  .dashboard-quick-actions {
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(36px + env(safe-area-inset-bottom) + 58px + 12px);
  }
}

/* Navegação global: destinos nomeados e seleção leve, sem bloco de destaque. */
.bottom-nav {
  min-height: 72px;
  gap: 0;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  border-color: #2d2d2f;
  border-radius: 14px 14px 0 0 !important;
  background: #0d0d0e;
  box-shadow: 0 -8px 22px rgba(0, 0, 0, .34);
}
.bottom-nav .nav-item {
  position: relative;
  display: grid;
  grid-template-rows: 29px auto;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-height: 56px;
  border-radius: 9px;
  padding: 4px 3px 3px;
  background: transparent;
  color: #8f8c88;
}
.bottom-nav .nav-item::after {
  content: '';
  position: absolute;
  right: 28%;
  bottom: 0;
  left: 28%;
  height: 2px;
  border-radius: 2px;
  background: transparent;
}
.bottom-nav .nav-item .nav-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  color: inherit;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.bottom-nav .nav-item:not(.nav-launcher) > [data-icon] {
  width: 29px;
  height: 29px;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit;
  --ph-size: 21px;
}
.bottom-nav .nav-item:not(.nav-launcher).active { background: transparent; color: var(--brand-highlight); }
.bottom-nav .nav-item:not(.nav-launcher).active::after { background: var(--brand-highlight); }
.bottom-nav .nav-item:not(.nav-launcher).active > [data-icon] { background: transparent; color: var(--brand-highlight); box-shadow: none; }
.bottom-nav .nav-item:hover,
.bottom-nav .nav-item:focus-visible { background: #171718; color: #d8d4cf; outline: none; }
.bottom-nav .nav-item.active:hover,
.bottom-nav .nav-item.active:focus-visible { background: #17130f; color: var(--brand-highlight); }


@media (max-width: 360px) {
  .bottom-nav .nav-item .nav-label { font-size: 8px; }
  .bottom-nav .nav-item:not(.nav-launcher) > [data-icon] { --ph-size: 20px; }
}



@media (max-width: 560px) {
  
  
  
  
}

@media (max-width: 380px) {
  
  
}

/* Conversa de grupo usa o mesmo quadro, composer e ritmo visual da conversa individual. */


@media (max-width: 560px) {
  
  
}


@media (max-width: 560px) {
  
}

/* Copiloto executivo: Jornada prioritária e módulos em lista neutra. */
#copilot-menu-view {
  display: grid;
  gap: 13px;
}
#copilot-menu-view .copilot-home-header h2 { font-size: clamp(26px, 5vw, 34px); }
#copilot-menu-view .copilot-reference-heading {
  margin: 5px 2px 4px;
  color: #aaa7a3;
  font-size: 10px;
  letter-spacing: .065em;
}
#copilot-menu-view .copilot-reference-group .copilot-module-list {
  border: 1px solid #2d2d2f;
  border-radius: 14px;
  background: #101011;
}
#copilot-menu-view .copilot-reference-group .copilot-module-card,
#copilot-menu-view .copilot-reference-group .copilot-module-card:hover {
  min-height: 66px;
  border-color: #29292b;
  padding: 10px 11px;
  background: transparent;
  box-shadow: none;
}
#copilot-menu-view .copilot-reference-group .copilot-module-card:hover { background: #151516; }
#copilot-menu-view .copilot-reference-group .copilot-module-card.is-primary-module {
  min-height: 84px;
  border: 1px solid #704019;
  border-radius: 13px;
  margin: 5px;
  padding: 13px;
  background: #17130f;
}
#copilot-menu-view .copilot-reference-group .copilot-module-card.is-primary-module + .copilot-module-card { border-top: 1px solid #29292b; }
#copilot-menu-view .copilot-reference-group .copilot-module-main .copilot-home-card-icon,
#copilot-menu-view .copilot-reference-group .copilot-module-card[data-module-tone] .copilot-home-card-icon {
  width: 34px;
  height: 34px;
  border: 1px solid #343436;
  border-radius: 9px;
  background: #1a1a1b;
  color: #d8d4cf;
  box-shadow: none;
}
#copilot-menu-view .copilot-reference-group .is-primary-module .copilot-home-card-icon {
  border-color: #8a4b17;
  color: var(--brand-highlight);
}
#copilot-menu-view .copilot-reference-group .copilot-menu-copy strong { color: #e7e4e0; font-size: 14px; }
#copilot-menu-view .copilot-reference-group .copilot-menu-copy small {
  display: block;
  margin-top: 3px;
  color: #918e8a;
  font-size: 10px;
  line-height: 1.35;
}
#copilot-menu-view .copilot-reference-group .copilot-module-controls {
  display: grid;
  grid-template-columns: auto 38px 34px;
  align-items: center;
  gap: 7px;
}
#copilot-menu-view .copilot-reference-group .copilot-card-status {
  position: static;
  display: inline-flex;
  width: max-content;
  max-width: 96px;
  overflow: hidden;
  border: 1px solid #3a3a3c;
  border-radius: 6px;
  padding: 4px 6px;
  background: #181819;
  color: #aaa7a3;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#copilot-menu-view .copilot-reference-group .copilot-module-switch {
  width: 38px;
  height: 24px;
  border-color: #48484a;
  background: #202021;
}
#copilot-menu-view .copilot-reference-group .copilot-module-switch[data-state="on"] {
  border-color: #8a4b17;
  background: #2a1c12;
}
#copilot-menu-view .copilot-reference-group .copilot-module-config {
  width: 34px;
  height: 34px;
  border: 1px solid #343436;
  border-radius: 9px;
  background: #181819;
  color: #aaa7a3;
}
#copilot-menu-view .copilot-reference-group .copilot-module-config:hover,
#copilot-menu-view .copilot-reference-group .copilot-module-config:focus-visible {
  border-color: #704019;
  background: #1c1814;
  color: var(--brand-highlight);
}
#copilot-menu-view .copilot-reference-group .copilot-module-controls-static {
  grid-template-columns: minmax(0, 1fr) 34px;
}
#copilot-menu-view .copilot-reference-group .copilot-module-controls-static .copilot-module-config {
  grid-column: auto;
  width: 34px;
}
#copilot-menu-view .copilot-reference-hint {
  display: block;
  margin: -3px 2px 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #817e7a;
  font-size: 10px;
}
#copilot-menu-view .copilot-reference-hint span::before { content: none; }
#copilot-menu-view .copilot-home-compact-list .copilot-home-card {
  border-color: #2d2d2f;
  background: #101011;
  box-shadow: none;
}

@media (max-width: 560px) {
  #copilot-menu-view .copilot-reference-group .copilot-module-card { grid-template-columns: minmax(0, 1fr) auto; }
  #copilot-menu-view .copilot-reference-group .copilot-module-controls { grid-template-columns: 38px 34px; }
  #copilot-menu-view .copilot-reference-group .copilot-card-status {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: end;
    margin-bottom: 1px;
  }
}

/* Overfly: moldura de status e painel interno guiado pelo tema escolhido. */
.overfly-preview-card {
  --overfly-status: #858a91;
  --overfly-card-bg: #111212;
  --overfly-card-ink: #f7fafb;
  --overfly-label: #aeb8bc;
  --overfly-inner-line: rgba(255, 255, 255, .12);
  --overfly-metric-divider: rgba(255, 255, 255, .2);
  position: relative;
  display: block;
  min-height: 0;
  margin-top: 24px;
  border: 0;
  border-radius: 19px;
  padding: 0 6px 7px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transition: color .18s ease;
}
.overfly-preview-card::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: 18px;
  background: var(--overfly-status);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .24);
  transition: background .18s ease, box-shadow .18s ease;
}
.overfly-preview-card[data-status="good"] { --overfly-status: #36d47d; }
.overfly-preview-card[data-status="attention"] { --overfly-status: #f5b82e; }
.overfly-preview-card[data-status="bad"] { --overfly-status: #ff4545; }
.overfly-preview-card[data-status="empty"] { --overfly-status: #727980; }
.overfly-status-badge {
  top: -15px;
  left: 14px;
  min-height: 31px;
  border: 0;
  border-radius: 10px;
  padding: 6px 11px;
  background: var(--overfly-status);
  color: #09110b;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .26);
}
.overfly-card-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 6px 0 0;
  border: 1px solid var(--overfly-inner-line);
  border-radius: 14px;
  padding: 12px 13px 11px;
  background: var(--overfly-card-bg);
  color: var(--overfly-card-ink);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.overfly-offer-meta { min-height: 30px; margin: 0 2px 8px; gap: 12px; }
.overfly-platform-label { width: auto; min-width: 32px; max-width: 78px; height: 30px; flex: 0 0 auto; padding-inline: 8px; border-radius: 9px; background: #050607; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overfly-offer-meta strong { display: block; min-width: 0; font-size: 13px; }
.overfly-metric-grid {
  gap: 0;
  margin-top: 1px;
  border-top: 1px solid var(--overfly-inner-line);
  padding-top: 8px;
}
.overfly-metric-grid article {
  --overfly-metric-accent: var(--overfly-label);
  position: relative;
  min-height: 56px;
  padding: 3px 9px 2px;
  gap: 5px;
}
.overfly-metric-grid article + article { border-left: 0; }
.overfly-metric-grid article::before {
  content: '';
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: var(--overfly-metric-accent);
}
.overfly-metric-grid article span { color: var(--overfly-label); font-size: 10px; letter-spacing: .01em; }
.overfly-metric-grid article strong {
  color: var(--overfly-card-ink);
  font-size: clamp(19px, 5.4vw, 29px);
  letter-spacing: -.045em;
}
.overfly-metric[data-status="good"] { --overfly-metric-accent: #36d47d; }
.overfly-metric[data-status="attention"] { --overfly-metric-accent: #f5b82e; }
.overfly-metric[data-status="bad"] { --overfly-metric-accent: #ff4545; }
.overfly-metric[data-status="empty"] { --overfly-metric-accent: var(--overfly-label); }
.overfly-metric[data-status="attention"] strong,
.overfly-metric[data-status="bad"] strong { color: var(--overfly-metric-accent); }
.overfly-metric[data-status="good"] strong { color: var(--overfly-card-ink); }
.overfly-metric[data-status="empty"] strong { color: var(--overfly-label); }
.overfly-bottom-band { display: none; }
@media (max-width: 380px) {
  .overfly-preview-card { padding-inline: 5px; }
  .overfly-card-content { padding-inline: 9px; }
  .overfly-metric-grid article { padding-inline: 6px; }
  .overfly-metric-grid article strong { font-size: clamp(17px, 5.2vw, 24px); }
}

/* O formato em pé organiza cada KPI em uma linha, mantendo a mesma moldura,
   tema e cor de status do card horizontal. */
.overfly-preview-card[data-layout="vertical"] {
  width: min(100%, 236px);
  max-width: 236px;
  margin-left: auto;
  margin-right: 0;
  margin-top: 18px;
  padding: 0 4px 4px;
}
.overfly-preview-card[data-layout="vertical"] .overfly-card-content {
  margin-top: 4px;
  border-radius: 11px;
  padding: 7px 8px 6px;
}
.overfly-preview-card[data-layout="vertical"] .overfly-offer-meta {
  min-height: 23px;
  margin: 0 1px 5px;
  gap: 6px;
}
.overfly-preview-card[data-layout="vertical"] .overfly-platform-label {
  min-width: 27px;
  max-width: 64px;
  height: 23px;
  padding-inline: 6px;
  border-radius: 7px;
  font-size: 8px;
}
.overfly-preview-card[data-layout="vertical"] .overfly-offer-meta strong {
  font-size: 11px;
}
.overfly-preview-card[data-layout="vertical"] .overfly-metric-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 0;
  padding-top: 4px;
}
.overfly-preview-card[data-layout="vertical"] .overfly-metric-grid article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 32px;
  padding: 3px 7px 3px 9px;
  gap: 5px;
}
.overfly-preview-card[data-layout="vertical"] .overfly-metric-grid article span,
.overfly-preview-card[data-layout="vertical"] .overfly-metric-grid article strong {
  text-align: left;
}
.overfly-preview-card[data-layout="vertical"] .overfly-metric-grid article strong {
  justify-self: end;
  font-size: clamp(16px, 5vw, 22px);
}
.overfly-preview-card[data-layout="vertical"] .overfly-metric-grid article span {
  font-size: 8.5px;
}
.overfly-preview-card[data-layout="vertical"] .overfly-metric-grid article::before {
  top: 4px;
  right: auto;
  bottom: 4px;
  left: 0;
  width: 3px;
  height: auto;
}

/* Jornada: layout de referência com status, controles e plataformas visíveis. */
#copilot-menu-view .copilot-journey-home-section { gap: 8px; }
#copilot-menu-view .copilot-journey-home-list {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#copilot-menu-view .copilot-journey-home-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 22px;
  background: radial-gradient(circle at 7% 10%, rgba(255, 120, 0, .1), transparent 210px), linear-gradient(145deg, #141414, #0d0e0e);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
#copilot-menu-view .copilot-journey-home-card[data-journey-state="active"] {
  border-color: rgba(54, 212, 125, .36);
  background: radial-gradient(circle at 7% 10%, rgba(54, 212, 125, .12), transparent 220px), linear-gradient(145deg, #131916, #0d0e0e);
}
#copilot-menu-view .copilot-journey-home-card[data-journey-state="paused"] {
  border-color: rgba(255, 174, 71, .35);
}
#copilot-menu-view .copilot-journey-home-card > .copilot-module-main,
#copilot-menu-view .copilot-journey-home-card > .copilot-module-controls { display: none; }
#copilot-menu-view .copilot-journey-reference-hero {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
}
#copilot-menu-view .copilot-journey-reference-icon {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 78px;
  height: 78px;
  border: 2px solid var(--brand-highlight);
  border-radius: 50%;
  background: rgba(255, 120, 0, .06);
  color: var(--brand-highlight);
  --ph-size: 34px;
}
#copilot-menu-view .copilot-journey-home-card[data-journey-state="active"] .copilot-journey-reference-icon {
  border-color: var(--green);
  background: rgba(54, 212, 125, .06);
  color: var(--green);
}
#copilot-menu-view .copilot-journey-reference-copy { min-width: 0; }
#copilot-menu-view .copilot-journey-reference-copy h3 { margin: 0 0 5px; color: var(--ink); font-size: clamp(21px, 4vw, 29px); letter-spacing: -.045em; }
#copilot-menu-view .copilot-journey-reference-copy p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
#copilot-menu-view .copilot-journey-reference-tools { display: flex; align-items: flex-start; gap: 10px; align-self: start; }
#copilot-menu-view .copilot-journey-reference-stage {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 120, 0, .12);
  color: #ffc477;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
#copilot-menu-view .copilot-journey-reference-stage.is-active { background: rgba(54, 212, 125, .14); color: var(--green); }
#copilot-menu-view .copilot-journey-reference-stage.is-paused { background: rgba(255, 174, 71, .14); color: #ffc477; }
#copilot-menu-view .copilot-journey-reference-settings {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: var(--ink);
  cursor: pointer;
}
#copilot-menu-view .copilot-journey-reference-settings [data-icon] { --ph-size: 22px; }
#copilot-menu-view .copilot-journey-reference-settings:hover { border-color: var(--brand-highlight); color: var(--brand-highlight); }
#copilot-menu-view .copilot-journey-reference-actions {
  display: flex;
  grid-column: 2 / -1;
  justify-content: flex-end;
  gap: 9px;
}
#copilot-menu-view .copilot-journey-reference-actions button {
  min-width: 112px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 15px;
  background: rgba(255, 255, 255, .025);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
#copilot-menu-view .copilot-journey-reference-actions button:hover:not(:disabled) { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
#copilot-menu-view .copilot-journey-reference-actions button:disabled { cursor: not-allowed; opacity: .42; }
#copilot-menu-view .copilot-journey-reference-start { border-color: rgba(255, 120, 0, .6) !important; background: linear-gradient(135deg, var(--brand-highlight), var(--brand-pressed)) !important; color: #160b00 !important; }
#copilot-menu-view .copilot-journey-reference-pause { border-color: rgba(255, 255, 255, .2); }
#copilot-menu-view .copilot-journey-reference-stop { border-color: rgba(255, 82, 82, .62) !important; color: #ff8585 !important; }
#copilot-menu-view .copilot-journey-home-summary,
#copilot-menu-view .copilot-journey-home-card > .copilot-journey-platforms,
#copilot-menu-view .copilot-journey-home-card > .copilot-journey-quick-tip,
#copilot-menu-view .copilot-journey-home-card > .journey-collection,
#copilot-menu-view .copilot-journey-home-card > .copilot-journey-feedback { grid-column: 1 / -1; }
#copilot-menu-view .copilot-journey-home-summary { display: grid; gap: 10px; }
#copilot-menu-view .copilot-journey-home-runtime { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#copilot-menu-view .copilot-journey-home-runtime article { min-height: 92px; border-radius: 16px; padding: 14px; background: rgba(0, 0, 0, .18); }
#copilot-menu-view .copilot-journey-home-runtime article.is-emphasis { grid-column: 1 / -1; border-color: rgba(54, 212, 125, .3); background: rgba(54, 212, 125, .07); }
#copilot-menu-view .copilot-journey-home-card[data-journey-state="idle"] .copilot-journey-home-runtime article.is-emphasis { border-color: rgba(255, 120, 0, .3); background: rgba(255, 120, 0, .06); }
#copilot-menu-view .copilot-journey-home-runtime span { font-size: 10px; }
#copilot-menu-view .copilot-journey-home-runtime strong { font-size: clamp(22px, 4.5vw, 31px); }
#copilot-menu-view .copilot-journey-home-runtime small { color: var(--muted); font-size: 11px; line-height: 1.35; }
#copilot-menu-view .copilot-journey-home-actions { display: none; }
#copilot-menu-view .copilot-journey-home-card > .copilot-journey-platforms { gap: 11px; border-radius: 16px; padding: 14px; background: rgba(0, 0, 0, .16); }
#copilot-menu-view .copilot-journey-home-card .copilot-journey-platforms .section-heading h3 { font-size: 16px; }
#copilot-menu-view .copilot-journey-home-card .journey-platforms-note { margin: 0; font-size: 10px; line-height: 1.45; }
#copilot-menu-view .copilot-journey-home-card > .journey-collection { border-radius: 16px; }
#copilot-menu-view .copilot-journey-quick-tip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid rgba(255, 120, 0, .5); border-radius: 16px; padding: 14px; background: rgba(255, 120, 0, .06); }
#copilot-menu-view .copilot-journey-quick-tip-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--brand-highlight); border-radius: 50%; color: var(--brand-highlight); font-size: 24px; font-weight: 900; }
#copilot-menu-view .copilot-journey-quick-tip strong { display: block; color: var(--ink); font-size: 14px; }
#copilot-menu-view .copilot-journey-quick-tip p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
#copilot-menu-view .copilot-journey-quick-tip > button { border: 0; background: transparent; color: var(--ink); font-size: 25px; line-height: 1; cursor: pointer; }
#copilot-menu-view .journey-platform-logo { overflow: hidden; }
#copilot-menu-view .journey-platform-logo-image { display: block; width: 100%; height: 100%; object-fit: contain; }
#copilot-menu-view .journey-platform-card { min-height: 78px; padding: 11px; }

@media (max-width: 620px) {
  #copilot-menu-view .copilot-journey-home-card { padding: 14px; border-radius: 18px; }
  #copilot-menu-view .copilot-journey-reference-hero { grid-template-columns: 58px minmax(0, 1fr); gap: 10px 12px; }
  #copilot-menu-view .copilot-journey-reference-icon { width: 58px; height: 58px; --ph-size: 26px; }
  #copilot-menu-view .copilot-journey-reference-tools { grid-column: 2; align-items: center; justify-content: flex-start; }
  #copilot-menu-view .copilot-journey-reference-stage { min-height: 30px; padding-inline: 10px; font-size: 9px; }
  #copilot-menu-view .copilot-journey-reference-settings { width: 38px; height: 38px; }
  #copilot-menu-view .copilot-journey-reference-actions { grid-column: 1 / -1; justify-content: stretch; }
  #copilot-menu-view .copilot-journey-reference-actions button { flex: 1; min-width: 0; min-height: 44px; padding-inline: 8px; font-size: 11px; }
  #copilot-menu-view .copilot-journey-home-runtime article { min-height: 78px; padding: 11px; }
  #copilot-menu-view .copilot-journey-home-runtime strong { font-size: 20px; }
  #copilot-menu-view .copilot-journey-home-runtime small { font-size: 9px; }
  #copilot-menu-view .copilot-journey-platform-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  #copilot-menu-view .journey-platform-card { grid-template-columns: auto minmax(0, 1fr); gap: 6px; padding: 8px 6px; }
  #copilot-menu-view .journey-platform-card .journey-platform-dot { grid-column: 2; justify-self: start; margin-top: -3px; }
  #copilot-menu-view .journey-platform-logo { width: 30px; height: 30px; }
  #copilot-menu-view .journey-platform-card strong { font-size: 10px; }
  #copilot-menu-view .journey-platform-card div span { font-size: 8px; }
}

/* O card de Jornada fica fora da moldura da lista para preservar o destaque da referência. */
#copilot-menu-view .copilot-journey-home-section .copilot-journey-home-list {
  overflow: visible;
  border: 0;
  background: transparent;
}
#copilot-menu-view .copilot-journey-home-section .copilot-journey-home-list > .copilot-journey-home-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 22px;
  background: radial-gradient(circle at 7% 10%, rgba(255, 120, 0, .1), transparent 210px), linear-gradient(145deg, #141414, #0d0e0e);
}
@media (max-width: 620px) {
  #copilot-menu-view .copilot-journey-home-section .copilot-journey-home-list > .copilot-journey-home-card { border-radius: 18px; padding: 14px; }
}

/* MetaKM: central do Copiloto e Câmera Secreta usam a identidade original do produto. As referências externas orientam somente a organização, nunca as cores. */
#copilot-modal {
  background: var(--bg);
  color: var(--ink);
}
#copilot-modal > .copilot-modal {
  background: var(--bg);
  color: var(--ink);
}
#copilot-menu-view { gap: 16px; padding-bottom: 18px; }
#copilot-menu-view .copilot-home-header { display: grid; gap: 4px; padding: 4px 2px 2px; }
#copilot-menu-view .copilot-home-header h2 { color: var(--ink); }
#copilot-menu-view .copilot-home-header > p:last-child { color: var(--muted); }
.copilot-home-kicker { color: var(--brand-highlight); }
#copilot-menu-view .copilot-control-stack { display: grid; gap: 10px; }
#copilot-menu-view .copilot-control-stack .copilot-module-card,
#copilot-menu-view .copilot-reference-group .copilot-module-card,
#copilot-menu-view .copilot-reference-group .copilot-module-card:hover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: var(--surface);
  box-shadow: none;
}
#copilot-menu-view .copilot-control-stack .copilot-module-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-1px);
}
#copilot-menu-view .copilot-module-card.is-disabled { opacity: .58; filter: saturate(.7); }
#copilot-menu-view .copilot-module-main { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 11px; min-width: 0; }
#copilot-menu-view .copilot-module-main .copilot-home-card-icon,
#copilot-menu-view .copilot-module-card[data-module-tone] .copilot-home-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 120, 0, .24);
  border-radius: 12px;
  background: rgba(255, 120, 0, .08);
  color: var(--brand-highlight);
  box-shadow: none;
  --ph-size: 21px;
}
#copilot-menu-view .copilot-module-card[data-module-tone="green"] .copilot-home-card-icon { border-color: rgba(54, 212, 125, .28); background: var(--green-soft); color: var(--green); }
#copilot-menu-view .copilot-menu-copy { display: grid; gap: 2px; min-width: 0; }
#copilot-menu-view .copilot-menu-copy strong,
#copilot-menu-view .copilot-reference-group .copilot-menu-copy strong { color: var(--ink); font-size: 15px; line-height: 1.2; }
#copilot-menu-view .copilot-menu-copy small,
#copilot-menu-view .copilot-reference-group .copilot-menu-copy small { color: var(--muted); font-size: 10px; line-height: 1.35; }
#copilot-menu-view .copilot-card-status,
#copilot-menu-view .copilot-reference-group .copilot-card-status { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 800; }
#copilot-menu-view .copilot-card-status.is-active { color: var(--green); }
#copilot-menu-view .copilot-module-controls,
#copilot-menu-view .copilot-reference-group .copilot-module-controls { display: grid; grid-template-columns: 38px 48px; align-items: center; gap: 8px; }
#copilot-menu-view .copilot-module-config,
#copilot-menu-view .copilot-reference-group .copilot-module-config { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted-strong); cursor: pointer; }
#copilot-menu-view .copilot-module-config:hover,
#copilot-menu-view .copilot-module-config:focus-visible { border-color: var(--line-strong); background: var(--surface-2); color: var(--brand-highlight); }
#copilot-menu-view .copilot-module-switch,
#copilot-menu-view .copilot-reference-group .copilot-module-switch { position: relative; width: 48px; height: 28px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-3); cursor: pointer; transition: background .18s ease, border-color .18s ease; }
#copilot-menu-view .copilot-module-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted-strong); box-shadow: 0 2px 7px rgba(0, 0, 0, .35); transition: transform .18s ease, background .18s ease; }
#copilot-menu-view .copilot-module-switch[data-state="on"] { border-color: var(--green-border); background: var(--green-soft); }
#copilot-menu-view .copilot-module-switch[data-state="on"] i { background: var(--green); transform: translateX(20px); }
#copilot-menu-view .copilot-platform-badges,
#copilot-menu-view .copilot-camera-module-footer { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 9px; }
#copilot-menu-view .copilot-platform-badges { display: flex; gap: 7px; }
#copilot-menu-view .copilot-platform-badges > span { background: var(--surface-2); border-color: var(--line); }
#copilot-menu-view .copilot-camera-module-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#copilot-menu-view .copilot-camera-permission,
#copilot-menu-view .copilot-recordings-link { display: inline-flex; align-items: center; gap: 6px; min-height: 31px; border-radius: 999px; padding: 0 10px; font-size: 10px; font-weight: 900; }
#copilot-menu-view .copilot-camera-permission { background: var(--purple-soft); color: var(--brand-highlight); }
#copilot-menu-view .copilot-camera-permission i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-highlight); }
#copilot-menu-view .copilot-camera-permission.is-ready { background: var(--green-soft); color: var(--green); }
#copilot-menu-view .copilot-camera-permission.is-ready i { background: var(--green); }
#copilot-menu-view .copilot-recordings-link { border: 1px solid rgba(54, 212, 125, .3); background: rgba(54, 212, 125, .08); color: var(--green); cursor: pointer; }

/* A tela de detalhes mantém os mesmos tokens escuros e não cria uma moldura dentro da outra. */
#copilot-detail-view .security-camera-panel { display: flex; flex-direction: column; gap: 14px; border: 0; padding: 0; background: transparent; box-shadow: none; }
#copilot-detail-view .security-camera-panel > .privacy-panel-heading,
#copilot-detail-view .security-camera-panel > .camera-config-options { display: none !important; }
#copilot-detail-view .camera-primary-tabs { order: 1; border-color: var(--line); background: var(--surface-2); }
#copilot-detail-view .camera-primary-tab { color: var(--muted); }
#copilot-detail-view .camera-primary-tab.is-active { border-bottom-color: var(--brand-highlight); background: rgba(255, 120, 0, .1); color: var(--brand-highlight); }
#copilot-detail-view .camera-step-facing { order: 2; }
#copilot-detail-view .camera-step-quality { order: 3; }
#copilot-detail-view .camera-cut-section { order: 4; }
#copilot-detail-view .camera-step-storage { order: 5; }
#copilot-detail-view .camera-recordings-section { order: 6; }
#copilot-detail-view .camera-step,
#copilot-detail-view .camera-cut-section,
#copilot-detail-view .camera-recordings-section { border: 1px solid var(--line); border-radius: 16px; padding: 15px; background: var(--surface); box-shadow: var(--shadow-soft); }
#copilot-detail-view .camera-step[hidden],
#copilot-detail-view .camera-cut-section[hidden],
#copilot-detail-view .camera-recordings-section[hidden] { display: none !important; }
#copilot-detail-view .camera-step-heading h4,
#copilot-detail-view .camera-cut-section h4 { color: var(--ink); }
#copilot-detail-view .camera-step-heading .eyebrow { color: var(--brand-highlight); }
#copilot-detail-view .camera-step-state { border-color: rgba(255, 120, 0, .35); color: var(--brand-highlight); }
#copilot-detail-view .camera-quality-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#copilot-detail-view .camera-quality-card,
#copilot-detail-view .camera-choice-card { border-color: var(--line); background: var(--surface-2); color: var(--ink); }
#copilot-detail-view .camera-quality-card input { position: absolute; opacity: 0; pointer-events: none; }
#copilot-detail-view .camera-quality-card:has(input:checked),
#copilot-detail-view .camera-choice-card:has(input:checked) { border-color: var(--brand-highlight); background: var(--purple-soft); box-shadow: inset 0 0 0 1px var(--brand-highlight); }
#copilot-detail-view .camera-quality-card:has(input:checked) strong { color: var(--brand-highlight); }
#copilot-detail-view .camera-quality-note { border-left-color: var(--brand-highlight); color: var(--muted); }
#copilot-detail-view .camera-space-grid > div { border-color: var(--line); background: var(--surface-2); }
#copilot-detail-view .camera-space-grid strong { color: var(--ink); }
#copilot-detail-view #camera-start-button:not([hidden]) { display: inline-flex !important; border-color: var(--brand); background: linear-gradient(135deg, var(--brand-highlight), var(--brand-pressed)); color: var(--brand-ink); }
#copilot-detail-view .camera-cut-section { display: grid; gap: 12px; }
.camera-cut-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.camera-cut-section h4 { display: flex; align-items: baseline; gap: 7px; margin: 3px 0 0; font-size: 24px; }
.camera-cut-section h4 small { color: var(--muted); font-size: 10px; font-weight: 700; }
.camera-cut-heading output { color: var(--brand-highlight); font-size: 11px; font-weight: 900; }
.camera-cut-control { display: block; padding: 8px 2px 2px; cursor: grab; }
.camera-cut-control:active { cursor: grabbing; }
.camera-cut-control input[type="range"] { display: block; width: 100%; height: 28px; margin: 0; accent-color: var(--brand-highlight); cursor: inherit; }
.camera-cut-control input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 999px; background: var(--line-strong); }
.camera-cut-control input[type="range"]::-moz-range-track { height: 5px; border-radius: 999px; background: var(--line-strong); }
.camera-cut-control input[type="range"]::-moz-range-progress { height: 5px; border-radius: 999px; background: var(--brand-highlight); }
.camera-cut-control input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: -7px; border: 3px solid var(--surface); border-radius: 50%; background: var(--brand-highlight); box-shadow: 0 0 0 2px var(--brand-highlight), 0 3px 10px rgba(0, 0, 0, .35); appearance: none; }
.camera-cut-control input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid var(--surface); border-radius: 50%; background: var(--brand-highlight); box-shadow: 0 0 0 2px var(--brand-highlight), 0 3px 10px rgba(0, 0, 0, .35); }
.camera-cut-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.camera-cut-section p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.camera-storage-limit-grid span { border-color: var(--line); background: var(--surface-2); color: var(--muted-strong); }
.camera-storage-limit-grid input:checked + span { border-color: var(--brand-highlight); background: var(--purple-soft); color: var(--brand-highlight); box-shadow: inset 0 0 0 1px var(--brand-highlight); }
.camera-recording-filters button { border-color: var(--line); background: var(--surface-2); color: var(--muted); }
.camera-recording-filters button.is-active { border-color: var(--brand-highlight); background: var(--brand-highlight); color: var(--brand-ink); }
#copilot-detail-view .camera-recording-item { border-color: var(--line); background: var(--surface-2); }
#copilot-detail-view .camera-recording-item strong,
#copilot-detail-view .camera-recording-group > h4 { color: var(--ink); }
#copilot-detail-view .camera-storage-footer { border-top-color: var(--line); }
#copilot-detail-view .camera-storage-footer-meter { background: var(--line-strong); }
#copilot-detail-view .camera-storage-footer-meter span { background: var(--brand-highlight); }
#copilot-detail-view .camera-empty-state { border-color: var(--line); color: var(--muted); }

/* Os mesmos logos podem aparecer dentro da Jornada e dentro do menu. O
   tamanho deve ser controlado globalmente para nunca vazar do card. */
.journey-platform-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  overflow: hidden;
}
.journey-platform-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Na home, os quatro módulos precisam comunicar estado sem depender de
   ícones ou espaços vazios. A lista de Planejamento continua compacta. */
#copilot-menu-view .copilot-control-stack .copilot-module-main .copilot-menu-copy > small,
#copilot-menu-view .copilot-control-stack .copilot-module-main .copilot-menu-copy > .copilot-card-status {
  display: block;
}
#copilot-menu-view .copilot-control-stack .copilot-menu-copy > .copilot-card-status {
  position: static;
  width: max-content;
  max-width: 100%;
  margin-top: 2px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: none;
}
#copilot-menu-view .copilot-control-stack .copilot-module-main .copilot-card-status.is-active { color: var(--green); }

/* Jornada: um único grupo de ações, com estados legíveis e sem o botão de
   pausa duplicado que vinha do painel legado. */
#copilot-detail-view .copilot-journey-home-actions { display: none !important; }
#copilot-section-journey .copilot-journey-reference-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  background: var(--surface);
}
#copilot-section-journey .copilot-journey-reference-icon {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 120, 0, .42);
  border-radius: 12px;
  background: rgba(255, 120, 0, .1);
  color: var(--brand-highlight);
  --ph-size: 22px;
}
#copilot-section-journey .copilot-journey-reference-copy {
  display: grid;
  gap: 4px;
}
#copilot-section-journey .copilot-journey-reference-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  letter-spacing: -.035em;
}
#copilot-section-journey .copilot-journey-reference-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
#copilot-section-journey .copilot-journey-reference-tools { grid-column: 2; justify-self: start; }
#copilot-section-journey .copilot-journey-reference-stage {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(255, 120, 0, .3);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 120, 0, .1);
  color: var(--brand-highlight);
  font-size: 9px;
  font-weight: 900;
}
#copilot-section-journey .copilot-journey-reference-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: nowrap;
  gap: 8px;
}
#copilot-section-journey .copilot-journey-reference-actions button {
  min-height: 40px;
  min-width: 0;
  flex: 1 1 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  background: var(--surface-2);
  color: var(--muted-strong);
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
#copilot-section-journey .copilot-journey-reference-actions button:disabled {
  cursor: not-allowed;
  opacity: .42;
}
#copilot-section-journey .copilot-journey-reference-start {
  border-color: var(--brand-highlight);
  background: linear-gradient(135deg, var(--brand-highlight), var(--brand-pressed));
  color: var(--brand-ink);
}
#copilot-section-journey .copilot-journey-reference-pause { color: var(--brand-highlight); }
#copilot-section-journey .copilot-journey-reference-stop { border-color: var(--red-border); color: #ff9bad; }
#copilot-section-journey .copilot-journey-quick-tip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 120, 0, .25);
  border-radius: 14px;
  padding: 11px;
  background: rgba(255, 120, 0, .06);
}
#copilot-section-journey .copilot-journey-quick-tip-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 120, 0, .45);
  border-radius: 50%;
  color: var(--brand-highlight);
  font-size: 15px;
  font-weight: 900;
}
#copilot-section-journey .copilot-journey-quick-tip strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}
#copilot-section-journey .copilot-journey-quick-tip p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
#copilot-section-journey .copilot-journey-quick-tip > button {
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* Filtros de gravação com a mesma leitura de chips da navegação, sem copiar
   a paleta clara da referência. */
#copilot-detail-view .camera-recording-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
#copilot-detail-view .camera-recording-filters::-webkit-scrollbar { display: none; }
#copilot-detail-view .camera-recording-filters button {
  min-height: 32px;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

@media (max-width: 620px) {
  #copilot-menu-view .copilot-control-stack .copilot-module-card { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; }
  #copilot-menu-view .copilot-module-main { grid-template-columns: 38px minmax(0, 1fr); gap: 9px; }
  #copilot-menu-view .copilot-module-main .copilot-home-card-icon { width: 38px; height: 38px; }
  #copilot-menu-view .copilot-module-controls { grid-template-columns: 36px 45px; gap: 5px; }
  #copilot-menu-view .copilot-module-config { width: 36px; height: 36px; }
  #copilot-menu-view .copilot-module-switch { width: 45px; }
  #copilot-menu-view .copilot-module-switch[data-state="on"] i { transform: translateX(19px); }
  #copilot-detail-view .camera-quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #copilot-detail-view .camera-choice-grid { grid-template-columns: 1fr; }
  .camera-storage-limit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Correções de composição: preservar a estrutura do MetaKM e impedir que
   conteúdo legado escondido ou logos sem dimensão deformem a central. */
#copilot-menu-view .copilot-journey-home-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 13px 14px;
}
#copilot-menu-view .copilot-journey-home-card > .copilot-module-main {
  display: grid;
}
#copilot-menu-view .copilot-journey-home-card > .copilot-module-controls {
  display: grid;
  grid-template-columns: 38px 48px;
  align-items: center;
}
#copilot-menu-view .copilot-platform-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 30px;
  overflow: hidden;
}
#copilot-menu-view .copilot-platform-badges > span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}
#copilot-menu-view .copilot-platform-badges img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* As opções de espaço são cartões compactos; nunca devem herdar o input de
   formulário e aparecer como círculos enormes separados dos rótulos. */
#copilot-detail-view .camera-storage-limit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
#copilot-detail-view .camera-storage-limit-grid label {
  position: relative;
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px;
  background: var(--surface-2);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
#copilot-detail-view .camera-storage-limit-grid label:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
#copilot-detail-view .camera-storage-limit-grid input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
}
#copilot-detail-view .camera-storage-limit-grid label:has(input:checked) {
  border-color: var(--brand-highlight);
  background: var(--purple-soft);
  color: var(--brand-highlight);
  box-shadow: inset 0 0 0 1px var(--brand-highlight);
}
#copilot-detail-view .camera-storage-limit-grid label:has(input:focus-visible) {
  outline: 2px solid var(--brand-highlight);
  outline-offset: 2px;
}

/* Reconstrução 2026-08-17: Início, Jornada, Copiloto e Câmera Secreta.
   A composição usa exclusivamente a fundação graphite/laranja do MetaKM. */
#profile-detail-view > #profile-detail-eyebrow { display: none !important; }
#copilot-modal {
  padding-inline: clamp(14px, 4vw, 24px);
  background:
    radial-gradient(circle at 18% -120px, rgba(255, 120, 0, .11), transparent 320px),
    var(--bg);
}
#copilot-modal > .copilot-modal {
  width: min(100%, 560px);
  min-height: calc(100dvh - 96px);
  gap: 0;
  padding: clamp(18px, 4vw, 28px) 0 42px;
  font-family: var(--font-ui);
}
#copilot-menu-view {
  display: grid;
  gap: 14px;
  padding: 0 0 18px;
}
#copilot-menu-view .copilot-home-header {
  display: block;
  padding: 3px 2px 5px;
}
#copilot-menu-view .copilot-home-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.08;
}
#copilot-menu-view .copilot-control-stack {
  display: grid;
  gap: 9px;
}
#copilot-menu-view .copilot-control-stack .copilot-module-card,
#copilot-menu-view .copilot-journey-home-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  overflow: hidden;
  border: 1px solid #272729;
  border-radius: 17px;
  padding: 11px 12px;
  background: linear-gradient(145deg, #111112 0%, #0c0c0d 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 8px 22px rgba(0, 0, 0, .15);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
#copilot-menu-view .copilot-control-stack .copilot-module-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: transparent;
  content: '';
}
#copilot-menu-view .copilot-control-stack .copilot-module-card:hover {
  border-color: #3b3b3e;
  background: linear-gradient(145deg, #151516 0%, #0e0e0f 100%);
  transform: translateY(-1px);
}
#copilot-menu-view .copilot-journey-home-card[data-active="true"],
#copilot-menu-view .copilot-primary-module.is-active,
#copilot-menu-view .copilot-camera-module:has(.copilot-module-switch[data-state="on"]) {
  border-color: rgba(54, 212, 125, .42);
  background: linear-gradient(145deg, rgba(14, 37, 25, .92), #0b100d);
}
#copilot-menu-view .copilot-journey-home-card[data-active="true"]::before,
#copilot-menu-view .copilot-primary-module.is-active::before,
#copilot-menu-view .copilot-camera-module:has(.copilot-module-switch[data-state="on"])::before {
  background: var(--green);
}
#copilot-menu-view .copilot-module-main {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#copilot-menu-view .copilot-module-main .copilot-home-card-icon,
#copilot-menu-view .copilot-module-card[data-module-tone] .copilot-home-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 120, 0, .3);
  border-radius: 12px;
  background: rgba(255, 120, 0, .09);
  color: var(--brand-highlight);
  --ph-size: 20px;
}
#copilot-menu-view .copilot-camera-module .copilot-home-card-icon {
  border-color: rgba(54, 212, 125, .25);
  background: rgba(54, 212, 125, .08);
  color: var(--green);
}
#copilot-menu-view .copilot-menu-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
#copilot-menu-view .copilot-menu-copy strong,
#copilot-menu-view .copilot-reference-group .copilot-menu-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 740;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-overflow: ellipsis;
}
#copilot-menu-view .copilot-control-stack .copilot-card-status {
  display: block;
  position: static;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #8f8a85;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .015em;
  line-height: 1.2;
  text-transform: none;
}
#copilot-menu-view .copilot-control-stack .is-active .copilot-card-status,
#copilot-menu-view .copilot-journey-home-card[data-active="true"] .copilot-card-status,
#copilot-menu-view .copilot-camera-module:has(.copilot-module-switch[data-state="on"]) .copilot-card-status {
  color: var(--green);
}
#copilot-menu-view .copilot-module-controls {
  display: grid;
  grid-template-columns: 34px 46px;
  align-items: center;
  gap: 6px;
}
#copilot-menu-view .copilot-module-config,
#copilot-menu-view .copilot-reference-group .copilot-module-config {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  color: #aaa49e;
  cursor: pointer;
  --ph-size: 18px;
}
#copilot-menu-view .copilot-module-config:hover,
#copilot-menu-view .copilot-module-config:focus-visible {
  border-color: #3b3b3d;
  background: #181819;
  color: var(--brand-highlight);
}
#copilot-menu-view .copilot-module-switch,
#copilot-menu-view .copilot-reference-group .copilot-module-switch {
  position: relative;
  display: block;
  width: 46px;
  height: 27px;
  border: 1px solid #3a3939;
  border-radius: 999px;
  padding: 0;
  background: #262526;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
#copilot-menu-view .copilot-module-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  display: block;
  width: 19px;
  height: 19px;
  margin: 0;
  border-radius: 50%;
  background: #e8e4df;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .42);
  transition: transform .18s ease, background .18s ease;
}
#copilot-menu-view .copilot-module-switch[data-state="on"] {
  border-color: #238d55;
  background: #16482f;
}
#copilot-menu-view .copilot-module-switch[data-state="on"] i {
  background: #43e58d;
  transform: translateX(19px);
}
#copilot-menu-view .copilot-module-switch[data-state="pending"] {
  border-color: rgba(255, 154, 36, .62);
  background: rgba(255, 120, 0, .18);
}
#copilot-menu-view .copilot-module-switch[data-state="pending"] i {
  background: var(--brand-highlight);
  animation: metakm-switch-pulse .8s ease-in-out infinite alternate;
}
@keyframes metakm-switch-pulse {
  to { opacity: .55; transform: translateX(9px); }
}
#copilot-menu-view .copilot-home-feedback {
  margin: -3px 2px 0;
  color: var(--green);
  font-size: 10px;
  line-height: 1.4;
}
#copilot-menu-view .copilot-home-feedback:empty { display: none; }
#copilot-menu-view .copilot-home-feedback.error { color: #ff8e9f; }
#copilot-menu-view .copilot-reference-group {
  display: grid;
  gap: 7px;
  margin-top: 3px;
}
#copilot-menu-view .copilot-reference-heading {
  margin: 0 2px;
  color: #8d8882;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
#copilot-menu-view .copilot-reference-group .copilot-module-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #242426;
  border-radius: 15px;
  background: #0c0c0d;
}
#copilot-menu-view .copilot-reference-group .copilot-module-card,
#copilot-menu-view .copilot-reference-group .copilot-module-card:hover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border: 0;
  border-bottom: 1px solid #242426;
  border-radius: 0;
  padding: 8px 10px;
  background: transparent;
  box-shadow: none;
  transform: none;
}
#copilot-menu-view .copilot-reference-group .copilot-module-card:last-child { border-bottom: 0; }
#copilot-menu-view .copilot-reference-group .copilot-module-main {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
}
#copilot-menu-view .copilot-reference-group .copilot-home-card-icon,
#copilot-menu-view .copilot-reference-group .copilot-module-card[data-module-tone] .copilot-home-card-icon {
  width: 34px;
  height: 34px;
  border-color: rgba(255, 120, 0, .22);
  border-radius: 10px;
  background: rgba(255, 120, 0, .07);
  color: var(--brand-highlight);
  --ph-size: 17px;
}
#copilot-menu-view .copilot-reference-group .copilot-module-controls-static {
  display: grid;
  grid-template-columns: 32px;
  gap: 0;
}
#copilot-menu-view .copilot-reference-group .copilot-module-controls-static .copilot-card-status { display: none; }
#copilot-menu-view .copilot-reference-group .copilot-module-config {
  width: 32px;
  height: 32px;
  color: #817d78;
}
#copilot-menu-view .copilot-home-group[aria-label="Proteção avançada"] { margin-top: -2px; }
#copilot-menu-view .copilot-home-compact-list {
  overflow: hidden;
  border: 1px solid #242426;
  border-radius: 15px;
  background: #0c0c0d;
}
#copilot-menu-view .copilot-home-compact-list > .copilot-home-card {
  min-height: 54px;
  border: 0;
  border-radius: 0;
  padding: 9px 11px;
  background: transparent;
}

#copilot-detail-view {
  display: grid;
  gap: 13px;
  padding-bottom: 18px;
}
#copilot-detail-view[hidden] { display: none !important; }
#copilot-detail-view .copilot-back {
  justify-self: start;
  min-height: 32px;
  margin: 0;
  border: 0;
  border-radius: 9px;
  padding: 0 8px;
  background: transparent;
  color: var(--brand-highlight);
  font-size: 11px;
  font-weight: 780;
  cursor: pointer;
}
#copilot-detail-view .copilot-back:hover { background: rgba(255, 120, 0, .08); }
#copilot-detail-view .copilot-heading { margin: -3px 0 1px; }
#copilot-detail-view .copilot-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 7vw, 31px);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.08;
}
#copilot-detail-view .context-config-tabs {
  order: 3;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  border: 1px solid #29292b;
  border-radius: 13px;
  padding: 4px;
  background: #0d0d0e;
  scrollbar-width: none;
}
#copilot-detail-view .context-config-tabs[hidden] { display: none !important; }
#copilot-detail-view .context-config-tabs::-webkit-scrollbar { display: none; }
#copilot-detail-view .context-config-tabs button {
  min-height: 32px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  background: transparent;
  color: #928d88;
  font-size: 9px;
  font-weight: 780;
  white-space: nowrap;
}
#copilot-detail-view .context-config-tabs button.active {
  background: rgba(255, 120, 0, .13);
  color: var(--brand-highlight);
}
#copilot-detail-view .copilot-detail-panel { order: 4; }
#copilot-section-journey {
  display: grid;
  gap: 11px;
}
#copilot-section-journey[hidden] { display: none !important; }
#copilot-section-journey .copilot-journey-status-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #2c2c2e;
  border-radius: 16px;
  padding: 13px;
  background: linear-gradient(145deg, #121213, #0d0d0e);
}
#copilot-section-journey .copilot-journey-reference-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 120, 0, .28);
  border-radius: 12px;
  background: rgba(255, 120, 0, .09);
  color: var(--brand-highlight);
  --ph-size: 21px;
}
#copilot-section-journey .copilot-journey-status-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
#copilot-section-journey .copilot-journey-status-copy strong {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -.02em;
}
#copilot-section-journey .copilot-journey-status-copy span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}
#copilot-section-journey .copilot-journey-reference-stage {
  min-height: 24px;
  border: 1px solid rgba(255, 120, 0, .28);
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(255, 120, 0, .08);
  color: var(--brand-highlight);
  font-size: 7px;
  font-weight: 900;
}
#copilot-section-journey .copilot-journey-reference-stage.is-active {
  border-color: rgba(54, 212, 125, .34);
  background: rgba(54, 212, 125, .1);
  color: var(--green);
}
#copilot-section-journey .copilot-journey-runtime,
#copilot-section-journey .copilot-journey-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#copilot-section-journey .copilot-journey-runtime article,
#copilot-section-journey .copilot-journey-value-grid article {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 78px;
  border: 1px solid #29292b;
  border-radius: 14px;
  padding: 11px;
  background: #101011;
}
#copilot-section-journey .copilot-journey-runtime article.is-emphasis {
  grid-column: 1 / -1;
  min-height: 92px;
  border-color: rgba(255, 120, 0, .3);
  background: rgba(255, 120, 0, .055);
}
#copilot-section-journey .copilot-journey-runtime span,
#copilot-section-journey .copilot-journey-value-grid span {
  color: #88837e;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: .06em;
  text-transform: uppercase;
}
#copilot-section-journey .copilot-journey-runtime strong,
#copilot-section-journey .copilot-journey-value-grid strong {
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}
#copilot-section-journey .copilot-journey-runtime .is-emphasis strong {
  color: var(--brand-highlight);
  font-size: 25px;
}
#copilot-section-journey .copilot-journey-runtime small,
#copilot-section-journey .copilot-journey-value-grid small {
  color: #77736f;
  font-size: 8px;
  line-height: 1.3;
}
#copilot-section-journey .copilot-journey-value {
  border: 1px solid #29292b;
  border-radius: 16px;
  padding: 13px;
  background: #0d0d0e;
}
#copilot-section-journey .copilot-journey-value .section-heading { margin: 0 0 10px; }
#copilot-section-journey .copilot-journey-value h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -.02em;
}
#copilot-section-journey .copilot-journey-value .field-hint {
  display: block;
  margin-top: 4px;
  color: #85807b;
  font-size: 8px;
  line-height: 1.4;
}

#copilot-detail-view .copilot-runtime-strip {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid #29292b;
  border-radius: 14px;
  padding: 10px 11px;
  background: #101011;
}
#copilot-detail-view .copilot-runtime-strip > [data-icon] {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 120, 0, .09);
  color: var(--brand-highlight);
}
#copilot-detail-view .copilot-runtime-strip[data-state="on"] {
  border-color: rgba(54, 212, 125, .32);
  background: rgba(54, 212, 125, .055);
}
#copilot-detail-view .copilot-runtime-strip[data-state="on"] > [data-icon] {
  background: rgba(54, 212, 125, .1);
  color: var(--green);
}
#copilot-detail-view .copilot-runtime-strip div { display: grid; gap: 2px; }
#copilot-detail-view .copilot-runtime-strip strong { font-size: 12px; }
#copilot-detail-view .copilot-runtime-strip small { color: var(--muted); font-size: 8px; line-height: 1.35; }
#copilot-detail-view .copilot-criteria-step,
#copilot-detail-view .journey-collection {
  border-color: #29292b;
  border-radius: 15px;
  background: #0e0e0f;
  box-shadow: none;
}

#copilot-detail-view .security-camera-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#copilot-detail-view .camera-primary-tabs {
  border: 1px solid #29292b;
  border-radius: 13px;
  padding: 4px;
  background: #0d0d0e;
}
#copilot-detail-view .camera-primary-tab {
  min-height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8f8a85;
  font-size: 10px;
  font-weight: 780;
}
#copilot-detail-view .camera-primary-tab.is-active {
  border: 0;
  background: rgba(255, 120, 0, .13);
  color: var(--brand-highlight);
}
#copilot-detail-view .camera-step,
#copilot-detail-view .camera-cut-section,
#copilot-detail-view .camera-recordings-section {
  border: 1px solid #29292b;
  border-radius: 16px;
  padding: 13px;
  background: #0e0e0f;
  box-shadow: none;
}
#copilot-detail-view .camera-step-heading {
  display: block;
  margin-bottom: 11px;
}
#copilot-detail-view .camera-step-heading > div,
#copilot-detail-view .camera-step-heading > div > div {
  display: block;
}
#copilot-detail-view .camera-step-number,
#copilot-detail-view .camera-step-heading .eyebrow,
#copilot-detail-view .camera-step-state {
  display: none !important;
}
#copilot-detail-view .camera-step-heading h4,
#copilot-detail-view .camera-cut-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -.02em;
  line-height: 1.2;
}
#copilot-detail-view .camera-step-heading h4 + small {
  display: block;
  margin-top: 4px;
  color: #8e8984;
  font-size: 8px;
  line-height: 1.4;
}
#copilot-detail-view .camera-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#copilot-detail-view .camera-quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#copilot-detail-view .camera-choice-card,
#copilot-detail-view .camera-quality-card {
  position: relative;
  display: block;
  min-height: 78px;
  border: 1px solid #2b2b2d;
  border-radius: 13px;
  padding: 11px;
  background: #131314;
  color: var(--ink);
}
#copilot-detail-view .camera-choice-card input,
#copilot-detail-view .camera-quality-card input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  opacity: 0;
}
#copilot-detail-view .camera-choice-card span,
#copilot-detail-view .camera-quality-card span {
  display: grid;
  gap: 3px;
}
#copilot-detail-view .camera-choice-card strong,
#copilot-detail-view .camera-quality-card strong {
  padding-right: 20px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.25;
}
#copilot-detail-view .camera-choice-card small,
#copilot-detail-view .camera-quality-card small,
#copilot-detail-view .camera-quality-card em {
  color: #8d8883;
  font-size: 8px;
  font-style: normal;
  line-height: 1.35;
}
#copilot-detail-view .camera-choice-card::after,
#copilot-detail-view .camera-quality-card::after {
  top: 9px;
  right: 9px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  padding: 0;
  background: var(--brand-highlight);
  color: #100800;
  content: '✓';
  font-size: 10px;
  font-weight: 950;
}
#copilot-detail-view .camera-choice-card:has(input:checked),
#copilot-detail-view .camera-quality-card:has(input:checked) {
  border-color: rgba(255, 154, 36, .72);
  padding: 11px;
  background: rgba(255, 120, 0, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 120, 0, .22);
}
#copilot-detail-view .camera-choice-card:has(input:checked) strong,
#copilot-detail-view .camera-quality-card:has(input:checked) strong {
  color: var(--brand-highlight);
}
#copilot-detail-view .camera-quality-note {
  margin: 9px 0 0;
  border-left: 2px solid rgba(255, 120, 0, .45);
  padding-left: 9px;
  color: #827d78;
  font-size: 8px;
  line-height: 1.4;
}
#copilot-detail-view .camera-cut-section {
  display: grid;
  gap: 9px;
}
#copilot-detail-view .camera-cut-heading { align-items: center; }
#copilot-detail-view .camera-cut-heading > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 3px 8px;
}
#copilot-detail-view .camera-cut-heading h4 { grid-column: 1 / -1; }
#copilot-detail-view .camera-cut-heading strong {
  color: var(--brand-highlight);
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}
#copilot-detail-view .camera-cut-heading small {
  color: #85807b;
  font-size: 8px;
  font-weight: 700;
}
#copilot-detail-view .camera-cut-heading output { display: none; }
#copilot-detail-view .camera-cut-control { padding: 4px 1px 0; }
#copilot-detail-view .camera-cut-control input[type="range"] {
  height: 30px;
  accent-color: var(--brand-highlight);
}
#copilot-detail-view .camera-cut-section p {
  color: #827d78;
  font-size: 8px;
  line-height: 1.4;
}
#copilot-detail-view .camera-storage-limit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
#copilot-detail-view .camera-storage-limit-grid label {
  min-height: 40px;
  border: 1px solid #2b2b2d;
  border-radius: 10px;
  padding: 5px 2px;
  background: #131314;
  font-size: 9px;
}
#copilot-detail-view .camera-space-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}
#copilot-detail-view .camera-space-grid > div {
  min-height: 62px;
  border: 1px solid #29292b;
  border-radius: 12px;
  padding: 9px;
  background: #111112;
}
#copilot-detail-view .camera-space-grid small {
  color: #827d78;
  font-size: 7px;
  line-height: 1.25;
}
#copilot-detail-view .camera-space-grid strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 11px;
}
#copilot-detail-view .camera-storage-policy,
#copilot-detail-view .camera-export-hint {
  color: #827d78;
  font-size: 8px;
  line-height: 1.4;
}
#copilot-detail-view .camera-recording-filters {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}
#copilot-detail-view .camera-recording-filters button {
  min-height: 31px;
  border: 1px solid #2b2b2d;
  border-radius: 999px;
  padding: 0 10px;
  background: #131314;
  color: #928d88;
  font-size: 9px;
}
#copilot-detail-view .camera-recording-filters button.is-active {
  border-color: var(--brand-highlight);
  background: var(--brand-highlight);
  color: #150a01;
}
#copilot-detail-view .camera-empty-state {
  min-height: 150px;
  border: 1px dashed #2b2b2d;
  border-radius: 14px;
  background: #0b0b0c;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 380px) {
  #copilot-modal { padding-inline: 12px; }
  #copilot-modal > .copilot-modal { padding-top: 16px; }
  #copilot-menu-view .copilot-control-stack .copilot-module-card,
  #copilot-menu-view .copilot-journey-home-card { min-height: 68px; padding: 10px; }
  #copilot-menu-view .copilot-module-main { grid-template-columns: 37px minmax(0, 1fr); gap: 8px; }
  #copilot-menu-view .copilot-module-main .copilot-home-card-icon,
  #copilot-menu-view .copilot-module-card[data-module-tone] .copilot-home-card-icon { width: 37px; height: 37px; }
  #copilot-menu-view .copilot-module-controls { grid-template-columns: 32px 44px; gap: 4px; }
  #copilot-menu-view .copilot-module-config { width: 32px; height: 32px; }
  #copilot-menu-view .copilot-module-switch { width: 44px; }
  #copilot-menu-view .copilot-module-switch[data-state="on"] i { transform: translateX(17px); }
  #copilot-section-journey .copilot-journey-status-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  #copilot-section-journey .copilot-journey-reference-icon { width: 38px; height: 38px; }
  #copilot-section-journey .copilot-journey-reference-stage {
    grid-column: 2;
    justify-self: start;
  }
}

/* Perfil: estrutura compacta inspirada na referência, mantendo a identidade
   graphite/laranja do MetaKM. */
#settings-modal #profile-menu-view { gap: 14px; }
#settings-modal #profile-menu-view .profile-access-card {
  gap: 14px;
  border-color: #2d2d2f;
  border-radius: 16px;
  padding: 16px;
  background: #101010;
}
#settings-modal #profile-menu-view .profile-access-main { gap: 13px; }
#settings-modal #profile-menu-view .profile-avatar {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  border-radius: 50%;
  font-size: 21px;
}
#settings-modal #profile-menu-view .profile-access-main > div { gap: 5px; }
#settings-modal #profile-menu-view .profile-access-main strong { font-size: 16px; }
#settings-modal #profile-menu-view .profile-access-main small { display: block; font-size: 10px; }
#settings-modal #profile-menu-view .profile-access-link {
  min-height: 42px;
  padding-top: 12px;
  border-top-color: #292929;
}
#settings-modal #profile-menu-view .profile-access-link strong { font-size: 12px; }
#settings-modal #profile-menu-view .profile-section-label {
  margin: 2px 2px -5px;
  color: #8f8a85;
  font-size: 9px;
  letter-spacing: .13em;
}
#settings-modal #profile-menu-view .profile-menu-list {
  border-color: #292929;
  border-radius: 14px;
  background: #0d0d0e;
}
#settings-modal #profile-menu-view .profile-menu-list > .profile-menu-item {
  min-height: 61px;
  padding: 11px 13px;
}
#settings-modal #profile-menu-view .profile-menu-list .profile-menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 120, 0, .1);
  color: var(--brand-highlight);
}
#settings-modal #profile-menu-view .profile-menu-list .profile-menu-item strong { font-size: 13px; }
#settings-modal #profile-menu-view .profile-menu-list .profile-menu-item small { display: block; font-size: 10px; }
#settings-modal #profile-menu-view .profile-logout-button {
  min-height: 44px;
  border: 1px solid rgba(255, 115, 125, .24);
  border-radius: 13px;
  padding: 10px 13px;
  background: rgba(255, 115, 125, .06);
  color: #ff8a95;
  font-size: 12px;
}
#settings-modal #profile-menu-view .profile-logout-button:hover,
#settings-modal #profile-menu-view .profile-logout-button:focus-visible {
  border-color: #ff8a95;
  background: rgba(255, 115, 125, .11);
}

.appearance-panel,
.support-panel { display: grid; gap: 13px; }
.app-theme-fixed {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  background: var(--surface);
  color: var(--ink);
}
.app-theme-fixed-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 120, 0, .28);
  border-radius: 10px;
  background: rgba(255, 120, 0, .1);
  color: var(--brand-highlight);
}
.app-theme-fixed-copy { display: grid; gap: 2px; }
.app-theme-fixed-copy strong { font-size: 12px; }
.app-theme-fixed-copy small { color: var(--muted); font-size: 10px; }
.support-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.support-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 65px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}
.support-list article:last-child { border-bottom: 0; }
.support-list article > div { display: grid; gap: 3px; }
.support-list strong { font-size: 12px; }
.support-list small { color: var(--muted); font-size: 10px; line-height: 1.35; }

/* Navegação inspirada no iOS: entrada curta, gesto com arrasto e retorno elástico. */
:root {
  --mk-nav-duration: .28s;
  --mk-nav-ease: cubic-bezier(.22, .75, .25, 1);
}

.app-shell,
.page-screen > .modal,
.modal-backdrop > .modal {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.page-screen.swipe-enter-next,
.page-screen.swipe-enter-prev {
  animation-duration: .32s;
  animation-timing-function: var(--mk-nav-ease);
}

@keyframes metakm-swipe-enter-next {
  from { opacity: .78; transform: translate3d(22px, 0, 0) scale(.994); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes metakm-swipe-enter-prev {
  from { opacity: .78; transform: translate3d(-22px, 0, 0) scale(.994); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.page-screen.swipe-enter-next > .modal,
.page-screen.swipe-enter-prev > .modal {
  animation-duration: .32s;
  animation-timing-function: var(--mk-nav-ease);
  animation-fill-mode: both;
}

.page-screen.swipe-enter-next > .modal { animation-name: metakm-ios-page-content-next; }
.page-screen.swipe-enter-prev > .modal { animation-name: metakm-ios-page-content-prev; }

@keyframes metakm-ios-page-content-next {
  from { opacity: .9; transform: translate3d(10px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes metakm-ios-page-content-prev {
  from { opacity: .9; transform: translate3d(-10px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.ios-surface-enter {
  animation: metakm-ios-backdrop-in var(--mk-nav-duration) var(--mk-nav-ease) both;
}

.ios-surface-enter > .modal {
  animation: metakm-ios-sheet-in .32s var(--mk-nav-ease) both;
}

@keyframes metakm-ios-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes metakm-ios-sheet-in {
  from { opacity: .86; transform: translate3d(0, 14px, 0) scale(.99); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.ios-gesture-dragging {
  transition: none !important;
  transform: translate3d(var(--ios-gesture-x, 0px), 0, 0) !important;
  opacity: var(--ios-gesture-opacity, 1) !important;
  will-change: transform, opacity;
}

.ios-gesture-settle {
  transition: transform .24s var(--mk-nav-ease), opacity .24s ease !important;
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
}

.bottom-nav .nav-item {
  transition: color .18s ease, background-color .18s ease, transform .18s var(--mk-nav-ease);
  will-change: transform;
}

.bottom-nav .nav-item[aria-current="page"] {
  font-weight: 700;
}

.bottom-nav .nav-item:active {
  transform: scale(.94);
}

.page-screen,
.modal {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: reduce) {
  .page-screen.swipe-enter-next,
  .page-screen.swipe-enter-prev,
  .page-screen.swipe-enter-next > .modal,
  .page-screen.swipe-enter-prev > .modal,
  .ios-surface-enter,
  .ios-surface-enter > .modal {
    animation: none !important;
  }

  .ios-gesture-dragging,
  .ios-gesture-settle,
  .bottom-nav .nav-item {
    transition: none !important;
  }
}

/* Ajuste de navegação interna: os destinos ocupam a largura disponível,
   sem cápsulas pequenas e sem sobras laterais no Moto G9. */
#copilot-detail-view .context-config-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 6px;
  overflow: visible;
  padding: 5px;
}

#copilot-detail-view .context-config-tabs[data-group="journey"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#copilot-detail-view .context-config-tabs button {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 0 8px;
  font-size: 11px;
  line-height: 1.15;
  white-space: normal;
}

/* O salvamento pertence ao fim do formulário, depois do painel ativo. */
#copilot-detail-view .copilot-settings-actions {
  order: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
  align-items: center;
  width: 100%;
  margin-top: 4px;
  border-top: 1px solid #29292b;
  padding: 12px 0 calc(8px + env(safe-area-inset-bottom));
}

#copilot-detail-view .copilot-settings-actions .primary-action {
  width: 100%;
  min-height: 48px;
}

#copilot-section-journey .copilot-journey-history-inline {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  border-top: 1px solid #29292b;
  padding-top: 15px;
}

#copilot-section-journey .copilot-inline-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

#copilot-section-journey .copilot-inline-section-heading h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -.025em;
}

#copilot-section-journey .copilot-inline-section-heading small {
  max-width: 180px;
  color: #85807b;
  font-size: 9px;
  line-height: 1.35;
  text-align: right;
}

/* Navegação principal compacta: ícone e rótulo ficam juntos, sem área vazia. */
.bottom-nav {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  align-items: center;
  padding: 2px 8px;
}

.bottom-nav .nav-item {
  height: 46px;
  min-height: 46px;
  grid-template-rows: 24px auto;
  gap: 1px;
  padding: 0 2px 1px;
}

.bottom-nav .nav-item:not(.nav-launcher) > [data-icon] {
  width: 26px;
  height: 26px;
  --ph-size: 20px;
}

.bottom-nav .nav-item .nav-label {
  font-size: 10px;
  line-height: 1.1;
}

@media (max-width: 560px) {
  #copilot-detail-view .copilot-settings-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #copilot-detail-view .copilot-settings-actions .primary-action {
    width: 100%;
  }

  #copilot-section-journey .copilot-inline-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  #copilot-section-journey .copilot-inline-section-heading small {
    max-width: none;
    text-align: left;
  }
}

/* Visão de configuração no Início: resumo compacto, somente leitura e alinhado à paleta MetaKM. */
.home-configuration-dashboard {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.home-configuration-dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.home-configuration-dashboard-heading h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.04em;
}

.home-configuration-dashboard-badge {
  border: 1px solid rgba(255, 120, 0, .3);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--brand-highlight);
  background: rgba(255, 120, 0, .08);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.home-configuration-dashboard-intro {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.home-configuration-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-configuration-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(22, 19, 16, .98), rgba(12, 11, 10, .98));
  box-shadow: inset 0 1px rgba(255, 255, 255, .02);
}

.home-configuration-card[data-home-configuration-card="planning"],
.home-configuration-card[data-home-configuration-card="vehicle"] {
  border-color: rgba(255, 120, 0, .28);
}

.home-configuration-card-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.home-configuration-card-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 120, 0, .3);
  border-radius: 10px;
  color: var(--brand-highlight);
  background: rgba(255, 120, 0, .1);
  --ph-size: 18px;
}

.home-configuration-card-heading > div {
  min-width: 0;
}

.home-configuration-card-heading .eyebrow {
  font-size: 8px;
  letter-spacing: .12em;
}

.home-configuration-card-heading h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -.025em;
}

.home-configuration-card-value {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-configuration-card-value--text {
  font-size: 17px;
}

.home-configuration-card-note {
  min-height: 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.home-criteria-reference-intro {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.home-criteria-reference {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
}

.home-criteria-reference-row {
  display: grid;
  grid-template-columns: minmax(68px, 1.08fr) repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.home-criteria-reference-cell,
.home-criteria-reference-metric {
  display: flex;
  min-width: 0;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 7px 4px;
  color: var(--ink);
  font-size: 9px;
  line-height: 1.15;
  text-align: center;
}

.home-criteria-reference-cell--metric,
.home-criteria-reference-metric {
  justify-content: flex-start;
  background: rgba(255, 255, 255, .035);
  text-align: left;
}

.home-criteria-reference-cell--metric {
  color: #a7a19a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-criteria-reference-cell--bad { background: rgba(244, 94, 108, .1); color: #ff8f99; }
.home-criteria-reference-cell--attention { background: rgba(255, 174, 71, .1); color: #ffc477; }
.home-criteria-reference-cell--good { background: rgba(54, 212, 125, .1); color: #5be99c; }
.home-criteria-reference-row--header .home-criteria-reference-cell { min-height: 38px; gap: 4px; font-size: 9px; font-weight: 800; }
.home-criteria-reference-row--header .home-criteria-reference-cell--metric { color: #a7a19a; }
.home-criteria-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); }
.home-criteria-reference-metric { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: 5px; }
.home-criteria-reference-metric > i { display: grid; width: 21px; height: 21px; grid-row: 1 / span 2; place-items: center; border-radius: 50%; background: rgba(54, 212, 125, .09); color: var(--green); font-size: 11px; font-style: normal; }
.home-criteria-reference-metric > b { overflow: hidden; color: var(--ink); font-size: 9px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.home-criteria-reference-metric > small { color: var(--muted); font-size: 7px; line-height: 1.1; }

.home-configuration-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.home-configuration-card-details > div {
  display: grid;
  min-width: 0;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 7px;
}

.home-configuration-card-details dt {
  overflow: hidden;
  color: #8f8a85;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-configuration-card-details dd {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-configuration-card-list {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.home-configuration-card-list > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 7px;
}

.home-configuration-card-list b {
  overflow: hidden;
  color: var(--muted-strong);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-configuration-card-list strong {
  color: var(--brand-highlight);
  font-size: 10px;
  white-space: nowrap;
}

.home-configuration-card-list > small {
  color: #827d78;
  font-size: 9px;
}

.home-configuration-card-detail-button {
  justify-self: start;
  border: 1px solid rgba(255, 120, 0, .38);
  border-radius: 9px;
  padding: 7px 10px;
  background: rgba(255, 120, 0, .08);
  color: var(--brand-highlight);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.home-configuration-card-detail-button:hover,
.home-configuration-card-detail-button:focus-visible { border-color: var(--brand-highlight); background: rgba(255, 120, 0, .16); }

@media (max-width: 560px) {
  .home-configuration-dashboard {
    margin-top: 24px;
    padding-top: 18px;
  }

  .home-configuration-dashboard-heading {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }

  .home-configuration-dashboard-badge {
    align-self: start;
  }

  .home-configuration-card-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .home-configuration-card {
    border-radius: 14px;
    padding: 13px;
  }
}

/* Os três recursos principais usam sempre o mesmo par de controles.
   A regra responsiva antiga transformava a configuração em uma linha inteira
   apenas para Copiloto e Câmera; manter os dois controles lado a lado deixa o
   padrão coerente com a Jornada em qualquer largura de tela. */
#copilot-menu-view .copilot-control-stack .copilot-module-controls {
  display: grid;
  grid-template-columns: 34px 46px;
  align-items: center;
  gap: 6px;
}

#copilot-menu-view .copilot-control-stack .copilot-module-config {
  grid-column: auto;
  width: 34px;
  min-height: 34px;
  padding: 0;
}

@media (max-width: 560px) {
  #copilot-menu-view .copilot-control-stack .copilot-module-controls {
    grid-template-columns: 32px 44px;
    gap: 4px;
  }

  #copilot-menu-view .copilot-control-stack .copilot-module-config {
    grid-column: auto;
    width: 32px;
    min-height: 32px;
  }
}

/* Onboarding v2 e visão consolidada de planejamento. */
.onboarding-welcome-step {
  align-content: center;
  justify-items: center;
  text-align: center;
}

.onboarding-welcome-icon {
  width: 72px;
  height: 72px;
  margin: 12px 0 18px;
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(255, 120, 0, .18);
}

.onboarding-welcome-step h3 {
  margin: 8px 0 10px;
  font-size: clamp(25px, 6vw, 34px);
  letter-spacing: -.05em;
}

.onboarding-welcome-step > p:not(.eyebrow) {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.onboarding-roadmap {
  display: grid;
  width: min(100%, 430px);
  gap: 8px;
  margin-top: 24px;
  text-align: left;
}

.onboarding-roadmap span {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
}

.onboarding-roadmap b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--purple-soft);
  color: var(--brand-highlight);
  font-size: 10px;
}

.onboarding-weekdays,
.onboarding-tool-options {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.onboarding-weekdays legend,
.onboarding-tool-options legend {
  margin-bottom: 9px;
  color: #c6c6c2;
  font-size: 11px;
  font-weight: 700;
}

.onboarding-weekdays > div {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.onboarding-weekdays label {
  position: relative;
  cursor: pointer;
}

.onboarding-weekdays input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
}

.onboarding-weekdays span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.onboarding-weekdays input:checked + span {
  border-color: var(--brand-highlight);
  background: var(--purple-soft);
  color: var(--brand-highlight);
}

.onboarding-weekdays input:focus-visible + span {
  outline: 2px solid var(--brand-highlight);
  outline-offset: 2px;
}

.onboarding-routine-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 2px;
}

.onboarding-routine-preview span,
.onboarding-routine-preview strong {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted-strong);
  font-size: 10px;
  text-align: center;
}

.onboarding-routine-preview strong {
  grid-column: 1 / -1;
  border-color: rgba(255, 120, 0, .28);
  color: var(--brand-highlight);
}

.onboarding-routine-preview span:nth-of-type(4),
.onboarding-routine-preview span:nth-of-type(5) {
  color: var(--muted);
}

.onboarding-disclosure {
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.onboarding-disclosure summary {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.onboarding-disclosure[open] summary { margin-bottom: 14px; }
.onboarding-disclosure label { display: grid; gap: 7px; color: #c6c6c2; font-size: 11px; font-weight: 700; }

.onboarding-tool-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.onboarding-tool-options legend { width: 100%; }
.onboarding-tool-options label { position: relative; cursor: pointer; }
.onboarding-tool-options input { position: absolute; width: 1px; height: 1px; min-height: 1px; opacity: 0; }
.onboarding-tool-options span { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 800; }
.onboarding-tool-options input:checked + span { border-color: var(--brand-highlight); background: var(--purple-soft); color: var(--brand-highlight); }

.onboarding-tool-toggle {
  display: flex !important;
  align-items: flex-start;
  gap: 11px !important;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
  cursor: pointer;
}

.onboarding-tool-toggle input { min-height: 18px; width: 18px; margin-top: 2px; accent-color: var(--brand); }
.onboarding-tool-toggle span { display: grid; gap: 3px; }
.onboarding-tool-toggle strong { color: var(--ink); font-size: 12px; }
.onboarding-tool-toggle small { color: var(--muted); font-size: 10px; line-height: 1.45; }

.onboarding-ready-status-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.onboarding-ready-status-list article {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.onboarding-ready-status-list article > span { color: var(--green); }
.onboarding-ready-status-list div { display: grid; gap: 2px; }
.onboarding-ready-status-list strong { color: var(--ink); font-size: 11px; }
.onboarding-ready-status-list small { color: var(--muted); font-size: 9px; }

.home-today-plan,
.home-planning-summary {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.home-today-plan h2,
.home-planning-summary h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -.035em;
}

.home-today-plan-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-today-plan-values article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.home-today-plan-values small { color: var(--muted); font-size: 9px; }
.home-today-plan-values strong { overflow: hidden; color: var(--brand-highlight); font-size: 18px; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.home-today-plan > p { margin: 0; color: var(--muted-strong); font-size: 11px; font-weight: 700; }

.home-configuration-dashboard.home-planning-summary {
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.home-planning-summary-list,
.planning-overview-list {
  display: grid;
  gap: 8px;
}

.home-planning-summary-list > div,
.planning-overview-list > button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
}

.home-planning-summary-list > div { grid-template-columns: 36px minmax(0, 1fr); }
.home-planning-summary-list > div > span,
.planning-overview-list > button > span:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--purple-soft);
  color: var(--brand-highlight);
}

.home-planning-summary-list p,
.planning-overview-list button > span:nth-child(2) { display: grid; min-width: 0; gap: 2px; margin: 0; }
.home-planning-summary-list strong,
.planning-overview-list strong { color: var(--ink); font-size: 11px; }
.home-planning-summary-list small,
.planning-overview-list small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.planning-overview-list button { width: 100%; cursor: pointer; }
.planning-overview-list button:hover { border-color: rgba(255, 120, 0, .48); }
.planning-overview-list em { color: var(--brand-highlight); font-size: 10px; font-style: normal; font-weight: 800; }

.onboarding-derived-costs,
.onboarding-cost-list,
.onboarding-review-grid {
  display: grid;
  gap: 8px;
}

.onboarding-derived-costs {
  border: 1px solid rgba(255, 120, 0, .24);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 120, 0, .06);
}

.onboarding-derived-costs > strong { color: var(--ink); font-size: 12px; }
.onboarding-derived-costs > span { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.onboarding-derived-costs b { color: var(--muted-strong); }
.onboarding-add-cost { width: 100%; }
.onboarding-cost-list > p { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.onboarding-cost-list article,
.onboarding-review-grid article {
  display: grid;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: var(--panel-soft);
}

.onboarding-cost-list article { grid-template-columns: minmax(0, 1fr) auto 30px; }
.onboarding-cost-list article > div,
.onboarding-review-grid article > div { display: grid; min-width: 0; gap: 3px; }
.onboarding-cost-list strong,
.onboarding-review-grid small { color: var(--muted); font-size: 10px; }
.onboarding-cost-list small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.onboarding-cost-list b { color: var(--ink); font-size: 11px; }
.onboarding-cost-list button { width: 30px; height: 30px; border: 0; border-radius: 9px; background: rgba(255, 80, 80, .1); color: #ff7575; font-size: 18px; }

.onboarding-copilot-editor { display: grid; gap: 12px; }
.onboarding-copilot-editor .copilot-criteria-step { gap: 12px; padding: 13px; background: var(--surface-2); }
.onboarding-copilot-editor .copilot-criteria-mode { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.onboarding-copilot-editor .copilot-choice { min-height: 70px; align-content: center; }
.onboarding-copilot-editor .copilot-criteria-scale { position: relative; display: grid; grid-template-rows: 6px auto; gap: 8px; padding: 10px 10px 4px; }
.onboarding-copilot-editor .copilot-criteria-scale > div { display: flex; grid-row: 2; justify-content: space-between; padding: 0 2px; font-size: 10px; font-weight: 800; }
.onboarding-copilot-editor .copilot-criteria-scale > div span:nth-child(1) { color: #ff4b4b; }
.onboarding-copilot-editor .copilot-criteria-scale > div span:nth-child(2) { color: #f5b82e; }
.onboarding-copilot-editor .copilot-criteria-scale > div span:nth-child(3) { color: #36d47d; }
.onboarding-copilot-editor .copilot-criteria-scale .copilot-threshold-track { display: block; grid-row: 1; height: 6px; padding: 0; border-radius: 999px; background: linear-gradient(90deg, #ff4545 0 var(--attention-position, 42%), #f5b82e var(--attention-position, 42%) var(--target-position, 66%), #36d47d var(--target-position, 66%) 100%); }
.onboarding-copilot-editor .copilot-criteria-scale .copilot-threshold-range { position: absolute; z-index: 2; top: 0; right: 10px; bottom: auto; left: 10px; width: calc(100% - 20px); min-height: 0 !important; height: 24px !important; margin: 0; padding: 0 !important; appearance: none; border: 0 !important; outline: 0; box-shadow: none !important; pointer-events: none; background: transparent !important; }
.onboarding-copilot-editor .copilot-threshold-values input { min-height: 43px; }
.onboarding-copilot-bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.onboarding-copilot-bands article { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 13px; padding: 10px; background: var(--panel-soft); }
.onboarding-copilot-bands strong { font-size: 11px; }
.onboarding-copilot-bands small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.onboarding-copilot-bands .is-bad { border-color: rgba(255, 80, 80, .35); }
.onboarding-copilot-bands .is-bad strong { color: #ff7575; }
.onboarding-copilot-bands .is-attention { border-color: rgba(255, 170, 42, .35); }
.onboarding-copilot-bands .is-attention strong { color: #ffb347; }
.onboarding-copilot-bands .is-good { border-color: rgba(54, 212, 125, .35); }
.onboarding-copilot-bands .is-good strong { color: var(--green); }

.onboarding-review-grid article { grid-template-columns: minmax(0, 1fr) auto; }
.onboarding-review-grid strong { color: var(--ink); font-size: 11px; line-height: 1.4; }
.onboarding-review-grid button { border: 1px solid rgba(255, 120, 0, .34); border-radius: 10px; padding: 7px 9px; background: rgba(255, 120, 0, .08); color: var(--brand-highlight); font-size: 10px; font-weight: 800; }

@media (max-width: 560px) {
  .onboarding-copilot-editor .copilot-criteria-mode { grid-template-columns: 1fr; }
  .onboarding-copilot-editor .copilot-threshold-values { grid-template-columns: 1fr; }
  .onboarding-copilot-bands { grid-template-columns: 1fr; }
}

.home-planning-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--brand-highlight);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 520px) {
  .onboarding-header { gap: 10px; }
  .onboarding-header-actions { gap: 7px; }
  .onboarding-weekdays > div { gap: 4px; }
  .onboarding-weekdays span { min-height: 38px; border-radius: 10px; font-size: 9px; }
  .onboarding-routine-preview { grid-template-columns: 1fr; }
  .onboarding-routine-preview strong { grid-column: auto; }
  .home-today-plan, .home-planning-summary { padding: 15px; border-radius: 18px; }
  .home-today-plan-values { grid-template-columns: 1fr; }
}

/*
 * Planejamento — composição de referência
 *
 * A imagem de referência organiza primeiro a rotina (dias e resumo), depois
 * os campos operacionais e, por fim, as metas. Esta camada só altera a
 * apresentação dos mesmos controles existentes; os IDs, eventos e cálculos
 * permanecem os atuais para não criar um segundo sistema de planejamento.
 */
#settings-modal.is-profile-detail {
  padding-inline: clamp(14px, 4vw, 24px);
  background:
    radial-gradient(circle at 16% -80px, rgba(255, 120, 0, .09), transparent 260px),
    var(--bg);
}

#settings-modal.is-profile-detail > .profile-modal {
  width: min(100%, 700px);
  gap: 14px;
  padding: 18px 0 calc(34px + env(safe-area-inset-bottom));
}

#profile-detail-view {
  gap: 14px;
}

#profile-detail-view > #profile-detail-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 7vw, 40px);
  letter-spacing: -.055em;
}

#profile-detail-view > #profile-detail-intro {
  display: block;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

#profile-detail-view[data-section="planning"] > #profile-detail-intro,
#profile-detail-view[data-section="goals"] > #profile-detail-intro {
  max-width: 520px;
}

#profile-detail-view > .profile-back {
  min-height: 38px;
  border-color: rgba(255, 120, 0, .28);
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255, 120, 0, .06);
  color: var(--brand-highlight);
}

#profile-detail-view > .profile-back:hover,
#profile-detail-view > .profile-back:focus-visible {
  border-color: var(--brand-highlight);
  background: rgba(255, 120, 0, .12);
  color: var(--ink);
  outline: none;
}

/* Dias e operação: o card de dias vem antes dos campos de operação. */
#profile-section-planning #profile-planning-target {
  display: grid;
  gap: 16px;
}

#profile-section-planning #planning-calendar-panel {
  order: -2;
  margin: 0;
  border-color: rgba(255, 255, 255, .13);
  border-radius: 22px;
  padding: 18px 16px 16px;
  background: linear-gradient(145deg, #141416, #0f0f10 78%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

#profile-section-planning #planning-calendar-panel .planning-calendar-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

#profile-section-planning #planning-calendar-panel .planning-calendar-intro > strong,
#profile-section-planning #planning-calendar-panel .planning-calendar-intro > small {
  grid-column: 2;
}

#profile-section-planning #planning-calendar-panel .planning-calendar-intro > .planning-card-heading-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}

#profile-section-planning #planning-calendar-panel .planning-card-heading-icon,
#profile-section-planning #planning-calendar-panel .planning-summary-icon {
  display: grid;
  place-items: center;
  color: var(--brand-highlight);
}

#profile-section-planning #planning-calendar-panel .planning-card-heading-icon {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 120, 0, .4);
  border-radius: 12px;
  background: rgba(255, 120, 0, .1);
  --ph-size: 21px;
}

#profile-section-planning #planning-calendar-panel .planning-calendar-intro strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -.03em;
}

#profile-section-planning #planning-calendar-panel .planning-calendar-intro small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

#profile-section-planning #planning-calendar-panel .planning-weekday-selector {
  gap: 7px;
  margin-top: 0;
}

#profile-section-planning #planning-calendar-panel .planning-weekday-selector button {
  min-height: 44px;
  border-radius: 13px;
  background: #19191b;
  color: #bdbab5;
  font-size: 11px;
}

#profile-section-planning #planning-calendar-panel .planning-weekday-selector button.is-selected,
#profile-section-planning #planning-calendar-panel .planning-weekday-selector button[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, #ff9a24, #ff7600);
  color: #160a01;
  box-shadow: 0 8px 18px rgba(255, 120, 0, .2);
}

#profile-section-planning #planning-calendar-panel .planning-calendar-detail-actions {
  display: grid;
  gap: 0;
  margin-top: 16px;
}

#profile-section-planning #planning-calendar-panel .planning-calendar-toggle {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--brand-highlight);
  border-radius: 13px;
  background: linear-gradient(135deg, #ff9a24, #ff7600);
  color: #160a01;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(255, 120, 0, .16);
}

#profile-section-planning #planning-calendar-panel .planning-calendar-toggle:hover,
#profile-section-planning #planning-calendar-panel .planning-calendar-toggle:focus-visible {
  filter: brightness(1.06);
  outline: 2px solid rgba(255, 154, 36, .32);
  outline-offset: 2px;
}

#profile-section-planning #planning-calendar-panel .planning-calendar-detail-hint {
  display: none;
}

#profile-section-planning #planning-calendar-panel .planning-hours-summary {
  gap: 8px;
  margin-top: 16px;
}

#profile-section-planning #planning-calendar-panel .planning-hours-summary article {
  min-height: 92px;
  align-content: start;
  justify-items: start;
  gap: 4px;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 11px 10px;
  background: #18181a;
  text-align: left;
}

#profile-section-planning #planning-calendar-panel .planning-hours-summary .planning-summary-icon {
  width: 23px;
  height: 23px;
  --ph-size: 17px;
  color: #bbb8b3;
}

#profile-section-planning #planning-calendar-panel .planning-hours-summary small {
  color: #9d9a95;
  font-size: 9px;
  letter-spacing: .02em;
}

#profile-section-planning #planning-calendar-panel .planning-hours-summary strong {
  color: var(--brand-highlight);
  font-size: 19px;
}

#profile-section-planning #planning-calendar-panel .planning-hours-summary article:nth-child(2) strong {
  color: var(--ink);
}

#profile-section-planning #planning-calendar-panel .planning-hours-summary span:last-child {
  color: var(--muted);
  font-size: 9px;
  white-space: normal;
}

/* Cartão de campos: cada valor tem uma identificação visual própria. */
#profile-section-planning #profile-planning-target > .planning-section {
  order: 0;
  gap: 14px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px;
  padding: 18px 16px 16px;
  background: linear-gradient(145deg, #141416, #0f0f10 78%);
}

#profile-section-planning .planning-operation-heading {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}

#profile-section-planning .planning-operation-heading h3 {
  font-size: 18px;
  letter-spacing: -.03em;
}

#profile-section-planning .planning-operation-heading p {
  color: var(--muted);
  font-size: 11px;
}

#profile-section-planning .planning-operation-heading .field-hint {
  margin-top: 2px;
  font-size: 10px;
}

#profile-section-planning .planning-operation-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#profile-section-planning .planning-operation-fields > .planning-operation-field {
  display: grid;
  grid-template-rows: minmax(38px, auto) 52px;
  gap: 9px;
  min-width: 0;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 15px;
  padding: 11px;
  background: #18181a;
  color: var(--muted-strong);
}

#profile-section-planning .planning-operation-field .planning-operation-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: var(--muted-strong);
  font-size: 10px;
  line-height: 1.25;
}

#profile-section-planning .planning-operation-field .planning-operation-label::before {
  content: '';
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 120, 0, .32);
  border-radius: 9px;
  background-color: rgba(255, 120, 0, .08);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  color: var(--brand-highlight);
}

#profile-section-planning .planning-operation-field:has(#planning-fuel-price) .planning-operation-label::before {
  background-image: url('assets/icons/phosphor/regular/wallet.svg');
}

#profile-section-planning .planning-operation-field:has(#planning-daily-km) .planning-operation-label::before {
  background-image: url('assets/icons/phosphor/regular/road-horizon.svg');
}

#profile-section-planning .planning-operation-field:has(#planning-daily-hours) .planning-operation-label::before,
#profile-section-planning .planning-operation-field:has(#planning-work-start-time) .planning-operation-label::before {
  background-image: url('assets/icons/phosphor/regular/clock.svg');
}

#profile-section-planning .planning-operation-field .planning-field-icon {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 120, 0, .32);
  border-radius: 9px;
  background: rgba(255, 120, 0, .08);
  color: var(--brand-highlight);
  --ph-size: 16px;
}

#profile-section-planning .planning-operation-field .planning-operation-label small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

#profile-section-planning .planning-operation-field input {
  min-height: 52px;
  height: 52px;
  margin: 0;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: #101012;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

#profile-section-planning .planning-operation-field input:focus {
  border-color: var(--brand-highlight);
  box-shadow: 0 0 0 3px rgba(255, 120, 0, .12);
}

/* Metas: cartões independentes, preenchimento alto e projeção legível. */
#profile-section-goals #profile-goals-target {
  display: grid;
  gap: 16px;
}

#profile-section-goals .planning-goals-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  border: 0;
  padding: 0;
}

#profile-section-goals .planning-goals-section > .planning-goal-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border-color: rgba(255, 255, 255, .12);
  border-radius: 22px;
  padding: 17px 16px 16px;
  background: linear-gradient(145deg, #141416, #0f0f10 78%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

#profile-section-goals .planning-goal-card-heading {
  align-items: center;
  gap: 11px;
  padding: 0;
  border: 0;
}

#profile-section-goals .planning-goal-card-heading > .planning-goal-card-icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 120, 0, .38);
  border-radius: 12px;
  background: rgba(255, 120, 0, .1);
  color: var(--brand-highlight);
  --ph-size: 21px;
}

#profile-section-goals .planning-goal-card-heading > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#profile-section-goals .planning-goal-card-heading h4 {
  font-size: 18px;
  letter-spacing: -.03em;
}

#profile-section-goals .planning-goal-card-heading small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

#profile-section-goals .planning-goal-card .goal-choice-group {
  gap: 0;
}

#profile-section-goals .planning-goal-card .goal-choice-label {
  display: none;
}

#profile-section-goals .planning-goal-card .goal-choice-buttons {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 13px;
  background: #18181a;
}

#profile-section-goals .planning-goal-card .goal-choice-buttons button {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted-strong);
  font-size: 12px;
}

#profile-section-goals .planning-goal-card .goal-choice-buttons button + button {
  border-left: 1px solid rgba(255, 255, 255, .1);
}

#profile-section-goals .planning-goal-card .goal-choice-buttons button.is-active,
#profile-section-goals .planning-goal-card .goal-choice-buttons button[aria-checked="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, #ff9a24, #ff7600);
  color: #160a01;
  box-shadow: none;
}

#profile-section-goals .planning-goal-card .planning-goals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

#profile-section-goals .planning-goal-card .planning-goals label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 800;
}

#profile-section-goals .planning-goal-card .planning-goals input {
  min-height: 56px;
  height: 56px;
  margin: 0;
  border-color: rgba(255, 255, 255, .11);
  border-radius: 13px;
  background: #101012;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

#profile-section-goals .planning-goal-card .planning-goals input:focus {
  border-color: var(--brand-highlight);
  box-shadow: 0 0 0 3px rgba(255, 120, 0, .12);
}

#profile-section-goals .planning-goal-card .goal-derived-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 11px;
}

#profile-section-goals .planning-goal-card .goal-derived-summary span {
  min-width: 0;
  border-left: 0;
  padding: 0;
  color: var(--muted);
  font-size: 10px;
}

#profile-section-goals .planning-goal-card .goal-derived-summary span:first-child {
  grid-column: 1 / -1;
  color: var(--brand-highlight);
  font-size: 11px;
  font-weight: 800;
}

#profile-section-goals .planning-goal-card .goal-derived-summary span:nth-child(2) {
  color: var(--green);
}

#profile-section-goals .planning-goal-card .goal-derived-summary .text-button {
  grid-column: 1 / -1;
  justify-self: start;
}

#profile-section-goals .planning-expected-result {
  gap: 13px;
  border-color: rgba(255, 120, 0, .28);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(36, 23, 13, .96), rgba(20, 16, 12, .96));
}

#profile-section-goals .planning-expected-result-heading h3 {
  font-size: 18px;
}

#profile-section-goals .planning-expected-result-grid {
  gap: 8px;
}

#profile-section-goals .planning-expected-result-grid article {
  border-color: rgba(255, 255, 255, .09);
  border-radius: 13px;
  padding: 11px;
  background: rgba(15, 13, 11, .62);
}

#profile-section-goals .planning-expected-result-grid strong {
  font-size: 17px;
}

/* Ação fixa da referência: sempre alcançável ao fim dos formulários longos. */
#profile-detail-actions.is-available {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 2px -2px -12px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 12px 2px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10, 10, 11, .05), rgba(10, 10, 11, .96) 28%);
  backdrop-filter: blur(12px);
}

#profile-detail-actions.is-available .profile-save-feedback {
  min-height: 16px;
  text-align: center;
  font-size: 10px;
}

#profile-detail-actions.is-available .primary-action {
  width: 100%;
  min-height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff9a24, #ff7600);
  color: #160a01;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(255, 120, 0, .2);
}

#profile-detail-actions.is-available .primary-action:disabled {
  background: #26211c;
  color: #a09992;
  box-shadow: none;
}

@media (max-width: 560px) {
  #settings-modal.is-profile-detail > .profile-modal {
    padding-top: 15px;
  }

  #profile-section-planning #planning-calendar-panel,
  #profile-section-planning #profile-planning-target > .planning-section,
  #profile-section-goals .planning-goals-section > .planning-goal-card,
  #profile-section-goals .planning-expected-result {
    border-radius: 18px;
  }

  #profile-section-planning #planning-calendar-panel {
    padding: 15px 13px 13px;
  }

  #profile-section-planning #planning-calendar-panel .planning-weekday-selector {
    gap: 5px;
  }

  #profile-section-planning #planning-calendar-panel .planning-weekday-selector button {
    min-height: 42px;
    padding-inline: 3px;
    font-size: 10px;
  }

  #profile-section-planning #planning-calendar-panel .planning-hours-summary {
    gap: 6px;
  }

  #profile-section-planning #planning-calendar-panel .planning-hours-summary article {
    min-height: 86px;
    padding: 9px 8px;
  }

  #profile-section-planning #planning-calendar-panel .planning-hours-summary strong {
    font-size: 16px;
  }

  #profile-section-planning #profile-planning-target > .planning-section,
  #profile-section-goals .planning-goals-section > .planning-goal-card {
    padding: 15px 13px 13px;
  }

  #profile-section-planning .planning-operation-fields {
    gap: 8px;
  }

  #profile-section-planning .planning-operation-fields > .planning-operation-field {
    grid-template-rows: minmax(36px, auto) 50px;
    gap: 7px;
    padding: 9px;
  }

  #profile-section-planning .planning-operation-field input {
    min-height: 50px;
    height: 50px;
    font-size: 15px;
  }

  #profile-section-planning .planning-operation-field .planning-field-icon {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
    --ph-size: 14px;
  }

  #profile-section-goals .planning-goal-card-heading h4 {
    font-size: 17px;
  }

  #profile-section-goals .planning-goal-card .planning-goals input {
    min-height: 53px;
    height: 53px;
    font-size: 18px;
  }

  #profile-section-goals .planning-expected-result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  #profile-section-planning #planning-calendar-panel .planning-hours-summary small {
    font-size: 8px;
  }

  #profile-section-planning #planning-calendar-panel .planning-hours-summary span:last-child {
    font-size: 8px;
  }
}

/* Ajustes finais de contraste e organização do planejamento. */
#profile-section-planning .planning-operation-field .planning-operation-label::before {
  background-image: none !important;
  background-color: var(--brand-highlight);
}

#profile-section-planning .planning-operation-field:has(#planning-fuel-price) .planning-operation-label::before {
  -webkit-mask: url('assets/icons/phosphor/regular/wallet.svg') center / 16px 16px no-repeat;
  mask: url('assets/icons/phosphor/regular/wallet.svg') center / 16px 16px no-repeat;
}

#profile-section-planning .planning-operation-field:has(#planning-daily-km) .planning-operation-label::before {
  -webkit-mask: url('assets/icons/phosphor/regular/road-horizon.svg') center / 16px 16px no-repeat;
  mask: url('assets/icons/phosphor/regular/road-horizon.svg') center / 16px 16px no-repeat;
}

#profile-section-planning .planning-operation-field:has(#planning-daily-hours) .planning-operation-label::before {
  -webkit-mask: url('assets/icons/phosphor/regular/clock.svg') center / 16px 16px no-repeat;
  mask: url('assets/icons/phosphor/regular/clock.svg') center / 16px 16px no-repeat;
}

#planning-work-start-time-field[hidden] {
  display: none !important;
}

#profile-section-planning #planning-calendar-panel .planning-weekday-selector button.is-selected,
#profile-section-planning #planning-calendar-panel .planning-weekday-selector button[aria-pressed="true"],
#profile-section-planning #planning-calendar-panel .planning-calendar-toggle,
#profile-section-goals .planning-goal-card .goal-choice-buttons button.is-active,
#profile-section-goals .planning-goal-card .goal-choice-buttons button[aria-checked="true"],
#profile-detail-actions.is-available .primary-action {
  color: #fff;
}

#profile-section-planning #planning-calendar-panel .planning-hours-summary article:nth-child(2) strong {
  color: var(--brand-highlight);
}

#profile-section-planning #planning-calendar-panel .planning-hours-summary span:last-child {
  color: #aaa6a1;
}

#profile-section-planning .planning-operation-field input[type="time"] {
  color-scheme: dark;
}

#profile-section-planning .planning-operation-field input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(63%) sepia(95%) saturate(1974%) hue-rotate(359deg) brightness(103%) contrast(101%);
  opacity: .95;
}

/*
 * Hierarquia global: remover apenas títulos duplicados.
 *
 * Textos que ensinam uma ação ou explicam um cálculo continuam visíveis;
 * neste dashboard cada card fica com uma única identificação principal.
 */
body.title-only-ui .home-configuration-dashboard-heading > div > .eyebrow,
body.title-only-ui .home-configuration-card-heading > div > .eyebrow {
  display: none !important;
}

body.title-only-ui .home-configuration-dashboard-heading h2,
body.title-only-ui .home-configuration-card-heading h3 {
  margin-top: 0;
}

/* Home: faixa clara de boas-vindas e card informativo de plano. */
#copilot-modal,
#copilot-modal > .copilot-modal {
  background: #151719;
}

#copilot-menu-view .home-welcome-header {
  display: grid;
  gap: 8px;
  margin: calc(-1 * clamp(18px, 4vw, 28px)) calc(-1 * clamp(14px, 4vw, 24px)) 0;
  border-radius: 0 0 38px 38px;
  padding: clamp(22px, 5vw, 34px) clamp(24px, 6vw, 38px) 76px;
  background: #f4f1eb;
  color: #17202a;
}

#copilot-menu-view .home-welcome-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: clamp(24px, 6vw, 42px);
}

#copilot-menu-view .home-welcome-wordmark {
  display: inline-flex;
  align-items: baseline;
  color: #17202a;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.055em;
}

#copilot-menu-view .home-welcome-wordmark strong {
  color: #f27b12;
  font-weight: 800;
}

#copilot-menu-view .home-welcome-profile {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(23, 32, 42, .16);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, .38);
  color: #17202a;
  cursor: pointer;
}

#copilot-menu-view .home-welcome-profile:hover,
#copilot-menu-view .home-welcome-profile:focus-visible {
  border-color: rgba(23, 32, 42, .34);
  background: #fff;
}

#copilot-menu-view .home-welcome-profile [data-icon] { --ph-size: 20px; }

#copilot-menu-view .home-welcome-header h2 {
  margin: 0;
  color: #17202a;
  font-size: clamp(27px, 7vw, 36px);
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: 1.08;
}

#copilot-menu-view .home-welcome-header p {
  margin: 0;
  color: #66717d;
  font-size: 14px;
  line-height: 1.35;
}

#copilot-menu-view .home-plan-banner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 116px;
  margin: -58px clamp(14px, 4vw, 24px) 0;
  border: 1px solid #3a424a;
  border-radius: 18px;
  padding: 17px 18px;
  background: linear-gradient(145deg, #242a30, #1b1f23);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .06);
}

#copilot-menu-view .home-plan-banner-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 154, 36, .42);
  border-radius: 12px;
  background: rgba(255, 120, 0, .12);
  color: var(--brand-highlight);
  --ph-size: 19px;
}

#copilot-menu-view .home-plan-banner-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

#copilot-menu-view .home-plan-banner-eyebrow {
  color: #b2bbc2;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.1;
  text-transform: uppercase;
}

#copilot-menu-view .home-plan-banner-copy strong {
  overflow: hidden;
  color: #f7f7f5;
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copilot-menu-view .home-plan-banner-copy p {
  margin: 0;
  color: #c0c4c8;
  font-size: 10px;
  line-height: 1.4;
}

#copilot-menu-view .home-plan-banner-link {
  min-height: 32px;
  border: 1px solid rgba(255, 154, 36, .46);
  border-radius: 999px;
  padding: 0 11px;
  background: transparent;
  color: var(--brand-highlight);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

#copilot-menu-view .home-plan-banner-link:hover,
#copilot-menu-view .home-plan-banner-link:focus-visible {
  border-color: var(--brand-highlight);
  background: rgba(255, 120, 0, .12);
}

#copilot-menu-view .home-plan-banner[data-plan-tone="premium"] {
  border-color: rgba(54, 212, 125, .38);
}

#copilot-menu-view .home-plan-banner[data-plan-tone="premium"] .home-plan-banner-icon {
  border-color: rgba(54, 212, 125, .42);
  background: rgba(54, 212, 125, .1);
  color: var(--green);
}

@media (max-width: 560px) {
  #copilot-menu-view .home-welcome-header {
    border-radius: 0 0 32px 32px;
    padding-bottom: 70px;
  }

  #copilot-menu-view .home-plan-banner {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 108px;
    padding: 15px;
  }

  #copilot-menu-view .home-plan-banner-link {
    grid-column: 2;
    justify-self: start;
  }
}

/* Home: plano diário em destaque e configurações resumidas por KPI. */
#copilot-menu-view .home-daily-plan-banner {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 132px;
}

#copilot-menu-view .home-daily-plan-banner .home-plan-banner-icon {
  align-self: start;
  margin-top: 2px;
}

#copilot-menu-view .home-daily-plan-banner .home-plan-banner-copy {
  gap: 6px;
}

#copilot-menu-view .home-daily-plan-banner .home-plan-banner-copy > strong {
  font-size: 18px;
}

#copilot-menu-view .home-plan-banner-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 4px;
}

#copilot-menu-view .home-plan-banner-metric {
  display: grid;
  min-width: 0;
  gap: 2px;
  border-left: 1px solid rgba(255, 255, 255, .12);
  padding-left: 8px;
}

#copilot-menu-view .home-plan-banner-metric:first-child {
  border-left: 0;
  padding-left: 0;
}

#copilot-menu-view .home-plan-banner-metric b {
  overflow: hidden;
  color: var(--brand-highlight);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copilot-menu-view .home-plan-banner-metric small {
  overflow: hidden;
  color: #b9bec2;
  font-size: 8px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copilot-menu-view .home-daily-plan-banner .home-plan-banner-detail {
  margin: 2px 0 0;
  color: #b9bec2;
  font-size: 9px;
}

#copilot-menu-view .home-configuration-dashboard {
  gap: 14px;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 20px;
}

#copilot-menu-view .home-configuration-dashboard-intro,
#copilot-menu-view .home-configuration-dashboard-badge {
  display: none;
}

#copilot-menu-view .home-configuration-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#copilot-menu-view .home-configuration-card {
  min-height: 184px;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  border-radius: 16px;
  padding: 13px;
}

#copilot-menu-view .home-configuration-card-value {
  font-size: 20px;
}

#copilot-menu-view .home-configuration-card-value--text {
  font-size: 16px;
}

#copilot-menu-view .home-configuration-card-kpis,
#copilot-menu-view .home-configuration-card-goal-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: start;
  gap: 8px;
}

#copilot-menu-view .home-configuration-card-kpi,
#copilot-menu-view .home-configuration-card-primary-meta {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 3px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 8px;
}

#copilot-menu-view .home-configuration-card-kpi small,
#copilot-menu-view .home-configuration-card-primary-meta small {
  color: #8f969c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.15;
  text-transform: uppercase;
}

#copilot-menu-view .home-configuration-card-kpi b,
#copilot-menu-view .home-configuration-card-primary-meta b {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#copilot-menu-view .home-configuration-card-primary-meta {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

#copilot-menu-view .home-configuration-card-primary-meta b {
  justify-self: end;
  color: var(--ink);
}

#copilot-menu-view .home-configuration-card-note[hidden],
#copilot-menu-view .home-configuration-card-details[hidden],
#copilot-menu-view .home-configuration-card-list[hidden],
#copilot-menu-view .home-criteria-reference[hidden] {
  display: none !important;
}

#copilot-menu-view .home-configuration-card-detail-button {
  width: 100%;
  justify-self: stretch;
  border-radius: 10px;
  padding: 8px 9px;
  text-align: center;
}

#copilot-menu-view .home-configuration-card[data-home-configuration-card="criteria"] .home-configuration-card-note {
  align-self: start;
}

#copilot-menu-view .home-configuration-card[data-home-configuration-card="criteria"] {
  grid-column: 1 / -1;
  min-height: 0;
}

#copilot-menu-view .home-configuration-card[data-home-configuration-card="criteria"] .home-criteria-reference {
  width: 100%;
}

@media (max-width: 560px) {
  #copilot-menu-view .home-daily-plan-banner {
    min-height: 136px;
  }

  #copilot-menu-view .home-plan-banner-metrics {
    gap: 5px;
  }

  #copilot-menu-view .home-plan-banner-metric b {
    font-size: 13px;
  }

  #copilot-menu-view .home-configuration-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #copilot-menu-view .home-configuration-card {
    min-height: 174px;
    border-radius: 14px;
    padding: 11px;
  }

  #copilot-menu-view .home-configuration-card-heading {
    gap: 7px;
  }

  #copilot-menu-view .home-configuration-card-heading h3 {
    font-size: 12px;
  }

  #copilot-menu-view .home-configuration-card-icon {
    width: 30px;
    height: 30px;
  }

  #copilot-menu-view .home-configuration-card-value {
    font-size: 18px;
  }

  #copilot-menu-view .home-configuration-card-value--text {
    font-size: 14px;
  }

  #copilot-menu-view .home-configuration-card-kpi b,
  #copilot-menu-view .home-configuration-card-primary-meta b {
    font-size: 10px;
  }
}

/* Overrides finais dos cabeçalhos compartilhados. */
.dashboard-topbar {
  display: block !important;
  width: min(100%, 700px);
  margin: 0 auto 12px;
  padding: 0 !important;
}
.dashboard-topbar-surface {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}
.dashboard-topbar-title { color: var(--ink); font-size: 26px; font-weight: 800; letter-spacing: -.055em; line-height: 1; }
.dashboard-topbar-legacy,
.dashboard-topbar-avatar { display: none !important; }
#settings-modal:not(.is-profile-detail) .profile-hero {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 560px;
  margin: 0 0 14px;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
}
#settings-modal:not(.is-profile-detail) .profile-hero-brand { display: none; }
#settings-modal:not(.is-profile-detail) .profile-hero h2 { color: var(--ink); font-size: 30px; letter-spacing: -.055em; line-height: 1; }
@media (max-width: 560px) {
  .dashboard-topbar-surface { min-height: 40px; padding: 0 2px; }
  .dashboard-topbar-title { font-size: 25px; }
  #settings-modal:not(.is-profile-detail) .profile-hero { margin-bottom: 12px; }
  #settings-modal:not(.is-profile-detail) .profile-hero h2 { font-size: 28px; }
}

/* Refinamento visual autorizado: shell grafite alinhado, cabeçalho inicial compacto
   e acentos laranja reservados para ações, marca e texto de destaque. */
.page-screen {
  padding: 0 0 118px;
  background: var(--bg);
}
.page-screen > .modal {
  width: min(100%, 700px);
  min-height: calc(100vh - 126px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px 24px 0 0;
  padding: 24px clamp(16px, 4vw, 24px) 42px;
  background: #151719;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
#copilot-modal,
#planning-modal,
#settings-modal {
  padding-inline: 0;
  background: var(--bg);
}
#copilot-modal > .copilot-modal,
#planning-modal > .planning-modal,
#settings-modal > .profile-modal {
  width: min(100%, 700px);
  margin: 0 auto;
  border-radius: 24px 24px 0 0;
  background: #151719;
}
#copilot-modal > .copilot-modal {
  max-width: 560px;
  padding-inline: clamp(16px, 4vw, 24px);
}

#copilot-menu-view .home-welcome-header {
  position: relative;
  min-height: 0;
  padding: 16px clamp(18px, 5vw, 28px) 52px;
  border-radius: 0 0 30px 30px;
}
#copilot-menu-view .home-welcome-brand-row {
  width: 100%;
  min-height: 36px;
  margin-bottom: 16px;
  padding-right: 48px;
}
#copilot-menu-view .home-welcome-profile {
  position: absolute;
  top: 16px;
  right: clamp(18px, 5vw, 28px);
  width: 36px;
  height: 36px;
}
#copilot-menu-view .home-plan-banner {
  margin: -48px 0 0;
  border-color: var(--line-strong);
}
#copilot-menu-view .home-daily-plan-banner {
  min-height: 124px;
}

#copilot-menu-view .home-configuration-card-grid {
  align-items: stretch;
}
#copilot-menu-view .home-configuration-card {
  height: 174px;
  min-height: 174px;
  border-color: var(--line) !important;
  background: linear-gradient(145deg, #1b1d20, #151719);
}
#copilot-menu-view .home-configuration-card-icon,
#copilot-menu-view .home-configuration-card-detail-button,
#copilot-menu-view .home-plan-banner-icon,
#copilot-menu-view .home-plan-banner-link {
  border-color: var(--line-strong) !important;
}
#copilot-menu-view .home-configuration-card-detail-button {
  background: rgba(255, 255, 255, .04);
}
#copilot-menu-view .home-configuration-card[data-home-configuration-card="criteria"] {
  height: auto;
  min-height: 280px;
}
#copilot-menu-view .home-criteria-reference {
  min-height: 244px;
  border-color: var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
}
#copilot-menu-view .home-criteria-reference-cell,
#copilot-menu-view .home-criteria-reference-metric {
  min-height: 58px;
  padding: 10px 6px;
  font-size: 11px;
}
#copilot-menu-view .home-criteria-reference-row--header .home-criteria-reference-cell {
  min-height: 48px;
  font-size: 10px;
}
#copilot-menu-view .home-criteria-reference-metric > i {
  width: 24px;
  height: 24px;
  font-size: 12px;
}
#copilot-menu-view .home-criteria-reference-metric > b { font-size: 10px; }
#copilot-menu-view .home-criteria-reference-metric > small { font-size: 8px; }

/* Nenhuma moldura laranja em cards, abas ou escolhas; o estado continua legível
   por fundo, texto, ícone e controles funcionais. */
.period-navigation .period-chip.active,
.camera-primary-tab.is-active,
.context-config-tabs button.active,
.journey-history-period-tabs button.active,
.report-period-tab.active {
  border-color: transparent !important;
  border-bottom-color: var(--line-strong) !important;
}
.period-navigation .period-chip:hover,
.period-navigation .period-chip:focus-visible,
.camera-primary-tab:hover,
.camera-primary-tab:focus-visible,
.context-config-tabs button:hover,
.context-config-tabs button:focus-visible,
.journey-history-period-tabs button:hover,
.journey-history-period-tabs button:focus-visible,
.report-period-tab:hover,
.report-period-tab:focus-visible {
  border-bottom-color: var(--line-strong) !important;
}
#copilot-menu-view .copilot-module-card,
#copilot-menu-view .copilot-home-card,
#copilot-menu-view .copilot-home-card-icon,
#copilot-menu-view .copilot-menu-icon,
#copilot-menu-view .copilot-module-switch,
#copilot-menu-view .copilot-journey-state-icon,
#copilot-menu-view .copilot-journey-config-item,
#copilot-detail-view .copilot-criteria-step,
#copilot-detail-view .journey-collection,
#copilot-detail-view .camera-step,
#copilot-detail-view .camera-cut-section,
#copilot-detail-view .camera-recordings-section,
#copilot-detail-view .camera-choice-card,
#copilot-detail-view .camera-quality-card,
#copilot-detail-view .copilot-choice,
#copilot-detail-view .copilot-toggle,
#copilot-detail-view .camera-step-tab,
#copilot-detail-view .copilot-journey-reference-icon,
#copilot-detail-view .copilot-journey-reference-stage,
#copilot-detail-view .copilot-journey-runtime article,
#copilot-detail-view .copilot-journey-value,
#copilot-detail-view .copilot-runtime-strip > [data-icon],
#copilot-section-rules .copilot-criteria-step,
#copilot-section-rules .copilot-goal-guidance,
#copilot-section-rules .copilot-goal-guidance-icon,
#copilot-section-rules .copilot-criteria-step-heading > span,
#copilot-section-rules .copilot-threshold-step,
#planning-modal .planning-section,
#settings-modal .planning-section {
  border-color: var(--line-strong) !important;
}
#copilot-detail-view .camera-choice-card:has(input:checked),
#copilot-detail-view .camera-quality-card:has(input:checked) {
  border-color: var(--line-strong) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12) !important;
}

@media (max-width: 560px) {
  .page-screen { padding: 0 0 112px; }
  .page-screen > .modal,
  #copilot-modal > .copilot-modal,
  #planning-modal > .planning-modal,
  #settings-modal > .profile-modal {
    border-radius: 20px 20px 0 0;
  }
  .page-screen > .modal { min-height: calc(100vh - 118px); }
  #copilot-menu-view .home-welcome-header {
    padding: 14px 18px 48px;
    border-radius: 0 0 28px 28px;
  }
  #copilot-menu-view .home-welcome-brand-row { margin-bottom: 14px; }
  #copilot-menu-view .home-welcome-profile {
    top: 14px;
    right: 18px;
    width: 34px;
    height: 34px;
  }
  #copilot-menu-view .home-plan-banner {
    margin-top: -42px;
  }
  #copilot-menu-view .home-configuration-card {
    height: 174px;
    min-height: 174px;
  }
  #copilot-menu-view .home-configuration-card[data-home-configuration-card="criteria"] {
    min-height: 280px;
  }
  #copilot-menu-view .home-criteria-reference-cell,
  #copilot-menu-view .home-criteria-reference-metric { min-height: 58px; }
}

/* Conta: edição essencial em uma única ação, com o e-mail preservado como
   identificador imutável da conta e do entitlement Premium. */
#settings-modal #profile-section-access .account-panel {
  gap: 14px;
  border-top: 0;
  padding-top: 2px;
}
#settings-modal .account-profile-photo {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 2px 0 6px;
}
#settings-modal .account-avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 138, 0, .2), rgba(255, 255, 255, .07));
  background-position: center;
  background-size: cover;
  color: var(--ink);
  font-size: 30px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
}
#settings-modal .account-avatar.has-image { color: transparent; }
#settings-modal .account-avatar-action,
#settings-modal #claim-purchase-button {
  min-height: 38px;
  border-color: var(--line-strong) !important;
  background: rgba(255, 255, 255, .035);
}
#settings-modal .account-profile-fields {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}
#settings-modal .account-profile-fields label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}
#settings-modal .account-profile-fields input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: var(--ink);
  font-size: 15px;
}
#settings-modal .account-profile-fields input:focus,
#settings-modal .account-profile-fields input:focus-visible {
  border-color: var(--line-strong) !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .08) !important;
}
#settings-modal .account-locked-field {
  position: relative;
}
#settings-modal .account-lock-label {
  justify-self: end;
  margin: -22px 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}
#settings-modal .account-locked-field input {
  color: var(--muted);
  background: rgba(255, 255, 255, .06);
  cursor: not-allowed;
}
#settings-modal .account-profile-fields .account-field-hint {
  margin: -6px 0 0;
  color: var(--muted) !important;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}
#settings-modal .account-profile-fields #account-verification {
  margin-top: -5px;
  color: var(--green) !important;
}
#settings-modal .account-profile-save {
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
}
#settings-modal #account-name-feedback {
  min-height: 16px;
  margin: -4px 0 0;
  color: var(--green);
  font-size: 12px;
}
#settings-modal #account-name-feedback.error { color: var(--red); }
#settings-modal .account-plan-badge {
  border-color: var(--line-strong) !important;
}
#settings-modal .account-plan-badge.is-premium {
  border-color: var(--line-strong) !important;
}
#settings-modal .profile-back {
  border-color: var(--line-strong) !important;
}
@media (max-width: 560px) {
  #settings-modal .account-avatar { width: 80px; height: 80px; }
  #settings-modal .account-profile-fields input { min-height: 46px; }
}

/*
 * Contrato de superfícies 2026-08-20.
 * O fundo dark é o canvas; o grafite é uma única superfície de conteúdo,
 * sempre centralizada e afastada do canvas. Nenhum título ou controle pode
 * criar uma faixa própria ou encostar na borda da superfície.
 */
:root {
  --mk-canvas: #080808;
  --mk-shell: #151719;
  --mk-shell-card: #0f0f0f;
  --mk-shell-border: rgba(255, 255, 255, .10);
  --mk-shell-gutter: 16px;
  --mk-shell-top-gap: 12px;
  --mk-shell-inner-padding: 16px;
  --mk-shell-radius: 18px;
  --mk-bottom-reserve: 72px;
}

body { background: var(--mk-canvas); }

/* Painel: o cabeçalho fica no canvas e o conteúdo inteiro ocupa uma superfície. */
.app-shell {
  background: var(--mk-canvas);
  padding-inline: var(--mk-shell-gutter);
  padding-bottom: calc(var(--mk-bottom-reserve) + env(safe-area-inset-bottom));
}
.app-shell main {
  width: min(100%, 700px);
  margin: var(--mk-shell-top-gap) auto 0;
  padding: var(--mk-shell-inner-padding);
  border: 1px solid var(--mk-shell-border);
  border-radius: var(--mk-shell-radius) !important;
  background: var(--mk-shell);
  box-shadow: none;
}

/* Páginas: sobra dark ao redor; a superfície não toca o viewport nem a navegação. */
.page-screen {
  padding: var(--mk-shell-top-gap) var(--mk-shell-gutter) calc(var(--mk-bottom-reserve) + env(safe-area-inset-bottom));
  background: var(--mk-canvas);
}
#copilot-modal,
#planning-modal,
#planning-detail-modal,
#transactions-modal,
#settings-modal {
  padding-inline: var(--mk-shell-gutter);
}
.page-screen > .modal,
#copilot-modal > .copilot-modal,
#planning-modal > .planning-modal,
#planning-detail-modal > .planning-detail-view,
#transactions-modal > .transaction-modal,
#settings-modal > .profile-modal {
  width: 100%;
  max-width: 700px;
  min-height: calc(100vh - var(--mk-shell-top-gap) - var(--mk-bottom-reserve));
  margin: 0 auto;
  overflow: visible;
  border: 1px solid var(--mk-shell-border);
  border-radius: var(--mk-shell-radius) !important;
  padding: var(--mk-shell-inner-padding) var(--mk-shell-inner-padding) 32px;
  background: var(--mk-shell);
  box-shadow: none;
}

/* O herói claro é conteúdo especial, não uma segunda superfície desalinhada. */
#copilot-menu-view .home-welcome-header {
  margin: 0;
  border-radius: 14px;
}
#settings-modal:not(.is-profile-detail) .profile-hero {
  width: 100%;
  max-width: none;
  margin: 0 0 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
#settings-modal.is-profile-detail > .profile-modal {
  min-height: calc(100vh - var(--mk-shell-top-gap) - var(--mk-bottom-reserve));
  padding: var(--mk-shell-inner-padding) var(--mk-shell-inner-padding) 32px;
  border: 1px solid var(--mk-shell-border);
  border-radius: var(--mk-shell-radius) !important;
  background: var(--mk-shell);
  box-shadow: none;
}
#settings-modal.is-profile-detail {
  padding-inline: var(--mk-shell-gutter);
}

@media (max-width: 560px) {
  :root {
    --mk-shell-gutter: 16px;
    --mk-shell-inner-padding: 16px;
    --mk-shell-radius: 16px;
    --mk-bottom-reserve: 72px;
  }

  .app-shell main {
    margin-top: 10px;
    padding: 16px;
  }

  .page-screen {
    padding-top: 12px;
    padding-bottom: calc(var(--mk-bottom-reserve) + env(safe-area-inset-bottom));
  }

  .page-screen > .modal,
  #copilot-modal > .copilot-modal,
  #planning-modal > .planning-modal,
  #planning-detail-modal > .planning-detail-view,
  #transactions-modal > .transaction-modal,
  #settings-modal > .profile-modal {
    min-height: calc(100vh - var(--mk-shell-top-gap) - var(--mk-bottom-reserve));
    padding: 16px 16px 28px;
    border-radius: var(--mk-shell-radius) !important;
  }

  #copilot-menu-view .home-welcome-header {
    border-radius: 13px;
  }

  #settings-modal.is-profile-detail > .profile-modal {
    min-height: calc(100vh - var(--mk-shell-top-gap) - var(--mk-bottom-reserve));
    padding: 16px 16px 28px;
    border-radius: var(--mk-shell-radius) !important;
  }
}

@media (min-width: 561px) {
  :root {
    --mk-shell-gutter: 24px;
    --mk-shell-inner-padding: 20px;
  }
}

/*
 * Legibilidade e toque 2026-08-20.
 * A interface mantém a mesma hierarquia e o mesmo container grafite; esta
 * camada só aumenta a escala dos textos funcionais, os alvos de toque e o
 * respiro entre blocos. Conteúdo secundário continua menor que o principal,
 * mas não cai abaixo de uma leitura confortável em telas de telefone.
 */
:root {
  --mk-readable-body: 16px;
  --mk-readable-label: 14px;
  --mk-readable-caption: 13px;
  --mk-readable-control: 50px;
  --mk-readable-touch: 46px;
}

/* Tipografia base das áreas autenticadas. */
.app-shell main,
.page-screen > .modal {
  font-size: var(--mk-readable-body);
}

.app-shell .topbar-subtitle,
.page-screen > .modal .modal-intro {
  font-size: 15px;
  line-height: 1.5;
}

/* Painel: KPIs e filtros deixam de depender de microtexto. */
.app-shell main .period-chip,
.app-shell main .calendar-button {
  min-height: var(--mk-readable-touch);
  padding: 10px 16px;
  font-size: 14px;
}
.app-shell main .period-navigation .period-chip {
  min-height: var(--mk-readable-touch);
  font-size: 14px;
}
.app-shell main .period-arrow {
  width: var(--mk-readable-touch);
  height: var(--mk-readable-touch);
}
.app-shell main .period-date-trigger { font-size: 18px; }
.app-shell main .financial-label { font-size: 13px; }
.app-shell main .primary-financial-card small,
.app-shell main .financial-context,
.app-shell main .secondary-metric small { font-size: 12px; }
.app-shell main .secondary-metric strong { font-size: 18px; }

/* Ações e tabs: todos os controles importantes têm um alvo confortável. */
.page-screen .primary-action,
.page-screen .secondary-action,
.page-screen .danger-action,
.page-screen .profile-back,
.page-screen .copilot-back,
.page-screen .planning-detail-back,
.page-screen .home-configuration-card-detail-button,
.page-screen .transaction-tab,
.page-screen .camera-step-tab,
.page-screen .goal-choice-buttons button,
.page-screen .planning-weekday-selector button,
.page-screen .mk-field-trigger {
  min-height: var(--mk-readable-touch);
  font-size: 15px;
  line-height: 1.25;
}
.page-screen .primary-action,
.page-screen .secondary-action,
.page-screen .danger-action { padding: 12px 18px; }
.page-screen .profile-back,
.page-screen .copilot-back,
.page-screen .planning-detail-back { padding: 10px 14px; }
.page-screen .context-config-tabs button {
  min-height: var(--mk-readable-touch);
  padding: 10px 12px;
  font-size: 14px;
}
.page-screen .transaction-tab { padding: 10px 12px; }

/* Campos de edição: 16px evita zoom automático e melhora a leitura no Android. */
.page-screen .modal label,
.page-screen .modal legend {
  font-size: var(--mk-readable-label);
  line-height: 1.35;
}
.page-screen .modal .optional-label { font-size: 13px; }
.page-screen .modal input:not([type='checkbox']):not([type='radio']):not([type='range']),
.page-screen .modal select,
.page-screen .modal textarea {
  min-height: var(--mk-readable-control);
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.3;
}
.page-screen .modal textarea { min-height: 112px; }
.page-screen .modal input[type='checkbox'],
.page-screen .modal input[type='radio'] {
  min-height: 22px;
  width: 22px;
  height: 22px;
}
.page-screen .field-hint,
.page-screen .backup-security-note,
.page-screen .profile-save-feedback,
.page-screen .backup-feedback { font-size: var(--mk-readable-caption); line-height: 1.45; }

/* Início: módulos principais, com leitura e toque equivalentes. */
#copilot-menu-view {
  gap: 20px;
  padding-bottom: 24px;
}
#copilot-menu-view .home-welcome-header { gap: 10px; }
#copilot-menu-view .home-welcome-profile {
  width: 44px;
  height: 44px;
}
#copilot-menu-view .home-welcome-profile [data-icon] { --ph-size: 23px; }
#copilot-menu-view .home-welcome-header p { font-size: 16px; }
#copilot-menu-view .home-plan-banner {
  min-height: 146px;
  padding: 19px 20px;
  gap: 14px;
}
#copilot-menu-view .home-plan-banner-icon {
  width: 44px;
  height: 44px;
  --ph-size: 22px;
}
#copilot-menu-view .home-daily-plan-banner .home-plan-banner-copy > strong { font-size: 20px; }
#copilot-menu-view .home-plan-banner-metrics { gap: 10px; }
#copilot-menu-view .home-plan-banner-metric { padding-left: 10px; }
#copilot-menu-view .home-plan-banner-metric b {
  overflow: visible;
  font-size: 15px;
  letter-spacing: -.045em;
  white-space: nowrap;
}
#copilot-menu-view .home-plan-banner-metric small { font-size: 11px; line-height: 1.25; }
#copilot-menu-view .home-daily-plan-banner .home-plan-banner-detail { font-size: 12px; }

#copilot-menu-view .copilot-control-stack { gap: 14px; }
#copilot-menu-view .copilot-control-stack .copilot-module-card {
  min-height: 88px;
  gap: 14px;
  padding: 16px;
}
#copilot-menu-view .copilot-module-main {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
}
#copilot-menu-view .copilot-module-main .copilot-home-card-icon,
#copilot-menu-view .copilot-module-card[data-module-tone] .copilot-home-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  --ph-size: 24px;
}
#copilot-menu-view .copilot-menu-copy { gap: 4px; }
#copilot-menu-view .copilot-menu-copy strong { font-size: 17px; line-height: 1.25; }
#copilot-menu-view .copilot-menu-copy small,
#copilot-menu-view .copilot-card-status { font-size: 13px; line-height: 1.35; }
#copilot-menu-view .copilot-module-controls {
  grid-template-columns: 44px 54px;
  gap: 8px;
}
#copilot-menu-view .copilot-module-config {
  width: 44px;
  height: 44px;
  min-height: 44px;
  --ph-size: 21px;
}
#copilot-menu-view .copilot-module-switch {
  width: 54px;
  height: 32px;
}
#copilot-menu-view .copilot-module-switch i {
  width: 24px;
  height: 24px;
}
#copilot-menu-view .copilot-module-switch[data-state='on'] i { transform: translateX(24px); }
#copilot-menu-view .copilot-home-compact-list { margin-top: 2px; }
#copilot-menu-view .copilot-home-compact-list > .copilot-home-card {
  min-height: 70px;
  padding: 12px 14px;
}
#copilot-menu-view .copilot-home-compact-list .copilot-menu-copy strong { font-size: 16px; }
#copilot-menu-view .copilot-home-compact-list .copilot-menu-copy small { font-size: 13px; }

/* Resumo configurado: mais espaço e KPIs sólidos, sem aumentar a quantidade de informação. */
#copilot-menu-view .home-configuration-dashboard {
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
}
#copilot-menu-view .home-configuration-dashboard-heading h2 { font-size: 26px; }
#copilot-menu-view .home-configuration-card-grid { gap: 14px; }
#copilot-menu-view .home-configuration-card {
  min-height: 208px;
  gap: 12px;
  padding: 16px;
}
#copilot-menu-view .home-configuration-card-heading { gap: 11px; }
#copilot-menu-view .home-configuration-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  --ph-size: 21px;
}
#copilot-menu-view .home-configuration-card-heading h3 { font-size: 16px; }
#copilot-menu-view .home-configuration-card-value { font-size: 24px; }
#copilot-menu-view .home-configuration-card-value--text { font-size: 19px; }
#copilot-menu-view .home-configuration-card-kpis,
#copilot-menu-view .home-configuration-card-goal-values { gap: 10px; }
#copilot-menu-view .home-configuration-card-kpi,
#copilot-menu-view .home-configuration-card-primary-meta { gap: 4px; padding-top: 10px; }
#copilot-menu-view .home-configuration-card-kpi small,
#copilot-menu-view .home-configuration-card-primary-meta small { font-size: 11px; }
#copilot-menu-view .home-configuration-card-kpi b,
#copilot-menu-view .home-configuration-card-primary-meta b { font-size: 14px; }
#copilot-menu-view .home-configuration-card-note { font-size: 13px; line-height: 1.4; }
#copilot-menu-view .home-configuration-card-detail-button {
  min-height: 46px;
  padding: 10px 12px;
  font-size: 13px;
}
#copilot-menu-view .home-configuration-card[data-home-configuration-card='criteria'] {
  min-height: 0;
  padding-bottom: 18px;
}
#copilot-menu-view .home-criteria-reference-cell,
#copilot-menu-view .home-criteria-reference-metric {
  min-height: 62px;
  padding: 9px 6px;
  font-size: 12px;
  line-height: 1.25;
}
#copilot-menu-view .home-criteria-reference-row--header .home-criteria-reference-cell {
  min-height: 48px;
  font-size: 12px;
}
#copilot-menu-view .home-criteria-reference-metric {
  grid-template-columns: 27px minmax(0, 1fr);
  column-gap: 6px;
}
#copilot-menu-view .home-criteria-reference-metric > i {
  width: 25px;
  height: 25px;
  font-size: 13px;
}
#copilot-menu-view .home-criteria-reference-metric > b { font-size: 12px; }
#copilot-menu-view .home-criteria-reference-metric > small { font-size: 10px; }

/* Perfil e planejamento também usam a mesma escala de leitura. */
#settings-modal .profile-menu-item {
  min-height: 68px;
  padding: 15px;
}
#settings-modal .profile-menu-item strong { font-size: 15px; }
#settings-modal .profile-menu-item small { font-size: 13px; }
#settings-modal .profile-menu-icon {
  width: 38px;
  height: 38px;
  --ph-size: 21px;
}
#settings-modal .profile-menu-item > span:last-child { font-size: 24px; }
#settings-modal .profile-section-label { font-size: 12px; }

/* Abaixo de 380px, preservamos o aumento sem comprimir os módulos. */
@media (max-width: 380px) {
  #copilot-menu-view .copilot-control-stack .copilot-module-card {
    min-height: 84px;
    padding: 14px;
  }
  #copilot-menu-view .copilot-module-main {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
  }
  #copilot-menu-view .copilot-module-main .copilot-home-card-icon,
  #copilot-menu-view .copilot-module-card[data-module-tone] .copilot-home-card-icon {
    width: 44px;
    height: 44px;
  }
  #copilot-menu-view .copilot-module-controls { grid-template-columns: 42px 50px; }
  #copilot-menu-view .copilot-module-config { width: 42px; height: 42px; }
  #copilot-menu-view .copilot-module-switch { width: 50px; }
  #copilot-menu-view .copilot-module-switch[data-state='on'] i { transform: translateX(20px); }
  #copilot-menu-view .home-configuration-card { min-height: 200px; padding: 14px; }
}

/* Quebra controlada: números completos são preferíveis a reticências em um KPI. */
#copilot-menu-view .home-plan-banner-metric b,
#copilot-menu-view .home-plan-banner-metric small,
#copilot-menu-view .home-configuration-card-value,
#copilot-menu-view .home-configuration-card-kpi b,
#copilot-menu-view .home-configuration-card-primary-meta b {
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}
#copilot-menu-view .home-configuration-card-detail-button {
  white-space: nowrap;
  font-size: 12px;
}
#copilot-menu-view .home-criteria-reference-metric > b {
  overflow: visible;
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: 11px;
}

/* Em telefones, uma coluna evita que os KPIs sejam partidos no meio. */
@media (max-width: 430px) {
  #copilot-menu-view .home-configuration-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  #copilot-menu-view .home-configuration-card {
    min-height: 198px;
  }
  #copilot-menu-view .home-configuration-card[data-home-configuration-card='criteria'] {
    grid-column: auto;
  }
  #copilot-menu-view .home-configuration-card-value,
  #copilot-menu-view .home-configuration-card-kpi b,
  #copilot-menu-view .home-configuration-card-primary-meta b {
    white-space: nowrap;
    overflow-wrap: normal;
  }
  #copilot-menu-view .home-criteria-reference-row {
    grid-template-columns: minmax(74px, 1.15fr) repeat(3, minmax(0, 1fr));
  }
}

/* O valor do plano cabe em uma única linha; os rótulos abaixo dele podem quebrar. */
#copilot-menu-view .home-plan-banner-metric b {
  overflow: visible;
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: 15px;
  letter-spacing: -.045em;
}

/* A grade de indicadores do painel precisa da mesma escala dos demais cards. */
.app-shell main .financial-overview .secondary-metrics .secondary-metric {
  min-height: 72px;
  padding: 10px 9px;
  gap: 9px;
}
.app-shell main .financial-overview .secondary-metrics .secondary-metric small {
  font-size: 13px;
  line-height: 1.2;
}
.app-shell main .financial-overview .secondary-metrics .secondary-metric strong {
  font-size: 18px;
  line-height: 1.1;
}
.app-shell main .financial-overview .secondary-metrics .secondary-metric .metric-icon {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
  font-size: 13px;
}

/* Detalhes do Copiloto, Jornada e Câmera seguem a mesma escala acessível. */
#copilot-detail-view .copilot-settings-section,
#copilot-detail-view .copilot-criteria-step,
#copilot-detail-view .camera-step,
#copilot-detail-view .camera-cut-section,
#copilot-detail-view .camera-recordings-section {
  gap: 16px;
  padding: 18px;
}
#copilot-detail-view .copilot-choice,
#copilot-detail-view .copilot-criteria-mode .copilot-choice,
#copilot-detail-view .copilot-choice-grid .copilot-choice {
  min-height: 98px;
  padding: 14px 12px;
}
#copilot-detail-view .copilot-choice strong { font-size: 14px; line-height: 1.25; }
#copilot-detail-view .copilot-choice small { font-size: 12px; line-height: 1.4; }
#copilot-detail-view .copilot-criteria-summary {
  padding: 12px 13px;
  font-size: 13px;
  line-height: 1.45;
}
#copilot-detail-view .copilot-toggle {
  min-height: 74px;
  padding: 14px;
}
#copilot-detail-view .copilot-toggle-copy strong { font-size: 14px; }
#copilot-detail-view .copilot-toggle-copy small { font-size: 12px; line-height: 1.35; }
#copilot-detail-view .copilot-toggle-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  --ph-size: 19px;
}
#copilot-detail-view .copilot-toggle-switch {
  width: 44px;
  height: 26px;
  flex-basis: 44px;
}
#copilot-detail-view .copilot-toggle-switch::after {
  width: 18px;
  height: 18px;
}
#copilot-detail-view .copilot-toggle input:checked ~ .copilot-toggle-switch::after { transform: translateX(18px); }
#copilot-detail-view .copilot-criteria-scale > div { font-size: 12px; }
#copilot-detail-view .copilot-threshold-values label { font-size: 13px; }
#copilot-detail-view .copilot-threshold-values input {
  min-height: 50px;
  font-size: 16px;
}
#copilot-detail-view .copilot-threshold-step {
  min-width: 42px;
  min-height: 50px;
  font-size: 20px;
}
#copilot-detail-view .copilot-goal-guidance-heading strong { font-size: 15px; }
#copilot-detail-view .copilot-goal-guidance-heading small,
#copilot-detail-view .copilot-goal-guidance p { font-size: 12px; line-height: 1.45; }
#copilot-detail-view .copilot-goal-guidance-values small { font-size: 11px; }
#copilot-detail-view .copilot-goal-guidance-values strong { font-size: 18px; }
#copilot-detail-view .copilot-goal-guidance-values span { font-size: 12px; }
#copilot-detail-view .camera-step-heading h4,
#copilot-detail-view .camera-cut-section h4 { font-size: 19px; }
#copilot-detail-view .camera-step-heading + small,
#copilot-detail-view .camera-step-heading small,
#copilot-detail-view .camera-quality-note,
#copilot-detail-view .camera-cut-section p { font-size: 13px; line-height: 1.45; }
#copilot-detail-view .camera-choice-card,
#copilot-detail-view .camera-quality-card {
  min-height: 96px;
  padding: 15px;
}
#copilot-detail-view .camera-choice-card strong,
#copilot-detail-view .camera-quality-card strong { font-size: 14px; }
#copilot-detail-view .camera-choice-card small,
#copilot-detail-view .camera-quality-card small,
#copilot-detail-view .camera-quality-card em { font-size: 12px; line-height: 1.4; }
#copilot-detail-view .camera-step-tab {
  min-height: 58px;
  font-size: 14px;
}
#copilot-detail-view .camera-step-tab strong { font-size: 13px; }
#copilot-detail-view .camera-step-tab small { font-size: 11px; }
#copilot-detail-view .copilot-journey-history-item { padding: 16px; }
#copilot-detail-view .copilot-journey-history-weekday { font-size: 11px; }
#copilot-detail-view .copilot-journey-history-month-year,
#copilot-detail-view .copilot-journey-history-time,
#copilot-detail-view .copilot-journey-history-note { font-size: 13px !important; }
#copilot-detail-view .copilot-journey-history-duration > span { font-size: 11px; }
#copilot-detail-view .journey-history-period-tabs button {
  min-height: 46px;
  font-size: 14px;
}

/* Detalhamento de planejamento: valores e rótulos não ficam em escala de nota. */
.page-screen .planning-detail-card h3 { font-size: 19px; }
.page-screen .planning-detail-card dt { font-size: 11px; }
.page-screen .planning-detail-card dd { font-size: 15px; }
.page-screen .planning-detail-card-status,
.page-screen .planning-detail-card-note,
.page-screen .planning-detail-card-list > span,
.page-screen .planning-detail-card-list > small { font-size: 13px; line-height: 1.45; }
.page-screen .planning-detail-card-total { font-size: 24px; }

/*
 * Correções de composição e legibilidade — 2026-08-20.
 * O conteúdo determina a altura dos cards; nenhum CTA pode escapar da borda.
 */
#copilot-menu-view .home-configuration-card:not([data-home-configuration-card='criteria']) {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 232px;
}
#copilot-menu-view .home-configuration-card-detail-button {
  align-self: stretch;
  margin-top: auto;
}

/* As duas entradas de planejamento precisam ser tocáveis e legíveis no Perfil. */
#settings-modal .planning-overview-list {
  gap: 12px;
}
#settings-modal .planning-overview-list > button {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 82px;
  padding: 16px;
  border-radius: 16px;
}
#settings-modal .planning-overview-list > button > span:first-child {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  --ph-size: 25px;
}
#settings-modal .planning-overview-list button > span:nth-child(2) {
  gap: 4px;
}
#settings-modal .planning-overview-list strong { font-size: 16px; line-height: 1.2; }
#settings-modal .planning-overview-list small {
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
}
#settings-modal .planning-overview-list em { font-size: 13px; }

/* Semáforo: a largura reservada para os botões acompanha o botão real. */
.copilot-threshold-values { min-width: 0; }
.copilot-threshold-control {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 8px;
  min-width: 0;
}
.copilot-threshold-control input {
  min-width: 0;
  width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.copilot-threshold-step {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  min-width: 42px;
  place-items: center;
}
@media (max-width: 560px) {
  .copilot-threshold-values {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .copilot-threshold-control {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
  }
  .copilot-threshold-step {
    width: 48px;
    min-width: 48px;
  }
}

/* Câmera: slider com área de toque maior e feedback visual suave. */
#copilot-detail-view .camera-cut-control {
  padding: 12px 6px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}
#copilot-detail-view .camera-cut-control input[type='range'] {
  height: 36px;
  min-height: 36px;
  accent-color: var(--brand-highlight);
}
#copilot-detail-view .camera-cut-control input[type='range']::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 154, 36, .88), rgba(255, 154, 36, .88) var(--camera-cut-progress, 45%), rgba(255, 255, 255, .16) var(--camera-cut-progress, 45%), rgba(255, 255, 255, .16));
}
#copilot-detail-view .camera-cut-control input[type='range']::-moz-range-track {
  height: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
}
#copilot-detail-view .camera-cut-control input[type='range']::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--brand-highlight);
}
#copilot-detail-view .camera-cut-control input[type='range']::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--brand-highlight);
  box-shadow: 0 0 0 2px rgba(255, 154, 36, .55), 0 3px 10px rgba(0, 0, 0, .35);
  appearance: none;
}
#copilot-detail-view .camera-cut-control input[type='range']::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--brand-highlight);
  box-shadow: 0 0 0 2px rgba(255, 154, 36, .55), 0 3px 10px rgba(0, 0, 0, .35);
}
#copilot-detail-view .camera-cut-scale {
  padding: 0 6px;
  color: var(--muted-strong);
  font-size: 12px;
}
#copilot-detail-view .camera-cut-section p {
  max-width: 54ch;
  font-size: 13px;
  line-height: 1.45;
}

/* Espaço reservado: o estado selecionado não pode cobrir o valor. */
#copilot-detail-view .camera-storage-limit-grid label {
  min-height: 48px;
  padding: 10px 7px;
  color: var(--muted-strong);
  overflow: hidden;
}
#copilot-detail-view .camera-storage-limit-grid label > span {
  position: relative;
  z-index: 1;
  display: block;
  color: inherit;
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}
#copilot-detail-view .camera-storage-limit-grid label:has(input:checked) {
  border-color: var(--line-strong) !important;
  background: rgba(255, 154, 36, .1);
  color: var(--brand-highlight);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
#copilot-detail-view .camera-storage-limit-grid label:has(input:checked)::after {
  position: absolute;
  top: 4px;
  right: 6px;
  color: var(--brand-highlight);
  content: '✓';
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

/* Relatório: uma leitura curta, com ações realmente identificadas. */
#financial-report-modal .financial-report-heading .eyebrow,
#financial-report-modal .financial-report-heading .modal-intro,
#financial-report-modal .profit-goal-heading .eyebrow,
#financial-report-modal .profit-goal-description,
#financial-report-modal .profit-goal-note { display: none; }
#financial-report-modal .financial-report-heading { gap: 10px; }
#financial-report-modal .financial-report-mark {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .06);
}
#financial-report-modal .financial-report-actions button {
  min-height: 48px;
  padding: 10px 12px;
  font-size: 13px;
}
#financial-report-modal .financial-report-actions [data-icon] {
  flex: 0 0 18px;
  --ph-size: 18px;
}
body:has(#financial-report-modal:not([hidden])) .dashboard-quick-actions {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ícones ausentes na primeira versão do relatório/câmera. */
[data-icon='share-network'] { --ph-icon: url('assets/icons/metakm/share.svg'); }
[data-icon='envelope'] { --ph-icon: url('assets/icons/metakm/envelope.svg'); }
[data-icon='printer'] { --ph-icon: url('assets/icons/metakm/printer.svg'); }
[data-icon='play'] { --ph-icon: url('assets/icons/metakm/play.svg'); }

/* Jornada: o resumo segue a referência aprovada — um único card, duas colunas
   equivalentes e um divisor neutro entre tempo trabalhado e início. */
#copilot-section-journey .copilot-journey-runtime {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  min-height: 156px;
  overflow: hidden;
  border: 1px solid var(--line-strong) !important;
  border-radius: 18px !important;
  background: #171717 !important;
}
#copilot-section-journey .copilot-journey-runtime > article,
#copilot-section-journey .copilot-journey-runtime > article.is-emphasis {
  display: grid !important;
  grid-column: auto !important;
  align-content: center;
  gap: 14px;
  min-height: 156px !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 22px 20px !important;
  background: transparent !important;
}
#copilot-section-journey .copilot-journey-runtime > article + article {
  border-left: 1px solid var(--line) !important;
}
#copilot-section-journey .copilot-journey-runtime > article > span {
  color: var(--muted-strong) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
#copilot-section-journey .copilot-journey-runtime > article > strong {
  color: var(--ink) !important;
  font-size: clamp(26px, 6.8vw, 36px) !important;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
}
#copilot-section-journey .copilot-journey-runtime > article.is-emphasis > strong {
  color: var(--brand-highlight) !important;
}
@media (max-width: 560px) {
  #copilot-section-journey .copilot-journey-runtime > article,
  #copilot-section-journey .copilot-journey-runtime > article.is-emphasis {
    min-height: 142px !important;
    padding: 20px 16px !important;
  }
  #copilot-section-journey .copilot-journey-runtime > article > span { font-size: 10px !important; }
  #copilot-section-journey .copilot-journey-runtime > article > strong { font-size: clamp(24px, 6.4vw, 31px) !important; }
}
