/* Wave 9: Text tool (on-canvas editor + contextual properties) and font catalog. Existing colour tokens only; no inline styles. */
.tt-editor { position: absolute; z-index: 6; display: grid; gap: 6px; padding: 8px; width: min(340px, calc(100% - 16px)); box-sizing: border-box; background: var(--surface); border: 1px solid var(--accent); border-radius: 10px; box-shadow: var(--shadow); }
.tt-editor[hidden] { display: none; }
.tt-input { width: 100%; box-sizing: border-box; min-height: 40px; max-height: 120px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2, var(--surface)); color: var(--text); font: 600 18px/1.25 system-ui, sans-serif; resize: vertical; }
.tt-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.tt-props { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; }
.tt-props label { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.tt-props select, .tt-props input[type=number] { width: 100%; box-sizing: border-box; min-height: 28px; }
.tt-props input[type=color] { width: 100%; height: 28px; padding: 0; border: 1px solid var(--border); background: none; }
.tt-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tt-hint { margin: 0; font-size: 12px; color: var(--muted); }
.tt-marker { position: absolute; z-index: 5; width: 12px; height: 12px; margin: -6px 0 0 -6px; border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; }
.tt-marker[hidden] { display: none; }
.fc-modal { width: min(960px, 100%); }
.fc-filters { display: grid; grid-template-columns: minmax(160px, 2fr) repeat(3, minmax(110px, 1fr)); gap: 6px; }
.fc-filters input, .fc-filters select { min-height: 30px; width: 100%; box-sizing: border-box; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.fc-card { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); align-content: start; }
.fc-card.current { border-color: var(--accent); }
.fc-card h3 { margin: 0; font-size: 14px; }
.fc-card .row { flex-wrap: wrap; gap: 6px; }
.fc-prev { height: 56px; display: grid; place-items: center start; color: var(--text); overflow: hidden; }
.fc-svg { height: 48px; max-width: 100%; width: auto; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.cr-browse { justify-self: start; }
@media (max-width: 700px) { .fc-filters { grid-template-columns: 1fr 1fr; } }
