* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 1rem/1.55 "Segoe UI", Arial, sans-serif; color: #183643; background: #f1f5f6; }
.top { background: #173f4b; color: white; padding: .85rem max(1.3rem, calc((100vw - 70rem) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top strong { font-size: 1.25rem; margin-right: 1.25rem; }
main { max-width: 72rem; margin: 0 auto; padding: 24px 1rem 3rem; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .75rem; }
h1 { font-size: clamp(1.8rem,4vw,2.65rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
#details > section > button + h3 { margin-top:1.5rem; }
section { margin: 1.2rem 0; background: white; border: 1px solid #c8d8dc; border-radius: .75rem; padding: 1.25rem; }
p { margin: .6rem 0 1rem; }
button, .button, select { font: inherit; border-radius: .4rem; padding: .45rem .85rem; border: 1px solid #9bb4bb; background: white; color: #174856; }
button, .button { cursor: pointer; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.primary { background: #115969; border-color: #115969; color: white; }
button:hover, .button:hover { border-color: #155369; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 3px solid #287ca0; outline-offset: 2px; }
textarea { width: 100%; font: inherit; padding: .7rem; border: 1px solid #9bb4bb; border-radius: .4rem; }
label { display: block; font-weight: 650; margin-bottom: .35rem; }
.pager, .tools { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin: .8rem 0; }
.pager label { margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #eaf1f3; } th, td { padding: .6rem .8rem; border-bottom: 1px solid #d9e4e7; vertical-align: top; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }
.error { color: #8f1d2c; }
#invitation { max-width: 54rem; margin: 1rem auto; padding: clamp(1rem, 4vw, 2.5rem); }
.invite-note { padding: .85rem 1rem; background: #edf5f8; border: 1px solid #c8dce4; border-radius: .5rem; }
.invite-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap: 1rem; }
.invite-options > div { display: flex; flex-direction: column; padding: 1.15rem; border: 1px solid #c8d8dc; border-radius: .65rem; }
.invite-options h2 { font-size: 1.15rem; }
.invite-options p { flex: 1; }
.invite-options button { justify-content: center; min-height: 44px; }
.invite-options svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; }
#dismiss { margin-top: 1.2rem; }
@media (max-width: 600px) { main { padding-top: 18px; } section { padding: .85rem; } }

.dpia-case { --case-line:#ccdddf; display:grid; grid-template-columns:minmax(0,1fr); gap:1.5rem; padding:clamp(1rem,3vw,2rem); overflow-wrap:anywhere; }
.dpia-case h2, .dpia-case h3, .dpia-case h4, .dpia-case p { margin:0; }
.case-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.75rem 1rem; padding-bottom:1.25rem; border-bottom:1px solid var(--case-line); }
.case-header h2 { font-size:clamp(1.35rem,3vw,1.85rem); }
.case-header p, .case-byline { margin-top:.4rem; color:#4a6871; }
.case-status { background:#e4f2ef; color:#235951; border:1px solid #bddbd4; border-radius:1rem; padding:.25rem .8rem; font-size:.9rem; font-weight:650; }
.case-status.is-pending { background:#faf3e6; border-color:#e7d6b1; color:#765317; }
.case-note { display:grid; gap:.4rem; padding-left:1rem; border-left:3px solid #739fa6; }
.case-byline { font-size:.9rem; }
.dpia-case .text { max-width:80ch; line-height:1.65; }
.case-tabs { display:flex; flex-wrap:wrap; gap:.4rem; }
.case-tabs button { text-align:left; min-height:44px; padding:.55rem .85rem; border-radius:.5rem; }
.case-tabs svg { flex:0 0 18px; }
.case-tabs [aria-selected="true"] { border-color:#175c69; background:#175c69; color:white; font-weight:700; }
.dpia-case [role="tabpanel"] { display:grid; grid-template-columns:minmax(0,1fr); gap:1rem; }
.dpia-case [role="tabpanel"]:focus-visible { outline-offset:4px; }
@media(max-width:600px) {
    .case-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
    .case-tabs button { padding:.5rem .65rem; line-height:1.35; }
}
.snapshot-origin { color:#44636b; font-size:.95rem; }
.snapshot-field { padding-top:1rem; border-top:1px solid #e0eaeb; }
.snapshot-field h3 { margin:0 0 .4rem; color:#184c57; font-size:1rem; }
.snapshot-risks { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr)); gap:1rem; }
.risk-comparison { align-self:start; font-size:.9rem; table-layout:fixed; }
.risk-comparison caption { padding:.65rem; background:#e4efef; border-radius:.45rem .45rem 0 0; color:#234d55; text-align:left; caption-side:top; font-size:1rem; font-weight:650; }
.risk-comparison th, .risk-comparison td { padding:.55rem .45rem; line-height:1.45; }
.risk-comparison thead th { background:#f3f7f7; font-weight:600; }
.risk-comparison tbody th { background:white; }
.case-compose { display:grid; gap:.8rem; padding:1rem; border:1px solid var(--case-line); border-radius:.65rem; background:#f5f9f9; }
.case-compose label { margin:0; }
.dpia-case .action-detail { display:grid; gap:1rem; padding:1rem; border:1px solid var(--case-line); border-radius:.65rem; }
.dpia-case select { width:100%; min-width:0; box-sizing:border-box; padding:.6rem; font:inherit; }
.case-compose textarea { resize:vertical; line-height:1.6; }
.dpia-case > button, .case-compose button { justify-self:start; min-height:42px; }
.private-contacts { display:grid; gap:1rem; min-width:0; overflow-wrap:anywhere; }
.private-contacts > h2, .private-contacts p { margin:0; }
.private-contacts > button { justify-self:start; }
.private-contacts .table-wrap { min-width:0; }
.private-contacts [role="tabpanel"] h3 { margin:1rem 0 .25rem; }
.private-contacts [role="tabpanel"] .text { max-width:76ch; }
.contact-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.contact-form > div:has(textarea), .contact-form > p { grid-column:1/-1; }
.contact-form label { display:block; font-weight:600; }
.contact-form input, .contact-form select, .contact-form textarea { width:100%; min-width:0; border:1px solid #9bb4bb; border-radius:.4rem; padding:.55rem .7rem; font:inherit; }
.contact-form textarea { min-height:7rem; resize:vertical; }
.contact-form button { justify-self:start; }
@media(max-width:600px) { .contact-form { grid-template-columns:minmax(0,1fr); } }
