/* Field (public) mobile-first experience */
.field-body { background: linear-gradient(180deg, var(--brand) 0, var(--brand) 170px, var(--bg) 170px); min-height: 100vh; }
.f-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 14px; color: #fff; max-width: 720px; margin: 0 auto;
}
.f-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.f-brand strong { display: block; font-size: 15px; font-weight: 700; }
.f-brand small { display: block; font-size: 12px; opacity: .8; }
.net { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.14); }
.net svg.lucide { width: 14px; height: 14px; }
.net.off { background: #fef3c7; color: #92400e; }

.f-main { max-width: 720px; margin: 0 auto; padding: 4px 16px 140px; }
.card { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; margin-bottom: 14px; border: 1px solid rgba(15,23,42,.04); }
.card.center { text-align: center; padding: 32px 22px; }
.card h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.card-head h3 { font-size: 15px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.center-text { text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; }
.center-text svg.lucide { width: 14px; height: 14px; }
.foot { text-align: center; margin-top: 18px; }

.kit-hero { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px 18px 16px; margin-bottom: 16px; }
.kit-hero .row1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.kit-hero .code { font: 700 12px/1 var(--font); letter-spacing: .06em; color: var(--brand); background: var(--brand-50); padding: 5px 8px; border-radius: 6px; display: inline-block; margin-bottom: 8px; }
.kit-hero h1 { font-size: 19px; font-weight: 700; }
.kit-hero .loc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--gray-600); font-size: 13px; }
.kit-hero .loc span { display: inline-flex; align-items: center; gap: 5px; }
.kit-hero .loc svg.lucide { width: 14px; height: 14px; color: var(--gray-400); }
.kit-hero .place { margin-top: 10px; padding: 10px 12px; background: var(--gray-50); border-radius: 10px; font-size: 13px; color: var(--gray-700); display: flex; gap: 8px; }
.kit-hero .place svg.lucide { width: 16px; height: 16px; color: var(--brand); margin-top: 1px; }

.big-ico { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.big-ico svg.lucide { width: 30px; height: 30px; }
.big-ico.danger { background: var(--red-50); color: var(--red); }
.big-ico.muted-ico { background: var(--gray-100); color: var(--gray-500); }

.unlock { text-align: center; padding: 28px 22px; }
.unlock form { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.pw-wrap { position: relative; }
.pw { height: 56px; font-size: 22px; text-align: center; letter-spacing: .3em; border-radius: 14px; padding: 0 52px; }
.pw::placeholder { letter-spacing: normal; font-size: 16px; }
.pw-wrap .btn { position: absolute; right: 8px; top: 9px; }
.form-error { color: var(--red); background: var(--red-50); border-radius: 10px; padding: 10px 12px; font-weight: 500; font-size: 13px; text-align: left; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Steps */
.steps { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12.5px; font-weight: 600; color: var(--gray-500); }
.step { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.step b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-200); color: var(--gray-600); font-size: 11.5px; }
.step b svg.lucide { width: 13px; height: 13px; }
.step.on { color: var(--gray-900); }
.step.on b { background: var(--brand); color: #fff; }
.step.done b { background: var(--green); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--gray-200); border-radius: 2px; }
.step-line.on { background: var(--brand); }

.tools { display: flex; gap: 8px; margin-bottom: 10px; }
.grow { flex: 1; }
.tools .input { height: 46px; border-radius: 12px; font-size: 15px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font: 600 13px var(--font); color: var(--gray-700); cursor: pointer;
}
.chip.on { background: var(--gray-900); border-color: var(--gray-900); color: #fff; }

/* Item tiles */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left;
  background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 14px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .08s; font: inherit; color: inherit; min-height: 150px;
  user-select: none;
}
.tile:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.tile:active { transform: scale(.98); }
.tile:focus-visible { outline: none; box-shadow: var(--focus); }
.tile .item-ico { width: 52px; height: 52px; border-radius: 15px; }
.tile .item-ico svg.lucide { width: 26px; height: 26px; }
.tile .nm { font-weight: 600; font-size: 13.5px; line-height: 1.3; color: var(--gray-900); }
.tile .av { font-size: 12px; color: var(--muted); margin-top: auto; display: flex; align-items: center; gap: 5px; }
.tile .av.warn { color: var(--amber); font-weight: 600; }
.tile .av.none { color: var(--red); font-weight: 600; }
.tile.sel { border-color: var(--tone, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone, var(--brand)) 18%, transparent); background: var(--tone-bg); }
.tile .qty-badge {
  position: absolute; top: 10px; right: 10px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  background: var(--tone, var(--brand)); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px;
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }
.stepper { display: none; align-items: center; justify-content: space-between; width: 100%; background: #fff; border-radius: 12px; border: 1px solid var(--border); margin-top: 2px; }
.tile.sel .stepper { display: flex; }
.tile.sel .av { display: none; }
.stepper button { width: 42px; height: 38px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--gray-700); border-radius: 12px; }
.stepper button:active { background: var(--gray-100); }
.stepper span { font-weight: 700; font-size: 15px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 30px 10px; color: var(--muted); }

/* Summary */
.summary { list-style: none; margin: 0; padding: 0; }
.summary li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--gray-100); }
.summary li:first-child { border-top: 0; }
.summary .nm { flex: 1; font-weight: 500; }
.summary .q { font-weight: 700; font-size: 15px; background: var(--gray-100); border-radius: 8px; padding: 3px 10px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-stack .input { height: 46px; font-size: 15px; border-radius: 12px; }
.form-stack textarea.input { height: auto; }
.req { color: var(--red); }
.opt { font-weight: 500; color: var(--gray-400); font-size: 12px; }
.hint svg.inline { width: 12px; height: 12px; vertical-align: -2px; }

/* Action bar */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--border); padding: 12px 16px max(12px, env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(15,23,42,.06); }
.actionbar-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ab-count { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gray-700); }
.pill { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.actionbar .btn-lg { min-width: 160px; }

/* Success */
.success h2 { font-size: 22px; }
.check-anim { width: 84px; height: 84px; border-radius: 50%; margin: 4px auto 18px; display: grid; place-items: center; background: var(--green); color: #fff; animation: pop .35s cubic-bezier(.2,1.4,.5,1); box-shadow: 0 0 0 10px var(--green-50); }
.check-anim svg.lucide { width: 42px; height: 42px; stroke-width: 3; }
.check-anim.queued { background: var(--amber); box-shadow: 0 0 0 10px var(--amber-50); }
.ref { margin: 16px auto 0; display: inline-block; font: 700 15px/1 ui-monospace, Consolas, monospace; background: var(--gray-100); padding: 10px 14px; border-radius: 10px; letter-spacing: .04em; }
.notice { margin-top: 14px; text-align: left; background: var(--amber-50); color: #92400e; border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.done-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

.recent { margin-top: 18px; background: #fff; border-radius: 14px; border: 1px solid var(--border); padding: 4px 14px; }
.recent summary { cursor: pointer; padding: 10px 0; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--gray-700); list-style: none; }
.recent summary::-webkit-details-marker { display: none; }
.recent ul { list-style: none; margin: 0; padding: 0 0 10px; }
.recent li { padding: 8px 0; border-top: 1px solid var(--gray-100); font-size: 13px; }
.recent li small { display: block; color: var(--muted); }

.queue-banner { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 60; background: #fffbeb; color: #92400e; border: 1px solid #fde68a; border-radius: 12px; padding: 8px 10px 8px 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); font-weight: 600; font-size: 13px; max-width: 94vw; }

/* Landing */
.land-hero { color: #fff; text-align: center; padding: 18px 8px 26px; }
.land-hero h1 { font-size: 26px; font-weight: 800; }
.land-hero p { opacity: .85; margin-top: 6px; }
.code-input { height: 56px !important; font-size: 18px !important; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.how div { text-align: center; font-size: 12.5px; color: var(--gray-600); }
.how .item-ico { margin: 0 auto 8px; width: 44px; height: 44px; }
.video-wrap { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 1; margin-top: 14px; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }
.video-wrap .frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.field-body .toasts { bottom: 104px; }
