/* /zoho-creator/permit-to-work-app/ (zpw-): group lockout hasp hero + permit gate (dark band). Content lives in the HTML; JS only enhances. */
.zpw-hero__grid { align-items: center; }
.zpw-sub { font: 600 clamp(18px, 1rem + .4vw, 21px)/1.5 var(--f-head, 'Manrope', sans-serif); color: #082238; margin: 18px 0 0; max-width: 36em; }
.zpw-tops { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.zpw-tops li { display: flex; gap: 10px; align-items: flex-start; font: 500 15px/1.45 var(--f-body, 'Inter', sans-serif); color: #334155; }
.zpw-tops svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: #B45309; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

/* ---------- Hero: isolation point + group hasp ---------- */
.zpw-iso { margin: 0 auto; width: min(100%, 420px); background: linear-gradient(160deg, #F7F4EC, #ECE6D6); border-radius: 22px; padding: 22px 20px 18px; box-shadow: 0 30px 60px -32px rgba(8, 34, 56, .55), inset 0 0 0 1.5px #D8CFB8; position: relative; }
.zpw-iso::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; border-radius: 22px 22px 0 0; background: repeating-linear-gradient(-45deg, #F2B705 0 14px, #1F2937 14px 28px); }
.zpw-iso__box { position: relative; margin: 8px auto 0; width: 150px; height: 128px; border-radius: 14px; background: linear-gradient(180deg, #5B6675, #3B4452); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18), 0 10px 18px -10px rgba(0, 0, 0, .6); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 10px 8px; box-sizing: border-box; }
.zpw-iso__plate { font: 800 10px/1 var(--f-body, 'Inter', sans-serif); letter-spacing: .08em; text-transform: uppercase; color: #1F2937; background: #F2B705; border-radius: 4px; padding: 4px 6px; }
.zpw-iso__handle { width: 30px; height: 56px; border-radius: 8px; background: #B42318; position: relative; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); }
.zpw-iso__handle i { position: absolute; left: 50%; bottom: -10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 3px solid #D1D5DB; box-sizing: border-box; background: #3B4452; }
.zpw-iso__state { font: 800 11px/1 var(--f-body, 'Inter', sans-serif); letter-spacing: .14em; color: #E5E7EB; }
.zpw-hasp { position: relative; width: 210px; height: 66px; margin: -2px auto 0; }
.zpw-hasp__jaw { position: absolute; left: 50%; top: 0; width: 26px; height: 30px; margin-left: -13px; border: 5px solid #9CA3AF; border-bottom: 0; border-radius: 14px 14px 0 0; box-sizing: border-box; }
.zpw-hasp__bar { position: absolute; left: 0; right: 0; top: 26px; height: 34px; border-radius: 10px; background: linear-gradient(180deg, #C9CED6, #8E96A3); display: flex; justify-content: space-around; align-items: center; padding: 0 10px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.zpw-hasp__bar i { width: 20px; height: 20px; border-radius: 50%; background: #4B5563; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .5); position: relative; transition: background 200ms; }
.zpw-hasp__bar i.is-on { background: var(--lc, #4B5563); }
.zpw-hasp__bar i.is-on::after { content: ""; position: absolute; left: 3px; top: 12px; width: 14px; height: 16px; border-radius: 3px; background: var(--lc, #4B5563); box-shadow: 0 2px 4px rgba(0, 0, 0, .3); animation: zpwDrop 280ms cubic-bezier(.3, 1.5, .6, 1); }
@keyframes zpwDrop { from { transform: translateY(-10px); opacity: 0; } }
.zpw-iso__hint { margin: 10px 0 8px; text-align: center; font: 500 13px/1.4 var(--f-body, 'Inter', sans-serif); color: #4A4027; }
.zpw-locks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.zpw-lock { width: 100%; min-height: 92px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; border: 1.5px solid #D8CFB8; background: #fff; cursor: pointer; color: #082238; font: 600 12px/1.25 var(--f-body, 'Inter', sans-serif); text-align: center; transition: border-color 200ms, background 200ms, transform 200ms; }
.zpw-lock b { font: 700 12px/1.2 var(--f-body, 'Inter', sans-serif); }
.zpw-lock small { font: 600 11px/1.2 var(--f-body, 'Inter', sans-serif); color: #475569; }
.zpw-lock__body { width: 24px; height: 30px; position: relative; margin-top: 8px; }
.zpw-lock__body::before { content: ""; position: absolute; left: 4px; top: -9px; width: 16px; height: 16px; border: 3.5px solid #9CA3AF; border-bottom: 0; border-radius: 9px 9px 0 0; box-sizing: border-box; transition: transform 220ms; }
.zpw-lock__body::after { content: ""; position: absolute; inset: 2px 0 0; border-radius: 5px; background: var(--lc); }
.zpw-lock[aria-pressed="false"] .zpw-lock__body::before { transform: translateY(-5px); }
.zpw-lock[aria-pressed="false"] .zpw-lock__body::after { opacity: .45; }
.zpw-lock[aria-pressed="true"] { border-color: #0F7A54; background: #F1FAF5; }
.zpw-lock[aria-pressed="true"] small { color: #0F7A54; }
.zpw-lock:hover { transform: translateY(-2px); }
.zpw-lock:focus-visible { outline: 2px solid #0A6FA8; outline-offset: 2px; }
.zpw-permit { margin-top: 14px; background: #fff; border-radius: 14px; padding: 12px 14px; border-left: 5px solid #B45309; box-shadow: 0 10px 24px -18px rgba(8, 34, 56, .5); transition: border-color 250ms; }
.zpw-permit.is-ready { border-left-color: #0F7A54; }
.zpw-permit__no { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; font: 800 11px/1.2 var(--f-body, 'Inter', sans-serif); letter-spacing: .08em; text-transform: uppercase; color: #8A1C12; }
.zpw-permit__pill { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #FDEBD3; color: #7C2D12; letter-spacing: .04em; }
.zpw-permit.is-ready .zpw-permit__pill { background: #DDF4E7; color: #0B5D3F; }
.zpw-permit__job { margin: 8px 0 0; font: 500 12.5px/1.4 var(--f-body, 'Inter', sans-serif); color: #475569; }
.zpw-permit__job b { display: block; font: 700 15.5px/1.3 var(--f-head, 'Manrope', sans-serif); color: #082238; }
.zpw-permit__msg { margin: 8px 0 0; font: 500 13.5px/1.5 var(--f-body, 'Inter', sans-serif); color: #334155; }
.zpw-iso__cap { margin: 12px 0 0; font: 500 13px/1.5 var(--f-body, 'Inter', sans-serif); color: #4A4027; text-align: center; }

/* ---------- Stage stubs (perforated permit form) ---------- */
.zpw-stubs { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: #FFFDF6; border: 1.5px solid #E6DCC0; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px -30px rgba(8, 34, 56, .4); }
.zpw-stubs li { position: relative; padding: 18px 16px 16px; border-left: 2px dashed #D9CBA5; display: flex; flex-direction: column; gap: 6px; }
.zpw-stubs li:first-child { border-left: 0; }
.zpw-stubs__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #082238; color: #FFD166; font: 800 14px/1 var(--f-head, 'Manrope', sans-serif); }
.zpw-stubs li:nth-child(3) .zpw-stubs__n, .zpw-stubs li:nth-child(5) .zpw-stubs__n { background: #B45309; color: #fff; }
.zpw-stubs h3 { margin: 4px 0 0; font: 700 16px/1.25 var(--f-head, 'Manrope', sans-serif); color: #082238; }
.zpw-stubs p { margin: 0; font: 500 14px/1.5 var(--f-body, 'Inter', sans-serif); color: #334155; }
.zpw-stubs small { margin-top: auto; padding-top: 8px; font: 600 12px/1.35 var(--f-body, 'Inter', sans-serif); color: #6B4E16; border-top: 1px solid #EFE6CC; }
.zpw-what__note { margin: 18px 0 0; font: 600 15px/1.5 var(--f-body, 'Inter', sans-serif); color: #082238; }

/* ---------- Permit gate (dark band) ---------- */
.zpw-gate { margin-top: 30px; }
.zpw-gate__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.zpw-gate__tab { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font: 600 14.5px/1 var(--f-body, 'Inter', sans-serif); cursor: pointer; }
.zpw-gate__tab.is-on { background: #FFB81C; border-color: #FFB81C; color: #082238; }
.zpw-gate__tab:focus-visible { outline: 2px solid #5FD3F3; outline-offset: 2px; }
.zpw-gate__body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(18px, 3vw, 36px); margin-top: 18px; align-items: start; }
.zpw-panel { background: #fff; border-radius: 20px; padding: 18px; color: #334155; }
.zpw-panel + .zpw-panel { margin-top: 14px; }
.zpw-js .zpw-panel { display: none; }
.zpw-js .zpw-panel.is-on { display: block; }
.zpw-js .zpw-panel + .zpw-panel { margin-top: 0; }
.zpw-panel__h { margin: 0 0 12px; font: 700 17px/1.3 var(--f-head, 'Manrope', sans-serif); color: #082238; }
.zpw-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.zpw-check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid #E2E8F0; border-radius: 12px; cursor: pointer; position: relative; min-height: 44px; transition: border-color 200ms, background 200ms; }
.zpw-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.zpw-sw { flex: 0 0 40px; width: 40px; height: 24px; border-radius: 999px; background: #CBD5E1; position: relative; margin-top: 1px; transition: background 200ms; }
.zpw-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform 200ms; }
.zpw-check input:checked + .zpw-sw { background: #0F7A54; }
.zpw-check input:checked + .zpw-sw::after { transform: translateX(16px); }
.zpw-check input:focus-visible + .zpw-sw { outline: 2px solid #0A6FA8; outline-offset: 2px; }
.zpw-check b { display: block; font: 700 14.5px/1.3 var(--f-body, 'Inter', sans-serif); color: #082238; }
.zpw-check span:last-child { font: 500 13px/1.45 var(--f-body, 'Inter', sans-serif); color: #475569; }
.zpw-check:has(input:checked) { border-color: #A7DCC0; background: #F3FBF6; }
.zpw-meter { margin-top: 12px; padding: 12px; border-radius: 12px; background: #0B1F33; color: #E2E8F0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.zpw-meter label { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font: 500 12.5px/1.4 var(--f-body, 'Inter', sans-serif); color: #BFD3E2; }
.zpw-meter label b { font: 700 14px/1.3 var(--f-body, 'Inter', sans-serif); color: #fff; }
.zpw-meter input[type="range"] { width: 100%; min-height: 28px; accent-color: #FFB81C; }
.zpw-meter output { min-width: 6.5em; text-align: right; font: 700 18px/1 ui-monospace, 'SFMono-Regular', Menlo, monospace; color: #5BE3A0; }
.zpw-meter.is-bad output { color: #FF8A7A; }
.zpw-gate__out { background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(255, 255, 255, .16); border-radius: 20px; padding: clamp(16px, 2.4vw, 24px); color: #E2E8F0; }
.zpw-barrier { position: relative; height: 64px; margin-bottom: 14px; }
.zpw-barrier__post { position: absolute; left: 0; bottom: 0; width: 16px; height: 56px; border-radius: 4px; background: #CBD5E1; }
.zpw-barrier__post--r { left: auto; right: 0; height: 30px; background: #94A3B8; }
.zpw-barrier__arm { position: absolute; left: 8px; right: 8px; bottom: 40px; height: 12px; border-radius: 6px; background: repeating-linear-gradient(90deg, #B42318 0 22px, #fff 22px 44px); transform-origin: 0 50%; transition: transform 600ms cubic-bezier(.4, 1.3, .5, 1); }
.zpw-gate__out.is-open .zpw-barrier__arm { transform: scaleX(.06); }
.zpw-barrier { overflow: hidden; }
.zpw-gate__state { margin: 0; }
.zpw-gate__state b { display: block; font: 800 21px/1.2 var(--f-head, 'Manrope', sans-serif); color: #FF8A7A; }
.zpw-gate__out.is-open .zpw-gate__state b { color: #5BE3A0; }
.zpw-gate__state span { display: block; margin-top: 6px; font: 500 14.5px/1.5 var(--f-body, 'Inter', sans-serif); color: #DCE7F0; }
.zpw-gate__h { margin: 18px 0 8px; font: 700 14px/1.3 var(--f-body, 'Inter', sans-serif); letter-spacing: .06em; text-transform: uppercase; color: #FFD166; }
.zpw-block { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.zpw-block li { padding: 9px 12px; border-radius: 10px; background: rgba(180, 35, 24, .22); border-left: 4px solid #FF8A7A; font: 500 14px/1.45 var(--f-body, 'Inter', sans-serif); color: #fff; }
.zpw-block li.is-clear { background: rgba(15, 122, 84, .25); border-left-color: #5BE3A0; }
.zpw-gate__note { margin: 14px 0 0; font: 500 12.5px/1.5 var(--f-body, 'Inter', sans-serif); color: #BFD3E2; }

/* ---------- Permit rack (types) ---------- */
.zpw-rack { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.zpw-rack li { position: relative; background: #fff; border-radius: 6px 6px 14px 14px; padding: 46px 18px 18px; box-shadow: 0 16px 32px -24px rgba(8, 34, 56, .5), inset 0 0 0 1.5px #E2E8F0; transition: transform 220ms; }
.zpw-rack li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px; border-radius: 6px 6px 0 0; background: var(--pc); }
.zpw-rack li::after { content: ""; position: absolute; top: 9px; left: 50%; width: 46px; height: 12px; margin-left: -23px; border-radius: 6px; background: rgba(255, 255, 255, .85); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .25); }
.zpw-rack li:hover { transform: translateY(-4px) rotate(-.4deg); }
.zpw-rack__k { margin: 0; font: 800 11.5px/1.2 var(--f-body, 'Inter', sans-serif); letter-spacing: .1em; text-transform: uppercase; color: var(--pc); filter: brightness(.82); }
.zpw-rack h3 { margin: 6px 0 0; font: 700 17px/1.3 var(--f-head, 'Manrope', sans-serif); color: #082238; }
.zpw-rack__g { margin: 10px 0 0; padding-top: 10px; border-top: 1.5px dashed #CBD5E1; font: 500 14px/1.5 var(--f-body, 'Inter', sans-serif); color: #334155; }
.zpw-types__note { margin: 20px 0 0; font: 500 15px/1.55 var(--f-body, 'Inter', sans-serif); color: #334155; }
.zpw-types__note a, .zpw-fit .pg-answer a { color: #0A6FA8; font-weight: 600; }

/* Kit spacing */
.zpw-score .mk-score, .zpw-flip, .zpw-sort .mk-swipe { margin-top: 28px; }

/* ---------- Compliance + audit log ---------- */
.zpw-audit__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.zpw-audit__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.zpw-audit__list li { padding-left: 16px; border-left: 3px solid #00A3D9; font: 500 15px/1.55 var(--f-body, 'Inter', sans-serif); color: #334155; }
.zpw-audit__list b { color: #082238; }
.zpw-audit__fine { margin: 14px 0 0; font: 600 14px/1.5 var(--f-body, 'Inter', sans-serif); color: #475569; }
.zpw-log { margin: 0; background: #0B1F33; border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -34px rgba(8, 34, 56, .7); }
.zpw-log__h { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 12px; font: 700 12px/1.2 var(--f-body, 'Inter', sans-serif); letter-spacing: .08em; text-transform: uppercase; color: #FFD166; }
.zpw-log__h span + span { color: #BFD3E2; }
.zpw-log__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.zpw-log__rows li { display: grid; grid-template-columns: 3.6em 1fr; gap: 10px; padding: 8px 10px; border-radius: 8px; font: 500 13.5px/1.45 ui-monospace, 'SFMono-Regular', Menlo, monospace; color: #DCE7F0; }
.zpw-log__rows time { color: #5FD3F3; }
.zpw-log__rows li.is-warn { background: rgba(180, 35, 24, .25); color: #FFD0C9; }
.zpw-log__rows li.is-done { background: rgba(15, 122, 84, .25); color: #C9F3DD; }
.zpw-log figcaption { margin: 12px 0 0; font: 500 12.5px/1.5 var(--f-body, 'Inter', sans-serif); color: #BFD3E2; }

/* ---------- Cost card ---------- */
.zpw-cost__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.zpw-cost__more { margin: 16px 0 0; font: 600 15.5px/1.5 var(--f-body, 'Inter', sans-serif); color: #082238; }
.zpw-cost__card { background: #fff; border-radius: 18px; padding: 20px 22px; border-top: 8px solid #F2B705; box-shadow: 0 20px 40px -28px rgba(8, 34, 56, .45), inset 0 0 0 1.5px #E2E8F0; }
.zpw-cost__h { margin: 0 0 12px; font: 800 13px/1.2 var(--f-body, 'Inter', sans-serif); letter-spacing: .1em; text-transform: uppercase; color: #8A4B08; }
.zpw-cost__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: zpwc; }
.zpw-cost__rows li { counter-increment: zpwc; display: grid; grid-template-columns: 28px 9em 1fr; gap: 10px; align-items: baseline; }
.zpw-cost__rows li::before { content: counter(zpwc); width: 24px; height: 24px; border-radius: 50%; background: #082238; color: #FFD166; display: grid; place-items: center; font: 800 12px/1 var(--f-head, 'Manrope', sans-serif); }
.zpw-cost__rows b { font: 700 14.5px/1.4 var(--f-head, 'Manrope', sans-serif); color: #082238; }
.zpw-cost__rows span { font: 500 14px/1.45 var(--f-body, 'Inter', sans-serif); color: #334155; }
.zpw-cost__foot { display: flex; justify-content: space-between; margin: 16px 0 0; padding-top: 14px; border-top: 1.5px dashed #CBD5E1; font: 700 12px/1 var(--f-body, 'Inter', sans-serif); letter-spacing: .08em; text-transform: uppercase; color: #475569; }

/* ---------- Steps ---------- */
.zpw-steps__box { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.zpw-steps__trust { margin: 14px 0 0; font: 500 14.5px/1.55 var(--f-body, 'Inter', sans-serif); color: #334155; }
.zpw-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.zpw-steps__list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1.5px solid #E2E8F0; border-radius: 14px; padding: 14px 16px; font: 500 14.5px/1.5 var(--f-body, 'Inter', sans-serif); color: #334155; }
.zpw-steps__list li > span { flex: 0 0 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: repeating-linear-gradient(-45deg, #F2B705 0 6px, #FFD54F 6px 12px); color: #1F2937; font: 800 15px/1 var(--f-head, 'Manrope', sans-serif); }
.zpw-steps__list b { display: block; font: 700 16px/1.3 var(--f-head, 'Manrope', sans-serif); color: #082238; margin-bottom: 2px; }
.zpw-steps__next { margin: 14px 0 0; font: 500 14.5px/1.55 var(--f-body, 'Inter', sans-serif); color: #334155; }
.zpw-steps__next a { color: #0A6FA8; font-weight: 600; }

@media (max-width: 1100px) {
  .zpw-stubs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zpw-stubs li:nth-child(4) { border-left: 0; }
  .zpw-stubs li:nth-child(n+4) { border-top: 2px dashed #D9CBA5; }
}
@media (max-width: 900px) {
  .zpw-gate__body, .zpw-audit__grid, .zpw-cost__grid, .zpw-steps__box { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .zpw-stubs { grid-template-columns: 1fr; }
  .zpw-stubs li { border-left: 0; border-top: 2px dashed #D9CBA5; }
  .zpw-stubs li:first-child { border-top: 0; }
  .zpw-locks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zpw-lock { min-height: 80px; }
  .zpw-iso { padding: 20px 14px 16px; }
  .zpw-hasp { width: 190px; }
  .zpw-cost__rows li { grid-template-columns: 28px 1fr; }
  .zpw-cost__rows span { grid-column: 2; }
  .zpw-log__rows li { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .zpw-hasp__bar i.is-on::after { animation: none; }
  .zpw-barrier__arm, .zpw-lock, .zpw-rack li, .zpw-sw::after, .zpw-lock__body::before { transition: none; }
}
