/* ux-growth redesign styles (see UIUX_PATTERNS.md). Scope rules to screen classes. */

/* Shared helpers for the growth screens (rules, reports, workflows, properties, websites, lead sources).
   The .growth- prefix keeps them from touching other screens. */
.growth-intro{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0 0 12px}
.growth-intro>p{margin:0;color:var(--muted)}
details.growth-learn{min-width:0}
details.growth-learn>summary{display:inline-flex;align-items:center;min-height:44px;cursor:pointer;font-weight:600;color:var(--brand);list-style:none}
details.growth-learn>summary::-webkit-details-marker{display:none}
details.growth-learn>summary::after{content:'';width:7px;height:7px;margin-left:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .2s}
details.growth-learn[open]>summary::after{transform:rotate(225deg) translateY(-2px)}
details.growth-learn[open]{flex-basis:100%;padding:4px 16px 8px;border:1px solid var(--line);border-radius:var(--appearance-card-radius,12px);background:var(--panel)}
details.growth-learn p,details.growth-learn li{max-width:72ch;line-height:1.5}
details.growth-learn ol,details.growth-learn ul{padding-left:20px;margin:6px 0}
.growth-section{margin-top:14px}
.growth-facts{display:grid;gap:0;border:1px solid var(--line);border-radius:var(--appearance-card-radius,12px);background:var(--panel);overflow:hidden}
.growth-fact{display:grid;grid-template-columns:minmax(96px,30%) 1fr;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line);align-items:baseline}
.growth-fact:last-child{border-bottom:0}
.growth-fact>span:last-child{overflow-wrap:anywhere}
.growth-badge{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:999px;background:var(--panel2);color:var(--muted);font-weight:700;font-size:13px}
.growth-thumb{flex:none;width:48px;height:48px;border-radius:calc(var(--appearance-card-radius,12px) - 4px);background:var(--panel2);color:var(--muted);display:grid;place-items:center;overflow:hidden}
.growth-thumb img{width:100%;height:100%;object-fit:cover}
.list-row .growth-trail{flex:none;color:var(--muted);font-size:13px;white-space:nowrap}
@media (prefers-reduced-motion:reduce){details.growth-learn>summary::after{transition:none}}

/* ---------- Auto-replies ---------- */
.rules-view{max-width:980px}
.rules-view .rules-intro{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 12px;margin:0 0 8px}
.rules-view .rules-intro>p{margin:0}
.rules-view .rules-row.off .rules-order{opacity:.6}
.rules-view .rules-order{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:999px;background:var(--panel2);color:var(--muted);font-weight:700;font-size:13px}
.rules-view .rules-row.off .list-row-title .chip{opacity:.75}
.rules-view .rules-switch{flex:none;min-height:44px!important;min-width:76px;padding:0 4px 0 8px;justify-content:flex-end;cursor:pointer;color:var(--muted);font-size:13px;font-weight:600}
.rules-view .rules-test{margin-top:16px}
.rules-view .rules-sim{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) auto;gap:10px;align-items:end}
.rules-view .rules-sim .f{margin:0;min-width:0}
.rules-view .rules-sim-opts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.rules-view .rules-sim .btn{min-height:44px}
.rules-view .rules-sim-out:empty{display:none}
.rules-view .rules-sim-out{margin-top:10px}
.rules-sheet .rules-facts{display:grid;border:1px solid var(--line);border-radius:var(--appearance-card-radius,12px);overflow:hidden}
.rules-sheet .rules-fact{display:grid;grid-template-columns:96px 1fr;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line);align-items:baseline}
.rules-sheet .rules-fact:last-child{border-bottom:0}
.rules-sheet .rules-fact>span:last-child{overflow-wrap:anywhere}
@media (max-width:760px){
  .rules-view .rules-sim{grid-template-columns:1fr}
  .rules-view .rules-row .list-row-main{gap:10px;padding-left:12px}
  .rules-view .rules-switch{min-width:64px}
}

/* Reports: key numbers visible, each detailed report collapsed. */
.reports-view .report-section{margin:0 0 10px}
.reports-view .report-section>summary .small{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.reports-view .report-section .report-chevron{grid-row:1/3;grid-column:2;display:flex;color:var(--muted);transition:transform .2s}
.reports-view .report-section[open] .report-chevron{transform:rotate(180deg)}
.reports-view .report-section[open]>summary .small{-webkit-line-clamp:unset}
.reports-view .report-body>*:first-child{margin-top:0}
@media (prefers-reduced-motion:reduce){.reports-view .report-section .report-chevron{transition:none}}

/* Property Manager list toolbar and compact phone header action. */
.pm-content .search-toolbar{margin-top:2px}
.pm-summary{margin:0 0 12px}
.pm-content .filter-body select{min-height:44px}
@media (max-width:760px){.label-tail{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
.topbar>.pm-actions{display:flex!important;grid-template-columns:none!important}.topbar>.pm-actions .btn{min-height:40px}
