:root {
  --bg: #0b0c0f;
  --panel: #14161c;
  --line: #2a2e38;
  --text: #e8e0d4;
  --muted: #9a9488;
  --teal: #2dd4bf;
  --oxblood: #8c3a2a;
  --ok: #3dd68c;
  --warn: #e8b84a;
  --max: 960px;
  --font: Inter, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.45; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 1.25rem 1.25rem 3rem; }
.banner { background: #1a1510; border-bottom: 1px solid var(--oxblood); color: #f0d9c8; font-size: .85rem; padding: .65rem 1.25rem; text-align: center; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .85rem 0; margin-bottom: 1.5rem; }
.brand img { height: 36px; width: auto; display: block; }
.nav { display: flex; gap: 1rem; font-size: .9rem; flex-wrap: wrap; }
.nav a { color: var(--muted); }
.nav a[aria-current="page"] { color: var(--text); }
.kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 0 0 .35rem; }
h1 { font-size: 1.75rem; font-weight: 500; margin: 0 0 .75rem; }
h2 { font-size: 1.1rem; font-weight: 560; margin: 0 0 .75rem; }
.lede { color: var(--muted); margin: 0 0 1.5rem; max-width: 42rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; }
.panel + .panel { margin-top: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.field input, .field select {
  width: 100%; padding: .7rem .8rem; border-radius: 8px;
  border: 1px solid var(--line); background: #0e1015; color: var(--text);
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 0; border-radius: 999px; padding: .7rem 1.15rem; font: inherit; cursor: pointer; }
.btn-primary { background: var(--teal); color: #04201c; font-weight: 600; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.lot-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lot-table th, .lot-table td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.lot-table th { color: var(--muted); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.badge { display: inline-block; font-family: var(--mono); font-size: .68rem; padding: .2rem .45rem; border-radius: 999px; border: 1px solid var(--line); }
.badge-dark { color: var(--warn); border-color: #5a4620; background: #221c10; }
.badge-locked { color: var(--muted); }
.badge-ok { color: var(--ok); border-color: #1f4d38; background: #0f2018; }
.mono { font-family: var(--mono); font-size: .85rem; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1.15fr .85fr; } }
.asset-card { border: 1px dashed var(--line); border-radius: 10px; padding: 1rem; text-align: center; background: #101218; }
.asset-card img { max-width: 160px; height: auto; }
.asset-card .cap { font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.copy-block { white-space: pre-wrap; font-family: var(--mono); font-size: .78rem; background: #0e1015; border: 1px solid var(--line); border-radius: 8px; padding: .9rem; color: #d2ccc0; max-height: 16rem; overflow: auto; }
.foot { margin-top: 2.5rem; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: 1rem 0; }
.stat { background: #101218; border: 1px solid var(--line); border-radius: 8px; padding: .65rem; }
.stat span { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; }
.stat strong { font-size: 1rem; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.steps { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.totp-box { font-family: var(--mono); font-size: 1.1rem; letter-spacing: .2em; text-align: center; padding: 1rem; border: 1px dashed var(--teal); border-radius: 8px; margin: .75rem 0; }

.upload-zone {
  border: 1px dashed var(--line); border-radius: 10px; padding: 1rem;
  background: #101218; margin: .75rem 0;
}
.upload-zone.is-ready { border-color: var(--teal); }
.well-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 640px) { .well-grid { grid-template-columns: 1fr; } }
.preview-frame {
  position: relative; background: #0e1015; border: 1px solid var(--line);
  border-radius: 8px; min-height: 200px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.preview-frame img.base { max-width: 100%; max-height: 280px; display: block; }
.qr-hole {
  position: absolute; width: 18%; aspect-ratio: 1; border: 2px dashed var(--teal);
  background: rgba(45,212,191,.12); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .65rem; color: var(--teal); text-align: center; padding: .25rem;
  right: 8%; top: 50%; transform: translateY(-50%);
}
