/* cutflux-spacious.css: phones only (owner, 2026-10-31): settings and templates smaller and airier, home tools a
 * little smaller. Loaded last on mobile, settings, profile and templates. Text stays at 12px or above (the app's floor)
 * and whole-row tap areas stay comfortable; the room comes from smaller type and pictures, and more space around them.
 */
@media (max-width: 760px) {
  /* ---- home tools ---- */
  .tool-grid { gap: 12px; padding: 0 6px; }
  .tool-sq { aspect-ratio: 1 / .92; gap: 6px; border-radius: 13px; }
  .tool-sq-ic { width: 27px; height: 27px; border-radius: 8px; }
  .tool-sq-ic svg { width: 15px; height: 15px; }
  .tool-sq-lbl { font-size: 12px; font-weight: 600; }

  /* ---- templates ---- */
  .tp-title { font-size: 22px !important; }
  .tl-search { height: 40px !important; font-size: 14px !important; }
  .tl-search input { font-size: 14px !important; }
  .tl-chips { gap: 6px !important; margin-top: 12px !important; }
  .tl-chip { height: 32px !important; padding: 0 12px !important; font-size: 13px !important; }
  .tl-feature { max-height: 148px; overflow: hidden; border-radius: 14px !important; }
  .tl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px 10px !important; margin-top: 18px !important; }
  .tl-card { gap: 6px; }
  .tl-thumb { border-radius: 11px !important; }
  .tl-name { font-size: 12px !important; font-weight: 600 !important; }
  .tl-pro { top: 5px !important; right: 5px !important; height: 17px !important; padding: 0 6px !important; font-size: 12px !important; transform: scale(.82); transform-origin: top right; }

  /* ---- settings + You ---- */
  body:has(.side-link) h1 { font-size: 22px !important; margin-bottom: 4px !important; }
  body:has(.side-link) .side-link { font-size: 13px !important; }
  body:has(.side-link) .side-link svg { width: 14px; height: 14px; }
  .section { padding: 16px 16px !important; margin-bottom: 18px !important; border-radius: 14px !important; }
  .section-head h2 { font-size: 15px !important; }
  .section-head p { font-size: 12.5px !important; }
  .row { padding-top: 12px !important; padding-bottom: 12px !important; gap: 8px !important; }
  .row-label { font-size: 13px !important; }
  .row-hint { font-size: 12px !important; }
  .tp-row { font-size: 13.5px !important; min-height: 48px; padding-top: 7px !important; padding-bottom: 7px !important; }
  .tp-row-sub { font-size: 12px !important; }
  .tp-row-ic { width: 28px !important; height: 28px !important; }
  .tp-row-ic svg { width: 15px; height: 15px; }
  .tp-sec { margin-top: 26px !important; }
  .pf-card { padding: 14px !important; }
  .pf-name { font-size: 15px !important; }
  .row-control .btn, .row-control .btn-ghost, .row-control .btn-danger, .row-control select { font-size: 13px !important; }
}

/* floating icons, CapCut style (owner, 2026-10-31): no tile, no icon box, just the icon and its name */
@media (max-width: 760px) {
  .tool-grid { gap: 20px 8px; padding: 2px 4px; }
  html .tool-sq, html[data-theme="light"] .tool-sq { aspect-ratio: auto; gap: 8px; padding: 2px 0; background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--cf-text, #fff) !important; }
  html[data-theme="light"] .tool-sq * { color: var(--cf-text, #0B0B0F) !important; }
  html .tool-sq .tool-sq-ic, html[data-theme="light"] .tool-sq .tool-sq-ic { width: 26px; height: 26px; background: transparent !important; border: 0 !important; box-shadow: none !important; color: var(--cf-text, #fff) !important; }
  .tool-sq-ic svg { width: 25px; height: 25px; stroke-width: 1.7; }
  .tool-sq:active { transform: scale(.92); }
  nav.tbar .tbar-ic, html[data-theme="light"] nav.tbar .tbar-item .tbar-ic, nav.tbar .tbar-item.is-on .tbar-ic, html[data-theme="light"] nav.tbar .tbar-item.is-on .tbar-ic,
  .cf-tbar .cf-tbar-ic, html[data-theme="light"] .cf-tbar .cf-tbar-ic, .cf-tbar .cf-tbar-item.is-on .cf-tbar-ic, html[data-theme="light"] .cf-tbar .cf-tbar-item.is-on .cf-tbar-ic { background: transparent !important; border: 0 !important; box-shadow: none !important; }
  nav.tbar .tbar-item, nav.tbar .tbar-item.is-on, .cf-tbar .cf-tbar-item, .cf-tbar .cf-tbar-item.is-on { background: transparent !important; box-shadow: none !important; }
  nav.tbar .tbar-item.is-on .tbar-ic, .cf-tbar .cf-tbar-item.is-on .cf-tbar-ic, html[data-theme="light"] nav.tbar .tbar-item.is-on .tbar-ic, html[data-theme="light"] .cf-tbar .cf-tbar-item.is-on .cf-tbar-ic { color: #fff !important; }
}
@media (max-width: 760px) {
  .cfk-tabpill { display: none !important; }
  nav.tbar .tbar-item.is-on .tbar-lbl, .cf-tbar .cf-tbar-item.is-on .cf-tbar-lbl { color: #fff !important; }
}
@media (max-width: 760px) {
  /* bottom bar: middle thickness, icons keep their size (owner, 2026-10-31) */
  nav.tbar .tbar-inner, .cf-tbar .cf-tbar-inner { padding-top: 0 !important; padding-bottom: 0 !important; }
  nav.tbar, .cf-tbar { padding-top: 6px !important; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 6px) !important; }
  nav.tbar .tbar-item, .cf-tbar .cf-tbar-item { gap: 2px !important; padding-top: 4px !important; padding-bottom: 4px !important; min-height: 52px; height: auto !important; }
  nav.tbar .tbar-ic, .cf-tbar .cf-tbar-ic { height: 24px !important; }
}
}
@media (max-width: 760px) { ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 70ms !important; } }
