:root {
  color-scheme: light;
  --bg: #edf5fc;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --ink: #152f49;
  --ink-2: #3c566e;
  --muted: #73899d;
  --line: #d9e6f2;
  --line-strong: #c3d7e8;
  --navy: #123f70;
  --blue: #2e7cd8;
  --blue-light: #dcecff;
  --cyan: #4bb5d1;
  --amber: #ed9a32;
  --amber-light: #fff3df;
  --violet: #8073df;
  --slate: #7e92a7;
  --green: #3f9d89;
  --shadow: 0 12px 34px rgba(42, 91, 133, .08);
  --shadow-strong: 0 22px 54px rgba(42, 91, 133, .14);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.drawer-open { overflow: hidden; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 70px;
  border-bottom: 1px solid rgba(195, 215, 232, .88);
  background: rgba(247, 251, 255, .93);
  backdrop-filter: blur(16px);
}
.header-inner { width: min(1500px, calc(100% - 40px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--navy); box-shadow: 0 9px 22px rgba(18,63,112,.22); }
.brand-mark svg { width: 23px; height: 23px; }
.brand-kicker { color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .09em; }
.brand h1 { margin: 1px 0 0; font-size: 1.18rem; line-height: 1.2; letter-spacing: -.02em; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.snapshot-pill, .ghost-button { height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2); font-size: .78rem; font-weight: 680; text-decoration: none; }
.snapshot-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(75,181,209,.13); }
.ghost-button { cursor: pointer; }
.ghost-button:hover { color: var(--blue); border-color: #a9cce9; background: #f8fcff; }

.dashboard-shell { width: min(1500px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 38px; }
.executive-grid { display: grid; grid-template-columns: minmax(0, 1.64fr) minmax(390px, .86fr); gap: 14px; align-items: stretch; }
.executive-summary, .attainment-card, .filter-panel, .kpi-card, .dashboard-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.executive-summary { position: relative; min-height: 256px; padding: 25px 28px 23px; overflow: hidden; background: var(--navy); color: #fff; }
.executive-summary::after { content: ""; position: absolute; width: 250px; height: 250px; right: -120px; top: -155px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 56px rgba(255,255,255,.025); }
.section-eyebrow { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; color: #bcd9f2; font-size: .76rem; font-weight: 780; letter-spacing: .08em; }
.section-eyebrow span { color: #fff; }
.executive-summary h2 { position: relative; z-index: 1; max-width: 900px; margin: 12px 0 18px; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.4; letter-spacing: -.03em; }
.executive-summary h2 strong { color: #9ee2f4; }
.narrative-list { position: relative; z-index: 1; display: grid; gap: 7px; }
.narrative-row { display: grid; grid-template-columns: 46px 1fr; gap: 9px; align-items: start; }
.narrative-row > span { min-height: 24px; display: inline-grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.1); color: #d8e9f8; font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.narrative-row.action > span { background: rgba(237,154,50,.2); color: #ffdca9; }
.narrative-row p { margin: 2px 0 0; color: rgba(255,255,255,.76); font-size: .79rem; }
.attainment-card { min-height: 256px; display: flex; flex-direction: column; padding: 22px; }
.attainment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-kicker { color: var(--muted); font-size: .72rem; font-weight: 740; }
.attainment-head h3 { margin: 2px 0 0; font-size: 1rem; }
.scope-badge { max-width: 150px; overflow: hidden; padding: 5px 9px; border-radius: 999px; background: var(--blue-light); color: var(--blue); font-size: .68rem; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.attainment-body { flex: 1; display: grid; grid-template-columns: 152px 1fr; gap: 18px; align-items: center; padding: 10px 0 8px; }
.progress-ring { --rate: 0; width: 140px; height: 140px; position: relative; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--blue) calc(var(--rate) * 1%), #e8f0f7 0); }
.progress-ring::before { content: ""; position: absolute; inset: 15px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.progress-ring > div { position: relative; z-index: 1; text-align: center; }
.progress-ring strong { display: block; font-size: 1.85rem; line-height: 1; letter-spacing: -.05em; }
.progress-ring span { display: block; margin-top: 6px; color: var(--muted); font-size: .68rem; }
.attainment-values { display: grid; gap: 8px; }
.attainment-values > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid #edf2f6; }
.attainment-values span { color: var(--muted); font-size: .72rem; }
.attainment-values strong { font-size: .91rem; }
.attainment-values strong.blue { color: var(--blue); }
.attainment-values strong.amber { color: #a5691f; }
.attainment-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid #edf2f6; color: var(--muted); font-size: .7rem; }
.attainment-foot span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attainment-foot button { flex: 0 0 auto; padding: 4px 8px; border: 0; border-radius: 7px; background: var(--surface-soft); color: var(--blue); font-size: .68rem; font-weight: 740; cursor: pointer; }

.filter-panel { margin-top: 14px; padding: 16px 18px 12px; }
.quick-filter-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.75fr auto auto; gap: 10px; align-items: end; }
.filter-field { min-width: 0; }
.filter-field label { display: block; margin: 0 0 5px 2px; color: var(--ink-2); font-size: .72rem; font-weight: 700; }
.filter-field select, .filter-field input, .search-control, .range-control { width: 100%; height: 39px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: var(--surface-soft); color: var(--ink); font-size: .78rem; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.filter-field select, .filter-field > input { padding: 0 10px; }
.filter-field select { cursor: pointer; }
.filter-field select:focus, .filter-field input:focus, .search-control:focus-within, .range-control:focus-within { border-color: #8ebae2; background: #fff; box-shadow: 0 0 0 4px rgba(46,124,216,.08); }
.search-control { display: grid; grid-template-columns: 28px 1fr; align-items: center; }
.search-control svg { width: 16px; height: 16px; margin-left: 10px; color: #8ba0b4; }
.search-control input { height: 37px; border: 0; background: transparent; padding: 0 9px 0 0; }
.filter-toggle, .reset-button { height: 39px; padding: 0 12px; border-radius: 10px; font-size: .75rem; font-weight: 750; white-space: nowrap; cursor: pointer; }
.filter-toggle { border: 1px solid #b7d4ed; background: #eef6ff; color: var(--blue); }
.filter-toggle span { display: inline-grid; min-width: 19px; height: 19px; place-items: center; margin-left: 3px; border-radius: 99px; background: #dcecff; font-size: .64rem; }
.reset-button { border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.advanced-filters { display: grid; grid-template-columns: 1.2fr 1fr 1.6fr; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf2f6; }
.range-control { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 8px; }
.range-control input { min-width: 0; height: 36px; border: 0; background: transparent; padding: 0 4px; text-align: center; }
.range-control span { color: var(--muted); font-size: .7rem; }
.filter-status { min-height: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 10px; }
.active-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .7rem; }
.filter-chip { min-height: 25px; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border: 1px solid #cbe0f3; border-radius: 99px; background: #f3f8fd; color: var(--blue); font-size: .68rem; cursor: pointer; }
.filter-chip b { font-size: .76rem; font-weight: 600; }
.filter-status > strong { color: var(--ink-2); font-size: .72rem; white-space: nowrap; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.kpi-card { min-height: 105px; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; align-items: center; padding: 16px; }
.kpi-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; }
.kpi-icon svg { width: 20px; height: 20px; }
.kpi-icon.blue { color: var(--blue); background: var(--blue-light); }
.kpi-icon.cyan { color: #258ba4; background: #e3f5f9; }
.kpi-icon.amber { color: #a76a20; background: var(--amber-light); }
.kpi-icon.violet { color: var(--violet); background: #eeeafd; }
.kpi-icon.slate { color: var(--slate); background: #edf2f6; }
.kpi-card > div:last-child { min-width: 0; }
.kpi-card span { display: block; color: var(--muted); font-size: .71rem; font-weight: 700; }
.kpi-card strong { display: block; margin-top: 3px; overflow: hidden; color: var(--ink); font-size: 1.35rem; line-height: 1.15; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.kpi-card small { display: block; margin-top: 4px; overflow: hidden; color: #8b9dad; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 25px 2px 12px; }
.section-heading > div:first-child { display: flex; align-items: flex-start; gap: 11px; }
.section-heading > div:first-child > span { padding-top: 2px; color: var(--blue); font-size: .75rem; font-weight: 850; letter-spacing: .08em; }
.section-heading h2 { margin: 0; font-size: 1.08rem; letter-spacing: -.018em; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: .73rem; }
.section-actions { display: flex; gap: 6px; }
.view-chip { height: 31px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: .7rem; font-weight: 720; cursor: pointer; }
.view-chip.active { border-color: #a9cdea; background: #eaf4ff; color: var(--blue); }

.visual-grid { display: grid; gap: 12px; align-items: stretch; }
.progress-grid { grid-template-columns: minmax(0, 1.78fr) minmax(360px, .82fr); }
.structure-grid { grid-template-columns: minmax(360px, .82fr) minmax(0, 1.78fr); }
.dashboard-card { min-width: 0; padding: 19px; }
.card-head { min-height: 50px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-head h3 { margin: 0; font-size: .91rem; letter-spacing: -.012em; }
.card-head p { margin: 3px 0 0; color: var(--muted); font-size: .68rem; }
.chart-legend, .matrix-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; color: var(--muted); font-size: .67rem; }
.chart-legend span, .matrix-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; }
.chart-legend i.forecast { background: var(--blue); }
.chart-legend i.shipped { background: var(--cyan); }
.chart-wrap, .matrix-wrap { position: relative; min-width: 0; }
#monthlyChart { width: 100%; height: 318px; display: block; overflow: visible; }
.grid-line { stroke: #e8eff6; stroke-width: 1; }
.axis-text { fill: #8195a8; font-size: 11px; font-family: inherit; }
.forecast-bar { fill: var(--blue); }
.shipped-bar { fill: var(--cyan); }
.zero-bar { fill: #e8eff5; }
.month-group { cursor: pointer; }
.month-group:hover .forecast-bar, .month-group:hover .shipped-bar { filter: brightness(.96); }
.selected-band { fill: #eef6ff; stroke: #c5ddf3; }
.chart-tooltip { position: absolute; z-index: 4; width: max-content; max-width: 240px; padding: 9px 11px; border: 1px solid #c9ddec; border-radius: 9px; background: rgba(18,63,112,.96); color: #fff; box-shadow: 0 12px 26px rgba(18,63,112,.22); font-size: .69rem; pointer-events: none; }
.chart-tooltip strong { display: block; margin-bottom: 3px; font-size: .75rem; }
.card-insight { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 2px; padding: 9px 11px; border-radius: 10px; background: var(--surface-soft); color: var(--muted); font-size: .69rem; }
.card-insight strong { color: var(--ink-2); }
.donut-section { min-height: 250px; display: grid; grid-template-columns: 158px 1fr; gap: 14px; align-items: center; }
.donut-wrap { position: relative; display: grid; place-items: center; }
#statusDonut { width: 155px; height: 155px; transform: rotate(-90deg); }
.donut-track { fill: none; stroke: #e8eff5; stroke-width: 24; }
.donut-segment { fill: none; stroke-width: 24; cursor: pointer; transition: stroke-width .16s ease, opacity .16s ease; }
.donut-segment:hover { stroke-width: 29; }
.donut-center { position: absolute; text-align: center; }
.donut-center strong { display: block; font-size: 1.45rem; line-height: 1; letter-spacing: -.04em; }
.donut-center span { display: block; margin-top: 5px; color: var(--muted); font-size: .65rem; }
.status-list { display: grid; gap: 6px; }
.status-item { width: 100%; display: grid; grid-template-columns: 9px minmax(50px,1fr) auto; gap: 7px; align-items: center; padding: 6px 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; font-size: .68rem; cursor: pointer; }
.status-item:hover, .status-item.active { border-color: var(--line); background: var(--surface-soft); }
.status-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--status-color); }
.status-item strong { color: var(--ink-2); font-size: .7rem; }
.status-summary { min-height: 40px; display: flex; align-items: center; padding: 9px 11px; border-radius: 10px; background: var(--amber-light); color: #855d2a; font-size: .69rem; }

.segmented { flex: 0 0 auto; display: flex; padding: 3px; border-radius: 9px; background: #eef3f7; }
.segmented button { height: 27px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: .68rem; font-weight: 740; cursor: pointer; }
.segmented button.active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(42,91,133,.09); }
.country-list { display: grid; gap: 11px; padding-top: 10px; }
.country-row { width: 100%; display: grid; grid-template-columns: minmax(70px,.7fr) minmax(110px,1.4fr) 76px; gap: 10px; align-items: center; padding: 4px 5px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.country-row:hover, .country-row.active { border-color: var(--line); background: var(--surface-soft); }
.country-name { min-width: 0; }
.country-name strong { display: block; overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.country-name span { display: block; margin-top: 1px; color: var(--muted); font-size: .62rem; }
.country-bars { display: grid; gap: 3px; }
.country-track { height: 7px; overflow: hidden; border-radius: 99px; background: #eaf0f5; }
.country-track span { display: block; height: 100%; width: var(--width); border-radius: inherit; background: var(--blue); }
.country-track.shipped span { background: var(--cyan); }
.country-value { text-align: right; }
.country-value strong { display: block; color: var(--ink-2); font-size: .71rem; }
.country-value span { display: block; color: var(--muted); font-size: .61rem; }
.matrix-hint { flex: 0 0 auto; color: var(--muted); font-size: .64rem; }
#projectMatrix { width: 100%; height: 390px; display: block; overflow: visible; }
.matrix-grid { stroke: #e8eff5; stroke-width: 1; stroke-dasharray: 3 5; }
.matrix-axis { stroke: #bdcddd; stroke-width: 1; }
.matrix-label { fill: #8195a8; font-size: 10.5px; font-family: inherit; }
.matrix-bubble { cursor: pointer; stroke: #fff; stroke-width: 2; opacity: .86; transition: opacity .16s ease; }
.matrix-bubble:hover { opacity: 1; stroke: var(--navy); }
.matrix-bubble.done { fill: var(--green); }
.matrix-bubble.partial { fill: var(--blue); }
.matrix-bubble.pending { fill: var(--amber); }
.matrix-legend { justify-content: flex-end; margin-top: -2px; }
.matrix-legend i { width: 8px; height: 8px; border-radius: 50%; }
.matrix-legend i.done { background: var(--green); }
.matrix-legend i.partial { background: var(--blue); }
.matrix-legend i.pending { background: var(--amber); }

.project-section { padding: 18px; }
.project-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: .7rem; }
.project-toolbar strong { color: var(--ink-2); }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; align-items: stretch; }
.project-card { min-width: 0; min-height: 244px; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(42,91,133,.045); cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.project-card:hover { transform: translateY(-2px); border-color: #a9cde9; box-shadow: 0 14px 28px rgba(42,91,133,.1); }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-tags { min-width: 0; display: flex; gap: 5px; flex-wrap: wrap; }
.project-tag { min-height: 23px; display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 99px; background: #eaf4ff; color: var(--blue); font-size: .63rem; font-weight: 720; }
.project-tag.month { background: #eef2f6; color: #5d7184; }
.project-rate { color: var(--blue); font-size: .7rem; font-weight: 820; }
.project-card h3 { min-height: 43px; display: -webkit-box; overflow: hidden; margin: 10px 0 0; font-size: .84rem; line-height: 1.46; letter-spacing: -.01em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.project-progress { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #e9f0f5; }
.project-progress span { display: block; height: 100%; width: var(--width); border-radius: inherit; background: var(--blue); }
.project-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 11px; padding: 10px 0; border-top: 1px solid #eef2f6; border-bottom: 1px solid #eef2f6; }
.project-metrics span { display: block; color: var(--muted); font-size: .59rem; }
.project-metrics strong { display: block; margin-top: 2px; overflow: hidden; color: var(--ink-2); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.project-products { margin-top: 10px; min-height: 34px; color: var(--ink-2); font-size: .66rem; line-height: 1.55; }
.project-products b { color: var(--muted); font-weight: 650; }
.project-card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.status-pill { min-width: 0; display: inline-flex; align-items: center; gap: 5px; overflow: hidden; color: var(--ink-2); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.status-pill i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--status-color); }
.detail-link { color: var(--blue); font-size: .63rem; font-weight: 750; white-space: nowrap; }
.empty-state { grid-column: 1/-1; padding: 54px 20px; border: 1px dashed var(--line-strong); border-radius: 14px; background: var(--surface-soft); color: var(--muted); text-align: center; }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--ink-2); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 14px; }
.load-more-wrap button { min-width: 150px; height: 37px; border: 1px solid #b7d4ec; border-radius: 9px; background: #fff; color: var(--blue); font-size: .71rem; font-weight: 740; cursor: pointer; }
.load-more-wrap button:hover { background: #eef6ff; }
.load-more-wrap button[hidden] { display: none; }

.footer { width: min(1500px, calc(100% - 40px)); min-height: 58px; margin: 0 auto; padding: 16px 2px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: .68rem; }
.footer strong { color: var(--ink-2); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(10,31,52,.34); backdrop-filter: blur(2px); }
.project-drawer { position: fixed; z-index: 40; inset: 0 0 0 auto; width: min(470px, 92vw); display: flex; flex-direction: column; transform: translateX(102%); background: #fff; box-shadow: -24px 0 58px rgba(10,31,52,.18); transition: transform .24s ease; }
.project-drawer.open { transform: translateX(0); }
.drawer-head { min-height: 112px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 22px 18px; border-bottom: 1px solid var(--line); background: var(--navy); color: #fff; }
.drawer-head span { display: block; color: #bad6ed; font-size: .69rem; }
.drawer-head h2 { margin: 6px 0 0; font-size: 1.18rem; line-height: 1.4; }
.drawer-head button { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.drawer-body { flex: 1; overflow: auto; padding: 20px 22px; }
.drawer-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.drawer-kpi { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.drawer-kpi span { display: block; color: var(--muted); font-size: .61rem; }
.drawer-kpi strong { display: block; margin-top: 3px; font-size: .78rem; }
.drawer-section { margin-top: 20px; }
.drawer-section h3 { margin: 0 0 10px; font-size: .78rem; }
.drawer-section p { margin: 0; color: var(--ink-2); font-size: .7rem; line-height: 1.65; }
.drawer-product-list { display: grid; gap: 10px; }
.drawer-product-row { display: grid; grid-template-columns: minmax(90px,1fr) minmax(100px,1.5fr) 58px; gap: 8px; align-items: center; font-size: .68rem; }
.drawer-product-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-product-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e9eff5; }
.drawer-product-track span { display:block; height:100%; width:var(--width); background:var(--blue); border-radius:inherit; }
.drawer-product-row em { color: var(--muted); font-style: normal; text-align: right; }
.drawer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-tags span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--ink-2); font-size: .65rem; }
.drawer-status-list { display:grid; gap:7px; }
.drawer-status-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border-radius:9px; background:var(--surface-soft); font-size:.68rem; }
.drawer-status-row span { display:inline-flex; align-items:center; gap:6px; }
.drawer-status-row i { width:7px; height:7px; border-radius:50%; background:var(--status-color); }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--line); background: #fff; }
.drawer-actions button { height: 39px; border-radius: 9px; font-size: .72rem; font-weight: 750; cursor: pointer; }
.drawer-filter { border: 1px solid var(--blue); background: var(--blue); color: #fff; }
.drawer-close-button { border: 1px solid var(--line); background: #fff; color: var(--ink-2); }

body.presentation .filter-panel, body.presentation .header-actions, body.presentation .section-actions, body.presentation .load-more-wrap, body.presentation .footer { display: none !important; }
body.presentation .app-header { position: static; }
body.presentation .dashboard-shell { padding-top: 16px; }
body.presentation .project-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }

@media (max-width: 1160px) {
  .quick-filter-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .filter-toggle { grid-column: 1 / 3; }
  .reset-button { grid-column: 3 / 5; }
  .filter-toggle, .reset-button { width:100%; }
  .kpi-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .progress-grid, .structure-grid { grid-template-columns: 1fr; }
}
@media (max-width: 930px) {
  .executive-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .header-actions .snapshot-pill { display:none; }
}
@media (max-width: 700px) {
  .header-inner, .dashboard-shell, .footer { width: min(100% - 24px,1500px); }
  .source-button { display:none; }
  .brand h1 { font-size: 1rem; }
  .brand-kicker { font-size:.63rem; }
  .executive-summary { padding:22px 20px; }
  .quick-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .search-field { grid-column: span 2; }
  .filter-toggle, .reset-button { grid-column: span 1; }
  .advanced-filters { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .attainment-body { grid-template-columns: 135px 1fr; }
  .progress-ring { width:128px; height:128px; }
  .donut-section { grid-template-columns:1fr; }
  .status-list { grid-template-columns:repeat(2,1fr); }
  .country-row { grid-template-columns:minmax(70px,.8fr) minmax(100px,1.5fr) 68px; }
  .project-grid { grid-template-columns:1fr; }
  .section-heading { align-items:flex-start; flex-direction:column; }
  .footer { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 460px) {
  .header-actions .ghost-button:first-of-type { display:none; }
  .quick-filter-grid, .kpi-grid { grid-template-columns:1fr; }
  .search-field { grid-column:auto; }
  .attainment-body { grid-template-columns:1fr; }
  .progress-ring { margin:0 auto; }
  .chart-legend, .matrix-hint { display:none; }
  .card-insight { align-items:flex-start; flex-direction:column; }
}
@media print {
  body { background:#fff; }
  .app-header { position:static; }
  .header-actions, .filter-panel, .section-actions, .load-more-wrap { display:none!important; }
  .dashboard-shell, .header-inner, .footer { width:100%; }
  .executive-summary, .attainment-card, .kpi-card, .dashboard-card { box-shadow:none; break-inside:avoid; }
  .project-grid { grid-template-columns:repeat(2,1fr); }
}
