:root{color-scheme:light;--primary: #155196;--pale: #e4eef8;--border: #d3dfeb;--ink: #263f58;--muted: #52677c;--sonar: #155196;--gps: #20765c;--sounder: #984e15;font:16px/1.5 system-ui,sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,white,var(--pale) 32rem);min-height:100vh}main{max-width:1240px;margin:auto;padding:clamp(14px,3vw,42px)}.hero{border-radius:1.25rem;background:var(--primary);color:#fff;padding:1rem 1.5rem;box-shadow:0 12px 30px #15519620;display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:.4rem 1.5rem}.hero img{display:block;width:150px;height:auto;filter:brightness(0) invert(1)}.hero-text{border-left:1px solid #ffffff55;padding-left:1.5rem}.hero-intro{font-size:.9rem;max-width:36rem;justify-self:end;opacity:.92}.eyebrow{font-size:.66rem;letter-spacing:.24em;text-transform:uppercase;font-weight:700}h1,h2,p{margin:0}h1{font-size:1.6rem;line-height:1.15;letter-spacing:-.03em;white-space:nowrap}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}h2,legend{color:var(--primary);font-size:1.1rem;font-weight:700}fieldset{min-width:0}.workspace{border:0;margin:1rem 0 0;padding:0;display:grid;gap:1rem}.card{margin:0;min-width:0;background:#fff;border:1px solid var(--border);border-radius:1rem;padding:1rem;box-shadow:0 5px 18px #1551960c}.preview{display:grid;grid-template-columns:minmax(0,44rem) minmax(15rem,1fr);grid-template-areas:"diagram header" "diagram legend";grid-template-rows:auto 1fr;gap:.8rem 1.25rem;align-items:start}.preview>.diagrams{grid-area:diagram;margin:0}.preview-header{grid-area:header;display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}.preview>.legend{grid-area:legend;margin:0;align-content:start}.preview-header p,small,.hint{font-size:.82rem;color:var(--muted)}.measurements{display:grid;gap:1rem}.measurements .card{position:relative;padding-top:.7rem}.measurements legend{float:left;width:100%;padding:0;margin-bottom:.55rem;display:flex;align-items:center;gap:.4rem}.measurements .card>.fields{clear:left}.measurements .card[data-active=true]{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary),0 5px 18px #1551961c}.vessel .fields{grid-template-columns:minmax(12rem,2fr) repeat(3,minmax(7rem,1fr))}.contact .fields{grid-template-columns:1fr 1fr 1.5fr 1.5fr}.email-error{color:#8a2323}.sensors{display:grid;gap:.6rem;min-width:0}.sensors-header{display:flex;align-items:end;justify-content:space-between;gap:.4rem 1rem;flex-wrap:wrap}.sensor-actions{display:flex;flex-wrap:wrap;gap:.4rem}.sensor-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,29rem),1fr));gap:.75rem;align-items:start}.add-sensor,.remove-sensor{font-size:.85rem;padding-inline:.75rem}.add-sensor{border-color:#afc1d3;background:#fff}.remove-sensor{position:absolute;top:.45rem;right:.6rem;background:#fff;border-color:#ead1d1;color:#8a2323;padding-block:.15rem;font-size:.8rem}.remove-sensor:hover:not(:disabled){border-color:#8a2323}.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.sensor .fields{grid-template-columns:repeat(3,minmax(0,1fr))}.sensor-guidance{margin-top:.7rem}.look-field{position:relative}.look-field .field-name{padding-right:1.45rem}.direction-help{position:absolute;top:-.1rem;right:0}.direction-help button{display:grid;place-items:center;width:1.5rem;height:1.5rem;padding:0;background:transparent;border-radius:50%}.direction-help [role=tooltip]{position:absolute;z-index:2;bottom:100%;left:-6rem;width:min(15rem,65vw);padding:.55rem .7rem;border-radius:.5rem;color:#fff;background:var(--ink);font-size:.82rem;box-shadow:0 3px 12px #263f5833}.field{display:grid;align-content:start;align-self:start;gap:.3rem;font-size:.9rem;font-weight:650}.field-name{display:flex;align-items:baseline;gap:.28rem}.badge{background:var(--pale);color:var(--primary);padding:0 .26rem;border-radius:.25rem;font-size:.75rem}input,select,button{font:inherit}input,select{width:100%;min-width:0;color:var(--ink);border:1px solid #afc1d3;background:#fff;border-radius:.5rem;padding:.48rem .55rem;font-size:1rem}select{margin-top:.35rem}.number{position:relative;min-width:0}.number input{padding-right:1.8rem;appearance:textfield;font-size:.875rem;min-height:42px;font-variant-numeric:tabular-nums}.number input::-webkit-inner-spin-button{appearance:none}.number span{position:absolute;right:.55rem;top:.55rem;pointer-events:none;color:var(--muted)}small{font-weight:400}.hint{align-self:center}button{cursor:pointer;border:1px solid transparent;border-radius:.5rem;color:var(--primary);padding:.42rem .6rem;background:var(--pale);font-weight:650}button:hover:not(:disabled){border-color:var(--primary)}button:disabled{cursor:not-allowed;opacity:.65}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.segments,.legend{display:flex;flex-wrap:wrap;gap:.35rem;font-size:.85rem}.legend{margin-top:.8rem}.legend button{display:inline-flex;align-items:center;gap:.38rem}button[aria-pressed=true],.submit{color:#fff;background:var(--primary)}.submit{padding:.65rem 1rem}.dot{display:inline-block;width:.65rem;height:.65rem;border-radius:50%;background:currentColor}.sonar{color:var(--sonar)}.gps{color:var(--gps)}.sounder{color:var(--sounder)}button[aria-pressed=true] .dot{box-shadow:0 0 0 1px #fff}.diagrams{display:grid;grid-template-columns:minmax(0,260fr) minmax(0,436fr);align-items:start;gap:.55rem;margin-top:.8rem}figure{margin:0;min-width:0;border:1px solid var(--border);border-radius:.6rem;overflow:hidden;background:#f8fbfe}figcaption{font-weight:650;font-size:.82rem;display:flex;justify-content:space-between;flex-wrap:wrap;padding:.35rem .55rem}figcaption span{font-weight:400;color:var(--muted)}.diagrams svg{width:100%;display:block}svg text{fill:var(--ink);font-size:15px}.hull{fill:#dce7f0;stroke:#577a9c;stroke-width:1.4}.water{fill:#ebf4fc}.datum,.waterline,.baseline{stroke:#708ba4;stroke-dasharray:4 4}.baseline{stroke-dasharray:none}.dimension{color:#506a82}.dimension.highlight{color:#0f59a7;font-weight:800}.dimension line{stroke:currentColor;stroke-width:1.4}.dimension text{paint-order:stroke;stroke:#f8fbfe;stroke-width:6;stroke-linejoin:round;fill:currentColor}.marker{cursor:pointer}.marker .dot{fill:currentColor;stroke:#fff;stroke-width:2}.marker-number{fill:#fff;font-size:9px;font-weight:700;pointer-events:none}.heading-arrow{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.heading-arrow.heading-focus{stroke-width:3.5}.marker:hover .dot,.marker:focus .dot{stroke:#223a50}.submission{margin-top:1rem;display:grid;gap:.75rem;justify-items:start}.ini-result{width:100%;min-width:0}.ini-result pre{margin:.55rem 0 0;padding:.85rem;border:1px solid var(--border);border-radius:.5rem;background:#f8fbfe;overflow:auto;max-height:24rem}.verification{max-width:100%}.error,.success{width:100%;padding:.55rem .75rem;border-radius:.5rem}.error{color:#8a2323;background:#fbe3e3}.success{color:#245740;background:#dcefe6}@media(min-width:901px)and (min-height:860px){.preview{position:sticky;top:0;z-index:1;box-shadow:0 8px 22px #1551961f}html{scroll-padding-top:21rem}}@media(max-width:900px){.hero{grid-template-columns:auto minmax(0,1fr)}.hero-intro{grid-column:1 / -1;justify-self:start;max-width:none}.preview{grid-template-columns:minmax(0,1fr);grid-template-areas:"header" "diagram" "legend"}.vessel .fields{grid-template-columns:repeat(3,minmax(0,1fr))}.vessel-name{grid-column:1 / -1}}@media(max-width:560px){.hero{grid-template-columns:1fr;padding:.9rem 1.1rem}.hero img{width:130px}.hero-text{border:0;padding:0}.diagrams{grid-template-columns:1fr}.diagrams figure:first-child svg{max-height:205px}.vessel .fields,.contact .fields{grid-template-columns:1fr 1fr}.contact input[type=email]{width:100%}.contact .field:has(input[type=email]){grid-column:1 / -1}.vessel .fields>:last-child{grid-column:1 / -1}.sensor .fields{grid-template-columns:1fr 1fr}.direction-help [role=tooltip]{left:auto;right:0}.sensor .fields>.hint{align-self:start}}
