.fh-composer { --fh-blue: #346cff; --fh-blue-soft: rgba(52, 108, 255, .14); display: flex; flex-direction: column; gap: 14px; } .fh-composer [hidden] { display: none !important; } .fh-section { border: 1px solid var(--border-color-primary); border-radius: 12px; padding: 12px; background: var(--block-background-fill); } .fh-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; } .fh-title { font-weight: 600; font-size: .9rem; } .fh-counts { font-size: .75rem; color: var(--body-text-color-subdued); font-variant-numeric: tabular-nums; } .fh-tray { display: flex; flex-wrap: wrap; gap: 10px; } .fh-drop { width: 132px; height: 150px; border: 1.5px dashed var(--border-color-primary); border-radius: 10px; background: transparent; color: var(--body-text-color-subdued); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font: inherit; text-align: center; padding: 8px; transition: border-color .15s, background .15s, color .15s; } .fh-drop:hover, .fh-tray.is-over .fh-drop { border-color: var(--fh-blue); color: var(--fh-blue); background: var(--fh-blue-soft); } .fh-drop-icon { font-size: 1.6rem; line-height: 1; } .fh-drop-text { font-size: .78rem; line-height: 1.3; } .fh-card { position: relative; width: 132px; height: 150px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color-primary); background: var(--background-fill-secondary); cursor: grab; display: flex; flex-direction: column; animation: fh-pop .18s ease-out; } .fh-card.is-dragging { opacity: .4; } .fh-card.is-target { outline: 2px solid var(--fh-blue); outline-offset: 2px; } @keyframes fh-pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } } .fh-thumb { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #0b0b0f; } .fh-thumb img, .fh-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; } .fh-thumb .fh-audio-glyph { color: var(--fh-blue); font-size: 2rem; } .fh-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 6px; } .fh-meta { font-size: .68rem; color: var(--body-text-color-subdued); font-variant-numeric: tabular-nums; white-space: nowrap; } .fh-x { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 13px; line-height: 22px; padding: 0; opacity: 0; transition: opacity .15s; } .fh-card:hover .fh-x, .fh-card:focus-within .fh-x { opacity: 1; } .fh-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-size: .75rem; } .fh-bad { box-shadow: inset 0 0 0 2px #ef4444; } .fh-tag { display: inline-flex; align-items: center; gap: 3px; border: 1px solid transparent; border-radius: 999px; padding: 2px 8px; font-size: .72rem; font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; white-space: nowrap; background: var(--fh-blue-soft); color: var(--fh-blue); transition: background .15s, transform .1s; } .fh-tag:hover { background: var(--fh-blue); color: #fff; } .fh-tag:active { transform: scale(.96); } .fh-tag.is-audio { background: rgba(16, 185, 129, .14); color: #10b981; } .fh-tag.is-audio:hover { background: #10b981; color: #fff; } .fh-tag.is-video { background: rgba(245, 158, 11, .16); color: #d97706; } .fh-tag.is-video:hover { background: #d97706; color: #fff; } .fh-tag.is-subject { background: transparent; border-color: var(--fh-blue); } .fh-tag.is-missing { outline: 1.5px dashed currentColor; outline-offset: 1px; } .fh-hint { font-size: .75rem; color: var(--body-text-color-subdued); margin-top: 8px; min-height: 1em; } .fh-hint.is-error { color: #ef4444; } .fh-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--background-fill-secondary); border: 1px solid var(--border-color-primary); } .fh-seg-btn { border: none; background: transparent; color: var(--body-text-color-subdued); font: inherit; font-size: .82rem; font-weight: 600; padding: 5px 14px; border-radius: 7px; cursor: pointer; } .fh-seg-btn.is-active { background: var(--fh-blue); color: #fff; } .fh-upsample { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--fh-blue); color: var(--fh-blue); background: transparent; border-radius: 9px; padding: 5px 12px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; } .fh-upsample:hover { background: var(--fh-blue-soft); } .fh-upsample[disabled] { opacity: .6; cursor: progress; } .fh-upsample.is-busy .fh-spark { animation: fh-spin 1s linear infinite; display: inline-block; } @keyframes fh-spin { to { transform: rotate(360deg); } } .fh-pane { display: flex; flex-direction: column; gap: 10px; } .fh-field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; } .fh-label { font-size: .78rem; font-weight: 600; color: var(--body-text-color-subdued); } .fh-row { display: flex; gap: 10px; flex-wrap: wrap; } .fh-composer textarea, .fh-composer input[type=text] { width: 100%; box-sizing: border-box; border: 1px solid var(--border-color-primary); border-radius: 8px; background: var(--input-background-fill); color: var(--body-text-color); font: inherit; font-size: .9rem; padding: 8px 10px; resize: vertical; } .fh-composer textarea:focus, .fh-composer input[type=text]:focus { outline: none; border-color: var(--fh-blue); box-shadow: 0 0 0 3px var(--fh-blue-soft); } .fh-composer textarea[data-write] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; line-height: 1.5; } .fh-refdescs { display: flex; flex-direction: column; gap: 8px; } .fh-refdesc { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; } .fh-refdesc .fh-refdesc-lead { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 92px; } .fh-refdesc .fh-arrow { font-size: .68rem; color: var(--body-text-color-subdued); } .fh-empty { font-size: .82rem; color: var(--body-text-color-subdued); padding: 6px 0; } .fh-chipbar { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: 0; } .fh-chipbar:empty { display: none; } .fh-chipbar .fh-chipbar-label { font-size: .7rem; color: var(--body-text-color-subdued); margin-right: 2px; } .fh-preview summary { cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--body-text-color-subdued); display: flex; align-items: center; gap: 10px; } .fh-preview pre { white-space: pre-wrap; font-size: .74rem; line-height: 1.45; max-height: 260px; overflow: auto; background: var(--background-fill-secondary); border-radius: 8px; padding: 10px; margin: 8px 0 0; } .fh-link { border: none; background: none; color: var(--fh-blue); font: inherit; font-size: .78rem; cursor: pointer; padding: 0; } .fh-lint { font-size: .75rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--body-text-color-subdued); } .fh-lint .is-ok { color: #10b981; } .fh-lint .is-warn { color: #d97706; } .fh-lint .is-err { color: #ef4444; } .fh-examples { display: flex; flex-direction: column; gap: 8px; } .fh-example-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; } .fh-example { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-color-primary); border-radius: 10px; padding: 6px 10px 6px 6px; background: transparent; color: var(--body-text-color); cursor: pointer; font: inherit; font-size: .8rem; text-align: left; min-width: 0; flex: 1 1 0; } .fh-example:hover { border-color: var(--fh-blue); background: var(--fh-blue-soft); } .fh-example img { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; flex: none; } .fh-example span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .fh-hidden { display: none !important; } .fh-composer textarea::placeholder, .fh-composer input[type=text]::placeholder { color: var(--body-text-color-subdued); opacity: .55; }