/* ============================================================
   橙子video clone — independently implemented visual system
   Tokens mirrored from observable product surfaces.
   ============================================================ */
:root {
  --background: #0f0f0f;
  --background-canvas: #0a0a0a;
  --foreground: #f5f5f5;
  --card: #1f1f1f;
  --popover: #262626;
  --primary: #1fa2dc;
  --accent: #90c4e5;
  --muted: #2b2b2b;
  --muted-foreground: #7a7a7a;
  --text-1: #e6e6e6;
  --text-2: #9c9c9c;
  --text-3: #737373;
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --input: rgba(255, 255, 255, 0.15);
  --chat: #141414;
  --chat-bubble: #2e2e2e;
  --yellow: #ffe45f;
  --green: #63d99a;
  --red: #ff6163;
  --radius: 12px;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Instrument Sans", "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.55);
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

::selection {
  color: #0a0a0a;
  background: var(--accent);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border: 3px solid transparent;
  border-radius: 8px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.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;
}

/* ---------- boot ---------- */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  background: #0d0d0d;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.boot-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
  animation: boot-breathe 1.8s ease-in-out infinite;
}

.boot-word {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.boot-line {
  width: 96px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.boot-line span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  animation: boot-line 1.2s ease-in-out infinite;
}

@keyframes boot-line {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(280%);
  }
}

@keyframes boot-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

/* ---------- primitives ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-1);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.16s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  color: #0a0a0a;
  background: #f5f5f5;
  border-color: #f5f5f5;
  font-weight: 600;
}

.btn-primary:hover {
  background: #fff;
  border-color: #fff;
}

.btn-blue {
  color: #fff;
  background: var(--primary);
  border-color: transparent;
  font-weight: 600;
}

.btn-blue:hover {
  background: #35b1e9;
  border-color: transparent;
}

.btn-yellow {
  color: #101010;
  background: var(--yellow);
  border-color: var(--yellow);
  font-weight: 600;
}

.btn-yellow:hover {
  background: #ffe97f;
  border-color: #ffe97f;
}

.btn-sm {
  height: 30px;
  padding: 0 11px;
  font-size: 12px;
}

.btn-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--text-2);
  background: transparent;
  transition: background 0.16s, color 0.16s;
}

.icon-btn:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn.is-on {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.1);
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(99, 217, 154, 0.1);
}

.glass {
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(22px) saturate(130%);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #7e5bff, #f0a2b6);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: var(--text-2);
  font: 10px/1 var(--font-mono);
}

.dot-grid {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.085) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  padding: 0 26px;
  background: rgba(10, 10, 10, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 0.2s, background 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(10, 10, 10, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  height: 32px;
}

.brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  margin-left: 9px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.header-download {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border: 0;
  border-radius: 50%;
  color: #9a9a9a;
  background: transparent;
}

.header-download:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #b9b9b9;
  font-size: 13.5px;
  transition: color 0.16s, background 0.16s;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.main-nav a.is-active::after {
  display: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.header-link {
  padding: 0 10px;
  color: #b9b9b9;
  font-size: 13.5px;
}

.header-link:hover {
  color: #fff;
}

.header-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12px;
}

.header-credit b {
  color: var(--text-1);
  font-weight: 600;
}

.mobile-menu {
  display: none;
}

/* ---------- home shell ---------- */
.home {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(67, 97, 118, 0.23), transparent 65%),
    radial-gradient(700px 400px at 82% 22%, rgba(65, 44, 91, 0.12), transparent 60%),
    #0b0b0b;
}

.home::before {
  position: absolute;
  inset: 0 0 auto;
  height: 780px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
  content: "";
  pointer-events: none;
}

.home-inner {
  position: relative;
  z-index: 1;
  width: min(1552px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 70px 0 34px;
  text-align: center;
}

.hero-promo {
  position: absolute;
  top: 16px;
  right: clamp(90px, 11vw, 180px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #b9b9b9;
  background: rgba(22, 22, 22, 0.8);
  font-size: 9.5px;
  transform: rotate(-2deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.hero-promo b {
  color: #ececec;
  font-weight: 550;
}

.hero-promo:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 26px;
  color: #f7f7f7;
  font-family: var(--font-display);
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.hero-title img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.prompt-shell {
  position: relative;
  width: min(768px, 100%);
  margin: 0 auto;
  padding: 17px 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #171717, #121212);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.03);
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.prompt-shell:focus-within {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.035);
}

.prompt-shell textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  max-height: 160px;
  padding: 4px 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f0f0f0;
  font-size: 14.5px;
  line-height: 1.55;
  resize: none;
}

.prompt-shell textarea::placeholder {
  color: #777;
}

.prompt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.prompt-actions .spacer {
  flex: 1;
}

.prompt-plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #cfcfcf;
  background: rgba(255, 255, 255, 0.07);
}

.prompt-plus:hover {
  background: rgba(255, 255, 255, 0.13);
}

.ask-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #b9b9b9;
  background: transparent;
  font-size: 12px;
}

.ask-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.prompt-send {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #101010;
  background: #d8d8d8;
  transition: background 0.16s, transform 0.16s;
}

.prompt-send:hover {
  background: #fff;
  transform: translateY(-1px);
}

.prompt-send:disabled {
  background: #333;
  color: #777;
  cursor: not-allowed;
  transform: none;
}

.hero-chips {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 14px;
  width: min(820px, 100%);
  margin: 10px auto 0;
  color: var(--text-3);
  font-size: 11.5px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  border: 0;
  color: #9b9b9b;
  background: transparent;
  font-size: 11.5px;
}

.hero-chip:hover {
  color: #fff;
}

.hero-chip .icon {
  width: 13px;
  height: 13px;
}

.hero-chip.skills {
  margin-left: auto;
  color: #b7b7b7;
}

.hero-chip.connectors {
  color: #b7b7b7;
}

.mini-avatars {
  display: flex;
  margin-left: 2px;
}

.mini-avatars span {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: -5px;
  border: 1px solid #111;
  border-radius: 50%;
  background: linear-gradient(135deg, #8eb8ff, #f6c3e5 60%, #ffde9e);
  color: #1a1a1a;
  font-size: 7px;
  font-weight: 700;
}

/* ---------- campaign ---------- */
.campaign {
  position: relative;
  height: 480px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: #151515;
  isolation: isolate;
}

.campaign::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.72) 27%, rgba(8, 8, 8, 0.12) 58%, rgba(8, 8, 8, 0.05) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 40%);
  content: "";
  pointer-events: none;
}

.campaign-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  transition: transform 8s ease;
}

.campaign:hover .campaign-art {
  transform: scale(1.025);
}

.campaign-copy {
  position: absolute;
  top: 36px;
  left: 40px;
  z-index: 2;
  width: min(430px, 50%);
}

.campaign-kicker {
  margin-bottom: 14px;
  color: #d5d5d5;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.campaign-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.campaign-title span {
  display: block;
}

.campaign-title .yellow {
  color: var(--yellow);
  text-shadow: 0 0 40px rgba(255, 228, 95, 0.18);
}

.campaign-sub {
  margin: 17px 0 18px;
  color: #d7d7d7;
  font-size: 14px;
  line-height: 1.45;
}

.ticker {
  position: absolute;
  right: -3%;
  bottom: 15px;
  left: -3%;
  z-index: 3;
  overflow: hidden;
  padding: 7px 0;
  background: var(--yellow);
  color: #121212;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-1.15deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}

.ticker-track span {
  padding: 0 14px;
  white-space: nowrap;
}

.ticker-track span::after {
  margin-left: 20px;
  content: "✦";
  opacity: 0.55;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- section furniture ---------- */
.section {
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section-head .link {
  color: var(--text-2);
  font-size: 12px;
}

.section-head .link:hover {
  color: #fff;
}

/* ---------- studio campaign bands ---------- */
.studio-band {
  position: relative;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  min-height: 500px;
  margin-top: 16px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #121212;
  isolation: isolate;
}

.studio-band::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(460px 480px at 12% 50%, rgba(74, 86, 214, 0.55), transparent 68%),
    radial-gradient(520px 400px at 0% 100%, rgba(217, 139, 231, 0.5), transparent 70%),
    radial-gradient(620px 460px at 100% 0%, rgba(24, 39, 58, 0.7), transparent 65%),
    #0d1220;
  content: "";
}

.studio-band.astra::before {
  background:
    radial-gradient(560px 420px at 15% 48%, rgba(72, 89, 219, 0.5), transparent 70%),
    radial-gradient(520px 400px at 0% 100%, rgba(220, 142, 226, 0.45), transparent 70%),
    radial-gradient(400px 300px at 45% 0%, rgba(75, 104, 180, 0.4), transparent 60%),
    #10111a;
}

.studio-band.h3::before {
  background:
    radial-gradient(520px 380px at 17% 52%, rgba(62, 96, 112, 0.55), transparent 68%),
    radial-gradient(480px 300px at 2% 100%, rgba(88, 71, 176, 0.38), transparent 70%),
    #0d0e10;
}

.studio-band.seedance::before {
  background:
    radial-gradient(420px 360px at 20% 58%, rgba(134, 125, 96, 0.28), transparent 66%),
    radial-gradient(500px 300px at 0% 100%, rgba(70, 77, 58, 0.35), transparent 70%),
    #0d0d0c;
}

.studio-band::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 19px 19px;
  mask-image: radial-gradient(600px 300px at 20% 55%, #000 20%, transparent 78%);
  content: "";
}

.studio-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.studio-left {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 22px;
  padding: 24px;
  border-radius: 14px;
}

.studio-left p {
  max-width: 210px;
  margin: 0;
  color: #b6b6b6;
  font-size: 12px;
  line-height: 1.55;
}

.studio-left .btn {
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  border-color: transparent;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: center;
  width: 100%;
  max-width: 980px;
  margin-left: auto;
}

.studio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(21, 21, 21, 0.82);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s;
}

.studio-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #1b1b1b;
  transform: translateY(-2px);
}

.studio-card .thumb {
  position: relative;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  background: #181818;
}

.studio-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.studio-card .thumb video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.studio-card:hover .thumb video {
  opacity: 1;
}

.studio-card:hover .thumb img {
  transform: scale(1.04);
}

.studio-card .thumb::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.42));
  content: "";
}

.studio-card .body {
  padding: 9px 10px 11px;
}

.studio-card h3 {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 3px;
  font-size: 11.5px;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.studio-card h3 .arrow {
  opacity: 0;
  transform: translate(-2px, 2px);
  transition: opacity 0.2s, transform 0.2s;
}

.studio-card:hover h3 .arrow {
  opacity: 1;
  transform: none;
}

.studio-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #8d8d8d;
  font-size: 9.5px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.studio-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 4px;
  color: #111;
  background: var(--yellow);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- featured / taptv ---------- */
.featured-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #141414;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.feature-card .media {
  position: relative;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
}

.feature-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card .body {
  padding: 11px 12px 13px;
}

.feature-card h3 {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 550;
}

.feature-card p {
  margin: 0;
  color: var(--text-3);
  font-size: 10.5px;
}

.arrow-btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 15, 15, 0.72);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
}

.arrow-btn:hover {
  background: #222;
}

.arrow-btn.prev {
  left: 10px;
}

.arrow-btn.next {
  right: 10px;
}

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

.taptv-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #131313;
  transition: border-color 0.2s, transform 0.2s;
}

.taptv-card:hover {
  border-color: rgba(255, 255, 255, 0.19);
  transform: translateY(-2px);
}

.taptv-card .media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1b1b1b;
}

.taptv-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s;
}

.taptv-card:hover .media img {
  transform: scale(1.035);
  filter: brightness(0.82);
}

.taptv-card .duration {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #eee;
  background: rgba(0, 0, 0, 0.55);
  font: 9px/1.4 var(--font-mono);
}

.taptv-card .body {
  padding: 8px 9px 9px;
}

.taptv-card .author {
  margin-bottom: 2px;
  color: var(--text-3);
  font-size: 9px;
}

.taptv-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: #e8e8e8;
  font-size: 11px;
  font-weight: 500;
}

.taptv-card h3 .likes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-3);
  font-size: 9px;
  font-weight: 400;
}

.taptv-card .hover-cta {
  position: absolute;
  inset: auto 8px 8px;
  z-index: 2;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s, transform 0.2s;
}

.taptv-card:hover .hover-cta {
  opacity: 1;
  transform: none;
}

.taptv-card .hover-cta span {
  padding: 5px 10px;
  border-radius: 999px;
  color: #111;
  background: #f4f4f4;
  font-size: 10px;
  font-weight: 600;
}

/* ---------- templates ---------- */
.template-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.template-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #151515;
  transition: transform 0.2s;
}

.template-card:hover {
  transform: translateY(-2px);
}

.template-card .media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.template-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s, filter 0.3s;
}

.template-card:hover .media img {
  transform: scale(1.04);
  filter: brightness(0.8);
}

.template-card h3 {
  margin: 0;
  padding: 7px 1px 9px;
  color: #cfcfcf;
  font-size: 10px;
  font-weight: 400;
}

.template-card .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #111;
  background: var(--yellow);
  font-size: 8px;
  font-weight: 700;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 56px;
  padding: 40px 0 30px;
  border-top: 1px solid var(--border-soft);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.footer-brand img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.socials {
  display: flex;
  gap: 6px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  color: #b4b4b4;
}

.socials a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.footer-links {
  margin-top: 26px;
  color: #676767;
  font-size: 10px;
  text-align: center;
}

.footer-links a {
  color: #8a8a8a;
}

.footer-links a:hover {
  color: #ddd;
}

.footer-version {
  margin-top: 9px;
  color: #4d4d4d;
  font: 9px/1 var(--font-mono);
  text-align: center;
}

/* ============================================================
   Canvas
   ============================================================ */
.canvas-page {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--background-canvas);
  user-select: none;
}

.canvas-topbar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(16, 16, 16, 0.92);
  backdrop-filter: blur(18px);
}

.canvas-topbar .project-title {
  display: flex;
  border: 0;
  background: transparent;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 4px 8px;
  border-radius: 7px;
  color: #e3e3e3;
  font-size: 13px;
  font-weight: 500;
}

.canvas-topbar .project-title:hover {
  background: rgba(255, 255, 255, 0.06);
}

.canvas-topbar .project-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-topbar .save-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #777;
  font-size: 10.5px;
}

.canvas-topbar .spacer {
  flex: 1;
}

.canvas-topbar .top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.canvas-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  background-color: #0a0a0a;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 24px 24px;
  cursor: grab;
}

.canvas-stage.is-panning {
  cursor: grabbing;
}

.canvas-stage.theme-paper {
  background-color: #e9e5dc;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
}

.canvas-stage.theme-grid {
  background-color: #0b0b0c;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.canvas-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.canvas-edges {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
}

.edge-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.376);
  stroke-opacity: 0.6;
  stroke-width: 2.5;
  transition: stroke 0.16s, stroke-width 0.16s;
}

.edge-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 16;
  pointer-events: stroke;
  cursor: pointer;
}

.edge-group:hover .edge-path,
.edge-group.is-active .edge-path {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-opacity: 0.85;
}

.edge-flow {
  fill: none;
  stroke: rgba(144, 196, 229, 0.7);
  stroke-dasharray: 3 10;
  stroke-width: 1.4;
  opacity: 0;
  animation: edge-flow 1s linear infinite;
}

.edge-group.is-running .edge-flow {
  opacity: 1;
}

@keyframes edge-flow {
  to {
    stroke-dashoffset: -13;
  }
}

.node {
  position: absolute;
  width: 320px;
  border: 0;
  border-radius: 16px;
  outline: 1px solid rgba(255, 255, 255, 0.2);
  background: #171717;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  cursor: default;
  transition: outline-color 0.14s, box-shadow 0.14s;
}

.node:hover {
  outline-color: rgba(255, 255, 255, 0.45);
}

.node.is-selected {
  outline: 2px solid rgba(122, 122, 122);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.node-label {
  position: absolute;
  top: -24px;
  left: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a6a6a6;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

.node-label .icon {
  width: 13px;
  height: 13px;
}

.node-media {
  position: relative;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background: #101010;
}

.node-media img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.node-media video {
  display: block;
  width: 100%;
}

.node-media .media-tools {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}

.node:hover .media-tools,
.node.is-selected .media-tools {
  opacity: 1;
}

.media-tool {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #ddd;
  background: rgba(10, 10, 10, 0.66);
  backdrop-filter: blur(8px);
}

.media-tool:hover {
  color: #fff;
  background: rgba(40, 40, 40, 0.84);
}

.media-tool.danger:hover {
  color: #ff8a8a;
}

.media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}

.node-caption {
  padding: 10px 12px 12px;
  color: #d4d4d4;
  font-size: 12px;
  line-height: 1.5;
}

.node-caption .prompt {
  display: -webkit-box;
  overflow: hidden;
  color: #c9c9c9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.node-caption .node-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: #7f7f7f;
  font-size: 10.5px;
}

.node-caption .node-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #555;
}

.node-text {
  padding: 14px;
  color: #ddd;
  font-size: 12.5px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.node-text .kicker {
  margin-bottom: 8px;
  color: #747474;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.node-storyboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 6px;
}

.node-storyboard .shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.18;
  border-radius: 5px;
  background: #111;
}

.node-storyboard .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}

.node-storyboard .shot span {
  position: absolute;
  top: 3px;
  left: 3px;
  padding: 1px 3px;
  border-radius: 2px;
  color: #ddd;
  background: rgba(0, 0, 0, 0.55);
  font: 7px/1.3 var(--font-mono);
}

.node-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 112px;
  padding: 16px 14px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #181818, #121212);
}

.node-waveform i {
  display: block;
  flex: 1;
  min-width: 1px;
  border-radius: 2px;
  background: #8dd8f3;
  opacity: 0.8;
}

.node-audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #9a9a9a;
  font: 9px/1 var(--font-mono);
}

.node-audio-controls .play {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.node-running {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.76);
  backdrop-filter: blur(7px);
}

.node-running .ring {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(144, 196, 229, 0.22);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.node-running .progress {
  color: #cfeaf9;
  font: 10px/1 var(--font-mono);
}

.node-running .status {
  color: #999;
  font-size: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.node-progress-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
  background: rgba(255, 255, 255, 0.06);
}

.node-progress-line i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}

.port {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: #1a1a1a;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.15s, border-color 0.15s, transform 0.15s;
  cursor: crosshair;
}

.node:hover .port,
.node.is-selected .port {
  opacity: 1;
}

.port:hover {
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.25);
}

.port.in {
  left: -3px;
}

.port.out {
  right: -3px;
}

.node-add {
  position: absolute;
  z-index: 9;
  top: 50%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  color: #d0d0d0;
  background: #262626;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
}

.node-add.left {
  left: -44px;
  transform: translateY(-50%) translateX(24px);
}

.node-add.right {
  right: -44px;
  transform: translateY(-50%) translateX(-24px);
}

.node:hover .node-add {
  opacity: 1;
}

.node:hover .node-add.left,
.node:hover .node-add.right {
  transform: translateY(-50%) translateX(0);
}

.node-add:hover {
  color: #fff;
  background: #3a3a3a;
}

/* selection toolbar */
.selection-toolbar {
  position: absolute;
  top: 62px;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  background: rgba(24, 24, 24, 0.86);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.selection-toolbar button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: #bfbfbf;
  background: transparent;
  font-size: 10.5px;
}

.selection-toolbar button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.selection-toolbar .divider {
  width: 1px;
  height: 16px;
  margin: 0 3px;
  background: rgba(255, 255, 255, 0.1);
}

/* left rail */
.canvas-rail {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 42px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(22, 22, 22, 0.84);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  transform: translateY(-50%);
}

.rail-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #a8a8a8;
  background: transparent;
  transition: color 0.15s, background 0.15s;
}

.rail-btn:hover,
.rail-btn.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.rail-btn.primary {
  color: #0b0b0b;
  background: #ececec;
}

.rail-btn.primary:hover {
  background: #fff;
}

.rail-sep {
  width: 18px;
  height: 1px;
  margin: 3px 0;
  background: rgba(255, 255, 255, 0.09);
}

.rail-color {
  width: 18px;
  height: 18px;
  margin: 4px 0 2px;
  border: 0;
  border-radius: 50%;
  background: #f2a2c0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.rail-btn .tooltip {
  position: absolute;
  left: 46px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #d8d8d8;
  background: #222;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s;
}

.rail-btn:hover .tooltip {
  opacity: 1;
  transform: none;
}

/* minimap */
.minimap {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 25;
  width: 198px;
  height: 148px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(20, 20, 20, 0.78);
  backdrop-filter: blur(14px);
}

.minimap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.minimap .view {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  pointer-events: none;
}

.zoom-cluster {
  position: absolute;
  bottom: 16px;
  left: 224px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(20, 20, 20, 0.78);
  backdrop-filter: blur(14px);
}

.zoom-cluster button {
  min-width: 26px;
  height: 24px;
  padding: 0 5px;
  border: 0;
  border-radius: 6px;
  color: #b8b8b8;
  background: transparent;
  font: 10px/1 var(--font-mono);
}

.zoom-cluster button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

/* canvas dock */
.canvas-dock-wrap {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 32;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: right 0.28s ease;
}

.canvas-page:not(.agent-closed) .canvas-dock-wrap {
  padding-right: 356px;
}

.canvas-dock {
  width: min(760px, 100%);
  padding: 12px 12px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  background: rgba(27, 27, 27, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(24px);
  pointer-events: auto;
}

.dock-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.dock-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px 0 4px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  color: #b9b9b9;
  background: rgba(255, 255, 255, 0.04);
  font-size: 10px;
}

.dock-attachment img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.dock-attachment button {
  border: 0;
  color: #777;
  background: transparent;
  font-size: 12px;
}

.canvas-dock textarea {
  display: block;
  width: 100%;
  min-height: 43px;
  max-height: 150px;
  padding: 2px 2px 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eee;
  font-size: 13px;
  line-height: 1.55;
  resize: none;
}

.canvas-dock textarea::placeholder {
  color: #767676;
}

.dock-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.dock-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  color: #b8b8b8;
  background: transparent;
  font-size: 10px;
  white-space: nowrap;
}

.dock-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.dock-chip strong {
  color: #e5e5e5;
  font-weight: 500;
}

.dock-controls .spacer {
  flex: 1;
}

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #cfcfcf;
  background: rgba(255, 255, 255, 0.06);
  font-size: 10px;
}

.dock-send {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  border: 0;
  border-radius: 50%;
  color: #101010;
  background: #f2f2f2;
}

.dock-send:hover {
  background: #fff;
}

.dock-hint {
  display: flex;
  justify-content: center;
  margin-top: 5px;
  color: #5e5e5e;
  font-size: 9px;
}

/* slash menu */
.slash-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 292px;
  max-height: 292px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: #202020;
  box-shadow: var(--shadow-lg);
}

.slash-menu .group-label {
  padding: 5px 7px 3px;
  color: #777;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slash-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px;
  border: 0;
  border-radius: 7px;
  color: #dcdcdc;
  background: transparent;
  text-align: left;
}

.slash-item:hover,
.slash-item.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.slash-item .ico {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  color: #b7d9ed;
  background: rgba(144, 196, 229, 0.08);
}

.slash-item .txt b {
  display: block;
  font-size: 11px;
  font-weight: 500;
}

.slash-item .txt span {
  display: block;
  margin-top: 1px;
  color: #7d7d7d;
  font-size: 9.5px;
}

/* agent panel */
.agent-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  width: 356px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: #141414;
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.canvas-page.agent-closed .agent-panel {
  visibility: hidden;
  border-left-color: transparent;
  transform: translateX(101%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.28s;
}

.agent-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-head .mark {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.agent-head .name {
  font-size: 12px;
  font-weight: 550;
}

.agent-head .status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6f6f6f;
  font-size: 9px;
}

.agent-head .spacer {
  flex: 1;
}

.agent-body {
  flex: 1;
  overflow: auto;
  padding: 14px 13px 8px;
}

.agent-intro {
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #191919;
}

.agent-intro h3 {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 550;
}

.agent-intro p {
  margin: 0;
  color: #8f8f8f;
  font-size: 10.5px;
  line-height: 1.55;
}

.agent-msg {
  display: flex;
  gap: 8px;
  margin-bottom: 13px;
}

.agent-msg .bubble {
  max-width: calc(100% - 30px);
  padding: 9px 11px;
  border-radius: 10px;
  color: #d8d8d8;
  background: #1e1e1e;
  font-size: 11px;
  line-height: 1.62;
  white-space: pre-wrap;
}

.agent-msg.user {
  flex-direction: row-reverse;
}

.agent-msg.user .bubble {
  color: #1b1b1b;
  background: #d9e8f2;
}

.agent-msg .bubble .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
  color: #86aec5;
  font-size: 9px;
}

.agent-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #222;
}

.agent-avatar img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0 0 30px;
}

.agent-action {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #cfcfcf;
  background: transparent;
  font-size: 10px;
}

.agent-action:hover {
  color: #111;
  background: #e8e8e8;
  border-color: #e8e8e8;
}

.agent-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0 14px 30px;
}

.agent-compose {
  padding: 9px 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-input {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 7px 7px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: #1b1b1b;
}

.agent-input textarea {
  flex: 1;
  min-height: 34px;
  max-height: 110px;
  padding: 3px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e4e4e4;
  font-size: 11px;
  line-height: 1.5;
  resize: none;
}

.agent-send {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: #111;
  background: #ededed;
}

.agent-foot {
  padding: 6px 0 0;
  color: #505050;
  font-size: 8.5px;
  text-align: center;
}

/* context menus */
.menu {
  position: fixed;
  z-index: 1200;
  min-width: 200px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #232323;
  box-shadow: var(--shadow-lg);
}

.menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 31px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  color: #d4d4d4;
  background: transparent;
  font-size: 11px;
  text-align: left;
}

.menu button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.menu button.danger {
  color: #ff8f8f;
}

.menu .menu-sep {
  height: 1px;
  margin: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.menu .menu-label {
  padding: 5px 8px;
  color: #6e6e6e;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu .menu-empty {
  padding: 8px 10px;
  color: #6e6e6e;
  font-size: 11px;
}

.menu-types {
  display: flex;
  gap: 4px;
  padding: 2px 3px 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu .menu-type {
  flex: 1;
  width: auto;
  justify-content: center;
  height: 24px;
  padding: 0 4px;
  font-size: 11px;
  color: #9a9a9a;
  text-align: center;
}

.menu .menu-type.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   TapTV page
   ============================================================ */
.page {
  min-height: 100vh;
  background: #0b0b0b;
}

.page-inner {
  width: min(1552px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 60px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -0.035em;
}

.page-head p {
  margin: 7px 0 0;
  color: var(--text-2);
  font-size: 12.5px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.tab {
  position: relative;
  height: 38px;
  padding: 0 11px;
  border: 0;
  color: #8c8c8c;
  background: transparent;
  font-size: 12px;
}

.tab:hover {
  color: #ddd;
}

.tab.is-active {
  color: #fff;
}

.tab.is-active::after {
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  content: "";
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.chips-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chips-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #a7a7a7;
  background: transparent;
  font-size: 11.5px;
  white-space: nowrap;
}

.filter-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.filter-chip.is-active {
  color: #111;
  background: #f2f2f2;
  border-color: #f2f2f2;
  font-weight: 550;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 220px;
  height: 31px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #777;
  background: #141414;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ddd;
  font-size: 11px;
}

.search-box input::placeholder {
  color: #666;
}

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

.gallery-card {
  min-width: 0;
  cursor: pointer;
}

.gallery-card .media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 11px;
  background: #171717;
}

.gallery-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s;
}

.gallery-card:hover .media img {
  transform: scale(1.035);
  filter: brightness(0.78);
}

.gallery-card .media .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #ddd;
  background: rgba(0, 0, 0, 0.5);
  font: 9px/1.4 var(--font-mono);
  backdrop-filter: blur(8px);
}

.gallery-card .hover-strip {
  position: absolute;
  inset: auto 8px 8px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s, transform 0.2s;
}

.gallery-card:hover .hover-strip {
  opacity: 1;
  transform: none;
}

.gallery-card .hover-strip span {
  padding: 5px 8px;
  border-radius: 6px;
  color: #f1f1f1;
  background: rgba(16, 16, 16, 0.78);
  font-size: 9.5px;
  backdrop-filter: blur(8px);
}

.gallery-card .info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px 0;
}

.gallery-card .author {
  color: #777;
  font-size: 9.5px;
}

.gallery-card h3 {
  overflow: hidden;
  margin: 2px 0 0;
  color: #e2e2e2;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card .metric {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  color: #7d7d7d;
  font-size: 10px;
}

.empty-state {
  padding: 80px 20px;
  color: #777;
  text-align: center;
}

.empty-state .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* ============================================================
   Apps / Workspace
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.app-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #151515;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.app-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.app-card .cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #191919;
}

.app-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.app-card:hover .cover img {
  transform: scale(1.03);
}

.app-card .body {
  padding: 11px 12px 13px;
}

.app-card h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 550;
}

.app-card h3 .badge {
  padding: 2px 4px;
  border-radius: 3px;
  color: #111;
  background: var(--yellow);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #858585;
  font-size: 10.5px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workspace-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding: 28px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background:
    radial-gradient(600px 220px at 0% 50%, rgba(48, 87, 112, 0.33), transparent 70%),
    #121212;
}

.workspace-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.03em;
}

.workspace-hero p {
  margin: 7px 0 0;
  color: #949494;
  font-size: 12px;
}

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

.project-card {
  position: relative;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #141414;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.19);
  transform: translateY(-2px);
}

.project-card .project-delete {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 6px;
  color: #cfcfcf;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.project-card:hover .project-delete {
  opacity: 1;
}

.project-card .project-delete:hover {
  color: #fff;
  background: rgba(220, 60, 60, 0.85);
}

.project-card .thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #0c0c0c;
}

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

.project-card .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card .thumb .project-cover-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #343434;
}

.project-card .thumb .project-cover-empty svg {
  width: 20px;
  height: 20px;
}

.project-card .thumb .count {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #ccc;
  background: rgba(0, 0, 0, 0.55);
  font-size: 8px;
}

.project-card h3 {
  margin: 9px 1px 3px;
  font-size: 12px;
  font-weight: 500;
}

.project-card p {
  margin: 0 1px;
  color: #707070;
  font-size: 9.5px;
}

.new-project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 188px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #8c8c8c;
  background: transparent;
  font-size: 11px;
}

.new-project-card:hover {
  color: #ddd;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================================
   Modals, drawers, toast
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  animation: fade-in 0.18s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.modal {
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: #171717;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

.modal.wide {
  width: min(920px, 100%);
}

.modal.medium {
  width: min(620px, 100%);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
}

.modal-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.015em;
}

.modal-head p {
  margin: 3px 0 0;
  color: #8b8b8b;
  font-size: 10.5px;
}

.modal-body {
  padding: 18px;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 18px;
  border-top: 1px solid var(--border-soft);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: #a3a3a3;
  font-size: 10.5px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: 0;
  background: #101010;
  color: #e3e3e3;
  font-size: 11.5px;
}

.field textarea {
  min-height: 78px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(144, 196, 229, 0.6);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 11px;
}

.toggle-row:last-child {
  border-bottom: 0;
}

.toggle-row span {
  color: #8f8f8f;
  font-size: 10px;
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.skill-row + .skill-row {
  margin-top: 8px;
}

.skill-row:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.skill-row img,
.skill-row-glyph {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: cover;
}

.skill-row-glyph {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd0ff;
}

.skill-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.skill-row-main b {
  font-size: 12px;
  font-weight: 550;
  color: #ececec;
}

.skill-row-main em {
  font-style: normal;
  font-size: 10.5px;
  color: #8f8f8f;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.skill-group + .skill-group {
  margin-top: 16px;
}

.skill-group-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  padding: 0 2px;
  color: #a9a9a9;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.skill-group-head svg {
  color: #cbd0ff;
}

.skill-row > svg {
  flex: 0 0 auto;
  color: #6a6a6a;
}

.switch {
  position: relative;
  width: 34px;
  height: 19px;
  border: 0;
  border-radius: 999px;
  background: #3c3c3c;
  transition: background 0.18s;
}

.switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #d8d8d8;
  content: "";
  transition: transform 0.18s;
}

.switch.is-on {
  background: var(--accent);
}

.switch.is-on::after {
  background: #101010;
  transform: translateX(15px);
}

.publish-preview {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding: 9px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  background: #121212;
}

.publish-preview img {
  width: 120px;
  height: 68px;
  border-radius: 5px;
  object-fit: cover;
}

.publish-preview h4 {
  margin: 1px 0 5px;
  font-size: 11.5px;
  font-weight: 500;
}

.publish-preview p {
  margin: 0;
  color: #7f7f7f;
  font-size: 10.5px;
  line-height: 1.5;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.plan {
  position: relative;
  padding: 18px 15px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #131313;
}

.plan.featured {
  border-color: rgba(144, 196, 229, 0.45);
  background: linear-gradient(180deg, rgba(144, 196, 229, 0.08), #141414 60%);
}

.plan .plan-name {
  color: #cfcfcf;
  font-size: 11px;
  font-weight: 500;
}

.plan .plan-price {
  margin: 9px 0 2px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.plan .plan-price small {
  color: #808080;
  font-size: 10px;
  font-weight: 400;
}

.plan ul {
  margin: 14px 0 17px;
  padding: 0;
  list-style: none;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 7px;
  color: #989898;
  font-size: 10px;
  line-height: 1.4;
}

.plan li .icon {
  width: 12px;
  height: 12px;
  color: var(--green);
}

.plan .btn {
  width: 100%;
}

.billing-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #111;
}

.billing-toggle button {
  height: 25px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #888;
  background: transparent;
  font-size: 9.5px;
}

.billing-toggle button.is-active {
  color: #111;
  background: #e9e9e9;
}

.share-link {
  display: flex;
  gap: 6px;
}

.share-link input {
  flex: 1;
  font: 10px/1 var(--font-mono);
}

.workflow-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #121212;
  color: #bdbdbd;
  font-size: 10.5px;
}

.workflow-step b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #9bc9e1;
  background: rgba(144, 196, 229, 0.1);
  font: 8px/1 var(--font-mono);
}

/* toast */
.toast-stack {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e8e8e8;
  background: rgba(30, 30, 30, 0.94);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
  font-size: 11px;
  backdrop-filter: blur(14px);
  animation: toast-in 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast .icon {
  width: 14px;
  height: 14px;
  color: var(--green);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .main-nav a {
    padding: 0 9px;
  }

  .template-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .apps-grid,
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .hero-promo {
    display: none;
  }
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .mobile-menu {
    display: inline-grid;
  }

  .home-inner,
  .page-inner {
    width: calc(100% - 32px);
  }

  .campaign {
    height: 300px;
  }

  .campaign-copy {
    left: 26px;
  }

  .studio-band {
    grid-template-columns: 200px 1fr;
    gap: 16px;
    padding: 20px;
  }

  .studio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .taptv-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-panel {
    width: min(356px, 82vw);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  }

  .canvas-dock-wrap {
    right: 24px;
    left: 86px;
  }

  .minimap {
    display: none;
  }

  .zoom-cluster {
    left: 16px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 56px;
  }

  .header-download {
    display: none;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand img {
    width: 98px;
  }

  .header-link,
  .header-credit {
    display: none;
  }

  .header-tools .btn-primary {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-promo {
    display: none;
  }

  .hero-title {
    gap: 10px;
    margin-bottom: 20px;
  }

  .hero-title img {
    width: 28px;
    height: 28px;
  }

  .prompt-shell {
    padding: 14px 14px 10px;
    border-radius: 15px;
  }

  .hero-chips {
    justify-content: flex-start;
  }

  .hero-chip.skills {
    margin-left: 0;
  }

  .campaign {
    height: 280px;
  }

  .campaign-copy {
    top: 26px;
    width: 78%;
  }

  .campaign-sub {
    font-size: 12px;
  }

  .campaign-title {
    font-size: 35px;
  }

  .studio-band {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .studio-left {
    gap: 14px;
    padding-bottom: 0;
  }

  .studio-left p {
    max-width: 100%;
  }

  .studio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-row,
  .taptv-grid,
  .gallery-grid,
  .apps-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .filter-row {
    flex-wrap: wrap;
  }

  .search-box {
    width: 100%;
    margin-left: 0;
  }

  .plans {
    grid-template-columns: 1fr;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .canvas-topbar .save-state,
  .canvas-topbar .top-actions .hide-mobile {
    display: none;
  }

  .canvas-rail {
    left: 8px;
  }

  .canvas-dock-wrap {
    right: 10px;
    bottom: 10px;
    left: 66px;
  }

  .canvas-dock {
    padding: 10px 10px 8px;
  }

  .canvas-dock textarea {
    min-height: 34px;
    font-size: 11.5px;
  }

  .dock-hint {
    display: none;
  }

  .selection-toolbar {
    max-width: calc(100vw - 32px);
    overflow-x: auto;
  }
}

@media (max-width: 460px) {
  .taptv-grid,
  .gallery-grid,
  .apps-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .featured-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* range controls used by camera + angle panels */
input[type="range"] {
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.16));
}

input[type="range"]::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -5px;
  appearance: none;
  border: 2px solid #161616;
  border-radius: 50%;
  background: #f1f1f1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

input[type="range"]::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid #161616;
  border-radius: 50%;
  background: #f1f1f1;
}

*:focus-visible {
  outline: 2px solid rgba(144, 196, 229, 0.7);
  outline-offset: 2px;
}

.spin-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border: 1px solid rgba(144, 196, 229, 0.35);
  border-top-color: var(--accent);
  border-radius: 50%;
  vertical-align: 1px;
  animation: spin 0.8s linear infinite;
}

.connection-path {
  pointer-events: none;
}

@media (max-width: 720px) {
  .canvas-topbar {
    gap: 4px;
    padding: 0 6px;
  }

  .canvas-topbar .project-title {
    max-width: 118px;
    padding: 3px 4px;
    font-size: 11px;
  }

  .canvas-topbar .project-title span {
    max-width: 76px;
  }

  .canvas-topbar .save-state,
  .canvas-topbar [data-action="share"],
  .canvas-topbar [data-action="shortcuts"],
  .canvas-topbar [data-action="undo"],
  .canvas-topbar [data-action="redo"] {
    display: none;
  }

  .canvas-topbar .btn-blue {
    height: 27px;
    padding: 0 9px;
    font-size: 10.5px;
  }

  .canvas-dock-wrap {
    right: 8px;
    bottom: 8px;
    left: 58px;
  }

  .canvas-dock {
    padding: 8px 9px 6px;
    border-radius: 14px;
  }

  .canvas-dock textarea {
    min-height: 28px;
    max-height: 84px;
    font-size: 11px;
  }

  .dock-controls {
    gap: 1px;
  }

  .dock-chip {
    padding: 0 4px;
    font-size: 9px;
  }

  .dock-chip[data-dock="lens"],
  .dock-chip[data-dock="speed"] {
    display: none;
  }

  .credit-pill {
    height: 21px;
    padding: 0 5px;
    font-size: 9px;
  }

  .dock-send {
    width: 25px;
    height: 25px;
  }

  .zoom-cluster {
    display: none;
  }

  .canvas-rail {
    width: 38px;
    padding: 4px;
  }

  .rail-btn {
    width: 29px;
    height: 29px;
  }

  .rail-btn .icon {
    width: 16px;
    height: 16px;
  }

  .agent-panel {
    top: 0;
    width: min(340px, 88vw);
  }

  .selection-toolbar {
    top: 56px;
    max-width: calc(100vw - 18px);
  }

  .selection-toolbar button {
    padding: 0 6px;
    font-size: 9.5px;
  }

  .campaign-copy {
    width: 86%;
  }

  .campaign-title {
    font-size: 34px;
  }

  .campaign-kicker {
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }

  .home-inner,
  .page-inner {
    width: calc(100% - 24px);
  }

  .footer-brand img {
    width: 110px;
  }
}

@media (max-width: 720px) {
  .campaign-art {
    object-position: 58% 70%;
  }

  .campaign-copy {
    top: 22px;
    width: 88%;
  }

  .campaign-sub {
    margin-top: 12px;
  }
}

.campaign-rail {
  position: absolute;
  top: 22px;
  right: 24px;
  bottom: 52px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: rotate(2deg);
}

.campaign-preview {
  position: relative;
  width: 150px;
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: #191919;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  transform: translateY(10px) rotate(-3deg);
}

.campaign-preview:nth-child(2) {
  width: 175px;
  transform: translateY(-10px) rotate(1.5deg);
}

.campaign-preview:nth-child(3) {
  transform: translateY(16px) rotate(4deg);
}

.campaign-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-preview span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 8px 7px;
  color: #f0f0f0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

@media (max-width: 980px) {
  .campaign-rail {
    right: 14px;
    transform: scale(0.86) rotate(2deg);
    transform-origin: right center;
  }
}

@media (max-width: 720px) {
  .campaign-rail {
    display: none;
  }
}

/* Desktop shell sign-in, measured from 橙子video Desktop 0.4.112 */
.desktop-login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: #000;
  color: #f5f5f5;
  font-family: Inter, -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
}

.desktop-login-card {
  width: 280px;
  text-align: center;
  transform: translateY(-6px);
}

.desktop-login-logo {
  display: block;
  width: 112px;
  height: 28px;
  margin: 0 auto 24px;
  object-fit: contain;
  opacity: 0.95;
  user-select: none;
}

.desktop-login h1 {
  margin: 0;
  color: #f5f4ef;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 33px;
  letter-spacing: -0.02em;
}

.desktop-login-card > p {
  margin: 8px 0 0;
  color: #a8a59c;
  font-size: 13px;
  line-height: 1.625;
}

.desktop-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 40px;
  margin-top: 28px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #141413;
  background: #f5f4ef;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.16s, transform 0.16s;
}

.desktop-signin:hover {
  background: #fff;
}

.desktop-signin:active {
  transform: scale(0.99);
}

.desktop-login-foot {
  margin-top: 18px !important;
  color: #77746d !important;
  font-size: 12px !important;
  opacity: 0;
  transition: opacity 0.2s;
}

.desktop-login-foot.is-visible {
  opacity: 1;
}

.desktop-login-version {
  position: fixed;
  bottom: 22px;
  color: #3f3d39;
  font: 9px/1 var(--font-mono);
  letter-spacing: 0.04em;
}
.hero-title img { animation: hero-mark 18s linear infinite; } @keyframes hero-mark { to { transform: rotate(360deg); } }

/* Public read-only canvas preview, measured from web v2.20.29 */
.preview-page {
  min-height: 100vh;
  padding: 114px 80px 50px;
  background: #000;
  color: #f5f5f5;
}

.preview-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 164px);
  min-height: 600px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #111;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #1b1b1b;
}

.preview-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.preview-title h1 {
  overflow: hidden;
  margin: 0;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #9c9c9c;
  font-size: 9.5px;
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.preview-actions .btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 16px;
  font-size: 14px;
}

.preview-canvas {
  position: relative;
  flex: 1;
  overflow: hidden;
  background-color: #0a0a0a;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.085) 1px, transparent 1px);
  background-size: 24px 24px;
}

.preview-node {
  position: absolute;
  top: 32px;
  left: 120px;
  width: 450px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #171717;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.preview-node img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.preview-node-label {
  position: absolute;
  top: -26px;
  left: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(245, 245, 245, 0.6);
  font-size: 12px;
  line-height: 1.5;
}

.preview-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}

.preview-minimap {
  position: absolute;
  bottom: 24px;
  left: 24px;
  width: 198px;
  height: 148px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(24, 24, 27, 0.92);
  backdrop-filter: blur(12px);
}

.preview-mini-node {
  position: absolute;
  top: 40%;
  left: 22%;
  width: 44%;
  height: 22%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.preview-mini-viewport {
  position: absolute;
  top: 24%;
  left: 12%;
  width: 52%;
  height: 42%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 2px;
}

.preview-mini-caption {
  position: absolute;
  right: 8px;
  bottom: 5px;
  color: #5d5d5d;
  font: 8px/1 var(--font-mono);
}

.preview-video-controls {
  position: absolute;
  right: 340px;
  bottom: 24px;
  left: 246px;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(12px);
}

.preview-control {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  color: #d8d8d8;
  background: transparent;
}

.preview-timeline {
  flex: 1;
  height: 21px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px) 0 0 / 6px 100%,
    rgba(255, 255, 255, 0.035);
}

.preview-timeline span {
  display: block;
  width: 36%;
  height: 100%;
  border-right: 1px solid #fff;
  background: rgba(255, 255, 255, 0.13);
}

.preview-time {
  flex: 0 0 auto;
  color: #8c8c8c;
  font: 9px/1 var(--font-mono);
}

.preview-zoom {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.88);
  color: #bdbdbd;
  font: 10px/1 var(--font-mono);
}

.preview-zoom button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 5px;
  color: #bdbdbd;
  background: transparent;
}

.preview-zoom button:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
  .preview-page {
    padding: 24px;
  }

  .preview-shell {
    height: calc(100vh - 48px);
  }

  .preview-node {
    left: 60px;
    width: 360px;
    height: 200px;
  }

  .preview-video-controls {
    right: 24px;
    left: 246px;
  }
}

@media (max-width: 720px) {
  .preview-page {
    padding: 8px;
  }

  .preview-shell {
    height: calc(100vh - 16px);
    border-radius: 12px;
  }

  .preview-bar {
    height: 56px;
    padding: 0 10px;
  }

  .preview-title h1 {
    font-size: 14px;
  }

  .preview-actions .btn {
    height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }

  .preview-node {
    top: 40px;
    left: 26px;
    width: 300px;
    height: 167px;
  }

  .preview-minimap {
    width: 150px;
    height: 110px;
    bottom: 16px;
    left: 16px;
  }

  .preview-video-controls,
  .preview-zoom {
    display: none;
  }
}

.canvas-stage.no-grid {
  background-image: none;
}

.minimap.is-hidden {
  display: none !important;
}

.canvas-page.no-edge-flow .edge-flow {
  display: none;
}

/* TapTV current layout */
.taptv-page .page-inner {
  padding-top: 18px;
}

.taptv-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.taptv-mode-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 5px;
  border: 0;
  color: #9a9a9a;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
}

.taptv-mode-item + .taptv-mode-item {
  margin-left: 22px;
}

.taptv-mode-item.is-active {
  color: #f5f5f5;
}

.taptv-mode-item.is-active::after {
  position: absolute;
  right: 2px;
  bottom: -1px;
  left: 2px;
  height: 2px;
  background: #f5f5f5;
  content: "";
}

.taptv-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.taptv-feed-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
}

.taptv-feed-tabs button {
  position: relative;
  height: 34px;
  padding: 0;
  border: 0;
  color: #8f8f8f;
  background: transparent;
  font-size: 12.5px;
}

.taptv-feed-tabs button:hover {
  color: #ddd;
}

.taptv-feed-tabs button.is-active {
  color: #f5f5f5;
  font-weight: 550;
}

.taptv-feed-tabs button.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #f5f5f5;
  content: "";
}

.taptv-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.taptv-tools .search-box {
  width: 330px;
  height: 36px;
  border-radius: 9px;
  background: #151515;
}

.taptv-tools .btn {
  height: 36px;
  border-radius: 9px;
}

.taptv-cats {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 16px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.taptv-cats::-webkit-scrollbar {
  display: none;
}

.taptv-cats .filter-chip {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11px;
}

.taptv-cats .filter-chip.is-active {
  color: #f5f5f5;
  background: #2a2a2a;
  border-color: #2a2a2a;
}

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

.taptv-live-card {
  cursor: pointer;
}

.taptv-live-card .media {
  aspect-ratio: 16 / 9;
  border-radius: 11px;
}

.taptv-live-card .media img {
  filter: brightness(0.94);
}

.taptv-live-card:hover .media img {
  filter: brightness(0.78);
}

.gallery-duration {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 4px;
  color: #e8e8e8;
  background: rgba(0, 0, 0, 0.55);
  font: 9px/1.4 var(--font-mono);
  backdrop-filter: blur(6px);
}

.card-shade {
  position: absolute;
  inset: 30% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  pointer-events: none;
}

.card-overlay {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  z-index: 2;
  min-width: 0;
}

.card-overlay .author {
  overflow: hidden;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-overlay h3 {
  overflow: hidden;
  max-width: calc(100% - 44px);
  margin: 0;
  color: #f0f0f0;
  font-size: 12.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-overlay .metric {
  position: absolute;
  right: 0;
  bottom: 1px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 9.5px;
}

.taptv-live-card .hover-strip {
  z-index: 3;
}

@media (max-width: 1180px) {
  .taptv-live-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .taptv-tools .search-box {
    width: 220px;
  }
}

@media (max-width: 720px) {
  .taptv-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .taptv-tools .search-box {
    width: 100%;
  }

  .taptv-live-grid {
    grid-template-columns: 1fr 1fr;
  }

  .taptv-mode-item {
    font-size: 13px;
  }
}

@media (max-width: 460px) {
  .taptv-live-grid {
    grid-template-columns: 1fr;
  }
}

/* Academy */
.academy-page .page-inner {
  padding-top: 20px;
}

.academy-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 38px 34px 32px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background:
    radial-gradient(600px 300px at 10% 10%, rgba(72, 93, 138, 0.4), transparent 70%),
    radial-gradient(500px 280px at 100% 100%, rgba(111, 61, 128, 0.26), transparent 70%),
    #111;
}

.academy-hero::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(500px 260px at 20% 60%, #000 10%, transparent 75%);
  content: "";
  pointer-events: none;
}

.academy-kicker {
  color: #8fb6ca;
  font: 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
}

.academy-hero h1 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -0.04em;
}

.academy-hero p {
  margin: 0;
  color: #a2a2a2;
  font-size: 12.5px;
}

.academy-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.academy-stats span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #8f8f8f;
  background: rgba(0, 0, 0, 0.18);
  font-size: 10px;
}

.academy-stats b {
  color: #e5e5e5;
  font-weight: 600;
}

.academy-toolbar {
  align-items: center;
  margin: 0 0 14px;
}

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

.academy-card {
  min-width: 0;
  cursor: pointer;
}

.academy-card .media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #151515;
}

.academy-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.25s;
}

.academy-card:hover .media img {
  transform: scale(1.035);
  filter: brightness(0.8);
}

.academy-type {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 6px;
  border-radius: 4px;
  color: #111;
  background: #e9e9e9;
  font-size: 8px;
  font-weight: 600;
}

.academy-time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 5px;
  border-radius: 3px;
  color: #ddd;
  background: rgba(0, 0, 0, 0.55);
  font: 9px/1.4 var(--font-mono);
}

.academy-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
}

.academy-card:hover .academy-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.academy-card .body {
  padding: 9px 2px 0;
}

.academy-meta {
  margin-bottom: 3px;
  color: #676767;
  font: 8px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
}

.academy-card h3 {
  overflow: hidden;
  margin: 0 0 4px;
  color: #e8e8e8;
  font-size: 12.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.academy-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #7f7f7f;
  font-size: 10px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.academy-author {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  color: #6f6f6f;
  font-size: 9px;
}

@media (max-width: 1180px) {
  .academy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .academy-grid {
    grid-template-columns: 1fr 1fr;
  }

  .academy-hero {
    padding: 24px 20px;
  }

  .academy-hero h1 {
    font-size: 27px;
  }
}

@media (max-width: 460px) {
  .academy-grid {
    grid-template-columns: 1fr;
  }
}

.community-video-wrap {
  overflow: hidden;
  margin-bottom: 13px;
  border-radius: 10px;
  background: #050505;
}

.community-video {
  display: block;
  width: 100%;
  max-height: 56vh;
  aspect-ratio: 16 / 9;
  background: #050505;
  object-fit: contain;
}

.community-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 13px;
  color: #8e8e8e;
  font-size: 10px;
}

.community-desc {
  margin: 0 0 4px;
  color: #bdbdbd;
  font-size: 11.5px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.preview-video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: #050505;
  object-fit: cover;
}

.preview-play.is-playing {
  opacity: 0;
  pointer-events: none;
}

.node-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px 15px 0 0;
  background: #050505;
}

/* TapTV full-page video detail */
.community-page {
  min-height: 100vh;
  background: #000;
}

.community-detail-page {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding-bottom: 36px;
}

.community-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 190px);
  overflow: hidden;
  background: #000;
}

.community-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
  cursor: pointer;
}

.detail-back {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #eee;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.detail-back:hover {
  background: rgba(0, 0, 0, 0.6);
}

.detail-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #e5e5e5;
  opacity: 1;
  transition: opacity 0.2s;
}

.community-stage:fullscreen .detail-controls {
  opacity: 1;
}

.detail-control {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: #e5e5e5;
  background: transparent;
}

.detail-control:hover {
  background: rgba(255, 255, 255, 0.12);
}

.detail-progress {
  flex: 1;
  height: 4px;
  margin: 0 4px;
  appearance: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.detail-progress::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: #90c4e5;
  box-shadow: 0 0 0 3px rgba(144, 196, 229, 0.2);
}

.detail-time {
  flex: 0 0 auto;
  color: #d5d5d5;
  font: 10px/1 var(--font-mono);
}

.detail-quality {
  flex: 0 0 auto;
  color: #9d9d9d;
  font-size: 10px;
}

.community-detail-info {
  padding: 15px 4px 0;
}

.community-detail-info h1 {
  margin: 0 0 12px;
  color: #f2f2f2;
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.community-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.community-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cfcfcf;
  font-size: 11.5px;
}

.community-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #ddd;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 600;
}

.follow-btn {
  height: 27px;
  margin-left: 4px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #e4e4e4;
  background: transparent;
  font-size: 10px;
}

.follow-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.follow-btn.is-following {
  color: #888;
  border-color: rgba(255, 255, 255, 0.07);
}

.community-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.community-actions > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  color: #b9b9b9;
  background: transparent;
  font-size: 10.5px;
}

.community-actions > button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.community-actions > button.is-active {
  color: #90c4e5;
}

.community-actions .btn-primary {
  color: #0f0f0f;
  background: #f5f5f5;
}

.community-actions .btn-primary:hover {
  color: #0f0f0f;
  background: #fff;
}

@media (max-width: 980px) {
  .community-detail-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .community-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .community-detail-page {
    padding-bottom: 20px;
  }

  .community-stage {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .community-detail-info h1 {
    font-size: 17px;
  }

  .detail-time,
  .detail-quality {
    display: none;
  }
}

/* Account */
.header-login {
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ddd;
  background: transparent;
  font-size: 12px;
}

.header-login:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.header-account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 9px 0 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ddd;
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
}

.header-account:hover {
  background: rgba(255, 255, 255, 0.07);
}

.header-avatar {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: #111;
  background: #d9d9d9;
  font-size: 10px;
  font-weight: 700;
}

.header-name {
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-credits {
  padding-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  color: #9fc9dd;
  font: 10px/1 var(--font-mono);
}

.auth-panel {
  padding: 24px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #cfcfcf;
  font: 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.auth-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}

.auth-tabs button {
  position: relative;
  height: 36px;
  padding: 0;
  border: 0;
  color: #777;
  background: transparent;
  font-size: 12px;
}

.auth-tabs button.is-active {
  color: #f2f2f2;
}

.auth-tabs button.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #f2f2f2;
  content: "";
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #999;
  font-size: 10px;
}

.auth-form input {
  height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: #eee;
  background: #141414;
  font: 12px/1 var(--font-text);
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(144, 196, 229, 0.6);
}

.auth-error {
  min-height: 14px;
  color: #e78383;
  font-size: 10px;
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-note {
  margin: 14px 0 0;
  color: #666;
  font-size: 9.5px;
  line-height: 1.5;
}

.auth-note code {
  color: #8b8b8b;
}

.auth-skip {
  display: block;
  margin: 12px auto 0;
  border: 0;
  color: #777;
  background: transparent;
  font-size: 10px;
}

.auth-skip:hover {
  color: #ccc;
}

.account-panel {
  padding: 22px;
}

.account-loading {
  padding: 24px 0;
  color: #777;
  font-size: 11px;
  text-align: center;
}

.account-balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 12px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  color: #8c8c8c;
  background: #111;
  font-size: 10px;
}

.account-balance b {
  color: #b9dcec;
  font: 600 24px/1 var(--font-mono);
}

.account-ledger {
  max-height: 240px;
  overflow: auto;
  border-top: 1px solid var(--border-soft);
}

.ledger-row {
  display: grid;
  grid-template-columns: 70px 52px 1fr;
  gap: 8px;
  padding: 8px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #777;
  font-size: 9.5px;
}

.ledger-row .is-plus {
  color: #9dc3a6;
}

.ledger-row .is-minus {
  color: #cf8d8d;
}

@media (max-width: 720px) {
  .header-account {
    padding-right: 6px;
  }

  .header-name {
    display: none;
  }

  .header-credits {
    display: none;
  }
}

.account-provider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 12px;
  color: #777;
  font-size: 9.5px;
}

.account-provider b {
  color: #9fc9dd;
  font-weight: 500;
}

.account-provider span:last-child {
  overflow: hidden;
  color: #666;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Canvas timeline */
.timeline-drawer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 48;
  height: 214px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(15, 15, 15, 0.97);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(105%);
  transition: transform 0.25s ease;
  backdrop-filter: blur(16px);
}

.timeline-drawer.is-open {
  transform: translateY(0);
}

.timeline-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.timeline-play,
.timeline-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 6px;
  color: #d8d8d8;
  background: transparent;
}

.timeline-play:hover,
.timeline-icon:hover {
  background: rgba(255, 255, 255, 0.09);
}

.timeline-play {
  color: #111;
  background: #e7e7e7;
}

.timeline-clock {
  color: #9c9c9c;
  font: 10px/1 var(--font-mono);
}

.timeline-title {
  color: #d0d0d0;
  font-size: 11px;
}

.timeline-zoom-label {
  color: #777;
  font: 9px/1 var(--font-mono);
}

.timeline-body {
  display: flex;
  height: calc(100% - 42px);
}

.timeline-labels {
  flex: 0 0 64px;
  padding-top: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
}

.timeline-label {
  display: flex;
  align-items: center;
  height: 44px;
  padding-left: 13px;
  color: #777;
  font-size: 9.5px;
}

.timeline-scroll {
  position: relative;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.timeline-ruler {
  position: relative;
  height: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #666;
  font: 8px/22px var(--font-mono);
}

.timeline-ruler span {
  position: absolute;
  top: 0;
  height: 100%;
  padding-left: 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.timeline-ruler span i {
  display: block;
}

.timeline-tracks {
  position: relative;
}

.timeline-track {
  position: relative;
  height: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.timeline-track:nth-child(2) {
  background: rgba(255, 255, 255, 0.012);
}

.timeline-clip {
  position: absolute;
  top: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  min-width: 28px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  color: #d7d7d7;
  background: #232323;
  font-size: 9px;
  text-align: left;
}

.timeline-clip:hover {
  border-color: rgba(144, 196, 229, 0.55);
}

.timeline-clip.video {
  background: #1d2a33;
}

.timeline-clip.image {
  background: #2a2520;
}

.timeline-clip.audio {
  background: #1d2b24;
}

.timeline-clip img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 3px;
  object-fit: cover;
  opacity: 0.85;
}

.timeline-clip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-clip em {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.38);
  font: 8px/1 var(--font-mono);
  font-style: normal;
}

.timeline-wave {
  display: flex;
  align-items: center;
  gap: 1px;
  width: 58px;
  flex: 0 0 auto;
}

.timeline-wave i {
  width: 1px;
  border-radius: 1px;
  background: #77a58b;
}

.timeline-empty {
  position: absolute;
  top: 15px;
  left: 10px;
  color: #4d4d4d;
  font-size: 8.5px;
}

.timeline-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 1px;
  background: #90c4e5;
  box-shadow: 0 0 8px rgba(144, 196, 229, 0.5);
  pointer-events: auto;
  cursor: ew-resize;
}

.timeline-playhead::before {
  position: absolute;
  top: 0;
  left: -4px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #90c4e5;
  content: "";
}

.canvas-page:not(.agent-closed) .timeline-drawer {
  right: auto;
  width: calc(100% - 356px);
}

.canvas-page.timeline-open .canvas-dock-wrap {
  bottom: 228px;
}

.canvas-page.timeline-open .minimap {
  bottom: 228px;
}

@media (max-width: 720px) {
  .timeline-drawer {
    height: 190px;
  }

  .timeline-labels {
    flex-basis: 48px;
  }

  .timeline-label {
    font-size: 8px;
  }

  .canvas-page.timeline-open .canvas-dock-wrap {
    bottom: 204px;
  }
}

/* 3D Studio */
body.is-studio {
  overflow: hidden;
  background: #090b0d;
}

.studio-page {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  color: #d7d7d7;
  background: #090b0d;
}

.studio-topbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 52px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e1013;
}

.studio-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  color: #b8b8b8;
  background: transparent;
}

.studio-icon:hover {
  background: rgba(255, 255, 255, 0.08);
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #dcdcdc;
  font-size: 12px;
}

.studio-brand span {
  color: #616161;
  font: 8px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.studio-divider {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.1);
}

.studio-scene-name {
  border: 0;
  color: #a9a9a9;
  background: transparent;
  font-size: 10.5px;
}

.studio-save {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #6f8d78;
  font-size: 9px;
}

.studio-runtime {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #5e7d8d;
  font: 8px/1.2 var(--font-mono);
}

.studio-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #dcdcdc;
  background: #1a1d20;
  font-size: 10px;
}

.studio-btn:hover {
  background: #252a2e;
}

.studio-btn.ghost {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  background: transparent;
}

.studio-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.studio-left {
  display: flex;
  flex: 0 0 262px;
  min-height: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0f12;
}

.studio-rail {
  display: flex;
  flex: 0 0 54px;
  flex-direction: column;
  gap: 5px;
  padding: 10px 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.studio-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 46px;
  border: 0;
  border-radius: 6px;
  color: #646b70;
  background: transparent;
  font-size: 8px;
}

.studio-rail-btn:hover,
.studio-rail-btn.is-active {
  color: #bcd4df;
  background: #161c20;
}

.studio-left-panel {
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
  overflow-y: auto;
}

.studio-panel-title {
  margin-bottom: 14px;
  color: #e3e3e3;
  font-size: 11px;
  font-weight: 550;
}

.studio-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 11px;
  color: #7e8589;
  font-size: 9px;
}

.studio-field select,
.studio-field input[type="range"] {
  width: 100%;
}

.studio-field select {
  height: 30px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #c5c5c5;
  background: #14181b;
  font-size: 10px;
}

.studio-field input[type="range"] {
  accent-color: #7faabe;
}

.studio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  color: #8f9496;
  font-size: 9.5px;
}

.studio-row em {
  color: #656c70;
  font: 8px/1 var(--font-mono);
  font-style: normal;
}

.studio-switch {
  position: relative;
  width: 28px;
  height: 15px;
  border: 0;
  border-radius: 999px;
  background: #272d31;
}

.studio-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #697176;
  transition: transform 0.18s, background 0.18s;
}

.studio-switch.is-on {
  background: #314650;
}

.studio-switch.is-on i {
  background: #9cc6d8;
  transform: translateX(13px);
}

.studio-note {
  margin-top: 14px;
  color: #555d61;
  font-size: 8.5px;
  line-height: 1.6;
}

.studio-object-list {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.studio-object {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: #8d9396;
  font-size: 9px;
}

.studio-object em {
  margin-left: auto;
  color: #525a5f;
  font: 8px/1 var(--font-mono);
  font-style: normal;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ca8ba;
}

.dot.camera {
  background: #aa9a78;
}

.dot.light {
  background: #9d8962;
}

.studio-character-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #12181c;
}

.studio-character-thumb {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 5px;
  color: #9bb5c1;
  background: #1b282e;
}

.studio-character-card b,
.studio-character-card span {
  display: block;
}

.studio-character-card b {
  color: #d3d3d3;
  font-size: 9.5px;
  font-weight: 500;
}

.studio-character-card span {
  margin-top: 3px;
  color: #616a6e;
  font: 8px/1 var(--font-mono);
}

.studio-subtitle {
  margin: 15px 0 7px;
  color: #777f83;
  font-size: 8.5px;
}

.studio-state-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.studio-state-grid button,
.studio-light-presets button,
.studio-bottom-states button {
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #737d82;
  background: transparent;
  font-size: 8.5px;
}

.studio-state-grid button.is-active,
.studio-light-presets button.is-active,
.studio-bottom-states button.is-active {
  color: #c8e1eb;
  border-color: rgba(144, 196, 229, 0.35);
  background: rgba(144, 196, 229, 0.1);
}

.studio-light-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 14px;
}

.studio-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: #8b9599;
  font-size: 9px;
  cursor: pointer;
}

.studio-upload:hover {
  border-color: rgba(144, 196, 229, 0.4);
  color: #c3dce7;
}

.studio-stage {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #1a2024, #080a0c 72%);
}

.studio-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.studio-stage-top,
.studio-stage-bottom {
  position: absolute;
  right: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.studio-stage-top {
  top: 14px;
  justify-content: space-between;
}

.studio-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #9fa9ad;
  background: rgba(7, 9, 10, 0.45);
  font: 7px/1 var(--font-mono);
  letter-spacing: 0.05em;
}

.studio-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #88b17f;
}

.studio-stage-title {
  color: #5d666a;
  font: 8px/1 var(--font-mono);
  letter-spacing: 0.06em;
}

.studio-stage-title b {
  color: #a8b8bf;
  font-weight: 500;
}

.studio-stage-bottom {
  bottom: 14px;
  justify-content: space-between;
}

.studio-camera-presets {
  display: flex;
  gap: 3px;
  pointer-events: auto;
}

.studio-camera-presets button {
  height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #8f9a9e;
  background: rgba(7, 9, 10, 0.55);
  font-size: 8px;
}

.studio-camera-presets button:hover,
.studio-camera-presets button.is-active {
  color: #cae4ee;
  border-color: rgba(144, 196, 229, 0.4);
}

.studio-stage-hint {
  color: #4e585d;
  font-size: 8px;
}

.studio-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: #a3b1b7;
  background: rgba(8, 10, 12, 0.8);
  font-size: 9px;
  transform: translate(-50%, -50%);
}

.studio-loading.is-hidden {
  display: none;
}

.studio-right {
  flex: 0 0 248px;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0f12;
}

.studio-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 13px 9px;
  color: #cfcfcf;
  font-size: 10px;
}

.studio-add {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  color: #7eabbd;
  background: transparent;
  font-size: 8px;
}

.studio-cameras {
  padding: 0 10px 9px;
}

.studio-camera-card {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #8b9498;
  background: transparent;
  text-align: left;
}

.studio-camera-card:hover,
.studio-camera-card.is-active {
  border-color: rgba(255, 255, 255, 0.08);
  background: #141a1e;
}

.studio-camera-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  color: #9ab6c2;
  background: #1a2429;
}

.studio-camera-card b,
.studio-camera-card em {
  display: block;
}

.studio-camera-card b {
  color: #c7c7c7;
  font-size: 9px;
  font-weight: 500;
}

.studio-camera-card em {
  margin-top: 2px;
  color: #596368;
  font: 7.5px/1 var(--font-mono);
  font-style: normal;
}

.studio-live-dot {
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: #8bb5c6;
}

.studio-badge {
  color: #7da7b7;
  font: 7px/1 var(--font-mono);
}

.studio-right-section {
  margin-top: 6px;
  padding: 2px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.studio-right-section .studio-panel-head {
  padding-right: 0;
  padding-left: 0;
}

.studio-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 38px;
  padding: 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e1013;
}

.studio-bottom-label {
  color: #596165;
  font: 7.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
}

.studio-bottom-states {
  display: flex;
  gap: 4px;
}

.studio-bottom-states button {
  height: 22px;
  padding: 0 8px;
  font-size: 8px;
}

.studio-bottom-meta {
  color: #535b5f;
  font: 7.5px/1 var(--font-mono);
}

@media (max-width: 1100px) {
  .studio-right {
    display: none;
  }
}

@media (max-width: 760px) {
  .studio-left {
    flex-basis: 54px;
  }

  .studio-left-panel {
    display: none;
  }

  .studio-runtime,
  .studio-save,
  .studio-divider {
    display: none;
  }

  .studio-bottom-meta {
    display: none;
  }

  .studio-stage-hint {
    display: none;
  }
}

/* Node inspector */
.inspector-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 46;
  display: flex;
  flex-direction: column;
  width: 336px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  background: #121212;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
  transform: translateX(102%);
  transition: transform 0.22s ease;
}

.inspector-panel.is-open {
  transform: translateX(0);
}

.canvas-page.inspector-open .agent-panel {
  visibility: hidden;
  transform: translateX(101%);
}

.canvas-page.inspector-open .canvas-dock-wrap {
  padding-right: 336px;
}

.canvas-page.inspector-open .timeline-drawer {
  right: auto;
  width: calc(100% - 336px);
}

.inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 50px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #d7d7d7;
  font-size: 11px;
}

.inspector-body {
  flex: 1;
  min-height: 0;
  padding: 15px 17px 22px;
  overflow-y: auto;
}

.inspector-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  height: 70%;
  color: #555;
  text-align: center;
}

.inspector-empty p {
  max-width: 170px;
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
}

.inspector-type {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: #c8c8c8;
  font-size: 10.5px;
}

.inspector-type span {
  overflow: hidden;
  margin-left: auto;
  color: #565656;
  font: 8px/1 var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 11px;
  color: #7e7e7e;
  font-size: 9px;
}

.inspector-field input,
.inspector-field textarea,
.inspector-field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #d6d6d6;
  background: #0d0d0d;
  font: 10.5px/1.5 var(--font-text);
  outline: none;
}

.inspector-field input,
.inspector-field select {
  height: 31px;
  padding: 0 8px;
}

.inspector-field textarea {
  min-height: 102px;
  padding: 8px;
  resize: vertical;
}

.inspector-field input:focus,
.inspector-field textarea:focus,
.inspector-field select:focus {
  border-color: rgba(144, 196, 229, 0.45);
}

.inspector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.inspector-meta {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: #6c6c6c;
  font: 8.5px/1 var(--font-mono);
}

.inspector-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.inspector-actions {
  display: flex;
  gap: 6px;
}

.inspector-actions .btn {
  flex: 1;
  height: 31px;
  font-size: 10px;
}

.inspector-footer {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.inspector-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  color: #7d7d7d;
  background: transparent;
  font-size: 9.5px;
}

.inspector-link:hover {
  color: #ddd;
}

.inspector-link.danger:hover {
  color: #d98d8d;
}

@media (max-width: 720px) {
  .inspector-panel {
    width: min(336px, 88vw);
  }

  .canvas-page.inspector-open .canvas-dock-wrap {
    padding-right: 0;
  }
}

.node-audio {
  display: block;
  width: calc(100% - 20px);
  height: 30px;
  margin: 0 10px 8px;
  opacity: 0.85;
}

/* Admin console */
body.is-admin {
  overflow: hidden;
  background: #090b0d;
}

.admin-auth {
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(76, 104, 121, 0.22), transparent 70%),
    #090b0d;
}

.admin-auth-card {
  width: min(380px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #101316;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

.admin-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 1px solid rgba(144, 196, 229, 0.25);
  border-radius: 7px;
  color: #9cc6d8;
  background: #152128;
}

.admin-kicker {
  color: #617781;
  font: 8px/1 var(--font-mono);
  letter-spacing: 0.12em;
}

.admin-auth-card h1 {
  margin: 10px 0 7px;
  color: #e5e5e5;
  font-size: 21px;
  font-weight: 550;
}

.admin-auth-card p {
  margin: 0 0 20px;
  color: #777;
  font-size: 10px;
  line-height: 1.6;
}

.admin-auth-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-auth-card label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #7d8589;
  font-size: 9px;
}

.admin-auth-card input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  color: #ddd;
  background: #0b0e10;
  font-size: 11px;
  outline: none;
}

.admin-auth-card input:focus {
  border-color: rgba(144, 196, 229, 0.5);
}

.admin-auth-card .btn {
  width: 100%;
  height: 36px;
  margin-top: 3px;
}

.admin-error {
  min-height: 13px;
  color: #dc8d8d;
  font-size: 9px;
}

.admin-back {
  display: block;
  margin: 14px auto 0;
  border: 0;
  color: #5e676b;
  background: transparent;
  font-size: 9px;
}

.admin-back:hover {
  color: #aaa;
}

.admin-page {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  color: #cfcfcf;
  background: #0b0d0f;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 50px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e1113;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d6d6d6;
  font-size: 12px;
}

.admin-brand b {
  color: #8db3c2;
  font-weight: 500;
}

.admin-env {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: #4f5b61;
  font: 7px/1 var(--font-mono);
  letter-spacing: 0.1em;
}

.admin-health {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #688c70;
  font-size: 8px;
}

.admin-health i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #75a57c;
}

.admin-user {
  color: #8b9498;
  font-size: 9px;
}

.admin-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 5px;
  color: #737d81;
  background: transparent;
}

.admin-icon:hover {
  color: #ddd;
  background: rgba(255, 255, 255, 0.07);
}

.admin-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

.admin-side {
  display: flex;
  flex: 0 0 190px;
  flex-direction: column;
  padding: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: #0d1012;
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  color: #737b7f;
  background: transparent;
  font-size: 9.5px;
  text-align: left;
}

.admin-tab:hover,
.admin-tab.is-active {
  color: #c8e0e9;
  background: #151d21;
}

.admin-side-foot {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: 10px 6px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #424a4e;
  font: 7px/1 var(--font-mono);
}

.admin-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 26px 28px 40px;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-head h1 {
  margin: 0 0 5px;
  color: #e4e4e4;
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.admin-head p {
  margin: 0;
  color: #687176;
  font-size: 9.5px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  min-height: 92px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: #101416;
}

.admin-stat span {
  color: #6a7479;
  font-size: 8.5px;
}

.admin-stat b {
  margin: 8px 0 4px;
  color: #e0e0e0;
  font: 500 25px/1 var(--font-mono);
  letter-spacing: -0.04em;
}

.admin-stat em {
  color: #495358;
  font-size: 8px;
  font-style: normal;
}

.admin-stat.is-blue b {
  color: #9bc5d7;
}

.admin-stat.is-green b {
  color: #9cc3a4;
}

.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 14px;
}

.admin-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: #101416;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-card-head h2 {
  margin: 0;
  color: #c9c9c9;
  font-size: 10px;
  font-weight: 500;
}

.admin-card-head button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  color: #678894;
  background: transparent;
  font-size: 8px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.admin-table th {
  padding: 9px 12px;
  color: #596368;
  font: 7.5px/1 var(--font-mono);
  letter-spacing: 0.03em;
  text-align: left;
  white-space: nowrap;
}

.admin-table td {
  max-width: 280px;
  padding: 9px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  color: #949da1;
  vertical-align: middle;
}

.admin-table td b,
.admin-table td span {
  display: block;
}

.admin-table td b {
  overflow: hidden;
  color: #c6c6c6;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table td span {
  overflow: hidden;
  margin-top: 2px;
  color: #5f696d;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-number {
  color: #a9c8d3 !important;
  font-family: var(--font-mono);
}

.admin-number.plus {
  color: #8fbd96 !important;
}

.admin-number.minus {
  color: #cf8f8f !important;
}

.admin-status {
  display: inline-block !important;
  padding: 3px 5px;
  border-radius: 3px;
  color: #8b9599 !important;
  background: #1b2124;
  font: 7px/1 var(--font-mono);
}

.admin-status.succeeded {
  color: #8fbd96 !important;
  background: #17221a;
}

.admin-status.running {
  color: #9bc5d7 !important;
  background: #172229;
}

.admin-status.failed {
  color: #cf8f8f !important;
  background: #251818;
}

.admin-link {
  border: 0;
  color: #78a5b6;
  background: transparent;
  font-size: 8px;
  white-space: nowrap;
}

.admin-provider {
  padding: 8px 14px 12px;
}

.admin-provider > div,
.admin-provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #717b80;
  font-size: 8.5px;
}

.admin-provider b,
.admin-provider-row b {
  color: #a7b9c1;
  font: 8px/1 var(--font-mono);
  font-weight: 400;
}

.admin-provider b.on,
.admin-provider-row b.on {
  color: #8fbd96;
}

.admin-provider b.off,
.admin-provider-row b.off {
  color: #8a7777;
}

.admin-provider-page {
  padding: 8px 18px;
}

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

.settings-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: #cfcfcf;
  background: #101416;
  text-align: left;
}

.settings-channel:hover {
  border-color: rgba(144, 196, 229, 0.35);
  background: #12181c;
}

.settings-channel-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #8db3c2;
  background: #151d21;
}

.settings-channel-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.settings-channel-main b {
  color: #e0e0e0;
  font-size: 11px;
  font-weight: 500;
}

.settings-channel-main em {
  color: #5a656b;
  font-size: 9px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  border: 0;
  padding: 0;
  color: #78a5b6;
  background: transparent;
  font-size: 9px;
}

.settings-back:hover { color: #b7d9e6; }

.settings-form {
  max-width: 520px;
  padding: 18px;
}

.settings-model-row {
  display: flex;
  gap: 8px;
}

.settings-model-row input {
  flex: 1;
}

.settings-model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.settings-model-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #101010;
  color: #e3e3e3;
  font-size: 11.5px;
  cursor: pointer;
}

.settings-model-item input {
  accent-color: #f48cc0;
}

.settings-select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: 0;
  background: #101010;
  color: #e3e3e3;
  font-size: 11.5px;
}

.settings-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-msg {
  margin-right: auto;
  color: #8fbd96;
  font-size: 9px;
}

@media (max-width: 720px) {
  .settings-grid { grid-template-columns: 1fr; }
}

.admin-provider-row em {
  margin-left: auto;
  color: #4f595e;
  font: 8px/1 var(--font-mono);
  font-style: normal;
}

.admin-empty {
  padding: 30px;
  color: #555f64;
  font-size: 9px;
  text-align: center;
}

@media (max-width: 980px) {
  .admin-side {
    flex-basis: 54px;
    padding: 8px 6px;
  }

  .admin-tab {
    justify-content: center;
    padding: 0;
  }

  .admin-tab span,
  .admin-side-foot {
    display: none;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .admin-main {
    padding: 18px 14px 30px;
  }

  .admin-env,
  .admin-user {
    display: none;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }
}

.community-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
