:root {
  --bg-canvas: #F7F6F2;
  --surface: #FFFFFF;
  --surface-subtle: #F4F3EE;
  --surface-muted: #ECEAE2;
  --border-hairline: rgba(24, 24, 27, 0.085);
  --border-strong: rgba(24, 24, 27, 0.16);
  --ink: #09090B;
  --ink-secondary: #3F3F46;
  --ink-muted: #71717A;
  --brand: #EA580C;
  --brand-bright: #F97316;
  --brand-deep: #C2410C;
  --brand-soft: #FFF7ED;
  --brand-ring: rgba(234, 88, 12, 0.14);
  --brand-border: #FDBA74;
  --emerald: #047857;
  --emerald-bright: #10B981;
  --emerald-soft: #ECFDF5;
  --emerald-border: #A7F3D0;
  --amber: #B45309;
  --amber-soft: #FFFBEB;
  --rose: #E11D48;
  --rose-soft: #FFF1F2;
  --radius-card: 22px;
  --radius-md: 13px;
  --radius-sm: 9px;
  --shadow-bento:
    0 1px 2px rgba(15, 23, 42, 0.03),
    0 14px 36px -14px rgba(24, 24, 27, 0.07);
  --shadow-float:
    0 2px 5px rgba(15, 23, 42, 0.04),
    0 16px 38px -12px rgba(24, 24, 27, 0.11);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hidden {
  display: none !important;
}

.mt-sm {
  margin-top: 0.85rem;
}

.mt-auto {
  margin-top: auto;
}

.flex-1 {
  flex: 1;
  min-width: 0;
}

/* Architectural Ambient Canvas */
.ambient-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(115px);
}

.aura-warm {
  width: 620px;
  height: 520px;
  top: -210px;
  left: -120px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.24) 0%, transparent 70%);
}

.aura-gold {
  width: 560px;
  height: 480px;
  top: -160px;
  right: -100px;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.22) 0%, transparent 70%);
}

.aura-sky {
  width: 640px;
  height: 540px;
  bottom: -260px;
  left: 28%;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.22) 0%, transparent 72%);
}

.dot-matrix {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(24, 24, 27, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 18%, #000 25%, transparent 85%);
}

/* Precision Floating Glass Header */
.vc-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 0.72rem 1.25rem;
  background: rgba(247, 246, 242, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(24, 24, 27, 0.06);
}

.vc-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.vc-logo-emblem {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #EA580C 0%, #F97316 60%, #F59E0B 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 6px 16px -4px rgba(234, 88, 12, 0.48);
}

.vc-wordmark {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.vc-version-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Segmented Mode Dock */
.vc-mode-dock {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  padding: 4px;
  border-radius: 999px;
  box-shadow: 0 4px 16px -6px rgba(24, 24, 27, 0.08);
}

.vc-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.46rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vc-mode-tab:hover {
  color: var(--ink);
}

.vc-mode-tab.active {
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(9, 9, 11, 0.18);
}

.vc-mode-tab.active svg {
  color: #FB923C;
}

/* Right Header Telemetry */
.vc-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.edge-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
}

.pulse-emerald {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

.vault-Trigger-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-secondary);
  transition: border-color 0.16s ease;
}

.vault-Trigger-pill:hover {
  border-color: var(--brand-border);
}

.vault-Trigger-pill strong {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 1px 6px;
  border-radius: 999px;
}

.workspace-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  padding: 0.28rem 0.7rem 0.28rem 0.32rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.16s ease;
}

.workspace-btn:hover {
  border-color: var(--border-strong);
}

.ws-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #18181B, #3F3F46);
  color: #FFFFFF;
  font-size: 0.64rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Main Shell & Editorial Flagship Hero */
.vc-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem 3.5rem;
}

.vc-hero {
  text-align: center;
  padding: 1.15rem 0 1.4rem;
}

.hero-announcement {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border-hairline);
  padding: 0.28rem 0.85rem 0.28rem 0.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 0.75rem;
}

.ann-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 999px;
}

.hero-display {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.hero-accent {
  background: linear-gradient(130deg, #EA580C 0%, #D97706 55%, #0284C7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-telemetry-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.tel-pill strong {
  color: var(--ink);
  font-weight: 800;
}

.tel-dot {
  opacity: 0.45;
}

/* Asymmetric Bento Studio Grid */
.bento-studio {
  display: grid;
  grid-template-columns: minmax(0, 7.2fr) minmax(370px, 4.8fr);
  gap: 1.15rem;
  align-items: start;
}

.bento-deck-left {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.bento-row-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
}

/* Tactile Specular Bento Card */
.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-bento);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
  border-color: rgba(24, 24, 27, 0.13);
}

.card-elevated {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFCFA 100%);
}

.bento-launch-card {
  display: flex;
  flex-direction: column;
}

.bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.72rem;
}

.bento-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.step-index {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
}

.bento-title {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.bento-head-right {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.field-kicker {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 0.34rem;
}

.kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.req {
  color: var(--brand);
}

.status-chip.emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  padding: 2px 8px;
  border-radius: 999px;
}

.dot-sm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald-bright);
}

.micro-action-btn {
  border: 1px solid var(--border-hairline);
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.micro-action-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

/* Command Destination Bar + Auto-Fetch */
.command-url-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface-subtle);
  border: 1.5px solid var(--border-hairline);
  border-radius: 14px;
  padding: 0.3rem 0.38rem 0.3rem 0.85rem;
  transition: all 0.18s ease;
}

.command-url-bar:focus-within {
  background: #FFFFFF;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
}

.url-icon {
  color: var(--ink-muted);
  display: inline-flex;
  flex-shrink: 0;
}

.command-url-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.55rem 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}

.url-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.autofetch-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.44rem 0.78rem;
  border-radius: 9px;
  border: 1px solid var(--brand-border);
  background: linear-gradient(180deg, #FFF7ED 0%, #FFEDD5 100%);
  color: var(--brand-deep);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.autofetch-pill:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.ghost-chip {
  padding: 0.44rem 0.7rem;
  border-radius: 9px;
  border: 1px solid var(--border-hairline);
  background: #FFFFFF;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.ghost-chip:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

#bulk-url-block textarea {
  width: 100%;
  border-radius: 13px;
  border: 1.5px solid var(--border-hairline);
  background: var(--surface-subtle);
  padding: 0.78rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  resize: vertical;
  outline: none;
}

#bulk-url-block textarea:focus {
  background: #FFFFFF;
  border-color: var(--brand);
}

/* Routing Matrix Row */
.routing-matrix {
  display: grid;
  grid-template-columns: 152px minmax(0, 1.52fr) minmax(0, 0.98fr);
  gap: 0.72rem;
  margin-top: 0.9rem;
  align-items: end;
}

.select-shell {
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 11px;
  padding: 0 0.62rem;
}

.select-shell select {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.56rem 0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

.ext-segmented {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 11px;
  padding: 3.5px;
}

.ext-pill {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.42rem 0.25rem;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
}

.ext-pill:hover {
  color: var(--ink);
}

.ext-pill.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.32);
}

.live-url-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 11px;
  padding: 0.42rem 0.48rem 0.42rem 0.72rem;
}

.live-url-readout code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-icon-btn {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  border: 1px solid var(--border-hairline);
  background: #FFFFFF;
  color: var(--ink-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.mini-icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Inputs & Dropzone */
.input-shell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface-subtle);
  border: 1.5px solid var(--border-hairline);
  border-radius: 11px;
  padding: 0 0.75rem;
  transition: all 0.18s ease;
}

.input-shell:focus-within {
  background: #FFFFFF;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.input-shell input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.58rem 0;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}

.input-shell.compact input {
  padding: 0.5rem 0;
  font-family: var(--font-mono);
  font-weight: 700;
}

.clear-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #E4E4E7;
  color: var(--ink-secondary);
  font-size: 0.68rem;
  cursor: pointer;
}

.res-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.res-badge.ok { background: var(--emerald-soft); color: var(--emerald); border: 1px solid var(--emerald-border); }
.res-badge.low { background: var(--amber-soft); color: var(--amber); }
.res-badge.bad { background: var(--rose-soft); color: var(--rose); }
.res-badge.loading { background: var(--brand-soft); color: var(--brand); }

.pro-dropzone {
  margin-top: 0.68rem;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.78rem 0.85rem;
  border-radius: 13px;
  border: 1.5px dashed var(--border-strong);
  background: #FAF9F6;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pro-dropzone:hover,
.pro-dropzone.dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.drop-icon-ring {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.drop-copy span {
  display: block;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--ink);
}

.drop-copy strong {
  color: var(--brand);
}

.drop-copy small {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.preset-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.68rem;
}

.preset-tag {
  border: 1px solid var(--border-hairline);
  background: #FFFFFF;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-tag:hover,
.preset-tag.active {
  border-color: var(--brand-border);
  background: var(--brand-soft);
  color: var(--brand-deep);
}

/* Copy & Description */
.quality-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.counter-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.counter-badge.warn {
  color: var(--amber);
  font-weight: 800;
}

.field-stack textarea {
  width: 100%;
  border-radius: 11px;
  border: 1.5px solid var(--border-hairline);
  background: var(--surface-subtle);
  padding: 0.62rem 0.75rem;
  font-family: inherit;
  font-size: 0.83rem;
  color: var(--ink);
  resize: none;
  outline: none;
  transition: all 0.18s ease;
}

.field-stack textarea:focus {
  background: #FFFFFF;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

/* Video Player Overlays Bento */
.size-pills {
  display: inline-flex;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 2px;
}

.sz-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
}

.sz-btn.active {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.overlay-control-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.vc-switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-secondary);
  cursor: pointer;
  user-select: none;
}

.vc-switch-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vc-pill-switch {
  position: relative;
  width: 50px;
  height: 25px;
  border-radius: 999px;
  background: #D4D4D8;
  display: flex;
  align-items: center;
  padding: 0 6px;
  transition: background 0.2s ease;
}

.vc-pill-switch.on {
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
}

.sw-txt {
  font-size: 0.62rem;
  font-weight: 800;
  color: #FFFFFF;
}

.vc-pill-switch:not(.on) .sw-txt {
  margin-left: auto;
  color: #52525B;
}

.sw-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vc-pill-switch.on .sw-knob {
  transform: translateX(25px);
}

.swatch-group {
  display: inline-flex;
  gap: 0.32rem;
}

.swatch-item {
  width: 34px;
  height: 32px;
  border-radius: 9px;
  border: 1.5px solid var(--border-hairline);
  background: var(--surface-subtle);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.swatch-item.active {
  background: #FFFFFF;
  border-color: var(--brand);
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.15);
}

.sw-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.55rem;
  display: grid;
  place-items: center;
}

.sw-circle.frosted { background: #27272A; color: #FFFFFF; }
.sw-circle.coral { background: #EA580C; color: #FFFFFF; }
.sw-circle.yt { background: #DC2626; color: #FFFFFF; }
.sw-circle.light { background: #FFFFFF; border: 1px solid #D4D4D8; color: #09090B; }

.badge-selector-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 3px;
}

.b-chip {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 4px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.b-chip.active {
  background: #FFFFFF;
  color: var(--brand);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.micro-toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.toggle-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 11px;
  padding: 0.52rem 0.65rem;
  cursor: pointer;
}

.toggle-tile strong {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink);
}

.toggle-tile small {
  display: block;
  font-size: 0.64rem;
  color: var(--ink-muted);
}

.ios-toggle {
  position: relative;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
}

.ios-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #D4D4D8;
  transition: 0.2s;
}

.ios-track::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: 0.2s;
}

.ios-toggle input:checked + .ios-track {
  background: var(--brand);
}

.ios-toggle input:checked + .ios-track::before {
  transform: translateX(14px);
}

/* Bento 5: Timestamp, Vanity Alias & Tactile 3D CTA */
.kbd-hint {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  padding: 2px 7px;
  border-radius: 6px;
}

.two-col-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: end;
}

.seg-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 11px;
  padding: 3px;
}

.pos-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.42rem 0.4rem;
  border-radius: 8px;
  cursor: pointer;
}

.pos-btn.active {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.alias-composer {
  display: flex;
  align-items: center;
  background: var(--surface-subtle);
  border: 1.5px solid var(--border-hairline);
  border-radius: 11px;
  padding: 0 0.55rem 0 0.72rem;
  transition: all 0.18s ease;
}

.alias-composer:focus-within {
  background: #FFFFFF;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

.alias-prefix-txt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.alias-composer input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.54rem 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  outline: none;
}

.alias-suffix-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 2px 7px;
  border-radius: 6px;
}

.alias-suffix-pill:empty {
  display: none;
}

/* Flagship 3D Tactile CTA Button */
.vc-cta-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  padding: 0.78rem 1.25rem;
  border-radius: 13px;
  border: 1px solid #C2410C;
  background: linear-gradient(180deg, #F97316 0%, #EA580C 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 1px 2px rgba(154, 52, 18, 0.3),
    0 10px 22px -6px rgba(234, 88, 12, 0.52);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.vc-cta-btn:hover {
  transform: translateY(-1.5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 14px 28px -6px rgba(234, 88, 12, 0.62);
}

.vc-cta-btn.full-width {
  width: 100%;
  margin-top: 0.95rem;
}

.vc-cta-btn.compact {
  padding: 0.54rem 0.95rem;
  font-size: 0.79rem;
  border-radius: 10px;
}

.cta-arrow {
  transition: transform 0.18s ease;
}

.vc-cta-btn:hover .cta-arrow {
  transform: translateX(3px);
}

.vc-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.52rem 0.88rem;
  border-radius: 11px;
  border: 1px solid var(--border-hairline);
  background: #FFFFFF;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.vc-outline-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.vc-outline-btn.full-width {
  width: 100%;
}

.single-mode-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.sub-note {
  font-size: 0.82rem;
  color: var(--ink-muted);
  flex: 1;
}

.bulk-drawer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
}

.bulk-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  max-height: 230px;
  overflow-y: auto;
}

.bulk-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-subtle);
  border-radius: 10px;
  padding: 0.48rem 0.75rem;
}

.bulk-row-item code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
}

.feedback-strip {
  padding: 0.78rem 1rem;
  border-radius: 13px;
  font-size: 0.82rem;
  font-weight: 700;
}

.feedback-strip.ok { background: var(--emerald-soft); border: 1px solid var(--emerald-border); color: var(--emerald); }
.feedback-strip.err { background: var(--rose-soft); border: 1px solid #FECDD3; color: var(--rose); }

/* RIGHT STICKY AUTHENTIC SOCIAL SIMULATOR */
.bento-deck-right {
  position: sticky;
  top: 4.5rem;
}

.preview-studio-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: var(--shadow-float);
}

.preview-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-title-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.ctr-gauge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.ctr-gauge strong {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--brand);
}

.inspector-mode-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.app-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 3px;
}

.app-tab {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 5px 3px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.app-tab.active {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.code-toggle-btn {
  border: 1px solid var(--border-hairline);
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  padding: 0.38rem 0.6rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.code-toggle-btn code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.code-toggle-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

/* AUTHENTIC SOCIAL APP CHROME SHELLS */
.app-chrome-only-wa,
.app-chrome-only-fb,
.app-chrome-only-tg,
.app-chrome-only-x {
  display: none;
}

.app-shell {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
}

/* 1. WhatsApp Authentic Mockup */
.app-shell.app-whatsapp {
  background: #EFEAE2;
  border: 1px solid #DFD8CC;
}

.app-shell.app-whatsapp .app-chrome-only-wa {
  display: flex;
}

.wa-chrome-head {
  background: #075E54;
  color: #FFFFFF;
  padding: 0.5rem 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.wa-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wa-pic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #128C7E;
  font-size: 0.64rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.wa-contact strong {
  display: block;
  font-size: 0.75rem;
  line-height: 1.15;
}

.wa-contact small {
  font-size: 0.64rem;
  opacity: 0.82;
}

.wa-icons {
  font-size: 0.72rem;
  opacity: 0.85;
  letter-spacing: 2px;
}

.app-shell.app-whatsapp .sim-bubble-body {
  margin: 0.65rem;
  background: #D9FDD3;
  border-radius: 12px 2px 12px 12px;
  padding: 0.45rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.app-shell.app-whatsapp .sim-message-line {
  font-size: 0.76rem;
  color: #027EB5;
  text-decoration: underline;
  padding: 0 0.25rem 0.38rem;
  word-break: break-all;
}

.app-shell.app-whatsapp .og-domain-upper {
  display: none;
}

.wa-read-meta {
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: #667781;
  margin-top: 4px;
  padding-right: 4px;
}

.wa-ticks {
  color: #53BDEB;
  font-weight: 800;
  letter-spacing: -2px;
}

/* 2. Facebook Authentic Feed Post */
.app-shell.app-facebook {
  background: #FFFFFF;
  border: 1px solid #DADDE1;
}

.app-shell.app-facebook .app-chrome-only-fb {
  display: flex;
}

.fb-chrome-head {
  padding: 0.65rem 0.8rem 0.4rem;
  align-items: center;
  gap: 0.55rem;
}

.fb-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EA580C, #F59E0B);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.fb-chrome-head strong {
  display: block;
  font-size: 0.8rem;
  color: #050505;
}

.fb-chrome-head small {
  font-size: 0.67rem;
  color: #65676B;
}

.app-shell.app-facebook .sim-message-line {
  padding: 0 0.8rem 0.5rem;
  font-size: 0.78rem;
  color: #1877F2;
}

.app-shell.app-facebook .og-card-frame {
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.app-shell.app-facebook .og-meta-box {
  background: #F0F2F5;
}

.app-shell.app-facebook .og-domain-lower {
  display: none;
}

.fb-chrome-foot {
  flex-direction: column;
  padding: 0.45rem 0.8rem;
  gap: 0.38rem;
}

.fb-counts {
  display: flex;
  justify-content: space-between;
  font-size: 0.69rem;
  color: #65676B;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #CED0D4;
}

.fb-btns {
  display: flex;
  justify-content: space-around;
  font-size: 0.73rem;
  font-weight: 700;
  color: #65676B;
}

/* 3. Telegram Authentic Channel Card */
.app-shell.app-telegram {
  background: #E4ECF2;
  border: 1px solid #CFDCE6;
  padding: 0.65rem;
}

.app-shell.app-telegram .app-chrome-only-tg {
  display: flex;
}

.app-shell.app-telegram .sim-bubble-body {
  background: #FFFFFF;
  border-radius: 14px 14px 14px 4px;
  padding: 0.6rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.app-shell.app-telegram .sim-message-line {
  font-size: 0.77rem;
  color: #168ACD;
  margin-bottom: 0.42rem;
}

.app-shell.app-telegram .og-card-frame {
  border-left: 3.5px solid #168ACD;
  border-radius: 4px 10px 10px 4px;
}

.app-shell.app-telegram .og-domain-upper {
  color: #168ACD;
}

.app-shell.app-telegram .og-domain-lower {
  display: none;
}

.tg-read-meta {
  justify-content: flex-end;
  font-size: 0.66rem;
  color: #8E9BA5;
  margin-top: 5px;
}

/* 4. X / Twitter Authentic Summary Large Image */
.app-shell.app-x {
  background: #FFFFFF;
  border: 1px solid #EFF3F4;
  padding: 0.7rem;
}

.app-shell.app-x .app-chrome-only-x {
  display: flex;
}

.x-chrome-head {
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.x-pic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0F1419;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.x-author-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
}

.x-verified {
  background: #1D9BF0;
  color: #FFFFFF;
  font-size: 0.56rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
}

.x-author-line small {
  color: #536471;
  font-size: 0.73rem;
}

.app-shell.app-x .sim-message-line {
  font-size: 0.77rem;
  color: #1D9BF0;
  margin-bottom: 0.45rem;
}

.app-shell.app-x .og-card-frame {
  border-radius: 14px;
}

.x-chrome-foot {
  justify-content: space-between;
  padding-top: 0.55rem;
  font-size: 0.7rem;
  color: #536471;
}

/* Shared Inner OG Card Frame */
.og-card-frame {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 10px;
  overflow: hidden;
}

.og-media-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 630;
  background: linear-gradient(135deg, #18181B 0%, #09090B 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.og-media-canvas.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.35) 50%, transparent 75%);
  animation: shimmer 1.1s infinite;
  z-index: 6;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.og-blur-layer {
  position: absolute;
  inset: -16px;
  background-size: cover;
  background-position: center;
  filter: blur(16px) brightness(0.66);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.og-blur-layer.visible {
  opacity: 1;
}

.og-fg-layer {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.og-fg-layer.cover-fit {
  object-fit: cover;
}

.og-empty-state {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #F4F4F5;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.og-empty-icon {
  font-size: 1.5rem;
}

.og-empty-state strong {
  font-size: 0.82rem;
}

.og-empty-state small {
  font-size: 0.68rem;
  color: #A1A1AA;
}

/* Top-Left Broadcast Corner Badge */
.og-corner-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 5px;
  backdrop-filter: blur(6px);
}

.og-corner-badge.badge-4k {
  background: rgba(15, 15, 18, 0.82);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.og-corner-badge.badge-live {
  background: #DC2626;
  color: #FFFFFF;
}

.og-corner-badge.badge-new {
  background: #EA580C;
  color: #FFFFFF;
}

/* Dynamic Play Button Overlay + Sizes */
.og-play-btn {
  position: absolute;
  z-index: 4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: all 0.2s ease;
}

.og-play-btn svg {
  margin-left: 2px;
}

.og-play-btn.sz-sm { width: 42px; height: 42px; }
.og-play-btn.sz-md { width: 54px; height: 54px; }
.og-play-btn.sz-lg { width: 66px; height: 66px; }

.og-play-btn.style-frosted {
  background: rgba(18, 18, 22, 0.64);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.94);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.og-play-btn.style-coral {
  background: linear-gradient(135deg, #EA580C, #F97316);
  border: 2.5px solid #FFFFFF;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.52);
}

.og-play-btn.style-youtube {
  width: 64px;
  height: 44px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.95);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(220, 38, 38, 0.45);
}

.og-play-btn.style-white {
  background: rgba(255, 255, 255, 0.96);
  color: #09090B;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Timestamp Pill */
.og-time-pill {
  position: absolute;
  z-index: 4;
  bottom: 11px;
  right: 9px;
  background: rgba(9, 9, 11, 0.86);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

.og-time-pill.left {
  right: auto;
  left: 9px;
}

/* Video Player Scrubber Bar */
.og-scrubber-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.26);
  z-index: 4;
}

.og-scrubber-fill {
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, #EA580C, #EF4444);
  position: relative;
}

.og-scrubber-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -2.5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* OG Card Text Block */
.og-meta-box {
  padding: 0.72rem 0.85rem;
  background: #F7F8FA;
}

.og-domain-upper {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #65676B;
  margin-bottom: 2px;
}

.og-headline {
  font-size: 0.89rem;
  font-weight: 800;
  color: #09090B;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.og-description {
  margin-top: 3px;
  font-size: 0.75rem;
  color: #52525B;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.og-description:empty {
  display: none;
}

.og-domain-lower {
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #71717A;
}

/* Live Open Graph Code Inspector Pane */
.code-inspector-pane {
  background: #FAFAFA;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 0.75rem;
}

.code-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 0.5rem;
}

#live-og-code-block {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.55;
  color: #18181B;
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 0.7rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Bottom Studio Export & QR Dock */
.studio-export-dock {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.68rem;
  border-top: 1px solid var(--border-hairline);
}

.qr-dock-card {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 13px;
  border: 1px solid var(--border-hairline);
  background: #FFFFFF;
  display: grid;
  place-items: center;
  padding: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.qr-dock-card:hover {
  transform: scale(1.03);
  border-color: var(--brand);
}

.qr-dock-card img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.qr-corner {
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: var(--brand);
  border-style: solid;
  pointer-events: none;
}
.qr-corner.tl { top: 3px; left: 3px; border-width: 1.5px 0 0 1.5px; border-top-left-radius: 3px; }
.qr-corner.tr { top: 3px; right: 3px; border-width: 1.5px 1.5px 0 0; border-top-right-radius: 3px; }
.qr-corner.bl { bottom: 3px; left: 3px; border-width: 0 0 1.5px 1.5px; border-bottom-left-radius: 3px; }
.qr-corner.br { bottom: 3px; right: 3px; border-width: 0 1.5px 1.5px 0; border-bottom-right-radius: 3px; }

.dock-btn-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dock-split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.42rem;
}

.dock-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.48rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--border-hairline);
  background: var(--surface-subtle);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dock-action-pill:hover {
  background: #FFFFFF;
  border-color: var(--brand);
  color: var(--brand);
}

/* Executive Telemetry Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric-tile {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.metric-delta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.metric-delta.up { background: var(--emerald-soft); color: var(--emerald); }
.metric-delta.orange { background: var(--brand-soft); color: var(--brand); }

.metric-number {
  font-size: 1.52rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric-foot {
  font-size: 0.71rem;
  color: var(--ink-muted);
}

/* Workspace Link Vault & Architecture Pipeline */
.vault-section,
.pipeline-section {
  margin-top: 2.5rem;
}

.vault-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.vault-header h2 {
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.vault-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.vault-filter-pills {
  display: inline-flex;
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.v-filter {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 7px;
  cursor: pointer;
}

.v-filter.active {
  background: var(--ink);
  color: #FFFFFF;
}

.vault-search-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 0 0.75rem;
}

.vault-search-box svg {
  color: var(--ink-muted);
}

.vault-search-box input {
  border: none;
  background: transparent;
  padding: 0.48rem 0;
  font-family: inherit;
  font-size: 0.79rem;
  color: var(--ink);
  outline: none;
  width: 190px;
}

.vault-empty {
  text-align: center;
  padding: 1.8rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
  border-style: dashed;
}

.vault-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.vault-row {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1.15rem;
}

.vault-thumb {
  width: 136px;
  aspect-ratio: 1200 / 630;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  display: grid;
  place-items: center;
}

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

.vault-row-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.vault-short-link {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.vault-short-link:hover {
  text-decoration: underline;
}

.v-badge {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--ink-secondary);
}

.v-clicks {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.vault-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vault-dest {
  font-size: 0.74rem;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vault-actions {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.del-icon-btn {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  border: 1px solid #FECDD3;
  background: #FFFFFF;
  color: var(--rose);
  cursor: pointer;
  font-weight: 700;
}

.del-icon-btn:hover {
  background: var(--rose-soft);
}

/* Architecture Pipeline */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pipe-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pipe-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-border);
}

.pipe-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 0.65rem;
}

.pipe-card h3 {
  font-size: 0.94rem;
  font-weight: 800;
  margin-bottom: 0.38rem;
}

.pipe-card p {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.pipe-card code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--surface-subtle);
  padding: 1px 5px;
  border-radius: 5px;
}

/* Footer */
.vc-footer {
  border-top: 1px solid var(--border-hairline);
  background: #FFFFFF;
  padding: 1.3rem 1.25rem;
}

.vc-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.79rem;
  color: var(--ink-muted);
}

.footer-brand-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.vc-dot-logo {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), #F59E0B);
}

/* Modals */
.vc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(9, 9, 11, 0.45);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.vc-modal {
  position: relative;
  width: 100%;
  max-width: 470px;
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 28px 70px rgba(9, 9, 11, 0.24);
}

.vc-modal.compact-modal {
  max-width: 380px;
  text-align: center;
}

.vc-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-hairline);
  background: var(--surface-subtle);
  cursor: pointer;
}

.vc-modal h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.modal-subtext {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 0.95rem;
  word-break: break-all;
}

.modal-thumb-box {
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  margin-bottom: 0.8rem;
}

.modal-thumb-box img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.modal-copy-bar {
  display: flex;
  gap: 0.45rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 0.32rem 0.32rem 0.32rem 0.8rem;
  margin-bottom: 0.72rem;
}

.modal-copy-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  outline: none;
}

.modal-test-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  border-radius: 11px;
  padding: 0.48rem 0.7rem;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.modal-test-strip a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.modal-utility-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.8rem;
}

.modal-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.share-btn {
  text-align: center;
  text-decoration: none;
  padding: 0.48rem 0.3rem;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #FFFFFF;
}

.share-btn.wa { background: #16A34A; }
.share-btn.fb { background: #1877F2; }
.share-btn.tg { background: #0284C7; }
.share-btn.tw { background: #09090B; }

.qr-large-frame {
  display: inline-grid;
  place-items: center;
  padding: 0.8rem;
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  margin-bottom: 1rem;
}

.vc-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.vc-auth-form input {
  padding: 0.68rem 0.85rem;
  border-radius: 11px;
  border: 1px solid var(--border-hairline);
  background: var(--surface-subtle);
  font-family: inherit;
  outline: none;
}

/* Toast */
.vc-toast {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 200;
  background: #09090B;
  color: #FFFFFF;
  padding: 0.68rem 1.05rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 1080px) {
  .bento-studio {
    grid-template-columns: 1fr;
  }

  .bento-deck-right {
    position: static;
  }

  .routing-matrix {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 740px) {
  .vc-header-inner {
    flex-wrap: wrap;
  }

  .vc-mode-dock {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .edge-telemetry,
  .ws-text {
    display: none;
  }

  .bento-row-2col,
  .metrics-grid,
  .pipeline-grid,
  .vault-row {
    grid-template-columns: 1fr;
  }
}
