/* Shared saved-response presentation, loaded only by the PTE and DET hubs. */
.practice-attempts[data-exam="det"] { --attempt-surface: var(--det-card); --attempt-soft: var(--det-card-soft); --attempt-border: var(--det-border); --attempt-text: var(--det-text); --attempt-muted: var(--det-text-secondary); --attempt-accent: var(--det-primary-dark); --attempt-selected: var(--det-primary-light); }
.practice-attempts[data-exam="pte"] { --attempt-surface: var(--pte-surface); --attempt-soft: var(--pte-surface-soft); --attempt-border: var(--pte-border); --attempt-text: var(--pte-text); --attempt-muted: var(--pte-text-secondary); --attempt-accent: var(--pte-sage); --attempt-selected: var(--pte-sage-soft); }
.practice-attempts { color: var(--attempt-text); font-family: Inter, system-ui, sans-serif; font-size: 14px; line-height: 1.5; min-width: 0; }
.practice-attempts *, .practice-attempts *::before, .practice-attempts *::after { box-sizing: border-box; }
.practice-attempts [hidden] { display: none !important; }
.practice-attempts h1, .practice-attempts h2, .practice-attempts h3, .practice-attempts p { margin: 0; }
.practice-attempts h1 { font: 500 30px/1.3 Poppins, Inter, sans-serif; letter-spacing: -.7px; color: var(--attempt-text); }
.practice-attempts h2 { font-size: 17px; line-height: 1.5; font-weight: 500; color: var(--attempt-text); }
.practice-attempts h3 { font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--attempt-text); overflow-wrap: anywhere; }
.practice-attempts button, .practice-attempts select { font: inherit; }
.practice-attempt-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.practice-attempt-heading > div > p:last-child { color: var(--attempt-muted); font-size: 13px; margin-top: 10px; }
.practice-attempts .practice-attempt-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--attempt-muted); margin-bottom: 9px; }
.practice-attempt-panel { background: var(--attempt-surface); border: 1px solid var(--attempt-border); border-radius: 11px; overflow: clip; }
.practice-attempt-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 19px 22px; border-bottom: 1px solid var(--attempt-border); }
.practice-attempt-link { display: inline-flex; align-items: center; justify-content: end; gap: 6px; min-height: 44px; background: transparent; border: 0; padding: 0; color: var(--attempt-accent); font: 500 12px/1.5 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.practice-attempt-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.practice-attempt-link svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.practice-attempt-table-head, .practice-attempt-row { display: grid; grid-template-columns: minmax(0, 1fr) 135px 115px; align-items: center; gap: 18px; padding: 17px 22px; }
.practice-attempt-row + .practice-attempt-row { border-top: 1px solid var(--attempt-border); }
.practice-attempt-info p { color: var(--attempt-muted); font-size: 11px; margin-top: 5px; }
.practice-attempt-score { font-variant-numeric: tabular-nums; }
.practice-attempt-score strong { color: var(--attempt-text); font-size: 17px; font-weight: 500; }
.practice-attempt-score small { color: var(--attempt-muted); font-size: 11px; font-weight: 400; }
.practice-attempt-score > span { display: block; color: var(--attempt-muted); font-size: 11px; margin-top: 3px; }
.practice-attempt-table-head { background: var(--attempt-soft); color: var(--attempt-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .5px; padding-block: 12px; }
.practice-attempt-table-head > span:last-child { text-align: right; }
.practice-attempt-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.practice-attempt-tabs { display: flex; gap: 24px; }
.practice-attempt-tabs button { min-height: 44px; padding: 8px 0; color: var(--attempt-muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 14px; cursor: pointer; }
.practice-attempt-tabs button[aria-pressed="true"] { color: var(--attempt-accent); border-bottom-color: var(--attempt-accent); font-weight: 500; }
.practice-attempt-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.practice-attempt-filters select { padding: 10px 28px 10px 11px; background: var(--attempt-surface); color: var(--attempt-text); border: 1px solid var(--attempt-border); border-radius: 7px; font-size: 12px; min-height: 44px; max-width: 100%; }
.practice-attempt-filters label { min-width: 0; max-width: 100%; }
.practice-attempts .practice-attempt-disclaimer { margin: 13px 0 18px; color: var(--attempt-muted); font-size: 11px; }
.practice-attempt-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 15px; background: var(--attempt-surface); color: var(--attempt-accent); border: 1px solid var(--attempt-border); border-radius: 7px; font-size: 12px; font-weight: 500; text-decoration: none; cursor: pointer; }
.practice-attempts :is(a, button, select):focus-visible { outline: 2px solid var(--attempt-accent); outline-offset: 3px; }
.practice-attempts button:disabled { opacity: .55; cursor: wait; }
.practice-attempt-pagination { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 15px; font-size: 12px; }
.practice-attempts .practice-attempt-empty { padding: 24px 22px; color: var(--attempt-muted); font-size: 13px; }
.practice-attempt-empty .practice-attempt-button { margin-top: 16px; }
.practice-attempt-analysis { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; margin-top: 22px; background: var(--attempt-surface); border: 1px solid var(--attempt-border); border-radius: 10px; }
.practice-attempt-analysis h2 { font-size: 13px; }
.practice-attempt-analysis h2 span { display: inline-block; vertical-align: middle; margin-left: 5px; font-size: 9px; letter-spacing: .5px; padding: 3px 5px; background: var(--attempt-selected); border-radius: 4px; }
.practice-attempt-analysis p { font-size: 12px; margin-top: 5px; color: var(--attempt-muted); }
.practice-attempts-recent { margin: 18px 0 28px; }
.practice-attempt-drafts { margin-bottom: 20px; }
.practice-attempt-drafts h2 { font-size: 14px; margin-bottom: 8px; }
.practice-attempt-draft { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--attempt-soft); padding: 13px 18px; border-radius: 8px; margin-top: 8px; }
.practice-attempt-draft h3 { font-size: 13px; }
.practice-attempt-draft p { font-size: 11px; color: var(--attempt-muted); margin-top: 4px; }
.practice-attempt-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.det-practice-container[data-active-section="attempts"] .det-page-header { display: none; }
.pte-discovery.pte-attempts-active .pte-header, .pte-discovery.pte-attempts-active .pte-toolbar, .pte-discovery.pte-attempts-active .pte-usage-banner { display: none !important; }
.pte-discovery.pte-attempts-active .pte-catalog { display: contents; }
.pte-discovery.pte-attempts-active #pte-content { max-width: 1160px; margin-inline: auto; }
.pte-item-attempts { display: none; align-items: center; gap: 6px; min-height: 44px; border: 0; padding: 8px 0; margin-left: auto; background: transparent; color: var(--pte-sage); font: 500 13px/1.4 Inter, sans-serif; white-space: nowrap; cursor: pointer; }
/* Entry and results only: active tasks stay focused, including untimed practice. */
.pte-task-detail:is(.pte-task-intro-detail, .is-stage-result):not(.is-stage-error, .is-stage-processing) .pte-item-attempts { display: inline-flex; }
.pte-item-attempts svg { width: 16px; height: 16px; flex-shrink: 0; }
.pte-item-attempts:hover span { text-decoration: underline; text-underline-offset: 4px; }
.pte-item-attempts:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.pte-item-attempts:disabled { opacity: .55; cursor: default; }
@media (max-width: 700px) {
    .practice-attempt-heading { flex-wrap: wrap; }
    .practice-attempt-table-head { display: none; }
    .practice-attempt-row { grid-template-columns: minmax(0, 1fr) 110px; gap: 6px 15px; padding: 17px; }
    .practice-attempt-info { grid-column: 1; grid-row: 1 / 3; }
    .practice-attempt-score { grid-column: 2; grid-row: 1; }
    .practice-attempt-row > .practice-attempt-link { grid-column: 2; grid-row: 2; justify-content: start; font-size: 11px; }
    .practice-attempt-panel-head { padding: 16px 17px; }
    .practice-attempt-analysis { flex-wrap: wrap; padding: 17px; }
    .practice-attempt-filters { width: 100%; }
    .practice-attempt-filters label { flex: 1 1 140px; }
    .practice-attempt-filters select { width: 100%; }
}
