:root {
  color-scheme: dark;
  --yft-ink: #f7f9fc;
  --yft-muted: #b8c4d6;
  --yft-panel: #101827;
  --yft-line: rgba(255,255,255,.16);
  --yft-green: #39d98a;
  --yft-gold: #f6b94a;
  --yft-red: #ff6b6b;
}
* { box-sizing: border-box; }
.yft-ad-page { margin: 0; min-height: 100vh; background: #070b12; color: var(--yft-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.yft-ad { min-height: 100svh; position: relative; display: grid; align-items: end; overflow: hidden; }
.yft-ad-media { position: absolute; inset: 0; background: url("../images/desert-sunset-truck.png") center 45% / cover no-repeat; }
.yft-ad-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,14,.94) 0%, rgba(5,8,14,.76) 48%, rgba(5,8,14,.2) 100%), linear-gradient(0deg, rgba(5,8,14,.88), transparent 60%); }
.yft-ad-content { position: relative; width: min(760px, 100%); padding: clamp(28px, 6vw, 76px); padding-bottom: clamp(36px, 7vh, 80px); }
.yft-kicker { color: var(--yft-gold); font-size: 12px; font-weight: 900; letter-spacing: .14em; margin: 0 0 14px; }
.yft-ad h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.02; letter-spacing: 0; margin: 0; max-width: 760px; }
.yft-ad-lead { color: var(--yft-muted); font-size: clamp(16px, 2vw, 21px); line-height: 1.55; max-width: 700px; margin: 22px 0; }
.yft-ad-path { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.yft-ad-path span { border: 1px solid var(--yft-line); background: rgba(8,13,22,.68); padding: 7px 10px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.yft-ad-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.yft-ad button { min-height: 48px; border-radius: 6px; padding: 0 18px; font: inherit; font-weight: 850; cursor: pointer; }
.yft-primary { border: 1px solid var(--yft-green); background: var(--yft-green); color: #06120d; }
.yft-secondary { border: 1px solid var(--yft-line); background: rgba(11,18,30,.88); color: var(--yft-ink); }
.yft-text-button { border: 0; background: transparent; color: var(--yft-muted); }
.yft-ad-choice { display: flex; align-items: center; gap: 9px; color: var(--yft-muted); margin-top: 18px; font-size: 14px; }
.yft-ad-choice input { width: 18px; height: 18px; accent-color: var(--yft-green); }
.yft-ad-training { color: #91a0b5; font-size: 12px; margin-top: 16px; }
@media (max-width: 620px) {
  .yft-ad { align-items: end; }
  .yft-ad-media { background-position: 62% center; }
  .yft-ad-shade { background: linear-gradient(0deg, rgba(5,8,14,.98) 0%, rgba(5,8,14,.82) 66%, rgba(5,8,14,.28) 100%); }
  .yft-ad-content { padding: 24px 18px 34px; }
  .yft-ad h1 { font-size: 38px; }
  .yft-ad-actions { display: grid; }
  .yft-ad button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.yft-guide { position: fixed !important; z-index: 2147483600; right: 12px; bottom: 12px; width: min(340px, calc(100vw - 24px)) !important; max-width: 340px !important; max-height: calc(100vh - 24px); overflow: auto; padding: 14px !important; border: 1px solid rgba(57,217,138,.58); border-radius: 8px; background: rgba(9,15,25,.97); color: var(--yft-ink); box-shadow: 0 20px 54px rgba(0,0,0,.48); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.yft-guide-progress { height: 4px; background: rgba(255,255,255,.1); margin: -14px -14px 12px; overflow: hidden; }
.yft-guide-progress span { display: block; height: 100%; width: 0; background: var(--yft-green); transition: width .35s ease; }
.yft-guide-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.yft-guide-head strong { font-size: 14px; }
.yft-guide-head span, .yft-guide-step { color: #91a0b5; font-size: 11px; }
.yft-guide-phase { display: inline-flex; margin-top: 9px; padding: 3px 6px; border-radius: 4px; background: rgba(57,217,138,.14); color: var(--yft-green); font-size: 10px; font-weight: 900; }
.yft-guide-step { margin-top: 10px; text-transform: uppercase; font-weight: 850; }
.yft-guide-title { margin-top: 5px; font-weight: 900; font-size: 17px; line-height: 1.2; }
.yft-guide-document { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 9px; margin-top: 9px; padding: 7px; border: 1px solid var(--yft-line); border-radius: 5px; background: rgba(255,255,255,.04); color: var(--yft-ink); font-size: 12px; font-weight: 800; }
.yft-guide-document[hidden] { display: none; }
.yft-guide-document img { width: 38px; height: 48px; object-fit: cover; object-position: top; border-radius: 3px; background: #fff; }
.yft-guide-copy { color: var(--yft-muted); font-size: 13px; line-height: 1.4; margin: 8px 0 11px; }
.yft-guide-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.yft-guide-controls button { min-width: 0; min-height: 34px; border-radius: 5px; border: 1px solid var(--yft-line); background: #172235; color: var(--yft-ink); padding: 5px; font-size: 11px; font-weight: 800; cursor: pointer; }
.yft-cursor { position: fixed; z-index: 2147483640; left: -80px; top: -80px; width: 24px; height: 30px; pointer-events: none; opacity: 0; transition: left .82s cubic-bezier(.2,.7,.2,1), top .82s cubic-bezier(.2,.7,.2,1), opacity .2s, transform .16s; filter: drop-shadow(0 3px 4px rgba(0,0,0,.65)); }
.yft-cursor::before { content: ""; position: absolute; width: 0; height: 0; border-top: 21px solid #fff; border-right: 13px solid transparent; transform: rotate(-16deg); }
.yft-cursor span { position: absolute; left: 8px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--yft-green); opacity: .85; }
.yft-cursor.is-visible { opacity: 1; }
.yft-cursor.is-clicking { transform: scale(.8); }
.yft-focus { z-index: 2147483500 !important; outline: 3px solid var(--yft-green) !important; outline-offset: 5px !important; box-shadow: 0 0 0 9999px rgba(2,5,10,.58), 0 0 30px rgba(57,217,138,.38) !important; }
.yft-focus:not(.yft-focus-preserve-position) { position: relative !important; }
html[data-yft-sandbox="active"]::after { content: "TRAINING WORKSPACE"; position: fixed; z-index: 2147483400; top: 10px; right: 10px; padding: 6px 9px; border: 1px solid rgba(246,185,74,.55); border-radius: 4px; background: rgba(8,13,22,.88); color: var(--yft-gold); font: 900 10px/1 system-ui; letter-spacing: .08em; pointer-events: none; }
@media (max-width: 620px) {
  .yft-guide {
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(36vh, 280px);
    padding: 10px !important;
  }
  .yft-guide-progress { margin: -10px -10px 8px; }
  .yft-guide-head span { display: none; }
  .yft-guide-phase { margin-top: 6px; }
  .yft-guide-step { margin-top: 6px; }
  .yft-guide-title { margin-top: 3px; font-size: 15px; }
  .yft-guide-copy { margin: 6px 0 8px; font-size: 12px; line-height: 1.35; }
  .yft-guide-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .yft-guide-controls button { min-height: 32px; padding: 4px 2px; font-size: 10px; }
}
