/* Only a server-confirmed active paid Home/App workspace receives these rules. */
.tpx-page.tpx-paid-workspace:not(.tpx-tool-page) .tpx-intro-card {
  gap: 12px;
  padding: 20px;
  border-color: #b9d2bd;
  background: linear-gradient(150deg, #edf6ee, #fffaf6 72%);
  box-shadow: inset 0 1px 0 #fff, 0 10px 26px rgb(37 74 47 / 7%);
}
.tpx-page.tpx-paid-workspace:not(.tpx-tool-page) .tpx-intro-copy h1 {
  margin-block: 8px 10px;
  font-size: clamp(28px, 2.2vw, 34px);
  line-height: 1.08;
}
.tpx-paid-accent {
  display: block;
  margin-top: 8px;
  color: #26704a;
  font-size: .72em;
  line-height: 1.16;
  letter-spacing: -.025em;
}
.tpx-paid-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}
.tpx-paid-highlights li {
  padding: 5px 8px;
  border: 1px solid #d5e2d6;
  border-radius: 8px;
  color: #355943;
  background: rgb(255 255 255 / 65%);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}
.tpx-paid-illustration {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 4px 0 12px;
  border-bottom: 1px solid #dce5d9;
}
.tpx-paid-illustration img {
  display: block;
  width: min(100%, 280px);
  height: 240px;
  object-fit: contain;
}
.tpx-paid-trust {
  margin: 0;
  color: #486351;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
@media (min-width: 981px) {
  .tpx-page.tpx-paid-workspace:not(.tpx-tool-page):where(:not(.has-tablet-workspace)):not(.has-batch) .tpx-home-grid > :is(.tpx-intro-card, .tpx-workspace, .tpx-settings) {
    align-self: start;
  }
  .tpx-page.tpx-paid-workspace:not(.tpx-tool-page):where(:not(.has-tablet-workspace)):not(.has-batch) .tpx-intro-card {
    justify-content: flex-start;
  }
  /* The initial row has one content-driven height, not three independently
     estimated heights. Expanded editors keep their own natural height. */
  .tpx-page.tpx-paid-workspace:not(.tpx-tool-page):where(:not(.has-tablet-workspace)):not(.has-batch) .tpx-home-grid:not(:has(.tpx-paid-workflows[open], .tpx-resize-panel:not([hidden]), .tpx-metadata-options:not([hidden]), #multipleOutputsEditor:not([hidden]))) > :is(.tpx-intro-card, .tpx-workspace, .tpx-settings) {
    align-self: stretch;
  }
  .tpx-page.tpx-paid-workspace:not(.tpx-tool-page):where(:not(.has-tablet-workspace)):not(.has-batch) .tpx-home-grid:not(:has(.tpx-paid-workflows[open], .tpx-resize-panel:not([hidden]), .tpx-metadata-options:not([hidden]), #multipleOutputsEditor:not([hidden]))) .tpx-intro-card {
    display: grid;
    grid-template-rows: auto minmax(min-content, 1fr) auto;
  }
  .tpx-page.tpx-paid-workspace:not(.tpx-tool-page):where(:not(.has-tablet-workspace)):not(.has-batch) .tpx-home-grid:not(:has(.tpx-paid-workflows[open], .tpx-resize-panel:not([hidden]), .tpx-metadata-options:not([hidden]), #multipleOutputsEditor:not([hidden]))) .tpx-paid-illustration {
    align-items: end;
  }
  .tpx-page.tpx-paid-workspace:not(.tpx-tool-page):where(:not(.has-tablet-workspace)) .tpx-home-grid {
    grid-template-columns: minmax(0, 27fr) minmax(0, 34fr) minmax(0, 39fr);
    gap: 16px;
  }
  .tpx-page.tpx-paid-workspace .tpx-home-compressor .tpx-dropzone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
  }
  .tpx-page.tpx-paid-workspace:not(.tpx-tool-page) .tpx-home-compressor .tpx-settings {
    max-height: none;
    overflow: visible;
    padding: 14px;
    gap: 0;
  }
  /* Dynamic panels grow naturally. Flex shrinking must never overlap controls. */
  .tpx-page.tpx-paid-workspace .tpx-settings > * {
    flex-shrink: 0;
  }
  .tpx-page.tpx-paid-workspace:not(.tpx-tool-page) .tpx-home-compressor .tpx-settings .tpx-compress {
    position: static;
    margin-top: 10px;
    box-shadow: 0 8px 16px rgb(27 104 56 / 12%);
  }
  .tpx-page.tpx-paid-workspace .tpx-settings .tpx-mode {margin-top: 10px;}
  .tpx-page.tpx-paid-workspace .tpx-settings .tpx-mode-tabs span {height: 42px;}
  .tpx-page.tpx-paid-workspace .tpx-settings .tpx-secondary-settings {margin-top: 8px; padding-top: 10px;}
  .tpx-page.tpx-paid-workspace .tpx-settings .tpx-option-row {padding-block: 3px;}
  .tpx-page.tpx-paid-workspace .tpx-settings .tpx-presets {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    margin: 10px 0 0;
    padding: 10px;
    border: 1px solid #e0e8df;
    border-radius: 12px;
    background: #f7faf6;
  }
  .tpx-page.tpx-paid-workspace .tpx-settings .tpx-presets[hidden] {display: none;}
  .tpx-paid-workspace .tpx-preset-select-row {grid-column: 1 / -1;}
  .tpx-paid-workspace .tpx-preset-actions {grid-column: 1; grid-row: 2; margin: 0; gap: 4px;}
  .tpx-paid-workspace .tpx-preset-actions button {padding-inline: 7px;}
  .tpx-paid-workspace .tpx-preset-status {grid-column: 1 / -1; margin: 0;}
  .tpx-paid-workspace .tpx-preset-editor {grid-column: 1 / -1;}
  .tpx-paid-workspace .tpx-auto-rules {display: contents;}
  .tpx-paid-workspace .tpx-auto-rules-toggle {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    align-items: center;
    gap: 6px;
    width: auto;
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid #dfe5df;
    border-radius: 8px;
    background: #fff;
    font-size: 11px;
  }
  .tpx-paid-workspace .tpx-auto-rules-toggle::after {content: '+'; font-size: 15px; font-weight: 500;}
  .tpx-paid-workspace .tpx-auto-rules-toggle[aria-expanded="true"]::after {content: '−';}
  .tpx-paid-workspace #autoRulesPanel {grid-column: 1 / -1;}
  .tpx-page.tpx-paid-workspace .tpx-settings .tpx-metadata-options {margin-block: 8px; padding: 8px;}
  .tpx-page.tpx-paid-workspace .tpx-settings .tpx-metadata-options p {margin-top: 5px; font-size: 12px; line-height: 1.3;}
  .tpx-page.tpx-paid-workspace .tpx-settings .tpx-multiple-outputs {margin-top: 8px; padding: 8px;}
  /* Variant editors belong to a column, not a full-width results table. */
  .tpx-paid-workspace .tpx-output-variant {grid-template-columns: repeat(2, minmax(0, 1fr));}
  .tpx-paid-workspace .tpx-output-variant > strong {grid-column: 1 / -1;}
  .tpx-paid-workspace .tpx-output-variant button {justify-self: end;}
}
.tpx-paid-workspace .tpx-paid-workflows {
  margin-top: 10px;
  border: 1px solid #dfe7df;
  border-radius: 12px;
  background: #f7faf6;
}
.tpx-paid-workspace .tpx-paid-workflows > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  color: #315640;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.tpx-paid-workspace .tpx-paid-workflows > summary::-webkit-details-marker {display: none;}
.tpx-paid-workspace .tpx-paid-workflows > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-right: 3px;
}
.tpx-paid-workspace .tpx-paid-workflows[open] > summary::after {transform: rotate(225deg);}
.tpx-paid-workspace .tpx-paid-workflows > summary:focus-visible {outline: 3px solid #78bc8b; outline-offset: 3px; border-radius: 10px;}
.tpx-page.tpx-paid-workspace .tpx-settings .tpx-paid-workflows .tpx-presets {
  margin: 0;
  border: 0;
  border-top: 1px solid #e0e8df;
  border-radius: 0 0 12px 12px;
}
@media (min-width: 981px) and (max-width: 1180px) {
  .tpx-paid-workspace .tpx-preset-actions {grid-column: 1 / -1;}
  .tpx-paid-workspace .tpx-auto-rules-toggle {grid-column: 1 / -1; grid-row: auto; justify-self: start;}
}
@media (max-width: 980px) {
  .tpx-page.tpx-paid-workspace:not(.tpx-tool-page) .tpx-intro-card {padding: 20px; gap: 12px;}
  .tpx-paid-illustration img {width: min(100%, 240px); height: 210px;}
}
