    /* Mobile-first wireframe styles */
:root {
  --bg: #0b0d10;
  --panel: #131822;
  --panel-2: #0f141d;
  --text: #e7eefc;
  --muted: #a9b4c7;
  --stroke: rgba(231, 238, 252, 0.16);
  --stroke-2: rgba(231, 238, 252, 0.10);
  --accent: #7aa7ff;
  --danger: #ff6b6b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --tap: 48px;
}

body.theme-light {
  --bg: #f4f5fb;
  --panel: #ffffff;
  --panel-2: #f7f8ff;
  --text: #1f2430;
  --muted: #596075;
  --stroke: rgba(20, 24, 38, 0.14);
  --stroke-2: rgba(20, 24, 38, 0.08);
  --accent: #ff6db0;
  --danger: #f55e5e;
  --shadow: 0 14px 28px rgba(15, 20, 30, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  max-width: 100%;
}
html, body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(122,167,255,0.20), transparent 55%),
              radial-gradient(900px 600px at 90% 0%, rgba(255,255,255,0.06), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.3;
}

body.theme-light {
  background:
    radial-gradient(1200px 900px at 70% -10%, rgba(255,182,220,0.35), transparent 65%),
    radial-gradient(1000px 800px at 0% 0%, rgba(255,255,255,0.9), transparent 60%),
    var(--bg);
}

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

.app {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  margin: 0 auto;
}

header {
  padding: 16px 16px 10px;
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, rgba(11,13,16,0.96), rgba(11,13,16,0.65));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke-2);
  z-index: 10;
  width: 100%;
}

.theme-light header {
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.80));
  border-bottom: 1px solid rgba(20,24,38,0.08);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  flex-wrap: wrap;
}

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: var(--tap);
    }

.logo {
  width: 200px;
  height: 100px;
  /* border-radius: 10px; */
  /* border: 1px solid var(--stroke); */
  object-fit: contain;
  /*background: rgba(255,255,255,0.05); */
  padding: 4px;
  /* box-shadow: var(--shadow); */
}

    .brand h1 {
      font-size: 14px;
      margin: 0;
      letter-spacing: 0.4px;
      color: var(--muted);
    }

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

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(19,24,34,0.65);
  color: var(--muted);
  font-size: 13px;
}

.theme-light .pill {
  background: rgba(255,255,255,0.8);
  color: var(--muted);
}

.pill[aria-current="page"] {
  color: var(--text);
  border-color: rgba(122,167,255,0.55);
  box-shadow: 0 0 0 4px rgba(122,167,255,0.10);
}

.theme-light .pill[aria-current="page"] {
  border-color: rgba(255,109,176,0.55);
  box-shadow: 0 0 0 4px rgba(255,109,176,0.15);
}

.pill--icon {
  width: 40px;
  padding: 0;
}

main {
  padding: 16px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  box-sizing: border-box;
}

    .screen {
      display: none;
      gap: 14px;
    }

    .screen.is-active { display: grid; }

.panel {
  background: linear-gradient(180deg, rgba(19,24,34,0.9), rgba(15,20,29,0.9));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.theme-light .panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(247,248,255,0.95));
}

.panel {
  max-width: 100%;
}

.panel__header {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--stroke-2);
}

.panel__header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel__header h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}

    .panel__header p {
      margin: 6px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .panel__body { padding: 14px; }

    .stack { display: grid; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-light .btn {
  background: rgba(255,255,255,0.92);
  border-color: rgba(20,24,38,0.14);
  color: var(--text);
}

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

.btn--primary {
  border-color: rgba(122,167,255,0.55);
  background: linear-gradient(135deg, rgba(122,167,255,0.22), rgba(255,255,255,0.06));
}

.theme-light .btn--primary {
  border-color: rgba(255,44,135,0.45);
  background: linear-gradient(135deg, rgba(255,44,135,0.92), rgba(255,118,196,0.92));
  color: #ffffff;
}

.btn--ghost {
  background: transparent;
}

.btn--danger {
  border-color: rgba(255,107,107,0.6);
  color: #ffd7d7;
  background: rgba(255,107,107,0.10);
}

.theme-light .btn--danger {
  border-color: rgba(217,45,32,0.2);
  color: #c62828;
  background: rgba(255,212,212,0.9);
}

    .field {
      display: grid;
      gap: 6px;
    }

    label {
      font-size: 12px;
      color: var(--muted);
    }

input {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  outline: none;
  font-size: 15px;
}

.theme-light input {
  background: rgba(255,255,255,0.95);
  border-color: rgba(20,24,38,0.16);
}

    input::placeholder { color: rgba(169,180,199,0.55); }

    .hint {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
    }

    .divider {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 10px;
      color: rgba(169,180,199,0.8);
      font-size: 12px;
      margin: 6px 0;
    }

    .divider::before,
    .divider::after {
      content: "";
      height: 1px;
      background: var(--stroke-2);
    }

.cards {
  display: grid;
  gap: 12px;
  width: 100%;
}

.card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px dashed rgba(231, 238, 252, 0.25);
  background: rgba(255,255,255,0.03);
  width: 100%;
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px solid var(--stroke);
      background:
        linear-gradient(135deg, rgba(122,167,255,0.18), rgba(255,255,255,0.05)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 8px, rgba(255,255,255,0.03) 8px, rgba(255,255,255,0.03) 16px);
  position: relative;
  overflow: hidden;
}

.theme-light .thumb {
  border-color: rgba(20,24,38,0.2);
  background:
    linear-gradient(135deg, rgba(255,109,176,0.18), rgba(255,255,255,0.8)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.9) 0, rgba(255,255,255,0.9) 8px, rgba(255,255,255,0.5) 8px, rgba(255,255,255,0.5) 16px);
}

    .thumb::after {
      content: "IMAGE PLACEHOLDER";
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: rgba(217, 132, 253, 0.75);
      font-weight: 700;
      letter-spacing: 1px;
      font-size: 12px;
      text-transform: uppercase;
    }

.thumb.has-image {
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}

.thumb.has-image::after {
  display: none;
}

    .meta {
      display: grid;
      gap: 4px;
    }

    .meta h3 {
      margin: 0;
      font-size: 16px;
    }

.meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
  width: 100%;
}

.gallery-item {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  position: relative;
  width: 100%;
}

.theme-light .gallery-item {
  background: rgba(255,255,255,0.9);
}

.gallery-item__trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

.gallery-item figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  background: rgba(255,255,255,0.04);
  aspect-ratio: 3 / 4;
}

.gallery-item figcaption {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--stroke-2);
  text-align: left;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 8, 12, 0.85);
  z-index: 100;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
}

.lightbox__dialog {
  position: relative;
  max-width: 960px;
  width: min(90vw, 960px);
  background: rgba(13, 16, 22, 0.95);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

body.theme-light .lightbox__dialog {
  background: rgba(255,255,255,0.98);
}

.lightbox__figure {
  margin: 0;
  display: grid;
  gap: 10px;
}

.lightbox__figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  max-height: 70vh;
  background: rgba(0,0,0,0.25);
}

.lightbox__figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
}

.lightbox__figure span {
  font-size: 16px;
  color: var(--text);
}

.lightbox__figure small {
  font-size: 12px;
  color: var(--muted);
}

.lightbox__close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

footer {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--stroke-2);
  color: rgba(169,180,199,0.8);
  font-size: 12px;
  text-align: center;
}

/* Responsive enhancements */
@media (min-width: 720px) {
  header { padding: 18px 22px 12px; }
  main { padding: 22px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .panel__header h2 { font-size: 20px; }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

    /* Accessibility helpers */
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    :focus-visible {
      outline: 3px solid rgba(122,167,255,0.55);
      outline-offset: 2px;
      border-radius: 12px;
    }
