body.deck-active{overflow:hidden!important;overscroll-behavior:none;touch-action:manipulation}
.deck-panel{position:fixed;left:0;top:0;z-index:30;overflow:hidden;isolation:isolate;background:#263b4b;color:#d5e1e9;touch-action:manipulation;user-select:none;-webkit-user-select:none;box-sizing:border-box}
.deck-panel::before{content:"";position:absolute;inset:14px;z-index:-1;background:radial-gradient(ellipse at 50% 25%,#344a5c 0,#233240 45%,#141f2b 100%);border:1px solid #657f8d38;border-radius:28px;box-shadow:inset 0 0 0 5px #0b152033,inset 0 0 60px #08111a60;pointer-events:none}
.deck-panel::after{content:"";position:absolute;inset:15px;border-radius:27px;z-index:-1;background:repeating-linear-gradient(0deg,transparent 0 5px,#b8ccdf03 5px 6px);pointer-events:none}
.deck-back{position:absolute;left:max(20px,env(safe-area-inset-left));top:max(18px,calc(env(safe-area-inset-top) + 8px));width:44px!important;height:44px!important;padding:13px 10px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#78909d66!important;z-index:2;box-shadow:none!important;transform:none!important}
.deck-back svg{display:block;width:24px;height:18px;overflow:visible;filter:drop-shadow(0 -1px 0 #07111b66)}.deck-back path{fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.deck-grid{position:absolute;inset:max(104px,calc(env(safe-area-inset-top) + 94px)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(4,1fr);place-items:center;gap:8px}
.deck-landscape .deck-grid{grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr)}
.deck-key{--hue:0;position:relative;display:block;flex:none;box-sizing:border-box;width:150px!important;height:150px!important;min-width:150px!important;min-height:150px!important;max-width:150px!important;max-height:150px!important;margin:0!important;padding:0!important;border:0!important;border-radius:50%!important;background:#101820!important;box-shadow:0 5px 7px #060b10b0,0 0 0 2px #647c8b66,inset 0 0 0 5px #0c131a!important;transform:none!important;filter:none!important;opacity:1!important;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.deck-red{--hue:3}.deck-amber{--hue:28}.deck-yellow{--hue:49}.deck-green{--hue:137}.deck-cyan{--hue:184}.deck-blue{--hue:217}.deck-violet{--hue:268}.deck-pink{--hue:327}
.deck-ring{position:absolute;inset:4px;border-radius:50%;border:2px solid hsl(var(--hue) 46% 35%);box-shadow:0 0 0 2px #0b1118,inset 0 0 3px #000;transition:border-color .1s ease,box-shadow .1s ease}
.deck-cap{position:absolute;inset:10px;border-radius:50%;background:radial-gradient(ellipse at 45% 20%,hsl(var(--hue) 73% 64%),hsl(var(--hue) 70% 44%) 62%,hsl(var(--hue) 65% 27%));border:1px solid hsl(var(--hue) 60% 64% / .7);box-shadow:inset 0 3px 4px #ffffff50,inset 0 -6px 6px #0005,0 5px 0 hsl(var(--hue) 60% 19%),0 7px 5px #000a;transition:box-shadow .1s ease,filter .1s ease;transform:translateZ(0)}
.deck-key:active:not(:disabled):not(.deck-scheduled) .deck-cap,.deck-key.deck-pressed .deck-cap,.deck-key:is([data-ring-phase=pending],[data-ring-phase=delivered]) .deck-cap{box-shadow:inset 0 3px 7px #0008,inset 0 -1px 2px #fff3,0 1px 0 hsl(var(--hue) 60% 19%);filter:brightness(.85)}
@keyframes deck-pending-ring{0%,100%{border-color:hsl(var(--hue) 78% 54%);box-shadow:0 0 0 2px hsl(var(--hue) 90% 64% / .2),0 0 8px 3px hsl(var(--hue) 100% 58% / .18),inset 0 0 4px hsl(var(--hue) 100% 80% / .22)}50%{border-color:hsl(var(--hue) 88% 64%);box-shadow:0 0 0 2px hsl(var(--hue) 96% 68% / .34),0 0 10px 4px hsl(var(--hue) 100% 62% / .32),inset 0 0 5px hsl(var(--hue) 100% 84% / .34)}}
@keyframes deck-pending-cap{0%,100%{box-shadow:inset 0 3px 7px #0008,inset 0 -1px 2px #fff3,0 1px 0 hsl(var(--hue) 60% 19%),0 0 7px hsl(var(--hue) 100% 60% / .12);filter:brightness(.9) saturate(1.05)}50%{box-shadow:inset 0 3px 6px #0007,inset 0 -1px 3px #fff4,0 1px 0 hsl(var(--hue) 60% 19%),0 0 10px hsl(var(--hue) 100% 64% / .24);filter:brightness(1) saturate(1.12)}}
.deck-key:is([data-ring-phase=pending],[data-ring-phase=delivered]) .deck-ring{border-color:hsl(var(--hue) 78% 54%);box-shadow:0 0 0 2px hsl(var(--hue) 90% 64% / .2),0 0 8px 3px hsl(var(--hue) 100% 58% / .18),inset 0 0 4px hsl(var(--hue) 100% 80% / .22);animation:deck-pending-ring 1.15s ease-in-out infinite}
.deck-key:is([data-ring-phase=pending],[data-ring-phase=delivered]) .deck-cap{animation:deck-pending-cap 1.15s ease-in-out infinite}
.deck-key[data-ring-phase=started] .deck-cap{box-shadow:inset 0 3px 5px hsl(var(--hue) 100% 88% / .42),inset 0 -4px 6px #0004,0 3px 0 hsl(var(--hue) 70% 24%),0 0 12px hsl(var(--hue) 100% 66% / .36);filter:brightness(1.18) saturate(1.28)}
@keyframes deck-success-ring{0%{border-width:6px;border-color:hsl(var(--hue) 100% 82%);box-shadow:0 0 0 3px hsl(var(--hue) 100% 78% / .9),0 0 18px 9px hsl(var(--hue) 100% 65% / .9),0 0 30px 14px hsl(var(--hue) 100% 58% / .45),inset 0 0 9px hsl(var(--hue) 100% 88% / .9)}100%{border-width:2px;border-color:hsl(var(--hue) 46% 35%);box-shadow:0 0 0 2px #0b1118,inset 0 0 3px #000}}
.deck-key[data-ring-phase=executed] .deck-cap{animation:none;transition:box-shadow .1s ease,filter .1s ease}
.deck-key:is([data-ring-phase=failed],[data-ring-phase=rejected],[data-ring-phase=expired],[data-ring-phase=unconfirmed],[data-ring-phase=cancelled]) .deck-ring{border-color:#ff8b80;box-shadow:0 0 12px #fc6a6377}
.deck-key.deck-offline .deck-cap,.deck-key.deck-unassigned .deck-cap{filter:saturate(.3) brightness(.4)}
.deck-key:focus-visible{outline:2px solid #eef8ff!important;outline-offset:6px}
.deck-screenreader{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.deck-setting{display:flex;align-items:center;gap:14px;margin:14px 0}.deck-setting select{flex:1;min-width:0}.deck-swatch{width:24px;height:24px;flex:none;border-radius:50%;background:hsl(var(--hue) 65% 50%);border:2px solid #ffffff44}
@media(prefers-reduced-motion:reduce){.deck-cap,.deck-ring{transition:none}.deck-key .deck-cap,.deck-key .deck-ring{animation:none!important}}
.deck-key.deck-unassigned .deck-ring{border:1px solid #a6b0b9;box-shadow:none;animation:none}
.deck-key.deck-unassigned .deck-cap{background:radial-gradient(ellipse at 45% 20%,#64717b,#394550 65%,#27323b);border-color:#73818c55;filter:none;box-shadow:inset 0 2px 4px #ffffff1a,inset 0 -4px 6px #0005,0 4px 0 #1a252e}

.deck-key .deck-cap{inset:15px;background:radial-gradient(ellipse at 50% 48%,hsl(var(--hue) 66% 31%) 0%,hsl(var(--hue) 70% 40%) 43%,hsl(var(--hue) 72% 55%) 76%,hsl(var(--hue) 65% 34%) 100%);box-shadow:inset 0 9px 14px #0007,inset 0 -5px 7px #ffffff44}
.deck-reorder{display:flex;flex-direction:column;gap:4px}.deck-reorder button{width:38px;height:38px;padding:0;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--text)}
.deck-size-note{display:none;position:absolute;inset:70px 30px auto;text-align:center;color:#c1ced8;line-height:1.6}.deck-too-small .deck-grid{visibility:hidden}.deck-too-small .deck-size-note{display:block}

.deck-wordmark{position:absolute;top:max(44px,calc(env(safe-area-inset-top) + 34px));left:0;width:100%;height:48px;text-align:center;font-size:44px;font-weight:800;line-height:48px;letter-spacing:-2.8px;color:#263845;opacity:.9;-webkit-text-stroke:0;text-shadow:0 -1px 1px #07111bcc,0 1px 1px #adc3d055;pointer-events:none;user-select:none}
.deck-wordmark .deck-brand-dot{display:inline-block;width:.34ex;height:.34ex;margin-left:.17ex;vertical-align:baseline;border-radius:50%;background:#bda264;box-shadow:0 -1px 1px #111820bb,0 1px 1px #d0bc8544;letter-spacing:0}
.deck-size-note{top:112px}

/* Keep regular pages clear of the iPhone status bar; DECK paints behind it. */
body:not(.deck-active) #app{box-sizing:border-box;padding-top:env(safe-area-inset-top);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom);padding-left:env(safe-area-inset-left)}
#deck-status-backdrop{position:fixed;top:0;left:0;right:0;height:max(1px,env(safe-area-inset-top));background:#111316;z-index:100;pointer-events:none}

html.deck-active,body.deck-active{background-color:#263b4b!important}
.deck-panel{background-color:#263b4b}
body:not(.deck-active):not(:has(#deck-status-backdrop))::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top);background:#111316;z-index:100;pointer-events:none}

/* Upcoming access: an engraved clock, fixed in the button centre. */
.deck-clock{display:none;position:absolute;inset:27px;width:96px;height:96px;fill:none;stroke:#101e29;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 0 #d5e7ed66) drop-shadow(0 -1px 1px #0008);pointer-events:none}
.deck-key.deck-scheduled .deck-clock{display:block}
.deck-key.deck-scheduled .deck-cap{filter:saturate(.45) brightness(.55)}

.deck-purpose{position:absolute;inset:47px;width:56px;height:56px;color:hsl(var(--hue) 65% 17%);filter:drop-shadow(0 1px 0 #ffffff55) drop-shadow(0 -1px 1px #0007);pointer-events:none}.deck-purpose svg{display:block;width:100%;height:100%}.deck-scheduled .deck-purpose,.deck-unassigned .deck-purpose{display:none}
@keyframes deck-ble-ring{from{opacity:0}to{opacity:1}}
.deck-key.deck-ble-ready:not(.deck-scheduled):not(.deck-unassigned) .deck-progress::after{content:"";position:absolute;inset:calc(2.6667% + 3px);box-sizing:border-box;border:max(1px,calc(var(--deck-size,150px) * .073333 - 4px)) solid #0a84ff;border-radius:50%;box-shadow:0 0 3px #0a84ff,inset 0 0 3px #0a84ff;animation:deck-ble-ring .45s ease-out both}
.deck-key.deck-ble-ready:not(.deck-scheduled):not(.deck-unassigned) .deck-progress .deck-tick{opacity:0}
.deck-setting{flex-wrap:wrap}.deck-setting>select{flex:1 1 140px}.deck-icon-picker{position:relative}.deck-icon-picker summary{cursor:pointer;display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:8px;list-style:none}.deck-icon-picker summary svg{width:32px;height:32px}.deck-icon-picker[open]{flex-basis:100%;order:2}.deck-icon-picker fieldset{margin:10px 0;padding:10px;border:1px solid var(--line);border-radius:10px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.deck-icon-picker label{position:relative;cursor:pointer}.deck-icon-picker input{position:absolute;opacity:0;width:1px;height:1px}.deck-icon-picker label span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:88px;padding:6px;border:1px solid var(--line);border-radius:8px;text-align:center}.deck-icon-picker label svg{width:40px;height:40px}.deck-icon-picker small{font-size:11px;line-height:1.3}.deck-icon-picker input:checked+span{border-color:var(--accent,#dfbf7c);background:#dfbf7c22}.deck-icon-picker input:focus-visible+span{outline:2px solid currentColor}

/* 1 second engraving in, 3 seconds held, 1 second fading out. No XY movement. */


/* Experimental mode: measured once on entry and again on orientation change. */
.deck-adaptive .deck-grid{gap:32px;bottom:max(36px,calc(env(safe-area-inset-bottom) + 20px))}
.deck-adaptive .deck-key{width:var(--deck-size)!important;height:var(--deck-size)!important;min-width:var(--deck-size)!important;min-height:var(--deck-size)!important;max-width:var(--deck-size)!important;max-height:var(--deck-size)!important}
.deck-adaptive .deck-cap{inset:10%}.deck-adaptive .deck-ring{inset:2.6667%}
.deck-adaptive .deck-purpose{inset:31.3333%;width:37.3333%;height:37.3333%}
.deck-adaptive .deck-clock{inset:18%;width:64%;height:64%}

/* DECK settings: vertical scrolling only, including expanded icon pickers. */
dialog:has(#deck-settings){overflow-x:hidden;overflow-y:auto;overscroll-behavior-x:none;touch-action:pan-y}
dialog:has(#deck-settings) .modal-body,#deck-settings{min-width:0;max-width:100%;overflow-x:hidden;touch-action:pan-y}
#deck-settings .deck-setting{min-width:0;max-width:100%}
#deck-settings .deck-setting>select{min-width:0;max-width:100%}
#deck-settings .deck-icon-picker,#deck-settings .deck-icon-picker fieldset{min-width:0;max-width:100%;box-sizing:border-box}
#deck-settings .deck-icon-picker label,#deck-settings .deck-icon-picker label span{min-width:0;overflow-wrap:anywhere}
#deck-settings .checkbox{min-width:0;max-width:100%;white-space:normal}
#deck-settings .checkbox span{min-width:0;overflow-wrap:anywhere}

/* Keep rounded decorative corners clear of system bars; controls stay fixed. */
.deck-panel::before{top:max(14px,calc(env(safe-area-inset-top) + 8px));bottom:max(14px,env(safe-area-inset-bottom));left:max(14px,env(safe-area-inset-left));right:max(14px,env(safe-area-inset-right));border-radius:28px}
.deck-panel::after{top:max(15px,calc(env(safe-area-inset-top) + 9px));bottom:max(15px,calc(env(safe-area-inset-bottom) + 1px));left:max(15px,calc(env(safe-area-inset-left) + 1px));right:max(15px,calc(env(safe-area-inset-right) + 1px));border-radius:27px}

/* Lift the brand and button grid 10px; keep exit control and panel unchanged. */
.deck-wordmark{top:max(34px,calc(env(safe-area-inset-top) + 24px))}
.deck-grid{top:max(94px,calc(env(safe-area-inset-top) + 84px));bottom:calc(max(18px,env(safe-area-inset-bottom)) + 10px)}
.deck-adaptive .deck-grid{bottom:calc(max(36px,calc(env(safe-area-inset-bottom) + 20px)) + 10px)}

/* Keep a small clearance above the bottom system area. */
.deck-panel::before{bottom:calc(max(14px,env(safe-area-inset-bottom)) + 13px)}
.deck-panel::after{bottom:calc(max(15px,calc(env(safe-area-inset-bottom) + 1px)) + 13px)}

.deck-wordmark{font-family:Arial,Helvetica,sans-serif;font-weight:700}

/* Let the fixed containing block define the panel, including iOS standalone. */
.deck-panel{inset:0;width:auto;height:auto}

/* Stable full-screen target for the verified iOS standalone height mismatch. */
.deck-panel{height:var(--deck-panel-height,auto)}

/* A recovered standalone panel needs matching document paint bounds.
   clip avoids creating the shorter scrolling viewport produced by hidden. */
html.deck-active.deck-extended,html.deck-active.deck-extended body.deck-active{height:var(--deck-document-height);min-height:var(--deck-document-height);overflow:clip!important}

.deck-back.deck-settings-button{left:auto;right:max(20px,env(safe-area-inset-right));padding:10px!important}
.deck-settings-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:round;stroke-linejoin:round}
.deck-stress-toggle,.deck-stress-count{z-index:3;padding:0;border:0;background:transparent;appearance:none;-webkit-appearance:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.deck-wordmark.deck-stress-toggle{left:50%;width:190px;transform:translateX(-50%);pointer-events:auto}
.deck-stress-toggle:disabled,.deck-stress-count:disabled{cursor:default;opacity:.9;pointer-events:none}
.deck-stress-toggle:focus-visible,.deck-stress-count:focus-visible{outline:2px solid #eef8ff;outline-offset:2px}
.deck-stress-report-layer{position:fixed;z-index:20;inset:0;display:grid;place-items:center;padding:24px;background:#07111bcc;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.deck-stress-report-card{width:min(390px,calc(100vw - 36px));max-height:calc(100dvh - 48px);overflow:auto;box-sizing:border-box;padding:24px;border:1px solid #647c8966;border-radius:24px;background:linear-gradient(145deg,#2b4251,#172935);color:#a9bbc5;box-shadow:inset 0 1px 0 #a9bec833,0 20px 60px #02070acc;font-family:Arial,sans-serif}
.deck-stress-report-card h2,.deck-stress-report-card h3{margin:0;color:#dec17a;letter-spacing:2px}
.deck-stress-report-card h2{font-size:18px}.deck-stress-report-card h3{margin-top:20px;font-size:11px}
.deck-stress-report-time{margin:7px 0 18px;color:#7f99a7;font-size:12px;letter-spacing:1px}
.deck-stress-report-totals,.deck-stress-report-gates{display:grid;gap:1px;overflow:hidden;border:1px solid #71899633;border-radius:13px;background:#07111b66}
.deck-stress-report-row{display:flex;justify-content:space-between;gap:18px;padding:10px 12px;background:#263b49;color:#93a9b5;font-size:13px}
.deck-stress-report-row strong{color:#e4edf1;font-size:13px;text-align:right}.deck-stress-report-gates .deck-stress-report-row strong{color:#dec17a;white-space:nowrap}
.deck-stress-report-close{display:block;width:100%;height:38px;margin-top:20px;border:1px solid #88734188;border-radius:19px;background:#1b2d38;color:#dec17a;font:700 10px Arial,sans-serif;letter-spacing:1.6px;box-shadow:inset 0 2px 5px #07111bcc}

.deck-progress{position:absolute;inset:0;pointer-events:none;z-index:1}
.deck-tick{position:absolute;inset:calc(2.6667% + 3px);pointer-events:none}
.deck-tick::before{content:"";position:absolute;top:0;left:calc(50% - .5px);width:1px;height:max(0px,calc(var(--deck-size,150px) * .073333 - 4px));background:hsl(var(--hue) 65% 64%)}
.deck-unassigned .deck-progress,.deck-scheduled .deck-progress{display:none}

/* Static angles comply with style-src self; no inline style attributes. */
.deck-tick-off{opacity:0}
.deck-tick:nth-child(1){transform:rotate(1.8deg)}
.deck-tick:nth-child(2){transform:rotate(5.4deg)}
.deck-tick:nth-child(3){transform:rotate(9.0deg)}
.deck-tick:nth-child(4){transform:rotate(12.6deg)}
.deck-tick:nth-child(5){transform:rotate(16.2deg)}
.deck-tick:nth-child(6){transform:rotate(19.8deg)}
.deck-tick:nth-child(7){transform:rotate(23.4deg)}
.deck-tick:nth-child(8){transform:rotate(27.0deg)}
.deck-tick:nth-child(9){transform:rotate(30.6deg)}
.deck-tick:nth-child(10){transform:rotate(34.2deg)}
.deck-tick:nth-child(11){transform:rotate(37.8deg)}
.deck-tick:nth-child(12){transform:rotate(41.4deg)}
.deck-tick:nth-child(13){transform:rotate(45.0deg)}
.deck-tick:nth-child(14){transform:rotate(48.6deg)}
.deck-tick:nth-child(15){transform:rotate(52.2deg)}
.deck-tick:nth-child(16){transform:rotate(55.8deg)}
.deck-tick:nth-child(17){transform:rotate(59.4deg)}
.deck-tick:nth-child(18){transform:rotate(63.0deg)}
.deck-tick:nth-child(19){transform:rotate(66.6deg)}
.deck-tick:nth-child(20){transform:rotate(70.2deg)}
.deck-tick:nth-child(21){transform:rotate(73.8deg)}
.deck-tick:nth-child(22){transform:rotate(77.4deg)}
.deck-tick:nth-child(23){transform:rotate(81.0deg)}
.deck-tick:nth-child(24){transform:rotate(84.6deg)}
.deck-tick:nth-child(25){transform:rotate(88.2deg)}
.deck-tick:nth-child(26){transform:rotate(91.8deg)}
.deck-tick:nth-child(27){transform:rotate(95.4deg)}
.deck-tick:nth-child(28){transform:rotate(99.0deg)}
.deck-tick:nth-child(29){transform:rotate(102.6deg)}
.deck-tick:nth-child(30){transform:rotate(106.2deg)}
.deck-tick:nth-child(31){transform:rotate(109.8deg)}
.deck-tick:nth-child(32){transform:rotate(113.4deg)}
.deck-tick:nth-child(33){transform:rotate(117.0deg)}
.deck-tick:nth-child(34){transform:rotate(120.6deg)}
.deck-tick:nth-child(35){transform:rotate(124.2deg)}
.deck-tick:nth-child(36){transform:rotate(127.8deg)}
.deck-tick:nth-child(37){transform:rotate(131.4deg)}
.deck-tick:nth-child(38){transform:rotate(135.0deg)}
.deck-tick:nth-child(39){transform:rotate(138.6deg)}
.deck-tick:nth-child(40){transform:rotate(142.2deg)}
.deck-tick:nth-child(41){transform:rotate(145.8deg)}
.deck-tick:nth-child(42){transform:rotate(149.4deg)}
.deck-tick:nth-child(43){transform:rotate(153.0deg)}
.deck-tick:nth-child(44){transform:rotate(156.6deg)}
.deck-tick:nth-child(45){transform:rotate(160.2deg)}
.deck-tick:nth-child(46){transform:rotate(163.8deg)}
.deck-tick:nth-child(47){transform:rotate(167.4deg)}
.deck-tick:nth-child(48){transform:rotate(171.0deg)}
.deck-tick:nth-child(49){transform:rotate(174.6deg)}
.deck-tick:nth-child(50){transform:rotate(178.2deg)}
.deck-tick:nth-child(51){transform:rotate(181.8deg)}
.deck-tick:nth-child(52){transform:rotate(185.4deg)}
.deck-tick:nth-child(53){transform:rotate(189.0deg)}
.deck-tick:nth-child(54){transform:rotate(192.6deg)}
.deck-tick:nth-child(55){transform:rotate(196.2deg)}
.deck-tick:nth-child(56){transform:rotate(199.8deg)}
.deck-tick:nth-child(57){transform:rotate(203.4deg)}
.deck-tick:nth-child(58){transform:rotate(207.0deg)}
.deck-tick:nth-child(59){transform:rotate(210.6deg)}
.deck-tick:nth-child(60){transform:rotate(214.2deg)}
.deck-tick:nth-child(61){transform:rotate(217.8deg)}
.deck-tick:nth-child(62){transform:rotate(221.4deg)}
.deck-tick:nth-child(63){transform:rotate(225.0deg)}
.deck-tick:nth-child(64){transform:rotate(228.6deg)}
.deck-tick:nth-child(65){transform:rotate(232.2deg)}
.deck-tick:nth-child(66){transform:rotate(235.8deg)}
.deck-tick:nth-child(67){transform:rotate(239.4deg)}
.deck-tick:nth-child(68){transform:rotate(243.0deg)}
.deck-tick:nth-child(69){transform:rotate(246.6deg)}
.deck-tick:nth-child(70){transform:rotate(250.2deg)}
.deck-tick:nth-child(71){transform:rotate(253.8deg)}
.deck-tick:nth-child(72){transform:rotate(257.4deg)}
.deck-tick:nth-child(73){transform:rotate(261.0deg)}
.deck-tick:nth-child(74){transform:rotate(264.6deg)}
.deck-tick:nth-child(75){transform:rotate(268.2deg)}
.deck-tick:nth-child(76){transform:rotate(271.8deg)}
.deck-tick:nth-child(77){transform:rotate(275.4deg)}
.deck-tick:nth-child(78){transform:rotate(279.0deg)}
.deck-tick:nth-child(79){transform:rotate(282.6deg)}
.deck-tick:nth-child(80){transform:rotate(286.2deg)}
.deck-tick:nth-child(81){transform:rotate(289.8deg)}
.deck-tick:nth-child(82){transform:rotate(293.4deg)}
.deck-tick:nth-child(83){transform:rotate(297.0deg)}
.deck-tick:nth-child(84){transform:rotate(300.6deg)}
.deck-tick:nth-child(85){transform:rotate(304.2deg)}
.deck-tick:nth-child(86){transform:rotate(307.8deg)}
.deck-tick:nth-child(87){transform:rotate(311.4deg)}
.deck-tick:nth-child(88){transform:rotate(315.0deg)}
.deck-tick:nth-child(89){transform:rotate(318.6deg)}
.deck-tick:nth-child(90){transform:rotate(322.2deg)}
.deck-tick:nth-child(91){transform:rotate(325.8deg)}
.deck-tick:nth-child(92){transform:rotate(329.4deg)}
.deck-tick:nth-child(93){transform:rotate(333.0deg)}
.deck-tick:nth-child(94){transform:rotate(336.6deg)}
.deck-tick:nth-child(95){transform:rotate(340.2deg)}
.deck-tick:nth-child(96){transform:rotate(343.8deg)}
.deck-tick:nth-child(97){transform:rotate(347.4deg)}
.deck-tick:nth-child(98){transform:rotate(351.0deg)}
.deck-tick:nth-child(99){transform:rotate(354.6deg)}
.deck-tick:nth-child(100){transform:rotate(358.2deg)}

.deck-page-index{position:absolute;z-index:3;top:max(86px,calc(env(safe-area-inset-top) + 76px));left:50%;width:76px;height:44px;transform:translateX(-50%);text-align:center;font:700 28px/1.4 Arial,sans-serif;letter-spacing:2px;color:#263845;text-shadow:0 -1px 1px #07111bcc,0 1px 1px #adc3d055;-webkit-text-stroke:0}.deck-page-index:disabled{opacity:.9}.deck-panel{touch-action:pan-y}

.deck-cell{position:relative;width:150px;height:150px}.deck-adaptive .deck-cell{width:var(--deck-size);height:var(--deck-size)}
.deck-info{position:absolute;right:-12px;top:-12px;width:40px;height:40px;min-height:40px;padding:0;border:0;background:transparent;color:#263845;font:700 18px/40px Georgia,serif;text-shadow:0 -1px 1px #07111bcc,0 1px 1px #adc3d055;cursor:pointer;z-index:2;touch-action:manipulation}.deck-info[hidden]{display:none}.deck-info:focus-visible{outline:1px solid #bda264;border-radius:50%}
.deck-access-layer{position:fixed;inset:0;z-index:250;display:grid;place-items:center;padding:24px;background:#07111b55;opacity:0;transition:opacity .24s ease;touch-action:none;outline:none}.deck-access-layer.is-visible{opacity:1}.deck-access-card{box-sizing:border-box;width:min(340px,100%);max-height:70dvh;overflow:auto;padding:24px;border:1px solid #667c8966;border-radius:18px;background:#263b4b;color:#d5e1e9;box-shadow:inset 0 1px 1px #adc3d033,0 12px 35px #07111b99;text-align:center;font:15px/1.5 Arial,sans-serif}.deck-access-card strong,.deck-access-card span{display:block;overflow-wrap:anywhere}.deck-access-card strong{color:#d8b97c;font-size:18px}.deck-access-card p{margin:16px 0 0}.deck-access-card small{display:block;margin-top:14px;color:#a7bac7;font-size:11px}
@media(prefers-reduced-motion:reduce){.deck-access-layer{transition:none}}

/* Relay mode feedback is based on confirmed output state, not input position. */


.deck-key[hidden]{display:none!important}

@keyframes deck-success-ring-next{0%{border-width:6px;border-color:hsl(var(--hue) 100% 82%);box-shadow:0 0 0 3px hsl(var(--hue) 100% 78% / .9),0 0 18px 9px hsl(var(--hue) 100% 65% / .9),0 0 30px 14px hsl(var(--hue) 100% 58% / .45),inset 0 0 9px hsl(var(--hue) 100% 88% / .9)}100%{border-width:2px;border-color:hsl(var(--hue) 46% 35%);box-shadow:0 0 0 2px #0b1118,inset 0 0 3px #000}}
.deck-key[data-glow=timed] .deck-ring{border-width:6px;border-color:hsl(var(--hue) 100% 82%);box-shadow:0 0 0 3px hsl(var(--hue) 100% 78% / .9),0 0 18px 9px hsl(var(--hue) 100% 65% / .9),0 0 30px 14px hsl(var(--hue) 100% 58% / .45),inset 0 0 9px hsl(var(--hue) 100% 88% / .9);animation:deck-success-ring 100ms ease-out 500ms both;transition:none}
.deck-key[data-glow=timed][data-glow-cycle="1"] .deck-ring{animation-name:deck-success-ring-next}
.deck-key[data-glow=on] .deck-ring{animation:none;border-width:6px;border-color:hsl(var(--hue) 100% 82%);box-shadow:0 0 0 3px hsl(var(--hue) 100% 78% / .9),0 0 18px 9px hsl(var(--hue) 100% 65% / .9),0 0 30px 14px hsl(var(--hue) 100% 58% / .45),inset 0 0 9px hsl(var(--hue) 100% 88% / .9);transition:none}

/* Cap return and timed GLOW share the first-ACK animation clock. */
@keyframes deck-cap-release{0%{box-shadow:var(--deck-cap-shadow,inset 0 3px 7px #0008,inset 0 -1px 2px #fff3,0 1px 0 hsl(var(--hue) 60% 19%));filter:var(--deck-cap-filter,brightness(.85))}100%{box-shadow:var(--deck-cap-shadow,inset 0 9px 14px #0007,inset 0 -5px 7px #ffffff44);filter:var(--deck-cap-filter,none)}}
@keyframes deck-cap-release-next{0%{box-shadow:var(--deck-cap-shadow,inset 0 3px 7px #0008,inset 0 -1px 2px #fff3,0 1px 0 hsl(var(--hue) 60% 19%));filter:var(--deck-cap-filter,brightness(.85))}100%{box-shadow:var(--deck-cap-shadow,inset 0 9px 14px #0007,inset 0 -5px 7px #ffffff44);filter:var(--deck-cap-filter,none)}}
.deck-key[data-glow=timed] .deck-cap{animation:deck-cap-release 100ms ease-out 500ms both;transition:none}
.deck-key[data-glow=timed][data-glow-cycle="1"] .deck-cap{animation-name:deck-cap-release-next}
.deck-key[data-operation-mode=toggle][data-ring-phase=started] .deck-cap{box-shadow:inset 0 9px 14px #0007,inset 0 -5px 7px #ffffff44;filter:none;animation:none;transition:box-shadow .1s ease,filter .1s ease}

/* Illuminate the cap throughout local Timer countdown, independently of GLOW. */
.deck-key[data-operation-mode=pulse][data-ring-phase=started] .deck-cap{box-shadow:inset 0 9px 14px #0007,inset 0 -5px 7px #ffffff44;filter:none}
.deck-key[data-operation-mode=toggle][data-glow=on] .deck-cap,.deck-key[data-operation-mode=pulse][data-glow=timed] .deck-cap,.deck-key[data-timer-lit="1"] .deck-cap{--deck-cap-filter:brightness(1.18) saturate(1.28);--deck-cap-shadow:inset 0 3px 5px hsl(var(--hue) 100% 88% / .42),inset 0 -4px 6px #0004,0 3px 0 hsl(var(--hue) 70% 24%),0 0 12px hsl(var(--hue) 100% 66% / .36);filter:var(--deck-cap-filter);box-shadow:var(--deck-cap-shadow)}

/* Pulse cap and GLOW finish together, including their final 100ms fade. */
@keyframes deck-pulse-cap-release{0%{box-shadow:inset 0 3px 5px hsl(var(--hue) 100% 88% / .42),inset 0 -4px 6px #0004,0 3px 0 hsl(var(--hue) 70% 24%),0 0 12px hsl(var(--hue) 100% 66% / .36);filter:brightness(1.18) saturate(1.28)}100%{box-shadow:inset 0 9px 14px #0007,inset 0 -5px 7px #ffffff44;filter:none}}
@keyframes deck-pulse-cap-release-next{0%{box-shadow:inset 0 3px 5px hsl(var(--hue) 100% 88% / .42),inset 0 -4px 6px #0004,0 3px 0 hsl(var(--hue) 70% 24%),0 0 12px hsl(var(--hue) 100% 66% / .36);filter:brightness(1.18) saturate(1.28)}100%{box-shadow:inset 0 9px 14px #0007,inset 0 -5px 7px #ffffff44;filter:none}}
.deck-key[data-operation-mode=pulse][data-glow=timed] .deck-cap{animation:deck-pulse-cap-release 100ms ease-out 500ms both}
.deck-key[data-operation-mode=pulse][data-glow=timed][data-glow-cycle="1"] .deck-cap{animation-name:deck-pulse-cap-release-next}

/* A confirmed Toggle ON stays illuminated even while its OFF command is pending. */
.deck-key[data-operation-mode=toggle][data-glow=on] .deck-cap{animation:none;transition:box-shadow .1s ease,filter .1s ease}

/* The Toggle cap acknowledges an OFF gesture immediately; GLOW still awaits OFF ACK. */
.deck-key[data-operation-mode=toggle][data-toggle-off-pending="1"] .deck-cap{animation:none;box-shadow:inset 0 9px 14px #0007,inset 0 -5px 7px #ffffff44;filter:none;transition:none}
