@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Nunito:wght@600;700;800&display=swap');
/* Anvilo — "Block Party: Game HUD" skin (approved 2026-08-31, design canvas R2+ board).
   Sky world, navy outlines, hard drop shadows, embossed plastic square texture,
   studded baseplate footer. One stylesheet, no framework, no build step. */

:root {
  --sky-top: #45b1ff;
  --sky-mid: #7fd0ff;
  --sky-low: #a9e2ff;
  --bg: #7fd0ff;
  --panel: #ffffff;
  --panel-2: #f2f8ff;
  --line: #1d2b53;
  --txt: #1d2b53;
  --ink: #10314f;
  --mut: #5a6b8c;
  --grn: #1e9e4a;
  --red: #e5333b;
  --acc: #2dd45f;
  --acc-dark: #28bd55;
  --amb: #ffb703;
  --blu: #4fb9ff;
  --vio: #e5333b;
  --ground: #3fa244;
  --ground-edge: #2c7a33;
  --radius: 16px;
}

* { box-sizing: border-box; }

/* body is a flex column (sticky baseplate footer); flex + margin:0 auto shrink-wraps
   sections to content width, so stretch direct children back to full width */
body > div { width: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sky-mid) linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 1100px, var(--sky-low) 100%);
  color: var(--txt);
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

a { color: #1b62b8; text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
h1, h2, h3, .brand { font-family: 'Fredoka', 'Nunito', sans-serif; letter-spacing: 0.2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 20px; width: 100%; position: relative; z-index: 1; }
.narrow { max-width: 460px; }

/* white text with the chunky navy sticker outline (hero headlines, wordmark) */
.outlined {
  color: #fff;
  text-shadow: -2px -2px 0 var(--line), 2px -2px 0 var(--line), -2px 2px 0 var(--line), 2px 2px 0 var(--line), 0 5px 0 var(--line);
}

/* ---------- embossed plastic texture (from the approved board, verbatim) ---------- */
.plastic {
  background-image:
    linear-gradient(170deg, rgba(255,255,255,0) 12%, rgba(255,255,255,0.18) 13%, rgba(255,255,255,0.18) 34%, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 55%, rgba(255,255,255,0.10) 56%, rgba(255,255,255,0.10) 66%, rgba(255,255,255,0) 67%),
    linear-gradient(rgba(0,0,0,0) 72%, rgba(0,0,0,0.10) 100%),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='38'%20height='46'%3E%3Cg%20stroke-linecap='round'%20stroke-linejoin='round'%20fill='none'%3E%3Cpath%20d='M5%205%20V19%20H17'%20stroke='rgba(0,0,0,0.14)'%20stroke-width='3'/%3E%3Cpath%20d='M7.5%206.5%20V16.5%20H16.5'%20stroke='rgba(255,255,255,0.16)'%20stroke-width='2'/%3E%3Crect%20x='24'%20y='4'%20width='12'%20height='14'%20rx='2'%20fill='rgba(0,0,0,0.11)'/%3E%3Cpath%20d='M25%2019.5%20H36.5%20V5.5'%20stroke='rgba(255,255,255,0.17)'%20stroke-width='2'/%3E%3Crect%20x='5'%20y='27'%20width='12'%20height='14'%20rx='2'%20fill='rgba(0,0,0,0.11)'/%3E%3Cpath%20d='M6%2042.5%20H17.5%20V28.5'%20stroke='rgba(255,255,255,0.17)'%20stroke-width='2'/%3E%3Cpath%20d='M24%2028%20V42%20H36'%20stroke='rgba(0,0,0,0.14)'%20stroke-width='3'/%3E%3Cpath%20d='M26.5%2029.5%20V39.5%20H35.5'%20stroke='rgba(255,255,255,0.16)'%20stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 100% 100%, 100% 100%, 25px 30px;
}
.plastic-subtle {
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='38'%20height='46'%3E%3Cg%20stroke-linecap='round'%20stroke-linejoin='round'%20fill='none'%3E%3Cpath%20d='M5%205%20V19%20H17'%20stroke='rgba(0,0,0,0.055)'%20stroke-width='3'/%3E%3Crect%20x='24'%20y='4'%20width='12'%20height='14'%20rx='2'%20fill='rgba(0,0,0,0.045)'/%3E%3Crect%20x='5'%20y='27'%20width='12'%20height='14'%20rx='2'%20fill='rgba(0,0,0,0.045)'/%3E%3Cpath%20d='M24%2028%20V42%20H36'%20stroke='rgba(0,0,0,0.055)'%20stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 25px 30px;
}
.plastic-ground {
  background-color: var(--ground);
  background-image:
    linear-gradient(rgba(0,0,0,0) 60%, rgba(0,0,0,0.12) 100%),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='38'%20height='46'%3E%3Cg%20stroke-linecap='round'%20stroke-linejoin='round'%20fill='none'%3E%3Cpath%20d='M5%205%20V19%20H17'%20stroke='rgba(0,0,0,0.14)'%20stroke-width='3'/%3E%3Cpath%20d='M7.5%206.5%20V16.5%20H16.5'%20stroke='rgba(255,255,255,0.16)'%20stroke-width='2'/%3E%3Crect%20x='24'%20y='4'%20width='12'%20height='14'%20rx='2'%20fill='rgba(0,0,0,0.11)'/%3E%3Cpath%20d='M25%2019.5%20H36.5%20V5.5'%20stroke='rgba(255,255,255,0.17)'%20stroke-width='2'/%3E%3Crect%20x='5'%20y='27'%20width='12'%20height='14'%20rx='2'%20fill='rgba(0,0,0,0.11)'/%3E%3Cpath%20d='M6%2042.5%20H17.5%20V28.5'%20stroke='rgba(255,255,255,0.17)'%20stroke-width='2'/%3E%3Cpath%20d='M24%2028%20V42%20H36'%20stroke='rgba(0,0,0,0.14)'%20stroke-width='3'/%3E%3Cpath%20d='M26.5%2029.5%20V39.5%20H35.5'%20stroke='rgba(255,255,255,0.16)'%20stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 48px 58px;
}

/* decorative blocky clouds + wind gusts, drifting slowly across the sky.
   Each element sets --dur/--delay inline; negative delays scatter them
   mid-flight on load so the sky never starts empty. */
.cloud {
  position: fixed;
  left: -300px;
  border-radius: 14px;
  background: rgba(255,255,255,0.8);
  pointer-events: none;
  z-index: 0;
  animation: sky-drift var(--dur, 140s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.cloud::before {
  content: '';
  position: absolute;
  top: -55%;
  left: 18%;
  width: 55%;
  height: 90%;
  background: inherit;
  border-radius: 12px;
}
.gust {
  position: fixed;
  left: -220px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.55);
  pointer-events: none;
  z-index: 0;
  animation: sky-drift var(--dur, 28s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.gust::after {
  content: '';
  position: absolute;
  top: 9px;
  left: -34px;
  width: 55%;
  height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.38);
}
@keyframes sky-drift {
  to { transform: translateX(calc(100vw + 640px)); }
}
@media (prefers-reduced-motion: reduce) {
  .cloud, .gust { animation: none; left: 4%; }
}

/* ---------- nav (game HUD top bar) ---------- */
nav {
  background: rgba(69,177,255,0.88);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 20;
}
nav .wrap { display: flex; align-items: center; gap: 10px; padding: 14px 20px; flex-wrap: wrap; }
nav .brand {
  font-weight: 700; font-size: 22px; letter-spacing: .3px;
  color: #fff;
  text-shadow: -2px -2px 0 var(--line), 2px -2px 0 var(--line), -2px 2px 0 var(--line), 2px 2px 0 var(--line), 0 4px 0 var(--line);
}
nav .brand:hover { text-decoration: none; }
nav .spacer { flex: 1; }
nav a:not(.brand):not(.btn) {
  color: var(--txt); font-size: 13.5px; font-weight: 800;
  padding: 8px 15px; border-radius: 11px;
  background-color: #fff; border: 3px solid var(--line);
  box-shadow: 0 3.5px 0 var(--line);
}
nav a:not(.brand):not(.btn):hover { text-decoration: none; transform: translateY(-1.5px); box-shadow: 0 5px 0 var(--line); }
nav .logo-tile {
  width: 42px; height: 42px; border-radius: 12px;
  background-color: var(--amb); border: 3.5px solid var(--line); box-shadow: 0 4px 0 var(--line);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.credits-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 11px;
  background-color: #fff; border: 3px solid var(--line); box-shadow: 0 3.5px 0 var(--line);
  font-weight: 800; font-size: 13.5px; color: var(--txt);
}

/* ---------- cards (game panels) ---------- */
.card {
  background-color: var(--panel);
  border: 3.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 6px 0 var(--line);
}
.card h2 { margin: 0 0 4px; font-size: 19px; font-weight: 700; }
.card h3 {
  display: inline-block;
  margin: -4px 0 14px; padding: 6px 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--txt);
  background-color: var(--amb); border: 3px solid var(--line); border-radius: 10px;
  box-shadow: 0 3px 0 var(--line);
  background-image:
    linear-gradient(170deg, rgba(255,255,255,0) 12%, rgba(255,255,255,0.18) 13%, rgba(255,255,255,0.18) 34%, rgba(255,255,255,0) 35%),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='38'%20height='46'%3E%3Cg%20stroke-linecap='round'%20stroke-linejoin='round'%20fill='none'%3E%3Cpath%20d='M5%205%20V19%20H17'%20stroke='rgba(0,0,0,0.14)'%20stroke-width='3'/%3E%3Crect%20x='24'%20y='4'%20width='12'%20height='14'%20rx='2'%20fill='rgba(0,0,0,0.11)'/%3E%3Crect%20x='5'%20y='27'%20width='12'%20height='14'%20rx='2'%20fill='rgba(0,0,0,0.11)'/%3E%3Cpath%20d='M24%2028%20V42%20H36'%20stroke='rgba(0,0,0,0.14)'%20stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 25px 30px;
}

.row { display: flex; gap: 16px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 280px; }
.mut { color: var(--mut); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.big { font-size: 32px; font-weight: 700; line-height: 1.15; font-family: 'Fredoka', sans-serif; }

h1 { font-size: 28px; font-weight: 700; margin: 0 0 6px; }
.lede { color: var(--ink); font-weight: 700; font-size: 16.5px; margin: 0 0 24px; }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; font-weight: 800; color: var(--mut); margin: 12px 0 5px; }
input[type=text], input[type=email], input[type=password], input[type=file], select, textarea {
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 11px;
  color: var(--txt);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc-dark); }
input[type=checkbox] { width: auto; margin-right: 8px; vertical-align: middle; }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  border: 3px solid var(--line);
  background-color: #fff;
  color: var(--txt);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 0 var(--line);
}
.btn:hover { text-decoration: none; transform: translateY(-1.5px); box-shadow: 0 5.5px 0 var(--line); }
.btn:active { transform: translateY(1px); box-shadow: 0 2.5px 0 var(--line); }
.btn.primary {
  background-color: var(--acc);
  color: #fff;
  text-shadow: 0 1.5px 0 rgba(29,43,83,0.45);
  background-image:
    linear-gradient(170deg, rgba(255,255,255,0) 12%, rgba(255,255,255,0.18) 13%, rgba(255,255,255,0.18) 34%, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 55%, rgba(255,255,255,0.10) 56%, rgba(255,255,255,0.10) 66%, rgba(255,255,255,0) 67%),
    linear-gradient(rgba(0,0,0,0) 72%, rgba(0,0,0,0.10) 100%),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='38'%20height='46'%3E%3Cg%20stroke-linecap='round'%20stroke-linejoin='round'%20fill='none'%3E%3Cpath%20d='M5%205%20V19%20H17'%20stroke='rgba(0,0,0,0.14)'%20stroke-width='3'/%3E%3Cpath%20d='M7.5%206.5%20V16.5%20H16.5'%20stroke='rgba(255,255,255,0.16)'%20stroke-width='2'/%3E%3Crect%20x='24'%20y='4'%20width='12'%20height='14'%20rx='2'%20fill='rgba(0,0,0,0.11)'/%3E%3Cpath%20d='M25%2019.5%20H36.5%20V5.5'%20stroke='rgba(255,255,255,0.17)'%20stroke-width='2'/%3E%3Crect%20x='5'%20y='27'%20width='12'%20height='14'%20rx='2'%20fill='rgba(0,0,0,0.11)'/%3E%3Cpath%20d='M6%2042.5%20H17.5%20V28.5'%20stroke='rgba(255,255,255,0.17)'%20stroke-width='2'/%3E%3Cpath%20d='M24%2028%20V42%20H36'%20stroke='rgba(0,0,0,0.14)'%20stroke-width='3'/%3E%3Cpath%20d='M26.5%2029.5%20V39.5%20H35.5'%20stroke='rgba(255,255,255,0.16)'%20stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: 100% 100%, 100% 100%, 25px 30px;
}
.btn.danger { color: #fff; background-color: var(--red); text-shadow: 0 1.5px 0 rgba(29,43,83,0.45); }
.btn.wide { width: 100%; text-align: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- flash / alerts ---------- */
.flash {
  padding: 12px 15px; border-radius: 12px; margin-bottom: 16px;
  border: 3px solid var(--line); background-color: var(--panel);
  font-size: 14px; font-weight: 700; box-shadow: 0 4px 0 var(--line);
}
.flash.ok { background-color: #e4f8eb; }
.flash.error { background-color: #fde8e9; }
.flash.warn { background-color: #fff4d6; }

/* ---------- badges (item-slot chips) ---------- */
.badge {
  display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 11px;
  border-radius: 9px; border: 2.5px solid var(--line);
  background-color: #fff; color: var(--mut);
}
.badge.ok { color: #fff; background-color: var(--acc); text-shadow: 0 1px 0 rgba(29,43,83,0.4); }
.badge.run { color: #fff; background-color: var(--blu); text-shadow: 0 1px 0 rgba(29,43,83,0.4); }
.badge.err { color: #fff; background-color: var(--red); text-shadow: 0 1px 0 rgba(29,43,83,0.4); }
.badge.wait { color: var(--txt); background-color: var(--amb); }

/* ---------- meter (quest progress bar) ---------- */
.meter { height: 18px; background: #e6ebf4; border-radius: 10px; overflow: hidden;
         border: 3px solid var(--line); }
.meter > div { height: 100%; transition: width .4s ease;
               background: repeating-linear-gradient(45deg, var(--acc) 0 10px, var(--acc-dark) 10px 20px); }
.meter.hot > div { background: repeating-linear-gradient(45deg, #ffb703 0 10px, #f0a800 10px 20px); }
.meter.full > div { background: repeating-linear-gradient(45deg, #e5333b 0 10px, #d02c33 10px 20px); }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--mut); font-weight: 800; font-size: 11.5px;
     text-transform: uppercase; letter-spacing: .8px; padding: 8px; }
td { padding: 9px 8px; border-top: 2px solid #e2e8f4; font-weight: 600; }
tr:hover td { background: var(--panel-2); }
td.num, th.num { text-align: right; }

/* ---------- pricing (brick cards with studs on top) ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-top: 20px; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 14px; }
.pack { background-color: var(--panel); border: 3px solid var(--line); border-radius: 14px; padding: 16px 18px;
        box-shadow: 0 5px 0 var(--line); display: flex; flex-direction: column; }
.pack .pack-n { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 20px; }
.pack .price { font-size: 30px; font-weight: 700; font-family: 'Fredoka', sans-serif; margin: 4px 0 2px; }
.pack .price small { font-size: 13px; color: var(--mut); font-weight: 700; }
.plan { background-color: var(--panel); border: 3.5px solid var(--line);
        border-radius: 18px; padding: 24px; display: flex; flex-direction: column;
        box-shadow: 0 7px 0 var(--line); position: relative; }
.plan::before {
  content: ''; position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 168px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='168'%20height='20'%3E%3Cg%20fill='%23ffffff'%20stroke='%231d2b53'%20stroke-width='4'%3E%3Crect%20x='2'%20y='2'%20width='32'%20height='28'%20rx='8'/%3E%3Crect%20x='68'%20y='2'%20width='32'%20height='28'%20rx='8'/%3E%3Crect%20x='134'%20y='2'%20width='32'%20height='28'%20rx='8'/%3E%3C/g%3E%3C/svg%3E") no-repeat top center;
}
.plan h2 { font-size: 20px; margin: 0; }
.plan.featured { box-shadow: 0 9px 0 var(--line); border-color: var(--line); background-color: #fffbe8; }
.plan .price { font-size: 38px; font-weight: 700; font-family: 'Fredoka', sans-serif; margin: 8px 0 2px; }
.plan .price small { font-size: 14px; color: var(--mut); font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 14px 0; flex: 1; }
.plan li { padding: 7px 0; font-size: 14px; font-weight: 700; color: var(--ink);
           border-bottom: 2px dashed #dbe4f2; }
.plan li:before { content: "+ "; color: var(--grn); font-weight: 800; }
.plan .current { text-align: center; color: var(--grn); font-weight: 800; padding: 10px; }

.tag { font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
       color: var(--txt); font-weight: 800;
       background-color: var(--amb); border: 2.5px solid var(--line); border-radius: 9px;
       padding: 3px 11px; display: inline-block; width: fit-content; box-shadow: 0 2.5px 0 var(--line); }

code.key {
  display: block; padding: 12px; background: var(--panel-2); border: 3px solid var(--line);
  border-radius: 11px; word-break: break-all; font-size: 13px; margin: 8px 0; font-weight: 600;
}

/* ---------- footer (the studded baseplate) ---------- */
footer {
  margin-top: auto;
  border-top: 5px solid var(--ground-edge);
  padding: 34px 20px 42px;
  color: #fff; font-size: 13.5px; font-weight: 800; text-align: center;
  text-shadow: -1.5px -1.5px 0 var(--line), 1.5px -1.5px 0 var(--line), -1.5px 1.5px 0 var(--line), 1.5px 1.5px 0 var(--line), 0 2.5px 0 var(--line);
  position: relative; z-index: 1;
}
footer a { color: #fff; font-weight: 800; }

.dropzone {
  border: 3px dashed var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center; color: var(--mut); font-weight: 700; cursor: pointer;
  background: #fff;
}
.dropzone.over { border-color: var(--acc-dark); border-style: solid; color: var(--txt); background: #e4f8eb; }

@media (max-width: 720px) {
  nav .wrap { gap: 8px; }
  nav a:not(.brand):not(.btn) { padding: 7px 11px; font-size: 12.5px; }
  .big { font-size: 26px; }
  .cloud, .gust { display: none; }
}

/* Surface presets (job page) */
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.preset { display: block; cursor: pointer; text-align: center; font-weight: 700; font-size: 13px; }
.preset input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.preset img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 3px solid #1d2b53; box-shadow: 0 4px 0 #1d2b53; margin-bottom: 6px; background: #fff; }
.preset input[type=radio]:checked + img { outline: 4px solid #ffcb1f; outline-offset: 2px; }
.preset .custom { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 3px dashed #1d2b53; border-radius: 12px; margin-bottom: 6px; background: #f2f8ff; }
.preset input[type=radio]:checked + .custom { outline: 4px solid #ffcb1f; outline-offset: 2px; }

/* ---------- job page layout (2026-09-02): model first, actions beside it ---------- */
.jobgrid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.jobgrid .card { margin: 0 0 18px; }
@media (max-width: 960px) { .jobgrid { grid-template-columns: 1fr; } }
.viewerbar { gap: 18px; align-items: center; margin-top: 10px; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.foldcard > summary { cursor: pointer; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 15px; list-style: none; }
.foldcard > summary::-webkit-details-marker { display: none; }
.foldcard > summary::before { content: "\25B8"; display: inline-block; width: 18px; color: var(--mut); transition: transform .15s; }
.foldcard[open] > summary::before { transform: rotate(90deg); }
.presets.compact { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin: 8px 0 6px; }
.presets.compact .preset { font-size: 11.5px; font-weight: 700; line-height: 1.2; }
.presets.compact .preset img, .presets.compact .preset .custom { border-radius: 9px; border-width: 2.5px; box-shadow: 0 3px 0 #1d2b53; margin-bottom: 4px; }
.presets.compact .preset .custom { font-size: 12px; }

/* ---- job page as a single viewer (2026-09-02): progress ON the model,
   version switcher with thumbnails, live strength sliders */
.mvwrap { position: relative; }
#mvoverlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  padding: 24px; text-align: center; border-radius: 12px;
  background: rgba(242, 248, 255, 0.78);
}
#mvoverlay .meter { width: min(420px, 80%); margin: 0; }
#mvoverlay p { margin: 0; font-weight: 700; }
.thumb {
  width: 44px; height: 44px; object-fit: contain; vertical-align: middle;
  border-radius: 8px; background: #eef4ff; border: 2px solid #1d2b53; box-sizing: border-box;
}
td.thumbcell { width: 52px; padding-right: 4px; }
.variants { display: flex; flex-direction: column; gap: 6px; }
.variant {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px;
  border: 2px solid transparent; border-radius: 10px; color: inherit; text-decoration: none;
}
.variant:hover { border-color: #1d2b53; }
.variant.current { border-color: #1d2b53; background: #eef4ff; font-weight: 700; }
.variant img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; }
.variant { min-width: 0; }
.variant .name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variant .badge { flex: none; }
.slider { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.slider input { flex: 1; min-width: 0; }
.slider .v { min-width: 44px; text-align: right; font-family: ui-monospace, Menlo, Consolas, monospace; }
/* the hidden attribute must beat any display rule above (flex cards, the overlay) */
[hidden] { display: none !important; }

/* queue-another form in the job header (2026-09-02) */
/* queue-another CTA (2026-09-03): a drop target that sells the next forge, no prose */
.quickforge { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding: 14px 16px;
              border: 3px solid var(--line); border-radius: 14px; background: #fffbe8; box-shadow: 0 5px 0 var(--line); }
.quickforge .err { color: var(--red); font-weight: 700; }
.qhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qtag { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 17px; color: var(--line); }
.qtag.hot, .qtag.cooling { color: #b45309; }
.qdrop { display: block; border: 3px dashed var(--line); border-radius: 12px; padding: 22px; text-align: center;
         font-weight: 800; color: var(--ink); background: #fff; cursor: pointer; }
.qdrop.over, .qdrop.ready { border-style: solid; border-color: var(--acc-dark); background: #e4f8eb; }
.qdrop input { display: none; }
.qopts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qopts select { margin: 0; flex: 1 1 200px; }
.qopts .btn { flex: 0 0 auto; }
.qopts .btn.ready, .stages li.now { animation: hotpulse 1.2s ease-in-out infinite; }
@keyframes hotpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,183,3,0.65); } 50% { box-shadow: 0 0 0 7px rgba(255,183,3,0); } }

/* the wait (2026-09-03): the picture being forged, a scan line, stage chips */
.forgescene { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 14px; }
.forgepic { position: relative; width: 150px; height: 150px; border: 3px solid var(--line); border-radius: 12px; overflow: hidden; background: #eef4ff; }
.forgepic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.forgepic .scan { position: absolute; left: 0; right: 0; height: 36%; top: -40%; pointer-events: none;
                  background: linear-gradient(180deg, rgba(45,212,95,0) 0%, rgba(45,212,95,0.35) 65%, rgba(45,212,95,0.95) 100%);
                  border-bottom: 2px solid #2dd45f; animation: forgescan 2.2s linear infinite; }
@keyframes forgescan { from { top: -40%; } to { top: 110%; } }
.forgepic .pct { position: absolute; right: 6px; bottom: 6px; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 18px;
                 color: #fff; background: var(--line); padding: 2px 8px; border-radius: 8px; }
.stages { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 10px; flex-wrap: wrap; }
.stages li { font-size: 11.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--mut);
             border: 2px solid #d5deef; border-radius: 999px; padding: 4px 11px; background: #fff; }
.stages li.done { color: #fff; background: var(--acc-dark); border-color: var(--acc-dark); }
.stages li.done::before { content: "\2713 "; }
.stages li.now { color: var(--line); border-color: var(--line); background: #fff4c2; }
@media (max-width: 640px) { .forgescene { grid-template-columns: 1fr; } .forgepic { width: 100%; height: 190px; } }
@media (prefers-reduced-motion: reduce) { .forgepic .scan, .qopts .btn.ready, .stages li.now { animation: none; } }

/* live queue inside the job header (2026-09-02) */
.queuebox { margin-top: 14px; padding-top: 12px; border-top: 2px dashed #d5deef; }
.queuebox h3 { margin: 0 0 6px; }
.queuebox table { margin: 0; }

/* one Surface card: sections separated by a dashed rule (2026-09-02) */
.surfacesec { padding: 12px 0; border-top: 2px dashed #d5deef; }
.surfacesec:first-of-type { border-top: 0; padding-top: 4px; }
.surfacesec:last-child { padding-bottom: 0; }

/* a bar that visibly moves even while the percentage holds (2026-09-02) */
.meter.working > div {
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.28) 0 10px, rgba(255,255,255,0) 10px 20px);
  background-size: 28px 28px;
  animation: meterstripes 0.8s linear infinite;
  transition: width 0.4s ease-out;
}
@keyframes meterstripes { from { background-position: 0 0; } to { background-position: 28px 0; } }
@media (prefers-reduced-motion: reduce) { .meter.working > div { animation: none; } }
#mvoverlay p { max-width: min(560px, 92%); }

/* legal pages (privacy / terms) */
.legal { max-width: 720px; margin: 24px auto 48px; }
.legal h1 { margin-top: 0; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { line-height: 1.55; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }

/* Look card: plain-language groups */
.lookgroup { border-top: 2px dashed #dbe4f2; padding: 8px 0 4px; }
.lookgroup summary { cursor: pointer; font-weight: 800; font-size: 14px; display: flex; gap: 8px; align-items: baseline; list-style: none; }
.lookgroup summary::-webkit-details-marker { display: none; }
.lookgroup summary::before { content: '\25B8'; font-size: 12px; color: #5a6b8c; }
.lookgroup[open] summary::before { content: '\25BE'; }
.lookgroup summary .hint { color: #5a6b8c; font-weight: 600; font-size: 12px; }
.lookgroup > *:not(summary) { margin-top: 6px; }
