/* V14.2.32 | Exam paper teacher archive (no external CSS assets) */
.epa-console{margin:18px 20px 14px;border:1px solid #d7e6e1;background:linear-gradient(130deg,#f8fffc,#fff 65%);border-radius:24px;padding:17px;box-shadow:0 8px 25px #163a4a0c;font-family:inherit;}
.epa-console-head{display:flex;gap:13px;align-items:center;}.epa-console-icon{width:47px;height:47px;display:grid;place-items:center;border-radius:15px;background:#e3f5f1;font-size:25px;flex-shrink:0}.epa-console-heading{flex:1;min-width:0}.epa-console h3{font-size:16px;font-weight:900;color:#134e4a;margin:0}.epa-console p{font-size:11px;color:#70858b;font-weight:700;margin:3px 0}.epa-count{border:1px solid #b8ddd5;background:#e8f8f2;color:#126454;border-radius:50px;font-size:12px;font-weight:900;padding:8px 12px;white-space:nowrap}
.epa-console-info{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.epa-console-info span{border-radius:10px;background:#edf6f4;color:#426269;padding:7px 9px;font-size:10px;font-weight:800}.epa-console-info span:last-child{background:#fff1f0;color:#9c3b46}.epa-console-actions{display:flex;gap:10px;flex-wrap:wrap}.epa-console-actions button{min-height:42px;padding:10px 17px;font-size:12px;font-weight:900;border-radius:13px}.epa-primary{background:linear-gradient(115deg,#0f766e,#129681);color:#fff;border:0;cursor:pointer}.epa-secondary{background:#fff;color:#176b64;border:1px solid #bddad2;cursor:pointer}.epa-student-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;margin-top:15px}.epa-student-item{display:flex;text-align:right;align-items:center;gap:8px;background:#fff;border:1px solid #e1e9e7;border-radius:13px;padding:10px 12px;cursor:pointer;color:#173d47;font-family:inherit}.epa-student-item b{font-size:11px;min-width:0;flex:1}.epa-student-item small{font-size:9px;color:#71898a}.epa-student-item strong{font-size:9px;color:#087c66;background:#e6f7f0;border-radius:8px;padding:4px 7px}.epa-student-item .epa-missing{background:#f1f5f8;color:#75828f}
.epa-modal{position:fixed;inset:0;z-index:1100;background:#071e28b8;display:flex;justify-content:center;align-items:center;padding:12px;backdrop-filter:blur(6px);font-family:inherit}.epa-modal.hidden{display:none!important}.epa-sheet{width:min(100%,780px);max-height:94dvh;overflow:auto;border-radius:25px;background:#f9fcfc;box-shadow:0 30px 90px #041a2890}.epa-header{display:flex;gap:12px;align-items:center;padding:17px 20px;background:linear-gradient(100deg,#123b4b,#116472);color:#fff}.epa-header>div{flex:1}.epa-header h2{margin:0;font-size:18px;font-weight:900;line-height:1.6}.epa-header p{font-size:10px;color:#bfe1e8;font-weight:800}.epa-head-mark{font-size:24px}.epa-icon-btn{background:#eef6f7;border:1px solid #dce6e8;border-radius:12px;min-width:35px;height:35px;cursor:pointer;color:#33545f}.epa-header .epa-icon-btn{background:#ffffff26;color:#fff;border-color:#ffffff26}.epa-main{padding:18px;display:grid;gap:12px}.epa-student-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;padding:14px;border:1px solid #e1ebee;border-radius:17px}.epa-student-main{display:flex;align-items:center;gap:11px}.epa-student-avatar{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#e9f3fa;font-size:24px}.epa-student-main strong{display:block;color:#143e54;font-size:16px;font-weight:900}.epa-student-main small{display:block;color:#72818b;font-size:11px;line-height:1.8;font-weight:700}.epa-score{background:#fff2f1;color:#bf2636;text-align:center;border:1px solid #ffdddd;padding:9px 16px;border-radius:14px}.epa-score span{display:block;font-size:10px;font-weight:900}.epa-score b{display:block;font-size:23px;white-space:nowrap}.epa-alert{padding:10px 12px;background:#ecf7fd;color:#316077;border-radius:12px;font-size:11px;font-weight:800;line-height:1.7}.epa-controls{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.epa-action{font-size:10.5px;font-weight:900;color:#245168;background:#fff;border:1px solid #dce6e8;border-radius:12px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:5px;cursor:pointer;text-align:center;padding:7px}.epa-preview-box{border-radius:18px;background:#e8eff2;border:1px solid #d8e3e7;min-height:230px;padding:11px}.epa-preview{min-height:220px;display:grid;place-items:center;color:#85969e;font-size:12px;font-weight:850;overflow:hidden;text-align:center}.epa-preview img{width:auto;max-width:100%;max-height:50vh;object-fit:contain;border-radius:7px;background:white;box-shadow:0 8px 23px #17384e22}.epa-preview iframe{width:100%;height:min(55vh,550px);border:0;background:white;border-radius:9px}.epa-preview.epa-zoom img{max-height:none;max-width:unset;width:150%;cursor:zoom-out}.epa-pagination{display:flex;align-items:center;justify-content:center;gap:15px;font-size:11px;font-weight:900;color:#376271;margin-top:8px}.epa-files{display:flex;flex-wrap:wrap;gap:6px}.epa-files span{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:10px;background:#e6f4f0;color:#176e61;font-size:10px;font-weight:800}.epa-files button{background:transparent;border:0;color:#b42335;font-weight:900;cursor:pointer}.epa-note-title{font-size:12px;font-weight:900;color:#164453}.epa-note-input{width:100%;box-sizing:border-box;border:1px solid #dae5e8;background:#fff;border-radius:12px;padding:12px;font:inherit;font-size:13px;outline-color:#139b81;resize:vertical}.epa-status{background:#f0f7f8;color:#406a79;padding:10px;border-radius:11px;font-size:11px;font-weight:850}.epa-status.error{background:#fff0f0;color:#a92536}.epa-bottom{display:flex;gap:8px}.epa-bottom button{font-family:inherit;font-size:11px;font-weight:900;padding:11px 13px;min-height:45px;border-radius:12px;flex:1}.epa-neutral{background:#fff;border:1px solid #d6e0e5;color:#205365;cursor:pointer}.epa-draft{color:#b15b27;border-color:#e8d9c4}.epa-bottom button:disabled{opacity:.5;cursor:wait}.epa-next{color:#687e87;font-size:10.5px;font-weight:800;display:flex;align-items:center;gap:7px}.epa-next input{width:16px;height:16px;accent-color:#0f766e}
@media(max-width:700px){.epa-console{margin:10px 8px 12px;padding:12px}.epa-console-head{gap:8px}.epa-console h3{font-size:14px}.epa-console p{font-size:9px}.epa-console-info span{font-size:9px}.epa-console-actions button{flex:1}.epa-student-list{grid-template-columns:1fr 1fr}.epa-sheet{max-height:96dvh;border-radius:20px}.epa-modal{padding:5px}.epa-header{padding:11px 13px}.epa-header h2{font-size:15px}.epa-main{padding:11px;gap:10px}.epa-student-main strong{font-size:13px}.epa-student-main small{font-size:9px}.epa-score b{font-size:19px}.epa-score{padding:8px}.epa-controls{grid-template-columns:repeat(2,1fr)}.epa-preview-box{min-height:210px}.epa-preview{min-height:200px}.epa-bottom button{font-size:10px;padding:9px 4px}}
.epa-modal input[type="file"]{display:none!important}
.epa-score b{direction:ltr;unicode-bidi:isolate}

/* V14.2.32: remote Drive previews, compact teacher viewer on narrow phones. */
.epa-remote-loading,.epa-remote-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:210px;text-align:center;color:#265363;font-size:12px;font-weight:900}
.epa-spinner{display:block;width:34px;height:34px;border:3px solid #cce5e1;border-top-color:#0f766e;border-radius:50%;animation:epa-spin .9s linear infinite}
@keyframes epa-spin{to{transform:rotate(360deg)}}
.epa-drive-link{background:#0f766e;color:#fff!important;border-radius:13px;padding:11px 16px;text-decoration:none;font-size:12px}
.epa-external-mini{display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:900;color:#166e68!important;margin:9px auto 0;text-decoration:none;background:#e2f4ef;border-radius:8px;padding:6px 12px}
.epa-preview{display:block;text-align:center;min-height:210px;overflow:auto;max-height:60dvh}
.epa-preview img{display:block;margin:auto;max-height:50dvh}
.epa-preview.epa-zoom img{width:160%;max-width:none;max-height:none}
.epa-preview iframe{display:block}
@media(max-width:700px){
 .epa-sheet{max-height:calc(100dvh - 14px);overscroll-behavior:contain}
 .epa-header{position:sticky;top:0;z-index:12;padding:9px 12px;box-shadow:0 2px 10px #08242c16}
 .epa-header h2{font-size:14px}.epa-header p{font-size:9px}
 .epa-main{padding:10px 10px 104px;gap:8px}
 .epa-student-card{padding:10px;border-radius:14px;gap:7px}
 .epa-student-avatar{width:38px;height:38px;font-size:20px}
 .epa-score b{font-size:17px}
 .epa-alert{font-size:10px;padding:8px 10px}
 .epa-action{min-height:39px;padding:6px;font-size:10px}
 .epa-preview-box{padding:7px;min-height:150px}
 .epa-preview{min-height:180px;max-height:48dvh}
 .epa-preview img{max-height:43dvh}
 .epa-preview iframe{height:43dvh}
 .epa-bottom{position:fixed;bottom:calc(8px + env(safe-area-inset-bottom));left:12px;right:12px;z-index:1150;background:#f9fcfc;padding:9px 10px;border:1px solid #d8e4e2;border-radius:18px;box-shadow:0 8px 35px #082c3840}
 .epa-bottom button{min-height:48px}
}

/* V14.2.33 — legible student cards and unobtrusive safety controls */
.tracker-recovery-export-mini,.tracker-homework-recovery-launcher{
  position:fixed;left:10px;z-index:85;display:inline-flex;justify-content:center;
  align-items:center;border:1px solid #c7d7dd;border-radius:13px;
  box-shadow:0 6px 16px #0e34482e;font-family:inherit;font-weight:900;cursor:pointer;
}
.tracker-recovery-export-mini{bottom:calc(77px + env(safe-area-inset-bottom));width:43px;height:43px;
  background:#a6253c;color:#fff;font-size:20px;z-index:90}
.tracker-recovery-export-mini[hidden]{display:none!important}
.tracker-homework-recovery-launcher{bottom:calc(127px + env(safe-area-inset-bottom));
  min-height:40px;padding:8px 11px;background:#17478a;color:white;font-size:11px}
.epa-student-item b{line-height:1.65;overflow-wrap:anywhere;white-space:normal}
.epa-student-item small{white-space:nowrap}
.epa-student-item strong{white-space:nowrap}
@media(max-width:700px){
  .epa-student-list{grid-template-columns:minmax(0,1fr);gap:8px}
  .epa-student-item{display:grid;grid-template-columns:25px minmax(0,1fr) auto auto;
    gap:8px;min-height:62px;padding:10px 11px;align-items:center;text-align:right}
  .epa-student-item b{font-size:13px;line-height:1.7;min-width:0}
  .epa-student-item strong{font-size:10px;padding:6px 8px}
  .epa-student-item small{font-size:10px}
  .tracker-homework-recovery-launcher{width:43px;height:43px;min-height:43px;
    overflow:hidden;white-space:nowrap;font-size:0;padding:0}
  .tracker-homework-recovery-launcher::before{content:'♻';font-size:22px}
}
@media print{.tracker-recovery-export-mini,.tracker-homework-recovery-launcher{display:none!important}}

/* V14.2.34 explicit publication, separated from archiving */
.epa-publish-button{width:100%;min-height:46px;border:1px solid #c6d9d2;border-radius:16px;background:linear-gradient(135deg,#e5f7f0,#f7fffc);color:#0a6656;font:900 14px inherit;font-family:inherit;font-weight:900;cursor:pointer;margin:8px 0 12px;box-shadow:0 4px 12px rgba(8,90,73,.07)}
.epa-publish-button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:650px){.epa-publish-button{font-size:12px;padding:12px 8px}.epa-console-actions{flex-wrap:wrap}}

/* V14.2.35 batch capture status: local -> Drive -> published */
.epa-batch-button{background:linear-gradient(110deg,#10595c,#087c89)}
.epa-batch-status{margin:12px 0 0;border-radius:12px;padding:10px 13px;background:#eff9f6;color:#205f57;font-size:11px;font-weight:800;line-height:1.7;border:1px solid #ceece2}.epa-batch-status.error{background:#fff1f2;color:#b4233d;border-color:#ffced5}
.epa-stage-icon{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;border-radius:9px;background:#edf2f5}.epa-stage-icon.epa-stage-local{background:#d7f8e5;color:#067d48}.epa-stage-icon.epa-stage-synced{background:#d6f7e7;color:#077855}.epa-stage-icon.epa-stage-published{background:#f2e9fe;color:#6d36ae}.epa-student-item strong.epa-stage-empty{background:#eef1f4;color:#778593}.epa-student-item strong.epa-stage-local{background:#d4f5df;color:#0a7e4c}.epa-student-item strong.epa-stage-synced{background:#dcf6ee;color:#087a67}.epa-student-item strong.epa-stage-published{background:#efe6ff;color:#643c92}
.epa-stage-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;background:#ebf8f1;border:1px solid #a9e5c4;border-radius:15px;color:#125a48}.epa-stage-entry b{display:block;font-size:14px;font-weight:900}.epa-stage-entry small{display:block;font-size:10px;font-weight:750;line-height:1.6;color:#397d6d}.epa-stage-entry input{width:72px;min-height:51px;border:1.5px solid #65c59d;border-radius:12px;text-align:center;font-size:23px;font-weight:900;color:#0a674e;background:#fff;flex-shrink:0}
.epa-individual-options{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 3px}.epa-individual-options button{border:0;background:transparent;text-decoration:underline;color:#607984;font:800 10px inherit;cursor:pointer;padding:7px 9px}.epa-stage-button{flex:2!important}.epa-console-actions button:disabled{opacity:.5;cursor:wait}
@media(max-width:700px){.epa-console-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.epa-console-actions button{min-width:0;font-size:11px;padding:9px 8px}.epa-console-actions .epa-batch-button{grid-column:span 2}.epa-student-item strong{font-size:9px!important}.epa-bottom .epa-stage-button{min-width:0;font-size:12px}.epa-stage-entry{padding:9px}.epa-stage-entry small{font-size:9px}}

/* V14.2.36: student navigation */
.epa-browse-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr) minmax(0,1fr);gap:7px}.epa-browse-bottom button{min-width:0}.epa-browse-bottom .epa-stage-button{flex:unset!important}.epa-main{padding-bottom:105px!important}@media(max-width:700px){.epa-browse-bottom{left:7px;right:7px;padding:8px 7px;gap:5px}.epa-browse-bottom button{font-size:11px;line-height:1.4;padding:7px 3px}}
