body:has(#vessel-settings.active) #addEquipment {
  display: none;
}

.active-vessel-trigger {
  top: 8px;
  right: 8px;
  padding: 3px 5px;
  border: 1px solid rgba(131, 199, 193, .24);
  border-radius: 4px;
  color: #9cd2cc;
  font: 500 7px 'DM Mono';
  letter-spacing: .55px;
  cursor: pointer;
}

.active-vessel-trigger:hover,
.active-vessel-trigger[aria-expanded="true"] {
  border-color: rgba(224, 190, 103, .55);
  background: rgba(222, 184, 91, .12);
  color: #e3c675;
}

.vessel-card .vessel-imo {
  display: block;
  margin-top: 3px;
  color: #7fa2a7;
  font: 500 7px 'DM Mono';
  letter-spacing: .35px;
}

.active-vessel-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  left: 0;
  width: 270px;
  overflow: hidden;
  border: 1px solid rgba(126, 182, 179, .33);
  border-radius: 9px;
  background: #0d3541;
  box-shadow: 0 18px 38px rgba(3, 24, 31, .4);
}

.active-vessel-menu[hidden] {
  display: none;
}

.active-vessel-menu-head {
  padding: 14px 15px 12px;
  border-bottom: 1px solid rgba(148, 193, 190, .16);
  background: linear-gradient(120deg, rgba(25, 86, 91, .75), rgba(116, 91, 42, .25));
}

.active-vessel-menu-head small {
  color: #d6b966;
  font: 500 7px 'DM Mono';
  letter-spacing: .9px;
}

.active-vessel-menu-head strong {
  display: block;
  margin: 5px 0 2px;
  color: #fff;
  font-size: 12px;
}

.vessel-card .active-vessel-menu-head span {
  color: #a9c1c3;
  font: 500 8px 'DM Mono';
}

.vessel-card .active-vessel-menu-head .active-vessel-menu-imo {
  display: block;
  margin-top: 5px;
  color: #d7be76;
  font-size: 7px;
  letter-spacing: .5px;
}

.active-vessel-menu > button {
  display: grid;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-top: 1px solid rgba(148, 193, 190, .1);
  background: transparent;
  color: #dce9e9;
  text-align: left;
  cursor: pointer;
}

.active-vessel-menu > button:hover,
.active-vessel-menu > button:focus-visible {
  outline: 0;
  background: #174955;
}

.active-vessel-menu > button i {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 6px;
  background: rgba(115, 202, 191, .12);
  color: #89d1c7;
  font-style: normal;
}

.active-vessel-menu > button span strong {
  display: block;
  color: #fff;
  font-size: 9px;
}

.active-vessel-menu > button span small {
  display: block;
  margin-top: 2px;
  color: #89a8ad;
  font-size: 7px;
}

.active-vessel-menu > button b {
  color: #d9bd6d;
  font-weight: 500;
}

.vessel-settings-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 25px 28px;
  overflow: hidden;
  border: 1px solid #174853;
  border-radius: 9px;
  background: radial-gradient(circle at 80% 15%, #3a948155, transparent 28%), linear-gradient(118deg, #082b38, #0d444b 65%, #0a3541);
  color: #fff;
}

.vessel-settings-hero:after {
  content: "⌁";
  position: absolute;
  right: 22%;
  top: -63px;
  color: #ffffff09;
  font: 400 190px Manrope, sans-serif;
  transform: rotate(-12deg);
}

.vessel-settings-hero > div,
.vessel-settings-hero > span {
  position: relative;
  z-index: 1;
}

.vessel-settings-hero small {
  color: #7fd2c3;
  font: 500 8px "DM Mono", monospace;
  letter-spacing: 1.6px;
}

.vessel-settings-hero h2 {
  margin: 7px 0 4px;
  color: #fff;
  font-size: 21px;
}

.vessel-settings-hero p {
  color: #adc4c5;
  font-size: 10px;
}

.vessel-profile-status {
  padding: 8px 11px;
  border: 1px solid #7bcdba4d;
  border-radius: 3px;
  background: #12493f66;
  color: #a1dfce;
  font: 500 8px "DM Mono", monospace;
  letter-spacing: .8px;
}

.vessel-profile-status.dirty {
  border-color: #d8b9695e;
  background: #604d234d;
  color: #e4c982;
}

.vessel-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 16px;
  align-items: start;
}

.vessel-settings-form {
  overflow: hidden;
}

.vessel-settings-form .panel-heading > span {
  color: #67898a;
  font: 500 7px "DM Mono", monospace;
  letter-spacing: .6px;
}

.vessel-settings-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.vessel-settings-sections fieldset {
  min-width: 0;
  margin: 0;
  padding: 18px 20px 21px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vessel-settings-sections fieldset:nth-child(2n) {
  border-right: 0;
}

.vessel-settings-sections fieldset.vessel-owner-fields {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.vessel-settings-sections legend {
  padding: 0;
  color: #4d827e;
  font: 500 8px "DM Mono", monospace;
  letter-spacing: 1px;
}

.vessel-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vessel-settings-grid.identity {
  grid-template-columns: 90px 1fr;
}

.vessel-settings-grid.identity label:nth-child(n+3) {
  grid-column: auto;
}

.vessel-settings-grid.identity label:last-child {
  grid-column: 1 / -1;
}

.vessel-settings-grid.dimensions {
  grid-template-columns: repeat(2, 1fr);
}

.vessel-settings-form label {
  display: block;
  margin-top: 11px;
  color: #506a72;
  font-size: 8px;
  font-weight: 700;
}

.vessel-settings-form input,
.vessel-settings-form select,
.vessel-settings-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 9px;
  border: 1px solid #d7e0df;
  border-radius: 4px;
  outline: 0;
  background: #fff;
  color: #294751;
  font: 9px Manrope, sans-serif;
}

.vessel-settings-form input:focus,
.vessel-settings-form select:focus,
.vessel-settings-form textarea:focus {
  border-color: #6db5ac;
  box-shadow: 0 0 0 3px #4ca89c12;
}

.vessel-settings-form textarea {
  resize: vertical;
}

.vessel-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: #fafcfc;
}

.vessel-settings-actions p {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-right: auto;
  font-size: 8px;
}

.vessel-settings-actions p span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dfeeea;
  color: #177b73;
  font: 700 8px "DM Mono", monospace;
}

.vessel-profile-card {
  position: sticky;
  top: 16px;
  overflow: hidden;
}

.vessel-profile-visual {
  position: relative;
  height: 145px;
  overflow: hidden;
  background: radial-gradient(circle at 75% 25%, #328a7a4e, transparent 30%), linear-gradient(145deg, #082c39, #0e4d54);
}

.vessel-profile-visual > span {
  position: absolute;
  left: 17px;
  top: 16px;
  color: #89c9be;
  font: 500 7px "DM Mono", monospace;
  letter-spacing: 1.2px;
}

.profile-yacht {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 190px;
  height: 75px;
  opacity: .82;
}

.profile-yacht:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 190px;
  height: 35px;
  background: linear-gradient(155deg, #e3f4ef, #77bab4);
  clip-path: polygon(0 0,100% 0,84% 83%,11% 100%);
}

.profile-yacht:after {
  content: "";
  position: absolute;
  right: 43px;
  bottom: 34px;
  width: 86px;
  height: 24px;
  background: #d9eee9;
  clip-path: polygon(20% 0,100% 0,100% 100%,0 100%);
}

.profile-yacht i {
  position: absolute;
  z-index: 2;
  right: 54px;
  bottom: 57px;
  width: 2px;
  height: 18px;
  background: #d8ece7;
}

.profile-yacht b {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #176071;
}

.profile-yacht b:nth-of-type(1) { left: 48px; }
.profile-yacht b:nth-of-type(2) { left: 71px; }
.profile-yacht b:nth-of-type(3) { left: 94px; }

.vessel-profile-identity {
  padding: 18px 19px 14px;
  border-bottom: 1px solid var(--line);
}

.vessel-profile-identity small {
  color: #33877f;
  font: 500 8px "DM Mono", monospace;
  letter-spacing: 1px;
}

.vessel-profile-identity h2 {
  margin: 5px 0 2px;
  font-size: 22px;
}

.vessel-profile-identity p {
  font-size: 9px;
}

.vessel-profile-card dl {
  margin: 0;
  padding: 8px 18px;
}

.vessel-profile-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f0;
}

.vessel-profile-card dt {
  color: #819296;
  font: 500 7px "DM Mono", monospace;
}

.vessel-profile-card dd {
  margin: 0;
  max-width: 135px;
  text-align: right;
  font-size: 8px;
}

.vessel-profile-note {
  display: flex;
  gap: 8px;
  margin: 5px 13px 14px;
  padding: 10px;
  border: 1px solid #ebdab9;
  border-radius: 5px;
  background: #fff8eb;
}

.vessel-profile-note span {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  height: 18px;
  border-radius: 50%;
  background: #ca9743;
  color: #fff;
  font-size: 8px;
}

.vessel-profile-note p {
  margin: 0;
  color: #816a42;
  font-size: 8px;
  line-height: 1.45;
}

@media (max-width: 1050px) {
  .vessel-settings-layout {
    grid-template-columns: 1fr;
  }

  .vessel-profile-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .vessel-settings-sections,
  .vessel-settings-grid,
  .vessel-settings-grid.identity,
  .vessel-settings-grid.dimensions {
    grid-template-columns: 1fr;
  }

  .vessel-settings-sections fieldset {
    border-right: 0;
  }

  .vessel-settings-grid.identity label:last-child,
  .vessel-settings-sections fieldset.vessel-owner-fields {
    grid-column: auto;
  }

  .vessel-settings-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .vessel-settings-actions p {
    margin: 0 0 7px;
  }
}
