/* ============================================================
   PMO Guide — PMI-themed design system
   PMI Brand: Navy #003087 · Teal #009CB8 · Orange #F26522
   ============================================================ */
:root {
  /* PMI colour palette */
  --pmi-navy:   #003087;
  --pmi-teal:   #009CB8;
  --pmi-orange: #F26522;
  --pmi-navy-soft: #e8edf6;
  --pmi-teal-soft:  #e0f5f8;
  --pmi-orange-soft: #fef0e8;

  --bg: #f0f2f5; --surface: #ffffff; --surface-2: #f7f8fa; --border: #dde1e7;
  --text: #1a1d23; --muted: #5a6270;
  --primary: var(--pmi-navy); --primary-soft: var(--pmi-navy-soft);
  --accent: var(--pmi-teal); --accent-soft: var(--pmi-teal-soft);
  --highlight: var(--pmi-orange); --highlight-soft: var(--pmi-orange-soft);
  --good: #16a34a; --good-soft: #e7f6ec;
  --bad: #dc2626;  --bad-soft: #fdeaea;
  --warn: var(--pmi-orange); --warn-soft: var(--pmi-orange-soft);
  --shadow: 0 1px 4px rgba(0,48,135,.08), 0 1px 2px rgba(0,0,0,.04);
  --radius: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif; font-size: 14px; line-height: 1.6; color: var(--text); background: var(--bg); }

/* Topbar — PMI navy */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 0 24px; height: 62px; background: var(--pmi-navy); border-bottom: 3px solid var(--pmi-orange); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; cursor: pointer; color: #fff; }
.brand i { color: var(--pmi-orange); font-size: 22px; }
.search-wrap { position: relative; flex: 1; max-width: 460px; display: flex; align-items: center; }
.search-wrap i.ph-magnifying-glass { position: absolute; left: 12px; color: var(--muted); }
#search { width: 100%; padding: 8px 12px 8px 34px; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; outline: none; }
#search:focus { border-color: var(--primary); }
.search-results { position: absolute; top: 44px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); max-height: 360px; overflow-y: auto; z-index: 60; }
.search-results a { display: block; padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border); }
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--primary-soft); }
.search-results .sr-term { font-weight: 600; }
.search-results .sr-snip { color: var(--muted); font-size: 13px; }
.search-results .sr-cat { font-size: 11px; font-weight: 700; color: var(--primary); }
.search-results .sr-empty { padding: 14px; color: var(--muted); }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); border-radius: 8px; color: #fff; cursor: pointer; font-size: 18px; }
.icon-btn:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.nav-toggle { display: none; }


/* Shell */
.shell { display: flex; align-items: flex-start; }
.sidenav { position: sticky; top: 65px; width: 248px; flex-shrink: 0; height: calc(100vh - 65px); overflow-y: auto; padding: 20px 12px 14px; background: var(--pmi-navy); border-right: none; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 6px; color: rgba(255,255,255,.75); cursor: pointer; text-decoration: none; font-size: 13.5px; font-weight: 500; margin-bottom: 2px; }
.nav-item i { color: rgba(255,255,255,.55); font-size: 17px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-item:hover i { color: #fff; }
.nav-item.active { background: var(--pmi-orange); color: #fff; font-weight: 700; }
.nav-item.active i { color: #fff; }

/* Content */
.content { flex: 1; min-width: 0; padding: 30px 36px 64px; max-width: 1040px; margin: 0 auto; }
.content h1 { font-size: 23px; font-weight: 700; margin: 0 0 6px; color: var(--pmi-navy); }
.content h2 { font-size: 15px; font-weight: 700; margin: 26px 0 12px; color: var(--pmi-navy); text-transform: uppercase; letter-spacing: .04em; }
.lead { color: var(--muted); font-size: 14px; margin-bottom: 20px; border-left: 3px solid var(--pmi-teal); padding-left: 12px; }
.en { color: var(--muted); font-style: italic; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: none; border-radius: 6px; background: var(--pmi-navy); color: #fff; font: inherit; font-weight: 600; cursor: pointer; letter-spacing: .01em; }
.btn:hover { background: #004db3; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn.ghost:hover { border-color: var(--pmi-navy); color: var(--pmi-navy); background: var(--surface); }
.btn.sm { padding: 6px 14px; font-size: 13px; }

/* Priority (MoSCoW) badges */
.prio { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.prio.must { background: var(--bad-soft); color: var(--bad); }
.prio.should { background: var(--warn-soft); color: var(--warn); }
.prio.nice { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* Home: deliverable / category overview */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--pmi-teal); border-radius: var(--radius); padding: 16px; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,48,135,.12); }
.tile i { font-size: 24px; color: var(--pmi-teal); }
.tile .tile-top { display: flex; align-items: center; justify-content: space-between; }
.tile .tile-title { font-weight: 700; margin: 8px 0 2px; color: var(--pmi-navy); }
.tile .tile-sub { color: var(--muted); font-size: 12px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Filters */
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.chips-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 4px; text-transform: uppercase; letter-spacing: .04em; }
.chip { padding: 5px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; font-weight: 500; }
.chip:hover { border-color: var(--pmi-navy); color: var(--pmi-navy); }
.chip.active { background: var(--pmi-navy); color: #fff; border-color: var(--pmi-navy); }

/* Library category sections + entries */
.cat-sec { margin-bottom: 26px; }
.cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.cat-head i { color: var(--primary); font-size: 20px; }
.cat-title { font-weight: 700; font-size: 16px; }
.cat-en { color: var(--muted); font-size: 12px; }
.cat-note { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.cat-count { margin-left: auto; font-size: 12px; color: var(--muted); }

.entry { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--pmi-teal); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.entry-top { display: flex; align-items: flex-start; gap: 8px; }
.entry-item { font-weight: 600; flex: 1; }
.entry-type { font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.entry-fields { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; }
.entry-f { font-size: 13px; }
.entry-f b { color: var(--muted); font-weight: 600; }
.entry-copy { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; flex-shrink: 0; }
.entry-copy:hover { color: var(--primary); }
.entry-src { margin-top: 6px; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.entry-src i { font-size: 13px; }
.empty-note { color: var(--muted); font-size: 13px; padding: 8px 0; }

/* Aspiration tiles — home page, 5 across */
.asp-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 860px) { .asp-tiles { grid-template-columns: repeat(2, 1fr); } }
.asp-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 14px;
  cursor: pointer; box-shadow: var(--shadow);
  transition: transform .12s, border-color .12s;
}
.asp-tile:hover { transform: translateY(-2px); border-color: var(--primary); }
.asp-tile-icon { font-size: 22px; color: var(--pmi-teal); margin-bottom: 8px; }
.asp-tile-name { font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--pmi-navy); }
.asp-tile-counts { display: flex; flex-direction: column; gap: 3px; }
.asp-tile-counts span { font-size: 12px; color: var(--muted); }
.asp-tile-counts strong { color: var(--primary); font-size: 14px; }

/* Home stats */
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.stat { flex: 1; min-width: 90px; text-align: center; background: var(--pmi-navy); border: none; border-radius: 8px; padding: 14px 12px; }
.stat-n { font-size: 26px; font-weight: 700; color: #fff; }
.stat-l { font-size: 11px; color: rgba(255,255,255,.65); margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }
.lib-count { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 20px 0 8px; }
.pg-info { font-size: 13px; color: var(--muted); }

/* Flat search results (KPI / Activity / Milestone items with origin) */
.flat-results { margin-bottom: 24px; }
.flat-results-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 10px;
}
.flat-results-h i { color: var(--primary); font-size: 16px; }
.flat-result-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.flat-result-item { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.flat-result-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--text); margin-bottom: 8px; }
.flat-result-meta b { color: var(--muted); font-weight: 600; }
.flat-result-origin {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  padding-top: 8px; border-top: 1px dashed var(--border);
  font-size: 12px; color: var(--muted);
}
.flat-result-origin > i { color: var(--muted); font-size: 14px; }
.origin-label { font-weight: 600; }
.origin-name { color: var(--pmi-navy); font-weight: 600; }
.origin-src { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.origin-src i { font-size: 12px; }

/* Level badges (Inisiatif / KPI / Aktiviti / Milestone) */
.level-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; align-self: flex-start; margin-top: 1px; }
.level-badge i { font-size: 12px; }
.lb-init { background: var(--pmi-navy); color: #fff; }
.lb-kpi  { background: var(--pmi-navy-soft); color: var(--pmi-navy); border: 1px solid var(--pmi-navy); }
.lb-act  { background: var(--pmi-teal-soft); color: var(--pmi-teal); border: 1px solid var(--pmi-teal); }
.lb-ms   { background: var(--pmi-orange-soft); color: var(--pmi-orange); border: 1px solid var(--pmi-orange); }

/* Nested KPI → Activity → Milestone tree */
.nt { padding: 4px 0 2px; }
.nt-kpi { margin-bottom: 12px; }
.nt-kpi-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--pmi-navy-soft); border-radius: 8px; border-left: 3px solid var(--pmi-navy); }
.nt-icon-kpi { color: var(--pmi-navy); font-size: 17px; margin-top: 2px; flex-shrink: 0; }
.nt-kpi-body { flex: 1; }
.nt-kpi-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.nt-kpi-meta b { color: var(--muted); font-weight: 600; }

.nt-acts { margin: 6px 0 0 22px; padding-left: 14px; border-left: 2px dashed var(--border); }

.nt-act { margin-bottom: 8px; }
.nt-act-row { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; }
.nt-icon-act { color: var(--muted); font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.nt-act-body { flex: 1; }

.nt-ms { display: flex; align-items: flex-start; gap: 9px; margin: 4px 0 0 20px; padding: 7px 10px; background: var(--pmi-orange-soft); border: 1px solid rgba(242,101,34,.2); border-radius: 7px; }
.nt-icon-ms { color: var(--pmi-orange); font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.nt-ms-body { flex: 1; }

.nt-item { font-size: 13px; font-weight: 600; }
.nt-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nt-meta b { font-weight: 600; }

.nt-extra { margin-top: 4px; }

/* Aspiration (project type) group header */
.asp-group { margin-bottom: 26px; }
.asp-group-h {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 8px 14px; margin-bottom: 12px;
  background: var(--pmi-navy); color: #fff;
  border-radius: 6px;
}
.asp-group-h i { font-size: 19px; }
.asp-group-n { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }

/* Initiative card: Initiative -> KPI -> Activity -> Milestone */
.init { border: 1px solid var(--border); border-left: 4px solid var(--pmi-navy); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 16px; }
.init-head { display: flex; align-items: center; gap: 9px; }
.init-head > i { color: var(--primary); font-size: 19px; }
.init-name { font-weight: 700; font-size: 15px; flex: 1; }
.asp-tag { font-size: 11px; font-weight: 700; color: #fff; background: var(--pmi-teal); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.init-outline { border-left-color: var(--border); opacity: .92; }
.outline-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 1px 7px; border-radius: 999px; }
.init-src { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin: 4px 0 10px; }
.init-src i { font-size: 13px; }

.sub { margin: 8px 0 0 6px; padding-left: 14px; border-left: 2px dashed var(--border); }
.sub-h { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin: 8px 0 6px; }
.sub-h i { color: var(--primary); font-size: 15px; }
.sub-n { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.sub-row { background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; margin-bottom: 6px; }
.sub-item { font-weight: 600; font-size: 13px; }
.sub-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 3px; }
.sub-meta span { font-size: 12px; color: var(--text); }
.sub-meta b { color: var(--muted); font-weight: 600; }

/* Reference sections */
.ref-sec { margin-bottom: 22px; }
.ref-head { display: flex; align-items: center; gap: 9px; margin-bottom: 2px; }
.ref-head i { color: var(--pmi-teal); font-size: 18px; }
.ref-title { font-weight: 700; font-size: 15px; }
.ref-count { margin-left: auto; font-size: 12px; color: var(--muted); }
.ref-note { color: var(--muted); font-size: 13px; margin: 0 0 10px; }

/* Search + Clear inline row */
.search-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.search-row .lib-search-wrap { flex: 1; margin-bottom: 0; }

/* In-library search */
.lib-search-wrap {
  position: relative; display: flex; align-items: center;
  margin-bottom: 14px;
}
.lib-search-wrap i {
  position: absolute; left: 12px; color: var(--muted); font-size: 16px; pointer-events: none;
}
#libSearch, #suggSearch, #refSearch, #promptSearch {
  width: 100%; padding: 10px 12px 10px 36px;
  font: inherit; font-size: 14px;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; outline: none;
}
#libSearch:focus, #suggSearch:focus, #refSearch:focus, #promptSearch:focus { border-color: var(--primary); }

/* Two filter rows stacked */
.lib-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
/* RPM Teras chips — PMI orange when active */
.rpm-label { color: var(--pmi-orange); font-weight: 700; }
.rpm-chip { border-color: var(--border); color: var(--text); background: var(--surface); }
.rpm-chip:hover { border-color: var(--pmi-orange); color: var(--pmi-orange); }
.rpm-chip.active { background: var(--pmi-orange) !important; color: #fff !important; border-color: var(--pmi-orange) !important; }
/* RPM tag on initiative cards */
.rpm-tag { font-size: 10px; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; background: var(--pmi-orange-soft); color: var(--pmi-orange); border: 1px solid var(--pmi-orange); white-space: nowrap; }

/* Toolbar */
.lib-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.lib-toolbar .spacer { flex: 1; }
.lib-count { font-size: 13px; color: var(--muted); }

/* Artifacts */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.art-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.art-card .art-top { display: flex; align-items: center; gap: 10px; }
.art-card i.art-icon { font-size: 22px; color: var(--primary); }
.art-title { font-weight: 700; }
.art-en { color: var(--muted); font-size: 12px; }
.art-desc { color: var(--muted); font-size: 13px; margin: 8px 0 10px; }
.art-uses { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.use-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer; }
.use-tag:hover { border-color: var(--primary); color: var(--primary); }

/* Prompt box */
.prompt-box { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-top: 8px; }
.prompt-text { font-size: 13px; white-space: pre-wrap; color: var(--text); font-family: ui-monospace, Consolas, monospace; }
.prompt-actions { margin-top: 10px; display: flex; gap: 8px; }

/* Suggestion */
.sugg-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.copied-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 13px; z-index: 90; box-shadow: var(--shadow); }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .sidenav { position: fixed; left: 0; top: 58px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidenav.open { transform: translateX(0); }
  .content { padding: 20px 18px 56px; }
  .brand span { display: none; }
}

/* Starters */
.starter-tip { font-size: 13px; margin-bottom: 20px; padding: 12px 16px; }
.starter-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.starter-card-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.starter-card-title { font-weight: 700; font-size: 15px; flex: 1; }
.starter-print-btn { margin-left: auto; }
.starter-body { padding: 16px; }
.starter-sec { margin-bottom: 16px; }
.starter-sec-h { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.starter-sec-note { font-size: 11px; color: var(--muted); font-style: italic; margin-bottom: 8px; }
.starter-field { margin-bottom: 10px; }
.starter-field-label { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.starter-field-hint { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.starter-field-box { border: 1px solid var(--border); border-radius: 6px; min-height: 36px; background: var(--surface-2); }
.starter-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted); align-items: center; }
.starter-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-soft); border: none; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.starter-link i { font-size: 12px; }
.starter-link:hover { filter: brightness(1.1); }

/* Prompt type badge */
.type-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; align-self: flex-start; }
.type-generate  { background: var(--pmi-navy); color: #fff; }
.type-refine    { background: var(--pmi-teal-soft); color: var(--pmi-teal); border: 1px solid var(--pmi-teal); }
.type-learn     { background: var(--pmi-navy-soft); color: var(--pmi-navy); border: 1px solid var(--pmi-navy); }
.type-review    { background: var(--pmi-orange-soft); color: var(--pmi-orange); border: 1px solid var(--pmi-orange); }
.type-analyse   { background: #f0fdf4; color: #16a34a; border: 1px solid #16a34a; }
.type-workshop  { background: #faf5ff; color: #7c3aed; border: 1px solid #7c3aed; }

/* Prompt Sets */
.prompt-card { margin-bottom: 18px; }
.prompt-card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.prompt-card-icon { font-size: 24px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.prompt-card-title { font-weight: 700; font-size: 15px; }
.prompt-card-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.prompt-cats { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.prompt-cats i { color: var(--primary); font-size: 14px; }
.prompt-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.prompt-text { font-size: 13px; white-space: pre-wrap; line-height: 1.7; color: var(--text); }
.prompt-actions { display: flex; gap: 8px; }
.prompt-how ol li { font-size: 14px; }

/* Print: clean training-aid document of the library */
@media print {
  .topbar, .sidenav, .lib-toolbar, .filters, .entry-copy, .entry-type, .nav-toggle { display: none !important; }
  body, .content { background: #fff; color: #000; }
  .entry { box-shadow: none; border-left: 2px solid #888; break-inside: avoid; }
  .content { max-width: none; padding: 0; }
  .cat-sec { break-inside: avoid; }
}
