:root{color-scheme:light;font-family:Inter,system-ui,sans-serif;color:#122441;background:#f5f8ff;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
[hidden]{display:none!important}
.wrap{width:min(calc(100% - 40px),1080px);margin-inline:auto}
header{border-bottom:1px solid #dce5f4}
.mast{min-height:70px;display:flex;align-items:center;gap:14px;font-weight:700}
.mast>span{color:#526a8b;border-left:1px solid #cedaf0;padding-left:14px}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:inherit;font-size:1.2rem}
.sun{display:inline-block;width:24px;height:15px;border-bottom:3px solid #1958e0;background:radial-gradient(ellipse 10px 9px at 50% 100%,#1958e0 99%,transparent 100%) 0 -4px/100% 100% no-repeat}
main{padding-block:clamp(34px,7vw,72px) 48px}
.intro{margin-bottom:28px}
h1{font-size:clamp(1.9rem,5vw,3rem);line-height:1.22;letter-spacing:-.04em;margin:0 0 14px}
p{color:#435572;line-height:1.65;margin:0}
.layout{display:grid;grid-template-columns:minmax(275px,1fr) minmax(0,1.65fr);gap:18px;align-items:start}
.panel{padding:clamp(16px,3vw,24px);border:1px solid #d5e0f2;border-radius:18px;background:white;min-width:0}
h2{font-size:1.15rem;margin:0}
.source h2{margin-bottom:14px}
button,select,textarea,.file-action{font:inherit}
button,.file-action,select{min-height:44px;border:1px solid #bdcce6;border-radius:8px;padding:9px 13px;background:#fff;color:#153b73}
button,.file-action{cursor:pointer;font-weight:650}
button:hover:not(:disabled),.file-action:hover{border-color:#1958e0;background:#edf3ff}
button:disabled{opacity:.48;cursor:default}
button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible,.file-action:focus-within{outline:3px solid #1958e0;outline-offset:3px}
.file-action{position:relative;display:inline-flex;align-items:center}
.file-action input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer;font-size:16px}
.primary{color:white;background:#1958e0;border-color:#1958e0}
.primary:hover:not(:disabled){color:white;background:#1245b4}
.filename,.hint,.status{font-size:.875rem;margin-top:9px;overflow-wrap:anywhere}
.status:empty{display:none}
.status[data-error]{color:#942c29}
.player{margin-top:14px}
video,audio{display:block;width:100%}
video{max-height:270px;border-radius:8px;background:#11223a}
.caption{margin-top:8px;white-space:pre-wrap;background:#122441;color:#fff;padding:8px 11px;border-radius:7px}
.field{display:grid;gap:6px;margin-top:16px;color:#435572;font-size:.9rem}
.actions,.result-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.actions{margin-top:14px}
.result-head{justify-content:space-between}
.empty{margin-top:16px;padding:22px 14px;background:#f6f8fc;border-radius:10px}
.segments{padding:0;margin:14px 0 0;list-style:none;display:grid;gap:8px;max-height:58vh;overflow:auto}
.segment{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:start;padding:4px}
.segment button{font-variant-numeric:tabular-nums;font-size:.87rem;padding-inline:8px}
.segment textarea{min-height:52px;width:100%;padding:9px;border:1px solid #bdcce6;border-radius:8px;resize:vertical;color:inherit}
.segment.current{background:#e9f1ff;border-radius:10px}
.save{border-top:1px solid #dce5f4;padding-top:14px}
footer{padding-block:18px;border-top:1px solid #dce5f4;color:#526a8b;font-size:.875rem}
@media(max-width:690px){.layout{grid-template-columns:1fr}.segments{max-height:none}}
