/* ==========================================================================
   أثر (Athar) — Editorial design system
   ورق دافئ، حبر داكن، زيتوني وطين محروق، خطوط شعرية، عناوين نسخ كبيرة.
   بلا Sidebar: ترويسة (Masthead) + شريط أقسام أفقي كأقسام الصحيفة.
   يُضمَّن بعد shared/css/base.css ويعيد تعريف ما يلزم.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Noto+Naskh+Arabic:wght@500;600;700&display=swap");

:root {
  --paper: #fbf8f3;
  --paper-2: #f5f0e7;
  --card: #fffdf9;
  --sand: #efe6d6;
  --sand-2: #e6dac4;
  --ink: #1f2a24;
  --ink-2: #4a554e;
  --muted: #858c85;
  --rule: #e7e0d4;
  --rule-2: #d6ccb9;
  --olive: #4d6b3c;
  --olive-600: #3e5830;
  --olive-soft: #e9efe3;
  --sage: #93a67f;
  --terra: #c2643c;
  --terra-600: #a8532f;
  --terra-soft: #f6e5da;
  --clay: #7a5c3e;
  --red: #a8402f;
  --red-soft: #f4dcd5;
  --sky: #4f6f7e;
  --sky-soft: #e2eaed;

  --serif: "Noto Naskh Arabic", "Amiri", serif;
  --sans: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  /* base.css overrides */
  --brand: var(--olive);
  --brand-600: var(--olive-600);
  --brand-soft: var(--olive-soft);
  --accent: var(--terra);
  --bg: var(--paper);
  --surface: var(--card);
  --surface-2: var(--paper-2);
  --border: var(--rule);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: none;
  --shadow: none;
  --font: var(--sans);
  --wrap: 1240px;
  --gutter: 28px;
}

html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 15px; line-height: 1.7; color: var(--ink); background: var(--paper); overflow-x: hidden; }
a { color: var(--olive); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--ink); letter-spacing: 0; }
::selection { background: var(--olive-soft); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------------------------------------------------------- Masthead */
.mast { background: var(--paper); }
.mast-strip { border-bottom: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-2); }
.mast-strip .wrap { display: flex; align-items: center; gap: 10px; min-height: 34px; white-space: nowrap; overflow: hidden; }
.strip-sep { color: var(--rule-2); }
.strip-by { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 500; }
.strip-by img { width: 16px; height: 16px; object-fit: contain; }
.strip-by:hover { color: var(--olive); }

.mast-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; color: var(--olive); border: 1px solid var(--olive); border-radius: 50%; flex: none; }
.brand-mark svg { width: 26px; height: 26px; }
.brand-word { font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1; padding-bottom: 4px; }
.brand-client { display: flex; flex-direction: column; border-inline-start: 1px solid var(--rule-2); padding-inline-start: 14px; margin-inline-start: 4px; line-height: 1.35; min-width: 0; }
.brand-client b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-client small { font-size: 12.5px; color: var(--muted); }
.mast-tools { display: flex; align-items: center; gap: 10px; }

.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule); background: transparent; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; position: relative; transition: .15s; flex: none; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.dot-count { position: absolute; top: -3px; inset-inline-end: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--terra); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--paper); }
.user-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; padding: 4px; text-align: start; }
.user-btn > svg { width: 16px; height: 16px; color: var(--muted); }
.user-meta { display: flex; flex-direction: column; line-height: 1.3; }
.user-meta b { font-size: 13.5px; font-weight: 600; }
.user-meta small { font-size: 12px; color: var(--muted); }

/* Section tab bar (newspaper sections) */
.sections { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 243, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.sec-scroll { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.sec-scroll::-webkit-scrollbar { display: none; }
.sec-link { position: relative; padding: 13px 0 12px; color: var(--ink-2); font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: color .15s; }
.sec-link:hover { color: var(--ink); }
.sec-link::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: var(--olive); transform: scaleX(0); transition: transform .2s ease; }
.sec-link:hover::after { transform: scaleX(.4); background: var(--rule-2); }
.sec-link.active { color: var(--ink); font-weight: 600; }
.sec-link.active::after { transform: scaleX(1); background: var(--olive); }
.sec-count { color: var(--terra); font-size: 11px; font-weight: 700; margin-inline-start: 3px; vertical-align: super; }

/* Dropdowns */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 270px; background: var(--card); border: 1px solid var(--rule-2); box-shadow: 0 18px 40px rgba(31, 42, 36, .08); padding: 8px; display: none; z-index: 70; }
.dropdown.open > .dropdown-menu { display: block; }
.dd-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 10px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.dd-user { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.dd-user b { display: block; font-size: 14px; }
.dd-user small { color: var(--muted); font-size: 12.5px; }
.dd-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); text-align: start; cursor: pointer; border-radius: 3px; }
.dd-item:hover { background: var(--paper-2); }
.dd-item svg { width: 16px; height: 16px; color: var(--ink-2); }
.dd-item.danger, .dd-item.danger svg { color: var(--red); }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--rule); margin: 6px 0; }
.notif-menu { width: 350px; }
.notif-list { max-height: 360px; overflow: auto; }
.notif { display: flex; gap: 12px; padding: 10px 8px; color: var(--ink); border-bottom: 1px solid var(--rule); }
.notif:last-child { border-bottom: 0; }
.notif:hover { background: var(--paper-2); }
.notif-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--olive-soft); color: var(--olive); }
.notif-ic svg { width: 16px; height: 16px; }
.notif b { display: block; font-size: 13.5px; font-weight: 600; }
.notif.unread b::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--terra); border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.notif small { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; }
.notif em { font-style: normal; color: var(--muted); font-size: 11.5px; }

/* ---------------------------------------------------------------- Page */
.page { min-height: 60vh; }
.page-body { padding-block: 8px 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 34px 0 24px; border-bottom: 1px solid var(--rule); margin-bottom: 30px; flex-wrap: wrap; }
.page-head .ph-text { max-width: 760px; min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--terra); font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.headline { font-size: 40px; line-height: 1.3; margin: 0; }
.headline em { font-style: normal; color: var(--olive); }
.dek { font-size: 16.5px; color: var(--ink-2); margin: 10px 0 0; max-width: 680px; line-height: 1.8; }
.dek-sm { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.byline { font-size: 13px; color: var(--muted); margin-top: 10px; }
.byline b { color: var(--ink-2); font-weight: 600; }

.section { margin-top: 44px; }
.section:first-child { margin-top: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head h2 { font-size: 23px; margin: 0; }
.sec-head h2 small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 500; margin-inline-start: 8px; }
.sec-head .more, .more { font-size: 13.5px; font-weight: 600; color: var(--olive); border-bottom: 1px solid currentColor; padding-bottom: 1px; white-space: nowrap; }
.sec-head.light { border-top-color: var(--rule-2); }
.sub-head { font-family: var(--serif); font-size: 18px; margin: 0 0 10px; }

/* Editorial grid */
.cols { display: grid; gap: 32px 40px; }
.cols > * { min-width: 0; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.cols-side { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.cols-wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.ruled { column-gap: 0; }
.ruled > * { padding-inline: 26px; }
.ruled > *:first-child { padding-inline-start: 0; }
.ruled > *:last-child { padding-inline-end: 0; }
.ruled > * + * { border-inline-start: 1px solid var(--rule); }

/* Panels (hairline, no shadows) */
.panel { background: var(--card); border: 1px solid var(--rule); padding: 20px 22px; min-width: 0; }
.panel.sand { background: #f4ede0; border-color: #e6dcc8; }
.panel.olive { background: var(--olive-soft); border-color: #d5e0ca; }
.panel.ink { background: var(--ink); border-color: var(--ink); color: #e9e4da; }
.panel.ink h3, .panel.ink .impact-num { color: #fbf8f3; }
.panel.flat { background: transparent; border: 0; padding: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { font-size: 19px; margin: 0; }
.panel-head small { color: var(--muted); font-size: 12.5px; }
.panel + .panel { margin-top: 20px; }

/* ---------------------------------------------------------------- Impact numerals */
.impact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.impact.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.impact.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.impact-item { padding: 22px 24px 20px; display: flex; flex-direction: column; color: var(--ink); min-width: 0; }
.impact-item + .impact-item { border-inline-start: 1px solid var(--rule); }
.impact-item:first-child { padding-inline-start: 0; }
a.impact-item:hover .impact-lbl { color: var(--olive); }
.impact-num { font-family: var(--serif); font-size: 54px; font-weight: 700; line-height: 1.1; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-variant-numeric: lining-nums; }
.impact-num small { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.impact-lbl { font-weight: 600; font-size: 14.5px; margin-top: 10px; }
.impact-note { font-size: 13px; color: var(--muted); margin-top: 2px; }
.impact-item.olive .impact-num { color: var(--olive); }
.impact-item.terra .impact-num { color: var(--terra); }
.impact.sm .impact-num { font-size: 38px; }
.figure { display: flex; flex-direction: column; }
.figure b { font-family: var(--serif); font-size: 30px; line-height: 1.2; }
.figure small { color: var(--muted); font-size: 12.5px; }
.serif-num { font-family: var(--serif); font-weight: 700; }

/* ---------------------------------------------------------------- Progress lines */
.line { display: block; height: 3px; background: #e6dfd2; position: relative; overflow: hidden; width: 100%; }
.line > i { display: block; height: 100%; background: var(--olive); transition: width .6s ease; }
.line.terra > i { background: var(--terra); }
.line.sand > i { background: var(--sand-2); }
.line.ink > i { background: var(--ink); }
.line.thick { height: 6px; }
.prog-list { display: flex; flex-direction: column; }
.prog-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); align-items: baseline; }
.prog-item:first-child { padding-top: 4px; }
.prog-item .line { grid-column: 1 / -1; margin-top: 6px; }
.prog-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.prog-name svg { width: 16px; height: 16px; color: var(--olive); flex: none; }
.prog-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.prog-pct { font-family: var(--serif); font-size: 21px; font-weight: 700; }
a.prog-item:hover .prog-name { color: var(--olive); }

/* ---------------------------------------------------------------- Pipeline */
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.stage { position: relative; padding: 18px 22px; color: var(--ink); min-width: 0; }
.stage:first-child { padding-inline-start: 0; }
.stage + .stage { border-inline-start: 1px solid var(--rule); }
.stage + .stage::before { content: "←"; position: absolute; inset-inline-start: -9px; top: 26px; width: 18px; height: 18px; display: grid; place-items: center; background: var(--paper); color: var(--terra); font-size: 13px; line-height: 1; }
.stage-num { font-family: var(--serif); font-size: 44px; font-weight: 700; line-height: 1.1; display: block; }
.stage-lbl { font-weight: 600; font-size: 14px; display: block; margin-top: 4px; }
.stage-note { font-size: 12.5px; color: var(--muted); display: block; }
.stage.hot .stage-num { color: var(--terra); }
.stage.done .stage-num { color: var(--olive); }
a.stage:hover .stage-lbl { color: var(--olive); }

/* Steps (file status — simple) */
.steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { flex: 1; position: relative; padding-top: 26px; font-size: 12.5px; color: var(--muted); text-align: center; min-width: 0; }
.steps li::before { content: ""; position: absolute; top: 6px; inset-inline-start: 50%; width: 12px; height: 12px; margin-inline-start: -6px; border-radius: 50%; border: 2px solid var(--rule-2); background: var(--paper); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 11px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--rule-2); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--olive); border-color: var(--olive); }
.steps li.done::after { background: var(--olive); }
.steps li.current { color: var(--terra); font-weight: 600; }
.steps li.current::before { border-color: var(--terra); background: var(--terra-soft); }

/* ---------------------------------------------------------------- Feed & timeline */
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.feed-item:last-child { border-bottom: 0; }
.feed-ic { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rule-2); display: grid; place-items: center; color: var(--olive); flex: none; }
.feed-ic svg { width: 16px; height: 16px; }
.feed-body { min-width: 0; }
.feed-body b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-body small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-amt { font-weight: 700; font-size: 14.5px; white-space: nowrap; text-align: end; }
.feed-amt small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.feed-item.new { animation: feedIn .8s ease; }
@keyframes feedIn { from { background: var(--olive-soft); } to { background: transparent; } }

.timeline { list-style: none; margin: 0; padding: 0 22px 0 0; padding-inline-start: 22px; padding-inline-end: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--rule-2); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -22px; top: 7px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--olive); background: var(--paper); }
.tl-item.future::before { border-color: var(--terra); border-style: dashed; }
.tl-item.hot::before { background: var(--terra); border-color: var(--terra); }
.tl-date { display: block; font-size: 12.5px; color: var(--terra); font-weight: 600; }
.tl-text { display: block; font-size: 14.5px; }
.tl-text small { display: block; color: var(--muted); font-size: 12.5px; }

/* Pull-quote */
.pull { font-family: var(--serif); font-size: 24px; line-height: 1.7; color: var(--olive-600); border-inline-start: 3px solid var(--terra); padding-inline-start: 20px; margin: 0; font-weight: 600; }
.pull cite { display: block; font-family: var(--sans); font-size: 13px; color: var(--muted); font-style: normal; font-weight: 500; margin-top: 8px; }
.dropcap::first-letter { font-family: var(--serif); font-size: 3.2em; float: right; line-height: .9; margin-inline-end: 8px; margin-top: 6px; color: var(--olive); }

/* Story cards */
.story { display: flex; flex-direction: column; gap: 10px; color: var(--ink); min-width: 0; }
.story-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.82) contrast(.98) sepia(.06); background: var(--sand); }
.story-img.wide { aspect-ratio: 16 / 9; }
.story-kicker { font-size: 12.5px; color: var(--terra); font-weight: 600; }
.story h3 { font-size: 21px; line-height: 1.45; margin: 0; }
.story p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.story-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
a.story:hover h3 { color: var(--olive); }
.story.h { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; }
.story.h .story-img { aspect-ratio: 1; }
.figcap { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------------------------------------------------------------- Tables (hairline) */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: start; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl th:first-child, .tbl td:first-child { padding-inline-start: 0; }
.tbl th:last-child, .tbl td:last-child { padding-inline-end: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover td { background: #f6f1e8; }
.tbl tr.clickable { cursor: pointer; }
.tbl .amount, .tbl .num { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .nowrap { white-space: nowrap; }
.tbl small { display: block; color: var(--muted); font-size: 12px; }
.tbl .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.tbl tfoot td { font-weight: 700; border-top: 1px solid var(--ink); border-bottom: 0; }
.empty-row td { padding: 0 !important; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pager { display: flex; gap: 4px; flex-wrap: wrap; }
.pager button { min-width: 34px; height: 34px; border: 1px solid var(--rule); background: transparent; font: inherit; font-size: 13px; cursor: pointer; border-radius: 3px; color: var(--ink); }
.pager button:hover { border-color: var(--ink); }
.pager button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager span { padding: 6px 4px; }

/* Toolbar & filters */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 0 0 14px; margin-bottom: 4px; }
.toolbar .grow { flex: 1 1 auto; }
.search { position: relative; flex: 1 1 240px; min-width: 0; }
.search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search .input { padding-inline-start: 38px; }
.toolbar .select { width: auto; min-width: 150px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 5px 13px; border: 1px solid var(--rule-2); border-radius: 999px; background: transparent; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip b { font-weight: 700; margin-inline-start: 4px; }

/* ---------------------------------------------------------------- Forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field > label .muted, .field > label .opt { font-weight: 400; }
.input, .select, .textarea { font: inherit; font-size: 14.5px; background: var(--card); border: 1px solid var(--rule-2); border-radius: 4px; padding: 10px 12px; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.textarea { resize: vertical; line-height: 1.7; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a554e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-inline-end: 12px; padding-left: 32px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px var(--olive-soft); }
.input.under { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding-inline: 0; }
.input.under:focus { box-shadow: none; border-bottom-width: 2px; }
.ltr-in { direction: ltr; text-align: right; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .span-2, .span-2 { grid-column: 1 / -1; }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; display: flex; gap: 6px; align-items: flex-start; line-height: 1.6; }
.hint svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--olive); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--olive); width: 16px; height: 16px; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input[type=range] { flex: 1; accent-color: var(--olive); }
.range-val { font-family: var(--serif); font-size: 26px; min-width: 44px; text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* ---------------------------------------------------------------- Buttons */
.btn { border-radius: 4px; padding: 10px 18px; font-family: var(--sans); font-weight: 600; font-size: 14px; line-height: 1.4; text-decoration: none; }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--olive); color: #fff; border-color: var(--olive); }
.btn-primary:hover { background: var(--olive-600); border-color: var(--olive-600); }
.btn-terra { background: var(--terra); color: #fff; border-color: var(--terra); }
.btn-terra:hover { background: var(--terra-600); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #0f1612; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: transparent; }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #8e3426; }
.btn-danger-soft { background: var(--red-soft); color: var(--red); border-color: transparent; }
.btn-soft { background: var(--olive-soft); color: var(--olive-600); border-color: transparent; }
.btn-soft:hover { background: #dce6d2; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--olive); cursor: pointer; border-bottom: 1px solid currentColor; }
.is-locked { opacity: .45; cursor: not-allowed !important; }

/* ---------------------------------------------------------------- Badges & chips */
.badge { border-radius: 3px; padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.7; background: var(--paper-2); color: var(--ink-2); }
.badge svg { width: 12px; height: 12px; }
.b-olive { background: var(--olive-soft); color: var(--olive-600); }
.b-terra { background: var(--terra-soft); color: var(--terra-600); }
.b-sand { background: var(--sand); color: var(--clay); }
.b-ink { background: var(--ink); color: var(--paper); }
.b-muted { background: #ece8e0; color: #6f766f; }
.b-red { background: var(--red-soft); color: var(--red); }
.b-sky { background: var(--sky-soft); color: var(--sky); }
.type-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.type-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tc, var(--olive)); }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border: 1px solid var(--rule-2); border-radius: 999px; color: var(--ink-2); white-space: nowrap; }

/* Avatars (outlined, editorial) */
.avatar { --av: var(--olive); width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; border: 1px solid var(--av); color: var(--av); background: color-mix(in srgb, var(--av) 8%, var(--card)); font-weight: 600; font-size: 14px; line-height: 1; }
.avatar-sm { width: 32px; height: 32px; font-size: 12.5px; }
.avatar-lg { width: 48px; height: 48px; font-size: 17px; }
.avatar-xl { width: 76px; height: 76px; font-size: 26px; font-family: var(--serif); }
.person { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.person-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.person-txt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-txt small { font-size: 12px; color: var(--muted); }

/* Key/value */
.kv { margin: 0; display: grid; }
.kv > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--rule-2); }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-weight: 600; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.kv-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.kv-2 > div { grid-template-columns: 1fr; gap: 0; }

/* Notice / callout */
.notice { display: flex; gap: 12px; padding: 14px 16px; background: #f4ede0; border-inline-start: 3px solid var(--terra); font-size: 14px; align-items: flex-start; }
.notice svg { width: 18px; height: 18px; color: var(--terra); flex: none; margin-top: 3px; }
.notice.olive { background: var(--olive-soft); border-color: var(--olive); }
.notice.olive svg { color: var(--olive); }
.notice b { font-weight: 600; }

/* Empty state */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 38px 16px; color: var(--ink-2); }
.empty-ic { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rule-2); display: grid; place-items: center; color: var(--olive); margin-bottom: 4px; }
.empty-ic svg { width: 20px; height: 20px; }
.empty b { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.empty small { color: var(--muted); }

/* In-page tabs & segmented */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; padding: 10px 0; font: inherit; font-weight: 600; font-size: 14.5px; color: var(--muted); position: relative; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); }
.tab.active::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--olive); }
.tab .n { color: var(--terra); font-size: 12px; margin-inline-start: 4px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 4px; overflow: hidden; }
.seg button { padding: 7px 14px; background: none; border: 0; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--ink-2); white-space: nowrap; }
.seg button + button { border-inline-start: 1px solid var(--rule-2); }
.seg button.active { background: var(--ink); color: var(--paper); }
.seg-block { display: flex; }
.seg-block button { flex: 1; }

/* Charts */
.chart-box { position: relative; height: 290px; }
.chart-box.sm { height: 210px; }
.chart-box.lg { height: 340px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; background: var(--c, var(--olive)); margin-inline-end: 6px; vertical-align: middle; }
.legend i.ln { height: 2px; width: 16px; }

/* ---------------------------------------------------------------- Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(31, 42, 36, .42); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s ease; }
.modal-backdrop.show { opacity: 1; }
.modal { position: relative; background: var(--paper); border: 1px solid var(--rule-2); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; transform: translateY(10px); transition: transform .2s ease; }
.modal-backdrop.show .modal { transform: none; }
.modal.sm { width: min(430px, 100%); }
.modal.md { width: min(620px, 100%); }
.modal.lg { width: min(880px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid var(--ink); margin-inline: 0; }
.modal-head .kicker { margin-bottom: 2px; }
.modal-head h3 { font-size: 23px; margin: 0; display: flex; align-items: center; gap: 10px; }
.modal-head h3 svg { width: 20px; height: 20px; color: var(--olive); }
.modal-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; }
.modal-body { padding: 20px 24px; overflow: auto; }
.modal-foot { display: flex; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
body.modal-open { overflow: hidden; }
.success-block { text-align: center; padding: 10px 0; }
.success-mark { width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--olive-soft); color: var(--olive); }
.success-mark svg { width: 38px; height: 38px; }
.success-block h3 { font-size: 24px; margin-bottom: 6px; }
.success-block p { color: var(--ink-2); }

/* Toast */
.toast-wrap { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(400px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--ink); color: #f2eee6; padding: 12px 16px; font-size: 14px; border-inline-start: 3px solid var(--sage); animation: toastIn .25s ease; transition: opacity .25s, transform .25s; }
.toast.hide { opacity: 0; transform: translateY(8px); }
.toast b { color: #fff; }
.t-ic { flex: none; width: 20px; height: 20px; display: grid; place-items: center; color: var(--sage); margin-top: 1px; }
.t-ic svg { width: 17px; height: 17px; }
.toast.t-warning { border-color: var(--terra); }
.toast.t-warning .t-ic { color: #e9a07c; }
.toast.t-error { border-color: #d0614e; }
.toast.t-error .t-ic { color: #e98a79; }
.toast.t-info { border-color: #8fb0bf; }
.toast.t-info .t-ic { color: #8fb0bf; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Receipt (print-ready) */
.receipt { background: var(--card); border: 1px solid var(--rule-2); padding: 26px; position: relative; }
.rc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 3px double var(--ink); }
.rc-brand { display: flex; align-items: center; gap: 10px; }
.rc-brand svg { width: 36px; height: 36px; color: var(--olive); flex: none; }
.rc-brand b { font-family: var(--serif); font-size: 19px; display: block; }
.rc-brand small { color: var(--muted); font-size: 12px; }
.rc-no { text-align: end; }
.rc-no small { display: block; color: var(--muted); font-size: 12px; }
.rc-no b { font-size: 15px; }
.rc-thanks { font-family: var(--serif); font-size: 18px; color: var(--olive); text-align: center; margin: 18px 0 6px; }
.rc-amount { text-align: center; margin-bottom: 16px; }
.rc-amount small { display: block; color: var(--muted); font-size: 12.5px; }
.rc-amount b { font-family: var(--serif); font-size: 40px; }
.rc-foot { display: flex; align-items: center; gap: 16px; border-top: 1px dashed var(--rule-2); margin-top: 16px; padding-top: 14px; font-size: 12px; color: var(--muted); }
.rc-foot p { margin: 0; }
.qr { display: grid; grid-template-columns: repeat(21, 1fr); width: 84px; height: 84px; flex: none; background: #fff; padding: 3px; }
.qr i { display: block; }
.qr i.on { background: var(--ink); }

/* ---------------------------------------------------------------- Colophon */
.colophon { border-top: 1px solid var(--ink); margin-top: 24px; font-size: 12.5px; color: var(--ink-2); }
.colophon .wrap { display: flex; align-items: center; gap: 10px; padding-block: 16px 22px; flex-wrap: wrap; }
.colo-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.colo-brand svg { width: 18px; height: 18px; color: var(--olive); }
.colo-brand b { font-family: var(--serif); font-size: 16px; }
.colo-sep { color: var(--rule-2); }
.colo-by { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 500; }
.colo-by img { width: 16px; height: 16px; object-fit: contain; }

/* ---------------------------------------------------------------- Portal (donor / beneficiary — phone-first) */
.tabbar { display: none; }
.portal .wrap { max-width: 1040px; }
.portal-hero { padding: 28px 0 22px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.portal-hero .greet { font-family: var(--serif); font-size: 32px; line-height: 1.35; margin: 0; }
.portal-hero p { color: var(--ink-2); margin: 6px 0 0; }
.big-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.big-btn { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 118px; padding: 18px; border: 1px solid var(--rule-2); background: var(--card); color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; text-align: start; cursor: pointer; transition: border-color .15s, background .15s; }
.big-btn svg { width: 28px; height: 28px; color: var(--olive); }
.big-btn small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.big-btn:hover { border-color: var(--ink); }
.big-btn.primary { background: var(--olive); border-color: var(--olive); color: #fff; }
.big-btn.primary svg, .big-btn.primary small { color: #e3ebd9; }
.big-btn.terra { background: var(--terra); border-color: var(--terra); color: #fff; }
.big-btn.terra svg, .big-btn.terra small { color: #fbe3d6; }
.status-card { border: 1px solid var(--rule-2); background: var(--card); padding: 22px; }
.status-card .big { font-family: var(--serif); font-size: 30px; line-height: 1.3; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-plain > li:last-child { border-bottom: 0; }
.date-block { width: 56px; flex: none; text-align: center; border: 1px solid var(--rule-2); padding: 6px 0; line-height: 1.2; background: var(--card); }
.date-block b { display: block; font-family: var(--serif); font-size: 24px; }
.date-block small { font-size: 11.5px; color: var(--terra); font-weight: 600; }

/* ---------------------------------------------------------------- Utilities */
.muted { color: var(--muted); }
.ink-2 { color: var(--ink-2); }
.olive { color: var(--olive); }
.terra { color: var(--terra); }
.red { color: var(--red); }
.serif, .h-serif { font-family: var(--serif); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.fw-6 { font-weight: 600; }
.fw-7 { font-weight: 700; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.wrap-row { flex-wrap: wrap; }
.gap-1 { gap: 6px; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; } .gap-4 { gap: 24px; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 10px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; } .mt-5 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 10px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; } .mb-5 { margin-bottom: 36px; }
.hr { border: 0; border-top: 1px solid var(--rule); margin: 20px 0; }
.hr.ink { border-top-color: var(--ink); }
.show-sm { display: none; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mask { letter-spacing: .5px; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-num { font-size: 46px; }
  .big-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --gutter: 22px; }
  .cols-main, .cols-side, .cols-wide, .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .ruled > * { padding-inline: 0; }
  .ruled > * + * { border-inline-start: 0; border-top: 1px solid var(--rule); padding-top: 26px; }
  .ruled { row-gap: 26px; }
  .impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-item:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .impact-item:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .stage:nth-child(odd)::before { display: none; }
  .stage:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .headline { font-size: 34px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 14.5px; }
  .hide-sm { display: none !important; }
  .show-sm { display: initial; }
  .mast-strip .wrap { min-height: 30px; font-size: 12px; }
  .mast-main { padding-block: 10px; }
  .brand { gap: 9px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .brand-word { font-size: 28px; }
  .brand-client { padding-inline-start: 10px; }
  .brand-client b { font-size: 12.5px; max-width: 150px; }
  .brand-client small { font-size: 11.5px; }
  .user-meta, .user-btn > svg { display: none; }
  .mast-tools { gap: 6px; }
  .sec-scroll { gap: 22px; }
  .sec-link { font-size: 14px; padding: 11px 0 10px; }
  .dropdown-menu { position: fixed; top: 64px; inset-inline: 12px; min-width: 0; width: auto; }
  .notif-menu { width: auto; }
  .page-head { padding: 22px 0 18px; margin-bottom: 22px; }
  .headline { font-size: 28px; }
  .dek { font-size: 15px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 auto; }
  .section { margin-top: 34px; }
  .sec-head h2 { font-size: 20px; }
  .cols-2, .cols-4, .form-grid, .kv-2 { grid-template-columns: minmax(0, 1fr); }
  .impact-item { padding: 16px 14px 14px; }
  .impact-num { font-size: 36px; }
  .impact-num small { font-size: 12.5px; }
  .impact-lbl { font-size: 13.5px; }
  .stage { padding: 14px; }
  .stage-num { font-size: 34px; }
  .panel { padding: 16px; }
  .kv > div { grid-template-columns: 110px minmax(0, 1fr); }
  .story.h { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .story h3 { font-size: 18px; }
  .pull { font-size: 20px; }
  .toolbar .select { flex: 1 1 140px; min-width: 0; }
  /* stacked table rows */
  .tbl.stack-sm thead { display: none; }
  .tbl.stack-sm, .tbl.stack-sm tbody, .tbl.stack-sm tr, .tbl.stack-sm td { display: block; width: 100%; }
  .tbl.stack-sm tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .tbl.stack-sm td { border: 0; padding: 3px 0 !important; display: flex; justify-content: space-between; gap: 12px; text-align: end; }
  .tbl.stack-sm td::before { content: attr(data-label); color: var(--muted); font-size: 12.5px; text-align: start; flex: none; }
  .tbl.stack-sm td.full { display: block; text-align: start; }
  .tbl.stack-sm td.full::before { display: none; }
  .tbl.stack-sm .actions { justify-content: flex-start; }
  .modal-backdrop { place-items: end center; padding: 0; }
  .modal, .modal.sm, .modal.md, .modal.lg { width: 100%; max-height: 92vh; border-inline: 0; border-bottom: 0; }
  .modal-head, .modal-body, .modal-foot { padding-inline: 18px; }
  .modal-foot .btn { flex: 1 1 auto; }
  .toast-wrap { inset-inline: 16px; bottom: 16px; max-width: none; }
  .colo-by { margin-inline-start: 0; }

  /* portal: bottom tab bar replaces the section bar */
  .portal .sections { display: none; }
  .portal .tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; bottom: 0; inset-inline: 0; z-index: 60; background: rgba(251, 248, 243, .97); backdrop-filter: blur(6px); border-top: 1px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .portal .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; color: var(--muted); position: relative; }
  .portal .tabbar a svg { width: 21px; height: 21px; }
  .portal .tabbar a small { font-size: 11.5px; font-weight: 600; }
  .portal .tabbar a.active { color: var(--olive); }
  .portal .tabbar a.active::before { content: ""; position: absolute; top: -1px; inset-inline: 28%; height: 3px; background: var(--olive); }
  body.portal { padding-bottom: 72px; }
  .portal .toast-wrap { bottom: 84px; }
  .portal-hero { padding: 18px 0 16px; margin-bottom: 18px; }
  .portal-hero .greet { font-size: 25px; }
  .big-btn { min-height: 104px; padding: 16px; font-size: 15.5px; }
}
@media (max-width: 420px) {
  .brand-client b { max-width: 110px; }
  .impact-num { font-size: 31px; }
  .headline { font-size: 25px; }
  .rc-amount b { font-size: 32px; }
  .receipt { padding: 18px; }
}

/* ---------------------------------------------------------------- Print (receipts & reports) */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 12.5px; padding: 0 !important; }
  .mast, .sections, .colophon, .tabbar, .toast-wrap, .page-actions, .toolbar, .no-print, .pager, .dropdown { display: none !important; }
  .page-body { padding: 0; max-width: none; }
  .panel { background: #fff; break-inside: avoid; }
  .section, .impact, .pipeline, .prog-item { break-inside: avoid; }
  .print-only { display: block !important; }
  a { color: inherit; }
  body.modal-open > *:not(.modal-backdrop) { display: none !important; }
  .modal-backdrop { position: static; background: none; padding: 0; opacity: 1; display: block; }
  .modal { border: 0; max-height: none; width: 100% !important; transform: none; }
  .modal-head, .modal-foot, .modal-x { display: none !important; }
  .modal-body { padding: 0; overflow: visible; }
  .receipt { border: 1px solid #999; }
}
.print-only { display: none; }

/* Product logo (image) */
.brand-mark.has-logo { border: 0; border-radius: 0; padding: 0; width: 44px; height: 44px; }
.brand-mark .brand-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.colo-brand .brand-logo { width: 22px; height: 22px; object-fit: contain; }
@media (max-width: 720px) { .brand-mark.has-logo { width: 36px; height: 36px; } }
