.app {
    display: flex;
    min-height: 100vh;
  }
  .sidebar {
    width: 180px;
    background: linear-gradient(180deg, var(--panel), #26292a);
    padding: 26px;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
  }
  .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
  }
  .brand .muted:empty {
    display: none;
  }
  .version-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    background: #ff3b00;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
  }
  .version-inline {
    margin-left: 8px;
    vertical-align: 3px;
  }
  .logo {
    width: 59px;
    height: 59px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
      0 8px 18px rgba(255, 59, 0, 0.16),
      0 2px 4px rgba(0, 0, 0, 0.6);
  }
  .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .brand h1 {
    font-size: 18px;
    letter-spacing: 0.6px;
    line-height: 1;
    margin: 0;
  }
  .profile-list {
    margin-top: 10px;
    display: block;
  }
  .profile-list .icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 12px;
  }
  .controls {
    margin-top: 0;
    color: var(--muted);
    font-size: 13px;
  }
  .profile-list + .controls {
    margin-top: 20px;
  }
  .main {
    flex: 1;
    min-width: 0;
    padding: 24px 24px;
    display: flex;
    flex-direction: column;
  }
  .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .top-copy {
    flex: 1 1 300px;
    min-width: 260px;
    max-width: none;
    padding-top: 1px;
  }
  .top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 1 1 520px;
    min-width: 0;
    flex-wrap: wrap;
  }
  .top-actions .export-btn,
  .top-actions .learn-toggle {
    min-height: 34px;
    white-space: nowrap;
  }
  .top-actions .top-history-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
  }
  .top-actions .export-btn {
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1;
  }
  .top-actions .top-pdf-btn {
    background: linear-gradient(180deg, #5b9eff 0%, #1e40af 100%) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25) !important;
  }
  .title {
    position: relative;
    display: inline-block;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    color: #f7f8f8;
    padding-bottom: 2px;
  }

  .title .title-product {
    color: #f7f8f8;
    font-weight: 800;
  }
  .title .title-subtitle {
    color: var(--muted);
    font-weight: 500;
  }
  .title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 2px;
    border-radius: 999px;
    background: #ff3b00;
  }
  .top-description {
    margin-top: 4px;
    max-width: none;
    font-size: 13px;
    line-height: 1.25;
    color: #cbd5e1;
    white-space: normal;
  }
  .top-description-line {
    display: block;
    white-space: nowrap;
  }
  @media (max-width: 1320px) {
    .top {
      align-items: flex-start;
      flex-wrap: wrap;
    }
    .top-copy {
      min-width: 0;
      width: 100%;
    }
    .top-actions {
      justify-content: flex-start;
      width: 100%;
      flex-basis: 100%;
    }
    .top-description {
      white-space: normal;
    }
  }
  @media (max-width: 760px) {
    .main {
      padding: 18px 14px;
    }
    .top-actions .export-btn,
    .top-actions .learn-toggle {
      flex: 1 1 145px;
      text-align: center;
    }
    .top-actions .top-history-actions {
      flex: 1 1 296px;
    }
    .top-actions .top-history-actions .export-btn,
    .top-actions .top-history-actions .learn-toggle {
      flex: 1 1 145px;
    }
  }
  .layout {
    display: flex;
    gap: 26px;
    margin-top: 22px;
    align-items: flex-start;
  }
  .card {
    background: var(--card);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  .form {
    width: 420px;
  }
  .added-bend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-items: flex-start;
    margin-top: 8px;
    width: 100%;
  }
  .additional-pair {
    width: 100%;
  }
  .additional-pair .row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }
  .additional-pair .col {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .additional-pair .col input[type="number"],
  .additional-pair .col input[type="text"] {
    width: 80px;
    margin-bottom: 6px;
  }
  .flange-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
  }
  .additional-pair .col .bend-dir-toggle {
    margin-top: 0;
  }
  
