/* Alyrica Pole Data v0.1.3 */
:root{--ink:#0A2334;--mut:#526471;--line:#EDF1F5;--edge:#CBD6DF;--bg:#F5F7FA;--blue:#0973B8;--blue-t:#E8F3FA;--blue-d:#075A90;--green:#1E7A32;--green-t:#E9F6EC;--orange:#B23600;--orange-t:#FDEEE7}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
html,body{height:100%}
body{margin:0;font-family:Roboto,system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--ink);font-feature-settings:"lnum" 1,"tnum" 1;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}
button,input,textarea{font-family:inherit;font-feature-settings:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--blue)}
.rl{font-family:Raleway,system-ui,sans-serif}
.mut{color:var(--mut)}
#app{max-width:480px;margin:0 auto;min-height:100%;display:flex;flex-direction:column}
.screen{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.hdr{display:flex;align-items:center;gap:10px;padding:calc(18px + env(safe-area-inset-top)) 20px 10px 20px}
.cap{font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--mut)}
.top{display:flex;align-items:center;gap:4px;padding:calc(8px + env(safe-area-inset-top)) 8px 6px 8px;position:sticky;top:0;background:var(--bg);z-index:5}
.ib{width:44px;height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:0;background:transparent}
.ib:active{background:#E3EAF0}
.tt{display:flex;flex-direction:column;flex-grow:1;min-width:0}
.tt .k{font-family:Raleway,sans-serif;font-weight:800;font-size:17px;line-height:1.2}
.tt .a{font-size:13px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.saved{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:500;color:var(--green);padding-right:10px}
.prog{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:0 16px 10px 16px;position:sticky;top:calc(58px + env(safe-area-inset-top));background:var(--bg);z-index:5}
.prog span{height:4px;border-radius:2px;background:#DDE5EC}
.prog .d{background:var(--green)}.prog .c{background:var(--blue)}
.wrap{padding:6px 16px 16px 16px;display:flex;flex-direction:column;gap:12px;flex-grow:1}
.card{background:#fff;border-radius:16px;box-shadow:0 1px 2px rgba(10,35,52,.06),0 6px 20px rgba(10,35,52,.05);overflow:hidden}
.act{padding:20px;display:flex;flex-direction:column;gap:16px;overflow:visible}
.ah{display:flex;align-items:center;gap:12px}
.n{width:28px;height:28px;border-radius:14px;background:var(--blue);color:#fff;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.n.u{background:var(--line);color:var(--mut)}
.n.k{background:var(--green-t)}
.n.f{background:var(--orange-t)}
.at{font-family:Raleway,sans-serif;font-weight:800;font-size:20px;flex-grow:1}
.drow{display:flex;align-items:center;gap:12px;padding:0 8px 0 20px;min-height:60px;border:0;border-top:1px solid var(--line);background:#fff;width:100%;text-align:left}
.drow:first-child{border-top:0}
.drow:active{background:#F9FBFC}
.dcol{display:flex;flex-direction:column;gap:2px;flex-grow:1;min-width:0}
.dl{font-size:12px;color:var(--mut);font-weight:500}
.dv{font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.edit{font-size:14px;font-weight:700;color:var(--blue);padding:13px 12px}
.urow{display:flex;align-items:center;gap:12px;padding:0 20px;min-height:48px;border-top:1px solid var(--line);font-size:15px;color:var(--mut);font-weight:500}
.urow:first-child{border-top:0}
.row2{display:flex;gap:10px}
.fl{display:flex;flex-direction:column;gap:6px;flex:1 1 0;min-width:0}
.fl label{font-size:13px;color:var(--mut);font-weight:500}
.inp{width:100%;height:56px;border-radius:12px;border:1.5px solid var(--edge);background:#fff;padding:0 14px;font-size:22px;font-weight:700;outline:none;-webkit-appearance:none}
.inp:focus{border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-t)}
.inp.bad{border-color:#EB4800}
.inp::placeholder{color:#9AA8B3;font-weight:400}
textarea.inp{height:96px;padding:12px 14px;font-size:16px;font-weight:400;resize:none}
.hf{display:flex;align-items:baseline;gap:6px;width:100%;min-height:72px;border-radius:12px;border:1.5px solid var(--edge);background:#fff;padding:14px 16px;text-align:left}
.hf.on{border-color:var(--blue);box-shadow:0 0 0 4px var(--blue-t)}
.hf .v{font-size:36px;font-weight:700;line-height:1}
.hf .u{font-size:15px;color:var(--mut);margin-right:12px}
.hf .e{font-size:17px;color:#9AA8B3}
.hf.sm{min-height:56px;padding:8px 14px}.hf.sm .v{font-size:26px}
.tile{display:flex;align-items:center;gap:14px;width:100%;border-radius:12px;border:1.5px dashed #9AA8B3;background:#F9FBFC;padding:14px 16px;text-align:left}
.tile:active{background:var(--blue-t)}
.tile.done{border:1.5px solid #9BD3A5;background:#F4FBF5}
.tile .t1{font-size:16px;font-weight:700}
.tile .t2{font-size:13px;color:var(--mut);margin-top:2px}
.cam{width:48px;height:48px;border-radius:24px;background:var(--blue-t);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.th{width:56px;height:48px;border-radius:10px;object-fit:cover;flex-shrink:0;background:#D5DEE6}
.pill{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 12px;border-radius:14px;font-size:13px;font-weight:700;border:0;white-space:nowrap}
.p-n{background:var(--line);color:var(--ink)}.p-b{background:var(--blue-t);color:var(--blue-d)}.p-g{background:var(--green-t);color:var(--green)}.p-o{background:var(--orange-t);color:var(--orange)}
button.pill{min-height:36px}
.chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.chips3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.chips4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.chip{min-height:48px;border-radius:12px;border:1.5px solid var(--edge);background:#fff;font-size:15px;font-weight:500;padding:4px 8px}
.chip.on{border-color:var(--blue);background:var(--blue-t);color:var(--blue-d);font-weight:700;box-shadow:inset 0 0 0 1px var(--blue)}
.chips4 .chip{font-size:13px;min-height:44px;padding:2px}
.note{display:flex;align-items:center;gap:10px;border-radius:12px;padding:12px 14px;font-size:15px}
.note.g{background:var(--green-t)}.note.o{background:var(--orange-t)}
.bar{margin-top:auto;position:sticky;bottom:0;background:#fff;border-top:1px solid #E3EAF0;padding:12px 16px calc(18px + env(safe-area-inset-bottom)) 16px;display:flex;flex-direction:column;gap:8px;z-index:4}
.cta{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;border-radius:14px;border:0;background:var(--blue);color:#fff;font-family:Raleway,sans-serif;font-size:17px;font-weight:800;text-decoration:none;box-shadow:0 2px 6px rgba(9,115,184,.3)}
.cta:active{background:var(--blue-d)}
.cta:disabled{background:#E3EAF0;color:var(--mut);box-shadow:none}
.cta2{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;border-radius:14px;border:1.5px solid var(--edge);background:#fff;color:var(--ink);font-family:Raleway,sans-serif;font-size:16px;font-weight:800;text-decoration:none}
.bcap{font-size:13px;color:var(--mut);text-align:center;line-height:1.45}
.lnk{border:0;background:transparent;color:var(--blue);font-size:14px;font-weight:700;padding:10px 0;text-align:left}
.opt{display:flex;align-items:center;gap:16px;width:100%;padding:20px;border:0;background:#fff;text-align:left;border-top:1px solid var(--line)}
.opt:first-child{border-top:0}
.opt:active{background:#F9FBFC}
.opt .o1{font-size:18px;font-weight:700}
.opt .o2{font-size:14px;color:var(--mut);margin-top:3px}
.oi{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.rad{display:flex;align-items:center;gap:14px;width:100%;min-height:60px;padding:0 20px;border:0;border-top:1px solid var(--line);background:transparent;font-size:16px;font-weight:500;text-align:left}
.rad:first-of-type{border-top:0}
.dot{width:22px;height:22px;border-radius:11px;border:2px solid #9AA8B3;flex-shrink:0}
.dot.on{border:7px solid var(--blue)}
.srow{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 20px;border-top:1px solid var(--line);font-size:15px}
.srow:first-child{border-top:0}
.trow{display:flex;align-items:center;gap:12px;padding:0 12px 0 20px;min-height:68px;border:0;border-top:1px solid var(--line);background:#fff;width:100%;text-align:left}
.trow:first-child{border-top:0}
.trow:active{background:#F9FBFC}
.hero{display:flex;flex-direction:column;align-items:center;gap:16px;padding-top:28px;text-align:center}
.ring{position:relative;width:112px;height:112px}
.ring>div{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.ring circle.p{transition:stroke-dasharray .4s ease}
.thumbs{padding:16px;display:flex;gap:10px}
.thumbs>*{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:6px}
.thumbs img,.thumbs .add{height:84px;width:100%;border-radius:10px;object-fit:cover;background:#D5DEE6}
.thumbs .add{border:1.5px dashed #9AA8B3;background:#F9FBFC;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:500;color:var(--mut)}
.thumbs span{font-size:11px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:ui-monospace,Menlo,monospace}
.poles{display:flex;gap:8px;overflow-x:auto;padding:0 16px 8px 16px}
/* keypad sheet */
#sheet{position:fixed;inset:0;z-index:20;display:none}
#sheet.open{display:block}
.scrim{position:absolute;inset:0;background:rgba(10,35,52,.28);border:0;width:100%}
.kp{position:absolute;left:0;right:0;bottom:0;max-width:480px;margin:0 auto;background:#E3EAF0;border-radius:20px 20px 0 0;padding:10px 12px calc(18px + env(safe-area-inset-bottom)) 12px;display:flex;flex-direction:column;gap:10px;animation:up .18s ease-out}
@keyframes up{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
.grab{width:40px;height:4px;border-radius:2px;background:#9AA8B3;align-self:center}
.kph{display:flex;align-items:center;justify-content:space-between;padding:0 6px;font-size:15px;font-weight:700}
.kpd{display:flex;gap:8px}
.kpd button{flex:1 1 0;display:flex;align-items:baseline;gap:6px;background:#fff;border:2px solid transparent;border-radius:12px;padding:8px 14px;min-height:60px;text-align:left}
.kpd button.on{border-color:var(--blue)}
.kpd .v{font-size:34px;font-weight:700;min-width:22px}
.kpd .u{font-size:14px;color:var(--mut)}
.keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.key{min-height:54px;border-radius:12px;border:0;background:#fff;font-size:24px;font-weight:500;box-shadow:0 1px 0 rgba(10,35,52,.18);display:flex;align-items:center;justify-content:center}
.key:active{background:#D5DEE6}
.key.go{background:var(--blue);color:#fff;font-family:Raleway,sans-serif;font-size:17px;font-weight:800;box-shadow:none}
.key.del{background:transparent;box-shadow:none}
.shake{animation:shake .25s}
@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
#toast{position:fixed;left:50%;bottom:110px;transform:translateX(-50%);background:var(--ink);color:#fff;font-size:14px;font-weight:500;padding:10px 16px;border-radius:12px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:30;max-width:88vw;text-align:center}
#toast.show{opacity:1}
@media (prefers-reduced-motion:reduce){.kp,.shake{animation:none}.ring circle.p{transition:none}}
