/* Contextual-help "ⓘ" info buttons (rendered by _HelpIcon partial). */
.t7-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    color: #94a3b8;            /* slate-400 */
    cursor: help;
    font-size: 12px;
    line-height: 1;
    vertical-align: middle;
}
.t7-help:hover,
.t7-help:focus { color: #2563eb; outline: none; }  /* blue-600 */

/* Positioned in JS (fixed, viewport-clamped) so it never runs off-screen. */
.t7-help-card {
    display: none;
    position: fixed;
    z-index: 80;
    width: 240px;
    max-width: calc(100vw - 16px);
    background: #fff;
    color: #334155;            /* slate-700 */
    border: 1px solid #e2e8f0; /* slate-200 */
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    cursor: default;
    font-weight: 400;
}

.t7-help-short { display: block; color: #334155; }

.t7-help-more {
    margin-top: 6px;
    display: inline-block;
    color: #2563eb;
    font-weight: 600;
    font-size: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.t7-help-more:hover { text-decoration: underline; }

/* Footer row inside a help card: holds "See more" and (for editors) "✎ Edit". */
.t7-help-actions { margin-top: 6px; display: flex; align-items: center; gap: 14px; }
.t7-help-actions .t7-help-more { margin-top: 0; }

.t7-help-edit {
    display: inline-block;
    color: #64748b;            /* slate-500 */
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}
.t7-help-edit:hover { color: #2563eb; text-decoration: underline; }

/* ---- In-app help editor modal (privileged users) ---- */
.t7-hed { font-size: 13px; color: #334155; }
.t7-hed-flabel { display: block; font-weight: 600; font-size: 12px; color: #475569; margin: 10px 0 4px; }
.t7-hed-label, .t7-hed-short, .t7-hed-long, .t7-hed-src {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    font-family: inherit;
    color: #0f172a;
    box-sizing: border-box;
}
.t7-hed-src { width: auto; }
.t7-hed-short, .t7-hed-long { resize: vertical; line-height: 1.45; }
.t7-hed-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.t7-hed-tab {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.t7-hed-tab.is-active { background: #2563eb; border-color: #2563eb; color: #fff; }
.t7-hed-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.t7-hed-tlabel { font-size: 12px; color: #64748b; }
.t7-hed-translate {
    border: 1px solid #cbd5e1; background: #fff; color: #0f172a;
    border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.t7-hed-translate:hover { background: #f1f5f9; }
.t7-hed-translate:disabled { opacity: .6; cursor: default; }
.t7-hed-status { font-size: 12px; color: #64748b; }
.t7-hed-actions {
    display: flex; justify-content: flex-end; gap: 8px;
    margin-top: 16px; border-top: 1px solid #e2e8f0; padding-top: 12px;
}
.t7-hed-cancel {
    border: 1px solid #cbd5e1; background: #fff; color: #334155;
    border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.t7-hed-save {
    border: 1px solid #2563eb; background: #2563eb; color: #fff;
    border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.t7-hed-save:disabled { opacity: .6; cursor: default; }

/* Lightweight instant tooltip for functional icons (elements with [data-tip]),
   e.g. the transcription row actions. Positioned in JS, clamped to the viewport. */
.t7-tip-bubble {
    display: none;
    position: fixed;
    z-index: 90;
    background: #1e293b;       /* slate-800 */
    color: #fff;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 6px;
    max-width: 240px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
    pointer-events: none;
    white-space: normal;
    text-align: center;
}
