.dd-root{color:var(--home-ink,#152e33);--muted:var(--home-muted,#536064);--paper:var(--home-card,#f9fbfb)}
.dd-nav{display:flex;border-bottom:1px solid var(--dd-rule);margin:8px 0 20px}
.dd-nav button{border:0;border-bottom:3px solid currentColor;padding:10px 16px;background:transparent;font-weight:700}
.dd-heading,.dd-actions,.dd-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dd-heading{justify-content:space-between}
.dd-layout{display:flex;gap:0}
.dd-layout button[aria-pressed=true]{background:#152e33;color:#fff;border-color:#152e33}
.dd-layout button:first-child{border-radius:5px 0 0 5px}
.dd-layout button:last-child{border-radius:0 5px 5px 0}
.dd-heading h3{font-size:22px;font-weight:600}
.dd-heading p,.dd-note{color:var(--muted);font-size:12px;margin:7px 0}
.dd-actions button,.dd-table-wrap button,.dd-controls input,.dd-controls select,.dd-dialog button,.dd-dialog input,.dd-dialog select,.dd-dialog textarea{font:inherit;color:inherit;background:transparent;border:1px solid var(--dd-rule);border-radius:5px;padding:7px 10px}
.dd-actions button:hover,.dd-table-wrap button:hover,.dd-dialog button:hover{background:#789b8b22}
.dd-controls{margin:18px 0 12px;align-items:end}
.dd-controls label{display:grid;gap:5px;font-size:12px;font-weight:600}
.dd-controls input,.dd-controls select{background:var(--paper);font-size:14px;min-height:37px}
.dd-save-status{font-size:12px;margin-left:auto}
.dd-stats{display:flex;gap:20px;flex-wrap:wrap;padding:18px 0;border-bottom:1px solid var(--dd-rule)}
.dd-stats>div{min-width:130px;display:grid;gap:3px}
.dd-stats strong{font-size:25px;font-weight:500}
.dd-stats span{font-size:12px;color:var(--muted)}
.dd-table-wrap{position:relative;overflow:auto;border:1px solid var(--dd-rule);border-radius:6px;max-height:68vh}
.dd-table-wrap table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;line-height:1.4}
.dd-table-wrap thead{position:sticky;top:0;z-index:1}
.dd-table-wrap thead th{background:#dce8e5;color:#152e33;text-align:center;font-weight:600;padding:9px 10px;border-right:1px solid var(--dd-rule);border-bottom:1px solid var(--dd-rule);white-space:nowrap}
.dd-table-wrap th:first-child{text-align:left}
.dd-table-wrap tbody td,.dd-table-wrap tbody th{padding:9px 10px;border-right:1px solid var(--dd-grid);border-bottom:1px solid var(--dd-grid)}
.dd-table-wrap tbody tr:nth-child(even){background:#789b8b0e}
.dd-table-wrap tbody th{font-weight:600;min-width:130px;white-space:nowrap}
.dd-table-wrap tbody td:last-child{border-right:0}
.dd-table-wrap tbody tr:last-child>*{border-bottom:0}
.dd-number{text-align:center;font-variant-numeric:tabular-nums}
.dd-date{white-space:nowrap;text-align:center}
.dd-row-notes{min-width:100px;max-width:230px;white-space:pre-wrap;overflow-wrap:anywhere}
.dd-survey{display:inline-block;white-space:nowrap;border-radius:4px;padding:3px 7px;font-weight:600}
.dd-survey.ss{background:#dcebe4;color:#245748}
.dd-survey.is{background:#e3edf5;color:#28516c}
.dd-matrix-cell{min-width:73px;text-align:center}
.dd-matrix .dd-matrix-event{border:0;padding:4px 8px;line-height:1.25;margin:2px}
.dd-matrix-event small{display:block;font-size:11px;font-weight:400;margin-top:2px}
.dd-matrix .dd-vessel-edit{border:0;font-weight:600;padding:0;text-align:left}
.dd-matrix tfoot th,.dd-matrix tfoot td{border-top:1px solid var(--dd-rule);border-right:1px solid var(--dd-rule);background:#789b8b12;padding:9px 10px;text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.dd-matrix tfoot th{text-align:left;font-weight:500}
.dd-root{--dd-rule:#a9bdbc;--dd-grid:#c3d2d0;--model-paper:#fff;--model-rule:#dde3e4;--model-muted:#7e8c8f;--model-ss:#152e33;--model-ss-text:#fff;--model-is:#c1cfd0;--model-is-text:#152e33}
.home-view:not(.home-mist) .dd-root{--dd-rule:var(--home-border);--dd-grid:var(--home-border);--model-paper:#17343a;--model-rule:#2a4147;--model-muted:#a3b3b5;--model-ss:#c1cfd0;--model-ss-text:#152e33;--model-is:#4f6b70;--model-is-text:#eef3f3}
.dd-table-wrap:has(.dd-model-matrix){background:var(--model-paper);border-color:var(--model-rule);max-height:78svh}
.dd-table-wrap .dd-model-matrix{table-layout:auto;min-width:1120px;font-size:12.5px}
.dd-model-matrix thead th,.dd-model-matrix tbody td,.dd-model-matrix tbody th{background:transparent;border:0;border-bottom:1px solid var(--model-rule);padding:6px 8px}
.dd-model-matrix thead th{background:var(--model-paper);color:var(--model-muted);font-weight:600}
.dd-model-matrix tbody tr:nth-child(even){background:none}
.dd-model-matrix thead th:first-child,.dd-model-matrix tbody th:first-child{position:sticky;left:0;background:var(--model-paper);z-index:1;min-width:128px}
.dd-model-matrix thead th:first-child{z-index:2}
.dd-model-matrix .dd-next{white-space:nowrap;min-width:145px}
.dd-model-matrix tbody .dd-model-empty,.dd-model-matrix tbody .dd-model-event{width:30px;min-width:30px;padding:0;text-align:center}
.dd-model-empty{color:var(--model-rule)}
.dd-model-matrix .dd-model-box{display:block;width:100%;min-height:35px;border:0;border-radius:0;padding:4px 1px;text-align:center;font-size:11.5px;font-weight:700;line-height:1.13}
.dd-model-matrix .dd-model-box.ss{background:var(--model-ss);color:var(--model-ss-text)}
.dd-model-matrix .dd-model-box.is{background:var(--model-is);color:var(--model-is-text)}
.dd-model-matrix button.dd-model-box:hover{filter:brightness(1.18)}
.dd-model-matrix button.dd-model-box:focus-visible{outline-offset:-3px;outline:2px solid currentColor}
.dd-model-box small{display:block;margin-top:3px;font-size:10px;font-weight:400}
.dd-model-matrix tfoot th,.dd-model-matrix tfoot td{background:transparent;border:0;border-top:1px solid var(--model-rule);padding:6px 3px}
.dd-model-matrix tfoot tr:nth-child(-n+2)>*{border-top-width:2px;font-weight:700}
.dd-model-matrix tfoot th{padding-left:8px}
.dd-modeled{border-top:1px solid var(--home-border)}
.dd-modeled summary{padding:12px;cursor:pointer;font-weight:600}
.dd-note{margin-top:13px;max-width:980px}
.dd-dialog{color:var(--green);background:var(--paper);border:1px solid var(--dd-rule);border-radius:10px;padding:22px;max-width:min(700px,calc(100vw - 32px));width:700px;max-height:85vh;overflow:auto}
.dd-dialog::backdrop{background:#0d212478}
.dd-dialog form{display:grid;gap:17px}
.dd-dialog-heading,.dd-dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dd-dialog-heading h3{font-size:21px}
.dd-dialog-heading button{font-size:23px;border:0;padding:0 4px}
.dd-dialog fieldset{border:1px solid var(--dd-rule);border-radius:6px;padding:14px}
.dd-dialog legend{font-size:14px;font-weight:700;padding:0 5px}
.dd-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dd-dialog label{display:grid;gap:5px;font-size:12px}
.dd-dialog input,.dd-dialog select,.dd-dialog textarea{width:100%;min-width:0;background:var(--paper);font-size:14px}
.dd-dialog input:disabled,.dd-dialog select:disabled,.dd-dialog textarea:disabled{opacity:.8}
.dd-dialog-foot{justify-content:flex-end}
.dd-dialog .dd-primary{background:#152e33;color:#fff;border-color:#152e33}
.dd-error{font-size:13px;color:#a5352c}
.dd-month-preview{font-size:13px}
.dd-month-preview:empty,.dd-error:empty{display:none}
.dd-source{font-size:12px;color:var(--muted)}
.dd-source summary{cursor:pointer}
.dd-source p{margin:8px 0}
.dd-history article{border-bottom:1px solid var(--dd-rule);padding:10px 0}
.dd-history small{display:block}
.dd-history p{white-space:pre-wrap}
.dd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.home-view:not(.home-mist) .dd-dialog{color:var(--home-ink);background:var(--home-card);--paper:var(--home-card);--muted:var(--home-muted)}
.home-view:not(.home-mist) .dd-controls input,.home-view:not(.home-mist) .dd-controls select{background:#152e33}
.home-view:not(.home-mist) .dd-table-wrap thead th{background:var(--home-soft);color:var(--home-ink)}
.home-view:not(.home-mist) .dd-survey.ss{background:var(--model-ss);color:var(--model-ss-text)}
.home-view:not(.home-mist) .dd-survey.is{background:var(--model-is);color:var(--model-is-text)}
.home-view:not(.home-mist) .dd-primary{background:#dce8e5;color:#152e33}
.home-view:not(.home-mist) .dd-layout button[aria-pressed=true]{background:#dce8e5;color:#152e33;border-color:#dce8e5}
@media(max-width:600px){.dd-form-grid{grid-template-columns:1fr 1fr}.dd-heading h3{font-size:19px}.dd-stats{gap:12px}.dd-stats>div{min-width:100px}.dd-save-status{margin-left:0}.dd-dialog{padding:16px}.dd-form-grid label:first-child{grid-column:1/-1}}
