body.hydrostatic {
  --ht-bg:var(--bg-primary,#0c1520); --ht-panel:var(--bg-card,#111f2d); --ht-input:var(--bg-input,#101b27);
  --ht-line:var(--border,#293a4d); --ht-text:var(--text-primary,#e9f1f7); --ht-muted:var(--text-secondary,#a4b5c7);
  --ht-accent:var(--accent,#55daca);
  --ht-tint:color-mix(in srgb,var(--ht-accent) 12%,var(--ht-panel));
  --ht-highlight:color-mix(in srgb,var(--ht-accent) 60%,var(--ht-line));
  margin:0; min-height:100vh; background:var(--ht-bg); color:var(--ht-text); font-family:Manrope,Inter,system-ui,sans-serif; font-size:15px; line-height:1.48;
}
body.hydrostatic * {box-sizing:border-box}
body.hydrostatic [hidden] {display:none!important}
body.hydrostatic a {color:inherit}
body.hydrostatic button,body.hydrostatic input,body.hydrostatic textarea,body.hydrostatic select {font:inherit}
body.hydrostatic button {cursor:pointer}
body.hydrostatic button:disabled {cursor:default;opacity:.5}
body.hydrostatic :focus-visible {outline:2px solid var(--ht-accent);outline-offset:3px}
.ht-header {display:flex;align-items:center;gap:24px;min-height:66px;padding:8px max(24px,calc((100vw - 1420px)/2));border-bottom:1px solid var(--ht-line);background:var(--ht-panel)}
.ht-brand {display:flex;gap:10px;align-items:center;text-decoration:none;font-size:19px;line-height:1;font-weight:800;white-space:nowrap}
.ht-brand img {width:32px;height:32px;object-fit:contain}
.ht-brand small {display:block;margin-top:5px;font-size:7px;letter-spacing:.14em;color:var(--ht-muted)}
.ht-breadcrumb {display:flex;align-items:center;gap:12px;padding-left:24px;border-left:1px solid var(--ht-line);font-weight:700;font-size:11px;letter-spacing:.13em;text-transform:uppercase}
.ht-breadcrumb span {color:var(--ht-muted)}
.ht-breadcrumb a,.ht-vessel {text-decoration:none}
.ht-breadcrumb a:hover {text-decoration:underline}
.ht-vessel {margin-left:auto;white-space:nowrap}
.ht-main {max-width:1468px;margin:auto;padding:28px 24px 22px}
.ht-hero {position:relative;isolation:isolate;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:27px 30px 28px;overflow:hidden;border:1px solid var(--ht-highlight);border-radius:16px;color:var(--ht-text);background:radial-gradient(ellipse at 82% 90%,var(--ht-tint),transparent 68%),var(--ht-panel)}
.ht-hero:after {position:absolute;z-index:-1;content:"";inset:0;opacity:.33;background-image:linear-gradient(90deg,var(--ht-highlight) 1px,transparent 1px),linear-gradient(var(--ht-highlight) 1px,transparent 1px);background-size:30px 30px;mask-image:linear-gradient(100deg,transparent 48%,#000 100%)}
.ht-kicker,.ht-label {font-size:10px;font-weight:800;letter-spacing:.14em}
.ht-kicker {display:flex;align-items:center;gap:8px;color:var(--ht-accent)}
.ht-kicker>span {width:7px;height:7px;border-radius:100%;background:var(--ht-accent);box-shadow:0 0 12px var(--ht-highlight)}
.ht-kicker b {font-weight:800}
body.hydrostatic .ht-hero h1 {font-size:clamp(30px,4vw,46px);line-height:1.12;margin:10px 0 7px;letter-spacing:-.04em}
.ht-hero p {margin:0;color:var(--ht-muted);font-size:15px;max-width:650px}
.ht-hero-actions,.ht-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ht-button {padding:9px 13px;min-height:40px;border:1px solid var(--ht-line);border-radius:8px;background:var(--ht-panel);color:var(--ht-text);font-weight:690!important;font-size:13px!important;white-space:normal}
.ht-button:hover:not(:disabled) {border-color:var(--ht-accent);background:var(--ht-tint)}
.ht-button.primary {background:var(--ht-accent);color:var(--ht-bg);border-color:var(--ht-accent)}
.ht-button.primary:hover:not(:disabled) {background:color-mix(in srgb,var(--ht-accent) 86%,var(--ht-text))}
.ht-button.danger {color:var(--ht-text);border-color:#c06b63}
.ht-fleet-head {display:flex;justify-content:space-between;align-items:center;gap:10px;margin:24px 0 12px}
.ht-fleet-head h2,.ht-vessel-copy h3 {margin:0;line-height:1.18}
.ht-fleet-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:14px}
.ht-vessel-card {display:flex;min-width:0;flex-direction:column;border:1px solid var(--ht-line);border-radius:12px;background:var(--ht-panel);overflow:hidden;text-decoration:none}
.ht-vessel-card:hover {border-color:var(--ht-accent);background:var(--ht-tint)}
.ht-vessel-art {position:relative;aspect-ratio:1.95;display:grid;place-items:center;background:var(--ht-tint);border-bottom:1px solid var(--ht-line);overflow:hidden}
.ht-vessel-art img {width:100%;height:100%;object-fit:cover;object-position:50% 54%}
.ht-vessel-art svg {width:32%;fill:none;stroke:var(--ht-accent);stroke-width:1.8;stroke-linejoin:round}
.ht-vessel-code {position:absolute;top:10px;left:10px;border-radius:6px;padding:4px 7px;background:var(--ht-panel);border:1px solid var(--ht-line);color:var(--ht-text);font:750 11px ui-monospace,monospace}
.ht-vessel-copy {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 14px 0}
.ht-vessel-copy h3 {margin-top:4px}
.ht-vessel-arrow {color:var(--ht-accent);font-size:21px}
.ht-vessel-action {padding:8px 14px 13px;font-size:12px;color:var(--ht-muted)}
.ht-lines {display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:10px;margin:18px 0}
.ht-line {display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:6px;min-height:88px;text-align:left;border:1px solid var(--ht-line);border-radius:11px;background:var(--ht-panel);color:var(--ht-text);padding:10px 11px}
.ht-line[aria-pressed="true"] {border-color:var(--ht-accent);background:var(--ht-tint)}
.ht-line:hover {border-color:var(--ht-accent)}
.ht-line-top {display:flex;justify-content:space-between;align-items:center;width:100%;color:var(--ht-muted);font:700 11px ui-monospace,monospace}
.ht-line-top svg {width:25px;height:18px;stroke:var(--ht-accent);fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.ht-line b {font-size:13px;line-height:1.22}
.ht-line small {color:var(--ht-muted);font-size:10px}
.ht-workspace {display:grid;grid-template-columns:302px minmax(0,1fr);gap:17px;align-items:start}
.ht-card,.ht-panel {background:var(--ht-panel);border:1px solid var(--ht-line);border-radius:13px;min-width:0}
.ht-card {padding:15px}
.ht-panel {overflow:hidden}
.ht-register-head {display:flex;justify-content:space-between;align-items:center;gap:8px}
.ht-register-head h2,.ht-detail h2 {margin:2px 0;font-size:21px;letter-spacing:-.035em}
.ht-label,.ht-muted,.ht-footer {color:var(--ht-muted)}
.ht-register-list {display:grid;gap:8px;margin-top:12px;max-height:640px;overflow:auto}
.ht-record {display:block;width:100%;text-align:left;border:1px solid var(--ht-line);border-radius:9px;background:var(--ht-input);color:var(--ht-text);padding:10px}
.ht-record[aria-current="true"] {background:var(--ht-tint);border-color:var(--ht-accent)}
.ht-record strong {display:block;margin:4px 0 3px;font-size:14px}
.ht-record small {display:block;color:var(--ht-muted);font-size:11px;overflow-wrap:anywhere}
.ht-record-row,.ht-detail-head,.ht-evidence-heading {display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.ht-chip {display:inline-flex;align-items:center;border-radius:99px;padding:3px 8px;background:var(--ht-tint);border:1px solid var(--ht-line);font-size:10px;font-weight:750;white-space:nowrap}
.ht-chip.draft {border-color:#bc9a56}
.ht-chip.issued {border-color:#2fad96}
.ht-chip.submitted {border-color:#638bd0}
.ht-chip.void,.ht-chip.closed {border-color:#bb766b}
.ht-detail {padding:16px 18px 0}
.ht-detail h2 {font-size:27px}
.ht-detail p {margin:4px 0;color:var(--ht-muted);font-size:13px}
.ht-dates {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 12px}
.ht-dates>div {background:var(--ht-input);border:1px solid var(--ht-line);border-radius:8px;padding:9px;min-width:0}
.ht-dates strong {display:block;margin-top:3px;font-size:13px;overflow-wrap:anywhere}
.ht-tabs {display:flex;gap:2px;overflow:auto;border-bottom:1px solid var(--ht-line)}
.ht-tabs button {background:transparent;border:0;border-bottom:2px solid transparent;color:var(--ht-muted);padding:10px 12px;white-space:nowrap;font-weight:700;font-size:13px}
.ht-tabs button[aria-selected="true"] {border-bottom-color:var(--ht-accent);color:var(--ht-text)}
.ht-body {padding:16px 18px}
.ht-body h3 {font-size:17px;margin:0 0 12px;letter-spacing:-.02em}
.ht-group {border:1px solid var(--ht-line);border-radius:10px;padding:14px;margin:0 0 14px}
.ht-group legend {font-weight:740;padding:0 7px}
.ht-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.ht-field {min-width:0;display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700}
.ht-field.wide {grid-column:1/-1}
.ht-field textarea {resize:vertical;min-height:76px}
.ht-field input,.ht-field select,.ht-field textarea {width:100%;min-height:37px;background:var(--ht-input);color:var(--ht-text);border:1px solid var(--ht-line);border-radius:7px;padding:7px 8px;font-size:13px;font-weight:500}
.ht-check {display:flex;align-items:center;gap:7px;font-size:13px;min-height:38px}
.ht-check input {accent-color:var(--ht-accent);width:17px;height:17px;flex:none}
.ht-reading {display:grid;grid-template-columns:1.5fr .7fr .65fr 1.6fr auto;gap:8px;align-items:end;margin-bottom:8px}
.ht-steps {display:grid;gap:9px;padding:0;list-style:none}
.ht-steps li {display:grid;grid-template-columns:31px 1fr;gap:9px;border:1px solid var(--ht-line);border-radius:8px;padding:11px}
.ht-steps .step-number {display:grid;place-items:center;border-radius:6px;width:29px;height:29px;background:var(--ht-tint);font:750 12px ui-monospace,monospace}
.ht-steps p {margin:4px 0;color:var(--ht-muted);font-size:13px}
.ht-hint,.ht-warning {background:var(--ht-tint);border:1px solid var(--ht-line);border-radius:8px;padding:10px 12px;font-size:13px;margin:0 0 12px}
.ht-warning {border-color:#ad8c50}
.ht-drop {border:1px dashed var(--ht-highlight);background:var(--ht-tint);border-radius:11px;display:flex;gap:12px;align-items:center;justify-content:space-between;padding:15px;margin-bottom:13px}
.ht-drop.dragover {outline:3px solid var(--ht-accent)}
.ht-drop p {margin:3px 0 0;color:var(--ht-muted);font-size:12px}
.ht-files {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ht-file {border:1px solid var(--ht-line);border-radius:9px;overflow:hidden;background:var(--ht-input)}
.ht-file figure {margin:0;aspect-ratio:4/2.5;background:#172931;display:grid;place-items:center;overflow:hidden;position:relative}
.ht-file figure img {display:block;width:100%;height:100%;object-fit:cover;object-position:50% 47%}
.ht-file figure span {color:#a4b9c6;font-size:13px}
.ht-file-info {padding:11px}
.ht-file-info p {margin:5px 0;overflow-wrap:anywhere;white-space:pre-wrap;font-size:13px}
.ht-file-info .filename {display:block;overflow-wrap:anywhere;font-weight:700;font-size:12px}
.ht-dialog {width:min(720px,calc(100% - 24px));max-height:90dvh;padding:0;border-radius:14px;background:var(--ht-panel);color:var(--ht-text);border:1px solid var(--ht-line)}
.ht-dialog::backdrop {background:#030911bc}
.ht-dialog header {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 17px;border-bottom:1px solid var(--ht-line)}
.ht-dialog h2 {margin:2px 0;font-size:22px}
#modal-body {padding:16px 17px}
.ht-picture {position:relative;width:max-content;max-width:100%;margin:0 auto 12px;line-height:0}
.ht-picture img {width:auto;height:auto;display:block;max-width:100%;max-height:56vh;border-radius:7px}
.ht-picture button {position:absolute;transform:translate(-50%,-50%);border-radius:50%;background:#074641;color:white;border:2px solid white;width:28px;height:28px;font-size:12px;font-weight:750;line-height:1}
.ht-picture.pinning img {cursor:crosshair}
.ht-pin-list {display:grid;gap:7px;margin:10px 0}
.ht-pin-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.ht-activity {display:grid;gap:6px;padding-left:18px;font-size:13px}
.ht-activity span {color:var(--ht-muted)}
.ht-pdf-shares {margin-top:20px;padding:14px;border:1px solid var(--ht-line);border-radius:9px;background:var(--ht-input)}
.ht-pdf-shares ul {list-style:none;margin:0;padding:0}
.ht-pdf-shares li {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;padding:9px 0;border-top:1px solid var(--ht-line)}
.ht-pdf-shares li small {display:block;color:var(--ht-muted)}
.ht-pdf-shares a.ht-button {text-decoration:none}
.ht-message {margin:12px 0;padding:10px 13px;border:1px solid #3aa99b;border-radius:8px;background:var(--ht-panel)}
.ht-message.error {border-color:#d0776c}
.ht-footer {display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:18px;font-size:10px;letter-spacing:.08em}
.ht-section-actions {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:14px}
.ht-empty {padding:24px;color:var(--ht-muted)}
@media(max-width:1000px) {
  .ht-lines {grid-template-columns:repeat(3,minmax(0,1fr))}
  .ht-workspace {grid-template-columns:237px minmax(0,1fr)}
  .ht-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px) {
  .ht-header {padding:8px 12px;gap:10px}
  .ht-breadcrumb {display:none}
  .ht-main {padding:14px 10px}
  .ht-hero {align-items:flex-start;flex-direction:column;padding:19px 15px;gap:15px}
  .ht-lines {gap:6px;margin:11px 0}
  .ht-line {min-height:70px;padding:7px;gap:4px}
  .ht-line small {display:none}
  .ht-workspace {display:flex;flex-direction:column;gap:10px}
  .ht-workspace>* {width:100%}
  .ht-register-list {display:flex;max-height:none}
  .ht-record {min-width:170px}
  .ht-detail,.ht-body {padding-left:11px;padding-right:11px}
  .ht-detail-head,.ht-evidence-heading {flex-wrap:wrap}
  .ht-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .ht-tabs button {white-space:normal;text-align:left}
  .ht-reading {grid-template-columns:repeat(2,minmax(0,1fr))}
  .ht-drop {align-items:flex-start;flex-direction:column;gap:8px}
}
@media(max-width:390px) {
  .ht-lines {grid-template-columns:repeat(3,minmax(0,1fr))}
  .ht-files {grid-template-columns:1fr}
}
