@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap");

:root {
  --bg-0: #0b0f1a;
  --bg-1: #10172a;
  --bg-2: #141c33;
  --card: rgba(255, 255, 255, 0.07);
  --card-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.68);
  --accent: #22d3ee;
  --accent-2: #60a5fa;
  --accent-green: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 25px 55px rgba(15, 23, 42, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Cairo", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.16), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(34, 197, 94, 0.12), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(96, 165, 250, 0.12), transparent 45%),
    linear-gradient(145deg, var(--bg-0), var(--bg-2));
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

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

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

.brand h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) contrast(1.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.login-wrap {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(480px, 100%);
  text-align: center;
  padding: 28px;
}

.login-card h2 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.login-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.login-form {
  display: grid;
  gap: 12px;
  text-align: right;
}

.login-form input {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.98rem;
}

.login-form input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.15);
}

.login-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.action-card {
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.12), rgba(96, 165, 250, 0.08));
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.btn {
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041521;
  border: none;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #fee2e2;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

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

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

.hero h2 {
  font-size: 1.9rem;
}

.hero p {
  color: var(--muted);
  line-height: 1.7;
}

.search-priority-card,
.admin-summary,
.issues-priority,
.batch-card {
  margin-bottom: 16px;
}

.search-priority-card {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.12), rgba(8, 47, 73, 0.45));
}

.search-priority-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.search-priority-input label {
  display: block;
  margin-bottom: 8px;
  color: rgba(248, 250, 252, 0.88);
  font-weight: 700;
}

.search-priority-input input {
  width: 100%;
  min-height: 52px;
  font-size: 1.08rem;
  border-color: rgba(96, 165, 250, 0.55);
}

.search-priority-input input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.9);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.debug-link {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.debug-accordion {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.settings-list {
  display: grid;
  gap: 16px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-meta h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.settings-meta p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.settings-status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.settings-status.success {
  color: var(--accent-green);
}

.settings-status.error {
  color: var(--danger);
}

.range-control {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.range-control input[type="range"] {
  flex: 1;
}

.range-control input[type="number"] {
  width: 120px;
  text-align: center;
}

.range-control span {
  min-width: 48px;
  text-align: center;
  font-weight: 600;
  color: var(--text);
}

.toggle {
  position: relative;
  width: 54px;
  height: 30px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.toggle input:checked + .slider {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.toggle input:checked + .slider::before {
  transform: translateX(22px);
}

details.accordion {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  background: rgba(2, 6, 23, 0.55);
}

details.accordion[open] {
  background: var(--card-strong);
}

details.accordion summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

details.accordion summary::-webkit-details-marker {
  display: none;
}

details.accordion summary::after {
  content: "▾";
  float: left;
  color: var(--muted);
}

details.accordion[open] summary::after {
  content: "▴";
}

.camera-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #020617;
  border: 1px solid var(--border);
}

video,
canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.frame-box {
  width: 78%;
  aspect-ratio: 1.58;
  border: 2px dashed rgba(56, 189, 248, 0.85);
  border-radius: 16px;
  box-shadow: 0 0 0 2000px rgba(2, 6, 23, 0.35);
}

.result-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.result-panel.success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.4);
}

.result-panel.blocked {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
}

.result-panel.error {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
}

.result-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

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

.field-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.95rem;
}

.field-item span {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.3);
  padding: 6px;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  min-width: 920px;
}

.table th,
.table td {
  padding: 12px 14px;
  text-align: right;
  font-size: 0.95rem;
  vertical-align: middle;
}

.table th {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.table tbody tr.record-row td {
  background: rgba(12, 22, 41, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table tbody tr.record-row td:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 14px 14px 0;
}

.table tbody tr.record-row td:last-child {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px 0 0 14px;
}

.record-name {
  font-size: 1rem;
  font-weight: 700;
}

.record-meta {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.record-nid,
.record-gate,
.record-muted {
  font-size: 0.88rem;
  color: var(--muted);
}

.record-face-image {
  width: 64px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.record-image-empty {
  width: 64px;
  height: 78px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.record-card-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.record-card-image {
  width: 96px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.record-card-empty {
  width: 96px;
  height: 58px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-block;
}

.badge.blocked {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}

.badge.allowed {
  background: rgba(34, 197, 94, 0.15);
  color: #bbf7d0;
}

.badge.warning {
  background: rgba(234, 179, 8, 0.15);
  color: #fde68a;
}

.issues-card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.issues-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.issues-meta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

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

.issues-priority {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.1), rgba(2, 6, 23, 0.6));
}

.issue-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.55);
}

.issue-media {
  display: grid;
  gap: 10px;
}

.issue-card-thumb,
.issue-face-thumb {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(2, 6, 23, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.issue-card-thumb {
  aspect-ratio: 3 / 2;
}

.issue-face-thumb {
  aspect-ratio: 3 / 4;
}

.issue-card-thumb img,
.issue-face-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.issue-thumb-placeholder {
  padding: 8px;
  text-align: center;
}

.issue-body {
  display: grid;
  gap: 8px;
}

.issue-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.issue-sub {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.issue-tags {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.issue-tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.issue-tag.warning {
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(234, 179, 8, 0.4);
  color: #fde68a;
}

.issue-tag.danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.issue-tag.neutral {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #bfdbfe;
}

.issue-actions {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: stretch;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.live-status.connected {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
}

.live-status.disconnected {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
}

.live-status.paused {
  color: #fde68a;
  border-color: rgba(234, 179, 8, 0.35);
  background: rgba(234, 179, 8, 0.12);
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.9rem;
  border-radius: 12px;
}

.btn-warning {
  background: rgba(234, 179, 8, 0.16);
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #fde68a;
}

.batch-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.batch-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.batch-buttons {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.batch-count {
  color: var(--muted);
  font-size: 0.95rem;
}

.pagination {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination span[id^="pageInfo"] {
  color: var(--muted);
  font-weight: 600;
}

.pagination-top {
  margin-top: 0;
  margin-bottom: 12px;
}

.pagination-bottom {
  margin-top: 14px;
}

.page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-size select {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 6px 10px;
}

.action-group {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
}

.icon-btn:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.icon-btn.danger {
  border-color: rgba(239, 68, 68, 0.5);
}

.icon-btn.danger svg {
  stroke: #fecaca;
}

.icon-btn.success {
  border-color: rgba(34, 197, 94, 0.5);
}

.icon-btn.success svg {
  stroke: #bbf7d0;
}

.inline-editor-row td {
  background: rgba(15, 23, 42, 0.7);
}

.inline-editor {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.6);
}

.inline-preview {
  display: grid;
  gap: 10px;
}

.inline-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(2, 6, 23, 0.75);
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inline-card img {
  width: 100%;
  height: auto;
  display: block;
}

.inline-card-placeholder {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 12px;
  text-align: center;
}

.inline-preview-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.inline-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.inline-fields label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.inline-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.6);
  color: var(--text);
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.inline-status {
  font-size: 0.9rem;
  color: var(--muted);
}

.inline-status.error {
  color: #fecaca;
}

.inline-status.success {
  color: #bbf7d0;
}

@media (max-width: 900px) {
  .inline-editor {
    grid-template-columns: 1fr;
  }

  .issue-item {
    grid-template-columns: 1fr;
  }

  .issue-actions {
    grid-template-columns: 1fr;
  }

  .search-priority-wrap {
    grid-template-columns: 1fr;
  }

  .preview-modal {
    width: 94vw;
    max-height: 90vh;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .preview-face-large {
    min-height: 220px;
  }
}

.toast-container {
  position: fixed;
  inset-inline-end: 24px;
  bottom: 24px;
  display: grid;
  gap: 12px;
  z-index: 60;
  max-width: min(360px, 90vw);
}

.toast {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(8, 12, 24, 0.95);
  padding: 14px;
  box-shadow: var(--shadow);
  animation: toast-slide 0.3s ease;
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

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

.toast-body {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.toast-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.toast-close {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
}

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

.preview-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  z-index: 40;
}

.preview-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 94vw);
  max-height: 88vh;
  background: rgba(8, 12, 24, 0.98);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  z-index: 52;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.preview-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  overflow-y: auto;
}

.preview-block h4 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--muted);
}

.preview-modal img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  object-fit: contain;
  background: #020617;
}

.preview-face-large {
  min-height: 360px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.preview-close {
  padding: 8px 14px;
  font-size: 0.9rem;
}

.pin-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92vw);
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(8, 12, 24, 0.98);
  z-index: 53;
  padding: 18px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.pin-modal p {
  color: var(--muted);
}

.pin-modal input {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.65);
  color: var(--text);
  padding: 10px 12px;
}

.pin-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.hidden {
  display: none !important;
}

input[type="text"],
input[type="file"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.6);
  color: var(--text);
}

textarea {
  resize: vertical;
}

.footer {
  margin-top: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .camera-container {
    aspect-ratio: 4 / 5;
  }

  .frame-box {
    width: 88%;
  }
}
