/* Complements the existing themes and native controls on learner and owner pages. */
.feeli-ux-visually-hidden { position:absolute; inline-size:1px; block-size:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.feeli-ux-ops, .feeli-ux-results, .feeli-ux-wallet {margin-block:1rem;}
.feeli-ux-ops dl {display:grid;grid-template-columns:minmax(8rem,1fr) minmax(9rem,2fr);gap:.4rem 1rem;}
.feeli-ux-ops dd {margin:0;unicode-bidi:plaintext;}
.feeli-ux-ops h3,.feeli-ux-results h3 {font-size:1.1rem;}
.feeli-ux-results table {width:100%;border-collapse:collapse;margin-block:1rem;text-align:start;}
.feeli-ux-results caption {font-weight:700;text-align:start;}
.feeli-ux-results th,.feeli-ux-results td {text-align:start;padding:.35em;border-block-end:1px solid var(--line,currentColor);}
.feeli-ux-results th[scope=row] {overflow-wrap:anywhere;}
.feeli-ux-review-links {display:flex;flex-wrap:wrap;gap:.4rem;}
.feeli-ux-results summary {cursor:pointer;min-block-size:44px;}
.feeli-ux-wallet bdi {overflow-wrap:anywhere;}
.feeli-ux-count {padding-inline:.35rem;font-size:.78rem;white-space:nowrap;}
.feeli-ux-cell-label {display:none;}
.feeli-ux-retry {display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .9rem;}
.feeli-ux-retry p {flex-basis:100%;margin-block:.3rem;}
.feeli-ux-retry label {display:flex;align-items:center;gap:.5rem;min-height:44px;}
.feeli-ux-retry small {font-variant-numeric:tabular-nums;}
.product-question .product-answer-actions .product-unsure {margin:0;}
@supports (min-height:100dvh) {
  #app .workspace, #app .sidebar {min-height:100dvh;}
  #center-sidebar {max-height:100dvh;}
}
@media (max-width:768px) {
  html body input:not([type=checkbox]):not([type=radio]):not([type=hidden]), html body select, html body textarea {font-size:max(16px,1em) !important;}
  .product-question .option, .product-question .btn, .product-question .text-button, .product-reader-top-actions button,
  .product-question .product-unsure, .product-question-map button, #app .mobile-menu, #app .pagination button, .app-footer button {min-height:44px;min-width:44px;}
  body.feeli-product-shell .product-question .product-answer-actions {position:sticky;bottom:calc(4.2rem + env(safe-area-inset-bottom,0px));z-index:3;display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .5rem; background:var(--surface,#fff);border:1px solid var(--line,#aeb4bd);border-radius:.75rem;padding:.4rem .55rem;margin-block:1rem;}
  .product-question .product-answer-actions .product-unsure {font-size:.88rem;gap:.4rem;}
  .feeli-ux-shortcuts {display:none !important;}
  #app .main {padding-bottom:calc(2rem + env(safe-area-inset-bottom,0px));}
  #center-sidebar {padding-bottom:calc(.75rem + env(safe-area-inset-bottom,0px));overflow-y:auto;}
}
@media(max-width:640px) {
  /* Keep native table semantics for assistive technology; visible labels become cards. */
  #app .table-wrap:has(table[data-feeli-ux-table]) {overflow:visible;}
  #app .data-table[data-feeli-ux-table] {display:block;white-space:normal;}
  #app .data-table[data-feeli-ux-table] thead {position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);}
  #app .data-table[data-feeli-ux-table] tbody {display:grid;gap:.6rem;}
  #app .data-table[data-feeli-ux-table] tbody tr {display:block;border:1px solid var(--line,#cbd0de);border-radius:.65rem;padding:.4rem;}
  #app .data-table[data-feeli-ux-table] td {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.3rem .55rem;white-space:normal;overflow-wrap:anywhere;text-align:start;padding:.35rem;}
  #app .feeli-ux-cell-label {display:inline;font-weight:600;color:var(--muted,currentColor);}
  .feeli-ux-ops dl {grid-template-columns:minmax(5rem,1fr) 1.3fr;}
}
@media print {
 .product-reader-layout, .product-question, .product-question-map, .pq-answer, .feeli-ux-retry, [data-feeli-ux-private="operations"] {display:none !important;}
}

/* Hide retired standalone blocks even before hydration completes. */
.pq-key-point, .ae-sample-tip, [data-feeli-key-point] {display:none !important;}
