:root {
  --accent:#0e7490; --ink:#0f172a; --muted:#64748b; --line:#e2e8f0;
  --soft:#f8fafc; --sidebar:#08111f; --sidebar-line:rgba(148,163,184,.16);
  --radius:10px; --green:#059669; --red:#dc2626; --amber:#d97706;
  --bp-nav:1024px; --bp-stack:1024px; --bp-compact:768px; --bp-tight:520px;
  --tap:44px; --topbar:64px;
  --safe-top:env(safe-area-inset-top, 0px);
  --safe-bottom:env(safe-area-inset-bottom, 0px);
  --safe-left:env(safe-area-inset-left, 0px);
  --safe-right:env(safe-area-inset-right, 0px);
  --page-x:28px; --page-y:22px;
}
* { box-sizing:border-box; margin:0; }
button, input, select, textarea { font-family:inherit; font-size:16px; }
body { font-family:system-ui,-apple-system,"Segoe UI",sans-serif; color:var(--ink); background:var(--soft); display:flex; min-height:100dvh; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.sidebar { width:248px; background:var(--sidebar); color:#e2e8f0; padding:20px 14px; display:flex; flex-direction:column; gap:4px; position:sticky; top:0; height:100dvh; overflow:hidden; }
.sidebar .brand, .menu-head .brand { font-weight:800; font-size:17px; letter-spacing:-.02em; padding:4px 10px 16px; }
.menu-head .brand { padding:0; color:#fff; }
.brand span, .sidebar .brand span { color:var(--accent); filter:brightness(1.6); }
.ent-select { width:100%; margin:0 0 12px; padding:8px 10px; font-size:16px; font-weight:600;
             background:#0d1b2e; color:#e2e8f0; border:1px solid var(--sidebar-line);
             border-radius:8px; cursor:pointer; outline:none; min-height:40px; }
.ent-select:focus { border-color:var(--accent); }
.ent-select option { background:#0d1b2e; color:#e2e8f0; }
.nav { display:flex; flex-direction:column; gap:2px; flex:1; min-height:0; overflow-y:auto; scrollbar-width:thin; scrollbar-color:rgba(148,163,184,.45) transparent; }
.nav a, .nav-binnenkort { display:flex; align-items:center; gap:10px; color:#cbd5e1; text-decoration:none; padding:9px 10px; border-radius:8px; font-size:14px; min-height:40px; }
.nav-binnenkort { color:#475569; }
.nav a.actief, .nav a:hover { background:rgba(148,163,184,.12); color:#fff; }
.nav-ico { width:18px; height:18px; flex:none; }
.nav-ico path, .nav-ico rect, .nav-ico circle, .nav-ico line { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.nav a.actief .nav-ico, .nav a:hover .nav-ico { color:#67e8f9; }
.nav-sectie { font-size:10px; text-transform:uppercase; letter-spacing:.09em;
              color:#475569; font-weight:700; padding:14px 10px 4px; }
.nav-binnenkort em { margin-left:auto; float:none; font-style:normal; font-size:10px; border:1px solid #334155; border-radius:10px; padding:1px 7px; }
.mini-btn { border:1px solid var(--line); background:#fff; color:var(--green); border-radius:6px; padding:2px 8px; font-size:13px; cursor:pointer; }
.td-acties { display:inline-flex; gap:8px; align-items:center; }
.td-acties form.inline { margin:0; }
.mail-head { display:flex; gap:10px; align-items:center; margin-bottom:8px; flex-wrap:wrap; }
.mail-meta { color:var(--muted); font-size:12px; }
.mail-subj { font-size:14px; font-weight:600; margin:6px 0 10px; }
.mail-body { font-family:inherit; font-size:13px; color:#334155; white-space:pre-wrap; background:var(--soft); border:1px solid var(--line); border-radius:8px; padding:12px 14px; margin:0 0 12px; }
.card.mail { margin-bottom:16px; }
.inline-form { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; align-items:center; }
.inline-form input, .inline-form select { padding:8px 10px; border:1px solid var(--line); border-radius:8px; font-size:16px; background:#fff; }
.sidebar-foot { margin-top:auto; display:flex; justify-content:space-between; align-items:center; padding:8px 6px 0; flex:none; }
.sidebar .uit { color:#64748b; font-size:12px; padding:8px 4px; text-decoration:none; }
.sidebar .credit, .menu-foot .credit { color:#475569; font-size:11px; }
main { flex:1; padding:var(--page-y) var(--page-x); min-width:0; }
.ctx { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; gap:8px; }
.ctx-titel { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:700; }
.ctx-ent { font-size:12px; padding:3px 11px; border-radius:20px; background:#cffafe; color:var(--accent); text-decoration:none; font-weight:600; }
h1 { font-size:20px; font-weight:800; letter-spacing:-.03em; margin-bottom:16px; }
h2 { font-size:15px; font-weight:700; margin:22px 0 10px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.tile { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; }
.tile .n { font-size:24px; font-weight:800; letter-spacing:-.02em; white-space:nowrap; }
.tile .l { font-size:12px; color:var(--muted); margin-top:2px; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; margin-bottom:14px; }
th { text-align:left; font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); padding:10px 14px; border-bottom:1px solid var(--line); }
td { padding:10px 14px; border-bottom:1px solid var(--soft); font-size:14px; vertical-align:top; }
thead th { position:sticky; top:0; background:#fff; z-index:2; }
tbody tr:hover td { background:var(--soft); }
tr:last-child td { border-bottom:0; }
td.nw, .nw { white-space:nowrap; }
a { color:var(--accent); }
.badge { display:inline-block; padding:2px 10px; border-radius:20px; font-size:12px; font-weight:600; }
.badge.open { background:#fef3c7; color:var(--amber); }
.badge.verstuurd { background:#dbeafe; color:#2563eb; }
.badge.betaald, .badge.ok { background:#d1fae5; color:var(--green); }
.badge.stopped { background:#f1f5f9; color:var(--muted); }
.badge.vervallen { background:#fee2e2; color:var(--red); }
.btn { display:inline-block; background:var(--accent); color:#fff; border:0; padding:8px 16px; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; text-decoration:none; }
.btn.secondary { background:#fff; color:var(--ink); border:1px solid var(--line); }
.kop { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; gap:10px; flex-wrap:wrap; }
.kop h1 { margin-bottom:0; }
.kop-acties { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.filters { display:flex; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.filters a { font-size:13px; padding:4px 12px; border-radius:20px; border:1px solid var(--line); background:#fff; text-decoration:none; color:var(--ink); }
.filters a.actief { background:var(--accent); color:#fff; border-color:var(--accent); }
.fbar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; background:#fff;
        border:1px solid var(--line); border-radius:var(--radius); padding:10px 14px; margin-bottom:14px; }
.fbar select, .fbar input { padding:8px 10px; border:1px solid var(--line); border-radius:8px; font-size:16px; background:#fff; }
.fbar .count { font-size:12px; color:var(--muted); margin-left:auto; }
.fcustom:not(.hidden) { display:inline-flex; gap:8px; align-items:center; }
.muted { color:var(--muted); }
.note { color:var(--muted); font-size:12px; }
.s12 { font-size:12px; } .s13 { font-size:13px; }
.nw { white-space:nowrap; }
.inline { display:inline; }
.hidden, .is-hidden { display:none; }
.grow { flex:1; min-width:160px; }
.wauto { width:auto; }
.center { text-align:center; }
.mt8 { margin-top:8px; } .mt10 { margin-top:10px; } .mt14 { margin-top:14px; } .mt16 { margin-top:16px; }
.neg { color:var(--red); } .pos { color:var(--green); }
.iconbtn { background:none; border:none; cursor:pointer; color:var(--muted); font-size:14px; padding:0 3px; }
.iconbtn:hover { color:var(--ink); }
.iconbtn.star { font-size:15px; }
.iconbtn.star.on { color:var(--green); }
.s11 { font-size:11px; }
.mb4 { margin-bottom:4px; } .mb10 { margin-bottom:10px; }
.wfull { width:100%; }
.w110 { width:110px; } .w140 { width:140px; } .w160 { width:160px; } .w180 { width:180px; }
.flex8 { display:flex; gap:8px; }
.accent { color:var(--accent); }
.fw600 { font-weight:600; }
.cp { cursor:pointer; }
.badge.deadline { background:#fef3c7; color:var(--red); }
tr.leeg td { color:var(--muted); }
.cfbar { display:flex; height:8px; border-radius:4px; overflow:hidden; min-width:140px; background:var(--soft); }
.cfbar-in { background:var(--green); }
.cfbar-uit { background:var(--red); }
.cal-ev-inkomst { background:#d1fae5; color:var(--green); }
.pager { display:flex; align-items:center; gap:10px; justify-content:center;
         margin:12px 0; font-size:13px; flex-wrap:wrap; }
.pager select { padding:6px 9px; border:1px solid var(--line); border-radius:8px;
                font-size:16px; background:#fff; }
.pager .btn { padding:6px 12px; }
.pager .btn:disabled { opacity:.4; cursor:default; }
.actlijst { background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
.act { display:flex; align-items:baseline; gap:10px; padding:9px 14px;
       border-bottom:1px solid var(--soft); font-size:13px; }
.act:last-child { border-bottom:0; }
.act-dot { width:8px; height:8px; border-radius:50%; background:var(--muted); flex:none; align-self:center; }
.act-dot.ent-factuur { background:var(--accent); }
.act-dot.ent-contract { background:var(--green); }
.act-dot.ent-document { background:var(--amber); }
.act-dot.ent-transactie, .act-dot.ent-bank { background:#8b5cf6; }
.act-txt { flex:1; min-width:0; }
.act-tijd { color:var(--muted); font-size:12px; white-space:nowrap; }
.cal { display:grid; grid-template-columns:repeat(7,1fr); gap:1px; background:var(--line);
       border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.cal-head { background:#fff; padding:8px 10px; font-size:11px; font-weight:700; text-transform:uppercase;
            letter-spacing:.05em; color:var(--muted); }
.cal-dag { background:#fff; min-height:96px; padding:6px 8px; font-size:12px; }
.cal-dag.buiten { background:var(--soft); color:var(--muted); }
.cal-dag.vandaag { outline:2px solid var(--accent); outline-offset:-2px; }
.cal-nr { font-weight:700; font-size:12px; color:var(--muted); margin-bottom:4px; }
.cal-dag.vandaag .cal-nr { color:var(--accent); }
.cal-ev { border-radius:5px; padding:2px 6px; margin-bottom:3px; font-size:11px;
          overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cal-ev-betaling { background:#dbeafe; color:#1d4ed8; }
.cal-ev-factuur { background:#fef3c7; color:#b45309; }
.cal-ev-deadline { background:#fee2e2; color:#b91c1c; }
.cal-ev-verjaardag { background:#ede9fe; color:#6d28d9; }
.cal-ev b { font-weight:700; }
.cal-list { display:none; }
.card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px; margin-bottom:14px; }
.kv { display:grid; grid-template-columns:160px 1fr; gap:6px 14px; font-size:14px; }
.kv dt { color:var(--muted); }
.kv dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.tijdlijn { list-style:none; padding:0; }
.tijdlijn li { padding:8px 0; border-bottom:1px solid var(--soft); font-size:13px; display:flex; gap:10px; }
.tijdlijn .t { color:var(--muted); min-width:140px; font-size:12px; }
.login-body { display:flex; align-items:center; justify-content:center; min-height:100dvh;
  padding:calc(24px + var(--safe-top)) calc(16px + var(--safe-right)) calc(24px + var(--safe-bottom)) calc(16px + var(--safe-left));
  background:radial-gradient(circle at 0% 0%, rgba(14,116,144,.16), transparent 42%), var(--soft); }
.login-kaart { margin:0; width:min(380px, 100%); background:#fff; border:1px solid var(--line); border-radius:14px; padding:30px; }
.login-kaart input { width:100%; padding:12px; border:1px solid var(--line); border-radius:8px; margin:12px 0; font-size:16px; min-height:48px; }
.login-kaart .btn { min-height:48px; }
.login-kaart .fout { color:var(--red); font-size:13px; margin-top:10px; }
.table-wrap { margin-bottom:14px; overflow-x:auto; overflow-y:clip; -webkit-overflow-scrolling:touch; scrollbar-width:thin; }
.table-wrap table { margin-bottom:0; }
.mlist { display:none; }
.mcard { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; background:#fff;
  border:1px solid var(--line); border-radius:var(--radius); padding:12px 14px; color:inherit; text-decoration:none; min-height:var(--tap); }
a.mcard:hover, .mcard:hover { border-color:#cbd5e1; }
.mcard-main { min-width:0; flex:1; display:block; text-decoration:none; color:inherit; }
.mcard-title { display:block; font-weight:800; font-size:15px; letter-spacing:-.02em; color:var(--ink); line-height:1.3; }
.mcard-meta { display:block; margin-top:3px; color:var(--muted); font-size:13px; line-height:1.35;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mcard-side { display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex:none; max-width:46%; }
.mcard-acties { display:flex; gap:6px; align-items:center; }
.mcard-bedrag { font-weight:800; font-size:14px; white-space:nowrap; }
.mcard-leeg { color:var(--muted); }
.mcard.is-hidden, tr.is-hidden { display:none; }
.mcard-extra { display:flex; flex-wrap:wrap; gap:6px 10px; margin-top:8px; }
.topbar, .menu-overlay { display:none; }
.menu-btn, .menu-close { width:44px; height:44px; border-radius:12px; border:1px solid var(--sidebar-line);
  background:rgba(255,255,255,.06); color:#fff; display:inline-flex; align-items:center; justify-content:center;
  flex:none; cursor:pointer; padding:0; font-size:22px; line-height:1; }
.menu-btn svg { width:22px; height:22px; }
.menu-btn svg path { fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; }
.topbar-titel { min-width:0; flex:1; display:grid; gap:1px; }
.topbar-kicker { font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:#94a3b8; font-weight:700; }
.topbar-pagina { font-size:15px; font-weight:800; letter-spacing:-.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* telefoon en smalle tablet: sidebar wordt een overlay-menu */
@media (max-width:1024px) {
  body { display:block; }
  .sidebar { display:none; }
  .topbar { display:flex; position:fixed; top:0; left:0; right:0; z-index:100;
    height:calc(var(--topbar) + var(--safe-top));
    padding:var(--safe-top) calc(10px + var(--safe-right)) 0 calc(10px + var(--safe-left));
    align-items:center; gap:8px; background:var(--sidebar); color:#e2e8f0;
    border-bottom:2px solid var(--accent); }
  .topbar .ent-select { width:auto; max-width:42vw; margin:0; min-height:44px; padding:6px 8px; }
  main { width:100%; max-width:100%;
    padding:calc(var(--topbar) + var(--safe-top) + 14px) calc(16px + var(--safe-right)) calc(20px + var(--safe-bottom)) calc(16px + var(--safe-left)); }
  .ctx { display:none; }
  .menu-overlay { position:fixed; inset:0; z-index:130; flex-direction:column; gap:8px; overflow:hidden;
    background:radial-gradient(circle at 0% 0%, rgba(14,116,144,.22), transparent 42%), var(--sidebar);
    color:#e2e8f0;
    padding:calc(12px + var(--safe-top)) 14px calc(18px + var(--safe-bottom)); }
  body.menu-open { overflow:hidden; }
  body.menu-open .menu-overlay { display:flex; }
  .menu-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
  .menu-overlay .nav { overflow-y:auto; flex:1; min-height:0; gap:4px; }
  .menu-overlay .nav a, .menu-overlay .nav-binnenkort { min-height:48px; padding:12px; font-size:16px; border-radius:12px; }
  .menu-foot { margin-top:0; flex:none; display:flex; justify-content:space-between; align-items:center;
    gap:10px; padding-top:12px; border-top:1px solid var(--sidebar-line); }
  .menu-foot a { color:#cbd5e1; text-decoration:none; font-weight:700; min-height:44px; display:inline-flex; align-items:center; }
}

/* telefoon: kaarten i.p.v. brede tabellen, formulieren onder elkaar */
@media (max-width:768px) {
  h1 { font-size:22px; }
  .mlist { display:grid; gap:8px; margin-bottom:14px; }
  .cards-at-compact { display:none; }
  .mcard-meta { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .kv { grid-template-columns:1fr; gap:2px 0; }
  .kv dt { margin-top:12px; font-size:12px; }
  .kv dt:first-child { margin-top:0; }
  .fbar, .inline-form { flex-direction:column; align-items:stretch; }
  .fbar > input, .fbar > select, .fbar > button, .fbar > .btn, .fbar > a.btn,
  .inline-form > input, .inline-form > select, .inline-form > button, .inline-form > .btn, .inline-form > label {
    width:100%; min-height:var(--tap); }
  .fbar .count { margin-left:0; }
  .fcustom:not(.hidden) { display:grid; width:100%; }
  .w110, .w140, .w160, .w180, .grow,
  input.wauto:not([type="checkbox"]), select.wauto { width:100%; min-width:0; }
  .kop { align-items:stretch; }
  .kop-acties, .kop .flex8 { width:100%; flex-wrap:wrap; }
  .mcard-acties a, .mcard-extra a { min-height:var(--tap); display:inline-flex; align-items:center; }
  .kop-acties .btn, .kop .flex8 .btn, .kop > .btn, .kop > a.btn { flex:1; min-height:var(--tap); text-align:center; }
  .kop-acties form.inline { flex:1; display:flex; }
  .kop-acties form.inline .btn { width:100%; min-height:var(--tap); }
  .btn, .filters a, .pager .btn, .mini-btn { min-height:var(--tap); }
  .mini-btn, .iconbtn { min-width:var(--tap); }
  .pager .btn { flex:1; }
  .tijdlijn li { flex-direction:column; gap:2px; }
  .tijdlijn .t { min-width:0; }
  .act { flex-wrap:wrap; align-items:flex-start; }
  .act-tijd { white-space:normal; }
  .cal { display:none; }
  .cal-list { display:grid; gap:8px; }
  .cal-daglijst { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:12px 14px; }
  .cal-daglijst.vandaag { outline:2px solid var(--accent); outline-offset:-2px; }
  .cal-dagkop { font-weight:800; font-size:14px; margin-bottom:8px; }
  .cal-list .cal-ev { white-space:normal; display:block; font-size:13px; padding:6px 8px; }
  .tiles { grid-template-columns:1fr 1fr; }
  summary { padding:8px 0; }
}

@media (max-width:520px) {
  .tile .n { font-size:18px; }
  .tiles { gap:8px; }
  .topbar-pagina { font-size:14px; }
  .card { padding:14px; }
}

/* ---------- publieke offerte-portal (document-viewer) ---------- */
.pp { --pp-side:#10151d; --pp-accent:#0e7490; --pp-accent-hi:#0c5f76; --pp-side-ink:#e7ecf3;
      --pp-side-dim:#8b94a3; --pp-canvas:#edf0f4;
      display:grid; grid-template-columns:216px 1fr; min-height:100dvh; margin:0;
      font-family:"Inter","Segoe UI",Arial,sans-serif; }
.pp.ent-webgilde { --pp-side:#0E3B2E; --pp-accent:#F5A623; --pp-accent-hi:#d98f14;
                   --pp-side-ink:#f4efe4; --pp-side-dim:#9db8ad; }
.pp-side { background:var(--pp-side); color:var(--pp-side-ink); padding:22px 20px;
           display:flex; flex-direction:column; position:sticky; top:0; height:100dvh; }
.pp-wordmark { font-family:"Fraunces",Georgia,serif; font-weight:700; font-size:22px; letter-spacing:.5px; }
.pp-side-tag { color:var(--pp-side-dim); font-size:12px; margin-top:4px; }
.pp-side-foot { margin-top:auto; color:var(--pp-side-dim); font-size:11px; line-height:1.7; }
.pp-main { display:flex; flex-direction:column; min-width:0; }
.pp-bar { background:#fff; border-bottom:1px solid var(--line); min-height:56px;
          display:flex; align-items:center; justify-content:space-between; gap:12px;
          padding:8px 20px; position:sticky; top:0; z-index:10; flex-wrap:wrap; }
.pp-docinfo { display:flex; flex-direction:column; line-height:1.25; min-width:0; }
.pp-docinfo strong { font-size:14px; }
.pp-sub { color:var(--muted); font-size:11.5px; white-space:nowrap; overflow:hidden;
          text-overflow:ellipsis; max-width:46vw; }
.pp-actions { display:flex; align-items:center; gap:10px; }
.pp-stamp { color:var(--muted); font-size:9.5px; text-transform:uppercase; letter-spacing:.6px;
            line-height:1.4; text-align:right; }
.pp-stamp b { color:var(--ink); font-size:11px; text-transform:none; letter-spacing:0; }
.pp-iconbtn { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
              border:1px solid var(--line); border-radius:8px; color:var(--ink); }
.pp-iconbtn:hover { background:var(--soft); }
.pp-btn { border-radius:8px; padding:9px 16px; font-size:13px; font-weight:600; cursor:pointer;
          border:1px solid transparent; min-height:38px; text-decoration:none; display:inline-flex;
          align-items:center; justify-content:center; }
.pp-btn.ghost { background:#fff; border-color:var(--line); color:var(--ink); }
.pp-btn.ghost:hover { background:var(--soft); }
.pp-btn.solid { background:var(--pp-accent); color:#fff; }
.pp-btn.solid:hover { background:var(--pp-accent-hi); }
.pp.ent-webgilde .pp-btn.solid { color:#14261f; }
.pp-chip-ok { background:#d1fae5; color:#047857; border-radius:999px; padding:8px 14px;
              font-size:12.5px; font-weight:700; }
.pp-canvas { background:var(--pp-canvas); flex:1; padding:28px 20px 40px; }
.pp-banner { max-width:820px; margin:0 auto 16px; padding:11px 16px; border-radius:10px;
             font-size:13.5px; font-weight:600; }
.pp-banner.ok { background:#d1fae5; color:#047857; }
.pp-banner.info { background:#dbeafe; color:#1d4ed8; }
.pp-banner.fout { background:#fee2e2; color:var(--red); }
.pp-doc-fallback { max-width:520px; margin:60px auto; background:#fff; border:1px dashed var(--line);
                   border-radius:var(--radius); padding:32px; text-align:center;
                   display:flex; flex-direction:column; gap:14px; align-items:center; }
.pp-foot { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
           border-top:1px solid var(--line); padding:10px 20px; color:var(--muted);
           font-size:11px; background:#fff; }
/* modals: drawer vanaf rechts */
.pp-modal { border:0; border-radius:0; padding:0; margin:0 0 0 auto; width:min(430px,100vw);
            height:100dvh; max-height:100dvh; box-shadow:-24px 0 60px rgba(15,23,42,.35);
            animation:pp-slide .18s ease-out; }
.pp-modal[open] { display:flex; flex-direction:column; }
.pp-modal::backdrop { background:rgba(15,23,42,.55); }
@keyframes pp-slide { from { transform:translateX(48px); opacity:.4; } }
.pp-modal form { padding:22px 20px; display:flex; flex-direction:column; gap:12px; overflow-y:auto; }
.pp-modal-head { display:flex; align-items:center; justify-content:space-between; }
.pp-modal-head h2 { margin:0; font-size:17px; }
.pp-modal-x { border:0; background:none; font-size:15px; cursor:pointer; color:var(--muted);
              padding:6px; }
.pp-modal-sub { margin:0; color:var(--muted); font-size:13px; }
.pp-modal label { display:flex; flex-direction:column; gap:4px; font-size:13px; font-weight:600; }
.pp-modal input[type=text], .pp-modal input[type=email], .pp-modal textarea {
  padding:10px 12px; border:1px solid var(--line); border-radius:8px; font-size:16px;
  font-family:inherit; }
.pp-modal textarea { resize:vertical; }
.pp-consent { flex-direction:row !important; align-items:flex-start; gap:10px !important;
              font-weight:400 !important; }
.pp-consent input { width:18px; height:18px; margin-top:1px; flex:none; }
.pp-modal-foot { display:flex; justify-content:flex-end; gap:10px; margin-top:4px; }
@media (max-width:860px) {
  .pp { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
  .pp-side { position:static; height:auto; flex-direction:row; align-items:baseline;
             gap:10px; padding:12px 16px; }
  .pp-wordmark { font-size:17px; }
  .pp-side-tag { margin-top:0; }
  .pp-side-foot { display:none; }
  .pp-bar { position:static; }
  .pp-stamp { display:none; }
  .pp-sub { max-width:none; }
  .pp-canvas { padding:14px 10px 28px; }
}
