/**
 * T2 — character-counter mobile V2
 * Opt-in: html[data-tl-mobile-v2="tool-v1"]
 */

/* from character-counter-mobile.css */
/* Character Counter — mobile-only sync CSS */
@media (max-width: 760px){
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] {
    --cc-m-gutter: 0.875rem;
    --cc-m-primary: #8b5cf6;
    --cc-m-text: #172033;
    --cc-m-muted: #536273;
    padding-bottom: 1.25rem;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"].page-shell.tool-page {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.2rem var(--cc-m-gutter) 0.75rem !important;
    overflow-x: hidden;
  }

  /* Compact breadcrumb — developer-tools pattern */
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .breadcrumb {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 0 0.12rem !important;
    padding: 0.1rem 0 !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: var(--cc-m-muted) !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .breadcrumb a {
    color: var(--cc-m-primary) !important;
    font-weight: 700 !important;
    -webkit-text-fill-color: var(--cc-m-primary) !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .breadcrumb span:last-child {
    color: var(--cc-m-text) !important;
    font-weight: 700 !important;
    -webkit-text-fill-color: var(--cc-m-text) !important;
  }

  /* Hero — developer-tools mobile pattern */
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-page-hero {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.65rem calc(-1 * var(--cc-m-gutter)) 0.85rem !important;
    padding: 1.35rem var(--cc-m-gutter) 1.45rem !important;
    text-align: center !important;
    background:
      linear-gradient(180deg, #f8fbff, #f1f8ff),
      linear-gradient(rgba(139, 92, 246, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(139, 92, 246, 0.035) 1px, transparent 1px) !important;
    background-size: 100% 100%, 22px 22px, 22px 22px !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-page-hero::before {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    left: 8% !important;
    right: 8% !important;
    top: 0 !important;
    height: 1px !important;
    background: linear-gradient(to right, transparent, rgba(139, 92, 246, 0.34), rgba(168, 85, 247, 0.24), transparent) !important;
    box-shadow: 0 0 34px rgba(139, 92, 246, 0.12) !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-hero-copy {
    max-width: 34rem !important;
    margin-inline: auto !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-page-hero .eyebrow {
    display: inline-flex !important;
    justify-content: center !important;
    margin: 0 auto 0.25rem !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    color: var(--cc-m-primary) !important;
    -webkit-text-fill-color: var(--cc-m-primary) !important;
  }

  html body.flux-tool-body.flux-tool-text-tools main#main.page-shell.tool-page.flux-tool-page[data-tool="character-counter"] section.tool-page-hero .tool-hero-copy h1,
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-page-hero h1,
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-hero-copy h1 {
    margin: 0.2rem auto 0 !important;
    max-width: 22ch !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    text-align: center !important;
    text-wrap: balance !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    color: var(--cc-m-text) !important;
    -webkit-text-fill-color: var(--cc-m-text) !important;
  }

  html body.flux-tool-body.flux-tool-text-tools main#main.page-shell.tool-page.flux-tool-page[data-tool="character-counter"] section.tool-page-hero .tool-hero-copy p,
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-page-hero p,
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-hero-copy p {
    display: block !important;
    max-width: 34rem !important;
    margin: 0.55rem auto 0 !important;
    padding: 0 0.15rem !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
    text-align: center !important;
    color: var(--cc-m-muted) !important;
    -webkit-text-fill-color: var(--cc-m-muted) !important;
    text-wrap: balance !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-page-hero .c100kb-h1-tail,
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-hero-copy .c100kb-h1-tail {
    font-weight: inherit !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-layout {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* No reveal fade on workspace — tool must show instantly */
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #tool-workspace.reveal-item {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #tool-workspace,
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #tool-workspace.text-editor-workspace {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-inline: auto !important;
    border: 1px solid #dbe6f3 !important;
    border-radius: 18px !important;
    background: #fff !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08) !important;
    padding: 0 !important;
    overflow: hidden !important;
    min-height: 0 !important;
  }

  /* Anti-FOUC: hide legacy HTML until tools.min.js upgrades workspace */
  html body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #tool-workspace:not(.text-editor-workspace) {
    min-height: clamp(260px, 42svh, 320px) !important;
  }

  html body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #tool-workspace:not(.text-editor-workspace) .text-tool,
  html body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #tool-workspace:not(.text-editor-workspace) #textInput,
  html body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #tool-workspace:not(.text-editor-workspace) #result {
    display: none !important;
  }

  html body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #tool-workspace:not(.text-editor-workspace) ~ .tool-workspace-note {
    display: none !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-editor-root {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: "toolbar" "limits" "editor" "stats" "footer" !important;
    gap: 0 !important;
    visibility: visible !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #tool-workspace.text-editor-workspace .text-tool,
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #tool-workspace.text-editor-workspace #textInput {
    display: block !important;
    visibility: visible !important;
  }

  /* Toolbar — 3 clear rows, full labels (original layout, readable type) */
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-toolbar {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-template-rows: 42px 42px 42px !important;
    gap: 8px !important;
    padding: 10px !important;
    min-height: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #fff !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-toolbar::before {
    grid-column: 1 / 5 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    height: 42px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #172033 !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-count {
    grid-column: 5 / 7 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding-inline: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: #fff !important;
    border: 1px solid #dbe6f3 !important;
    border-radius: 12px !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-toolbar [data-t1-action="paste"] {
    grid-column: 1 / 3 !important;
    grid-row: 2 !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-toolbar [data-t1-action="clear"] {
    grid-column: 3 / 5 !important;
    grid-row: 2 !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-toolbar [data-t1-action="copy"] {
    grid-column: 5 / 7 !important;
    grid-row: 2 !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-toolbar [data-t1-action="download"] {
    grid-column: 1 / 4 !important;
    grid-row: 3 !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-toolbar [data-t1-action="wrap"] {
    grid-column: 4 / 7 !important;
    grid-row: 3 !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-toolbar button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 42px !important;
    padding-inline: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    gap: 6px !important;
    border: 1px solid #dbe6f3 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #334155 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-toolbar button span {
    overflow: visible !important;
    text-overflow: clip !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-toolbar button svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
  }

  /* Character limit presets — compact 2-column row below toolbar */
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .character-limit-row,
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #characterLimitControls {
    grid-area: limits !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #fff !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .character-limit-field {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    gap: 4px !important;
    min-width: 0 !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border: 1px solid #dbe6f3 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .character-limit-field select,
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .character-limit-field input {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 32px !important;
    padding: 0 8px !important;
    border: 1px solid #dbe6f3 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
  }

  html body.flux-tool-body.flux-tool-text-tools main#main.page-shell.tool-page.flux-tool-page[data-tool="character-counter"] #tool-workspace #textInput,
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #textInput {
    min-height: 170px !important;
    height: 170px !important;
    max-height: 170px !important;
    padding: 16px !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    resize: none !important;
    box-sizing: border-box !important;
    caret-color: #2563eb !important;
  }

  /* Stats — 2×3 card grid (label top, value below) */
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-live-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 14px 14px 16px !important;
    border-top: 1px solid #e5e7eb !important;
    border-left: 0 !important;
    background: #fff !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-live-stats::before {
    grid-column: 1 / -1;
    margin: 0 0 4px;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.2;
    color: #0f172a !important;
  }

  html body.flux-tool-body.flux-tool-text-tools main#main.page-shell.tool-page.flux-tool-page[data-tool="character-counter"] .t1-stat-row,
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-stat-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 5px !important;
    min-height: 72px !important;
    padding: 12px 13px !important;
    border: 1px solid #e8eef5 !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%) !important;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.06) !important;
    text-align: left !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-stat-row svg {
    display: none !important;
  }

  html body.flux-tool-body.flux-tool-text-tools main#main.page-shell.tool-page.flux-tool-page[data-tool="character-counter"] .t1-stat-row span,
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-stat-row span {
    grid-column: unset !important;
    grid-row: unset !important;
    width: 100% !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html body.flux-tool-body.flux-tool-text-tools main#main.page-shell.tool-page.flux-tool-page[data-tool="character-counter"] .t1-stat-row strong,
  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-stat-row strong {
    grid-column: unset !important;
    grid-row: unset !important;
    width: 100% !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    text-align: left !important;
    white-space: nowrap !important;
    color: #8b5cf6 !important;
    -webkit-text-fill-color: #8b5cf6 !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .word-counter-footer-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px 14px !important;
    border-top: 1px solid #e5e7eb !important;
    background: #fff !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-detail-toggle {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .word-counter-footer-row .tool-actions {
    width: 100% !important;
    display: flex !important;
    gap: 10px !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .word-counter-footer-row .tool-actions .btn {
    flex: 1 1 0 !important;
    min-height: 42px !important;
    padding-inline: 12px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-detail-grid .result-item {
    padding: 12px !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-detail-grid .result-item span {
    font-size: 11px !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-detail-grid .result-item strong {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-detail-grid .t1-detail-wide {
    grid-column: 1 / -1 !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-workspace-note {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 12px auto 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(191, 219, 254, 0.72) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.88)) !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08) !important;
    overflow: visible !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-workspace-note span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 40px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    white-space: normal !important;
    border: 1px solid rgba(191, 219, 254, 0.82) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04) !important;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .tool-workspace-note svg {
    width: 16px !important;
    height: 16px !important;
    color: #2563eb !important;
    flex-shrink: 0;
  }

  body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #tool-workspace.text-editor-workspace > .text-tool.t1-editor-root {
    margin-top: 0 !important;
  }

  /* Keep editor light on mobile even if dark theme is active */
  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #tool-workspace,
  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-toolbar,
  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .character-limit-row,
  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #characterLimitControls,
  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-live-stats,
  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .word-counter-footer-row {
    background: #fff !important;
    border-color: #e5e7eb !important;
    color: #0f172a !important;
  }

  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] #textInput {
    background: #fff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
  }

  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-toolbar::before,
  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .t1-live-stats::before {
    color: #0f172a !important;
  }

  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .character-limit-field,
  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .character-limit-field select,
  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .character-limit-field input,
  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-toolbar button,
  html[data-theme="dark"] body.flux-tool-body.flux-tool-text-tools main[data-tool="character-counter"] .text-editor-count {
    background: #f8fafc !important;
    border-color: #dbe6f3 !important;
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
  }
}html[data-tl-mobile-v2="tool-v1"] /* T2 — shared calculator/utility workspace baseline */
@media (max-width: 760px){
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-body main[data-tool="character-counter"] #tool-workspace.tool-panel {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-inline: auto;
  }
}
