.exam-card{display:flex;align-items:stretch;gap:14px;width:100%;min-height:112px;padding:16px;text-align:left;background:#fff;border:1px solid var(--line,#dfe7e3);border-radius:18px;box-shadow:0 5px 16px #0d35400b;color:var(--ink,#10171b);cursor:pointer}.exam-card-stripe{width:6px;flex:none;border-radius:5px;background:#c27c2d}.exam-card-copy{display:grid;align-content:center;gap:5px;min-width:0;flex:1}.exam-card-type,.exam-detail-type{font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#a96525}.exam-card-title{font-size:17px;line-height:1.2;overflow-wrap:anywhere}.exam-card-subject{font-size:13px;color:var(--muted,#68777a)}.exam-card-meta{display:grid;align-content:center;justify-items:end;gap:5px;min-width:82px;color:var(--muted,#68777a)}.exam-card-cap{font-size:22px;color:#c27c2d}.exam-card-date,.exam-card-time{font-size:11px;text-align:right}.exam-editor,.exam-detail{max-width:620px;margin:auto;padding:18px 20px 42px;color:var(--ink,#10171b)}.exam-editor-header,.exam-detail-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin-bottom:22px}.exam-editor-header h2{margin:0;text-align:center;font-size:17px}.exam-cancel,.exam-back,.exam-edit,.exam-save{min-height:44px;padding:8px 10px;background:transparent;color:#13566b;border:0;font:inherit}.exam-edit,.exam-save{font-weight:700;text-align:right}.exam-form-section,.exam-detail-section{padding:18px 0;border-top:1px solid var(--line,#dfe7e3)}.exam-form-section h3,.exam-detail-section h2{margin:0 0 14px;font-size:16px}.exam-form-section label{display:grid;gap:7px;margin:14px 0;font-size:12px;font-weight:650;color:var(--muted,#68777a)}.exam-form-section input,.exam-form-section select,.exam-form-section textarea{width:100%;box-sizing:border-box;border:1px solid var(--line,#dfe7e3);border-radius:12px;background:#fff;color:var(--ink,#10171b);font:inherit;font-size:15px;padding:12px;min-height:44px}.exam-form-section textarea{resize:vertical;line-height:1.45}.exam-time-toggle{display:flex!important;align-items:center;gap:9px!important}.exam-time-toggle input{width:20px}.exam-submit{width:100%;min-height:48px;border:0;border-radius:14px;background:#13566b;color:#fff;font:inherit;font-weight:700}.exam-editor .form-error,.exam-detail .form-error{padding:12px;border-radius:12px;background:#fff0ed;color:#884038;font-size:13px}.exam-detail-header{margin-bottom:30px}.exam-detail-hero{padding:6px 0 28px}.exam-detail-hero h1{margin:8px 0;font-size:32px;line-height:1.1;letter-spacing:-.04em;overflow-wrap:anywhere}.exam-detail-subject{margin:0;color:#a96525;font-weight:700}.exam-detail-date{margin:22px 0 5px;color:var(--muted,#68777a)}.exam-countdown{margin:0;color:#13566b;font-size:17px;font-weight:750}.exam-detail-section p{font-size:15px;line-height:1.55;color:var(--muted,#68777a)}.exam-topic-row{display:flex;align-items:center;gap:12px;min-height:52px;border-bottom:1px solid var(--line,#dfe7e3)}.exam-topic-row span{flex:1;font-size:15px;overflow-wrap:anywhere}.exam-topic-row select{min-height:40px;border:1px solid var(--line,#dfe7e3);border-radius:10px;padding:6px;background:#fff}.exam-delete{margin-top:26px;width:100%;min-height:48px;border:1px solid #c85c4b;border-radius:14px;background:#fff;color:#a43e31;font:inherit;font-weight:700}.exam-delete-modal{position:fixed;inset:0;display:grid;place-items:center;padding:20px;background:#10171b66;z-index:10}.exam-delete-dialog{width:min(100%,420px);padding:24px;border-radius:20px;background:#fff;box-shadow:0 18px 50px #10171b35}.exam-delete-dialog button{width:100%;min-height:46px;margin-top:10px;border:0;border-radius:12px;background:#edf4f1;color:#13566b;font:inherit;font-weight:700}.exam-delete-confirm{background:#a43e31!important;color:#fff!important}@media(max-width:500px){.exam-editor,.exam-detail{padding-left:16px;padding-right:16px}.exam-card-title{font-size:16px}.exam-card-meta{min-width:70px}}@media(prefers-reduced-motion:reduce){.exam-card{transition:none}}

.exam-editor-dialog{padding:0;background:#f2f2f7;border:1px solid #e0e2e5;border-radius:24px;width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 24px)}
.exam-editor-header{position:sticky;top:0;padding:12px 0;background:#f2f2f7;z-index:1}.exam-editor-header [data-exam-cancel]{min-height:44px;border-radius:22px;background:#fff;padding:8px 12px}.exam-editor-header .exam-save{border-radius:22px;background:#fff}
.exam-form-section{border:0;background:white;border-radius:18px;padding:14px 16px;margin:26px 0}.exam-form-section h3{font-size:13px;color:var(--muted);font-weight:500}.exam-local-copy{padding:18px;background:white;border-radius:18px;font-size:12px;color:var(--muted)}
.exam-list-section{margin-top:28px}.exam-list-section>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.exam-list-section h2{font-size:20px}.exam-list-section header button{min-height:44px;border-radius:18px;background:#10171b;color:white;padding:8px 14px}.exam-card{margin-bottom:10px;min-height:94px}.exam-card-meta{max-width:100px}.exam-card-stripe{height:66px;align-self:center}
.exam-quick-actions{position:fixed;bottom:180px;right:28px;z-index:3;display:grid;gap:10px;background:#f5f8f6;border:1px solid var(--line);padding:10px;border-radius:18px;box-shadow:0 8px 24px #0002}.exam-quick-actions button{min-height:44px;padding:10px 16px;border-radius:12px;background:white}
.exam-class-context{display:grid;gap:6px;margin-top:10px}.exam-class-context button{font-size:11px;min-height:32px;padding:5px 8px;text-align:left;border-radius:8px;background:#fff8ed;color:#8e571f;overflow-wrap:anywhere}.exam-class-context small{color:#8e571f}.exam-empty{font-size:13px;color:var(--muted)}
.exam-detail-hero,.exam-detail-section{background:white;border-radius:18px;padding:16px;margin:20px 0;border:0}.exam-detail-hero h1{font-size:24px;letter-spacing:-.02em}.exam-detail-header{display:flex;justify-content:space-between;margin-bottom:12px}.exam-topic-row{flex-wrap:wrap}.exam-topic-row select{max-width:100%;min-height:44px}.exam-delete-modal{position:sticky;bottom:0;inset:auto;padding:12px;border-radius:18px}.exam-editor :focus-visible,.exam-detail :focus-visible{outline:3px solid #49b8d1;outline-offset:2px}
