/* HSK4 One · unified practice-paper catalog and persistent Previous Papers workspace.
   Same visual grammar as the original 32-paper library across new Reading/Writing/Listening/Mock. */
#previousWorkspaceMount[hidden], #app[hidden] {display:none!important}
#previousWorkspaceMount {min-width:0; width:100%;}
#previousWorkspaceMount .stack {min-width:0;}
#previousWorkspaceMount iframe {width:100%;min-width:0;max-width:100%;border-radius:16px;}
.hsk3-practice-paper-grid {
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;
 margin:16px 0 25px;min-width:0;
}
.hsk3-paper-catalog-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:27px 0 12px}
.hsk3-paper-catalog-head h2{font-size:clamp(23px,2.7vw,31px);letter-spacing:-.04em;line-height:1.2;margin:7px 0}
.hsk3-paper-catalog-head p{font-size:13px;color:var(--muted);line-height:1.55;margin:0}
.hsk3-paper-catalog-count{border:1px solid var(--line);background:var(--surface,var(--card));border-radius:17px;padding:12px 19px;font-size:29px;font-weight:850;text-align:center;line-height:1.1;min-width:100px;color:var(--ink)}
.hsk3-paper-catalog-count small{display:block;font-size:10px;font-weight:550;color:var(--muted);margin-top:6px}
.hsk3-paper-choice{
 position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:stretch;
 min-height:303px;min-width:0;padding:26px 25px 22px;
 border:1px solid var(--line);border-radius:22px;background:var(--surface,var(--card));
 box-shadow:var(--shadow);overflow:hidden;color:var(--ink);
 transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.hsk3-paper-choice.first-paper{border-color:var(--teal,#168776)}
.hsk3-paper-choice:hover{border-color:var(--teal,#168776);transform:translateY(-2px);box-shadow:0 15px 40px rgba(7,39,46,.15)}
.hsk3-paper-choice:focus-within{border-color:var(--teal,#168776)}
.hsk3-paper-choice>*:not(.hsk3-paper-watermark){position:relative;z-index:1}
.hsk3-paper-watermark{position:absolute;top:-22px;right:10px;font-size:108px;font-weight:900;line-height:1.16;letter-spacing:-.09em;color:var(--ink);opacity:.058;pointer-events:none;user-select:none}
.hsk3-paper-source{font-size:11px;font-weight:900;letter-spacing:.10em;text-transform:uppercase;color:var(--teal,#73d7c5);max-width:calc(100% - 90px)}
.hsk3-paper-title{font-size:clamp(24px,2.3vw,33px);font-weight:900;line-height:1.15;letter-spacing:-.045em;margin:22px 0 8px;color:var(--ink);max-width:90%;overflow-wrap:anywhere}
.hsk3-paper-summary{font-size:12px;line-height:1.65;color:var(--muted);margin:0;min-height:34px}
.hsk3-paper-tags{display:flex;gap:7px;flex-wrap:wrap;margin:19px 0 20px}
.hsk3-paper-tags span{font-size:10px;font-weight:700;background:var(--surface2,var(--soft));border-radius:7px;padding:7px 9px;color:var(--muted);white-space:nowrap}
.hsk3-paper-footer{display:flex;justify-content:space-between;align-items:center;gap:7px;padding-top:16px;border-top:1px solid var(--line);margin-top:auto;min-width:0}
.hsk3-paper-access{font-size:11px;color:var(--muted);font-weight:600}
.hsk3-paper-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.hsk3-paper-start,.hsk3-paper-resume{padding:7px 5px;background:transparent;border:0;box-shadow:none;border-radius:8px;color:var(--teal,#6bddca);font-size:12px;font-weight:850;text-align:right;min-height:35px;white-space:normal}
.hsk3-paper-start:hover,.hsk3-paper-resume:hover{background:var(--surface2,var(--soft));color:var(--teal,#6bddca)}
.hsk3-paper-resume{font-weight:700;color:var(--ink)}
.hsk3-paper-start:focus-visible,.hsk3-paper-resume:focus-visible{outline:2px solid var(--teal,#6bddca);outline-offset:2px}
body.dark .hsk3-paper-choice{background:var(--surface,#152a34);border-color:var(--line,#2d4550)}
body.dark .hsk3-paper-choice.first-paper,body.dark .hsk3-paper-choice:hover{border-color:#79ddce}
body.dark .hsk3-paper-source,body.dark .hsk3-paper-start{color:#85e4d1}
body.dark .hsk3-paper-tags span{background:#1d3b42;color:#a4bfc4}
@media(max-width:1020px){.hsk3-practice-paper-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hsk3-paper-choice{min-height:280px}}
@media(max-width:690px){.hsk3-practice-paper-grid{grid-template-columns:1fr;gap:11px}.hsk3-paper-choice{min-height:230px;padding:22px 20px 19px}.hsk3-paper-title{font-size:28px;margin:15px 0 7px}.hsk3-paper-tags{margin:13px 0 16px}.hsk3-paper-watermark{font-size:88px}.hsk3-paper-catalog-head{margin:20px 0 12px}.hsk3-paper-catalog-head h2{font-size:23px}.hsk3-paper-catalog-count{font-size:23px;padding:10px 12px;min-width:80px}}
@media(prefers-reduced-motion:reduce){.hsk3-paper-choice{transition:none}.hsk3-paper-choice:hover{transform:none}}
.hsk3-previous-access{max-width:840px;margin:32px auto;min-height:275px;display:flex;flex-direction:column;justify-content:center;gap:13px;padding:clamp(22px,4vw,45px);background:var(--surface,var(--card));border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}
.hsk3-previous-access h2{font-size:clamp(25px,3vw,33px);letter-spacing:-.045em;line-height:1.2;margin:0;color:var(--ink)}
.hsk3-previous-access p{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 4px;max-width:580px}
.hsk3-previous-access .row{margin-top:7px}
