
:root {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #263b33;
  background: #f5f6f3;
  font-synthesis: none;
  font-weight: 400;
  --forest: #124c38;
  --forest-dark: #103d2e;
  --green: #28845d;
  --mint: #eaf3ed;
  --ink: #263b33;
  --muted: #7d8981;
  --border: #e7ebe5;
  --surface: #fff;
  --canvas: #f5f6f3;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #96bda7; outline-offset: 3px;
}
svg { flex: 0 0 auto; vertical-align: middle; }
button svg, .nav-icon svg, .offer-icon svg { width: 19px; height: 19px; }
::selection { background: #c9e4d3; color: #123c2a; }

.sidebar {
  position: fixed; z-index: 30; inset: 0 auto 0 0; width: 226px;
  background: #fff; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 31px 18px 18px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 36px; }
.brand-icon {
  display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 12px; background: var(--forest); color: #fff;
}
.brand-icon svg { width: 24px; height: 24px; }
.brand-name { display: block; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.8px; color: #153e2d; line-height: 1.2; }
.brand-sub { display: block; font-size: 10px; letter-spacing: 1.1px; text-transform: uppercase; font-weight: 600; color: #879389; margin-top: 4px; }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav-label { padding: 5px 13px 10px; font-size: 10px; font-weight: 600; letter-spacing: 1.3px; color: #96a097; text-transform: uppercase; }
.nav-link {
  border: 0; background: transparent; display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 13px 13px; border-radius: 9px; font-size: 12px; font-weight: 500;
  color: #6b776f; text-align: left; transition: background .18s, color .18s;
}
.nav-link:hover { color: var(--forest); background: #f6f8f5; }
.nav-link.active { background: #eaf2ec; color: var(--forest); font-weight: 700; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; }
.nav-badge { margin-left: auto; font-size: 10px; line-height: 19px; min-width: 19px; border-radius: 5px; text-align: center; background: #eef0eb; color: #7b877e; }
.nav-link.active .nav-badge { background: #dce9df; color: var(--forest); }
.sidebar-bottom { margin-top: auto; padding-top: 26px; }
.sidebar-bottom .nav-link { font-size: 12px; }
.access-note { margin: 15px 4px 0; background: #f7f8f4; border: 1px solid #edf0e8; border-radius: 12px; padding: 14px 12px; font-size: 11px; line-height: 1.6; color: #8c948b; }
.access-note strong { display: block; color: #5f7163; margin-bottom: 4px; font-size: 11px; font-weight: 600; }
.workspace { margin-left: 226px; min-height: 100vh; }
.topbar {
  min-height: 78px; padding: 17px 38px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255,255,255,.7);
}
.breadcrumb { color: #8a958c; font-size: 11px; display: flex; align-items: center; gap: 9px; }
.breadcrumb strong { font-weight: 500; color: #526355; }
.breadcrumb svg { width: 14px; height: 14px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.top-actions select { font-size: 11px; padding: 9px 27px 9px 11px; border: 1px solid #e1e7de; border-radius: 7px; background: #fff; color: #536456; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: #eadfce; color: #75634a; font-size: 11px; font-weight: 700; }
.user-name { font-size: 11px; font-weight: 600; }
.user-role { display: block; font-size: 9px; font-weight: 400; color: #8b948b; margin-top: 3px; }
.top-user { display: flex; align-items: center; gap: 9px; }
.mobile-menu { display: none; background: none; border: none; padding: 4px; }
.page { padding: 29px 38px 34px; max-width: 1660px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 23px; }
.eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: #8a958a; font-weight: 600; margin: 0 0 8px; }
.page-title { font-family: 'Segoe UI', system-ui, sans-serif; font-weight: 750; font-size: clamp(24px,2.2vw,32px); line-height: 1.25; letter-spacing: -1.2px; margin: 0 0 7px; color: #263e30; }
.page-description { margin: 0; color: #889087; font-size: 12px; line-height: 1.6; }
.heading-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 2px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #dfe5dc; border-radius: 8px; padding: 10px 14px; min-height: 38px; font-size: 11px; font-weight: 600; background: #fff; white-space: nowrap; transition: background .18s, box-shadow .18s, transform .18s; }
.btn:hover { background: #f7f9f5; border-color: #bfcfc1; }
.btn.primary { background: var(--forest); color: #fff; border-color: var(--forest); }
.btn.primary:hover { background: #0b3b29; box-shadow: 0 3px 10px #124c3818; }
.btn.secondary { background: #fff; }
.btn.ghost { border-color: transparent; background: transparent; padding: 7px; min-height: 30px; color: #7d8b7f; }
.btn.ghost:hover { background: #edf2eb; color: var(--forest); }
.btn.small { min-height: 31px; padding: 7px 10px; font-size: 10px; }
.btn svg { width: 15px; height: 15px; }
.pill { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 600; line-height: 1.3; white-space: nowrap; background: #f0f2ec; color: #7d877c; }
.pill.green { background: #eaf4ec; color: #39835a; }
.pill.amber { background: #fbf1dd; color: #ab802a; }
.pill.red { background: #fbebe5; color: #ba694b; }
.pill.muted { background: #f1f3ef; color: #889282; }
.pill svg { width: 11px; height: 11px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; flex: 0 0 5px; }
.demo-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; border: 1px solid #e4e9da; border-radius: 9px; padding: 11px 14px; font-size: 10px; line-height: 1.6; color: #7c886d; background: #f0f3e9; }
.demo-banner strong { font-weight: 600; color: #586f4c; }
.demo-banner > svg { width: 15px; height: 15px; color: #879e73; }
.demo-banner .btn { margin-left: auto; }
.dashboard-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 20px; align-items: stretch; }
.card { min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 21px 23px; box-shadow: 0 2px 3px #263b3302; overflow: hidden; }
.span-3 { grid-column: span 3; }.span-4 { grid-column: span 4; }.span-5 { grid-column: span 5; }.span-6 { grid-column: span 6; }.span-7 { grid-column: span 7; }.span-8 { grid-column: span 8; }.span-12 { grid-column: span 12; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.card-title { margin: 0; display: flex; align-items: center; gap: 8px; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 13px; font-weight: 750; color: #344a39; letter-spacing: -.2px; }
.card-title svg { width: 16px; height: 16px; color: #7c9680; }
.card-kicker { margin-top: 5px; font-size: 10px; color: #9aa196; line-height: 1.5; }
.card-link { border: none; background: transparent; display: inline-flex; align-items: center; gap: 5px; padding: 0; color: #588365; font-size: 10px; font-weight: 600; white-space: nowrap; }
.card-link:hover { color: #154c36; text-decoration: underline; }
.card-link svg { width: 13px; height: 13px; }
.financial-metrics { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; padding-bottom: 20px; }
.metric { min-width: 0; }
.metric + .metric { border-left: 1px solid #edf0e8; padding-left: 19px; }
.metric-label { font-size: 10px; color: #8a9487; margin-bottom: 8px; line-height: 1.4; }
.metric-value { font-family: 'Segoe UI', system-ui, sans-serif; font-size: clamp(21px,2.1vw,29px); line-height: 1.15; font-weight: 750; color: #274c35; letter-spacing: -1.1px; white-space: nowrap; }
.metric-value small { font-size: 14px; color: #80917c; font-weight: 500; letter-spacing: 0; }
.metric-change { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 9px; color: #94a08e; margin-top: 7px; line-height: 1.4; }
.metric-change strong { color: #4a9465; font-weight: 600; }
.metric-change.negative strong { color: #be7953; }
.chart { position: relative; width: 100%; min-height: 135px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: 'Segoe UI',system-ui,sans-serif; font-size: 9px; fill: #a0a79b; }
.chart .grid-line { stroke: #edf0e8; stroke-dasharray: 3 4; }
.chart .chart-line { fill: none; stroke: #4b8b5b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart-tooltip { position: absolute; z-index: 2; transform: translate(-50%,-100%); pointer-events: none; background: #234b33; color: #fff; border-radius: 6px; padding: 7px 10px; font-size: 10px; box-shadow: 0 3px 10px #2143321c; white-space: nowrap; }
.chart-tooltip::after { content: ''; position: absolute; width: 7px; height: 7px; background: inherit; transform: rotate(45deg); left: calc(50% - 3.5px); bottom: -3px; }
.chart-legend { display: flex; align-items: center; gap: 17px; margin-top: 12px; color: #9ca495; font-size: 9px; }
.chart-legend > span { display: inline-flex; gap: 6px; align-items: center; }
.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4b8b5b; }
.legend-dot.muted { background: #cfd8c8; }
.offer-row, .expiry-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-width: 0; }
.offer-row + .offer-row, .expiry-row + .expiry-row { border-top: 1px solid #f0f2ec; }
.offer-row:first-child, .expiry-row:first-child { padding-top: 0; }
.offer-row:last-child, .expiry-row:last-child { padding-bottom: 0; }
.offer-icon { width: 39px; height: 43px; flex: 0 0 39px; border: 1px solid #ecefe6; border-radius: 8px; background: #f5f7f1; display: grid; place-items: center; color: #849780; }
.offer-icon.amber { background: #fbf5e9; border-color: #f5ebd8; color: #c1a06c; }
.offer-icon.rose { background: #f8efea; border-color: #f2e7e0; color: #b99585; }
.offer-icon.blue { background: #eef4f4; border-color: #e4edef; color: #80a0a4; }
.row-content { min-width: 0; flex: 1; }
.row-title { font-size: 11px; font-weight: 600; line-height: 1.45; color: #4a5f4b; margin: 0; }
.row-meta { margin-top: 4px; font-size: 9px; line-height: 1.5; color: #a0a597; }
.row-right { text-align: right; flex: 0 0 auto; }
.row-right strong { color: #487a4d; font-weight: 600; font-size: 12px; }
.row-right small { display: block; color: #a2aa9a; font-size: 9px; margin-top: 4px; }
.divider { height: 1px; border: 0; background: #edf0e8; margin: 16px 0; }
.card-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf0e8; padding-top: 15px; margin-top: 17px; color: #9aa391; font-size: 9px; gap: 10px; }
.expiry-row { gap: 10px; }
.expiry-row .row-title { font-size: 10px; }
.expiry-row .row-meta { font-size: 9px; }
.expiry-row .pill { font-size: 8px; }
.expiry-row .offer-icon { width: 31px; height: 35px; flex-basis: 31px; }
.expiry-summary { display: flex; gap: 16px; padding-bottom: 15px; margin-bottom: 7px; border-bottom: 1px solid #eef0e8; }
.expiry-summary strong { display: block; font-family: 'Segoe UI',system-ui,sans-serif; font-size: 24px; font-weight: 750; letter-spacing: -.8px; color: #4c5d3b; }
.expiry-summary span { font-size: 9px; color: #9ba18e; }
.progress { height: 5px; background: #eef1e9; border-radius: 9px; overflow: hidden; width: 100%; }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: #72a076; transition: width .5s ease; }
.progress-fill.amber { background: #d8ba77; }
.progress-fill.complete { background: #468264; }
.goal-row { margin: 0 0 19px; }
.goal-row:last-child { margin-bottom: 0; }
.goal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 10px; font-weight: 500; color: #52664d; }
.goal-top strong { font-size: 10px; color: #77a078; font-weight: 600; }
.goal-stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 8px; color: #a3aa98; }
.goal-stats strong { font-weight: 500; color: #8f9c83; }
.mini-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.mini-stat { min-width: 0; }
.mini-stat strong { display: block; font-family: 'Segoe UI',system-ui,sans-serif; font-size: 25px; letter-spacing: -.9px; font-weight: 750; color: #365940; line-height: 1.2; }
.mini-stat span { display: block; margin-top: 5px; font-size: 9px; color: #99a18e; line-height: 1.4; }
.mini-stat small { font-size: 11px; font-weight: 500; color: #91a084; }
.svd-bars { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; height: 90px; padding: 0 7px; }
.bar-column { display: flex; flex-direction: column; align-items: center; flex: 1; height: 100%; justify-content: flex-end; gap: 7px; }
.bar-track { height: 66px; width: 100%; max-width: 28px; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; min-height: 3px; border-radius: 4px 4px 0 0; background: #c5d8bc; }
.bar-column:last-child .bar-fill { background: #709d6e; }
.bar-label { color: #a2aa95; font-size: 8px; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 20px; flex-wrap: wrap; }
.search-field { display: flex; align-items: center; gap: 9px; min-width: 220px; max-width: 410px; flex: 1; background: #fff; border: 1px solid #e0e7da; border-radius: 9px; padding: 11px 13px; }
.search-field svg { color: #9ba991; width: 15px; height: 15px; }
.search-field input { color: #4d644a; background: transparent; border: none; width: 100%; min-width: 0; padding: 0; font-size: 11px; outline: none; }
.search-field input::placeholder { color: #a8b19e; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; border: 1px solid #e5e9df; background: #eef1e9; border-radius: 9px; }
.filter-btn { border: none; padding: 7px 12px; border-radius: 6px; background: transparent; color: #8d9a80; font-size: 10px; font-weight: 500; }
.filter-btn:hover { color: var(--forest); }
.filter-btn.active { color: var(--forest); background: #fff; box-shadow: 0 1px 4px #28472e0a; }
.detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.detail-grid > .card { grid-column: auto; }
.detail-grid .offer-icon { width: 45px; height: 49px; }
.detail-grid .row-title { font-size: 14px; }
.detail-grid .row-meta { font-size: 10px; }
.detail-grid .card-head { margin-bottom: 16px; }
.offer-description { font-size: 11px; line-height: 1.7; color: #8b9983; margin: 16px 0; }
.offer-discount { font-family: 'Segoe UI',system-ui,sans-serif; font-size: 31px; letter-spacing: -1px; color: #3b7950; font-weight: 700; }
.table-wrap { overflow-x: auto; width: 100%; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; white-space: nowrap; }
.data-table th { font-size: 9px; letter-spacing: .4px; text-transform: uppercase; color: #9ca692; font-weight: 600; padding: 13px 15px; border-bottom: 1px solid #e7ece2; background: #fafbf8; }
.data-table td { padding: 16px 15px; border-bottom: 1px solid #edf1e8; color: #78896d; vertical-align: middle; }
.data-table td:first-child { color: #4a6446; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #fbfcf9; }
.data-table .row-title { font-size: 11px; }
.data-table .row-meta { font-size: 9px; }
.data-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .pill { font-size: 9px; }
.summary-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.summary-item { background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 19px 21px; }
.summary-item .metric-label { margin-bottom: 10px; }
.summary-number { font-family: 'Segoe UI',system-ui,sans-serif; font-size: 27px; font-weight: 750; letter-spacing: -1px; color: #3c603e; }
.summary-item small { display: block; color: #9aa78d; margin-top: 7px; font-size: 10px; line-height: 1.5; }
.empty-state { padding: 55px 24px; text-align: center; color: #9aa88c; font-size: 12px; line-height: 1.8; }
.empty-state svg { width: 32px; height: 32px; color: #bccab2; margin-bottom: 12px; }
.empty-state h3 { color: #5a7650; font-size: 16px; margin: 0 0 8px; }
.restricted-panel { padding: 45px 24px; border: 1px dashed #dfe7d7; border-radius: 16px; background: #f8faf5; text-align: center; font-size: 12px; line-height: 1.8; color: #95a489; }
.restricted-panel h3 { margin: 12px 0 8px; font-size: 16px; font-weight: 600; color: #627d55; }
.restricted-panel svg { width: 28px; height: 28px; color: #a8bb99; }
.connection-card { display: flex; align-items: flex-start; gap: 18px; padding: 22px; border: 1px solid #e4eadd; border-radius: 12px; margin-bottom: 15px; background: #fff; }
.connection-card h3 { font-size: 13px; color: #4b6c44; margin: 0 0 7px; }
.connection-card p { font-size: 11px; line-height: 1.7; color: #92a084; margin: 0; }
.connection-card > svg { color: #8aa17a; }
.connection-card .btn { margin-left: auto; }
.connection-card .row-content { flex: 1; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-field label { font-size: 10px; font-weight: 600; color: #728665; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 40px; border: 1px solid #dce6d5; border-radius: 7px; color: #56704b; background: #fff; padding: 10px 11px; font-size: 11px; outline: none; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #8eb17f; box-shadow: 0 0 0 3px #dcebd55c; }
.form-field textarea { resize: vertical; min-height: 85px; line-height: 1.6; }
.form-field small { font-size: 10px; line-height: 1.5; color: #9dac90; }
.field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; background: #193a2d55; backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { width: 100%; max-width: 540px; max-height: calc(100dvh - 48px); overflow-y: auto; background: #fff; padding: 27px; border: 1px solid #e5ecdf; border-radius: 18px; box-shadow: 0 15px 80px #15342130; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.modal-header h2 { font-family: 'Segoe UI',system-ui,sans-serif; color: #365b32; font-size: 19px; letter-spacing: -.5px; margin: 0; }
.modal-header p { font-size: 11px; color: #94a388; margin: 7px 0 0; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding-top: 16px; margin-top: 20px; border-top: 1px solid #edf1e7; }
.toast { position: fixed; z-index: 150; right: 28px; bottom: 25px; max-width: min(420px,calc(100vw - 40px)); background: #234e35; color: #fff; padding: 14px 19px; border-radius: 11px; box-shadow: 0 7px 28px #234e3526; display: flex; gap: 9px; align-items: center; font-size: 11px; line-height: 1.6; animation: toast-in .2s ease-out; }
.toast svg { width: 17px; height: 17px; }
.helper-text { font-size: 10px; color: #9baa8b; line-height: 1.7; margin: 12px 0 0; }
.muted-text { color: #95a287; }
.text-green { color: #4a8d5b; }
.text-amber { color: #ba954a; }
.page-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 9px; color: #a5ad9c; margin-top: 23px; }
.page-footer span { display: inline-flex; align-items: center; gap: 5px; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 12px 18px; border-radius: 8px; color: #fff; background: var(--forest); transform: translateY(-160%); font-size: 12px; }
.skip-link:focus { transform: translateY(0); }
.brand-name { font-size: 22px; font-weight: 750; letter-spacing: -1.1px; }
.brand-period { color: #83a77b; }
.nav-label { font-size: 8px; letter-spacing: 1px; padding-top: 0; }
.team-space { display: flex; align-items: center; gap: 10px; padding: 12px 11px; margin: 0 1px 8px; border: 1px solid #e7ede2; border-radius: 10px; background: #f7f9f4; color: #78906d; }
.team-space > svg { width: 17px; height: 17px; }
.team-space strong { display: block; font-size: 10px; color: #6b8061; font-weight: 600; }
.team-space small { display: block; font-size: 9px; color: #a2ae98; margin-top: 4px; }
.sidebar-note { font-size: 11px; line-height: 1.7; color: #a0aa97; padding: 18px 12px 16px; }
.version-label { display: block; font-size: 7px; font-weight: 500; letter-spacing: 1px; color: #b3bbae; padding-left: 12px; }
.top-demo { color: #98a28f; font-size: 10px; margin-left: -8px; }
.top-actions > .status-dot { color: #8aa97b; }
.view-switch { display: flex; align-items: center; margin-left: 10px; padding-left: 20px; border-left: 1px solid #e7ece2; }
.view-switch select { border-color: #e7ece2; font-size: 10px; min-height: 33px; color: #718466; }
.today-label { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #8e9d83; padding-bottom: 4px; }
.today-label svg { width: 15px; height: 15px; color: #9eaf91; }
.demo-banner > a { margin-left: auto; color: #728d5f; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.demo-banner > a svg { width: 14px; height: 14px; }
.demo-banner > a:hover { color: #315d2e; }
.card-head .card-kicker { display: block; font-size: 8px; letter-spacing: .9px; margin: 0 0 6px; line-height: 1.4; color: #9aa792; }
.card-kicker + .card-title { font-size: 14px; line-height: 1.45; }
.clickable-card { display: flex; flex-direction: column; cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.clickable-card:hover { border-color: #cbdac2; box-shadow: 0 5px 18px #29462a05; }
.card-link { min-width: 24px; min-height: 24px; justify-content: flex-end; color: #91a587; }
.card-link > svg { width: 16px; height: 16px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 17px; border-top: 1px solid #edf0e8; color: #a2aa97; font-size: 9px; }
.card-bottom a { display: inline-flex; align-items: center; gap: 6px; color: #729266; font-weight: 600; white-space: nowrap; }
.card-bottom a:hover { color: #2c612f; }
.card-bottom a svg { width: 13px; height: 13px; }
.card-bottom strong { color: #778b68; font-weight: 600; }
.card-bottom .pill { font-size: 8px; }
.financial-metrics .metric-label, .financial-metrics .metric-value, .financial-metrics .metric-note { display: block; }
.metric-value { font-size: clamp(21px,2vw,29px); }
.metric-note { color: #a1ab94; font-size: 8px; margin-top: 9px; line-height: 1.4; }
.metric-change small { color: #a1ab94; font-size: 8px; font-weight: 400; }
.metric-change { color: #58966a; font-size: 9px; font-weight: 500; }
.metric-change.negative { color: #b3835c; }
.chart-legend { justify-content: space-between; gap: 8px; margin-top: 9px; }
.chart-legend > a { color: #78966d; display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.chart-legend > a svg { width: 13px; height: 13px; }
.chart .axis-label { fill: #a0ac94; font-size: 9px; }
.overview-offers { margin-bottom: 24px; }
.overview-offers .offer-row { padding: 14px 0; }
.overview-offers .offer-row:first-child { padding-top: 0; }
.overview-offers .offer-row:last-child { padding-bottom: 0; }
.row-title, .row-meta { display: block; }
.offer-icon.peach { background: #fbf0e7; border-color: #f5e7d9; color: #bf9d7a; }
.expiry-callout { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 0 8px; background: #faf5e9; border: 1px solid #f4eddb; border-radius: 9px; color: #a28c5e; font-size: 10px; line-height: 1.5; }
.callout-number { font-size: 29px; line-height: 1; letter-spacing: -1px; color: #b39962; font-weight: 650; }
.expiry-callout small { font-size: 8px; color: #b1a17f; }
.callout-icon { margin-left: auto; color: #d0bc8c; }
.callout-icon svg { width: 23px; height: 23px; stroke-width: 1.2; }
.expiry-row { padding: 12px 0; }
.expiry-row .row-title { font-size: 10px; }
.expiry-row:last-of-type { padding-bottom: 16px; }
.svd-score { display: flex; justify-content: center; margin: -2px 0 18px; }
.score-ring { position: relative; width: 114px; height: 114px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#799d6a calc(var(--score,0) * 1%),#eef2e9 0); transform: rotate(-90deg); }
.score-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.score-ring > div { position: relative; text-align: center; transform: rotate(90deg); }
.score-ring strong { display: block; color: #4d7241; font-size: 26px; letter-spacing: -1.2px; font-weight: 650; line-height: 1.2; }
.score-ring strong small { font-size: 14px; font-weight: 500; margin-left: 2px; letter-spacing: 0; }
.score-ring span { display: block; font-size: 6px; letter-spacing: .9px; margin-top: 4px; color: #a7b19a; }
.svd-score + .mini-stats { text-align: center; gap: 5px; margin-bottom: 15px; }
.svd-score + .mini-stats .mini-stat + .mini-stat { border-left: 1px solid #edf1e6; }
.svd-score + .mini-stats strong { font-size: 20px; color: #79916b; }
.svd-score + .mini-stats span { font-size: 8px; margin-top: 3px; }
.svd-footnote { font-size: 9px; color: #a5ae9a; line-height: 1.65; margin: 10px 0 15px; }
.svd-footnote > svg { width: 11px; height: 11px; vertical-align: -1px; color: #a8b29c; margin-right: 3px; }
.goal-top > strong { font-weight: 500; font-size: 10px; color: #687f5b; line-height: 1.5; }
.goal-top > span { font-size: 10px; color: #83a073; white-space: nowrap; }
.goals-overview { margin-top: 7px; margin-bottom: 17px; }
.goals-overview .goal-row { margin-bottom: 23px; }
.goals-overview .goal-row:last-child { margin-bottom: 0; }
.goals-overview .goal-top { margin-bottom: 9px; }
.goals-overview .goal-stats { font-size: 8px; margin-top: 7px; }
.summary-strip { grid-template-columns: repeat(auto-fit,minmax(155px,1fr)); }
.summary-item > span { display: block; font-size: 10px; color: #99a78d; margin-bottom: 9px; line-height: 1.5; }
.summary-number { display: block; }
.summary-number.small-number { font-size: 24px; }
.promotion-card { display: flex; flex-direction: column; padding: 22px; }
.promotion-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.promotion-top .offer-icon { width: 43px; height: 46px; flex-basis: 43px; }
.promotion-top .pill { font-size: 12px; padding: 7px 9px; font-weight: 650; }
.promotion-card > .card-kicker { text-transform: uppercase; font-size: 8px; letter-spacing: 1px; color: #a3b097; margin: 0 0 7px; }
.promotion-card h2, .goal-detail h2 { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.3px; color: #56734b; margin: 0; }
.promotion-description { font-size: 11px; line-height: 1.75; color: #99a98c; margin: 12px 0 20px; }
.promotion-dates { display: flex; align-items: center; gap: 7px; font-size: 9px; color: #9baa8d; margin-top: auto; }
.promotion-dates svg { width: 13px; height: 13px; color: #aebda1; }
.promotion-stock { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 9px; color: #9eae8e; padding: 15px 0; margin: 15px 0 17px; border-top: 1px solid #edf1e7; border-bottom: 1px solid #edf1e7; }
.promotion-stock > span:last-child { color: #b0bba4; }
.full-width { width: 100%; }
.goal-detail { display: flex; flex-direction: column; }
.goal-detail .promotion-top { margin-bottom: 17px; }
.goal-detail .promotion-top .pill { font-size: 9px; padding: 5px 7px; }
.goal-detail .promotion-description { min-height: 38px; margin-bottom: 20px; }
.goal-detail .goal-row { margin-bottom: 20px; margin-top: auto; }
.goal-detail .goal-top { margin-bottom: 10px; }
.goal-detail .goal-top > strong { display: none; }
.goal-detail .goal-top > span { margin-left: auto; font-size: 20px; font-weight: 600; }
.goal-detail .goal-stats { font-size: 9px; margin-top: 10px; }
.goal-owner { display: flex; align-items: center; gap: 6px; border-top: 1px solid #edf1e7; padding-top: 15px; color: #9ead8d; font-size: 9px; }
.goal-owner > svg { width: 13px; height: 13px; color: #b4c1a7; }
.goal-owner > span { margin-left: auto; color: #afbaa2; }
.text-btn { border: 0; background: transparent; padding: 0; color: #739662; font-size: 9px; font-weight: 500; }
.text-btn:hover { color: #365e2c; text-decoration: underline; }
.period-select { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #dfe7d7; border-radius: 8px; color: #8fa17d; background: #fff; }
.period-select > svg { width: 15px; height: 15px; }
.period-select select { min-width: 180px; border: none; outline: none; background: transparent; font-size: 10px; color: #7d916b; }
.result-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 0; color: #9aaa89; font-size: 10px; line-height: 1.5; }
.result-line > strong { color: #7b946b; font-weight: 500; white-space: nowrap; }
.result-line.subtotal { border-top: 1px solid #e6eddd; margin-top: 5px; padding-top: 15px; color: #678752; font-weight: 600; }
.result-line.subtotal > strong { color: #678752; font-weight: 600; }
.result-total { background: #f0f5e9; border: 1px solid #e8efdf; border-radius: 8px; margin-top: 11px; padding: 12px 10px; color: #759b5a; font-weight: 600; }
.result-total > strong { color: #59823f; font-weight: 650; font-size: 12px; }
.category-row { margin-bottom: 19px; }
.category-row:last-child { margin-bottom: 0; }
.category-row > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11px; color: #839b71; margin-bottom: 10px; }
.category-row strong { font-weight: 500; color: #799665; }
.category-row small { display: block; text-align: right; margin-top: 6px; font-size: 8px; color: #a7b399; }
.generic-number { color: #72985b; font-size: 45px; font-weight: 650; letter-spacing: -2px; line-height: 1.2; margin: 6px 0 17px; }
.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.step-row { display: flex; align-items: flex-start; gap: 11px; padding-top: 2px; }
.step-number { display: grid; place-items: center; width: 28px; height: 31px; flex: 0 0 28px; font-size: 9px; font-weight: 600; color: #91a27e; background: #f2f6ed; border: 1px solid #e8efdf; border-radius: 6px; }
.step-row .goal-top { margin-bottom: 8px; }
.step-row .goal-top strong { font-size: 10px; color: #8a9d78; }
.step-row .goal-top > span { font-size: 9px; }
.step-row .row-meta { font-size: 8px; line-height: 1.5; margin-top: 7px; }
.svd-bars .bar-column > strong { font-size: 10px; font-weight: 500; color: #8da578; margin-bottom: 1px; }
.svd-bars + .divider { margin-top: 23px; }
.card > h3 { font-size: 13px; font-weight: 500; color: #6d8b59; margin: 20px 0 9px; }
.card > .page-description + .pill { margin-top: 19px; }
.permission-row { display: flex; align-items: flex-start; gap: 12px; padding: 5px 0 20px; }
.permission-row + .permission-row { padding-top: 17px; border-top: 1px solid #edf1e6; }
.permission-row .avatar { width: 31px; height: 31px; flex: 0 0 31px; background: #ebf1e4; color: #839f6e; font-size: 10px; }
.permission-row .team-avatar { background: #f3eee3; color: #b4a079; }
.permission-row h3 { color: #7c9667; font-size: 11px; font-weight: 600; margin: 2px 0 7px; }
.permission-row p { color: #a0ae92; font-size: 10px; line-height: 1.75; margin: 0; }
.access-warning { display: flex; align-items: flex-start; gap: 8px; padding: 13px; border: 1px solid #f0e9d6; border-radius: 8px; background: #faf6eb; color: #b3a274; }
.access-warning > svg { width: 14px; height: 14px; margin-top: 2px; flex: 0 0 14px; }
.access-warning p { color: #b3a274; margin: 0; font-size: 9px; line-height: 1.7; }
.access-warning strong { font-weight: 600; color: #a18c5b; }
.connection-card { padding: 15px 0; border: none; border-bottom: 1px solid #edf1e6; border-radius: 0; margin: 0; gap: 11px; align-items: center; }
.connection-card .offer-icon { width: 32px; height: 37px; flex-basis: 32px; }
.connection-card .offer-icon > svg { width: 16px; height: 16px; }
.connection-card .row-content > strong { font-size: 10px; font-weight: 600; color: #789065; }
.connection-card p { font-size: 9px; margin-top: 5px; }
.connection-card .btn { margin-left: 0; font-size: 8px; padding: 7px 8px; min-height: 29px; }
.connection-card .row-content + .btn { margin-left: auto; }
.import-status { margin-top: 18px; font-size: 10px; color: #a2b18f; background: #f7f9f3; border-radius: 7px; padding: 12px; }
.source-status { display: flex; align-items: center; gap: 27px; flex-wrap: wrap; padding-bottom: 4px; }
.source-status > span { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #a1af90; }
.amber-dot { background: #d7bd7f; }
.table-card { padding: 0; }
.data-table th { font-size: 8px; letter-spacing: .7px; padding: 17px 20px; color: #a2af91; }
.data-table td { padding: 18px 20px; font-size: 10px; }
.data-table td > strong { font-weight: 500; color: #7d9668; }
.data-table td > small { display: block; font-size: 8px; color: #a8b399; margin-top: 6px; }
.data-table .action-cell { max-width: 240px; white-space: normal; font-size: 9px; line-height: 1.65; color: #a6b08f; }
.table-foot { border-top: 1px solid #edf1e6; background: #fbfcf9; padding: 14px 20px; font-size: 9px; color: #a8b396; }
.text-red { color: #b27f61 !important; }
.negative { color: #b3835c; }
.form-field > span { font-size: 10px; font-weight: 600; color: #8b9e79; }
.modal form > .page-description { margin-top: -5px; margin-bottom: 20px; }
.modal form > p:not([class]) { color: #849b6e; font-size: 12px; margin-bottom: 22px; }
.page-footer { padding: 0 38px 23px; margin: 0 auto; max-width: 1660px; font-size: 8px; }
.page-footer svg { width: 12px; height: 12px; color: #acb99e; }
.campaign-select { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #dfe7d7; border-radius: 8px; color: #8fa17d; background: #fff; }
.campaign-select select { min-width: 155px; border: none; background: transparent; font-size: 10px; color: #7d916b; }
.campaign-select > svg { width: 15px; height: 15px; }
.svd-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 5px 0 22px; }
.svd-kpis > div { min-width: 0; }
.svd-kpis strong { display: block; font-weight: 650; font-size: 24px; color: #618447; letter-spacing: -.8px; line-height: 1.2; }
.svd-kpis small, .svd-kpis span { display: block; color: #9eac8c; font-size: 8px; line-height: 1.5; margin-top: 6px; }
.span-3 .svd-kpis { grid-template-columns: 1fr 1fr; row-gap: 18px; }
.span-3 .svd-kpis > div:last-child { grid-column: span 2; border-top: 1px solid #edf1e7; padding-top: 15px; }
.span-3 .svd-kpis > div:last-child strong { font-size: 26px; }
.funnel-row { display: grid; grid-template-columns: 135px minmax(0,1fr) 82px 60px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f3eb; }
.funnel-row:last-child { border-bottom: 0; }
.funnel-label { font-size: 10px; font-weight: 500; color: #829d6c; line-height: 1.5; }
.funnel-label small { display: block; font-weight: 400; color: #abb79b; font-size: 8px; margin-top: 3px; }
.funnel-track { min-width: 0; height: 16px; border-radius: 4px; overflow: hidden; background: #f0f4e9; }
.funnel-bar { height: 16px; max-width: 100%; min-width: 2px; border-radius: 4px; background: #9bb689; }
.funnel-row:nth-child(3n) .funnel-bar { background: #88a976; }
.funnel-row:last-child .funnel-bar { background: #688e51; }
.funnel-value { text-align: right; color: #78945f; font-size: 10px; font-weight: 500; white-space: nowrap; }
.funnel-value small { display: block; color: #a9b498; font-size: 8px; font-weight: 400; margin-top: 4px; }
.conversion { text-align: right; font-size: 9px; color: #9db18b; line-height: 1.5; }
.conversion strong { display: block; font-size: 11px; color: #8ba375; font-weight: 500; }
.svd-overview-lead { margin: 0 0 18px; }
.svd-overview-lead > strong { display: block; font-size: 35px; font-weight: 650; letter-spacing: -1.2px; line-height: 1.15; color: #4a7441; }
.svd-overview-lead > span { display: block; font-size: 11px; color: #96a586; margin-top: 6px; }
.svd-overview-lead + .mini-stats { margin-bottom: 17px; gap: 10px; }
.svd-overview-lead + .mini-stats .mini-stat strong { font-size: 19px; letter-spacing: -.6px; white-space: nowrap; color: #719062; }
.svd-overview-lead + .mini-stats .mini-stat span { font-size: 9px; line-height: 1.5; }
.svd-conversion { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #edf1e6; border-bottom: 1px solid #edf1e6; color: #a1b08e; font-size: 10px; }
.svd-conversion > strong { font-size: 13px; color: #7b9b67; font-weight: 600; }
.funnel-header { display: grid; grid-template-columns: 135px minmax(0,1fr) 82px 60px; gap: 12px; font-size: 10px; color: #8b9d77; padding-bottom: 10px; border-bottom: 1px solid #e8eedf; }
.funnel-header > span:nth-child(n+3) { text-align: right; }
.funnel-label { display: inline-flex; align-items: center; gap: 7px; color: #789363; font-size: 11px; }
.funnel-label > span { display: inline-grid; place-items: center; width: 24px; min-width: 24px; height: 24px; border-radius: 5px; background: #f2f6eb; color: #93a57d; font-size: 9px; flex-shrink: 0; }
.funnel-track { height: auto; min-height: 30px; overflow: visible; background: transparent; }
.funnel-track > span { display: block; position: relative; font-size: 10px; color: #7c916a; margin-top: 5px; line-height: 1.3; }
.funnel-track .funnel-bar { height: 12px; }
.funnel-row .progress { height: 16px; border-radius: 4px; }
.funnel-row .progress-fill { border-radius: 4px; background: #9bb689; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1700px) {
  .page { padding-top: 36px; }
  .card { padding: 25px 27px; }
  .dashboard-grid { gap: 24px; }
  .offer-row, .expiry-row { padding-top: 16px; padding-bottom: 16px; }
}
@media (max-width: 1220px) {
  .sidebar { width: 205px; padding-left: 14px; padding-right: 14px; }
  .workspace { margin-left: 205px; }
  .topbar { padding-left: 26px; padding-right: 26px; }
  .page { padding: 25px 26px; }
  .dashboard-grid { gap: 15px; }
  .card { padding: 18px; }
  .card-head { margin-bottom: 18px; }
  .metric + .metric { padding-left: 12px; }
  .metric-value { font-size: 24px; }
  .financial-metrics { gap: 9px; }
  .metric-label { font-size: 9px; }
  .row-title { font-size: 10px; }
  .card-title { font-size: 12px; }
  .detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .summary-strip { gap: 12px; }
  .summary-item { padding: 16px; }
  .summary-number { font-size: 24px; }
}
@media (max-width: 1020px) {
  .sidebar { width: 190px; padding-left: 11px; padding-right: 11px; }
  .brand { padding-left: 8px; gap: 8px; }
  .brand-name { font-size: 18px; }
  .brand-icon { width: 33px; height: 33px; flex-basis: 33px; }
  .brand-sub { font-size: 8px; }
  .nav-link { font-size: 11px; gap: 9px; padding-left: 11px; padding-right: 11px; }
  .workspace { margin-left: 190px; }
  .topbar { padding: 17px 21px; }
  .page { padding: 24px 21px; }
  .page-heading { align-items: flex-start; }
  .heading-actions { padding-top: 4px; }
  .page-title { font-size: 27px; }
  .dashboard-grid > .span-7, .dashboard-grid > .span-5 { grid-column: span 12; }
  .dashboard-grid > .span-3, .dashboard-grid > .span-4 { grid-column: span 6; }
  .dashboard-grid > .span-8 { grid-column: span 12; }
  .financial-metrics { grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; }
  .metric-value { font-size: 29px; }
  .metric-label { font-size: 10px; }
  .summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .top-actions { gap: 10px; }
  .user-name { display: none; }
  .chart { min-height: 150px; }
  .offer-row .row-title { font-size: 12px; }
  .card-title { font-size: 13px; }
  .detail-grid { gap: 15px; }
}
@media (max-width: 750px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: 226px; box-shadow: 10px 0 50px #24442b15; padding: 27px 18px 18px; }
  .sidebar.open { transform: translateX(0); }
  .brand { padding: 0 12px 30px; }
  .brand-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 9px; }
  .nav-link { font-size: 12px; padding: 13px; gap: 12px; }
  .workspace { margin-left: 0; }
  .topbar { padding: 14px 20px; min-height: 65px; gap: 10px; }
  .mobile-menu { display: inline-flex; }
  .breadcrumb { margin-right: auto; font-size: 10px; gap: 5px; }
  .breadcrumb > span:first-child { display: none; }
  .top-actions { gap: 9px; }
  .top-actions select { max-width: 148px; font-size: 10px; padding-left: 8px; padding-right: 18px; }
  .top-actions > .pill { display: none; }
  .avatar { width: 30px; height: 30px; font-size: 10px; }
  .page { padding: 23px 20px 30px; }
  .page-heading { gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
  .page-title { font-size: 28px; }
  .page-description { font-size: 11px; max-width: 450px; }
  .heading-actions { width: 100%; padding-top: 0; justify-content: flex-start; }
  .heading-actions > .btn { flex: 0 1 auto; }
  .demo-banner { align-items: flex-start; padding: 11px; font-size: 9px; gap: 8px; }
  .demo-banner > svg { margin-top: 2px; }
  .demo-banner .btn { font-size: 9px; padding: 5px 7px; min-height: 26px; }
  .dashboard-grid { gap: 16px; }
  .dashboard-grid > .card { grid-column: span 12; }
  .card { padding: 21px; }
  .card-title { font-size: 13px; }
  .card-head { margin-bottom: 21px; }
  .card-link { font-size: 10px; }
  .row-title { font-size: 11px; }
  .financial-metrics { gap: 15px; }
  .metric + .metric { padding-left: 15px; }
  .metric-value { font-size: 28px; }
  .mini-stats { gap: 20px; }
  .svd-bars { height: 110px; }
  .bar-track { height: 85px; max-width: 50px; }
  .section-toolbar { align-items: stretch; gap: 12px; }
  .search-field { max-width: none; min-width: 100%; }
  .filters { width: 100%; justify-content: space-between; }
  .filter-btn { padding: 7px 11px; }
  .detail-grid { grid-template-columns: 1fr; }
  .summary-strip { gap: 12px; }
  .summary-item { padding: 16px; }
  .summary-number { font-size: 25px; }
  .connection-card { padding: 18px; gap: 12px; flex-wrap: wrap; }
  .connection-card .btn { margin-left: 36px; }
  .modal-backdrop { padding: 16px; }
  .modal { padding: 23px; max-height: calc(100dvh - 32px); }
  .field-row { gap: 12px; }
  .toast { right: 20px; bottom: 20px; }
}
@media (max-width: 430px) {
  .topbar { padding-left: 15px; padding-right: 15px; }
  .top-actions { gap: 7px; }
  .top-actions select { max-width: 130px; }
  .page { padding: 22px 15px; }
  .page-title { font-size: 26px; }
  .card { padding: 18px; }
  .financial-metrics { gap: 9px; }
  .metric + .metric { padding-left: 10px; }
  .metric-value { font-size: 23px; }
  .metric-value small { font-size: 12px; }
  .metric-label { font-size: 9px; }
  .metric-change { font-size: 8px; }
  .card-kicker { font-size: 9px; }
  .row-meta { font-size: 8px; }
  .offer-row { gap: 9px; }
  .offer-icon { width: 34px; height: 39px; flex-basis: 34px; }
  .pill { font-size: 8px; }
  .card-title { font-size: 12px; }
  .card-link { font-size: 9px; }
  .summary-number { font-size: 22px; }
  .summary-item { padding: 14px; }
  .summary-item .metric-label { font-size: 9px; }
  .summary-item small { font-size: 9px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .modal-header h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 1220px) {
  .page-footer { padding-left: 26px; padding-right: 26px; }
  .card-kicker + .card-title { font-size: 13px; }
  .financial-metrics .metric-value { font-size: 25px; }
  .span-3 .svd-kpis strong { font-size: 23px; }
  .connection-card { gap: 9px; flex-wrap: wrap; }
  .connection-card .row-content { min-width: 140px; }
  .connection-card .row-content + .btn { margin-left: 41px; }
  .connection-card .row-content + .btn + .btn { margin-left: 0; }
  .funnel-row { grid-template-columns: 113px minmax(0,1fr) 70px 48px; gap: 8px; }
  .funnel-header { grid-template-columns: 113px minmax(0,1fr) 70px 48px; gap: 8px; }
}
@media (max-width: 1020px) {
  .financial-metrics .metric-value { font-size: 29px; }
  .page-footer { padding-left: 21px; padding-right: 21px; }
  .top-demo { display: none; }
  .view-switch { margin-left: 0; padding-left: 0; border-left: none; }
  .goals-overview { margin-top: 0; }
  .steps-grid { gap: 21px 17px; }
  .funnel-row { grid-template-columns: 130px minmax(0,1fr) 75px 55px; gap: 11px; }
  .funnel-header { grid-template-columns: 130px minmax(0,1fr) 75px 55px; gap: 11px; }
}
@media (max-width: 750px) {
  .brand-name { font-size: 22px; }
  .today-label { font-size: 9px; padding-bottom: 0; }
  .heading-actions:has(>.today-label) { width: auto; }
  .top-actions > .status-dot { display: none; }
  .view-switch select { max-width: 140px; min-height: 31px; }
  .demo-banner { flex-wrap: wrap; }
  .demo-banner > span { flex: 1; }
  .demo-banner > a { margin-left: 23px; font-size: 9px; }
  .card-kicker + .card-title { font-size: 14px; }
  .card-bottom { margin-top: 16px; padding-top: 15px; }
  .overview-offers { margin-bottom: 0; }
  .expiry-row:last-of-type { padding-bottom: 0; }
  .financial-metrics .metric-value { font-size: 29px; }
  .span-3 .svd-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 17px; gap: 12px; }
  .span-3 .svd-kpis > div:last-child { grid-column: auto; border-top: 0; padding-top: 0; }
  .span-3 .svd-kpis > div:last-child strong { font-size: 23px; }
  .svd-score { margin-top: 5px; }
  .svd-score + .mini-stats { gap: 20px; }
  .goals-overview { margin-bottom: 0; }
  .goals-overview .goal-row { margin-bottom: 21px; }
  .summary-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .summary-item > span { font-size: 9px; }
  .promotion-card { padding: 22px; }
  .promotion-description { font-size: 11px; }
  .promotion-stock { font-size: 9px; }
  .connection-card .row-content { flex: 1 1 calc(100% - 48px); }
  .connection-card .row-content + .btn { margin-left: 41px; }
  .source-status { gap: 17px; }
  .page-footer { padding-left: 20px; padding-right: 20px; font-size: 8px; }
  .funnel-row { grid-template-columns: 100px minmax(0,1fr) 66px 43px; gap: 8px; }
  .funnel-header { grid-template-columns: 100px minmax(0,1fr) 66px 43px; gap: 8px; }
  .funnel-label { font-size: 9px; }
  .funnel-value { font-size: 9px; }
  .conversion { font-size: 8px; }
  .campaign-select select { min-width: 145px; }
}
@media (max-width: 430px) {
  .financial-metrics .metric-value { font-size: 22px; }
  .financial-metrics .metric-note { font-size: 7px; }
  .metric-change { font-size: 8px; }
  .metric-change small { font-size: 7px; }
  .card-head .card-kicker { font-size: 7px; letter-spacing: .7px; }
  .card-kicker + .card-title { font-size: 13px; }
  .card-bottom { font-size: 8px; }
  .card-bottom a svg { width: 12px; height: 12px; }
  .chart-legend { font-size: 8px; }
  .card-bottom .pill { font-size: 7px; }
  .view-switch select { max-width: 125px; }
  .summary-number.small-number { font-size: 21px; }
  .steps-grid { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 90px minmax(0,1fr) 53px; gap: 8px; }
  .funnel-header { grid-template-columns: 90px minmax(0,1fr) 53px; gap: 8px; }
  .funnel-header > span:last-child { display: none; }
  .funnel-row > .conversion { display: none; }
  .funnel-value small { font-size: 7px; }
  .page-footer { padding-left: 15px; padding-right: 15px; }
  .period-select { width: 100%; justify-content: space-between; }
}

/* The home screen keeps the five priorities together on a laptop. */
@media (min-width: 1100px) {
  .overview-page .card-title { font-size: 14px; }
  .overview-page .metric-label, .overview-page .metric-note, .overview-page .metric-change,
  .overview-page .metric-change small, .overview-page .row-meta, .overview-page .row-title,
  .overview-page .card-bottom, .overview-page .goal-top > strong, .overview-page .goal-top > span,
  .overview-page .goal-stats, .overview-page .mini-stat span, .overview-page .svd-footnote,
  .overview-page .chart-legend, .overview-page .svd-conversion { font-size: 11px; }
  .overview-page .row-meta, .overview-page .metric-note { color: #8b9a7f; }
  .overview-page .card-head .card-kicker { color: #91a080; }
  .overview-page .mini-stat span { color: #90a17f; }
  .overview-page .svd-overview-lead + .mini-stats .mini-stat strong { font-size: 22px; }
  .overview-page .svd-overview-lead + .mini-stats .mini-stat span { font-size: 11px; }
  .overview-page .card-bottom a { font-size: 11px; }
  .overview-page .card-bottom > span { font-size: 10px; }
  .overview-page .svd-overview-lead > span { color: #879d74; }
  .overview-page .chart-legend > a { font-size: 10px; }
}
@media (min-width: 1100px) and (max-height: 950px) {
  .workspace:has(.overview-page) .topbar { min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  .overview-page { padding-top: 21px; padding-bottom: 21px; }
  .overview-page .page-heading { margin-bottom: 16px; align-items: center; }
  .overview-page .eyebrow { margin-bottom: 5px; font-size: 9px; }
  .overview-page .page-title { font-size: 28px; margin-bottom: 5px; }
  .overview-page .page-description { font-size: 11px; }
  .overview-page .demo-banner { padding-top: 8px; padding-bottom: 8px; margin-bottom: 16px; font-size: 11px; }
  .overview-page .dashboard-grid { gap: 16px; }
  .overview-page .card { padding: 16px 18px; }
  .overview-page .card-head { margin-bottom: 12px; min-height: 33px; }
  .overview-page .card-head .card-kicker { margin-bottom: 4px; font-size: 8px; }
  .overview-page .card-kicker + .card-title { font-size: 13px; }
  .overview-page .financial-metrics { padding-bottom: 11px; gap: 13px; }
  .overview-page .metric-label { margin-bottom: 5px; font-size: 11px; }
  .overview-page .financial-metrics .metric-value { font-size: 27px; }
  .overview-page .metric + .metric { padding-left: 13px; }
  .overview-page .metric-note, .overview-page .metric-change { font-size: 11px; margin-top: 5px; }
  .overview-page .metric-change small { font-size: 10px; }
  .overview-page .chart { min-height: 0; height: 96px; }
  .overview-page .chart svg { width: 100%; height: 96px; }
  .overview-page .chart-legend { margin-top: 6px; font-size: 10px; }
  .overview-page .chart-legend > a { font-size: 10px; }
  .overview-page .overview-offers { margin-bottom: 12px; }
  .overview-page .overview-offers .offer-row { padding: 9px 0; gap: 10px; }
  .overview-page .overview-offers .offer-row:first-child { padding-top: 0; }
  .overview-page .overview-offers .offer-row:last-child { padding-bottom: 0; }
  .overview-page .offer-icon { width: 32px; height: 35px; flex-basis: 32px; }
  .overview-page .offer-icon svg { width: 16px; height: 16px; }
  .overview-page .row-meta { font-size: 11px; margin-top: 3px; }
  .overview-page .row-title { font-size: 11px; }
  .overview-page .card-bottom { padding-top: 10px; font-size: 11px; }
  .overview-page .card-bottom a { font-size: 11px; }
  .overview-page .card-bottom > span { font-size: 11px; }
  .overview-page .expiry-callout { padding: 8px 10px; gap: 10px; margin-bottom: 4px; font-size: 11px; line-height: 1.4; }
  .overview-page .callout-number { font-size: 26px; }
  .overview-page .expiry-callout small { font-size: 11px; }
  .overview-page .callout-icon svg { width: 19px; height: 19px; }
  .overview-page .expiry-row { padding: 9px 0; }
  .overview-page .expiry-row:last-of-type { padding-bottom: 11px; }
  .overview-page .svd-overview-lead { margin-bottom: 10px; }
  .overview-page .svd-overview-lead > strong { font-size: 31px; }
  .overview-page .svd-overview-lead > span { margin-top: 3px; font-size: 11px; }
  .overview-page .svd-overview-lead + .mini-stats { margin-bottom: 10px; gap: 9px; }
  .overview-page .svd-overview-lead + .mini-stats .mini-stat strong { font-size: 20px; }
  .overview-page .svd-overview-lead + .mini-stats .mini-stat span { font-size: 11px; margin-top: 4px; }
  .overview-page .svd-conversion { padding-top: 8px; padding-bottom: 8px; font-size: 11px; }
  .overview-page .svd-conversion > strong { font-size: 12px; }
  .overview-page .svd-footnote { margin: 9px 0 11px; font-size: 11px; }
  .overview-page .goals-overview { margin-top: 0; margin-bottom: 14px; }
  .overview-page .goals-overview .goal-row { margin-bottom: 16px; }
  .overview-page .goals-overview .goal-row:last-child { margin-bottom: 0; }
  .overview-page .goal-top { gap: 8px; margin-bottom: 6px; }
  .overview-page .goal-top > strong, .overview-page .goal-top > span { font-size: 11px; }
  .overview-page .goal-stats { margin-top: 5px; font-size: 11px; }
  .workspace:has(.overview-page) .page-footer { font-size: 8px; padding-bottom: 15px; }
}
@media (min-width: 1100px) and (max-height: 800px) {
  .overview-page { padding-top: 17px; }
  .overview-page .page-title { font-size: 26px; }
  .overview-page .page-heading { margin-bottom: 13px; }
  .overview-page .demo-banner { padding-top: 7px; padding-bottom: 7px; margin-bottom: 13px; }
  .overview-page .dashboard-grid { gap: 14px; }
  .overview-page .card { padding-top: 14px; padding-bottom: 14px; }
  .overview-page .card-head { margin-bottom: 10px; }
  .overview-page .chart, .overview-page .chart svg { height: 82px; }
  .overview-page .expiry-row:nth-of-type(5) { display: none; }
  .overview-page .expiry-row:nth-of-type(4) { padding-bottom: 12px; }
  .overview-page .svd-footnote { line-height: 1.45; margin: 7px 0 10px; }
  .overview-page .goal-stats > span:last-child { display: none; }
}

/* Staff tasks share the panel's visual language without changing other areas. */
.tasks-overview.card {
  display: flex; align-items: center; gap: 24px;
  padding: 15px 20px; border-color: #dfe8dc; background: #fcfdfb;
}
.tasks-overview-heading { flex: 0 0 164px; min-width: 0; }
.tasks-overview-heading .card-kicker { display: block; margin: 0 0 3px; font-size: 8px; letter-spacing: 1px; text-transform: uppercase; }
.tasks-overview-heading h2, .tasks-overview-heading .card-title { margin: 0; font-size: 14px; color: var(--forest); }
.tasks-overview-stats { display: flex; align-items: center; gap: 27px; flex: 0 0 auto; }
.task-stat { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.task-stat strong { font-size: 23px; font-weight: 750; line-height: 1; color: var(--forest); letter-spacing: -.7px; }
.task-stat span { font-size: 11px; color: #7a897b; }
.task-stat.task-overdue strong, .task-stat.task-overdue span { color: #b66a4b; }
.tasks-overview-next { margin-left: auto; padding-left: 22px; border-left: 1px solid #e5ebdf; min-width: 0; font-size: 11px; line-height: 1.5; color: #758472; }
.tasks-overview-next > strong { display: block; font-weight: 600; color: #4d644f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tasks-overview-next > span { display: block; color: #8a9683; }
.tasks-overview > .card-link { margin-left: auto; flex: 0 0 auto; }
.tasks-overview > .card-link svg { width: 18px; height: 18px; }
.tasks-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.task-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.task-filter-select, .task-filter-select select, select.task-status-select, .task-status-select select {
  max-width: 100%; background: #fff; border: 1px solid #e1e7de; border-radius: 8px;
  min-height: 36px; padding: 8px 28px 8px 11px; color: #58705b; font-size: 11px;
}
label.task-filter-select { display: flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; }
label.task-filter-select > span { font-size: 11px; color: #82907f; }
.task-filter-select select { min-width: 147px; }
.task-count { color: #83907f; font-size: 11px; margin: 13px 2px; }
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-card.card { display: flex; align-items: flex-start; gap: 17px; padding: 21px 23px; overflow: visible; }
.task-status-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 39px; width: 39px; height: 39px; border-radius: 11px;
  color: #8a967e; background: #f2f5ed; border: 1px solid #e7ecdf;
}
.task-status-icon svg { width: 19px; height: 19px; }
.task-status-icon.pending { color: #9b8962; background: #faf4e8; border-color: #f2ead8; }
.task-status-icon.in-progress { color: #528d74; background: #edf5ef; border-color: #dcecdf; }
.task-status-icon.completed { color: #4f8762; background: #eaf4ec; border-color: #daebde; }
.task-body { flex: 1 1 auto; min-width: 0; }
.task-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0 0 7px; }
.task-topline h2, .task-card-title { font-size: 14px; line-height: 1.4; letter-spacing: -.2px; font-weight: 650; color: #344c39; margin: 0; }
.task-topline .pill { font-size: 9px; }
.task-description { margin: 0 0 12px; font-size: 12px; line-height: 1.6; color: #83907f; max-width: 800px; overflow-wrap: anywhere; }
.task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 17px; font-size: 11px; line-height: 1.5; color: #87927f; }
.task-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.task-meta svg { width: 13px; height: 13px; }
.task-meta .task-overdue { color: #b46a4d; font-weight: 600; }
.task-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 0 0 auto; margin-left: 10px; padding-top: 1px; }
.task-actions select { min-width: 128px; max-width: 165px; }
.task-actions .btn { min-height: 35px; }
.task-actions .btn.ghost { color: #81917c; }
.task-completed .task-card-title, .task-completed .task-topline h2 { text-decoration: line-through; color: #8b9686; }
.task-completed .task-description { color: #9aa392; }
.task-completed .task-status-icon { opacity: .85; }
.task-list > .empty-state { padding: 45px 20px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }

@media (max-width: 1220px) {
  .tasks-overview.card { gap: 19px; }
  .tasks-overview-heading { flex-basis: 145px; }
  .tasks-overview-stats { gap: 20px; }
  .tasks-overview-next { display: none; }
  .task-card.card { gap: 13px; padding: 19px; }
  .task-actions { flex-wrap: wrap; max-width: 165px; gap: 6px; margin-left: 4px; }
}
@media (max-width: 1020px) {
  .tasks-overview.card { flex-wrap: wrap; gap: 14px 20px; }
  .tasks-overview-heading { flex: 1 1 150px; }
  .tasks-overview-stats { order: 2; flex: 1 1 100%; justify-content: space-between; gap: 16px; padding-top: 11px; border-top: 1px solid #e8eddf; }
  .tasks-overview > .card-link { margin-left: auto; }
  .task-stat strong { font-size: 22px; }
  .task-stat span { font-size: 11px; }
  .task-actions { max-width: 140px; }
  .task-actions select { min-width: 123px; max-width: 140px; }
}
@media (max-width: 750px) {
  .tasks-overview.card { padding: 16px 19px; gap: 13px; }
  .tasks-overview-heading .card-kicker { font-size: 8px; }
  .tasks-overview-heading h2, .tasks-overview-heading .card-title { font-size: 14px; }
  .tasks-overview-stats { padding-top: 12px; gap: 9px; }
  .task-stat { flex: 1; align-items: flex-start; flex-direction: column; gap: 5px; }
  .task-stat strong { font-size: 25px; }
  .task-stat span { font-size: 11px; }
  .tasks-toolbar { gap: 12px; }
  .task-filters { width: 100%; gap: 8px; }
  .task-filters .filters { flex: 1 1 100%; }
  .task-filter-select { flex: 1 1 auto; }
  .task-filter-select select { min-width: 0; width: 100%; }
  .task-filter-select, .task-filter-select select, select.task-status-select, .task-status-select select { font-size: 12px; }
  .task-card.card { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 0 12px; padding: 18px; }
  .task-status-icon { width: 34px; height: 36px; flex-basis: 34px; border-radius: 10px; }
  .task-status-icon svg { width: 17px; height: 17px; }
  .task-body { grid-column: 2; }
  .task-topline { gap: 7px; margin-bottom: 7px; }
  .task-topline h2, .task-card-title { font-size: 14px; }
  .task-description { margin-bottom: 10px; font-size: 12px; }
  .task-meta { gap: 7px 13px; font-size: 11px; }
  .task-actions { grid-column: 2; width: 100%; max-width: none; padding: 13px 0 0; margin-left: 0; justify-content: flex-start; flex-wrap: wrap; }
  .task-actions select { max-width: none; min-width: 135px; }
  .task-actions .btn { min-height: 36px; }
}
@media (min-width: 1100px) and (max-height: 950px) {
  .overview-page .tasks-overview.card { padding: 12px 18px; gap: 22px; }
  .overview-page .tasks-overview-stats { gap: 23px; }
  .overview-page .task-stat strong { font-size: 22px; }
  .overview-page .tasks-overview-heading .card-kicker { font-size: 8px; }
  .overview-page .tasks-overview-heading h2 { font-size: 13px; }
}
/* Acceso privado y cuentas de la versión compartida. */
.auth-screen{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(ellipse at 80% 5%,#e5ede2 0,transparent 52%),#f5f6f3}
.auth-card{width:min(100%,460px);padding:38px;background:#fff;border:1px solid #e3e8df;border-radius:24px;box-shadow:0 12px 55px #193a2810}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:35px;color:#124c38}
.auth-brand strong{display:block;font-size:28px;letter-spacing:-1.2px;line-height:1.1}.auth-brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:5px;color:#7c897b}
.auth-card h1{font-size:28px;letter-spacing:-1px;line-height:1.2;color:#173f2d;margin:10px 0 12px}.auth-card>p{color:#758072;line-height:1.6;font-size:13px}.auth-card form{margin-top:26px}.auth-card .form-field{margin-bottom:17px}.auth-card .auth-footer{text-align:center;font-size:11px;color:#8b9588;margin-top:25px;margin-bottom:0}.auth-card button[type=submit]{margin-top:8px}
.form-error{padding:11px 13px;border:1px solid #edc8bd;background:#fff4ef;border-radius:9px;color:#9c4a37;font-size:12px;line-height:1.5;margin:14px 0}.helper-text{font-size:11px;color:#7d8879;line-height:1.5}
.account-button{width:100%;background:transparent;border:0;text-align:left;font:inherit;cursor:pointer}.account-name{font-size:11px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#596951}.sidebar{overflow-y:auto}.user-row-actions{display:flex;flex-wrap:wrap;gap:7px}.checkbox-field{display:flex;gap:9px;align-items:center;font-size:13px;color:#344e38;padding:10px 0}.checkbox-field input{accent-color:#124c38;width:16px;height:16px}.form-field textarea{resize:vertical;min-height:84px}.modal button:disabled,.auth-card button:disabled{opacity:.6;cursor:wait}.empty-state h3{font-size:17px;margin:8px 0;color:#214932}.empty-state p{font-size:12px;line-height:1.7;max-width:440px;margin:8px auto 16px}
@media(max-width:750px){.auth-screen{padding:18px}.auth-card{padding:28px 23px;border-radius:20px}.auth-card h1{font-size:25px}.account-name{display:none}.top-actions>.pill{font-size:10px}.user-row-actions{flex-direction:column;align-items:flex-start}}

/* Avisos de acceso e instalación en el móvil. */
.auth-card .auth-install{text-align:center;margin:20px 0 0;font-size:12px}.auth-install a{color:var(--forest);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.welcome-mail{display:flex;gap:24px;justify-content:space-between;align-items:center;border-top:1px solid var(--border);margin-top:22px;padding-top:22px}.welcome-mail-content{max-width:680px}.welcome-mail h3{margin:0 0 7px;font-size:14px;color:#344e38}.welcome-mail p{font-size:12px;color:#718071;line-height:1.6;margin:7px 0}.welcome-mail .helper-text{font-size:11px;color:#83907e}.welcome-mail-test{display:flex;flex-direction:column;align-items:flex-end;gap:9px;flex-shrink:0}.welcome-mail-test small{font-size:11px;color:#7d8981;max-width:260px;overflow-wrap:anywhere}
.mail-notice{padding:13px 16px;margin:18px 0 0;border:1px solid #d8e8db;border-radius:10px;background:#eef6ef;color:#315b3f;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.mail-notice-error{background:#fff5ee;border-color:#eed4c2;color:#914d32}
.install-screen{min-height:100vh;background:radial-gradient(ellipse at 90% 0,#e2ecdf 0,transparent 50%),var(--canvas)}.install-shell{max-width:850px;margin:0 auto;padding:46px 28px 36px}.install-brand{display:inline-flex;align-items:center;gap:12px;color:var(--forest);margin-bottom:55px}.install-brand img{display:block;border-radius:12px}.install-brand strong{font-size:28px;line-height:1.1;letter-spacing:-1px;display:block}.install-brand small{font-size:9px;letter-spacing:1.8px;display:block;color:#7c897b;margin-top:6px}.install-heading{max-width:650px}.install-heading h1{font-size:clamp(30px,5vw,43px);line-height:1.15;letter-spacing:-1.5px;margin:12px 0 16px;color:#173f2d}.install-heading>p:last-child{font-size:16px;line-height:1.7;color:#6a7d6d;margin:0;max-width:570px}.install-actions{display:flex;flex-wrap:wrap;gap:10px;margin:26px 0 30px}.install-actions .btn{font-size:13px;padding:13px 20px;min-height:44px}.install-guides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:28px}.install-guide.card{padding:25px}.install-guide h2{font-size:21px;letter-spacing:-.5px;margin:10px 0 22px;color:#274c35}.install-guide ol{margin:0;padding-left:23px;display:grid;gap:16px;color:#6a7b6c;font-size:13px;line-height:1.7}.install-guide li{padding-left:5px}.install-guide li::marker{color:#2f7852;font-weight:700}.install-guide strong{color:#36543f;font-weight:650}.install-help{padding:21px 24px;background:#eaf1e7;border-radius:14px;margin-top:22px;color:#637660;font-size:12px;line-height:1.7}.install-help>strong{font-size:13px;color:#36543f}.install-help p{margin:7px 0 0}.install-footer{font-size:11px;color:#8b9586;line-height:1.7;margin-top:24px;max-width:650px}
@media(max-width:750px){.welcome-mail{align-items:flex-start;flex-direction:column;gap:13px}.welcome-mail-test{align-items:flex-start}.install-shell{padding:28px 20px}.install-brand{margin-bottom:38px}.install-guides{grid-template-columns:1fr;gap:14px}.install-guide.card{padding:23px}.install-heading>p:last-child{font-size:14px}.install-heading h1{font-size:32px}.install-guide h2{font-size:20px}.install-help{padding:20px}.install-actions{margin-bottom:24px}}

/* Logotipo proporcionado por la farmacia, conservado completo. */
.farmacia-logo{display:block;width:100%;height:auto;object-fit:contain}
.sidebar .farmacia-brand{justify-content:center;padding:0 4px 20px;flex:0 0 auto}
.sidebar .farmacia-logo{max-width:120px;max-height:120px}
.auth-brand{justify-content:center;margin-bottom:28px}
.auth-brand .farmacia-logo{max-width:160px;max-height:160px}
.install-brand{width:min(100%,140px);justify-content:center;margin-bottom:32px}
.install-brand img.farmacia-logo{border-radius:0;max-height:140px}
.welcome-mail-test{max-width:100%}
.topbar .breadcrumb{min-width:0}
.topbar-logo{display:block;width:36px;height:36px;flex:0 0 36px;object-fit:contain}
.topbar .breadcrumb-pharmacy{white-space:nowrap;flex-shrink:0}
.topbar .breadcrumb strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .mobile-menu,.topbar .top-actions{flex-shrink:0}
@media(max-width:420px){.topbar .breadcrumb .breadcrumb-chevron,.topbar .breadcrumb strong{display:none}}

/* Día asignado y repetición de las tareas del equipo. */
.task-date-windows{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 18px}
.task-date-windows .btn{min-height:36px}
.task-recurrence-config{padding:15px 16px;margin:5px 0 17px;border:1px solid #e1e8dc;border-radius:12px;background:#f7f9f4}
.task-recurrence-toggle{padding:0;line-height:1.5;align-items:flex-start;font-weight:600}
.task-recurrence-toggle input{flex:0 0 17px;margin:2px 0 0}
#task-recurrence-fields{margin-top:17px}
#task-recurrence-fields .helper-text{margin:0;color:#71816d;line-height:1.65}
.task-recurrence-badge{white-space:normal;line-height:1.4}
.tasks-overview .task-stat span{white-space:normal;line-height:1.4;max-width:118px}
.tasks-summary .summary-item{min-width:0}
@media(max-width:750px){.task-date-windows{gap:7px;margin:18px 0 16px}.task-date-windows .btn{min-height:40px;padding:9px 13px}.task-recurrence-config{padding:14px}.tasks-overview .task-stat span{font-size:10px}}

/* Guía de instalación: dirección del panel y pasos según el móvil. */
.install-address{margin:26px 0 0;padding:22px 24px;background:#fff;border:1px solid var(--border);border-radius:14px}
.install-address h2{font-size:16px;line-height:1.4;color:#36543f;margin:0 0 16px;letter-spacing:-.2px}
.install-address label{display:block;font-size:11px;color:#7d8981;margin-bottom:7px}
.install-address input{display:block;width:100%;min-width:0;border:1px solid #dce5d9;border-radius:8px;background:#f7f9f5;color:#315b3f;font-size:14px;padding:12px;margin-bottom:13px}
.install-address .btn{min-height:42px;white-space:normal;text-align:center}
.install-address .helper-text{margin:13px 0 0;max-width:600px;line-height:1.7}
.install-platforms{display:flex;flex-wrap:wrap;gap:9px;margin-top:28px}
.install-platforms .btn{min-height:42px;padding:10px 17px;font-size:12px}
.install-platforms [aria-pressed=true]{color:#fff;background:var(--forest);border-color:var(--forest)}
.install-guides.single-guide{grid-template-columns:1fr}
.install-platforms+.install-guides{margin-top:14px}
.install-iphone-note{margin-top:16px}
.install-native-action:has(button[hidden]){display:none}
.install-footer a{color:#52715a;text-decoration:underline;text-underline-offset:3px}
.install-existing-icon{margin:22px 0 0;padding-top:18px;border-top:1px solid var(--border);font-size:12px;line-height:1.7;color:#6a7b6c}
@media(max-width:750px){.install-address{padding:20px}.install-address h2{font-size:15px}.install-address input{font-size:13px}.install-guide ol{gap:18px}}

/* Accesos individuales de OpenClaw, reservados a Dirección. */
.agent-access-card .card-head{gap:16px;flex-wrap:wrap}
.agent-access-card>.page-description{max-width:780px;margin-top:0;line-height:1.7}
.agent-access-empty{padding:20px 22px;border:1px dashed #dce6d6;border-radius:12px;background:#f8faf6;font-size:12px;color:#6e8067;line-height:1.7}
.agent-access-empty strong{color:#36543f;font-weight:600}
.agent-access-empty p{margin:5px 0 0}
.agent-access-empty .btn{margin-top:12px}
.agent-access-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.agent-access-item{min-width:0;border:1px solid #e1e8dc;border-radius:13px;padding:20px;background:#fcfdfb}
.agent-access-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.agent-access-title>div{min-width:0}
.agent-access-title h3{font-size:15px;color:#36543f;line-height:1.5;margin:0 0 4px;overflow-wrap:anywhere}
.agent-access-title small{display:block;font-size:10px;color:#829078;overflow-wrap:anywhere}
.agent-access-title code{font-size:10px}
.agent-access-title .pill{flex-shrink:0}
.agent-access-permissions{list-style:none;display:flex;flex-wrap:wrap;gap:7px;padding:0;margin:0 0 18px}
.agent-access-permissions li{font-size:10px;line-height:1.5;padding:5px 8px;border-radius:6px;background:#edf3e9;color:#55754b}
.agent-access-dates{display:grid;gap:10px;margin:0 0 18px}
.agent-access-dates>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px}
.agent-access-dates dt,.agent-access-dates dd{font-size:11px;line-height:1.6;margin:0;overflow-wrap:anywhere}
.agent-access-dates dt{color:#86947d}
.agent-access-dates dd{color:#536c48}
.agent-connector-download{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;padding-top:19px;margin-top:20px;border-top:1px solid #e8eee2}
.agent-connector-download small{display:block;flex:1 1 260px;font-size:11px;line-height:1.7;color:#7d8d75;max-width:620px}
.agent-permissions{margin:2px 0 21px;padding:12px 16px 7px;border:1px solid #e1e8dc;border-radius:11px;background:#f7f9f4;min-width:0}
.agent-permissions legend{font-size:11px;font-weight:600;color:#55734b;padding:0 5px}
.agent-permissions .checkbox-field{align-items:flex-start;font-size:12px;line-height:1.5;gap:10px;padding:7px 0}
.agent-permissions input{flex:0 0 16px;margin-top:2px}
.agent-permissions small{display:block;font-size:10px;font-weight:400;color:#829078;margin-top:3px}
.agent-secret-actions{display:flex;gap:9px;flex-wrap:wrap}
.agent-secret-actions .btn{white-space:normal;line-height:1.5}
#integration-secret{font-family:monospace;letter-spacing:2px}
#integration-secret-status{min-height:18px}
@media(max-width:750px){.agent-access-list{grid-template-columns:1fr;gap:13px}.agent-access-item{padding:17px}.agent-access-card>.card-head>.btn{min-height:40px}.agent-access-dates>div{grid-template-columns:90px minmax(0,1fr)}.agent-access-empty{padding:17px}.agent-secret-actions{flex-direction:column}.agent-secret-actions .btn{width:100%;justify-content:center;min-height:42px}.agent-permissions{padding:11px 13px 8px}}
