[hidden] { display: none !important; }
:root {
  --fg: #1d1d1b; --muted: #6b6a66; --bg: #faf9f6; --panel: #ffffff; --line: #e6e3dc;
  --ok: #2e7d4f; --warn: #b7791f; --bad: #c0392b;
  --c0: #2e7d4f; --c1: #d69e2e; --c2: #3b6fb6; --c3: #c9c5bb;
  --plan: #8a877f; --scope: #b9b5ab; --grid: #eeebe4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #ecebe7; --muted: #a3a19b; --bg: #1b1b19; --panel: #242422; --line: #3a3936;
    --c3: #55534e; --plan: #a3a19b; --scope: #6d6b66; --grid: #2f2e2b;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15px; }
.pz { max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; display: flex; flex-direction: column; gap: 22px; }
.pz-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pz-title { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.15; margin: 0; }
.pz-refresh { font-size: 13px; }
.pz-sub { color: var(--muted); margin: 6px 0 0; }
.pz-take { font-size: 1.12rem; line-height: 1.55; margin: 14px 0 0; max-width: 62rem; }
.pz-take b, .pz-small b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pz-error { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); padding: 10px 12px; border-radius: var(--radius); margin: 12px 0 0; }
h2 { font-size: 1.1rem; font-weight: 600; margin: 0 0 4px; }
.pz-note { color: var(--muted); font-size: 13px; margin: 0 0 14px; line-height: 1.5; }
.pz-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.pz-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.pz-tile-label { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.pz-big { font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pz-unit { font-size: 1.1rem; color: var(--muted); }
.pz-small { font-size: 13px; color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.pz-small b { color: var(--fg); }
.pz-gap { margin-top: 14px; }
.pz-muted { color: var(--muted); }
.pz-meter, .pz-areabar { border-radius: 99px; background: var(--line); overflow: hidden; display: flex; }
.pz-meter { height: 10px; margin-top: 10px; }
.pz-areabar { height: 8px; min-width: 90px; margin-top: 6px; }
.pz-meter span, .pz-areabar span, .pz-stack span { display: block; height: 100%; }
.c0 { background: var(--c0); } .c1 { background: var(--c1); } .c2 { background: var(--c2); } .c3 { background: var(--c3); }
.pz-chart { position: relative; min-height: 320px; }
.pz-chart svg { display: block; width: 100%; overflow: visible; }
.pz-chart text { fill: var(--muted); font-size: 12px; font-family: var(--sans); }
.pz-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.pz-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.lg-plan { height: 0 !important; border-top: 2px dashed var(--plan); } .lg-actual { background: var(--c0); } .lg-scope { background: var(--scope); }
.pz-tip { position: absolute; pointer-events: none; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.12); border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.5; white-space: nowrap; z-index: 2; }
.pz-stack { display: flex; height: 34px; border-radius: var(--radius); overflow: hidden; margin: 8px 0 14px; }
.pz-stack span { min-width: 2px; }
.pz-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.pz-stage { display: flex; gap: 10px; align-items: flex-start; }
.pz-dot { width: 12px; height: 12px; border-radius: 3px; flex: none; margin-top: 4px; }
.pz-stage-n { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pz-stage-l { font-size: 13px; color: var(--muted); line-height: 1.4; }
.pz-twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.pz-tablewrap { overflow-x: auto; }
.pz-t { width: 100%; border-collapse: collapse; }
.pz-t th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pz-t td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.pz-t tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pz-tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.pz-tag.ok { color: var(--ok); border-color: var(--ok); } .pz-tag.warn { color: var(--warn); border-color: var(--warn); } .pz-tag.bad { color: var(--bad); border-color: var(--bad); }
.pz-sub2 { color: var(--muted); font-size: 12px; }
.pz-btn { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); cursor: pointer; }
.pz-btn:hover { border-color: var(--muted); }
.pz-btn[disabled] { opacity: .6; cursor: default; }
.pz-status-line { font-size: 1.15rem; margin: 6px 0 0; line-height: 1.5; }
.pz-who { margin-left: 10px; white-space: nowrap; }
.pz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pz-noteform textarea, .pz-noteform select, .pz-field input { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
.pz-noteform-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.pz-noteform-row select { width: auto; max-width: 100%; flex: 1 1 220px; }
.pz-notes { list-style: none; padding: 0; margin: 16px 0 0; }
.pz-noteitem { border-top: 1px solid var(--line); padding: 10px 0; }
.pz-notebody { margin: 4px 0 6px; white-space: pre-wrap; line-height: 1.5; }
.pz-btn-small { font-size: 12px; padding: 2px 8px; }
.pz-noteactions { display: flex; gap: 8px; flex-wrap: wrap; }
.pz-files { list-style: none; padding: 0; margin: 0 0 8px; font-size: 13px; }
.pz-files a { color: var(--c2); }
.pz-busy { opacity: .6; pointer-events: none; }
.pz-summary { margin-top: 14px; }
.pz-summary-text { white-space: pre-wrap; line-height: 1.55; margin: 10px 0 0; max-width: 62rem; }
.pz-auth a { color: var(--c2); }
.pz-auth { max-width: 420px; margin: 10vh auto 0; }
.pz-field { display: block; margin: 0 0 14px; }
.pz-field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.pz-primary { font-size: 15px; padding: 8px 18px; }
details { line-height: 1.55; }
details summary { cursor: pointer; font-weight: 600; }
code { font-size: 12px; background: var(--line); padding: 1px 5px; border-radius: 4px; }
@media print { .pz-btn { display: none; } body { background: #fff; } }
