:root {
    --navy: #10283f;
    --ink: #1c3a50;
    --muted: #506777;
    --line: #d6e3e9;
    --teal: #006e7c;
    --paper: #f1f6f8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.5 system-ui, sans-serif; }
a { color: var(--teal); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #0c8293; outline-offset: 3px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 62px; padding: 10px max(24px, calc((100vw - 1192px) / 2)); background: var(--navy); color: white; }
.site-header a { color: inherit; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand strong { padding-right: 10px; border-right: 1px solid #5a768b; color: #a8dedc; font-size: 16px; }
.brand span { font-weight: 650; }
.site-header nav { display: flex; align-items: center; gap: 8px; }
.site-header nav a { padding: 7px 12px; border-radius: 6px; white-space: nowrap; }
.site-header nav a:hover, .site-header nav [aria-current] { background: #29475d; }
main { max-width: 1240px; margin: auto; padding: 34px 24px 42px; }
.page-heading { margin-bottom: 22px; }
h1 { margin: 0 0 4px; color: var(--navy); font-size: clamp(32px, 4vw, 46px); line-height: 1.15; letter-spacing: -.04em; }
.page-heading p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 365px); align-items: start; gap: 18px; }
#benchmark-form { display: grid; gap: 14px; min-width: 0; }
.panel { margin: 0; padding: 21px 22px; border-radius: 12px; border: 1px solid var(--line); background: #fff; min-width: 0; }
h2 { margin: 0 0 13px; color: var(--navy); font-size: 17px; line-height: 1.3; font-weight: 700; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { display: grid; gap: 5px; color: var(--ink); font-weight: 600; min-width: 0; }
select, input[type=date] { width: 100%; min-width: 0; min-height: 40px; padding: 7px 9px; color: var(--ink); background: white; border: 1px solid #b8ccd7; border-radius: 6px; }
.period { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0 11px; }
.period button { min-height: 32px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
.period button:hover, .period [aria-pressed=true] { border-color: #80b8bc; color: #075968; background: #e8f6f4; }
.format-field { margin-top: 13px; max-width: 420px; }
.field-note { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.review { position: sticky; top: 14px; border-top: 3px solid var(--teal); }
.review h2 { color: var(--muted); font-size: 14px; margin-bottom: 5px; }
.vessel-name { color: var(--navy); font-size: 25px; letter-spacing: -.025em; font-weight: 700; line-height: 1.25; margin: 0 0 13px; }
dl { margin: 0 0 14px; }
dl div { display: grid; grid-template-columns: 87px minmax(0, 1fr); gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.weather-rule { border-left: 3px solid #b85c18; border-radius: 5px; background: #fbf2e9; color: #793910; padding: 9px 11px; margin-bottom: 13px; }
.weather-rule p { margin: 1px 0 0; font-size: 12px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 11px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.primary { background: var(--teal); color: #fff; border: 1px solid var(--teal); }
.primary:hover:not(:disabled) { background: #005963; }
.secondary { border: 1px solid #a9c4d0; color: var(--teal); }
#generate { width: 100%; }
.status { margin: 8px 0 0; color: var(--ink); }
.status:empty { margin: 0; }
.status.error { color: #9b352e; }
.output { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@media (max-width: 780px) { .report-layout { grid-template-columns: 1fr; }.review { position: static; } }
@media (max-width: 520px) { .site-header { padding-inline: 12px; gap: 6px; }.brand span { display: none; }.brand strong { border: 0; }.site-header nav a { padding-inline: 8px; } main { padding: 22px 12px 32px; }.panel { padding-inline: 13px; }.fields { gap: 8px; } }
