/* smol-commission: the few things the kit doesn't have. Dark only, no white, smallest text 12px,
   inputs 16px so iOS never zooms. Built for a 430px phone, often at low brightness. */
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{background:var(--bg);-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;min-height:100dvh;overflow-x:hidden}
button{font-family:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
button:disabled{cursor:default}
input,textarea,select{font:inherit;font-size:16px;color:var(--text)}
a{color:var(--accent)}
a.sk-btn{text-decoration:none}
[hidden]{display:none!important}

.wrap{max-width:560px;margin:0 auto;padding:0 14px calc(32px + env(safe-area-inset-bottom))}
.stack>*+*{margin-top:12px}
.gap-s>*+*{margin-top:8px}
.card{background:var(--raised);border-radius:var(--radius);padding:14px}
.card>.sk-h{margin-bottom:10px}
.sechead{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.note{font-size:12px;line-height:1.5;color:var(--muted)}
.body{font-size:14px;line-height:1.5}
.small{font-size:12px}
.mono{font-family:var(--sk-mono);font-variant-numeric:tabular-nums}
.ww{overflow-wrap:anywhere;white-space:pre-wrap}
.row{display:flex;align-items:center;gap:10px}
.spread{justify-content:space-between}
.grow{flex:1;min-width:0}
.hr{height:1px;background:rgba(232,230,240,.08);margin:12px 0}
.center{text-align:center}

/* header: title row is the kit's sk-hdr; keep it in the page flow */
#app>.sk-hdr{max-width:592px;margin:0 auto;padding-top:calc(12px + env(safe-area-inset-top,0px))}
.sk-status .sk-mono{color:var(--text2)}

/* fields */
.inp,.ta,.sel{display:block;width:100%;padding:11px 12px;border:1px solid rgba(232,230,240,.1);border-radius:12px;background:var(--panel);color:var(--text);line-height:1.4;-webkit-appearance:none;appearance:none}
.ta{min-height:110px;resize:vertical}
.inp::placeholder,.ta::placeholder{color:var(--muted);opacity:1}
.inp:focus,.ta:focus,.sel:focus{outline:none;border-color:rgba(185,167,232,.55)}
.sel{padding-right:34px;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.label{display:block;font-size:14px;font-weight:600;margin:0 0 6px}
.count{margin-top:4px;text-align:right;font-size:12px;color:var(--muted)}
.count.hot{color:var(--gold-soft)}
.chk{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:8px 0;font-size:14px;line-height:1.4;cursor:pointer}
.chk input{width:22px;height:22px;margin:0;flex:none;accent-color:var(--accent)}
.err{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:12px;background:rgba(236,83,85,.13);color:var(--red-soft);font-size:14px;line-height:1.4}
.err .sk-i{margin-top:1px}
.info{display:flex;gap:8px;align-items:flex-start;padding:10px 12px;border-radius:12px;background:rgba(254,217,52,.09);color:var(--gold-soft);font-size:14px;line-height:1.4}
.info .sk-i{margin-top:1px}
.warnline{display:flex;gap:8px;align-items:flex-start;margin-top:10px;color:var(--gold-soft);font-size:14px;line-height:1.4}
.warnline .sk-i{margin-top:1px}
.drawsline{display:flex;gap:8px;align-items:flex-start;margin:0 0 10px;color:var(--text);font-size:14px;line-height:1.4}
.drawsline .sk-i{margin-top:1px;color:var(--accent)}
.fielderr{margin-top:8px;color:var(--red-soft);font-size:14px;line-height:1.4}

/* type cards */
.types{display:grid;gap:10px}
.tcard{background:var(--raised2);border:1px solid transparent;border-radius:var(--radius);padding:12px}
.tcard.on{border-color:rgba(232,139,196,.5);background:rgba(232,139,196,.09)}
.tsel{display:flex;width:100%;align-items:center;gap:12px;text-align:left}
.tsel:focus-visible,.tex button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:10px}
.radio{width:20px;height:20px;flex:none;border-radius:50%;border:2px solid rgba(232,230,240,.28);display:grid;place-items:center}
.tcard.on .radio{border-color:var(--pink)}
.tcard.on .radio::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--pink)}
.tname{font-size:15px;font-weight:600;line-height:1.25}
.tnote{font-size:12px;color:var(--muted);line-height:1.3}
.tprice{font-family:var(--sk-mono);font-size:14px;color:var(--text2);white-space:nowrap}
.tcard.off{opacity:.55}
.tcard.off .tsel{cursor:default}
.tcard.off .radio{border-color:rgba(232,230,240,.14)}
.toff{margin-top:2px}
.tex{display:flex;gap:8px;margin-top:10px;padding-left:32px}
.tex button{width:72px;height:72px;border-radius:10px;overflow:hidden;background:var(--panel)}
.tex img{width:100%;height:100%;object-fit:cover;display:block}

/* reference images */
.thumbs{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-start}
.thumbcell{max-width:120px}
.thumbcell .shrunk{margin-top:4px}
.addbtn.pend{border-style:solid;text-align:center}
.thumb{position:relative;width:84px;height:84px;border-radius:12px;overflow:hidden;background:var(--panel)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb .rm{position:absolute;top:4px;right:4px;width:28px;height:28px;border-radius:50%;background:rgba(27,26,38,.82);color:var(--text2);display:grid;place-items:center}
.thumb .rm .sk-i{width:14px;height:14px}
.thumb.gone img{opacity:.35}
.addbtn{width:84px;height:84px;border:1px dashed rgba(232,230,240,.25);border-radius:12px;color:var(--muted);display:grid;place-items:center;align-content:center;gap:2px;font-size:12px}
.addbtn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tsbox{min-height:65px;display:flex;align-items:center}
/* Bluesky handle: muted "@" in front, ".bsky.social" after the typed name (an overlay that never takes a tap) */
.hbox{position:relative}
.hov{display:none;position:absolute;inset:0;align-items:center;padding:0 13px;font-size:16px;line-height:1.4;color:var(--muted);pointer-events:none;white-space:pre;overflow:hidden}
.hbox.bsky .hov{display:flex}
.hbox.bsky .inp{padding-left:29px}
.hov .hat{display:inline-block;width:16px}
.hov .hmir{visibility:hidden}
.jade{color:var(--jade)}

/* closed / full card */
.hero{display:grid;justify-items:center;gap:8px;padding:26px 18px;text-align:center}
.hero .sk-i{width:32px;height:32px;color:var(--accent)}
.hero .big{font-size:17px;font-weight:600}
.hero p{margin:0}

/* sent screen */
.tick{width:52px;height:52px;border-radius:50%;background:rgba(91,184,136,.14);color:var(--jade);display:grid;place-items:center;margin:6px auto 4px}
.tick .sk-i{width:28px;height:28px}
.codebig{font-family:var(--sk-mono);font-size:34px;font-weight:600;letter-spacing:.06em;color:var(--accent);text-align:center;padding:18px 8px;background:var(--panel);border-radius:14px;user-select:all;-webkit-user-select:all}

/* status page */
.steps{display:flex;flex-direction:column}
.step{position:relative;display:flex;gap:12px;padding:0 0 16px}
.step:last-child{padding-bottom:0}
.step:not(:last-child)::before{content:"";position:absolute;left:13px;top:30px;bottom:2px;width:2px;background:rgba(232,230,240,.08)}
.st-ic{width:28px;height:28px;flex:none;border-radius:50%;background:var(--raised2);color:var(--muted);display:grid;place-items:center}
.st-ic .sk-i{width:16px;height:16px}
.step.done .st-ic{background:rgba(91,184,136,.14);color:var(--jade)}
.step.gold .st-ic{background:rgba(254,217,52,.11);color:var(--gold-soft)}
.step.bad .st-ic{background:rgba(236,83,85,.13);color:var(--red-soft)}
.step.now .st-ic{background:rgba(185,167,232,.16);color:var(--accent)}
.st-body{flex:1;min-width:0;padding-top:3px}
.st-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px;font-weight:600;line-height:1.3}
.step.later .st-title{color:var(--muted);font-weight:500}
.st-sub{font-size:12px;line-height:1.5;color:var(--muted)}
.st-text{font-size:14px;line-height:1.45;color:var(--text2);margin-top:4px}
.qbox{margin-top:8px;padding:10px 12px;border-radius:12px;background:rgba(254,217,52,.08);border:1px solid rgba(254,217,52,.2)}
.qbox .st-sub{color:var(--gold-soft)}
.qbox .qt{font-size:14px;line-height:1.45;margin-top:2px}
.abox{margin-top:8px;padding:10px 12px;border-radius:12px;background:var(--panel)}
.abox .st-sub{margin-bottom:2px}
.abox .qt{font-size:14px;line-height:1.45}
.pic{display:block;width:100%;height:auto;border-radius:12px;background:var(--panel);object-fit:contain;max-height:70vh}
.picbtn{display:block;width:100%;border-radius:12px;overflow:hidden}
.minis{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.minis .thumb{width:64px;height:64px;border-radius:10px}
.minis button.thumb{display:block}
.corr{margin-top:10px;padding-top:10px;border-top:1px solid rgba(232,230,240,.08)}
.corr .st-sub{margin-bottom:2px}
.checklist{margin-top:2px}
.checklist .sk-row{padding:5px 0;font-size:14px}
.checklist.muted .sk-row{color:var(--muted)}
.record{margin-top:8px;padding:12px;border-radius:12px;background:rgba(91,184,136,.08);border:1px solid rgba(91,184,136,.22)}
.record .head{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--jade)}
.record .head .sk-i{width:16px;height:16px}
.record.quiet{background:rgba(224,198,90,.07);border-color:rgba(224,198,90,.22)}
.record.quiet .head{color:var(--gold-soft)}
.record .when{font-size:12px;color:var(--muted);margin:2px 0 10px}
.hist{margin-top:10px;padding-top:10px;border-top:1px solid rgba(91,184,136,.18)}
.hist .item+.item{margin-top:8px}
.tag{font-size:12px;color:var(--muted)}
.chgflow{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.chgflow>.sk-i{color:var(--muted);flex:none}
.chgold,.chgnew{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-radius:12px;background:var(--raised2);font-size:14px;line-height:1.35;min-width:0}
.chgnew{background:rgba(91,184,136,.1);border:1px solid rgba(91,184,136,.25)}
.chgold span:last-child{color:var(--text2)}
.dlmeta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:10px;font-size:12px;color:var(--muted)}
.actions{margin-top:12px}
.linkbtn{display:inline-flex;align-items:center;gap:6px;padding:8px 2px;color:var(--muted);font-size:14px;text-decoration:underline;text-underline-offset:3px}
.linkbtn:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.foot{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:18px}
.spin{animation:none}

/* lightbox (from the board's, same feel) */
#lightbox{position:fixed;inset:0;z-index:600;background:rgba(8,7,14,.98);display:none;flex-direction:column}
#lightbox.open{display:flex}
.lbtrack{flex:1;display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.lbtrack::-webkit-scrollbar{display:none}
.lbslide{flex:0 0 100%;min-width:0;display:flex;align-items:center;justify-content:center;scroll-snap-align:center;padding:14px;cursor:pointer}
.lbslide img{max-width:100%;max-height:80vh;object-fit:contain;border-radius:12px}
.lbbottom{display:flex;justify-content:center;gap:8px;padding:0 0 calc(16px + env(safe-area-inset-bottom))}
.lbdot{position:relative;width:6px;height:6px;border-radius:3px;background:rgba(157,154,174,.4);padding:0;transition:width .15s ease,background .15s ease}
.lbdot::after{content:"";position:absolute;inset:-8px -3px}
.lbdot.on{width:16px;background:var(--pink)}
#lbx{position:absolute;right:14px;top:calc(14px + env(safe-area-inset-top));z-index:2}

/* toast */
#toast{position:fixed;left:50%;bottom:calc(var(--sk-bar-eff) + 14px);transform:translate(-50%,20px);max-width:88vw;padding:10px 16px;border-radius:12px;background:var(--raised2);color:var(--text);font-size:14px;line-height:1.35;box-shadow:0 8px 24px rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease;z-index:700}
#toast.show{opacity:1;transform:translate(-50%,0)}

/* sheets: the kit's, with a little body text */
.sheetbody{font-size:14px;line-height:1.5;color:var(--text2);margin:0 0 14px}
.sk-sheet .ta{min-height:96px}

/* terms page */
.tospage{min-height:100vh}
.doc{max-width:640px;margin:0 auto;padding:6px 18px calc(48px + env(safe-area-inset-bottom));font-size:15px;line-height:1.65;color:var(--text2)}
.doc h1{font-size:22px;line-height:1.25;color:var(--text);margin:14px 0 10px}
.doc h2{font-size:17px;line-height:1.3;color:var(--text);margin:30px 0 8px}
.doc h3{font-size:15px;color:var(--text);margin:20px 0 6px}
.doc p{margin:0 0 12px}
.doc .clause{position:relative;padding-left:40px}
.doc .cn{position:absolute;left:0;top:1px;font-family:var(--sk-mono);font-size:13px;color:var(--accent)}
.doc ul{margin:0 0 12px;padding-left:58px}
.doc li{margin:0 0 4px}
.doc strong{color:var(--text)}
.oldnote{padding:10px 12px;border-radius:12px;background:rgba(254,217,52,.09);color:var(--gold-soft);font-size:14px}

/* masked status code in the header */
.codebtn{display:inline-flex;align-items:center;gap:8px;padding:2px 0;color:var(--text2);font-size:inherit;line-height:inherit;min-height:24px}
.codebtn .sk-mono{letter-spacing:.04em}
.codeeye{display:inline-grid;place-items:center;color:var(--muted)}
.codeeye .sk-i{width:16px;height:16px}

/* NSFW pictures start blurred inside their frame; the chip is the tap target for revealing */
button.nsfw-on{position:relative;overflow:hidden}
.nsfw-on img{filter:blur(28px);transform:scale(1.1)}
.nsfwchip{position:absolute;left:0;right:0;margin:0 auto;width:max-content;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;gap:6px;max-width:calc(100% - 8px);padding:6px 10px;border-radius:10px;background:rgba(27,26,38,.86);border:1px solid rgba(232,230,240,.16);color:var(--text);font-size:12px;line-height:1.25;text-align:center;pointer-events:none}
.nsfwchip .sk-i{width:16px;height:16px;flex:none}
/* small pictures of an NSFW request are a bit bigger so the chip fits and the blur still shows */
.minis.nsfwreq .thumb{width:96px;height:96px}
.minis .nsfwchip{flex-direction:column;gap:2px;padding:4px 6px;border-radius:8px}
