/* All App rows share their tallest card, including source recovery and refusal states. */ .home-tpl .home-tpl-grid:has(> [data-template-module="app"]) { grid-auto-rows: 1fr; grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(var(--lp-home-tile-inset) * 18)), 1fr)); } .home-tpl .home-tpl-card[data-template-module="app"] { --lp-template-card-action-min-height: 36px; --lp-template-card-cue-padding-block: 2px; --lp-template-card-focus-offset: 2px; --lp-template-card-recovery-layer: 1; position: relative; isolation: isolate; gap: var(--lp-panel-inset); padding: var(--lp-home-tile-inset); } .home-tpl [data-template-module="app"] .home-tpl-card-content { display: flex; flex-direction: column; gap: var(--lp-panel-inset); min-width: 0; } .home-tpl [data-template-module="app"] .home-tpl-card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; block-size: 2lh; overflow: hidden; } .home-tpl [data-template-module="app"] .home-tpl-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; block-size: 3lh; overflow: hidden; white-space: normal; } .home-tpl [data-template-module="app"] .home-tpl-category-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; block-size: 2lh; overflow: hidden; overflow-wrap: anywhere; } .home-tpl .home-tpl-card-actions { order: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--lp-panel-inset); min-width: 0; margin-top: auto; } .home-tpl .home-tpl-pick.home-tpl-app-action { flex: 0 0 auto; width: auto; min-height: var(--lp-template-card-action-min-height); justify-content: center; padding: 0; } .home-tpl .home-tpl-pick.home-tpl-app-action:has(.home-tpl-cue[data-added="false"]) { padding: var(--lp-panel-inset) var(--lp-home-tile-inset); border-radius: var(--lp-r-md); background: var(--lp-primary); color: var(--lp-surface); } .home-tpl .home-tpl-pick.home-tpl-app-action:has(.home-tpl-cue[data-added="false"]):not(:disabled):active { background: var(--lp-primary-hover); } @media (hover: hover) and (pointer: fine) { .home-tpl .home-tpl-pick.home-tpl-app-action:has(.home-tpl-cue[data-added="false"]):not(:disabled):hover { background: var(--lp-primary-hover); } } .home-tpl .home-tpl-pick.home-tpl-app-action:focus-visible { outline: calc(var(--lp-hairline-width) * 2) solid var(--lp-primary); outline-offset: var(--lp-hairline-width); } /* The footer button remains the single card action, with no nested controls. */ .home-tpl .home-tpl-app-action::after { content: ""; position: absolute; inset: 0; border-radius: var(--lp-r-home-tile); } .home-tpl .home-tpl-app-action .home-tpl-cue { padding: var(--lp-template-card-cue-padding-block) 0; } .home-tpl .home-tpl-app-action .home-tpl-cue[data-added="false"] { padding: 0; color: inherit; } .home-tpl .home-tpl-app-action .home-tpl-cue[data-added="true"] { padding-inline: var(--lp-panel-inset); } .home-tpl .home-tpl-connectors { display: flex; align-items: center; flex: 0 0 auto; gap: var(--lp-panel-inset); } .home-tpl .home-tpl-connector, .home-tpl .home-tpl-connector > span { display: flex; align-items: center; justify-content: center; } .home-tpl .home-tpl-connector-more { color: var(--lp-muted); font-size: var(--lp-fs-xs); white-space: nowrap; } .home-tpl [data-template-module="app"] .home-tpl-card-footer { position: relative; z-index: var(--lp-template-card-recovery-layer); order: 1; gap: var(--lp-panel-inset); margin-top: 0; padding: 0; } /* Dim unavailable content without fading recovery controls or their messages. */ .home-tpl .home-tpl-card[data-template-module="app"]:has(.home-tpl-app-action:disabled:not([aria-busy="true"])) > .home-tpl-card-content, .home-tpl .home-tpl-card[data-template-module="app"]:has(.home-tpl-app-action:disabled:not([aria-busy="true"])) .home-tpl-connectors { opacity: var(--lp-home-disabled-opacity); } .home-tpl .home-tpl-pick.home-tpl-app-action:disabled:not([aria-busy="true"]) { opacity: var(--lp-home-disabled-opacity); } .home-tpl .home-tpl-card:has(.home-tpl-app-action:focus-visible) { outline: calc(var(--lp-hairline-width) * 2) solid var(--lp-blue-deep); outline-offset: var(--lp-template-card-focus-offset); }