/* Shared full-page and floating checklist. */
.guide-checklist {word-break:keep-all;overflow-wrap:break-word;}
.guide-checklist-bar {display:flex;gap:16px;align-items:center;justify-content:space-between;position:sticky;top:0;background:var(--paper);padding:12px 0;border-bottom:1px solid var(--line-strong);margin:0;z-index:1;font-weight:650;}
.guide-checklist-bar button {border:1px solid var(--line-strong);background:var(--card);padding:6px 12px;font-size:13px;}
.guide-stage {padding:26px 0 6px;}
.guide-stage h2 {font-size:22px;margin:0 0 4px;}
.guide-stage>p {color:var(--muted);margin:0 0 12px;}
.guide-stage ul {list-style:none;margin:0;padding:0;}
.guide-stage li {border-bottom:1px solid var(--line);padding:14px 0;}
.guide-stage label {display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;cursor:pointer;min-height:44px;}
.guide-stage input[type="checkbox"] {width:20px;height:20px;margin:3px 0 0;accent-color:var(--green);}
.guide-stage label span {display:grid;gap:2px;}
.guide-stage label span span {color:var(--muted);font-size:14px;}
.guide-stage input:checked+span strong {text-decoration:line-through;color:var(--muted);}
.guide-stage-links {margin:6px 0 0 36px;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:14px;}
.guide-checklist-note {font-size:13px;color:var(--muted);margin-top:24px;}
.guide-checklist [hidden] {display:none!important;}
.guide-checklist button {min-height:44px;border:1px solid var(--line-strong);border-radius:6px;background:var(--card);color:var(--ink);padding:8px 14px;font:inherit;font-size:14px;cursor:pointer;}
.guide-checklist button:hover {border-color:var(--green);color:var(--green);}
.guide-checklist button:focus-visible,.guide-checklist input:focus-visible {outline:2px solid var(--green);outline-offset:3px;}
.guide-checklist-bar {position:static;flex-wrap:wrap;gap:12px 24px;padding:18px 0;}
.guide-checklist-bar>div {flex:1;min-width:140px;display:grid;gap:8px;}
.guide-checklist-bar progress {width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;accent-color:var(--green);background:var(--line);}
.guide-checklist-bar progress::-webkit-progress-bar {background:var(--line);border-radius:8px;}
.guide-checklist-bar progress::-webkit-progress-value {background:var(--green);border-radius:8px;}
.guide-checklist-bar progress::-moz-progress-bar {background:var(--green);border-radius:8px;}
.guide-check-filter {display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;cursor:pointer;}
.guide-check-filter input {width:20px;height:20px;accent-color:var(--green);}
.guide-custom {margin:24px 0 8px;padding:22px 24px;background:var(--card);border:1px solid var(--line);border-radius:12px;}
.guide-check-form>label {display:block;min-height:0;font-size:14px;font-weight:650;margin:18px 0 8px;cursor:default;}
.guide-check-entry {display:flex;flex-wrap:wrap;gap:8px;}
.guide-check-entry input[type="text"] {flex:1;min-width:140px;width:auto;height:auto;margin:0;padding:11px 12px;border:1px solid var(--line-strong);border-radius:6px;background:var(--paper);color:var(--ink);font:inherit;font-size:16px;}
.guide-check-entry button[type="submit"] {background:var(--green);color:var(--paper);border-color:var(--green);}
.guide-check-actions {display:flex;gap:8px;margin-left:36px;}
.guide-check-actions button {background:transparent;border-color:transparent;padding:6px 8px;}
.guide-check-feedback {font-size:14px;color:var(--muted);margin:10px 0;}
.guide-check-feedback:empty {display:none;}
.guide-checklist-error {padding:12px 16px;border-left:3px solid var(--green);background:var(--card);font-size:14px;}
.guide-check-reset {padding:32px 0;}
.guide-check-reset [data-check-reset-dialog] {margin-top:16px;padding:16px;border:1px solid var(--line-strong);border-radius:8px;}
.guide-check-reset [data-check-reset-dialog] p {margin:0 0 12px;}
@media(max-width:640px) {
  .guide-custom {padding:18px 16px;}
  .guide-check-entry input[type="text"] {flex-basis:100%;width:100%;}
}

/* A quiet launcher follows the reader; the working list stays in a scrollable side panel. */
[data-checklist-panel] {word-break:keep-all;overflow-wrap:break-word;}
[data-checklist-panel] [hidden] {display:none!important;}
.has-checklist-launcher body {padding-bottom:108px;}
.checklist-launcher {position:fixed;right:24px;bottom:max(24px,env(safe-area-inset-bottom));z-index:30;display:flex;align-items:center;gap:12px;max-width:calc(100% - 32px);min-height:72px;padding:12px 16px;border:1px solid var(--brand-strong);border-radius:18px;background:var(--brand-strong);color:#fff;font:inherit;text-align:left;cursor:pointer;box-shadow:0 4px 18px #76233a26;}
.checklist-launcher-ring {display:block;width:40px;height:40px;flex:none;}
.checklist-launcher-ring svg {display:block;}
.checklist-ring-track,.checklist-ring-value {stroke:currentColor;stroke-width:2.5;}
.checklist-ring-track {opacity:.2;}
.checklist-ring-value {transform:rotate(-90deg);transform-origin:20px 20px;stroke-linecap:round;transition:stroke-dashoffset 220ms ease;}
.checklist-ring-check {stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;opacity:.4;}
.checklist-launcher[data-progress="started"] .checklist-ring-check,.checklist-launcher[data-progress="complete"] .checklist-ring-check {opacity:1;}
.checklist-launcher .checklist-launcher-copy {display:grid;gap:1px;min-width:0;}
.checklist-launcher strong {font-size:14px;line-height:1.5;font-weight:700;}
.checklist-launcher [data-panel-region-name] {font-size:11px;line-height:1.5;}
.checklist-launcher [data-panel-progress] {font-size:12px;line-height:1.5;font-weight:650;font-variant-numeric:tabular-nums;}
.checklist-launcher:hover {background:var(--brand-ink);}
.checklist-launcher[data-progress="complete"] {background:var(--card);border-color:var(--brand-strong);color:var(--brand-ink);}
.checklist-launcher[data-progress="complete"]:hover {background:var(--brand-tint);}
@media(prefers-reduced-motion:reduce) {.checklist-ring-value {transition:none;}}
.checklist-launcher:focus-visible,.checklist-panel :is(button,select,a):focus-visible {outline:2px solid var(--green);outline-offset:4px;}
.checklist-panel {position:fixed;inset:auto 24px 116px auto;width:420px;max-width:calc(100vw - 48px);height:min(760px,calc(100dvh - 140px));max-height:none;margin:0;padding:0;border:1px solid var(--line-strong);border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:0 12px 44px #76233a20;z-index:31;font:inherit;overflow:hidden;}
.checklist-panel[open] {display:flex;flex-direction:column;}
.checklist-panel-head {flex-shrink:0;padding:20px 22px 16px;border-bottom:1px solid var(--line);background:var(--card);}
.checklist-panel-heading {display:flex;align-items:center;gap:10px;}
.checklist-panel-heading>svg {flex-shrink:0;color:var(--green);}
.checklist-panel-heading h2 {flex:1;min-width:0;font-size:18px;line-height:1.4;letter-spacing:-.03em;margin:0;}
.checklist-panel-heading button {flex-shrink:0;display:flex;gap:8px;align-items:center;min-height:44px;padding:8px 0 8px 10px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;cursor:pointer;}
.checklist-panel-heading button span {font-size:24px;line-height:1;}
.checklist-panel-region {display:flex;align-items:center;gap:12px;margin-top:14px;}
.checklist-panel-region label {flex-shrink:0;color:var(--muted);font-size:12px;}
.checklist-panel-region select {flex:1;min-width:0;min-height:44px;padding:9px 10px;border:1px solid var(--line-strong);border-radius:7px;background:var(--paper);color:var(--ink);font:inherit;font-size:16px;}
.checklist-panel-language {margin:10px 0 0;color:var(--muted);font-size:12px;}
.checklist-panel-scroll {min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 22px 22px;scrollbar-gutter:stable;}
.checklist-panel-scroll>[data-panel-status] {margin:24px 0 16px;color:var(--muted);font-size:15px;}
.checklist-panel-scroll>[data-panel-retry] {min-height:44px;background:var(--card);color:var(--ink);border:1px solid var(--line-strong);border-radius:6px;padding:8px 14px;font:inherit;cursor:pointer;}
.checklist-panel-foot {flex-shrink:0;padding:12px 22px;border-top:1px solid var(--line);background:var(--card);font-size:13px;}
.checklist-panel-foot:has(a[hidden]) {display:none;}
.checklist-panel-foot a {display:inline-flex;align-items:center;gap:12px;min-height:24px;color:var(--green);text-underline-offset:4px;}
.checklist-panel .guide-checklist-bar {font-size:14px;gap:6px;padding:16px 0 12px;}
.checklist-panel .guide-checklist-bar>div {flex-basis:100%;}
.checklist-panel .guide-check-filter {font-size:13px;}
.checklist-panel .guide-custom {padding:16px;margin:18px 0 0;}
.checklist-panel .guide-custom>p:first-of-type {display:none;}
.checklist-panel .guide-custom h2 {font-size:17px;}
.checklist-panel .guide-check-form>label {margin-top:12px;font-size:13px;}
.checklist-panel .guide-check-entry input[type="text"] {flex-basis:100%;width:100%;}
.checklist-panel .guide-checklist-note {margin:16px 0 0;font-size:12px;line-height:1.7;}
.checklist-panel .guide-stage {padding-top:24px;}
.checklist-panel .guide-stage h2 {font-size:18px;}
.checklist-panel .guide-stage>p {font-size:13px;}
.checklist-panel .guide-stage label {font-size:14px;gap:10px;}
.checklist-panel .guide-stage label span span {font-size:13px;}
.checklist-panel .guide-stage-links {font-size:12px;gap:8px;}
.checklist-panel .guide-check-reset {padding-bottom:0;}
.checklist-panel::backdrop {background:#42283255;}
.checklist-modal-open {overflow:hidden;}
@media(max-width:640px) {
  .checklist-launcher {right:16px;bottom:max(16px,env(safe-area-inset-bottom));padding:10px 14px;}
  .checklist-panel {inset:12px 12px auto;width:calc(100% - 24px);max-width:none;height:calc(100dvh - 24px);border-radius:14px;}
  .checklist-panel-head {padding:16px 16px 12px;}
  .checklist-panel-scroll {padding:0 16px 20px;}
  .checklist-panel-foot {padding:10px 16px max(10px,env(safe-area-inset-bottom));}
  .checklist-panel-heading h2 {font-size:17px;}
}
@media(max-width:360px) {
  .checklist-panel-heading>svg {display:none;}
  .checklist-panel-region {display:grid;gap:6px;}
}
