/* Feature mockups — HTML/CSS instead of screenshot images. Reuses existing :root tokens. */
.feature-image-container .ssm-stage{height:230px;display:flex;align-items:center;justify-content:center;padding:16px;background:linear-gradient(180deg,#fff,var(--paper-2));transition:background 0.3s ease;}

/* Dreamy pastel stage backgrounds mimicking premium dark gradients in light theme */
.ssm-stage.chapters-stage { background: radial-gradient(circle at 50% 50%, rgba(15,164,106,0.08) 0%, #FFF 100%); }
.ssm-stage.notes-stage { background: radial-gradient(circle at 50% 50%, rgba(35,71,232,0.07) 0%, #FFF 100%); }
.ssm-stage.screenshots-stage { background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.07) 0%, #FFF 100%); }
.ssm-stage.engines-stage { background: radial-gradient(circle at 50% 50%, rgba(139,92,246,0.08) 0%, #FFF 100%); }
.ssm-stage.chat-stage { background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.08) 0%, #FFF 100%); }
.ssm-stage.storage-stage { background: radial-gradient(circle at 50% 50%, rgba(244,63,94,0.07) 0%, #FFF 100%); }

/* Mockup panel with transitions and slightly larger fonts */
.ssm-panel{width:100%;max-width:320px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-sm);overflow:hidden;font-family:var(--font-body);font-size:13.5px;line-height:1.45;color:var(--ink);transition:transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease, border-color 0.4s ease;}

/* Card Hover effect: scales and adds subtle shadow on mockup panels */
.feature-card:hover .ssm-panel {
    transform: translateY(-5px) scale(1.025);
    box-shadow: var(--shadow-md);
    border-color: rgba(35, 71, 232, 0.22);
}

.ssm-h{display:flex;align-items:center;gap:7px;padding:9px 12px;border-bottom:1px solid var(--line-2);font-family:var(--font-mono);font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);}
.ssm-dot{width:7px;height:7px;border-radius:50%;background:var(--brand);}
.ssm-ts{font-family:var(--font-mono);font-size:10.5px;font-weight:600;color:var(--brand);background:var(--brand-tint);border-radius:6px;padding:2px 6px;}
.ssm-row{display:flex;align-items:center;gap:9px;padding:8px 12px;border-bottom:1px solid var(--line-2);transition:background 0.2s ease, color 0.2s ease;}
.ssm-row:last-child{border-bottom:0;}
.ssm-tt{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}

/* Hover Action: Chapters card highlights an active item */
.feature-card:hover .ssm-row:nth-child(3) {
    background: var(--brand-tint);
    color: var(--brand);
}

/* AI Notes Mockup */
.ssm-notes{padding:14px 16px;display:flex;flex-direction:column;gap:7px;}
.ssm-notes-h{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;font-weight:700;color:var(--ink);border-bottom:1px solid var(--line-2);padding-bottom:6px;margin-bottom:2px;}
.ssm-notes-jump{font-family:var(--font-mono);font-size:9.5px;font-weight:600;color:var(--brand);background:var(--brand-tint);border:1px solid rgba(35,71,232,0.15);border-radius:999px;padding:1px 7px;transition:background 0.25s ease, color 0.25s ease, transform 0.25s ease;}
.ssm-notes-li{display:flex;gap:6px;font-size:11px;color:var(--ink-2);line-height:1.45;}
.ssm-notes-li::before{content:"•";color:var(--brand);font-weight:700;}
.ssm-notes-code{background:var(--paper-2);border:1px solid var(--line-2);border-radius:6px;padding:6px 10px;font-family:var(--font-mono);font-size:10px;color:var(--ink);margin-top:4px;}
.ssm-code-keyword{color:#d946ef;font-weight:600;}
.ssm-code-string{color:#059669;}

/* Hover Action: Notes card highlights and scales its seek jump button */
.feature-card:hover .ssm-notes-jump {
    background: var(--brand);
    color: #fff;
    transform: scale(1.08);
}

/* Real Screenshot crop Mockup */
.ssm-screen{position:relative;width:100%;height:115px;background:#0B1018;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;padding:10px;}
.ssm-screen-code{font-family:var(--font-mono);font-size:9px;color:#7c8ba1;line-height:1.4;}
.ssm-screen-code span{color:#f43f5e;}
.ssm-screen-code b{color:#3b82f6;font-weight:normal;}
.ssm-marquee{position:absolute;top:15%;left:15%;width:70%;height:70%;border:1.5px dashed var(--brand);background:rgba(35,71,232,0.08);box-shadow:0 0 0 999px rgba(0,0,0,0.45);pointer-events:none;}
.ssm-handle{position:absolute;width:5px;height:5px;background:#fff;border:1px solid var(--brand);border-radius:50%;}
.ssm-handle.tl{top:-3px;left:-3px;}
.ssm-handle.tr{top:-3px;right:-3px;}
.ssm-handle.bl{bottom:-3px;left:-3px;}
.ssm-handle.br{bottom:-3px;right:-3px;}
.ssm-screen-btn{position:absolute;background:rgba(0,0,0,0.75);border:none;color:#fff;padding:3px 5px;border-radius:4px;font-size:8px;display:flex;align-items:center;justify-content:center;gap:3px;}
.ssm-screen-del{top:6px;right:6px;color:#f87171;}
.ssm-screen-ts{bottom:6px;left:6px;font-family:var(--font-mono);font-weight:600;}
.ssm-screen-crop{bottom:6px;right:6px;color:var(--brand-2);}
.ssm-crop-bar{display:flex;gap:6px;background:rgba(11,16,24,0.9);border:1px solid rgba(255,255,255,0.1);border-radius:12px;padding:3px 8px;font-size:8px;position:absolute;bottom:8px;left:50%;transform:translateX(-50%);z-index:10;color:#fff;box-shadow:0 4px 10px rgba(0,0,0,0.3);transition:background 0.25s, transform 0.25s;}
.ssm-crop-btn{display:flex;align-items:center;gap:3px;font-weight:600;transition:transform 0.2s;}
.ssm-crop-btn.cancel{color:#f87171;}
.ssm-crop-btn.ok{color:#3b82f6;}
.ssm-crop-divider{width:1px;background:rgba(255,255,255,0.15);}

/* Hover Action: Screenshot card lights up and expands Crop buttons */
.feature-card:hover .ssm-crop-bar {
    background: rgba(11, 16, 24, 0.95);
    box-shadow: 0 0 10px rgba(35, 71, 232, 0.3);
}
.feature-card:hover .ssm-crop-btn.ok {
    transform: scale(1.05);
}

/* AI Engine Provider Mockup */
.ssm-engine{padding:11px 13px;display:flex;flex-direction:column;gap:6px;}
.ssm-engine-row{display:flex;align-items:flex-start;gap:8px;border:1px solid var(--line-2);border-radius:8px;padding:6px 9px;background:var(--paper-2);}
.ssm-engine-row.active{border-color:rgba(35,71,232,0.3);background:var(--brand-tint);}
.ssm-radio{width:11px;height:11px;border:1px solid var(--ink-3);border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:2px;flex-shrink:0;}
.ssm-engine-row.active .ssm-radio{border-color:var(--brand);}
.ssm-radio-dot{width:5px;height:5px;background:var(--brand);border-radius:50%;}
.ssm-engine-info{display:flex;flex-direction:column;gap:1px;}
.ssm-engine-title{font-size:10.5px;font-weight:700;color:var(--ink);line-height:1.2;}
.ssm-engine-desc{font-size:8.5px;color:var(--ink-2);line-height:1.2;}
.ssm-engine-progress{width:100%;background:var(--line);height:4px;border-radius:2px;overflow:hidden;margin-top:4px;}
.ssm-engine-progress-val{width:65%;height:100%;background:var(--emerald);border-radius:2px;transition:width 1s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;}
.ssm-engine-lbl{display:flex;justify-content:space-between;font-family:var(--font-mono);font-size:8px;color:var(--ink-3);margin-top:2px;}

/* Hover Action: AI engines mockup dynamically finishes model download progress on hover */
@keyframes progressShimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}
.feature-card:hover .ssm-engine-progress-val {
    width: 95%;
    background: linear-gradient(90deg, var(--emerald) 0%, #34d399 50%, var(--emerald) 100%);
    background-size: 200px 100%;
    animation: progressShimmer 1.5s infinite linear;
}

.ssm-chat{padding:12px;display:flex;flex-direction:column;gap:8px;}
.ssm-bub{max-width:85%;padding:7px 11px;border-radius:11px;font-size:11.5px;line-height:1.45;}
.ssm-me{align-self:flex-end;background:var(--brand);color:#fff;border-bottom-right-radius:4px;}
.ssm-ai{align-self:flex-start;background:var(--paper-2);color:var(--ink-2);border:1px solid var(--line-2);border-bottom-left-radius:4px;}
.ssm-ask{display:flex;align-items:center;gap:8px;margin:0 12px 12px;border:1px solid var(--line);border-radius:9px;padding:7px 10px;font-size:11.5px;color:var(--ink-3);transition:border-color 0.25s, color 0.25s, box-shadow 0.25s;}
.ssm-send{margin-left:auto;width:20px;height:20px;border-radius:6px;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:9.5px;}

/* Hover Action: Chat mockup highlights the study ask box */
.feature-card:hover .ssm-ask {
    border-color: var(--brand);
    color: var(--ink);
    box-shadow: 0 0 6px rgba(35, 71, 232, 0.15);
}

.ssm-tree{padding:12px 15px;}
.ssm-trow{display:flex;align-items:center;gap:8px;padding:4px 0;color:var(--ink-2);}
.ssm-trow i{color:var(--brand);font-size:12px;width:14px;text-align:center;}
.ssm-i1{padding-left:16px;}
.ssm-i2{padding-left:32px;color:var(--ink-3);}
.ssm-off{display:inline-flex;align-items:center;gap:6px;margin-top:9px;font-family:var(--font-mono);font-size:9.5px;font-weight:600;color:var(--emerald);background:rgba(15,164,106,.12);border-radius:999px;padding:3.5px 10px;}

/* Hover Action: Local storage lock shakes and highlights */
@keyframes lockShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}
.feature-card:hover .ssm-off i {
    animation: lockShake 0.4s ease-in-out 2;
    color: var(--brand);
}

.ssm-lib-h{display:flex;align-items:center;gap:7px;padding:8px 11px;border-bottom:1px solid var(--line-2);font-weight:700;color:var(--brand);font-size:12px;}
.ssm-search{margin:8px 11px;border:1px solid var(--line);border-radius:8px;padding:5px 9px;font-size:10.5px;color:var(--ink-3);display:flex;align-items:center;gap:7px;}
.ssm-li{display:flex;align-items:center;gap:8px;padding:5px 11px;font-size:11px;color:var(--ink-2);}
.ssm-li.ssm-on{background:var(--brand-tint);color:var(--ink);}
.ssm-thumb{width:24px;height:16px;border-radius:4px;background:linear-gradient(135deg,var(--brand-2),var(--brand));flex:0 0 24px;}

/* =====================================================================
   Hero App-Window Mockup
   ===================================================================== */

/* Outer window chrome */
.hero-mockup {
  width: 100%;
  max-width: 700px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11,16,24,.06);
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  user-select: none;
}

/* macOS-style title bar */
.hm-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #F0F2F5;
  border-bottom: 1px solid var(--line);
}
.hm-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.hm-red    { background: #FF5F57; }
.hm-yellow { background: #FFBD2E; }
.hm-green  { background: #28CA41; }
.hm-title-text {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .01em;
  margin-right: 40px; /* offset for dots */
}

/* 3-column body */
.hm-body {
  display: grid;
  grid-template-columns: 180px 1fr 190px;
  height: 480px;
  overflow: hidden;
}

/* ── Sidebar ── */
.hm-sidebar {
  border-right: 1px solid var(--line);
  background: #F7F9FB;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hm-sb-top {
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hm-sb-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hm-new-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: default;
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.hm-video-list {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hm-vitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-2);
  transition: background .15s;
}
.hm-vitem-active {
  background: var(--brand-tint);
}
.hm-vthumb {
  width: 32px;
  height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 8px;
}
.hm-vmeta { min-width: 0; }
.hm-vtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-bottom: 2px;
}
.hm-vitem-active .hm-vtitle { color: var(--brand); }
.hm-vchan {
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Center Panel ── */
.hm-center {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  position: relative;
}
.hm-player {
  border-bottom: 1px solid var(--line-2);
  flex-shrink: 0;
}
.hm-player-thumb {
  height: 120px;
  background: linear-gradient(160deg, #0f1a2e 0%, #1a2a4a 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hm-play-btn {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  padding-left: 2px;
}
.hm-player-title {
  position: absolute;
  bottom: 7px;
  left: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-player-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  background: #fafbfc;
}
.hm-ptime {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.hm-progress {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.hm-progress-fill {
  width: 49%;
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
}
.hm-screenshot-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 7px auto;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: default;
  width: fit-content;
}

/* Tabs */
.hm-tabs {
  display: flex;
  border-bottom: 1px solid var(--line-2);
  padding: 0 10px;
  gap: 2px;
  flex-shrink: 0;
}
.hm-tab {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 6px 10px 5px;
  border-bottom: 2px solid transparent;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hm-tab-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 700;
}
.hm-tab-dot {
  width: 6px; height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  display: inline-block;
}

/* Transcript */
.hm-transcript {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}
.hm-tr-line {
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  align-items: flex-start;
}
.hm-tr-active {
  background: var(--brand-tint);
  border-left: 2px solid var(--brand);
}
.hm-tr-ts {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 5px;
  padding: 1px 5px;
  flex-shrink: 0;
  margin-top: 1px;
}
.hm-tr-active .hm-tr-ts { background: var(--brand); color: #fff; }
.hm-tr-text {
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.5;
}
.hm-tr-text em { font-style: normal; font-weight: 700; color: var(--ink); }

/* ── Chapters Panel ── */
.hm-chapters {
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hm-ch-tabs {
  display: flex;
  border-bottom: 1px solid var(--line-2);
  padding: 0 8px;
  flex-shrink: 0;
}
.hm-ch-tab {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 7px 8px 6px;
  border-bottom: 2px solid transparent;
  cursor: default;
  white-space: nowrap;
}
.hm-ch-tab-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 700;
}
.hm-ch-list {
  flex: 1;
  overflow: hidden;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hm-ch-group { display: flex; flex-direction: column; }
.hm-ch-title {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  padding: 6px 10px 3px;
}
.hm-ch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  gap: 6px;
}
.hm-ch-item-active {
  background: var(--brand-tint);
  border-left: 2px solid var(--brand);
}
.hm-ch-label {
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.hm-ch-item-active .hm-ch-label { color: var(--brand); font-weight: 600; }
.hm-ch-ts {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.hm-ch-item-active .hm-ch-ts { color: var(--brand); }

/* In-mockup toast notification stack */
.hm-toasts {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  z-index: 10;
}
.hm-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 11px;
  box-shadow: 0 4px 16px rgba(11,16,24,.12), 0 1px 4px rgba(11,16,24,.06);
  white-space: nowrap;
  animation: toastSlide .5s cubic-bezier(.16,1,.3,1) both;
}
.hm-toast:nth-child(2) { animation-delay: .15s; }
.hm-toast:nth-child(3) { animation-delay: .3s; }
@keyframes toastSlide {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hm-toast-icon {
  font-size: 13px;
  flex-shrink: 0;
}
.hm-toast-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

/* ── Info Tab Panel ── */
.hm-info-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  overflow: hidden;
}
.hm-info-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line-2);
  justify-content: space-between;
}
.hm-info-row:last-child { border-bottom: none; }
.hm-info-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  width: 62px;
}
.hm-info-val {
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hm-info-mono { font-family: var(--font-mono); font-size: 10px; }
.hm-info-url { color: var(--brand); }

/* ── Summary Panel ── */
.hm-summary-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 10px;
  overflow: hidden;
}
.hm-summary-text {
  font-size: 10px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
.hm-summary-text strong { color: var(--ink); font-weight: 700; }
.hm-summary-text em { font-style: normal; font-weight: 600; color: var(--brand); }
.hm-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.hm-summary-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid rgba(35,71,232,0.15);
  border-radius: 999px;
  padding: 2px 8px;
}

/* ── AI Notes Panel ── */
.hm-ainotes {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 4px 0;
}
.hm-ainotes-section {
  padding: 9px 12px 10px;
  border-bottom: 1px solid var(--line-2);
}
.hm-ainotes-section:last-child { border-bottom: none; }
.hm-ainotes-heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--brand);
  margin-bottom: 7px;
}
.hm-ainotes-li {
  position: relative;
  padding-left: 13px;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 5px;
}
.hm-ainotes-li:last-child { margin-bottom: 0; }
.hm-ainotes-li::before { content: "•"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }
.hm-ainotes-li em { font-style: normal; font-weight: 700; color: var(--ink); }

/* ================================================================
   INTERACTIVE APP DEMO
   ================================================================ */

/* Section wrapper */
.demo-section {
  background: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) 2rem;
}
.demo-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
.demo-header {
  text-align: center;
  margin-bottom: 3rem;
}
.demo-eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 1rem;
}
.demo-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 .75rem;
}
.demo-sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  margin: 0;
}
.demo-disclaimer {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}

/* App chrome */
.app-demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11,16,24,.06);
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  user-select: none;
  position: relative;
}

/* Title bar */
.ad-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #F0F2F5;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.ad-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.ad-red    { background: #FF5F57; }
.ad-yellow { background: #FFBD2E; }
.ad-green  { background: #28CA41; }
.ad-title-text {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: .01em;
  margin-right: 36px;
}

/* 4-column body: rail | sidebar | center | right */
.ad-body {
  display: grid;
  grid-template-columns: 44px 200px 1fr 1fr;
  height: 560px;
  overflow: hidden;
  position: relative;
}

/* Config Overlay */
.ad-config-overlay {
  position: absolute;
  top: 0; left: 44px; right: 0; bottom: 0;
  background: #f5f6fa;
  display: flex;
  flex-direction: column;
  z-index: 30;
  overflow-y: auto;
  animation: cfgSlideIn .2s cubic-bezier(.16,1,.3,1);
}
.ad-config-overlay.hidden, #cfgOpenaiModels.hidden, #cfgLocalModels.hidden { display: none; }
@keyframes cfgSlideIn { from { opacity:0; transform:translateX(10px); } to { opacity:1; transform:translateX(0); } }
.ad-config-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--card); flex-shrink: 0;
}
.ad-config-back {
  width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--paper-2);
  color: var(--ink-2); font-size: 11px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.ad-config-back:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.ad-config-title { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.ad-config-subtitle { font-size: 10px; color: var(--ink-3); margin-left: auto; }
.ad-config-body { padding: 18px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.ad-config-section-label {
  font-size: 9px; font-weight: 800; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 8px;
}
.ad-provider-row { display: flex; gap: 10px; }
.ad-provider-card {
  flex: 1; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 12px;
  background: var(--card); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  display: flex; flex-direction: column; gap: 5px; position: relative;
}
.ad-provider-card:hover { border-color: rgba(35,71,232,.4); }
.ad-provider-card.selected { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 3px rgba(35,71,232,.1); }
.ad-provider-card.selected::after {
  content: '';
  position: absolute; top: 10px; right: 10px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/10px;
}
.ad-provider-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; margin-bottom: 2px; }
.ad-provider-icon.openai { background: #000; color: #fff; }
.ad-provider-icon.local { background: linear-gradient(135deg,#7c3aed,#a855f7); color: #fff; }
.ad-provider-name { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.ad-provider-desc { font-size: 9.5px; color: var(--ink-3); line-height: 1.4; }
.ad-model-grid { display: flex; flex-direction: column; gap: 6px; }
.ad-model-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--card);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.ad-model-opt:hover { border-color: rgba(35,71,232,.4); background: var(--brand-tint); }
.ad-model-opt.selected { border-color: var(--brand); background: var(--brand-tint); }
.ad-model-radio { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; transition: border-color .15s, box-shadow .15s; }
.ad-model-opt.selected .ad-model-radio { border-color: var(--brand); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px var(--brand); }
.ad-model-info { flex: 1; }
.ad-model-name { font-size: 11px; font-weight: 600; color: var(--ink); }
.ad-model-meta { font-size: 9.5px; color: var(--ink-3); margin-top: 1px; }
.ad-model-badge { font-size: 8.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; flex-shrink: 0; }
.ad-model-badge.fast { background: #dcfce7; color: #16a34a; }
.ad-model-badge.smart { background: #ede9fe; color: #7c3aed; }
.ad-model-badge.balanced { background: #fef3c7; color: #d97706; }
.ad-config-save {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border: none; border-radius: 10px;
  background: var(--gradient-brand); color: #fff;
  font-size: 11.5px; font-weight: 700; cursor: pointer;
  font-family: var(--font-body); box-shadow: var(--shadow-brand);
  transition: transform .2s, box-shadow .2s;
}
.ad-config-save:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(35,71,232,.5); }
.ad-config-saved-toast { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: #16a34a; font-weight: 600; margin-left: 10px; opacity: 0; transition: opacity .3s; }
.ad-config-saved-toast.show { opacity: 1; }

/* ── Mini Rail ── */
.ad-rail {
  background: #EAECF0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 4px;
}
.ad-rail-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, transform .15s;
}
.ad-rail-btn:hover { background: rgba(35,71,232,.1); color: var(--brand); transform: scale(1.08); }
.ad-rail-btn.active { background: var(--brand); color: #fff; box-shadow: 0 4px 10px rgba(35,71,232,.3); }
.ad-rail-spacer { flex: 1; }

/* ── Left Sidebar ── */
.ad-sidebar {
  border-right: 1px solid var(--line);
  background: #F7F9FB;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.ad-sidebar-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.ad-sidebar-view.hidden { display: none; }
.ad-sb-header {
  padding: 11px 11px 8px;
  border-bottom: 1px solid var(--line-2);
  flex-shrink: 0;
}
.ad-sb-logo {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ad-sb-new-wrap {
  padding: 8px 10px 6px;
  flex-shrink: 0;
}
.ad-sb-new-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.ad-sb-new-btn:hover { background: var(--brand-tint); color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.ad-sb-section-label {
  padding: 6px 11px 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-shrink: 0;
}
.ad-video-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.ad-vitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  transition: background .15s;
}
.ad-vitem:hover { background: var(--brand-tint); }
.ad-vitem.ad-vactive { background: var(--brand-tint); border-left: 2px solid var(--brand); }
.ad-vthumb {
  width: 32px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 8px;
}
.ad-vmeta { min-width: 0; }
.ad-vtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-bottom: 1px;
}
.ad-vactive .ad-vtitle { color: var(--brand); }
.ad-vchan {
  font-size: 9.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Settings sidebar */
.ad-settings-list { padding: 10px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.ad-settings-group { display: flex; flex-direction: column; gap: 5px; }
.ad-settings-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.ad-settings-radio { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); cursor: pointer; padding: 5px 8px; border-radius: 7px; border: 1px solid var(--line-2); transition: background .15s, border-color .15s; }
.ad-settings-radio:hover { background: var(--brand-tint); border-color: rgba(35,71,232,.2); }
.ad-settings-radio.active-radio { background: var(--brand-tint); border-color: rgba(35,71,232,.3); color: var(--brand); font-weight: 600; }
.ad-settings-select { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; font-size: 11px; font-family: var(--font-body); color: var(--ink); background: var(--card); cursor: pointer; }
.ad-settings-value { font-size: 11.5px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }

/* Chat history sidebar */
.ad-sb-search { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-bottom: 1px solid var(--line-2); font-size: 11px; color: var(--ink-3); }
.ad-sb-search input { border: none; background: transparent; outline: none; font-size: 11px; font-family: var(--font-body); color: var(--ink); width: 100%; }
.ad-chat-history-list { flex: 1; overflow-y: auto; }
.ad-chat-hist-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .15s; font-size: 11px; color: var(--ink-2); }
.ad-chat-hist-item:hover { background: var(--brand-tint); }
.ad-chat-hist-item.active-chat-item { background: var(--brand-tint); border-left: 2px solid var(--brand); }
.ad-chat-hist-item i { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.ad-chat-hist-title { font-weight: 600; color: var(--ink); font-size: 11px; margin-bottom: 2px; }
.ad-chat-hist-preview { font-size: 10px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }

/* ── Center ── */
.ad-center {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  position: relative;
}

/* (empty state removed) */
.ad-empty-cta {
  display: none;
}

/* Add video overlay */
.ad-add-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,16,24,.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  animation: fadeIn .2s ease;
}
.ad-add-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ad-add-modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  width: calc(100% - 32px);
  max-width: 340px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUp .25s cubic-bezier(.16,1,.3,1);
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ad-add-modal-title { font-size: 14px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.ad-add-input { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 11.5px; font-family: var(--font-mono); color: var(--ink); width: 100%; outline: none; transition: border-color .2s; }
.ad-add-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(35,71,232,.12); }
.ad-add-btns { display: flex; gap: 8px; }
.ad-add-cancel { flex: 1; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font-body); transition: background .15s; }
.ad-add-cancel:hover { background: var(--line); }
.ad-add-confirm { flex: 2; padding: 7px 12px; border: none; border-radius: 8px; background: var(--gradient-brand); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; font-family: var(--font-body); box-shadow: var(--shadow-brand); transition: transform .2s, box-shadow .2s; }
.ad-add-confirm:hover { transform: translateY(-1px); }
.ad-add-note { font-size: 10px; color: var(--ink-3); text-align: center; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* Video content — always visible, fills center column */
.ad-video-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}
.ad-video-content.hidden { display: none; }

/* Player takes top half */
.ad-player { flex: 0 0 50%; display: flex; flex-direction: column; min-height: 0; }
/* Tabs + panels section takes bottom half */
.ad-tabs-panels { flex: 0 0 50%; display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-top: 1px solid var(--line-2); }
.ad-player-thumb {
  flex: 1;
  background: linear-gradient(160deg, #0d1b33 0%, #152644 50%, #0d1e3a 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  min-height: 0;
}
/* Decorative waveform bars inside the thumbnail */
.ad-player-thumb::before {
  content: '';
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  height: 28px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.04) 0px, rgba(255,255,255,.04) 3px,
    transparent 3px, transparent 6px
  );
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 28'%3E%3Cpath d='M0 14 Q5 4 10 14 Q15 24 20 14 Q25 4 30 14 Q35 24 40 14 Q45 4 50 14 Q55 24 60 14 Q65 4 70 14 Q75 24 80 14 Q85 4 90 14 Q95 24 100 14 Q105 4 110 14 Q115 24 120 14 Q125 4 130 14 Q135 24 140 14 Q155 24 160 14 Q165 4 170 14 Q175 24 180 14 Q185 4 190 14 Q195 24 200 14' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat center/cover;
  pointer-events: none;
  opacity: .5;
}
.ad-play-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; padding-left: 2px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.ad-play-btn:hover { background: rgba(255,255,255,.3); transform: scale(1.1); }
.ad-player-title-bar {
  position: absolute; bottom: 7px; left: 8px; right: 8px;
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ad-player-controls {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 10px; background: #fafbfc; border-bottom: 1px solid var(--line-2);
}
.ad-ptime { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-3); flex-shrink: 0; }
.ad-progress-bar {
  flex: 1; height: 6px; background: var(--line); border-radius: 3px;
  position: relative; cursor: pointer; overflow: visible;
}
.ad-progress-fill { height: 100%; background: var(--brand); border-radius: 3px; pointer-events: none; transition: width .15s; }
.ad-progress-thumb {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(35,71,232,.4);
  pointer-events: none; transition: left .15s;
}
.ad-screenshot-btn-gradient {
  width: 100%; max-width: 240px; padding: 7.5px 14px;
  border: none; border-radius: 9px;
  background: var(--gradient-brand); color: #fff;
  font-size: 11.5px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-body); box-shadow: var(--shadow-brand);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.ad-screenshot-btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(35,71,232,.35);
  opacity: 0.95;
}
.ad-screenshot-btn-gradient:active {
  transform: translateY(1px);
}

/* Center tabs */
.ad-center-tabs {
  display: flex; border-bottom: 1px solid var(--line-2);
  padding: 0 10px; gap: 2px; flex-shrink: 0;
}
.ad-ctab {
  font-size: 11px; font-weight: 500; color: var(--ink-3);
  padding: 7px 10px 6px; border-bottom: 2px solid transparent;
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-body);
  transition: color .15s;
}
.ad-ctab:hover { color: var(--ink); }
.ad-ctab.active { color: var(--brand); border-bottom: 2px solid var(--brand); font-weight: 700; }
.ad-tab-live { width: 6px; height: 6px; background: var(--emerald); border-radius: 50%; display: inline-block; }

/* Panels */
.ad-panel {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  min-height: 0;
}
.ad-panel.hidden { display: none; }
.ad-summary-text { font-size: 11.5px; color: var(--ink-2); line-height: 1.6; margin: 0 0 10px; }
.ad-summary-text strong { color: var(--ink); font-weight: 700; }
.ad-summary-text em { font-style: normal; font-weight: 600; color: var(--brand); }
.ad-summary-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ad-summary-tag {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  color: var(--brand); background: var(--brand-tint);
  border: 1px solid rgba(35,71,232,.15); border-radius: 999px; padding: 2px 8px;
}

/* Transcript */
.ad-transcript-list { display: flex; flex-direction: column; gap: 0; }
.ad-tr-line {
  display: flex; gap: 8px; padding: 6px 4px; align-items: flex-start;
  border-radius: 7px; cursor: pointer;
  transition: background .15s;
}
.ad-tr-line:hover { background: var(--paper-2); }
.ad-tr-line.ad-tr-active { background: var(--brand-tint); }
.ad-tr-ts {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  color: var(--brand); background: var(--brand-tint);
  border-radius: 5px; padding: 1px 5px; flex-shrink: 0; margin-top: 2px;
}
.ad-tr-active .ad-tr-ts { background: var(--brand); color: #fff; }
.ad-tr-text { font-size: 11px; color: var(--ink-2); line-height: 1.5; }

/* Info */
.ad-info-list { display: flex; flex-direction: column; }
.ad-info-row {
  display: flex; align-items: flex-start; gap: 6px; padding: 7px 4px;
  border-bottom: 1px solid var(--line-2); justify-content: space-between;
}
.ad-info-row:last-child { border-bottom: none; }
.ad-info-label { font-size: 10px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; width: 60px; }
.ad-info-val { font-size: 11px; color: var(--ink); text-align: right; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-info-val.mono { font-family: var(--font-mono); font-size: 10px; }
.ad-info-val.brand { color: var(--brand); }

/* Screenshot toast */
.ad-screenshot-toast {
  position: absolute; bottom: 12px; right: 12px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 13px; box-shadow: 0 8px 24px rgba(11,16,24,.14);
  font-size: 11.5px; font-weight: 600; color: var(--ink);
  z-index: 15; white-space: nowrap;
  animation: toastIn .35s cubic-bezier(.16,1,.3,1);
}
.ad-screenshot-toast.hidden { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ── Right Panel ── */
.ad-right {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.ad-right-tabs {
  display: flex; border-bottom: 1px solid var(--line-2); padding: 0 8px; flex-shrink: 0;
}
.ad-rtab {
  font-size: 10.5px; font-weight: 500; color: var(--ink-3);
  padding: 8px 8px 7px; border-bottom: 2px solid transparent;
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap;
  transition: color .15s;
}
.ad-rtab:hover { color: var(--ink); }
.ad-rtab.active { color: var(--brand); border-bottom: 2px solid var(--brand); font-weight: 700; }
.ad-rpanel {
  flex: 1; overflow-y: auto; min-height: 0;
}
.ad-rpanel.hidden { display: none; }

/* Chapters */
.ad-chapters-list { display: flex; flex-direction: column; padding: 4px 0; }
.ad-chapter-item {
  display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px;
  cursor: pointer; border-bottom: 1px solid var(--line-2);
  transition: background .15s;
}
.ad-chapter-item:hover { background: var(--brand-tint); }
.ad-chapter-item.ad-ch-active { background: var(--brand-tint); border-left: 2px solid var(--brand); }
.ad-ch-ts {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  color: var(--brand); background: var(--brand-tint); border-radius: 5px;
  padding: 1px 5px; flex-shrink: 0; margin-top: 2px;
}
.ad-chapter-item.ad-ch-active .ad-ch-ts { background: var(--brand); color: #fff; }
.ad-ch-label { font-size: 11px; color: var(--ink-2); line-height: 1.4; flex: 1; }
.ad-chapter-item.ad-ch-active .ad-ch-label { color: var(--brand); font-weight: 600; }

/* AI Notes */
.ad-notes-content { padding: 4px 0; }
.ad-notes-section { padding: 10px 12px 11px; border-bottom: 1px solid var(--line-2); }
.ad-notes-section:last-child { border-bottom: none; }
.ad-notes-heading {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--brand); margin-bottom: 7px;
  display: flex; align-items: center; justify-content: space-between;
}
.ad-notes-ts {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  background: var(--brand-tint); color: var(--brand);
  border: 1px solid rgba(35,71,232,.15); border-radius: 999px; padding: 1px 7px;
  cursor: pointer; transition: background .15s;
}
.ad-notes-ts:hover { background: var(--brand); color: #fff; }
.ad-notes-li {
  position: relative; padding-left: 13px; font-size: 11px;
  color: var(--ink-2); line-height: 1.5; margin-bottom: 5px;
}
.ad-notes-li:last-child { margin-bottom: 0; }
.ad-notes-li::before { content: "•"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.ad-notes-li em { font-style: normal; font-weight: 700; color: var(--ink); }
.ad-notes-screenshot {
  border-radius: 8px; overflow: hidden; margin-top: 8px;
  background: #0B1018; padding: 8px 10px;
  font-family: var(--font-mono); font-size: 9.5px; color: #7c8ba1;
  border: 1px solid rgba(255,255,255,.05);
  line-height: 1.45;
  position: relative;
}
.ad-screenshot-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s cubic-bezier(.16,1,.3,1);
  z-index: 10;
}
.ad-screenshot-delete:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  transform: scale(1.08);
}
.ad-screenshot-delete i {
  font-size: 10px;
}
.ad-notes-screenshot span { color: #f43f5e; }
.ad-notes-screenshot b { color: #3b82f6; font-weight: normal; }
.ad-notes-screenshot.just-added {
  animation: screenshotGlow 2s cubic-bezier(.16, 1, .3, 1);
}
@keyframes screenshotGlow {
  0% {
    box-shadow: 0 0 0 3px rgba(16,185,129, 0.4);
    border-color: rgba(16,185,129, 0.8);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0px rgba(16,185,129, 0);
    border-color: rgba(255,255,255,.05);
    transform: scale(1);
  }
}
.ad-screenshot-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--emerald); color: #fff;
  border-radius: 5px; font-size: 9px; font-weight: 700; padding: 2px 7px; margin-top: 6px;
}

/* Chat right panel */
.ad-chat-rpanel { display: flex; flex-direction: column; }
.ad-chat-rpanel.hidden { display: none; }
.ad-chat-messages {
  flex: 1; overflow-y: auto; padding: 10px; display: flex;
  flex-direction: column; gap: 8px; min-height: 0;
}
.ad-chat-bub {
  max-width: 88%; padding: 8px 11px; border-radius: 11px;
  font-size: 11.5px; line-height: 1.5;
}
.ad-chat-me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.ad-chat-ai { align-self: flex-start; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.ad-chat-ts { font-family: var(--font-mono); font-size: 9px; color: var(--brand-2); font-weight: 600; }
.ad-chat-thinking { font-style: italic; color: var(--ink-3); font-size: 11px; display: flex; align-items: center; gap: 5px; }
.ad-chat-thinking-dots span {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-3); animation: dotBounce 1.2s ease-in-out infinite;
}
.ad-chat-thinking-dots span:nth-child(2) { animation-delay: .2s; }
.ad-chat-thinking-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotBounce { 0%, 80%, 100% { transform: scale(0.8); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
.ad-chat-input-row {
  display: flex; align-items: center; gap: 7px; padding: 8px 10px;
  border-top: 1px solid var(--line-2); flex-shrink: 0;
}
.ad-chat-input {
  flex: 1; border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 10px; font-size: 11.5px; font-family: var(--font-body);
  color: var(--ink); outline: none; background: var(--paper-2);
  transition: border-color .2s;
}
.ad-chat-input:focus { border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 3px rgba(35,71,232,.1); }
.ad-chat-send {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand); border: none; color: #fff; font-size: 12px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s, transform .15s;
  box-shadow: 0 4px 10px rgba(35,71,232,.3);
}
.ad-chat-send:hover { background: var(--brand-ink); transform: scale(1.05); }

/* Processing overlay animation */
.ad-processing-overlay {
  position: absolute; inset: 0; background: rgba(247,249,251,.9);
  backdrop-filter: blur(4px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; z-index: 10;
  animation: fadeIn .25s;
}
.ad-processing-overlay.hidden { display: none; }
.ad-proc-spinner {
  width: 36px; height: 36px; border: 3px solid var(--line);
  border-top-color: var(--brand); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ad-proc-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ad-proc-steps { display: flex; flex-direction: column; gap: 4px; }
.ad-proc-step { font-size: 10.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.ad-proc-step.done { color: var(--emerald); }
.ad-proc-step.done i { color: var(--emerald); }
.ad-proc-step.active { color: var(--brand); font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .ad-body { grid-template-columns: 36px 160px 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Hero Mockup Mobile Overrides */
  .hm-body {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hm-sidebar, .hm-chapters {
    display: none;
  }
  .hm-center {
    border-right: none;
  }
  
  /* Interactive Mockup Mobile Stack Layout */
  .ad-body {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: unset;
  }
  .ad-rail, .ad-sidebar {
    display: none;
  }
  .ad-center {
    border-right: none;
    border-bottom: 1px solid var(--line-2);
    width: 100%;
    height: auto;
  }
  .ad-player {
    flex: none;
    height: 250px;
  }
  .ad-tabs-panels {
    flex: none;
    height: 180px;
  }
  .ad-right {
    width: 100%;
    height: 380px;
    border-top: 1px solid var(--line-2);
  }
  .ad-rpanel {
    height: 330px;
  }
  .ad-config-overlay {
    left: 0;
  }
}
