/* RT-TXT-068 — Four-Corner Code Lookup.
 * Light surfaces throughout: --rt-ink / --rt-ink-soft on --rt-surface, digits
 * in --rt-accent. No navy result box, so no --rt-result-* tokens
 * (docs/contrast-conventions.md). */

.fc-form { display: flex; flex-direction: column; gap: var(--rt-s-4); min-width: 0; }
.fc-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fc-label { font-family: var(--rt-font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; color: var(--rt-ink-muted); }
.fc-input {
    width: 100%; box-sizing: border-box; padding: 10px 14px;
    border: 1px solid var(--rt-hairline); border-radius: var(--rt-r-button);
    background: var(--rt-surface); color: var(--rt-ink); font-size: 20px; line-height: 1.4;
}
.fc-input:focus { outline: none; border-color: var(--rt-accent); box-shadow: 0 0 0 3px var(--rt-accent-soft); }
.fc-samples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fc-samples-label { font-size: 11px; color: var(--rt-ink-soft); margin-right: 2px; }
.fc-chip { padding: 5px 11px; border-radius: var(--rt-r-chip); cursor: pointer; border: 1px solid var(--rt-hairline); background: var(--rt-surface-2); color: var(--rt-ink); font-size: 14px; }
.fc-chip:hover { border-color: var(--rt-accent); background: var(--rt-surface); }

.fc-out { min-width: 0; }
/* CLS floor for the default text (四角號碼: four cards). */
.fc-out.fc-reserve { min-height: 640px; }
.fc-result { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fc-card { border: 1px solid var(--rt-hairline); border-radius: var(--rt-r-card); background: var(--rt-surface); padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.fc-card-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.fc-card-char { font-size: 40px; line-height: 1; color: var(--rt-ink); }
.fc-card-codes { display: flex; gap: 6px; align-items: center; }
.fc-code { font-family: var(--rt-font-mono); font-size: 20px; font-weight: 600; letter-spacing: .06em; color: var(--rt-ink); background: none; border: 1px solid var(--rt-hairline); border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.fc-code:hover { border-color: var(--rt-accent); }
.fc-or, .fc-strokes { font-size: 12.5px; color: var(--rt-ink-soft); }
.fc-none { font-size: 13px; color: var(--rt-ink-soft); }
.fc-parts { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; }
.fc-parts li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--rt-ink); }
.fc-part-digit { font-family: var(--rt-font-mono); font-weight: 700; color: var(--rt-accent); width: 1ch; }
.fc-part-glyph { font-size: 18px; width: 1.4em; text-align: center; }
.fc-part-text { color: var(--rt-ink); }
.fc-summary, .fc-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--rt-ink-soft); }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px; }
.fc-cell { font-size: 24px; line-height: 1; padding: 8px 0; border: 1px solid var(--rt-hairline); border-radius: 6px; background: var(--rt-surface); color: var(--rt-ink); cursor: pointer; }
.fc-cell:hover { border-color: var(--rt-accent); }

.fc-key { border: 1px solid var(--rt-hairline); border-radius: var(--rt-r-card); background: var(--rt-surface); padding: 8px 14px; }
.fc-key summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--rt-ink); }
.fc-shapes { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; font-size: 13.5px; color: var(--rt-ink); }
.fc-shape-digit { font-family: var(--rt-font-mono); font-weight: 700; color: var(--rt-accent); }
.fc-shape-glyph { font-size: 18px; }

.fc-ack { font-size: 11.5px; color: var(--rt-ink-soft); line-height: 1.6; margin: 0; }
.fc-ack a { color: inherit; }
