:root {
  --bg: #f5f9ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #0f1c33;
  --text-muted: #5d6b87;
  --border: #d8e3f6;
  --primary: #0a66ff;
  --primary-dark: #004ed6;
  --good: #0f9f62;
  --warn: #e76f00;
  --bad: #d92d20;
  --shadow: 0 14px 40px rgba(15, 28, 51, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 100% 0%, #d9ebff 0%, var(--bg) 30%), var(--bg);
  padding: 20px;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.5;
}

.orb-1 {
  width: 360px;
  height: 360px;
  background: #8ec5ff;
  top: -120px;
  right: -80px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: #b7ffe3;
  bottom: -120px;
  left: -70px;
}

.topbar,
.layout,
.footer,
.promo-banner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(216, 227, 246, 0.8);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand h1 {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.brand-overline {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-title-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.1;
}

.brand-main-line {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #1a366a;
  text-transform: uppercase;
}

h1.brand-main-line {
  font-size: 0.9rem;
}

.brand-version {
  font-size: 70%;
  font-weight: 500;
}

.brand-main-subtle {
  color: var(--text-muted);
  font-weight: 500;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: underline;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(145deg, #5ca7ff, #0a66ff);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(10, 102, 255, 0.35);
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.topbar-tagline {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  padding: 2px 0;
  line-height: 1.1;
}

.topbar-tagline-link {
  text-decoration: none;
}

.topbar-tagline-link:hover .topbar-tagline-line2 {
  text-decoration: underline;
}

.topbar-tagline-line1 {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.topbar-tagline-line2 {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #1a366a;
}



.layout {
  margin-top: 22px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout > * {
  min-width: 0;
}

.full-width {
  grid-column: 1 / -1;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  animation: rise 420ms ease both;
}

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

h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.muted {
  color: var(--text-muted);
  margin: 0 0 12px;
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  width: 100%;
  min-height: 160px;
  border: 1.5px dashed #9db7df;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f0f6ff 100%);
  cursor: pointer;
  transition: 180ms ease;
  text-align: center;
  padding: 16px;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: #2f86ff;
  background: linear-gradient(180deg, #eef6ff 0%, #e7f1ff 100%);
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-title {
  font-weight: 700;
}

.dropzone-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.file-meta {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.occupied-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #dbe7fb;
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(10, 102, 255, 0.06), transparent 36%),
    linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
}

.occupied-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.occupied-card h3 {
  margin: 0;
  font-size: 1rem;
}

.occupied-card p {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.occupied-card code {
  padding: 0.08em 0.38em;
  border-radius: 999px;
  background: rgba(10, 102, 255, 0.08);
  color: #1a366a;
  font-size: 0.92em;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.tag-badge-neutral {
  background: #eef4ff;
  border-color: #d7e4fb;
  color: #1a366a;
}

.tag-badge-good {
  background: #ebfff5;
  border-color: #b8f0d4;
  color: #0f6844;
}

.tag-badge-warn {
  background: #fff7ed;
  border-color: #ffd9ad;
  color: #9a4f00;
}

.occupied-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.occupied-option {
  position: relative;
  display: block;
}

.occupied-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.occupied-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #cfdcf4;
  background: #fff;
  color: #1a366a;
  font-weight: 700;
  transition: 160ms ease;
  cursor: pointer;
}

.occupied-option input:checked + span {
  border-color: rgba(10, 102, 255, 0.5);
  background: linear-gradient(180deg, rgba(10, 102, 255, 0.12), rgba(10, 102, 255, 0.05));
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(10, 102, 255, 0.12);
}

.occupied-option span:hover {
  transform: translateY(-1px);
}

.occupied-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.occupied-help {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.status {
  margin-top: 12px;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.92rem;
  border: 1px solid transparent;
  position: relative;
}

.status.has-hint {
  cursor: help;
}

.status-hint {
  position: static;
  display: block;
  width: 100%;
  white-space: pre-line;
  background: #0f1c33;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: 0 10px 22px rgba(15, 28, 51, 0.2);
  margin-top: 10px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transition: opacity 160ms ease, max-height 180ms ease, padding 160ms ease;
}

.status.has-hint::before {
  content: none;
}

.status.has-hint:hover .status-hint,
.status.has-hint:focus-visible .status-hint,
.status.has-hint.is-open .status-hint {
  opacity: 1;
  max-height: 420px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.status-idle {
  background: #f6f9ff;
  border-color: #dce7f8;
}

.status-good {
  background: #ebfff5;
  border-color: #b9f0d5;
  color: #0f6844;
}

.status-warn {
  background: #fff7ed;
  border-color: #ffd7ab;
  color: #9a4f00;
}

.status-bad {
  background: #fff0ef;
  border-color: #ffc7c3;
  color: #8f1f17;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-soft);
}

.metric-label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.metric-value {
  margin: 6px 0 0;
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metric-value-alert {
  color: #b54708;
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.report {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fbfdff;
  line-height: 1.6;
}

.report h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.report p {
  margin: 0 0 10px;
}

.report-general {
  line-height: 1.5;
}

.report ul {
  margin: 0;
  padding-left: 20px;
}

.sketch-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fbfdff;
}

.parcel-sketch {
  width: min(100%, 760px);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  background: linear-gradient(180deg, #f9fcff, #f2f8ff);
}

.sketch-meta {
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.coords-catalog {
  margin-top: 10px;
}

.coords-catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.coords-catalog-head .sketch-meta {
  margin: 0;
}

.neighbors-block {
  margin-top: 10px;
}

.neighbors-list {
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.coords-table {
  min-width: 420px;
}

.details-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e6eefb;
  font-size: 0.92rem;
}

.cell-alert {
  color: #b54708;
  font-weight: 700;
}

th {
  background: #f4f8ff;
  font-weight: 700;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  transition: 160ms ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 20px rgba(10, 102, 255, 0.32);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: #caddfb;
  background: #fff;
  color: #1a366a;
}

.footer {
  margin-top: 22px;
  padding: 18px 6px 16px;
  font-size: 0.86rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.donate-link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: inherit;
  gap: 10px;
}

.donate-link:hover .donate-text {
  text-decoration: underline;
}

.donate-text {
  font-weight: 400;
  font-size: 0.9rem;
  color: #1a366a;
}

.donate-qr {
  width: 116px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 160ms ease;
}

.donate-link:hover .donate-qr {
  transform: scale(1.02);
}

.footer-title {
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.footer-credit {
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.footer-contacts {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-style: normal;
}

.footer-contacts h3 {
  margin: 0 0 4px;
  font-size: inherit;
  font-weight: 700;
}

.footer-contacts p {
  margin: 0;
  color: var(--text);
  font-weight: 400;
  line-height: 1.35;
}

.footer-contacts a {
  color: #1a366a;
  text-decoration: none;
  border-bottom: 1px dashed #9fb8e5;
}

.footer-contacts a:hover {
  border-bottom-color: #1a366a;
}

.footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  line-height: 1.35;
}

.footer-contact-links a {
  font-weight: 400;
}

.empty-state {
  color: var(--text-muted);
}

/* ── Promo slots ── */

.promo-slot {
  overflow: hidden;
}

.promo-banner {
  margin-top: 16px;
  border-radius: 16px;
}

.promo-inline {
  border-radius: var(--radius);
}

/* ── Promo banner: GeoExpert Group ── */

.promo-banner-link {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 108px;
  padding: 18px 22px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(135deg, #0b2e5e 0%, #0d467f 38%, #115ba6 72%, #1c73ce 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 28px rgba(11, 46, 94, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.promo-banner-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(255, 255, 255, 0.06) 58%,
    transparent 62%
  );
  background-size: 250% 100%;
  animation: banner-shimmer 4s ease-in-out infinite;
}

.promo-banner-link > * {
  position: relative;
  z-index: 1;
}

.promo-banner-icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  flex: 0 0 72px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

@keyframes banner-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.promo-banner-link:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 36px rgba(11, 46, 94, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.promo-banner-link:active {
  transform: translateY(0);
}

.promo-banner-mark {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg, #5ca7ff, #2b7de9);
  box-shadow: 0 4px 16px rgba(44, 125, 233, 0.4);
}

.promo-banner-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}

.promo-banner-company {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.promo-banner-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.promo-banner-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
  line-height: 1.35;
  max-width: 58ch;
}

.promo-banner-cta {
  display: inline-flex;
  align-items: center;
  align-self: center;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  transition: background 160ms ease, border-color 160ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.promo-banner-link:hover .promo-banner-cta {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
}

.promo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 90px;
  border: 1.5px dashed #b8cbe8;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f5ff 0%, #e8f0fe 50%, #f5f0ff 100%);
  padding: 16px 20px;
  transition: border-color 200ms ease, background 200ms ease;
}

.promo-placeholder:hover {
  border-color: #8eaadb;
  background: linear-gradient(135deg, #e8f0fe 0%, #dfe9fc 50%, #ede8ff 100%);
}

.promo-icon {
  font-size: 1.6rem;
  line-height: 1;
  filter: grayscale(0.3);
}

.promo-placeholder-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  align-items: center;
}

.promo-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7fa3;
}

.promo-size {
  font-size: 0.76rem;
  color: #94a3bf;
  letter-spacing: 0.02em;
}

@media (max-width: 920px) {
  body {
    padding: 12px;
  }

  .promo-banner {
    margin-top: 10px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
  }

  .brand {
    width: 100%;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .btn {
    flex: 1;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 16px;
  }

  .occupied-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .occupied-choice {
    grid-template-columns: 1fr;
  }

  .dropzone {
    min-height: 140px;
  }

  table {
    min-width: 620px;
  }
}

@media (max-width: 680px) {
  .topbar {
    gap: 10px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-title-stack {
    gap: 2px;
    min-width: 0;
  }

  .brand-main-line {
    line-height: 1.05;
    word-break: break-word;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .topbar-tagline {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .promo-banner-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 16px;
    min-height: auto;
  }

  .promo-banner-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-basis: 44px;
  }

  .promo-banner-title {
    font-size: 0.96rem;
  }

  .promo-banner-sub {
    font-size: 0.74rem;
    max-width: none;
  }

  .promo-banner-cta {
    font-size: 0.78rem;
    padding: 6px 12px;
    align-self: flex-start;
  }

  body {
    padding: 10px;
  }

  .topbar {
    border-radius: 14px;
  }

  .brand h1 {
    font-size: 1.2rem;
  }

  .brand-overline {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .brand-main-line {
    font-size: 0.84rem;
  }

  .topbar-tagline {
    text-align: left;
    align-items: flex-start;
  }

  .topbar-tagline-line1 {
    font-size: 0.72rem;
  }

  .topbar-tagline-line2 {
    font-size: 0.84rem;
    margin-top: 3px;
  }

  .layout {
    margin-top: 14px;
    gap: 12px;
  }

  .panel {
    border-radius: 14px;
    padding: 14px;
    width: 100%;
    max-width: 100%;
  }

  .coords-catalog-head {
    flex-direction: column;
    align-items: flex-start;
  }

  h2 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .muted {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .dropzone {
    min-height: 126px;
    padding: 12px;
  }

  .dropzone-title {
    font-size: 1.08rem;
  }

  .dropzone-sub {
    font-size: 0.9rem;
  }

  .occupied-card {
    padding: 14px;
  }

  .occupied-card h3 {
    font-size: 0.98rem;
  }

  .occupied-card p {
    font-size: 0.92rem;
  }

  .file-meta {
    font-size: 0.95rem;
    overflow-wrap: anywhere;
  }

  .status {
    font-size: 0.9rem;
    padding: 10px;
    width: 100%;
    max-width: 100%;
  }

  .status-hint {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .report {
    padding: 12px;
  }

  .report h3 {
    font-size: 0.95rem;
  }

  .report p,
  .report li {
    font-size: 0.92rem;
  }

  th,
  td {
    font-size: 0.88rem;
    padding: 8px 10px;
  }

  table {
    min-width: 560px;
  }

  .footer {
    margin-top: 16px;
    padding: 12px 2px 10px;
    font-size: 0.8rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-left,
  .footer-right {
    width: 100%;
  }

  .footer-title,
  .footer-credit {
    margin: 0 0 4px;
    line-height: 1.32;
  }

  .footer-contacts {
    margin: 6px 0 0;
  }

  .footer-contacts p {
    margin: 0 0 3px;
    line-height: 1.3;
  }

  .footer-right {
    margin-top: 2px;
    align-items: flex-start;
  }

  .donate-link {
    align-items: flex-start;
    gap: 8px;
  }

  .donate-text {
    font-size: 0.84rem;
  }

  .donate-qr {
    width: 96px;
    border-radius: 10px;
  }

  .footer-contact-links {
    gap: 8px;
    margin-top: 4px;
  }

  .occupied-card {
    padding: 12px;
  }

  .occupied-option span {
    min-height: 44px;
    border-radius: 12px;
  }

  .tag-badge {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .brand h1 {
    font-size: 1.06rem;
  }

  .brand-main-line {
    font-size: 0.78rem;
  }

  .topbar-tagline-line1 {
    font-size: 0.68rem;
  }

  .topbar-tagline-line2 {
    font-size: 0.8rem;
  }

  .report-head {
    flex-direction: column;
    align-items: stretch;
  }

  .report-head .btn {
    width: 100%;
    flex: none;
  }

  .panel {
    padding: 12px;
    width: 100%;
    max-width: 100%;
  }

  .dropzone {
    min-height: 116px;
    border-radius: 12px;
  }

  .metric-card {
    padding: 10px;
  }

  .metric-label {
    font-size: 0.8rem;
  }

  .metric-value {
    font-size: 0.96rem;
  }

  .report {
    border-radius: 12px;
    padding: 10px;
  }

  .status-hint {
    margin-top: 8px;
  }

  .footer {
    margin-top: 12px;
    padding: 10px 0 8px;
    font-size: 0.78rem;
  }

  .footer-content {
    gap: 12px;
  }

  .donate-qr {
    width: 88px;
  }

  .footer-contact-links {
    gap: 6px;
  }

  table {
    min-width: 520px;
  }

  .occupied-actions {
    gap: 10px;
  }

  .occupied-help {
    font-size: 0.82rem;
  }
}

@media print {
  body {
    background: #fff;
    padding: 0;
  }

  .topbar,
  .upload-panel,
  .summary-panel,
  .details-panel,
  .footer,
  .report-head,
  .promo-slot {
    display: none !important;
  }

  .report-panel {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .report {
    border: 0;
    padding: 0;
    background: #fff;
  }
}
