:root {
  --bg: #0b0c0e;
  --bg-2: #111317;
  --bg-elev: #16181d;
  --ink: #eceef1;
  --ink-soft: #b8bdc6;
  --muted: #8b919c;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --orange: #ff5a1f;
  --orange-deep: #d94812;
  --orange-soft: rgba(255, 90, 31, 0.12);
  --gold: #e8c36a;
  --font: "IBM Plex Sans", ui-sans-serif, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --radius: 12px;
  --nav-h: 68px;
  --max: 1180px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

::selection {
  background: rgba(255, 90, 31, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(255, 90, 31, 0.7);
  outline-offset: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html.is-locked,
html.is-locked body {
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* —— Header —— */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(11, 12, 14, 0.88);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: border-color 0.25s;
}

.top::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 31, 0.55), transparent);
  pointer-events: none;
}

.top.is-scrolled {
  border-bottom-color: var(--line);
}

.top__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 max(1.5rem, env(safe-area-inset-right)) 0 max(1.5rem, env(safe-area-inset-left));
}

.brand img {
  width: 152px;
  height: auto;
}

.nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding: 0.2rem 0;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1.5px;
  background: var(--orange);
  border-radius: 2px;
}

.top__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.icon-btn:hover {
  border-color: rgba(255, 90, 31, 0.45);
  background: rgba(255, 90, 31, 0.08);
  color: var(--orange);
}

.icon-btn__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--orange);
  color: #140800;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}

.menu-btn {
  border: 0;
  background: transparent;
  position: relative;
  z-index: 52;
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: transparent;
}

/* Drawer lives as fixed overlays (not trapped in sticky header stacking). */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(5, 6, 8, 0.55);
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: fixed;
  top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 49;
  max-height: calc(100dvh - var(--nav-h) - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.65rem max(1.25rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  -webkit-overflow-scrolling: touch;
}

.drawer-nav a {
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.75rem 0.15rem;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.drawer-nav .btn {
  margin-top: 0.5rem;
  text-align: center;
  min-height: 48px;
}

html.is-drawer-open .top__inner {
  position: relative;
  z-index: 51;
}

html.is-drawer-open .menu-btn {
  z-index: 52;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .menu-btn,
  .drawer-nav,
  .drawer-backdrop {
    display: none !important;
  }

  html.is-drawer-open {
    /* desktop never keeps drawer state */
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex-shrink: 0;
}

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

.btn--primary {
  background: var(--orange);
  color: #140800;
  box-shadow: 0 8px 24px rgba(255, 90, 31, 0.18);
}

.btn--primary:hover {
  background: var(--orange-deep);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 90, 31, 0.28);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.92rem;
}

.btn--block {
  width: 100%;
}

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

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(78svh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__panel {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, #0b0c0e 0%, #0b0c0e 42%, #12151a 100%),
    linear-gradient(180deg, rgba(255, 90, 31, 0.06), transparent 40%);
}

.hero__panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(48%, 560px);
  height: 100%;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 50%),
    linear-gradient(to left, rgba(255, 90, 31, 0.07), transparent 70%);
  border-left: 1px solid var(--line);
}

.hero__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 31, 0.35), transparent);
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 4rem max(1.5rem, env(safe-area-inset-right)) 4.25rem max(1.5rem, env(safe-area-inset-left));
}

.hero__kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.hero__logo {
  width: min(360px, 78vw);
  margin-bottom: 1.75rem;
}

.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.35rem, 5.4vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 14ch;
  color: var(--ink);
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 400;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* —— Trust strip —— */
.trust {
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.trust__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem max(1.5rem, env(safe-area-inset-right)) 1.1rem max(1.5rem, env(safe-area-inset-left));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.trust__inner p,
.trust__inner a {
  margin: 0;
  color: var(--muted);
}

.trust__inner a:hover {
  color: var(--ink);
}

.trust__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.7;
}

/* —— Sections —— */
.section,
.hubs-band,
#durum,
#yazilimlar,
#eklentiler,
#platform,
#destek {
  scroll-margin-top: calc(var(--nav-h) + 10px);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem max(1.5rem, env(safe-area-inset-right)) 4.5rem max(1.5rem, env(safe-area-inset-left));
}

.section__head {
  max-width: 34rem;
  margin-bottom: 2.75rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section__head h2,
.about__grid h2,
.band h2,
.contact__head h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
}

.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 40ch;
}

/* —— Intro —— */
.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem max(1.5rem, env(safe-area-inset-right)) 0.5rem max(1.5rem, env(safe-area-inset-left));
}

.intro__text {
  margin: 0;
  max-width: 46rem;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.45;
  font-weight: 500;
}

/* —— About (legacy) —— */
.about {
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.about__grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .about__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: end;
  }
}

.about__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 42ch;
  line-height: 1.7;
}

/* —— Products —— */
.product {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--line);
}

.product:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 900px) {
  .product {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.75rem;
    align-items: center;
  }

  .product--flip .product__visual {
    order: 2;
  }
}

.product__visual {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.product__visual--a {
  background:
    linear-gradient(145deg, #1a1e26 0%, #12151a 55%, #0e1014 100%);
}

.product__visual--b {
  background:
    linear-gradient(145deg, #181c22 0%, #101317 55%, #0c0e12 100%);
}

.product__visual--c {
  background:
    linear-gradient(145deg, #1a1824 0%, #12141c 55%, #0e1016 100%);
}

.product__visual--a::before,
.product__visual--b::before {
  content: "";
  position: absolute;
  inset: 18% 12%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.product__visual--a::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 1px;
  top: 42%;
  left: 18%;
  background: linear-gradient(90deg, var(--orange), transparent);
  opacity: 0.55;
}

.product__visual--b::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 38%;
  top: 28%;
  right: 28%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}


.product__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product__visual--c,
.product__visual--d {
  background: #12151a;
}

.product__visual--a::before,
.product__visual--b::before,
.product__visual--c::before,
.product__visual--d::before {
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

.product__visual--a::after,
.product__visual--b::after {
  z-index: 1;
  pointer-events: none;
}

.product__visual .frame {
  z-index: 2;
}

/* —— Add-on cards —— */
.addons {
  padding-top: 1.5rem;
}

.addon-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .addon-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.addon-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.addon-card:hover {
  border-color: rgba(255, 90, 31, 0.35);
  transform: translateY(-2px);
}

.addon-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #12151a;
}

.addon-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.addon-card__visual span {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
  background: rgba(11, 12, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}

.addon-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.2rem 1.3rem 1.35rem;
  flex: 1;
}

.addon-card__body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
}

.addon-card__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.addon-card__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.addon-card__body ul li::before {
  content: "· ";
  color: var(--orange);
}

.addon-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.addon-card__row .product__price {
  margin: 0;
}

/* —— Status —— */
.status__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .status__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1100px) {
  .status__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 799px) and (min-width: 560px) {
  .status__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 1.1rem 1.15rem 1.2rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.status-card--link {
  display: block;
  cursor: pointer;
}

.status-card--link:hover {
  border-color: rgba(255, 90, 31, 0.45);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transform: translateY(-2px);
}

.status-card--link:focus-visible {
  outline: 2px solid var(--accent, #ff5a1f);
  outline-offset: 3px;
}

.status-card__hint {
  display: none;
}

.product[data-open-url] {
  cursor: pointer;
}

.product[data-open-url]:focus-within {
  outline: none;
}

/* —— Platform hubs (CatalogHub / RemoteHub) —— */
.hubs-band {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 90, 31, 0.06) 0%, transparent 28%),
    rgba(255, 255, 255, 0.02);
}

.hubs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem max(1.5rem, env(safe-area-inset-right)) 4.25rem max(1.5rem, env(safe-area-inset-left));
}

.hubs .section__head {
  max-width: 38rem;
}

.hubs__grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 860px) {
  .hubs__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.hub-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  color: inherit;
}

.hub-card:hover {
  border-color: rgba(255, 90, 31, 0.4);
  transform: translateY(-2px);
}

.hub-card:focus-visible {
  outline: 2px solid var(--orange, #ff5a1f);
  outline-offset: 3px;
}

.hub-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.hub-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-card__tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(11, 12, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--orange, #ff5a1f);
}

.hub-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
}

.hub-card__body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}

.hub-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.hub-card__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.hub-card__body ul li::before {
  content: "·";
  margin-right: 0.35rem;
  color: var(--orange, #ff5a1f);
}

.hub-card__body .btn {
  align-self: stretch;
  justify-content: center;
  margin-top: auto;
}

.status-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.status-card__top h3 {
  margin: 0;
}

.status-card__label {
  display: none;
}

.status-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
}

.status-card__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-card__url {
  margin: 0;
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--muted);
  opacity: 0.9;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
}

.status-card[data-status="online"] .status-pill {
  color: #9fefb0;
  border-color: rgba(80, 180, 110, 0.45);
  background: rgba(40, 120, 70, 0.18);
}

.status-card[data-status="offline"] .status-pill {
  color: #f0a0a0;
  border-color: rgba(180, 80, 80, 0.45);
  background: rgba(120, 40, 40, 0.18);
}

.status-card[data-status="degraded"] .status-pill {
  color: #f0d090;
  border-color: rgba(180, 140, 60, 0.45);
  background: rgba(120, 90, 30, 0.18);
}

.frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.4rem;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
}

.frame__no {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 0.35rem;
}

.frame__name {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.frame__cap {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.product__series {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.product__body h3 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.product__dek {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 42ch;
}

.product__meta {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.product__meta li {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.product__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.5rem;
}

.product__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.product__price span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product__price strong {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 600;
}

.product__price em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
}

.product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* —— Steps —— */
.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .steps__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.steps__list li {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.steps__n {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.85rem;
}

.steps__list h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.steps__list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Support —— */
.support__grid {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 960px) {
  .support__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "head form"
      "faq form";
    gap: 1.75rem 3rem;
    align-items: start;
  }

  .support__grid > .section__head {
    grid-area: head;
    margin-bottom: 0;
  }

  .support__grid > .faq {
    grid-area: faq;
  }

  .support__grid > .contact {
    grid-area: form;
  }
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 44px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--orange);
  font-weight: 600;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0.7rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52ch;
}

.faq a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact {
  padding: 1.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.contact__head {
  margin-bottom: 1.2rem;
}

.contact__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #2a2e36;
  background: #0b0c0e;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: rgba(255, 90, 31, 0.5);
}

.contact__note {
  margin-top: 0.9rem !important;
  color: var(--orange) !important;
  font-weight: 500 !important;
}

/* —— Band —— */
.band {
  padding: 4.5rem max(1.5rem, env(safe-area-inset-right)) 4.5rem max(1.5rem, env(safe-area-inset-left));
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}

.band__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.band__logo {
  width: min(220px, 58vw);
  margin: 0 auto 1.35rem;
}

.band p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* —— Footer —— */
.foot {
  padding: 3rem max(1.5rem, env(safe-area-inset-right)) max(2.25rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
}

.foot__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

.foot__brand img {
  width: 160px;
  margin-bottom: 0.5rem;
}

.foot__brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.foot__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
}

.foot__label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.foot__cols a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.foot__cols a:hover {
  color: var(--ink);
}

.foot__copy {
  margin: 0.25rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

.foot__copy #siteVersion {
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
}


/* —— Cart —— */
.cart[aria-hidden="true"] {
  pointer-events: none;
}

.cart[aria-hidden="true"] .cart__backdrop,
.cart[aria-hidden="true"] .cart__sheet {
  opacity: 0;
}

.cart[aria-hidden="true"] .cart__sheet {
  transform: translateX(104%);
}

.cart__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.62);
  backdrop-filter: blur(6px);
  z-index: 50;
  transition: opacity 0.28s;
}

.cart__sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background:
    linear-gradient(180deg, #14181f 0%, #101317 40%, #0d1015 100%);
  border-left: 1px solid var(--line-strong);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.45);
  z-index: 51;
  display: flex;
  flex-direction: column;
  transition: transform 0.38s var(--ease), opacity 0.28s;
  padding-bottom: env(safe-area-inset-bottom);
}

.cart__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.cart__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.cart__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cart__body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.25rem 1.25rem;
}

.cart__empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 3.5rem 1rem;
  color: var(--muted);
}

.cart__empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.cart__empty-icon svg {
  width: 28px;
  height: 28px;
}

.cart__empty strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
}

.cart__empty p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 26ch;
  line-height: 1.5;
}

.cart__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.cart__thumb--a {
  background: linear-gradient(145deg, #1f2630, #141820);
}

.cart__thumb--b {
  background: linear-gradient(145deg, #22262e, #12151a);
}

.cart__thumb--c {
  background: linear-gradient(145deg, #2a2436, #16141c);
}

.cart__thumb--d {
  background: linear-gradient(145deg, #2a2218, #16140f);
}

.cart__item-main {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.cart__item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.cart__item-top strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.cart__item-top .unit {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.15rem;
}

.cart__item-top .line {
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
}

.cart__item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.qty button:hover {
  background: rgba(255, 90, 31, 0.1);
  color: var(--orange);
}

.qty button svg {
  width: 14px;
  height: 14px;
}

.qty span {
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
}

.cart__remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem;
}

.cart__remove:hover {
  color: #ff8a7a;
}

.cart__remove svg {
  width: 14px;
  height: 14px;
}

.cart__foot {
  padding: 1.15rem 1.35rem 1.4rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 0.75rem;
}

.cart__summary {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.cart__line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
}

.cart__line--muted {
  color: var(--muted);
  font-size: 0.8rem;
}

.cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.55rem;
  margin-top: 0.15rem;
  border-top: 1px dashed var(--line);
  font-weight: 600;
}

.cart__total strong {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
}

.cart__hint {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.45;
}

.cart__hint svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--orange);
}

/* —— Toast —— */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(12px);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 90, 31, 0.35);
  background: rgba(16, 19, 23, 0.96);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
  max-width: min(92vw, 360px);
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* —— Responsive —— */
@media (max-width: 899px) {
  :root {
    --nav-h: 64px;
  }

  .top__actions .btn--primary,
  .auth-nav .auth-nav__register {
    display: none;
  }

  .brand img {
    width: min(138px, 40vw);
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .hero__panel::after {
    width: 100%;
    height: 42%;
    top: auto;
    bottom: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(0deg, rgba(255, 90, 31, 0.06), transparent);
  }

  .hero__cta .btn {
    min-height: 46px;
  }

  .section {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .product__visual {
    min-height: 220px;
  }

  .product__row {
    flex-direction: column;
    align-items: stretch;
  }

  .product__actions .btn {
    flex: 1;
    min-height: 46px;
  }
}

@media (max-width: 599px) {
  :root {
    --nav-h: 60px;
  }

  .brand img {
    width: min(122px, 44vw);
  }

  .icon-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .hero__logo {
    width: min(280px, 86vw);
    margin-bottom: 1.25rem;
  }

  .hero__title {
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .trust__inner {
    gap: 0.5rem 0.85rem;
    font-size: 0.68rem;
  }

  .product__actions {
    flex-direction: column;
  }

  .product__actions .btn {
    width: 100%;
  }

  .contact input,
  .contact textarea {
    font-size: 16px;
  }

  .contact .btn,
  .band .btn {
    width: 100%;
  }

  .band .btn {
    max-width: 320px;
  }

  .foot__cols {
    flex-direction: column;
    gap: 1.35rem;
  }

  .cart__sheet {
    width: 100%;
    border-left: 0;
  }
}

@media (max-width: 379px) {
  .brand img {
    width: 108px;
  }

  .hero__title {
    font-size: 1.7rem;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .hero__inner {
    padding-top: 1.75rem;
    padding-bottom: 2rem;
  }

  .hero__logo {
    width: min(200px, 36vw);
  }
}

@media (min-width: 600px) and (max-width: 799px) {
  .steps__list {
    grid-template-columns: 1fr;
  }
}

/* Auth nav + modal + account */
.auth-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 220px;
  padding: 0.28rem 0.7rem 0.28rem 0.28rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

a.user-chip:hover {
  border-color: rgba(255, 90, 31, 0.45);
  background: rgba(255, 90, 31, 0.08);
}

.user-chip--here {
  cursor: default;
  border-color: rgba(255, 90, 31, 0.28);
  background: rgba(255, 90, 31, 0.06);
}

.user-chip--admin {
  border-color: rgba(232, 195, 106, 0.35);
}

.user-chip--admin .user-chip__ava {
  background: linear-gradient(145deg, #e8c36a, #b8892d);
  color: #1a1204;
  box-shadow: 0 6px 18px rgba(232, 195, 106, 0.22);
}

.user-chip__ava {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(145deg, var(--orange), var(--orange-deep));
  color: #fff;
  flex-shrink: 0;
}

.user-chip__meta {
  display: grid;
  line-height: 1.15;
  min-width: 0;
}

.user-chip__name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip__role {
  font-size: 0.68rem;
  color: var(--muted);
}

.icon-btn--ghost {
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .user-chip__meta {
    display: none;
  }
  .user-chip {
    padding: 0.22rem;
    max-width: none;
  }
}
.btn--sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.62);
  backdrop-filter: blur(8px);
}
.auth-modal__sheet {
  position: relative;
  width: min(420px, calc(100vw - 2rem));
  max-height: min(92dvh, 100%);
  overflow: auto;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 90, 31, 0.14), transparent 52%),
    #0c0c0d;
  border: 1px solid #2a2a2e;
  border-radius: 18px;
  padding: 1.35rem 1.4rem 1.55rem;
  z-index: 1;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.auth-modal__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.auth-modal__brand img {
  width: 92px;
  height: auto;
}
.auth-modal__kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.auth-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.auth-modal__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
}
.auth-modal__lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.auth-modal__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.28rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.auth-modal__tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  min-height: 40px;
  border-radius: 9px;
  cursor: pointer;
}
.auth-modal__tabs button.is-on {
  background: rgba(255, 90, 31, 0.16);
  color: var(--ink);
}
.auth-modal__form {
  display: grid;
  gap: 0.85rem;
}
.auth-modal__form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #9a9892;
}
.auth-modal__form input {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #2a2a2e;
  background: #111214;
  color: #f2f1ef;
  font: inherit;
  font-size: 16px;
  width: 100%;
}
.auth-modal__pass {
  position: relative;
}
.auth-modal__pass input {
  padding-right: 3rem;
}
.auth-modal__eye {
  position: absolute;
  right: 0.35rem;
  bottom: 0.28rem;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.auth-modal__eye svg {
  width: 18px;
  height: 18px;
}
.auth-modal__forgot {
  justify-self: start;
  background: none;
  border: 0;
  padding: 0;
  color: var(--orange);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-modal__error {
  margin: 0.65rem 0 0;
  color: #ff6b6b;
  font-size: 0.85rem;
}
.auth-modal__error.is-ok {
  color: #9dffb0;
}
.auth-modal__switch {
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--muted);
}
.auth-modal__switch button {
  background: none;
  border: 0;
  color: var(--orange);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-modal__panel {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}
.auth-modal__panel i,
.auth-modal__panel svg {
  width: 36px;
  height: 36px;
  color: var(--orange);
  margin: 0 auto 0.75rem;
}
.auth-modal__panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.auth-modal__panel .btn {
  margin-top: 1rem;
}
.auth-modal__hint {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}
.auth-modal__panel .auth-modal__hint {
  font-size: 0.78rem;
  color: var(--muted);
}
@media (max-width: 599px) {
  .auth-modal {
    align-items: end;
    padding: 0;
  }
  .auth-modal__sheet {
    width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 92dvh;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }
}
/* —— Account page (premium compact) —— */
.page-account {
  min-height: 100vh;
}
.page-account .top {
  position: sticky;
  top: 0;
  z-index: 50;
}
.acct {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.35rem 1.25rem 3rem;
}
.acct-strip {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.acct-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 90, 31, 0.16), transparent 46%),
    linear-gradient(135deg, rgba(22, 24, 29, 0.98), rgba(17, 19, 23, 0.86));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}
.acct-identity__body {
  min-width: 0;
  flex: 1;
}
.acct-identity__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}
.acct-identity__row h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.acct-identity__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}
.acct-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(145deg, var(--orange), var(--orange-deep));
  box-shadow: 0 8px 20px rgba(255, 90, 31, 0.24);
  flex-shrink: 0;
}
.acct-avatar--admin {
  background: linear-gradient(145deg, #e8c36a, #b8892d);
  color: #1a1204;
  box-shadow: 0 8px 20px rgba(232, 195, 106, 0.24);
}
.acct-email {
  margin: 0.2rem 0 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.acct-sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.acct-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.role-pill--admin {
  color: #1a1204;
  background: linear-gradient(135deg, #e8c36a, #d4a84a);
  border-color: transparent;
}
.acct-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}
.acct-metrics > div {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-elev);
}
.acct-metrics dt {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.acct-metrics dd {
  margin: 0.28rem 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.acct-metrics__sm {
  font-size: 0.92rem !important;
  font-weight: 600 !important;
}
.acct-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
  gap: 0.85rem;
  align-items: start;
}
.acct-card {
  padding: 0.95rem 1rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-elev);
}
.acct-card--tight {
  padding: 0.8rem 0.85rem 0.75rem;
}
.acct-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.acct-card__head h2 {
  margin: 0.1rem 0 0;
  font-size: 0.98rem;
  font-weight: 600;
}
.acct-card--tight .acct-card__head {
  margin-bottom: 0.45rem;
}
.acct-card--tight .acct-card__head h2 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.acct-side {
  display: grid;
  gap: 0.75rem;
}
.acct-links,
.acct-rows {
  display: grid;
  gap: 0.2rem;
}
.acct-link,
.acct-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.45rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.acct-link:hover,
.acct-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.acct-row__icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange);
  flex-shrink: 0;
}
.acct-row__icon svg,
.acct-link > svg:last-child {
  width: 14px;
  height: 14px;
}
.acct-link > span:nth-child(2) {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
}
.acct-link > svg:last-child {
  color: var(--muted);
}
.acct-row__text {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  flex: 1;
}
.acct-row__text strong {
  font-size: 0.88rem;
  font-weight: 600;
}
.acct-row__text span {
  font-size: 0.72rem;
  color: var(--muted);
}
.acct-row__cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  flex-shrink: 0;
}
.acct-row--danger .acct-row__icon {
  background: rgba(255, 107, 107, 0.12);
  color: #ff8a8a;
}
.acct-row--danger .acct-row__cta {
  color: #ff8a8a;
}
.acct-admin-lock {
  margin: 0.15rem 0.45rem 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.acct-licenses {
  display: grid;
  gap: 0.65rem;
}
.acct-empty {
  display: grid;
  justify-items: start;
  gap: 0.45rem;
  padding: 1.1rem 0.2rem 0.35rem;
  color: var(--ink-soft);
}
.acct-empty strong {
  color: var(--ink);
  font-size: 0.95rem;
}
.acct-empty p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.85rem;
}
.lic {
  position: relative;
  padding: 0.85rem 0.9rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(160deg, rgba(255, 90, 31, 0.08), transparent 42%),
    rgba(12, 13, 16, 0.55);
  overflow: hidden;
}
.lic--b {
  background:
    linear-gradient(160deg, rgba(110, 182, 255, 0.1), transparent 42%),
    var(--bg-elev);
}
.lic__top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.lic__top-tools {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.lic__manage {
  white-space: nowrap;
}
.brand-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 1.1rem;
  align-items: start;
}
.brand-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.55);
  max-width: 540px;
  min-width: 0;
}
.brand-tabs__btn {
  border: 0;
  border-radius: 9px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
@media (max-width: 520px) {
  .brand-tabs__btn {
    padding: 0.55rem 0.3rem;
    font-size: 0.8rem;
  }
}
.brand-tabs__btn.is-active {
  color: var(--text);
  background: rgba(255, 90, 31, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.35);
}
.bird-preview {
  position: relative;
  margin: 0.85rem 0;
  aspect-ratio: 68 / 48;
  max-width: 220px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: #1a1c22;
  background-image:
    linear-gradient(45deg, #2a2c32 25%, transparent 25%),
    linear-gradient(-45deg, #2a2c32 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2a2c32 75%),
    linear-gradient(-45deg, transparent 75%, #2a2c32 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.bird-preview img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
  image-rendering: auto;
}
.bird-preview__empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.bird-xform {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: -0.35rem 0 0.85rem;
  max-width: 220px;
}
.bird-xform__btn {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}
.bird-xform__btn:hover {
  border-color: rgba(255, 90, 31, 0.45);
  background: rgba(255, 90, 31, 0.12);
}
.bird-xform__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.bird-xform__btn i,
.bird-xform__btn svg {
  width: 1.05rem;
  height: 1.05rem;
}
.bird-rembg-btn {
  margin-left: 0.15rem;
  gap: 0.35rem;
}
.bird-rembg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.bird-preview--dino-stand {
  aspect-ratio: 88 / 94;
}
.bird-preview--dino-duck {
  aspect-ratio: 118 / 94;
}
.dino-poses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.dino-pose__title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.dino-pose .brand-drop {
  padding: 1rem 0.7rem;
}
.dino-pose .bird-xform {
  max-width: none;
}
.dino-pose .btn--danger-ghost {
  margin-top: 0.35rem;
}
.frame-preview {
  margin: 0.85rem 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(11, 12, 14, 0.45);
}
.frame-preview__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(45deg, #2a2c32 25%, transparent 25%),
    linear-gradient(-45deg, #2a2c32 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2a2c32 75%),
    linear-gradient(-45deg, transparent 75%, #2a2c32 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-color: #1a1c22;
  display: grid;
  place-items: center;
}
.frame-preview__img {
  position: absolute;
  left: var(--fi-l, 0%);
  right: var(--fi-r, 0%);
  top: var(--fi-t, 0%);
  bottom: var(--fi-b, 0%);
  width: auto;
  height: auto;
  object-fit: fill;
  transform: scale(var(--frame-scale, 1));
  transform-origin: center center;
  pointer-events: none;
}
.brand-stage__frame {
  position: absolute;
  left: var(--fi-l, 0%);
  right: var(--fi-r, 0%);
  top: var(--fi-t, 0%);
  bottom: var(--fi-b, 0%);
  width: auto;
  height: auto;
  object-fit: fill;
  transform: scale(var(--frame-scale, 1));
  transform-origin: center center;
  pointer-events: none;
  z-index: 3;
}
@media (max-width: 900px) {
  .brand-layout {
    grid-template-columns: 1fr;
  }
  .brand-preview-card {
    position: sticky;
    top: 0.5rem;
    z-index: 2;
  }
  .dino-poses {
    grid-template-columns: 1fr;
  }
}
.brand-report {
  grid-column: 1 / -1;
  transition: opacity 0.2s var(--ease);
}
.brand-report.is-loading .rpt-kpis,
.brand-report.is-loading .rpt-insights,
.brand-report.is-loading .rpt-table {
  opacity: 0.55;
}
.rpt-actions {
  display: flex;
  gap: 0.4rem;
}
.rpt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.rpt-seg {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(11, 12, 14, 0.55);
}
.rpt-seg button {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.75rem;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.rpt-seg button:hover {
  color: var(--ink);
}
.rpt-seg button.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.rpt-filters {
  display: flex;
  gap: 0.45rem;
}
.rpt-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.rpt-kpi {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 12, 14, 0.45);
  min-width: 0;
}
.rpt-kpi__label {
  font-size: 0.75rem;
  color: var(--muted);
}
.rpt-kpi__value {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rpt-kpi__note {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rpt-kpi__note--up {
  color: #3ecf8e;
}
.rpt-kpi__note--down {
  color: #f0776a;
}
.rpt-insights {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.rpt-panel {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 12, 14, 0.45);
  min-width: 0;
}
.rpt-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.rpt-panel__head span:first-child {
  color: var(--ink-soft);
  font-weight: 600;
}
.rpt-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 96px;
}
.rpt-bar {
  flex: 1 1 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
}
.rpt-bar i {
  display: block;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--orange), var(--orange-deep));
}
.rpt-bar:hover i {
  background: #ff7a45;
}
.rpt-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--muted);
}
.rpt-mix__strip {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.8rem;
}
.rpt-mix__strip i {
  display: block;
  height: 100%;
}
.rpt-mix__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
}
.rpt-mix__legend li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto 3.2rem;
  align-items: center;
  gap: 0.5rem;
}
.rpt-mix__legend li > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.rpt-mix__legend em {
  font-style: normal;
  color: var(--muted);
  text-align: right;
}
.rpt-empty {
  margin: 0;
  padding: 1.6rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.rpt-empty--table {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
}
.rpt-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.rpt-table:has(.rpt-empty) {
  border: 0;
}
.rpt-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) 0.7fr 0.9fr 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}
.rpt-row--head {
  border-top: 0;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.rpt-row--remote {
  box-shadow: inset 3px 0 0 var(--orange);
  background: rgba(255, 90, 31, 0.045);
}
.rpt-cell {
  min-width: 0;
}
.rpt-who {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.rpt-ava {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.rpt-who__text {
  display: grid;
  min-width: 0;
}
.rpt-who__text strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rpt-who__text span {
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rpt-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  white-space: nowrap;
}
.rpt-tag--remote {
  border-color: rgba(255, 90, 31, 0.5);
  color: var(--orange);
}
.rpt-score {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rpt-dur,
.rpt-date {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rpt-dur--live {
  color: #3ecf8e;
}
.rpt-dur--live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
}
.rpt-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.rpt-pager[hidden] {
  display: none;
}
.rpt-pager div {
  display: flex;
  gap: 0.35rem;
}
.rpt-pager button:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 860px) {
  .rpt-insights {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .rpt-toolbar,
  .rpt-filters {
    width: 100%;
  }
  .rpt-seg {
    width: 100%;
  }
  .rpt-seg button {
    flex: 1 1 0;
    padding: 0.4rem 0.3rem;
  }
  .rpt-filters select {
    flex: 1 1 0;
    min-width: 0;
  }
  .rpt-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rpt-kpi__value {
    font-size: 1.2rem;
  }
  .rpt-row--head {
    display: none;
  }
  .rpt-row {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas:
      "who who src"
      "dur date score";
    column-gap: 0.6rem;
    row-gap: 0.3rem;
    padding: 0.7rem 0.8rem;
  }
  .rpt-who {
    grid-area: who;
  }
  .rpt-src {
    grid-area: src;
    justify-self: end;
  }
  .rpt-score {
    grid-area: score;
    justify-self: end;
    font-size: 1rem;
  }
  .rpt-dur,
  .rpt-date {
    font-size: 0.75rem;
  }
  .rpt-dur {
    grid-area: dur;
  }
  .rpt-date {
    grid-area: date;
    color: var(--muted);
  }
  .rpt-row--head + .rpt-row {
    border-top: 0;
  }
}
.brand-dirty {
  font-size: 0.78rem;
  color: var(--orange);
  border: 1px solid rgba(255, 90, 31, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}
.brand-drop {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1.4rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(11, 12, 14, 0.45);
  cursor: pointer;
  color: var(--muted);
}
.brand-drop strong {
  color: var(--text);
  font-size: 0.95rem;
}
.brand-drop span {
  font-size: 0.8rem;
}
.brand-drop.is-drag {
  border-color: rgba(255, 90, 31, 0.55);
  background: rgba(255, 90, 31, 0.08);
}
.brand-file-meta {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1.2em;
}
.brand-msg {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.brand-msg--err {
  color: #ff8f8f;
}
.brand-switch {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0 0.85rem;
  font-size: 0.92rem;
  cursor: pointer;
}
.brand-switch--save {
  margin: 1.15rem 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.45);
}
.brand-switch input {
  accent-color: var(--orange);
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.brand-switch__copy {
  display: grid;
  gap: 0.2rem;
}
.brand-switch__copy strong {
  font-weight: 600;
  color: var(--text);
}
.brand-switch__copy em {
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}
.brand-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}
.brand-field__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.brand-field input[type="range"] {
  width: 100%;
  accent-color: var(--orange);
}
.brand-pos-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 90, 31, 0.12);
  border: 1px solid rgba(255, 90, 31, 0.28);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.brand-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.55);
}
.brand-mode__btn {
  border: 0;
  border-radius: 9px;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.brand-mode__btn.is-active {
  color: var(--text);
  background: rgba(255, 90, 31, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.35);
}
.brand-place {
  display: grid;
  gap: 0.45rem;
}
.brand-place__hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}
.brand-place__hint--free {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(11, 12, 14, 0.4);
}
.brand-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0.4rem;
  width: min(100%, 196px);
  aspect-ratio: 1;
  padding: 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 90, 31, 0.06), transparent 55%),
    rgba(11, 12, 14, 0.5);
}
.brand-pad:focus-visible {
  outline: 2px solid rgba(255, 90, 31, 0.55);
  outline-offset: 2px;
}
.brand-pad button {
  position: relative;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  min-height: 0;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.brand-pad button span {
  display: block;
  width: 7px;
  height: 7px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.brand-pad button:hover {
  background: rgba(255, 255, 255, 0.1);
}
.brand-pad button.is-active {
  border-color: rgba(255, 90, 31, 0.75);
  background: rgba(255, 90, 31, 0.2);
  box-shadow: 0 0 0 2px rgba(255, 90, 31, 0.22);
}
.brand-pad button.is-active span {
  background: var(--orange);
}
.brand-pad button[data-pos="topLeft"] { grid-area: 1 / 1; }
.brand-pad button[data-pos="topCenter"] { grid-area: 1 / 2; }
.brand-pad button[data-pos="topRight"] { grid-area: 1 / 3; }
.brand-pad button[data-pos="middleLeft"] { grid-area: 2 / 1; }
.brand-pad button[data-pos="center"] { grid-area: 2 / 2; }
.brand-pad button[data-pos="middleRight"] { grid-area: 2 / 3; }
.brand-pad button[data-pos="bottomLeft"] { grid-area: 3 / 1; }
.brand-pad button[data-pos="bottomCenter"] { grid-area: 3 / 2; }
.brand-pad button[data-pos="bottomRight"] { grid-area: 3 / 3; }
.brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.btn--danger-ghost {
  background: transparent;
  border-color: rgba(255, 107, 107, 0.35);
  color: #ff8f8f;
}
.brand-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.2em;
}
.brand-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(30, 34, 42, 0.9), rgba(12, 14, 18, 0.95));
}
.brand-stage.is-drag-mode .brand-stage__logo:not([hidden]) {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.brand-stage.is-dragging .brand-stage__logo {
  cursor: grabbing;
  transition: none;
  z-index: 4;
}
.brand-stage--wide {
  aspect-ratio: 16 / 9;
  margin-bottom: 0.75rem;
}
.brand-stage--tall {
  width: min(42%, 160px);
  aspect-ratio: 9 / 16;
  margin-left: auto;
}
.brand-stage[data-product="flappy"] .brand-stage__play {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(110, 182, 255, 0.18), transparent 50%),
    linear-gradient(180deg, #6eb6ff22, #1a1c22 60%);
}
.brand-stage[data-product="dino"] .brand-stage__play,
.brand-stage--tall .brand-stage__play {
  background:
    radial-gradient(ellipse at 70% 80%, rgba(232, 160, 92, 0.15), transparent 45%),
    linear-gradient(180deg, #2a2c30, #121316 70%);
}
.brand-stage__play {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.brand-stage__snaps {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.brand-stage__snaps span {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  opacity: 0.55;
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}
.brand-stage__snaps span.is-near {
  opacity: 1;
  background: rgba(255, 90, 31, 0.85);
  border-color: rgba(255, 200, 160, 0.9);
  transform: scale(1.35);
}
.brand-stage__snaps span[data-pos="topLeft"] { top: var(--brand-margin, 3%); left: var(--brand-margin, 3%); }
.brand-stage__snaps span[data-pos="topCenter"] { top: var(--brand-margin, 3%); left: 50%; }
.brand-stage__snaps span[data-pos="topRight"] { top: var(--brand-margin, 3%); left: calc(100% - var(--brand-margin, 3%)); }
.brand-stage__snaps span[data-pos="middleLeft"] { top: 50%; left: var(--brand-margin, 3%); }
.brand-stage__snaps span[data-pos="center"] { top: 50%; left: 50%; }
.brand-stage__snaps span[data-pos="middleRight"] { top: 50%; left: calc(100% - var(--brand-margin, 3%)); }
.brand-stage__snaps span[data-pos="bottomLeft"] { top: calc(100% - var(--brand-margin, 3%)); left: var(--brand-margin, 3%); }
.brand-stage__snaps span[data-pos="bottomCenter"] { top: calc(100% - var(--brand-margin, 3%)); left: 50%; }
.brand-stage__snaps span[data-pos="bottomRight"] { top: calc(100% - var(--brand-margin, 3%)); left: calc(100% - var(--brand-margin, 3%)); }
.brand-stage__logo {
  position: absolute;
  width: auto;
  height: auto;
  max-width: var(--brand-size, 12%);
  max-height: var(--brand-size, 12%);
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: opacity 0.15s ease, top 0.18s ease, left 0.18s ease, right 0.18s ease, bottom 0.18s ease, transform 0.18s ease;
}
.brand-stage.is-drag-mode .brand-stage__logo {
  pointer-events: auto;
}
.brand-stage__logo.is-off {
  filter: grayscale(0.4) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.brand-stage__logo.is-dragging-live {
  top: var(--drag-top, 50%) !important;
  left: var(--drag-left, 50%) !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
}
.brand-stage__logo[data-pos="topLeft"] {
  top: var(--brand-margin, 3%);
  left: var(--brand-margin, 3%);
}
.brand-stage__logo[data-pos="topCenter"] {
  top: var(--brand-margin, 3%);
  left: 50%;
  transform: translateX(-50%);
}
.brand-stage__logo[data-pos="topRight"] {
  top: var(--brand-margin, 3%);
  right: var(--brand-margin, 3%);
}
.brand-stage__logo[data-pos="middleLeft"] {
  top: 50%;
  left: var(--brand-margin, 3%);
  transform: translateY(-50%);
}
.brand-stage__logo[data-pos="center"] {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.brand-stage__logo[data-pos="middleRight"] {
  top: 50%;
  right: var(--brand-margin, 3%);
  transform: translateY(-50%);
}
.brand-stage__logo[data-pos="bottomLeft"] {
  bottom: var(--brand-margin, 3%);
  left: var(--brand-margin, 3%);
}
.brand-stage__logo[data-pos="bottomCenter"] {
  bottom: var(--brand-margin, 3%);
  left: 50%;
  transform: translateX(-50%);
}
.brand-stage__logo[data-pos="bottomRight"] {
  bottom: var(--brand-margin, 3%);
  right: var(--brand-margin, 3%);
}
.brand-stage__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  z-index: 1;
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.lic__mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid rgba(255, 90, 31, 0.25);
}
.lic--b .lic__mark {
  background: rgba(110, 182, 255, 0.12);
  color: #8fc7ff;
  border-color: rgba(110, 182, 255, 0.28);
}
.lic__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.lic__top h3 {
  margin: 0.08rem 0 0;
  font-size: 0.98rem;
  font-weight: 600;
}
.lic__badge {
  margin-left: auto;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9dffb0;
  background: rgba(61, 180, 100, 0.14);
  border: 1px solid rgba(61, 180, 100, 0.28);
}
.lic__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.lic__meta span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.lic__meta strong {
  font-size: 0.86rem;
  font-weight: 600;
}
.lic__bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 0.7rem;
}
.lic__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #ffb087);
}
.lic--b .lic__bar span {
  background: linear-gradient(90deg, #6eb6ff, #b8ddff);
}
.lic--c {
  background:
    linear-gradient(160deg, rgba(168, 132, 255, 0.12), transparent 42%),
    var(--bg-elev);
}
.lic--c .lic__mark {
  background: rgba(168, 132, 255, 0.14);
  color: #cbb6ff;
  border-color: rgba(168, 132, 255, 0.3);
}
.lic--c .lic__bar span {
  background: linear-gradient(90deg, #a884ff, #d8c8ff);
}
.lic--d {
  background:
    linear-gradient(160deg, rgba(232, 140, 74, 0.14), transparent 42%),
    var(--bg-elev);
}
.lic--d .lic__mark {
  background: rgba(232, 140, 74, 0.14);
  color: #ffc39a;
  border-color: rgba(232, 140, 74, 0.3);
}
.lic--d .lic__bar span {
  background: linear-gradient(90deg, var(--orange), #ffb087);
}
.lic__note {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.products--addons {
  padding-top: 0.5rem;
}
.lic__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.rh-settings {
  max-width: 640px;
}
.rh-mode {
  display: grid;
  gap: 0.65rem;
  margin: 0.25rem 0 1.1rem;
}
.rh-mode__opt {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.45);
  cursor: pointer;
}
.rh-mode__opt:has(input:checked) {
  border-color: rgba(255, 90, 31, 0.45);
  background: rgba(255, 90, 31, 0.08);
}
.rh-mode__opt input {
  margin-top: 0.2rem;
  accent-color: var(--orange);
}
.rh-mode__opt strong {
  display: block;
  font-size: 0.98rem;
}
.rh-mode__opt em {
  display: block;
  margin-top: 0.25rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.rh-timeout__label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rh-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.rh-seg label {
  cursor: pointer;
}
.rh-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rh-seg span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  gap: 0.4rem;
}
.rh-seg span svg {
  width: 16px;
  height: 16px;
}
.rh-seg input:checked + span {
  color: var(--ink);
  border-color: rgba(255, 90, 31, 0.5);
  background: rgba(255, 90, 31, 0.12);
}
.rh-settings__actions {
  margin-top: 1.25rem;
}
.rh-avatora {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.rh-avatora__head {
  margin-bottom: 0.85rem;
}
.rh-avatora__head h2 {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}
.rh-avatora__opt {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.rh-avatora__opt:has(input:checked) {
  border-color: rgba(255, 90, 31, 0.45);
  background: rgba(255, 90, 31, 0.08);
}
.rh-avatora__opt:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.rh-avatora__opt input {
  margin-top: 0.2rem;
  accent-color: var(--orange, #ff5a1f);
}
.rh-avatora__opt strong {
  display: block;
  font-size: 0.95rem;
}
.rh-avatora__opt em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}
.rh-avatora__locked {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.rh-avatora__locked a {
  color: var(--orange, #ff5a1f);
}
.acct-avatar svg {
  width: 22px;
  height: 22px;
}
.acct-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(10px);
}
.acct-gate[hidden] {
  display: none;
}
.acct-gate__card {
  width: min(420px, 100%);
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-elev);
  text-align: center;
}
.acct-gate__card h2 {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
}
.acct-gate__card p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}
.acct-gate__card .btn {
  width: 100%;
  justify-content: center;
}
.acct-sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.acct-sheet[hidden] {
  display: none;
}
.acct-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.62);
  backdrop-filter: blur(8px);
}
.acct-sheet__card {
  position: relative;
  width: min(400px, calc(100vw - 2rem));
  max-height: min(92dvh, 100%);
  overflow: auto;
  z-index: 1;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1px solid #2a2a2e;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 90, 31, 0.14), transparent 52%),
    #0c0c0d;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.acct-sheet--danger .acct-sheet__card {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(255, 90, 31, 0.08), transparent 40%),
    radial-gradient(ellipse at 90% 0%, rgba(255, 80, 80, 0.14), transparent 48%),
    #0c0c0d;
  border-color: rgba(255, 107, 107, 0.28);
}
.acct-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.acct-sheet__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.acct-sheet__lead {
  margin: 0.45rem 0 0.95rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.acct-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.acct-sheet__actions .btn {
  flex: 1;
  justify-content: center;
}
.acct-sheet__form {
  display: grid;
  gap: 0.65rem;
}
.acct-sheet__form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.acct-sheet__form input {
  padding: 0.68rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #0c0c0d;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.btn--danger-solid {
  background: transparent;
  border: 1px solid rgba(255, 107, 107, 0.55);
  color: #ff8a8a;
}
.btn--danger-solid:hover {
  background: rgba(255, 80, 80, 0.12);
  border-color: #ff8a8a;
}
.acct-form-msg {
  margin: 0;
  font-size: 0.82rem;
}
.acct-form-msg.is-err { color: #ff6b6b; }
.acct-form-msg.is-ok { color: #9dffb0; }

@media (max-width: 860px) {
  .acct-layout,
  .acct-metrics,
  .lic__meta {
    grid-template-columns: 1fr;
  }
  .acct-identity__actions {
    width: 100%;
  }
  .acct-identity__actions .btn {
    flex: 1;
    justify-content: center;
  }
  .acct-sheet {
    align-items: end;
    padding: 0;
  }
  .acct-sheet__card {
    width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: 92dvh;
    padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .btn,
  .acct-link,
  .acct-row,
  .user-chip {
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

.yonetim-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.yonetim-card {
  overflow: hidden;
}
.yonetim-card .acct-card__head {
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.yonetim-count {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font);
}
.yonetim-search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.55);
  min-width: min(260px, 100%);
}
.yonetim-search svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
  flex-shrink: 0;
}
.yonetim-search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  width: 100%;
  font-size: 0.88rem;
}
.yonetim-table-wrap {
  overflow-x: auto;
  margin: 0 -1rem -1rem;
  border-top: 1px solid var(--line);
}
.yonetim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 720px;
}
.yonetim-table th,
.yonetim-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.yonetim-table th {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}
.yonetim-table tbody tr.yonetim-row {
  cursor: pointer;
  transition: background 0.15s;
}
.yonetim-table tbody tr.yonetim-row:hover {
  background: rgba(255, 90, 31, 0.05);
}
.yonetim-table tbody tr:last-child td {
  border-bottom: 0;
}
.yonetim-who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.yonetim-who strong {
  display: block;
  font-weight: 600;
  word-break: break-word;
}
.yonetim-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.yonetim-ava {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1a1204;
  background: linear-gradient(135deg, #e8c36a, #d4a84a);
}
.yonetim-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.yonetim-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
}
.yonetim-pill.is-on {
  color: #c8f5d2;
  border-color: rgba(157, 255, 176, 0.28);
  background: rgba(157, 255, 176, 0.08);
}
.yonetim-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.yonetim-live {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}
.yonetim-live:hover {
  text-decoration: underline;
}
.yonetim-off {
  color: var(--muted);
  font-weight: 500;
}
.yonetim-empty {
  text-align: center;
  color: var(--muted);
  padding: 2.25rem 1rem !important;
}
.yonetim-detail td {
  background: rgba(255, 255, 255, 0.025);
  padding: 0.95rem 1rem 1.1rem;
}
.yonetim-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
}
.yonetim-dl {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
}
.yonetim-dl li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.38rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.yonetim-dl li:last-child {
  border-bottom: 0;
}
.yonetim-dl li.is-on strong {
  color: #9dffb0;
}
.yonetim-dl a {
  color: var(--ink);
  text-decoration: none;
}
.yonetim-dl a:hover {
  color: var(--orange);
}
.yonetim-dl span {
  color: var(--muted);
}
@media (max-width: 900px) {
  .yonetim-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .yonetim-card .acct-card__head {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 800px) {
  .yonetim-detail__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .yonetim-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.site-maintenance {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #d94812, #ff5a1f);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

/* —— Photo Booth owner pages (photobooth-ayarlar, photobooth-sablon) —— */
.pb-page {
  display: grid;
  gap: 0.85rem;
}
.acct.pb-page {
  max-width: 1480px;
}
/* Settings page: event nav left, account-wide nav right, one pane at a time */
.pb-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 232px;
  gap: 1rem;
  align-items: start;
}
.pb-nav--scope > .pb-nav__group:first-child {
  margin-top: 0;
}
.pb-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem;
  padding: 0.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-elev);
}
.pb-nav__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.pb-nav__item svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.pb-nav__item:hover,
.pb-nav__item:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}
.pb-nav__item.is-active {
  background: var(--orange-soft);
  color: #fff;
}
.pb-nav__item.is-active svg {
  color: var(--orange);
}
.pb-nav__item[hidden] {
  display: none;
}
.pb-nav__parent.is-current {
  color: #fff;
}
.pb-nav__parent.is-current svg {
  color: var(--orange);
}
.pb-nav__item svg.pb-nav__chev {
  width: 15px;
  height: 15px;
  margin-left: 0.15rem;
  transition: transform 0.15s ease;
}
.pb-nav__parent .pb-nav__count:empty + svg.pb-nav__chev {
  margin-left: auto;
}
.pb-nav__parent.is-open svg.pb-nav__chev {
  transform: rotate(180deg);
}
.pb-nav__sub {
  display: grid;
  gap: 0.1rem;
  margin: 0.05rem 0 0.25rem 1.05rem;
  padding-left: 0.45rem;
  border-left: 1px solid var(--line-strong);
}
.pb-nav__sub[hidden] {
  display: none;
}
.pb-nav__sub .pb-nav__item {
  padding: 0.45rem 0.6rem;
  font-size: 0.86rem;
}
.pb-nav__sub .pb-nav__item svg {
  width: 16px;
  height: 16px;
}
.pb-nav__count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: normal;
}
.pb-nav__label {
  margin: 0.6rem 0.7rem 0.15rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pb-head-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.pb-pane.is-unscoped {
  opacity: 0.5;
}
/* Selected template: one card in the nav owns every pane below it */
.pb-nav__group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem;
  margin-top: 0.45rem;
  padding: 0.35rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.pb-nav__group > .pb-nav__label {
  margin-top: 0.2rem;
}
.pb-nav__group.is-empty .pb-nav__item {
  opacity: 0.55;
}
.pb-cur {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.45rem;
  padding: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 90, 31, 0.35);
  background: var(--orange-soft);
}
.pb-cur.is-menu {
  border-color: var(--orange);
}
.pb-cur__main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pb-cur__main:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 8px;
}
.pb-cur__thumb {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.pb-cur__thumb > svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
}
.pb-cur__text {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
}
.pb-cur__text strong,
.pb-cur__text em {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-cur__text strong {
  font-size: 0.92rem;
}
.pb-cur__text em {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-style: normal;
}
.pb-cur__text em.is-warn {
  color: #ffc56e;
}
.pb-cur__main > svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.pb-cur__main:hover > svg {
  color: var(--ink);
}
.pb-cur__hint[hidden] {
  display: none;
}
.pb-cur__hint {
  margin: 0.15rem 0.5rem 0.3rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}
.pb-scene {
  display: grid;
  gap: 0.5rem;
}
.pb-scene__state {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(11, 12, 14, 0.4);
}
.pb-scene__state > svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--orange);
}
.pb-scene__state > div {
  display: grid;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.pb-scene__state span {
  color: var(--muted);
  font-size: 0.84rem;
}
.pb-scene.is-ready .pb-scene__state {
  border-style: solid;
  border-color: rgba(255, 90, 31, 0.35);
}
.pb-tpl__badge--fs {
  background: rgba(124, 92, 255, 0.16);
  color: #b9a8ff;
}
.pb-tpl__badge--warn {
  background: rgba(255, 196, 0, 0.14);
  color: #ffd25e;
}
.pb-newtype {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.pb-newtype--stack {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 640px) {
  .pb-newtype {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pb-newtype .pb-toggle {
  margin-bottom: 0;
}
.pb-newtype .pb-toggle > span {
  flex: 1;
  min-width: 0;
}
.pb-newtype .pb-toggle strong svg {
  flex-shrink: 0;
}
.pb-newtype:not(.pb-newtype--stack) .pb-toggle {
  position: relative;
  padding: 0.8rem 0.75rem 0.85rem;
}
.pb-newtype:not(.pb-newtype--stack) .pb-toggle input {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  margin: 0;
}
.pb-newtype:not(.pb-newtype--stack) .pb-toggle strong {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-right: 1.3rem;
  line-height: 1.25;
}
.pb-newtype:not(.pb-newtype--stack) .pb-toggle strong svg {
  width: 20px;
  height: 20px;
}
.pb-newtype:not(.pb-newtype--stack) .pb-toggle em {
  margin-top: 0.35rem;
  font-size: 0.8rem;
}
@media (max-width: 640px) {
  .pb-newtype:not(.pb-newtype--stack) .pb-toggle strong {
    flex-direction: row;
    align-items: center;
  }
}
.pb-tpl__badge {
  margin-left: 0.45rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}
.pb-nav__save {
  margin: 0.55rem 0.7rem 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.pb-nav__save.is-busy {
  color: #ffb08f;
}
.pb-nav__save.is-err {
  color: #ff8a80;
}
.pb-panes {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
.pb-pane[hidden] {
  display: none;
}
.pb-screen-grid {
  margin-bottom: 1rem;
}
.pb-hintpos {
  margin-top: 0.45rem;
}
.pb-hintxy {
  margin-top: 0.55rem;
}
.pb-hintxy .pb-label {
  margin: 0.35rem 0 0.15rem;
}
.pb-hintsize {
  margin: 0.75rem 0 0.15rem;
}
.pb-icon-block {
  margin-bottom: 1rem;
}
.pb-icon-block > .pb-toggle {
  margin-bottom: 0.75rem;
}
.pb-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.3rem 1rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pb-drop:hover,
.pb-drop.is-over {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.pb-drop.has-files {
  border-style: solid;
}
.pb-import-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
  overflow: hidden;
}
.pb-import-progress__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  transition: width 0.2s;
}
#pbImportMsg {
  max-height: 9rem;
  overflow: auto;
}
@media (max-width: 1180px) {
  .pb-shell {
    grid-template-columns: 252px minmax(0, 1fr);
  }
  .pb-nav--scope {
    grid-row: 1 / span 2;
  }
  .pb-nav--side {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .pb-panes {
    grid-column: 2;
    grid-row: 2;
  }
  .pb-nav--side .pb-nav__item {
    width: auto;
    white-space: nowrap;
  }
  .pb-nav--side .pb-nav__sub:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding-left: 0.3rem;
  }
}
@media (max-width: 860px) {
  .pb-shell {
    grid-template-columns: 1fr;
  }
  .pb-nav--scope,
  .pb-nav--side,
  .pb-panes {
    grid-column: auto;
    grid-row: auto;
  }
  .pb-nav--side {
    order: -1;
    flex-wrap: nowrap;
  }
  .pb-nav--side .pb-nav__sub:not([hidden]) {
    flex-wrap: nowrap;
  }
  .pb-nav {
    position: static;
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .pb-nav__item {
    width: auto;
    white-space: nowrap;
  }
  .pb-nav__label,
  .pb-nav__save,
  .pb-cur__hint {
    display: none;
  }
  .pb-nav__group {
    display: contents;
  }
  .pb-nav__sub:not([hidden]) {
    display: flex;
    margin: 0;
    padding-left: 0.3rem;
  }
  .pb-cur {
    flex: 0 0 auto;
    padding: 0.35rem 0.5rem;
  }
  .pb-cur__thumb {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
  .pb-cur__text {
    max-width: 160px;
  }
}
.pb-settings {
  display: grid;
  gap: 0.85rem;
}
.pb-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.pb-card .acct-card__head h2 {
  font-family: var(--display);
  font-size: 1.35rem;
}
.pb-hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.pb-hint strong {
  color: var(--ink-soft);
}
.pb-empty {
  margin: 0.4rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.pb-warn {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 179, 64, 0.35);
  background: rgba(255, 179, 64, 0.08);
  color: #ffd38a;
  font-size: 0.86rem;
}
.pb-warn--soft {
  margin-top: 0.6rem;
}
.pb-warn p {
  margin: 0;
}
.pb-warn .pb-warn__tip {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.pb-warn__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.pb-grid > .pb-field {
  align-content: start;
}
.pb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem 1.1rem;
  margin-bottom: 0.9rem;
}
.pb-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.pb-grid .pb-field {
  margin-bottom: 0;
}
.pb-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.pb-label output,
.pb-label small {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.pb-label small {
  font-weight: 500;
  color: var(--muted);
}
.pb-input {
  width: 100%;
  min-height: 40px;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 12, 14, 0.55);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}
.pb-input:focus {
  outline: none;
  border-color: rgba(255, 90, 31, 0.55);
}
.pb-input--sm {
  width: auto;
  min-height: 34px;
  padding: 0.3rem 0.55rem;
  font-size: 0.84rem;
}
.pb-input[type="date"] {
  cursor: pointer;
  color-scheme: dark;
}
.pb-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
}
.pb-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}
select.pb-input {
  appearance: auto;
}
.pb-range {
  width: 100%;
  accent-color: var(--orange);
}
.pb-pair {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.pb-pair span {
  color: var(--muted);
}
.pb-toggles {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}
.pb-toggles--cols {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.pb-toggle {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.4);
  cursor: pointer;
  margin-bottom: 0.55rem;
}
.pb-toggles .pb-toggle {
  margin-bottom: 0;
}
.pb-toggle:has(input:checked) {
  border-color: rgba(255, 90, 31, 0.45);
  background: rgba(255, 90, 31, 0.07);
}
.pb-toggle input {
  margin-top: 0.2rem;
  accent-color: var(--orange);
}
.pb-toggle strong {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.94rem;
}
.pb-toggle strong svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
}
.pb-toggle em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.pb-printers {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pb-printer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
}
.pb-printer > svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.pb-printer.is-live > svg {
  color: #4ade80;
}
.pb-printer span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.pb-printer strong {
  overflow-wrap: anywhere;
}
.pb-printer em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}
.pb-kiosk {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 90, 31, 0.28);
  background: var(--orange-soft);
}
.pb-kiosk__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 90, 31, 0.18);
  color: var(--orange);
}
.pb-kiosk__icon svg {
  width: 22px;
  height: 22px;
}
.pb-kiosk__body {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}
.pb-kiosk__title {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}
.pb-kiosk__body .pb-hint {
  margin: 0;
}
.pb-kiosk__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}
.pb-kiosk__cmd {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.45rem 0.45rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}
.pb-kiosk__cmd code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--ink);
  user-select: all;
}
.pb-kiosk__cmd .btn {
  flex: none;
}
.pb-kiosk__steps {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.pb-kiosk__steps code,
.pb-kiosk .pb-help code {
  font-size: 0.85em;
  word-break: break-all;
}
.pb-kiosk .pb-details {
  margin: 0;
}
.pb-details {
  margin: 0 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
}
.pb-details summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.pb-details[open] summary {
  margin-bottom: 0.75rem;
}
.pb-help p {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.pb-help code,
.pb-color code {
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}
.pb-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.pb-split__side {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
@media (max-width: 900px) {
  .pb-split {
    grid-template-columns: 1fr;
  }
  .pb-split__side {
    position: static;
  }
}
.pb-paper {
  display: grid;
  place-items: center;
  min-height: 320px;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.03) 0 25%, transparent 0 50%) 0 0 / 18px 18px;
  border: 1px solid var(--line);
}
.pb-paper__sheet {
  position: relative;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.pb-paper__safe {
  position: absolute;
  outline: 1px dashed rgba(255, 90, 31, 0.6);
  overflow: hidden;
}
.pb-paper__img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
}
.pb-paper__img .pb-thumb__canvas {
  width: 100%;
  height: 100%;
}
.pb-paper__ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #e8e4dc;
  color: #a39d92;
}
.pb-paper__meta {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.pb-thumb {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  overflow: hidden;
}
.pb-thumb__canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-image: repeating-conic-gradient(rgba(0, 0, 0, 0.06) 0 25%, transparent 0 50%);
  background-size: 14px 14px;
}
.pb-thumb__canvas img,
.pb-thumb__photo {
  position: absolute;
  object-fit: fill;
  transform-origin: center;
}
.pb-thumb__photo {
  display: grid;
  place-items: end center;
  background: linear-gradient(180deg, rgba(255, 90, 31, 0.18), rgba(255, 90, 31, 0.32));
  outline: 1px dashed rgba(255, 90, 31, 0.8);
  color: rgba(40, 20, 10, 0.55);
  overflow: hidden;
}
.pb-thumb__photo svg {
  width: 70%;
  height: 70%;
  stroke-width: 1.2;
}
.pb-templates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.pb-tpl {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.4);
  overflow: hidden;
}
.pb-evt {
  position: relative;
}
.pb-sel {
  top: 0.55rem;
  left: 0.55rem;
  width: 30px;
  height: 30px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}
.pb-shot__check input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}
.pb-tpl:hover .pb-sel,
.pb-evt:hover .pb-sel,
.pb-sel:focus-within,
.is-selected .pb-sel,
.has-sel + .pb-templates .pb-sel,
.has-sel + .pb-events .pb-sel {
  opacity: 1;
}
@media (hover: none) {
  .pb-sel {
    opacity: 1;
  }
}
.pb-tpl.is-selected,
.pb-evt.is-selected {
  border-color: rgba(255, 90, 31, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 90, 31, 0.35) inset;
}
.pb-tpl.is-active {
  border-color: rgba(255, 90, 31, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.25) inset;
}
.pb-tpl__visual {
  display: grid;
  place-items: center;
  height: 190px;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
}
.pb-tpl__body {
  padding: 0.75rem 0.85rem 0.85rem;
}
.pb-tpl__body h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.pb-tpl__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.35rem;
}
.pb-tpl__badges:empty {
  display: none;
}
.pb-tpl__badges .pb-tpl__badge {
  margin-left: 0;
  white-space: nowrap;
}
.pb-tpl__meta {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.pb-tpl__meta--warn {
  color: #ffc56e;
}
.pb-tpl__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
}
.pb-tpl__actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  white-space: nowrap;
}
.pb-tpl__actions--stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.pb-tpl__actions--stack .btn {
  justify-content: flex-start;
}
.pb-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.16);
  color: #ffb08f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pb-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.pb-chips button {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.pb-chips button:hover {
  border-color: rgba(255, 90, 31, 0.5);
}
.pb-chips__reset {
  margin-left: auto;
}
.pb-color {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pb-color input[type="color"] {
  width: 46px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: none;
}
.pb-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pb-logo img {
  max-height: 36px;
  max-width: 120px;
  border-radius: 6px;
  background: #fff;
  padding: 2px 4px;
}
.pb-file {
  cursor: pointer;
}
.pb-mail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.pb-seg-sm span {
  min-height: 30px;
  font-size: 0.78rem;
}
.pb-mail {
  margin-top: 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f4f1ec;
  overflow: hidden;
  transition: max-width 0.25s var(--ease);
}
.pb-mail.is-mobile {
  max-width: 375px;
  margin-inline: auto;
}
.pb-mail__meta {
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem 0.8rem;
  background: #fff;
  border-bottom: 1px solid #e6e1d8;
  color: #3d3b36;
  font-size: 0.8rem;
}
.pb-mail__meta strong {
  font-size: 0.84rem;
  color: #1a1916;
}
.pb-mail__body {
  display: block;
  height: 560px;
  overflow: auto;
  background: #f4f1ec;
}
.pb-switch {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
  margin-left: auto;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pb-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.15s, background 0.15s;
}
.pb-switch[aria-checked="true"] {
  border-color: rgba(255, 90, 31, 0.7);
  background: var(--orange);
}
.pb-switch[aria-checked="true"] .pb-switch__knob {
  transform: translateX(22px);
  background: #fff;
}
.pb-switch:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.pb-fold__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin: -0.25rem 0 0.75rem;
}
.pb-state {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
}
.pb-state.is-on {
  border-color: rgba(70, 200, 120, 0.45);
  background: rgba(70, 200, 120, 0.12);
  color: #8be0ad;
}
.pb-state.is-warn {
  border-color: rgba(255, 176, 60, 0.45);
  background: rgba(255, 176, 60, 0.1);
  color: #ffc56e;
}
.pb-attract.is-off,
.pb-screen-grid.is-off {
  opacity: 0.55;
}
.pb-attract__note {
  margin-top: -0.25rem;
}
/* Dropdown + optional custom seconds */
.pb-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pb-select {
  flex: 1 1 auto;
  cursor: pointer;
}
.pb-choice__custom {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.pb-choice__custom em {
  font-style: normal;
}
.pb-num {
  width: 5.5rem;
  min-height: 36px;
  padding: 0.3rem 0.5rem;
  text-align: right;
}
.pb-range-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pb-range-row .pb-range {
  flex: 1 1 auto;
}
.pb-range-row .pb-num {
  flex: 0 0 5rem;
  width: 5rem;
}
/* Usage stats */
.pb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.pb-stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.4);
}
.pb-stat svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
}
.pb-stat__label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pb-stat__value {
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1.1;
}
.pb-stat__sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.pb-table-wrap {
  overflow-x: auto;
}
.pb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.pb-table th,
.pb-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.pb-table th:first-child,
.pb-table td:first-child {
  text-align: left;
  white-space: normal;
}
.pb-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pb-stats-foot {
  display: flex;
  justify-content: flex-end;
}
.pb-stats-foot .pb-badge {
  margin-left: 0.2rem;
}
/* Idle-screen media */
.pb-attract {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 1fr);
  gap: 1rem;
  align-items: start;
}
@media (max-width: 760px) {
  .pb-attract {
    grid-template-columns: 1fr;
  }
}
.pb-attract__drop {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  margin-inline: auto;
  width: 100%;
  border-radius: 14px;
  border: 1.5px dashed var(--line-strong);
  background: #000;
  overflow: hidden;
  cursor: pointer;
}
.pb-attract__drop.is-portrait {
  aspect-ratio: 9 / 16;
  width: auto;
  height: 420px;
}
.pb-attract__drop.is-over,
.pb-attract__drop:focus-visible {
  outline: none;
  border-color: var(--orange);
}
.pb-attract__preview {
  position: absolute;
  inset: 0;
}
.pb-attract__preview img,
.pb-attract__preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pb-attract__preview[data-fit="contain"] img,
.pb-attract__preview[data-fit="contain"] video {
  object-fit: contain;
}
.pb-attract__empty {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.pb-attract__empty svg {
  width: 30px;
  height: 30px;
  color: var(--orange);
}
.pb-attract__empty strong {
  color: var(--ink-soft);
}
.pb-attract__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
}
.pb-attract__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  transition: width 0.2s linear;
}
.pb-attract__side {
  display: grid;
  gap: 0.6rem;
}
.pb-bg-media {
  display: grid;
  gap: 0.6rem;
}
.pb-bg-color {
  display: none;
  gap: 0.5rem;
}
.pb-attract.is-color .pb-bg-color {
  display: grid;
}
.pb-attract.is-color .pb-bg-media,
.pb-attract.is-color .pb-attract__preview,
.pb-attract.is-color .pb-attract__empty {
  display: none;
}
.pb-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.pb-swatches:empty {
  display: none;
}
.pb-swatches__label {
  margin-right: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted, rgba(255, 255, 255, 0.6));
}
.pb-swatch {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease;
}
.pb-swatch:hover {
  transform: scale(1.1);
}
.pb-swatch.is-on {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.pb-attract.is-off .pb-swatch {
  pointer-events: none;
}
.pb-sep {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.6rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted, rgba(255, 255, 255, 0.6));
}
.pb-sep::before,
.pb-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}
.pb-sound {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 12, 14, 0.4);
}
.pb-sound__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
}
.pb-sound__main .pb-label,
.pb-sound__main .pb-hint {
  margin: 0;
}
.pb-sound__name {
  margin: 0.15rem 0 0.25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
}
.pb-sound__name.is-custom {
  color: var(--ink);
}
.pb-sound__busy {
  color: var(--orange) !important;
}
.pb-sound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .pb-sound {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .pb-sound__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
.pb-attract__side .pb-hint {
  margin: 0;
}
.pb-attract__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.pb-local--first {
  padding-top: 0;
  border-top: 0;
  margin-bottom: 1rem;
}
.pb-pool-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pb-pool-bar {
  position: sticky;
  top: calc(var(--nav-h) + 0.5rem);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.4rem 0.35rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(22, 24, 29, 0.82);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pb-pool-bar.has-sel {
  border-color: rgba(255, 90, 31, 0.5);
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.16), rgba(22, 24, 29, 0.9) 60%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(255, 90, 31, 0.08);
}
.pb-pool-all {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.8rem 0.3rem 0.35rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s var(--ease);
}
.pb-pool-all:hover {
  background: rgba(255, 255, 255, 0.06);
}
.has-sel .pb-pool-all {
  color: #fff;
}
.pb-pool-all input,
.pb-shot__check input {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.pb-pool-all input:hover,
.pb-shot__check input:hover {
  border-color: var(--orange);
}
.pb-pool-all input:active,
.pb-shot__check input:active {
  transform: scale(0.9);
}
.pb-pool-all input::before,
.pb-shot__check input::before {
  content: "";
  width: 10px;
  height: 6px;
  margin-top: -2px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.12s var(--ease);
}
.pb-pool-all input:checked,
.pb-shot__check input:checked,
.pb-pool-all input:indeterminate {
  border-color: var(--orange);
  background: var(--orange);
}
.pb-pool-all input:checked::before,
.pb-shot__check input:checked::before {
  transform: rotate(-45deg) scale(1);
}
.pb-pool-all input:indeterminate::before {
  width: 10px;
  height: 0;
  margin-top: 0;
  border-left: 0;
  transform: none;
}
.pb-pool-bar__acts {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-left: 0.4rem;
  border-left: 1px solid var(--line-strong);
  animation: pb-acts-in 0.18s ease-out;
}
@keyframes pb-acts-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
}
.pb-pool-bar__acts[hidden] {
  display: none;
}
.pb-pool-bar__acts .btn {
  border-radius: 999px;
}
.pb-pool-bar__keys {
  margin-left: auto;
  padding-right: 0.6rem;
  font-size: 0.74rem;
  color: var(--muted);
}
.pb-pool-bar__keys kbd {
  display: inline-block;
  min-width: 1.4em;
  padding: 0.05rem 0.35rem;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
  font: 600 0.68rem/1.4 var(--font);
  text-align: center;
}
@media (max-width: 760px) {
  .pb-pool-bar {
    border-radius: 16px;
  }
  .pb-pool-bar__keys {
    display: none;
  }
}
.pb-pool {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}
.pb-shot {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.4);
  overflow: hidden;
}
.pb-shot.is-selected {
  border-color: rgba(255, 90, 31, 0.6);
}
.pb-shot__check {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
}
.pb-shot__check input {
  accent-color: var(--orange);
}
.pb-pool .pb-shot {
  user-select: none;
}
.pb-shot__img {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  cursor: zoom-in;
}
.pb-shot__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pb-shot__status {
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.7);
}
.pb-shot__status--failed {
  color: #ff8a80;
}
.pb-shot__status--queued,
.pb-shot__status--processing {
  color: #ffd38a;
}
.pb-shot__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.3rem;
  padding: 0.45rem 0.55rem 0;
  font-size: 0.76rem;
  color: var(--ink-soft);
}
.pb-shot__counts {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--muted);
}
.pb-shot__counts svg {
  width: 12px;
  height: 12px;
}
.pb-shot__tpl {
  margin: 0;
  padding: 0.1rem 0.55rem 0.5rem;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-pool-more {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}
.pb-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.pb-modal[hidden] {
  display: none;
}
.pb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 9, 0.72);
  backdrop-filter: blur(8px);
}
.pb-modal__card {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.pb-modal__card--wide {
  width: min(820px, 100%);
}
.pb-errmodal {
  z-index: 120;
}
.pb-share-page {
  max-width: 640px;
}
.pb-share {
  margin: 2rem auto;
  padding: 2.2rem 1.8rem 1.8rem;
  text-align: center;
}
.pb-share__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
}
.pb-share__icon svg {
  width: 30px;
  height: 30px;
}
.pb-share__icon.is-busy svg {
  animation: pb-spin 0.9s linear infinite;
}
.pb-share__icon.is-ok {
  background: rgba(74, 222, 128, 0.14);
  color: #4ade80;
}
.pb-share__icon.is-err {
  background: rgba(255, 107, 90, 0.14);
  color: #ff6b5a;
}
@keyframes pb-spin {
  to {
    transform: rotate(360deg);
  }
}
.pb-share__title {
  margin: 0.3rem 0 0;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.pb-share__text {
  margin: 0.7rem auto 0;
  max-width: 46ch;
  color: var(--ink-soft);
  line-height: 1.55;
}
.pb-share__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
}
.pb-share__actions[hidden],
.pb-share__actions [hidden] {
  display: none;
}
.pb-export-opts {
  display: grid;
  gap: 0.55rem;
}
.pb-export-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 12, 14, 0.4);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.pb-export-opt:hover,
.pb-export-opt[aria-expanded="true"] {
  border-color: rgba(255, 90, 31, 0.6);
  background: var(--orange-soft);
}
.pb-export-opt > svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  color: var(--orange);
}
.pb-export-opt span {
  display: grid;
  gap: 0.2rem;
}
.pb-export-opt small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.pb-export-mail {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.pb-export-mail[hidden] {
  display: none;
}
.pb-export-mail .pb-hint {
  margin: 0;
}
.pb-export-mail__row {
  display: flex;
  gap: 0.5rem;
}
.pb-export-mail__row .pb-input {
  flex: 1;
  min-width: 0;
}
.pb-ask {
  z-index: 110;
}
.pb-ask__card {
  width: min(400px, 100%);
  padding: 1.5rem 1.4rem 1.2rem;
  text-align: center;
  animation: pb-ask-in 0.18s ease-out;
}
@keyframes pb-ask-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}
.pb-ask__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
}
.pb-ask__icon.is-danger {
  background: rgba(255, 107, 90, 0.14);
  color: #ff6b5a;
}
.pb-ask__icon svg {
  width: 26px;
  height: 26px;
}
.pb-ask__title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.pb-ask__text {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.pb-ask__foot {
  justify-content: center;
  margin-top: 1.25rem;
}
.pb-ask__foot .btn {
  min-width: 112px;
  justify-content: center;
}
.pb-errmodal .pb-modal__head h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}
.pb-errmodal .pb-modal__head h2 svg {
  width: 22px;
  height: 22px;
  color: #ff6b5a;
  flex: none;
}
.pb-errmodal__list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pb-errmodal__list li {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 90, 0.28);
  background: rgba(255, 107, 90, 0.08);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.pb-modal__card--photo {
  width: min(1100px, 100%);
}
.pb-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.pb-modal__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
}
.pb-modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}
.pb-boothpick {
  display: grid;
  gap: 0.45rem;
}
.pb-boothpick__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pb-boothpick__item:hover,
.pb-boothpick__item:focus-visible {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.pb-boothpick__item svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--muted);
}
.pb-boothpick__item span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}
.pb-boothpick__item strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pb-boothpick__item em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}
.pb-boothpick__tag {
  flex: none;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 600;
}
.pb-cam {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  margin-top: 0.4rem;
}
.pb-cam__name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.pb-cam__name svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
}
.pb-cam__name {
  flex-wrap: wrap;
}
.pb-cam__meta {
  grid-column: 1;
  font-size: 0.8rem;
  color: var(--muted);
}
.pb-cam__chips {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.pb-cam__chips span {
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  color: #5b606a;
  text-decoration: line-through;
}
.pb-cam__chips span.is-on {
  color: #8ff0b9;
  border-color: rgba(61, 220, 132, 0.35);
  text-decoration: none;
}
.pb-local {
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.pb-local__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pb-local__body {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 0.6rem;
}
@media (max-width: 640px) {
  .pb-local__body {
    grid-template-columns: 1fr;
  }
}
.pb-local__video {
  width: 100%;
  border-radius: 10px;
  background: #000;
  transform: scaleX(-1);
}
.pb-lb {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.pb-lb figure {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}
.pb-lb img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
}
.pb-lb figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
.toast.is-err {
  border-color: rgba(255, 99, 88, 0.5);
}
@media (max-width: 640px) {
  .pb-card .acct-card__head {
    flex-wrap: wrap;
  }
  .pb-pool-tools {
    width: 100%;
  }
  .pb-pool-tools > * {
    flex: 1 1 8rem;
  }
}

/* ---------- Photo Booth template editor ---------- */
.pb-ed {
  padding: 0.75rem 1rem 1rem;
  display: grid;
  grid-template-rows: auto auto minmax(560px, 1fr);
  gap: 0.6rem;
  height: calc(100vh - var(--nav-h));
}
.pb-ed__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.pb-ed__name {
  flex: 0 1 22rem;
  min-width: 10rem;
  min-height: 40px;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
}
.pb-ed__name:hover,
.pb-ed__name:focus {
  outline: none;
  border-color: var(--line-strong);
  background: rgba(11, 12, 14, 0.55);
}
.pb-ed__status {
  font-size: 0.84rem;
  color: var(--muted);
}
.pb-ed__status.is-dirty {
  color: #ffb08f;
}
.pb-ed__bar-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.pb-ed__bar-actions .icon-btn {
  width: 38px;
  height: 38px;
}
.pb-ed__bar-actions .icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
#edCamera.is-on {
  border-color: rgba(255, 90, 31, 0.6);
  background: var(--orange-soft);
}
.pb-ed__kindseg {
  flex-wrap: nowrap;
  margin-left: auto;
}
.pb-ed__kindseg span svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
}
.pb-ed__bar-actions {
  margin-left: 0.4rem;
}
@media (max-width: 1100px) {
  .pb-ed__kindseg {
    order: 5;
    width: 100%;
    margin-left: 0;
  }
  .pb-ed__kindseg label {
    flex: 1;
  }
  .pb-ed__bar-actions {
    margin-left: auto;
  }
}
.pb-ed__tplbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0;
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.pb-ed__grp {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.9rem;
  border-left: 1px solid var(--line);
}
.pb-ed__grp:first-child {
  padding-left: 0;
  border-left: 0;
}
.pb-ed__grp[hidden] {
  display: none;
}
.pb-ed__grp-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.pb-ed__grp .pb-ed__check {
  margin: 0;
  white-space: nowrap;
}
.pb-ed__preset {
  max-width: 220px;
}
.pb-ed__px {
  width: 5.2rem;
}
.pb-ed__realsize {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
}
.pb-ed__swatch {
  width: 38px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.pb-ed__swatch:disabled {
  opacity: 0.4;
  cursor: default;
}
.pb-ed__output {
  max-width: 250px;
}
@media (max-width: 1500px) {
  .pb-ed__realsize {
    display: none;
  }
}
.pb-ed__grid {
  --ed-left: 260px;
  position: relative;
  display: grid;
  grid-template-columns: var(--ed-left) minmax(0, 1fr) 300px;
  gap: 0.6rem;
  min-height: 0;
}
.pb-ed__resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--ed-left) + 0.3rem - 5px);
  width: 10px;
  z-index: 3;
  cursor: col-resize;
  touch-action: none;
}
.pb-ed__resizer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  width: 2px;
  height: 48px;
  border-radius: 2px;
  background: var(--line);
  transform: translateY(-50%);
  transition: background 0.15s, height 0.15s;
}
.pb-ed__resizer:hover::after,
.pb-ed__resizer:focus-visible::after,
.pb-ed__resizer.is-dragging::after {
  height: 96px;
  background: var(--orange);
}
.pb-ed__grid.is-resizing {
  cursor: col-resize;
  user-select: none;
}
.pb-ed__panel {
  overflow: auto;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.pb-ed__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.pb-ed__panel-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
}
.pb-ed__panel-head h2 svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
}
.pb-ed__count {
  font-size: 0.8rem;
  color: var(--muted);
}
.pb-ed__upload {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.pb-ed__upload .btn {
  justify-content: center;
  padding-inline: 0.4rem;
}
.pb-ed__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}
.pb-ed__li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
}
.pb-ed__li:hover {
  border-color: var(--line-strong);
}
.pb-ed__li.is-sel {
  border-color: rgba(255, 90, 31, 0.6);
  background: var(--orange-soft);
}
.pb-ed__li.is-off .pb-ed__li-thumb,
.pb-ed__li.is-off .pb-ed__li-name {
  opacity: 0.45;
}
.pb-ed__li--photo {
  border-style: dashed;
}
.pb-ed__li-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: repeating-conic-gradient(#2a2d33 0% 25%, #1f2227 0% 50%) 50% / 10px 10px;
}
.pb-ed__li-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.pb-ed__li-thumb svg {
  width: 18px;
  height: 18px;
}
.pb-ed__li-name {
  display: grid;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pb-ed__li-name em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}
.pb-ed__li-acts {
  display: flex;
  gap: 0.15rem;
}
.pb-ed__li-acts .icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border-color: transparent;
}
.pb-ed__li-acts .icon-btn svg {
  width: 14px;
  height: 14px;
}
.pb-ed__li-acts .icon-btn:hover {
  border-color: var(--line-strong);
}
.pb-ed__li-acts .icon-btn.is-on {
  color: var(--orange);
}
.pb-ed__li-acts .icon-btn--danger:hover {
  color: #ff8f8f;
  border-color: rgba(255, 107, 107, 0.35);
}
.pb-ctx {
  position: fixed;
  z-index: 96;
  min-width: 232px;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 0.3rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(22, 24, 29, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  font-size: 0.84rem;
  user-select: none;
}
.pb-ctx__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.42rem 0.6rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pb-ctx__item span {
  flex: 1;
}
.pb-ctx__item svg,
.pb-ctx__icon svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}
.pb-ctx__item kbd {
  font: inherit;
  font-size: 0.74rem;
  color: var(--muted);
}
.pb-ctx__item:hover:not(:disabled),
.pb-ctx__item:focus-visible,
.pb-ctx__icon:hover:not(:disabled),
.pb-ctx__icon:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.07);
}
.pb-ctx__item:hover:not(:disabled) svg,
.pb-ctx__item:focus-visible svg,
.pb-ctx__icon:hover:not(:disabled) svg,
.pb-ctx__icon:focus-visible svg {
  color: var(--ink);
}
.pb-ctx__item.is-danger,
.pb-ctx__item.is-danger svg {
  color: #ff7a70;
}
.pb-ctx__item.is-danger:hover:not(:disabled),
.pb-ctx__item.is-danger:focus-visible {
  background: rgba(255, 99, 88, 0.14);
}
.pb-ctx__item:disabled,
.pb-ctx__icon:disabled {
  opacity: 0.38;
  cursor: default;
}
.pb-ctx__sep {
  height: 1px;
  margin: 0.3rem 0.4rem;
  background: var(--line-strong);
}
.pb-ctx__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.2rem 0.3rem 0.2rem 0.6rem;
  color: var(--muted);
}
.pb-ctx__row > div {
  display: flex;
  gap: 0.1rem;
}
.pb-ctx__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: none;
  cursor: pointer;
}
.pb-ed__center {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.45rem;
  min-width: 0;
}
.pb-ed__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.rh-seg--sm span {
  min-height: 32px;
  padding: 0 0.7rem;
  font-size: 0.8rem;
}
.pb-ed__gridsize {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.pb-ed__gridsize input {
  width: 4.5rem;
}
.pb-ed__spacer {
  flex: 1;
}
.pb-ed__zoom {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.pb-ed__zoom .icon-btn {
  width: 32px;
  height: 32px;
}
.pb-ed__zoom span {
  min-width: 3rem;
  text-align: center;
}
.pb-ed__viewport {
  position: relative;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #08090b radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0) 0 0 / 22px 22px;
  outline: none;
  touch-action: none;
}
.pb-ed__viewport:focus-visible {
  border-color: rgba(255, 90, 31, 0.45);
}
.pb-ed__scroll {
  min-width: 100%;
  min-height: 100%;
  width: max-content;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}
.pb-ed__stage {
  position: relative;
  flex: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  user-select: none;
}
.pb-ed__bg,
.pb-ed__items,
.pb-ed__gridlines,
.pb-ed__guides {
  position: absolute;
  inset: 0;
}
.pb-ed__bg.is-transparent {
  background: repeating-conic-gradient(#d8dbe0 0% 25%, #ffffff 0% 50%) 50% / 20px 20px !important;
}
.pb-ed__items {
  overflow: hidden;
}
.pb-ed__item {
  position: absolute;
  display: block;
  max-width: none;
  transform-origin: 50% 50%;
  cursor: move;
}
.pb-ed__item.is-locked {
  pointer-events: none;
}
.pb-ed__missing {
  background: rgba(255, 99, 88, 0.2);
  outline: 1px dashed rgba(255, 99, 88, 0.7);
}
.pb-ed__photo canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.pb-ed__photo-tag {
  position: absolute;
  left: 6px;
  top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}
.pb-ed__photo-tag svg {
  width: 12px;
  height: 12px;
}
.pb-ed__scene {
  padding: 0.6rem 0.7rem;
  border: 1px dashed rgba(139, 92, 246, 0.55);
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.06);
}
.pb-ed__scene-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0;
}
.pb-ed__gridlines {
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 90, 31, 0.28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 90, 31, 0.28) 1px, transparent 1px);
}
.pb-ed__guides {
  pointer-events: none;
}
.pb-ed__guide {
  position: absolute;
  background: #ff3df2;
}
.pb-ed__guide.is-v {
  top: 0;
  bottom: 0;
  width: 1px;
}
.pb-ed__guide.is-h {
  left: 0;
  right: 0;
  height: 1px;
}
.pb-ed__sel {
  position: absolute;
  border: 1.5px solid var(--orange);
  transform-origin: 50% 50%;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.pb-ed__sel.is-photo {
  border-style: dashed;
}
.pb-ed__h {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 3px;
  border: 1.5px solid var(--orange);
  background: #fff;
  pointer-events: auto;
}
.pb-ed__h[data-h="-1,-1"] { left: 0; top: 0; cursor: nwse-resize; }
.pb-ed__h[data-h="0,-1"] { left: 50%; top: 0; cursor: ns-resize; }
.pb-ed__h[data-h="1,-1"] { left: 100%; top: 0; cursor: nesw-resize; }
.pb-ed__h[data-h="-1,0"] { left: 0; top: 50%; cursor: ew-resize; }
.pb-ed__h[data-h="1,0"] { left: 100%; top: 50%; cursor: ew-resize; }
.pb-ed__h[data-h="-1,1"] { left: 0; top: 100%; cursor: nesw-resize; }
.pb-ed__h[data-h="0,1"] { left: 50%; top: 100%; cursor: ns-resize; }
.pb-ed__h[data-h="1,1"] { left: 100%; top: 100%; cursor: nwse-resize; }
.pb-ed__rot {
  position: absolute;
  left: 50%;
  top: -30px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  background: #fff;
  cursor: grab;
  pointer-events: auto;
}
.pb-ed__rot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1.5px;
  height: 16px;
  background: var(--orange);
  transform: translateX(-50%);
}
.pb-ed__sel.is-photo .pb-ed__rot,
.pb-ed__sel.is-locked .pb-ed__h,
.pb-ed__sel.is-locked .pb-ed__rot {
  display: none;
}
.pb-ed__sel.is-locked {
  border-style: dotted;
}
.pb-ed__dim {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
}
.pb-ed__dim:empty {
  display: none;
}
.pb-ed__drop {
  position: absolute;
  inset: 10px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.4rem;
  border: 2px dashed rgba(255, 90, 31, 0.7);
  border-radius: 12px;
  background: rgba(11, 12, 14, 0.75);
  color: var(--ink);
  font-weight: 600;
  pointer-events: none;
}
.pb-ed__foot {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}
.pb-ed__props .pb-field {
  margin-bottom: 0.75rem;
}
.pb-ed__empty {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 2.5rem 0.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.pb-ed__empty svg {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}
.pb-ed__empty p {
  margin: 0;
}
.pb-ed__pair {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.pb-ed__unit {
  font-size: 0.8rem;
  color: var(--muted);
}
.pb-ed__xywh {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.pb-ed__num {
  position: relative;
  display: block;
  flex: 1;
}
.pb-ed__num > span {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}
.pb-ed__num > span svg {
  width: 13px;
  height: 13px;
}
.pb-ed__num input {
  padding-left: 2.4rem;
}
.pb-ed__num.is-ro input {
  opacity: 0.6;
}
.pb-ed__check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.pb-ed__check input {
  accent-color: var(--orange);
}
.pb-ed__bgrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pb-ed__bgrow .pb-ed__check {
  margin: 0;
}
.pb-ed__align {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.3rem;
  margin: 0.4rem 0 0.75rem;
}
.pb-ed__align .icon-btn {
  width: 100%;
  height: 34px;
}
.pb-ed__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-bottom: 0.6rem;
}
.pb-ed__capinfo {
  margin-top: 0.4rem;
}
.pb-ed__cap {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  line-height: 1.4;
}
.pb-ed__cap svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
}
.pb-ed__cap.is-ok {
  color: #8fe3b0;
}
.pb-ed__cap.is-bad {
  color: #ffb08f;
}
@media (max-width: 1100px) {
  .pb-ed__grid {
    --ed-left: 220px;
    grid-template-columns: var(--ed-left) minmax(0, 1fr) 260px;
  }
}
@media (max-width: 900px) {
  .pb-ed {
    height: auto;
    grid-template-rows: none;
  }
  .pb-ed__grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .pb-ed__resizer {
    display: none;
  }
  .pb-ed__center {
    order: -1;
  }
  .pb-ed__viewport {
    height: 62vh;
  }
}

/* ---------- Photo Booth events ---------- */
.pb-tpl__badge--classic {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-soft);
}
.pb-tpl__badge--bg {
  background: rgba(46, 204, 170, 0.14);
  color: #6fe3c6;
}
.pb-tpl__badge--sel {
  background: var(--orange);
  color: #fff;
}
.pb-tpl__events {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.4rem;
}
.pb-chipset {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pb-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.pb-chip:hover,
.pb-chip:focus-visible {
  border-color: rgba(255, 90, 31, 0.5);
  color: var(--ink);
}
.pb-chip.is-on,
.pb-chip--check:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--ink);
}
.pb-chip--check {
  padding: 0.3rem 0.75rem;
  font-size: 0.84rem;
}
.pb-chip--check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pb-chip--check:has(input:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.pb-events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.pb-evt {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.4);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
}
.pb-evt:hover {
  border-color: var(--line-strong);
}
.pb-evt.is-active,
.pb-evt.is-menu {
  border-color: rgba(255, 90, 31, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.25) inset;
}
.pb-evt__visual {
  display: block;
  height: 170px;
  padding: 1rem 1.25rem;
  border: 0;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.pb-stack {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.pb-stack__item {
  position: absolute;
  top: calc(var(--i) * 9%);
  left: calc(var(--i) * 9%);
  right: calc((var(--n) - 1 - var(--i)) * 9%);
  bottom: calc((var(--n) - 1 - var(--i)) * 9%);
  z-index: calc(var(--n) - var(--i));
  display: grid;
  place-items: center;
}
.pb-stack__item .pb-thumb {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  border-radius: 3px;
}
.pb-stack--empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.pb-stack--empty svg {
  width: 28px;
  height: 28px;
}
.pb-cur__stack .pb-stack--empty svg,
.pb-cur__thumb > svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
}
.pb-pick {
  display: grid;
  gap: 0.35rem;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 0.1rem;
}
.pb-pick__item {
  display: grid;
  grid-template-columns: auto 48px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}
.pb-pick__item:hover {
  border-color: rgba(255, 90, 31, 0.4);
}
.pb-pick__item:has(input:checked) {
  border-color: rgba(255, 90, 31, 0.6);
  background: var(--orange-soft);
}
.pb-pick__item input {
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
}
.pb-pick__thumb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.pb-pick__text,
.pb-evt-tpl > span:last-child {
  display: grid;
  min-width: 0;
}
.pb-pick__text strong,
.pb-pick__text em,
.pb-evt-tpl strong,
.pb-evt-tpl em {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pb-pick__text strong,
.pb-evt-tpl strong {
  font-size: 0.9rem;
}
.pb-pick__text em,
.pb-evt-tpl em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
}
.pb-pick__text em.is-warn {
  color: #ffd25e;
}
.pb-evt-tpls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.45rem;
}
.pb-evt-tpl {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  text-decoration: none;
}
.pb-evt-tpl:hover,
.pb-evt-tpl:focus-visible {
  border-color: rgba(255, 90, 31, 0.45);
}
.pb-evt-tpls + .pb-warn {
  margin-top: 0.6rem;
}
.pb-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.pb-btn-stack {
  display: grid;
  gap: 0.35rem;
}
.pb-btn-stack .btn {
  justify-content: flex-start;
}
.pb-label-row .pb-label {
  margin: 0;
}
.pb-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
}
.pb-label--section {
  margin-top: 1rem;
}
.pb-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.pb-group {
  margin-top: 1.1rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.pb-group__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.pb-group__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}
.pb-group__head p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.pb-group__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 90, 31, 0.12);
  color: var(--orange);
}
.pb-group__icon svg {
  width: 18px;
  height: 18px;
}
.pb-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
.pb-setting {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.4);
}
.pb-setting__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.pb-unit {
  position: relative;
  display: flex;
  align-items: center;
}
.pb-unit .pb-input {
  padding-right: 2.6rem;
}
.pb-unit span {
  position: absolute;
  right: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  pointer-events: none;
}
.pb-rows {
  display: grid;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.4);
  overflow: hidden;
}
.pb-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.pb-row + .pb-row {
  border-top: 1px solid var(--line);
}
.pb-row:hover {
  background: rgba(255, 255, 255, 0.03);
}
.pb-row__icon,
.pb-tile__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-soft, var(--ink));
  transition: background 0.15s, color 0.15s;
}
.pb-row__icon svg,
.pb-tile__icon svg {
  width: 17px;
  height: 17px;
}
.pb-row:has(.pb-sw:checked) .pb-row__icon,
.pb-tile:has(.pb-sw:checked) .pb-tile__icon {
  background: rgba(255, 90, 31, 0.14);
  color: var(--orange);
}
.pb-row__text {
  flex: 1 1 auto;
  min-width: 0;
}
.pb-row__text strong {
  display: block;
  font-size: 0.94rem;
}
.pb-row__text em,
.pb-tile em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.pb-sw {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pb-sw::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.15s, background 0.15s;
}
.pb-sw:checked {
  border-color: rgba(255, 90, 31, 0.7);
  background: var(--orange);
}
.pb-sw:checked::after {
  transform: translateX(18px);
  background: #fff;
}
.pb-sw:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.pb-sw:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pb-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 0.75rem;
}
.pb-tile {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.2rem;
  padding: 0.95rem 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 14, 0.4);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.pb-tile:hover {
  border-color: var(--line-strong);
}
.pb-tile:has(.pb-sw:checked) {
  border-color: rgba(255, 90, 31, 0.45);
  background: rgba(255, 90, 31, 0.06);
}
.pb-tile .pb-sw {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
}
.pb-tile__icon {
  margin-bottom: 0.55rem;
}
.pb-tile strong {
  font-size: 0.94rem;
}
.pb-rec {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.02rem 0.4rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: middle;
}
.pb-fit-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.pb-fit-tip[hidden] {
  display: none;
}
.pb-fit-tip p {
  margin: 0;
}
.pb-fit-tip.is-warn p {
  color: #ffd25e;
}
.pb-crop {
  position: relative;
  flex: none;
  height: 72px;
  max-width: 140px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}
.pb-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.pb-crop__win {
  position: absolute;
  outline: 2px solid var(--orange);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.58);
}
.pb-print-tip {
  margin-top: 0.45rem;
}
.pb-transfer__summary {
  margin: 0.25rem 0 0.75rem;
}
.pb-transfer__summary .pb-hint {
  margin: 0 0 0.4rem;
}
.pb-transfer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
}
.pb-transfer__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.pb-transfer__list li strong {
  overflow-wrap: anywhere;
}
.pb-transfer__list em {
  color: var(--orange);
  font-style: normal;
}
.pb-transfer__list span {
  flex: none;
  color: var(--muted);
  font-size: 0.8rem;
}
.pb-ed__cap .btn {
  margin-left: 0.4rem;
}
