/* Country Stories · Approved variant 2: light navigation with confident blue accents. */
:root {
  --ink: #1f2b31;
  --blue: var(--action);
  --feature-blue: var(--action); /* One shared accent for primary surfaces. */
  --blue-light: #c2cfd8;
  --azure: #dae3e6;
  --grey: #efefef;
  --white: #ffffff;
  --paper: #f7f8f7;
  --sidebar: #e8edef;
  --muted: #5e707b;
  --line: #d5dfe3;
  --action: var(--funnel-blue);
  --funnel-blue: #4d7b98;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 14px; margin: 0; -webkit-font-smoothing: antialiased; }
:root [hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
input:disabled { background: var(--grey); color: var(--muted); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
::selection { background: var(--blue-light); color: var(--ink); }

/* Navigation and the original, unmodified brand artwork. */
.portal-brand { display: block; width: 174px; max-width: 100%; margin: 0 auto; }
.brand-logo { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.portal-sidebar { width: 238px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 30px 23px; background: var(--sidebar); border-right: 1px solid var(--line); overflow-y: auto; }
.nav-caption { font-size: 9px; letter-spacing: 1.5px; color: var(--muted); margin: 35px 10px 17px; }
.portal-sidebar nav { display: grid; gap: 7px; }
.portal-sidebar nav a, .portal-sidebar nav button { border: 0; background: none; text-align: left; padding: 13px 12px; border-radius: 6px; color: #465c69; font-size: 13px; line-height: 1.45; transition: background .15s; }
.portal-sidebar nav .active { background: var(--action); color: var(--white); font-weight: 600; }
.portal-sidebar nav a:not(.active):hover, .portal-sidebar nav button:not(.active):hover { background: var(--azure); color: var(--ink); }
.portal-sidebar nav .active:hover { background: #426e8b; }
.profile { margin-top: auto; border-top: 1px solid #cbd7dd; padding-top: 22px; display: grid; gap: 8px; }
.profile strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.profile span { font-size: 12px; color: var(--muted); }
.profile button { background: none; border: 0; text-align: left; padding: 12px 0 0; color: var(--action); font-size: 12px; }
.portal-main { margin-left: 238px; min-height: 100vh; display: flex; flex-direction: column; }
.portal-topbar { min-height: 72px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 44px; font-size: 12px; background: #ffffff80; }
.portal-content { padding: 42px 44px; flex: 1; width: 100%; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 30px; }
.section-heading h1 { font-family: var(--serif); font-size: 38px; font-weight: 400; margin: 8px 0 13px; letter-spacing: -.9px; line-height: 1.2; }
.section-heading p.muted { line-height: 1.7; margin-bottom: 0; }
.eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 600; color: var(--action); }
.muted, .help { color: var(--muted); }
.help { font-size: 12px; line-height: 1.7; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 20px; background: #f2f5f6; color: var(--muted); font-size: 10px; letter-spacing: .2px; padding: 6px 10px; white-space: nowrap; }
.pill.green { background: #e6eef2; color: #3d5e72; border-color: #c5d4dd; }

/* Marketplace overview. */
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1100px; }
.module-card { padding: 27px 29px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); display: flex; flex-direction: column; min-height: 238px; }
.module-card.ready { background: var(--feature-blue); border-color: var(--feature-blue); color: var(--white); transition: background .2s, border-color .2s; }
.module-card.ready:hover { background: #426e8b; border-color: #426e8b; }
.module-card h2 { font-family: var(--serif); font-size: 29px; font-weight: 400; margin: 24px 0 8px; letter-spacing: -.4px; }
.module-card p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 23px; max-width: 380px; }
.module-card.ready p { color: var(--white); }
.module-card.ready .pill { color: var(--white); background: transparent; border-color: #ffffff66; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.market-icon { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: .5px; background: #eef3f5; color: var(--action); }
.market-icon.wb { background: var(--white); border-color: #ffffffcc; color: var(--action); }
.market-icon.finance { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.card-link { font-size: 12px; font-weight: 600; margin-top: auto; color: #36566b; }
.module-card.ready .card-link { align-self: flex-start; padding: 12px 17px; border: 1px solid #ffffffcc; border-radius: 6px; background: var(--white); color: #36566b; line-height: 1.4; }
.card-link.muted { color: var(--muted); font-weight: 400; }
.info-panel { border: 1px solid var(--line); background: #eef2f3; border-radius: 8px; padding: 23px 26px; margin-top: 24px; max-width: 1100px; }
.info-panel strong { font-weight: 600; }
.info-panel p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 10px 0; }
.info-panel a { font-size: 12px; color: var(--action); font-weight: 600; }
.info-panel a:hover, .profile button:hover { text-decoration: underline; }
.portal-footer { padding: 20px 44px 30px; color: var(--muted); font-size: 10px; letter-spacing: 1.5px; display: flex; justify-content: space-between; gap: 15px; }
.portal-footer span { letter-spacing: 0; }

/* Controls, team table and personal access. */
.primary, .secondary { border: 1px solid var(--blue-light); border-radius: 6px; padding: 12px 17px; font-size: 12px; line-height: 1.4; font-weight: 600; transition: background .15s; }
.primary { color: var(--white); background: var(--action); border-color: var(--action); }
.primary:hover { background: #426e8b; border-color: #426e8b; }
.secondary { background: var(--white); color: #425f72; }
.secondary:hover { background: #edf2f5; }
.compact { padding: 9px 12px; white-space: nowrap; }
.table-wrap { overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 17px 18px; border-bottom: 1px solid #e3e9ec; font-size: 12px; text-align: left; vertical-align: top; line-height: 1.5; }
th { background: #edf2f4; color: #4b6575; font-size: 11px; font-weight: 600; letter-spacing: .2px; }
tr:last-child td { border-bottom: 0; }
td small { display: block; color: var(--muted); margin-top: 6px; }
td strong { font-weight: 600; }
td pre { font-size: 10px; white-space: pre-wrap; max-width: 330px; overflow-wrap: anywhere; }
.permission-tag { display: block; font-size: 11px; line-height: 1.8; color: var(--muted); }
.password-panel { background: var(--white); padding: 30px; width: min(100%, 480px); border: 1px solid var(--line); border-radius: 10px; }
.portal-content label, dialog label, .auth-card label { display: grid; gap: 8px; font-size: 12px; color: #486170; margin-bottom: 20px; }
input:not([type=checkbox]) { padding: 12px 13px; border: 1px solid var(--blue-light); border-radius: 5px; background: var(--white); color: var(--ink); width: 100%; min-height: 44px; }
input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.check { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; margin: 14px 0 !important; font-size: 12px; line-height: 1.5; }
.check input { accent-color: var(--action); width: 17px; height: 17px; flex-shrink: 0; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 18px 14px; margin: 24px 0; background: #f6f8f9; }
legend { font-size: 12px; font-weight: 600; color: var(--action); padding: 0 7px; }
.form-error { color: #a34338; font-size: 12px; line-height: 1.6; margin: 12px 0; }
.form-error:empty { display: none; }

/* Sign in: calm, editorial typography with a practical form. */
.auth-body { background: var(--paper); }
.auth-layout { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100vh; margin: 0; }
.auth-intro { background: var(--azure); padding: 42px 64px; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; gap: 35px; border-right: 1px solid var(--blue-light); }
.auth-intro .portal-brand { width: 205px; margin: 0; }
.auth-intro h1 { font-family: var(--serif); font-size: clamp(44px, 4.8vw, 68px); font-weight: 400; line-height: 1.12; letter-spacing: -2px; color: var(--ink); margin: 20px 0 28px; }
.auth-intro p:not(.eyebrow) { font-size: 16px; color: #506977; line-height: 1.8; }
.auth-caption { font-size: 11px; letter-spacing: 1px; color: var(--action); border-top: 1px solid #b8c9d3; padding-top: 22px; }
.auth-side { display: flex; align-items: center; justify-content: center; padding: 50px 30px; }
.auth-card { width: 100%; max-width: 350px; }
.auth-card h2 { font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: -.6px; margin: 12px 0; }
.auth-card > .muted { font-size: 13px; line-height: 1.7; margin: 0 0 28px; }
.auth-card button.primary { width: 100%; padding: 14px; font-size: 13px; }
.auth-help { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 23px; }
.auth-card label { margin: 19px 0; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 30px; max-width: 510px; width: calc(100vw - 44px); max-height: 92vh; overflow: auto; color: var(--ink); background: var(--white); position: fixed; margin: auto; inset: 0; box-shadow: 0 24px 80px #1f2b3120; }
dialog::backdrop { background: #1f2b3155; backdrop-filter: blur(3px); }
dialog h2 { font-family: var(--serif); font-size: 29px; font-weight: 400; margin: 6px 0 20px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.close { background: transparent; border: 0; color: var(--muted); font-size: 26px; padding: 0 3px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
dialog small { color: var(--muted); font-size: 11px; line-height: 1.5; }
#portalToast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 15px 22px; border-radius: 8px; max-width: 600px; font-size: 12px; box-shadow: 0 8px 30px #1f2b3122; z-index: 10; }
@media(max-width:1000px) {
  .portal-sidebar { width: 205px; padding: 25px 16px; }
  .portal-brand { width: 157px; }
  .portal-main { margin-left: 205px; }
  .portal-content { padding: 30px 25px; }
  .portal-topbar { padding: 16px 25px; }
  .auth-intro { padding: 40px; }
  .auth-intro h1 { font-size: 48px; }
}
@media(max-width:720px) {
  .portal-sidebar { position: static; width: 100%; padding: 18px 20px; }
  .portal-sidebar .portal-brand { width: 115px; margin: 0; }
  .nav-caption { display: none; }
  .portal-sidebar nav { display: flex; overflow: auto; margin-top: 18px; gap: 4px; }
  .portal-sidebar nav a, .portal-sidebar nav button { white-space: nowrap; font-size: 11px; padding: 10px; }
  .profile { display: flex; align-items: center; flex-wrap: wrap; margin-top: 15px; padding-top: 14px; font-size: 11px; }
  .profile button { margin-left: auto; padding: 0; }
  .portal-main { margin-left: 0; }
  .portal-topbar { min-height: 55px; padding: 13px 20px; }
  .portal-content { padding: 25px 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading h1 { font-size: 30px; }
  .module-grid { grid-template-columns: 1fr; gap: 15px; }
  .module-card { min-height: 220px; }
  .portal-footer { padding: 20px; }
  .portal-footer span { display: none; }
  .auth-layout { display: block; }
  .auth-intro { min-height: auto; padding: 25px 28px; gap: 24px; border-right: 0; }
  .auth-intro .portal-brand { width: 140px; }
  .auth-intro > div { display: none; }
  .auth-caption { font-size: 10px; padding-top: 17px; }
  .auth-side { padding: 35px 28px; }
  .dialog-actions { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) { * { transition: none !important; } }

/* Compact marketplace workspace; account and employee forms keep their layout. */
.workspace-compact .portal-sidebar { width: 186px; padding: 18px 13px; }
.workspace-compact .portal-brand { width: 142px; }
.workspace-compact .nav-caption { margin: 22px 9px 10px; font-size: 8px; letter-spacing: 1.2px; }
.workspace-compact .portal-sidebar nav { gap: 4px; }
.workspace-compact .portal-sidebar nav a, .workspace-compact .portal-sidebar nav button { padding: 10px 9px; font-size: 12px; }
.workspace-compact .profile { padding-top: 15px; gap: 6px; }
.workspace-compact .profile strong { font-size: 12px; }
.workspace-compact .portal-main { margin-left: 186px; }
.workspace-compact .portal-topbar { min-height: 42px; padding: 7px 22px; font-size: 11px; }
.workspace-compact .portal-topbar .pill { padding: 4px 9px; }
.workspace-compact .portal-content { padding: 19px 22px 12px; }
.workspace-compact .section-heading { margin-bottom: 18px; }
.workspace-compact .eyebrow { font-size: 9px; letter-spacing: 1.8px; margin: 0 0 6px; }
.workspace-compact .section-heading h1 { font-size: 32px; letter-spacing: -.7px; margin: 0 0 7px; }
.workspace-compact .section-heading p.muted { margin: 0; line-height: 1.4; font-size: 12px; }
.workspace-compact .portal-footer { padding: 10px 22px 14px; font-size: 9px; }
.market-overview { display: grid; gap: 11px; }
.market-row { display: grid; grid-template-columns: 122px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.market-label { padding: 12px 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.market-monogram { color: var(--action); font-size: 11px; letter-spacing: .8px; font-weight: 700; padding-bottom: 7px; }
.market-label h2 { font: 400 22px/1.15 var(--serif); margin: 0 0 7px; }
.market-label small { color: var(--muted); font-size: 10px; }
.market-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.workspace-tile { border-radius: 8px; padding: 14px 16px; min-height: 116px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.tile-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 9px; }
.tile-top > span:last-child { font-size: 16px; line-height: 1; }
.workspace-tile h3 { font-size: 15px; line-height: 1.3; font-weight: 600; margin: 13px 0 7px; }
.workspace-tile p { font-size: 11px; line-height: 1.45; margin: 0; max-width: 230px; }
.live-tile { background: var(--action); border-color: var(--action); color: #fff; transition: background .15s; }
.live-tile:hover { background: #426e8b; }
.live-tile .tile-top { color: #e2ebf0; }
.preview-tile { background: var(--azure); border-color: #b5c7d1; }
.preview-tile .tile-top { color: #445f70; }
.preview-tile:hover { background: #ccdbe2; }
.future-tile { background: #fff; }
.future-tile .tile-top, .future-tile p { color: var(--muted); }
.future-tile h3 { color: #4b616e; }
.future-market { padding-top: 10px; border-top: 1px solid var(--line); }
.business-finance { display: flex; align-items: center; gap: 13px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 7px; background: #edf1f2; margin-top: 2px; }
.finance-symbol { color: var(--action); font: 24px var(--serif); }
.business-finance > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; }
.business-finance strong, .team-access strong { font-size: 12px; font-weight: 600; }
.business-finance span:not(.finance-symbol), .business-finance small { color: var(--muted); font-size: 11px; }
.business-finance small { margin-left: auto; }
.team-access { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 13px; padding: 10px 0 0; }
.team-access > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.team-access span { font-size: 11px; color: var(--muted); }
.team-access a { color: var(--action); font-size: 11px; font-weight: 600; white-space: nowrap; }
.team-access a:hover, .back-home:hover, .text-link:hover { text-decoration: underline; }

/* Planning concept: independent targets and an order funnel. */
.plans-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plans-heading h1 { font: 400 29px/1.15 var(--serif); letter-spacing: -.5px; margin: 0; }
.back-home { color: var(--action); font-size: 11px; white-space: nowrap; }
.concept-note { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 10px; color: #526775; margin: 10px 0; }
.concept-badge { font-size: 8px; letter-spacing: 1px; border: 1px solid #b7c9d3; padding: 4px 7px; border-radius: 3px; color: #425f72; }
.plans-toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #e8eef1; border: 1px solid var(--line); border-radius: 7px; }
.concept-select { min-width: 142px; }
.concept-select small { display: block; font-size: 9px; color: var(--muted); margin-bottom: 5px; }
.concept-select strong { display: flex; gap: 18px; justify-content: space-between; font-size: 12px; font-weight: 600; }
.article-example { border-left: 1px solid #c5d3db; padding-left: 15px; min-width: 230px; }
.import-actions { display: flex; gap: 8px; margin-left: auto; }
.import-actions .compact { font-size: 10px; padding: 8px 10px; }
.goal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.goal-card { padding: 12px 15px; border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.goal-top, .goal-values, .goal-foot { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.goal-top h2 { font-size: 13px; font-weight: 600; margin: 0; }
.goal-status { font-size: 9px; color: #7b5541; background: #f4eae3; padding: 4px 6px; border-radius: 4px; }
.goal-values { margin: 6px 0 8px; }
.goal-values strong { font-size: 28px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.goal-values small { color: var(--muted); font-size: 14px; font-weight: 400; }
.goal-values > span { font-size: 12px; color: var(--action); font-weight: 600; }
.goal-bar { position: relative; height: 5px; background: #e7edef; border-radius: 3px; margin-bottom: 10px; }
.goal-bar > span { display: block; height: 100%; background: var(--action); border-radius: 3px; }
.goal-bar > .orders-progress { width: 30%; }
.goal-bar > .buyouts-progress { width: 25%; }
.goal-bar > i { position: absolute; left: 33.333%; top: -3px; height: 11px; width: 1px; background: #9d7158; }
.goal-foot { font-size: 10px; color: var(--muted); }
.goal-foot b { color: var(--ink); font-weight: 600; }
.funnel-workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); gap: 12px; }
.funnel-panel, .remaining-panel { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px 15px; }
.funnel-heading, .remaining-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px; margin-bottom: 10px; }
.funnel-heading h2, .remaining-heading h2 { font-size: 13px; margin: 0; font-weight: 600; }
.funnel-heading > span, .remaining-heading > span { font-size: 9px; color: var(--muted); }
.funnel-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.funnel-column { display: flex; flex-direction: column; align-items: center; }
.funnel-column h3 { font-size: 10px; color: var(--muted); font-weight: 500; margin: 0 0 8px; }
.funnel-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; height: 51px; background: var(--action); color: #fff; clip-path: polygon(0 0,100% 0,91% 100%,9% 100%); }
.funnel-stage small { font-size: 9px; }
.funnel-stage strong { font-size: 20px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.funnel-stage.stage-cart { width: 82%; background: #4d7b98; clip-path: polygon(0 0,100% 0,89% 100%,11% 100%); }
.funnel-stage.stage-orders { width: 64%; background: #3c5769; clip-path: polygon(0 0,100% 0,86% 100%,14% 100%); }
.actual .funnel-stage { color: var(--ink); background: #c2d1da; }
.actual .stage-cart { background: #d1dce3; }
.actual .stage-orders { background: #b4c7d3; }
.funnel-conversion { padding: 5px 0; font-size: 9px; color: var(--muted); }
.funnel-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.6; padding-top: 9px; margin: 10px 0 0; }
.remaining-table th, .remaining-table td { padding: 9px 7px; font-size: 11px; line-height: 1.2; vertical-align: middle; }
.remaining-table thead th { font-size: 9px; background: #edf2f4; font-weight: 500; }
.remaining-table th:first-child { text-align: left; }
.remaining-table th, .remaining-table td { text-align: right; }
.remaining-table tbody th { font-weight: 400; color: var(--ink); background: transparent; letter-spacing: 0; }
.remaining-table .remaining-goal { background: #e4edf2; }
.remaining-table .remaining-goal th, .remaining-table .remaining-goal td { font-weight: 600; color: #36556a; }
.remaining-table .remaining-net th, .remaining-table .remaining-net td { border-top: 2px solid #d5dfe3; }
.net-note { font-size: 9px; line-height: 1.5; color: var(--muted); margin: 10px 0; }
.cost-preview { display: flex; align-items: center; gap: 9px; font-size: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cost-preview small { color: var(--muted); margin-left: auto; font-size: 9px; }
.planning-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; color: var(--muted); font-size: 10px; }
.text-link { border: 0; background: none; color: var(--action); padding: 2px 0; font-size: 10px; font-weight: 600; }
#planningSchema { max-width: 660px; padding: 24px; }
#planningSchema h2 { font-size: 26px; }
#schemaContent p, #schemaContent li { font-size: 12px; line-height: 1.65; }
#schemaContent ol { padding-left: 22px; }
#schemaContent li { margin: 5px 0; }
.schema-table { border: 1px solid var(--line); border-radius: 5px; overflow-x: auto; }
.schema-table th, .schema-table td { padding: 10px; font-size: 11px; }
.schema-status { background: #edf2f4; border-radius: 5px; padding: 12px; color: #435f71; }
@media(min-width:721px) and (max-width:1150px) {
  .workspace-compact .portal-sidebar { width: 174px; padding-left: 10px; padding-right: 10px; }
  .workspace-compact .portal-main { margin-left: 174px; }
  .workspace-compact .portal-content { padding-left: 16px; padding-right: 16px; }
  .market-row { grid-template-columns: 103px minmax(0, 1fr); gap: 9px; }
  .market-label h2 { font-size: 19px; }
  .workspace-tile { padding: 12px; }
  .workspace-tile h3 { font-size: 13px; }
  .workspace-tile p { font-size: 10px; }
  .plans-toolbar { flex-wrap: wrap; }
  .import-actions { margin-left: 0; }
  .goal-foot { flex-wrap: wrap; }
  .funnel-workspace { grid-template-columns: minmax(0, 1.2fr) minmax(265px, 1fr); }
  .funnel-heading > span { display: none; }
}
@media(max-width:720px) {
  .workspace-compact .portal-sidebar { position: static; width: 100%; padding: 12px 16px; }
  .workspace-compact .portal-sidebar .portal-brand { width: 86px; margin: 0; }
  .workspace-compact .portal-sidebar nav { margin-top: 10px; }
  .workspace-compact .profile { margin-top: 10px; padding-top: 10px; }
  .workspace-compact .portal-main { margin-left: 0; min-height: 0; }
  .workspace-compact .portal-topbar, .workspace-compact .portal-content, .workspace-compact .portal-footer { padding-left: 16px; padding-right: 16px; }
  .workspace-compact .section-heading h1 { font-size: 29px; }
  .market-row { grid-template-columns: 1fr; gap: 8px; }
  .market-label { flex-direction: row; align-items: baseline; gap: 8px; padding: 5px 0; }
  .market-label h2 { font-size: 22px; margin: 0; }
  .market-monogram { padding: 0; }
  .market-label small { margin-left: auto; }
  .market-tools { grid-template-columns: 1fr; gap: 7px; }
  .workspace-tile { min-height: 0; padding: 12px 14px; }
  .workspace-tile h3 { margin-top: 8px; }
  .workspace-tile p { max-width: none; }
  .future-market .market-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .future-tile { padding: 10px; }
  .future-tile h3 { font-size: 12px; }
  .future-tile p, .future-tile .tile-top { font-size: 9px; }
  .future-tile .tile-top > span:last-child { display: none; }
  .business-finance > div { gap: 5px; }
  .business-finance small { font-size: 9px; }
  .team-access { align-items: flex-start; flex-direction: column; gap: 10px; }
  .plans-heading { align-items: flex-start; }
  .plans-heading h1 { font-size: 25px; }
  .plans-toolbar { flex-wrap: wrap; gap: 10px; }
  .concept-select { min-width: 120px; flex: 1; }
  .article-example { min-width: 170px; padding-left: 10px; }
  .import-actions { margin-left: 0; width: 100%; }
  .goal-grid, .funnel-workspace { grid-template-columns: 1fr; }
  .goal-foot { flex-wrap: wrap; }
  .funnel-panel, .remaining-panel { padding: 14px; }
  .funnel-heading > span { font-size: 8px; }
}

/* Store-level planning concept, three comparable funnels. */
.store-plan-toolbar { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: #e8eef1; padding: 8px 10px; border-radius: 7px; }
.scope-switch { display: flex; background: #fff; border: 1px solid #becdd6; border-radius: 5px; padding: 2px; gap: 2px; }
.scope-switch button { font-size: 10px; padding: 8px 10px; border-radius: 3px; border: 0; background: none; color: var(--action); white-space: nowrap; }
.scope-switch button.selected { background: var(--action); color: #fff; }
.plan-month { min-width: 142px; }
.plan-month small { display: block; font-size: 8px; color: var(--muted); margin-bottom: 5px; }
.plan-month strong { font-size: 11px; font-weight: 600; }
.portal-content .scenario-control { display: flex; align-items: flex-start; flex-direction: column; gap: 3px; margin: 0; color: var(--muted); font-size: 8px; }
.scenario-control select { background: #fff; border: 1px solid var(--blue-light); border-radius: 4px; color: var(--ink); font: inherit; font-size: 10px; min-height: 26px; padding: 3px 4px; }
.store-plan-toolbar .import-actions { gap: 5px; }
.store-plan-toolbar .compact { font-size: 9px; padding: 8px; }
.store-plan-settings { display: grid; grid-template-columns: 195px minmax(0,1fr) minmax(0,1fr); gap: 18px; align-items: center; padding: 9px 0; }
.portal-content .store-plan-settings label { margin: 0; gap: 4px; font-size: 9px; }
.store-plan-settings input:not([type=checkbox]) { min-height: 30px; height: 30px; padding: 5px 9px; font-size: 15px; font-weight: 600; }
.baseline-period, .plan-base-note { display: grid; gap: 4px; }
.baseline-period small { color: var(--muted); font-size: 8px; }
.baseline-period strong, .plan-base-note strong { font-size: 10px; font-weight: 600; }
.baseline-period span, .plan-base-note span { font-size: 9px; color: var(--muted); }
.store-goal-strip { display: grid; grid-template-columns: 1.1fr 1fr .65fr 1.1fr 1.6fr; gap: 0; border: 1px solid var(--line); border-radius: 7px; background: white; margin-bottom: 10px; }
.store-goal-strip > div { padding: 10px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.store-goal-strip > div:last-child { border: 0; }
.store-goal-strip small { color: var(--muted); font-size: 9px; }
.store-goal-strip strong { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.store-goal-strip .store-pace strong { font-size: 13px; }
.store-pace > span { color: var(--muted); font-size: 8px; }
.store-pace.behind { background: #f5ece6; border-radius: 0 7px 7px 0; }
.store-pace.behind > span { color: #805b44; }
.three-funnels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.store-funnel { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 12px 13px 9px; display: flex; flex-direction: column; align-items: center; }
.store-funnel header { display: flex; align-items: flex-start; gap: 9px; width: 100%; margin-bottom: 9px; }
.funnel-number { font: 18px var(--serif); color: #8ca1ae; }
.store-funnel h2 { font-size: 12px; margin: 0 0 4px; font-weight: 600; }
.store-funnel header p { color: var(--muted); font-size: 9px; margin: 0; }
.store-funnel-stage { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; height: 43px; width: 100%; color: #000; background: var(--funnel-blue); clip-path: polygon(0 0,100% 0,91% 100%,9% 100%); }
.store-funnel-stage small { font-size: 9px; }
.store-funnel-stage strong { font-size: 19px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.store-funnel-stage.carts { width: 82%; background: #80a6bf; clip-path: polygon(0 0,100% 0,89% 100%,11% 100%); }
.store-funnel-stage.orders { width: 64%; background: #b7d3e4; clip-path: polygon(0 0,100% 0,86% 100%,14% 100%); }
.store-conversion { color: var(--muted); font-size: 8px; padding: 4px 0; }
.store-conversion b { color: var(--action); font-weight: 600; }
.store-money { border-top: 1px solid var(--line); width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-top: 8px; padding-top: 8px; }
.store-money span { color: var(--muted); font-size: 10px; }
.store-money strong { font-size: 18px; font-weight: 500; color: #386f92; }
.store-funnel-foot { font-size: 8px; line-height: 1.4; width: 100%; color: var(--muted); margin: 6px 0 0; }
.fact-funnel .store-funnel-stage { background: #a5c7dd; }
.fact-funnel .carts { background: #b7d3e4; }
.fact-funnel .orders { background: #c9dfec; }
.daily-funnel { background: #edf6fc; border-color: #b1ccdf; }
.daily-funnel .store-funnel-stage { background: #477a9b; }
.daily-funnel .carts { background: #7fa6c0; }
.daily-funnel .orders { background: #b5d2e6; }
.plan-assumptions { display: flex; gap: 12px; align-items: center; margin-top: 9px; padding: 9px 11px; background: #e8eef1; border: 1px solid var(--line); border-radius: 6px; }
.plan-assumptions > strong { max-width: 145px; font-size: 10px; font-weight: 600; line-height: 1.4; }
.portal-content .plan-assumptions label { margin: 0; gap: 3px; font-size: 8px; }
.plan-assumptions input:not([type=checkbox]) { min-height: 25px; height: 25px; padding: 4px 7px; font-size: 11px; width: 100px; }
.plan-assumptions .text-link { margin-left: auto; font-size: 9px; }
.net-plan-strip { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0 0; }
.net-plan-strip > div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.net-plan-strip strong { font-size: 10px; font-weight: 600; }
.net-plan-strip span { font-size: 9px; color: var(--muted); }
.net-plan-strip .text-link { font-size: 9px; white-space: nowrap; }
.article-scope-note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 9px; background: #e8eef1; border: 1px solid #b8cbd5; border-radius: 5px; font-size: 10px; line-height: 1.4; }
.article-scope-note strong { white-space: nowrap; font-weight: 600; }
.article-scope-note .text-link { white-space: nowrap; }
@media(min-width:721px) and (max-width:1150px) {
  .store-plan-toolbar { flex-wrap: wrap; gap: 8px; }
  .store-plan-toolbar .import-actions { margin-left: auto; }
  .store-plan-settings { grid-template-columns: 170px 1fr; gap: 10px; }
  .plan-base-note { grid-column: 1/-1; display: flex; gap: 8px; }
  .store-goal-strip strong { font-size: 13px; }
  .store-goal-strip > div { padding: 8px; }
  .store-money strong { font-size: 15px; }
  .store-funnel { padding: 10px; }
  .store-funnel h2 { font-size: 11px; }
  .plan-assumptions { gap: 8px; }
  .plan-assumptions input:not([type=checkbox]) { width: 75px; }
}
@media(max-width:720px) {
  .store-plan-toolbar { flex-wrap: wrap; gap: 10px; }
  .store-plan-settings { grid-template-columns: 1fr; gap: 10px; }
  .store-goal-strip { grid-template-columns: 1fr 1fr; }
  .store-goal-strip > div { border-bottom: 1px solid var(--line); }
  .store-goal-strip > div:last-child { grid-column: 1/-1; }
  .three-funnels { grid-template-columns: 1fr; }
  .store-funnel-stage { max-width: 340px; }
  .store-funnel header { justify-content: center; }
  .plan-assumptions { flex-wrap: wrap; }
  .plan-assumptions > strong { max-width: none; width: 100%; }
  .plan-assumptions input:not([type=checkbox]) { width: 90px; }
  .net-plan-strip, .article-scope-note { align-items: flex-start; flex-direction: column; }
}
.planning-view .portal-content { padding-top: 12px; padding-bottom: 4px; }
.planning-view .portal-footer { display: none; }
.planning-view .net-plan-strip { padding-top: 6px; }

/* Marketplace heading and subordinate work areas. */
.market-nav { margin: 8px 0 12px; min-width: 0; }
.market-nav-title { margin: 0 0 9px; padding: 0 9px; color: var(--ink); font: 600 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.market-nav-links { display: grid; gap: 3px; margin-left: 8px; padding-left: 7px; border-left: 1px solid #b6c9d4; }
.portal-sidebar nav .market-nav-links a { display: block; padding: 9px 7px; font-size: 11.5px; line-height: 1.45; }
@media(max-width:720px) {
  .portal-sidebar .market-nav { flex-basis: 100%; margin: 4px 0; }
  .portal-sidebar .market-nav-links { display: flex; flex-wrap: wrap; }
}

/* Live store plan: compact month selector and per-month goal saving. */
.portal-content .plan-month { margin: 0; font-size: 9px; gap: 3px; }
.plan-month input[type=month] { min-height: 28px; height: 28px; font-size: 12px; padding: 3px 6px; max-width: 165px; }
.store-plan-settings { grid-template-columns: 165px 120px minmax(0,1.2fr) minmax(0,1fr); gap: 12px; }
.plan-save { display: grid; gap: 4px; }
.plan-save button { font-size: 10px; padding: 9px 6px; }
.plan-save small { font-size: 8px; color: var(--muted); }
.plan-sync-status { font-size: 10px; padding: 5px 8px; background: #e8eef1; border-radius: 4px; }
.plan-assumptions input[readonly] { background: #f4f7f8; color: var(--ink); }
.scope-switch button:disabled, .import-actions button:disabled { opacity: .55; cursor: default; }
.cost-description { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.cost-toolbar { display: flex; align-items: end; gap: 12px; padding: 12px; border: 1px solid var(--line); background: #eaf1f5; border-radius: 8px; }
.cost-toolbar label { margin: 0; gap: 5px; font-size: 11px; }
.cost-toolbar input:not([type=checkbox]), .cost-filters input[type=search] { min-height: 32px; height: 32px; padding: 5px 8px; font-size: 12px; }
.cost-toolbar .cost-file-label { flex: 1; min-width: 150px; }
.cost-toolbar input[type=file] { padding: 4px; background: white; }
.cost-toolbar a, .cost-toolbar button { white-space: nowrap; }
.cost-help { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 8px 0 12px; }
.cost-filters { display: flex; gap: 16px; align-items: center; margin: 12px 0 8px; }
.cost-filters input[type=search] { max-width: 290px; }
.cost-filters label.check { display: flex; margin: 0; gap: 6px; white-space: nowrap; }
.cost-filters span { margin-left: auto; color: var(--muted); font-size: 11px; }
.cost-table { max-height: calc(100vh - 355px); min-height: 150px; }
.cost-table th, .cost-preview-table th { position: sticky; top: 0; background: #4D7B98; color: white; z-index: 1; }
.cost-table td, .cost-table th, .cost-preview-table td, .cost-preview-table th { padding: 8px 12px; font-size: 12px; }
.cost-amount { text-align: right; font-variant-numeric: tabular-nums; }
.cost-missing { color: #8a6728; }
#costPreview { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: white; }
.cost-preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cost-preview-heading h2 { font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 0; }
.cost-preview-heading>div { display: flex; gap: 8px; }
.cost-preview p { margin: 8px 0; font-size: 12px; }
.cost-preview-table { max-height: 220px; }
#costPreviewErrors { white-space: pre-line; max-height: 150px; overflow: auto; }
.cost-warning { background: #faf3e6; color: #795b26; padding: 8px; border-radius: 4px; }
.cost-success { color: #315c48; background: #eaf3ed; padding: 9px 12px; font-size: 12px; border-radius: 5px; }
.cost-history { font-size: 11px; color: var(--muted); margin-top: 12px; }
.cost-history summary { cursor: pointer; }
.cost-history li { padding: 5px 0; }
.cost-history li span { margin-left: 12px; }
@media(max-width:800px) { .cost-toolbar,.cost-filters,.cost-preview-heading { flex-wrap: wrap; } .cost-filters span { margin-left: 0; } .cost-table { max-height: 50vh; } }
@media (max-width: 800px) { .store-plan-settings { grid-template-columns: 1fr 1fr; } }

/* Three distinct sections; periods share the same position below each heading. */
.planning-view .portal-topbar { min-height:30px; padding-block:3px; }
.planning-view .portal-content { padding-top:10px; padding-bottom:20px; }
.workspace-block { padding:12px 14px; border:1px solid var(--line); border-top:3px solid var(--action); border-radius:10px; background:#fff; }
.workspace-block + .workspace-block { margin-top:12px; }
.workspace-block-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:9px; }
.workspace-block-heading > h1, .workspace-block-heading > h2 { margin:0; font-family:inherit; font-size:20px; font-weight:600; line-height:1.25; letter-spacing:-.25px; color:var(--ink); }
.workspace-block-heading > span { color:var(--muted); font-size:12px; line-height:1.4; }
.section-period-toolbar { display:flex; align-items:end; flex-wrap:wrap; gap:10px; padding:8px 10px; border:1px solid #d4e1e9; border-radius:6px; background:#edf3f7; }
.portal-content .section-period-toolbar label { margin:0; gap:4px; color:#486170; font-size:12px; line-height:1.2; }
.section-period-toolbar input:not([type=checkbox]), .section-period-toolbar select { height:32px; min-height:32px; padding:4px 8px; border:1px solid var(--blue-light); border-radius:5px; background:white; color:var(--ink); font-family:inherit; font-size:14px; }
.section-period-toolbar .compact { min-height:32px; font-size:12px; padding:7px 10px; }
.section-period-toolbar .plan-month { width:172px; }
.inline-plan-goal { width:172px; }
.planning-view .plan-save small:empty { display:none; }
.plan-cost-link { font-size:12px; align-self:center; margin-left:auto; }
.plan-meta { display:flex; align-items:center; flex-wrap:wrap; column-gap:13px; row-gap:3px; color:var(--muted); font-size:11px; line-height:1.4; margin:7px 0; }
.plan-meta strong { font-weight:500; color:var(--ink); }
.plan-meta #planningDataNote { margin-left:auto; }
.planning-view .store-goal-strip { margin-bottom:8px; }
.planning-view .store-goal-strip > div { padding:7px 10px; gap:3px; }
.planning-view .store-goal-strip small { font-size:11px; }
.planning-view .store-goal-strip strong { font-size:17px; }
.planning-view .store-pace strong { font-size:13px; }
.planning-view .store-pace > span { font-size:10px; }
.planning-view .store-funnel { padding:9px 12px 7px; }
.planning-view .store-funnel header { margin-bottom:6px; gap:7px; }
.planning-view .store-funnel h2 { margin-bottom:2px; font-size:13px; }
.planning-view .store-funnel header p { font-size:11px; }
.planning-view .store-funnel-stage { height:36px; gap:2px; }
.planning-view .store-funnel-stage small { font-size:11px; }
.planning-view .store-funnel-stage strong { font-size:18px; }
.planning-view .store-conversion { font-size:11px; padding:3px 0; }
.planning-view .store-money { padding-top:5px; margin-top:5px; }
.planning-view .store-money span { font-size:11px; }
.planning-view .store-money strong { font-size:18px; }
.planning-view .store-funnel-foot { display:none; }
.plan-alert-grid { display:grid; grid-template-columns:1.1fr .9fr 1.1fr; gap:8px; }
.plan-alert { display:flex; align-items:center; gap:9px; padding:9px 10px; min-width:0; background:#fff; border:1px solid var(--line); border-radius:7px; }
.plan-alert strong { display:block; font-size:12px; font-weight:600; margin-bottom:3px; }
.plan-alert div > span { display:block; font-size:11px; line-height:1.4; color:var(--muted); }
.alert-symbol { width:28px; height:28px; flex:0 0 28px; display:grid; place-items:center; border-radius:50%; background:#e9f1f6; color:var(--action); font-size:15px; }
.alert-arrow { margin-left:auto; color:var(--action); }
.plan-alert.needs-attention { background:#fbf4e9; border-color:#e4d3b6; }
.needs-attention .alert-symbol { background:#f0e2c8; color:#77582d; }
.plan-alert.pending { background:#f3f6f8; }
.finance-period input:not([type=checkbox]) { width:172px; }
.finance-period select { width:160px; }
.finance-status { margin:12px 0; font-size:13px; line-height:1.5; color:var(--muted); }
.finance-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.finance-cards:empty { display:none; }
.financial-card { padding:18px; border:1px solid var(--line); border-radius:8px; min-width:0; background:#fff; }
.financial-card h3, .financial-trend h3 { font-size:15px; font-weight:600; margin:0 0 10px; }
.financial-value { font-size:30px; font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:-.5px; white-space:nowrap; }
.financial-bar { display:block; width:100%; height:7px; margin:14px 0; border-radius:4px; overflow:hidden; }
.financial-bar.empty { background:#e8eef1; }
.financial-card dl { margin:0; display:grid; gap:11px; }
.financial-card dl > div { display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
.financial-card dt { font-size:14px; color:#526670; line-height:1.4; }
.financial-card dd { margin:0; font-size:14px; font-weight:500; white-space:nowrap; font-variant-numeric:tabular-nums; }
.metric-dot { display:inline-block; width:7px; height:7px; margin-right:7px; border-radius:50%; background:var(--action); }
.metric-dot.tone-1 { background:#80a6bf; }.metric-dot.tone-2 { background:#a6c6d9; }.metric-dot.tone-3 { background:#5b929d; }.metric-dot.tone-4 { background:#bfd3dc; }
.profit-card { display:flex; flex-direction:column; background:#eef5f9; border-color:#c5d8e4; }
.profit-card dl { margin-top:20px; }
.profit-card .finance-sparkline, .profit-card .chart-empty { margin-top:auto; padding-top:16px; }
.finance-sparkline { display:block; width:100%; height:74px; color:var(--action); }
.chart-empty { min-height:74px; display:flex; align-items:center; color:var(--muted); font-size:12px; }
.finance-dynamics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:16px; }
.financial-trend { min-width:0; border:1px solid var(--line); border-radius:8px; padding:16px; background:#fff; }
.financial-trend h3 { font-size:14px; margin-bottom:8px; }
.financial-trend > strong { font-size:24px; font-weight:600; font-variant-numeric:tabular-nums; }
.trend-change { font-size:12px; min-height:34px; line-height:1.4; margin:8px 0 4px; }
.favorable { color:#3f796d; }.unfavorable, .financial-value.negative { color:#a05a47; }
.finance-method, .plan-calculation-details { color:var(--muted); }
.plan-calculation-details { margin-top:6px; font-size:11px; }
.finance-method { margin-top:16px; font-size:13px; }
.finance-method summary, .plan-calculation-details summary { cursor:pointer; padding-block:4px; }
.finance-method p { font-size:13px; line-height:1.6; margin:8px 0; }
.finance-method a { color:var(--action); text-decoration:underline; }
.plan-calculation-details .plan-assumptions { margin-top:5px; }
@media(min-width:1600px) {
  .finance-cards { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .financial-card { padding:16px; }
  .financial-card dt, .financial-card dd { font-size:13px; }
  .financial-value { font-size:27px; }
}
@media(min-width:721px) and (max-width:1150px) {
  .plan-alert-grid { grid-template-columns:1fr; }
  .financial-card { padding:14px; }
  .finance-dynamics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:720px) {
  .workspace-block { padding:12px; }
  .workspace-block-heading { flex-wrap:wrap; gap:4px; }
  .workspace-block-heading > h1, .workspace-block-heading > h2 { font-size:20px; }
  .workspace-block-heading > span { font-size:11px; }
  .section-period-toolbar { gap:9px; }
  .section-period-toolbar .plan-month, .inline-plan-goal, .finance-period label { width:100%; min-width:0; }
  .finance-period input:not([type=checkbox]), .finance-period select { width:100%; }
  .plan-cost-link { margin-left:0; }.plan-meta #planningDataNote { margin-left:0; }
  .planning-view .store-goal-strip { grid-template-columns:1fr 1fr; }
  .plan-alert-grid, .finance-cards, .finance-dynamics { grid-template-columns:1fr; }
  .financial-card { padding:15px; }
  .financial-value { font-size:28px; }
  .financial-card dt, .financial-card dd { font-size:13px; }
}

/* Shared monthly business expenses: compact laptop layout. */
.expense-panel{max-width:820px;padding:20px;display:grid;gap:12px}.expense-panel>label{display:grid;gap:5px}.expense-panel .cost-toolbar{margin:0}.expense-panel p{margin:0}.expense-panel button.primary{justify-self:start}.expense-rule{padding:12px 14px;background:#e8f0f5;border-left:3px solid #4d7b98;border-radius:6px;font-size:14px}.expense-rule p{margin-top:6px;color:#526c7c}.expense-panel .help{font-size:13px;line-height:1.45}

/* Four funnel stages; the same tonal sequence in all three columns. */
.planning-view .store-funnel-stage.impressions { width:100%; background:#4d7b98; }
.planning-view .store-funnel-stage.visits { width:88%; background:#6696b4; }
.planning-view .store-funnel-stage.carts { width:76%; background:#8bb3cc; }
.planning-view .store-funnel-stage.orders { width:64%; background:#b7d3e4; }
.planning-view .store-funnel-stage { color:#000; height:34px; }
.planning-view .plan-ctr input { width:105px; }
.impressions-note { font-size:11px; line-height:1.4; color:var(--muted); margin:7px 0 3px; }
.finance-cost-gaps { padding:9px 12px; background:#fff4df; color:#654719; font-size:12px; border-radius:6px; }
@media (min-width:1151px) {
  .plan-overview, .plan-alerts { padding-block:10px; }
  .plan-overview .workspace-block-heading, .plan-alerts .workspace-block-heading { margin-bottom:7px; }
  .planning-view .store-conversion { padding:1px 0; }
  .planning-view .store-funnel header { margin-bottom:4px; }
  .planning-view .store-goal-strip > div { padding-block:5px; }
  .plan-alert { padding-block:6px; }
}
@media (min-width:1151px) {
  .plan-overview { padding-block:8px; }
  .plan-overview .section-period-toolbar { padding-block:4px; }
  .plan-overview .plan-meta { margin-block:4px; }
  .planning-view .store-funnel-stage { height:32px; }
  .planning-view .workspace-block + .workspace-block { margin-top:6px; }
}
