:root {
  --qg-ink: #f4f4f4;
  --qg-muted: #d0d0d0;
  --qg-green: #f4f4f4;
  --qg-green-dark: #ffffff;
  --qg-mint: #2a2a2a;
  --qg-paper: #0c0c0c;
  --qg-gold: #d4a017;
  --qg-side: #111111;
  --qg-surface: #171717;
  --qg-line: #454545;
  --qg-radius: 18px;
}

html { font-size: 16px; color-scheme: dark; }
body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--qg-ink);
  background: var(--qg-paper);
  min-height: 100vh;
}
a { color: var(--qg-green); text-decoration: none; }
a:hover { color: var(--qg-green-dark); }

.brand {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 800;
  color: var(--qg-ink) !important;
  letter-spacing: -.03em;
  font-size: 1.2rem;
}
.brand-light { color: #fff !important; }
.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  flex: 0 0 2rem;
}
.brand-logo {
  width: 2rem;
  height: 2rem;
  display: block;
}

.site-header {
  background: rgba(12, 12, 12, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #454545;
  position: sticky;
  top: 0;
  z-index: 20;
}
.navbar-nav .nav-link { color: #ffffff; font-weight: 600; }
.btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #111111;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(255, 255, 255, .14);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: #ffffff;
  border-color: #ffffff;
  color: #111111;
  box-shadow: 0 10px 26px rgba(255, 255, 255, .22);
}
.btn-ghost {
  background: transparent;
  border: 0;
  color: var(--qg-ink);
}

.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at 90% 10%, #1a1a1a 0, transparent 42%),
    linear-gradient(180deg, #0c0c0c 0, var(--qg-paper) 100%);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--qg-green);
  margin-bottom: .6rem;
}
.hero h1 {
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero .lead { color: var(--qg-muted); }
.hero-card {
  background: #171717;
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
  border: 1px solid #4a4a4a;
}
.fake-qr {
  width: 132px;
  height: 132px;
  flex: 0 0 132px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, #ffffff 8px, transparent 8px) 0 0 / 22px 22px,
    linear-gradient(#ffffff 8px, transparent 8px) 0 0 / 22px 22px,
    #1c1c1c;
  box-shadow: inset 0 0 0 8px #171717, 0 0 0 2px #ffffff;
}

.section { padding: 4rem 0; }
.section h2, .hero h1 { font-weight: 800; }
.section-lead { color: var(--qg-muted); max-width: 36rem; }
.section-alt { background: #171717; }
.feature, .step, .auth-card, .public-card, .card-block, .stat-card {
  background: #242424;
  border: 1px solid #4a4a4a;
  border-radius: var(--qg-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.feature, .step { padding: 1.4rem; height: 100%; }
.feature h3, .step h3 { font-size: 1.05rem; font-weight: 700; }
.feature p, .step p { color: var(--qg-muted); margin-bottom: 0; }
.step span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  font-weight: 800;
  margin-bottom: .7rem;
}
.cta-band {
  background: var(--qg-side);
  color: #fff;
  border: 1px solid #4a4a4a;
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid #454545;
  color: var(--qg-muted);
  margin-top: 2rem;
}

.auth-card, .public-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 2rem;
}
.captcha-img {
  height: 48px;
  width: 180px;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  background: #171717;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.public-card { max-width: 560px; }
.legal { max-width: 720px; }
.text-pre { white-space: pre-wrap; }

.page-panel { background: #0c0c0c; }
.panel-shell { display: flex; min-height: 100vh; }
.panel-side {
  width: 250px;
  background: var(--qg-side);
  color: #e8e8e8;
  padding: 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.panel-nav { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.panel-nav a {
  color: #bdbdbd;
  padding: .55rem .75rem;
  border-radius: 10px;
  font-weight: 600;
}
.panel-nav a.active, .panel-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.panel-user { font-size: .92rem; }
.panel-user form { margin-top: .55rem; }
.panel-logout { width: 100%; }
.panel-actions { display: flex; gap: .5rem; margin-left: auto; align-items: center; }
.panel-account { display: flex; align-items: center; gap: .45rem; }
.panel-account-side { display: none; }
.panel-profile { display: flex; align-items: center; gap: .45rem; color: #fff; font-weight: 700; }
.panel-profile:hover { color: #fff; }
.panel-profile-name { font-size: .85rem; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  flex: 0 0 2rem;
  overflow: hidden;
}
.panel-logout-form { margin: 0; }
.panel-banner-logout {
  border: 1px solid #666;
  background: transparent;
  color: #f4f4f4;
  border-radius: 999px;
  padding: .22rem .6rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
}
.panel-banner-logout:hover { background: #fff; color: #111; }
.profile-card { max-width: 720px; }
.profile-head { display: flex; gap: 1rem; align-items: center; }
.profile-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 88px;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.6rem;
}
.panel-ico { display: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.panel-ico-fill { fill: currentColor; stroke: none; }
.panel-nav-short { display: none; }
.panel-main { flex: 1; min-width: 0; }
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: #171717;
  border-bottom: 1px solid #454545;
  width: 100%;
}
.panel-top > :last-child { margin-left: auto; }
.panel-top h1 { font-weight: 800; letter-spacing: -.03em; }
.panel-content { padding: 1.5rem; }
.card-block { padding: 1.25rem; }
.stat-card { padding: 1.1rem 1.2rem; }
.stat-label { color: var(--qg-muted); font-size: .85rem; font-weight: 600; }
.stat-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -.04em; }
.qr-preview { width: 220px; height: 220px; background: #171717; }
.type-badge {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  background: var(--qg-mint);
  color: var(--qg-green-dark);
}
.badge-wa { background: #2a2a2a; }
.badge-ig { background: #f8e3ef; color: #8a245a; }
.badge-in { background: #dce8f8; color: #1b4f8a; }
.badge-file { background: #eee6d8; color: #6a4b16; }
.badge-vcard { background: #e4e8ff; color: #2c3d8f; }
.type-fields { display: none; margin-bottom: 1rem; }
.table-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.table-actions form { display: inline; }

@media (max-width: 900px) {
  .page-panel { background: #0c0c0c; }
  .panel-shell { flex-direction: column; min-height: 100dvh; }
  .panel-side {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 30;
    flex-direction: row;
    align-items: center;
    gap: .55rem;
    padding: .45rem .8rem;
    border-bottom: 1px solid #2a2a2a;
  }
  .panel-side .brand { font-size: 1rem; gap: .4rem; }
  .panel-side .brand-mark,
  .panel-side .brand-logo { width: 1.55rem; height: 1.55rem; flex-basis: 1.55rem; }
  .panel-account-side { display: flex; margin-left: auto; }
  .panel-top .panel-account { display: none; }
  .panel-profile-name { display: none; }
  .panel-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    justify-content: space-around;
    padding: .28rem .3rem calc(.28rem + env(safe-area-inset-bottom));
    background: rgba(12, 12, 12, .94);
    backdrop-filter: blur(16px);
    border-top: 1px solid #333;
  }
  .panel-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .12rem;
    padding: .28rem .1rem .2rem;
    border-radius: 12px;
    font-size: .65rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    color: #8f8f8f;
    background: transparent;
  }
  .panel-nav a.active,
  .panel-nav a:hover { color: #fff; background: transparent; }
  .panel-ico { display: block; width: 1.3rem; height: 1.3rem; }
  .panel-nav-long { display: none; }
  .panel-nav-short { display: inline; }
  .panel-main { padding-bottom: calc(3.6rem + env(safe-area-inset-bottom)); }
  .panel-top {
    padding: .7rem .9rem .15rem;
    background: transparent;
    border-bottom: 0;
    gap: .45rem;
  }
  .panel-top h1 { font-size: 1.2rem !important; }
  .panel-actions { gap: .35rem; }
  .panel-action-album { display: none; }
  .panel-content { padding: .45rem .9rem 1rem; }
  .page-panel .btn {
    padding: .32rem .65rem;
    font-size: .78rem;
    line-height: 1.25;
    border-radius: 9px;
    box-shadow: none;
    font-weight: 650;
  }
  .page-panel .btn-sm { padding: .22rem .5rem; font-size: .74rem; }
  .album-tile-grid { grid-template-columns: 1fr; gap: .7rem; }
  .album-tile { border-radius: 16px; box-shadow: none; border: 1px solid #2e2e2e; }
  .album-tile-cover { max-height: none; }
  .album-tile-body { padding: .7rem .8rem .75rem; gap: .22rem; }
  .album-tile-actions { padding-top: .35rem; }
  .panel-content .mb-4 { margin-bottom: .7rem !important; }
}

.footer { display: none; }

.hero-compact { padding: 3rem 0 1.5rem; }
.price-card {
  background: #171717;
  border-radius: 22px;
  padding: 1.6rem 1.4rem 1.4rem;
  height: 100%;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  display: flex;
  flex-direction: column;
}
.price-card-featured { box-shadow: 0 18px 50px rgba(255, 255, 255, .08); outline: 2px solid var(--qg-green); }
.price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--qg-mint);
  color: var(--qg-green-dark);
  font-size: .72rem;
  font-weight: 800;
  padding: .25rem .55rem;
  border-radius: 999px;
}
.price-amount { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.price-list { padding-left: 1.1rem; color: var(--qg-muted); flex: 1; }
.price-list li { margin-bottom: .35rem; }
.checkout-wrap { max-width: 980px; }
.checkout-card {
  background: #171717;
  border-radius: 22px;
  padding: 1.6rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  max-width: 640px;
  margin: 0 auto;
}
.checkout-steps {
  display: flex;
  gap: .6rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  justify-content: center;
}
.checkout-steps li {
  font-size: .85rem;
  font-weight: 700;
  color: #c8c8c8;
  padding-bottom: .35rem;
  border-bottom: 2px solid #5a5a5a;
}
.checkout-steps li.is-active { color: var(--qg-green); border-color: var(--qg-green); }
.checkout-steps li.is-done { color: var(--qg-ink); }
.badge-album { background: #f3e7d4; color: #6a4b16; }

body.page-album { background: #0c0c0c; overflow-x: hidden; }
body.page-album .site-header { background: #0c0c0c; border-bottom-color: #2a2a2a; }
body.page-album .site-header .container { max-width: none; width: 100%; }
body.page-album .navbar-toggler,
body.page-album #mainNav,
body.page-album .site-footer { display: none; }
body.page-pdf { background: #111; overflow: hidden; }
body.page-pdf .site-header,
body.page-pdf .site-footer { display: none; }
.pdf-shell { height: 100dvh; display: flex; flex-direction: column; background: #111; }
.pdf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .9rem;
  padding-top: calc(.55rem + env(safe-area-inset-top));
  border-bottom: 1px solid #333;
  color: #f4f4f4;
}
.pdf-bar a { font-weight: 700; }
.pdf-pages {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #2a2a2a;
  padding: .5rem .5rem calc(.75rem + env(safe-area-inset-bottom));
}
.pdf-pages canvas { display: block; width: 100%; height: auto; margin: 0 auto .5rem; background: #fff; }
.pdf-error { margin: 1rem; color: #f4f4f4; }
.album-public {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 calc(1.25rem + env(safe-area-inset-bottom));
  background: #0c0c0c;
  color: #f4f4f4;
}
.album-public .alert { margin: .75rem 1rem; }
.ig-profile-head {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 1.15rem;
  align-items: center;
  padding: 1rem 1rem .2rem;
}
.ig-profile-id h1 {
  margin: 0 0 .7rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.ig-stats {
  display: flex;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ig-stats li { flex: 1; text-align: center; }
.ig-stats strong { display: block; font-size: 1rem; font-weight: 700; line-height: 1.2; }
.ig-stats span { font-size: .78rem; }
.ig-bio { margin: 0; padding: .7rem 1rem 0; font-size: .92rem; line-height: 1.35; }
.ig-bio-muted { margin: 0; padding: .2rem 1rem 0; color: #d0d0d0; font-size: .82rem; }
.ig-profile-actions { display: flex; gap: .4rem; padding: .75rem 1rem .2rem; }
@media (min-width: 800px) {
  .ig-profile-head { padding: 1.25rem 1.5rem .35rem; }
  .ig-bio, .ig-bio-muted { padding-left: 1.5rem; padding-right: 1.5rem; }
  .ig-profile-actions { max-width: 28rem; padding-left: 1.5rem; padding-right: 1.5rem; }
  .ig-highlights { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (max-width: 420px) {
  .ig-profile-head {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: .75rem;
    padding: .75rem .75rem .15rem;
  }
  .ig-avatar.lg { width: 74px; height: 74px; font-size: 1.55rem; }
  .ig-profile-id h1 { font-size: 1rem; margin-bottom: .4rem; }
  .ig-stats span { font-size: .7rem; }
  .ig-bio, .ig-bio-muted { padding-left: .75rem; padding-right: .75rem; }
  .ig-profile-actions, .ig-highlights { padding-left: .75rem; padding-right: .75rem; }
}
.ig-pill {
  flex: 1;
  border: 0;
  background: #2a2a2a;
  color: #f4f4f4;
  font-weight: 600;
  font-size: .9rem;
  border-radius: 8px;
  padding: .45rem .75rem;
}
.ig-pill:hover { background: #333333; color: #f4f4f4; }
.ig-composer { margin: .8rem 1rem 0; }
@media (min-width: 800px) {
  .ig-composer { max-width: 42rem; margin-left: 1.5rem; margin-right: 1.5rem; }
}
.ig-composer.is-hidden { display: none; }
.ig-composer.album-upload {
  box-shadow: none;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
}
.ig-kind-row {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 6vw, 2.5rem);
  padding: .15rem 0 .15rem;
}
.ig-kind {
  width: 84px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #f4f4f4;
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
}
.ig-kind-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto .4rem;
  border-radius: 50%;
  border: 1px solid #3a3a3a;
  background: #171717;
  display: grid;
  place-items: center;
}
.ig-kind:hover .ig-kind-icon,
.ig-kind:focus-visible .ig-kind-icon { background: #2a2a2a; }
.ig-sheet {
  border: 0;
  padding: 0 0 env(safe-area-inset-bottom);
  width: 100%;
  max-width: none;
  max-height: 92dvh;
  margin: auto auto 0;
  border-radius: 20px 20px 0 0;
  color: #f4f4f4;
  background: #171717;
}
.ig-sheet::backdrop { background: rgba(0, 0, 0, .45); }
.ig-sheet[open] { display: flex; flex-direction: column; }
.ig-sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1rem .35rem;
}
.ig-sheet-top strong { font-size: 1.05rem; }
.ig-sheet-top form { margin: 0; }
.ig-sheet-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #2a2a2a;
  color: #f4f4f4;
  font-size: 1.35rem;
  line-height: 1;
}
.ig-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: .35rem 1rem 1.15rem;
}
.ig-sheet-btn {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: 100%;
  margin: 0;
  border: 1px solid #333333;
  background: #1c1c1c;
  color: #f4f4f4;
  border-radius: 14px;
  padding: .95rem 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.ig-sheet-btn:hover,
.ig-sheet-btn:focus-visible { background: #2a2a2a; color: #f4f4f4; }
.ig-sheet .album-file-name { margin: 0 1rem 1rem; }
.ig-sheet .album-audio-live,
.ig-sheet .album-capture { margin: 0 1rem .75rem; }
.ig-sheet-note { padding: .25rem 1rem 1.15rem; }
.ig-sheet-note textarea { border-radius: 14px; min-height: 140px; }
.ig-sheet-send {
  width: 100%;
  margin-top: .7rem;
  border: 0;
  border-radius: 12px;
  background: #f4f4f4;
  color: #111;
  font-weight: 700;
  padding: .75rem 1rem;
}
@media (min-width: 700px) {
  .ig-sheet {
    width: min(440px, calc(100% - 2rem));
    margin: auto;
    border-radius: 20px;
  }
}
.ig-composer-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.ig-composer-head h2 { font-size: 1.05rem; margin: 0; }
.ig-text-btn { border: 0; background: transparent; color: #d0d0d0; font-weight: 600; padding: 0; }
.album-quota { font-weight: 700; color: var(--qg-green-dark); }
.album-expired { background: #171717; border-radius: 18px; padding: 1.5rem; text-align: center; }
.album-upload { background: #171717; border-radius: 18px; padding: 1.2rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.album-stack { display: flex; flex-direction: column; gap: 1rem; }
.album-block {
  border: 1px solid #333333;
  border-radius: 16px;
  padding: 1rem;
  background: #1c1c1c;
}
.album-block h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.album-actions { display: flex; flex-direction: column; gap: .55rem; }
.album-file-btn { position: relative; width: 100%; margin: 0; cursor: pointer; }
.album-file-btn input,
.album-native-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.album-file-name { font-size: .85rem; color: var(--qg-muted); margin: .55rem 0 .75rem; }
.album-file-name.is-hidden { display: none; }
.album-capture {
  background: #1c1c1c;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: .85rem;
}
.album-capture.is-hidden,
.album-audio-live.is-hidden { display: none; }
.album-capture video { width: 100%; max-height: min(70dvh, 520px); object-fit: cover; display: block; background: #000; }
.album-capture-bar { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem; }
.album-capture-bar .btn { flex: 1 1 120px; }
.album-capture-status { color: #d0d0d0; font-size: .85rem; padding: 0 .75rem .75rem; margin: 0; }
.album-audio-live {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #1c1c1c;
  color: #fff;
  border-radius: 12px;
  padding: .75rem 1rem;
  margin-bottom: .75rem;
}
.album-rec-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: #ff5a5a;
  box-shadow: 0 0 0 0 rgba(255, 90, 90, .7);
  animation: album-pulse 1.2s infinite;
}
@keyframes album-pulse {
  70% { box-shadow: 0 0 0 .45rem rgba(255, 90, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0); }
}
.album-capture-bar .is-recording,
#btnRecVideo.is-recording { background: #c44545; border-color: #c44545; color: #fff; }
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem;
}
.album-grid figure { margin: 0; background: #171717; border-radius: 12px; overflow: hidden; }
.album-grid img, .album-grid video { width: 100%; height: 150px; object-fit: cover; display: block; }
.album-grid figcaption { font-size: .78rem; padding: .4rem .55rem; color: var(--qg-muted); }
.album-note { background: #171717; border-radius: 12px; padding: .85rem 1rem; margin-bottom: .65rem; }
.ig-feed { color: #f4f4f4; }
.ig-highlights {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: .9rem 1rem .35rem;
  scrollbar-width: none;
}
.ig-highlights::-webkit-scrollbar { display: none; }
.ig-highlight {
  width: 74px;
  flex: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: #f4f4f4;
  font-size: .75rem;
  text-align: center;
  cursor: pointer;
}
.ig-highlight-ring {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto .35rem;
  border-radius: 50%;
  padding: 3px;
  border: 1px solid #3a3a3a;
  background: #171717;
  overflow: hidden;
}
.ig-highlight.is-new .ig-highlight-ring { color: #f4f4f4; }
.ig-highlight-ring img,
.ig-highlight-ring video,
.ig-highlight-ring .ig-fallback {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}
.ig-highlight-ring .ig-fallback {
  display: grid;
  place-items: center;
}
.ig-highlight-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ig-tabs {
  display: flex;
  border-top: 1px solid #2a2a2a;
  margin-top: .45rem;
}
.ig-tabs button {
  flex: 1;
  border: 0;
  border-top: 1px solid transparent;
  margin-top: -1px;
  background: transparent;
  color: #9a9a9a;
  padding: .7rem 0 .55rem;
}
.ig-tabs button.is-on { color: #f4f4f4; border-top-color: #f4f4f4; }
.ig-tabs .ig-ico { width: 22px; height: 22px; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.ig-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #2a2a2a;
}
.ig-cell-hit {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.ig-cell-hit img,
.ig-cell-hit video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ig-tile {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .15rem;
  padding: .7rem;
}
.ig-tile p {
  margin: 0;
  font-size: .75rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-tile strong { font-size: .7rem; }
.ig-tile-note { background: linear-gradient(160deg, #2a241c, #3a3124); color: #f3eadc; }
.ig-tile-audio { background: linear-gradient(160deg, #2a2a2a, #3a3a3a); color: #fff; }
.ig-tile-mark { font-size: 1.3rem; margin-bottom: auto; }
.ig-badges {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  gap: .25rem;
  pointer-events: none;
}
.ig-badge {
  font-size: .62rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  border-radius: 4px;
  padding: .12rem .32rem;
}
.ig-play {
  position: absolute;
  top: 6px;
  right: 6px;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45));
}
.ig-play svg { width: 18px; height: 18px; fill: #fff; }
.ig-empty { color: #d0d0d0; padding: 1.5rem 1rem; margin: 0; }
.ig-avatar {
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  font-weight: 700;
  color: #fff;
  background: hsl(var(--hue, 152), 38%, 34%);
  box-shadow: 0 0 0 1px #3a3a3a;
}
.ig-avatar.lg { width: 86px; height: 86px; font-size: 2rem; }
.ig-avatar.sm { width: 34px; height: 34px; font-size: .85rem; box-shadow: none; }
.ig-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-fallback {
  display: grid;
  place-items: center;
  background: hsl(var(--hue, 152), 38%, 34%);
  color: #fff;
  font-weight: 700;
}
.ig-feed-view {
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  background: #171717;
  color: #f4f4f4;
  overflow: hidden;
}
.ig-feed-view::backdrop { background: #171717; }
.ig-feed-view[open] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  display: flex;
  flex-direction: column;
}
.ig-post-top {
  flex: none;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  min-height: calc(48px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 6px 2px;
  border-bottom: 1px solid #2a2a2a;
  background: #171717;
}
.ig-post-top strong { text-align: center; font-size: 1rem; font-weight: 700; }
.ig-post-body { flex: 1; overflow: auto; }
.ig-entry + .ig-entry { border-top: 8px solid #1c1c1c; }
.ig-entry-media { background: #000; display: flex; align-items: center; justify-content: center; min-height: 180px; }
.ig-entry-media.is-text { background: #1c1c1c; }
.ig-entry-media img,
.ig-entry-media video {
  width: 100%;
  max-width: 100%;
  max-height: calc(100dvh - 11rem);
  object-fit: contain;
  display: block;
  background: #000;
}
.ig-stage-audio {
  width: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #fff;
  font-size: 2.4rem;
  padding: 2rem 1rem;
}
.ig-stage-audio audio { width: min(100%, 360px); }
.ig-stage-note {
  margin: 1.4rem 1rem;
  padding: 1.5rem 1.15rem;
  background: #2a241c;
  color: #f3eadc;
  border-radius: 16px;
  font-size: 1.08rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.ig-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .15rem .35rem 0;
}
.ig-actions-side { display: flex; align-items: center; }
.ig-actions form { margin: 0; }
.ig-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f4f4f4;
  padding: 0;
  text-decoration: none;
}
.ig-icon-btn:hover,
.ig-icon-btn:focus-visible { background: #2a2a2a; color: #f4f4f4; }
.ig-icon-btn.is-on { color: #f4f4f4; }
.ig-icon-btn.is-danger:hover,
.ig-icon-btn.is-danger:focus-visible { color: #c62828; background: #fdecec; }
.ig-ico {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ig-ico.is-filled { fill: currentColor; }
.ig-byline {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .15rem .9rem .2rem;
}
.ig-byline strong { display: block; font-size: .92rem; line-height: 1.2; color: #f4f4f4; }
.ig-byline div span { color: #d0d0d0; font-size: .8rem; }
.album-public .album-expired { margin: 1rem; }
.ig-caption {
  margin: 0;
  padding: .15rem .9rem 0;
  font-size: .92rem;
  white-space: pre-wrap;
}
.ig-time {
  display: block;
  color: #d0d0d0;
  font-size: .75rem;
  padding: .35rem .9rem .9rem;
}
.ig-toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  background: #2a2a2a;
  color: #f4f4f4;
  font-size: .82rem;
  font-weight: 600;
  padding: .6rem .85rem;
  border-radius: 10px;
  z-index: 80;
}

.album-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.album-tile {
  background: #171717;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.album-tile-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  max-height: 180px;
  background: linear-gradient(145deg, #242424, #3a3a3a);
  overflow: hidden;
}
.album-tile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.album-tile-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
}
.album-status {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: .72rem;
  font-weight: 800;
  padding: .28rem .6rem;
  border-radius: 999px;
  background: #171717;
  color: var(--qg-ink);
}
.album-status-wait { background: #1717174d6; color: #8a5a00; }
.album-status-on { background: #2a2a2a; color: #dcdcdc; }
.album-status-off { background: #e8eeeb; color: #5b6c64; }
.album-status-fail { background: #fde8e8; color: #9b1c1c; }
.album-tile-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.album-tile-meta {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  font-size: .75rem;
  font-weight: 700;
  color: var(--qg-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.album-tile-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}
.album-tile-body h3 a { color: inherit; }
.album-tile-date { color: var(--qg-muted); font-size: .88rem; margin: 0; }
.album-tile-quota {
  height: 6px;
  background: #2a2a2a;
  border-radius: 999px;
  overflow: hidden;
  margin-top: .35rem;
}
.album-tile-quota-bar {
  height: 100%;
  background: var(--qg-green);
  border-radius: 999px;
}
.album-tile-stats {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  font-size: .82rem;
  color: var(--qg-muted);
  font-weight: 600;
}
.album-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
  padding-top: .55rem;
}
.album-pager .page-link {
  border-radius: 10px;
  margin: 0 .15rem;
  color: var(--qg-green-dark);
  border-color: #2c2c2c;
  font-weight: 700;
}
.album-pager .page-item.active .page-link {
  background: #f4f4f4;
  border-color: #f4f4f4;
  color: #111;
}
.navbar-toggler { border-color: #3a3a3a; }
.navbar-toggler-icon { filter: invert(1); }
.form-control,
.form-select,
.input-group-text {
  background-color: #1c1c1c;
  border-color: #3a3a3a;
  color: #f4f4f4;
}
.form-control:focus,
.form-select:focus {
  background-color: #1c1c1c;
  border-color: #8a8a8a;
  color: #f4f4f4;
  box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .08);
}
.form-control::placeholder { color: #8a8a8a; }
.form-text,
.text-muted { color: #d0d0d0 !important; }
.text-danger { color: #ffb4b4 !important; }
.btn-outline-dark,
.btn-outline-secondary,
.btn-outline-primary {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, .08);
  font-weight: 700;
}
.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: #ffffff;
  border-color: #ffffff;
  color: #111111;
}
.btn-outline-danger {
  color: #ffb4b4;
  border-color: #8a3a3a;
}
.btn-outline-danger:hover,
.btn-outline-danger:focus {
  background: #5c2424;
  border-color: #8a3a3a;
  color: #fff;
}
.alert-success {
  background: #1c1c1c;
  border-color: #3a3a3a;
  color: #f4f4f4;
}
.alert-danger {
  background: #2a1717;
  border-color: #6a3030;
  color: #ffd0d0;
}
.table { color: #f4f4f4; }
.table > :not(caption) > * > * { background-color: transparent; color: #f4f4f4; border-color: #2c2c2c; }
code { color: #f4f4f4; background: #222; padding: .1rem .35rem; border-radius: 6px; }
.dropdown-menu { background: #1c1c1c; border-color: #333; }
.dropdown-item { color: #f4f4f4; }
.dropdown-item:hover { background: #2a2a2a; color: #fff; }
.album-pager .page-item.disabled .page-link { color: #8d8d8d; }
