.boat-construction { margin-block: 16px 38px; color: #c6d9d0; }
.boat-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 14px; align-items: start; }
.boat-groups { display: grid; gap: 14px; }
.boat-parts, .boat-budget { padding: clamp(12px,2.2vw,24px); }
.boat-presets a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px;
  border: 1px solid #436565; border-radius: 8px; color: #d4f0e8;
}
.boat-presets button[aria-pressed="true"] { border-color: #a1e5d9; background: #2b514a; }
.boat-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-block: 10px; border-bottom: 1px solid #344a40; min-width: 0;
}
.boat-row:last-child { border-bottom: 0; }
.boat-row > div { min-width: 0; }
.boat-row h3 { color: #e4f0e9; font-size: 1rem; margin: 0; overflow-wrap: anywhere; }
.boat-row h3 a, .boat-stock th a { display: flex; align-items: center; gap: 5px; color: #d9efe5; }
.boat-row h3 img, .boat-stock img { object-fit: contain; flex: none; }
.boat-number-fields { display: flex; gap: 5px; flex: none; }
.boat-number-fields label { display: grid; justify-items: start; gap: 3px; color: #cee0d5; font-size: .75rem; }
.boat-number-fields input, .boat-stock input {
  width: 65px; min-height: 44px; padding: 4px 5px; color: #f6f2e8; background: #11211b; font: inherit;
  font-size: 1rem; border: 1px solid #527365; border-radius: 7px; box-sizing: border-box;
}
.boat-unit-price { display: flex; flex-wrap: wrap; column-gap: 9px; row-gap: 1px; margin-top: 3px; }
.boat-unit-price > span { display: inline-flex; align-items: center; gap: 2px; color: #bed8ce; font-size: .8rem; }
.boat-unit-price img { width: 22px; height: 22px; }
.boat-material-name {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.boat-budget { position: sticky; top: 100px; }
.boat-stock { width: 100%; table-layout: fixed; border-collapse: collapse; margin-block: 9px; font-size: .91rem; font-variant-numeric: tabular-nums; }
.boat-stock td, .boat-stock th { padding: 5px 4px; text-align: start; border-bottom: 1px solid #344a40; overflow-wrap: anywhere; }
.boat-stock th { color: #d5e5db; }
.boat-stock thead th { overflow-wrap: normal; }
.boat-stock thead th:nth-child(2) { width: 18%; }
.boat-stock thead th:nth-child(3) { width: 22%; }
.boat-stock thead th:nth-child(4) { width: 21%; }
.boat-stock input { width: min(100%,65px); }
.boat-stock td { color: #c8e0d6; }
.boat-stock th img { width: 27px; height: 27px; }
.boat-stock [data-needed] { color: #ffdda3; font-weight: 700; }
.boat-budget .sea-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
.boat-budget [data-boat-missing] { margin: 12px 0 0; color: #ffdda3; }
@media (max-width: 980px) {
  .boat-layout { grid-template-columns: 1fr; }
  .boat-budget { position: static; }
}
@media (max-width: 500px) {
  .boat-stock th img { display: none; }
  .boat-stock input { width: min(100%,57px); }
  .boat-stock td, .boat-stock th { padding-inline: 3px; }
  .boat-stock thead { font-size: .79rem; }
  .boat-number-fields input { width: 54px; }
}
