/* Look & feel based on the "Victoria from Los Uves" banner:
   burgundy stripes, bold white Poppins, pink "Los Uves" accent, cream script, gold star, stamp-like cards. */
@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/poppins-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Allison"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/allison-latin-400-normal.woff2") format("woff2"); }

:root {
  --burgundy: #690c24;
  --burgundy-2: #751b30;
  --burgundy-dark: #4d0819;
  --pink: #ffaeba;
  --pink-soft: #ffe1e7;
  --cream: #fff8ef;
  --cream-2: #fbeee2;
  --gold: #e4c21a;
  --gold-soft: #fff3b8;
  --white: #fffefb;
  --text: #3b0a17;
  --muted: #8a5a64;
  --border: #efd5d3;
  --ok: #2f7d4f;
  --bad: #b3243f;
  --surface: var(--cream);
  --bg: var(--cream-2);
  --accent: var(--burgundy);
  --accent-text: var(--white);
  --radius: 20px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Allison", "Brush Script MT", cursive;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--text);
  font: 15px/1.55 var(--font);
  background-color: var(--burgundy);
  background-image: repeating-linear-gradient(90deg, var(--burgundy) 0 44px, var(--burgundy-2) 44px 88px);
  background-attachment: fixed;
}
a { color: var(--burgundy); }

/* ---------- Header ---------- */
.top { max-width: 980px; margin: 0 auto; padding: 24px 16px 4px; text-align: center; }
.banner {
  display: block; width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(30, 0, 8, .45);
}
h1 {
  margin: 22px 0 0; color: var(--white); font-weight: 800; font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -.02em; line-height: 1.05; text-shadow: 0 6px 24px rgba(20, 0, 6, .5);
}
h1 .pink { color: var(--pink); }
h1 .script {
  font-family: var(--script); font-weight: 400; color: var(--gold-soft);
  font-size: 1.15em; letter-spacing: 0; margin-right: .08em; display: inline-block; transform: translateY(.12em) rotate(-6deg);
}
.sub { margin: 10px auto 0; max-width: 560px; color: var(--pink-soft); opacity: .92; }

/* ---------- Layout ---------- */
main { max-width: 980px; margin: 0 auto; padding: 18px 16px 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
main > * { min-width: 0; }
.card {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 24px;
  box-shadow: 0 14px 34px rgba(30, 0, 8, .35);
  border: 1px solid rgba(255, 255, 255, .6);
}
h2 { margin: 0 0 16px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 12px; color: var(--burgundy); }
h3 { color: var(--burgundy); font-weight: 700; margin: 20px 0 6px; }
.step {
  width: 34px; height: 34px; border-radius: 50%; background: var(--burgundy); color: var(--white);
  display: inline-grid; place-items: center; font-size: 15px; font-weight: 800; flex: none;
  box-shadow: 0 0 0 4px var(--pink-soft);
}
.step.uv { background: var(--pink); color: var(--burgundy); box-shadow: 0 0 0 4px var(--gold-soft); }

/* ---------- Forms ---------- */
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
label.check { flex-direction: row; align-items: center; gap: 9px; font-weight: 400; }
.muted, .hint { color: var(--muted); font-weight: 400; font-size: 13px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 9px 12px; min-width: 0; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--burgundy); }
input[type=file] { padding: 7px; }
input[type=file]::file-selector-button {
  font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 5px 14px; margin-right: 10px;
  background: var(--pink-soft); color: var(--burgundy); cursor: pointer;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > label { min-width: min(120px, 100%); }
.grow { flex: 1; min-width: min(220px, 100%) !important; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 4px 18px; align-items: end; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; font-weight: 700; background: var(--burgundy); color: var(--white); border: 0;
  border-radius: 999px; padding: 10px 20px; cursor: pointer; transition: transform .1s, background .15s, box-shadow .15s;
  box-shadow: 0 4px 0 var(--burgundy-dark);
}
.btn:hover { background: #7d1430; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--burgundy-dark); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.ghost { background: var(--white); color: var(--burgundy); border: 1.5px solid var(--pink); box-shadow: none; }
.btn.ghost:hover { background: var(--pink-soft); }
.btn.big {
  padding: 14px 32px; font-size: 18px; font-weight: 800; background: var(--pink); color: var(--burgundy);
  box-shadow: 0 5px 0 #d97f8f;
}
.btn.big:hover { background: #ffbcc6; }
.btn.big::before { content: "★"; color: var(--gold); margin-right: 8px; text-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.btn.link { text-decoration: none; display: inline-block; font-size: 14px; padding: 8px 16px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.tab {
  font: inherit; font-weight: 600; background: transparent; color: var(--muted); border: 1.5px solid transparent;
  border-radius: 999px; padding: 6px 16px; cursor: pointer;
}
.tab:hover { color: var(--burgundy); }
.tab.active { color: var(--burgundy); border-color: var(--pink); background: var(--pink-soft); }
.search { margin-left: auto; min-width: 180px; }
.net-filter { margin-left: auto; }
.net-filter + .search { margin-left: 0; }
.hidden { display: none !important; }
/* Admin-only tools: hidden until Studio knows the main password was used. */
body:not(.role-admin) [data-admin-only] { display: none !important; }

/* ---------- Messages ---------- */
.msg { margin-top: 10px; font-size: 14px; }
.msg.ok { color: var(--ok); } .msg.err { color: var(--bad); }
.msg ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.stats div { flex: 1; min-width: 120px; background: var(--burgundy); color: var(--white); border-radius: 16px; padding: 12px 16px; }
.stats div:nth-child(2) { background: var(--pink); color: var(--burgundy); }
.stats div:nth-child(3) { background: var(--white); color: var(--burgundy); border: 1.5px solid var(--border); }
.stats b { display: block; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stats span { font-size: 13px; opacity: .85; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1.5px solid var(--border); border-radius: 14px; max-height: 480px; overflow-y: auto; background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { position: sticky; top: 0; background: var(--pink-soft); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--burgundy); z-index: 1; }
tbody tr:hover td { background: #fff4f6; }
td.text { max-width: 380px; overflow-wrap: anywhere; }
td.reason { color: var(--bad); white-space: nowrap; }
.tag { display: inline-block; background: var(--cream-2); color: var(--burgundy); border-radius: 999px; padding: 1px 8px; margin: 1px 3px 1px 0; font-size: 12px; }
.summary-wrap { max-height: none; margin-bottom: 16px; }
.summary td.num, .summary th.num { text-align: right; font-variant-numeric: tabular-nums; }
.summary td.ok { color: var(--ok); font-weight: 700; } .summary td.bad { color: var(--bad); font-weight: 700; }
.summary tr.total td { border-top: 2px solid var(--pink); background: var(--cream); }
.net { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; background: var(--cream-2); color: var(--text); }
.net-instagram { background: #fde3f0; color: #a3175f; }
.net-facebook { background: #e3edff; color: #1653b8; }
.net-tiktok { background: #1f1a1c; color: #fff; }
.net-uvitas { background: var(--burgundy); color: var(--pink); }

/* ---------- Draw & results ---------- */
/* Winner card looks like the stamp in the banner: perforated pink edge, cream center, gold star. */
.winner {
  --r: 6px;
  position: relative; margin-top: 16px; padding: 28px 30px 24px; color: var(--text);
  background:
    linear-gradient(var(--pink-soft), var(--pink-soft)) 12px 12px / calc(100% - 24px) calc(100% - 24px) no-repeat,
    var(--pink);
  -webkit-mask:
    radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(2.6 * var(--r)) calc(2.6 * var(--r)) round,
    linear-gradient(#000 0 0) var(--r) var(--r) / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat;
          mask:
    radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(2.6 * var(--r)) calc(2.6 * var(--r)) round,
    linear-gradient(#000 0 0) var(--r) var(--r) / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat;
  filter: drop-shadow(0 6px 10px rgba(105, 12, 36, .18));
}
.winner::after {
  content: "★"; position: absolute; top: 14px; right: 26px; font-size: 44px; line-height: 1; color: var(--gold);
  transform: rotate(-12deg);
}
.winner .who { font-size: 26px; font-weight: 800; color: var(--burgundy); letter-spacing: -.01em; }
.place { font-family: var(--script); font-size: 28px; line-height: 1; color: var(--burgundy); text-transform: none; letter-spacing: 0; }
.alt { border: 1.5px dashed var(--pink); background: var(--white); border-radius: 14px; padding: 12px 16px; margin-top: 10px; }
.alt .place { font-size: 24px; }
.alt .who { font-weight: 700; color: var(--burgundy); }
.winner .hint, .alt .hint { margin-top: 6px; }
.proof { margin-top: 18px; font-size: 13px; color: var(--muted); background: var(--cream-2); border-radius: 14px; padding: 12px 16px; overflow-wrap: anywhere; }
.proof code { color: var(--burgundy); }
.actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .card { padding: 18px 16px; }
  .search, .net-filter { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.card > label.check { margin-top: 16px; }

/* ---------- Small extras ---------- */
details.more { margin: 2px 0 16px; }
details.more summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; width: fit-content; }
details.more summary:hover { color: var(--burgundy); }
details.more[open] summary { margin-bottom: 10px; }
body.no-scroll { overflow: hidden; }

/* ---------- Entrance animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.96); } 60% { opacity: 1; transform: scale(1.02); } 100% { transform: none; } }
@keyframes bump { 0% { transform: none; } 35% { transform: scale(1.06); } 100% { transform: none; } }
.top .banner { animation: rise .7s ease-out both; }
.top h1 { animation: rise .7s .12s ease-out both; }
.top .sub { animation: rise .7s .2s ease-out both; }
main > .card { animation: rise .6s ease-out both; }
main > .card:nth-child(2) { animation-delay: .08s; } main > .card:nth-child(3) { animation-delay: .16s; }
main > .card:nth-child(4) { animation-delay: .24s; } main > .card:nth-child(5) { animation-delay: .32s; }
.msg.pop { animation: pop .35s ease-out; }
.stats div.bump { animation: bump .5s ease-out; }
#list.animate tr { animation: rise .35s ease-out both; }
#list.animate tr:nth-child(-n+30) { animation-delay: calc(var(--d, 0) * 1ms); }
#list.animate tr:nth-child(1) { --d: 25; }
#list.animate tr:nth-child(2) { --d: 50; }
#list.animate tr:nth-child(3) { --d: 75; }
#list.animate tr:nth-child(4) { --d: 100; }
#list.animate tr:nth-child(5) { --d: 125; }
#list.animate tr:nth-child(6) { --d: 150; }
#list.animate tr:nth-child(7) { --d: 175; }
#list.animate tr:nth-child(8) { --d: 200; }
#list.animate tr:nth-child(9) { --d: 225; }
#list.animate tr:nth-child(10) { --d: 250; }
#list.animate tr:nth-child(11) { --d: 275; }
#list.animate tr:nth-child(12) { --d: 300; }
#list.animate tr:nth-child(13) { --d: 325; }
#list.animate tr:nth-child(14) { --d: 350; }
#list.animate tr:nth-child(15) { --d: 375; }
#list.animate tr:nth-child(16) { --d: 400; }
#list.animate tr:nth-child(17) { --d: 425; }
#list.animate tr:nth-child(18) { --d: 450; }
#list.animate tr:nth-child(19) { --d: 475; }
#list.animate tr:nth-child(20) { --d: 500; }
#list.animate tr:nth-child(21) { --d: 525; }
#list.animate tr:nth-child(22) { --d: 550; }
#list.animate tr:nth-child(23) { --d: 575; }
#list.animate tr:nth-child(24) { --d: 600; }
#list.animate tr:nth-child(25) { --d: 625; }
#list.animate tr:nth-child(26) { --d: 650; }
#list.animate tr:nth-child(27) { --d: 675; }
#list.animate tr:nth-child(28) { --d: 700; }
#list.animate tr:nth-child(29) { --d: 725; }
#list.animate tr:nth-child(30) { --d: 750; }

.winner, .alt { animation: pop .5s calc(var(--i, 0) * .12s) ease-out both; }

/* ---------- Overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(40, 3, 14, .62); backdrop-filter: blur(4px); animation: fade .25s ease-out;
}
.overlay.leaving { animation: fadeout .25s ease-in forwards; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeout { to { opacity: 0; } }

/* Loading card */
.loader-card {
  width: min(420px, 100%); text-align: center; padding: 30px 26px 26px; border-radius: var(--radius);
  background: var(--cream); box-shadow: 0 24px 60px rgba(20, 0, 6, .5); animation: pop .4s ease-out;
}
.loader-anim { position: relative; height: 92px; margin-bottom: 8px; }
.bubble { position: absolute; bottom: 10px; font-size: 30px; animation: float 1.6s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(105, 12, 36, .2)); }
.b1 { left: calc(50% - 82px); } .b2 { left: calc(50% - 18px); animation-delay: .25s; font-size: 36px; } .b3 { left: calc(50% + 50px); animation-delay: .5s; }
.loader-star { position: absolute; top: -2px; left: calc(50% + 34px); font-size: 30px; color: var(--gold); animation: spin 2.4s linear infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-title { font-size: 21px; font-weight: 800; color: var(--burgundy); }
.loader-sub { margin-top: 4px; color: var(--muted); min-height: 1.6em; }
.loader-bar { margin-top: 18px; height: 8px; border-radius: 999px; background: var(--pink-soft); overflow: hidden; }
.loader-bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--burgundy)); animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

/* Raffle stage */
.stage {
  background-color: var(--burgundy);
  background-image: repeating-linear-gradient(90deg, var(--burgundy) 0 44px, var(--burgundy-2) 44px 88px);
  backdrop-filter: none;
}
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(255, 174, 186, .28), transparent 55%);
  opacity: 0; transition: opacity .6s;
}
.stage.celebrate::before { opacity: 1; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.stage-inner { position: relative; z-index: 1; width: min(760px, 100%); text-align: center; }
.stage-kicker {
  font-family: var(--script); color: var(--gold-soft); font-size: clamp(40px, 7vw, 64px); line-height: 1;
  margin-bottom: 14px; text-shadow: 0 4px 18px rgba(20, 0, 6, .5);
}
.stage-stamp {
  --r: 9px;
  position: relative; padding: 46px 28px 34px; color: var(--burgundy);
  background:
    linear-gradient(var(--cream), var(--cream)) 16px 16px / calc(100% - 32px) calc(100% - 32px) no-repeat,
    var(--pink);
  -webkit-mask:
    radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(2.6 * var(--r)) calc(2.6 * var(--r)) round,
    linear-gradient(#000 0 0) var(--r) var(--r) / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat;
          mask:
    radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(2.6 * var(--r)) calc(2.6 * var(--r)) round,
    linear-gradient(#000 0 0) var(--r) var(--r) / calc(100% - 2 * var(--r)) calc(100% - 2 * var(--r)) no-repeat;
  transform: rotate(-1.5deg); transition: transform .5s cubic-bezier(.2, 1.6, .4, 1);
}
.stage-stamp.won { transform: rotate(0) scale(1.04); }
.stage-name {
  font-size: clamp(30px, 7vw, 68px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1;
  min-height: 1.2em; overflow-wrap: anywhere;
}
.stage-name.tick { animation: tick .09s ease-out; }
@keyframes tick { from { opacity: .2; transform: translateY(-40%); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.stage-name.reveal { animation: reveal .8s cubic-bezier(.2, 1.4, .4, 1); color: var(--burgundy); }
@keyframes reveal { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: none; } }
.stage-stamp.won::after {
  content: "★"; position: absolute; top: 18px; right: 34px; font-size: 54px; color: var(--gold); line-height: 1;
  animation: starpop .7s .15s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes starpop { from { transform: scale(0) rotate(-90deg); } to { transform: scale(1) rotate(-12deg); } }
.stage-net { margin-top: 12px; min-height: 26px; }
.stage-net .net { font-size: 14px; padding: 3px 14px; }
.stage-count { margin-top: 16px; color: var(--pink-soft); opacity: .85; }
.stage-actions { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stage-actions .btn.ghost { background: transparent; color: var(--white); border-color: var(--pink); }
.stage-actions .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.stage-actions .btn { animation: pop .4s ease-out; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
@media (max-width: 600px) { .stage-stamp { padding: 40px 18px 28px; } .stage-stamp.won::after { top: 8px; right: 16px; font-size: 34px; } }

/* Winner details inside the stage stamp */
.stage { overflow-y: auto; }
.stage-details { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s ease, opacity .5s .2s ease; }
.stage-details.show { max-height: 420px; opacity: 1; }
.stage-comment {
  margin: 16px auto 0; max-width: 560px; font-size: clamp(15px, 2.2vw, 19px); line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.stage-meta { margin-top: 8px; color: var(--muted); font-size: 14px; }
.stage-details .actions { justify-content: center; margin-top: 14px; }
.stage-details .hint { display: none; } /* the comment is already shown above */

/* ---------- Studio: views and automatic replies ---------- */
nav.views { margin-top: 16px; display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.1); flex-wrap: wrap; justify-content: center; }
.view-tab { font: inherit; font-weight: 700; color: var(--pink-soft); background: transparent; border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.view-tab.active { background: var(--pink); color: var(--burgundy); }
.view-tab.out { opacity: .75; font-weight: 600; }
.view-tab:hover { color: var(--white); }
.view-tab.active:hover { color: var(--burgundy); }
.rules { display: grid; gap: 10px; margin-bottom: 4px; }
.rule { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 16px; background: var(--white); animation: rise .35s ease-out both; }
.rule.off { opacity: .6; }
.rule h4 { margin: 0; color: var(--burgundy); font-size: 16px; }
.rule .meta { color: var(--muted); font-size: 13px; }
.rule .kw { display: inline-block; background: var(--pink-soft); color: var(--burgundy); border-radius: 999px; padding: 1px 10px; margin: 2px 4px 0 0; font-size: 12px; font-weight: 600; }
.btn.danger { color: var(--bad); border-color: #f3b3bf; }
.status-pill { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; }
.st-sent { background: #dff3e6; color: var(--ok); } .st-asked { background: var(--gold-soft); color: #7a6200; }
.st-not-following { background: var(--pink-soft); color: var(--burgundy); } .st-error { background: #fde2e6; color: var(--bad); }
.st-processing { background: var(--cream-2); color: var(--muted); }

/* ---------- Footer, toolbar, settings ---------- */
.site-footer { text-align: center; color: var(--pink-soft); font-size: 14px; padding: 0 16px 32px; }
.site-footer a { color: var(--pink); }
.toolbar { display: flex; justify-content: flex-end; }
.toolbar .btn.ghost { background: rgba(255,255,255,.08); color: var(--white); border-color: var(--pink); }
.toolbar .btn.ghost:hover { background: rgba(255,255,255,.16); }
.toolbar .btn.confirm { background: var(--pink); color: var(--burgundy); }
details.settings summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; color: var(--burgundy); flex-wrap: wrap; }
details.settings summary::-webkit-details-marker { display: none; }
details.settings summary .muted { font-weight: 400; font-size: 13px; margin-left: auto; }
details.settings[open] summary { margin-bottom: 12px; }

/* ---------- Store admin ---------- */
.checklist { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 4px; font-size: 14px; }
.checklist .ok::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.checklist .todo::before { content: "• "; color: var(--bad); font-weight: 700; }
.checklist .todo { color: var(--bad); }
.st-cover-row { align-items: center; }
.st-cover { width: 160px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--pink-soft); display: grid; place-items: center; color: var(--muted); font-size: 13px; flex: none; }
.st-cover img { width: 100%; height: 100%; object-fit: cover; }
.st-files { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.st-files li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.st-files li .muted { font-size: 12px; }
.st-upload input { margin-top: 6px; }
.rule img.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.rule .grow-text { flex: 1; min-width: 180px; }
.st-paid { background: #dff3e6; color: var(--ok); } .st-pending { background: var(--cream-2); color: var(--muted); } .st-refunded { background: #fde2e6; color: var(--bad); }
