/**
 * T6 — html-minifier mobile V2
 * Opt-in: html[data-tl-mobile-v2="tool-v1"]
 */

@media (max-width: 760px) {
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] {
    --htmlm-m-text: #172033;
    --htmlm-m-body: #334155;
    --htmlm-m-accent: #2563eb;
    overflow-x: clip;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .tool-page-hero.htmlm-minifier-legacy-mobile {
    display: block !important;
    margin: 0 0 8px !important;
    padding: 16px 16px 12px !important;
    text-align: center;
    background: linear-gradient(180deg, #f8fbff, #f1f8ff);
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .tool-page-hero .eyebrow {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .tool-page-hero h1 {
    margin: 0 auto !important;
    font-size: 28px !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
    color: #172033 !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .tool-page-hero h1 .htmlm-h1-line {
    display: block;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .tool-page-hero .c100kb-h1-tail {
    display: block;
    margin-top: 2px;
    font-size: 0.78em;
    font-weight: 700;
    color: #2563eb !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .tool-page-hero p,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .tool-page-hero .tool-hero-sub {
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    margin: 10px auto 0 !important;
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    color: #334155 !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] #tool-workspace.tool-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-generator-pro {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: calc(100vw - 24px) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    padding: 12px !important;
    padding-bottom: 88px !important;
    border-radius: 18px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    position: relative !important;
    overflow: visible !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .utility-studio {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-result-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-result-nav button {
    min-height: 40px;
    padding: 6px 4px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    opacity: 1 !important;
    appearance: none;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-result-nav button.is-active {
    background: #fff !important;
    color: #1d4ed8 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-tool:not(.htmlm-panel-input) .htmlm-m-panel-input,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-tool:not(.htmlm-panel-output) .htmlm-m-panel-output,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-tool:not(.htmlm-panel-stats) .htmlm-m-panel-stats {
    display: none !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-panel-input,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-panel-output,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-panel-stats {
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-options-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-check-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 44px;
    padding: 8px 10px;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    opacity: 1 !important;
    cursor: pointer;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    flex: 0 0 18px;
    accent-color: #2563eb;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-check-row span {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
    opacity: 1 !important;
    color: #334155 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-panel-input textarea,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-panel-output textarea,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .text-tool textarea {
    min-height: 180px;
    padding: 12px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: #fff;
    color: #172033 !important;
    opacity: 1 !important;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] #htmlOutput {
    background: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #1e293b !important;
    -webkit-text-fill-color: #e2e8f0 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-output-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-output-head span {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    opacity: 1 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-output-head strong {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #172033 !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-actions-desktop {
    display: none !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: #f8fafc;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-stat-card span {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-stat-card strong {
    font-size: 1.125rem !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-check-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-check-list li.is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-check-list li.is-warn {
    border-color: #fde68a;
    background: #fffbeb;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-check-list li.is-info {
    border-color: #dbeafe;
    background: #f8fafc;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-check-list li strong {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #172033 !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-check-list li span {
    font-size: 0.8125rem !important;
    color: #334155 !important;
    opacity: 1 !important;
    line-height: 1.4;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-sticky-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 6px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-sticky-primary,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-sticky-secondary,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-sticky-tertiary {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    appearance: none;
    border: 0;
    white-space: nowrap;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-sticky-primary {
    background: linear-gradient(135deg, #0b63ce, #2563eb);
    color: #fff !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-sticky-secondary {
    background: #fff;
    color: #334155 !important;
    border: 1px solid #dbeafe;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-sticky-tertiary {
    background: #f8fafc;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
    min-width: 56px;
  }

  html[data-tl-mobile-v2="tool-v1"] html[data-theme="dark"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-generator-pro,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools[data-theme="dark"] main[data-tool="html-minifier"] .htmlm-generator-pro {
    background: #fff !important;
    border-color: #e2e8f0 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] html[data-theme="dark"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-panel-input textarea,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools[data-theme="dark"] main[data-tool="html-minifier"] .htmlm-m-panel-input textarea {
    background: #fff !important;
    color: #172033 !important;
    border-color: #dbeafe !important;
  }
}

@media (min-width: 761px) {
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-result-nav,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-m-sticky-bar {
    display: none !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-tool .htmlm-m-panel-input,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-tool .htmlm-m-panel-output,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-tool .htmlm-m-panel-stats {
    display: block !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-seo-tools main[data-tool="html-minifier"] .htmlm-actions-desktop {
    display: flex !important;
  }
}
