/* Canonical Lutiki palette: keep product surfaces within these brand colors. */
:root {
  --blue: #046CF5;
  --white: #F2F3F2;
  --black: #0E0E0D;
  --pink: #F4CBD8;
  --yellow: #F5E6A0;
  --blue-soft: rgba(4, 108, 245, .14);
  --white-soft: rgba(242, 243, 242, .22);
  --black-soft: rgba(14, 14, 13, .22);
  font-family: Arial, sans-serif;
  color: var(--white);
  background: var(--blue);
  font-size: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: var(--blue); color: var(--white); }
button, a { font: inherit; }
button { cursor: pointer; border: 0; }

#screen { max-width: 620px; margin: 0 auto; padding: 76px 16px 94px; }
.eyebrow { font-size: 11px; letter-spacing: 1.5px; font-weight: 700; color: var(--white); }
.hero h1 { font-size: clamp(30px, 9vw, 54px); line-height: .95; margin: 10px 0; }
.lead { font-size: 16px; line-height: 1.45; margin: 0 0 18px; }
.panel { background: var(--blue); border: 2px solid var(--white); padding: 15px; border-radius: 14px; margin: 12px 0; }
.panel h2 { font-size: 18px; margin: 0 0 9px; }
.primary, .secondary { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; background: var(--white); color: var(--blue); font-weight: 700; text-transform: uppercase; }
.secondary { margin-top: 9px; }
.notice { padding: 11px; background: var(--white-soft); border-left: 5px solid var(--white); line-height: 1.35; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.cell { aspect-ratio: 1; border: 0; border-radius: 0; background: var(--black); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--white); position: relative; }
.cell strong { font-size: 18px; }
.cell small { font-size: 9px; text-transform: uppercase; }
.cell.closed, .cell.pending, .cell.issued { background: var(--black); color: var(--white); }
.cell.pending .pairing { color: var(--white); }
.cell:disabled { cursor: not-allowed; opacity: 1; }
.pairing { font-size: 13px; color: rgba(242, 243, 242, .78); margin-top: 6px; }

.request { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--white-soft); }
.request:last-child { border-bottom: 0; }
.request button { padding: 8px 10px; border-radius: 7px; background: var(--white); color: var(--blue); font-size: 12px; }
.metric { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metric div { border: 2px solid var(--white); background: var(--white); color: var(--black); border-radius: 10px; padding: 12px; }
.metric b { display: block; font-size: 24px; color: var(--blue); }
.metric span { font-size: 11px; text-transform: uppercase; }

.tabs { position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: 6px; padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); background: var(--blue); z-index: 3; }
.tabs button { flex: 1; min-height: 44px; border-radius: 8px; background: var(--white); color: var(--black); font-size: 10px; font-weight: 700; }
.tabs button.active { background: var(--white); color: var(--blue); }

.cell { user-select: none; touch-action: pan-y; }
.empty { color: rgba(242, 243, 242, .78); font-size: 14px; }
.danger { color: var(--white); font-size: 13px; }
.back[hidden] { visibility: hidden; }
.loading { padding: 50px 0; text-align: center; }
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-list li { padding: 10px 0; border-bottom: 1px solid var(--white-soft); }

@media (min-width: 600px) {
  #screen { padding-left: 24px; padding-right: 24px; padding-top: 90px; }
  .grid { grid-template-columns: repeat(6, 1fr); }
}

#gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px; text-align: center; }
#gate > div { max-width: 420px; border: 3px solid var(--white); background: var(--blue); color: var(--white); padding: 24px; border-radius: 16px; }
#gate a { display: inline-block; margin-top: 10px; padding: 13px 18px; background: var(--white); color: var(--blue); text-decoration: none; border-radius: 8px; font-weight: 700; }
