/* Local title font, bundled for offline use. License: /fonts/Exo-2-OFL.txt. */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/exo-2-bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Exo 2'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/exo-2-regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Exo 2'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/fonts/exo-2-medium.ttf') format('truetype');
}
/* Preserve existing sizes and layout while previewing Exo 2 throughout SLATE. */
body, button, input, select, textarea { font-family: 'Exo 2', Arial, sans-serif; }
button { font-weight: 500; }
label { font-weight: 500; }
strong, b { font-weight: 700; }
/* Card headings retain their existing bold weight. */
h2, h3, h4, summary, .dashboard-group-heading {
  font-family: 'Exo 2', Arial, sans-serif;
}
/* SLATE shared theme. Layout and branding live here; page styles define their own tools. */
:root {
  --slate-text: #f1f5f9;
  --slate-muted: #e2e8f0;
  --slate-surface: #252c31;
  --slate-net-image: url('/slate-deck-net-preview.png');
  --slate-stone-background: linear-gradient(#151b2033,#151b2066), url('/slate-deck-preview.png') center top/100% 100% no-repeat var(--slate-surface);
}
html { background: var(--slate-surface); }
body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 0 0;
  color: var(--slate-text);
  background: var(--slate-stone-background);
}
/* Net follows the full document height, rather than stopping halfway down the viewport. */
body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 50%;
  z-index: -1;
  pointer-events: none;
  background: var(--slate-net-image) center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 92%, transparent 100%);
}


main {
  position: relative;
  width: 100%;
  max-width: 940px;
  box-sizing: border-box;
  margin: auto;
  padding: 4px 18px 30px;
  color: var(--slate-text);
  background: transparent;
}

/* Shared brand: the original stone plaque on every screen size. */
body > header {
  box-sizing: border-box;
  max-width: 960px;
  margin: auto;
  padding: 4px 16px 5px;
  background: transparent;
  color: var(--slate-muted);
  text-align: center;
}
.site-header > div { max-width: 100%; }
.slate-wordmark {
  width: 100%;
  max-width: 640px;
  min-width: 0;
  margin: 0 auto;
  font: inherit;
  line-height: 0;
}
.slate-logo-full {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(2px 5px 2px #0009) drop-shadow(10px 22px 12px #000b);
}
.slate-logo-compact { display: none; }
body > header p, body > header a { color: var(--slate-muted); }
.header-guide { margin: 4px 0 0; font-size: .9rem; line-height: 1.4; }
.header-guide a { font-weight: 700; }
#appTagline { display: none; }

/* App controls occupy their own row. Informational-page headers do not use this grid. */
.app-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px 12px; }
.app-header .slate-wordmark { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 0; }
.app-header .header-guide { grid-column: 2; grid-row: 2; margin: 0; }
.app-header > button {
  position: static;
  grid-row: 2;
  align-self: center;
  max-width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: .8rem;
  line-height: 1.2;
  white-space: normal;
}
#quickLostGearButton { grid-column: 1; justify-self: start; border: 2px solid #ff2929; }
#installSlate { grid-column: 3; justify-self: end; }
.app-header #logoutButton { grid-column: 4; justify-self: end; }
.app-header:has(#installSlate[hidden]) { grid-template-columns: auto minmax(0, 1fr) auto; }
.app-header:has(#installSlate[hidden]) #logoutButton { grid-column: 3; }
body:has(#app[hidden]):has(#deckhandDashboard[hidden]) #logoutButton { display: none; }

/* Session controls and compact dashboard cards. */
.session-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
  margin: 10px 0;
}
#who {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #6a7783;
  border-radius: 8px;
  background: #202a32;
  color: var(--slate-muted);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}
#who::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #218739;
  box-shadow: 0 0 0 3px #21873922;
  flex: none;
}
.session-bar #logoutButton { flex: none; margin: 0; font-size: .85rem; padding: 8px 10px; }
:is(#app section,#passportToolsEntry):has(>details.app-panel:not([open])) { padding: 12px 16px; margin: 10px 0; }
.app-panel:not([open]) > summary { font-size: 1.12rem; line-height: 1.3; min-height: 24px; }
.sub-panel:not([open]) > summary, .maintenance-engine:not([open]) > summary { font-size: 1rem; }

/* Component colors and fishing tools. */
section,.card,nav[aria-label='On this page']{background:linear-gradient(#242b31b8,#171e24cc);border:1px solid #68727b;border-top-color:#9099a2;border-radius:8px;box-shadow:inset 0 2px 5px #0008,0 1px 1px #cbd5e133;color:#f1f5f9}
h2,h3,h4,dt,.app-panel>summary,.sub-panel>summary,.trip-history-item>summary,.dock-reservation>summary,.pot-history button{color:#e2e8f0;text-shadow:none}
a{color:#dae4ef}a:hover{color:#fff}
input,select,textarea{background:#e2e8f0;color:#17212b;border:1px solid #8995a1;border-radius:5px;box-shadow:inset 0 2px 3px #0002}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #c4b5fd;outline-offset:3px}
button,.trip-pdf-link{background:linear-gradient(#54616c,#35414b);color:#fff;border:1px solid #8c98a3;box-shadow:inset 0 1px 1px #ffffff33,0 2px 3px #0006}
button:hover,.trip-pdf-link:hover{background:linear-gradient(#647381,#43515e)}button:disabled{opacity:.5;cursor:default}
.muted{color:#dce5ee;line-height:1.5;opacity:1}
.error{color:#ffc6c0}
.trip-line,.trip-totals,.dock-reservation-notes,.need-message,.fleet-port,.pot-help,.trip-setup-panel,.note{background:#242d35;color:#e2e8f0;border-color:#71808c}
.accounting-line{display:flex;justify-content:space-between;gap:12px;margin:5px 0}
.accounting-line strong{white-space:nowrap}
.accounting-person{padding:12px;margin:10px 0;border:1px solid #71808c;border-radius:8px;background:#242d35}
.accounting-person h4{margin:0 0 8px}
.accounting-payment{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin-top:12px}
.accounting-payment label{flex:1 1 125px;min-width:0}
.accounting-payment input{display:block;width:100%;box-sizing:border-box}
.accounting-payment button{margin:0}
.accounting-outstanding{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.accounting-outstanding h3{grid-column:1/-1;margin:0}
.accounting-outstanding-card{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid #91b5bd;border-radius:8px;background:#20343c}
.accounting-outstanding-card strong{font-size:1.5rem;color:#f1f5f9}
@media(max-width:600px){.accounting-outstanding{grid-template-columns:minmax(0,1fr)}}
#app section.needs-attention,#app details.sub-panel.needs-attention{background:transparent;border-color:#df8d87}.dock-reservation.awaiting-response,.dock-reservation.unread-note{background:#38272a;border-color:#df8d87}
#app section.needs-attention>details.app-panel>summary,#app details.sub-panel.needs-attention>summary,.dock-reservation.awaiting-response>summary,.dock-reservation.unread-note>summary{color:#ffc6c0}
#app section.has-available-loads,#app section.maintenance-in-spec{background:#20362d;border-color:#81b898}
#app section.has-available-loads>details.app-panel>summary,#app section.maintenance-in-spec>details.app-panel>summary{color:#b8e7ca}
#app section.maintenance-out-of-spec{background:transparent;border-color:#df8d87}#app section.maintenance-out-of-spec>details.app-panel>summary{color:#ffc6c0}
footer,footer div{background:transparent;color:#e2e8f0}footer{position:relative;max-width:940px;margin:auto}
/* Fishing tools carry the same stone surface into fullscreen views. */
#potSpacingPanel[open],#gearRecoveryPanel[open],#aisPanel[open],#catchCountPanel[open],.fishing-map-fullscreen {
  isolation: isolate;
  background: var(--slate-stone-background);
  color: var(--slate-text);
}
#potSpacingPanel[open]::before,#gearRecoveryPanel[open]::before,#aisPanel[open]::before,#catchCountPanel[open]::before,.fishing-map-fullscreen::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: 50vh;
  z-index: -1;
  pointer-events: none;
  background: var(--slate-net-image) center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 92%, transparent 100%);
}
#tripPdfViewer:not([hidden]){background:#e2e8f0;color:#1e293b}
#fishingToolsSection .muted{color:#dce5ee;line-height:1.5;opacity:1}
#fishingToolsSection .trip-setup-panel:not([open]),#fishingToolsSection .pot-help,.pot-readouts div,.catch-summary>div,.catch-entry-edit{background:linear-gradient(#242b31dd,#171e24e6);color:#e2e8f0;border-color:#71808c;box-shadow:inset 0 2px 5px #0008}
#fishingToolsSection h3,.pot-help summary,.pot-screen-more>summary,.pot-history button{color:#e2e8f0}
#fishingToolsSection .error,#potSpacingStatus.error{color:#ffc6c0}
#potSpacingStatus.ready,.catch-quota-heading-line,.catch-quota-inline{color:#b8e7ca}
.catch-quota-summary{background:#20362d;color:#e2e8f0}.catch-quota-summary.has-overage{background:#38272a}.catch-quota-summary .over,.catch-quota-heading-line.over,.catch-quota-inline.over{color:#ffc6c0}
.catch-pot-metrics{color:#cbd5e1}#catchTripDayPrompt{background:#3d3525;color:#f1f5f9}
.pot-screen-header{background:linear-gradient(#303b45f2,#1b242cf2);color:#f8fafc;border-bottom:1px solid #71808c}.pot-screen-header h2{color:#f8fafc}
.pot-screen-header button{background:linear-gradient(#54616c,#35414b);color:#fff;border:1px solid #8c98a3}
.gps-paused#potSpacingPanel[open],.fishing-map-fullscreen.gps-paused{background:#751b25;color:#fff}
.gps-paused#potSpacingPanel[open]::before,.fishing-map-fullscreen.gps-paused::before{display:none}
.gps-paused .pot-screen-header{background:#9f2532;border-bottom-color:#ffb7b7}
.gps-paused #potSpacingStatus{background:#bd2c3b;color:#fff!important;border:2px solid #ffd1d1;border-radius:8px;padding:14px;font-weight:800}
.gps-paused .pot-readouts div{border:1px solid #ffc0c0}
.fishing-map-fullscreen a,#potSpacingPanel[open] a,#gearRecoveryPanel[open] a,#aisPanel[open] a,#catchCountPanel[open] a{color:#dae4ef}

.dashboard-group{margin:10px 0}
.dashboard-group>section{margin:0!important}
.dashboard-card{padding:12px 16px;background:linear-gradient(#242b31b8,#171e24cc);border:1px solid #68727b;border-top-color:#9099a2;border-radius:8px;box-shadow:inset 0 2px 5px #0008,0 1px 1px #cbd5e133;color:#f1f5f9}
.dashboard-card>summary{gap:12px}.dashboard-card-name{flex:1}
.dashboard-card-attention{display:none;font-size:.875rem;font-weight:500;color:#ffc6c0}
#attentionEntry.attention-active{margin:10px 0!important;padding:12px 16px!important;background:linear-gradient(#242b31b8,#171e24cc)!important;border:1px solid #df8d87!important;border-radius:8px!important;box-shadow:inset 0 2px 5px #0008,0 1px 1px #cbd5e133!important;color:#f1f5f9!important}\n@media(max-width:600px){#attentionEntry.attention-active{padding:12px!important}}\n#attentionEntry.attention-active>details.app-panel{background:transparent!important;border:0!important;box-shadow:none!important;color:#f1f5f9!important}
#attentionEntry.attention-active>details.app-panel>summary{color:#ffc6c0!important}
.dashboard-card:has(>section.needs-attention:not([hidden]),>section.maintenance-out-of-spec:not([hidden])){border-color:#df8d87}
.dashboard-card:has(>section.needs-attention:not([hidden]),>section.maintenance-out-of-spec:not([hidden]))>summary .dashboard-card-attention{display:inline}
#app .dashboard-card>section{margin:10px 0 0;padding:14px 12px;border-radius:6px;box-shadow:none}
#app .dashboard-card>section>details.app-panel>summary{font-size:1.05rem;line-height:1.4;min-height:32px}
.offline-pot-mode .dashboard-group:not(:has(#fishingToolsSection)):not(:has(#vesselLayoutSection)){display:none}
#app #fishingToolsSection>details.app-panel>details.trip-setup-panel:not([open]){margin:10px 0 0;padding:14px 12px;background:linear-gradient(#242b31b8,#171e24cc);border:1px solid #68727b;border-top-color:#9099a2;border-radius:6px;box-shadow:none;color:#f1f5f9}
#fishingToolsSection>details.app-panel>details.trip-setup-panel:not([open])>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;font-size:1.05rem;font-weight:700;line-height:1.4;min-height:32px;cursor:pointer;color:#e2e8f0}
#fishingToolsSection>details.app-panel>details.trip-setup-panel:not([open])>summary::-webkit-details-marker{display:none}
#fishingToolsSection>details.app-panel>details.trip-setup-panel:not([open])>summary::after{content:'+';font-size:1.6rem;line-height:1}
@media(max-width:480px){#app #fishingToolsSection>details.app-panel>details.trip-setup-panel:not([open]){padding:12px 10px}}
@media(max-width:480px){.dashboard-card>summary{gap:8px}.dashboard-card-attention{max-width:7rem}.dashboard-card{padding:12px}#app .dashboard-card>section{padding:12px 10px}}
/* Support stays available on sign-in and informational pages. */
.support-link{font:inherit;padding:0;margin:0;border:0;box-shadow:none;background:transparent;text-decoration:underline;color:#dae4ef;cursor:pointer}.support-link:hover{background:transparent}
.support-dialog{width:min(480px,calc(100vw - 48px));max-height:85vh;overflow:auto;border:1px solid #8995a1;border-radius:10px;padding:22px;background:#242d35;color:#f1f5f9;box-shadow:0 12px 40px #000b}
.support-dialog::backdrop{background:#0009}.support-dialog h2{margin:0 0 12px}.support-dialog label{display:block;margin-top:12px}.support-dialog input,.support-dialog textarea{width:100%;box-sizing:border-box;padding:9px;font:inherit}.support-dialog p{font-size:.9rem;line-height:1.45}.support-dialog button{padding:10px 14px}.support-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}



/* Form panels use the same dark surface and clear typography as the dashboard. */
.hoist-calendar, .dock-sale-window, .dialog-panel, .available-details .card {
  box-sizing: border-box;
  background: #202a32;
  color: #f1f5f9;
  border: 1px solid #71808c;
}
.hoist-calendar, .dock-sale-window { width: 100%; max-width: 520px; }
.hoist-calendar h4, .dock-sale-window h4, .dialog-panel h2 { color: #f1f5f9; text-shadow: none; }
.hoist-calendar .muted, .hoist-calendar .calendar-status, .dock-sale-window .muted, .dialog-panel .muted { color: #dce5ee; line-height: 1.5; opacity: 1; }
.hoist-calendar .calendar-choice { color: #b8e7ca; }
.hoist-calendar .calendar-grid { background: #172129; color: #f1f5f9; border-color: #71808c; }
.hoist-calendar .calendar-slot { border-bottom-color: #53616e; }
.hoist-calendar .calendar-slot:nth-child(4n+1) { border-top-color: #8998a5; }
.hoist-calendar .calendar-slot.past { background: #26313b; color: #cbd5e1; }
.hoist-calendar .calendar-slot.booked { background: #4c2429; color: #ffd7d3; }
.hoist-calendar .calendar-slot.tentative { background: #352842; color: #ead7ff; }
.hoist-calendar .calendar-slot.open, .hoist-calendar .calendar-slot.selected { background: #1d4430; color: #d1f7dc; }
.hoist-calendar .calendar-slot.available:hover { background: #334554; }
.hoist-calendar .calendar-slot:focus-visible { outline: 3px solid #c4b5fd; outline-offset: -3px; }

/* Native date fields stay within their labels and align on iPhone/WebKit too. */
input[type="date"], input[type="time"], input[type="datetime-local"] {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: light;
}
input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value { min-height: 1.2em; text-align: left; margin: 0; }
input[type="date"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit { padding: 0; }
.calendar-date-field { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; max-width: 360px; min-width: 0; }
.calendar-date-field input { display: block; width: 100%; margin: 0; }
.row > label:has(input[type="date"]), .row > label:has(input[type="datetime-local"]) { min-width: 0; max-width: 100%; }

/* Remaining shared form/catalog labels must not retain light-theme gray text. */
.maintenance-engine>summary, .maintenance-item>summary, .maintenance-item>details>summary,
.trip-edit-list summary, .trip-add-crew>summary, .trip-add-item>summary,
#tripShareCrewList .trip-edit-list button,
#productList button, #marketList button, #salesAccountList button, .account-group button { color: #e2e8f0; text-shadow: none; }
.maintenance-engine.service-needed>summary, .maintenance-item.service-needed>summary { color: #ffc6c0; background: #38272a; }
.vessel-name-field span { background: #242d35; color: #e2e8f0; border-color: #8995a1; }
.redacted { background: #3d3525; color: #f1f5f9; }

/* One phone breakpoint owns header sizing, controls, and session visibility. */
@media (max-width: 600px) {
  body { padding-top: 6px; }
  body > header { padding: 2px 12px 6px; }
  .app-header { gap: 6px; grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .app-header .header-guide { font-size: .78rem; line-height: 1.3; }
  main { padding: 4px 12px 24px; }
  section, .card { padding: 16px; }
  .app-header > button { min-height: 36px; padding: 6px; font-size: .65rem; white-space: nowrap; }
  .app-header .header-guide { min-width: 0; }
  .app-header .header-guide a { display: flex; align-items: center; justify-content: center; min-height: 36px; font-size: 0; white-space: nowrap; }
  .app-header .header-guide a::after { content: attr(data-short-label); font-size: .68rem; }
  .header-guide { margin-top: 0; }
  .session-bar { justify-content: flex-end; padding: 0; margin: 4px 0; background: transparent; border: 0; box-shadow: none; }
  .session-bar #who { display: none; }
  .session-bar { display: none; }
  .session-bar #logoutButton { min-height: 44px; font-size: .8rem; padding: 8px 10px; }
  .app-panel:not([open]) > summary { font-size: 1.05rem; }
  :is(#app section,#passportToolsEntry):has(>details.app-panel:not([open])) { padding: 10px 12px; margin: 8px 0; }
}

/* Account search, readable history, compact fishing tools, and touch scrolling. */
.account-group{margin:10px 0;padding:10px;border:1px solid #71808c;border-radius:8px}
.account-group>summary{font-weight:700;cursor:pointer;color:#eef3f8}
.account-group ul{padding:0;list-style:none}.account-group li{padding:10px 0;border-top:1px solid #71808c;overflow-wrap:anywhere}
.account-group button{color:#e2e8f0;min-height:36px;overflow-wrap:anywhere}
.account-group .account-reset{display:block;border:1px solid #aebdca;border-radius:5px;padding:6px 9px;margin-top:6px}
#arrivalPortList{padding:0;list-style:none}#arrivalPortList li{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:6px 0}
#arrivalPortList li>span{flex:1;min-width:0;overflow-wrap:anywhere}#arrivalPortList button{flex:none;margin:0;padding:6px 8px;min-height:34px;font-size:.8rem}
.market-need-history>summary,.market-need-card,.fleet-port>summary,.need-message,.need-message.own{color:#e2e8f0}
.need-message.own{background:#233c30}.need-unread,.counter-offer,.schedule-note,.available-status{color:#ffc6c0}
.market-need-history{border-color:#71808c}.gear-detail{background:#202930;color:#eef3f8;overflow-wrap:anywhere}
.gear-detail form{margin:8px 0}.gear-actions{display:flex;flex-wrap:wrap;gap:8px}.gear-actions button{min-height:44px}
.gear-detail label{display:block}.gear-detail input,.gear-detail textarea{width:100%;min-width:0;box-sizing:border-box}
#gearList{max-height:45vh;min-height:100px;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#gearList button{width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;min-height:44px}
.gear-list li{overflow-wrap:anywhere}.pot-screen-body{touch-action:pan-y;-webkit-overflow-scrolling:touch}
.pot-screen-header{gap:8px;padding:8px 12px}.pot-screen-header h2{white-space:nowrap;min-width:0}
#potMarkLostGearButton,#gearMarkLostGearButton{border:2px solid #ff2929;background:#26303a;color:#fff;white-space:nowrap}
.fishing-map-fullscreen #gearDetail{flex:none;max-height:48vh;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;margin:4px 8px}
@media(max-width:600px){
  #potSpacingPanel .pot-screen-header,#gearRecoveryPanel .pot-screen-header{gap:6px;padding:8px}
  #potSpacingPanel .pot-screen-header h2,#gearRecoveryPanel .pot-screen-header h2{font-size:1rem;flex:1;text-align:center}
  #potSpacingPanel .pot-screen-header button,#gearRecoveryPanel .pot-screen-header button{padding:7px 8px;font-size:.75rem;min-height:38px}
  .fishing-map-fullscreen .pot-screen-header h2{font-size:1rem}
  .fishing-map-fullscreen .pot-screen-header button{font-size:.75rem;padding:8px}
}

.guide-chapter>summary{font-size:1.35rem;font-weight:700;color:#e2e8f0;cursor:pointer;line-height:1.3}
.guide-chapter[open]>summary{margin-bottom:16px}#guideSearch{width:100%;box-sizing:border-box;min-height:44px}
#guideSearchStatus{min-height:1.5em}.guide-chapter p,.guide-chapter li{line-height:1.55}
.market-need-card button,.market-need-history button{color:#fff}

.fishing-map-fullscreen #gearStatus{flex:none;padding:4px 10px;margin:0;background:#202930;color:#e2e8f0}
.fishing-map-fullscreen #gearStatus.error{color:#ffc6c0}

.maintenance-status.upcoming,.accepted-status,.accepted-bid-highlight:not(.available-summary){color:#b8e7ca}
.maintenance-status.due,.maintenance-status.overdue{color:#ffc6c0}
.dock-sale-totals div{background:#242d35;color:#f1f5f9}.dock-sale-totals dt{color:#e2e8f0}
input::placeholder,textarea::placeholder{color:#455160;opacity:1}

/* Keep header actions above the plaque shadow with a readable solid surface. */
.app-header { isolation: isolate; row-gap: 14px; }
.app-header > button, .app-header .header-guide { position: relative; z-index: 2; }
.app-header .header-guide a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #8c98a3;
  border-radius: 5px;
  background: linear-gradient(#54616c,#35414b);
  color: #fff;
  box-shadow: inset 0 1px 1px #ffffff33,0 2px 3px #0006;
  text-decoration: none;
}
.app-header .header-guide a:hover { background: linear-gradient(#647381,#43515e); }
@media(max-width:600px) {
  .app-header .header-guide a { padding: 6px; }
}





/* iOS Home Screen app only. Keep viewport-fit=auto: WebKit may already
   inset the viewport, in which case env(safe-area-inset-top) is zero.
   Replace existing body/header top padding so the inset is counted once,
   with 8px clearance; preserve logo dimensions and horizontal alignment. */
@supports (-webkit-touch-callout: none) {
  @media (display-mode: standalone) and (max-width: 600px),
         (display-mode: standalone) and (max-height: 600px) and (pointer: coarse) {
    body:has(> header.app-header) {
      padding-top: calc(env(safe-area-inset-top, 0px) + 8px);
    }
    body > header.app-header { padding-top: 0; }
  }
}

/* Minimized Gear Recovery: keep selected details inside the visible screen. */
#gearRecoveryPanel > .pot-screen-body > #gearDetail:not([hidden]) {
  position: fixed; z-index: 102;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  box-sizing: border-box; min-width: 0; max-width: 900px; margin: 0 auto;
  max-height: 48vh; max-height: min(48dvh, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 80px));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #202a32; box-shadow: 0 -4px 20px #0008; overflow-wrap: anywhere;
}
#gearDetail { box-sizing: border-box; overflow-wrap: anywhere; }
#gearDetail input, #gearDetail textarea { max-width: 100%; }
.gear-detail-close { float: right; margin: 0 0 8px 12px; }

.slate-service-message{position:relative;z-index:1;max-width:900px;margin:12px auto 20px;padding:14px 18px;background:#202d33f5;color:#eef5f1;border:1px solid #9ab8ad66;border-left:3px solid #b7e3d1;border-radius:7px;box-sizing:border-box}.slate-service-message strong{display:block;color:#c5f0db;font-size:15px;line-height:1.5}.slate-service-message p{margin:7px 0;font-size:13px;line-height:1.6}.slate-service-message small{display:block;color:#d3ded9;font-size:12px;line-height:1.5}@media(max-width:600px){.slate-service-message{margin:10px 12px 16px;padding:12px 14px}.slate-service-message strong{font-size:14px}}

/* Recruit on the entry screens, not the signed-in workspace. */
body:has(#app:not([hidden])) .slate-service-message{display:none}
body:has(#deckhandDashboard:not([hidden])) .slate-service-message{display:none}
#catalogEntryDialog{width:min(94vw,520px);max-height:85dvh;overflow:auto;box-sizing:border-box;background:#202d33;color:#eef5f1;border:1px solid #9ab8ad;border-radius:10px;padding:22px}
#catalogEntryDialog::backdrop{background:#000b}
#catalogEntryDialog label,#catalogReviewList label{display:block;margin:12px 0}
#catalogEntryDialog input,#catalogEntryDialog select,#catalogReviewList input{display:block;width:100%;max-width:100%;box-sizing:border-box;margin-top:5px}
#catalogEntryDialog button{margin:8px 8px 0 0}
#catalogReviewList .action-panel{max-width:none}

/* Local October 25 workflow fixes */
#catchCountPanel .catch-string-top-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:10px}
#catchCountPanel .catch-string-top-row>label{display:flex;flex-direction:column;justify-content:flex-end;min-width:0;align-self:stretch}
#catchCountPanel .catch-string-top-row input,#catchCountPanel .catch-string-top-row select{width:100%;min-width:0;box-sizing:border-box;margin-top:auto}
.lost-gear-confirm{max-width:480px;width:calc(100% - 36px);box-sizing:border-box;max-height:85dvh;overflow:auto;border:2px solid #ef4444;border-radius:12px;background:#142a35;color:#fff;padding:20px}
.lost-gear-confirm textarea{display:block;width:100%;box-sizing:border-box;font:inherit;margin:8px 0 16px}
.lost-gear-confirm button{min-height:48px}.lost-gear-confirm::backdrop{background:#000a}
.lost-gear-confirm .guest-code-row{display:flex;flex-wrap:nowrap;align-items:end;gap:10px;margin:8px 0}
.lost-gear-confirm .guest-code-row>button{flex:0 0 auto}
.lost-gear-confirm .guest-code-row>label{flex:1 1 0;min-width:0;margin:0}
.lost-gear-confirm .guest-code-row input{display:block;width:100%;min-width:0;box-sizing:border-box}
.lost-gear-confirm [data-code-status]{display:block}


#catchCountPanel .catch-string-top-row input,#catchCountPanel .catch-string-top-row select{height:48px;min-height:48px;margin-bottom:0;margin-top:8px}


/* Match the standalone Crew card wrapper to the shared dashboard card spacing. */
#crewToolsEntry{margin:10px 0;padding:12px 16px}
@media(max-width:600px){
  .dashboard-group{margin:8px 0}
  #crewToolsEntry,#passportToolsEntry:has(>details.app-panel:not([open])),#attentionEntry.attention-active{margin:8px 0!important;padding:12px!important}
}
