/* ============================================================================
   TATTOO VIBES — "Ink & Iron"
   Deep warm black, bone paper, one blood accent. Anton display / Bodoni italic
   accents / Barlow body / JetBrains Mono for numbers.
   ========================================================================== */

:root {
  /* Ink */
  --ink:        #0B0A0A;
  --ink-2:      #121010;
  --ink-3:      #1A1717;
  --ink-4:      #221E1E;

  /* Paper */
  --bone:       #EFE9E0;
  --bone-dim:   #B3AAA2;
  --muted:      #7E736C;

  /* Accent — overridden at runtime from studio settings */
  --accent:      #E23E3E;
  --accent-soft: rgba(226, 62, 62, 0.16);
  --accent-glow: rgba(226, 62, 62, 0.38);

  --line:       rgba(239, 233, 224, 0.11);
  --line-soft:  rgba(239, 233, 224, 0.06);
  --line-hard:  rgba(239, 233, 224, 0.22);

  /* Type */
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --serif:   'Bodoni Moda', Georgia, serif;
  --body:    'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:  cubic-bezier(0.65, 0, 0.35, 1);

  --shell:    clamp(20px, 5vw, 76px);
  --maxw:     1400px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body, #root {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--bone);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.tv-no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Scrollbar --------------------------------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: var(--ink); }
*::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 99px; border: 3px solid var(--ink); }
*::-webkit-scrollbar-thumb:hover { background: #332C2C; }

/* ===========================================================================
   GRAIN + TEXTURE
   A fixed film-grain veil over everything. Cheap, and it is the single detail
   that makes flat black read as photographed paper rather than a CSS colour.
   ========================================================================= */
.tv-grain {
  position: fixed;
  inset: -120px;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  animation: grainShift 850ms steps(3) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-12px, 8px); }
  66%  { transform: translate(9px, -11px); }
  100% { transform: translate(0, 0); }
}

.tv-app { position: relative; }
.tv-app-content { position: relative; z-index: 1; }

/* ===========================================================================
   SHARED PRIMITIVES
   ========================================================================= */
.tv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.tv-rule {
  display: block;
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.tv-section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.tv-section-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.tv-section-sub {
  max-width: 46ch;
  color: var(--bone-dim);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Buttons ----------------------------------------------------------------- */
.tv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
}
.tv-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateY(101%);
  transition: transform .42s var(--ease);
  z-index: -1;
}
.tv-btn > * { position: relative; z-index: 1; }
.tv-btn:active { transform: translateY(1px); }

.tv-btn-solid {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.tv-btn-solid::before { background: var(--bone); }
.tv-btn-solid:hover { color: var(--ink); border-color: var(--bone); }
.tv-btn-solid:hover::before { transform: translateY(0); }

.tv-btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line-hard);
}
.tv-btn-ghost::before { background: var(--bone); }
.tv-btn-ghost:hover { color: var(--ink); border-color: var(--bone); }
.tv-btn-ghost:hover::before { transform: translateY(0); }

.tv-btn-sm { padding: 10px 18px; font-size: 0.68rem; }
.tv-btn-lg { padding: 17px 34px; font-size: 0.78rem; }
.tv-btn-block { width: 100%; }

/* Tag / chip -------------------------------------------------------------- */
.tv-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line-hard);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* Reveal ------------------------------------------------------------------ */
.tv-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity .95s var(--ease) var(--reveal-delay, 0ms),
    transform .95s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.tv-reveal.is-shown { opacity: 1; transform: none; }

/* Spinner ----------------------------------------------------------------- */
.tv-spinner {
  display: flex;
  gap: 7px;
  justify-content: center;
  align-items: center;
  padding: 90px 0;
}
.tv-spinner span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 1.05s var(--ease-io) infinite;
}
.tv-spinner span:nth-child(2) { animation-delay: .14s; opacity: .7; }
.tv-spinner span:nth-child(3) { animation-delay: .28s; opacity: .45; }
@keyframes pulseDot {
  0%, 100% { transform: scale(.55); opacity: .3; }
  50%      { transform: scale(1.15); opacity: 1; }
}

/* Empty state ------------------------------------------------------------- */
.tv-empty {
  padding: 96px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 3px;
}
.tv-empty-icon {
  display: inline-flex;
  width: 60px; height: 60px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-hard);
  border-radius: 50%;
  color: var(--accent);
  margin-bottom: 22px;
}
.tv-empty h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.tv-empty p { color: var(--muted); max-width: 38ch; margin: 0 auto; }

/* ===========================================================================
   SITE — NAV
   ========================================================================= */
.tv-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background .45s var(--ease), border-color .45s var(--ease), backdrop-filter .45s;
  border-bottom: 1px solid transparent;
}
.tv-nav.is-scrolled {
  background: rgba(11, 10, 10, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.tv-nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--shell);
  height: 78px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.tv-nav.is-scrolled .tv-nav-inner { height: 66px; }

.tv-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.tv-brand-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1;
  padding-top: 2px;
  border-radius: 2px;
  flex-shrink: 0;
}
.tv-brand-logo { height: 34px; width: auto; object-fit: contain; }
.tv-brand-text {
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tv-nav-links { display: flex; align-items: center; gap: 30px; }
.tv-nav-link {
  position: relative;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.tv-nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .42s var(--ease);
}
.tv-nav-link:hover { color: var(--bone); }
.tv-nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.tv-nav-right { display: flex; align-items: center; gap: 16px; }
.tv-nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  transition: color .3s;
}
.tv-nav-phone:hover { color: var(--accent); }

.tv-burger {
  display: none;
  padding: 8px;
  margin-right: -8px;
  color: var(--bone);
}

/* ===========================================================================
   SITE — DRAWER
   ========================================================================= */
.tv-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(6, 5, 5, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.tv-drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.tv-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 901;
  width: min(400px, 88vw);
  background: var(--ink-2);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform .55s var(--ease);
}
.tv-drawer.is-open { transform: none; }

.tv-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--shell) 24px 28px;
  border-bottom: 1px solid var(--line);
}
.tv-drawer-brand {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tv-drawer-close { color: var(--bone-dim); padding: 6px; transition: color .25s; }
.tv-drawer-close:hover { color: var(--accent); }

.tv-drawer-nav { flex: 1; padding: 18px 0; overflow-y: auto; }
.tv-drawer-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 28px;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bone);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s var(--ease), padding-left .3s var(--ease), color .3s;
}
.tv-drawer-link:hover { background: var(--ink-3); padding-left: 36px; color: var(--accent); }
.tv-drawer-link svg { margin-left: auto; opacity: 0; transform: translateX(-8px); transition: all .3s var(--ease); }
.tv-drawer-link:hover svg { opacity: 1; transform: none; }
.tv-drawer-num {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.tv-drawer.is-open .tv-drawer-link {
  animation: drawerIn .55s var(--ease) backwards;
  animation-delay: calc(var(--i) * 65ms + 130ms);
}
@keyframes drawerIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: none; }
}

.tv-drawer-foot {
  padding: 26px 28px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.tv-drawer-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--bone-dim);
  transition: color .25s;
}
.tv-drawer-contact:hover { color: var(--bone); }
.tv-drawer-contact svg { color: var(--accent); flex-shrink: 0; }
.tv-drawer-foot .tv-btn { margin-top: 6px; }

/* ===========================================================================
   SITE — HERO
   ========================================================================= */
.tv-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px var(--shell) 68px;
  overflow: hidden;
  isolation: isolate;
}

.tv-hero-bg { position: absolute; inset: 0; z-index: -1; }
.tv-hero-pic { display: block; width: 100%; height: 100%; }
.tv-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Editorial studio treatment: blacks stay deep and the red ink keeps its
     bite, but the frame is dimmed enough for the headline to sit on top.
     Focal point biases right so the artist stays in frame on portrait crops. */
  object-position: 62% 42%;
  filter: grayscale(0.16) contrast(1.1) brightness(0.64) saturate(1.08);
  transform: scale(1.06);
  animation: heroDrift 22s var(--ease-io) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.13) translate(-1.4%, -1.8%); }
}

.tv-hero-fallback {
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 90% at 78% 12%, var(--accent-soft) 0%, transparent 58%),
    radial-gradient(90% 70% at 10% 92%, rgba(239,233,224,.07) 0%, transparent 60%),
    repeating-linear-gradient(48deg, rgba(239,233,224,.028) 0 2px, transparent 2px 9px),
    var(--ink);
}

.tv-hero-veil {
  position: absolute;
  inset: 0;
  /* Lighter through the upper band so the artist reads, then deepening toward
     the base where the headline, facts and scroll cue live. */
  background: linear-gradient(
    180deg,
    rgba(11,10,10,.52) 0%,
    rgba(11,10,10,.26) 30%,
    rgba(11,10,10,.68) 74%,
    var(--ink) 100%);
}
.tv-hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(115% 78% at 50% 42%, transparent 38%, rgba(6,5,5,.82) 100%);
}

.tv-hero-inner {
  position: relative;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}

.tv-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
  animation: fadeUp .9s var(--ease) .1s backwards;
}

/* Each word rises out of its own clipping mask, one beat after the last. */
.tv-hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 13.5vw, 12rem);
  line-height: 0.84;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.tv-hero-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-right: 0.14em;
  margin-right: -0.04em;
}
.tv-hero-word > span {
  display: block;
  transform: translateY(104%);
  animation: heroRise 1.05s var(--ease) forwards;
  animation-delay: calc(var(--i) * 115ms + 200ms);
}
.tv-hero-word:nth-child(even) > span { color: var(--accent); }
@keyframes heroRise { to { transform: none; } }

.tv-hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.85rem);
  line-height: 1.4;
  color: var(--bone-dim);
  max-width: 32ch;
  margin-bottom: 40px;
  animation: fadeUp 1s var(--ease) .62s backwards;
}

.tv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
  animation: fadeUp 1s var(--ease) .76s backwards;
}

.tv-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  animation: fadeUp 1s var(--ease) .9s backwards;
}
.tv-hero-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 34px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.tv-hero-fact:first-child { padding-left: 0; border-left: none; }
.tv-hero-fact dt {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  display: flex;
  align-items: center;
}
.tv-hero-fact dd {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--bone-dim);
  max-width: 26ch;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.tv-hero-scroll {
  position: absolute;
  right: var(--shell);
  bottom: 68px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
  animation: fadeUp 1s var(--ease) 1.1s backwards;
}
.tv-hero-scroll:hover { color: var(--accent); }
.tv-hero-scroll svg { animation: bob 2.1s var(--ease-io) infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* ===========================================================================
   SITE — MARQUEE
   ========================================================================= */
.tv-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  padding: 20px 0;
  user-select: none;
}
.tv-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.tv-marquee:hover .tv-marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}
.tv-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
}
.tv-marquee-star { color: var(--accent); font-size: 0.55em; }

/* ===========================================================================
   SITE — VIDEO INTRO
   ========================================================================= */
.tv-video {
  padding: clamp(78px, 11vw, 140px) 0 clamp(20px, 4vw, 46px);
  scroll-margin-top: 78px;
}
.tv-video-inner { max-width: 1120px; margin: 0 auto; padding: 0 var(--shell); }

.tv-video-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 54px);
}
.tv-video-head .tv-section-sub { margin: 0 auto; }

.tv-video-frame {
  position: relative;
  border-radius: clamp(12px, 1.6vw, 20px);
  overflow: hidden;
  border: 1px solid var(--line-hard);
  background: var(--ink-2);
  box-shadow: 0 44px 120px -54px rgba(0, 0, 0, 0.92);
}

.tv-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1014;
}
.tv-video-poster { position: absolute; inset: 0; display: block; }
.tv-video-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-video-el {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
  display: block;
}

/* Full-bleed play affordance; the click that mounts the <video> is its gesture. */
.tv-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  cursor: pointer;
  color: var(--bone);
  background: transparent;
}
.tv-video-play::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(62% 62% at 50% 50%, rgba(11, 10, 10, 0.32), rgba(11, 10, 10, 0.6));
  transition: background 0.4s var(--ease);
}
.tv-video-play:hover::before,
.tv-video-play:focus-visible::before {
  background: radial-gradient(62% 62% at 50% 50%, rgba(11, 10, 10, 0.24), rgba(11, 10, 10, 0.48));
}

.tv-video-play-ring {
  position: relative;
  width: clamp(62px, 12vw, 84px);
  height: clamp(62px, 12vw, 84px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--bone);
  background: var(--accent);
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s var(--ease);
  animation: videoPulse 2.8s var(--ease-io) infinite;
}
.tv-video-play-ring svg { margin-left: 3px; } /* optically centre the triangle */
.tv-video-play:hover .tv-video-play-ring,
.tv-video-play:focus-visible .tv-video-play-ring { transform: scale(1.08); }
@keyframes videoPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow), 0 18px 44px -14px rgba(0, 0, 0, 0.7); }
  55%      { box-shadow: 0 0 0 18px rgba(226, 62, 62, 0), 0 18px 44px -14px rgba(0, 0, 0, 0.7); }
}

.tv-video-play-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.tv-video-play-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
}
.tv-video-play-time {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .tv-video-play-ring { animation: none; }
}

/* ===========================================================================
   SITE — PORTFOLIO (healed work, static assets, filmstrip + lightbox)
   A single horizontal row so nine pieces cost one band of height, keeping the
   bookable gallery near the top of the page.
   ========================================================================= */
.tv-work {
  padding: clamp(58px, 8vw, 96px) 0 clamp(30px, 4vw, 52px);
  scroll-margin-top: 78px;
}
.tv-work-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--shell); }

.tv-work-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: clamp(26px, 4vw, 44px);
}
.tv-work-head .tv-section-sub { margin: 0 auto; }

/* Strip = the arrow rail + the scroller. Edge fades hint at more off-screen. */
.tv-work-strip { position: relative; }
.tv-work-strip::before,
.tv-work-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(24px, 5vw, 64px);
  z-index: 3;
  pointer-events: none;
}
.tv-work-strip::before { left: 0;  background: linear-gradient(90deg, var(--ink), transparent); }
.tv-work-strip::after  { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }

.tv-work-track {
  display: flex;
  gap: clamp(12px, 1.4vw, 18px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.tv-work-track::-webkit-scrollbar { display: none; }

.tv-work-frame {
  position: relative;
  flex: 0 0 clamp(212px, 26vw, 288px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: clamp(10px, 1.2vw, 16px);
  overflow: hidden;
  background: var(--ink-2);
  cursor: zoom-in;
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tv-work-frame:hover,
.tv-work-frame:focus-visible {
  border-color: var(--line-hard);
  transform: translateY(-4px);
  box-shadow: 0 34px 80px -46px rgba(0, 0, 0, 0.92);
  outline: none;
}

.tv-work-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.tv-work-frame:hover .tv-work-img,
.tv-work-frame:focus-visible .tv-work-img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.04);
}

.tv-work-index {
  position: absolute;
  top: 13px; left: 14px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--bone);
  mix-blend-mode: difference;
  z-index: 2;
}

.tv-work-zoom {
  position: absolute;
  bottom: 12px; right: 12px;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--bone);
  background: rgba(11, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line-hard);
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 2;
}
.tv-work-frame:hover .tv-work-zoom,
.tv-work-frame:focus-visible .tv-work-zoom {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Paging arrows — desktop pointer only; touch users just swipe the strip. */
.tv-work-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: var(--bone);
  background: rgba(18, 16, 16, 0.82);
  border: 1px solid var(--line-hard);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}
.tv-work-arrow.prev { left: clamp(-8px, -0.6vw, 0px); }
.tv-work-arrow.next { right: clamp(-8px, -0.6vw, 0px); }
.tv-work-arrow:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}
@media (hover: none), (max-width: 640px) {
  .tv-work-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tv-work-track { scroll-behavior: auto; }
  .tv-work-frame,
  .tv-work-img,
  .tv-work-zoom,
  .tv-work-arrow { transition: none; }
  .tv-work-frame:hover { transform: none; }
  .tv-work-frame:hover .tv-work-img { transform: none; }
}

/* ===========================================================================
   SITE — GALLERY
   ========================================================================= */
.tv-gallery { padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 10vw, 130px); scroll-margin-top: 78px; }
.tv-gallery-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--shell); }

.tv-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}
.tv-gallery-headline { display: flex; flex-direction: column; gap: 16px; }
.tv-gallery-tools { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.tv-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 290px;
  border-bottom: 1px solid var(--line-hard);
  transition: border-color .35s var(--ease);
}
.tv-search:focus-within { border-bottom-color: var(--accent); }
.tv-search-icon { color: var(--muted); display: flex; }
.tv-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 11px 12px;
  color: var(--bone);
  font-size: 0.92rem;
}
.tv-search-input::placeholder { color: var(--muted); }
.tv-search-input::-webkit-search-cancel-button { display: none; }
.tv-search-clear { color: var(--muted); padding: 5px; display: none; transition: color .25s; }
.tv-search-clear:hover { color: var(--accent); }

.tv-gallery-count {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Filters ----------------------------------------------------------------- */
.tv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 42px;
}
.tv-chip {
  position: relative;
  padding: 9px 18px;
  border: 1px solid var(--line-hard);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.tv-chip sup {
  font-size: 0.64em;
  margin-left: 6px;
  opacity: .6;
  vertical-align: super;
}
.tv-chip:hover { color: var(--bone); border-color: var(--bone-dim); }
.tv-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tv-chip.is-active sup { opacity: .85; }

/* Grid -------------------------------------------------------------------- */
.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}
.tv-grid-cell { min-width: 0; }
/* Signature pieces break the rhythm by taking two columns. */
.tv-grid-cell.is-wide { grid-column: span 2; }
@media (max-width: 700px) {
  .tv-grid-cell.is-wide { grid-column: span 1; }
}

/* Card -------------------------------------------------------------------- */
.tv-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.tv-card:hover {
  border-color: var(--line-hard);
  transform: translateY(-6px);
  box-shadow: 0 28px 60px -28px rgba(0,0,0,.9);
}

.tv-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink-3);
}
.tv-grid-cell.is-wide .tv-card-media { aspect-ratio: 16 / 11; }

.tv-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Monochrome by default; colour blooms back in on hover. */
  filter: grayscale(1) contrast(1.1) brightness(.86);
  transform: scale(1.01);
  transition: filter .7s var(--ease), transform .9s var(--ease);
}
.tv-card:hover .tv-card-media img {
  filter: grayscale(0) contrast(1.04) brightness(1);
  transform: scale(1.07);
}

.tv-card-blank {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-4);
}

.tv-card-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)' opacity='0.42'/%3E%3C/svg%3E");
}

.tv-card-index {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--bone);
  mix-blend-mode: difference;
}

.tv-card-flag {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Accent rule that wipes across the image bottom on hover. */
.tv-card-hoverline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
}
.tv-card:hover .tv-card-hoverline { transform: scaleX(1); }

.tv-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 22px;
  flex: 1;
}
.tv-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.tv-card-name {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color .3s;
}
.tv-card:hover .tv-card-name { color: var(--accent); }
.tv-card-price {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--bone);
  white-space: nowrap;
}

.tv-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.tv-card-dot { display: inline-flex; align-items: center; }
.tv-card-dot::before { content: '·'; margin: 0 8px 0 0; opacity: .55; }
.tv-card-meta .tv-tag + .tv-card-dot::before { margin-left: 2px; }

.tv-card-cta {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.tv-card:hover .tv-card-cta { color: var(--bone); gap: 14px; }

/* ===========================================================================
   SITE — ABOUT
   ========================================================================= */
.tv-about {
  position: relative;
  padding: clamp(80px, 12vw, 150px) 0;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(90% 120% at 88% 0%, var(--accent-soft) 0%, transparent 55%),
    var(--ink-2);
  scroll-margin-top: 78px;
}
.tv-about-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--shell);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.tv-about-copy { display: flex; flex-direction: column; gap: 22px; }
.tv-about-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.tv-about-title em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--accent);
  letter-spacing: -0.015em;
}
.tv-about-lead {
  max-width: 54ch;
  color: var(--bone-dim);
  font-size: 1.06rem;
  line-height: 1.72;
}

.tv-about-marks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.tv-about-mark {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .4s var(--ease);
}
.tv-about-mark:hover { padding-left: 12px; }
.tv-about-mark-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--line-hard);
  border-radius: 50%;
  color: var(--accent);
}
.tv-about-mark strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.tv-about-mark p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; }

.tv-about-quote {
  position: relative;
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(11,10,10,.55);
  position: sticky;
  top: 110px;
}
.tv-about-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  line-height: 1.42;
  color: var(--bone);
}
.tv-quote-mark {
  display: block;
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 14px;
}
.tv-about-quote cite {
  display: block;
  margin-top: 22px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===========================================================================
   SITE — CONTACT
   ========================================================================= */
.tv-contact {
  padding: clamp(80px, 12vw, 150px) 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 78px;
}
.tv-contact-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--shell);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.tv-contact-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.tv-contact-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.tv-contact-note { color: var(--bone-dim); max-width: 40ch; line-height: 1.7; }

.tv-contact-rows { display: flex; flex-direction: column; }
.tv-contact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.tv-contact-row:first-child { border-top: 1px solid var(--line); }
.tv-contact-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line-hard);
  color: var(--accent);
  border-radius: 50%;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.tv-contact-row:hover .tv-contact-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tv-contact-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.tv-contact-value {
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  transition: color .3s;
}
a.tv-contact-value:hover { color: var(--accent); }

/* ===========================================================================
   SITE — FOOTER
   ========================================================================= */
.tv-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  padding-top: clamp(56px, 8vw, 92px);
}
.tv-footer-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--shell) clamp(48px, 7vw, 80px);
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: clamp(36px, 5vw, 70px);
}

.tv-footer-brandcol { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.tv-footer-brand {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tv-footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bone-dim);
  font-size: 1.05rem;
  max-width: 30ch;
}
.tv-footer-socials { display: flex; gap: 10px; margin-top: 6px; }
.tv-social {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-hard);
  border-radius: 50%;
  color: var(--bone-dim);
  transition: all .35s var(--ease);
}
.tv-social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.tv-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
}
.tv-footer-block { display: flex; flex-direction: column; gap: 12px; }
.tv-footer-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.tv-footer-block a,
.tv-footer-block span {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--bone-dim);
  font-size: 0.92rem;
  line-height: 1.5;
  transition: color .28s;
}
.tv-footer-block svg { flex-shrink: 0; margin-top: 4px; opacity: .6; }
.tv-footer-block a:hover { color: var(--accent); }

/* Oversized studio name bleeding off the bottom edge. */
.tv-footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -0.24em;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(5rem, 21vw, 20rem);
  line-height: 0.78;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 233, 224, 0.075);
  pointer-events: none;
  user-select: none;
}

.tv-footer-base {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--shell) 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.tv-footer-info {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 70ch;
}
.tv-footer-copy {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ===========================================================================
   SITE — FLOATING WHATSAPP
   ========================================================================= */
.tv-fab {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 600;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 38px -10px var(--accent-glow);
  overflow: hidden;
  transition: gap .45s var(--ease), padding .45s var(--ease), transform .3s var(--ease);
}
.tv-fab:hover { gap: 11px; padding-right: 24px; transform: translateY(-3px); }
.tv-fab-label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: max-width .45s var(--ease), opacity .35s var(--ease);
}
.tv-fab:hover .tv-fab-label { max-width: 220px; opacity: 1; }

/* ===========================================================================
   SITE — LIGHTBOX
   ========================================================================= */
.tv-lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 5, 5, 0.96);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.tv-lb.is-open { opacity: 1; visibility: visible; }

.tv-lb-stage {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.tv-lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid var(--line);
}
.tv-lb.is-open .tv-lb-img { animation: lbIn .55s var(--ease) backwards; }
@keyframes lbIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: none; }
}

.tv-lb-close {
  position: absolute;
  top: 22px; right: 24px;
  color: var(--bone-dim);
  padding: 10px;
  transition: color .25s, transform .25s;
}
.tv-lb-close:hover { color: var(--accent); transform: rotate(90deg); }

.tv-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line-hard);
  border-radius: 50%;
  color: var(--bone-dim);
  transition: all .3s var(--ease);
}
.tv-lb-nav.prev { left: clamp(10px, 3vw, 34px); }
.tv-lb-nav.next { right: clamp(10px, 3vw, 34px); }
.tv-lb-nav:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.tv-lb-counter {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ===========================================================================
   SITE — DETAIL PAGE
   ========================================================================= */
.tv-page { padding-top: 78px; }
.tv-page-loading {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  padding: 0 var(--shell);
}

.tv-detail { padding: clamp(36px, 5vw, 62px) 0 clamp(60px, 9vw, 110px); }
.tv-detail-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--shell); }

.tv-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.tv-back:hover { color: var(--accent); gap: 16px; }

.tv-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 78px);
  align-items: start;
}

.tv-detail-media { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 104px; }
.tv-detail-stage {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--ink-2);
  cursor: zoom-in;
}
.tv-detail-img {
  width: 100%;
  max-height: 74vh;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.tv-detail-stage:hover .tv-detail-img { transform: scale(1.03); }
.tv-detail-zoom {
  position: absolute;
  bottom: 14px; right: 14px;
  padding: 7px 13px;
  background: rgba(11,10,10,.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-hard);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  opacity: 0;
  transform: translateY(6px);
  transition: all .35s var(--ease);
}
.tv-detail-stage:hover .tv-detail-zoom { opacity: 1; transform: none; }

.tv-detail-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.tv-thumb {
  width: 74px; height: 74px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  opacity: .5;
  transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.tv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tv-thumb:hover { opacity: .85; }
.tv-thumb.is-active { opacity: 1; border-color: var(--accent); }

.tv-detail-info { display: flex; flex-direction: column; gap: 30px; padding-top: 4px; }
.tv-detail-headwrap { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.tv-detail-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tv-detail-title {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.tv-detail-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tv-detail-price-value {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}
.tv-detail-price-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tv-detail-desc p {
  color: var(--bone-dim);
  font-size: 1.06rem;
  line-height: 1.78;
  max-width: 52ch;
  white-space: pre-line;
}

.tv-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.tv-spec {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 20px;
  background: var(--ink-2);
}
.tv-spec-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.tv-spec-value {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tv-detail-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.tv-detail-note p {
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: rgba(239,233,224,.03);
  color: var(--bone-dim);
  font-size: 0.94rem;
  line-height: 1.65;
}

.tv-related {
  padding: clamp(60px, 9vw, 110px) 0 clamp(70px, 10vw, 130px);
  border-top: 1px solid var(--line-soft);
  background: var(--ink-2);
}
.tv-related-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--shell); }
.tv-related-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 42px; }

/* ===========================================================================
   SITE — RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
  .tv-about-inner,
  .tv-contact-inner { grid-template-columns: 1fr; }
  .tv-about-quote { position: static; }
  .tv-footer-inner { grid-template-columns: 1fr; }
  .tv-detail-grid { grid-template-columns: 1fr; }
  .tv-detail-media { position: static; }
}

@media (max-width: 900px) {
  .tv-nav-links { display: none; }
  .tv-burger { display: inline-flex; }
  .tv-nav-phone { display: none; }
}

@media (max-width: 620px) {
  .tv-nav-book { display: none; }
  .tv-hero { padding-bottom: 96px; }
  .tv-hero-facts { flex-direction: column; gap: 18px; }
  .tv-hero-fact { padding: 0; border-left: none; }
  .tv-hero-scroll { display: none; }
  .tv-gallery-head { flex-direction: column; align-items: stretch; gap: 26px; }
  .tv-search { min-width: 0; width: 100%; }
  .tv-grid { grid-template-columns: 1fr; }
  .tv-fab { height: 50px; padding: 0 15px; }
  .tv-fab .tv-fab-label { display: none; }
  .tv-footer-base { flex-direction: column; align-items: flex-start; }
  .tv-lb-nav { width: 44px; height: 44px; }
}

/* ===========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .tv-grain { animation: none; }
  .tv-marquee-track { animation: none; }
  .tv-hero-word > span { transform: none; }
  .tv-reveal { opacity: 1; transform: none; }
}

/* ============================================================================
   ADMIN CONSOLE
   Same ink palette, but calmer: this is a workshop, not a shopfront.
   ========================================================================== */
:root {
  --ap-bg:      #0D0C0C;
  --ap-panel:   #151313;
  --ap-panel-2: #1C1919;
  --ap-line:    rgba(239, 233, 224, 0.10);
  --ap-line-2:  rgba(239, 233, 224, 0.18);
  --ap-text:    #EAE4DC;
  --ap-dim:     #9A918A;
  --ap-muted:   #6E6560;
  --ap-danger:  #E2564B;
  --ap-ok:      #4FB477;
}

/* Layout ------------------------------------------------------------------ */
.ap-layout {
  display: grid;
  grid-template-columns: 262px 1fr;
  min-height: 100vh;
  background: var(--ap-bg);
}

.ap-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ap-panel);
  border-right: 1px solid var(--ap-line);
}

.ap-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--ap-line);
}
.ap-brand-mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1;
  padding-top: 2px;
}
.ap-brand-mark.is-lg { width: 52px; height: 52px; font-size: 1.7rem; }
.ap-brand-name {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ap-text);
  line-height: 1.2;
}
.ap-brand-sub {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ap-muted);
}

.ap-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.ap-nav-group {
  padding: 16px 10px 8px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ap-muted);
}
.ap-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.92rem;
  color: var(--ap-dim);
  transition: background .22s, color .22s;
}
.ap-nav-item svg { flex-shrink: 0; opacity: .8; }
.ap-nav-item:hover { background: var(--ap-panel-2); color: var(--ap-text); }
.ap-nav-item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent);
}
.ap-nav-item.is-active svg { opacity: 1; }

.ap-sidebar-foot { padding: 14px 12px 16px; border-top: 1px solid var(--ap-line); }
.ap-view-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--ap-line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-dim);
  transition: all .25s;
}
.ap-view-site:hover { border-color: var(--accent); color: var(--accent); }

.ap-user { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.ap-avatar {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ap-panel-2);
  border: 1px solid var(--ap-line-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ap-text);
}
.ap-user-meta { min-width: 0; flex: 1; }
.ap-user-name {
  font-size: 0.86rem;
  color: var(--ap-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-user-role {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-muted);
}

.ap-main { min-width: 0; display: flex; flex-direction: column; }
.ap-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 62px;
  padding: 0 clamp(18px, 3vw, 36px);
  background: rgba(13, 12, 12, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ap-line);
}
.ap-topbar-title {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ap-text);
}
.ap-topbar-hint {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--ap-muted);
}
.ap-topbar-hint strong { color: var(--ap-dim); font-weight: 500; }

.ap-content { flex: 1; padding: clamp(20px, 3vw, 34px); }
.ap-page { max-width: 1180px; }
.ap-stack { display: flex; flex-direction: column; gap: 22px; }
.ap-stack-narrow { max-width: 720px; }

.ap-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.ap-h2 {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ap-text);
  line-height: 1.2;
}
.ap-sub { color: var(--ap-muted); font-size: 0.92rem; margin-top: 4px; }
.ap-muted { color: var(--ap-muted); font-size: 0.92rem; }
.ap-loading {
  padding: 60px 0;
  text-align: center;
  color: var(--ap-muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Buttons ----------------------------------------------------------------- */
.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ap-line-2);
  border-radius: 4px;
  background: var(--ap-panel-2);
  color: var(--ap-text);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all .22s var(--ease);
}
.ap-btn:hover:not(:disabled) { border-color: var(--ap-dim); background: #221E1E; }
.ap-btn:disabled { opacity: .45; cursor: not-allowed; }
.ap-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ap-btn-primary:hover:not(:disabled) { filter: brightness(1.12); border-color: var(--accent); background: var(--accent); }
.ap-btn-danger { background: transparent; border-color: var(--ap-danger); color: var(--ap-danger); }
.ap-btn-danger:hover:not(:disabled) { background: var(--ap-danger); color: #fff; }
.ap-btn-sm { padding: 7px 13px; font-size: 0.8rem; }
.ap-btn-block { width: 100%; }

.ap-icon-btn {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--ap-muted);
  transition: all .2s;
}
.ap-icon-btn:hover:not(:disabled) { background: var(--ap-panel-2); color: var(--ap-text); border-color: var(--ap-line); }
.ap-icon-btn:disabled { opacity: .4; cursor: wait; }
.ap-icon-btn.is-active { color: var(--accent); }
.ap-icon-btn.is-danger:hover:not(:disabled) { color: var(--ap-danger); border-color: var(--ap-danger); }

.ap-actions { display: flex; gap: 12px; padding-top: 4px; }

/* Forms ------------------------------------------------------------------- */
.ap-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ap-field > label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-dim);
}
.ap-input, .ap-select, .ap-textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--ap-bg);
  border: 1px solid var(--ap-line-2);
  border-radius: 4px;
  color: var(--ap-text);
  font-size: 0.92rem;
  transition: border-color .2s, box-shadow .2s;
}
.ap-input:focus, .ap-select:focus, .ap-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.ap-input::placeholder, .ap-textarea::placeholder { color: var(--ap-muted); }
.ap-textarea { resize: vertical; line-height: 1.6; font-family: var(--body); }
.ap-select {
  appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ap-dim) 50%),
    linear-gradient(135deg, var(--ap-dim) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.ap-select option { background: var(--ap-panel); color: var(--ap-text); }

.ap-hint { font-size: 0.78rem; color: var(--ap-muted); line-height: 1.5; }
.ap-error {
  padding: 11px 14px;
  border: 1px solid rgba(226, 86, 75, .4);
  border-left: 2px solid var(--ap-danger);
  border-radius: 4px;
  background: rgba(226, 86, 75, .08);
  color: #F0A79F;
  font-size: 0.88rem;
}
.ap-success {
  padding: 11px 14px;
  border: 1px solid rgba(79, 180, 119, .4);
  border-left: 2px solid var(--ap-ok);
  border-radius: 4px;
  background: rgba(79, 180, 119, .08);
  color: #9BD9B4;
  font-size: 0.88rem;
}

.ap-row { display: flex; gap: 16px; flex-wrap: wrap; }
.ap-row > * { flex: 1; min-width: 190px; }
.ap-row-top { align-items: flex-start; }
.ap-col { flex: 1; min-width: 220px; }

.ap-colorwrap { display: flex; gap: 10px; align-items: center; }
.ap-color {
  width: 52px; height: 40px;
  padding: 3px;
  background: var(--ap-bg);
  border: 1px solid var(--ap-line-2);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Toggle ------------------------------------------------------------------ */
.ap-toggles { display: flex; flex-direction: column; gap: 6px; }
.ap-toggle {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 14px;
  border: 1px solid var(--ap-line);
  border-radius: 5px;
  cursor: pointer;
  transition: border-color .22s, background .22s;
}
.ap-toggle:hover { border-color: var(--ap-line-2); background: var(--ap-panel-2); }
.ap-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ap-toggle-track {
  position: relative;
  width: 38px; height: 21px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--ap-panel-2);
  border: 1px solid var(--ap-line-2);
  border-radius: 999px;
  transition: background .25s var(--ease), border-color .25s;
}
.ap-toggle-dot {
  position: absolute;
  top: 2px; left: 2px;
  width: 15px; height: 15px;
  background: var(--ap-dim);
  border-radius: 50%;
  transition: transform .25s var(--ease), background .25s;
}
.ap-toggle input:checked + .ap-toggle-track { background: var(--accent); border-color: var(--accent); }
.ap-toggle input:checked + .ap-toggle-track .ap-toggle-dot { transform: translateX(17px); background: #fff; }
.ap-toggle input:focus-visible + .ap-toggle-track { box-shadow: 0 0 0 3px var(--accent-soft); }
.ap-toggle-text strong { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ap-text); }
.ap-toggle-text span { font-size: 0.8rem; color: var(--ap-muted); }

/* Cards ------------------------------------------------------------------- */
.ap-card {
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: 6px;
  overflow: hidden;
}
.ap-card-head { padding: 18px 20px 0; }
.ap-card-title {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ap-text);
}
.ap-card > .ap-card-title { padding: 18px 20px 0; }
.ap-card-sub { color: var(--ap-muted); font-size: 0.85rem; margin-top: 4px; }
.ap-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.ap-card > .ap-card-title + * { padding: 14px 20px 20px; }

.ap-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }

/* Stats ------------------------------------------------------------------- */
.ap-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.ap-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .25s;
}
.ap-stat::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s var(--ease);
}
.ap-stat:hover { border-color: var(--ap-line-2); }
.ap-stat:hover::after { transform: scaleY(1); }
.ap-stat-icon { color: var(--accent); margin-bottom: 6px; }
.ap-stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ap-muted);
}
.ap-stat-value {
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1.05;
  color: var(--ap-text);
}
.ap-stat-hint { font-size: 0.78rem; color: var(--ap-muted); }

/* Recent list ------------------------------------------------------------- */
.ap-recent { display: flex; flex-direction: column; }
.ap-recent-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ap-line);
  transition: padding-left .25s var(--ease);
}
.ap-recent-row:last-child { border-bottom: none; }
.ap-recent-row:hover { padding-left: 6px; }
.ap-recent-thumb {
  width: 46px; height: 46px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--ap-line);
}
.ap-recent-thumb.is-blank { background: var(--ap-panel-2); display: block; }
.ap-recent-meta { flex: 1; min-width: 0; }
.ap-recent-meta strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ap-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-recent-meta span { font-size: 0.76rem; color: var(--ap-muted); }
.ap-recent-price { font-family: var(--mono); font-size: 0.84rem; color: var(--accent); white-space: nowrap; }

/* Bars -------------------------------------------------------------------- */
.ap-bars { display: flex; flex-direction: column; gap: 13px; }
.ap-bar-row { display: flex; align-items: center; gap: 12px; }
.ap-bar-label {
  width: 96px;
  flex-shrink: 0;
  font-size: 0.82rem;
  color: var(--ap-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-bar-track { flex: 1; height: 6px; background: var(--ap-panel-2); border-radius: 999px; overflow: hidden; }
.ap-bar-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  animation: barGrow .8s var(--ease) backwards;
}
@keyframes barGrow { from { width: 0 !important; } }
.ap-bar-count { font-family: var(--mono); font-size: 0.76rem; color: var(--ap-muted); width: 22px; text-align: right; }

/* Toolbar ----------------------------------------------------------------- */
.ap-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ap-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 220px;
  max-width: 400px;
}
.ap-search-icon {
  position: absolute;
  left: 12px;
  display: flex;
  color: var(--ap-muted);
  pointer-events: none;
}
.ap-search-input { padding-left: 36px; }
.ap-search-input::-webkit-search-cancel-button { display: none; }
.ap-toolbar .ap-select { width: auto; min-width: 165px; }

/* Tattoo grid ------------------------------------------------------------- */
.ap-tattoo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
}
.ap-tattoo-card {
  display: flex;
  flex-direction: column;
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease);
}
.ap-tattoo-card:hover { border-color: var(--ap-line-2); transform: translateY(-2px); }
.ap-tattoo-card.is-hidden { opacity: .58; }

.ap-tattoo-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ap-panel-2);
  overflow: hidden;
}
.ap-tattoo-media img { width: 100%; height: 100%; object-fit: cover; }
.ap-tattoo-blank {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-muted);
}
.ap-tattoo-flag,
.ap-tattoo-hidden,
.ap-tattoo-count {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ap-tattoo-flag { top: 10px; left: 10px; background: var(--accent); color: #fff; }
.ap-tattoo-hidden { top: 10px; right: 10px; background: rgba(13,12,12,.86); color: var(--ap-dim); border: 1px solid var(--ap-line-2); }
.ap-tattoo-count { bottom: 10px; right: 10px; background: rgba(13,12,12,.82); color: var(--ap-dim); }

.ap-tattoo-body { display: flex; flex-direction: column; gap: 10px; padding: 15px 16px 14px; flex: 1; }
.ap-tattoo-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ap-tattoo-top h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ap-text);
  line-height: 1.2;
}
.ap-tattoo-price { font-family: var(--mono); font-size: 0.84rem; color: var(--accent); white-space: nowrap; }
.ap-tattoo-desc {
  font-size: 0.85rem;
  color: var(--ap-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ap-tattoo-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-tag {
  padding: 3px 8px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.ap-tag.is-soft { border-color: var(--ap-line-2); color: var(--ap-muted); }

.ap-tattoo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--ap-line);
}
.ap-tattoo-date { font-family: var(--mono); font-size: 0.66rem; color: var(--ap-muted); }
.ap-tattoo-actions { display: flex; gap: 2px; }

/* Empty ------------------------------------------------------------------- */
.ap-empty {
  padding: 70px 24px;
  text-align: center;
  border: 1px dashed var(--ap-line-2);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ap-empty h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ap-text);
}
.ap-empty p { color: var(--ap-muted); font-size: 0.9rem; max-width: 42ch; }
.ap-empty .ap-btn { margin-top: 8px; }

/* Uploaders --------------------------------------------------------------- */
.ap-uploader { display: flex; gap: 14px; align-items: flex-start; }
.ap-uploader-thumb {
  width: 92px; height: 92px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--ap-line-2);
}
.ap-uploader-placeholder {
  width: 92px; height: 92px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px dashed var(--ap-line-2);
  border-radius: 5px;
  color: var(--ap-muted);
}
.ap-uploader-side { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ap-uploader-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.ap-progress { height: 4px; background: var(--ap-panel-2); border-radius: 999px; overflow: hidden; }
.ap-progress-bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width .25s var(--ease); }

.ap-multi { display: flex; flex-direction: column; gap: 11px; }
.ap-multi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 9px;
}
.ap-multi-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--ap-line-2);
}
.ap-multi-item.is-cover { border-color: var(--accent); }
.ap-multi-item img { width: 100%; height: 100%; object-fit: cover; }
.ap-multi-badge {
  position: absolute;
  top: 5px; left: 5px;
  padding: 2px 7px;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ap-multi-actions {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding: 5px;
  background: linear-gradient(to top, rgba(13,12,12,.9), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.ap-multi-item:hover .ap-multi-actions { opacity: 1; }
.ap-multi-action {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  background: rgba(13,12,12,.85);
  border: 1px solid var(--ap-line-2);
  border-radius: 3px;
  color: var(--ap-text);
  transition: all .2s;
}
.ap-multi-action:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.ap-multi-action.is-danger:hover { background: var(--ap-danger); border-color: var(--ap-danger); }
.ap-multi-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Modal ------------------------------------------------------------------- */
.ap-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vh, 48px) 16px;
  background: rgba(6, 5, 5, .78);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  animation: apFade .25s var(--ease);
}
@keyframes apFade { from { opacity: 0; } }

.ap-modal {
  width: 100%;
  max-width: 520px;
  background: var(--ap-panel);
  border: 1px solid var(--ap-line-2);
  border-radius: 8px;
  overflow: hidden;
  animation: apModalIn .35s var(--ease);
}
.ap-modal.is-lg { max-width: 760px; }
@keyframes apModalIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
}

.ap-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ap-line);
}
.ap-modal-head h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ap-text);
}
.ap-modal-close { color: var(--ap-muted); font-size: 1rem; padding: 4px 8px; transition: color .2s; }
.ap-modal-close:hover { color: var(--ap-danger); }

.ap-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  max-height: min(66vh, 680px);
  overflow-y: auto;
}
.ap-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid var(--ap-line);
  background: var(--ap-bg);
}

.ap-confirm { padding: 24px; }
.ap-confirm h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ap-text);
  margin-bottom: 10px;
}
.ap-confirm p { color: var(--ap-muted); font-size: 0.92rem; line-height: 1.6; }
.ap-confirm .ap-modal-foot { margin: 20px -24px -24px; }

/* Login ------------------------------------------------------------------- */
.ap-login {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--ap-bg);
  overflow: hidden;
}
.ap-login-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 48% at 50% 6%, var(--accent-soft) 0%, transparent 62%),
    radial-gradient(46% 40% at 84% 96%, rgba(239,233,224,.05) 0%, transparent 60%);
  pointer-events: none;
}
.ap-login-card {
  position: relative;
  width: 100%;
  max-width: 396px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 34px 30px 30px;
  background: var(--ap-panel);
  border: 1px solid var(--ap-line-2);
  border-radius: 8px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
  animation: apModalIn .5s var(--ease);
}
.ap-login-head { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-bottom: 6px; text-align: center; }
.ap-login-head h1 {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ap-text);
}
.ap-login-head p {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ap-muted);
}
.ap-login-card .ap-btn-primary { margin-top: 4px; padding: 12px; }
.ap-login-back {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-muted);
  transition: color .25s;
}
.ap-login-back:hover { color: var(--accent); }

/* Admin responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
  .ap-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ap-layout { grid-template-columns: 1fr; }
  .ap-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 0 12px;
  }
  .ap-brand { border-bottom: none; border-right: 1px solid var(--ap-line); padding: 14px 16px 14px 6px; flex-shrink: 0; }
  .ap-nav { display: flex; gap: 6px; padding: 10px 0; flex: 1; }
  .ap-nav-group { display: none; }
  .ap-nav-item { white-space: nowrap; }
  .ap-sidebar-foot { border-top: none; padding: 10px 0; flex-shrink: 0; }
  .ap-view-site { display: none; }
  .ap-user-meta { display: none; }
  .ap-topbar-hint { display: none; }
}
@media (max-width: 560px) {
  .ap-row > * { min-width: 100%; }
  .ap-tattoo-grid { grid-template-columns: 1fr; }
  .ap-page-head { flex-direction: column; align-items: stretch; }
  .ap-toolbar .ap-select { width: 100%; min-width: 0; }
  .ap-search { max-width: none; }
}

/* ===========================================================================
   SITE — BOOKING
   ========================================================================= */
.tv-book { padding: clamp(36px, 5vw, 62px) 0 clamp(70px, 10vw, 120px); }
.tv-book-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--shell); }
.tv-book-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 5vw, 54px); }

.tv-book-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.tv-book-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.tv-slots-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Calendar ---------------------------------------------------------------- */
.tv-cal-wrap {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
  padding: 18px;
}
.tv-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.tv-cal-month {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tv-cal-nav {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line-hard);
  border-radius: 50%;
  color: var(--bone-dim);
  transition: all .28s var(--ease);
}
.tv-cal-nav:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.tv-cal-nav:disabled { opacity: .28; cursor: not-allowed; }

.tv-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.tv-cal-dow {
  padding: 6px 0 10px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.tv-cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  aspect-ratio: 1;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--ink-3);
  color: var(--bone-dim);
  transition: all .25s var(--ease);
}
.tv-cal-cell.is-blank { background: none; pointer-events: none; }

.tv-cal-num { font-family: var(--mono); font-size: 0.86rem; line-height: 1; }

/* Open days are the only ones that respond to a pointer. */
.tv-cal-cell.is-open {
  color: var(--bone);
  border-color: var(--line-hard);
  cursor: pointer;
}
.tv-cal-cell.is-open:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Fully booked and closed days are visibly out of play. */
.tv-cal-cell.is-full,
.tv-cal-cell.is-closed {
  cursor: not-allowed;
  color: var(--muted);
  background: repeating-linear-gradient(
    -45deg,
    rgba(239,233,224,.028) 0 3px,
    transparent 3px 7px);
}
.tv-cal-cell.is-closed .tv-cal-num { opacity: .4; }
.tv-cal-cell.is-full .tv-cal-num { text-decoration: line-through; opacity: .65; }

.tv-cal-cell.is-today { box-shadow: inset 0 0 0 1px var(--line-hard); }
.tv-cal-cell.is-chosen {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tv-cal-cell.is-chosen .tv-cal-dots i { background: #fff; }

.tv-cal-dots { display: flex; gap: 3px; }
.tv-cal-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.tv-cal-full {
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: .6;
}

.tv-cal-key {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.tv-cal-key-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tv-cal-key-dot {
  width: 9px; height: 9px;
  border-radius: 2px;
  border: 1px solid var(--line-hard);
  background: var(--ink-3);
}
.tv-cal-key-dot.is-open { border-color: var(--accent); background: var(--accent-soft); }
.tv-cal-key-dot.is-full { background: repeating-linear-gradient(-45deg, rgba(239,233,224,.22) 0 2px, transparent 2px 4px); }
.tv-cal-key-dot.is-closed { opacity: .4; }

/* Slots ------------------------------------------------------------------- */
.tv-slots-wrap:empty { display: none; }
.tv-slots-wrap {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
  padding: 18px;
}
.tv-slots-loading { padding: 10px 0; }
.tv-slots-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tv-slots-date {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tv-slots-count {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tv-slots-empty { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }

.tv-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 9px;
}
.tv-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 13px 8px;
  border: 1px solid var(--line-hard);
  border-radius: 3px;
  background: var(--ink-3);
  color: var(--bone);
  transition: all .25s var(--ease);
}
.tv-slot-time { font-family: var(--mono); font-size: 0.92rem; letter-spacing: 0.04em; }
.tv-slot-tag {
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tv-slot:not(:disabled):hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.tv-slot.is-chosen {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* A slot someone else already holds: struck through and inert. */
.tv-slot.is-taken,
.tv-slot.is-past {
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--line-soft);
  background: repeating-linear-gradient(
    -45deg,
    rgba(239,233,224,.03) 0 3px,
    transparent 3px 7px);
}
.tv-slot.is-taken .tv-slot-time,
.tv-slot.is-past .tv-slot-time { text-decoration: line-through; opacity: .7; }
.tv-slot.is-taken .tv-slot-tag { color: var(--accent); opacity: .8; }

/* Summary / form ---------------------------------------------------------- */
.tv-book-summary {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.tv-book-design {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
}
.tv-book-design img {
  width: 58px; height: 58px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 3px;
  filter: grayscale(1) contrast(1.06);
}
.tv-book-design > div { flex: 1; min-width: 0; }
.tv-book-design strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tv-book-design-meta { font-size: 0.8rem; color: var(--muted); }
.tv-book-design-link {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--line-hard);
  border-radius: 50%;
  color: var(--bone-dim);
  transition: all .25s var(--ease);
}
.tv-book-design-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.tv-book-when {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
}
.tv-book-when-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.tv-book-when-row:last-child { border-bottom: none; padding-bottom: 0; }
.tv-book-when-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tv-book-when-row strong {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: right;
}

.tv-book-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
}
.tv-book-field { display: flex; flex-direction: column; gap: 6px; }
.tv-book-field > span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.tv-req { color: var(--accent); font-style: normal; margin-left: 3px; }
.tv-book-field input,
.tv-book-field textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--ink);
  border: 1px solid var(--line-hard);
  border-radius: 3px;
  color: var(--bone);
  font-size: 0.94rem;
  transition: border-color .2s, box-shadow .2s;
}
.tv-book-field textarea { resize: vertical; line-height: 1.6; font-family: var(--body); }
.tv-book-field input:focus,
.tv-book-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.tv-book-field input::placeholder,
.tv-book-field textarea::placeholder { color: var(--muted); }

.tv-book-form .tv-btn:disabled { opacity: .4; cursor: not-allowed; }
.tv-book-fineprint {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}
.tv-book-error {
  padding: 11px 14px;
  border: 1px solid var(--accent);
  border-left-width: 2px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--bone);
  font-size: 0.88rem;
}

/* Confirmation ------------------------------------------------------------ */
.tv-book-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 24px;
  border: 1px solid var(--line-hard);
  border-radius: 4px;
  background: var(--ink-2);
  text-align: center;
  animation: doneIn .6s var(--ease);
}
@keyframes doneIn { from { opacity: 0; transform: translateY(16px); } }
.tv-book-done-mark {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.tv-book-done h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tv-book-done-msg { color: var(--bone-dim); font-size: 0.94rem; line-height: 1.6; max-width: 38ch; }
.tv-book-done-list {
  width: 100%;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.tv-book-done-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.tv-book-done-row dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tv-book-done-row dd {
  font-family: var(--display);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: right;
}
.tv-book-done-where {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}
.tv-book-done .tv-btn { width: 100%; }

@media (max-width: 980px) {
  .tv-book-grid { grid-template-columns: 1fr; }
  .tv-book-summary { position: static; }
}
@media (max-width: 560px) {
  .tv-cal-wrap { padding: 12px; }
  .tv-cal-grid { gap: 3px; }
  .tv-cal-num { font-size: 0.76rem; }
  .tv-cal-dots { display: none; }
  .tv-cal-full { display: none; }
  .tv-slots-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}

/* ===========================================================================
   ADMIN — APPOINTMENTS
   ========================================================================= */
.ap-stat.is-alert { border-color: var(--accent); }
.ap-stat.is-alert::after { transform: scaleY(1); }

.ap-tabs {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--ap-line);
  border-radius: 5px;
  background: var(--ap-panel);
}
.ap-tab {
  padding: 7px 14px;
  border-radius: 3px;
  font-size: 0.84rem;
  color: var(--ap-dim);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.ap-tab:hover { color: var(--ap-text); }
.ap-tab.is-active { background: var(--accent); color: #fff; }

.ap-appt-list { display: flex; flex-direction: column; gap: 22px; }
.ap-appt-day { display: flex; flex-direction: column; gap: 8px; }
.ap-appt-daybar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ap-line);
}
.ap-appt-daybar strong {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ap-text);
}
.ap-appt-daybar span {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-muted);
}

.ap-appt {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  background: var(--ap-panel);
  border: 1px solid var(--ap-line);
  border-left: 2px solid var(--ap-line-2);
  border-radius: 5px;
  transition: border-color .22s;
}
.ap-appt:hover { border-color: var(--ap-line-2); }
.ap-appt-pending   { border-left-color: var(--accent); }
.ap-appt-confirmed { border-left-color: var(--ap-ok); }
.ap-appt-completed { border-left-color: var(--ap-muted); }
.ap-appt-cancelled { border-left-color: var(--ap-danger); opacity: .55; }

.ap-appt-time {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--mono);
}
.ap-appt-time strong { font-size: 1.05rem; color: var(--ap-text); }
.ap-appt-time span { font-size: 0.72rem; color: var(--ap-muted); }
.ap-appt-time em { font-size: 0.62rem; font-style: normal; letter-spacing: 0.1em; color: var(--accent); }

.ap-appt-main { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.ap-appt-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ap-appt-top h4 {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ap-text);
}
.ap-appt-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ap-appt-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ap-dim);
  transition: color .2s;
}
.ap-appt-contact:hover { color: var(--accent); }
.ap-appt-contact.is-wa {
  color: #25D366;
  padding: 3px 9px 3px 8px;
  border: 1px solid rgba(37, 211, 102, 0.32);
  border-radius: 999px;
  font-weight: 500;
}
.ap-appt-contact.is-wa:hover {
  color: #fff;
  background: #25D366;
  border-color: #25D366;
}
.ap-appt-ref { font-family: var(--mono); font-size: 0.68rem; color: var(--ap-muted); }
.ap-appt-notes { font-size: 0.86rem; color: var(--ap-muted); line-height: 1.55; }
.ap-appt-internal {
  font-size: 0.82rem;
  color: var(--ap-dim);
  padding: 7px 10px;
  border-left: 2px solid var(--accent);
  background: rgba(239,233,224,.03);
  border-radius: 0 3px 3px 0;
}
.ap-appt-internal strong { color: var(--accent); font-weight: 500; }
.ap-appt-actions { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.ap-icon-btn.is-ok:hover:not(:disabled) { color: var(--ap-ok); border-color: var(--ap-ok); }

.ap-status {
  padding: 3px 9px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ap-status-pending   { background: var(--accent-soft); color: var(--accent); }
.ap-status-confirmed { background: rgba(79,180,119,.14); color: var(--ap-ok); }
.ap-status-completed { background: rgba(239,233,224,.07); color: var(--ap-muted); }
.ap-status-cancelled { background: rgba(226,86,75,.13); color: var(--ap-danger); }

.ap-next-when {
  display: flex;
  flex-direction: column;
  width: 62px;
  flex-shrink: 0;
  font-family: var(--mono);
}
.ap-next-when strong { font-size: 0.92rem; color: var(--ap-text); }
.ap-next-when span { font-size: 0.66rem; color: var(--ap-muted); }

.ap-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ap-dim);
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.ap-view-all:hover { color: var(--accent); gap: 13px; }

/* Weekday picker ---------------------------------------------------------- */
.ap-days { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-day {
  min-width: 52px;
  padding: 9px 10px;
  border: 1px solid var(--ap-line-2);
  border-radius: 4px;
  background: var(--ap-bg);
  color: var(--ap-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all .22s var(--ease);
}
.ap-day:hover { color: var(--ap-text); border-color: var(--ap-dim); }
.ap-day.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 720px) {
  .ap-appt { grid-template-columns: 70px 1fr; }
  .ap-appt-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 6px; border-top: 1px solid var(--ap-line); }
  .ap-tabs { width: 100%; overflow-x: auto; }
}
