/* Written catalogue only. Shared rail, topbar, bottom navigation and other
 * workspaces keep their current styles. Loaded after the native player sheet. */
.opwe {
  --opwe-action:var(--otoprep-written-action, var(--navy));
  --opwe-focus:var(--otoprep-blue, #1075bc);
  --opwe-panel-radius:var(--otoprep-rs-radius-md, 18px);
}
.opwe .opwe-hero {max-width:850px;padding:0 0 12px}
.opwe .opwe-hero h1 {font-size:clamp(26px, 3vw, 32px);color:var(--ink);margin-bottom:8px}
.opwe .opwe-hero p:not(.opwe-kicker) {font-size:14px;line-height:1.7}
.opwe .opwe-kicker {color:var(--opwe-action);letter-spacing:.1em;margin-bottom:8px}
.opwe .opwe-workspace-tabs {display:flex;flex-wrap:wrap;gap:24px;border-bottom:1px solid var(--line);margin:0 0 22px}
.opwe .opwe-workspace-tab {display:inline-flex;align-items:center;min-height:44px;padding:9px 2px 12px;border-bottom:2px solid transparent;color:var(--muted);font-size:14px;font-weight:650;text-decoration:none}
.opwe .opwe-workspace-tab[aria-current="page"] {color:var(--opwe-action);border-bottom-color:var(--opwe-action)}
.opwe .opwe-workspace-tab:hover {color:var(--opwe-action);text-decoration:underline}
.opwe .opwe-catalogue-section {min-width:0;margin-bottom:26px}
.opwe .opwe-catalogue-section h2 {font-size:20px;letter-spacing:-.02em}
.opwe .opwe-section-description {font-size:13px;color:var(--muted)}
.opwe .opwe-route-list {border:1px solid var(--line);border-radius:var(--opwe-panel-radius);background:white;overflow:hidden;min-width:0}
.opwe .opwe-route-row {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;min-width:0}
.opwe .opwe-route-row + .opwe-route-row {border-top:1px solid var(--line)}
.opwe .opwe-route-copy {min-width:0;flex:1;overflow-wrap:anywhere}
.opwe .opwe-route-copy h3 {font-size:16px;margin:7px 0 5px;color:var(--ink);line-height:1.45}
.opwe .opwe-route-copy p {font-size:12px;line-height:1.6;margin:3px 0;color:var(--muted)}
.opwe .opwe-route-copy .opwe-route-state {color:var(--ink);font-weight:600}
.opwe .opwe-route-actions {display:flex;flex-direction:column;align-items:stretch;gap:8px;max-width:260px;flex-shrink:0}
.opwe .opwe-route-actions button {font-size:13px;min-height:44px}
.opwe .opwe-route-reference {display:block;font-size:11px;color:var(--muted)}
.opwe .opwe-resume-section {background:var(--blue);border:1px solid var(--line);border-radius:var(--opwe-panel-radius);padding:18px;margin-bottom:24px}
.opwe .opwe-resume-section h2 {font-size:18px}
.opwe .opwe-resume-section .opwe-route-list {border-radius:12px}
.opwe .opwe-resume-section .opwe-route-row {padding:13px 16px}
.opwe .opwe-text-link {display:inline-flex;align-items:center;min-height:44px;max-width:100%;font-size:13px;font-weight:650;color:var(--opwe-action);text-underline-offset:3px}
.opwe .opwe-filter-label {display:block;font-size:12px;font-weight:650;color:var(--ink);max-width:440px;margin:14px 0 10px}
.opwe .opwe-filter-label input {display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;margin-top:6px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);font:inherit;font-size:16px}
.opwe .opwe-route-count {font-size:12px;color:var(--muted);margin:10px 0}
.opwe .opwe-route-paging {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;flex-wrap:wrap}
.opwe .opwe-route-paging button,.opwe .opwe-route-paging span {font-size:12px}
.opwe .opwe-empty {padding:20px;margin:0;font-size:14px;color:var(--muted);background:white;border-radius:12px}
.opwe .opwe-home-destinations {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.opwe .opwe-home-destinations .opwe-card {min-width:0}
.opwe .opwe-home-destinations h2 {font-size:20px}
.opwe .opwe-workspace-summary {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.opwe .opwe-workspace-summary>div {display:flex;flex-direction:column;justify-content:space-between;gap:10px;background:white;border:1px solid var(--line);border-radius:var(--opwe-panel-radius);padding:20px;min-width:0}
.opwe .opwe-workspace-summary dt {font-size:12px;color:var(--muted)}
.opwe .opwe-workspace-summary dd {margin:0;font-size:30px;font-weight:650;color:var(--ink)}
.opwe .opwe-release-tabs button[aria-pressed="true"] {color:var(--opwe-action);background:var(--blue);border-color:var(--opwe-action);box-shadow:none}
.opwe .opwe-release-tabs button {font-size:13px}
.opwe .opwe-footer {font-size:11px;margin-top:0;border-color:var(--line)}
.opwe :where(a,button,input,textarea,summary,[tabindex]):focus-visible {outline:3px solid var(--opwe-focus);outline-offset:3px}
/* The shared shell remains the owner of viewport and keyboard clearance. */
.opwe .opwe-editor-part textarea {scroll-margin-top:calc(var(--otoprep-topbar-height, 0px) + 20px);scroll-margin-bottom:calc(var(--otoprep-active-bottom-clearance, 0px) + 24px)}
@media(max-width:900px) {
  .opwe .opwe-home-destinations {grid-template-columns:minmax(0,1fr)}
  .opwe .opwe-home-destinations .opwe-card {padding:20px}
}
@media(max-width:600px) {
  .opwe .opwe-route-row {align-items:stretch;flex-direction:column;gap:12px;padding:16px}
  .opwe .opwe-route-actions {max-width:none;width:100%;align-items:stretch}
  .opwe .opwe-route-copy h3 {font-size:15px}
  .opwe .opwe-resume-section {padding:13px}
  .opwe .opwe-workspace-summary {grid-template-columns:minmax(0,1fr)}
  .opwe .opwe-workspace-summary>div {flex-direction:row;align-items:center}
  .opwe .opwe-workspace-summary dt {max-width:70%}
  .opwe .opwe-workspace-tabs {gap:20px}
  .opwe .opwe-workspace-tab {font-size:13px}
}
/* Flexible practice: native Written tokens and the existing app's viewport clearances only. */
.opwe .opwe-practice-builder {display:block;padding:24px;min-width:0;margin:18px 0}
.opwe .opwe-practice-builder h2 {font-size:24px;margin:0 0 10px}
.opwe .opwe-practice-builder h3 {font-size:15px;margin:18px 0 10px}
.opwe .opwe-practice-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px;margin:20px 0 12px}
.opwe .opwe-practice-field {display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:650;min-width:0;color:var(--ink)}
.opwe .opwe-practice-field input,.opwe .opwe-practice-field select {box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);font:inherit;font-size:16px}
.opwe .opwe-practice-field[hidden] {display:none}
.opwe .opwe-count-choices {display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:8px 0 20px}
.opwe .opwe-count-choices>button {min-width:44px;min-height:44px;padding:10px}
.opwe .opwe-count-choices>button[aria-pressed="true"] {background:var(--blue);border-color:var(--opwe-action);color:var(--opwe-action);box-shadow:inset 0 0 0 1px var(--opwe-action)}
.opwe .opwe-count-choices .opwe-practice-field {width:115px}
.opwe .opwe-practice-help {font-size:11px;color:var(--muted);line-height:1.65;max-width:800px}
.opwe .opwe-practice-library {min-width:0;border-top:1px solid var(--line);margin-top:14px}
.opwe .opwe-question-row {display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--line);min-width:0}
.opwe .opwe-question-row>input[type="checkbox"] {width:24px;height:24px;min-width:24px;accent-color:var(--opwe-action);margin:0}
.opwe .opwe-question-row-copy {min-width:0;flex:1;overflow-wrap:anywhere}
.opwe .opwe-question-row-copy h3 {font-size:14px;margin:0 0 8px;line-height:1.6;font-weight:600}
.opwe .opwe-question-row-copy p,.opwe .opwe-question-row-copy small {font-size:11px;color:var(--muted);line-height:1.6;margin:3px 0}
.opwe .opwe-question-row>button {flex-shrink:0;min-height:44px;font-size:12px}
.opwe .opwe-selection-bar {display:flex;align-items:center;gap:16px;padding-top:18px;margin-top:20px;border-top:1px solid var(--line);min-width:0}
.opwe .opwe-selection-bar>div {flex:1;min-width:0}
.opwe .opwe-selection-bar strong {font-size:14px}
.opwe .opwe-selection-bar p {font-size:11px;color:var(--muted);line-height:1.6;margin:6px 0;overflow-wrap:anywhere}
.opwe .opwe-selection-bar>button {font-size:13px;min-height:44px}
.opwe .opwe-practice-field select:focus-visible {outline:3px solid var(--opwe-focus);outline-offset:3px}
.opwe .opwe-practice-builder .opwe-notice {margin:12px 0}
@media(max-width:740px) {
  .opwe .opwe-practice-builder {padding:20px 16px}
  .opwe .opwe-practice-builder h2 {font-size:22px}
  .opwe .opwe-practice-fields {grid-template-columns:minmax(0,1fr)}
  .opwe .opwe-selection-bar {flex-wrap:wrap}
  .opwe .opwe-selection-bar>div {flex-basis:100%}
  .opwe .opwe-selection-bar>button:last-child {flex:1}
  .opwe .opwe-question-row {display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start}
  .opwe .opwe-question-row:not(:has(>input)) {grid-template-columns:minmax(0,1fr)}
  .opwe .opwe-question-row>button {grid-column:2;justify-self:start}
  .opwe .opwe-count-choices {gap:8px}
  .opwe .opwe-practice-builder .opwe-route-paging {gap:8px}
  .opwe .opwe-workspace-tabs {column-gap:18px;row-gap:0}
}

/* Native retained records. Written-scoped; no shared Quiz/Oral overrides. */
.opwe .opwe-history-questions{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}
.opwe .opwe-history-questions [aria-current="page"]{outline:2px solid var(--opwe-blue,#0b70b2);outline-offset:2px}
.opwe .opwe-record-form label{display:block;margin:1rem 0;font-weight:600}
.opwe .opwe-record-form textarea{display:block;width:100%;min-height:10rem;box-sizing:border-box;resize:vertical;margin-top:.5rem;font:inherit;line-height:1.7}
.opwe .opwe-record-form img{max-width:100%;height:auto}
.opwe .opwe-history-statistics{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.7rem 1rem}
.opwe .opwe-history-statistics dd{margin:0;font-weight:700}
.opwe .opwe-prose{white-space:pre-wrap;overflow-wrap:anywhere}
.opwe .opwe-history-questions button,.opwe .opwe-record-form button{min-height:44px}
@media(max-width:600px){.opwe .opwe-record-form textarea{font-size:16px}.opwe .opwe-history-statistics{font-size:14px}}

/* WORKSPACE_POLISH_24142: shared app and standalone native Written use the same task actions. */
.opwe .opwe-text-link {box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;max-width:100%;padding:10px 14px;margin:2px 0;border:1px solid #becfdd;border-radius:11px;background:#fff;color:#245b88;font-size:14px;font-weight:650;line-height:1.4;text-decoration:none;white-space:normal;overflow-wrap:break-word;}
.opwe .opwe-text-link:hover {background:#edf4f9;color:#18496f;border-color:#789bb8;}
.opwe .opwe-text-link:focus-visible {outline:3px solid #8d580e;outline-offset:3px;}
.opwe .opwe-hero {box-sizing:border-box;max-width:100%;min-width:0;background:#fff;border:1px solid #d4dfe7;border-radius:15px;padding:20px;margin:0 0 18px;}
.opwe .opwe-hero h1 {font-size:clamp(23px,2.4vw,30px);line-height:1.25;color:#19324c;margin:0 0 8px;}
.opwe .opwe-hero p:not(.opwe-kicker) {font-size:15px;line-height:1.6;color:#536579;margin:6px 0 0;}
.opwe .opwe-route-row {flex-wrap:wrap;gap:14px;}
.opwe .opwe-route-copy {flex:1 1 240px;}
.opwe .opwe-route-actions {max-width:100%;min-width:0;}
.opwe .opwe-route-list {overflow:visible;}
.opwe .opwe-text-link[hidden] {display:none!important;}
@media(max-width:600px) {
 .opwe .opwe-hero {padding:16px;}
 .opwe .opwe-route-copy {flex:0 1 auto;}
}
@media(forced-colors:active) {.opwe .opwe-text-link {border-color:ButtonText;forced-color-adjust:auto;}}
