/* YouTube Timestamp Link Generator - two-panel layout, link rows,
 * chapter rule checklist. */

.ytl-panel-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; color: #1f2937; }
.ytl-intro { margin: 0 0 14px; color: #4b5563; font-size: 0.92rem; }

.ytl-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.ytl-field { display: flex; flex-direction: column; gap: 5px; }
.ytl-field-grow { flex: 1 1 320px; }
.ytl-field-sm { flex: 0 1 130px; }
.ytl-label { font-size: 0.8rem; font-weight: 600; color: #374151; }
.ytl-text { flex: 0 0 auto; }

.ytl-links { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.ytl-links[hidden] { display: none; }
.ytl-link-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ytl-link-tag {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 4px 8px;
}
.ytl-link-code {
    flex: 1 1 240px;
    min-width: 0;
    background: #f8fafc;
    border: 1px solid #e6e8eb;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.82rem;
    overflow-x: auto;
    white-space: nowrap;
}
.ytl-small-btn { padding: 6px 12px; font-size: 0.8rem; }
.ytl-note { margin: 4px 0 0; font-size: 0.82rem; color: #64748b; }
.ytl-note[hidden] { display: none; }

.ytl-area {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7dbe0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.6;
    font-family: inherit;
    resize: vertical;
}
.ytl-actions { margin-top: 12px; }
.ytl-chapters-out { margin-top: 14px; }
.ytl-chapters-out[hidden] { display: none; }
.ytl-rules { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ytl-rule { display: flex; gap: 8px; align-items: flex-start; font-size: 0.86rem; }
.ytl-rule.is-ok { color: #047857; }
.ytl-rule.is-warn { color: #b45309; }
.ytl-rule-mark {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 1px;
}
.ytl-rule.is-ok .ytl-rule-mark { background: #ecfdf5; }
.ytl-rule.is-warn .ytl-rule-mark { background: #fff7ed; }
.ytl-out-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ytl-out-title { margin: 0; font-size: 0.92rem; font-weight: 700; color: #1f2937; }

@media (max-width: 640px) {
    .ytl-row .primary-btn { width: 100%; }
}
