
/* Phase 4/9 — propriedade, registros e território: componentes editoriais leves */
.p4r-enhanced{--p4r-ink:#183143;--p4r-muted:#60717d;--p4r-line:#d9e2e7;--p4r-soft:#f6f9fa;--p4r-accent:#315d8c;--p4r-accent2:#3f7561;--p4r-warn:#8a5a3d}
.p4r-enhanced .p4r-frame{margin:28px 0;padding:24px;border:1px solid var(--p4r-line);border-radius:20px;background:linear-gradient(180deg,#fff,var(--p4r-soft));box-shadow:0 14px 36px rgba(15,36,51,.055)}
.p4r-enhanced .p4r-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}
.p4r-enhanced .p4r-head>div:first-child{min-width:0}
.p4r-enhanced .p4r-kicker{font:800 10px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.11em;text-transform:uppercase;color:var(--p4r-accent)}
.p4r-enhanced .p4r-head h2,.p4r-enhanced .p4r-frame h2{margin:5px 0 0;font-size:clamp(22px,2.5vw,34px);line-height:1.06;color:var(--p4r-ink)}
.p4r-enhanced .p4r-head p,.p4r-enhanced .p4r-frame>p{max-width:800px;margin:7px 0 0;color:var(--p4r-muted);line-height:1.65}
.p4r-enhanced .p4r-badge{flex:0 0 auto;border:1px solid #bfcdd6;border-radius:999px;padding:7px 10px;background:#fff;color:#365163;font:800 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap}
.p4r-enhanced .p4r-flow{display:grid;grid-template-columns:repeat(var(--p4r-cols,4),minmax(0,1fr));gap:10px;align-items:stretch;margin-top:16px}
.p4r-enhanced .p4r-step{position:relative;min-width:0;padding:16px;border:1px solid var(--p4r-line);border-radius:15px;background:#fff}
.p4r-enhanced .p4r-step .num{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 6px;border-radius:999px;background:#eaf1f6;color:#234962;font:900 10px ui-monospace,SFMono-Regular,Menlo,monospace}
.p4r-enhanced .p4r-step b{display:block;margin:9px 0 5px;color:var(--p4r-ink);font-size:14px}
.p4r-enhanced .p4r-step span{display:block;color:var(--p4r-muted);font-size:12px;line-height:1.5}
.p4r-enhanced .p4r-step:not(:last-child)::after{content:'→';position:absolute;right:-10px;top:50%;z-index:2;transform:translate(50%,-50%);display:grid;place-items:center;width:23px;height:23px;border:1px solid var(--p4r-line);border-radius:50%;background:#fff;color:var(--p4r-accent);font-weight:900}
.p4r-enhanced .p4r-ledger{overflow:hidden;margin-top:16px;border:1px solid var(--p4r-line);border-radius:16px;background:#fff}
.p4r-enhanced .p4r-ledger-row{display:grid;grid-template-columns:minmax(150px,.75fr) minmax(0,1.75fr);gap:18px;padding:13px 16px;border-bottom:1px solid var(--p4r-line);align-items:start}
.p4r-enhanced .p4r-ledger-row:last-child{border-bottom:0}
.p4r-enhanced .p4r-ledger-row b{font-size:12px;color:var(--p4r-ink)}
.p4r-enhanced .p4r-ledger-row span{font-size:12px;line-height:1.55;color:var(--p4r-muted)}
.p4r-enhanced .p4r-matrix{display:grid;grid-template-columns:repeat(var(--p4r-cols,3),minmax(0,1fr));gap:10px;margin-top:16px}
.p4r-enhanced .p4r-cell{padding:15px;border:1px solid var(--p4r-line);border-radius:14px;background:#fff}
.p4r-enhanced .p4r-cell small{display:block;margin-bottom:6px;color:var(--p4r-accent);font:850 9px/1.25 ui-monospace,SFMono-Regular,Menlo,monospace;text-transform:uppercase;letter-spacing:.06em}
.p4r-enhanced .p4r-cell b{display:block;color:var(--p4r-ink);font-size:13px;line-height:1.35}
.p4r-enhanced .p4r-cell p{margin:6px 0 0;color:var(--p4r-muted);font-size:11.5px;line-height:1.55}
.p4r-enhanced .p4r-callout{margin-top:16px;padding:15px 17px;border-left:4px solid var(--p4r-accent2);border-radius:10px;background:#eef6f2;color:#29483a;font-size:12px;line-height:1.6}
.p4r-enhanced .p4r-callout.warn{border-left-color:var(--p4r-warn);background:#f8f2ea;color:#5b422b}
.p4r-enhanced .p4r-os{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;margin-top:16px}
.p4r-enhanced .p4r-os>div{padding:16px;border:1px solid var(--p4r-line);border-radius:14px;background:#fff}
.p4r-enhanced .p4r-os b{display:block;color:var(--p4r-ink);font-size:13px;margin-bottom:6px}
.p4r-enhanced .p4r-os span{display:block;color:var(--p4r-muted);font-size:11.5px;line-height:1.55}
.p4r-enhanced .p4r-stack{display:grid;gap:8px;margin-top:16px}
.p4r-enhanced .p4r-layer{display:grid;grid-template-columns:160px minmax(0,1fr);gap:16px;align-items:center;padding:13px 15px;border:1px solid var(--p4r-line);border-radius:13px;background:#fff}
.p4r-enhanced .p4r-layer b{color:var(--p4r-ink);font-size:12px}.p4r-enhanced .p4r-layer span{color:var(--p4r-muted);font-size:11.5px;line-height:1.5}
.p4r-enhanced .p4r-layer.legal{border-left:4px solid #3f7561}.p4r-enhanced .p4r-layer.spatial{border-left:4px solid #315d8c}.p4r-enhanced .p4r-layer.visual{border-left:4px solid #8a5a3d}.p4r-enhanced .p4r-layer.history{border-left:4px solid #705a8b}
.p4r-enhanced .p4r-compare{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}
.p4r-enhanced .p4r-compare article{padding:17px;border:1px solid var(--p4r-line);border-radius:15px;background:#fff}.p4r-enhanced .p4r-compare h3{margin:0 0 7px;color:var(--p4r-ink);font-size:15px}.p4r-enhanced .p4r-compare p{margin:0;color:var(--p4r-muted);font-size:11.5px;line-height:1.55}
.p4r-enhanced .p4r-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.p4r-enhanced .p4r-check{display:flex;gap:9px;align-items:flex-start;padding:11px 12px;border:1px solid var(--p4r-line);border-radius:12px;background:#fff;color:var(--p4r-muted);font-size:11.5px;line-height:1.45}.p4r-enhanced .p4r-check::before{content:'✓';color:var(--p4r-accent2);font-weight:900}
.p4r-enhanced .p4r-empty{margin-top:16px;padding:18px;border:1px dashed #aebdc7;border-radius:14px;background:rgba(255,255,255,.65)}.p4r-enhanced .p4r-empty b{display:block;color:var(--p4r-ink);font-size:13px}.p4r-enhanced .p4r-empty p{margin:5px 0 0;color:var(--p4r-muted);font-size:11.5px;line-height:1.55}
.p4r-page{--p4r-ink:#183143;--p4r-muted:#60717d;--p4r-line:#d9e2e7;--p4r-soft:#f6f9fa;--p4r-accent:#315d8c;--p4r-accent2:#3f7561;--p4r-warn:#8a5a3d}
.p4r-page .p4r-wrap{max-width:1180px;margin:0 auto;padding:36px 22px 72px}.p4r-page .p4r-crumbs{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:22px;font-size:11px;color:#657681}.p4r-page .p4r-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:28px;align-items:start}.p4r-page .p4r-hero h1{margin:7px 0 12px;font-size:clamp(38px,5vw,64px);line-height:.98;color:var(--p4r-ink);letter-spacing:-.035em}.p4r-page .p4r-lead{max-width:760px;color:var(--p4r-muted);font-size:16px;line-height:1.65}.p4r-page .p4r-hero-card{padding:20px;border:1px solid var(--p4r-line);border-radius:18px;background:linear-gradient(180deg,#fff,#f6f9fa)}.p4r-page .p4r-hero-card b{display:block;color:var(--p4r-ink);font-size:13px}.p4r-page .p4r-hero-card p{margin:7px 0 0;color:var(--p4r-muted);font-size:11.5px;line-height:1.55}.p4r-page .p4r-links{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.p4r-page .p4r-links a{display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;border:1px solid var(--p4r-line);border-radius:10px;background:#fff;font-size:11px;font-weight:800;text-decoration:none}
html[data-theme="dark"] .p4r-enhanced,html[data-theme="dark"] .p4r-page{--p4r-ink:#edf3f7;--p4r-muted:#b9c6cf;--p4r-line:#334653;--p4r-soft:#15232d;--p4r-accent:#86b9e4;--p4r-accent2:#77c49b;--p4r-warn:#d8ad72}
html[data-theme="dark"] .p4r-enhanced .p4r-frame,html[data-theme="dark"] .p4r-page .p4r-hero-card{background:linear-gradient(180deg,#172630,#13212a)}
html[data-theme="dark"] .p4r-enhanced .p4r-step,html[data-theme="dark"] .p4r-enhanced .p4r-ledger,html[data-theme="dark"] .p4r-enhanced .p4r-cell,html[data-theme="dark"] .p4r-enhanced .p4r-os>div,html[data-theme="dark"] .p4r-enhanced .p4r-layer,html[data-theme="dark"] .p4r-enhanced .p4r-compare article,html[data-theme="dark"] .p4r-enhanced .p4r-check,html[data-theme="dark"] .p4r-page .p4r-links a{background:#172630;color:#dbe5eb}
html[data-theme="dark"] .p4r-enhanced .p4r-step:not(:last-child)::after,html[data-theme="dark"] .p4r-enhanced .p4r-badge{background:#172630;border-color:#3a4c58;color:#b9d7eb}
html[data-theme="dark"] .p4r-enhanced .p4r-callout{background:rgba(77,143,108,.15);color:#c8e7d5}html[data-theme="dark"] .p4r-enhanced .p4r-callout.warn{background:rgba(174,119,60,.14);color:#ead1b4}
html[data-theme="dark"] .p4r-enhanced .p4r-empty{background:rgba(23,38,48,.72);border-color:#455967}
@media(max-width:900px){.p4r-enhanced .p4r-flow,.p4r-enhanced .p4r-matrix{grid-template-columns:repeat(2,minmax(0,1fr))}.p4r-enhanced .p4r-step:nth-child(2n)::after{display:none}.p4r-enhanced .p4r-os,.p4r-enhanced .p4r-compare,.p4r-page .p4r-hero{grid-template-columns:1fr}.p4r-enhanced .p4r-compare{gap:8px}.p4r-page .p4r-hero-card{max-width:none}}
@media(max-width:620px){.p4r-enhanced .p4r-frame{padding:18px 14px;border-radius:16px}.p4r-enhanced .p4r-head{align-items:flex-start;flex-direction:column}.p4r-enhanced .p4r-flow,.p4r-enhanced .p4r-matrix,.p4r-enhanced .p4r-checks{grid-template-columns:1fr}.p4r-enhanced .p4r-step::after{display:none!important}.p4r-enhanced .p4r-ledger-row,.p4r-enhanced .p4r-layer{grid-template-columns:1fr;gap:5px}.p4r-page .p4r-wrap{padding:28px 15px 56px}.p4r-page .p4r-hero h1{font-size:clamp(34px,12vw,50px)}}
