/* Home, smaller and more spacious (owner 2026-10-26, by phone): "make
   everything feel smaller and more spacious; tools as small squares with an
   icon and one word, 3 across. The main tool shrinks only a little."
   Loaded last on mobile.html only. Type floor stays 12px (polish layer). */

/* more air between sections, wider side gutter */
body.lyrc-app .home { padding: 18px 20px 12px; gap: 22px; }

/* header: smaller mark */
body.lyrc-app .hdr { padding-top: calc(var(--safe-top, 0px) + 10px); padding-bottom: 10px; padding-left: 20px; padding-right: 20px; }
body.lyrc-app .hdr-brand { font-size: 17px; gap: 8px; }
body.lyrc-app .hdr-brand .hdr-logo { width: 24px; height: 24px; border-radius: 6px; }

/* greeting: smaller */
body.lyrc-app .greet-row { padding: 20px 20px 4px; gap: 12px; }
body.lyrc-app .greet-av { width: 40px; height: 40px; font-size: 16px; }
body.lyrc-app .greet-text h1 { font-size: 19px; }
body.lyrc-app .greet-text p { font-size: 12px; margin-top: 2px; }
body.lyrc-app .mob-welcome { margin: 4px 20px 6px; }

/* main tool: only a little smaller */
body.lyrc-app .hero-thumb { aspect-ratio: 16 / 9; }
body.lyrc-app .hero-body { padding: 14px 16px 16px; gap: 6px; }
body.lyrc-app .hero-body h2 { font-size: 20px; }
body.lyrc-app .hero-body p { font-size: 13px; }
body.lyrc-app .hero-cta { margin-top: 6px; padding: 11px 16px; font-size: 13.5px; }

/* tools: small squares, icon + one word, 4 across (every tool) */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tool-sq {
  aspect-ratio: 1 / 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: var(--cf-surface, #15161C); border: 1px solid var(--cf-border, #2A2C36);
  border-radius: 14px; color: var(--cf-text, #fff); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--cf-t-fast, .12s ease), border-color var(--cf-t-base, .2s ease);
}
.tool-sq:active { transform: scale(.95); border-color: var(--cf-accent, #3B82F6); }
.tool-sq-ic {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--cf-accent-soft, rgba(59,130,246,.14)); color: var(--cf-accent, #3B82F6);
}
.tool-sq-ic svg { width: 18px; height: 18px; }
.tool-sq-lbl { font-size: 12px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
html[data-theme="light"] .tool-sq { background: #fff; border-color: var(--cf-border-subtle, #E8EAF0); box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.05); }

/* templates strip: smaller */
body.lyrc-app .tpl-strip { padding: 12px 12px 12px; gap: 8px; }
body.lyrc-app .tpl-strip-sub { font-size: 12px; }
body.lyrc-app .tpl-strip-row { gap: 8px; }
