:root {
  --bg: #f6f8f7;
  --surface: #fff;
  --ink: #192c27;
  --muted: #84908b;
  --subtle: #61716b;
  --line: #e7ece9;
  --green: #158265;
  --green-dark: #0c6950;
  --green-soft: #ecf6f1;
  --orange: #bd7733;
  --orange-soft: #fff6e8;
  --red: #cf5a5a;
  --red-soft: #fff0ef;
  --sidebar: #102622;
  --radius: 12px;
  --shadow: 0 2px 4px #13352903;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--bg); font-size: 13px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button, input, select, textarea { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #67b69d; outline-offset: 3px; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: inline-block; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, .brand, .stat-value, .chart-value { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
h1 { font-size: 29px; font-weight: 800; letter-spacing: -1.1px; line-height: 1.3; }
h2 { font-size: 16px; font-weight: 750; letter-spacing: -.35px; }
h3 { font-size: 14px; font-weight: 750; letter-spacing: -.15px; }
small { font-size: 11px; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: 224px; background: var(--sidebar); color: #a4b6ae; padding: 29px 17px 17px; display: flex; flex-direction: column; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; color: white; font-size: 22px; font-weight: 750; letter-spacing: -.7px; padding: 0 10px 28px; }
.brand-symbol { width: 30px; height: 33px; display: grid; place-items: center; color: #b7efd3; }
.brand-symbol svg { width: 32px; height: 32px; }
.workspace-select { border: 1px solid #365046; border-radius: 8px; background: #19322b; color: #d6e2dc; display: flex; align-items: center; gap: 9px; padding: 10px 12px; font-size: 11px; margin: 0 5px 26px; }
.workspace-select > svg:last-child { margin-left: auto; color: #a4b6ae; }
.workspace-select .workspace-avatar { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; background: #385348; color: #ddede4; }
.nav-section-label { color: #718b80; font-size: 9px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; padding: 0 15px 10px; margin-top: 15px; }
.nav-item { border: 0; width: 100%; background: none; color: #9db3a8; display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 7px; margin-bottom: 5px; font-size: 12px; font-weight: 500; text-align: left; transition: background .15s, color .15s; }
.nav-item svg { width: 17px; height: 17px; opacity: .8; }
.nav-item:hover { background: #1b352c; color: #fff; }
.nav-item.active { background: #264639; color: #daf3df; }
.nav-item.active svg { color: #a9e8bb; opacity: 1; }
.nav-item .nav-count, .nav-item .badge { margin-left: auto; background: #be9b50; color: #102622; border-radius: 4px; min-width: 19px; height: 18px; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.sidebar-bottom { margin-top: auto; padding-top: 35px; }
.sidebar-status { padding: 15px 13px; border: 1px solid #29493a; border-radius: 8px; margin: 0 5px 18px; background: #173027; }
.sidebar-status p { color: #d3e8db; font-size: 11px; margin-bottom: 5px; display: flex; gap: 7px; align-items: center; }
.sidebar-status small { font-size: 10px; color: #7f9b8c; }
.user-profile { border-top: 1px solid #2b4237; padding: 18px 10px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; background: #e6e9da; border-radius: 50%; color: #365343; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.user-profile strong { color: #d6e4da; display: block; font-size: 11px; font-weight: 600; }
.user-profile small { display: block; color: #708b7e; font-size: 10px; }
.user-profile > svg:last-child { margin-left: auto; }

.main-shell { margin-left: 224px; min-height: 100vh; }
.topbar { height: 72px; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; }
.breadcrumb { color: #8a9590; display: flex; align-items: center; gap: 12px; font-size: 11px; white-space: nowrap; }
.breadcrumb > span:last-child { color: #374e43; font-weight: 600; }
.breadcrumb svg { width: 13px; height: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.search-trigger { color: #8c9891; border: 1px solid var(--line); background: #fafcfb; display: flex; align-items: center; gap: 9px; font-size: 11px; border-radius: 6px; padding: 7px 11px; min-width: 208px; }
.search-trigger svg { width: 14px; height: 14px; }
.keyboard-hint { font-size: 9px; background: #fff; border: 1px solid #e0e6e2; padding: 0 5px; border-radius: 3px; margin-left: auto; color: #a0aaa4; }
.icon-button { border: 0; background: transparent; color: #7b8b82; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; position: relative; }
.icon-button:hover { background: var(--green-soft); color: var(--green); }
.icon-button svg { width: 17px; height: 17px; }
.notification-dot { width: 5px; height: 5px; background: var(--orange); border-radius: 50%; position: absolute; top: 6px; right: 6px; border: 1px solid white; }
.account-label { display: flex; align-items: center; gap: 7px; color: var(--subtle); font-size: 11px; }
.account-label svg { width: 14px; height: 14px; }
.demo-strip { min-height: 34px; padding: 7px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #eef4ef; border-bottom: 1px solid #e1e9e2; color: #6b8371; font-size: 10px; }
.demo-strip p { display: flex; align-items: center; gap: 6px; }
.demo-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: .5px; font-weight: 700; color: #457454; text-transform: uppercase; }
.demo-strip button { color: #477a56; border: 0; background: transparent; padding: 0; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.content { max-width: 1660px; margin: 0 auto; padding: 29px 32px 24px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.page-heading p { color: var(--muted); font-size: 11px; margin-top: 7px; }
.eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.6px; color: #9aa59f; text-transform: uppercase; margin-bottom: 5px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.btn { min-height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; border: 1px solid #dde5df; border-radius: 6px; background: white; color: #4e6257; font-size: 11px; font-weight: 600; line-height: 1.2; transition: background .15s, box-shadow .15s; white-space: nowrap; }
.btn svg { width: 14px; height: 14px; }
.btn:hover { background: #f0f5f1; box-shadow: 0 1px 3px #13352908; }
.btn.primary { color: #fff; background: var(--green); border-color: var(--green); }
.btn.primary:hover { background: var(--green-dark); }
.btn.secondary { background: white; }
.btn.danger { color: #bd5151; background: #fff8f7; border-color: #f0d8d5; }
.btn.danger:hover { background: #ffefed; }
.btn.small { min-height: 28px; padding: 6px 10px; font-size: 10px; }
.btn.ghost { border-color: transparent; background: transparent; padding-left: 0; padding-right: 0; color: var(--green); }
.btn.ghost:hover { background: transparent; color: var(--green-dark); box-shadow: none; }
.btn.full { width: 100%; }
.market-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: white; border-radius: 9px; margin-bottom: 24px; padding: 12px 0; }
.market-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 19px; border-right: 1px solid var(--line); }
.market-item:last-child { border-right: 0; }
.market-name { font-size: 9px; font-weight: 700; color: #829188; letter-spacing: .4px; white-space: nowrap; }
.market-value { font-size: 12px; font-weight: 600; color: #425a4c; font-variant-numeric: tabular-nums; margin-top: 3px; }
.market-change { font-size: 10px; color: var(--green); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.market-item .sparkline { width: 53px; height: 22px; opacity: .75; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { position: relative; padding: 19px 20px 17px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #77877e; font-size: 10px; font-weight: 500; }
.stat-label svg { color: #aab6ae; width: 14px; height: 14px; }
.stat-value { font-size: 25px; font-weight: 750; letter-spacing: -.9px; margin: 10px 0 7px; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.3; }
.stat-foot { color: #a0aba4; font-size: 9px; display: flex; align-items: center; gap: 5px; }
.stat-foot svg { width: 11px; height: 11px; }
.stat-foot .positive, .stat-foot .negative { font-weight: 600; }
.stat-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; color: #71917d; background: #eff5f0; }
.stat-icon svg { width: 14px; height: 14px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 22px; }
.dashboard-main, .dashboard-aside { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); min-width: 0; overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 21px 16px; }
.card-title { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.card-title svg { color: #8fa398; width: 15px; height: 15px; }
.card-subtitle { color: #9ba79f; font-size: 10px; margin-top: 4px; }
.card-body { padding: 0 21px 20px; }
.card-actions { display: flex; align-items: center; gap: 8px; }
.segmented { display: inline-flex; border: 1px solid #e7ece8; padding: 3px; border-radius: 6px; gap: 2px; background: #fbfcfb; }
.segmented button { border: 0; background: transparent; padding: 4px 8px; color: #9aa69e; font-size: 9px; font-weight: 500; border-radius: 4px; min-width: 25px; }
.segmented button.active { background: #e7f0e9; color: #2e6943; font-weight: 700; }
.segmented button:hover { color: #2e6943; }
.chart-summary { display: flex; align-items: baseline; gap: 10px; padding: 0 21px; }
.chart-value { font-size: 28px; font-weight: 750; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.chart-summary .badge { font-size: 9px; }
.chart-summary > span:last-child { color: #a1aba5; font-size: 9px; }
.chart-legend { display: flex; gap: 16px; font-size: 9px; color: #91a095; padding: 9px 21px 0; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.legend-dot.gray { background: #c4cec7; }
.chart-wrap { position: relative; padding: 6px 13px 0; }
.performance-chart { width: 100%; height: auto; min-height: 210px; display: block; overflow: visible; }
.performance-chart text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 10px; fill: #a6b1a9; }
.chart-tooltip { position: absolute; z-index: 2; pointer-events: none; padding: 8px 11px; background: #19372c; color: white; border-radius: 6px; font-size: 11px; box-shadow: 0 3px 12px #1436241a; }
.chart-bottom { display: flex; align-items: center; justify-content: space-between; padding: 12px 21px; border-top: 1px solid #f0f3f0; font-size: 9px; color: #a0aea3; }
.chart-bottom span { display: flex; align-items: center; gap: 5px; }
.chart-bottom svg { width: 11px; height: 11px; }
.table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 11px; }
.data-table th { background: #f9fbf9; color: #9aa79e; font-size: 9px; letter-spacing: .1px; font-weight: 500; padding: 11px 20px; border-top: 1px solid #f0f3f0; border-bottom: 1px solid #edf1ed; }
.data-table td { padding: 16px 20px; border-bottom: 1px solid #eef2ee; color: #607368; font-variant-numeric: tabular-nums; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfdfb; }
.data-table th:last-child, .data-table td:last-child { text-align: right; }
.data-table .money { color: #324d3e; font-weight: 600; }
.data-table .positive, .data-table .negative { font-weight: 600; }
.data-table td small { font-size: 9px; }
.symbol-cell { display: flex; align-items: center; gap: 9px; min-width: 125px; }
.symbol-avatar { display: grid; place-items: center; background: #f0f4ef; color: #6e917b; width: 29px; height: 29px; border-radius: 7px; font-size: 9px; font-weight: 750; flex-shrink: 0; }
.symbol-avatar.blue { background: #edf3f9; color: #5f88b1; }
.symbol-avatar.orange { background: #fbf3e8; color: #bb9355; }
.symbol-name { color: #334f3e; font-weight: 700; font-size: 10px; }
.symbol-cell small { display: block; color: #a0aaa2; font-size: 9px; font-weight: 400; margin-top: 2px; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid transparent; border-radius: 4px; padding: 3px 6px; font-size: 9px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.badge.green { color: #47825a; background: #eff7ef; border-color: #e6f0e4; }
.badge.orange { color: #b28b4f; background: #fff8ea; border-color: #f5eacd; }
.badge.red { color: #c56a65; background: #fff2f0; border-color: #f9e7e3; }
.badge.gray { color: #8f9d94; background: #f3f6f2; border-color: #e9eee7; }
.side-tag { display: inline-block; color: #4e8e65; background: #f0f7ef; padding: 2px 6px; border-radius: 3px; font-size: 9px; font-weight: 700; }
.side-tag.sell { background: #fcf0ee; color: #c4776c; }
.status-dot { width: 5px; height: 5px; display: inline-block; background: #77aa7c; border-radius: 50%; flex-shrink: 0; }
.status-dot.orange { background: #c7a05b; }
.status-dot.gray { background: #a6b2a8; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid #edf2ec; color: #9da99f; font-size: 9px; }

.approval-preview .card-header { padding-bottom: 14px; }
.whatsapp-heading { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; }
.wa-logo { color: #4c9c6c; width: 25px; height: 25px; border-radius: 6px; background: #edf7ef; display: grid; place-items: center; }
.wa-logo svg { width: 15px; height: 15px; }
.chat-background { background: #f4f5ed; padding: 16px; border-top: 1px solid #edf0e5; border-bottom: 1px solid #edf0e5; }
.chat-message { background: #fff; border-radius: 0 8px 8px 8px; padding: 13px 13px 8px; position: relative; box-shadow: 0 1px 2px #52694d0b; }
.chat-message::before { content: ''; position: absolute; top: 0; left: -6px; border-top: 7px solid white; border-left: 7px solid transparent; }
.chat-message strong { display: block; color: #5b865b; font-size: 10px; margin-bottom: 6px; font-weight: 700; }
.chat-message p { color: #657261; font-size: 10px; line-height: 1.65; }
.chat-message b { color: #334e34; font-weight: 650; }
.chat-meta { margin-top: 7px; text-align: right; color: #acb3a6; font-size: 8px; display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.chat-meta svg { width: 12px; height: 12px; color: #87b6b3; }
.approval-buttons { display: flex; gap: 8px; margin-top: 10px; }
.approval-buttons .btn { flex: 1; min-height: 30px; font-size: 10px; }
.approval-buttons .btn.primary { background: #468259; border-color: #468259; }
.approval-metrics { display: flex; gap: 12px; margin-top: 8px; font-size: 9px; }
.approval-metrics span { display: block; }
.approval-metrics b { display: block; color: #3f5e43; margin-top: 2px; }
.approval-footer { display: flex; align-items: center; justify-content: space-between; padding: 11px 17px; color: #9ca797; font-size: 9px; }
.approval-footer > span { display: flex; align-items: center; gap: 4px; }
.approval-footer svg { width: 11px; height: 11px; }
.activity-list { padding: 0 19px 16px; }
.activity-item { display: flex; gap: 10px; position: relative; padding: 0 0 17px; }
.activity-item:last-child { padding-bottom: 0; }
.activity-item:not(:last-child)::after { content: ''; position: absolute; top: 26px; bottom: 3px; left: 12px; width: 1px; background: #edf1e9; }
.activity-icon { width: 26px; height: 26px; background: #f2f6ef; color: #84a07c; display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; z-index: 1; }
.activity-icon svg { width: 12px; height: 12px; }
.activity-icon.approval { background: #faf4e8; color: #c4a05f; }
.activity-icon.risk { background: #fbefed; color: #ce8d80; }
.activity-copy { flex: 1; min-width: 0; }
.activity-copy strong { color: #57704e; font-size: 10px; font-weight: 600; display: block; }
.activity-copy p { color: #a0aa97; font-size: 9px; line-height: 1.5; margin-top: 2px; }
.activity-time { font-size: 8px; color: #acb5a5; white-space: nowrap; padding-top: 3px; }
.strategy-list { padding: 0 20px 5px; }
.strategy-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #edf1e9; }
.strategy-icon { height: 30px; width: 30px; display: grid; place-items: center; background: #f2f5ed; color: #899c77; border-radius: 7px; }
.strategy-icon svg { height: 14px; width: 14px; }
.strategy-meta { flex: 1; min-width: 0; }
.strategy-meta strong { font-size: 10px; color: #536b45; display: block; }
.strategy-meta small { color: #a1ac93; font-size: 9px; display: block; margin-top: 2px; }
.strategy-row > strong { color: var(--green); font-size: 10px; font-variant-numeric: tabular-nums; }
.mini-progress { height: 3px; background: #f1f4eb; border-radius: 4px; width: 44px; overflow: hidden; margin-top: 5px; }
.mini-progress > span { height: 100%; display: block; background: #9bb28a; }
.integration-card { padding: 17px 19px; display: flex; align-items: center; gap: 11px; background: #fcfcf8; }
.integration-logo { width: 32px; height: 32px; color: #9cac86; border: 1px solid #e8eddd; border-radius: 7px; background: #f5f7ee; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.integration-card strong { display: block; color: #677858; font-size: 10px; font-weight: 600; }
.integration-card small { color: #acb39c; display: block; font-size: 9px; margin-top: 2px; }
.integration-card > .badge { margin-left: auto; }
.footer-note { color: #a6b0a1; font-size: 9px; margin-top: 23px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-note span { display: flex; align-items: center; gap: 5px; }
.footer-note svg { width: 11px; height: 11px; }

.section-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.strategy-card { padding: 22px; }
.strategy-card-top { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 22px; }
.strategy-card-top .strategy-icon { width: 38px; height: 38px; }
.strategy-card-top .strategy-meta strong { font-size: 12px; color: #405740; }
.strategy-card-top .strategy-meta small { font-size: 10px; }
.strategy-card-top > .badge, .strategy-card-top > .toggle { margin-left: auto; }
.strategy-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px 14px; padding-bottom: 21px; }
.detail-pair { font-size: 10px; color: #98a28f; }
.detail-pair strong { display: block; font-size: 12px; color: #52644b; font-weight: 500; margin-top: 4px; }
.strategy-footer { display: flex; gap: 9px; align-items: center; border-top: 1px solid #edf1e7; padding-top: 16px; }
.strategy-footer .btn { flex: 1; }
.toggle { display: inline-flex; width: 31px; height: 18px; border: 0; background: #dce6d7; padding: 2px; border-radius: 12px; flex-shrink: 0; }
.toggle::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: white; box-shadow: 0 1px 2px #2c421e26; transition: transform .15s; }
.toggle.on, .toggle[aria-checked=true] { background: var(--green); }
.toggle.on::after, .toggle[aria-checked=true]::after { transform: translateX(13px); }
.section-note { border: 1px solid #e1e9dc; border-radius: 8px; color: #7b8c6e; background: #f1f5eb; padding: 13px 16px; font-size: 11px; display: flex; align-items: flex-start; gap: 9px; margin-bottom: 22px; }
.section-note svg { width: 15px; height: 15px; margin-top: 1px; }
.section-note p { line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 11px; color: #73816b; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #dee5d8; border-radius: 6px; color: #536446; background: #fff; font-size: 12px; }
.form-field input:hover, .form-field select:hover { border-color: #b6c7aa; }
.form-field input:focus, .form-field select:focus { border-color: var(--green); }
.form-field small { color: #a0ab96; font-size: 10px; }
.form-field textarea { resize: vertical; min-height: 84px; }
.flow-list { display: flex; gap: 0; padding: 24px 20px; align-items: start; }
.flow-step { flex: 1; min-width: 0; position: relative; text-align: center; padding: 0 10px; }
.flow-step:not(:last-child)::after { content: ''; position: absolute; height: 1px; left: calc(50% + 19px); right: calc(-50% + 19px); top: 16px; background: #dbe6d2; }
.flow-number { border: 1px solid #cfe0bf; height: 33px; width: 33px; display: grid; place-items: center; margin: 0 auto 9px; background: #f1f7e9; border-radius: 50%; color: #6a8b4c; font-size: 11px; font-weight: 600; }
.flow-step strong { font-size: 10px; color: #687f51; display: block; }
.flow-step small { color: #a1ae90; font-size: 9px; display: block; line-height: 1.6; max-width: 130px; margin: 4px auto 0; }
.approval-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.approval-card { overflow: hidden; }
.approval-card .chat-background { padding: 22px; }
.approval-card .chat-message p { font-size: 12px; }
.approval-card .chat-message strong { font-size: 12px; }
.approval-card .approval-metrics { font-size: 11px; }
.approval-card .approval-buttons .btn { min-height: 36px; font-size: 11px; }
.empty-state { padding: 60px 25px; text-align: center; color: #94a288; }
.empty-state > svg { display: block; margin: 0 auto 16px; width: 34px; height: 34px; color: #adc09d; }
.empty-state h3 { color: #637c53; font-size: 16px; margin-bottom: 8px; }
.empty-state p { font-size: 12px; margin: 0 auto 20px; max-width: 350px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid #e1e8da; margin-bottom: 23px; }
.tabs button { background: transparent; border: 0; padding: 0 0 12px; color: #99a58c; font-size: 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.filter-row select, .filter-row input { height: 35px; border: 1px solid #e0e6d9; padding: 6px 10px; border-radius: 6px; background: white; font-size: 11px; color: #748667; }
.filter-row > div { display: flex; gap: 10px; align-items: center; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); gap: 20px; margin-bottom: 22px; }
.bar-chart { height: 240px; display: flex; align-items: flex-end; justify-content: space-around; gap: 18px; padding: 35px 28px 30px; border-bottom: 1px solid #edf2e7; background: repeating-linear-gradient(to top, transparent 0, transparent 49px, #f0f3eb 49px, #f0f3eb 50px); margin: 0 20px 20px; }
.bar-column { width: 35px; max-width: 12%; border-radius: 4px 4px 0 0; position: relative; background: #9bc5a3; min-height: 4px; }
.bar-column:last-child { background: var(--green); }
.bar-column.negative { background: #e4b4a8; }
.bar-value { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; color: #7c916d; }
.bar-label { position: absolute; bottom: -25px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 9px; color: #9ca88e; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 22px; align-items: start; }
.settings-grid > div { display: flex; flex-direction: column; gap: 22px; }
.settings-card .card-body { padding-top: 7px; }
.settings-card .form-grid { margin-top: 12px; }
.check-list { display: flex; flex-direction: column; gap: 15px; padding-top: 5px; }
.check-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: #7f906c; }
.check-item > div { display: flex; align-items: center; gap: 9px; }
.check-item svg { color: #86ab6d; width: 15px; height: 15px; }
.connection-status { padding: 16px; background: #f5f7ef; border: 1px solid #e9eddd; border-radius: 7px; display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.connection-status strong { font-size: 12px; color: #647c4b; display: block; }
.connection-status p { font-size: 10px; color: #9ca98c; margin-top: 3px; }
.connection-status > .badge { margin-left: auto; }
.settings-actions { margin-top: 22px; display: flex; gap: 10px; }
.risk-meter { margin-top: 20px; }
.risk-meter > div:first-child { display: flex; justify-content: space-between; font-size: 10px; color: #899c76; margin-bottom: 7px; }
.progress-track { width: 100%; height: 5px; background: #edf2e3; border-radius: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: #9cbf7c; border-radius: 8px; }
.audit-table { font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 40px 20px; background: #0c251c66; backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; animation: backdrop-in .15s ease; }
.modal { background: white; border-radius: 13px; width: 100%; max-width: 620px; max-height: calc(100dvh - 80px); display: flex; flex-direction: column; box-shadow: 0 18px 80px #10291b2b; animation: modal-in .18s ease; }
.modal-header { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; padding: 23px 25px 20px; border-bottom: 1px solid #edf1e5; }
.modal-header h2 { font-size: 19px; color: #3c5730; }
.modal-header p { color: #98a68c; font-size: 11px; margin-top: 5px; }
.modal-close { border: 0; background: #f4f7ee; border-radius: 5px; width: 27px; height: 27px; display: grid; place-items: center; color: #9aab8c; }
.modal-close svg { width: 15px; height: 15px; }
.modal-body { padding: 22px 25px; overflow-y: auto; overscroll-behavior: contain; }
.modal-body .section-note { margin-bottom: 20px; }
.modal-body > p { color: #8d9d7f; font-size: 12px; line-height: 1.8; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 17px 25px; border-top: 1px solid #edf1e5; background: #fcfdf9; border-radius: 0 0 13px 13px; }
.modal-footer > span { color: #a2ad94; font-size: 10px; margin-right: auto; }
.toast-stack { position: fixed; right: 25px; bottom: 25px; display: flex; flex-direction: column; gap: 10px; z-index: 150; max-width: min(390px, calc(100vw - 30px)); }
.toast { display: flex; align-items: flex-start; gap: 11px; padding: 15px 18px; border-radius: 9px; color: #3c6749; background: #fff; border: 1px solid #d7e7d7; box-shadow: 0 7px 30px #1e40231a; font-size: 12px; animation: toast-in .2s ease; }
.toast svg { color: var(--green); width: 17px; height: 17px; margin-top: 1px; }
.toast.error { border-color: #eed9d1; color: #aa6a57; }
.toast.error svg { color: #c5806a; }
.toast strong { display: block; font-size: 12px; }
.toast p { color: #9ba993; font-size: 11px; margin-top: 3px; }
.mobile-menu { display: none; }
.sidebar-overlay { display: none; }
.global-search-results { display: flex; flex-direction: column; gap: 5px; }
.search-result { padding: 13px 12px; border: 1px solid transparent; background: transparent; border-radius: 6px; display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; color: #788d64; }
.search-result:hover { background: #f3f7ec; border-color: #e7eddd; }
.search-result svg { color: #90a67c; width: 17px; height: 17px; }
.search-result strong { font-size: 12px; color: #5d7945; display: block; }
.search-result small { color: #a3b191; display: block; font-size: 10px; }
.search-result > svg:last-child { margin-left: auto; width: 14px; height: 14px; }

@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1650px) {
  .content { padding-top: 36px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 345px; }
  .stat-value { font-size: 29px; }
  .performance-chart { min-height: 280px; }
}
@media (max-width: 1250px) {
  .sidebar { width: 204px; padding-left: 12px; padding-right: 12px; }
  .main-shell { margin-left: 204px; }
  .content { padding: 24px; }
  .topbar { padding: 0 24px; }
  .demo-strip { padding-left: 24px; padding-right: 24px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
  .stat-grid { gap: 12px; }
  .stat-card { padding: 17px 16px; }
  .stat-value { font-size: 23px; }
  .market-item { padding: 0 14px; }
  .market-item .sparkline { display: none; }
  .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-table th, .data-table td { padding-left: 15px; padding-right: 15px; }
  .card-header { padding-left: 17px; padding-right: 17px; }
  .card-actions { gap: 4px; }
}
@media (max-width: 1050px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
  .dashboard-aside .integration-card { grid-column: 1 / -1; }
  .stat-value { font-size: 22px; }
  .search-trigger { min-width: 150px; }
  .topbar-actions { gap: 11px; }
  .report-grid, .settings-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; }
  h1 { font-size: 26px; }
}
@media (max-width: 760px) {
  .sidebar { width: 224px; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 35; background: #0c251c66; backdrop-filter: blur(2px); }
  .sidebar-overlay.visible, body.menu-open .sidebar-overlay { display: block; }
  .main-shell { margin-left: 0; }
  .topbar { height: 60px; padding: 0 18px; gap: 10px; }
  .mobile-menu { display: inline-flex; }
  .breadcrumb { gap: 8px; font-size: 10px; margin-right: auto; }
  .breadcrumb > svg:first-child { display: none; }
  .topbar-actions { gap: 7px; }
  .search-trigger { min-width: auto; width: 29px; height: 29px; padding: 0; display: grid; place-items: center; border-color: transparent; background: transparent; }
  .search-trigger > span, .search-trigger kbd, .search-trigger .keyboard-hint { display: none; }
  .account-label { font-size: 10px; }
  .demo-strip { padding: 8px 19px; font-size: 9px; }
  .demo-strip > p { max-width: 250px; }
  .content { padding: 23px 18px; }
  .page-heading { flex-wrap: wrap; gap: 15px; margin-bottom: 19px; }
  .heading-actions { gap: 7px; }
  h1 { font-size: 26px; }
  .page-heading p { font-size: 10px; }
  .eyebrow { font-size: 8px; }
  .btn { min-height: 33px; font-size: 10px; padding: 8px 11px; }
  .market-strip { grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; padding: 0; }
  .market-item { padding: 11px 14px; }
  .market-item:nth-child(2) { border-right: 0; }
  .market-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .market-value { font-size: 11px; }
  .market-name { font-size: 8px; }
  .market-change { font-size: 9px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 18px; }
  .stat-card { padding: 16px 14px; }
  .stat-value { font-size: 24px; margin-top: 9px; }
  .stat-label { font-size: 9px; }
  .stat-foot { font-size: 8px; flex-wrap: wrap; }
  .dashboard-main { gap: 18px; }
  .dashboard-grid { gap: 18px; }
  .dashboard-aside { display: flex; }
  .card-header { padding: 17px 16px 14px; gap: 10px; }
  .card-title { font-size: 12px; }
  .card-subtitle { font-size: 9px; }
  .card-body { padding: 0 16px 17px; }
  .chart-summary { padding: 0 16px; }
  .chart-value { font-size: 25px; }
  .chart-legend { padding-left: 16px; }
  .chart-wrap { padding-left: 5px; padding-right: 5px; }
  .performance-chart { min-height: 190px; }
  .chart-summary > span:last-child { display: none; }
  .segmented button { font-size: 8px; padding: 4px 6px; }
  .chart-bottom { padding: 11px 16px; font-size: 8px; }
  .data-table th { font-size: 8px; }
  .data-table td { font-size: 10px; }
  .section-grid, .approval-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .strategy-card { padding: 20px; }
  .tabs { gap: 22px; overflow-x: auto; }
  .tabs button { font-size: 11px; white-space: nowrap; }
  .filter-row { flex-wrap: wrap; }
  .filter-row select { max-width: 170px; }
  .report-grid { gap: 18px; }
  .settings-grid { gap: 18px; }
  .settings-grid > div { gap: 18px; }
  .flow-list { flex-direction: column; padding: 18px; gap: 18px; }
  .flow-step { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; gap: 0 12px; text-align: left; padding: 0; }
  .flow-number { grid-row: 1 / span 2; margin: 0; }
  .flow-step strong { align-self: end; }
  .flow-step small { max-width: none; margin: 2px 0 0; }
  .flow-step:not(:last-child)::after { width: 1px; height: 17px; top: 34px; left: 16px; right: auto; }
  .modal-backdrop { padding: 15px; }
  .modal { max-height: calc(100dvh - 30px); border-radius: 11px; }
  .modal-header { padding: 20px; }
  .modal-header h2 { font-size: 17px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 15px 20px; }
  .modal-footer > span { display: none; }
  .form-grid { gap: 15px; }
  .toast-stack { right: 15px; bottom: 15px; }
  .footer-note { align-items: flex-start; font-size: 8px; line-height: 1.7; margin-top: 18px; }
  .footer-note > span:last-child { display: none; }
}
@media (max-width: 380px) {
  .content { padding-left: 13px; padding-right: 13px; }
  .stat-value { font-size: 22px; }
  .account-label { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .heading-actions .btn { padding-left: 9px; padding-right: 9px; }
  .chart-summary { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Application-specific refinements: readable type and complete interaction states. */
:root { --muted: #6e8077; --subtle: #53685c; }
body { font-size: 14px; }
body.modal-open { overflow: hidden; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 200; padding: 10px 16px; border-radius: 6px; background: white; color: #155f45; box-shadow: 0 3px 12px #10262230; }
.skip-link:focus { top: 12px; }
.brand { gap: 8px; padding-left: 8px; font-size: 22px; }
.brand-symbol { width: 28px; height: 33px; }
.brand-symbol svg { width: 28px; height: 28px; }
.brand-dot { margin-left: -7px; color: #b3e8b7; }
.workspace-select { font-size: 11px; padding: 10px 8px; gap: 8px; text-align: left; margin-left: 2px; margin-right: 2px; }
.workspace-select .workspace-avatar { width: 26px; height: 28px; background: #3c594a; font-weight: 700; flex-shrink: 0; }
.workspace-select small { display: block; font-size: 10px; margin-top: 2px; color: #93ae9e; }
.nav-item { font-size: 13px; padding: 12px 11px; gap: 10px; }
.nav-item > svg:last-child:not(:first-child) { margin-left: auto; width: 12px; height: 12px; }
.nav-section-label { font-size: 10px; padding-left: 12px; }
.sidebar-demo { margin: 0 3px 19px; background: #17372a; padding: 17px 14px; border: 1px solid #2e4c3a; border-radius: 9px; }
.sidebar-demo > .status-dot { margin-right: 6px; background: #9acba5; }
.sidebar-demo > strong { font-size: 12px; color: #d1e7d5; }
.sidebar-demo p { margin-top: 8px; font-size: 11px; color: #92ac99; line-height: 1.75; }
.sidebar-demo .btn { color: #b3d9bb; font-size: 11px; margin-top: 7px; }
.user-profile { padding-left: 3px; padding-right: 3px; gap: 8px; font-size: 11px; color: #d4e3d9; }
.user-profile > span:not(.avatar) { min-width: 0; }
.user-profile .icon-button { color: #8eab97; margin-left: auto; }
.user-profile small { font-size: 10px; color: #93ac9b; margin-top: 3px; }
.avatar.small { width: 30px; height: 30px; font-size: 10px; }
.breadcrumb { font-size: 12px; }
.breadcrumb strong { color: #425d4c; font-weight: 600; }
.search-trigger { font-size: 11px; }
.search-trigger kbd { margin-left: auto; color: #7f9085; font-family: inherit; font-size: 10px; border: 1px solid #e5ebe5; border-radius: 3px; padding: 0 4px; background: white; }
.account-label { font-size: 11px; color: #53705a; gap: 6px; }
.notification-button > span { position: absolute; right: 5px; top: 5px; width: 5px; height: 5px; background: #c19857; border-radius: 50%; border: 1px solid white; }
.demo-strip { font-size: 11px; color: #567261; }
.demo-strip > span { display: flex; align-items: center; gap: 6px; }
.demo-strip > span > svg { width: 13px; height: 13px; }
.demo-strip-detail { color: #718674; }
.demo-strip button { display: flex; align-items: center; gap: 5px; font-size: 10px; }
.demo-strip button svg { width: 11px; height: 11px; }
.page-heading p { font-size: 12px; color: #798a80; }
.page-heading .eyebrow { font-size: 10px; color: #7c9181; margin-top: 0; margin-bottom: 7px; letter-spacing: 1.5px; }
.btn { font-size: 12px; padding: 10px 13px; }
.btn.small { font-size: 11px; padding: 7px 10px; }
.market-strip { grid-template-columns: repeat(4, minmax(0, 1fr)) 160px; padding: 13px 0; }
.market-item { display: block; padding: 0 18px; }
.market-name { display: block; font-size: 10px; color: #6f8475; }
.market-item > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 5px; }
.market-value { font-size: 13px; margin-top: 0; color: #405b49; }
.market-change { font-size: 10px; display: flex; align-items: center; gap: 3px; }
.market-change svg { width: 11px; height: 11px; }
.market-sample { padding: 0 15px; color: #799079; display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; align-content: center; font-size: 10px; }
.market-sample .status-dot { align-self: center; }
.market-sample small { display: block; width: 100%; text-align: center; font-size: 9px; color: #879883; margin-top: 3px; }
.stat-label { font-size: 12px; color: #637d6a; }
.stat-value { font-size: 28px; color: #294935; margin-top: 9px; }
.stat-value-note { font-size: 14px; color: #91a38e; font-weight: 400; letter-spacing: -.2px; padding-left: 5px; }
.stat-foot { font-size: 10px; color: #7c907b; gap: 7px; }
.stat-foot .badge { font-size: 9px; }
.stat-card > .muted { font-size: 11px; }
.card-title { font-size: 15px; color: #2b4936; }
.card-subtitle { font-size: 11px; color: #82947e; }
.segmented button { font-size: 10px; }
.chart-summary { justify-content: space-between; align-items: center; }
.chart-summary .muted { font-size: 11px; color: #82977e; }
.chart-value { font-size: 29px; color: #2b5036; }
.chart-legend { padding: 0; font-size: 10px; color: #7f9779; display: flex; align-items: center; gap: 6px; }
.chart-legend > span { height: 6px; width: 6px; border-radius: 50%; background: #318e65; }
.chart-caption { display: block; font-size: 10px; color: #84977e; margin: 0 8px 11px; }
.chart-bottom { font-size: 10px; color: #7e9477; gap: 10px; flex-wrap: wrap; }
.chart-bottom strong { color: #47623f; font-weight: 600; }
.data-table { font-size: 12px; }
.data-table th { font-size: 10px; color: #83987c; }
.data-table td { font-size: 12px; color: #5d7553; }
.data-table td small { font-size: 10px; }
.symbol-cell > div strong { font-size: 11px; color: #345330; font-weight: 650; }
.symbol-cell > div small { font-size: 10px; color: #85977c; margin-top: 3px; }
.symbol-avatar { color: #678b55; font-size: 10px; }
.symbol-avatar.tone-0, .strategy-icon.tone-0 { background: #eff5ea; color: #789560; }
.symbol-avatar.tone-1, .strategy-icon.tone-1 { background: #eff2f8; color: #7890b2; }
.symbol-avatar.tone-2, .strategy-icon.tone-2 { background: #faf1e4; color: #b69758; }
.cell-sub { display: block; margin-top: 4px; color: #889c7d; font-size: 10px; }
.side-tag { font-size: 10px; }
.side-tag.negative { background: #fcefea; }
.badge { font-size: 10px; padding: 4px 7px; }
.badge.green { color: #4b7e39; }
.badge.orange { color: #9e742a; }
.badge.gray { color: #7b8e6e; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; font-size: 10px; background: #edf3e7; color: #7e9964; border-radius: 4px; padding: 0 4px; margin-left: 3px; }
.whatsapp-heading { padding: 0 18px 15px; gap: 9px; align-items: center; }
.whatsapp-heading strong { font-size: 11px; font-weight: 600; color: #526f43; }
.whatsapp-heading small { display: block; font-size: 10px; color: #8b9d7d; margin-top: 2px; }
.whatsapp-heading > svg:last-child { margin-left: auto; width: 12px; height: 12px; color: #9faf90; }
.chat-date { text-align: center; font-size: 9px; font-weight: 500; color: #9ba68b; margin-bottom: 12px; letter-spacing: .3px; }
.chat-message strong { font-size: 11px; color: #4c7942; }
.chat-message strong svg { width: 11px; height: 11px; margin-left: 3px; }
.chat-message > b { font-size: 12px; display: block; margin-top: 8px; color: #38592d; }
.chat-message p { font-size: 11px; color: #78866a; }
.approval-metrics { font-size: 10px; margin-top: 11px; }
.approval-metrics b { color: #4a663a; font-size: 11px; }
.chat-message .chat-meta { font-size: 9px; color: #8d9c7d; text-align: left; margin-top: 11px; }
.approval-buttons button { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 5px; padding: 8px 9px; border: 1px solid #dfe8d6; border-radius: 5px; background: white; color: #899b78; font-size: 11px; }
.approval-buttons button:first-child { background: #3f7d49; color: white; border-color: #3f7d49; }
.approval-buttons button:hover { filter: brightness(.96); }
.approval-buttons button svg { width: 12px; height: 12px; }
.approval-footer { width: 100%; border: 0; background: white; color: #61884a; font-size: 11px; padding: 13px 18px; }
.approval-footer:hover { background: #fafcf7; }
.approval-clear { text-align: center; color: #859b71; padding: 20px 0; }
.approval-clear > svg { display: block; margin: 0 auto 10px; color: #6f9a57; }
.approval-clear strong { display: block; font-size: 13px; margin-bottom: 5px; }
.approval-clear p { font-size: 11px; margin-bottom: 14px; }
.activity-copy strong { font-size: 11px; color: #5b7948; }
.activity-copy p { font-size: 10px; color: #849a74; }
.activity-time { display: block; font-size: 9px; color: #9aae86; padding-top: 4px; }
.strategy-meta strong { font-size: 12px; color: #52713d; }
.strategy-meta small { font-size: 10px; color: #8b9f77; }
.strategy-card > h2 { font-size: 17px; color: #3d5e2b; }
.strategy-card > p { margin-top: 5px; margin-bottom: 23px; color: #8ba172; font-size: 12px; }
.strategy-details { gap: 20px 15px; }
.detail-pair { font-size: 11px; color: #82986d; }
.detail-pair strong { color: #4d6c34; font-size: 12px; margin-top: 5px; }
.detail-pair strong svg { height: 13px; width: 13px; }
.strategy-footer .btn { flex: 0; min-width: 105px; }
.strategy-footer .toggle { margin-left: auto; }
.integration-card { gap: 11px; }
.integration-card strong { font-size: 12px; color: #5d7b3c; }
.integration-card p { color: #8fa474; font-size: 10px; margin: 4px 0 7px; }
.integration-card .icon-button { margin-left: auto; }
.integration-logo { display: flex; justify-content: center; gap: 0; color: #799957; }
.integration-logo span { color: #b1b97b; font-size: 9px; align-self: flex-end; margin-bottom: 7px; }
.integration-heading { display: flex; gap: 12px; align-items: center; padding: 22px 22px 18px; }
.integration-heading .wa-logo { width: 34px; height: 34px; }
.settings-card > .form-grid { padding: 0 22px 22px; margin-top: 8px; }
.settings-card > .section-note { margin: 17px 22px 22px; }
.settings-card > .connection-status { margin: 0 22px 20px; }
.settings-card > .check-list { padding: 0 22px; }
.settings-card > .btn { margin: 22px; }
.section-grid > .settings-card { padding: 22px; }
.section-grid > .settings-card h3 { margin-top: 15px; color: #506d34; }
.section-grid > .settings-card p { font-size: 12px; color: #889d71; margin: 9px 0 18px; }
.section-grid > .settings-card > strong { font-size: 15px; color: #536d3b; }
.check-item { justify-content: flex-start; gap: 8px; font-size: 12px; color: #7c935f; }
.mode-option { margin: 0 22px 12px; padding: 17px 14px; display: flex; align-items: center; gap: 11px; border: 1px solid #e1e9d6; border-radius: 7px; background: #fbfcf8; width: calc(100% - 44px); text-align: left; }
.mode-option.selected { background: #f3f8eb; border-color: #d6e6c5; }
.mode-option > svg, .mode-option > span > svg { color: #799b58; width: 17px; height: 17px; }
.mode-option > div { flex: 1; }
.mode-option strong { font-size: 12px; color: #547332; }
.mode-option p { color: #8c9f75; font-size: 11px; margin-top: 4px; }
.connection-status { font-size: 11px; color: #8ca06d; }
.approval-trade { display: flex; align-items: center; gap: 9px; padding: 7px 0 22px; font-size: 13px; color: #486a2b; }
.filter-label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #7a925e; }
.filter-label select { min-height: 36px; color: #5e7c3f; font-size: 11px; }
.tabs { margin-bottom: 0; }
.tabs button { font-size: 12px; color: #8ba071; }
.card-header .tabs { border: 0; }
.card-header .tabs button { padding-bottom: 8px; margin-bottom: -8px; }
.filter-row > .muted { font-size: 11px; }
.bar-chart { align-items: stretch; padding-top: 27px; height: 250px; }
.bar-column, .bar-column:last-child { display: flex; width: auto; min-width: 50px; max-width: none; flex: 1; background: transparent; flex-direction: column; justify-content: flex-end; }
.bar-track { display: flex; align-items: flex-end; justify-content: center; flex: 1; }
.bar-track > div { width: 38px; border-radius: 4px 4px 0 0; }
.bar-value { position: static; transform: none; text-align: center; font-size: 11px; margin-bottom: 12px; }
.bar-label { font-size: 10px; color: #7b9660; }
.flow-step strong { color: #607f3d; font-size: 12px; }
.flow-step p { color: #91a67c; font-size: 11px; margin-top: 5px; margin-bottom: 10px; line-height: 1.7; }
.flow-list.vertical { flex-direction: column; gap: 22px; padding: 10px 0 20px; }
.flow-list.vertical .flow-step { display: flex; gap: 14px; text-align: left; padding: 0; width: 100%; align-items: flex-start; }
.flow-list.vertical .flow-number { margin: 0; flex-shrink: 0; }
.flow-list.vertical .flow-step:not(:last-child)::after { height: calc(100% - 15px); width: 1px; top: 37px; left: 16px; }
.flow-list.vertical .flow-step p { margin-bottom: 0; }
.form-field { font-size: 12px; color: #708857; }
.form-field input, .form-field select { font-size: 13px; color: #4f6e35; }
.form-field.full.muted { font-size: 11px; }
.modal-body form { overflow: visible; }
.modal-body > p, .modal-body .modal-intro { color: #80976b; font-size: 12px; margin-bottom: 20px; line-height: 1.8; }
.modal-body > .heading-actions { flex-wrap: wrap; }
.modal-header h2 { color: #3d5e25; }
.modal-header .eyebrow { font-size: 9px; color: #94a880; margin-bottom: 5px; }
.position-detail-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.position-detail-heading .symbol-avatar { width: 40px; height: 40px; font-size: 12px; }
.position-detail-heading h3 { font-size: 15px; color: #476a27; }
.position-detail-heading p { font-size: 11px; margin-top: 4px; }
.position-detail-heading > .badge { margin-left: auto; }
.signal-result:not(:empty) { border-top: 1px solid #e6eddd; padding-top: 20px; margin-top: 20px; }
.bar-chart { overflow-x: auto; overflow-y: hidden; }
.bar-column, .bar-column:last-child { min-width: 90px; }
@media (max-width: 760px) {
  .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar-actions { gap: 8px; }
  .account-label { display: none; }
  .breadcrumb { gap: 8px; min-width: 0; }
  .breadcrumb > span:first-of-type { display: none; }
  .breadcrumb > svg { display: none; }
  .bar-chart { justify-content: flex-start; gap: 16px; }
  .bar-column, .bar-column:last-child { flex: 0 0 90px; }
}
.signal-result .section-note { margin-bottom: 0; }
.signal-result strong { font-size: 12px; }
.section-note { color: #6d8951; font-size: 12px; }
.section-note.form-field { display: flex; flex-direction: row; }
.section-note.error-note { color: #a66e4d; border-color: #f0dac8; background: #fff7ef; }
.footer-note { justify-content: center; flex-wrap: wrap; gap: 6px; font-size: 10px; color: #8ba174; line-height: 1.7; text-align: center; }
.footer-note span { display: inline; }
.footer-note svg { width: 10px; height: 10px; }

@media (max-width: 1250px) {
  .market-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .market-sample { grid-column: 1 / -1; border-top: 1px solid #edf1e7; margin-top: 12px; padding-top: 9px; font-size: 10px; }
  .market-sample small { width: auto; margin: 0 0 0 7px; }
  .market-item { padding: 0 13px; }
  .market-item > div { gap: 5px; }
  .market-value { font-size: 12px; }
  .stat-value { font-size: 25px; }
  .stat-label { font-size: 11px; }
  .stat-foot { font-size: 10px; gap: 5px; flex-wrap: wrap; }
  .nav-item { font-size: 12px; }
}
@media (max-width: 1050px) {
  .market-item > div { flex-wrap: wrap; }
  .bar-chart { gap: 10px; }
  .filter-row .heading-actions { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .nav-item { font-size: 14px; }
  .breadcrumb { font-size: 11px; }
  .demo-strip { font-size: 10px; }
  .demo-strip-detail { display: none; }
  .market-strip { grid-template-columns: 1fr 1fr; }
  .market-item { padding: 11px 14px; }
  .market-item > div { flex-wrap: nowrap; }
  .market-name { font-size: 10px; }
  .market-value { font-size: 13px; }
  .market-sample { padding-top: 9px; padding-bottom: 0; margin-top: 0; }
  .stat-value { font-size: 25px; }
  .stat-label { font-size: 11px; }
  .stat-value-note { font-size: 13px; }
  .stat-foot { font-size: 10px; }
  .card-title { font-size: 14px; }
  .card-subtitle { font-size: 11px; }
  .btn { font-size: 11px; }
  .data-table td { font-size: 12px; }
  .chart-legend { font-size: 10px; }
  .chart-bottom { font-size: 10px; }
  .filter-label { flex-wrap: wrap; gap: 4px; }
  .filter-row .heading-actions { gap: 13px; }
  .filter-row > div { flex-wrap: wrap; }
  .filter-row select { max-width: 100%; }
  .filter-row .tabs { gap: 20px; }
  .settings-card > .form-grid { padding: 0 17px 17px; }
  .mode-option { margin-left: 17px; margin-right: 17px; width: calc(100% - 34px); }
  .mode-option > .badge { font-size: 9px; }
  .settings-card > .connection-status { margin-left: 17px; margin-right: 17px; }
  .integration-heading { padding-left: 17px; padding-right: 17px; }
  .flow-step { grid-template-columns: 32px 1fr auto; }
  .flow-step > div { min-width: 0; }
  .flow-step > .badge { grid-column: 3; align-self: start; }
  .bar-chart { gap: 5px; margin-left: 10px; margin-right: 10px; padding-left: 5px; padding-right: 5px; }
  .bar-column { min-width: 35px; }
  .bar-track > div { width: 27px; }
  .bar-value { font-size: 10px; }
  .bar-label { font-size: 9px; }
  .position-detail-heading { flex-wrap: wrap; }
  .position-detail-heading h3 { font-size: 13px; }
  .footer-note { font-size: 10px; }
  .footer-note > span:last-child { display: inline; }
}
