:root {
  --bg: #0b1020;
  --panel: #111827;
  --panel-strong: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --line: rgba(148, 163, 184, 0.2);
}

* { box-sizing: border-box; }

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

img, video, canvas, input, button {
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1000px 600px at 15% 10%, #1f2937 0%, var(--bg) 55%);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.site-header-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-cta {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 0;
}

.header-cta:hover {
  text-decoration: underline;
}

.header-btn {
  cursor: pointer;
}

.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 20px 90px;
  display: grid;
  gap: 64px;
}

section { width: 100%; }

.hero-content {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.96));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  min-width: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0 0 12px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

.lead { font-size: 1.05rem; }

.scan-motion {
  margin: 10px 0 18px;
}

.lifecycle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.phase {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.85), rgba(17, 24, 39, 0.7));
  padding: 10px;
}

.phase-label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.9);
  overflow-wrap: anywhere;
}

.phone-frame {
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.95), rgba(17, 24, 39, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 8px;
  position: relative;
}

.phone-notch {
  width: 88px;
  height: 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  margin: 0 auto 8px;
}

.phone-screen {
  border-radius: 12px;
  background: rgba(11, 18, 32, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 12px;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.biz-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.9);
  border-radius: 10px;
  padding: 12px;
  position: relative;
  transform-origin: center;
  animation: cardFocus 4.6s ease-in-out infinite;
}

.biz-card p {
  margin: 0 0 6px;
  color: rgba(229, 231, 235, 0.88);
  font-size: 0.78rem;
}

.biz-logo {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
}

.biz-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.extract-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.9), rgba(17, 24, 39, 0.75));
  padding: 12px;
  min-height: 178px;
}

.extract-field {
  margin: 0 0 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 7px 9px;
  background: rgba(11, 18, 32, 0.65);
  color: rgba(229, 231, 235, 0.9);
  font-size: 0.76rem;
  opacity: 0.2;
  transform: translateY(2px);
  overflow-wrap: anywhere;
}

.extract-field-1 { animation: fieldReveal 6s infinite; }
.extract-field-2 { animation: fieldReveal 6s infinite 0.15s; }
.extract-field-3 { animation: fieldReveal 6s infinite 0.3s; }
.extract-field-4 { animation: fieldReveal 6s infinite 0.45s; }

.saved-pill {
  margin: 14px 0 0;
  display: inline-block;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  animation: savedReveal 6s infinite;
}

.scan-beam {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 28px;
  top: -30px;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.4), rgba(56, 189, 248, 0));
  animation: scanSweep 6s ease-in-out infinite;
}

.save-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  min-height: 178px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.9), rgba(17, 24, 39, 0.75));
  padding: 14px;
  text-align: center;
}

.contact-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 6px auto 10px;
  background: radial-gradient(circle at 30% 30%, #67d7ff, #2f8dbc);
  opacity: 0.35;
  animation: saveStage 6s infinite;
}

.contact-name {
  margin: 0 0 6px;
  color: rgba(229, 231, 235, 0.92);
  font-weight: 700;
  opacity: 0.45;
  animation: saveStage 6s infinite;
}

.contact-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.84rem;
  opacity: 0.4;
  animation: saveStage 6s infinite;
}

@keyframes scanSweep {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0; }
  20% { opacity: 1; }
  48% { opacity: 1; transform: translateY(145px); }
  60% { opacity: 0; transform: translateY(145px); }
  100% { opacity: 0; transform: translateY(145px); }
}

@keyframes cardFocus {
  0% { transform: scale(0.98); opacity: 0.75; }
  18% { transform: scale(1); opacity: 1; }
  55% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fieldReveal {
  0% {
    opacity: 0.2;
    transform: translateY(2px);
    border-color: rgba(148, 163, 184, 0.2);
  }
  33% {
    opacity: 0.2;
    transform: translateY(2px);
    border-color: rgba(148, 163, 184, 0.2);
  }
  56% {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(56, 189, 248, 0.55);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    border-color: rgba(56, 189, 248, 0.55);
  }
}

@keyframes savedReveal {
  0% { opacity: 0; transform: translateY(4px); }
  62% { opacity: 0; transform: translateY(4px); }
  78% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes saveStage {
  0% { opacity: 0.35; }
  62% { opacity: 0.35; }
  80% { opacity: 1; }
  100% { opacity: 1; }
}

form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #0b1220;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 1rem;
}

button {
  border: none;
  background: var(--accent);
  color: #0b1220;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
}

button:hover { filter: brightness(1.05); }

.secondary-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.secondary-btn:hover {
  background: rgba(148, 163, 184, 0.1);
}

.msg {
  margin-top: 12px;
  min-height: 1.25em;
}

.promise {
  margin: 8px 0 0;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.95rem;
}

.trust {
  margin-top: 6px;
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.7);
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #0b1220;
  text-decoration: none;
  font-weight: 600;
}

.hero-cta-btn:hover {
  filter: brightness(1.05);
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

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

.showcase {
  text-align: center;
  display: grid;
  gap: 16px;
}

.showcase h2 { margin: 0; }

.matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.matrix-card {
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  min-height: 120px;
}

.matrix-label {
  margin: 0 0 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.8);
}

.matrix-title {
  margin: 0 0 6px;
  font-weight: 600;
}

.matrix-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.features { display: grid; gap: 20px; }

.section-head {
  text-align: center;
  display: grid;
  gap: 6px;
}

.section-head h2 { margin: 0; }

.section-head p { margin: 0; color: var(--muted); }

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

.feature-card {
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p { margin: 0; }

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

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: rgba(11, 18, 32, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.step-index {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.steps h3 { margin: 0 0 6px; font-size: 1rem; }
.steps p { margin: 0; }

.testimonial-card {
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 24px;
}

.quote { margin: 0 0 12px; font-size: 1.02rem; }
.quote-attrib { margin: 0; color: var(--muted); }

.cta-card {
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.12), rgba(15, 23, 42, 0.95));
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}

.cta-card h2 { margin: 0 0 10px; }

.cta-form { margin-top: 16px; }

.auth-shell {
  max-width: 560px;
  margin: 0 auto;
}

.tool-shell h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.tool-shell .lead {
  margin-bottom: 14px;
}

.camera-block {
  margin: 16px 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(11, 18, 32, 0.5);
}

.camera-preview {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #050a16;
  max-height: 320px;
  object-fit: cover;
}

.camera-canvas {
  display: none;
}

.camera-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.camera-actions button {
  flex: 1 1 180px;
}

.extract-form {
  grid-template-columns: 1fr auto;
  margin-bottom: 8px;
}

.extract-form input[type=\"file\"] {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(11, 18, 32, 0.7);
}

.result-block {
  margin-top: 18px;
}

.tool-hint {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

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

.download-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.result-grid {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: rgba(11, 18, 32, 0.5);
}

.result-grid div {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  padding: 8px;
}

.result-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-bottom: 4px;
}

.result-grid strong {
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

.result-empty {
  display: block;
}

.result-empty p {
  margin: 0;
}

.recent-list {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 12px;
  background: rgba(11, 18, 32, 0.5);
  display: grid;
  gap: 10px;
}

.recent-list article {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 8px;
  padding: 10px;
}

.recent-list h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.recent-list p {
  margin: 0;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(11, 16, 32, 0.6);
}

.site-footer-inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 20px 26px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.site-footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  form { grid-template-columns: 1fr; }
  button { width: 100%; }
  .matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .lifecycle { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .camera-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .camera-actions button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .site-header-inner { padding: 12px 16px; }
  .wrap { padding: 28px 16px 64px; }
  .hero-content { padding: 28px; }
  .phase-label { font-size: 0.68rem; letter-spacing: 0.06em; }
  .matrix { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .camera-actions { display: grid; grid-template-columns: 1fr; }
  .camera-actions button { width: 100%; }
  #cameraMsg, #extractMsg { overflow-wrap: anywhere; }
  .tool-shell h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .site-footer-inner {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan-beam { animation: none; display: none; }
  .biz-card { animation: none; }
  .extract-field { animation: none; opacity: 1; transform: none; border-color: rgba(56, 189, 248, 0.55); }
  .saved-pill { animation: none; opacity: 1; transform: none; }
  .contact-avatar, .contact-name, .contact-meta { animation: none; opacity: 1; }
}

body.app-capture {
  margin: 0;
  min-height: 100dvh;
  padding: clamp(14px, 3vw, 26px);
  background:
    radial-gradient(900px 560px at 12% -5%, rgba(56, 189, 248, 0.18), rgba(11, 16, 32, 0)),
    radial-gradient(760px 460px at 100% 100%, rgba(14, 165, 233, 0.1), rgba(11, 16, 32, 0)),
    #060b18;
  display: grid;
  place-items: center;
}

.capture-shell {
  width: min(980px, 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 14, 29, 0.94), rgba(11, 18, 32, 0.92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.capture-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px clamp(16px, 3vw, 24px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(11, 16, 32, 0.65);
}

.capture-header .brand {
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.capture-kicker {
  margin: 0;
  color: #7dd3fc;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.capture-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  padding: clamp(14px, 2.5vw, 24px);
}

.capture-frame {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  overflow: hidden;
  background: #020617;
}

.capture-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
}

.capture-still {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #000;
}

.capture-frame.has-still .capture-preview {
  display: none;
}

.capture-frame.has-still .capture-still {
  display: block;
}

.capture-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.68);
  color: #cbd5e1;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 8px 12px;
  backdrop-filter: blur(5px);
}

.capture-controls {
  display: block;
}

.capture-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px;
  background: rgba(11, 18, 32, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
}

.capture-actions button {
  width: 100%;
  min-height: 44px;
}

.capture-main-btn {
  width: 84px !important;
  height: 84px;
  min-height: 84px !important;
  justify-self: center;
  border-radius: 50%;
  padding: 0;
  border: 6px solid #f8fafc;
  background: radial-gradient(circle at 35% 30%, #b98cff 0%, #8b5cf6 56%, #6d28d9 100%);
  box-shadow:
    0 0 0 8px rgba(15, 23, 42, 0.95),
    0 10px 30px rgba(139, 92, 246, 0.45);
  display: grid;
  place-items: center;
}

.capture-main-btn:hover {
  filter: brightness(1.04);
}

.capture-main-btn:active {
  transform: scale(0.97);
}

.capture-icon {
  width: 34px;
  height: 34px;
  fill: #f8fafc;
}

.capture-actions .secondary-btn {
  font-size: 0.92rem;
}

.capture-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.capture-preview-grid div {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 9px;
  padding: 8px;
  background: rgba(8, 13, 24, 0.7);
}

.capture-preview-grid span {
  display: block;
  color: #8fa4c6;
  font-size: 0.72rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.capture-preview-grid strong {
  display: block;
  font-size: 0.92rem;
  color: #e5e7eb;
  overflow-wrap: anywhere;
}

.capture-preview-grid p {
  margin: 0;
  font-size: 0.9rem;
  color: #a6b7d3;
}

body.modal-open {
  overflow: hidden;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.5vw, 24px);
}

.preview-modal[hidden] {
  display: none !important;
}

.preview-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(3, 6, 13, 0.72);
  backdrop-filter: blur(4px);
}

.preview-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 88dvh;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(8, 14, 29, 0.98), rgba(11, 18, 32, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

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

.preview-head h2 {
  margin: 0;
  font-size: 1rem;
}

.preview-close-btn {
  width: auto;
  min-height: 38px;
  padding: 8px 12px;
  cursor: pointer;
}

.capture-footnote {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(11, 18, 32, 0.52);
  padding: 12px clamp(16px, 3vw, 24px) 14px;
}

.capture-footnote p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(148, 163, 184, 0.92);
}

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

@media (max-width: 520px) {
  body.app-capture {
    padding: 0;
    place-items: stretch;
  }
  .capture-shell {
    width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .capture-header {
    padding: 12px 14px;
  }
  .capture-page {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }
  .capture-preview {
    aspect-ratio: 3 / 4;
  }
  .capture-overlay {
    font-size: 0.75rem;
  }
}

.admin-shell {
  max-width: 980px;
}

.account-shell {
  max-width: 760px;
}

body.account-page {
  background: #0b1020;
}

body.login-page {
  background: #0b1020;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  color: #cbd5e1;
}
