/* ==========================================
   DRILLBIT GUIDE ANIMATIONS v3
   EasyMark: reading your feedback (classroom/student)
   Copied from drillbit-guides css/animations/classroom/student/easymark.css
   + watch-first tour chrome at the end.
   ========================================== */

/* === CONTAINER === */
.guide-anim{border:1px solid #e2e2e0;border-radius:16px;overflow:hidden;margin:28px 0 32px;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,0.04)}
.ga-slides{position:relative}
.ga-slide{display:none}
.ga-slide.active{display:block}

.guide-anim{position:relative;z-index:0;overflow:hidden;border-radius:14px;margin-bottom:24px;border:1px solid #e5e5e0;background:#fff}

/* === VIEWPORT (animation stage) === */
.ga-viewport{position:relative;height:340px;overflow:hidden;background:#eceae6}

/* === INFO === */
.ga-info{padding:18px 22px 14px;font-family:var(--db-font,system-ui,sans-serif)}
.ga-step-badge{display:inline-block;font-size:10px;font-weight:700;color:#1967D2;background:#E8F0FE;padding:4px 12px;border-radius:20px;margin-bottom:8px;text-transform:uppercase;letter-spacing:.8px}
.ga-info h3{font-size:16px;font-weight:600;margin-bottom:4px;color:#1a1a1a;text-align:left;hyphens:manual;-webkit-hyphens:manual}
.ga-info p{font-size:13px;color:#6b6b6b;line-height:1.55;margin:0;text-align:left;hyphens:manual;-webkit-hyphens:manual;word-spacing:normal}

/* === CONTROLS === */
.ga-controls{display:none}
.ga-viewport{cursor:pointer;position:relative}
.ga-overlay{position:absolute;inset:0;background:rgba(0,0,0,.45);z-index:200;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .25s ease}
.ga-overlay.on{opacity:1;pointer-events:auto}
.ga-overlay-btn{width:50px;height:50px;border-radius:50%;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ga-overlay-btn svg{width:22px;height:22px;color:#333;margin-left:3px}
.ga-reset-float{position:absolute;bottom:8px;right:8px;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.85);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:201;opacity:0;pointer-events:none;transition:opacity .25s ease}
.ga-reset-float.on{opacity:1;pointer-events:auto}
.ga-reset-float svg{width:13px;height:13px;color:#333}
.ga-progress{height:3px;background:#eee;border-radius:2px}
.ga-progress-bar{height:100%;background:#4285f4;transition:width .5s ease;border-radius:2px}

/* === CURSOR === */
.ga-cursor{position:absolute;width:20px;height:24px;z-index:100;pointer-events:none;opacity:0;filter:drop-shadow(1px 2px 2px rgba(0,0,0,.25))}
.ga-cursor.vis{opacity:1}

/* === SCENE: each phase lives in a .sc layer === */
.sc{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .5s ease;font-family:var(--db-font,system-ui,sans-serif)}
.sc.on{opacity:1;pointer-events:auto}

/* ---- FULL DASHBOARD SHELL (submissions scene) ---- */
.sc-dashfull{background:#fff;display:flex}
.df-side{width:115px;background:#fafafc;border-right:1px solid #eee;padding:12px 0;display:flex;flex-direction:column;gap:1px}
.df-side-logo{display:flex;align-items:center;gap:5px;padding:0 12px 14px}
.df-side-logo i{width:18px;height:18px;background:#4285f4;border-radius:5px;display:block}
.df-side-logo span{font-size:12px;font-weight:600;color:#1a1a1a}
.df-nav{padding:8px 12px;font-size:10px;color:#999;display:flex;align-items:center;gap:7px;margin-right:6px;border-radius:0 7px 7px 0}
.df-nav i{width:14px;height:14px;border-radius:4px;background:currentColor;opacity:.2;display:block}
.df-nav.act{background:#4285f4;color:#fff;font-weight:600}
.df-nav.act i{opacity:.5}
.df-body{flex:1;padding:10px 14px;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none}
.df-body::-webkit-scrollbar{display:none}
.df-top{display:flex;justify-content:flex-end;align-items:center;gap:7px;margin-bottom:8px}
.df-uname{font-size:10px;color:#888}
.df-uname b{color:#333}
.df-av{width:28px;height:28px;border-radius:50%;background:#4caf50;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.df-panel{border:1px solid #eee;border-radius:10px;padding:10px;opacity:0;transform:translateY(8px);transition:opacity .4s ease,transform .4s ease;position:relative;overflow:hidden}
.df-panel.pop{opacity:1;transform:translateY(0)}

/* Blur overlay + tooltip */
.df-blur-overlay{position:absolute;inset:0;background:rgba(255,255,255,.55);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);z-index:10;opacity:0;pointer-events:none;transition:opacity .3s ease}
.df-blur-overlay.on{opacity:1}
.df-tooltip{position:absolute;background:#fffef5;color:#333;font-size:9px;padding:8px 12px;border-radius:8px;z-index:60;opacity:0;pointer-events:none;transition:opacity .3s ease;white-space:normal;font-family:var(--db-font,system-ui,sans-serif);line-height:1.5;max-width:220px;letter-spacing:.2px;box-shadow:0 4px 20px rgba(0,0,0,.12);border:1px solid #f0e8c8}
.df-tooltip.on{opacity:1}
.df-tooltip::after{content:'';position:absolute;top:-5px;left:20px;width:10px;height:10px;background:#fffef5;transform:rotate(45deg);border-radius:2px;border-left:1px solid #f0e8c8;border-top:1px solid #f0e8c8}

/* Generic highlight lift (above blur) */
.emk-hl{box-shadow:0 0 0 3px rgba(66,133,244,.25);border-radius:4px;position:relative;z-index:15;background:#fff}

/* ---- SUBMISSIONS TABLE (ems) ---- */
.ems-row{opacity:0;transform:translateY(6px);transition:opacity .3s ease,transform .3s ease}

/* ==========================================
   EASYMARK VIEWER SCENE (emk)
   ========================================== */
.sc-emk{background:#fff;display:flex;flex-direction:column;font-family:var(--db-font,system-ui,sans-serif)}

/* Top bar */
.emk-top{display:flex;align-items:center;padding:5px 10px;border-bottom:1px solid #e3e8f0;flex-shrink:0;background:#fff}
.emk-brand{display:flex;align-items:center;gap:4px;font-size:10px;font-weight:700;color:#1a56db}
.emk-brand i{width:13px;height:13px;border-radius:4px;background:#1a56db;display:block}
.emk-topright{margin-left:auto;display:flex;align-items:center;gap:8px}
.emk-toglabel{font-size:8px;color:#555}
.emk-toggle{width:24px;height:13px;border-radius:7px;background:#1a73e8;position:relative;transition:background .35s ease}
.emk-toggle::after{content:'';position:absolute;top:2px;left:13px;width:9px;height:9px;border-radius:50%;background:#fff;transition:left .35s ease}
.emk-toggle.off{background:#c6ccd6}
.emk-toggle.off::after{left:2px}
.emk-share{color:#59647a;font-size:11px;line-height:1}
.emk-divider{width:1px;height:14px;background:#e0e4ec}

/* Meta strip */
.emk-meta{display:flex;gap:16px;font-size:7px;color:#555;padding:4px 10px;border-bottom:1px solid #eef1f6;background:#fbfcfe;flex-shrink:0}
.emk-meta b{color:#1a1a1a;font-weight:600}

/* Body */
.emk-body{display:flex;flex:1;overflow:hidden}

/* Thumbnail rail */
.emk-rail{width:34px;background:#f4f6fa;border-right:1px solid #e8ebf1;padding:5px 0;display:flex;flex-direction:column;align-items:center;gap:5px;flex-shrink:0;overflow:hidden}
.emk-thumb{width:20px;height:26px;background:#fff;border:1px solid #dfe3ea;border-radius:2px;position:relative}
.emk-thumb.act{border-color:#1a73e8;box-shadow:0 0 0 1px #1a73e8}
.emk-thumb::before{content:'';position:absolute;inset:3px 2px auto 2px;height:1px;background:#e6b9c4;box-shadow:0 3px 0 #e6b9c4,0 6px 0 #e6b9c4,0 9px 0 #e6b9c4,0 12px 0 #e6b9c4,0 15px 0 #e6b9c4}
.emk-tnum{font-size:5px;color:#8a93a3}

/* Document pane */
.emk-doc{flex:1;padding:8px 12px;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none;position:relative}
.emk-doc::-webkit-scrollbar{display:none}
.emk-title-strip{background:#e6ecfb;text-align:center;font-size:7px;color:#333;padding:3px 0;border-radius:2px;margin-bottom:8px}
.emk-h1{font-size:11px;font-weight:700;color:#1a1a1a;line-height:1.35;margin-bottom:6px}
.emk-authors{font-size:7.5px;color:#333;line-height:1.5;margin-bottom:8px}
.emk-p{font-size:7px;color:#3a3a3a;line-height:1.75;margin-bottom:7px}
.emk-p b{color:#1a1a1a}

/* The selectable passage + its states */
.emk-sel{border-radius:2px;padding:0 1px;transition:background .35s ease,box-shadow .35s ease}
.emk-sel.selecting{background:#cfe0fb}
.emk-sel.draft{background:#fdeacd;box-shadow:inset 2px 0 0 #e08b2f}
.emk-sel.comment{background:#dbe8fb;box-shadow:inset 2px 0 0 #1a73e8}

/* Anchor pin dropped on the passage */
.emk-pin{position:absolute;width:11px;height:11px;border-radius:50% 50% 50% 2px;transform:rotate(-45deg) scale(0);background:#e08b2f;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.25);transition:transform .35s cubic-bezier(.34,1.56,.64,1),background .35s ease;z-index:6}
.emk-pin.on{transform:rotate(-45deg) scale(1)}
.emk-pin.blue{background:#1a73e8}

/* Floating "Add Comment" chip */
.emk-addchip{position:absolute;background:#fff;border-radius:7px;box-shadow:0 3px 14px rgba(0,0,0,.18);padding:5px 11px;display:flex;align-items:center;gap:5px;font-size:8px;font-weight:700;color:#1a56db;z-index:22;opacity:0;transform:translateY(4px) scale(.94);transition:opacity .28s ease,transform .28s ease;pointer-events:none}
.emk-addchip.on{opacity:1;transform:translateY(0) scale(1)}
.emk-addchip.press{transform:scale(.9)}
.emk-addchip i{width:9px;height:8px;border:1.4px solid #1a56db;border-radius:2px 2px 2px 0;display:block}

/* "Select text for the copy" banner (reuse mode) */
.emk-copybar{position:absolute;top:6px;left:50%;transform:translateX(-50%) translateY(-10px);background:#1355d6;color:#fff;border-radius:18px;padding:5px 8px 5px 10px;display:flex;align-items:center;gap:6px;font-size:7.5px;font-weight:700;z-index:24;opacity:0;transition:opacity .3s ease,transform .3s ease;pointer-events:none;box-shadow:0 3px 14px rgba(19,85,214,.35)}
.emk-copybar.on{opacity:1;transform:translateX(-50%) translateY(0)}
.emk-copybar i{width:9px;height:9px;border:1.4px solid #fff;border-radius:50%;position:relative;display:block;flex-shrink:0}
.emk-copybar i::after{content:'';position:absolute;left:3px;top:3px;width:1.5px;height:1.5px;background:#fff;border-radius:50%}
.emk-copybar b{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.28);display:flex;align-items:center;justify-content:center;font-size:7px;font-weight:400;line-height:1}

/* Amber variant of the pick bar, used by Change selection */
.emk-copybar.amber{background:#b0651a;box-shadow:0 3px 14px rgba(176,101,26,.35)}

/* Card while it waits for a new passage */
.emk-card.choosing{background:#fdf3e6;border-color:#f0d6b3}
.emk-choosing{display:none;justify-content:flex-end;margin-top:4px}
.emk-card.choosing .emk-choosing{display:flex}
.emk-choosing span{background:#fbe2c2;color:#8a4f12;font-size:6px;font-weight:700;padding:2px 6px;border-radius:3px}

/* Passage waiting to receive the reused comment */
.emk-sel.armed{background:#e3ecfd;box-shadow:0 0 0 1px #9dbdf5}

/* Composer popup */
.emk-composer{position:absolute;width:190px;background:#fff;border-radius:9px;box-shadow:0 8px 30px rgba(0,0,0,.2);padding:9px;z-index:26;opacity:0;transform:translateY(6px);transition:opacity .3s ease,transform .3s ease;pointer-events:none}
.emk-composer.on{opacity:1;transform:translateY(0)}
.emk-cmp-head{display:flex;align-items:center;margin-bottom:6px}
.emk-badge{font-size:6px;font-weight:700;letter-spacing:.6px;padding:2px 6px;border-radius:3px;text-transform:uppercase}
.emk-badge.draft{background:#fdeacd;color:#a9631a}
.emk-badge.comment{background:#dbe8fb;color:#1552b0}
.emk-cmp-status{margin-left:auto;font-size:6px;color:#9aa3b2;margin-right:6px}
.emk-cmp-x{color:#b3b9c4;font-size:9px;line-height:1}
.emk-quote{font-size:6.5px;color:#6b7280;font-style:italic;line-height:1.5;padding-left:5px;border-left:2px solid #e08b2f;margin-bottom:6px}
.emk-quote.comment{border-left-color:#1a73e8}
.emk-ta{border:1.4px solid #1a73e8;border-radius:5px;padding:5px 6px;min-height:32px;font-size:6.5px;color:#1a1a1a;line-height:1.6}
.emk-ta.empty{color:#a8b0bd}
.emk-cmp-foot{display:flex;align-items:center;margin-top:6px}
.emk-chg{border:1px solid #dfe3ea;border-radius:4px;padding:3px 7px;font-size:6.5px;font-weight:600;color:#4b5563}
.emk-count{margin-left:auto;font-size:6px;color:#9aa3b2}
.emk-cmp-btns{display:flex;justify-content:flex-end;gap:7px;margin-top:7px}
.emk-btn{padding:4px 12px;border-radius:5px;font-size:7.5px;font-weight:700;transition:transform .15s ease,background .3s ease,color .3s ease;cursor:default}
.emk-btn-del{border:1px solid #f0b4b4;color:#d64545;background:#fff}
.emk-btn-save{background:#c8ccd4;color:#fff}
.emk-btn-save.ready{background:#1a56db}
.emk-btn.press{transform:scale(.9)}

/* EasyMark side panel */
.emk-panel{width:210px;border-left:1px solid #e8ebf1;background:#fff;padding:8px;flex-shrink:0;display:flex;flex-direction:column;overflow:hidden}
.emk-pnl-head{display:flex;align-items:center;gap:4px;margin-bottom:8px;flex-shrink:0}
.emk-pnl-title{font-size:9px;font-weight:700;color:#1a1a1a}
.emk-info{width:9px;height:9px;border-radius:50%;border:1px solid #9aa3b2;color:#9aa3b2;font-size:6px;display:flex;align-items:center;justify-content:center;font-style:italic;font-weight:700}
.emk-notecount{margin-left:auto;font-size:6.5px;color:#8a93a3}

/* Empty state */
.emk-empty{flex:1;display:flex;align-items:center;justify-content:center;text-align:center;font-size:6.5px;color:#a8b0bd;line-height:1.8;padding:0 10px;transition:opacity .35s ease}
.emk-empty.gone{opacity:0}

/* Note card */
.emk-card{border:1px solid #eceef2;border-radius:6px;border-left:3px solid #e08b2f;background:#fdfaf5;padding:7px;opacity:0;transform:translateY(6px);transition:opacity .4s ease,transform .4s ease,border-left-color .4s ease,background .4s ease}
.emk-card.on{opacity:1;transform:translateY(0)}
.emk-card.published{border-left-color:#1a73e8;background:#f7faff}
.emk-card.gone{opacity:0;transform:translateY(-4px)}
.emk-card-head{display:flex;align-items:center;margin-bottom:5px}
.emk-icons{margin-left:auto;display:flex;gap:5px}
.emk-ico{width:12px;height:12px;border:1px solid #dfe3ea;border-radius:3px;display:flex;align-items:center;justify-content:center;font-size:6px;color:#6b7280;background:#fff;transition:box-shadow .3s ease}
.emk-ico.press{transform:scale(.88)}
.emk-ico.act{background:#1a73e8;border-color:#1a73e8;color:#fff}
.emk-card-quote{font-size:6.5px;color:#6b7280;font-style:italic;line-height:1.5;margin-bottom:4px}
.emk-card-text{font-size:6.5px;color:#1a1a1a;line-height:1.6}
.emk-sac{display:flex;justify-content:flex-end;margin-top:6px;padding-top:5px;border-top:1px solid #f0f0f0;transition:opacity .35s ease,max-height .35s ease}
.emk-sac.gone{opacity:0;max-height:0;overflow:hidden;margin-top:0;padding-top:0;border-top:none}
.emk-sac-btn{border:1px solid #bcd0f7;border-radius:5px;padding:3px 9px;font-size:6.5px;font-weight:700;color:#1a56db;background:#fff;display:flex;align-items:center;gap:4px;transition:transform .15s ease}
.emk-sac-btn.press{transform:scale(.9)}
.emk-sac-btn::before{content:'\2713';font-size:7px}

/* Footer strip */
.emk-foot{display:flex;justify-content:space-between;font-size:6.5px;color:#4b5563;padding:3px 10px;border-top:1px solid #eef1f6;background:#e6ecfb;flex-shrink:0}
.emk-foot b{color:#1a1a1a;font-weight:600}

/* Confirm dialog */
.emk-dialog{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);width:215px;background:#fff;border-radius:9px;box-shadow:0 8px 32px rgba(0,0,0,.22);padding:13px;z-index:40;opacity:0;pointer-events:none;transition:opacity .3s ease}
.emk-dialog.on{opacity:1}
.emk-dlg-x{position:absolute;top:5px;right:9px;color:#b3b9c4;font-size:10px}
.emk-dlg-txt{font-size:8.5px;color:#1a1a1a;text-align:center;margin:5px 0 11px;line-height:1.5}
.emk-dlg-btns{display:flex;justify-content:center;gap:9px}
.emk-dbtn{padding:5px 16px;border-radius:5px;font-size:8px;font-weight:700;transition:transform .15s ease;cursor:default}
.emk-dbtn-no{border:1px solid #bcd0f7;color:#1a56db;background:#fff}
.emk-dbtn-yes{background:#1a73e8;color:#fff}
.emk-dbtn.press{transform:scale(.9)}
.emk-scrim{position:absolute;inset:0;background:rgba(120,128,140,.35);z-index:35;opacity:0;pointer-events:none;transition:opacity .3s ease}
.emk-scrim.on{opacity:1}

/* "How it Works!" hover tip on the info button */
.emk-howtip{position:absolute;background:#4a4a4a;color:#fff;font-size:6.5px;font-weight:600;padding:3px 7px;border-radius:4px;white-space:nowrap;z-index:45;opacity:0;transform:translateY(-3px);transition:opacity .25s ease,transform .25s ease;pointer-events:none}
.emk-howtip.on{opacity:1;transform:translateY(0)}

/* "About EasyMark" modal */
.emk-about{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.96);width:76%;max-height:86%;background:#fff;border-radius:9px;box-shadow:0 10px 40px rgba(0,0,0,.25);z-index:42;opacity:0;pointer-events:none;transition:opacity .3s ease,transform .3s ease;display:flex;flex-direction:column;overflow:hidden}
.emk-about.on{opacity:1;transform:translate(-50%,-50%) scale(1)}
.emk-about-head{display:flex;align-items:flex-start;padding:9px 11px 6px;flex-shrink:0}
.emk-about-title{font-size:11px;font-weight:700;color:#1a1a1a}
.emk-about-x{margin-left:auto;color:#8a93a3;font-size:9px;line-height:1}
.emk-about-body{padding:0 11px 10px;overflow:hidden;position:relative;flex:1}
.emk-about-scroll{transition:transform .9s cubic-bezier(.4,0,.2,1)}
.emk-about-intro{font-size:6.5px;color:#4b5563;line-height:1.65;padding-bottom:7px;border-bottom:1px solid #eef1f6;margin-bottom:7px}
.emk-about-h{font-size:7.5px;font-weight:700;color:#1a1a1a;margin-bottom:2px}
.emk-about-p{font-size:6.5px;color:#4b5563;line-height:1.65;margin-bottom:7px}
.emk-about-p b{color:#1a1a1a}
.emk-mini{font-size:5.5px;font-weight:700;letter-spacing:.5px;padding:1px 4px;border-radius:2px;text-transform:uppercase}
.emk-mini.d{background:#fdeacd;color:#a9631a}
.emk-mini.c{background:#dbe8fb;color:#1552b0}

/* underline styles used in the About copy */
.emk-ul-dash{border-bottom:1px dashed #e08b2f}
.emk-ul-solid{border-bottom:1px solid #1a73e8}

/* Success toast */
.emk-toast{position:absolute;top:7px;right:7px;background:#fff;border-radius:8px;box-shadow:0 4px 20px rgba(0,0,0,.16);padding:7px 22px 7px 9px;display:flex;align-items:center;gap:6px;z-index:50;opacity:0;transform:translateY(-8px);transition:opacity .3s ease,transform .3s ease;pointer-events:none;max-width:190px}
.emk-toast.on{opacity:1;transform:translateY(0)}
.emk-toast-txt{font-size:7.5px;color:#1a1a1a;line-height:1.45}
.emk-check{width:13px;height:13px;border-radius:50%;background:#1d9e75;color:#fff;display:flex;align-items:center;justify-content:center;font-size:7px;flex-shrink:0}
.emk-toast-x{position:absolute;top:3px;right:6px;color:#b3b9c4;font-size:8px}

/* === RESPONSIVE === */
@media(max-width:640px){
  .ga-viewport{height:280px}
  .df-side{width:80px}
  .emk-panel{width:160px}
  .emk-rail{display:none}
}

/* ==========================================
   INSTRUCTOR-ONLY PIECES
   ========================================== */

/* Analysis-mode toolbar (icons above the report) */
.emk-tools{display:flex;align-items:center;gap:7px;margin-left:10px}
.emk-tool{width:12px;height:12px;border:1.3px solid #6b7280;border-radius:2px;opacity:.75}
.emk-tool.round{border-radius:50%}
.emk-tool.dots{border:none;width:3px;height:12px;background:radial-gradient(circle,#6b7280 1px,transparent 1px);background-size:3px 4px;opacity:.85}

/* Analysis-mode right panel (similarity + sources) */
.emk-anl{width:210px;border-left:1px solid #e8ebf1;background:#fff;padding:7px;flex-shrink:0;display:flex;flex-direction:column;gap:5px;overflow:hidden}
.emk-anl-scores{display:flex;gap:4px}
.emk-anl-score{flex:1;border:1px solid #e6ecfb;background:#f7faff;border-radius:5px;padding:3px 5px;font-size:6px;color:#4b5563;display:flex;justify-content:space-between;align-items:center}
.emk-anl-score b{color:#1a56db;font-size:7px}
.emk-anl-mid{display:flex;align-items:center;gap:8px;padding:4px 0}
.emk-donut{width:46px;height:46px;border-radius:50%;border:5px solid #d93025;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0}
.emk-donut b{font-size:9px;font-weight:700;color:#1a1a1a;line-height:1}
.emk-donut span{font-size:5px;color:#666}
.emk-legend{flex:1;display:flex;flex-direction:column;gap:2px}
.emk-leg{display:flex;align-items:center;gap:4px;font-size:5.5px;color:#4b5563}
.emk-leg i{width:5px;height:5px;border-radius:50%;display:block}
.emk-anl-tabs{display:flex;gap:3px}
.emk-anl-tab{flex:1;text-align:center;font-size:6px;font-weight:700;padding:4px 0;border-radius:4px}
.emk-anl-tab.act{background:#1a56db;color:#fff}
.emk-anl-tab.idle{background:#f1f3f6;color:#555}
.emk-src{display:flex;align-items:center;gap:4px;font-size:5.5px;color:#4b5563;padding:2.5px 0;border-bottom:1px solid #f4f5f7}
.emk-src i{color:#8a93a3;width:7px}
.emk-src u{flex:1;text-decoration:none;color:#c2185b}
.emk-src b{background:#e8eefc;color:#1a56db;border-radius:6px;padding:0 4px;font-weight:700}

/* Send notification button pinned to the panel foot */
.emk-send{margin-top:auto;border-radius:5px;padding:7px 0;text-align:center;font-size:8px;font-weight:700;transition:background .35s ease,color .35s ease;flex-shrink:0}
.emk-send.idle{background:#e6ecfb;color:#8a93a3}
.emk-send.ready{background:#1a56db;color:#fff}
.emk-send.press{transform:scale(.97)}

/* the panel needs to be a column so the send button can sit at the foot */
.emk-panel{justify-content:flex-start}

/* ==========================================
   STUDENT-ONLY PIECES
   ========================================== */

/* Read-only note in the analysis footer */
.emk-ro-note{font-size:6px;color:#8a93a3;font-style:italic}

/* A comment card as the student sees it: no action icons */
.emk-card.readonly .emk-icons{display:none}
.emk-card.sel{background:#eef1f7;box-shadow:0 0 0 2px rgba(26,115,232,.18)}

/* Highlighted passage lights up when its card is chosen */
.emk-sel.lit{background:#c9dcfa;box-shadow:inset 2px 0 0 #1a73e8,0 0 0 2px rgba(26,115,232,.18)}

/* ---- NOTIFICATION EMAIL SCENE ---- */
.sc-mail{background:#f1f3f6;display:flex;align-items:stretch;justify-content:center;padding:7px 0}
.mail-win{width:88%;background:#fff;border-radius:7px;box-shadow:0 3px 18px rgba(0,0,0,.12);overflow:hidden;display:flex;flex-direction:column;max-height:100%}
.mail-subject{font-size:9px;font-weight:600;color:#1a1a1a;padding:8px 11px 5px;display:flex;align-items:center;gap:6px}
.mail-chip{background:#e8eaed;color:#5f6368;font-size:5.5px;padding:1px 5px;border-radius:3px;font-weight:600}
.mail-from{display:flex;align-items:center;gap:6px;padding:0 11px 7px;border-bottom:1px solid #eef1f6}
.mail-av{width:16px;height:16px;border-radius:50%;background:#c6ccd6;flex-shrink:0}
.mail-fromtxt{font-size:6.5px;color:#5f6368}
.mail-fromtxt b{color:#1a1a1a}
.mail-body{padding:11px 18px 12px;overflow:hidden;flex:1}
.mail-logo{display:flex;align-items:center;gap:4px;justify-content:center;padding-bottom:7px;border-bottom:1.5px solid #1a3a6b;margin-bottom:9px}
.mail-logo i{width:13px;height:13px;border-radius:3px;background:#1a56db;display:block}
.mail-logo span{font-size:12px;font-weight:700;color:#16336b}
.mail-eyebrow{font-size:5.5px;letter-spacing:1.1px;color:#8a93a3;font-weight:700;margin-bottom:3px}
.mail-h{font-size:13px;color:#16336b;font-family:Georgia,'Times New Roman',serif;margin-bottom:7px}
.mail-p{font-size:7px;color:#3a3a3a;line-height:1.75;margin-bottom:5px;font-family:Georgia,'Times New Roman',serif}
.mail-paper{font-size:6px;color:#8a93a3;margin-bottom:7px}
.mail-rule{border-top:1px solid #e8ebf1;margin:6px 0 7px}
.mail-item{display:flex;gap:7px;opacity:0;transform:translateY(5px);transition:opacity .45s ease,transform .45s ease}
.mail-item.on{opacity:1;transform:translateY(0)}
.mail-num{font-size:8px;color:#c6ccd6;font-weight:700;flex-shrink:0}
.mail-quote{border-left:2px solid #1a73e8;padding-left:6px;margin-bottom:3px;font-size:7px;font-style:italic;color:#1a56db;text-decoration:underline;font-family:Georgia,serif}
.mail-ctext{font-size:7px;color:#1a1a1a;line-height:1.6}
.mail-foot{border-top:1.5px solid #1a3a6b;margin-top:8px;padding-top:6px;font-size:5.5px;color:#8a93a3;line-height:1.7}

/* ============================================================
   WATCH-FIRST PLAYER CHROME (fullTour on top of the 5 step animations).
   Reuses the canonical watch-first look; the emk/ems mock markup is
   reused as tour scenes at end-state.
   ============================================================ */
.sim-tour .ga-viewport { background: #0b1430; cursor: pointer; }

.tour-card { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(120% 120% at 50% 0%, #16245a 0%, #0b1430 70%); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.tour-card.on { opacity: 1; }
.tour-card-logo { display: inline-flex; align-items: center; gap: 10px; }
.tour-card-brand-label { font-weight: 600; font-size: 12px; color: #9fb0e0; letter-spacing: .14em; text-transform: uppercase; }
.tour-card-title { font: 700 24px/1.25 var(--db-font, system-ui, sans-serif); color: #fff; text-align: center; max-width: 80%; min-height: 30px; }
.tour-card-caret { width: 2px; height: 22px; background: #6f8be0; display: none; }
.tour-card-logo-img { height: 30px; background: #fff; border-radius: 8px; padding: 7px 12px; box-shadow: 0 4px 16px rgba(0,0,0,.3); }

.tour-stage { position: absolute; inset: 0; }
.tour-scene { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 14px 14px 92px; opacity: 0; pointer-events: none; transition: opacity .45s ease, transform .45s ease; transform: scale(.985); }
.tour-scene.on { opacity: 1; pointer-events: auto; transform: scale(1); }

.tour-cursor { position: absolute; top: 0; left: 0; z-index: 60; width: 22px; height: 22px; margin: -3px 0 0 -3px; opacity: 0; pointer-events: none; transform: translate(40px,40px); transition: transform .85s cubic-bezier(.45,.05,.2,1), opacity .3s ease; filter: drop-shadow(0 3px 5px rgba(0,0,0,.45)); }
.tour-cursor.on { opacity: 1; }
.tour-cursor svg { width: 22px; height: 22px; display: block; }
.tour-cursor-ring { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(59,91,253,.9); opacity: 0; transform: scale(.3); }
.tour-cursor.clicking .tour-cursor-ring { animation: liClick .36s ease-out; }
@keyframes liClick { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.6); } }

.li-blur { filter: blur(2.2px) saturate(.9); opacity: .5; transition: filter .4s ease, opacity .4s ease, transform .4s ease; }
.li-focus { position: relative; z-index: 6; transform: scale(1.015); transition: transform .4s ease, box-shadow .4s ease; box-shadow: 0 0 0 2px rgba(59,91,253,.35), 0 18px 40px rgba(0,0,0,.45); border-radius: 8px; }

/* EasyMark mocks reused as tour scenes: render at the step-animation
   stage size, at their VISIBLE end-state, scaled to fit the player frame. */
.tour-scene .sc {
  position: relative; inset: auto; opacity: 1; pointer-events: auto;
  background: #fff; border-radius: 12px; overflow: hidden;
  width: 720px; height: 340px;
  transform: scale(.9); transform-origin: center center; flex: 0 0 auto;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.tour-scene .sc-dashfull { display: flex; }
.tour-scene .sc-emk { display: flex; flex-direction: column; }
.tour-scene .df-panel { opacity: 1; transform: none; }
/* Pins are placed by JS in the step animations; in a scene they sit inline
   right after their passage. */
.tour-scene .emk-pin.tour-pin { position: relative; display: inline-block; vertical-align: -1px; margin-left: 3px; }
/* Rows and the mail item start hidden for the step animations. */
.tour-scene .ems-row { opacity: 1; transform: none; }
.tour-scene .sc-mail { display: flex; background: #f1f3f6; }
/* Label + toggle as one spotlight target. */
.tour-togwrap { display: inline-flex; align-items: center; gap: 8px; padding: 2px 4px; border-radius: 6px; }

/* ============================================================
   WATCH-FIRST VIDEO PLAYER (tour block)
   ============================================================ */
.guide-anim.sim-tour .ga-viewport { height: 424px; }

.ga-player { position: absolute; inset-inline: 0; bottom: 0; z-index: 210; padding: 30px 13px 11px; background: linear-gradient(to top, rgba(3,8,24,.96) 0%, rgba(3,8,24,.66) 55%, rgba(3,8,24,0) 100%); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; user-select: none; -webkit-user-select: none; opacity: .55; transition: opacity .25s ease; }
.sim-tour .ga-viewport:hover .ga-player,
.ga-player.is-playing,
.ga-player:focus-within,
.sim-tour .ga-overlay.on ~ .ga-player { opacity: 1; }

.ga-pl-track { position: relative; height: 5px; border-radius: 4px; background: rgba(255,255,255,.26); cursor: pointer; touch-action: none; transition: height .12s ease; }
.ga-pl-track:hover, .ga-player:focus-within .ga-pl-track { height: 7px; }
.ga-pl-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: #4f7cff; border-radius: 4px; }
.ga-pl-knob { position: absolute; top: 50%; inset-inline-start: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 1px 5px rgba(0,0,0,.55); opacity: 0; transition: opacity .12s ease; }
[dir="rtl"] .ga-pl-knob { transform: translate(50%, -50%); }
.ga-pl-track:hover .ga-pl-knob, .ga-player:focus-within .ga-pl-knob { opacity: 1; }

.ga-pl-row { display: flex; align-items: center; gap: 3px; margin-top: 9px; }
.ga-pl-btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; min-width: 32px; padding: 0 7px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; font: 600 12px/1 system-ui, sans-serif; }
.ga-pl-btn:hover { background: rgba(255,255,255,.16); }
.ga-pl-btn:focus-visible { outline: 2px solid #4f7cff; outline-offset: 1px; }
.ga-pl-btn svg { width: 19px; height: 19px; display: block; }
.ga-pl-play svg { width: 21px; height: 21px; }
.ga-pl-time { color: #fff; font: 600 12.5px/1 system-ui, sans-serif; margin-inline-start: 7px; letter-spacing: .3px; opacity: .96; font-variant-numeric: tabular-nums; }
.ga-pl-spacer { flex: 1; }

.ga-pl-rate { position: relative; }
.ga-pl-rate-btn { min-width: 40px; font-weight: 700; }
.ga-pl-rate-menu { position: absolute; bottom: 40px; inset-inline-end: 0; display: none; flex-direction: column; min-width: 104px; padding: 5px; background: rgba(12,18,40,.98); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.5); }
.ga-pl-rate.open .ga-pl-rate-menu { display: flex; }
.ga-pl-rate-opt { background: transparent; border: 0; color: #dfe5fb; cursor: pointer; font: 600 12.5px/1 system-ui, sans-serif; padding: 9px 11px; text-align: start; border-radius: 7px; }
.ga-pl-rate-opt:hover { background: rgba(255,255,255,.12); }
.ga-pl-rate-opt.on { color: #fff; background: rgba(79,124,255,.4); }

.ga-buffer { position: absolute; inset: 0; z-index: 205; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 24px; text-align: center; background: rgba(8,14,34,.82); color: #dfe5fb; font: 600 13px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.ga-buffer.on { opacity: 1; pointer-events: auto; }
.ga-buffer-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #4f7cff; animation: gaBufSpin .8s linear infinite; }
@keyframes gaBufSpin { to { transform: rotate(360deg); } }
.ga-buffer-txt { max-width: 260px; }

.ga-pl-info-wrap { position: relative; display: none; align-items: center; gap: 6px; }
.ga-pl-info-wrap.show { display: inline-flex; }
.ga-pl-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #e7ecff; font: 700 10.5px/1 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.ga-pl-info-pop { position: absolute; bottom: 40px; inset-inline-end: 0; display: none; width: 232px; padding: 11px 13px; z-index: 20; background: rgba(12,18,40,.98); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.5); color: #dfe5fb; font: 500 12px/1.5 system-ui, sans-serif; text-align: start; }
.ga-pl-info-wrap.open .ga-pl-info-pop { display: block; }

@media (max-width: 640px) {
  .tour-scene .sc { transform: scale(.45); }
}
