/* Current ProgressArchiveView.swift / TestHistoryView.swift. Scoped to archives. */
[data-native-archive], [data-native-history] {padding:0!important;display:flex;min-height:0;flex-direction:column;overflow:hidden!important;background:#f8fafc;color:#1e293b}
.native-archive-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.native-archive-stack{padding:12px;min-height:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:8px}
[data-native-archive=completed] .native-archive-stack{justify-content:center}
.native-archive-empty{margin:auto;padding:24px;text-align:center;color:#64748b;font-size:14px}
.native-archive-category{background:white;border-radius:12px;box-shadow:0 1px 2px #0000000f;overflow:hidden}
.native-archive-category button{border:0;box-shadow:none;font:inherit;text-align:left;cursor:pointer;background:transparent;color:inherit}
.native-archive-category-toggle,.native-archive-topic-toggle{display:flex;align-items:center;gap:6px;width:100%;min-height:44px;padding:12px}
.native-archive-category-toggle strong,.native-archive-topic-toggle strong{flex:1;min-width:0;font-size:15px}
.native-archive-topic{margin:0 8px 6px}.native-archive-topic-toggle{padding:8px;color:#334155!important}.native-archive-topic-toggle strong{font-size:14px;font-weight:600}
.native-archive-count{font-size:12px;font-weight:600;padding:2px 8px;border-radius:8px;background:#eff6ff;color:#2563eb;white-space:nowrap}
.native-archive-chevron{display:inline-flex;color:#94a3b8}.native-archive-chevron.is-expanded{transform:rotate(180deg)}
.native-archive-unit{margin:0 0 6px 8px;border-radius:10px;background:#f8fafc;overflow:hidden}.native-archive-unit-header{padding:0 8px;display:flex;gap:6px;align-items:center}
.native-archive-unit-toggle{flex:1;min-width:0;min-height:44px;display:flex;align-items:center;gap:6px;font-size:13px!important;font-weight:500!important;color:#475569!important}.native-archive-unit-toggle>span:first-child{flex:1}
.native-archive-take-test{min-height:28px!important;border-radius:12px!important;background:#2563eb!important;color:white!important;font-size:12px!important;font-weight:600!important;padding:4px 12px!important;white-space:nowrap}.native-archive-take-test:disabled{background:#cbd5e1!important;opacity:1!important}
.native-archive-unit-chevron{width:32px;min-height:44px;display:flex;align-items:center;justify-content:center}
.native-archive-lesson{margin:0 6px 4px;width:calc(100% - 12px);display:flex;gap:8px;align-items:center;justify-content:space-between;border-radius:8px!important;padding:8px 10px!important;min-height:44px!important;font-size:13px!important;background:white!important}.native-archive-lesson>span:first-child{flex:1}.native-archive-lesson:disabled{background:#f1f5f9!important;color:#94a3b8!important;opacity:1}
.native-archive-pass{font-size:11px;font-weight:600;padding:4px 10px;border-radius:999px;background:#22c55e;color:white;white-space:nowrap}
[data-native-archive=learned] .native-archive-stack{gap:0;padding-bottom:24px}.native-learned-search{display:flex;margin:0 0 6px;padding:0 12px;min-height:44px;border:1px solid #cbd5e1;border-radius:4px}.native-learned-search input{width:100%;border:0;background:transparent;min-height:44px;font-size:16px;outline-offset:2px}
.native-learned-filters{display:flex;gap:8px;overflow:auto;min-height:44px;flex-shrink:0}.native-learned-filters button{min-height:44px;border:0;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap;padding:0 14px;background:#eef2ff;color:#3730a3}.native-learned-filters button.is-selected{background:#4f46e5;color:white}
.native-learned-category,.native-learned-topic{font-size:15px!important;line-height:1.35!important;font-weight:700!important;margin:16px 0 4px!important;color:#334155}.native-learned-topic{margin-top:12px!important}.native-learned-subtopic{margin:8px 0 4px!important;color:#2563eb;font-size:13px;font-weight:600}
.native-learned-row{display:grid;grid-template-columns:minmax(0,44fr) 12px minmax(0,56fr);gap:6px;font-size:14px;line-height:1.65;padding:5px 0;user-select:text;overflow-wrap:anywhere}.native-learned-row strong{font-weight:600}.native-learned-row>span:nth-child(2){color:#94a3b8}.native-learned-row>span:last-child{color:#475569}
.native-speaking-card{display:flex!important;flex-direction:column;gap:5px;align-items:stretch;text-align:left;min-height:98px!important;padding:10px!important;background:white!important;border-radius:14px!important;border:0!important;color:#1e293b!important;box-shadow:none!important}.native-speaking-card-heading{display:flex;gap:8px;justify-content:space-between;align-items:center}.native-speaking-card-heading strong{font-size:17px}.native-speaking-card-heading small{color:#2563eb;font-weight:700;font-size:10px}.native-speaking-card small,.native-speaking-topic{font-size:12px}.native-speaking-card>small{color:#64748b}.native-speaking-tests{font-size:15px}
.native-history-layout{display:flex;flex:1;min-height:0;flex-direction:column;background:#f8fafc}.native-history-body{display:flex;flex:1;min-height:0;overflow:auto;flex-direction:column;gap:8px;padding:14px}.native-history-body h2{font-size:17px!important;line-height:1.3!important;font-weight:600;margin:0!important}.native-history-body p{margin:0}.native-history-caption{font-size:12px;color:#64748b}.native-history-score{font-size:22px;font-weight:700}.native-history-instruction{font-size:16px}.native-history-text{font-size:17px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}.native-history-text-pages{display:flex;align-items:center;gap:8px;margin-top:auto}.native-history-text-pages span{font-size:12px}.native-history-notice{font-size:12px;color:#64748b;margin-top:auto!important}
.native-history-shell{grid-template-rows:auto minmax(0,1fr);background:white}.native-history-shell .shell-header{height:44px;padding:0 8px}.native-history-shell .shell-header h1{font-size:17px;font-weight:600}.native-history-header-spacer{width:44px;flex:0 0 44px}.native-history-shell .screen-content,.native-history-shell .native-history-layout{background:white}.native-history-shell .top-navigation-icon{color:#151515;background:#f2f2f7;border:0}.native-history-shell .top-navigation-icon .native-icon{transform:rotate(180deg)}.native-history-shell .native-history-control{background:#f2f2f7;border-radius:18px}
.native-history-fields{display:flex;background:#e5e5e9;border-radius:8px;padding:2px;flex-shrink:0;min-height:32px}.native-history-fields button{flex:1;min-width:0;border:0;background:transparent;border-radius:6px;font-size:13px;font-weight:500;padding:5px 4px;color:#1e293b}.native-history-fields button[aria-pressed=true]{background:white;box-shadow:0 1px 3px #0002}
.native-history-dock{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px;background:white;flex-shrink:0}.native-history-row{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;flex-wrap:wrap}.native-history-row>span{font-size:12px}.native-history-control{border:0;border-radius:7px;background:#eff6ff;color:#007aff;font-size:15px;font-weight:400;min-height:32px;padding:6px 10px;box-shadow:none}.native-history-control:disabled{color:#94a3b8;background:#f1f5f9;opacity:1}
.native-archive-shell .shell-header{min-height:76px;padding:12px 8px 0}.native-archive-shell .shell-header h1{font-size:22px;font-weight:700;text-transform:uppercase;line-height:1.2}.native-archive-shell.learned-archive .shell-header h1{font-size:16px;text-transform:none;line-height:1.32;white-space:normal}
@media(min-width:600px){.native-learned-category,.native-learned-topic{font-size:17px!important}.native-learned-subtopic{font-size:15px}.native-learned-row{font-size:20px;line-height:1.7;padding:8px 0}}
[data-native-archive=learned]>.native-learned-search{margin:8px 12px 6px;flex-shrink:0}[data-native-archive=learned]>.native-learned-filters{padding:0 12px}
.native-learned-search{gap:12px;align-items:center}.native-learned-search>.native-icon{color:#8e8e93}.native-learned-clear{display:flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:transparent;color:#8e8e93;width:22px;height:22px;min-height:22px;flex-shrink:0;padding:0}.native-learned-search input{min-width:0}
.native-speaking-pagination{display:flex;align-items:center;gap:12px;padding:0 14px;background:#ffffffea;flex-shrink:0}.native-speaking-pagination button{min-width:44px;min-height:44px;border:0;background:transparent;color:#007aff;box-shadow:none;padding:0;font-size:26px}.native-speaking-pagination button:last-child{margin-left:auto;display:flex;align-items:center;justify-content:center}.native-speaking-pagination>span{font-size:12px;font-variant-numeric:tabular-nums}
/* StudentSpeakingTestDetailView: independent read-only sheet and fixed dock. */
.native-speaking-detail-sheet{padding:0;border:0;border-radius:14px;background:white;color:#151515;width:min(760px,calc(100vw - 32px));height:min(900px,calc(100dvh - 48px));max-width:none;max-height:none;overflow:hidden;box-shadow:0 3px 16px #0003}
.native-speaking-detail-sheet[open]{display:flex;flex-direction:column;gap:8px}
.native-speaking-detail-sheet::backdrop{background:#0005}
.native-speaking-detail-sheet>header{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 16px;gap:8px;flex:none}
.native-speaking-detail-sheet>header h2{font-size:17px;font-weight:600;text-align:center;line-height:1.2;flex:1}
.native-speaking-detail-sheet>header button,.native-speaking-sheet-spacer{min-width:44px;min-height:44px;padding:0;font-size:17px;color:#007aff;font-weight:400}
.native-speaking-detail-picker{display:flex;justify-content:center;flex:none;min-height:44px}
.native-speaking-detail-picker select{font-size:17px;min-height:44px;width:auto;max-width:100%;background:transparent;border:0;color:#007aff;padding:0 12px;text-align:center}
.native-speaking-detail-content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.native-speaking-detail-stack{max-width:760px;margin:0 auto;padding:0 16px 12px;display:flex;flex-direction:column;gap:14px;align-items:stretch;font-size:17px;text-align:left}
.native-speaking-detail-stack p{margin:0;line-height:1.3;white-space:pre-wrap;user-select:text}
.native-speaking-detail-stack h3{margin:0;font-size:17px;font-weight:600;line-height:1.2}
.native-speaking-detail-topic{font-size:15px}.native-speaking-detail-date,.native-speaking-readonly{font-size:12px;color:#8e8e93}.native-speaking-audio-error{font-size:12px;color:#ff9500}
.native-speaking-comparison{display:flex;flex-direction:column;gap:12px;font-size:15px;min-width:0}
.native-speaking-comparison-scroll{overflow-x:auto;max-width:100%}
.native-speaking-comparison-table{width:max-content;display:flex;flex-direction:column;gap:10px}
.native-speaking-comparison-head,.native-speaking-comparison-row{display:flex;align-items:flex-start;gap:10px}
.native-speaking-comparison-row{border-bottom:1px solid #0002;padding-bottom:8px}
.native-speaking-comparison-label{width:140px;flex:none;line-height:1.3}
.native-speaking-comparison-value{width:108px;flex:none;font-variant-numeric:tabular-nums;text-align:center;font-size:15px;font-weight:400;line-height:1.3;color:#8e8e93;overflow-wrap:break-word}
button.native-speaking-comparison-value{padding:0;min-height:44px;color:#007aff}.native-speaking-comparison-head .is-selected{font-weight:700}.native-speaking-comparison-value.is-selected{color:inherit}
.native-speaking-correction,.native-speaking-mistake{display:flex;flex-direction:column;gap:4px}.native-speaking-mistake{gap:6px}.native-speaking-correction del,.native-speaking-mistake>p:first-child{color:#ff3b30}.native-speaking-correction>span,.native-speaking-mistake>p:last-child,.native-speaking-good{color:#34c759}.native-speaking-correction small{font-size:12px}
.native-speaking-detail-dock{padding:0 12px;background:#f5f5f7eb;flex:none;display:flex;flex-direction:column;gap:2px}
.native-speaking-audio-dock,.native-speaking-series-dock{display:flex;align-items:center;gap:8px;min-height:44px}
.native-speaking-audio-dock>button,.native-speaking-series-dock>button{width:44px;min-height:44px;padding:0;color:#007aff;display:flex;align-items:center;justify-content:center}
.native-speaking-audio-dock>input{flex:1;min-width:0;width:auto;height:44px;margin:0;padding:0;accent-color:#007aff}
.native-speaking-series-dock{justify-content:space-between}.native-speaking-series-dock>span{font-size:12px}.native-speaking-previous .native-icon{transform:rotate(180deg)}
.native-speaking-audio-spinner{width:18px;height:18px;border:2px solid #007aff30;border-top-color:#007aff;border-radius:50%;animation:native-speaking-spin 1s linear infinite}@keyframes native-speaking-spin{to{transform:rotate(360deg)}}
