.fw-workshop {
  position: fixed;
  inset: 0;
  display: none;
  width: min(1120px, calc(100vw - 44px));
  max-width: none;
  height: min(810px, calc(100dvh - 48px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid #bccfca;
  border-radius: 10px;
  box-shadow: 0 22px 80px #0c282945;
}
.fw-workshop[open] {
  display: flex;
  flex-direction: column;
}
.fw-workshop::backdrop {
  background: #142a2bc0;
}
.fw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 21px;
  color: #eff9f6;
  background: #132b2d;
}
.fw-top h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.fw-top button {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  font-size: 27px;
  line-height: 1;
}
.fw-top button:not(:disabled):hover {
  background: #2c4648;
}
.fw-tabs {
  display: flex;
  flex: none;
  gap: 3px;
  padding: 0 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #f0f6f4;
}
.fw-tabs button {
  min-height: 47px;
  padding: 0 15px;
  color: #4b6060;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.fw-tabs button[aria-current='true'] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.fw-tabs button:focus-visible {
  outline-offset: -4px;
}
.fw-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
}
.fw-stage {
  display: grid;
  grid-template-columns: minmax(188px, 244px) minmax(0, 1fr);
  min-height: 100%;
}
.fw-side {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  gap: 3px;
  min-height: 0;
  max-height: min(620px, 65dvh);
  overflow: auto;
  padding: 14px;
  background: #f3f8f6;
  border-right: 1px solid var(--line);
}
.fw-item {
  display: grid;
  justify-content: start;
  justify-items: start;
  gap: 3px;
  min-height: 53px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-align: left;
  white-space: normal;
}
.fw-item span {
  font-weight: 600;
  line-height: 1.2;
}
.fw-item small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.fw-item[aria-current='true'] {
  color: #006b60;
  border-color: #c2e3d9;
  background: var(--pale);
}
.fw-pane {
  padding: 22px 25px 30px;
  min-width: 0;
}
.fw-single,
.fw-catalog {
  padding: 22px 25px 30px;
}
.fw-single {
  max-width: 100%;
}
.fw-catalog .fw-stage {
  border: 1px solid var(--line);
  border-radius: 6px;
}
.fw-catalog .fw-side {
  max-height: min(410px, 44dvh);
}
.fw-content-title {
  margin-bottom: 21px;
}
.fw-content-title h3 {
  margin: 0 0 5px;
  color: #234244;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.fw-workshop p {
  margin: 0 0 12px;
  line-height: 1.5;
}
.fw-content-title p,
.fw-count {
  color: var(--muted);
}
.fw-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 15px;
}
.fw-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.fw-full {
  grid-column: 1 / -1;
}
.fw-workshop label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-weight: 600;
  color: #385251;
  line-height: 1.25;
}
.fw-workshop label small {
  color: #5c7170;
  font-family: var(--mono);
  font-size: 0.8em;
  font-weight: 400;
}
.fw-workshop :is(input:not([type='checkbox']), select, textarea) {
  width: 100%;
  min-height: 37px;
  padding: 7px 9px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bacbc7;
  border-radius: 5px;
  font: inherit;
  font-weight: 400;
}
.fw-workshop :is(textarea, input[inputmode]) {
  font-family: var(--mono);
  font-size: 13px;
}
.fw-workshop textarea {
  min-height: 108px;
  resize: vertical;
}
.fw-workshop select:disabled,
.fw-workshop input:disabled {
  opacity: 0.5;
}
.fw-workshop fieldset {
  min-width: 0;
  margin: 15px 0 0;
  padding: 11px 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.fw-workshop legend {
  padding: 0 6px;
  color: #586f6e;
  font-weight: 600;
}
.fw-workshop .fw-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin-top: 16px;
}
.fw-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.fw-workshop .fw-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.fw-workshop
  :is(.fw-actions, .fw-transfer, .fw-help-results, .fw-bom table)
  button {
  min-height: 35px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #c1d1ce;
  border-radius: 5px;
}
.fw-workshop .fw-primary {
  color: #fff;
  background: #007c70;
  border-color: #007c70;
}
.fw-workshop .fw-primary:not(:disabled):hover {
  background: #006459;
}
.fw-workshop .fw-feedback {
  margin: 12px 0 0;
  color: #326d60;
}
.fw-workshop .fw-error {
  color: #9a291f;
}
.fw-workshop .fw-source {
  margin-top: 11px;
  font-size: 13px;
}
.fw-source a {
  color: #006d60;
  text-underline-offset: 2px;
}
.fw-filters {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin: 0 0 9px;
}
.fw-count {
  font: 12px var(--mono);
}
.fw-spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 9px 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}
.fw-spec > div {
  padding: 10px 12px;
  background: #f3f8f7;
}
.fw-spec > div:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.fw-spec dt {
  margin-bottom: 3px;
  color: #4a6260;
  font-size: 12px;
}
.fw-spec dd {
  margin: 0;
  font: 13px var(--mono);
  overflow-wrap: anywhere;
}
.fw-details {
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.fw-details summary {
  cursor: pointer;
  color: #385251;
  font-weight: 600;
}
.fw-details > p:first-of-type {
  margin-top: 10px;
}
.fw-profiles {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.fw-profiles :is(th, td) {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.fw-transfer {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}
.fw-transfer label {
  flex: 1 1 210px;
}
.fw-calculation-output h4 {
  margin: 17px 0 7px;
}
.fw-workshop .fw-channel {
  width: min(250px, 100%);
}
.fw-plot {
  margin: 9px 0 0;
  padding: 10px 10px 1px;
  background: #f1f8f5;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.fw-plot figcaption {
  margin-left: 14px;
  font-weight: 600;
}
.fw-plot svg {
  width: 100%;
  display: block;
  overflow: visible;
}
.fw-plot line {
  stroke: #bcceca;
}
.fw-plot text {
  fill: #496663;
  font: 13px var(--mono);
}
.fw-plot polyline {
  fill: none;
  stroke: #008779;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.fw-table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.fw-bom table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}
.fw-bom table :is(th, td) {
  vertical-align: middle;
  text-align: left;
  padding: 9px 9px;
  border-bottom: 1px solid var(--line);
}
.fw-bom thead th {
  color: #526968;
  background: #f0f6f4;
}
.fw-bom .fw-group th {
  color: #006c60;
  background: #e6f2ee;
}
.fw-bom .fw-qty {
  text-align: right;
  font-family: var(--mono);
}
.fw-inline-form {
  padding: 13px 15px;
  margin-bottom: 17px;
  border: 1px solid #bbd8d0;
  border-radius: 6px;
}
.fw-inline-form .fw-fields {
  margin-bottom: 8px;
}
.fw-help label {
  margin-bottom: 10px;
}
.fw-help-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.fw-help-results article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.fw-help-results h4 {
  margin: 0 0 5px;
  font-size: 15px;
}
.fw-help-results button {
  margin-top: auto;
  color: #006d60;
}
.fw-workshop .fw-callout {
  margin-bottom: 12px;
  padding: 8px 10px;
  color: #275e55;
  background: #e2f2ed;
  border-radius: 4px;
}
@media (max-width: 660px) {
  .fw-workshop {
    width: calc(100vw - 14px);
    height: calc(100dvh - 20px);
  }
  .fw-top {
    min-height: 49px;
  }
  .fw-tabs {
    padding: 0 6px;
  }
  .fw-tabs button {
    padding: 0 11px;
  }
  .fw-stage {
    grid-template-columns: 1fr;
  }
  .fw-side,
  .fw-catalog .fw-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 155px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px;
  }
  .fw-plot {
    padding-inline: 0;
  }
  .fw-pane,
  .fw-single,
  .fw-catalog {
    padding: 15px 12px 19px;
  }
}
@media (max-width: 395px) {
  .fw-help-results,
  .fw-filters,
  .fw-fields:not(.fw-three) {
    grid-template-columns: 1fr;
  }
  .fw-profiles :is(th, td) {
    padding: 4px;
  }
}
