
dialog.fpar{--fpar-ink:#15181E;--fpar-ctl:#EFF1F4;--fpar-grey:#6B6F78;--fpar-line:#E6E8EC;--fpar-prev:#F6F7F9;--fpar-blue:#3373D9;--fpar-green:#00875A;--fpar-teal:#0E8F96;--fpar-amber:#B7791F;
  width:min(96vw,1120px);max-width:none;height:min(90dvh,780px);max-height:none;padding:0;border:0;border-radius:24px;background:#fff;color:var(--fpar-ink);font-family:Manrope,system-ui,sans-serif;overflow:hidden;box-shadow:0 24px 64px rgba(0,0,0,.24)}
dialog.fpar::backdrop{background:rgba(21,24,30,.45)!important}
.fpar-busy{height:100%;display:grid;place-content:center;justify-items:center;gap:10px;text-align:center;padding:24px}
.fpar-busy b{font-size:17px;font-weight:700}
.fpar-busy small{font-size:13px;color:var(--fpar-grey)}
.fpar-spin{width:36px;height:36px;border-radius:50%;border:3px solid var(--fpar-ctl);border-top-color:var(--fpar-ink);animation:fpar-spin 1s linear infinite}
@keyframes fpar-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.fpar-spin{animation:none}}
.fpar-body{height:100%;display:grid;grid-template-columns:minmax(0,1fr) 360px;margin:0}
.fpar-view{position:relative;background:var(--fpar-prev);display:grid;place-items:center;padding:16px;min-height:0;overflow:auto}
.fpar-view svg{width:100%;height:100%;max-height:100%}
.fpar-walls line{stroke:var(--fpar-blue);stroke-width:7;stroke-linecap:round;cursor:pointer}
.fpar-walls line.unsure{stroke:var(--fpar-amber)}
.fpar-walls line.out{stroke:#A24B39;stroke-opacity:.35;stroke-dasharray:10 8}
.fpar-walls line:focus-visible{outline:none;stroke-width:11}
.fpar-ops line{stroke-width:10;stroke-linecap:butt}
.fpar-ops line.door{stroke:var(--fpar-green)}
.fpar-ops line.window{stroke:var(--fpar-teal)}
.fpar-ops line.unsure{stroke:var(--fpar-amber);stroke-dasharray:6 4}
.fpar-names text{font:600 18px Manrope,system-ui,sans-serif;fill:var(--fpar-ink);text-anchor:middle;paint-order:stroke;stroke:#fff;stroke-width:4}
.fpar-names text.unsure{fill:var(--fpar-amber)}
.fpar-flash circle{fill:none;stroke:var(--fpar-blue);stroke-width:4}
.fpar-chip{position:absolute;left:16px;top:16px;margin:0;padding:6px 12px;border-radius:14px;background:#fff;font-size:12.5px;font-weight:600;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.fpar-side{display:flex;flex-direction:column;gap:12px;padding:16px 18px 0;border-left:1px solid var(--fpar-line);overflow:auto;min-height:0}
.fpar-head{display:flex;align-items:center;gap:10px}
.fpar-head h3{margin:0;flex:1;font-size:17px;font-weight:700}
.fpar-x{width:32px;height:32px;border:0;border-radius:16px;background:var(--fpar-ctl);color:var(--fpar-ink);font-size:18px;font-weight:600;cursor:pointer;position:relative}
.fpar-x::after{content:"";position:absolute;inset:-8px}
.fpar-steps{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--fpar-grey)}
.fpar-steps li{display:flex;align-items:center;gap:6px;flex:1}
.fpar-steps li:last-child{flex:none}
.fpar-steps li:not(:last-child)::after{content:"";flex:1;height:1.5px;background:var(--fpar-line)}
.fpar-steps b{width:22px;height:22px;border-radius:11px;display:grid;place-items:center;background:var(--fpar-ctl);font-size:11px}
.fpar-steps li.done,.fpar-steps li.now{color:var(--fpar-ink)}
.fpar-steps li.done b{background:var(--fpar-green);color:#fff}
.fpar-steps li.now b{background:var(--fpar-ink);color:#fff}
.fpar-card{display:flex;flex-direction:column;gap:2px;padding:12px;border-radius:14px;background:var(--fpar-prev)}
.fpar-card b{font-size:14px}
.fpar-card small,.fpar-sect,.fpar-note,.fpar-ok{font-size:12px;color:var(--fpar-grey)}
.fpar-sect{font-weight:600}
.fpar-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fpar-tile{display:flex;flex-direction:column;padding:8px 10px;border-radius:12px;background:var(--fpar-prev)}
.fpar-tile b{font-size:18px}
.fpar-tile small{font-size:11.5px;color:var(--fpar-grey)}
.fpar-w b{color:var(--fpar-blue)}.fpar-d b{color:var(--fpar-green)}.fpar-wi b{color:var(--fpar-teal)}
.fpar-checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.fpar-checks li{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:var(--fpar-prev)}
.fpar-checks li>i{flex:none;width:10px;height:10px;border-radius:5px;background:var(--fpar-amber)}
.fpar-checks li>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.fpar-checks b{font-size:13px;overflow-wrap:anywhere}
.fpar-checks small{font-size:11.5px;color:var(--fpar-grey);overflow-wrap:anywhere}
.fpar-mini{flex:none;height:28px;padding:0 12px;border-radius:14px;border:1px solid var(--fpar-line);background:#fff;color:var(--fpar-ink);font:600 12.5px Manrope,system-ui,sans-serif;cursor:pointer;position:relative}
.fpar-mini::after{content:"";position:absolute;inset:-10px -4px}
.fpar-mini[aria-pressed="false"]{background:var(--fpar-ink);border-color:var(--fpar-ink);color:#fff}
.fpar-row{display:flex;align-items:center;gap:10px;cursor:pointer}
.fpar-row span{flex:1;display:flex;flex-direction:column;gap:1px}
.fpar-row b{font-size:13.5px;font-weight:600}
.fpar-row small{font-size:11.5px;color:var(--fpar-grey)}
.fpar-row input{width:20px;height:20px;accent-color:var(--fpar-ink)}
.fpar-note,.fpar-ok{margin:0}
.fpar-foot{position:sticky;bottom:0;margin-top:auto;display:flex;justify-content:flex-end;gap:10px;padding:12px 0 16px;background:#fff;box-shadow:0 -1px 0 var(--fpar-line)}
.fpar-btn{height:40px;padding:0 18px;border:0;border-radius:20px;background:var(--fpar-ctl);color:var(--fpar-ink);font:600 13.5px Manrope,system-ui,sans-serif;cursor:pointer}
.fpar-btn.pri{background:var(--fpar-ink);color:#fff}
.fpar-btn:disabled{background:#C9CED2;color:#3B4150;cursor:default}
.fpar-busy .fpar-btn{margin-top:8px}
@media (max-width:1023px){.fpar-body{grid-template-columns:minmax(0,1fr) 320px}}
@media (max-width:899px){
  .fpar-body{grid-template-columns:1fr;grid-template-rows:42% minmax(0,1fr)}
  .fpar-side{border-left:0;border-top:1px solid var(--fpar-line)}
  .fpar-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:699px){
  dialog.fpar{width:100vw;height:100dvh;border-radius:0}
  .fpar-body{grid-template-rows:38dvh minmax(0,1fr)}
  .fpar-side{border-top:0;border-radius:24px 24px 0 0;margin-top:-16px;background:#fff;padding:14px 16px 0}
  .fpar-foot{padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  .fpar-btn.pri{flex:1;height:48px;border-radius:24px}
  .fpar-foot .fpar-btn:not(.pri){height:48px}
}
html[data-theme="dark"] dialog.fpar{--fpar-ink:#F2F3F6;--fpar-ctl:#22262C;--fpar-grey:#9AA0A9;--fpar-line:#2A2F36;--fpar-prev:#171B20;background:#0E0F11}
html[data-theme="dark"] .fpar-chip,html[data-theme="dark"] .fpar-mini{background:#1B2229}
html[data-theme="dark"] .fpar-btn.pri,html[data-theme="dark"] .fpar-steps li.now b{color:#0E0F11}
html[data-theme="dark"] .fpar-names text{stroke:#0E0F11}
html[data-theme="dark"] .fpar-foot{background:#0E0F11}
@media (max-width:699px){html[data-theme="dark"] .fpar-side{background:#0E0F11}}
