:root{color-scheme:dark;--bg:#020b11;--panel:#051925;--border:#0c3044;--text:#e5edfc;--muted:#9bacbf;--gold:#ffba00;--cyan:#00d9ed}*{box-sizing:border-box}html,body{margin:0;min-width:340px;height:100%;background:var(--bg);color:var(--text);font:14px 'Segoe UI',Arial,sans-serif}body{padding:6px 8px;display:flex;flex-direction:column;gap:7px;overflow:hidden}[hidden]{display:none!important}button,input,select,textarea{font:inherit;color:inherit}button,.button,select{border:1px solid #0b3045;border-radius:4px;background:linear-gradient(135deg,#0b2b40,#072033);padding:9px 13px;cursor:pointer;white-space:nowrap}button:hover,.button:hover,select:hover{border-color:#326984;background:#10374b}button:focus-visible,.button:focus-within,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}button:disabled{opacity:.45;cursor:default}button[aria-pressed=true]{border-color:var(--gold);color:var(--gold)}button.primary,.primary{background:var(--gold);color:#00131f;border-color:#ec9d00;font-weight:700}button.icon{width:36px;padding:6px;display:inline-grid;place-items:center;font-size:20px;flex-shrink:0}.icon svg,button svg{width:20px;height:20px;vertical-align:middle;pointer-events:none}.topbar{display:flex;align-items:center;gap:12px;height:55px;flex-shrink:0;padding:6px 12px;border:1px solid var(--border);background:linear-gradient(100deg,#041825,#03141f 50%,#061f30);border-radius:5px}.brand{color:#e2e9ff;text-decoration:none;font-weight:800;font-size:27px;letter-spacing:-1px;padding-right:22px;border-right:1px solid #22506a;flex-shrink:0}.brand b{color:var(--gold);font-weight:850}.file-meta{min-width:120px;flex:1;overflow:hidden}.file-meta>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-meta .muted{margin-right:8px}.file-meta small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.record-date{font-size:12px;white-space:nowrap;color:#becada}.readout{min-width:96px;text-align:center;padding:2px 12px;background:#01121d;border:1px solid #0b2b3b;border-radius:4px;white-space:nowrap}.readout small{display:block;font-size:10px;color:#b8c7dd;letter-spacing:.8px}.readout b{color:var(--cyan);font-size:21px}.coordinates{min-width:178px}.coordinates b{font-size:13px;color:#fff}.open-file{font-size:14px}.muted{color:var(--muted)}.cyan{color:var(--cyan)}#workspace{flex:1;min-height:0}.stage{height:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) minmax(290px,1.08fr);grid-template-rows:minmax(0,1.1fr) minmax(0,.9fr);gap:7px}.instrument{position:relative;min-width:0;min-height:0;overflow:hidden;border:1px solid var(--border);border-radius:5px;background:#020b12;display:flex;flex-direction:column}.instrument[data-kind=side]{grid-area:1/1/2/3}.instrument[data-kind=traditional]{grid-area:2/1/3/2}.instrument[data-kind=down]{grid-area:2/2/3/3}.instrument[data-kind=map]{grid-area:1/3/3/4}.window-head{display:flex;gap:6px;align-items:center;justify-content:space-between;min-height:40px;padding:5px 9px;background:linear-gradient(105deg,#052133,#031620 55%,#052033);border-bottom:1px solid #0c2c3e;z-index:3}.window-title{display:flex;align-items:center;gap:9px;white-space:nowrap;min-width:0}.window-title h2{font-size:16px;margin:0;color:var(--gold);letter-spacing:.2px}.frequency{font-size:12px;color:#bfcce5;overflow:hidden;text-overflow:ellipsis}.window-buttons{display:flex;align-items:center;gap:5px}.window-buttons button{height:29px;min-width:28px;padding:3px 7px;font-size:12px}.window-buttons .icon{width:30px}.window-buttons svg{width:17px;height:17px}.window-buttons .auto{min-width:52px;font-weight:700}.canvas-wrap{flex:1;min-height:0;position:relative;overflow:hidden}.canvas-wrap canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.canvas-wrap canvas.dragging{cursor:grabbing}.depth-hud{position:absolute;left:12px;top:25px;pointer-events:none;display:flex;align-items:baseline;gap:6px;font-size:clamp(38px,4.2vw,66px);font-weight:650;line-height:1;color:transparent;-webkit-text-stroke:1.3px #f1f6ff;filter:drop-shadow(1px 1px 1px #000);z-index:1}.depth-hud small{font-size:.55em}.canvas-empty{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:#688497;pointer-events:none;padding:25px;background:radial-gradient(ellipse at 50% 65%,#082333,#020b12 75%)}.canvas-empty strong{color:#a3b7c8;font-size:17px;letter-spacing:.2px;margin:8px}.canvas-empty p{max-width:310px;margin:6px;line-height:1.6;font-size:12px}.empty-line{width:50px;height:2px;background:var(--gold);margin:0 auto 8px;opacity:.65}.panel-popover{position:absolute;right:8px;top:43px;z-index:6;background:#061c2a;border:1px solid #24546c;box-shadow:0 12px 30px #000b;border-radius:5px;padding:14px;min-width:230px}.panel-popover label{display:block;font-size:12px;color:#c3d4e1;margin-bottom:10px}.panel-popover select,.panel-popover input{width:100%;margin-top:7px}.panel-popover .popover-close{float:right;padding:0 5px;font-size:18px}.map-stat,.speed-hud{position:absolute;top:13px;background:#02131fe8;border:1px solid #17415b;border-radius:4px;padding:7px 10px;pointer-events:none;font-size:12px;line-height:1.6;z-index:1}.map-stat{left:12px}.map-stat b{color:var(--gold)}.speed-hud{right:74px;text-align:center;line-height:1.2}.speed-hud small{display:block;font-size:9px;letter-spacing:.5px}.speed-hud strong{font-size:30px;margin-right:4px}.speed-hud span{font-size:11px}.compass{position:absolute;right:13px;top:17px;width:48px;height:48px;border:1px solid #20516a;border-radius:50%;background:#001421e8;text-align:center;font-size:10px;padding-top:3px;pointer-events:none}.compass b{transform:rotate(-90deg);display:block;color:var(--gold);font-size:25px;line-height:28px}.map-controls{position:absolute;right:9px;bottom:32px;display:flex;flex-direction:column;gap:4px;z-index:2}.map-controls button{width:35px;height:35px;padding:0;font-size:22px}.map-attribution{position:absolute;bottom:0;right:0;background:#02121cdf;color:#bdc9d3;font-size:8px;padding:2px 5px;max-width:85%;text-align:right}.map-attribution a{color:inherit}.map-status{position:absolute;left:10px;bottom:35px;background:#031521e8;font-size:11px;color:#b7c7d3;padding:5px;border-radius:3px;max-width:75%;pointer-events:none}.map-status:empty{display:none}.map-status button{pointer-events:auto;font-size:11px;margin-left:5px;padding:3px}.stage.focused{display:block}.stage.focused .instrument{display:none}.stage.focused .instrument.is-focused{display:flex;height:100%;width:100%}.is-focused .depth-hud{font-size:88px;top:30px;left:20px}.is-focused .window-title h2{font-size:19px}.is-focused .frequency{font-size:16px}.transport{height:76px;flex-shrink:0;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border);background:linear-gradient(115deg,#041c2b,#03131e 65%,#062234);border-radius:5px}.transport-buttons{display:flex;gap:6px}.transport-buttons button.icon{height:44px;width:43px;font-size:22px}.transport-buttons .play{background:linear-gradient(90deg,#ffb000,#ffcb00);color:white;border-color:#fcb000!important;width:53px!important}.time{white-space:nowrap;font-variant-numeric:tabular-nums}.time b{font-size:17px}.time span{font-size:11px;color:#b7c9e0}.overview{flex:1;height:52px;min-width:60px;position:relative;border:1px solid #0c2c3f;border-radius:4px;overflow:hidden;background:#01131e}.overview canvas{width:100%;height:100%;display:block}.overview input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:crosshair;margin:0}.overview:focus-within{outline:2px solid var(--cyan)}.transport select{padding:8px 5px}.transport>button{font-size:12px;padding:9px}.transport>button.icon{padding:4px;width:30px;font-size:16px}#pointCount{font-size:10px;color:var(--cyan);margin-left:3px}.selection-bar{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#86a0b4;padding:0 4px;min-height:14px;white-space:nowrap;overflow:hidden}#selectionInfo{overflow:hidden;text-overflow:ellipsis}#saveStatus{flex-shrink:0}.notice{position:fixed;z-index:40;top:68px;left:50%;transform:translateX(-50%);width:min(760px,94%);border:1px solid #976d17;background:#30250dee;padding:12px 14px;display:flex;align-items:center;gap:15px;font-size:13px;box-shadow:0 6px 30px #0009}.notice span{flex:1}.notice button{padding:2px 8px;font-size:21px}dialog{width:min(510px,94vw);color:var(--text);background:#061722;border:1px solid #24485c;border-radius:9px;padding:24px;max-height:90dvh;overflow:auto;box-shadow:0 24px 90px #000a}dialog::backdrop{background:#000a;backdrop-filter:blur(3px)}dialog h2{margin:0;font-size:22px}dialog p{line-height:1.55;font-size:13px}dialog label{display:block;margin:15px 0 7px;font-size:12px;color:#b5c9da}dialog input:not([type=range]),dialog textarea{width:100%;border:1px solid #254357;background:#020e18;border-radius:4px;padding:10px}dialog textarea{resize:vertical}dialog progress{width:100%;accent-color:var(--gold)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-head button{border:0;background:none}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.icon-picker{display:flex;gap:7px;flex-wrap:wrap}.icon-picker button{font-size:20px;padding:5px 11px}.icon-picker button[aria-pressed=true]{box-shadow:0 0 0 1px var(--gold)}.wide-dialog{width:min(870px,95vw)}.point-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.point-toolbar button,.point-toolbar select{font-size:12px}.point-list{display:flex;flex-direction:column;gap:7px}.point-row{display:flex;gap:12px;align-items:center;border:1px solid #14364a;border-radius:4px;padding:12px}.point-symbol{font-size:24px;color:var(--cyan);min-width:25px}.point-info{flex:1;min-width:0}.point-info strong{display:block}.point-info p{color:#9fb8ca;margin:3px 0;font-size:12px;overflow-wrap:anywhere}.point-actions{display:flex;gap:5px}.point-actions button{font-size:11px;padding:6px}.danger{color:#ff7a8c}dl{font-size:13px;line-height:1.6}dt{color:var(--gold);font-weight:bold;margin-top:15px}dd{margin:3px 0;color:#b9cddd}body.drag-over:after{content:'Отпустите RSD, чтобы открыть запись';position:fixed;inset:8px;border:2px dashed var(--cyan);background:#032333ed;z-index:100;display:grid;place-content:center;font-size:26px;pointer-events:none}
@media(min-width:1700px){.window-head{min-height:44px}.window-buttons button{font-size:13px}.window-title h2{font-size:18px}.frequency{font-size:14px}}
@media(max-width:1250px){.record-date{display:none}.topbar{gap:8px;padding:5px 9px}.coordinates{min-width:160px}.window-head{padding:5px;gap:3px}.window-title{gap:5px}.window-title h2{font-size:14px}.frequency{font-size:10px}.window-buttons{gap:3px}.window-buttons button{padding:3px 4px;min-width:24px}.window-buttons .icon{width:25px}.window-buttons .auto{min-width:42px}.window-buttons .bottom-button{font-size:10px}.time b{font-size:14px}.transport{gap:7px}.transport>button{padding:8px}.transport-buttons button.icon{width:32px;height:40px}.transport-buttons .play{width:43px!important}.shot{display:none}}
@media(max-width:1050px){.coordinates{display:none}.stage{grid-template-columns:repeat(2,minmax(0,1fr)) minmax(255px,.85fr)}.window-head{flex-wrap:wrap;min-height:62px}.window-title{width:100%;padding-left:3px}.window-buttons{margin-left:auto}.instrument[data-kind=side] .window-head,.instrument[data-kind=map] .window-head{flex-wrap:nowrap;min-height:40px}.instrument[data-kind=side] .window-title,.instrument[data-kind=map] .window-title{width:auto}.window-buttons .bottom-button{font-size:11px}.time span{display:none}.speed-hud{right:9px}.compass{display:none}.map-stat{font-size:10px;left:7px}.selection-bar #saveStatus{display:none}}
@media(max-width:740px){body{overflow:auto;height:auto;min-height:100dvh;padding:4px;gap:5px}.topbar{height:auto;min-height:54px;flex-wrap:wrap;gap:7px}.brand{font-size:24px;padding-right:10px}.file-meta{min-width:100px;font-size:12px}.file-meta small{display:none}.readout{display:none}.topbar button,.topbar .button{font-size:12px;padding:7px}.topbar .icon{width:30px}#workspace{flex:none;height:auto}.stage{display:flex;flex-direction:column;gap:5px}.instrument{height:320px;min-height:260px}.instrument[data-kind=side]{height:370px}.instrument[data-kind=map]{height:400px}.window-head{flex-wrap:nowrap;min-height:40px}.window-title{width:auto}.frequency{font-size:11px}.window-buttons .bottom-button{font-size:10px}.window-buttons button{min-width:23px}.stage.focused{height:calc(100dvh - 173px);min-height:310px}.stage.focused .instrument{min-height:0}.is-focused .window-head{flex-wrap:wrap}.is-focused .depth-hud{font-size:58px}.transport{position:sticky;bottom:0;z-index:8;height:68px;padding:7px;flex-wrap:nowrap;gap:5px}.transport>button{font-size:10px;padding:7px 5px}.transport-buttons{gap:3px}.transport-buttons button.icon{width:27px;height:36px;font-size:16px}.transport-buttons .play{width:33px!important}.transport #lastButton{display:none}.transport select{display:none}.time{display:none}.overview{height:43px}.selection-bar{font-size:9px}.point-row{flex-wrap:wrap}.point-actions{width:100%;justify-content:flex-end}dialog{padding:18px}.map-stat{font-size:12px}.speed-hud{right:70px}.compass{display:block}}

@media(max-width:400px){.window-head{flex-wrap:wrap}.window-title{width:100%}.instrument[data-kind=map] .window-title{width:auto}.instrument[data-kind=side] .window-head{flex-wrap:wrap}.instrument[data-kind=side] .window-title{width:100%}}

.light-palette .depth-hud{-webkit-text-stroke-color:#12364d;filter:drop-shadow(1px 1px 1px #fffb)}

.follow-boat{display:inline-flex;align-items:center;gap:5px}.follow-boat svg{flex-shrink:0}@media(max-width:1400px){.follow-boat .follow-label{display:none}.window-buttons .follow-boat{width:29px;padding:4px;justify-content:center}}

/* Welcome modal: the supplied logo and a local file workflow. */
.brand{border:0;border-right:1px solid #22506a;background:none!important;padding:0 14px 0 0;width:124px;height:38px;position:relative;overflow:hidden;border-radius:0}
.brand img{display:block;width:142px;height:auto;position:absolute;left:-13px;top:-5px;max-width:none;pointer-events:none}
.welcome-dialog{width:min(1060px,96vw);padding:25px 34px 20px;background:radial-gradient(ellipse at 50% 115%,#06304a 0,transparent 55%),#031622;border-color:#1d4c65;isolation:isolate;overflow-x:hidden}
.welcome-dialog::after{content:'';position:absolute;inset:58% -25% -35%;border:1px solid #008dff26;box-shadow:0 0 0 22px #008dff0b,0 0 0 44px #008dff09,0 0 0 66px #008dff07;border-radius:50%;pointer-events:none;z-index:-1}
.welcome-close{position:absolute;right:15px;top:12px;background:none;border:0;color:#b5cbd9;font-size:25px!important}
.welcome-intro{text-align:center}.welcome-logo{display:block;width:min(460px,75%);height:auto;margin:-10px auto -13px;mix-blend-mode:lighten}.welcome-intro h1{font-size:clamp(25px,3vw,36px);letter-spacing:-.6px;margin:0 0 9px;line-height:1.2}.welcome-intro>p{font-size:17px;color:#adc4da;margin:0 0 26px;line-height:1.5}
.welcome-cards{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:18px}
.welcome-upload,.welcome-support{border:1px solid #1c4863;border-radius:7px;background:#0522358a;padding:17px}.drop-zone{border:2px dashed #008fff;border-radius:8px;text-align:center;padding:18px 24px 14px;min-height:100%}.file-glyph{width:58px;height:67px;color:#86bce8;margin-bottom:10px}.welcome-dialog h2{font-size:24px;margin:0 0 8px}.drop-zone>p{color:#aec4db;font-size:16px;margin:0}.upload-divider{display:flex;gap:14px;align-items:center;max-width:330px;margin:16px auto;color:#90a9c0}.upload-divider span{height:1px;background:#426078;flex:1}.upload-button{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;font-size:22px;padding:14px;min-height:58px;border-radius:6px}.upload-button svg{width:29px;height:29px}
.welcome-dialog small{display:block;color:#9eb8ce;font-size:12px;line-height:1.5;margin-top:12px}.demo-button{width:100%;margin-top:16px;padding:11px 8px;font-size:14px;background:#08283b;border-color:#205778;color:#bfe3ff}.demo-button span{display:block;font-size:11px;color:#91aac1;margin-top:3px}.welcome-support{display:flex;flex-direction:column;align-items:center;text-align:center;padding:26px 20px 22px}.support-heart{width:53px;height:51px;color:var(--gold);margin:0 0 15px}.welcome-support h2{font-size:22px}.welcome-support>p{color:#b4c8da;font-size:15px;line-height:1.6;margin:9px 0 20px;max-width:275px}.donation-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;border:1px solid #f8bd12;border-radius:6px;padding:10px 12px;color:var(--gold);font-size:16px;font-weight:650;text-decoration:none;background:#072439}.donation-button:hover{background:#10364a;border-color:#ffe16e}.donation-logo{display:flex;align-items:center;justify-content:center;background:#fff;border-radius:4px;width:91px;height:31px;padding:4px 7px}.donation-logo img{max-width:100%;max-height:100%;width:auto;height:auto}.welcome-support small{margin-top:auto}.welcome-foot{text-align:center;font-size:11px;color:#6f92a9;margin-top:17px}.scope-hint{font-size:11px!important;margin-top:7px}#pointVisibility{width:100%}
@media(max-height:780px) and (min-width:741px){.welcome-dialog{padding-top:18px}.welcome-logo{width:330px;margin-top:-6px;margin-bottom:-10px}.welcome-intro>p{margin-bottom:15px}.welcome-intro h1{font-size:29px}.drop-zone{padding:12px 22px}.file-glyph{width:40px;height:46px;margin-bottom:6px}.upload-divider{margin:10px auto}.upload-button{font-size:19px;min-height:48px;padding:10px}.welcome-support{padding:20px}.welcome-support>p{margin-bottom:15px}.demo-button{margin-top:10px}}
@media(max-width:740px){.welcome-dialog{padding:23px 16px 16px}.welcome-logo{width:330px;margin:0 auto -7px}.welcome-intro>p{font-size:14px;margin-bottom:18px}.welcome-cards{grid-template-columns:1fr;gap:14px}.welcome-upload{padding:11px}.drop-zone{padding:15px}.file-glyph{width:42px;height:49px}.welcome-dialog h2{font-size:22px}.upload-button{font-size:19px}.welcome-support{padding:18px}.support-heart{width:36px;height:34px;margin-bottom:8px}.welcome-support>p{max-width:360px;margin-bottom:16px}.donation-button{max-width:360px}.brand{width:102px}.brand img{width:128px;top:-2px}.welcome-foot{margin-top:14px}}

.brand img{mix-blend-mode:lighten}.drag-over .drop-zone{border-color:var(--gold);background:#093c5480}

/* Language controls remain available in both the viewer and modal welcome screen. */
.language-switch{display:inline-flex;gap:2px;flex:none;padding:3px;border:1px solid #173f52;border-radius:5px;background:#02111c}
.language-switch button{min-width:32px;padding:6px 7px;border:0;background:transparent;color:#adc2d5;font-size:11px;font-weight:700;line-height:1.2}
.language-switch button[aria-pressed="true"]{background:#ffbf00;color:#07131c}
.language-switch button:focus-visible{outline:2px solid #00d9ed;outline-offset:2px}
.welcome-dialog>.language-switch{position:absolute;right:64px;top:18px;z-index:2}
@media(max-width:1100px){.topbar .coordinates{min-width:150px}.follow-label{display:none}}
@media(max-width:700px){.welcome-dialog>.language-switch{top:12px;right:52px}.topbar .language-switch{margin-left:auto}.welcome-intro{padding-top:35px}}
