/* screens.css — BMW DS-strict styles for Yuyu Agent screens */

/* Inject BMW tokens via @import in HTML */
.yu {
  --primary: #1c69d4;
  --primary-active: #0653b6;
  --ink: #262626;
  --body: #3c3c3c;
  --muted: #6b6b6b;
  --muted-soft: #9a9a9a;
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-card: #fafafa;
  --surface-strong: #ebebeb;
  --dark: #1a2129;
  --dark-elev: #262e38;
  --hairline: #e6e6e6;
  --hairline-strong: #cccccc;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #dc2626;
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden;
  letter-spacing: 0;
}

/* utility */
.yu * { box-sizing: border-box; }
.yu .upper { text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; font-size: 11px; }
.yu .label { font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.yu .body-sm { font: 300 13px/1.55 var(--font); color: var(--body); }
.yu .body-md { font: 300 15px/1.55 var(--font); color: var(--body); }
.yu .num { font-variant-numeric: tabular-nums; }
.yu hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* ===== APP SHELL ===== */
.yu-app {
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  flex: 1; min-height: 0;
}
.yu-app.no-inspector { grid-template-columns: 240px 1fr; }

/* ===== TOP BAR ===== */
.yu-topbar {
  height: 64px; flex-shrink: 0;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center;
  padding: 0 28px; gap: 18px;
  background: var(--canvas);
}
.yu-logo {
  display: flex; align-items: center; gap: 10px;
}
.yu-logo-mark {
  width: 28px; height: 28px;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0;
}
.yu-logo-text { font-weight: 700; font-size: 14px; letter-spacing: 0.5px; }
.yu-logo-sub { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }

.yu-crumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
  margin-left: 24px;
}
.yu-crumb .sep { color: var(--hairline-strong); }
.yu-crumb .now { color: var(--ink); font-weight: 500; }

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

/* ===== SIDEBAR ===== */
.yu-side {
  background: var(--canvas);
  border-right: 1px solid var(--hairline);
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 24px;
  overflow-y: auto;
}
.yu-side-grp { display: flex; flex-direction: column; gap: 2px; }
.yu-side-lbl {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted-soft);
  padding: 0 12px 8px;
}
.yu-nav {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  font-size: 13px; color: var(--body);
  cursor: pointer;
  border-left: 2px solid transparent;
}
.yu-nav:hover { background: var(--surface-soft); color: var(--ink); }
.yu-nav.active {
  background: var(--surface-soft);
  color: var(--ink); font-weight: 500;
  border-left-color: var(--primary);
}
.yu-nav .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); margin-left: auto;
}
.yu-nav-icon { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.85; }

.yu-side-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--hairline);
  background: var(--surface-soft);
}
.yu-side-card .lbl { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.yu-side-card .row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.yu-side-card .row .live { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--success); }

/* ===== BUTTONS (BMW spec) ===== */
.yu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 40px; padding: 0 22px;
  border: none; cursor: pointer;
  font: 700 13px/1 var(--font); letter-spacing: 0.5px;
  border-radius: 0;
  transition: background-color .12s linear, color .12s linear, border-color .12s linear;
}
.yu-btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }
.yu-btn-lg { height: 48px; padding: 0 28px; font-size: 14px; }
.yu-btn-primary { background: var(--primary); color: #fff; }
.yu-btn-primary:hover { background: var(--primary-active); }
.yu-btn-secondary { background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline-strong); }
.yu-btn-secondary:hover { border-color: var(--ink); }
.yu-btn-text {
  background: transparent; border: 0; padding: 0; height: auto;
  font: 700 12px/1.3 var(--font); letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.yu-btn-text::after { content: '›'; font-size: 16px; font-weight: 400; }
.yu-btn-text:hover { color: var(--primary); }
.yu-btn-ghost {
  background: transparent; border: 0; height: 32px; padding: 0 12px;
  font: 500 12px/1 var(--font); color: var(--muted);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.yu-btn-ghost:hover { color: var(--ink); }

/* ===== CANVAS / MAIN ===== */
.yu-main {
  background: var(--canvas);
  overflow-y: auto;
  position: relative;
}
.yu-main-inner { padding: 28px 36px 60px; max-width: 1100px; }

/* ===== STEPPER (slim, BMW style) ===== */
.yu-stepper {
  display: flex; align-items: stretch;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 36px;
}
.yu-step {
  flex: 1; padding: 16px 14px;
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
  position: relative;
}
.yu-step:last-child { border-right: 0; }
.yu-step .num { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted-soft); }
.yu-step .name { font-size: 12px; color: var(--body); font-weight: 500; line-height: 1.35; }
.yu-step.done .num { color: var(--primary); }
.yu-step.done .name { color: var(--ink); }
.yu-step.done::after {
  content: ''; position: absolute;
  bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--primary);
}
.yu-step.active { background: var(--ink); }
.yu-step.active .num { color: rgba(255,255,255,0.5); }
.yu-step.active .name { color: #fff; }

/* ===== HERO BAND ===== */
.yu-hero {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 32px;
}
.yu-hero .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.yu-hero h1 { font: 700 48px/1.08 var(--font); margin-bottom: 12px; letter-spacing: -0.5px; }
.yu-hero p { font: 300 16px/1.55 var(--font); color: var(--body); max-width: 600px; }
.yu-hero .meta { margin-top: 18px; display: flex; gap: 28px; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.yu-hero .meta .v { color: var(--ink); margin-left: 6px; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 13px; }

/* dark hero variant (BMW navy) */
.yu-hero-dark {
  background: var(--dark); color: #fff;
  margin: 0 -36px 32px; padding: 60px 36px 60px;
  border-bottom: 0;
}
.yu-hero-dark h1 { color: #fff; }
.yu-hero-dark p { color: rgba(255,255,255,0.75); }
.yu-hero-dark .eyebrow { color: rgba(255,255,255,0.6); }
.yu-hero-dark .meta { color: rgba(255,255,255,0.55); }
.yu-hero-dark .meta .v { color: #fff; }

/* ===== SECTION HEADER ===== */
.yu-sec { margin-bottom: 40px; }
.yu-sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.yu-sec-head .num { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted-soft); }
.yu-sec-head h2 { font: 700 24px/1.25 var(--font); }
.yu-sec-head .aux { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }

/* ===== CARDS ===== */
.yu-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: 22px;
}
.yu-card.flush { padding: 0; }
.yu-card.soft { background: var(--surface-soft); border-color: var(--hairline); }
.yu-card.dark { background: var(--dark); color: #fff; border-color: transparent; }

/* product brief grid */
.yu-brief { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.yu-prompt {
  padding: 20px;
  border: 1px solid var(--hairline);
  background: var(--surface-soft);
}
.yu-prompt-lbl { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.yu-prompt p { font: 300 14px/1.6 var(--font); color: var(--ink); }
.yu-fields { display: flex; flex-direction: column; }
.yu-field {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.yu-field:last-child { border-bottom: 0; }
.yu-field-k { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.yu-field-v { color: var(--ink); font-weight: 500; }

/* chips */
.yu-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.yu-chip {
  padding: 6px 12px;
  border: 1px solid var(--hairline-strong);
  background: var(--canvas);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--ink);
}
.yu-chip-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.yu-chip-blue { background: var(--primary); color: #fff; border-color: var(--primary); }
.yu-chip-warn { background: #fff7e6; color: #b45309; border-color: #fde68a; }

/* DNA strip */
.yu-dna {
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 24px;
  background: var(--canvas);
}
.yu-dna .lbl { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.yu-dna .pal { display: flex; gap: 0; }
.yu-dna .sw { width: 32px; height: 32px; border: 1px solid rgba(0,0,0,0.05); }
.yu-dna .meta { margin-left: auto; display: flex; gap: 24px; font-size: 12px; color: var(--body); }
.yu-dna .meta strong { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.yu-dna .live { color: var(--primary); font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }

/* ===== STORYBOARD ===== */
.yu-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--hairline);
  margin-bottom: 22px;
}
.yu-tab {
  padding: 12px 18px; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.yu-tab.active { color: var(--ink); border-bottom-color: var(--primary); }

.yu-scenes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.yu-scene { border: 1px solid var(--hairline); background: var(--canvas); display: flex; flex-direction: column; }
.yu-scene-frame {
  aspect-ratio: 9/16; position: relative; overflow: hidden;
  background: var(--surface-soft);
}
.yu-scene-frame .tag {
  position: absolute; top: 8px; left: 8px;
  background: var(--ink); color: #fff;
  padding: 3px 8px; font-size: 9px;
  font-weight: 700; letter-spacing: 1px;
}
.yu-scene-frame .dur {
  position: absolute; top: 8px; right: 8px;
  background: rgba(255,255,255,0.95); color: var(--ink);
  padding: 3px 8px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px;
}
.yu-scene-meta { padding: 12px; border-top: 1px solid var(--hairline); }
.yu-scene-obj { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.yu-scene-head { font: 700 13px/1.35 var(--font); margin-bottom: 6px; min-height: 36px; white-space: pre-line; }
.yu-scene-cue { font-size: 11px; color: var(--muted); font-weight: 300; line-height: 1.4; }

/* scene visual variants */
.yu-sv-1 {
  background:
    linear-gradient(180deg, rgba(26,33,41,0.85) 0%, rgba(26,33,41,0.2) 60%),
    linear-gradient(135deg, #2a3a4a 0%, #1a2129 100%);
}
.yu-sv-1::after {
  content: ''; position: absolute; left: 50%; top: 55%; transform: translate(-50%,-50%);
  width: 32%; height: 50%;
  background: linear-gradient(180deg, var(--primary), #0653b6);
  filter: blur(0.5px);
}
.yu-sv-2 { background: linear-gradient(180deg, #fafafa, #ebebeb); }
.yu-sv-2::before {
  content: ''; position: absolute; inset: 25% 18%;
  background:
    radial-gradient(ellipse at 28% 50%, #d4d4d4 0 18%, transparent 18.5%),
    radial-gradient(ellipse at 50% 50%, var(--primary) 0 16%, transparent 16.5%),
    radial-gradient(ellipse at 72% 50%, #2a3a4a 0 18%, transparent 18.5%);
}
.yu-sv-3 { background: linear-gradient(180deg, #d6e2f4, #a8c0e0); }
.yu-sv-3::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.5) 0 20%, transparent 35%),
    radial-gradient(circle at 70% 60%, rgba(28,105,212,0.25) 0 22%, transparent 40%);
}
.yu-sv-4 { background: #fff; }
.yu-sv-4::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 42%; height: 70%;
  background: linear-gradient(180deg, var(--primary), var(--primary-active));
  box-shadow: 0 24px 48px -16px rgba(28,105,212,0.4);
}
.yu-sv-5 { background: var(--ink); }
.yu-sv-5::before {
  content: ''; position: absolute; left: 16%; right: 16%; bottom: 20%; top: 40%;
  border: 1px solid rgba(255,255,255,0.3);
}
.yu-sv-5::after {
  content: '@yuyu'; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px;
}

/* drink variants */
.yu-sv-d1 { background: linear-gradient(180deg, #f5efe2, #e8dcc1); }
.yu-sv-d1::after {
  content: ''; position: absolute; left: 42%; top: 30%; width: 16%; height: 50%;
  background: linear-gradient(180deg, rgba(28,105,212,0.7), rgba(28,105,212,0.95));
  border-radius: 4px 4px 2px 2px;
}
.yu-sv-d2 { background: #fff; }
.yu-sv-d2::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 18%; height: 70%; background: linear-gradient(180deg, var(--primary), var(--primary-active));
  border-radius: 4px;
}
.yu-sv-d3 { background: linear-gradient(180deg, #ffe9c8, #ffd49a); }
.yu-sv-d3::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(255,255,255,0.6) 0 30%, transparent 60%);
}

/* timeline */
.yu-timeline {
  margin-top: 18px; padding: 16px 0;
  border-top: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 16px;
}
.yu-tl-lbl { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.yu-tl-bar { flex: 1; height: 6px; background: var(--surface-strong); display: flex; gap: 1px; }
.yu-tl-seg { background: var(--primary); }
.yu-tl-seg:nth-child(1) { width: 20%; }
.yu-tl-seg:nth-child(2) { width: 20%; background: #4287e0; }
.yu-tl-seg:nth-child(3) { width: 26%; background: var(--primary); }
.yu-tl-seg:nth-child(4) { width: 20%; background: #2a76d8; }
.yu-tl-seg:nth-child(5) { width: 14%; background: var(--primary-active); }
.yu-tl-total { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }

/* ===== PACKSHOT GRID ===== */
.yu-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.yu-pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.yu-pack {
  aspect-ratio: 1; position: relative; cursor: pointer;
  border: 2px solid transparent; background: var(--surface-soft);
  overflow: hidden;
}
.yu-pack.locked { border-color: var(--primary); }
.yu-pack-tag { position: absolute; bottom: 6px; left: 6px; background: rgba(255,255,255,0.95); font-size: 9px; font-weight: 700; padding: 2px 6px; letter-spacing: 0.5px; }
.yu-pack-lock { position: absolute; top: 6px; right: 6px; background: var(--primary); color: #fff; width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.yu-pack::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 50%; height: 70%;
}
.yu-pack.p1::before { background: linear-gradient(180deg, var(--primary), var(--primary-active)); }
.yu-pack.p2 { background: linear-gradient(135deg, #efe5d0, #d8c7a3); }
.yu-pack.p2::before { width: 60%; height: 50%; background: radial-gradient(circle at 30% 50%, #c8b896 0 18%, transparent 18.5%), radial-gradient(circle at 70% 50%, #2a3a4a 0 16%, transparent 16.5%); }
.yu-pack.p3::before { background: var(--ink); }
.yu-pack.p4 { background: #fff; }
.yu-pack.p4::before { background: linear-gradient(180deg, #fff, #ebebeb); border: 1px solid var(--hairline); }
.yu-pack.p5 { background: linear-gradient(135deg, #d6e2f4, #a8c0e0); }
.yu-pack.p5::before { width: 22%; background: linear-gradient(180deg, var(--primary), var(--primary-active)); border-radius: 4px; }
.yu-pack.p6 { background: var(--ink); }
.yu-pack.p6::before { width: 22%; background: linear-gradient(180deg, var(--primary), #4287e0); border-radius: 4px; }

/* design kit */
.yu-kit-row {
  display: grid; grid-template-columns: 110px 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.yu-kit-row:last-child { border-bottom: 0; }
.yu-kit-k { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.yu-kit-v { color: var(--ink); font-weight: 500; }
.yu-kit-action { font: 700 11px/1 var(--font); letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); cursor: pointer; }

.yu-templates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.yu-template {
  aspect-ratio: 3/4; border: 1px solid var(--hairline);
  cursor: pointer; position: relative; overflow: hidden;
}
.yu-template.sel { border: 2px solid var(--primary); }
.yu-template-lbl { position: absolute; bottom: 0; left: 0; right: 0; padding: 4px 6px; background: rgba(255,255,255,0.95); font-size: 9px; font-weight: 700; letter-spacing: 0.5px; }
.yu-template.t1 { background: linear-gradient(180deg, #efe5d0, #c8b896); }
.yu-template.t2 { background: linear-gradient(180deg, var(--primary), var(--primary-active)); }
.yu-template.t3 { background: linear-gradient(180deg, var(--ink), var(--dark)); }
.yu-template.t4 { background: linear-gradient(180deg, #d6e2f4, #a8c0e0); }

/* ===== VIDEO ===== */
.yu-video {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  padding: 22px;
  display: grid; grid-template-columns: 280px 1fr; gap: 26px;
}
.yu-video-prev {
  aspect-ratio: 9/16; background: var(--ink);
  position: relative; overflow: hidden;
}
.yu-video-prev::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 60%, rgba(28,105,212,0.5), transparent 60%);
}
.yu-video-prev::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 38%; height: 60%;
  background: linear-gradient(180deg, var(--primary), var(--primary-active));
  box-shadow: 0 16px 32px rgba(0,0,0,0.4);
}
.yu-video-overlay {
  position: absolute; inset: 0; padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  z-index: 2;
}
.yu-video-status {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.5); color: #fff;
  padding: 5px 10px; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; align-self: flex-start;
}
.yu-video-status .ld { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: yu-pulse 1.4s infinite; }
@keyframes yu-pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.3 } }
.yu-video-bot { color: #fff; text-align: center; }
.yu-video-bot .h { font-weight: 700; font-size: 16px; line-height: 1.2; white-space: pre-line; }
.yu-video-bot .s { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.7; margin-top: 6px; }

.yu-video-side { display: flex; flex-direction: column; }
.yu-models { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.yu-model {
  padding: 14px; border: 1px solid var(--hairline-strong); cursor: pointer; background: var(--canvas);
}
.yu-model.sel { border-color: var(--primary); border-width: 2px; padding: 13px; }
.yu-model .nm { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.yu-model .ds { font-size: 11px; color: var(--muted); font-weight: 300; line-height: 1.4; }

.yu-stats { background: var(--canvas); border: 1px solid var(--hairline); padding: 0 14px; margin-bottom: 14px; }
.yu-stat { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 12px; }
.yu-stat:last-child { border-bottom: 0; }
.yu-stat .k { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.yu-stat .v { font-weight: 500; }
.yu-stat .v.green { color: var(--success); }

.yu-progress {
  margin-top: auto; padding-top: 14px;
}
.yu-progress-lbl { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.yu-progress-bar { height: 4px; background: var(--surface-strong); }
.yu-progress-fill { height: 100%; width: 72%; background: var(--primary); animation: yu-shimmer 2s infinite; }
@keyframes yu-shimmer { 0%,100% { opacity: 1 } 50% { opacity: 0.7 } }

/* ===== INSPECTOR ===== */
.yu-insp { background: var(--canvas); border-left: 1px solid var(--hairline); overflow-y: auto; }
.yu-insp-sec { padding: 22px; border-bottom: 1px solid var(--hairline); }
.yu-insp-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* compliance card */
.yu-comp-card { padding: 16px; border: 1px solid var(--hairline); background: var(--canvas); }
.yu-comp-score { display: flex; align-items: baseline; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline); margin-bottom: 14px; }
.yu-comp-num { font: 700 36px/1 var(--font); color: var(--primary); }
.yu-comp-max { font-size: 12px; font-weight: 500; color: var(--muted); }
.yu-comp-tag { margin-left: auto; padding: 4px 10px; background: var(--success); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.yu-comp-line { display: flex; align-items: center; padding: 5px 0; font-size: 12px; color: var(--body); }
.yu-comp-line .ck { color: var(--success); margin-right: 8px; font-weight: 700; }
.yu-comp-line .x { color: var(--error); margin-right: 8px; font-weight: 700; }
.yu-comp-line .w { color: var(--warning); margin-right: 8px; font-weight: 700; }
.yu-comp-warn {
  margin-top: 12px; padding: 10px 12px;
  background: #fffbeb; border-left: 3px solid var(--warning);
  font-size: 11px; color: #92400e; line-height: 1.5;
}

/* routine */
.yu-routine { padding: 14px; border: 1px solid var(--hairline); margin-bottom: 8px; }
.yu-routine-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.yu-routine-nm { font-size: 13px; font-weight: 700; }
.yu-toggle {
  width: 32px; height: 18px; background: var(--primary);
  position: relative; cursor: pointer;
}
.yu-toggle::after {
  content: ''; position: absolute; right: 2px; top: 2px;
  width: 14px; height: 14px; background: #fff;
}
.yu-toggle.off { background: var(--hairline-strong); }
.yu-toggle.off::after { right: auto; left: 2px; }
.yu-routine-meta { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0.3px; }
.yu-routine-next { margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; }

/* library */
.yu-lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.yu-lib { aspect-ratio: 9/16; position: relative; cursor: pointer; overflow: hidden; }
.yu-lib.l1 { background: linear-gradient(180deg, var(--primary), var(--primary-active)); }
.yu-lib.l2 { background: linear-gradient(180deg, #efe5d0, #c8b896); }
.yu-lib.l3 { background: linear-gradient(180deg, var(--ink), var(--dark)); }
.yu-lib.l4 { background: linear-gradient(180deg, #d6e2f4, #6b95cd); }
.yu-lib-time { position: absolute; bottom: 6px; left: 6px; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: 1px; opacity: 0.85; }
.yu-lib-ch { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; background: rgba(255,255,255,0.95); display: grid; place-items: center; font-size: 9px; font-weight: 700; color: var(--ink); }

/* channels list */
.yu-ch-list { display: flex; flex-direction: column; gap: 8px; }
.yu-ch-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--hairline); background: var(--canvas); }
.yu-ch-icon { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; flex-shrink: 0; }
.yu-ch-icon.ig { background: linear-gradient(135deg,#f09433,#dc2743,#bc1888); }
.yu-ch-icon.tt { background: #000; }
.yu-ch-icon.yt { background: #ff0000; }
.yu-ch-info { flex: 1; }
.yu-ch-nm { font-size: 12px; font-weight: 700; }
.yu-ch-h { font-size: 10px; color: var(--muted); font-weight: 500; letter-spacing: 0.3px; }
.yu-ch-state { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--success); }
.yu-ch-state.off { color: var(--muted-soft); }

/* ===== INTAKE / COMPOSER ===== */
.yu-composer {
  border: 1px solid var(--hairline);
  background: var(--canvas);
  padding: 22px;
  margin-bottom: 18px;
}
.yu-composer .placeholder {
  font: 300 16px/1.5 var(--font); color: var(--muted-soft);
  padding: 6px 0 14px; border-bottom: 1px solid var(--hairline);
}
.yu-composer .sample {
  margin-top: 14px; padding: 14px;
  background: var(--surface-soft); border-left: 3px solid var(--primary);
}
.yu-composer .sample .lbl { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.yu-composer .sample p { font: 300 13px/1.6 var(--font); }
.yu-composer-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--hairline);
}
.yu-tab-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1px solid var(--hairline-strong);
  background: var(--canvas); cursor: pointer;
  font-size: 12px; font-weight: 500;
}
.yu-tab-pill.sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.yu-tab-pill.blue { background: var(--primary); color: #fff; border-color: var(--primary); }
.yu-quality {
  display: inline-flex; border: 1px solid var(--hairline-strong);
}
.yu-quality span { padding: 7px 14px; cursor: pointer; font-size: 12px; font-weight: 500; }
.yu-quality span.sel { background: var(--ink); color: #fff; }
.yu-spacer { flex: 1; }
.yu-counter {
  display: inline-flex; border: 1px solid var(--hairline-strong);
}
.yu-counter span { padding: 7px 12px; cursor: pointer; font-size: 12px; font-weight: 500; }
.yu-counter span.sel { background: var(--primary); color: #fff; }
.yu-arrow {
  width: 36px; height: 36px; background: var(--primary); color: #fff;
  display: grid; place-items: center; cursor: pointer; font-size: 18px;
}

/* poster templates strip */
.yu-poster-strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 12px; margin-top: 18px;
}
.yu-poster {
  aspect-ratio: 3/4; border: 1px solid var(--hairline);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.yu-poster .img { flex: 1; }
.yu-poster .cap { padding: 8px; border-top: 1px solid var(--hairline); }
.yu-poster .cap .nm { font-size: 11px; font-weight: 700; }
.yu-poster .cap .sz { font-size: 10px; color: var(--muted); font-weight: 500; }
.yu-poster.t01 .img { background: linear-gradient(135deg, #2a4a3a 0%, #1a2129 100%); }
.yu-poster.t02 .img { background: var(--primary); }
.yu-poster.t03 .img { background: linear-gradient(135deg, #d8c7e4, #a888bc); }
.yu-poster.t04 .img { background: linear-gradient(180deg, #1a3a5a, #0a1a2a); }
.yu-poster.t05 .img { background: linear-gradient(180deg, #f5e6c8, #d8b878); }
.yu-poster.t06 .img { background: linear-gradient(180deg, #f0e0c8, #c8a878); }

/* publish / routine compose */
.yu-publish {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  background: var(--canvas); border: 1px solid var(--hairline); padding: 22px;
}
.yu-publish-prev {
  aspect-ratio: 9/16; background: var(--ink);
  position: relative; overflow: hidden;
  max-height: 400px; align-self: start;
}
.yu-publish-prev::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 38%; height: 60%; background: linear-gradient(180deg, var(--primary), var(--primary-active));
}
.yu-publish-form { display: flex; flex-direction: column; gap: 14px; }
.yu-input {
  border: 1px solid var(--hairline-strong); padding: 12px 14px;
  font: 300 14px/1.5 var(--font); color: var(--ink); background: var(--canvas);
}
.yu-input:focus { border-color: var(--ink); outline: none; }
.yu-textarea { min-height: 100px; resize: vertical; }
.yu-form-row { display: flex; flex-direction: column; gap: 6px; }
.yu-form-row .lbl { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* schedule grid */
.yu-week {
  display: grid; grid-template-columns: 60px repeat(7, 1fr); gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.yu-week > div { background: var(--canvas); padding: 12px; min-height: 56px; }
.yu-week .hd { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); text-align: center; padding: 10px 4px; }
.yu-week .h { font-size: 10px; color: var(--muted); font-weight: 500; }
.yu-week .slot { position: relative; cursor: pointer; padding: 8px; }
.yu-week .slot.has {
  background: var(--primary); color: #fff;
}
.yu-week .slot.has .t { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; }
.yu-week .slot.has .ch { font-size: 9px; opacity: 0.85; font-weight: 500; margin-top: 2px; letter-spacing: 1px; text-transform: uppercase; }
.yu-week .slot.draft { background: var(--surface-soft); }
.yu-week .slot.draft .t { font-size: 10px; color: var(--muted); font-weight: 500; }

/* library full */
.yu-lib-full { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.yu-lib-card { border: 1px solid var(--hairline); display: flex; flex-direction: column; }
.yu-lib-thumb { aspect-ratio: 9/16; position: relative; overflow: hidden; }
.yu-lib-thumb.lc1 { background: linear-gradient(180deg, var(--primary), var(--primary-active)); }
.yu-lib-thumb.lc2 { background: linear-gradient(180deg, #efe5d0, #c8b896); }
.yu-lib-thumb.lc3 { background: var(--ink); }
.yu-lib-thumb.lc4 { background: linear-gradient(180deg, #d6e2f4, #6b95cd); }
.yu-lib-thumb.lc5 { background: linear-gradient(180deg, #ffe9c8, #ffb878); }
.yu-lib-cap { padding: 12px; border-top: 1px solid var(--hairline); }
.yu-lib-cap .nm { font-size: 12px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.yu-lib-cap .meta { font-size: 10px; color: var(--muted); font-weight: 500; letter-spacing: 0.5px; }
.yu-lib-cap .meta .ch { color: var(--primary); font-weight: 700; }

/* ===== COMPLIANCE MODAL ===== */
.yu-modal-bg {
  position: absolute; inset: 0;
  background: rgba(26, 33, 41, 0.6);
  z-index: 100;
  display: grid; place-items: center;
  animation: yu-fade .15s ease-out;
}
@keyframes yu-fade { from { opacity: 0 } to { opacity: 1 } }
.yu-modal {
  width: 92%; max-width: 720px; max-height: 88%;
  background: #fff; border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}
.yu-modal-hd { padding: 22px 28px; border-bottom: 1px solid var(--hairline); display: flex; align-items: center; gap: 14px; }
.yu-modal-hd h3 { font: 700 20px/1.2 var(--font); }
.yu-modal-hd .x { margin-left: auto; cursor: pointer; color: var(--muted); width: 28px; height: 28px; display: grid; place-items: center; font-size: 18px; }
.yu-modal-bd { padding: 22px 28px; overflow-y: auto; }
.yu-modal-ft { padding: 16px 28px; border-top: 1px solid var(--hairline); display: flex; gap: 10px; justify-content: flex-end; align-items: center; }

.yu-comp-big {
  display: flex; align-items: stretch;
  border: 1px solid var(--hairline);
  margin-bottom: 22px;
}
.yu-comp-big .scoreblk {
  padding: 22px; min-width: 180px;
  border-right: 1px solid var(--hairline);
  background: var(--surface-soft);
}
.yu-comp-big .scoreblk .lbl { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.yu-comp-big .scoreblk .num { font: 700 48px/1 var(--font); color: var(--primary); margin-bottom: 8px; }
.yu-comp-big .scoreblk .tag { display: inline-block; padding: 4px 10px; background: var(--success); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.yu-comp-big .checks { padding: 18px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.yu-comp-block { margin-bottom: 18px; }
.yu-comp-block h4 { font: 700 13px/1.3 var(--font); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; color: var(--ink); }
.yu-comp-keywords { display: flex; flex-wrap: wrap; gap: 6px; }
.yu-comp-kw { padding: 6px 12px; border: 1px solid var(--hairline); font-size: 12px; }
.yu-comp-kw.flag { background: #fff5f5; color: var(--error); border-color: #fecaca; text-decoration: line-through; }
.yu-comp-kw.alt { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

/* M stripe accent (we keep one — at the bottom of dark hero only) */
.yu-m-stripe {
  height: 3px; width: 60px;
  background: linear-gradient(to right,
    #0066b1 0%, #0066b1 33.33%,
    #1c69d4 33.33%, #1c69d4 66.66%,
    #e22718 66.66%, #e22718 100%);
}

/* topbar toast */
.yu-toast {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--success); padding: 0 10px;
  animation: yu-toast 0.6s ease-out;
}
@keyframes yu-toast {
  0% { opacity: 0; transform: translateY(-4px); }
  20% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* clickable cursor everywhere */
.yu-tab, .yu-tab-pill, .yu-quality span, .yu-counter span, .yu-arrow,
.yu-pack, .yu-template, .yu-model, .yu-chip, .yu-toggle,
.yu-scene, .yu-poster, .yu-week .slot, .yu-kit-action,
.yu-step, .yu-nav, .yu-lib, .yu-lib-card { cursor: pointer; user-select: none; }

.yu-chip { transition: background-color .12s, border-color .12s, color .12s; }
.yu-chip:hover { border-color: var(--ink); }

.yu-scene { transition: outline .12s; outline: 0 solid transparent; }
.yu-scene.sel { outline: 2px solid var(--primary); outline-offset: -2px; }

.yu-pack { transition: border-color .12s, transform .12s; }
.yu-pack:hover:not(.locked) { border-color: var(--hairline-strong); }

.yu-model { transition: border-color .12s; }
.yu-model:hover:not(.sel) { border-color: var(--ink); }

.yu-template:hover:not(.sel) { outline: 1px solid var(--ink); outline-offset: -1px; }

/* misc */
.yu-divider { height: 1px; background: var(--hairline); margin: 24px 0; }
.yu-flex { display: flex; align-items: center; gap: 10px; }
.yu-mt-8 { margin-top: 8px; }
.yu-mt-16 { margin-top: 16px; }
.yu-mt-24 { margin-top: 24px; }
