/* ---- HTML to PDF: their three-tab panel -------------------------------
   Tab strip on a light band, the active tab a white tab with a dark
   underline; the boxes (web addresses / HTML code), the shared green
   "Convert HTML to PDF" with "More options", and their helper lines. */
.htm-head { text-align: center; align-items: center; }

/* Their announcement pills: pale green capsules with a solid "New" chip and
   a chevron, between the lead and the tab strip. */
.htm-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 19px; margin: 24px 0 34px; }
.htm-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 27px; padding: 0 12px; border-radius: 10px;
  background: rgba(37, 144, 102, .06);
  color: rgba(37, 144, 102, .85); font-size: 1.06rem;
}
.htm-pill i { font-size: .85rem; color: rgba(37, 144, 102, .7); }
.htm-new {
  display: inline-block; padding: 1px 7px 2px; border-radius: 9px;
  background: #259066; color: var(--white);
  font-size: .68rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}

.htm-card {
  max-width: none; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}

/* Their tab strip sits straight on the white card with a hairline under it;
   the active tab is a bordered white folder tab that masks the line. */
.htm-tabs {
  display: flex; justify-content: center;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.htm-tab {
  border: 1px solid transparent; border-bottom: 0; background: none; cursor: pointer;
  margin-bottom: -1px; border-radius: 4px 4px 0 0;
  padding: 11px 15px 12px; font: inherit; font-size: 1.06rem;
  color: #555555;
}
.htm-tab:hover { color: var(--ink); }
.htm-tab.is-on {
  background: var(--white); color: #555555; font-weight: 700;
  border-color: var(--line);
}

.htm-panel { padding: 26px 32px 6px; }
.htm-label { display: block; text-align: center; font-weight: 500; font-size: 1.06rem; color: #333333; margin-bottom: 8px; }
.htm-panel textarea {
  display: block; width: 100%; padding: 13px 20px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  font: inherit; font-size: .95rem; color: var(--ink);
  line-height: 1.6; resize: vertical; min-height: 100px;
  background: var(--white);
}
#opt-html { font-size: .8rem; line-height: 1.7; min-height: 200px; }
.htm-panel textarea::placeholder { color: #a7b0b5; }
.htm-caption { text-align: center; color: #737373; font-size: 1.06rem; margin: 10px 0 0; }

/* The split upload button of their file tab (same pair as Word to PDF). */
.htm-panel .htm-selected { text-align: center; margin: 0 0 16px; font-size: .95rem; color: var(--muted); }
.htm-panel .htm-selected strong { color: var(--ink); font-weight: 600; }
.htm-upload { text-align: center; }
.htm-split-holder { position: relative; display: inline-block; }
.htm-split { display: inline-flex; }
.htm-panel .htm-pick {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 6px 0 0 6px;
  font-size: 1.3rem; font-weight: 700; padding: 9px 24px 10px;
}
.htm-panel .htm-pick i { font-size: 1.35rem; }
.htm-panel .htm-caret {
  border-radius: 0 6px 6px 0;
  border-left: 1px solid rgba(255, 255, 255, .38);
  padding: 9px 12px 10px; font-size: 1.15rem;
}
.htm-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
  min-width: 230px; padding: 6px 0; text-align: left;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 12px 34px rgba(20, 30, 35, .16);
}
.htm-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 16px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .95rem; color: var(--ink);
}
.htm-menu-item i { width: 18px; font-size: 1.05rem; color: var(--muted); }
.htm-menu-item:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Their More options, folding out above the Convert row. */
.htm-opts { padding: 4px 32px 0; }
.htm-opts-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 44px; margin-bottom: 16px; }
.htm-field { display: flex; flex-direction: column; gap: 8px; }
.htm-field > span:first-child { font-weight: 700; font-size: .95rem; text-align: center; }
.htm-field select,
.htm-field input[type=number] {
  height: 42px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 12px; font: inherit; font-size: .95rem;
  color: var(--ink); background: var(--white); min-width: 200px;
}
.htm-margin { display: inline-flex; gap: 8px; }
.htm-margin input[type=number] { min-width: 0; width: 110px; }
.htm-margin select { min-width: 150px; }
.htm-opts-checks { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 2px 0 14px; }
.htm-check { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; cursor: pointer; }
.htm-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }

.htm-actions { text-align: center; padding: 20px 32px 26px; }
.htm-actions .btn {
  vertical-align: middle; border-radius: 4px;
  font-size: 1.125rem; font-weight: 700; padding: 6px 16px;
}
.htm-more {
  display: inline-block; margin-left: 10px; vertical-align: middle;
  border: 0; border-radius: 4px; cursor: pointer;
  padding: 9px 16px; font: inherit; font-size: .9rem; font-weight: 500;
  background: rgba(31, 122, 109, .07); color: var(--accent);
}
.htm-more:hover { background: var(--accent-soft); }
.htm-notes { margin-top: 16px; }
.htm-note { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 4px 0 0; }
.htm-terms { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.htm-link { text-decoration: none; cursor: default; }
/* On the file tab their Convert row is absent, so the links note goes too. */
.htm-card.is-file .html-only { display: none; }
