:root {
  --bg: #e7f2ef;
  --bg-deep: #d7ebe6;
  --panel: #ffffff;
  --text: #0f2d28;
  --muted: #4f6a65;
  --accent: #096e5e;
  --accent-strong: #075347;
  --accent-soft: #d6ebe7;
  --border: #c5ddd7;
  --line: #dcebe7;
  --shadow: 0 16px 38px rgba(7, 83, 71, 0.14);
  --radius: 22px;
  font-family: "Manrope", "Noto Sans SC", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 10%, #f5fbf9 0%, transparent 34%),
    radial-gradient(circle at 86% 0%, #d6ebe7 0%, transparent 36%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-deep) 45%, #d1e5e0 100%);
  color: var(--text);
  min-height: 100vh;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 20px 72px;
  display: grid;
  gap: 20px;
}

.page > * {
  animation: rise-in 0.45s ease both;
}

.hero {
  text-align: left;
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.2px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 760px;
}

.ios-promo {
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4fbf9 0%, #e7f5f1 100%);
  border: 1px solid #cde4dd;
  box-shadow: 0 10px 18px rgba(9, 110, 94, 0.08);
}

.ios-app-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #b8d8d0;
  box-shadow: 0 8px 16px rgba(9, 110, 94, 0.16);
}

.ios-title {
  font-size: 15px;
  font-weight: 800;
  color: #12473e;
}

.ios-sub {
  margin-top: 2px;
  font-size: 13px;
  color: #53716a;
}

.ios-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: transform 0.16s ease;
}

.ios-store-link:hover {
  transform: translateY(-1px);
}

.ios-store-link:focus-visible {
  outline: 3px solid rgba(9, 110, 94, 0.3);
  outline-offset: 3px;
}

.ios-store-badge {
  width: 100px;
  height: auto;
  display: block;
}

.page-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, #0a7b69 0%, #096e5e 100%);
  box-shadow: 0 10px 16px rgba(9, 110, 94, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.page-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(9, 110, 94, 0.24);
}

.page-link:focus {
  color: #ffffff;
  box-shadow: 0 12px 18px rgba(9, 110, 94, 0.24);
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(9, 110, 94, 0.14);
  backdrop-filter: blur(6px);
}

.dropzone {
  position: relative;
  border: 2px dashed rgba(9, 110, 94, 0.42);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  background: linear-gradient(135deg, #edf8f5, var(--accent-soft));
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.dropzone.dragover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 18px 28px rgba(9, 110, 94, 0.22);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dz-title {
  font-weight: 700;
  font-size: 19px;
  color: var(--accent-strong);
}

.dz-sub {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
}

.status {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.pill {
  background: #f2f9f7;
  border: 1px solid #cee2dc;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #355852;
}

.term-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.term-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.term-filter input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.term-chip {
  border: 1px solid #cfe1dc;
  background: #f5faf8;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease, transform 0.12s ease;
}

.term-filter input:checked + .term-chip {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 9px 16px rgba(9, 110, 94, 0.26);
}

.term-chip:hover {
  transform: translateY(-1px);
  border-color: #a8cfc6;
}

.term-filter input:focus-visible + .term-chip {
  outline: 3px solid rgba(9, 110, 94, 0.3);
  outline-offset: 2px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}

th,
td {
  text-align: left;
  padding: 12px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

th {
  background: linear-gradient(180deg, #f4faf8 0%, #edf7f4 100%);
  color: #24524a;
  font-weight: 800;
  letter-spacing: 0.1px;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:nth-child(odd) {
  background: #fbfefd;
}

tbody tr:hover td {
  background: #f3faf8;
}

.name-cell {
  min-width: 148px;
  font-weight: 800;
  vertical-align: top;
  color: #0f4a40;
  background: linear-gradient(180deg, #f2f9f7 0%, #edf7f4 100%);
}

.name-text {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.name-id-card {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #2a7266;
  letter-spacing: 0.1px;
}

.name-id-card-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.id-toggle-btn {
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.id-toggle-btn:hover {
  background: rgba(15, 74, 64, 0.08);
}

.id-toggle-btn:focus-visible {
  outline: 2px solid #2a7266;
  outline-offset: 1px;
}

.id-toggle-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.name-meta-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 700;
}

.name-meta-pill.official {
  color: #136f43;
  background: #e8f8ef;
  border: 1px solid #bdeccf;
}

.name-meta-pill.unofficial {
  color: #a7212f;
  background: #fdecee;
  border: 1px solid #f8c3ca;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page {
    padding: 30px 14px 48px;
    gap: 14px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .ios-promo {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .ios-store-badge {
    width: 142px;
  }

  .panel {
    padding: 14px;
  }

  .dropzone {
    padding: 20px 14px;
  }

  .term-filters {
    gap: 8px;
  }

  .term-chip {
    padding: 8px 11px;
    font-size: 12px;
  }
}


/* Extension Bootstrap */
:root {
  --bs-primary: #096e5e;
  --bs-primary-rgb: 9,110,94;
}

.btn-primary {
  --bs-btn-bg: #096e5e;
  --bs-btn-border-color: #096e5e;
  --bs-btn-hover-bg: #07584c;
  --bs-btn-hover-border-color: #07584c;
}

.modal-body {
  --bs-modal-padding: 0
}
