/* site.css — component classes on top of Tailwind utilities.
   Brand colors come from theme.css (generated from branding.colors in the
   site config): --color-primary, --color-dark, --color-secondary,
   --color-surface, --color-text. */

/* Theme tokens. Light is the default; [data-theme="dark"] flips the
   neutrals while brand colors (primary/dark) stay put. The attribute is
   set pre-paint by the inline script in <head> (system preference or the
   editor's stored choice). */
:root {
  --zk-hover: rgba(0, 0, 0, 0.045);
  --zk-border-soft: rgba(0, 0, 0, 0.07);
  --zk-border: rgba(0, 0, 0, 0.1);
  --zk-border-strong: rgba(0, 0, 0, 0.17);
  --zk-chrome: #101725;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --color-surface: #0e1319;
  --color-text: #e7eaef;
  --color-secondary: #96a0ae;
  --zk-hover: rgba(255, 255, 255, 0.06);
  --zk-border-soft: rgba(255, 255, 255, 0.07);
  --zk-border: rgba(255, 255, 255, 0.11);
  --zk-border-strong: rgba(255, 255, 255, 0.18);
  --zk-chrome: #1a2230;
  color-scheme: dark;
}

.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: filter 120ms ease, transform 120ms ease;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.navlink {
  color: var(--color-secondary);
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: color 120ms ease;
}
.navlink:hover { color: var(--color-text); }
.navlink-active { color: var(--color-text); font-weight: 700; }

.card {
  border: 1px solid var(--zk-border);
  border-radius: 1rem;
  padding: 1.75rem;
  background: var(--color-surface);
}

/* Hero band. Default: brand gradient. With a pages.hero_image file the
   renderer sets a background-image inline (hero-image variant). */
.hero {
  background: linear-gradient(135deg, var(--color-dark), var(--color-primary));
  color: #fff;
}
.hero-image {
  background-size: cover;
  background-position: center;
}

/* Rich-text content from the PB editor (no Tailwind classes inside) */
.article { line-height: 1.75; }
.article h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; margin: 2rem 0 0.75rem; }
.article h3 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.article p { margin: 1rem 0; }
.article ul, .article ol { margin: 1rem 0; padding-left: 1.5rem; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin: 0.375rem 0; }
.article a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.article img { border-radius: 0.75rem; margin: 1.5rem 0; max-width: 100%; }
.article blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1rem;
  color: var(--color-secondary);
  font-style: italic;
  margin: 1.5rem 0;
}
.article code { font-size: 0.875em; background: var(--zk-hover); padding: 0.1em 0.35em; border-radius: 0.25em; }

.input {
  width: 100%;
  border: 1px solid var(--zk-border-strong);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  background: var(--color-surface);
  color: var(--color-text);
}
.input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: transparent;
}

/* SPA page transition — route() re-runs this animation on every render */
.page-enter { animation: zk-page-enter 240ms ease both; }
@keyframes zk-page-enter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page-enter { animation: none; }
}

/* Honeypot — visually gone, still in the DOM for bots to find */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Edit mode (js/edit.js — Cmd/Ctrl+J) ─────────────────────────────── */
.zk-editing [data-editable] {
  outline: 2px dashed color-mix(in srgb, var(--color-primary) 55%, transparent);
  outline-offset: 4px;
  border-radius: 0.25rem;
  cursor: text;
  transition: outline-color 120ms ease;
}
.zk-editing [data-editable]:hover,
.zk-editing [data-editable]:focus {
  outline-color: var(--color-primary);
  outline-style: solid;
}

.zk-hud {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--zk-chrome);
  color: #fff;
  padding: 0.625rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.zk-hud-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--color-primary);
  animation: zk-pulse 1.6s ease infinite;
}
@keyframes zk-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.zk-hud-label { font-weight: 700; }
.zk-hud-who { opacity: 0.65; font-size: 0.75rem; max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-hud-status { opacity: 0.7; min-width: 0; }
.zk-hud-sep {
  width: 1px;
  height: 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.zk-hud-formats { display: flex; align-items: center; gap: 0.25rem; }
.zk-fmt { min-width: 1.75rem; padding-left: 0.45rem; padding-right: 0.45rem; font-weight: 700; }
.zk-fmt-on { background: rgba(255, 255, 255, 0.2) !important; }
.zk-editing [data-editable].zk-active {
  outline-color: var(--color-primary);
  outline-style: solid;
  outline-width: 2px;
}
.zk-editing [data-editable][data-zk-singleline] {
  /* Single-VALUE fields (Enter is blocked in edit.js) — but long values
     must still wrap visually or they blow the layout out sideways */
  overflow-wrap: break-word;
}
/* Keep empty paragraphs visible while editing (so caret has a line) */
.zk-editing [data-editable-kind="html"] p:empty::before,
.zk-editing [data-editable-kind="html"] p:has(> br:only-child)::before {
  content: "";
  display: inline-block;
  min-height: 1em;
}
.zk-btn.w-full, .btn-primary.w-full { width: 100%; text-align: center; }
.zk-btn.w-full { display: block; }

.zk-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  transition: background 120ms ease;
}
.zk-btn:hover { background: rgba(255, 255, 255, 0.12); }
.zk-btn-save { background: var(--color-primary); border-color: var(--color-primary); }
.zk-btn-save:disabled { opacity: 0.45; cursor: default; }
.zk-btn-save:hover:not(:disabled) { filter: brightness(1.1); background: var(--color-primary); }

.zk-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.zk-card {
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 1rem;
  padding: 1.75rem;
  width: 100%;
  max-width: 22rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.zk-card-title { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.zk-card-sub { font-size: 0.8125rem; color: var(--color-secondary); margin-top: 0.25rem; }
.zk-error { font-size: 0.8125rem; color: #dc2626; }

/* ── Z-button launcher (js/z-button.js) ──────────────────────────────── */
.zk-zroot { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 55; }
.zk-zwrap { position: relative; }
.zk-zbtn {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #ed2024;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(237, 32, 36, 0.45);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.zk-zbtn:hover { transform: scale(1.12); box-shadow: 0 10px 28px rgba(237, 32, 36, 0.55); }
.zk-zsvg { width: 1.65rem; height: 1.65rem; position: relative; }
.zk-zping {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #ed2024;
  animation: zk-zpulse 2s cubic-bezier(0, 0, 0.2, 1) 1;
  pointer-events: none;
}
.zk-zbtn:hover .zk-zping { animation: zk-zpulse 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes zk-zpulse {
  0% { transform: scale(1); opacity: 0.55; }
  75%, 100% { transform: scale(1.85); opacity: 0; }
}
.zk-zbadge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}
.zk-zbadge-inline {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.zk-zdot {
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #ed2024;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(237, 32, 36, 0.5);
  animation: zk-zdot 3s ease-in-out infinite alternate;
}
@keyframes zk-zdot {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
.zk-zbackdrop { position: fixed; inset: 0; z-index: 5; background: transparent; border: none; cursor: default; }
.zk-zmenu {
  position: absolute;
  bottom: 3.5rem;
  right: 0;
  z-index: 20;
  width: 15rem;
  border-radius: 0.75rem;
  background: #262626;
  border: 1px solid #404040;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.zk-zitem {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e5e5e5;
  background: transparent;
  border: none;
  border-top: 1px solid #404040;
  cursor: pointer;
  text-align: left;
}
.zk-zitem:first-child { border-top: none; }
.zk-zitem:hover { background: #333; }
.zk-zitem-help { color: #4ade80; }
.zk-zitem-row { justify-content: space-between; }
.zk-zitem-kbd { display: flex; gap: 0.25rem; opacity: 0.7; }
.zk-kbd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: #525252;
  font-family: ui-monospace, monospace;
  font-size: 0.65rem;
  color: #e5e5e5;
}
.zk-zitem-muted { color: #a3a3a3; font-weight: 500; }
.zk-zitem-danger { color: #f87171; font-weight: 500; }

/* Panels (help / entries / support / activity) */
.zk-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
}
@media (min-width: 768px) {
  .zk-panel-overlay { align-items: center; justify-content: center; padding: 1.5rem; }
}
.zk-panel {
  background: var(--color-surface);
  color: var(--color-text);
  width: 100%;
  max-width: 28rem;
  max-height: min(85vh, 40rem);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.zk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--zk-border-soft);
}
.zk-panel-title { font-weight: 800; font-size: 1rem; }
.zk-panel-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  padding: 0 0.25rem;
}
.zk-panel-close:hover { opacity: 1; }
.zk-panel-body { padding: 1rem 1.25rem; overflow: auto; flex: 1; }
.zk-panel-foot {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--zk-border-soft);
}
.zk-help-item {
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  border: none;
  background: var(--zk-hover);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.zk-help-item:hover { background: var(--zk-border-soft); }
.zk-help-body { padding: 0.5rem 0.25rem 0.75rem; }
.zk-entry-btn {
  width: 100%;
  text-align: left;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--zk-border-soft);
  background: var(--color-surface);
  cursor: pointer;
}
.zk-entry-btn:hover { border-color: var(--color-primary); }
.zk-entry-meta { display: block; font-size: 0.7rem; opacity: 0.55; margin-top: 0.15rem; }
.zk-entry-spam .zk-entry-btn { opacity: 0.65; }
.zk-btn-dark {
  border: 1px solid var(--zk-border-strong);
  background: var(--zk-chrome);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.zk-btn-dark:hover { filter: brightness(1.1); }

/* ── Pages / Navigation / Settings panels ─────────────────────────── */
.zk-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--zk-border);
  border-radius: 0.6rem;
  background: var(--color-surface);
}
.zk-row .input { padding: 0.35rem 0.55rem; font-size: 0.8125rem; }
.zk-btn-dark[disabled] { opacity: 0.35; cursor: default; }
.zk-danger { color: #dc2626; }
.zk-newpage { margin-bottom: 0.25rem; }

/* ── Hero image editing ───────────────────────────────────────────── */
.zk-editing [data-zk-hero] { position: relative; }
.zk-hero-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
}
.zk-hero-btn:hover { background: rgba(0, 0, 0, 0.65); }

/* Clickable images while editing */
.zk-editing [data-editable] img {
  cursor: pointer;
  outline: 2px dashed color-mix(in srgb, var(--color-primary) 55%, transparent);
  outline-offset: 3px;
}
.zk-editing [data-editable] img:hover { outline-color: var(--color-primary); }

/* ── View-transition navigation ───────────────────────────────────────
   The compositor snapshots the old page, we swap the DOM, and the new
   page animates in. Three coordinated pieces:
   1. #app content: old lifts away, new rises in (spring-ish ease-out)
   2. .hero: its own named snapshot, so the banner MORPHS geometry
      between pages instead of crossfading
   3. .navlink-active::after: the nav underline slides to the new item
   Browsers without the API (or reduced-motion users) get the plain
   .page-enter fade instead — see swapApp() in js/site.js. */
@media (prefers-reduced-motion: no-preference) {
  #app { view-transition-name: zk-app; }
  #app .hero { view-transition-name: zk-hero; }
  .navlink-active::after { view-transition-name: zk-navline; }
}

/* Header/footer are identical across pages — freeze the root so only
   the named pieces animate (kills the whole-page crossfade flash). */
::view-transition-old(root),
::view-transition-new(root) { animation: none; }

::view-transition-old(zk-app) {
  animation: zk-vt-out 150ms cubic-bezier(0.4, 0, 1, 1) both;
}
::view-transition-new(zk-app) {
  animation: zk-vt-in 320ms cubic-bezier(0.16, 1, 0.3, 1) 50ms both;
}
@keyframes zk-vt-out {
  to { opacity: 0; transform: translateY(-12px); }
}
@keyframes zk-vt-in {
  from { opacity: 0; transform: translateY(18px); }
}

/* Hero morph: interpolate the group's box, stretch snapshots to fill so
   different hero heights blend instead of jump-cutting. */
::view-transition-group(zk-hero) {
  animation-duration: 380ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(zk-hero),
::view-transition-new(zk-hero) {
  height: 100%;
  overflow: clip;
}

/* Nav underline slides between items */
.navlink { position: relative; }
.navlink-active::after {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}
::view-transition-group(zk-navline) {
  animation-duration: 340ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── top progress bar (slow navigations only) ─────────────────────── */
.zk-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  pointer-events: none;
}
.zk-progress-run {
  opacity: 1;
  animation: zk-progress-crawl 1.4s cubic-bezier(0.2, 0.6, 0.3, 1) both;
}
.zk-progress-done {
  animation: none;
  transform: scaleX(1);
  opacity: 0;
  transition: transform 180ms ease-out, opacity 300ms ease-out 120ms;
}
@keyframes zk-progress-crawl {
  0% { transform: scaleX(0); }
  60% { transform: scaleX(0.65); }
  100% { transform: scaleX(0.88); }
}

/* ── HUD editors: buttons + images ────────────────────────────────────
   Clicking an editable button/image morphs the HUD bar into a small
   editor card with inputs for that element type. */
.zk-hud { transition: width 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.zk-hud-main { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.zk-hud.zk-hud-expanded {
  flex-direction: column;
  align-items: stretch;
  width: 320px;
  max-width: calc(100vw - 2rem);
  border-radius: 1rem;
  animation: zk-hud-pop 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Draggable: grab anywhere that isn't a control (position persists) */
.zk-hud { cursor: grab; touch-action: none; }
.zk-hud.zk-hud-dragging { cursor: grabbing; }
.zk-hud.zk-hud-dragging * { pointer-events: none; }
.zk-hud button { cursor: pointer; }
.zk-hud-input { cursor: text; }
@keyframes zk-hud-pop {
  from { opacity: 0.6; transform: translateY(6px) scale(0.97); }
}
/* Modal scroll lock (set by window.zkScrollLock while a panel/confirm is
   open). position:fixed is the only thing iOS Safari respects for touch
   scrolling; the inline top offset preserves the visual position. */
body.zk-scroll-lock {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.zk-hud-btn-panel, .zk-hud-card-panel, .zk-hud-img-panel { display: flex; flex-direction: column; gap: 0.4rem; }
[data-zk-cardf-link-rows] { display: flex; flex-direction: column; gap: 0.4rem; }
.zk-hud-textarea { resize: vertical; min-height: 4.25rem; font-family: inherit; line-height: 1.4; }
.zk-hud-panel-title { font-weight: 700; font-size: 0.8125rem; margin-bottom: 0.1rem; }
.zk-hud-lbl { font-size: 0.6875rem; opacity: 0.55; margin-top: 0.15rem; }
.zk-hud-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 0.45rem 0.6rem;
  font-size: 0.8125rem;
}
.zk-hud-input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: transparent;
}
.zk-hud-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.zk-hud-panel-actions {
  display: flex;
  flex-wrap: wrap; /* extra buttons drop to the next line, never clip */
  gap: 0.4rem;
  margin-top: 0.35rem;
  min-width: 0;
}
.zk-hud-panel-actions .zk-btn,
.zk-hud-panel-actions .zk-hud-primary { white-space: nowrap; }
.zk-hud-primary {
  flex: 1;
  border-radius: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}
.zk-hud-primary:hover { filter: brightness(1.1); }
.zk-hud-danger { color: #f87171; }

/* Editable buttons & cards: ring + always-visible pencil badge (Macco
   pattern). The element itself still navigates; the badge opens the HUD
   editor. */
.zk-editing [data-editable-btn],
.zk-editing [data-editable-card] {
  position: relative;
  outline: 2px dashed color-mix(in srgb, var(--color-primary) 55%, transparent);
  outline-offset: 3px;
}
.zk-editing [data-editable-btn]:hover,
.zk-editing [data-editable-card]:hover { outline-color: var(--color-primary); }
.zk-btn-badge {
  position: absolute;
  top: -0.7rem;
  right: -0.7rem;
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  border-radius: 999px;
  background: var(--zk-chrome);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 5;
}
.zk-btn-badge:hover { filter: brightness(1.4); }

/* Tailwind v4 layers its utilities, so our unlayered display:flex above
   would beat its .hidden — hide HUD sections explicitly. */
.zk-hud-main.hidden,
.zk-hud-btn-panel.hidden,
.zk-hud-card-panel.hidden,
[data-zk-cardf-link-rows].hidden,
.zk-hud-img-panel.hidden { display: none; }

/* ── Lucide icons ─────────────────────────────────────────────────────
   <i data-lucide> becomes an inline SVG (classes carry over). Buttons
   that hold icon + label render as flex rows. */
.zk-zitem svg, .zk-btn svg, .zk-btn-dark svg,
.zk-hud-primary svg, .zk-fmt svg { flex-shrink: 0; }
.zk-zitem-label { display: flex; align-items: center; gap: 0.75rem; }
.zk-btn, .zk-btn-dark, .zk-hud-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.zk-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
}
.zk-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.zk-btn-badge svg { width: 0.85rem; height: 0.85rem; }
/* Filled rating stars (overrides Lucide's fill="none" attribute) */
.zk-star { fill: currentColor; }

/* Checkbox rows inside HUD panels */
.zk-hud-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  margin-top: 0.15rem;
  cursor: pointer;
}
.zk-hud-check input { accent-color: var(--color-primary); }

/* ── toasts ──────────────────────────────────────────────────────────── */
.zk-toasts {
  position: fixed;
  top: 4.75rem;
  right: 1.25rem;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.zk-toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 20rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  background: var(--zk-chrome);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.zk-toast-in { opacity: 1; transform: none; }
.zk-toast svg { flex-shrink: 0; }
.zk-toast-success svg { color: #4ade80; }
.zk-toast-error svg { color: #f87171; }
.zk-toast-info svg { color: #93c5fd; }

/* Checkbox row inside panel list rows */
.zk-row-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.8;
  cursor: pointer;
}
.zk-row-check input { accent-color: var(--color-primary); }

/* Blog cards (padding lives on the inner div so covers bleed edge-to-edge;
   Tailwind's layered p-0 can't override the unlayered .card padding) */
.zk-post-card { padding: 0; overflow: hidden; }

/* ── styled confirmations ────────────────────────────────────────────── */
.zk-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.zk-confirm { max-width: 20rem; animation: zk-hud-pop 180ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.zk-confirm-actions { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
.zk-confirm-danger {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #dc2626;
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
.zk-confirm-danger:hover { background: #b91c1c; }
.zk-confirm-cancel {
  border: 1px solid var(--zk-border-strong);
  border-radius: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
}
.zk-confirm-cancel:hover { background: var(--zk-hover); }

/* ── HUD draft chip ──────────────────────────────────────────────────── */
.zk-hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  cursor: pointer;
  transition: background 120ms ease;
}
.zk-hud-chip:hover { background: rgba(245, 158, 11, 0.35); }
.zk-hud-chip.hidden { display: none; }

/* Header stays rock-solid during view transitions: its own named
   snapshot, old hidden instantly, new shown instantly — no crossfade
   dip while #app animates. */
@media (prefers-reduced-motion: no-preference) {
  body > header { view-transition-name: zk-header; }
}
::view-transition-old(zk-header) { display: none; }
::view-transition-new(zk-header) { animation: none; }

/* "You're viewing this" highlight in the Pages/Posts panels */
.zk-row-current {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.zk-here-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
}

/* Focal-point slider in the HUD image editor */
.zk-hud-range {
  width: 100%;
  margin-top: 0.35rem;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */

/* Hamburger nav: <details> disclosure, no JS required. site.js folds it
   shut after boosted navigations. */
.zk-mnav { position: relative; }
.zk-mnav summary { list-style: none; }
.zk-mnav summary::-webkit-details-marker { display: none; }
.zk-mnav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
}
.zk-mnav-btn:active { background: var(--zk-border-soft); }
.zk-mnav .zk-mnav-close-icon { display: none; }
.zk-mnav[open] .zk-mnav-open-icon { display: none; }
.zk-mnav[open] .zk-mnav-close-icon { display: block; }
.zk-mnav-panel {
  position: fixed;
  top: 4rem; /* below the h-16 header */
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-bottom: 1px solid var(--zk-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0.75rem 0.75rem;
  animation: zk-mnav-in 180ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes zk-mnav-in {
  from { opacity: 0; transform: translateY(-6px); }
}
.zk-mnav-panel .navlink {
  display: block;
  padding: 0.8rem 0.875rem; /* ≥44px touch target */
  font-size: 1rem;
  border-radius: 0.5rem;
}
.zk-mnav-panel .navlink-active { background: color-mix(in srgb, var(--color-primary) 10%, transparent); }
.zk-mnav-panel .navlink-active::after { display: none; } /* underline is a desktop cue */

/* HUD as a fixed bottom bar on small screens (class set by edit.js;
   dragging disabled there) */
.zk-hud.zk-hud-mobile {
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  max-width: none;
  border-radius: 1rem 1rem 0 0;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  cursor: default;
}
.zk-hud-mobile .zk-hud-main {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.45rem;
}
.zk-hud-mobile .zk-hud-who { display: none; } /* declutter: essentials only */
.zk-hud-mobile.zk-hud-expanded {
  width: auto;
  border-radius: 1rem 1rem 0 0;
  animation: zk-mnav-in 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (max-width: 640px) {
  /* iOS zooms the page into any input under 16px — keep them at 16px */
  .input, .zk-hud-input { font-size: 16px; }

  /* Toasts span the width under the header */
  .zk-toasts { left: 1rem; right: 1rem; top: 4.5rem; }
  .zk-toast { max-width: none; width: 100%; }

  /* Panel rows: let action clusters wrap instead of crowding */
  .zk-row { flex-wrap: wrap; }

  /* Z button sits above the bottom-bar HUD while editing */
  .zk-editing .zk-zroot { bottom: 5.5rem; }
}

/* ── shadcn-style panel primitives ───────────────────────────────────
   Flat divided lists (content first), ghost icon buttons, quiet badges,
   and a per-row action menu — replaces the card-per-row + labeled
   button clusters. */
.zk-list { display: flex; flex-direction: column; }
.zk-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.zk-item + .zk-item { border-top: 1px solid var(--zk-border-soft); }
.zk-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.7rem 0.5rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 0.5rem;
}
.zk-item-main:hover { background: var(--zk-hover); }
.zk-item-title {
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.zk-item-sub { font-size: 0.75rem; color: var(--color-secondary); max-width: 100%; }
.zk-item-muted .zk-item-title { color: var(--color-secondary); font-weight: 400; }
.zk-item-time { font-size: 0.6875rem; color: var(--color-secondary); flex-shrink: 0; padding-right: 0.25rem; }

.zk-ibtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--color-text);
  opacity: 0.65;
  cursor: pointer;
  flex-shrink: 0;
}
.zk-ibtn:hover { background: var(--zk-border-soft); opacity: 1; }
.zk-ibtn[disabled] { opacity: 0.25; cursor: default; }

.zk-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6563rem;
  font-weight: 600;
  line-height: 1.4;
  flex-shrink: 0;
}
.zk-badge-draft { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.zk-badge-new { background: color-mix(in srgb, var(--color-primary) 14%, transparent); color: var(--color-primary); }
.zk-badge-open { background: color-mix(in srgb, var(--color-secondary) 14%, transparent); color: var(--color-secondary); }
.zk-badge-spam { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }

.zk-dot-current {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* Row action menu (kebab) */
.zk-actmenu {
  position: absolute;
  right: 0.25rem;
  top: calc(100% - 0.35rem);
  z-index: 30;
  min-width: 11rem;
  background: var(--color-surface);
  border: 1px solid var(--zk-border);
  border-radius: 0.6rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  padding: 0.25rem;
  animation: zk-hud-pop 140ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.zk-actmenu-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 0;
  background: transparent;
  border-radius: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.zk-actmenu-item:hover { background: var(--zk-hover); }
.zk-actmenu-item svg { opacity: 0.6; flex-shrink: 0; }
.zk-actmenu-danger { color: #dc2626; }
.zk-actmenu-danger svg { opacity: 1; }

/* Detail view (entries) */
.zk-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-secondary);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 0.4rem;
  margin-left: -0.4rem;
}
.zk-back:hover { background: var(--zk-hover); color: var(--color-text); }
.zk-message {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  background: var(--zk-hover);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  line-height: 1.6;
}
.zk-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--zk-border-strong);
  background: transparent;
  color: var(--color-text);
}
.zk-btn-sm:hover { background: var(--zk-hover); }
.zk-btn-sm-primary { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.zk-btn-sm-primary:hover { background: var(--color-primary); filter: brightness(1.1); }
.zk-btn-sm-danger { border-color: transparent; color: #dc2626; }
.zk-btn-sm-danger:hover { background: rgba(220, 38, 38, 0.08); }

/* Inline expanding editor rows (Navigation) */
.zk-item-editor {
  padding: 0.25rem 0.5rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.zk-hidden { display: none !important; }


/* ── dark theme overrides for utility-classed chrome ────────────────── */
[data-theme="dark"] body > header {
  background: rgba(14, 19, 25, 0.92);
  border-color: var(--zk-border-soft);
}
[data-theme="dark"] body > footer { background: #0a0e14; }
[data-theme="dark"] #app [class*="bg-black/"] { background-color: rgba(255, 255, 255, 0.03); }
[data-theme="dark"] .zk-mnav-panel { border-color: var(--zk-border-soft); }

/* Theme toggle (header): moon in light, sun in dark */
.zk-theme-btn { color: var(--color-text); }
.zk-theme-btn .zk-icon-sun { display: none; }
[data-theme="dark"] .zk-theme-btn .zk-icon-sun { display: block; }
[data-theme="dark"] .zk-theme-btn .zk-icon-moon { display: none; }

/* ── visitor journey (entries detail) ────────────────────────────────── */
.zk-plabel {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
}
.zk-journey { margin-top: 0.5rem; display: flex; flex-direction: column; }
.zk-journey li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--zk-border-soft);
  font-size: 0.8125rem;
}
.zk-journey-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-journey-dur { color: var(--color-secondary); font-size: 0.75rem; flex-shrink: 0; }

/* ── CRM lead view (entries detail) ──────────────────────────────────── */
.zk-lead-head { display: flex; align-items: center; gap: 0.8rem; margin-top: 1rem; }
.zk-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 15%, transparent);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.zk-seg-row { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; }
.zk-seg {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--zk-border-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: transparent;
  color: var(--color-secondary);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.zk-seg:hover { background: var(--zk-hover); }
.zk-seg-on {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.zk-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1rem;
  margin-top: 0.6rem;
}
.zk-field { display: flex; gap: 0.5rem; min-width: 0; font-size: 0.8125rem; }
.zk-field > svg { opacity: 0.45; flex-shrink: 0; margin-top: 0.15rem; }
.zk-field-label {
  display: block;
  font-size: 0.6563rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
}
.zk-field-value { display: block; overflow-wrap: anywhere; margin-top: 0.1rem; }
.zk-field-sub {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  opacity: 0.55;
  margin-top: 0.15rem;
}

/* Journey timeline: dots + connector line, CRM activity style */
.zk-tl { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.zk-tl-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.34rem 0 0.34rem 1.25rem;
  font-size: 0.8125rem;
}
.zk-tl-item::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--zk-border);
}
.zk-tl-item:first-child::before { top: 50%; }
.zk-tl-item:last-child::before { bottom: 50%; }
.zk-tl-dot {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--color-surface);
  border: 2px solid var(--color-secondary);
}
.zk-tl-last .zk-tl-dot { background: var(--color-primary); border-color: var(--color-primary); }
.zk-tl-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-tl-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-secondary);
  font-size: 0.72rem;
  flex-shrink: 0;
}
.zk-tl-last .zk-tl-meta { color: var(--color-primary); font-weight: 600; }

/* ── Entries: Apple Mail layout ──────────────────────────────────────── */
.zk-panel-overlay-wide { padding: 0.75rem; }
@media (min-width: 768px) { .zk-panel-overlay-wide { padding: 2.5rem; } }
.zk-panel-wide {
  max-width: 72rem;
  width: 100%;
  height: 88vh;
  max-height: 88vh;
}
.zk-panel-wide .zk-panel-body { padding: 0; display: flex; overflow: hidden; }

.zk-mail { display: flex; flex: 1; min-height: 0; width: 100%; }
.zk-mail-list {
  width: 22rem;
  flex-shrink: 0;
  border-right: 1px solid var(--zk-border-soft);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.zk-mail-list-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--color-surface);
  padding: 0.4rem 1rem;
  min-height: 2.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-secondary);
  border-bottom: 1px solid var(--zk-border-soft);
}
.zk-mail-list-head .zk-btn-sm.zk-hidden { display: none; }
.zk-mail-detail {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 0.75rem 1.5rem 1.75rem;
}
.zk-mail-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--color-secondary);
  opacity: 0.7;
}
.zk-ibtn .zk-danger { color: #dc2626; }
/* Entry actions sit in the panel title bar, next to the close button */
.zk-panel-head .zk-panel-title { flex: 1; min-width: 0; }
.zk-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.9rem;
}

/* Message rows */
.zk-mrow {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.9rem 0.7rem 0.45rem;
  border: 0;
  border-bottom: 1px solid var(--zk-border-soft);
  background: transparent;
  cursor: pointer;
}
.zk-mrow:hover { background: var(--zk-hover); }
.zk-mrow-sel { background: color-mix(in srgb, var(--color-primary) 11%, transparent); }
.zk-mrow-muted .zk-mrow-name, .zk-mrow-muted .zk-mrow-prev { color: var(--color-secondary); }
.zk-mrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 0.95rem;
}
.zk-mrow-dot-on { background: var(--color-primary); }
.zk-avatar-sm { width: 2.25rem; height: 2.25rem; font-size: 0.8125rem; }
.zk-mrow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.zk-mrow-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.zk-mrow-name { font-size: 0.875rem; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-mrow-unread { font-weight: 700; }
.zk-mrow-time {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.7rem;
  color: var(--color-secondary);
  flex-shrink: 0;
}
.zk-mrow-sub { font-size: 0.72rem; color: var(--color-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-mrow-prev {
  font-size: 0.78rem;
  color: var(--color-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Desktop: split view — back button + chevrons are mobile affordances */
@media (min-width: 768px) {
  .zk-mail .zk-back { display: none; }
  .zk-mrow-chev { display: none; }
}

/* Mobile: iOS-Mail push-in — one pane at a time */
@media (max-width: 767px) {
  .zk-panel-wide { height: 92vh; max-height: 92vh; }
  .zk-mail-list { width: 100%; border-right: 0; }
  .zk-mail-detail { display: none; padding: 0.5rem 1rem 1.25rem; }
  .zk-mail-showing-detail .zk-mail-list { display: none; }
  .zk-mail-showing-detail .zk-mail-detail { display: block; animation: zk-mnav-in 200ms cubic-bezier(0.16, 1, 0.3, 1) both; }
}

/* ── hero video background (Skiv) ────────────────────────────────────── */
.hero-media { position: relative; overflow: hidden; }
.zk-hero-video { position: absolute; inset: 0; }
.zk-hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(240vh, 100%);
  height: max(100vw, 100%);
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}
.zk-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
}
.zk-hero-content { position: relative; z-index: 1; }

/* Video picker rows in the hero media editor */
.zk-video-list { display: flex; flex-direction: column; max-height: 11rem; overflow-y: auto; }
.zk-video-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.5rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.8125rem;
  text-align: left;
  border-radius: 0.45rem;
  cursor: pointer;
}
.zk-video-item:hover { background: rgba(255, 255, 255, 0.1); }
.zk-video-item svg { opacity: 0.6; flex-shrink: 0; }
.zk-video-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-video-dur { font-size: 0.7rem; opacity: 0.6; flex-shrink: 0; }
.zk-video-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}
.zk-video-id {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  opacity: 0.8;
}
