/* twitter-thread-maker.css
   FULL CSS - UPDATED

   Latest UI:
   - White textarea by default
   - Vertically resizable textarea
   - Textarea scrollbar reserved by default
   - Placeholder contains the auto-update message
   - "Your Twitter Thread" output area
   - Generated thread scrollbar reserved by default
   - 3 metric boxes:
       Characters Typed
       Characters with Numbering
       Tweets
   - Number Style controls
   - Copy / Clear / Undo buttons
   - Copy Tweet 1, Copy Tweet 2, etc.
   - Copy Entire Thread only appears for 2+ tweets via JS
   - Twitter Character Counter callout
   - Responsive mobile/tablet layouts
*/


@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap");



/* ==========================================================
   GLOBAL
========================================================== */

html {
  scrollbar-gutter: stable;
}


body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
  min-height: 100vh;

  margin: 0;
  padding: 0;

  font-family: "Poppins", sans-serif;
}


.footer {
  width: 100%;
}



/* ==========================================================
   MAIN PAGE GRID
========================================================== */

.parent-vowel {
  display: grid;

  grid-template-columns: 1fr 8fr 1fr 300px;
  grid-template-rows: 1fr;

  grid-column-gap: 2px;
  grid-row-gap: 2px;

  width: 100%;
}


.div1-vowel {
  grid-area: 1 / 1 / 2 / 2;
}


.div2-vowel {
  grid-area: 1 / 3 / 2 / 4;
}


.div3-vowel {
  grid-area: 1 / 2 / 2 / 3;

  width: 100%;

  padding: 0 8px;

  box-sizing: border-box;
}


.sidebar {
  grid-area: 1 / 4 / 2 / 5;
}



/* ==========================================================
   ARTICLE CONTENT
========================================================== */

.text {
  width: 100%;
  max-width: 760px;

  margin: 0 auto;

  padding: 18px 16px;

  box-sizing: border-box;

  overflow-wrap: anywhere;
}


.parent-vowel p {
  margin-bottom: 20px;

  font-size: 18px;
  line-height: 1.6;
  font-weight: 300;
}


.parent-vowel p a {
  color: #1a73e8;
}


.parent-vowel h2,
.parent-vowel h3 {
  margin-bottom: 20px;
}



/* ==========================================================
   LARGE SCREEN MAIN COLUMN
========================================================== */

@media (min-width: 1200px) {

  .div3-vowel {
    max-width: 1260px;

    padding-left: 4px;
    padding-right: 4px;
  }

}



/* ==========================================================
   EXTRA LARGE SCREEN
========================================================== */

@media (min-width: 1400px) {

  .div3-vowel {
    max-width: 1320px;
  }

}



/* ==========================================================
   BELOW 1200PX
========================================================== */

@media (max-width: 1200px) {

  .parent-vowel {
    grid-template-columns: 1fr 300px;
    grid-template-rows: 1fr;

    grid-column-gap: 2px;
    grid-row-gap: 2px;
  }


  .div1-vowel,
  .div2-vowel {
    display: none;
  }


  .div3-vowel {
    grid-area: 1 / 1 / 2 / 2;

    padding: 0 10px;
  }


  .sidebar {
    grid-area: 1 / 2 / 2 / 3;
  }

}



/* ==========================================================
   BELOW 992PX
========================================================== */

@media (max-width: 992px) {

  .parent-vowel {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;

    grid-column-gap: 0;
    grid-row-gap: 0;
  }


  .div3-vowel {
    grid-area: 1 / 1 / 2 / 2;

    padding: 0 12px;
  }


  .sidebar {
    grid-area: auto;
  }

}



/* ==========================================================
   TOOL OUTER CONTAINER
========================================================== */

.vc-container {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;

  margin-top: 20px;

  padding: 15px 8px;

  background: #ffffff;

  box-sizing: border-box;
}


.vc-container-wide {
  width: 100%;
}


.vc-title {
  margin: 0;

  padding: 10px 0 14px;

  color: #333333;

  font-size: 33px;
  line-height: 1.2;
  font-weight: 700;

  text-align: center;
}



/* ==========================================================
   MAIN TOOL CARD
========================================================== */

.vowel-checker {
  width: 100%;
  max-width: 1120px;

  margin: 0 auto;

  padding: 18px;

  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 18px 50px rgba(2, 6, 23, 0.10);

  box-sizing: border-box;

  overflow-x: clip;

  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}


.thread-maker-wide {
  max-width: 1160px;
}


.vowel-checker,
.vowel-checker * {
  box-sizing: border-box;
}



/* ==========================================================
   TWO-COLUMN WORKSPACE
========================================================== */

.thread-workspace {
  display: grid;

  grid-template-columns:
    minmax(0, 1.06fr)
    minmax(0, 0.94fr);

  gap: 16px;

  width: 100%;

  align-items: start;
}


.thread-workspace-wide {
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(0, 0.92fr);
}



/* ==========================================================
   VERY LARGE SCREENS
========================================================== */

@media (min-width: 1300px) {

  .thread-maker-wide {
    max-width: 1200px;
  }


  .thread-workspace-wide {
    grid-template-columns:
      minmax(0, 1.10fr)
      minmax(0, 0.90fr);

    gap: 15px;
  }

}



/* ==========================================================
   LEFT / RIGHT PANELS
========================================================== */

.thread-editor-panel,
.thread-preview-panel {
  width: 100%;
  min-width: 0;
}


.thread-editor-panel {
  display: flex;
  flex-direction: column;
}


.thread-preview-panel {
  display: flex;
  flex-direction: column;
}


.thread-editor-panel-wide,
.thread-preview-panel-wide {
  min-width: 0;
}



/* ==========================================================
   PANEL HEADINGS
========================================================== */

.thread-panel-heading {
  width: 100%;

  text-align: center;
}


.thread-panel-heading-large {
  font-size: 19px;
}


.thread-main-label {
  display: block;

  margin: 0 0 7px;

  color: rgba(30, 41, 59, 0.92);

  font-size: 19px;
  line-height: 1.25;
  font-weight: 700;

  text-align: center;
}



/* ==========================================================
   YOUR TWITTER THREAD HEADING
========================================================== */

.thread-preview-header {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  margin: 0 0 7px;
}


.thread-preview-header-compact,
.thread-preview-header-flush {
  margin-bottom: 7px;
}


.thread-preview-title {
  width: 100%;

  margin: 0;

  color: rgba(30, 41, 59, 0.92);

  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;

  text-align: center;
}



/* ==========================================================
   TEXTAREA WRAPPER
========================================================== */

.thread-textarea-wrapper {
  position: relative;

  width: 100%;

  margin: 0;
}



/* ==========================================================
   MAIN TEXTAREA

   White by default.
   White while focused.
   Vertically resizable.
   Scrollbar reserved by default.
========================================================== */

.vowel-checker .vc-input {
  display: block;

  width: 100%;

  min-height: 105px;
  height: 300px;

  margin: 0;

  padding: 14px 15px 55px;

  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 12px;

  background: #ffffff;

  color: rgba(2, 6, 23, 0.92);

  outline: none;

  resize: vertical;

  overflow-y: scroll;
  overflow-x: hidden;

  scrollbar-width: auto;

  scrollbar-color:
    rgba(100, 116, 139, 0.52)
    rgba(226, 232, 240, 0.28);

  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  font-size: 17.5px;
  line-height: 1.55;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}


.thread-input-taller,
.thread-input-extra-tall,
.thread-input-adjustable {
  min-height: 105px;
  height: 300px;
}


.vowel-checker .vc-input::placeholder {
  color: rgba(30, 41, 59, 0.43);

  font-size: 17px;
  line-height: 1.5;
}


.vowel-checker .vc-input:focus {
  background: #ffffff;

  border-color: rgba(37, 99, 235, 0.55);

  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.18);
}



/* ==========================================================
   TEXTAREA SCROLLBAR
========================================================== */

.vowel-checker .vc-input::-webkit-scrollbar {
  width: 9px;
}


.vowel-checker .vc-input::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.28);

  border-radius: 999px;
}


.vowel-checker .vc-input::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.46);

  border: 2px solid transparent;
  border-radius: 999px;

  background-clip: padding-box;
}


.vowel-checker .vc-input::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.62);

  border: 2px solid transparent;

  background-clip: padding-box;
}



/* ==========================================================
   LARGE SCREEN TEXTAREA
========================================================== */

@media (min-width: 1300px) {

  .vowel-checker .vc-input,
  .thread-input-taller,
  .thread-input-extra-tall,
  .thread-input-adjustable {
    min-height: 105px;
    height: 310px;
  }

}



/* ==========================================================
   TEXTAREA ACTION BUTTONS
========================================================== */

.thread-textarea-actions {
  position: absolute;

  right: 12px;
  bottom: 10px;

  z-index: 3;

  display: flex;
  align-items: center;

  gap: 7px;
}



/* ==========================================================
   COMMON TEXTAREA ACTION BUTTON
========================================================== */

.thread-textarea-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 56px;
  min-height: 32px;

  padding: 5px 11px;

  border-radius: 7px;

  font-family: inherit;

  font-size: 12.5px;
  line-height: 1;
  font-weight: 700;

  cursor: pointer;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  box-shadow:
    0 1px 4px rgba(15, 23, 42, 0.035);

  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease,
    opacity 150ms ease;
}



/* ==========================================================
   COPY INPUT BUTTON
========================================================== */

.thread-copy-input-btn {
  border: 1px solid rgba(22, 163, 74, 0.18);

  background: rgba(240, 253, 244, 0.58);

  color: #15803d;
}


.thread-copy-input-btn:hover:not(:disabled) {
  border-color: rgba(22, 163, 74, 0.32);

  background: rgba(220, 252, 231, 0.78);

  color: #166534;

  box-shadow:
    0 3px 8px rgba(22, 163, 74, 0.08);

  transform: translateY(-1px);
}


.thread-copy-input-btn.copied {
  border-color: rgba(22, 163, 74, 0.60);

  background: rgba(22, 163, 74, 0.86);

  color: #ffffff;
}



/* ==========================================================
   CLEAR BUTTON
========================================================== */

.thread-reset-btn {
  border: 1px solid rgba(71, 85, 105, 0.16);

  background: rgba(255, 255, 255, 0.62);

  color: rgba(51, 65, 85, 0.86);
}


.thread-reset-btn:hover {
  border-color: rgba(71, 85, 105, 0.30);

  background: rgba(241, 245, 249, 0.80);

  color: rgba(15, 23, 42, 0.96);

  box-shadow:
    0 3px 8px rgba(15, 23, 42, 0.07);

  transform: translateY(-1px);
}



/* ==========================================================
   UNDO STATE
========================================================== */

.thread-reset-btn.undo-active {
  border-color: rgba(37, 99, 235, 0.18);

  background: rgba(239, 246, 255, 0.64);

  color: #2563eb;
}


.thread-reset-btn.undo-active:hover {
  border-color: rgba(37, 99, 235, 0.32);

  background: rgba(219, 234, 254, 0.80);

  color: #1d4ed8;
}



/* ==========================================================
   TEXTAREA ACTION STATES
========================================================== */

.thread-textarea-action-btn:active {
  transform: translateY(0);
}


.thread-textarea-action-btn:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.14);
}


.thread-textarea-action-btn:disabled {
  opacity: 0.40;

  cursor: default;

  transform: none;
}



/* ==========================================================
   NUMBER SETTINGS
========================================================== */

.thread-settings {
  width: 100%;

  margin-top: 13px;

  padding: 14px;

  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;

  background: rgba(248, 250, 252, 0.90);
}



/* ==========================================================
   NUMBER STYLE HEADING
========================================================== */

.thread-settings-heading {
  width: 100%;

  margin-bottom: 11px;

  color: rgba(30, 41, 59, 0.92);

  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;

  text-align: center;
}


.thread-settings-heading-large {
  font-size: 16px;
}



/* ==========================================================
   NUMBER CONTROLS
========================================================== */

.thread-numbering-controls {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 11px;

  width: 100%;
}



/* ==========================================================
   INDIVIDUAL NUMBER CONTROL
========================================================== */

.thread-setting {
  display: flex;
  flex-direction: column;
  align-items: stretch;

  gap: 6px;

  min-width: 0;
}


.thread-setting-label,
.thread-setting label {
  display: block;

  margin: 0;

  color: rgba(71, 85, 105, 0.86);

  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}


.thread-setting-label-large {
  font-size: 13.5px;
}



/* ==========================================================
   SELECTS
========================================================== */

.thread-select {
  width: 100%;
  min-width: 0;

  padding: 9px 31px 9px 11px;

  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;

  background-color: #ffffff;

  color: rgba(2, 6, 23, 0.92);

  outline: none;

  font-family: inherit;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}


.thread-select-large {
  font-size: 14px;
}


.thread-select:hover {
  border-color: rgba(15, 23, 42, 0.28);
}


.thread-select:focus {
  border-color: rgba(37, 99, 235, 0.55);

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.13);
}


.thread-select:disabled {
  opacity: 0.46;

  cursor: not-allowed;

  background: rgba(241, 245, 249, 1);
}



/* ==========================================================
   THREE METRIC SUMMARY

   Characters Typed
   Characters with Numbering
   Tweets
========================================================== */

.thread-summary {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 8px;

  width: 100%;

  margin-top: 12px;
}


.thread-summary-three {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}


.thread-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: 72px;

  padding: 10px 6px;

  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;

  background: rgba(248, 250, 252, 1);

  text-align: center;
}


.thread-stat-number {
  color: rgba(15, 23, 42, 0.94);

  font-size: 24px;
  line-height: 1.08;
  font-weight: 800;
}


.thread-stat-label {
  margin-top: 5px;

  color: rgba(71, 85, 105, 0.80);

  font-size: 10px;
  line-height: 1.18;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.015em;

  white-space: normal;
}



/* ==========================================================
   COUNTING NOTE
========================================================== */

.thread-count-note {
  width: 100%;

  margin-top: 10px;

  padding: 0 2px;

  color: rgba(71, 85, 105, 0.64);

  font-size: 12px;
  line-height: 1.45;
}


.thread-count-note-large {
  font-size: 12px;
}



/* ==========================================================
   GENERATED THREAD RESULT WRAPPER
========================================================== */

.vowel-checker .vc-result {
  width: 100%;
  min-width: 0;

  margin: 0;

  padding: 12px;

  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;

  background: rgba(248, 250, 252, 1);

  color: rgba(2, 6, 23, 0.92);

  font-size: 16.5px;
  line-height: 1.5;

  overflow-wrap: anywhere;

  word-break: break-word;
}



/* ==========================================================
   YOUR TWITTER THREAD SCROLL AREA
========================================================== */

.thread-result,
.thread-result-scroll-auto {
  display: flex;
  flex-direction: column;

  gap: 10px;

  min-height: 320px;
  max-height: 650px;

  overflow-y: scroll;
  overflow-x: hidden;

  scrollbar-width: auto;

  scrollbar-color:
    rgba(100, 116, 139, 0.52)
    rgba(226, 232, 240, 0.28);
}


.thread-result-taller,
.thread-result-extra-tall {
  min-height: 320px;
  max-height: 650px;
}



/* ==========================================================
   GENERATED THREAD SCROLLBAR
========================================================== */

.thread-result::-webkit-scrollbar,
.thread-result-scroll-auto::-webkit-scrollbar {
  width: 9px;
}


.thread-result::-webkit-scrollbar-track,
.thread-result-scroll-auto::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.28);

  border-radius: 999px;
}


.thread-result::-webkit-scrollbar-thumb,
.thread-result-scroll-auto::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.46);

  border: 2px solid transparent;
  border-radius: 999px;

  background-clip: padding-box;
}


.thread-result::-webkit-scrollbar-thumb:hover,
.thread-result-scroll-auto::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.62);

  border: 2px solid transparent;

  background-clip: padding-box;
}



/* ==========================================================
   LARGE SCREEN GENERATED THREAD HEIGHT
========================================================== */

@media (min-width: 1300px) {

  .thread-result,
  .thread-result-taller,
  .thread-result-extra-tall,
  .thread-result-scroll-auto {
    min-height: 330px;

    max-height: 680px;
  }

}



/* ==========================================================
   REMOVE OLD RESULT HEADING
========================================================== */

.thread-results-heading,
.thread-results-title,
.thread-results-count {
  display: none !important;
}



/* ==========================================================
   INDIVIDUAL TWEET CARD
========================================================== */

.thread-tweet,
.tweet-card {
  width: 100%;

  flex-shrink: 0;

  padding: 14px;

  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;

  background: #ffffff;

  box-shadow:
    0 3px 10px rgba(15, 23, 42, 0.04);

  overflow: hidden;
}



/* ==========================================================
   BLANK DEFAULT TWEET
========================================================== */

.thread-tweet-text:empty,
.tweet-text:empty {
  min-height: 100px;
}


.thread-tweet-text:empty::after,
.tweet-text:empty::after {
  content: "";

  display: block;

  min-height: 100px;
}



/* ==========================================================
   TWEET HEADER
========================================================== */

.thread-tweet-header,
.tweet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 9px;

  width: 100%;

  margin-bottom: 10px;
}



/* ==========================================================
   TWEET 1 OF X
========================================================== */

.thread-tweet-number,
.tweet-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 28px;

  padding: 4px 10px;

  border-radius: 999px;

  background: rgba(37, 99, 235, 0.09);

  color: #2563eb;

  font-size: 13.5px;
  line-height: 1.2;
  font-weight: 800;

  white-space: nowrap;
}


.tweet-number-large {
  font-size: 13.5px;
}



/* ==========================================================
   PER-TWEET CHARACTER COUNT
========================================================== */

.thread-tweet-count,
.tweet-character-count {
  margin-left: auto;

  color: rgba(71, 85, 105, 0.74);

  font-size: 13.5px;
  line-height: 1.2;
  font-weight: 700;

  white-space: nowrap;
}


.tweet-character-count-large {
  font-size: 13.5px;
}


.thread-tweet-count.near-limit,
.tweet-character-count.near-limit {
  color: #b45309;
}


.thread-tweet-count.at-limit,
.tweet-character-count.at-limit {
  color: #dc2626;

  font-weight: 800;
}



/* ==========================================================
   TWEET TEXT
========================================================== */

.thread-tweet-text,
.tweet-text {
  width: 100%;

  color: rgba(15, 23, 42, 0.94);

  font-size: 16px;
  line-height: 1.58;

  white-space: pre-wrap;

  overflow-wrap: anywhere;

  word-break: normal;
}


.thread-tweet-text-large {
  font-size: 16px;
}



/* ==========================================================
   TWEET FOOTER
========================================================== */

.thread-tweet-footer,
.tweet-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  width: 100%;

  margin-top: 12px;

  padding-top: 10px;

  border-top:
    1px solid rgba(15, 23, 42, 0.07);
}



/* ==========================================================
   COPY TWEET BUTTON

   JS changes text dynamically:
   Copy Tweet 1
   Copy Tweet 2
   Copy Tweet 3
   etc.
========================================================== */

.thread-copy-btn,
.tweet-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 35px;

  padding: 7px 13px;

  border:
    1px solid rgba(22, 163, 74, 0.28);

  border-radius: 8px;

  background:
    rgba(240, 253, 244, 0.92);

  color: #15803d;

  font-family: inherit;

  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 800;

  white-space: nowrap;

  cursor: pointer;

  transition:
    background 150ms ease,
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease;
}


.thread-copy-btn:hover:not(:disabled),
.tweet-copy-btn:hover:not(:disabled) {
  background:
    rgba(220, 252, 231, 0.96);

  border-color:
    rgba(22, 163, 74, 0.42);

  color: #166534;

  box-shadow:
    0 4px 10px rgba(22, 163, 74, 0.10);

  transform: translateY(-1px);
}


.thread-copy-btn:active:not(:disabled),
.tweet-copy-btn:active:not(:disabled) {
  transform: translateY(0);
}


.thread-copy-btn:focus-visible,
.tweet-copy-btn:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 3px rgba(22, 163, 74, 0.16);
}


.thread-copy-btn.copied,
.tweet-copy-btn.copied {
  background: #16a34a;

  border-color: #16a34a;

  color: #ffffff;
}


.thread-copy-btn:disabled,
.tweet-copy-btn:disabled {
  opacity: 0.42;

  cursor: default;

  background:
    rgba(241, 245, 249, 0.85);

  border-color:
    rgba(15, 23, 42, 0.10);

  color:
    rgba(71, 85, 105, 0.60);
}



/* ==========================================================
   LIMIT STATES
========================================================== */

.thread-tweet.near-limit,
.tweet-card.near-limit {
  border-color:
    rgba(245, 158, 11, 0.30);
}


.thread-tweet.over-limit,
.tweet-card.over-limit {
  border-color:
    rgba(239, 68, 68, 0.40);

  background:
    rgba(254, 242, 242, 0.50);
}



/* ==========================================================
   COPY ENTIRE THREAD

   JS controls when this appears.

   1 tweet:
   hidden

   2+ tweets:
   visible
========================================================== */

.thread-copy-all-container {
  width: 100%;

  margin-top: 10px;
}


.thread-copy-all-container[hidden] {
  display: none !important;
}


.thread-copy-all-btn {
  width: 100%;

  min-height: 42px;

  padding: 9px 13px;

  border:
    1px solid rgba(22, 163, 74, 0.30);

  border-radius: 10px;

  background:
    rgba(240, 253, 244, 0.92);

  color: #15803d;

  font-family: inherit;

  font-size: 13.5px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 160ms ease,
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}


.thread-copy-all-btn:hover {
  background:
    rgba(220, 252, 231, 0.96);

  border-color:
    rgba(22, 163, 74, 0.44);

  color: #166534;

  box-shadow:
    0 5px 12px rgba(22, 163, 74, 0.10);

  transform: translateY(-1px);
}


.thread-copy-all-btn:active {
  transform: translateY(0);
}


.thread-copy-all-btn:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 4px rgba(22, 163, 74, 0.15);
}


.thread-copy-all-btn.copied {
  background: #16a34a;

  border-color: #16a34a;

  color: #ffffff;
}



/* ==========================================================
   TWITTER CHARACTER COUNTER CALLOUT
========================================================== */

.thread-twitter-counter-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  width: 100%;

  margin-top: 18px;

  padding: 14px 16px;

  border: 1px solid rgba(37, 99, 235, 0.13);
  border-radius: 12px;

  background: rgba(239, 246, 255, 0.50);
}



/* ==========================================================
   CHARACTER COUNTER CALLOUT TEXT
========================================================== */

.thread-twitter-counter-callout-text {
  display: flex;
  flex-direction: column;

  gap: 3px;

  min-width: 0;

  color: rgba(51, 65, 85, 0.88);

  font-size: 13px;
  line-height: 1.48;
}


.thread-twitter-counter-callout-text strong {
  color: rgba(15, 23, 42, 0.94);

  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
}


.thread-twitter-counter-callout-text span {
  display: block;

  color: rgba(71, 85, 105, 0.78);
}



/* ==========================================================
   TWITTER CHARACTER COUNTER LINK
========================================================== */

.thread-twitter-counter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  min-height: 38px;

  padding: 8px 13px;

  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 8px;

  background: #ffffff;

  color: #2563eb !important;

  font-family: inherit;

  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 800;

  text-align: center;
  text-decoration: none;

  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}


.thread-twitter-counter-link:hover {
  border-color: rgba(37, 99, 235, 0.42);

  background: rgba(239, 246, 255, 0.95);

  color: #1d4ed8 !important;

  box-shadow:
    0 4px 10px rgba(37, 99, 235, 0.08);

  transform: translateY(-1px);
}


.thread-twitter-counter-link:active {
  transform: translateY(0);
}


.thread-twitter-counter-link:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.14);
}



/* ==========================================================
   HIDE OLD HINTS
========================================================== */

.vowel-checker .vc-hint,
#threadHint,
#threadInputHelp {
  display: none !important;
}



/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 850px) {

  .thread-workspace,
  .thread-workspace-wide {
    grid-template-columns: 1fr;

    gap: 20px;
  }


  .vowel-checker,
  .thread-maker-wide {
    max-width: 680px;
  }


  .vowel-checker .vc-input,
  .thread-input-taller,
  .thread-input-extra-tall,
  .thread-input-adjustable {
    min-height: 100px;
    height: 275px;
  }


  .thread-result,
  .thread-result-taller,
  .thread-result-extra-tall,
  .thread-result-scroll-auto {
    min-height: 285px;

    max-height: 580px;
  }


  .thread-twitter-counter-callout {
    align-items: flex-start;
  }

}



/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 640px) {

  .vc-container,
  .vc-container-wide {
    padding: 15px;
  }


  .vc-title {
    font-size: 30px;
  }


  .vowel-checker,
  .thread-maker-wide {
    width: 100%;

    padding: 16px;

    border-radius: 14px;
  }


  .thread-main-label,
  .thread-preview-title {
    font-size: 18px;
  }


  .vowel-checker .vc-input,
  .thread-input-taller,
  .thread-input-extra-tall,
  .thread-input-adjustable {
    min-height: 95px;
    height: 255px;

    padding-bottom: 52px;

    font-size: 16.5px;
  }


  .vowel-checker .vc-input::placeholder {
    font-size: 16px;
  }


  .thread-numbering-controls {
    grid-template-columns: 1fr 1fr;
  }


  .thread-main-label {
    margin-bottom: 7px;
  }


  .thread-preview-header,
  .thread-preview-header-compact,
  .thread-preview-header-flush {
    margin-bottom: 7px;
  }


  .thread-result,
  .thread-result-taller,
  .thread-result-extra-tall,
  .thread-result-scroll-auto {
    min-height: 270px;

    max-height: 550px;
  }



  /* --------------------------------------------------------
     KEEP ALL 3 METRICS IN ONE ROW
  -------------------------------------------------------- */

  .thread-summary,
  .thread-summary-three {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 6px;
  }


  .thread-stat {
    min-height: 70px;

    padding: 9px 4px;
  }


  .thread-stat-number {
    font-size: 22px;
  }


  .thread-stat-label {
    font-size: 9px;

    letter-spacing: 0;
  }



  /* --------------------------------------------------------
     TWITTER CHARACTER COUNTER CALLOUT
  -------------------------------------------------------- */

  .thread-twitter-counter-callout {
    flex-direction: column;

    align-items: stretch;

    gap: 11px;

    padding: 13px 14px;
  }


  .thread-twitter-counter-link {
    width: 100%;

    min-height: 40px;
  }

}



/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

  .vc-title {
    font-size: 28px;

    line-height: 1.2;
  }


  .vowel-checker,
  .thread-maker-wide {
    padding: 14px;
  }


  .thread-main-label {
    margin-bottom: 7px;

    font-size: 17.5px;
  }


  .vowel-checker .vc-input,
  .thread-input-taller,
  .thread-input-extra-tall,
  .thread-input-adjustable {
    min-height: 90px;
    height: 240px;

    padding: 12px 13px 51px;
  }


  .vowel-checker .vc-input::placeholder {
    font-size: 15px;
    line-height: 1.45;
  }


  .thread-textarea-actions {
    right: 10px;
    bottom: 8px;

    gap: 6px;
  }


  .thread-textarea-action-btn {
    min-width: 52px;
    min-height: 30px;

    padding: 5px 9px;

    font-size: 11.5px;
  }


  .thread-settings {
    padding: 12px;
  }


  .thread-settings-heading,
  .thread-settings-heading-large {
    margin-bottom: 10px;

    font-size: 15px;
  }


  .thread-numbering-controls {
    grid-template-columns: 1fr;

    gap: 10px;
  }


  .thread-setting-label,
  .thread-setting-label-large,
  .thread-setting label {
    font-size: 13px;
  }


  .thread-select,
  .thread-select-large {
    font-size: 13.5px;
  }



  /* --------------------------------------------------------
     KEEP 3 METRIC BOXES IN ONE ROW
  -------------------------------------------------------- */

  .thread-summary,
  .thread-summary-three {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 5px;
  }


  .thread-stat {
    min-height: 70px;

    padding: 8px 2px;

    border-radius: 10px;
  }


  .thread-stat-number {
    font-size: 20px;
  }


  .thread-stat-label {
    margin-top: 4px;

    font-size: 7.8px;
    line-height: 1.13;

    letter-spacing: 0;
  }


  .thread-preview-header,
  .thread-preview-header-compact,
  .thread-preview-header-flush {
    margin-bottom: 7px;
  }


  .thread-preview-title {
    font-size: 17.5px;
  }


  .thread-result,
  .thread-result-taller,
  .thread-result-extra-tall,
  .thread-result-scroll-auto {
    min-height: 260px;

    max-height: 530px;
  }


  .thread-tweet,
  .tweet-card {
    padding: 12px;
  }


  .thread-tweet-number,
  .tweet-number,
  .tweet-number-large {
    font-size: 12.5px;
  }


  .thread-tweet-count,
  .tweet-character-count,
  .tweet-character-count-large {
    font-size: 12.5px;
  }


  .thread-tweet-text,
  .tweet-text,
  .thread-tweet-text-large {
    font-size: 15px;
  }


  .thread-tweet-header,
  .tweet-card-header {
    flex-wrap: wrap;
  }


  .thread-copy-btn,
  .tweet-copy-btn {
    width: 100%;
  }


  .thread-tweet-footer,
  .tweet-card-footer {
    justify-content: stretch;
  }



  /* --------------------------------------------------------
     CHARACTER COUNTER CALLOUT
  -------------------------------------------------------- */

  .thread-twitter-counter-callout {
    margin-top: 15px;

    padding: 12px;
  }


  .thread-twitter-counter-callout-text {
    font-size: 12.5px;
  }


  .thread-twitter-counter-callout-text strong {
    font-size: 13.5px;
  }


  .thread-twitter-counter-link {
    font-size: 12px;
  }

}



/* ==========================================================
   VERY SMALL MOBILE
========================================================== */

@media (max-width: 400px) {

  .vc-container,
  .vc-container-wide {
    padding: 10px;
  }


  .text {
    padding: 16px 14px;
  }


  .vowel-checker,
  .thread-maker-wide {
    padding: 13px;
  }


  .vc-title {
    font-size: 26px;
  }


  .thread-summary,
  .thread-summary-three {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 4px;
  }


  .thread-stat {
    min-height: 68px;

    padding: 7px 2px;
  }


  .thread-stat-number {
    font-size: 19px;
  }


  .thread-stat-label {
    font-size: 7.2px;
  }

}



/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

  .vowel-checker .vc-input,
  .thread-textarea-action-btn,
  .thread-copy-btn,
  .tweet-copy-btn,
  .thread-copy-all-btn,
  .thread-select,
  .thread-twitter-counter-link {
    transition: none;
  }


  .thread-textarea-action-btn:hover,
  .thread-copy-btn:hover,
  .tweet-copy-btn:hover,
  .thread-copy-all-btn:hover,
  .thread-twitter-counter-link:hover {
    transform: none;
  }

}



/* ==========================================================
   HEADER MENU BACKGROUND FIX
========================================================== */

#header .list-link,
#menu .list-link {
  background: transparent !important;
}


#menu.activated .list-link {
  background: transparent !important;
}


#header .list-link:hover,
#menu .list-link:hover {
  background: rgba(0, 0, 0, 0.06) !important;

  border-radius: 8px;
}