:root{--ink:#183b40;--muted:#637a7c;--paper:#f4f3ec;--white:#fffefa;--line:#dce2dc;--sea:#286460;--deep:#173e43;--mint:#dcece3;--gold:#e9bd68;--amber:#8c581a;--red:#a64132;--radius:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 100% 0,#e4eee5 0,transparent 42%),var(--paper)}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button{touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.55}a{color:var(--sea)}.app-shell{max-width:800px;margin:auto;padding:32px 24px 120px}.masthead{display:flex;align-items:center;justify-content:space-between;gap:24px}.eyebrow{display:block;font-size:10px;letter-spacing:.17em;text-transform:uppercase;font-weight:750;color:var(--muted)}h1{font-family:Georgia,serif;font-weight:500;font-size:54px;letter-spacing:-2.5px;line-height:1.05;margin:8px 0 0}.brand-dot{color:#bb9653}.vessel{min-width:175px}.vessel label{display:block;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.12em;margin:0 0 8px 2px}.vessel select{width:100%;border:1px solid #cbd6ce;border-radius:14px;padding:14px 34px 14px 15px;background:var(--white);color:var(--ink);font-weight:700;min-height:50px}.workspace-status{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;margin:22px 0 24px;border-bottom:1px solid var(--line);padding-bottom:16px}.status-dot{display:inline-block;width:6px;height:6px;background:#66927a;border-radius:50%;margin-right:6px}.intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:8px 0 18px}.intro h2{font-size:24px;letter-spacing:-.8px;margin:0 0 5px}.subtle{color:var(--muted);font-size:13px;line-height:1.55;margin:0}.text-button{border:1px solid var(--line);background:transparent;color:var(--ink);font-size:12px;font-weight:650;padding:12px 14px;border-radius:12px;min-height:44px;white-space:nowrap}.stage-switch{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:#e6eae2;padding:5px;border-radius:16px;margin:18px 0}.stage{border:0;color:var(--muted);background:transparent;border-radius:12px;text-align:left;padding:12px 14px;min-height:64px;position:relative}.stage strong{display:block;font-size:13px}.stage small{display:block;font-size:10px;margin-top:5px;opacity:.9}.stage[aria-pressed=true]{background:var(--deep);color:#fffefa;box-shadow:0 4px 8px #163b4014}.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);margin:16px 0;overflow:hidden}.card-pad{padding:23px}.details-card summary{list-style:none;cursor:pointer;padding:20px 23px;display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:72px}.details-card summary::-webkit-details-marker{display:none}.details-card summary:after{content:'+';font-size:22px;font-weight:400;color:var(--sea)}.details-card[open] summary:after{content:'−'}.details-card summary strong{font-size:15px;display:block}.details-card summary small{display:block;font-size:12px;color:var(--muted);margin-top:5px;line-height:1.4}.details-body{padding:0 23px 23px;border-top:1px solid #edf0ea}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.field label{display:block;font-size:11px;font-weight:700;letter-spacing:.02em;margin:0 0 8px;color:#506b6c}.field input,.field select,.field textarea,.reason{width:100%;min-height:48px;border:1px solid #d9e0d9;background:#f8f9f4;border-radius:11px;padding:12px;color:var(--ink);font-size:16px}.field textarea,.reason{line-height:1.5;resize:vertical;min-height:90px}.field small{font-size:11px;line-height:1.5;color:var(--muted);display:block;margin-top:7px}.field input[aria-invalid=true]{border-color:var(--red)}.section-kicker{font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:750;color:var(--muted);margin:24px 0 0}.section-title{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:22px 23px 17px}.section-title h3{margin:0;font-size:17px;letter-spacing:-.4px}.section-title p{margin:5px 0 0;font-size:12px;color:var(--muted)}.progress-label{font-size:12px;color:var(--sea);white-space:nowrap;font-weight:700}.progress-track{height:3px;background:#edf0e8;margin:0 23px 4px}.progress-fill{height:100%;background:var(--sea);transition:width .2s}.check-row{padding:18px 23px;border-bottom:1px solid #e8ece5;display:grid;grid-template-columns:1fr auto;column-gap:18px;align-items:center}.check-row:last-child{border-bottom:0}.check-label{display:flex;gap:11px}.check-number{width:23px;flex-shrink:0;margin-top:1px;font-size:10px;color:#80918c;font-weight:650}.check-row h4{font-size:14px;margin:0;font-weight:650;line-height:1.4}.check-row p{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.5}.answer-options{display:flex;gap:5px}.answer-options button{border:1px solid #dce3dc;border-radius:10px;min-height:44px;padding:0 12px;font-size:11px;font-weight:700;background:var(--white);color:#637775}.answer-options button[data-status=done][aria-pressed=true]{background:var(--mint);border-color:#b1cdbb;color:#235b43}.answer-options button[data-status=issue][aria-pressed=true]{background:#fff0e1;border-color:#e3c2a0;color:var(--amber)}.answer-options button[data-status=na][aria-pressed=true]{background:#e7edf0;border-color:#c6d3d8;color:#43616d}.check-row.has-error{background:#fff6ed}.check-row .reason-wrap{grid-column:1/-1;margin:14px 0 0 34px}.reason-wrap label{display:block;font-size:11px;color:var(--amber);font-weight:700;margin-bottom:7px}.check-row.is-done .check-number{color:var(--sea)}.notes-card h3{font-size:16px;margin:0 0 16px}.primary,.secondary{border-radius:13px;min-height:50px;padding:14px 20px;font-size:13px;font-weight:700;border:1px solid transparent;line-height:1.4}.primary{background:var(--deep);color:white}.secondary{background:var(--white);border-color:#ccd8ce;color:var(--ink)}.primary:hover{background:#255b5f}.secondary:hover,.text-button:hover{background:#eaf0e8}.wide{width:100%}.sheet-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:4px 0 12px}.sheet-footer p{max-width:280px}.badge{display:inline-block;border-radius:7px;padding:5px 8px;font-size:10px;font-weight:750;letter-spacing:.04em;line-height:1.2;background:var(--mint);color:#2e674b}.badge.warn{background:#fff0dc;color:var(--amber)}.badge.neutral{background:#e9eeeb;color:#55706b}.review-banner{background:var(--deep);color:#fffefa;border-radius:var(--radius);padding:26px}.review-banner h2{font-family:Georgia,serif;font-size:31px;font-weight:500;letter-spacing:-.8px;margin:14px 0 8px}.review-banner p{color:#d3e0d9;font-size:13px;line-height:1.65;margin:0;max-width:510px}.review-banner .badge{background:#e5cc97;color:#493d27}.error-list{padding:20px 23px;border:1px solid #e3cdb3;background:#fff8ec;border-radius:16px;margin:16px 0}.error-list h3{margin:0 0 10px;font-size:14px}.error-list ul{padding-left:18px;margin:0;font-size:12px;line-height:1.8}.error-list button{margin-top:15px}.report{white-space:pre-wrap;word-break:break-word;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.85;padding:23px;margin:0;background:#f8f9f4;border-top:1px solid var(--line)}.review-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.explanation{font-size:12px;line-height:1.6;color:var(--muted);padding:0 3px;margin-top:14px}.bottom-nav{position:fixed;z-index:20;bottom:max(14px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(3,1fr);gap:5px;width:min(752px,calc(100% - 28px));padding:7px;border:1px solid #ced7ce;border-radius:19px;background:#fffffaf2;backdrop-filter:blur(16px);box-shadow:0 8px 40px #263e3820}.bottom-nav button{display:flex;align-items:center;justify-content:center;gap:9px;padding:15px 9px;font-size:12px;min-height:50px;border:0;background:transparent;color:#647b76;border-radius:12px;font-weight:650}.bottom-nav button span{font-size:18px}.bottom-nav button[aria-current=page]{background:var(--deep);color:var(--white)}footer{text-align:center;color:#7c8b83;font-size:10px;line-height:1.7;margin:35px 0 0}.notice{border:1px solid #e8c39f;background:#fff2df;border-radius:14px;padding:15px;font-size:13px;line-height:1.6;margin:15px 0}.toast{position:fixed;z-index:40;bottom:100px;left:50%;transform:translateX(-50%);max-width:calc(100% - 32px);width:max-content;border-radius:12px;padding:14px 18px;background:var(--deep);color:#fff;font-size:13px;box-shadow:0 5px 20px #0002}.empty{text-align:center;padding:42px 24px}.empty-mark{font-family:Georgia,serif;font-size:44px;color:#99b4a6;margin-bottom:14px}.empty h3{font-size:19px;margin:0 0 8px}.log-row{padding:20px 23px;border-bottom:1px solid var(--line)}.log-row:last-child{border:0}.log-row summary{cursor:pointer;list-style:none;display:flex;gap:14px;align-items:center;justify-content:space-between;min-height:44px}.log-row summary::-webkit-details-marker{display:none}.log-row h3{font-size:14px;margin:0 0 5px}.log-row p{font-size:12px;color:var(--muted);line-height:1.5;margin:0}.log-row pre{border:1px solid var(--line);border-radius:12px;margin-top:15px}.archive-list{margin-top:28px}.archive-list h3{font-size:15px}.archive-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}.archive-item p{margin:0;font-size:13px;line-height:1.6}.archive-item small{color:var(--muted)}.legacy-note{border-left:3px solid #d5b77b;padding-left:14px;margin:16px 0;font-size:12px;color:var(--muted);line-height:1.6}dialog{max-width:460px;width:calc(100% - 32px);border:1px solid var(--line);border-radius:24px;padding:26px;color:var(--ink);background:var(--white)}dialog::backdrop{background:#09282d75;backdrop-filter:blur(3px)}dialog h2{font-size:24px;letter-spacing:-.7px;margin:0 0 12px}dialog p{font-size:14px;line-height:1.6;color:var(--muted)}.dialog-actions{display:flex;gap:10px;margin-top:25px}:focus-visible{outline:3px solid #b48026;outline-offset:4px}[hidden]{display:none!important}
@media(max-width:600px){.app-shell{padding:22px 17px 120px}.masthead{gap:12px}h1{font-size:43px}.eyebrow{font-size:8px;letter-spacing:.1em}.vessel{min-width:137px;max-width:46%}.vessel select{font-size:14px;padding-left:11px}.workspace-status{font-size:10px;gap:6px}.intro h2{font-size:22px}.stage{padding:12px 10px}.stage strong{font-size:12px}.check-row{grid-template-columns:1fr;padding:18px}.answer-options{margin:13px 0 0 34px;display:grid;grid-template-columns:1.25fr 1fr 1fr}.answer-options button{font-size:12px;min-height:44px}.card-pad{padding:20px}.section-title{padding:20px 18px 15px}.details-card summary{padding:18px}.details-body{padding:0 18px 18px}.field-grid{gap:14px 11px}.field label{font-size:10px}.field input,.field select{padding:11px 10px}.sheet-footer{flex-direction:column;align-items:stretch;gap:12px}.sheet-footer p{max-width:none;text-align:center;font-size:12px;order:2}.sheet-footer button{width:100%}.bottom-nav button{flex-direction:column;gap:4px;font-size:10px;padding:9px 3px}.bottom-nav button span{font-size:19px}.review-actions{grid-template-columns:1fr}.review-banner{padding:23px}.review-banner h2{font-size:28px}.log-row{padding:18px}.intro .text-button{font-size:11px}.dialog-actions{flex-direction:column}.archive-item{align-items:flex-start}.check-note{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.field{min-width:0}.field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.field input,.field select{min-width:0}#main:focus{outline:none}
@media(max-width:360px){h1{font-size:34px;white-space:nowrap;letter-spacing:-1.8px}.masthead{gap:10px}.vessel{min-width:120px}.vessel select{font-size:13px;padding-right:20px}.eyebrow{font-size:7px;letter-spacing:.07em}.stage{padding:12px 8px}.stage strong{font-size:11px}.stage small{font-size:9px}.intro h2{font-size:20px}}
@media(max-width:360px){.field-grid{grid-template-columns:1fr}}

.header-divider{margin:22px 0 24px;border-bottom:1px solid var(--line)}

/* Phone-first cleanup: readable labels, safe wrapping and keyboard clearance. */
.trip-actions{display:flex;justify-content:flex-end;margin:0 0 12px}
.log-row summary>div,.archive-item p{min-width:0;overflow-wrap:anywhere}
.log-row summary .badge{flex-shrink:0}
html{scroll-padding-bottom:120px}
input,select,textarea{scroll-margin-block:24px 130px}
@media(max-width:600px){
  .eyebrow{font-size:11px;letter-spacing:.09em;line-height:1.5}
  .vessel label,.field label,.reason-wrap label{font-size:12px}
  .vessel select{font-size:16px}
  .stage small{font-size:11px}
  .bottom-nav button{font-size:11px}
  .field small,.explanation{font-size:12px}
  .app-shell{padding-bottom:calc(120px + env(safe-area-inset-bottom))}
  .trip-actions{margin-bottom:10px}
  .header-divider{margin:18px 0}
  .log-row summary{align-items:flex-start}
}
@media(max-width:360px){
  .masthead{gap:10px}.brand{min-width:0}h1{font-size:30px}
  .vessel{min-width:132px;max-width:50%}.vessel select{padding-left:10px;padding-right:17px}
  .eyebrow{font-size:10px;letter-spacing:.06em}.stage{padding:12px 7px}.stage small{font-size:10px}
}
@media(max-width:600px) and (max-height:500px){
  body:has(input:focus,textarea:focus) .bottom-nav{display:none}
  body:has(input:focus,textarea:focus) .app-shell{padding-bottom:28px}
  input,textarea{scroll-margin-bottom:24px}
}

@media(max-width:600px){h1{font-size:40px}.vessel{min-width:148px;max-width:55%}}
@media(max-width:360px){h1{font-size:28px;letter-spacing:-1.4px}}

/* Paper duty groups remain inside Post-trip. */
.duty-group{background:#eef2ed;border-top:1px solid var(--line);margin-top:8px}.error-list button{max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:4px 0}.card-pad>details>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}

/* Matching bottom primary actions on Current Trip and Review & Share. */
.bottom-actions{display:grid;grid-template-columns:1fr;gap:0;margin:16px 0 0;padding:0}.bottom-actions>button{width:100%;min-height:50px}
