.subtitle-tools-page{width:min(1180px,100% - 48px);color:var(--foreground);margin:0 auto;padding:24px 0 48px;font-size:1rem}.subtitle-tools-header{margin-bottom:36px}.subtitle-tools-brand img{width:132px;height:auto}.subtitle-heading{align-items:flex-start;gap:16px;margin-bottom:28px;display:flex}.subtitle-heading>svg{width:32px;height:32px;color:var(--accent);flex-shrink:0;margin-top:5px}.subtitle-heading h1{letter-spacing:-.04em;margin:0;font-size:clamp(1.75rem,3vw,2.3rem)}.subtitle-heading p{color:var(--muted);margin:8px 0 0;line-height:1.7}.subtitle-workspace,.subtitle-export{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:24px}.subtitle-import{border:1px dashed var(--border-strong);background:var(--surface-soft);border-radius:12px;gap:10px;padding:18px;transition:border-color .15s,background-color .15s,box-shadow .15s;display:grid}.subtitle-import.is-active{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 10%, var(--surface));box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent)}.subtitle-import>label,.subtitle-pane-title>label{font-weight:650}.subtitle-import input{width:100%;min-width:0;font:inherit;color:var(--muted)}.subtitle-import input::file-selector-button{border:1px solid var(--border-strong);background:var(--surface-soft);min-height:44px;color:var(--foreground);font:inherit;cursor:pointer;border-radius:9px;margin-right:12px;padding:8px 16px}.subtitle-hint,.subtitle-filename{color:var(--muted);overflow-wrap:anywhere;margin:0;font-size:.875rem;line-height:1.6}.subtitle-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 12px;display:grid}.subtitle-option{flex-direction:column;gap:8px;min-width:0;display:flex}.subtitle-option>:is(label,span){font-size:.875rem;font-weight:650}.subtitle-option>input{box-sizing:border-box;border:1px solid var(--border-strong);width:100%;min-width:0;min-height:44px;font:inherit;background:var(--background);color:var(--foreground);border-radius:10px;padding:10px 14px}.subtitle-time-preview{border-bottom:1px solid var(--border);margin-bottom:20px;padding-bottom:20px}.subtitle-time-preview h2{flex-wrap:wrap;align-items:baseline;gap:12px;margin:0;font-size:1rem;display:flex}.subtitle-time-preview h2 span{color:var(--muted);font-size:.875rem;font-weight:400}.subtitle-time-preview dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0 0;display:grid}.subtitle-time-preview dt{color:var(--muted);margin-bottom:6px;font-size:.875rem}.subtitle-time-preview dd{overflow-wrap:anywhere;margin:0;font:1rem/1.7 ui-monospace,SFMono-Regular,Consolas,monospace}.subtitle-panes{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin:22px 0;display:grid}.subtitle-pane{flex-direction:column;gap:10px;min-width:0;display:flex}.subtitle-pane-title{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;display:flex}.subtitle-pane-title>span{color:var(--muted);font-size:.875rem}.subtitle-pane textarea{box-sizing:border-box;resize:vertical;border:1px solid var(--border-strong);background:var(--background);width:100%;min-width:0;min-height:310px;color:var(--foreground);tab-size:2;border-radius:10px;flex:1;padding:16px;font:1rem/1.75 ui-monospace,SFMono-Regular,Consolas,monospace}.subtitle-pane textarea::placeholder{color:var(--muted);opacity:1;font-size:1rem;line-height:1.7}.subtitle-output-pane textarea{background:var(--surface-soft)}.subtitle-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.subtitle-tools-page button{border:1px solid var(--border-strong);min-height:44px;font:inherit;background:var(--surface-soft);color:var(--foreground);cursor:pointer;border-radius:10px;padding:10px 18px;font-weight:600}.subtitle-tools-page button.subtitle-primary{background:var(--accent);color:#fff;border-color:#0000}.subtitle-tools-page button:disabled{opacity:.5;cursor:not-allowed}.subtitle-tools-page :is(button,input,textarea,a):focus-visible{outline:2px solid var(--accent);outline-offset:4px}.subtitle-actions p{color:var(--muted);margin:0;font-size:.875rem;line-height:1.6}.subtitle-error{color:var(--foreground);border:1px solid;border-radius:10px;margin:20px 0 0;padding:16px;line-height:1.7}.subtitle-export{margin-top:18px}.subtitle-warnings{margin-bottom:20px;line-height:1.7}.subtitle-warnings h2{margin:0;font-size:1rem}.subtitle-warnings ul{color:var(--muted);margin:12px 0;padding-left:22px}.subtitle-warnings label{cursor:pointer;align-items:flex-start;gap:10px;min-height:44px;padding:10px 0;display:flex}.subtitle-warnings input{width:20px;height:20px;accent-color:var(--accent);flex-shrink:0;margin-top:4px}.subtitle-notes{color:var(--muted);margin:24px 0;font-size:.875rem;line-height:1.8}.subtitle-notes nav{flex-wrap:wrap;gap:8px 24px;display:flex}.subtitle-notes a{min-height:44px;color:var(--accent);text-underline-offset:4px;align-items:center;display:inline-flex}.subtitle-tools-footer{color:var(--muted);margin-top:40px;font-size:.875rem}@media (width<=700px){.subtitle-tools-page{width:calc(100% - 32px);padding-top:16px}.subtitle-tools-header{margin-bottom:28px}.subtitle-workspace,.subtitle-export{padding:16px}.subtitle-panes,.subtitle-options,.subtitle-time-preview dl{grid-template-columns:minmax(0,1fr)}.subtitle-pane textarea{min-height:240px}.subtitle-actions button{flex-grow:1}.subtitle-actions p{flex-basis:100%}}
