/* Dedicated CSS for the five real subtitle tools. Avoid changing shared styles. */
.sub-shell { padding-top: 6rem; padding-bottom: 5rem; max-width: 1040px; }
.sub-crumb { font-size: .92rem; margin-bottom: 1.5rem; opacity: .84; }
.sub-crumb a { color: inherit; }
.sub-kicker { color: var(--coral, #f26b50); font-size: .85rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.sub-shell h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.16; margin: .6rem 0 1rem; }
.sub-lead { font-size: 1.11rem; max-width: 68ch; line-height: 1.7; margin: 0 0 1.8rem; }
.sub-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); margin: 2rem 0; }
.sub-card { display: block; border: 1px solid var(--line, #ccc); border-radius: 14px; padding: 1.25rem; text-decoration: none; color: var(--ink, inherit); background: var(--surface-soft, transparent); }
.sub-card:hover, .sub-card:focus-visible { border-color: var(--coral, #f26b50); }
.sub-card h2 { font-size: 1.18rem; margin: 0 0 .7rem; }
.sub-card p { font-size: .96rem; margin: 0; line-height: 1.6; }
.sub-tool-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.7rem; }
.sub-tool-nav a { padding: .57rem .8rem; border: 1px solid var(--line, #bbb); border-radius: 999px; text-decoration: none; color: var(--ink, inherit); font-size: .89rem; }
.sub-tool-nav a[aria-current="page"] { background: var(--coral-soft, #ffe9e5); border-color: var(--coral, #f26b50); color: #172332; font-weight: 700; }
.sub-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0 .5rem; }
.sub-editor > div { border: 1px solid var(--line, #ccc); background: var(--surface-soft, transparent); border-radius: 16px; padding: 1.2rem; display: flex; flex-direction: column; align-items: stretch; gap: .75rem; min-width: 0; }
.sub-editor label { display: block; font-size: .89rem; font-weight: 750; }
.sub-editor textarea, .sub-editor select, .sub-editor input[type="number"], .sub-editor input[type="file"] { max-width: 100%; width: 100%; min-width: 0; box-sizing: border-box; border-radius: 8px; border: 1px solid var(--line, #aaa); padding: .65rem; color: var(--ink, #172332); background: var(--surface, white); }
.sub-editor textarea { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88rem; line-height: 1.55; resize: vertical; overflow-wrap: anywhere; }
.sub-editor button { cursor: pointer; border: 1px solid var(--line, #aaa); border-radius: 9px; padding: .72rem .9rem; font: inherit; font-weight: 700; }
.sub-editor button:focus-visible, .sub-card:focus-visible, .sub-tool-nav a:focus-visible { outline: 3px solid var(--coral, #f26b50); outline-offset: 2px; }
.sub-editor button:disabled { opacity: .48; cursor: not-allowed; }
.sub-action { color: white; background: #182d45; border-color: #182d45 !important; }
.sub-secondary { background: var(--surface, #fff); color: var(--ink, #172332); }
#subtitle-status { padding: .85rem; border: 1px solid var(--line, #aaa); border-radius: 9px; margin: 0; font-size: .94rem; overflow-wrap: anywhere; }
#subtitle-status[data-state="ok"] { border-color: #39865f; }
#subtitle-status[data-state="warn"] { border-color: #c69230; }
#subtitle-status[data-state="error"] { border-color: #d85d5d; }
#subtitle-issues { padding-left: 1.2rem; margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
#subtitle-issues:empty { display: none; }
#subtitle-result[hidden] { display: none; }
.sub-footnote { font-size: .88rem; opacity: .78; margin: .4rem 0 2.2rem; }
.sub-info { margin: 2.3rem 0; max-width: 78ch; }
.sub-info h2 { font-size: 1.28rem; margin: 1.4rem 0 .5rem; }
.sub-info p { line-height: 1.74; margin: .5rem 0; }
.sub-faq { padding: .95rem 0; border-bottom: 1px solid var(--line, #ccc); }
.sub-faq summary { cursor: pointer; font-weight: 700; }
.sub-faq p { margin: .6rem 0 0; }
@media (max-width: 680px) {
  .sub-shell { padding-top: 4rem; }
  .sub-editor { grid-template-columns: minmax(0, 1fr); }
  .sub-editor > div { padding: .95rem; }
  .sub-tool-nav a { font-size: .82rem; }
}
/* Keep the two retiming modes readable and mutually exclusive on mobile. */
.sub-timing-fields { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.sub-timing-fields[hidden] { display: none !important; }
.sub-timing-fields p { font-size: .85rem; line-height: 1.55; margin: .25rem 0; opacity: .9; }
