/* Реквизиты поверх карты: белый текст на оформлении карты (фон — у родителя). */
* { box-sizing: border-box; }
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; background: transparent; color: #fff;
  font: 15px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
main { height: 100%; display: grid; align-content: end; gap: 8px; padding: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { font: inherit; color: inherit; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px;
  align-items: center; padding: 8px 10px; border: 0; border-radius: 10px; background: rgb(255 255 255 / 0.14); cursor: pointer; }
.field small { grid-column: 1; opacity: .75; font-size: .72rem; }
.field b { grid-column: 1; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; font-size: 1.02rem; }
#pan { font-size: 1.15rem; letter-spacing: .08em; }
.copy { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; opacity: .85;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8.5' y='8.5' width='11' height='11' rx='2'/%3E%3Cpath d='M15.5 8.5V6.5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2'/%3E%3C/svg%3E"); }
.field:active { background: rgb(255 255 255 / 0.24); }
.meta { display: flex; justify-content: space-between; margin: 0; font-size: .75rem; opacity: .8; }
/* Пустой статус не должен лежать поверх полей и забирать нажатия. */
.state:empty { display: none; }
.state { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 16px; text-align: center; }
.field.done { background: rgb(255 255 255 / 0.3); }
/* «Скопировано» — плашкой на месте названия карты (родитель рисует его под фреймом): на 1,6 с
   заменяет его и не перекрывает реквизиты. */
.toast { position: absolute; left: 12px; top: 12px; transform: translateY(-6px); margin: 0; padding: 7px 14px 7px 12px;
  display: flex; align-items: center; gap: 6px; border-radius: 999px; background: rgb(17 24 39 / 0.96); color: #fff;
  font-size: .85rem; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; }
.toast::before { content: ""; width: 14px; height: 14px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.toast.on { opacity: 1; transform: none; }
.toast.warn::before { display: none; }
