  .header-copy h1 {
    margin: 0;
  }
  .header-copy p {
    margin: 0;
    white-space: nowrap;
  }
main {
  padding: 0 1.5rem 2rem;
  width: min(95vw, 1800px);
  margin: 0 auto;
}
  .layout-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .run-mode-header {
    background: #f8fafc;
    border-radius: 14px;
    padding: 1rem 1.5rem;
    margin: 1rem 0 1.5rem;
    border: 1px solid #e2e8f0;
  }
  .run-mode-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
  }
  .run-mode-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .run-mode-toggle label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: inherit;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }
  .run-mode-toggle .run-mode-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }
  .run-mode-toggle label:hover .run-mode-label {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    background: #0ea5a3;
    color: #ffffff;
    border-color: #0ea5a3;
  }
  .run-mode-toggle input[type="radio"]:focus + span {
    outline: none;
    box-shadow: none;
  }
  .run-mode-toggle input[type="radio"]:checked + span {
    background: #0ea5a3;
    color: #ffffff;
    border-color: #0ea5a3;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  }
  .calc-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
  }
  .calc-card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
  }
  .calc-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
  }
  .calc-card-title.large {
    font-size: 1.15rem;
  }
  .calc-card-title-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #475569;
  }
  .calc-card-title-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  .calc-card-title-label {
    font-weight: 600;
    color: #334155;
  }
  .file-indicator.inline {
    display: inline;
    margin: 0;
    font-size: 0.85rem;
  }
  .calc-card-separator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.25rem;
    border-top: 1px solid #e2e8f0;
  }
  .calc-card-separator-label {
    font-weight: 700;
    color: #0f172a;
  }
  .calc-card-grid {
    display: grid;
    gap: 0.75rem;
  }
  .calc-card-grid .full-width {
    grid-column: 1 / -1;
  }
  .load-options-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
  }
  .load-option-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
  }
  .load-option-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
  }
  .load-option-card .viewer-controls {
    margin-bottom: 0;
    gap: 0.5rem;
  }
  .load-option-card .help-hint,
  .load-option-card .status-text {
    margin: 0;
    font-size: 0.78rem;
  }
  .load-option-card.span-2 {
    grid-column: 1 / -1;
  }
  .load-option-card textarea {
    width: 100%;
    min-height: 3.4rem;
    resize: vertical;
  }
  .pubchem-info-card {
    gap: 0.5rem;
  }
  .pubchem-structure {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    min-height: 180px;
    max-width: 240px;
    width: 100%;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
  }
  .pubchem-structure img {
    max-width: 100%;
    max-height: 260px;
    display: none;
  }
  .pubchem-structure .pubchem-placeholder {
    font-size: 0.78rem;
    color: #64748b;
  }
  .pubchem-name {
    font-weight: 400;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.4;
  }
  .structure-summary-card {
    margin-bottom: 0.75rem;
  }
  .structure-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    gap: 0.9rem;
    align-items: start;
  }
  .structure-summary-fields {
    display: grid;
    grid-template-rows: repeat(4, auto);
    gap: 0.6rem;
    min-width: 0;
  }
  .structure-row {
    margin-top: 0.65rem;
  }
  .structure-row .atomic-field-grid {
    margin-bottom: 0;
  }
  .atomic-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 0.9rem;
    margin-bottom: 0.6rem;
  }
  .atomic-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .atomic-field.inline {
    flex-direction: row;
    align-items: baseline;
    gap: 0.45rem;
  }
  .atomic-field label {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .atomic-field.inline label {
    margin: 0;
    min-width: 4.2rem;
  }
  .atomic-field .atomic-value {
    font-size: 1rem;
    font-weight: 400;
    color: #0f172a;
  }
  .atomic-field input[type="number"] {
    width: 5.5rem;
    max-width: 100%;
    margin-top: 0;
    font-size: 1rem;
    font-weight: 400;
    color: #0f172a;
  }
  .structure-summary-grid .summary-block {
    margin: 0.5rem 0 0;
  }
  .structure-summary-meta {
    margin: 0;
    font-size: 0.82rem;
    color: #475569;
  }
  .structure-summary-meta strong {
    color: #0f172a;
  }
  @media (max-width: 900px) {
    .structure-summary-grid {
      grid-template-columns: 1fr;
    }
    .pubchem-structure {
      max-width: none;
      justify-self: stretch;
    }
  }
  @media (min-width: 768px) {
    .calc-card-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .load-options-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (min-width: 768px) {
    .layout-grid {
      grid-template-columns: minmax(320px, 0.4fr) minmax(0, 0.6fr);
    }
    .input-section {
      grid-column: 1;
    }
    .actions-results {
      grid-column: 2;
      display: grid;
      row-gap: 5px;
    }
  }
  section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
  }
  .form-grid {
    display: grid;
    gap: 0.75rem;
  }
  @media (min-width: 768px) {
    .form-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: 1.5rem;
    }
    .form-grid .full-width {
      grid-column: 1 / -1;
    }
  }
  .thermo-grid {
    display: grid;
    gap: 0.75rem;
  }
  @media (min-width: 768px) {
    .thermo-grid {
      grid-template-columns: 1fr;
    }
  }
  .ts-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  @media (min-width: 640px) {
    .ts-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      column-gap: 1rem;
    }
  }
  .md-conditions-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr);
  }
  @media (min-width: 768px) {
    .md-conditions-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  .pbc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  @media (min-width: 768px) {
    .pbc-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  .actions-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }
  .actions-row button {
    margin-top: 0;
  }
  .actions-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }
  .actions-grid .download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    order: 1;
  }
  .actions-grid .status-text {
    order: 2;
    flex-basis: 100%;
    margin-top: 0.25rem;
  }
  .actions-section button,
  .actions-grid .download-buttons button,
  .actions-grid .panel-actions button {
    min-width: 10.5rem;
    min-height: 2.4rem;
    margin-top: 0;
  }
  .summary-block {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    font-family: "Fira Code", "Courier New", monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    margin: 0;
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
  }
  .summary-block.summary-plain {
    background: transparent;
    color: #334155;
    padding: 0;
    border-radius: 0;
    font-family: inherit;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }
  .actions-results {
    display: grid;
    row-gap: 5px;
  }
  .actions-results .results-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .actions-results .results-section > div[id$="results"] {
    flex: 1 1 auto;
    min-height: 0;
  }
  #structure-summary h3 {
    margin-bottom: 0.35rem;
    margin-top: 0;
  }
  .group-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  .is-disabled {
    opacity: 0.45;
  }
  h2 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #004d7a;
  }
  label {
    display: block;
    margin-top: 0.75rem;
    font-weight: 600;
  }
  input[type="file"],
  select,
  input[type="number"],
  input[type="text"] {
    width: 80%;
    padding: 0.3rem 0.65rem;
    margin-top: 0.2rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
    min-height: 28px;
  }
  .file-indicator {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    margin-top: 0.3rem;
    word-break: break-word;
  }
  .help-hint {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
  }
  .viewer-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }
  .smiles-controls {
    align-items: stretch;
  }
  .smiles-controls .smiles-button-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: stretch;
  }
  .smiles-controls .smiles-button-group button {
    width: 100%;
  }
  .calc-card .viewer-controls button {
    margin-top: 0;
  }
  .calc-card .viewer-controls input[type="text"] {
    flex: 1;
    min-width: 0;
  }
  .calc-card .viewer-controls textarea {
    flex: 1;
    min-width: 0;
  }
  .inline-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .inline-action-row .viewer-controls {
    margin-bottom: 0;
  }
  .iochem-handle-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .iochem-handle-controls input[type="text"] {
    flex: 1;
    width: auto;
  }
  #iochem-handle-status {
    min-height: 1.1rem;
    margin-top: 0.25rem;
  }
  .viz-control-section {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 1rem;
    background: #f8fafc;
  }
  .viz-control-section + .viz-control-section {
    margin-top: 1rem;
  }
  .viz-control-section h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #0f172a;
  }
  .mode-selector {
    display: inline-block;
    width: auto;
    min-width: 220px;
    max-width: 100%;
    min-height: 160px;
  }
  .modes-selector-group.is-disabled {
    opacity: 0.6;
  }
  .modes-selector-group.is-disabled select {
    cursor: not-allowed;
  }
  #viz-modes-status {
    min-height: 1.1rem;
    margin-top: 0.35rem;
  }
  .modes-file-group label {
    margin-top: 0.75rem;
  }
  .viewer-status-panel {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    flex: 1;
    min-width: 260px;
  }
  .viewer-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0;
  }
  .viewer-toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }
  .viewer-toolbar-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
  }
  .viewer-toolbar-counter {
    min-width: 3rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
  }
  .viewer-status-panel .viewer-meta {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: #334155;
  }
  .viewer-upload-label {
    font-weight: 600;
    color: #0f172a;
  }
  .viewer-controls input[type="file"] {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.4rem;
    width: 100%;
    min-width: 0;
  }
  .viewer-panel,
  .analyze-panel {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  }
  #visualize-viewer-panel {
    padding: 0;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: transparent;
    width: 100%;
  }
  #jsmol-applet {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: 520px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #jsmol-applet canvas,
  #jsmol-applet div {
    max-width: 100%;
    width: 100% !important;
    height: 100% !important;
  }
  #jsmol-applet > * {
    width: 100% !important;
    height: 100% !important;
  }
  .analyze-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  #analyze-tab .analyze-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }
  .analyze-right-panels {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .analyze-cards-panel {
    gap: 1rem;
  }
  .analyze-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  @media (min-width: 700px) {
    .analyze-card-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (min-width: 1080px) {
    .analyze-card-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  .analyze-card {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.85rem;
    background: #f8fafc;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    margin: 0;
  }
  .analyze-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
  }
  .analyze-card.is-active {
    border-color: #0ea5a3;
    background: #ecfeff;
    box-shadow: 0 12px 26px rgba(14, 165, 163, 0.2);
  }
  .analyze-card.is-future {
    cursor: not-allowed;
    border-color: #fdba74;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.14);
  }
  .analyze-card.is-future:hover {
    border-color: #fb923c;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.14);
    transform: none;
  }
  .analyze-card-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  .analyze-card-title {
    font-weight: 700;
    color: #0f172a;
  }
  .analyze-card-desc {
    font-size: 0.9rem;
    color: #475569;
  }
  .analyze-output-panel {
    gap: 1rem;
  }
  .analyze-actions-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }
  .analyze-active-summary h4 {
    margin: 0;
  }
  .analyze-active-summary p {
    margin: 0.3rem 0 0;
    color: #64748b;
    font-size: 0.92rem;
  }
  .analyze-action-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }
  .analyze-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 240px;
  }
  .analyze-progress[hidden] {
    display: none;
  }
  .analyze-progress-track {
    position: relative;
    width: 150px;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #dbe4ee;
    border: 1px solid #cbd5e1;
  }
  .analyze-progress-bar {
    position: absolute;
    inset: 0 auto 0 -40%;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5a3, #14b8a6);
    animation: analyze-progress-slide 1.2s ease-in-out infinite;
  }
  .analyze-progress-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
  }
  @keyframes analyze-progress-slide {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(350%);
    }
  }
  .analyze-format-group {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }
  .analyze-histogram-row {
    display: flex;
    justify-content: flex-end;
  }
  .analyze-html-output {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: #0f172a;
  }
  .analyze-html-output h5 {
    margin: 0;
    font-size: 0.95rem;
    color: #0f172a;
  }
  .analyze-html-output ul {
    margin: 0;
    padding-left: 1.1rem;
  }
  .analyze-html-output table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
  }
  .analyze-html-output th,
  .analyze-html-output td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.35rem 0.4rem;
    text-align: left;
  }
  .analysis-plot-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .analysis-plot-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
  }
  .analysis-3d-scatter {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 520px;
    max-height: 720px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
  }
  .analysis-2d-scatter {
    aspect-ratio: 3 / 2;
    min-height: 420px;
    max-height: 560px;
  }
  .analysis-plot-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .analysis-plot-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1 1 420px;
  }
  .analysis-3d-scatter canvas {
    width: 100%;
    height: 100%;
    display: block;
  }
  .analyze-input-panel {
    gap: 0.75rem;
  }
  .analyze-input-panel .status-text {
    margin: 0;
  }
  .analyze-input-panel .upload-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .analyze-input-panel .upload-group + .upload-group {
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
  }
  .analyze-group .btn-inline {
    width: auto;
    align-self: flex-start;
  }
  .analyze-block + .analyze-block {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.25rem;
  }
  .analyze-block h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
  }
  .analyze-preview {
    margin-top: 1rem;
    max-height: 260px;
    overflow-y: auto;
  }
  #analyze-tab .analyze-panel {
    padding: 0.85rem;
    gap: 0.75rem;
  }
  #analyze-tab .analyze-panel label,
  #analyze-tab .analyze-panel p,
  #analyze-tab .analyze-panel h4,
  #analyze-tab .analyze-panel h2,
  #analyze-tab .analyze-panel h3 {
    margin: 0.2rem 0;
  }
  #analyze-tab .analyze-panel input,
  #analyze-tab .analyze-panel select,
  #analyze-tab .analyze-panel button {
    margin-top: 0.2rem;
  }
  #analyze-tab .panel-actions {
    gap: 0.4rem;
    margin-top: 0.25rem;
  }
  #analyze-tab .download-buttons {
    gap: 0.35rem;
    margin-top: 0.15rem;
  }
  #analyze-tab p {
    line-height: 1.3;
  }
  .multi-result-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    font-size: 0.9rem;
  }
  .multi-result-row:last-child {
    border-bottom: none;
  }
  .multi-result-row pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: "Fira Code", "Courier New", monospace;
    font-size: inherit;
    color: inherit;
  }
  .multi-result-actions {
    margin-top: 0.35rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }
  .simple-geometry-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .simple-geometry-results[hidden] {
    display: none;
  }
  .simple-geometry-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .simple-geometry-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 220px;
  }
  .geometry-histogram-wrapper {
    flex: 1;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 240px;
    display: flex;
    align-items: stretch;
    justify-content: center;
  }
  .geometry-histogram-image,
  #geometry-histogram {
    width: 100%;
    height: 100%;
  }
  .geometry-histogram-image {
    object-fit: contain;
    display: block;
  }
  .geometry-stats-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
  }
  .geometry-stats-table th,
  .geometry-stats-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.35rem 0.4rem;
    text-align: left;
  }
  .pdf-frame {
    width: 100%;
    min-height: 520px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    margin-top: 1rem;
  }
  #analyze-tab .pdf-frame {
    margin-top: 0.5rem;
  }
  .tabs {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 999px;
    background: #e2e8f0;
    padding: 0.35rem 1.5rem;
    margin: 1.5rem auto;
    gap: 0.35rem;
    flex-wrap: wrap;
    width: min(95vw, 1800px);
  }
  .tab-button {
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    cursor: pointer;
    color: #334155;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    flex: 1 1 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    line-height: 1.2;
    margin-top: 0;
  }
  .tab-button.active {
    background: #fff;
    color: #008793;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  }
  .tab-button:not(.active):hover {
    color: #0f172a;
  }
  .tab-content {
    display: none;
  }
  .tab-content.active {
    display: block;
  }
  .visualize-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  @media (min-width: 768px) {
    .visualize-grid {
      grid-template-columns: minmax(320px, 0.4fr) minmax(0, 0.6fr);
      column-gap: 1.5rem;
    }
  }
  #visualize-tab .input-section,
  #visualize-tab .viewer-section {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  #visualize-tab .visualize-grid > section {
    height: 100%;
  }
  #visualize-tab .viewer-section {
    gap: 0.75rem;
    align-items: stretch;
  }
  #visualize-tab .viewer-status-panel {
    width: 100%;
    flex: 0 0 auto;
  }
  #visualize-tab .input-section .form-grid {
    flex-grow: 1;
    align-content: start;
  }
  .viewer-section iframe {
    width: 100%;
    min-height: 520px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    background: #fff;
  }
  .viewer-edit-card {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.75rem 1rem;
  }
  .viewer-edit-card h3 {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    color: #0f172a;
  }
  .viewer-conformer-card {
    width: 100%;
    margin-top: 0.9rem;
    position: relative;
    z-index: 2;
  }
  .viewer-conformer-card .viewer-controls {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
  }
  .viewer-conformer-card #smiles-conformer-count {
    width: 6.5rem;
    min-width: 6.5rem;
  }
  .viewer-edit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
  }
  .viewer-edit-inline-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
  }
  .viewer-edit-inline-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    min-width: 2.5rem;
  }
  .structure-summary-meta-large {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
  }
  .element-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .element-input-row input {
    flex: 1;
    min-width: 0;
  }
  .element-picker-btn {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0ea5a3;
  }
  .element-picker-btn svg {
    width: 1.3rem;
    height: 1.3rem;
  }
  .element-picker-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .element-picker-modal[hidden] {
    display: none;
  }
  .element-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
  }
  .element-picker-panel {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 1rem 1.1rem 1.2rem;
    width: min(960px, 94vw);
    max-height: 85vh;
    overflow: auto;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
  }
  .license-modal {
    position: fixed;
    inset: 0;
    z-index: 20010;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .license-modal[hidden] {
    display: none;
  }
  .license-panel {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 1rem 1.1rem 1.2rem;
    width: min(960px, 94vw);
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
  .license-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .license-header h3 {
    margin: 0;
    font-size: 1.05rem;
  }
  .license-status {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #475569;
  }
  .license-textarea {
    width: 100%;
    min-height: 60vh;
    resize: none;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    font-family: "Fira Code", "Courier New", monospace;
    font-size: 0.87rem;
    line-height: 1.5;
    color: #0f172a;
    background: #f8fafc;
  }
  .element-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
  }
  .element-picker-header h3 {
    margin: 0;
    font-size: 1.05rem;
  }
  .element-picker-grid {
    display: grid;
    grid-template-columns: repeat(18, minmax(32px, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.9rem;
  }
  .element-picker-series {
    display: grid;
    gap: 0.6rem;
  }
  .element-series-row {
    display: grid;
    grid-template-columns: repeat(15, minmax(32px, 1fr));
    gap: 0.35rem;
  }
  .element-series-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
  }
  .element-tile {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.25rem;
    min-height: 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    margin-top: 0;
  }
  .element-tile:hover {
    background: #e2e8f0;
  }
  .element-tile span {
    font-size: 0.85rem;
  }
  .element-number {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
  }
  .element-placeholder {
    background: #eef2f7;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #64748b;
  }
  .viewer-edit-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    align-self: center;
  }
  #publish-tab .publish-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #publish-tab .publish-frame {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f5f7fb;
    border: 1px solid #d9e1ef;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  }
  #publish-tab .publish-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
  }
  #publish-tab .publish-toolbar p {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
  }
  #publish-tab .publish-body {
    padding: 1.25rem;
  }
  #jobs-tab .jobs-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
  }
  #jobs-tab .jobs-panel {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #d8e1ec;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  #jobs-tab .jobs-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  #jobs-tab .jobs-toolbar p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
  }
  #jobs-tab .jobs-table-wrapper {
    width: 100%;
    overflow: auto;
  }
  #jobs-tab .jobs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
    font-size: 0.92rem;
  }
  #jobs-tab .jobs-table th,
  #jobs-tab .jobs-table td {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
  }
  #jobs-tab .jobs-table th {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
  }
  #jobs-tab .jobs-table tbody tr:hover {
    background: #f8fafc;
  }
  #jobs-tab .jobs-bulk-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
  }
  #jobs-tab .jobs-bulk-actions .viewer-controls {
    margin-left: auto;
    margin-bottom: 0;
    align-items: center;
    gap: 0.5rem;
  }
  #jobs-tab .jobs-bulk-actions .viewer-controls button {
    margin-top: 0;
    height: 2.2rem;
  }
  #jobs-tab .jobs-select-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
  }
  #jobs-tab #jobs-select-all {
    width: 16px;
    height: 16px;
    cursor: pointer;
  }
  #jobs-tab .jobs-selection-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.2rem;
    font-size: 0.85rem;
    color: #0f172a;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0 0.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
  }
  #jobs-tab .jobs-count-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.2rem;
    font-size: 0.85rem;
    color: #0f172a;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0 0.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  #jobs-tab .jobs-count-meta.warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
  }
  #jobs-tab .jobs-storage-meta.warning {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
  }
  #jobs-tab .retention-cell {
    display: flex;
    align-items: center;
    gap: 0.45rem;
  }
  #jobs-tab .retention-bar {
    width: 48px;
    height: 10px;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    overflow: hidden;
  }
  #jobs-tab .retention-bar-fill {
    height: 100%;
    width: 0%;
    background: #22c55e;
  }
  #jobs-tab .retention-label {
    font-size: 0.78rem;
    color: #475569;
    min-width: 2.5rem;
    text-align: right;
  }
  .status-text.warning {
    color: #b45309;
  }
  #jobs-tab .jobs-action-group {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    align-items: center;
  }
  #jobs-tab .jobs-action-group button,
  #jobs-tab .jobs-selection-meta {
    align-self: center;
  }
  #jobs-tab .jobs-action-group button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.2rem;
    margin-top: 0;
  }
  #jobs-tab #jobs-bulk-delete-btn,
  #jobs-tab #jobs-bulk-download-btn {
    min-width: 10.5rem;
    white-space: nowrap;
    min-height: 2.2rem;
  }
  #jobs-tab .jobs-selection-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  #jobs-tab .jobs-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  #jobs-tab .jobs-action-btn {
    border-radius: 999px;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 0;
    box-shadow: none;
  }
  #jobs-tab .jobs-action-btn svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
    pointer-events: none;
  }
  #jobs-tab .jobs-action-btn.secondary {
    background: #0f172a;
  }
  #jobs-tab .jobs-action-btn.danger {
    background: #dc2626;
  }
  #jobs-tab .job-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #0f172a;
  }
  #jobs-tab .job-status.running {
    background: #dbeafe;
    color: #1d4ed8;
  }
  #jobs-tab .job-status.queued {
    background: #fef3c7;
    color: #92400e;
  }
  #jobs-tab .job-status.completed {
    background: #dcfce7;
    color: #166534;
  }
  #jobs-tab .job-status.error {
    background: #fee2e2;
    color: #b91c1c;
  }
  #jobs-tab .job-status.cancelled {
    background: #e2e8f0;
    color: #475569;
  }
  #jobs-tab .job-status.interrupted {
    background: #fde68a;
    color: #92400e;
  }
  #publish-tab .iochem-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  @media (max-width: 1024px) {
    #publish-tab .iochem-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 720px) {
    #publish-tab .iochem-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  #publish-tab .iochem-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #d8e1ec;
    padding: 1.25rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 100%;
  }
  #publish-tab .iochem-card.is-inactive {
    border-color: #fdba74;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.14);
    opacity: 0.82;
  }
  #publish-tab .iochem-card.is-inactive .help-hint,
  #publish-tab .iochem-card.is-inactive p {
    color: #9a3412;
  }
  #publish-tab .iochem-card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
  }
  #publish-tab .iochem-card-lead {
    margin: 0;
    color: #475569;
    line-height: 1.45;
  }
  #publish-tab .iochem-card .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #publish-tab .iochem-card .viewer-controls {
    margin-bottom: 0;
  }
  #publish-tab .iochem-card .help-hint {
    margin: 0;
  }
  #publish-tab .iochem-status-panel {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    border: 1px solid #b8d6e4;
    background: linear-gradient(180deg, #f2fbfd 0%, #eef6ff 100%);
  }
  #publish-tab .iochem-status-title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
  }
  #publish-tab .iochem-status-panel .status-text {
    margin: 0;
  }
  #publish-tab .iochem-status-text {
    color: #1e293b;
  }
  #publish-tab .iochem-browser-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  #publish-tab .iochem-browser-source {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(14, 165, 163, 0.12);
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  #publish-tab .iochem-browser-aux {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  #publish-tab .iochem-browser-aux.is-hidden {
    display: none;
  }
  #publish-tab .iochem-shares-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  #publish-tab .iochem-shares-panel.is-hidden {
    display: none;
  }
  #publish-tab .iochem-btn {
    background: linear-gradient(135deg, #0ea5a3 0%, #00738f 100%);
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    margin-top: 0;
    box-shadow: 0 10px 18px rgba(14, 165, 163, 0.25);
  }
  #publish-tab .iochem-btn.secondary {
    background: #0f172a;
    box-shadow: none;
  }
  #publish-tab a.iochem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
  }
  #publish-tab a.iochem-btn:hover,
  #publish-tab a.iochem-btn:focus {
    color: #fff;
  }
  #publish-tab .iochem-tree-applet {
    border: 1px solid #d2dae6;
    border-radius: 12px;
    padding: 0.75rem;
    background: #f8fafc;
    max-height: 320px;
    overflow: auto;
    font-size: 0.88rem;
  }
  #publish-tab .iochem-shares-list {
    border: 1px dashed #cbd5f5;
    border-radius: 12px;
    padding: 0.75rem;
    background: #f8fafc;
    max-height: 220px;
    overflow: auto;
    font-size: 0.88rem;
  }
  #publish-tab .iochem-shares-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
  }
  #publish-tab .iochem-shares-toolbar input[type="search"] {
    flex: 1 1 200px;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    border: 1px solid #cbd5f5;
    background: #ffffff;
    font-size: 0.85rem;
  }
  #publish-tab .iochem-share-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.1rem;
    border-bottom: 1px solid #e2e8f0;
  }
  #publish-tab .iochem-share-item:last-child {
    border-bottom: none;
  }
  #publish-tab .iochem-share-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  #publish-tab .iochem-share-path {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.88rem;
  }
  #publish-tab .iochem-share-meta {
    color: #64748b;
    font-size: 0.78rem;
  }
  #publish-tab .iochem-tree-list {
    list-style: none;
    margin: 0;
    padding-left: 1rem;
  }
  #publish-tab .iochem-tree-list summary {
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
    margin: 0.15rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  #publish-tab .iochem-tree-leaf {
    background: transparent;
    color: #0f172a;
    border: none;
    padding: 0.35rem 0.4rem;
    margin: 0;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: start;
  }
  #publish-tab .iochem-tree-leaf:hover {
    background: #e2e8f0;
  }
  #publish-tab .iochem-tree-leaf.compact {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: auto;
  }
  #publish-tab .iochem-tree-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0ea5a3;
  }
  #publish-tab .iochem-tree-icon.calc {
    color: #1d4ed8;
  }
  #publish-tab .iochem-tree-icon svg {
    width: 100%;
    height: 100%;
  }
  #publish-tab .iochem-tree-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  #publish-tab .iochem-tree-title {
    font-weight: 600;
    color: #0f172a;
  }
  #publish-tab .iochem-tree-meta {
    font-size: 0.75rem;
    color: #64748b;
  }
  #publish-tab .publish-body h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #0f172a;
  }
  #publish-tab .publish-body p {
    margin: 0.35rem 0;
    color: #475569;
  }
  #trajectory-tab .layout-grid {
    grid-template-columns: minmax(260px, 1fr);
    align-items: stretch;
    row-gap: 1rem;
  }
  @media (min-width: 1024px) {
    #trajectory-tab .layout-grid {
      grid-template-columns: minmax(320px, 0.4fr) minmax(0, 0.6fr);
      column-gap: 1.5rem;
    }
  }
  #trajectory-tab .layout-grid > section {
    min-width: 0;
  }
  .trajectory-viewer {
    width: 100%;
    min-height: 520px;
    position: relative;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    overflow: hidden;
  }
  #trajectory-tab .viewer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  #traj-jsmol-applet {
    flex: 1 1 auto;
  }
  #traj-jsmol-applet canvas,
  #traj-jsmol-applet div {
    max-width: 100%;
  }
  .trajectory-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .trajectory-energy-panel {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }
  .trajectory-energy-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    margin: 0.5rem 0 0.85rem;
  }
  .trajectory-energy-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    color: #334155;
  }
  .trajectory-energy-swatch {
    width: 1.15rem;
    height: 0.24rem;
    border-radius: 999px;
    background: var(--swatch, #008793);
    flex: 0 0 auto;
  }
  .trajectory-energy-wrapper {
    position: relative;
    width: 100%;
  }
  .trajectory-energy-wrapper canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .trajectory-controls-panel {
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .trajectory-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .trajectory-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
  }
  #about-tab .about-layout {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(260px, 0.35fr) minmax(0, 0.65fr);
    align-items: flex-start;
  }
  @media (max-width: 960px) {
    #about-tab .about-layout {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  .about-menu-panel,
  .about-content-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
  }
  .about-menu-panel {
    position: sticky;
    top: 1rem;
  }
  .about-panel-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .about-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0f766e;
  }
  .about-panel-heading h2 {
    margin: 0;
  }
  .about-panel-lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #475569;
  }
  .about-menu-tools {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }
  .about-search-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
  }
  .about-menu-tools input[type="search"] {
    width: 100%;
    border-radius: 999px;
    padding-inline: 0.95rem;
    border-color: #cbd5e1;
    background: #ffffff;
  }
  .about-current-section {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #334155;
  }
  .about-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .about-menu-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }
  .about-status-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 2rem;
    padding: 0.28rem 0.72rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
  }
  .about-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.4rem;
    border: 1px solid #dbe5f0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
  }
  .about-menu-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  .about-menu-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }
  .about-menu-toggle {
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .about-menu-toggle:hover {
    border-color: #cbd5e1;
    background: rgba(15, 23, 42, 0.04);
  }
  .about-menu-toggle[hidden] {
    display: none;
  }
  .about-menu-toggle::before {
    content: "▸";
    font-size: 0.8rem;
    line-height: 1;
  }
  .about-menu-item.is-open > .about-menu-row > .about-menu-toggle::before {
    content: "▾";
  }
  .about-menu-children {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    margin-left: 0.95rem;
    padding-left: 0.5rem;
    border-left: 1px solid #cbd5e1;
  }
  .about-menu-item.is-open > .about-menu-children {
    display: flex;
  }
  .about-menu-button {
    flex: 1 1 auto;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.52rem 0.68rem;
    background: transparent;
    font-size: 0.95rem;
    cursor: pointer;
    color: #0f172a;
    line-height: 1.4;
    transition:
      background 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }
  .about-menu-button:hover {
    border-color: #94a3b8;
    background: rgba(15, 23, 42, 0.04);
    transform: translateX(2px);
  }
  .about-menu-button.active {
    border-color: #1d4ed8;
    background: linear-gradient(90deg, rgba(219, 234, 254, 0.95), rgba(239, 246, 255, 0.98));
    box-shadow: inset 3px 0 0 #2563eb;
    color: #0f172a;
    font-weight: 600;
  }
  .about-menu-button.level-1 {
    font-size: 0.96rem;
  }
  .about-menu-button.level-2 {
    font-size: 0.9rem;
  }
  .about-menu-button.level-3 {
    font-size: 0.85rem;
  }
  .about-menu-button.level-4 {
    font-size: 0.82rem;
    color: #334155;
  }
  .about-content-panel h2 {
    margin-bottom: 0;
  }
  .about-content {
    border: 1px solid #dbe5f0;
    border-radius: 14px;
    padding: 1.15rem 1.2rem;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow-y: auto;
    max-height: 65vh;
  }
  .about-content h1,
  .about-content h2,
  .about-content h3,
  .about-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }
  .about-content p {
    line-height: 1.6;
  }
  .about-content a {
    color: #2563eb;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
  }
  .about-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 0.85rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
  }
  .about-content code {
    background: rgba(15, 23, 42, 0.08);
    border-radius: 4px;
    padding: 0.1rem 0.3rem;
    font-size: 0.9rem;
  }
  .about-content pre code {
    background: transparent;
    padding: 0;
  }
  .about-content ul,
  .about-content ol {
    padding-left: 1.25rem;
  }
  .about-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
  }
  .about-content th,
  .about-content td {
    border: 1px solid #cbd5e1;
    padding: 0.5rem;
    text-align: left;
  }
  .about-content img {
    max-width: 100%;
    border-radius: 8px;
  }
  .about-content blockquote {
    border-left: 4px solid #cbd5e1;
    margin: 1rem 0;
    padding-left: 1rem;
    color: #475569;
    background: rgba(15, 23, 42, 0.02);
  }
  #traj-frame-indicator {
    display: inline-block;
    margin-top: 0.35rem;
  }
  .geoopt-extra {
    display: grid;
    gap: 0.75rem;
  }
  @media (min-width: 768px) {
    .geoopt-extra {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: 1.5rem;
    }
  }
  .checkbox-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
  }
  .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: 500;
  }
  .checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-weight: 500;
  }
  .checkbox-inline input {
    margin: 0;
  }
  .folder-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .folder-selected-label {
    flex: 1;
    min-height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    gap: 0.5rem;
  }
  .folder-selected-label span {
    flex: 1;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .folder-selected-label input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }
  button {
    background: #008793;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
  }
  button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 135, 147, 0.22);
  }
  button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
  }
  button.secondary {
    background: #0f172a;
    margin-top: 0.75rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }
  button.secondary.element-picker-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0ea5a3;
    padding: 0;
  }
  .actions-section .actions-grid button,
  .actions-section .actions-grid button.secondary,
  .actions-section .download-buttons button {
    margin-top: 0;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
  }
  button.danger {
    background: #dc2626;
  }
  button.danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  #results {
    white-space: pre-wrap;
    font-family: "Fira Code", "Courier New", monospace;
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    min-height: 200px;
    line-height: 1.2rem;
    max-height: calc(25 * 1.2rem);
    overflow-y: auto;
  }
  #md-results {
    white-space: pre-wrap;
    font-family: "Fira Code", "Courier New", monospace;
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    min-height: 200px;
    line-height: 1.2rem;
    max-height: calc(25 * 1.2rem);
    overflow-y: auto;
  }
  #multi-results {
    white-space: pre-wrap;
    font-family: "Fira Code", "Courier New", monospace;
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    min-height: 200px;
    line-height: 1.2rem;
    max-height: calc(25 * 1.2rem);
    overflow-y: auto;
  }
  #multi-results a {
    color: #f97316;
    font-weight: 500;
    text-decoration: underline;
  }
  #multi-results a:hover,
  #multi-results a:focus {
    color: #fb923c;
  }
  #status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #444;
  }
  .status-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #444;
  }
  .status-text.error {
    color: #b91c1c;
  }
  footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: #666;
  }
