:root {
  --bg: #07080c;
  --bg-2: #0c0e14;
  --elev: #11131b;
  --soft: #161922;
  --panel: rgba(14, 16, 24, 0.72);
  --text: #f4f1ea;
  --dim: #a4a6b3;
  --faint: #6c6e7c;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.14);
  --lime: #d8ff4a;
  --lime-2: #b6e22a;
  --ink: #0b0c08;
  --cyan: #5ce1ff;
  --mag: #d46bff;
  --pink: #ff6ad5;
  --orange: #ff8a3d;
  --danger: #ff6b7a;
  --ok: #3ee0a0;
  --holo: linear-gradient(120deg, #5ce1ff 0%, #d46bff 42%, #ff6ad5 68%, #d8ff4a 100%);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  --r: 20px;
  --r-sm: 12px;
  --nav: 248px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.055;
  background: url("../assets/img/grain.png");
  mix-blend-mode: overlay;
}
.orbs {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  animation: drift 18s var(--ease) infinite alternate;
}
.orbs .o1 { width: 420px; height: 420px; left: -80px; top: -60px; background: #5ce1ff; }
.orbs .o2 { width: 380px; height: 380px; right: -60px; top: 20%; background: #d46bff; animation-delay: -6s; }
.orbs .o3 { width: 340px; height: 340px; left: 30%; bottom: -80px; background: #d8ff4a; opacity: 0.16; animation-delay: -11s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s, opacity 0.18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(216, 255, 74, 0.18);
}
.btn-primary:hover { background: #e4ff78; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-soft {
  background: rgba(216, 255, 74, 0.1);
  color: var(--lime);
  border: 1px solid rgba(216, 255, 74, 0.18);
}
.btn-danger {
  background: rgba(255, 107, 122, 0.12);
  color: #ff9aa5;
  border: 1px solid rgba(255, 107, 122, 0.22);
}
.btn-full { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; border-radius: 11px; font-size: 13px; }
.ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #e8e6df;
}
.ico:hover { background: rgba(255, 255, 255, 0.1); }
.ico.on { color: var(--lime); border-color: rgba(216, 255, 74, 0.3); background: rgba(216, 255, 74, 0.08); }

.holo-text {
  background: var(--holo);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(216, 255, 74, 0.2);
  background: rgba(216, 255, 74, 0.08);
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* LOGIN */
.login {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}
.mosaic-side {
  position: relative;
  overflow: hidden;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.mosaic {
  position: absolute;
  inset: -40px;
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1fr;
  grid-template-rows: 1.1fr 0.7fr 1fr;
  gap: 14px;
  transform: rotate(-6deg) scale(1.12);
  filter: saturate(1.05) contrast(1.05);
}
.mosaic .tile {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.mosaic .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken 22s ease-in-out infinite alternate;
}
.mosaic .t1 { grid-area: 1 / 1 / 3 / 2; }
.mosaic .t2 { grid-area: 1 / 2 / 2 / 4; animation-delay: -4s; }
.mosaic .t3 { grid-area: 2 / 2 / 3 / 3; }
.mosaic .t4 { grid-area: 2 / 3 / 4 / 4; }
.mosaic .t5 { grid-area: 3 / 1 / 4 / 3; }
.mosaic .tile:nth-child(2) img { animation-delay: -7s; }
.mosaic .tile:nth-child(3) img { animation-delay: -12s; }
.mosaic .tile:nth-child(4) img { animation-delay: -3s; }
@keyframes ken {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.14) translate(-2%, -2%); }
}
.mosaic-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 12, 0.15) 0%, rgba(7, 8, 12, 0.2) 40%, rgba(7, 8, 12, 0.88) 100%),
    radial-gradient(circle at 20% 20%, rgba(216, 255, 74, 0.12), transparent 32%);
}
.login-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.login-copy h1 {
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 5.6vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin: 16px 0 18px;
}
.login-copy p {
  max-width: 520px;
  color: #c8c9d1;
  font-size: 17px;
  line-height: 1.6;
}
.login-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.login-feats span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  font-size: 12px;
  font-weight: 650;
  color: #dddfe8;
}
.form-side {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(12, 14, 20, 0.55), rgba(7, 8, 12, 0.92));
  border-left: 1px solid var(--line);
  backdrop-filter: blur(22px);
}
.login-card {
  width: min(420px, 100%);
  padding: 28px 26px 24px;
  border-radius: 24px;
  background: rgba(17, 19, 27, 0.78);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}
.brand-row strong {
  display: block;
  font-family: Syne, sans-serif;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.brand-row small { color: var(--dim); font-size: 12px; }
.login-card h2 {
  font-family: Syne, sans-serif;
  font-size: 30px;
  letter-spacing: -0.04em;
}
.field { display: grid; gap: 7px; }
.field span { font-size: 13px; font-weight: 650; color: #d7d8e0; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #0b0d13;
  outline: none;
}
.field input:focus { border-color: rgba(216, 255, 74, 0.55); box-shadow: 0 0 0 4px rgba(216, 255, 74, 0.1); }
.hint { color: var(--faint); font-size: 12px; }
.hint code {
  color: var(--lime);
  background: rgba(216, 255, 74, 0.08);
  padding: 1px 6px;
  border-radius: 6px;
}
.login-foot {
  text-align: center;
  color: var(--faint);
  font-size: 12px;
}
.login-foot a { color: var(--dim); border-bottom: 1px solid var(--line-2); }

/* APP SHELL */
.shell {
  position: relative;
  z-index: 1;
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--nav) 1fr;
}
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 14, 20, 0.92), rgba(7, 8, 12, 0.96));
  backdrop-filter: blur(18px);
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 18px;
}
.side-brand img { width: 42px; height: 42px; object-fit: contain; }
.side-brand strong {
  font-family: Syne, sans-serif;
  font-size: 16px;
  letter-spacing: -0.03em;
  display: block;
}
.side-brand small { color: var(--faint); font-size: 11px; }
.nav { display: grid; gap: 4px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--dim);
  font-weight: 650;
  font-size: 14px;
}
.nav a svg { width: 18px; height: 18px; flex: 0 0 auto; opacity: 0.85; }
.nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.nav a.active {
  background: rgba(216, 255, 74, 0.1);
  color: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(216, 255, 74, 0.12);
}
.nav-label {
  margin: 18px 12px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.side-foot { margin-top: auto; display: grid; gap: 12px; }
.quota {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.quota-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-bottom: 8px; }
.bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--holo);
  background-size: 200% 100%;
}
.userchip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--ink);
  background: var(--holo);
}
.userchip strong { display: block; font-size: 13px; }
.userchip small { color: var(--faint); font-size: 11px; }

.main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100dvh;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 12, 0.55);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--dim);
  max-width: 560px;
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
  color: var(--text);
}
.kbd {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--faint);
}
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
#view {
  overflow: auto;
  height: 100%;
  padding: 26px 28px 80px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.page-head h1 {
  font-family: Syne, sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1;
  margin-top: 6px;
}
.page-head p { color: var(--dim); margin-top: 8px; max-width: 560px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* HOME */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 360px;
  isolation: isolate;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero img, .hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken 26s ease-in-out infinite alternate;
}
.hero .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.1), rgba(7, 8, 12, 0.82));
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 36px;
  max-width: 640px;
  margin-top: 80px;
}
.hero-copy h2 {
  font-family: Syne, sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 10px 0 12px;
}
.hero-copy p { color: #d0d1d8; margin-bottom: 18px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 28px;
}
.stat {
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
}
.stat span { display: block; color: var(--faint); font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.stat strong {
  display: block;
  margin-top: 8px;
  font-family: Syne, sans-serif;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.stat small { color: var(--dim); font-size: 12px; }

.section { margin-top: 28px; }
.section-h {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-h h3 {
  font-family: Syne, sans-serif;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.section-h a { color: var(--lime); font-weight: 700; font-size: 13px; }

.album-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.album-row::-webkit-scrollbar { height: 8px; }
.album-card {
  position: relative;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  background: var(--elev);
  border: 1px solid var(--line);
  transition: transform 0.22s var(--ease), border-color 0.22s;
  cursor: pointer;
  color: inherit;
}
.album-card:hover { transform: translateY(-4px); border-color: rgba(216, 255, 74, 0.28); }
.album-card.picked { outline: 2px solid var(--lime); outline-offset: 2px; }
.album-card.picked .check {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.album-dl-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  opacity: 0;
  transition: opacity .16s;
}
.album-card:hover .album-dl-btn,
.album-grid.selecting .album-dl-btn { opacity: 1; }
.album-grid.selecting .check { display: grid; place-items: center; }
.stack {
  position: relative;
  height: 148px;
  background: #0a0b10;
}
.stack img {
  position: absolute;
  inset: 16px 18px 10px;
  width: calc(100% - 36px);
  height: calc(100% - 26px);
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.stack img.b { transform: rotate(-7deg) translate(-6px, 4px); opacity: 0.55; filter: saturate(0.8); }
.stack img.c { transform: rotate(6deg) translate(8px, 2px); opacity: 0.4; }
.stack img.a { transform: rotate(-0.5deg); }
.album-body { padding: 12px 14px 14px; }
.album-body h4 { font-size: 15px; letter-spacing: -0.02em; }
.album-body small { color: var(--faint); }

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.album-grid .stack { height: 168px; }

/* MEDIA */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dim);
  font-weight: 650;
  font-size: 13px;
}
.chip.on {
  background: rgba(216, 255, 74, 0.12);
  color: var(--lime);
  border-color: rgba(216, 255, 74, 0.25);
}
.seg {
  display: flex;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  margin-left: auto;
}
.seg button {
  width: 36px;
  height: 32px;
  border-radius: 9px;
  color: var(--dim);
  display: grid;
  place-items: center;
}
.seg button.on { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.masonry {
  columns: 4;
  column-gap: 12px;
}
.mcard {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0a0b10;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.mcard img, .mcard video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}
.mcard:hover img, .mcard:hover video { transform: scale(1.04); }
.mcard .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transform: translateY(6px);
  transition: 0.2s var(--ease);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  pointer-events: none;
}
.mcard:hover .meta { opacity: 1; transform: none; }
.mcard .meta strong { font-size: 12px; }
.mcard .meta small { color: #c9cad1; font-size: 11px; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 750;
}
.heart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
}
.mcard:hover .heart, .heart.on { opacity: 1; }
.heart.on { color: var(--lime); }
.heart.on svg { fill: currentColor; }
.check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.25);
  display: none;
}
.selecting .check { display: block; }
.selecting .badge { display: none; }
.mcard.picked { outline: 2px solid var(--lime); outline-offset: 2px; }
.mcard.picked .check {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.grid .mcard img, .grid .mcard video { aspect-ratio: 1; object-fit: cover; height: 100%; }

.timeline { display: grid; gap: 26px; }
.tl-h {
  font-family: Syne, sans-serif;
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.bulk {
  position: sticky;
  bottom: 18px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(12, 14, 20, 0.88);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

/* UPLOAD */
.drop {
  border: 1.5px dashed rgba(216, 255, 74, 0.28);
  border-radius: 24px;
  padding: 42px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 255, 74, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.015);
  transition: 0.18s;
}
.drop.over {
  border-color: var(--lime);
  background: rgba(216, 255, 74, 0.08);
}
.drop h2 {
  font-family: Syne, sans-serif;
  font-size: 32px;
  letter-spacing: -0.04em;
  margin: 8px 0;
}
.drop p { color: var(--dim); margin-bottom: 16px; }
.queue { display: grid; gap: 10px; margin-top: 18px; }
.qitem {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--elev);
  border: 1px solid var(--line);
}
.qitem img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.qitem strong { display: block; font-size: 13px; }
.qitem small { color: var(--faint); }
.prog {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 7px;
  overflow: hidden;
}
.prog i { display: block; height: 100%; background: var(--holo); }

/* SETTINGS / SHARE */
.cards-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}
.panel {
  padding: 20px;
  border-radius: 20px;
  background: var(--elev);
  border: 1px solid var(--line);
}
.panel h3 { font-family: Syne, sans-serif; margin-bottom: 6px; }
.panel p { color: var(--dim); font-size: 13px; margin-bottom: 14px; }
.kv { display: grid; gap: 10px; }
.kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.kv dt { color: var(--dim); }
.user-list { display: grid; gap: 10px; }
.user-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.share-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 10px;
}
.link {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--cyan);
}

/* LIGHTBOX */
.lb {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 5, 8, 0.92);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-rows: 60px 1fr auto;
}
.lb-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.lb-bar strong { font-size: 14px; }
.lb-bar small { color: var(--dim); }
.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 16px;
}
.lb-stage img, .lb-stage video {
  max-width: min(92vw, 1400px);
  max-height: calc(100dvh - 210px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.navbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  color: #fff;
  display: grid;
  place-items: center;
}
.navbtn.prev { left: 18px; }
.navbtn.next { right: 18px; }
.navbtn:hover { background: rgba(255, 255, 255, 0.12); }
.lb-film {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 18px 18px;
}
.lb-film button {
  flex: 0 0 72px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.45;
  border: 2px solid transparent;
}
.lb-film button img { width: 100%; height: 100%; object-fit: cover; }
.lb-film button.on { opacity: 1; border-color: var(--lime); }
.lb-info {
  width: min(340px, 92vw);
  padding: 16px;
  border-left: 1px solid var(--line);
  background: rgba(10, 12, 18, 0.7);
  overflow: auto;
}
.lb-with-info {
  display: grid;
  grid-template-columns: 1fr 340px;
}
.lb-with-info .lb-stage { grid-column: 1; }

/* CMDK */
.cmd {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 5, 8, 0.55);
  display: grid;
  place-items: start center;
  padding-top: 12vh;
}
.cmd-box {
  width: min(640px, calc(100vw - 24px));
  border-radius: 18px;
  background: #12141c;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cmd-box input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  outline: none;
  font-size: 16px;
}
.cmd-list { max-height: 360px; overflow: auto; border-top: 1px solid var(--line); }
.cmd-item {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}
.cmd-item:hover, .cmd-item.on { background: rgba(216, 255, 74, 0.08); }
.cmd-item small { color: var(--faint); }

/* MODAL + TOAST */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(4, 5, 8, 0.6);
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal {
  width: min(460px, 100%);
  border-radius: 20px;
  background: #12141c;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  padding: 20px;
}
.modal h3 { font-family: Syne, sans-serif; margin-bottom: 8px; }
.modal .row { display: flex; gap: 8px; justify-content: end; margin-top: 16px; }
#toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 8px;
}
.toast {
  min-width: 240px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #151821;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 650;
}

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--dim);
  border: 1px dashed var(--line-2);
  border-radius: 20px;
}
.empty h3 { color: var(--text); font-family: Syne, sans-serif; margin-bottom: 6px; }

.mobile-top, .mobile-nav { display: none; }

@media (max-width: 1100px) {
  .masonry { columns: 3; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  body { overflow: auto; }
  .login { grid-template-columns: 1fr; }
  .mosaic-side { min-height: 38vh; padding: 22px; }
  .login-copy h1 { font-size: 36px; }
  .form-side { padding: 16px 16px 28px; border-left: 0; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-top .brand-row img { width: 38px; height: 38px; }
  #view { padding: 18px 14px 110px; }
  .masonry { columns: 2; }
  .page-head { display: block; }
  .page-head .actions { margin-top: 12px; }
  .hero { min-height: 280px; }
  .hero-copy { margin-top: 40px; padding: 20px; }
  .topbar { padding: 8px 12px; }
  .search { max-width: none; }
  .kbd { display: none; }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 30;
    padding: 6px;
    border-radius: 18px;
    background: rgba(12, 14, 20, 0.92);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(16px);
  }
  .mobile-nav a {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 52px;
    border-radius: 12px;
    color: var(--dim);
    font-size: 10px;
    font-weight: 700;
  }
  .mobile-nav a.active { color: var(--lime); background: rgba(216, 255, 74, 0.08); }
  .lb-with-info { grid-template-columns: 1fr; }
  .lb-info { display: none; }
  .navbtn { width: 40px; height: 40px; }
  .navbtn.prev { left: 8px; }
  .navbtn.next { right: 8px; }
}
@media (max-width: 420px) {
  .masonry { columns: 2; gap: 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* custom scrollbar */
#view::-webkit-scrollbar, .cmd-list::-webkit-scrollbar { width: 10px; }
#view::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
