/* Public forms use Roguelo phase 4 theme tokens. */
.pf-root{max-width:1100px;margin:0 auto;color:var(--ink,#111936)}
.pf-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 14px}
.pf-head h2,.pf-head h3{margin:0 0 6px}.pf-head p,.pf-card p{margin:4px 0;color:var(--muted,#5d6783)}
.pf-limits,.pf-hint{color:var(--muted,#5d6783);font-size:14px}
.pf-cards{display:grid;gap:12px}.pf-card,.pf-empty,.pf-detail{background:var(--paper,#fff);border:1px solid var(--line,#e2e5f0);border-radius:16px;padding:18px;box-shadow:0 8px 24px #18234a0b}
.pf-card{display:flex;align-items:center;justify-content:space-between;gap:16px}.pf-card h3{margin:0}.pf-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pf-actions a{text-decoration:none}
.pf-detail{margin-top:20px}.pf-detail .table-wrap{overflow:auto}.pf-detail table{width:100%;border-collapse:collapse}.pf-detail th,.pf-detail td{padding:10px;border-bottom:1px solid var(--line,#e2e5f0);text-align:left;vertical-align:top}
.pf-dialog{width:min(680px,calc(100vw - 28px));max-height:90vh;overflow:auto;border:1px solid var(--line,#e2e5f0);border-radius:18px;background:var(--paper,#fff);color:var(--ink,#111936);padding:22px;box-shadow:0 24px 80px #0b102055}
.pf-dialog::backdrop{background:#0b1020a6;backdrop-filter:blur(3px)}.pf-dialog h2{margin:0 0 14px}.pf-dialog label{display:block;margin:12px 0;color:var(--ink,#111936);font-weight:600}.pf-dialog input:not([type=checkbox]),.pf-dialog textarea{display:block;width:100%;margin-top:5px;box-sizing:border-box;padding:11px 12px;border:1px solid var(--line,#cbd1e2);border-radius:10px;background:var(--bg,#f4f5fb);color:var(--ink,#111936);font:inherit}.pf-dialog .pf-check{display:flex;align-items:flex-start;gap:9px}.pf-dialog .pf-check input{margin-top:5px}.pf-preview{padding:16px;border:1px solid var(--line,#e2e5f0);border-radius:12px;background:var(--bg,#f4f5fb)}.pf-preview h3{margin:0}.pf-preview li{padding:4px 0}.pf-preview small{color:var(--muted,#5d6783)}.pf-dialog [data-pf-error]{color:#b42318;min-height:1.2em}.pf-dialog .pf-actions{justify-content:flex-end;margin-top:18px}
.pf-hosted-theme{--pf-blue:#4f46e5;--pf-paper:#fff;--pf-ink:#111936;background:#f4f5fb;color:#111936}.pf-hosted-theme main{max-width:760px;margin:40px auto;padding:28px;background:#fff;border:1px solid #e2e5f0;border-radius:20px;box-shadow:0 12px 40px #18234a12}.pf-hosted-theme button{min-height:40px;border:0;border-radius:10px;padding:10px 18px;background:linear-gradient(120deg,#4338ca,#0369a1 55%,#047857);color:#fff;font-weight:650;cursor:pointer}.pf-hosted-theme input:not([type=checkbox]),.pf-hosted-theme textarea,.pf-hosted-theme select{width:100%;box-sizing:border-box;border:1px solid #cbd1e2;border-radius:10px;padding:11px;background:#f8f9fd;color:inherit;font:inherit}.pf-hosted-theme label{display:block;margin:14px 0 5px;font-weight:600}.pf-hosted-theme [type=checkbox]{width:18px;height:18px;vertical-align:middle}
html[data-theme=dark] .pf-hosted-theme{background:#101629;color:#edf1ff}html[data-theme=dark] .pf-hosted-theme main{background:#171f35;border-color:#303a55}html[data-theme=dark] .pf-hosted-theme input:not([type=checkbox]),html[data-theme=dark] .pf-hosted-theme textarea,html[data-theme=dark] .pf-hosted-theme select{background:#101629;border-color:#3b4664;color:#edf1ff}
.pf-hosted-theme{margin:0;min-height:100vh;font:16px/1.65 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(ellipse at top left,#4f46e515,transparent 60%),#f4f5fb}.pf-hosted-theme *{box-sizing:border-box}.pf-hosted-theme .form-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:20px;border-bottom:1px solid #858ba636}.pf-hosted-theme .brand{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:750}.pf-hosted-theme .brand img{width:36px;height:36px}.pf-hosted-theme #public-form-theme{width:40px;height:40px;min-width:40px;border:1px solid #858ba65c;border-radius:50%;padding:0;background:transparent;color:inherit;font-size:24px;display:grid;place-items:center}.pf-hosted-theme h1{font-size:clamp(25px,5vw,36px);line-height:1.25;overflow-wrap:anywhere}.pf-hosted-theme .intro,.pf-hosted-theme .privacy-notice p{white-space:pre-wrap;overflow-wrap:anywhere}.pf-hosted-theme .privacy-notice{background:#858ba60d;border:1px solid #858ba636;border-radius:12px;padding:16px;margin:24px 0}.pf-hosted-theme .privacy-notice h2{font-size:18px;margin-top:0}.pf-hosted-theme .privacy-ack{display:flex;align-items:flex-start;gap:10px;margin-bottom:20px}.pf-hosted-theme .privacy-ack input{flex:none;margin-top:5px}.pf-hosted-theme .company-url{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.pf-hosted-theme .success{padding:20px;border:1px solid #10b98166;border-radius:12px;background:#10b9810d}.pf-hosted-theme footer{margin-top:24px;font-size:13px;opacity:.75}.pf-hosted-theme .errorlist,.pf-hosted-theme .error{color:#b42318}html[data-theme=dark] .pf-hosted-theme .errorlist,html[data-theme=dark] .pf-hosted-theme .error{color:#ffb4ab}.pf-hosted-theme input:focus-visible,.pf-hosted-theme textarea:focus-visible,.pf-hosted-theme select:focus-visible,.pf-hosted-theme button:focus-visible{outline:3px solid #6366f1;outline-offset:3px}.pf-root button,.pf-dialog button,.pf-root a.secondary{padding:9px 14px;border:1px solid var(--line,#cbd1e2);border-radius:9px;background:var(--paper,#fff);color:var(--ink,#111936);font:inherit;cursor:pointer}.pf-dialog button[data-pf-publish]{background:var(--blue,#4f46e5);color:white}.pf-root .danger{color:#b42318}html[data-theme=dark] .pf-root .danger{color:#ffb4ab}.pf-root td{max-width:320px;overflow-wrap:anywhere}.pf-card small{color:var(--muted,#5d6783)}
@media(max-width:700px){.pf-head,.pf-card{flex-direction:column;align-items:stretch}.pf-actions>*{flex:1 1 auto}.pf-hosted-theme main{margin:12px;padding:20px;border-radius:14px}}

html:has(body.hosted-form-page),.pf-dialog,.pf-root .table-wrap{scrollbar-width:thin;scrollbar-color:#7583a266 transparent}html:has(body.hosted-form-page)::-webkit-scrollbar,.pf-dialog::-webkit-scrollbar,.pf-root .table-wrap::-webkit-scrollbar{width:5px;height:5px}html:has(body.hosted-form-page)::-webkit-scrollbar-thumb,.pf-dialog::-webkit-scrollbar-thumb,.pf-root .table-wrap::-webkit-scrollbar-thumb{background:#7583a266;border-radius:8px}.pf-hosted-theme footer a{display:inline-flex;color:inherit;text-decoration:none;padding:3px 8px;border:1px solid #858ba636;border-radius:7px;margin:3px 0}.pf-hosted-theme footer a:hover{background:#858ba61a}
