.exam-hero{background:linear-gradient(135deg,#071b2b 0%,#0d3548 58%,#17616a 100%);border-radius:28px;color:#fff;padding:42px;position:relative;overflow:hidden}
.exam-hero:after{content:"";position:absolute;width:330px;height:330px;border:1px solid rgba(54,215,183,.25);border-radius:50%;right:-95px;top:-135px}
.exam-hero h1{font-size:clamp(2.45rem,5vw,4.7rem);margin:8px 0 16px;max-width:850px}
.exam-hero h1 em{color:var(--mint)}
.exam-hero p{color:#c7d9df;line-height:1.65;max-width:790px;margin:0}
.exam-hero .exam-hero-actions{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.exam-badges{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.exam-badges span{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);padding:8px 11px;border-radius:999px;font-size:12px;font-weight:850}
.exam-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:28px 0 14px}
.exam-section-head h2{margin:4px 0 0;font-size:1.8rem}
.exam-section-head p{margin:0;color:var(--muted);font-size:13px}
.exam-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.exam-card{background:#fff;border:1px solid var(--line);border-radius:19px;padding:21px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:13px;min-height:265px}
.exam-card.current{border-color:#9cded0;background:linear-gradient(180deg,#fff,#f5fcfa)}
.archive-card{min-height:280px}
.archive-card .exam-status{white-space:nowrap}
.archive-grid,.selection-grid{margin-bottom:34px}
.catalog-grid{margin-bottom:20px}
.catalog-card{min-height:360px;border-color:#d6e8e5;background:linear-gradient(180deg,#fff,#f8fcfb)}
.catalog-status{background:#e8f2ff;color:#285a86}
.catalog-audit-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 15px}
.catalog-audit-summary article{padding:17px;border:1px solid #d6e8e5;border-radius:15px;background:#f7fcfa}
.catalog-audit-summary strong{display:block;color:#0d6f5c;font-size:1.65rem;letter-spacing:-.04em}
.catalog-audit-summary span{display:block;margin-top:4px;color:#657b84;font-size:11px;line-height:1.4}
.catalog-roles{border:1px solid #dce7e8;border-radius:12px;background:#fff;overflow:hidden}
.catalog-roles summary{padding:11px 12px;color:#234954;font-size:12px;font-weight:900;cursor:pointer}
.catalog-roles>div{display:grid;border-top:1px solid #e4ecee}
.catalog-roles a,.catalog-role-unlinked{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-top:1px solid #edf2f3;color:#315661;font-size:11px;text-decoration:none}
.catalog-roles a:first-child,.catalog-role-unlinked:first-child{border-top:0}
.catalog-roles a:hover{background:#f0faf7;text-decoration:underline}
.catalog-roles b{flex:0 0 auto;color:#0f725e}
.catalog-role-unlinked{color:#72858d;background:#fafcfc}
.catalog-verification{padding:10px 12px;border-radius:11px;background:#edf8f5;color:#286659;font-size:11px;line-height:1.4}
.catalog-legal{margin-bottom:34px}
.external-exam-layout{display:block}
.exam-legal a{color:inherit;font-weight:850}
.exam-card.unavailable{background:#f9fbfb;box-shadow:none}
.exam-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.exam-year{display:grid;place-items:center;width:66px;height:54px;border-radius:14px;background:var(--navy);color:var(--mint);font-size:1.25rem;font-weight:950}
.exam-status{font-size:11px;font-weight:900;padding:6px 9px;border-radius:999px;background:#e8f8f4;color:#14745e}
.exam-status.wait{background:#edf1f3;color:#61727d}
.exam-card h3{margin:0;font-size:1.12rem}
.exam-card p{margin:0;color:var(--muted);line-height:1.5;font-size:13px}
.exam-card-meta{display:flex;flex-wrap:wrap;gap:6px}
.exam-card-meta span{font-size:11px;font-weight:800;color:#355463;background:#eff4f5;border-radius:999px;padding:6px 8px}
.exam-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}
.exam-card-actions button,.exam-card-actions a,.exam-link,.exam-secondary,.exam-finish,.exam-back{border:0;border-radius:10px;padding:10px 12px;font-weight:850;text-decoration:none;cursor:pointer;font-size:13px}
.exam-card-actions .exam-start,.exam-finish{background:var(--mint);color:var(--navy)}
.exam-card-actions a,.exam-link,.exam-secondary,.exam-back{background:#eaf0f2;color:#173445}
.exam-card-actions a:hover,.exam-link:hover{text-decoration:underline}
.exam-archive-note{margin-top:18px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:19px;display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start}
.exam-archive-note .note-year{background:#edf1f3;border-radius:12px;padding:10px 12px;font-weight:900;color:#435965}
.exam-archive-note p{margin:4px 0 0;color:var(--muted);line-height:1.55}
.exam-legal{margin-top:18px;padding:16px 18px;border:1px solid #c4e9e0;background:#f0faf8;border-radius:14px;color:#285d53;line-height:1.55;font-size:13px}
.exam-player-head{display:flex;justify-content:space-between;align-items:center;gap:18px;background:var(--navy);color:#fff;border-radius:20px;padding:18px 20px;margin-bottom:14px;position:sticky;top:0;z-index:8;box-shadow:0 12px 30px rgba(7,27,43,.16)}
.exam-player-title{display:flex;align-items:center;gap:13px}
.exam-player-title .exam-year{background:var(--mint);color:var(--navy);width:62px;height:49px}
.exam-player-title h2{margin:0;font-size:1.15rem}
.exam-player-title p{margin:4px 0 0;color:#a9bec9;font-size:12px}
.exam-player-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.exam-clock{font-variant-numeric:tabular-nums;font-weight:950;letter-spacing:.05em;background:#102f42;padding:10px 13px;border-radius:10px;color:var(--mint)}
.exam-clock.ending{color:#ffd2d7;background:#562932}
.exam-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(330px,.72fr);gap:14px;align-items:start}
.exam-paper,.exam-sheet,.exam-result{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.exam-paper{overflow:hidden}
.exam-paper-bar{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:13px 15px;border-bottom:1px solid var(--line)}
.exam-paper-bar b{font-size:13px}
.exam-paper iframe{display:block;width:100%;height:calc(100vh - 190px);min-height:650px;border:0;background:#eef2f3}
.exam-sheet{padding:19px;position:sticky;top:91px;max-height:calc(100vh - 108px);overflow:auto}
.exam-sheet-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:15px}
.exam-sheet-head h3{margin:0 0 4px}
.exam-sheet-head span{color:var(--muted);font-size:12px}
.answer-sheet{display:grid;gap:7px}
.answer-row{display:grid;grid-template-columns:34px repeat(5,1fr);gap:5px;align-items:center;padding:6px;border-radius:10px;background:#f6f9fa}
.answer-row:nth-child(5n){margin-bottom:5px}
.answer-number{font-size:12px;font-weight:900;color:#536a76;text-align:center}
.answer-choice input{position:absolute;opacity:0;pointer-events:none}
.answer-choice span{display:grid;place-items:center;min-width:32px;height:32px;border:1px solid #d8e3e6;background:#fff;border-radius:8px;font-size:12px;font-weight:900;cursor:pointer}
.answer-choice input:checked+span{background:var(--navy);border-color:var(--navy);color:var(--mint)}
.exam-discursive{margin-top:14px;padding:13px;background:#eef8f6;border-radius:11px;color:#315f56;font-size:12px;line-height:1.5}
.exam-sheet .exam-finish{width:100%;margin-top:14px;padding:13px}
.exam-result{padding:28px}
.exam-result-hero{display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:center}
.exam-grade{width:118px;height:118px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:var(--mint);font-size:2rem;font-weight:950;border:10px solid #d8f5ee}
.exam-result h2{font-size:2rem;margin:0 0 8px}
.exam-result p{color:var(--muted);line-height:1.55;margin:0}
.exam-result-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}
.exam-result-cards div{background:#f4f8f9;border-radius:12px;padding:14px;text-align:center}
.exam-result-cards strong{display:block;font-size:1.6rem}
.exam-result-cards span{font-size:11px;color:var(--muted);font-weight:800}
.exam-review{display:grid;grid-template-columns:repeat(10,1fr);gap:7px;margin-top:12px}
.exam-review span{border-radius:9px;padding:9px 4px;text-align:center;font-size:11px;font-weight:900;background:#edf1f3;color:#536a76}
.exam-review .ok{background:#e2f7ef;color:#137054}
.exam-review .bad{background:#ffe8eb;color:#a43543}
.exam-review .blank{background:#fff4dc;color:#8b6517}
.exam-result-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}
.exam-result-actions button,.exam-result-actions a{border:0;border-radius:10px;padding:11px 14px;font-weight:850;text-decoration:none;cursor:pointer}
.exam-result-actions .primary-action{background:var(--mint);color:var(--navy)}
.exam-result-actions .secondary-action{background:#eaf0f2;color:#173445}
.contest-library{margin:24px 0 34px}
.contest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.contest-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 5px 18px rgba(14,45,58,.05)}
.contest-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}
.contest-board{font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:850;color:#0b8172}
.contest-count{font-size:11px;color:var(--muted);text-align:right}
.contest-card h3{font-size:17px;line-height:1.25;margin:0 0 6px;color:var(--navy)}
.contest-card-meta{font-size:12px;color:var(--muted);margin:0 0 14px;line-height:1.45}
.contest-area-list{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:11px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.contest-area-label{font-size:11px;color:var(--muted);font-weight:750;width:100%;margin-bottom:2px}
.contest-area-chip{border:1px solid #d7e4e5;background:#f7fbfb;border-radius:999px;padding:6px 9px;font:inherit;font-size:11px;color:#274651;cursor:pointer}
.contest-area-chip:hover{border-color:#84cfc0;background:#eaf8f5}
.contest-area-chip b{color:#0b8172;margin-left:3px}
.contest-card-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:14px}
.contest-card-actions .primary{border:0;border-radius:8px;padding:9px 11px;background:var(--navy);color:#fff;font-weight:800;cursor:pointer}
.contest-card-actions a{font-size:11px;color:#176b63;font-weight:750;text-decoration:none}
.contest-card-note,.contest-library-note{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:12px}
.contest-library-note{background:#f4f8f8;border-left:3px solid #7bcabc;border-radius:6px;padding:10px 12px}
.contest-library-empty{background:#fff;border:1px dashed #bed1d3;border-radius:12px;padding:20px;color:var(--muted);margin:20px 0}
.contest-library-empty b{display:block;color:var(--navy);margin-bottom:4px}
@media(max-width:1150px){.exam-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-audit-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-layout{grid-template-columns:1fr}.exam-sheet{position:static;max-height:none}.exam-paper iframe{height:70vh;min-height:560px}}
@media(max-width:900px){.exam-hero{padding:28px 22px}.exam-grid,.contest-grid{grid-template-columns:1fr}.exam-section-head{align-items:start;flex-direction:column}.exam-player-head{top:65px;align-items:flex-start}.exam-player-tools{justify-content:flex-start}.exam-player-title p{display:none}.exam-paper iframe{height:62vh;min-height:430px}.exam-review{grid-template-columns:repeat(5,1fr)}.exam-result-hero{grid-template-columns:1fr}.exam-result-cards{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:560px){.catalog-audit-summary{grid-template-columns:1fr}.exam-player-head{display:block}.exam-player-tools{margin-top:12px}.exam-clock{flex:1;text-align:center}.exam-player-tools .exam-back{padding:10px}.exam-paper-bar{align-items:flex-start;flex-direction:column}.exam-paper-bar .exam-link{width:100%;text-align:center}.exam-result{padding:20px}.exam-result-cards{grid-template-columns:1fr}.exam-archive-note{grid-template-columns:1fr}.exam-grade{width:96px;height:96px}.answer-row{grid-template-columns:30px repeat(5,1fr);gap:4px;padding:5px}.answer-choice span{min-width:0;height:31px}}
