* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 32px 16px;
  font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #1a1a1a;
  background: #f4f4f5;
}

.page {
  max-width: 520px;
  margin: 0 auto;
}

.page__header h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.page__subtitle {
  margin: 0 0 24px;
  color: #666;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  color: #ff7a00;
}

.nav-cards {
  display: grid;
  gap: 12px;
}

.nav-card {
  display: block;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
}

.nav-card:hover {
  border-color: #ff7a00;
}

.nav-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.nav-card span {
  color: #666;
  font-size: 0.9rem;
}

.nav-card--orange strong {
  color: #ff7a00;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card__actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.btn {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.btn:hover {
  background: #f9f9f9;
}

.btn--primary {
  background: #ff7a00;
  border-color: #ff7a00;
  color: #fff;
}

.btn--primary:hover {
  background: #e56e00;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin: 0 0 20px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0f0f0;
  font-size: 0.9rem;
}

.status--loading {
  background: #fff8e6;
  color: #8a5a00;
}

.status--active {
  background: #e8f4fd;
  color: #0a5a8a;
}

.status--success {
  background: #e6f7ec;
  color: #0a6b2d;
}

.status--error {
  background: #fde8e8;
  color: #9b1c1c;
}

.qr-box {
  text-align: center;
  margin-bottom: 24px;
}

.qr-box img {
  width: min(100%, 300px);
  height: auto;
  aspect-ratio: 1;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.qr-box__hint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #666;
}

.qr-login--mobile .qr-box__hint--desktop {
  display: none;
}

.qr-mobile-login {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.qr-login--mobile .qr-mobile-login {
  display: flex;
}

.qr-login--mobile .qr-box img {
  display: none;
}

.qr-login--mobile-auto .qr-mobile-login {
  display: none !important;
}

.qr-login--mobile-auto .qr-box__hint--mobile-auto {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.45;
}

.qr-box__hint--mobile-auto {
  display: none;
}

.mobile-qr-redirect {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mobile-qr-redirect[hidden] {
  display: none !important;
}

.mobile-qr-redirect__box {
  max-width: 320px;
  text-align: center;
}

.mobile-qr-redirect__spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid #eee;
  border-top-color: #ff7a00;
  border-radius: 50%;
  animation: mobile-qr-spin 0.8s linear infinite;
}

@keyframes mobile-qr-spin {
  to {
    transform: rotate(360deg);
  }
}

.mobile-qr-redirect__title {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #111;
  line-height: 1.4;
}

.mobile-qr-redirect__hint {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.45;
}

body.mobile-qr-redirect-open {
  overflow: hidden;
}

.qr-open-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}

.qr-mobile-login__hint {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  max-width: 280px;
  line-height: 1.45;
}

.meta {
  margin: 0;
  display: grid;
  gap: 12px;
}

.meta__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px;
  align-items: start;
}

.meta__row--full {
  grid-template-columns: 1fr;
}

.meta dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.meta dd {
  margin: 0;
  word-break: break-all;
}

.meta__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.card + .card {
  margin-top: 16px;
}

.card__title {
  margin: 0 0 16px;
  font-size: 1rem;
}

.card--disabled {
  opacity: 0.55;
  pointer-events: none;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
}

.form-row--split {
  grid-template-columns: 1fr 140px;
  align-items: end;
}

.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #888;
}

.checkout-summary {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #f6f8fa;
  border: 1px solid #e8ecf0;
  border-radius: 10px;
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 0.9rem;
  color: #555;
}

.checkout-summary__row--total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #e0e4e8;
  font-size: 1rem;
  color: #222;
}

.checkout-summary__row--total strong {
  color: #ff7a00;
  font-size: 1.1rem;
}

.checkout-summary__cashback {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #2e7d32;
}

.quantity-quick {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.quantity-quick__btn {
  flex: 1;
  padding: 6px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.quantity-quick__btn:hover {
  border-color: #ff7a00;
  color: #ff7a00;
}

.quantity-quick__btn.is-active {
  border-color: #ff7a00;
  background: #fff5eb;
  color: #ff7a00;
  font-weight: 600;
}

.purchase-result {
  margin-top: 12px;
  padding: 12px;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: auto;
  max-height: 280px;
  white-space: pre-wrap;
}

.balance-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.balance-card {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.balance-card--debit {
  border-color: #86efac;
  background: #f0fdf4;
}

.balance-card--credit {
  border-color: #93c5fd;
  background: #eff6ff;
}

.balance-card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  margin-bottom: 6px;
}

.balance-card__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}

.balance-card__sub {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #666;
}

.balance-info {
  margin-bottom: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
}

.balance-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.balance-header__title {
  margin: 0;
  font-size: 0.95rem;
}

.btn--small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.balance-info .meta__row + .meta__row {
  margin-top: 8px;
}

.balance-ok {
  color: #0a7a32;
}

.balance-low {
  color: #b45309;
}

.balance-off {
  color: #999;
}

.redeem-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  background: #fff8f0;
  border: 2px solid #ff7a00;
}

.redeem-box__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.redeem-box__label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ff7a00;
}

.redeem-box__count {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #666;
}

.redeem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.redeem-list__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #ffd9b3;
  border-radius: 8px;
}

.redeem-list__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #fff0e0;
  color: #ff7a00;
  font-size: 0.75rem;
  font-weight: 700;
}

.redeem-list__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  word-break: break-all;
}

.redeem-list__copy {
  flex-shrink: 0;
}

.page--wide {
  max-width: 720px;
}

.page__header--admin {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.page__header--admin .page__subtitle {
  margin-bottom: 0;
}

.page__header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-empty {
  text-align: center;
  padding: 32px 16px;
  color: #666;
}

.admin-empty p {
  margin: 0 0 16px;
}

.session-list {
  display: grid;
  gap: 10px;
}

.session-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.session-card:hover {
  border-color: #ff7a00;
  box-shadow: 0 2px 8px rgba(255, 122, 0, 0.12);
}

.session-card__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.session-card__action {
  flex-shrink: 0;
}

.session-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 12px 8px 0;
  flex-shrink: 0;
}

.session-card__gifts {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0a5c2a;
}

.session-card__gift-total {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a5c2a;
}

.session-card--orphaned {
  background: #fff8f0;
  border-color: #f0dcc8;
}

.session-card__sub {
  font-size: 0.8rem;
  color: #888;
}

.session-card__id {
  font-size: 0.72rem;
  color: #aaa;
}

.session-card__main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.session-card__name {
  font-size: 1rem;
}

.session-card__account,
.session-card__email {
  font-size: 0.8rem;
  color: #666;
}

.session-card__meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  flex-shrink: 0;
}

.session-card__date {
  font-size: 0.75rem;
  color: #999;
}

.session-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.session-badge--active {
  background: #e6f6ec;
  color: #0a7a32;
}

.session-badge--pending {
  background: #fff4e5;
  color: #b45309;
}

.session-badge--expired {
  background: #f0f0f0;
  color: #888;
}

.session-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.session-detail-expires {
  font-size: 0.85rem;
  color: #666;
}

.action-grid {
  display: grid;
  gap: 10px;
}

.action-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s;
}

.action-card:hover {
  border-color: #ff7a00;
}

.action-card strong {
  font-size: 1rem;
}

.action-card span {
  font-size: 0.85rem;
  color: #666;
}

.action-card--primary {
  border-color: #ffc899;
  background: #fff8f0;
}

.action-card--danger:hover {
  border-color: #e53935;
}

.action-card--danger strong {
  color: #c62828;
}

.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.admin-stat {
  font-size: 0.9rem;
  color: #444;
}

.admin-stat strong {
  color: #ff7a00;
  font-size: 1.1rem;
}

.admin-stat--muted {
  color: #999;
  margin-left: auto;
}

.admin-stats--gifts {
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  border: 1px solid #ffe0c2;
}

.admin-stat--highlight strong {
  font-size: 1.35rem;
  color: #0a5c2a;
}

.session-gift-summary {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: #333;
}

.session-gift-summary a {
  color: #ff7a00;
  font-weight: 600;
}

.session-list--orphaned {
  margin-top: 12px;
}

.admin-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-filter {
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.admin-filter.is-active {
  border-color: #ff7a00;
  background: #fff5eb;
  color: #ff7a00;
  font-weight: 600;
}

.label-row {
  display: flex;
  gap: 8px;
}

.post-login-hint {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #e6f6ec;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #0a5c2a;
}

.post-login-hint a {
  color: #ff7a00;
  font-weight: 600;
}

.admin-user {
  font-size: 0.85rem;
  color: #666;
  align-self: center;
}

.admin-logout-form {
  margin: 0;
}

.admin-login-form .btn {
  width: 100%;
  margin-top: 4px;
}

.label-row input {
  flex: 1;
}

.card--danger-zone {
  border-color: #f5c6cb;
  background: #fffafa;
}

.card--danger-zone .card__title {
  color: #b71c1c;
}

.gift-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gift-history__item {
  padding: 14px 16px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
}

.gift-history__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.gift-history__head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gift-history__date {
  font-size: 0.85rem;
  color: #666;
  white-space: nowrap;
}

.meta--compact .meta__row {
  margin-bottom: 4px;
}

.admin-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.admin-nav__item {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #444;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-nav__item:hover {
  border-color: #ff7a00;
  color: #ff7a00;
}

.admin-nav__item.is-active {
  background: #fff5eb;
  border-color: #ff7a00;
  color: #ff7a00;
}

.access-list-wrap {
  padding: 0;
}

.access-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px 16px;
}

.access-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.access-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 14px;
  background: #f9fafb;
  border-bottom: 1px solid #eee;
}

.access-card__date {
  font-size: 0.82rem;
  color: #374151;
  white-space: nowrap;
}

.access-card__ip {
  font-size: 0.78rem;
  color: #111;
}

.access-card__path {
  font-size: 0.72rem;
  color: #9ca3af;
}

.access-card__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.access-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .access-card__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.access-card__block {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  border-right: 1px solid #f3f4f6;
  min-width: 0;
}

.access-card__block:nth-child(2n) {
  border-right: none;
}

@media (min-width: 768px) {
  .access-card__block {
    border-right: 1px solid #f3f4f6;
  }

  .access-card__block:nth-child(2n) {
    border-right: 1px solid #f3f4f6;
  }

  .access-card__block:nth-child(4n) {
    border-right: none;
  }
}

.access-card__block--wide {
  grid-column: 1 / -1;
  border-right: none;
}

.access-card__label {
  margin: 0 0 6px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  font-weight: 700;
}

.access-card__value {
  display: block;
  font-size: 0.88rem;
  color: #111;
  line-height: 1.3;
  word-break: break-word;
}

.access-card__line {
  display: block;
  font-size: 0.76rem;
  color: #6b7280;
  margin-top: 4px;
  line-height: 1.4;
  word-break: break-word;
}

.access-card__line--detail {
  color: #444;
}

.access-card__muted {
  display: block;
  font-size: 0.76rem;
  color: #9ca3af;
}

.access-card__geo {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.access-card__geo--ok {
  color: #111;
}

.access-card__geo--pending {
  color: #6b7280;
}

.access-card__geo--warn {
  color: #b45309;
}

.access-card__geo--error,
.access-card__geo--failed {
  color: #b91c1c;
}

.access-card__geo--skip {
  color: #9ca3af;
}

.access-card__geo-hint {
  color: #9ca3af;
  font-size: 0.72rem;
}

.access-card__interactions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.access-card__interaction-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
}

.access-card__timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  width: 100%;
}

.access-card__timeline-item {
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 4px 8px;
  background: #f3f4f6;
  border-radius: 6px;
  color: #374151;
  word-break: break-word;
}

.access-card .access-table__super-app {
  color: #0d6efd;
  font-weight: 600;
}

.access-table-wrap {
  overflow-x: auto;
}

.access-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.access-table th,
.access-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.access-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #888;
  background: #fafafa;
}

.access-table__ua {
  display: block;
  font-size: 0.72rem;
  color: #999;
  margin-top: 4px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-table__actions {
  white-space: nowrap;
}

.access-table__actions .session-badge {
  margin-right: 6px;
}

.access-table__status {
  white-space: nowrap;
}

.access-table__referer {
  display: block;
  font-size: 0.72rem;
  color: #5c6bc0;
  margin-top: 4px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.access-table__referer:hover {
  text-decoration: underline;
}

.access-table__traffic-detail {
  display: block;
  font-size: 0.72rem;
  color: #444;
  margin-top: 4px;
  max-width: 280px;
  line-height: 1.4;
  word-break: break-word;
}

.access-table__device-model {
  display: block;
  font-size: 0.88rem;
  color: #111;
}

.access-table__device-meta {
  display: block;
  font-size: 0.72rem;
  color: #555;
  margin-top: 2px;
}

.access-table__location strong {
  display: block;
  font-size: 0.84rem;
}

.access-table__super-app {
  color: #0d6efd;
  font-weight: 600;
}

.engagement-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
  white-space: nowrap;
}

.engagement--none {
  background: #f3f4f6;
  color: #6b7280;
}

.engagement--bounce {
  background: #fef3c7;
  color: #92400e;
}

.engagement--view {
  background: #e0e7ff;
  color: #4338ca;
}

.engagement--scroll,
.engagement--time {
  background: #dbeafe;
  color: #1d4ed8;
}

.engagement--click {
  background: #ede9fe;
  color: #6d28d9;
}

.engagement--super-app {
  background: #cffafe;
  color: #0e7490;
}

.engagement--auth {
  background: #d1fae5;
  color: #047857;
}

.engagement--wait {
  background: #fef9c3;
  color: #a16207;
}

.engagement--fail {
  background: #fee2e2;
  color: #b91c1c;
}

.access-table__interaction-count {
  display: block;
  font-size: 0.78rem;
  margin-top: 2px;
}

.access-table__engagement-hints {
  display: block;
  font-size: 0.72rem;
  color: #555;
  margin-top: 2px;
}

.access-table__engagement-note {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
}

.access-table__interaction-timeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  max-width: 320px;
}

.access-table__interaction-item {
  display: block;
  font-size: 0.7rem;
  line-height: 1.35;
  padding-left: 8px;
  border-left: 2px solid #e5e7eb;
}

.traffic-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef0ff;
  color: #5c6bc0;
  white-space: nowrap;
}

.traffic-badge--direct {
  background: #f3f4f6;
  color: #6b7280;
}

.traffic-sources__label .traffic-badge,
.access-table__status .traffic-badge {
  vertical-align: middle;
}

.traffic-sources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.traffic-sources__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f8f9fc;
  border: 1px solid #e8eaef;
  border-radius: 8px;
}

.traffic-sources__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.traffic-sources__count {
  font-size: 0.85rem;
  font-weight: 700;
  color: #5c6bc0;
  background: #eef0ff;
  padding: 2px 10px;
  border-radius: 999px;
}

.presence-badge {
  min-width: 58px;
  text-align: center;
}

.banned-list {
  display: grid;
  gap: 8px;
}

.banned-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #f0d0d0;
  border-radius: 8px;
  background: #fff8f8;
}

.banned-item__main {
  display: grid;
  gap: 2px;
}

.banned-item__date,
.banned-item__by {
  font-size: 0.8rem;
  color: #888;
}

.btn--danger {
  background: #ffebee;
  border-color: #ef9a9a;
  color: #c62828;
}

.admin-users-form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.admin-poll-hint {
  color: #888;
  font-size: 0.85em;
}
