/* crude bounty · Shelf & Ledger design system
   paper #F7F4EE · ink #1A1A18 · crude yellow #F2C438
   Plus Jakarta Sans + DM Mono */

:root {
  --paper: #F7F4EE;
  --paper-2: #FFFFFF;
  --ink: #1A1A18;
  --ink-2: #2a2a27;
  --ink-3: #3a3a36;
  --yellow: #F2C438;
  --gold: #C4923A;
  --green: #4A7C59;
  --red: #8B3636;
  --hair: #E5E1D8;
  --hair-2: #DAD5C8;
  --mut: #737373;
  --mut-2: #A3A3A3;
  --sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', monospace;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --r: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  min-height: 100%;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
/* paper grain */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; }

button { font-family: inherit; font-size: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; }

.mono { font-family: var(--mono); }
.microlabel {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--mut);
}

/* ---------- boot splash ---------- */
.boot-splash {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  animation: bootIn .5s ease both;
}
.boot-mark { width: 64px; animation: bootSpin 2.4s ease-in-out infinite; }
.boot-word { font-weight: 600; font-size: 30px; letter-spacing: -.03em; display: flex; align-items: baseline; }
.boot-dot { width: 8px; height: 8px; background: var(--yellow); display: inline-block; margin-left: 4px; }
.boot-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .5em; color: var(--mut); }
@keyframes bootIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bootSpin { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.gate-error {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px;
}
.gate-error .mono { font-size: 42px; }
.gate-error p { color: var(--mut); margin-top: 8px; }

/* ============================================================
   STAFF · HUNT (paper)
   ============================================================ */

.hunt { padding-bottom: calc(76px + var(--sab)); }

/* register meter strip */
.meter {
  position: sticky; top: 0; z-index: 30;
  background: var(--ink); color: var(--paper);
  padding: calc(10px + var(--sat)) 16px 10px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.35), 0 8px 24px -18px rgba(0,0,0,.6);
}
.meter-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.meter-brand img { width: 26px; }
.meter-brand b { font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.meter-brand .microlabel { color: var(--mut-2); margin-top: 2px; }
.langpill {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  border: 1px solid var(--ink-3); color: var(--mut-2); border-radius: 999px;
  padding: 6px 10px; flex: none;
}
.langpill:active { color: var(--yellow); }
.meter-cell { text-align: right; }
.meter-cell .microlabel { color: var(--mut-2); display: block; margin-bottom: 1px; }
.meter-cell .amt {
  font-family: var(--mono); font-size: 19px; line-height: 1; color: var(--yellow);
  font-variant-numeric: tabular-nums; transition: transform .15s ease;
}
.meter-cell .amt.pend { color: var(--paper); opacity: .85; }
.meter-cell .amt.tick { animation: amtTick .6s ease; }
@keyframes amtTick {
  0% { transform: translateY(0); }
  30% { transform: translateY(-5px) scale(1.12); color: #fff; }
  100% { transform: translateY(0); }
}

/* greeting row */
.hello {
  padding: 18px 16px 4px; display: flex; align-items: baseline; justify-content: space-between;
}
.hello h1 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.hello .rate { font-family: var(--mono); font-size: 12px; color: var(--mut); }
.hello .rate b { color: var(--ink); font-weight: 400; }

/* filter chips */
.chips-scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 10px 16px 2px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips { display: flex; gap: 8px; width: max-content; }
.chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  padding: 8px 14px; border: 1px solid var(--hair-2); border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2); white-space: nowrap;
  transition: all .15s ease;
}
.chip small { color: var(--mut); margin-left: 5px; }
.chip.on { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.chip.on small { color: var(--mut-2); }
.chip:active { transform: scale(.96); }

/* shelf-tag list */
.taglist { padding: 12px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.tag {
  position: relative; display: flex; align-items: stretch; text-align: left; width: 100%;
  background: var(--paper-2); border: 1px solid var(--hair-2); border-radius: 6px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(26,26,24,.05);
  opacity: 0; animation: tagIn .4s ease forwards;
  transition: transform .12s ease, box-shadow .12s ease;
}
.tag:active { transform: scale(.985); }
.tag.leaving { animation: tagOut .45s ease forwards; }
@keyframes tagIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tagOut {
  to { opacity: 0; transform: translateY(-26px) rotate(-1.5deg) scale(.96); max-height: 0; margin-bottom: -10px; }
}
.tag-price {
  flex: 0 0 74px; background: var(--yellow); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  border-right: 1px dashed rgba(26,26,24,.35);
}
.tag-price .val { font-family: var(--mono); font-size: 17px; font-weight: 500; }
.tag-price .microlabel { color: rgba(26,26,24,.65); font-size: 8.5px; }
.tag-main { flex: 1; padding: 11px 12px; min-width: 0; }
.tag-main .brand { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.tag-main .name { font-weight: 600; font-size: 15px; letter-spacing: -.01em; margin: 1px 0 4px; }
.tag-main .meta { font-size: 12px; color: var(--mut); display: flex; gap: 10px; flex-wrap: wrap; }
.tag-main .meta .mkt { font-family: var(--mono); font-size: 11px; }
.tag-note { font-size: 11.5px; color: var(--gold); margin-top: 3px; }
.tag-bars {
  flex: 0 0 26px; display: flex; align-items: center; justify-content: center; opacity: .5;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 5px, transparent 5px 6px, var(--ink) 6px 7px, transparent 7px 10px);
  background-size: 10px 34px; background-repeat: repeat-x; background-position: center;
  margin: 12px 8px 12px 0;
}
.tag .mine {
  position: absolute; top: 6px; right: 6px; font-family: var(--mono); font-size: 9px;
  letter-spacing: .12em; background: var(--ink); color: var(--yellow); padding: 3px 7px; border-radius: 3px;
}

.empty {
  padding: 60px 24px; text-align: center; color: var(--mut);
}
.empty .mono { font-size: 40px; display: block; margin-bottom: 8px; }

/* bottom nav */
.bnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--paper-2); border-top: 1px solid var(--hair-2);
  display: flex; padding-bottom: var(--sab);
}
.bnav button {
  flex: 1; padding: 12px 0 10px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--mut);
}
.bnav button .ico { font-size: 19px; line-height: 1; font-family: var(--sans); }
.bnav button.on { color: var(--ink); }
.bnav button.on::after { content: ''; width: 22px; height: 3px; background: var(--yellow); border-radius: 2px; margin-top: 2px; }

/* product bottom sheet */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50; background: rgba(26,26,24,.45);
  animation: fadeIn .2s ease; backdrop-filter: blur(2px);
}
@keyframes fadeIn { from { opacity: 0; } }
.sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 51;
  background: var(--paper); border-radius: 18px 18px 0 0; padding: 10px 20px calc(20px + var(--sab));
  animation: sheetUp .28s cubic-bezier(.2,.9,.3,1);
  max-height: 86vh; overflow-y: auto;
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet-grip { width: 40px; height: 4px; border-radius: 3px; background: var(--hair-2); margin: 4px auto 16px; }
.sheet .brand { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.sheet h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 2px 0 10px; }
.sheet .rows { border-top: 1px dashed var(--hair-2); margin-top: 6px; }
.sheet .row {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 0;
  border-bottom: 1px dashed var(--hair-2); font-size: 13.5px;
}
.sheet .row .k { color: var(--mut); }
.sheet .row .v { font-family: var(--mono); font-size: 12.5px; text-align: right; }
.sheet .note { margin-top: 10px; font-size: 13px; color: var(--gold); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px; border-radius: var(--r);
  font-family: var(--mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  transition: transform .1s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-y { background: var(--yellow); color: var(--ink); box-shadow: 0 2px 0 var(--gold); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { background: none; border: 1px solid var(--hair-2); color: var(--mut); }
.btn-green { background: var(--green); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.sheet .btn { margin-top: 14px; }
.sheet .btn + .btn { margin-top: 8px; }

/* ---------- camera ---------- */
.cam {
  position: fixed; inset: 0; z-index: 60; background: #000; color: #fff;
  display: flex; flex-direction: column; animation: fadeIn .2s ease;
}
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 22%, transparent 66%, rgba(0,0,0,.6)); }
.cam-top {
  position: relative; z-index: 2; padding: calc(12px + var(--sat)) 14px 8px;
  display: flex; align-items: center; gap: 10px;
}
.cam-x { font-size: 24px; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.4); }
.cam-title { min-width: 0; }
.cam-title .microlabel { color: rgba(255,255,255,.65); }
.cam-title .nm { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cam-faces { position: relative; z-index: 2; display: flex; gap: 6px; padding: 4px 14px; overflow-x: auto; scrollbar-width: none; }
.cam-faces::-webkit-scrollbar { display: none; }
.facechip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.8); background: rgba(0,0,0,.35);
}
.facechip.cur { background: var(--yellow); color: var(--ink); border-color: var(--yellow); font-weight: 500; }
.facechip.done { background: var(--green); border-color: var(--green); color: #fff; }

.cam-mid { flex: 1; position: relative; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.cam-facelabel {
  font-family: var(--mono); font-size: 40px; font-weight: 500; letter-spacing: .28em; text-indent: .28em;
  color: rgba(255,255,255,.9); text-shadow: 0 2px 18px rgba(0,0,0,.7);
  animation: faceSwap .35s ease;
}
@keyframes faceSwap { from { opacity: 0; transform: scale(1.25); } }

.cam-verdict {
  position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%);
  z-index: 3; background: rgba(20,20,18,.92); border-radius: 14px; padding: 18px;
  text-align: center; animation: sheetUp .22s ease; pointer-events: auto;
}
.cam-verdict img { width: 100%; max-height: 34vh; object-fit: contain; border-radius: 8px; background: #111; }
.cam-verdict .vd { font-family: var(--mono); font-size: 14px; letter-spacing: .12em; margin: 12px 0 4px; }
.cam-verdict .vd.bad { color: #E8A0A0; }
.cam-verdict .hint { font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.cam-verdict .pair { display: flex; gap: 8px; }
.cam-verdict .pair .btn { padding: 13px; }

.cam-bottom { position: relative; z-index: 2; padding: 8px 16px calc(16px + var(--sab)); }
.cam-rail { display: flex; gap: 8px; margin-bottom: 12px; min-height: 52px; align-items: center; }
.railthumb { position: relative; width: 46px; height: 52px; border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,.3); flex: none; }
.railthumb img { width: 100%; height: 100%; object-fit: cover; }
.railthumb .f {
  position: absolute; bottom: 0; left: 0; right: 0; font-family: var(--mono); font-size: 7.5px;
  text-align: center; background: rgba(0,0,0,.65); padding: 2px 0; letter-spacing: .1em;
}
.railthumb .st { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; }
.railthumb .st.up { background: var(--green); }
.railthumb .st.ld { background: rgba(255,255,255,.25); animation: pulse 1s infinite; }
.railthumb .st.er { background: var(--red); }
@keyframes pulse { 50% { opacity: .4; } }

.cam-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cam-skip, .cam-done {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 12px 16px; border-radius: 999px; background: rgba(0,0,0,.45); color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.28); min-width: 92px;
}
.cam-done { background: var(--yellow); color: var(--ink); border-color: var(--yellow); font-weight: 500; }
.cam-done[disabled] { opacity: .4; }
.shutter {
  width: 78px; height: 78px; border-radius: 50%; background: #fff; flex: none;
  border: 5px solid rgba(255,255,255,.35); background-clip: padding-box;
  transition: transform .08s ease;
}
.shutter:active { transform: scale(.88); }
.cam-flash { position: absolute; inset: 0; z-index: 5; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.go { animation: flash .28s ease; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }

/* upload overlay + success */
.upwrap {
  position: fixed; inset: 0; z-index: 70; background: rgba(26,26,24,.96); color: var(--paper);
  display: grid; place-items: center; text-align: center; animation: fadeIn .2s ease;
}
.upwrap .big { font-family: var(--mono); font-size: 15px; letter-spacing: .18em; margin-top: 16px; }
.upbar { width: 210px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.15); margin: 14px auto 0; overflow: hidden; }
.upbar i { display: block; height: 100%; background: var(--yellow); width: 0%; transition: width .3s ease; }
.coin {
  width: 74px; height: 74px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font-family: var(--mono); font-size: 21px; font-weight: 500;
  margin: 0 auto; animation: coinPop .55s cubic-bezier(.2,1.4,.4,1) both;
  box-shadow: 0 0 0 6px rgba(242,196,56,.22), 0 0 44px rgba(242,196,56,.4);
}
@keyframes coinPop { from { transform: scale(.2) rotate(-30deg); opacity: 0; } }
.upwrap .earned { font-family: var(--mono); font-size: 34px; color: var(--yellow); margin-top: 14px; }
.upwrap .sub { color: var(--mut-2); font-size: 13px; margin-top: 6px; }

/* ---------- earnings view ---------- */
.earn { padding: 0 16px; }
.earn-hero {
  margin: 18px 0 14px; background: var(--ink); color: var(--paper); border-radius: 14px;
  padding: 22px 20px; position: relative; overflow: hidden;
}
.earn-hero::after {
  content: ''; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(242,196,56,.9) 26px 27px);
}
.earn-hero .microlabel { color: var(--mut-2); }
.earn-hero .total { font-family: var(--mono); font-size: 44px; color: var(--yellow); line-height: 1.1; font-variant-numeric: tabular-nums; }
.earn-hero .split { display: flex; gap: 22px; margin-top: 12px; }
.earn-hero .split .amt { font-family: var(--mono); font-size: 16px; }
.earn-hero .split .g { color: #9CC5A9; }
.earn-hero .split .p { color: var(--mut-2); }
.earn-hero .split .r { color: #D89A9A; }

.ibancard {
  background: var(--paper-2); border: 1px dashed var(--hair-2); border-radius: 10px;
  padding: 13px 14px; margin-bottom: 14px;
}
.ibanrow { display: flex; gap: 8px; margin-top: 9px; }
.ibanrow input {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  border: 1px solid var(--hair-2); border-radius: 8px; padding: 12px; background: var(--paper);
}
.ibanrow input:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }

.worklist { display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px; }
.workitem {
  background: var(--paper-2); border: 1px solid var(--hair-2); border-radius: 8px;
  padding: 12px 14px; display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden;
}
.workitem .info { flex: 1; min-width: 0; }
.workitem .nm { font-weight: 600; font-size: 14px; }
.workitem .sub { font-size: 12px; color: var(--mut); margin-top: 1px; }
.workitem .why { font-size: 12px; color: var(--red); margin-top: 3px; }
.stamp {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; padding: 5px 9px;
  border: 1.5px solid currentColor; border-radius: 4px; transform: rotate(-4deg); flex: none;
}
.stamp.ok { color: var(--green); }
.stamp.no { color: var(--red); }
.stamp.wait { color: var(--gold); transform: rotate(0); border-style: dashed; }

/* toast */
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(90px + var(--sab)); z-index: 90;
  background: var(--ink); color: var(--paper); border-radius: 10px; padding: 13px 16px;
  font-size: 13.5px; text-align: center; animation: sheetUp .25s ease;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.toast.err { background: var(--red); }

/* ============================================================
   OWNER · DESK (ink)
   ============================================================ */

.desk { background: var(--ink); color: var(--paper); min-height: 100vh; min-height: 100dvh; padding-bottom: calc(76px + var(--sab)); }
.desk ::selection { background: var(--yellow); color: var(--ink); }

.desk-top {
  position: sticky; top: 0; z-index: 30; background: var(--ink);
  padding: calc(12px + var(--sat)) 18px 0; border-bottom: 1px solid var(--ink-3);
}
.desk-brand { display: flex; align-items: center; gap: 9px; padding-bottom: 10px; }
.desk-brand img { width: 24px; }
.desk-brand b { font-weight: 600; font-size: 16px; }
.desk-brand .microlabel { color: var(--mut-2); }
.desk-brand .owed { margin-left: auto; text-align: right; }
.desk-brand .owed .amt { font-family: var(--mono); color: var(--yellow); font-size: 17px; }

.desk-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.desk-tabs::-webkit-scrollbar { display: none; }
.desk-tabs button {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mut-2); padding: 11px 13px 12px; white-space: nowrap; position: relative;
}
.desk-tabs button .n {
  background: var(--yellow); color: var(--ink); border-radius: 8px; font-size: 10px;
  padding: 1px 6px; margin-left: 5px;
}
.desk-tabs button.on { color: var(--paper); }
.desk-tabs button.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--yellow); }

.desk-body { padding: 16px 16px 30px; max-width: 1080px; margin: 0 auto; }
.desk-h { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mut-2); margin: 22px 0 10px; }
.desk-h:first-child { margin-top: 4px; }

/* review cards */
.rev-filter { display: flex; gap: 8px; margin-bottom: 14px; }
.rev-card {
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 12px;
  padding: 14px; margin-bottom: 14px; animation: tagIn .35s ease both;
}
.rev-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rev-head .who { font-family: var(--mono); font-size: 12px; color: var(--yellow); }
.rev-head .prod { font-weight: 600; font-size: 15.5px; }
.rev-head .meta { font-size: 12px; color: var(--mut-2); width: 100%; display: flex; gap: 12px; flex-wrap: wrap; }
.flagbadge {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--red); color: #fff; border-radius: 4px; padding: 3px 7px;
}
.rev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; margin: 12px 0; }
.rev-ph { position: relative; aspect-ratio: 3/4; border-radius: 7px; overflow: hidden; background: var(--ink-3); }
.rev-ph img { width: 100%; height: 100%; object-fit: cover; }
.rev-ph .f {
  position: absolute; bottom: 0; left: 0; right: 0; font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .12em; text-align: center; background: rgba(0,0,0,.6); padding: 3px 0; color: #fff;
}
.rev-ph .blur { position: absolute; top: 3px; right: 3px; font-family: var(--mono); font-size: 8px; background: rgba(0,0,0,.6); border-radius: 3px; padding: 2px 4px; color: var(--mut-2); }
.rev-acts { display: flex; gap: 8px; }
.rev-acts .btn { padding: 13px; }
.rev-note { font-size: 12.5px; color: var(--mut-2); margin-top: 8px; }
.rev-done { text-align: center; color: var(--mut-2); padding: 46px 0; }
.rev-done .mono { font-size: 38px; display: block; color: var(--green); margin-bottom: 10px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.96); display: flex; flex-direction: column; animation: fadeIn .15s ease; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + var(--sat)) 14px 8px; color: #fff; }
.lightbox .lb-top .f { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; }
.lightbox .lb-img { flex: 1; display: grid; place-items: center; overflow: hidden; touch-action: pinch-zoom; }
.lightbox .lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .lb-nav { display: flex; gap: 8px; padding: 10px 14px calc(14px + var(--sab)); }
.lightbox .lb-nav .btn { padding: 13px; }

/* reject reason sheet reuses .sheet on dark */
.sheet.dark { background: var(--ink-2); color: var(--paper); }
.sheet.dark .reasons { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sheet.dark .reasons button {
  text-align: left; padding: 14px; border: 1px solid var(--ink-3); border-radius: 9px;
  font-size: 14px; background: var(--ink);
}
.sheet.dark .reasons button:active { border-color: var(--red); }

/* stats */
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.stattile { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 10px; padding: 13px 14px; }
.stattile .microlabel { color: var(--mut-2); }
.stattile .v { font-family: var(--mono); font-size: 25px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stattile .v.y { color: var(--yellow); }
.stattile .v.g { color: #9CC5A9; }
.stattile .v.r { color: #D89A9A; }

.filterrow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filterrow select, .filterrow input {
  background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--paper);
  border-radius: 8px; padding: 9px 10px; font-size: 13px; font-family: var(--mono);
}

.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mut-2); text-align: right; padding: 8px 8px; border-bottom: 1px solid var(--ink-3);
}
.dtable th:first-child, .dtable td:first-child { text-align: left; }
.dtable td { padding: 10px 8px; border-bottom: 1px solid var(--ink-2); text-align: right; font-family: var(--mono); font-size: 12.5px; }
.dtable td:first-child { font-family: var(--sans); font-weight: 500; font-size: 13.5px; }
.dtable td .r { color: #D89A9A; } .dtable td .g { color: #9CC5A9; } .dtable td .y { color: var(--yellow); }
.tscroll { overflow-x: auto; }

/* bounty admin + team + settings shared */
.formrow { display: flex; gap: 8px; margin-bottom: 10px; }
.formrow input, .formrow textarea, .formrow select {
  flex: 1; background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--paper);
  border-radius: 9px; padding: 12px; font-size: 14px;
}
.formrow textarea { font-family: var(--mono); font-size: 12px; min-height: 120px; }
.formrow .btn { width: auto; padding: 12px 18px; flex: none; }
.hintline { font-size: 12px; color: var(--mut-2); margin: 6px 0 14px; line-height: 1.6; }
.hintline code { font-family: var(--mono); background: var(--ink-2); padding: 1px 5px; border-radius: 4px; font-size: 11px; }

.rowitem {
  display: flex; align-items: center; gap: 10px; padding: 12px 4px;
  border-bottom: 1px solid var(--ink-2);
}
.rowitem .info { flex: 1; min-width: 0; }
.rowitem .nm { font-weight: 600; font-size: 14.5px; }
.rowitem .sub { font-size: 12px; color: var(--mut-2); margin-top: 1px; font-family: var(--mono); }
.rowitem .act {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 7px; border: 1px solid var(--ink-3); color: var(--mut-2); flex: none;
}
.rowitem .act.warm { color: var(--yellow); border-color: var(--gold); }
.rowitem .act.danger { color: #D89A9A; }
.pillst { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; flex: none; }
.pillst.open { background: var(--ink-3); color: var(--paper); }
.pillst.claimed { background: var(--gold); color: var(--ink); }
.pillst.submitted { background: var(--yellow); color: var(--ink); }
.pillst.approved { background: var(--green); color: #fff; }

.keybox {
  font-family: var(--mono); font-size: 12px; background: var(--ink-2); border: 1px dashed var(--ink-3);
  padding: 12px; border-radius: 9px; word-break: break-all; margin: 8px 0;
}

@media (min-width: 760px) {
  .taglist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 860px; margin: 0 auto; }
  .hunt .hello, .hunt .chips-scroll { max-width: 860px; margin-left: auto; margin-right: auto; }
  .rev-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .rev-acts { max-width: 420px; }
}
