/* ==========================================================================
   PERSONAL / USER - My Files overview watch-first walkthrough
   Personal product shell + My Files toolbar (Upload / Refresh / Settings / CSV
   / Search) + file list (Paper ID / Title / Language / Pages / Date / scores)
   + multi-select bulk delete + pagination.
   ========================================================================== */

/* === BASE CONTAINER & VIEWPORT === */
.guide-anim{position:relative;z-index:0;border:1px solid #e5e5e0;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.04);margin:28px 0 32px}
.ga-slides{position:relative}
.ga-slide{display:none}
.ga-slide.active{display:block}
.ga-viewport{position:relative;height:340px;overflow:hidden;background:#eceae6;cursor:pointer}
.ga-controls{display:none}
.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}
.ga-info p{font-size:13px;color:#6b6b6b;line-height:1.55;margin:0}

.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}

/* === PERSONAL PRODUCT SHELL === */
.sc-pmf-shell{position:absolute;inset:0;display:flex;background:#f5f7fa;font-family:var(--db-font,system-ui,sans-serif);border-radius:12px;overflow:hidden}

.psh-side{width:120px;background:#fff;border-right:1px solid #eef0f3;display:flex;flex-direction:column;padding:14px 0;flex:0 0 auto}
.psh-logo{display:flex;align-items:center;gap:6px;padding:0 14px 16px;font-size:14px;font-weight:700;color:#1a3a8f}
.psh-logo i{width:20px;height:20px;background:linear-gradient(135deg,#3a6ee0 0%,#1a3a8f 100%);border-radius:5px;display:block}
.psh-nav{display:flex;align-items:center;gap:8px;padding:9px 14px;font-size:11px;color:#5a6477;cursor:default;border-left:3px solid transparent}
.psh-nav i{width:14px;height:14px;background:#cfd3dc;border-radius:3px;display:block}
.psh-nav.act{background:#eef3ff;color:#1a3a8f;font-weight:700;border-left-color:#3a6ee0}
.psh-nav.act i{background:#3a6ee0}
.psh-side-spacer{flex:1}
.psh-side-bottom{padding:8px 0}
.psh-nav.logout{color:#d94a4a}
.psh-nav.logout i{background:#ffd5d5}

.psh-main{flex:1;display:flex;flex-direction:column;background:#f5f7fa;min-width:0;position:relative}
.psh-top{display:flex;align-items:center;gap:10px;padding:12px 16px;background:#fff;border-bottom:1px solid #eef0f3}
.psh-burger{width:22px;height:22px;display:flex;flex-direction:column;justify-content:center;gap:3px}
.psh-burger i{display:block;height:2px;background:#3a4252;border-radius:1px}
.psh-burger i:nth-child(2){width:14px}
.psh-burger i:nth-child(1),.psh-burger i:nth-child(3){width:18px}
.psh-spacer{flex:1}
.psh-pages{display:flex;flex-direction:column;align-items:flex-end;font-size:10px;color:#5a6477}
.psh-pages b{color:#1a1a1a;font-weight:700;font-size:11px}
.psh-pages-bar{width:60px;height:2px;background:#e3e6ed;margin-top:3px;border-radius:2px;position:relative;overflow:hidden}
.psh-pages-bar::after{content:'';position:absolute;left:0;top:0;height:100%;width:60%;background:#3a6ee0;border-radius:2px}
.psh-buy{background:#1f4ee6;color:#fff;padding:6px 12px;border-radius:7px;font-size:11px;font-weight:700;box-shadow:0 2px 6px rgba(31,78,230,.25)}
.psh-bell{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#3a4252;font-size:13px}
.psh-user{display:flex;align-items:center;gap:8px;padding-left:6px}
.psh-user-meta{display:flex;flex-direction:column;font-size:10px;color:#5a6477;line-height:1.25;text-align:right}
.psh-user-meta b{color:#1a1a1a;font-weight:700;font-size:11px}
.psh-av{width:30px;height:30px;border-radius:50%;background:#37c08b;color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}

.psh-body{flex:1;padding:14px 18px;overflow:hidden;display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}

/* My Files header + toolbar */
.pmf-head{display:flex;align-items:center;gap:7px}
.pmf-title{font-size:14px;font-weight:700;color:#1a1a1a}
.pmf-spacer{flex:1}
.pmf-upload{height:26px;display:flex;align-items:center;gap:5px;padding:0 12px;background:#fff;border:1px solid #d8deea;border-radius:7px;font-size:10.5px;font-weight:700;color:#1a3a8f}
.pmf-upload i{width:12px;height:12px;background:#3a6ee0;border-radius:50%;display:block}
.pmf-tool{height:26px;width:26px;border:1px solid #d8deea;border-radius:6px;display:flex;align-items:center;justify-content:center;background:#fff;color:#5a6477;font-size:12px;position:relative}
.pmf-tool.csv{font-size:7px;font-weight:700;color:#1f4ee6}

/* File card grid (real UI: cards, not a table) */
.pmf-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;align-content:start;overflow:hidden}
.pmf-card{background:#fff;border:1px solid #e3e6ed;border-radius:10px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 0 rgba(20,30,60,.02)}
.pmf-card-thumb{position:relative;height:96px;background:linear-gradient(160deg,#eef3fb,#f7f9fc);border-bottom:1px solid #f0f2f6;padding:9px 9px 0;overflow:hidden}
.pmf-card-page{background:#fff;border:1px solid #e6e9f0;border-radius:2px;height:100%;padding:6px 7px;display:flex;flex-direction:column;gap:2.5px}
.pmf-card-page i{display:block;height:2px;border-radius:1px;background:#e0e4ec}
.pmf-card-page i.short{width:55%}
.pmf-card-page i.head{width:40%;height:3px;background:#c3d0e8;margin-bottom:2px}
.pmf-card-cb{position:absolute;top:7px;left:7px;width:13px;height:13px;border:1.5px solid #c8cee0;border-radius:3px;background:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:9px;color:#fff}
.pmf-card-cb.on{background:#1f4ee6;border-color:#1f4ee6}
.pmf-card-cb.on::before{content:'\2713'}
.pmf-card-acts{position:absolute;top:6px;right:6px;display:flex;flex-direction:column;gap:5px}
.pmf-card-acts i{width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 1px 3px rgba(20,30,60,.14);display:flex;align-items:center;justify-content:center;font-size:9px;color:#5a6477}
.pmf-card-acts i.del{color:#d94a4a}
.pmf-card-date{position:absolute;left:9px;right:9px;bottom:5px;background:rgba(255,255,255,.95);border:1px solid #eef0f3;border-radius:5px;padding:2px 6px;font-size:7.5px;color:#3a4252;font-weight:600;display:flex;align-items:center;gap:4px;justify-content:center}
.pmf-card-date .cal{color:#e0a83a}
.pmf-card-date .clk{color:#5a4ed1}
.pmf-card-body{padding:8px 10px 4px}
.pmf-card-name{font-size:11px;font-weight:700;color:#1a1a1a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pmf-card-pages{font-size:9px;color:#5a6477;margin-top:2px}
.pmf-scores{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #f0f2f6;margin-top:6px}
.pmf-sc{display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px}
.pmf-sc-label{font-size:7px;color:#7a8294;font-weight:600;text-transform:capitalize}
.pmf-score{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:3px 6px;border-radius:5px;font-weight:700;font-size:8.5px}
.pmf-score.green{background:#e3f6ec;color:#0f7a47}
.pmf-score.yellow{background:#fbf2d8;color:#8b6b00}
.pmf-score.red{background:#fbe4e2;color:#b42318}
.pmf-score.violet{background:#ece7fb;color:#5a4ed1}
.pmf-score.blue{background:#e6f1fb;color:#1a6bb8}
.pmf-score.na{background:#f0f2f6;color:#9099a8}

/* Bulk delete bar */
.pmf-bulk{display:flex;align-items:center;gap:10px;background:#fff5f5;border:1px solid #f5c2c2;border-radius:8px;padding:7px 12px;font-size:10px;color:#9a2a2a;font-weight:700}
.pmf-bulk-clear{margin-left:auto;color:#1f4ee6;font-weight:700;font-size:9.5px}
.pmf-bulk-del{background:#c93434;color:#fff;border-radius:6px;padding:5px 11px;font-size:9.5px;font-weight:700;display:inline-flex;align-items:center;gap:5px}

/* Pagination */
.pmf-pager{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:auto}
.pmf-page{min-width:22px;height:22px;padding:0 5px;border:1px solid #e3e6ed;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;color:#5a6477;background:#fff}
.pmf-page.on{background:#1f4ee6;color:#fff;border-color:#1f4ee6}
.pmf-page.arrow{color:#9099a8}

/* === Watch-first chrome (shared) === */
.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-logo-img{height:30px;background:#fff;border-radius:8px;padding:7px 12px;box-shadow:0 4px 16px rgba(0,0,0,.3)}
.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-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-scene .sc{position:relative;width:min(620px,100%);border-radius:12px;overflow:hidden;box-shadow:0 14px 40px rgba(0,0,0,.45);opacity:1;pointer-events:auto}
.tour-scene .sc-pmf-shell{display:flex;background:#f5f7fa;border-radius:12px;overflow:hidden;width:700px;height:430px;transform:scale(.6);transform-origin:center center;flex:0 0 auto}

.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}

/* Player */
.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;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){
  .ga-viewport{height:280px}
  .tour-scene .sc-pmf-shell{transform:scale(.42)}
}
