.skip-link{position:fixed;top:8px;left:8px;z-index:1000;transform:translateY(-180%);padding:10px 16px;background:#fff;color:#182639;border:1px solid #78879a;border-radius:8px}
.skip-link:focus{transform:translateY(0);outline:3px solid #805008;outline-offset:2px}
.preparation-tools{max-width:900px;margin:24px auto;padding:24px;border:1px solid var(--learn-line);border-radius:var(--learn-radius);background:var(--learn-surface);color:var(--learn-ink)}
.preparation-tools h2{font-size:1.4rem}.preparation-tools h3{font-size:1.1rem}
.preparation-tools :is(p,label,legend,li,td,th,summary){color:#182639!important;-webkit-text-fill-color:currentColor!important;overflow-wrap:anywhere}
.preparation-tools label{display:grid;gap:8px;text-transform:none;letter-spacing:normal;margin:12px 0;font-weight:500}
.preparation-tools :is(input:not([type=radio]),select){box-sizing:border-box;width:100%;min-height:44px;border:1px solid #78879a;border-radius:8px;background:#fff;color:#182639;font:inherit;padding:10px}
.preparation-tools button{min-height:var(--learn-control-size);border:1px solid var(--learn-action);border-radius:8px;padding:10px 16px;background:var(--learn-action);color:var(--learn-on-action);font:inherit;font-weight:600;cursor:pointer}
.preparation-tools button:disabled{background:#e8edf3;color:#46566b;border-color:#91a0b2;cursor:default}
.preparation-tools .training-option{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #91a0b2;border-radius:8px;min-height:44px;box-sizing:border-box}
.preparation-tools input[type=radio]{width:18px;height:18px;min-width:18px;accent-color:#805008;margin:0;flex:0 0 18px}
.preparation-tools a{color:#744707;text-decoration:underline;text-underline-offset:3px}
.preparation-tools a.content-button{color:#fff}
.training-question{min-width:0;border:0;padding:0;margin:16px 0}.training-question legend{font-weight:600;width:100%;padding:0}
.training-actions{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.training-feedback{padding:16px;background:var(--learn-soft);border-radius:10px}
.preparation-tools .training-feedback{margin:16px 0}
.preparation-tools textarea{box-sizing:border-box;width:100%;max-width:100%;background:#fff;color:#182639;border:1px solid #78879a;border-radius:8px;font:inherit;padding:12px;resize:vertical}
.preparation-tools input[type=checkbox]{width:18px;height:18px;min-width:18px;min-height:18px;accent-color:#805008;margin:0;flex:0 0 18px}
.lab-provenance,.lab-writing{padding:16px 0;border-top:1px solid #91a0b2;margin:16px 0}
.preparation-tools summary{cursor:pointer;min-height:44px;padding:8px 0;font-weight:600}
.preparation-tools :is(#lab-discard,#orientation-forget,#orientation-remove){display:block;margin-top:16px;background:#fff;color:#744707;border-color:#805008}
[data-theme=dark] .preparation-tools :is(#lab-discard,#orientation-forget,#orientation-remove){background:#182536;color:#f1c879;border-color:#f1c879}
#lab-step-title,#lab-result{scroll-margin-top:100px}
.preparation-tools :focus-visible{outline:3px solid #805008;outline-offset:3px}
.training-table{overflow:auto}.training-table table{width:100%;min-width:560px;border-collapse:collapse}.training-table :is(th,td){padding:10px;text-align:left;border-bottom:1px solid #91a0b2;overflow-wrap:normal}
#mock-strategy th[scope=row]{min-width:200px}.training-table td{min-width:80px}
.route-tool-links{display:flex;gap:16px;flex-wrap:wrap;padding:16px 0}
[data-theme=dark] .preparation-tools{background:#182536;color:#edf3fc}
[data-theme=dark] .preparation-tools :is(p,label,legend,li,td,th,summary){color:#edf3fc!important}
[data-theme=dark] .preparation-tools :is(h2,h3){color:#edf3fc!important}
[data-theme=dark] .preparation-tools .training-feedback{background:#25374c}
[data-theme=dark] .preparation-tools a:not(.content-button){color:#f1c879}
[data-theme=dark] .preparation-tools :focus-visible{outline-color:#f1c879}
/* Own both foreground and background inside legacy private-page overrides. */
body[data-page] #page-content .preparation-tools :is(p,label,legend,li,td,th,summary,small,h2,h3,h4,strong){color:#182639!important;-webkit-text-fill-color:currentColor!important}
body[data-page] #page-content .preparation-tools :is(td,th){background:#fff!important}
[data-theme=dark] body[data-page] #page-content .preparation-tools :is(p,label,legend,li,td,th,summary,small,h2,h3,h4,strong){color:#edf3fc!important;-webkit-text-fill-color:currentColor!important}
[data-theme=dark] body[data-page] #page-content .preparation-tools :is(td,th){background:#182536!important}
@media(max-width:600px){.preparation-tools{padding:16px;margin:16px 0}.training-actions{display:grid}.preparation-tools button{width:100%}}
.case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.case-card{border:1px solid #8b9bb3;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:8px}.case-card h2{font-size:1.12rem;margin:0}.case-card p{margin:0}.case-card .training-actions{margin-top:auto;padding-top:12px}.case-card[hidden]{display:none}.preparation-tools [data-bridge-form] input{max-width:300px}.preparation-tools section[id]{scroll-margin-top:100px}@media(max-width:700px){.case-grid{grid-template-columns:1fr}.case-card{padding:16px}}
.applied-page-header{padding:16px 0 4px}.applied-page-header h1{font-size:clamp(1.35rem,3vw,1.8rem);line-height:1.25;margin:8px 0}.applied-page-header p{max-width:76ch;margin:8px 0}
.account-nav{display:flex;gap:12px;margin-left:auto;flex-wrap:wrap}.account-nav a{color:var(--ui-text);font-size:.875rem;line-height:44px;white-space:nowrap}
html body[data-page=admin] .operations-tabs{display:flex;flex-wrap:wrap;gap:8px;overflow:visible}
html body[data-page=admin] .operations-tabs .tab-btn{flex:1 1 125px;min-width:0;width:auto;white-space:normal}
/* The operations surface owns its colors; legacy admin cards force light fills. */
html[data-theme=dark] body[data-page=admin] #operations-panel .preparation-tools{background:#182536!important;color:#edf3fc!important}
html[data-theme=dark] body[data-page=admin] #page-content #operations-panel .preparation-tools :is(p,label,summary,h2,h3,h4,small,strong){color:#edf3fc!important;-webkit-text-fill-color:#edf3fc!important}
/* Admin tables retain explicit light surfaces in both themes. */
html body[data-page=admin] #page-content .applied-funnel :is(th,td){background:#f4f6f9!important;color:#182639!important;-webkit-text-fill-color:currentColor!important}
html body[data-page=admin] #page-content .analytics-toolbar .kicker{color:#744707!important;-webkit-text-fill-color:currentColor!important}
html[data-theme=dark] body[data-page=admin] #page-content .preparation-tools :is(p,label,legend,li,td,th,summary,small,h2,h3,h4,strong){color:#edf3fc!important;-webkit-text-fill-color:currentColor!important}
html body[data-page=admin] #page-content :is(.analytics-toolbar,.analytics-card,.analytics-kpi){background:#fff!important;color:#182639!important}
html body[data-page=admin] #page-content :is(.analytics-toolbar,.analytics-card,.analytics-kpi) :is(p,label,small,h2,h3,h4,strong,li,summary):not(.preparation-tools *):not(.academic-review *){color:#182639!important;-webkit-text-fill-color:currentColor!important}
html body[data-page=admin] #page-content :is(.analytics-funnel,.analytics-section-head) :is(small,strong){color:#182639!important;-webkit-text-fill-color:currentColor!important}
