/* zines.dev admin panel. Base copied from the wireframe admin.css (6.11): the hub placeholder look,
   black Courier New on white, 44 px touch targets. No web fonts, no images in the chrome. */
[hidden]{display:none !important}
html{color:#000;background:#fff}
body{margin:2em;font:18px/1.5 "Courier New",Courier,monospace}
h1{font-size:1em}
a{color:inherit}

/* functional additions only */
@media (max-width:600px){body{margin:1em}}
main,.top,.crumbs{max-width:792px;box-sizing:border-box}
h1{margin:.5em 0}
h2{font-size:1em;margin:1.6em 0 .4em;text-decoration:underline}
.top{display:flex;justify-content:space-between;border-bottom:1px solid #000;padding-bottom:.3em}
.crumbs{font-size:15px;margin:.4em 0 0}
.note{font-size:15px}
p.note,ul.note{margin:.5em 0}
.badge{background:#000;color:#fff;padding:0 .35em;font-size:15px}
.big{font-size:1.1em}
.notice{border:2px solid #000;padding:.4em .6em}
.err{border:1px solid #000;border-left-width:6px;padding:.4em .6em;margin:.6em 0;font-size:15px}
.box{border:1px dashed #000;padding:1em;text-align:center;margin:1em 0}
.previewbar{background:#000;color:#fff;padding:.2em .5em;margin:.5em 0}
.preview img{max-width:100%;height:auto;border:1px solid #000;display:block}
code{font-family:inherit}

label{display:block;margin:.7em 0 0}
label.opt{display:flex;align-items:center;gap:.2em;margin:.3em 0;min-height:44px;line-height:1.3}
label.opt input{width:22px;height:22px;flex:none;margin:0 .3em 0 0}
input,select,textarea,button{font:inherit;color:#000;background:#fff;border:1px solid #000;border-radius:0}
input[type=text],input[type=number],textarea,select{display:block;width:100%;box-sizing:border-box;padding:.35em;min-height:44px}
input[type=color]{display:block;width:88px;height:44px;padding:2px}
textarea{resize:vertical}
input[readonly]{background:#eee}

.btn,button{display:inline-block;box-sizing:border-box;min-height:44px;min-width:44px;padding:.35em .7em;margin:.2em .3em .2em 0;
  border:1px solid #000;background:#fff;color:#000;text-decoration:none;cursor:pointer;line-height:1.5;vertical-align:middle;text-align:center}
.btn.primary{background:#000;color:#fff}
button[aria-pressed=true]{background:#000;color:#fff}

ul.rows{list-style:none;padding:0;margin:.5em 0}
ul.rows>li{border-top:1px solid #000;padding:.6em 0}
ul.rows>li:has(>.thumb){display:flex;gap:.6em;align-items:flex-start;flex-wrap:wrap}
ul.rows>li:last-child{border-bottom:1px solid #000}
ul.rows>li>.rowtext{flex:1;min-width:12em}
ul.rows.cand>li{color:#555}
ul.menu{list-style:none;padding:0}
ul.menu>li{border-top:1px solid #000;padding:.5em 0;min-height:44px}
ul.menu>li:last-child{border-bottom:1px solid #000}
.tabs b{text-decoration:none}

.thumb{display:inline-block;width:64px;height:64px;border:1px solid #000;font-size:11px;line-height:1.2;text-align:center;
  box-sizing:border-box;padding-top:24px;vertical-align:top;flex:none;overflow:hidden}
.thumb.sm{width:44px;height:44px;padding-top:14px;font-size:9px}
.thumb.big{width:120px;height:120px;padding-top:50px}

ol.orderable{padding:0;margin:.5em 0;list-style-position:inside}
ol.orderable>li{border-top:1px solid #000;padding:.4em 0;display:flex;flex-wrap:wrap;align-items:center;gap:.4em}
ol.orderable>li:last-child{border-bottom:1px solid #000}
ol.orderable .olabel{flex:1;min-width:12em}
ol.orderable .mv{flex:none}
ol.orderable.wide .olabel{min-width:100%}

.cards{display:flex;flex-wrap:wrap;gap:.8em}
label.card{display:block;border:1px solid #000;padding:.4em;margin:0;max-width:100%}
label.card img{max-width:100%;height:auto;display:block;margin-top:.3em}

.slots{display:flex;flex-wrap:wrap;gap:.4em;list-style:none;padding:0}
.slots li{border:1px solid #000;padding:.3em;text-align:center}
.slots .mv{display:block}
.slots .mv button{min-width:44px;font-size:13px;padding:.2em}
.emo{font-size:26px;line-height:1;padding:.2em .3em}

.editor{border:1px solid #000;min-height:8em;padding:.5em}
.toolbar button{min-width:44px}
.libgrid{display:flex;flex-wrap:wrap;gap:.4em}
label.lib{margin:0;border:1px solid #000;padding:.3em}
label.lib input{display:block;width:22px;height:22px}

.shelf{width:100%;max-width:640px;height:auto;display:block;margin:.6em 0}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:.6em}
.nudge button{min-width:64px}
.applybar{border-top:2px solid #000;margin-top:1.5em;padding-top:.4em}
dl dt{font-weight:bold;margin-top:1em}
dl dd{margin:0 0 0 1.5em}
.req{font-size:13px;border:1px solid #000;padding:0 .3em}
.req:empty{display:none}

/* review 3 fixes: thumb sized menu rows and tabs, spaced action rows, 22px radios everywhere */
ul.menu>li:has(>a:not(.btn)){padding:0}
ul.menu>li>a:not(.btn){display:block;box-sizing:border-box;min-height:44px;padding:.55em 0;text-decoration:none}
ul.menu>li>a:not(.btn)>.lbl{text-decoration:underline}
.tabs{display:flex;flex-wrap:wrap;gap:.5em;align-items:center;margin:.6em 0}
.tabs .btn{margin:0}
.btn[aria-current=page],.btn[aria-current=true],.btn[aria-pressed=true]{background:#000;color:#fff}
.acts{display:flex;flex-wrap:wrap;gap:.75em;margin:.5em 0;align-items:center}
.acts .btn,.acts button{margin:0}
.acts.apart{margin-top:1.2em}
label.card input,label.lib input,ul.rows input[type=radio],ul.rows input[type=checkbox]{width:22px;height:22px;flex:none;margin:0 .3em 0 0;vertical-align:middle}
label.card{min-height:44px}
label.card .opthead{display:flex;align-items:center;min-height:44px;gap:.2em}
button:disabled,.btn.primary:disabled{background:#fff;color:#777;border-style:dashed;cursor:not-allowed}
main{counter-reset:step}
h2.step{counter-increment:step}
h2.step::before{content:counter(step) ". "}
.thumbline{margin:.6em 0 .2em}
.btn[aria-current=page] .badge{background:#fff;color:#000}
.acts>.btn,.acts>button{display:inline-flex;align-items:center;justify-content:center}


/* panel additions (6.11) */
*,*::before,*::after{box-sizing:border-box}
img,video,audio,iframe{max-width:100%}
main{overflow-wrap:anywhere}
.right{display:inline-flex;gap:.6em;align-items:center;flex-wrap:wrap}
form.inline{display:inline;margin:0}
button.linkish{border:0;background:none;padding:0;margin:0;min-height:0;min-width:0;text-decoration:underline;font:inherit;color:inherit;cursor:pointer;line-height:inherit}
.top a,.top button.linkish{display:inline-block;min-height:44px;line-height:44px}
.overlay{position:fixed;inset:0;background:#fff;z-index:20;overflow:auto;padding:1em;border:0}
.overlay[hidden]{display:none}
.overlay .ovhead{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #000;margin-bottom:.6em;flex-wrap:wrap;gap:.4em}
dialog{border:2px solid #000;padding:1em;max-width:min(36em,calc(100vw - 2em));color:#000;background:#fff}
dialog::backdrop{background:rgba(0,0,0,.35)}
progress{display:block;width:100%;height:12px;margin:.3em 0;accent-color:#000}
.processing{border-left:6px solid #000;padding-left:.5em}
.failed{border-left:6px double #000;padding-left:.5em}
/* img.thumb.big and .sm out-rank .thumb.big and .thumb.sm, whose top padding centres placeholder
   text and squashed the profile picture into the bottom of its box */
img.thumb,img.thumb.big,img.thumb.sm{padding:0;object-fit:cover;background:#eee}
img.thumb.lib{width:160px;height:160px}
.counter{font-size:15px}
.mono{font-family:"Courier New",Courier,monospace}
.dim{color:#555}
.ok{font-weight:bold}
table.stats{border-collapse:collapse;width:100%;font-size:15px}
table.stats th,table.stats td{border:1px solid #000;padding:.2em .35em;text-align:left;vertical-align:top}
table.stats td.n{text-align:right;white-space:nowrap}
.tablewrap{overflow-x:auto;max-width:100%}
.pvframe{border:1px solid #000;margin:.6em 0;overflow:hidden;background:#eee}
.pvframe iframe{display:block;border:0;background:#fff;transform-origin:0 0}
.pvframe.phone iframe{width:390px;height:844px}
.pvframe.desktop iframe{width:1024px;height:768px;max-width:none}
.swatch{display:inline-block;width:1.2em;height:1.2em;border:1px solid #000;vertical-align:middle}
.stagelist>li{display:flex;flex-wrap:wrap;gap:.5em;align-items:flex-start}
.stagelist .staged{flex:1;min-width:12em}
.libgrid label.lib{width:172px}
.libgrid label.lib img{display:block;width:160px;height:160px;object-fit:cover}
.editor img{max-width:100%;height:auto}
.editor:focus{outline:2px solid #000}
.warnings{font-size:15px}
.sr{position:absolute;left:-9999px}

/* WP4 design area: zine list, design panels, preview, stats (builder 3) */
.runline .warn{font-weight:bold}
ul.joblines{margin:.3em 0;padding-left:1.2em}
.btn[aria-disabled=true]{color:#777;border-style:dashed;cursor:not-allowed}
.pvframe{max-width:100%}
.pvframe.phone iframe,.pvframe.desktop iframe{max-width:none}
.slots li{min-width:96px}
.slots .emo{display:block;margin:0 auto .2em}
p .emo,ul.rows .emo{min-width:44px}
#libtabs .btn{margin:0 .3em .3em 0}
table.stats th{font-weight:normal}
table.stats tr:first-child th{font-weight:bold}

/* WP4 posts (builder 2): effect cards and overlays at phone width */
body.ovopen{overflow:hidden}
#c2-cards .opthead{flex-wrap:wrap}
#c2-cards .opthead .note{flex-basis:100%}
#c2-cards label.card{flex:1 1 15em}

/* conformance review 2 E9: secondary text links are thumb sized on a phone. Vertical padding on an
   inline link grows its tap area to at least 44 px without moving the text around it (inline padding
   does not change line boxes). Block links keep their own rules. */
main a:not(.btn),.crumbs a{padding-top:12px;padding-bottom:12px}
.crumbs a{padding-top:14px;padding-bottom:14px}
ul.menu>li>a:not(.btn){padding:.55em 0}
/* A standalone secondary link whose own box is a 44 px tap target (post launch check: "back to zines.dev"). */
main a.tap{display:inline-block;min-height:44px;line-height:44px;padding:0}
.credline{border:1px solid #000;padding:.4em .6em;margin:.4em 0}

/* B6 profile picture gallery: the picture radio group as a grid of 108 px pictures (half of 216) */
fieldset.pfpgal{border:1px solid #000;margin:.6em 0;padding:.4em .6em .6em}
fieldset.pfpgal legend{padding:0 .3em}
.libgrid label.lib.pfp{width:122px;font-size:13px;line-height:1.25;cursor:pointer}
.libgrid label.lib.pfp img{display:block;width:108px;height:108px;margin:.2em 0}
.libgrid label.lib.pfp .pfpname{display:block;font-weight:bold}
.libgrid label.lib.pfp .note{display:block}
.libgrid label.lib.pfp:has(input:checked){outline:4px solid #000;outline-offset:-1px}
.libgrid label.lib.pfp.now{border-style:double;border-width:4px}
