/* The signed-in app: sidebar, pages, Home, and the search bar under the page. Loaded last. */

/* ------------------------------------------------------------------ layout */
body.an.is-app { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
body.is-app .an-header { display: none; }
body.is-app .an-side { grid-column: 1; grid-row: 1 / span 2; }
body.is-app .an-stage { grid-column: 2; grid-row: 1; }
body.is-app .an-dock { grid-column: 2; grid-row: 2; }

/* ------------------------------------------------------------------ sidebar */
.an-side { position: relative; z-index: 35; display: flex; flex-direction: column; gap: 4px; min-height: 0;
  padding: 14px 12px 12px; background: var(--surface); border-right: 1px solid var(--border); overflow-y: auto; }
.an-side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 0; }
.an-side-close { display: none; }
.an-side-tag { padding: 2px 8px 10px; font-size: 12px; color: var(--faint); }
.an-switcher { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; margin-bottom: 10px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); text-align: left; cursor: pointer;
  box-shadow: var(--shadow-xs); max-width: none; height: auto; }
.an-switcher:hover, .an-switcher[aria-expanded="true"] { background: var(--sunken); border-color: var(--border-strong); }
.an-switcher-mark { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13.5px; }
.an-switcher-mark--sm { width: 24px; height: 24px; border-radius: 6px; font-size: 12px; }
.an-switcher-names { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.an-switcher-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-switcher-domain { display: block !important; font-size: 12px; color: var(--muted); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.an-chevron { color: var(--faint); }

.an-nav { display: flex; flex-direction: column; gap: 1px; }
.an-nav-group { padding: 14px 10px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--faint); }
.an-nav-item { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px;
  border-radius: 8px; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background 0.12s, color 0.12s; }
.an-nav-item .ui-i { color: var(--muted); }
.an-nav-item:hover { background: var(--sunken); color: var(--text); }
.an-nav-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); }
.an-nav-item[aria-current="page"] .ui-i { color: var(--accent); }
.an-nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-nav-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid;
  place-items: center; background: var(--sunken); color: var(--text-2); font-size: 11.5px; font-weight: 700; }
.an-nav-badge.is-urgent { background: var(--danger); color: #fff; }
.an-nav-badge[hidden] { display: none; }

.an-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.an-credits { display: block; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md);
  text-decoration: none; background: var(--bg); }
.an-credits:hover { border-color: var(--border-strong); }
.an-credits-top { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.an-credits-value { margin-left: auto; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.an-credits-bar { height: 4px; margin-top: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.an-credits-bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.an-credits.is-low .an-credits-bar span { background: var(--warn); }
.an-me { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: var(--r-md);
  background: none; text-align: left; cursor: pointer; }
.an-me:hover, .an-me[aria-expanded="true"] { background: var(--sunken); }
.an-avatar { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--accent-soft); color: var(--accent-ink); font-weight: 650;
  font-size: 13px; text-transform: uppercase; }
.an-me-names { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.an-me-email { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-me-role { font-size: 12px; color: var(--muted); }

/* menus (account switcher, you) */
.an-menu { position: fixed !important; z-index: 60; min-width: 260px; max-width: calc(100vw - 24px); padding: 6px;
  background: var(--raised); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); }
.an-menu [role^="menuitem"] { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; color: var(--text); }
.an-menu [role^="menuitem"]:hover, .an-menu [role^="menuitem"]:focus-visible { background: var(--sunken); outline: none; }
.an-menu [role^="menuitem"] .ui-i { color: var(--muted); }
.an-menu-label { padding: 8px 10px 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.an-menu-sep { height: 1px; margin: 6px 4px; background: var(--border); }
.an-menu-note { padding: 6px 10px 8px; font-size: 12.5px; color: var(--muted); }
.an-check { color: var(--accent); }

/* ------------------------------------------------------------------ pages */
body.is-app .an-overview { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.an-page { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; background: var(--bg);
  animation: an-page-in 0.18s ease; }
@keyframes an-page-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.an-page > .an-sheet-head, .an-page-head { display: flex; align-items: flex-end; gap: 16px; padding: 26px 32px 18px;
  background: transparent; border-bottom: 1px solid var(--border); }
.an-page .an-sheet-head h2 { margin: 0 0 4px; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.an-page .an-sheet-head p { margin: 0; max-width: 680px; color: var(--muted); font-size: 14px; }
.an-page .an-sheet-close, .an-page .an-sheet-back[hidden] { display: none; }
.an-page .an-sheet-back { align-self: center; }
.an-page-actions { margin-left: auto; display: flex; gap: 8px; }
.an-page > .an-sheet-body, .an-page .an-sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 32px 40px;
  display: flex; flex-direction: column; gap: 16px; }
.an-page .an-sheet-body > * { max-width: 1120px; width: 100%; }
.an-page.ib { overflow: hidden; }
.an-page.ib > .ib-body { flex: 1; min-height: 0; overflow: hidden; }
.an-page.ib .ib-panes { border-top: 0; }
.an-page.ib > .an-sheet-head { padding-bottom: 14px; }
.an-page.ib .ib-alerts-btn { margin-left: auto; }
.an-page.rs .an-sheet-body, .an-page.yt-sheet .an-sheet-body { padding-bottom: 48px; }
body.is-focus .an-overview, body.is-typing .an-overview, body.is-open .an-overview { filter: blur(4px); opacity: 0.5; }

/* the website page */
.an-skel-block { height: 220px; }
.an-site-card { padding: 18px 20px; }
.an-site-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.an-live { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.an-live.is-live { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.an-site-text { flex: 1; min-width: 200px; }
.an-site-title { font-weight: 600; font-size: 15.5px; }
.an-site-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.an-site-meta { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-2); font-size: 13px; color: var(--muted); }
.an-tag-card { padding: 0; overflow: hidden; }
.an-tag-card summary { display: flex; align-items: center; gap: 8px; padding: 14px 20px; font-weight: 600; cursor: pointer;
  list-style: none; }
.an-tag-card summary::-webkit-details-marker { display: none; }
.an-tag-card[open] summary { border-bottom: 1px solid var(--border-2); }
.an-tag-card .an-tag-body { padding: 16px 20px 18px; }
.an-tag-lead { margin: 0 0 12px; color: var(--text-2); }
.an-tag-code { background: var(--sunken) !important; border-color: var(--border) !important; }
.an-tag-code pre { color: var(--text) !important; }
.an-tag-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

/* cards used on the website page */
.an-card { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs); }
.an-h2 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.an-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.an-buttons { margin: 0; }
.ui-stat.is-link { text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.ui-stat.is-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------------ Home */
.an-page.hm .an-sheet-body { padding-top: 28px; }
.hm-head { display: flex; flex-direction: column; gap: 6px; }
.hm-lead { margin: 2px 0 0; color: var(--muted); max-width: 720px; }
.hm-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.hm-main, .hm-aside { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hm-count { font-size: 12.5px; }
.hm-summary { padding: 14px 18px; background: linear-gradient(180deg, var(--accent-soft), transparent 140%); }
.hm-summary-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
.hm-summary p { margin: 6px 0 0; color: var(--text-2); }
.hm-issue { position: relative; padding: 16px 18px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.hm-issue::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--border-strong); }
.hm-issue.is-high::before { background: var(--danger); }
.hm-issue.is-medium::before { background: var(--warn); }
.hm-issue-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hm-src { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.hm-issue-title { margin: 8px 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.hm-issue-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.hm-quotes { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.hm-quotes blockquote { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--sunken); color: var(--text-2);
  font-size: 13.5px; overflow-wrap: anywhere; }
.hm-issue-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hm-calm { padding: 40px 24px; }
.hm-calm .ui-i { color: var(--ok); }
.hm-calm p { margin: 0; max-width: 460px; }
.hm-side-card { padding: 16px 16px 12px; }
.hm-side-card .ui-section-head { margin-bottom: 8px; }
.hm-none { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13.5px; }
.hm-none .ui-i { color: var(--ok); }
.hm-needs, .hm-setup { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-need, .hm-step { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 8px;
  text-decoration: none; color: var(--text); font-size: 13.5px; }
.hm-need:hover, .hm-step:hover { background: var(--sunken); }
.hm-need > .ui-i:first-child { color: var(--muted); }
.hm-need.is-urgent > .ui-i:first-child { color: var(--danger); }
.hm-need.is-reconnect > .ui-i:first-child, .hm-need.is-credits > .ui-i:first-child { color: var(--warn); }
.hm-need-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hm-need-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.hm-need-sub { font-size: 12.5px; color: var(--muted); }
.hm-need-go { margin-left: auto; color: var(--faint); }
.hm-progress { height: 4px; margin: 0 0 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.hm-progress span { display: block; height: 100%; background: var(--accent); }
.hm-step .ui-i:first-child { color: var(--faint); }
.hm-step.is-done { color: var(--muted); }
.hm-step.is-done .ui-i:first-child { color: var(--ok); }
.hm-ask p { margin: 4px 0 10px; font-size: 13px; }
.hm-ask-q { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; margin-bottom: 6px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface); text-align: left; cursor: pointer;
  font-size: 13.5px; color: var(--text-2); }
.hm-ask-q:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.hm-ask-q .ui-i { color: var(--muted); }
.hm-skel { display: flex; flex-direction: column; gap: 16px; }
.hm-skel-stats { height: 96px; } .hm-skel-card { height: 160px; }

/* ------------------------------------------------------------------ the search bar under the page */
body.is-app .an-dock { padding: 8px 32px 18px; background: linear-gradient(180deg, transparent, var(--bg) 30%); }
body.is-app .an-dock .sa-form { max-width: 860px; margin: 0 auto; }
.an .sa-form { position: relative; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-md); }
.an .sa-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-md); }
.an .sa-input { color: var(--text); }
.an .sa-send { background: var(--accent) !important; color: var(--on-accent) !important; }
.an .sa-send:disabled { background: var(--border) !important; color: var(--faint) !important; }
.an-kbd { position: absolute; right: 98px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.sa-form:focus-within .an-kbd, .sa-form.has-text .an-kbd { display: none; }
.an-try { display: flex; gap: 6px; max-width: 860px; margin: 0 auto 8px; overflow-x: auto; scrollbar-width: none; }
.an-try::-webkit-scrollbar { display: none; }
.an-try[hidden] { display: none; }
.an-try-chip { flex: none; height: 28px; padding: 0 11px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text-2); font-size: 12.5px; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-xs); }
.an-try-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
body.is-open .an-try, body.is-typing .an-try { display: none; }
.an .sa-panel { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-lg); }
.an .sa-scroll { color: var(--text); }

/* ------------------------------------------------------------------ tablets and phones */
@media (max-width: 1180px) {
  .hm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  body.an.is-app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  body.is-app .an-header { display: flex; grid-column: 1; grid-row: 1; height: 54px; padding: 0 8px 0 6px; gap: 8px; }
  body.is-app .an-stage { grid-column: 1; grid-row: 2; }
  body.is-app .an-dock { grid-column: 1; grid-row: 3; padding: 6px 12px 12px; }
  .an-topbar-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.is-app .an-side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-102%);
    transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1); box-shadow: var(--shadow-lg); z-index: 70; }
  body.is-drawer .an-side { transform: none; }
  .an-side-close { display: inline-flex; }
  .an-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(10, 10, 14, 0.4); opacity: 0; pointer-events: none;
    transition: opacity 0.2s; }
  body.is-drawer .an-scrim { opacity: 1; pointer-events: auto; }
  .an-page > .an-sheet-head, .an-page-head { padding: 18px 16px 14px; }
  .an-page .an-sheet-head h2 { font-size: 19px; }
  .an-page > .an-sheet-body, .an-page .an-sheet-body { padding: 16px 16px 32px; }
  .an-kbd { display: none; }
  .an-cols { grid-template-columns: 1fr; }
}
@media (min-width: 901px) { .an-scrim { display: none; } }
@media (max-width: 560px) {
  .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-stats .ui-stat:last-child { grid-column: span 2; }
  .ui-stat-value { font-size: 22px; }
  .hm-issue-actions .ui-btn--ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) { .an-page, .an-side { animation: none; transition: none; } }

/* every block on a page keeps its height; the page scrolls instead */
.an-page .an-sheet-body > * { flex-shrink: 0; }

/* Team as a page */
.an-page .an-team-add { display: flex; gap: 8px; max-width: 560px; }
.an-page .an-team-add input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface); color: var(--text); font: 14px var(--font-body); box-shadow: var(--shadow-xs); }
.an-page .an-team-add input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.an-page .an-team { max-width: 720px; margin: 0; padding: 4px 16px; list-style: none; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.an-page .an-team li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.an-page .an-team li + li { border-top: 1px solid var(--border-2); }
.an-page .an-team-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.an-page .an-team-email { font-weight: 500; }
.an-page .an-team-role { font-size: 12.5px; color: var(--muted); }
.an-page .an-team-note, .an-page .an-sheet-body > p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 720px; }

/* cards the search bar shows (action_tools.py) */
.an-act .an-conn-icon { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.an-act .an-tag-body { margin-top: 12px; }
.an-act-link { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 10px; padding: 6px 12px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 500;
  text-decoration: none; }
.an-act-link:hover { background: var(--accent); color: var(--on-accent); }
.an-conn-icon { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }

/* Home: every button being tracked */
.hm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-buttons { padding: 16px 18px 10px; }
.hm-buttons-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hm-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--sunken); }
.hm-seg-btn { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--muted);
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.hm-seg-btn[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }
.hm-buttons-sum { margin: 10px 0 8px; font-size: 13px; color: var(--muted); }
.hm-btable { display: flex; flex-direction: column; }
.hm-brow { display: grid; grid-template-columns: minmax(0, 1fr) 96px 64px 64px 120px; align-items: center; gap: 12px;
  width: 100%; padding: 9px 6px; border: 0; border-top: 1px solid var(--border-2); background: none; text-align: left;
  cursor: pointer; font-size: 13.5px; color: var(--text); border-radius: 0; }
.hm-brow:hover { background: var(--bg); }
.hm-brow--head { cursor: default; font-size: 12px; font-weight: 600; color: var(--muted); border-top: 0; padding-top: 4px; }
.hm-brow--head:hover { background: none; }
.hm-brow--head span:nth-child(n+3) { text-align: right; }
.hm-bname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.hm-btype { justify-self: start; padding: 1px 8px; border-radius: 999px; background: var(--sunken); color: var(--text-2);
  font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.hm-btype.is-buy { background: var(--ok-soft); color: var(--ok-ink); }
.hm-btype.is-question { background: var(--accent-soft); color: var(--accent-ink); }
.hm-btype.is-video { background: var(--pink-soft); color: var(--pink-ink); }
.hm-bnum { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.hm-bnum.has-clicks { color: var(--text); font-weight: 600; }
.hm-brate { display: flex; align-items: center; gap: 8px; }
.hm-track { flex: 1; max-width: 70px; height: 6px; border-radius: 99px; background: var(--border); overflow: hidden; }
.hm-track i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.hm-brate b { font-weight: 500; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }
@media (max-width: 1180px) { .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hm-brow { grid-template-columns: minmax(0, 1fr) 52px 52px; }
  .hm-brow > :nth-child(2), .hm-brow > :nth-child(5) { display: none; }
  .hm-stats .ui-stat:last-child { grid-column: auto; }
}

/* team roles */
.an-team-role-select { height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font: 14px var(--font-body); box-shadow: var(--shadow-xs); }
.an-page .an-team li .an-team-role-select { height: 32px; font-size: 13px; }
.an-page .an-team-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.an-page .an-team-confirm span { flex: 1 1 100%; font-size: 13.5px; }

/* app logos (applogos.js) */
.app-logo { display: grid; place-items: center; flex: none; background: #fff !important; border: 1px solid var(--border) !important; }
.app-logo svg { width: 60%; height: 60%; }
.an-conn-icon.app-logo { width: 38px; height: 38px; border-radius: 10px; }
.ib-ch-logo { width: 18px; height: 18px; border-radius: 5px; }
.ib-ch-logo svg { width: 80%; height: 80%; }

/* Home: operations first */
.hm-hero { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%); }
.hm-hero .ui-h1 { margin: 2px 0 0; }
.hm-ask-box { display: flex; gap: 8px; margin-top: 10px; max-width: 760px; }
.hm-ask-box .ui-input { flex: 1; min-width: 0; height: 44px; font-size: 15px; }
.hm-ask-box .ui-btn { height: 44px; }
.hm-starts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.hm-h { margin: 22px 0 10px; }
.hm-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.hm-ask-group { margin: 10px 0 2px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hm-tour .ui-btn { margin-top: 4px; }
@media (max-width: 760px) {
  .hm-hero { padding: 16px; }
  .hm-ask-box { flex-direction: column; }
}
