/* Coast survey office and ship register. */
#build-tabs .tideworks-tab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #3a655d;
  border: 1px solid #babd9c;
  background: #e7e8d1;
}
.tideworks-tab b,
.work-nav i {
  border-radius: 12px;
  background: #c08d48;
  padding: 0 4px;
  font: 700 10px var(--sans);
  color: #fff3d1;
}
.works-open #mission-stack {
  width: 222px;
}
#works-desk {
  border-radius: 7px;
  overflow: hidden;
}
.works-heading {
  padding: 14px 15px 9px;
  border-bottom: 1px solid #d2cbb2;
  background: linear-gradient(110deg, #e8e6c9, #f4ecd4);
}
.works-heading .eyebrow {
  color: #62755e;
  display: flex;
  align-items: center;
  gap: 5px;
}
.works-heading h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  line-height: 1.12;
  margin-top: 4px;
}
.work-prose {
  padding: 11px 15px 12px;
}
.work-prose p,
.work-prose small,
.work-aside,
.work-order small {
  font-size: 11.5px;
  line-height: 1.45;
  color: #586953;
}
.work-prose h3 {
  font-size: 19px;
  line-height: 1.12;
}
.work-prose > h3 {
  margin: 2px 0 4px;
}
.work-prose .work-aside {
  font-size: 10.8px;
  color: #68765e;
}
.work-stats {
  border-top: 1px dashed #c6c3a5;
  border-bottom: 1px dashed #c6c3a5;
  padding: 6px 0;
  margin: 9px 0;
}
.work-stats > div,
.work-folio-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.work-stats span,
.work-stats b,
.work-folio-count {
  font-size: 11px;
  line-height: 1.65;
}
.work-stats b {
  color: #3d624c;
  font-weight: 700;
}
.work-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.work-small,
.work-text,
.work-inline,
.work-nav,
.work-exit,
.work-banks select {
  font: 650 11px/1.25 var(--sans);
}
.work-small {
  background: #eae7ce;
  border: 1px solid #b7b99b;
  padding: 5px 8px;
  border-radius: 4px;
}
.work-small:hover,
.work-exit:hover,
.work-nav:hover,
.work-banks:hover {
  background-color: #dddcc1;
}
.work-text,
.work-inline {
  color: #456951;
  padding: 4px 2px;
  text-decoration: underline;
  text-decoration-color: #a8b392;
  text-underline-offset: 2px;
}
.work-inline {
  font: inherit;
}
.work-text:hover {
  color: #233f39;
}
.work-primary {
  min-height: 33px;
  padding: 6px 14px;
  background: linear-gradient(#416e60, #31584d);
  border: 1px solid #2f574c;
  box-shadow: 0 2px 0 #254c4133;
  border-radius: 5px;
  color: #f8f1d7;
  font: 700 12.5px/1.2 var(--sans);
  white-space: nowrap;
}
.work-primary:hover:enabled {
  background: linear-gradient(#507c6c, #376053);
}
#dock.works-dock {
  padding: 0;
  background: linear-gradient(124deg, #faf3dc, #eee5ca);
}
.works-dock > .dock-head,
.works-dock > #build-cards {
  display: none;
}
.works-navbar {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 5px 15px;
  min-height: 38px;
  border-bottom: 1px solid #cdc8ac;
  background: linear-gradient(100deg, #e7e7cc, #f2ead2 72%);
  border-radius: 8px 8px 0 0;
}
.works-navbar h2 {
  display: flex;
  align-items: center;
  gap: 5px;
  font: 400 22px/1 var(--serif);
  letter-spacing: -0.65px;
}
.works-navtabs {
  display: flex;
  align-items: center;
  gap: 4px;
}
.work-nav,
.work-exit,
.work-banks {
  color: #566e5c;
  border-radius: 4px;
  padding: 5px 9px;
}
.work-exit {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #526a59;
}
.work-banks {
  padding: 0;
}
.work-banks select {
  color: inherit;
  padding: 4px 5px;
  border: 0;
  outline-offset: 1px;
  background: transparent;
  max-width: 168px;
  cursor: pointer;
}
.work-banks select option {
  color: #314c41;
  background: #f2ecd8;
}
.work-nav.current,
.work-banks.current {
  background: #42675a;
  color: #fff0cf;
}
.work-harbor {
  margin-left: auto;
  font: italic 14px var(--serif);
  color: #738068;
}
.work-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  align-items: baseline;
  padding: 7px 16px 5px;
}
.work-subtitle h3,
.works-line h3,
.work-celebrate h3,
.working-boat h3,
.sailing-order h3 {
  font: 400 23px/1.08 var(--serif);
  letter-spacing: -0.55px;
}
.work-subtitle p,
.work-celebrate p,
.working-boat p,
.sailing-order p {
  font-size: 12px;
  line-height: 1.38;
  color: #576951;
}
.works-line {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0 16px 10px;
}
.work-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  flex: 1;
}
.works-card {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 7px 0 0;
  border: 1px solid #c6c9ac;
  border-radius: 5px;
  background: linear-gradient(#f4f1dc, #ece9d2);
  text-align: left;
}
.works-card.chosen {
  border-color: #5c8064;
  box-shadow: inset 0 0 0 1px #6d8d6b;
  background: linear-gradient(#eef1d5, #dde5c5);
}
.works-card:hover {
  background: #e3e7cb;
}
.works-card img {
  width: 64px;
  height: 49px;
  object-fit: contain;
  flex: none;
}
.hull-cards .works-card img {
  width: 71px;
}
.works-card b {
  display: block;
  font: 400 16px/1.1 var(--serif);
}
.works-card small {
  display: block;
  color: #6c755e;
  font-size: 10px;
  margin-top: 3px;
}
.short-slip {
  background: #eae6d4;
}
.short-slip img {
  filter: saturate(0.5);
  opacity: 0.75;
}
.works-order {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 110px;
  max-width: 180px;
}
.works-order small {
  text-align: center;
  font: 500 10.8px/1.3 var(--sans);
  color: #82674d;
}
.work-bill,
.tide-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #61705a;
}
.work-bill b {
  font-size: 11px;
  font-weight: 600;
}
.slip-steps {
  list-style: none;
  padding: 0;
  margin: 10px 0 2px;
}
.slip-steps li {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 3px 0;
  color: #77816d;
  font: 500 11.5px var(--sans);
}
.slip-steps i {
  display: grid;
  place-items: center;
  border: 1px solid #bec2a8;
  border-radius: 50%;
  height: 17px;
  width: 17px;
  font: 650 9.5px var(--sans);
  color: #7c856e;
}
.slip-steps .passed i {
  background: #dce3c2;
  color: #4c7150;
}
.slip-steps .current {
  color: #365c4c;
  font-weight: 700;
}
.slip-steps .current i {
  color: #fbefd0;
  background: #5c7b5f;
  border-color: #5c7b5f;
}
.working-boat,
.work-celebrate,
.work-fleet-tray {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 93px;
  padding: 9px 17px 11px;
}
.work-fit,
.work-celebrate > div:not(.works-order):not(.build-shortcuts),
.sailing-order {
  flex: 1;
}
.work-boat-img,
.work-celebrate > img {
  width: 110px;
  height: 72px;
  object-fit: contain;
  border-right: 1px dashed #c9c6a9;
  padding-right: 8px;
  flex: none;
}
.working-boat .eyebrow,
.work-celebrate .eyebrow,
.sailing-order .eyebrow {
  display: block;
  margin: 1px 0 3px;
  color: #887348;
}
.working-boat p,
.work-celebrate p,
.sailing-order p {
  margin-top: 3px;
}
.work-identity {
  width: 155px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.work-identity label,
.boat-register label,
.cord-line,
.sailing-order small,
.boat-register small {
  font: 600 10px/1.35 var(--sans);
  color: #748067;
}
.work-identity input,
.boat-register select {
  font: 400 16px var(--serif);
  background: #f8f3e1;
  border: 1px solid #b4b99e;
  border-radius: 4px;
  color: #365847;
  width: 100%;
  padding: 3px 6px;
}
.works-swatches {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 3px 0 1px;
}
.works-swatches button {
  background: var(--paint);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #566c5480;
}
.works-swatches button.chosen {
  outline: 1.5px solid #5b6754;
  outline-offset: 1px;
}
.launch-profile {
  width: 100%;
  height: 67px;
  object-fit: contain;
}
.build-shortcuts {
  justify-content: flex-end;
  margin: 0;
}
.clock-plate {
  text-align: center;
}
.clock-plate img {
  height: 66px;
}
#sound-chart {
  position: absolute;
  z-index: 2;
  left: clamp(251px, 19vw, 310px);
  right: 72px;
  top: 15px;
  bottom: calc(var(--dock-gap) + var(--works-tray-height, 140px) + 12px);
  overflow: hidden;
  background: #61958d;
  border: 3px solid #e5d9b8;
  border-radius: 7px;
  box-shadow:
    0 2px 0 #556858,
    0 5px 14px #163c414a;
}
#passage-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.chart-cartouche {
  position: absolute;
  top: 3%;
  left: 47%;
  transform: translateX(-50%);
  text-align: center;
  color: #f2e5bc;
  font: 400 clamp(16px, 1.6vw, 24px) / 1 var(--serif);
  text-shadow: 0 1px 1px #426d65;
}
.chart-cartouche small {
  display: block;
  margin-top: 2px;
  font: 650 8px var(--sans);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.chart-origin,
.chart-stop {
  position: absolute;
  width: 0;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.chart-origin .icon {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  padding: 4px;
  background: #f3dfaa;
  border: 1px solid #5e755c;
}
.chart-origin small,
.chart-stop b {
  display: block;
  position: absolute;
  white-space: nowrap;
  top: 13px;
  color: #e8e7cc;
  background: #436c61e8;
  border-radius: 4px;
  font: 600 11px/1.2 var(--sans);
  padding: 3px 5px;
}
.chart-origin small {
  top: 14px;
  font-style: italic;
  color: #f4e6bf;
}
.chart-stop {
  width: 34px;
  height: 30px;
  transform: translate(-50%, -50%);
}
.chart-stop i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font: 700 10.5px var(--sans);
  color: #718070;
  background: #cdd2b7;
  border: 1.5px solid #537969;
  box-shadow: 0 2px 0 #356c61a3;
}
.chart-stop b {
  top: 26px;
}
.chart-stop.reachable i {
  background: #f1e9c5;
  color: #365b50;
}
.chart-stop.struck i {
  box-shadow: 0 0 0 2px #caa86b;
}
.chart-stop.chosen i,
.chart-stop:hover i {
  background: #eec680;
  border-color: #a17d42;
  color: #4b5b48;
}
.chart-stop.chosen b {
  background: #f3dfac;
  color: #395747;
}
.chart-stop em {
  color: #f2cc7e;
  font-style: normal;
}
.chart-stop.chosen em {
  color: #977435;
}
.marks-heading {
  display: flex;
  align-items: center;
  gap: 5px;
}
.work-mark-large {
  width: 49px;
  height: 47px;
  object-fit: cover;
  flex: none;
}
.marks-heading small {
  font-size: 10px;
}
.work-prose .mark-story {
  margin: 6px 0;
}
.mark-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 6px 0 1px;
}
.mark-strip button {
  opacity: 0.48;
  border-bottom: 1px solid transparent;
}
.mark-strip .struck,
.mark-strip .chosen {
  opacity: 1;
}
.mark-strip .chosen {
  border-bottom-color: #9a9f7a;
}
.mark-strip img {
  width: 100%;
  height: 26px;
  object-fit: cover;
}
.work-folio-count {
  font-size: 10px;
  color: #6c765e;
  border-bottom: 1px dashed #c8c4a8;
  padding-bottom: 5px;
  margin-bottom: 7px;
}
.today-watch {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 10.5px;
  line-height: 1.4;
}
.today-watch b,
.today-watch small {
  display: block;
}
.today-watch small {
  font-size: 10px;
}
.boat-register {
  width: 172px;
  display: flex;
  gap: 3px;
  flex-direction: column;
}
@media (max-width: 1150px) {
  .works-open #mission-stack {
    width: 199px;
  }
  #sound-chart {
    left: 225px;
    right: 58px;
  }
  .works-card img {
    width: 54px;
  }
  .hull-cards .works-card img {
    width: 59px;
  }
  .works-card b {
    font-size: 15px;
  }
  .works-line,
  .working-boat,
  .work-celebrate,
  .work-fleet-tray {
    gap: 10px;
  }
  .works-navtabs {
    gap: 1px;
  }
  .work-fit p,
  .sailing-order p {
    font-size: 11.5px;
  }
  #build-tabs {
    gap: 2px;
  }
}
@media (max-height: 650px) {
  .works-open #mission-stack {
    top: 8px;
    width: 197px;
  }
  .works-heading {
    padding: 8px 11px 6px;
  }
  .works-heading h2 {
    font-size: 21px;
    margin-top: 2px;
  }
  .work-prose {
    padding: 6px 11px 8px;
  }
  .work-prose p,
  .work-prose small {
    font-size: 10.5px;
    line-height: 1.35;
  }
  .work-prose h3 {
    font-size: 17px;
  }
  .work-stats {
    margin: 6px 0;
    padding: 3px 0;
  }
  .work-stats span,
  .work-stats b {
    font-size: 10.5px;
  }
  .slip-steps {
    margin: 6px 0 0;
  }
  .slip-steps li {
    padding: 2px 0;
    font-size: 10.5px;
  }
  .work-tools {
    margin-top: 5px;
    gap: 4px;
  }
  .work-tools button {
    font-size: 10px;
  }
  .works-navbar {
    min-height: 30px;
    padding: 3px 11px;
  }
  .works-navbar h2 {
    font-size: 18px;
  }
  .work-subtitle {
    padding: 4px 12px;
  }
  .work-subtitle h3,
  .work-celebrate h3,
  .working-boat h3,
  .sailing-order h3 {
    font-size: 20px;
  }
  .work-subtitle p,
  .work-celebrate p,
  .working-boat p,
  .sailing-order p {
    font-size: 11px;
  }
  .works-line {
    padding: 0 11px 6px;
  }
  .works-card {
    min-height: 45px;
  }
  .works-card img {
    height: 42px;
  }
  .work-primary {
    min-height: 28px;
    font-size: 11.5px;
    padding: 5px 11px;
  }
  .working-boat,
  .work-celebrate,
  .work-fleet-tray {
    min-height: 78px;
    padding: 5px 12px 7px;
  }
  .work-boat-img,
  .work-celebrate > img {
    width: 83px;
    height: 58px;
  }
  .slip-steps i {
    width: 15px;
    height: 15px;
  }
  .work-mark-large {
    width: 40px;
    height: 36px;
  }
  .work-folio-count {
    margin-bottom: 4px;
    padding-bottom: 3px;
  }
  .mark-strip {
    margin: 3px 0;
  }
  .mark-strip img {
    height: 22px;
  }
  #sound-chart {
    top: 8px;
    bottom: calc(var(--dock-gap) + var(--works-tray-height, 115px) + 7px);
  }
  .work-exit,
  .work-nav {
    padding: 3px 8px;
  }
}
#pilot-water,
.pilot-tiles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pilot-map-caption {
  position: absolute;
  top: 2%;
  left: 4%;
  color: #f2e8c4;
  font: italic 18px/1.15 var(--serif);
  text-shadow: 0 1px 1px #396c67;
}
.pilot-map-caption small {
  margin-left: 8px;
  font: 700 8px var(--sans);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.pilot-hex {
  display: block;
  position: absolute;
  transform: translate(-50%, -50%);
  clip-path: polygon(50% 0, 100% 20%, 100% 77%, 50% 100%, 0 77%, 0 20%);
  border-radius: 15%;
}
.pilot-hex:hover,
.pilot-hex:focus-visible {
  background: #f5e3ac32;
}
.pilot-hex:focus-visible {
  box-shadow: inset 0 0 0 4px #e5bc68;
}
.pilots-marks {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 8px 0 7px;
}
.pilots-marks i {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #937b50;
  border: 1px solid #b8a371;
  background: #f0e4bd;
  font: 700 10px var(--sans);
}
.pilots-marks i.picked {
  color: #fbefd0;
  background: #648268;
  border-color: #648268;
}
.pilots-marks span {
  margin-left: auto;
  font: 700 10.5px var(--sans);
  color: #69785d;
}
.pilot-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  border-right: 1px dashed #c4c3a5;
  max-width: 220px;
}
.pilot-lead b,
.pilot-lead small {
  display: block;
}
.pilot-lead b {
  font: 400 20px var(--serif);
  overflow-wrap: anywhere;
}
.pilot-lead small,
.pilot-record {
  font: 650 10px var(--sans);
  color: #768068;
}
.pilot-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 6px;
}
.pilot-actions .work-text {
  grid-column: span 2;
}
.works-partner {
  border-top: 1px dashed #c7c2a8;
  margin-top: 8px;
  padding-top: 6px;
}
.works-partner strong,
.works-partner small {
  display: block;
}
.works-partner strong {
  font: 700 10.7px var(--sans);
  color: #527050;
  margin-bottom: 2px;
}
.work-prose .works-partner small {
  font-size: 10.4px;
  line-height: 1.38;
}
@media (max-height: 650px) {
  .works-partner {
    margin-top: 4px;
    padding-top: 3px;
  }
  .work-prose .works-partner small {
    font-size: 9.8px;
    line-height: 1.22;
  }
}
.works-open #works-desk {
  max-height: calc(
    100vh - var(--header) - var(--works-tray-height, 140px) - var(--dock-gap) - 33px
  );
  overflow: auto;
  scrollbar-width: thin;
}
.ship-register {
  color: #3e5c4c;
}
.clock-print {
  margin: 0 0 13px;
  border: 5px solid #fbf6e6;
  background: #f6efda;
  padding: 2px;
  box-shadow: 0 1px 4px #5b695946;
  transform: rotate(-0.35deg);
}
.clock-print > img {
  display: block;
  width: 100%;
  object-fit: cover;
  max-height: 208px;
}
.clock-print figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  gap: 8px;
}
.clock-print figcaption img {
  width: 55px;
  height: 47px;
  object-fit: cover;
}
.clock-print figcaption :is(small, strong, i) {
  display: block;
}
.clock-print figcaption small {
  font: 650 9px var(--sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #88754c;
}
.clock-print figcaption strong {
  font: 400 21px/1.05 var(--serif);
}
.clock-print figcaption i {
  font: italic 12px var(--serif);
}
.register-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 12px;
  border-block: 1px dashed #c7c3a5;
  padding: 7px 1px;
  font-size: 11px;
  color: #65745b;
}
.register-fleet article {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #d5d0b6;
  padding: 7px 0;
}
.register-fleet article img {
  width: 92px;
  height: 60px;
  object-fit: contain;
}
.register-fleet article h3 {
  font-size: 19px;
  margin: 1px 0;
}
.register-fleet article p,
.register-fleet article small {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}
.register-fleet article button {
  margin-left: auto;
}
.ship-register h4 {
  margin-top: 13px;
}
.registry-seals {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  text-align: center;
  gap: 4px;
}
.registry-seals img {
  width: 74px;
  height: 54px;
  max-width: 100%;
  object-fit: contain;
}
.registry-seals b,
.registry-seals small {
  display: block;
  font-size: 10.5px;
  line-height: 1.3;
}
.registry-seals small {
  font-size: 9.5px;
  margin-top: 3px;
  color: #737c65;
}
.registry-seals > div:not(.filed) {
  opacity: 0.61;
}
