/* Permit plan sets: staff pages and the mobile site survey (375 px first). */
.st-nav { display: flex; gap: 14px; align-items: center; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
.st-nav a:not(.btn-sm) { text-decoration: none; font-weight: 600; }
@media (max-width: 520px) { .st-nav a.btn-sm { display: none; } .st-nav { gap: 10px; font-size: 13px; } }
.ps-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; flex-wrap: wrap; counter-reset: s; }
.ps-steps li { counter-increment: s; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--dim); }
.ps-steps li::before { content: counter(s) ". "; }
.ps-steps li.done { background: #d8f3e3; color: #135c39; } .ps-steps li.now { background: var(--amber); color: #fff; font-weight: 700; }
.ps-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
.ps-dl dt { color: var(--dim); font-size: 14px; } .ps-dl dd { margin: 0; }
@media (max-width: 520px) { .ps-dl { grid-template-columns: 1fr; } .ps-dl dt { margin-top: 6px; } }
.ps-flags { padding-left: 18px; font-size: 14px; } .ps-flags li { margin: 4px 0; }
.ps-pre { background: var(--bg); padding: 12px; border-radius: 10px; overflow-x: auto; font-size: 13px; }
.status.st-survey { background: #fdecc8; } .status.st-qa { background: #e8eefb; } .status.st-adoption { background: #efe3fb; } .status.st-released { background: #d8f3e3; color: #135c39; } .status.st-revising { background: #fde0dc; }
.calc-pass { color: var(--good); font-weight: 700; } .calc-fail { color: #b3261e; font-weight: 700; } .calc-warn { color: var(--warn); font-weight: 700; }
table.calcs td, table.calcs th { white-space: normal !important; vertical-align: top; font-size: 14px; }

/* survey */
.sv-body main.wrap { padding: 0 10px; }
.sv { max-width: 640px; margin: 0 auto; padding-bottom: 40px; }
.sv-head { position: sticky; top: 60px; z-index: 5; background: var(--bg); padding: 10px 0 8px; }
.sv-head h1 { font-size: 20px; margin: 0 0 8px; }
.sv-prog { position: relative; height: 26px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.sv-prog i { position: absolute; inset: 0 auto 0 0; background: rgba(30, 142, 90, .22); }
.sv-prog span { position: relative; display: block; text-align: center; font-size: 13px; font-weight: 700; line-height: 24px; }
.sv-err { background: #fde0dc; color: #8c1d18; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.sv-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 10px 0; }
.sv-sec > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px; min-height: 52px; font-weight: 700; cursor: pointer; }
.sv-sec > summary::-webkit-details-marker { display: none; }
.sv-sec > summary::after { content: "▾"; color: var(--dim); }
.sv-sec[open] > summary::after { content: "▴"; }
.sv-sec > summary span { flex: 1; }
.sv-sec .miss { font-size: 12px; background: #fdecc8; color: #8a4b00; border-radius: 999px; padding: 2px 8px; }
.sv-sec .done { font-size: 12px; background: #d8f3e3; color: #135c39; border-radius: 999px; padding: 2px 8px; }
.sv-sec > :not(summary) { margin-left: 14px; margin-right: 14px; }
.sv-form { display: grid; gap: 12px; padding-bottom: 14px; }
.sv-f { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.sv-f small, .sv-bool small { font-weight: 400; color: var(--dim); }
.sv-unit { display: flex; align-items: center; gap: 6px; } .sv-unit b { color: var(--dim); font-weight: 600; min-width: 22px; }
.sv-unit input { font-size: 17px; }
.req { color: #b3261e; font-style: normal; }
.sv-bool { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sv-bool legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 4px; width: 100%; }
.sv-bool label { flex: 1; } .sv-bool input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sv-bool span { display: block; text-align: center; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 44px; font-weight: 600; }
.sv-bool input:checked + span { background: var(--amber); color: #fff; border-color: var(--amber); }
.sv-bool input:focus-visible + span { outline: 3px solid var(--coral); }
.sv-save { width: 100%; }
.sv-photo { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.sv-photo.has { border-style: solid; border-color: rgba(30, 142, 90, .35); }
.sv-ph-h { font-size: 14px; font-weight: 600; margin-bottom: 6px; } .sv-ph-h .ok { color: var(--good); }
.sv-thumbs { display: flex; gap: 6px; flex-wrap: wrap; } .sv-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.sv-up { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.sv-cam { position: relative; overflow: hidden; display: inline-flex; align-items: center; }
.sv-cam input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.sv-msg { font-size: 13px; color: var(--dim); }
.sv-pins { margin-bottom: 12px; }
.sv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sv-chips .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sv-chips .chip span { display: inline-block; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; min-height: 36px; }
.sv-chips .chip.set span { border-color: var(--good); }
.sv-chips .chip input:checked + span { background: var(--ink); color: #fff; }
.sv-map { width: 100%; height: auto; border-radius: 10px; display: block; touch-action: manipulation; background: #ddd; }
.sv-face { fill: rgba(31, 111, 235, .28); stroke: #fff; stroke-width: .6; }
.pin circle { fill: #b3261e; stroke: #fff; stroke-width: 2; } .pin text { fill: #fff; font: 700 8px var(--font); text-anchor: middle; }
.sv-done { margin: 18px 0; } .sv-done .btn { width: 100%; }
.ps-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ps-sheets a { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.ps-sheets img { width: 100%; aspect-ratio: 17 / 11; display: block; }
.ps-sheets span { display: block; padding: 4px 8px; font-weight: 700; font-size: 13px; }
.ps-comments { display: grid; gap: 10px; } .ps-comments textarea { font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 10px; width: 100%; }
.ps-cls { display: flex; gap: 4px; flex-wrap: wrap; } .ps-cls select { min-height: 36px; padding: 4px 8px; width: auto; }
.ps-cls .btn-sm { min-height: 36px; padding: 4px 10px; }
.adopt { display: grid; gap: 12px; max-width: 520px; } .adopt .cb { display: flex; gap: 10px; align-items: center; font-weight: 600; } .adopt .cb input { width: 22px; height: 22px; min-height: 0; }
.qa-q td { vertical-align: top; white-space: normal !important; font-size: 14px; }
.qa-q .btn-sm { white-space: nowrap; }
.ps-tiers { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ps-tiers { grid-template-columns: 1fr 1fr; } }
.ps-tiers legend { font-weight: 700; margin-bottom: 6px; }
.ps-tier { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; cursor: pointer; }
.ps-tier input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; }
.ps-tier em { font-style: normal; font-weight: 700; color: var(--amber-deep); }
.ps-tier ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--dim); }
.ps-tier:has(input:checked) { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(31, 111, 235, .2); }
.ps-fsteps { display: flex; gap: 4px; flex-wrap: wrap; }
.ps-fs { display: inline-flex; flex-direction: column; font-size: 12px; padding: 4px 8px; border-radius: 8px; background: var(--bg); color: var(--dim); min-width: 84px; }
.ps-fs small { font-size: 11px; } .ps-fs.done { background: #d8f3e3; color: #135c39; } .ps-fs.now { background: var(--amber); color: #fff; font-weight: 700; }
.staff .opts .ps-tiers { display: grid; }
.staff .opts .ps-tier { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.staff .opts .ps-tier input { width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; }
.staff .opts .ps-tier span { display: block; }
.staff .opts .ps-tier ul { display: block; }
.ps-checkout { width: 100%; max-width: 640px; border-collapse: collapse; margin: 8px 0; }
.ps-checkout td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: normal !important; }
.ps-checkout td:last-child { text-align: right; font-weight: 700; white-space: nowrap !important; }
.ps-checkout tr.tot td { font-weight: 800; border-bottom: 2px solid var(--ink); }
.staff .opts .cb, .staff .adopt .cb { display: flex; flex-direction: row; gap: 10px; align-items: center; font-weight: 600; }
.staff .opts .cb input, .staff .adopt .cb input { width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; }
.staff .opts textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; width: 100%; }
