/* 12-05: result-wait tracker, speaking pictures and dialogues, combination table, letter PDFs. Same paper, ink and yellow as dtz-design.css. */
.fx-label {font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: #564522; margin: 0}
.fx-quote, .fx-card blockquote {margin: 14px 0; padding: 2px 0 2px 16px; border-inline-start: 3px solid var(--ink)}
.fx-quote p, .fx-card blockquote p {margin: 0 0 6px; font-size: 1.02rem}
.fx-src {font-size: .86rem !important; color: var(--muted); margin: 0 !important}
.fx-checked {margin: 22px 0 6px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-block-start: 3px solid var(--ink)}
.fx-checked p {margin: 0}
.fx-checked p + p {margin-top: 6px; font-size: .93rem}

/* --- 27 combinations */
.fx-combos {margin-block: 34px}
.fx-matrix {margin: 16px 0}
.fx-matrix table {width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--paper); border: 2px solid var(--ink)}
.fx-matrix caption {display: block; hyphens: none; white-space: nowrap; text-align: start; font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 8px 10px 6px}
.fx-matrix caption strong {background: var(--ink); color: var(--yellow); padding: 2px 7px; font-weight: 400}
.fx-matrix th, .fx-matrix td {border: 1px solid var(--line); padding: 9px 10px; text-align: start; vertical-align: top; hyphens: none; overflow-wrap: normal}
.fx-matrix th {font-size: .84rem; font-weight: 700; background: #fbf5e3}
.fx-r strong {display: block; font-size: 1.08rem}
.fx-r small {display: block; font-size: .76rem; color: var(--bad); line-height: 1.3; margin-top: 2px}
.fx-r-b1 {background: var(--yellow)}
.fx-r-u {color: var(--muted)}
.fx-r-u strong {font-weight: 600}
.fx-changed {box-shadow: inset 0 0 0 2px var(--bad)}
.fx-legend {font-size: .88rem; color: var(--muted); display: flex; gap: 8px; align-items: baseline}
.fx-key {flex: none; width: 14px; height: 14px; display: inline-block; background: var(--paper); translate: 0 2px}
.fx-flat {margin: 16px 0}
.fx-flat > summary, .fx-index > summary {cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 8px}
.fx-flat table {width: 100%; border-collapse: collapse; background: var(--paper)}
.fx-flat th, .fx-flat td {border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: start; font-size: .92rem; hyphens: none}
@media (max-width: 560px) {
  .fx-matrix table, .fx-matrix tbody, .fx-matrix tr, .fx-matrix th, .fx-matrix td {display: block}
  .fx-matrix tr:first-child {display: none}
  .fx-matrix tr {display: grid; grid-template-columns: repeat(3, 1fr)}
  .fx-matrix th[scope=row] {grid-column: 1 / -1; border-block-start: 2px solid var(--ink)}
  .fx-matrix td::before {content: attr(data-label); display: block; font-size: .7rem; color: var(--muted); line-height: 1.25; margin-bottom: 3px}
  .fx-matrix td {padding: 8px 7px}
}

/* --- pictures */
.fx-steps {display: grid; gap: 8px; padding-inline-start: 1.3em; margin: 14px 0}
.fx-index ol {columns: 2 220px; padding-inline-start: 1.5em; margin: 4px 0 14px}
.fx-index li {break-inside: avoid; padding: 3px 0}
.fx-gallery {display: grid; gap: 34px; margin: 22px 0}
.fx-pic {display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); max-width: 680px; padding-block-start: 22px; border-block-start: 2px solid var(--ink); scroll-margin-top: 12px}
.fx-pic figure {margin: 0}
.fx-pic img {display: block; width: 100%; height: auto; border: 1px solid var(--ink); background: var(--soft)}
.fx-pic figcaption {padding-top: 7px}
.fx-pic h3 {margin: 0 0 8px; font-size: 1.32rem}
.fx-words {font-size: .93rem; color: #3d3423; margin: 0 0 12px}
.fx-words .fx-label {margin-inline-end: 6px}
.fx-sample, .fx-flat, .fx-index {border-radius: 2px}
.fx-sample {border: 1px solid var(--line); background: var(--paper); margin: 8px 0}
.fx-sample > summary {cursor: pointer; min-height: 48px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; font-weight: 700; list-style: none}
.fx-sample > summary::-webkit-details-marker {display: none}
.fx-sample > summary::after {content: "+"; margin-inline-start: auto; font-family: var(--mono); font-size: 1.1rem}
.fx-sample[open] > summary::after {content: "–"}
.fx-sample[open] > summary {border-bottom: 1px solid var(--line)}
.fx-sample > :not(summary) {margin: 12px}
.fx-sample audio, .fx-dialog > audio {display: block; width: calc(100% - 24px); height: 40px}
.fx-dialog > audio {width: 100%; margin: 10px 0}
.fx-level {flex: none; font-family: var(--mono); font-size: .78rem; min-width: 2.4em; text-align: center; padding: 2px 5px; border: 1px solid var(--ink)}
.fx-b1 .fx-level {background: var(--yellow)}
.fx-2b .fx-level {background: var(--ink); color: var(--yellow)}
.fx-a2 {border-style: dashed}
.fx-sample ol {padding-inline-start: 1.3em}

/* --- dialogues */
.fx-dialog {padding-block: 22px 8px; border-block-start: 2px solid var(--ink); scroll-margin-top: 12px}
.fx-dialog h3 {margin: 4px 0 10px; font-size: 1.32rem}
.fx-sheet {background: var(--paper); border: 1px solid var(--ink); padding: 12px 16px; max-width: 640px; box-shadow: 5px 5px 0 var(--yellow)}
.fx-sheet p {margin: 4px 0 8px}
.fx-sheet ul {margin: 0; padding-inline-start: 1.2em; columns: 2 180px}
.fx-turns p {margin: 0; padding: 8px 0 8px 2.3em; position: relative; border-bottom: 1px solid var(--line)}
.fx-turns p:last-child {border-bottom: 0}
.fx-turns b {position: absolute; inset-inline-start: 0; top: 9px; font-family: var(--mono); font-weight: 400; font-size: .8rem; width: 1.7em; text-align: center; border: 1px solid var(--ink)}
.fx-turns p:nth-child(odd) b {background: var(--yellow)}

/* --- letter PDFs */
.fx-pdf {margin: 10px 0 18px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-inline-start: 4px solid var(--ink)}
.fx-pdf .fx-label {display: inline-block; margin-inline-end: 8px; padding: 1px 6px; background: var(--ink); color: var(--yellow)}
.fx-collection {background: var(--yellow); border: 2px solid var(--ink); padding: 18px 20px; margin: 18px 0; max-width: 720px}
.fx-collection h2 {margin: 6px 0}
.fx-pdf-list {list-style: none; padding: 0; margin: 10px 0; border-top: 1px solid var(--line)}
.fx-pdf-list li {display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line)}
.fx-pdf-file {font-weight: 700; min-height: 30px}
.fx-pdf-file .fx-label {display: inline-block; margin-inline-end: 8px; padding: 1px 6px; border: 1px solid var(--ink); color: var(--ink)}
.fx-pdf-web {font-size: .9rem}

/* --- results: how long */
.fx-status {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 20px 0 30px}
.fx-card {background: var(--paper); border: 2px solid var(--ink); padding: 16px 18px}
.fx-card-live {box-shadow: 6px 6px 0 var(--yellow)}
.fx-big {font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 850; line-height: 1.08; margin: 6px 0 10px; letter-spacing: -.015em}
.fx-card > p:last-child {margin-bottom: 0; font-size: .94rem}
.fx-wait {background: var(--yellow); border: 2px solid var(--ink); padding: 18px 20px; margin: 26px 0}
.fx-wait h2 {margin-top: 0}
.fx-wait-form {display: grid; gap: 14px; max-width: 640px}
.fx-wait-form fieldset {border: 0; padding: 0; margin: 0; display: grid; gap: 6px}
.fx-wait-form legend, .fx-date {font-weight: 700}
.fx-wait-form fieldset label {display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 4px 12px; background: var(--paper); border: 1px solid var(--ink); cursor: pointer}
.fx-wait-form input[type=radio] {width: 20px; height: 20px; accent-color: var(--ink); margin: 0}
.fx-date {display: grid; gap: 6px}
.fx-date input {font: inherit; min-height: 48px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); max-width: 16rem}
.fx-wait-out:not(:empty) {background: var(--paper); border: 2px solid var(--ink); padding: 14px 16px}
.fx-wait-out p {margin: 0 0 8px}
.fx-wait-out p:last-child {margin: 0}
.fx-wait-out .fx-big {font-size: clamp(1.3rem, 3vw, 1.8rem)}
.fx-timeline {list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 0}
.fx-timeline li {display: grid; grid-template-columns: 6.6em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line)}
.fx-timeline time {font-family: var(--mono); font-size: .84rem; padding-top: 2px}
.fx-wait-static p {margin: 6px 0}
.fx-wait .small {margin-bottom: 0}
.fx-path {display: grid; gap: 8px; padding-inline-start: 1.3em}
.fx-chart {margin: 18px 0; background: var(--paper); border: 1px solid var(--line); padding: 12px 10px 10px}
.fx-chart svg {display: block; width: 100%; height: auto; overflow: visible}
.fx-chart-m {display: none !important}
@media (max-width: 620px) {.fx-chart-d {display: none !important} .fx-chart-m {display: block !important}}
.fx-chart figcaption {font-size: .86rem; color: var(--muted); padding: 6px 6px 0}
.fx-grid {stroke: #e6dcc6; stroke-width: 1}
.fx-tick {stroke: var(--muted); stroke-width: 1}
.fx-axis {font: 12px var(--mono); fill: var(--muted)}
.fx-value {font: 700 15px var(--display); fill: var(--ink)}
.fx-line {fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round}
.fx-dot circle {fill: var(--ink); stroke: var(--paper); stroke-width: 2}
.fx-dot.fx-last circle:first-child {fill: var(--bad)}
.fx-dot .fx-hit {fill: transparent; stroke: none}
.fx-dot:hover circle:first-child {fill: var(--bad)}
.fx-log {width: 100%; border-collapse: collapse; background: var(--paper)}
.fx-log th, .fx-log td {border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: start; font-size: .92rem; font-variant-numeric: tabular-nums; hyphens: none; white-space: nowrap}
@media (max-width: 720px) {
  .fx-status {grid-template-columns: minmax(0, 1fr)}
  .fx-wait {padding: 14px}
}
html[dir=rtl] .fx-pic, html[dir=rtl] .fx-dialog, html[dir=rtl] .fx-matrix, html[dir=rtl] .fx-status, html[dir=rtl] .fx-wait {direction: ltr; text-align: left}
@media (prefers-reduced-motion: no-preference) {
  .fx-sample[open] > :not(summary) {animation: fx-in .18s ease-out}
  @keyframes fx-in {from {opacity: 0; translate: 0 -4px} to {opacity: 1; translate: 0 0}}
}
@media print {
  .fx-wait-form, .fx-sample audio, .fx-dialog > audio {display: none}
}
