/* D01 / D02: only the final student PDF block. The scope also beats the
   existing Web theme's ID rules without changing other cards or staff links. */
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end{scroll-margin-top:90px;padding:16px 18px;border-radius:12px;font-size:12px;line-height:1.5}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end>h3{margin:0 0 8px;font-size:14px;line-height:1.5}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-body{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(180px,.7fr);grid-template-areas:"intro checks" "actions checks";gap:6px 16px;padding:14px 16px;background:#fff8f1;border-radius:10px}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-intro{grid-area:intro;display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;align-items:start;min-width:0}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-icon{display:flex;width:36px;height:36px;align-items:center;justify-content:center;border-radius:50%;background:#fff0d9;color:#e98722;font-size:17px}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end h4{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 0 4px;color:#172033;font-size:14px;line-height:1.5}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-intro p{margin:0;color:#6b7280;font-size:12px;line-height:1.5}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-format{display:inline-block;white-space:nowrap;border-radius:12px;padding:0 6px;background:#fff0dc;color:#975614;font-size:10px;font-weight:500;line-height:16px}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-actions{grid-area:actions;display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:0}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end button.primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;height:44px;min-height:44px;margin:0;padding:0 16px;background:#ff6422;border:1px solid #ff6422;border-radius:8px;color:#fff;font-size:13px;line-height:20px}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end button.primary:disabled{cursor:not-allowed}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end button.sr2-application-return{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:44px;margin:0;padding:0 4px;border:0;border-radius:0;background:transparent;color:#eb5e1c;box-shadow:none;font-size:12px;line-height:18px;font-weight:500}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-checks{grid-area:checks;display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0;padding-left:16px;border-left:1px solid #f2decb}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-checks p{display:flex;align-items:center;gap:5px;box-sizing:border-box;min-height:28px;margin:0;padding:4px 0;font-size:12px;font-weight:500;line-height:18px}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-checks .ready{color:#287c43}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-checks .waiting{color:#9a5c08}
:is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-message{margin:6px 0 0;color:#667085;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.sr2 .sr2-application-upload-tip{color:#667085;font-size:13px;line-height:1.5}
.sr2 .sr2-application-upload-tip button{min-height:44px;padding:4px 0;border:0;background:transparent;color:#eb5e1c;box-shadow:none;font-size:13px;line-height:1.5;font-weight:500}
.sr2 [data-sr-application-upload]{scroll-margin-top:90px}
.sr2 .sr2-application-end:focus,.sr2 [data-sr-application-upload]:focus{outline:2px solid #f6b479;outline-offset:4px}
@media(max-width:700px){
 :is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end{padding:10px 12px}
 :is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end>h3{margin-bottom:4px}
 :is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-body{grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "checks" "actions";gap:4px;padding:0;background:transparent;border-radius:0}
 :is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-intro{display:block}
 :is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-icon{display:none}
 :is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end h4{margin-bottom:2px}
 :is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-checks{gap:4px;padding:0;border:0}
 :is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-checks p{padding:4px 8px;border-radius:6px;background:#f0f8f3}
 :is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-checks p.waiting{background:#fff3db}
 :is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-actions{flex-direction:column;align-items:stretch;gap:0}
 :is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end button.primary{width:100%}
 :is(#sourceView,#statusContent,#legacyApplicationEnd,.sr2) .sr2-application-end .sr2-application-message{margin-top:2px}
}
