/* ============================================================
   ALTSeek search page — Omnia build.

   Loaded AFTER altseek-program.css, which carries the palette tokens, .as-root and the
   top bar. Nothing here restates a token: two files with their own copy of --as-gold is
   how the two v2 pages would end up almost the same colour.

   Every value below is lifted from the demo's inline styles rather than re-derived from
   the design tokens — the demo carries no stylesheet, its look IS those attributes, and a
   token-derived approximation is what made the first pass of the program page diverge.

   Source: package/app/altseek-demo-standalone.html, the isPortfolio template region.

   ONE DELIBERATE DIVERGENCE. The demo's filter pane is a two-column spine: a criteria
   list on the left, the chosen criterion's options on the right. That earns its keep at
   17 groups and 139 options across a wide screen. This pane is an accordion of only the
   groups the library actually carries, which reads the same at 5 groups and does not
   strand the options two clicks away on a laptop. Colours, type scale and the checkbox
   are the demo's.
   ============================================================ */

/* ---- page shell ------------------------------------------------------ */
.as-search { font-size: 14px; }

/* Every element the script hides carries the `hidden` attribute, and the browser's own
   display:none for it is beaten by ANY display rule in this file. That is how the group
   badges sat there reading "0" and a stale eligibility label stayed on a card after the
   investor profile was reset. Stated once here rather than per-selector, because the next
   element to get a display rule would reintroduce it. */
.as-search [hidden] { display: none !important; }

.as-shell {
  display: flex; align-items: flex-start; gap: 20px;
  max-width: 1600px; margin: 0 auto; padding: 26px 24px 80px;
}
.as-shell.is-collapsed .as-facets { display: none; }

/* ---- top bar additions ----------------------------------------------- */
.as-searchmark { display: flex; align-items: center; }
.as-searchmark img { display: block; height: 26px; width: auto; }
.as-searchmark-text {
  font-family: var(--font-serif); font-size: 21px; font-weight: 600;
  letter-spacing: .04em; color: var(--as-gold);
}
.as-searchmark-text b { font-weight: 700; color: var(--as-cream); }

.as-searchbox {
  display: flex; align-items: center; gap: 9px; width: 240px; max-width: 34vw;
  background: #141414; border: 1px solid rgba(220,201,166,.12);
  border-radius: 8px; padding: 8px 13px;
}
.as-searchbox input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--as-cream); font-family: inherit; font-size: 13px;
}
.as-searchbox input::-webkit-search-cancel-button { filter: invert(.6); }

/* ---- product logos + account circle (Buttonwood, 10/20/2026) ---------- */
/* v2/include_productNav.cfm and include_accountMenu.cfm. The logos are the client's own
   720x164 marks (white/gold on transparent) from /userfiles/2525/images/. */
.as-prodnav {
  display: flex; align-items: center; gap: 8px; margin: 0 auto 0 12px; min-width: 0;
}
.as-prodnav-item {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px;
  border: 1px solid var(--as-line); background: var(--as-card);
  opacity: .72; transition: opacity 80ms ease, border-color 80ms ease;
}
/* The product word under "ALTSeek" is what tells the five marks apart; below ~26px it
   stops being readable. */
.as-prodnav-item img { display: block; height: 28px; width: auto; }
a.as-prodnav-item:hover { opacity: 1; border-color: rgba(226,194,123,.4); }
a.as-prodnav-item:focus-visible, .as-acct-btn:focus-visible { outline: 2px solid var(--as-gold-soft); outline-offset: 2px; }
.as-prodnav-item.is-current { opacity: 1; border-color: rgba(226,194,123,.55); background: rgba(226,194,123,.08); }
.as-prodnav-item.is-soon { opacity: .38; cursor: default; }
.as-prodnav.is-compact { gap: 6px; }
.as-prodnav.is-compact .as-prodnav-item { padding: 3px 8px; }
.as-prodnav.is-compact .as-prodnav-item img { height: 24px; }

.as-acct { position: relative; flex: none; }
.as-acct-btn {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; list-style: none;
  border: 1px solid rgba(220,201,166,.16); background: #141414; color: var(--as-steel);
  transition: border-color 80ms ease, color 80ms ease;
}
.as-acct-btn::-webkit-details-marker { display: none; }
.as-acct-btn:hover, .as-acct[open] .as-acct-btn { border-color: rgba(226,194,123,.5); color: var(--as-cream); }
.as-acct-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 31; min-width: 180px;
  background: #1A1A1A; border: 1px solid rgba(220,201,166,.16); border-radius: 12px;
  padding: 6px; box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 22px 54px rgba(0,0,0,.5);
  animation: as-fade 150ms ease-out;
}
.as-acct-menu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-size: 13px; color: #CBD5DF; white-space: nowrap;
}
.as-acct-menu a:hover, .as-acct-menu a:focus-visible { background: rgba(127,166,184,.12); color: var(--as-cream); outline: none; }

/* Five logos and the search box do not share one row below ~1400px:
   the logos take their own row under the bar and scroll sideways if they still do not fit. */
@media (max-width: 1400px) {
  .as-topbar { flex-wrap: wrap; }
  .as-prodnav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .as-prodnav::-webkit-scrollbar { display: none; }
  .as-prodnav-item { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .as-prodnav-item, .as-acct-btn { transition: none; }
  .as-acct-menu { animation: none; }
}

/* ---- preview strip ---------------------------------------------------- */
.as-preview-strip {
  max-width: 1600px; margin: 14px auto 0; padding: .6rem 1rem;
  border: 1px dashed rgba(226,194,123,.45); border-radius: 10px;
  background: rgba(226,194,123,.06); color: var(--as-cream); font-size: .8rem;
}
.as-preview-strip b { color: var(--as-gold-soft); }
.as-preview-strip a { margin-left: .6rem; text-decoration: underline; }

/* ---- facet pane ------------------------------------------------------- */
.as-facets {
  width: 268px; flex: none; align-self: stretch;
  background: #0D0D0D; border: 1px solid rgba(220,201,166,.12); border-radius: 12px;
  padding: 11px 0 14px; max-height: calc(100vh - 130px); overflow-y: auto;
  position: sticky; top: 78px;
  scrollbar-width: thin; scrollbar-color: rgba(220,201,166,.3) transparent;
}
.as-facets-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--as-label); padding: 0 13px 10px;
}
.as-facets-clear {
  font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--as-steel);
  background: transparent; border: 0; cursor: pointer;
}
.as-facets-clear:hover { color: var(--as-cream); }

.as-fgroup { border-top: 1px solid rgba(220,201,166,.07); }
.as-fgroup-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 10px 13px; background: transparent; border: 0; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: #CBD5DF; text-align: left;
}
.as-fgroup-head:hover { background: rgba(44,62,80,.4); }
.as-fgroup-head > span:first-child { flex: 1; min-width: 0; }
.as-fgroup-n {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #C9A45E; color: #0A0A0A; font-size: 10.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.as-caret { flex: none; color: var(--as-label); transition: transform .15s; }
.as-fgroup-head[aria-expanded="true"] .as-caret { transform: rotate(180deg); }
.as-fgroup-body, .as-fsub { display: none; padding: 0 8px 8px; }
.as-fgroup.is-open > .as-fgroup-body,
.as-fgroup.is-open > .as-fsub:not([hidden]) { display: block; }

.as-fsub { border-top: 1px dashed rgba(220,201,166,.12); margin: 0 8px 8px; padding: 8px 0 4px; }
.as-fsub-head {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #7FA6B8; padding: 2px 5px 6px;
}
.as-fsub-section {
  font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--as-label); padding: 6px 5px 2px;
}

.as-fopt {
  display: flex; align-items: center; gap: 9px; padding: 7px 9px;
  border-radius: 8px; cursor: pointer; border: 1px solid transparent;
}
.as-fopt:hover { background: rgba(44,62,80,.45); }
.as-fopt input { position: absolute; opacity: 0; pointer-events: none; }
.as-fopt-box {
  width: 16px; height: 16px; flex: none; border-radius: 4px;
  border: 1px solid rgba(110,126,140,.5); background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.as-fopt input:checked + .as-fopt-box { background: #C9A45E; border-color: #C9A45E; }
.as-fopt input:checked + .as-fopt-box::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px;
  border-left: 2.5px solid #0A0A0A; border-bottom: 2.5px solid #0A0A0A;
  transform: rotate(-45deg);
}
.as-fopt input:focus-visible + .as-fopt-box { outline: 2px solid #7FA6B8; outline-offset: 2px; }
.as-fopt-label { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; color: #CBD5DF; }
.as-fopt-count { font-size: 11.5px; color: var(--as-label); font-variant-numeric: tabular-nums; }
/* An option nothing in the current result set carries still shows its count — greyed, not
   hidden. A member who ticked Multifamily and got nothing should see that the box exists
   and why it is empty, rather than watch it vanish. */
.as-fopt.is-zero { opacity: .38; }
.as-fopt.is-zero:hover { background: transparent; }

/* ---- results column --------------------------------------------------- */
.as-results { flex: 1; min-width: 0; }

.as-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
  padding: 10px 14px; background: #171717;
  border: 1px solid rgba(220,201,166,.12); border-radius: 11px;
}
.as-bar-btn {
  display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  background: rgba(110,126,140,.16); border: 1px solid rgba(110,126,140,.3); color: #CBD5DF;
}
.as-bar-btn:hover { background: rgba(110,126,140,.3); }
.as-bar-count { font-size: 12px; color: var(--as-steel); }
.as-bar-count b { color: #CBD5DF; font-weight: 700; font-variant-numeric: tabular-nums; }
.as-chips { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; min-width: 0; }
.as-chip {
  display: flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px;
  font: inherit; font-size: 11px; font-weight: 600; white-space: nowrap; cursor: pointer;
  background: rgba(110,126,140,.16); color: #CBD5DF; border: 1px solid rgba(110,126,140,.3);
}
.as-chip:hover { background: rgba(110,126,140,.3); }
.as-chip::after { content: "\00d7"; font-size: 13px; line-height: 1; opacity: .8; }
.as-sort { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--as-label); }
.as-sort select {
  background: #141414; color: #CBD5DF; border: 1px solid rgba(220,201,166,.12);
  border-radius: 8px; padding: 6px 9px; font: inherit; font-size: 12px; cursor: pointer;
}
.as-sort select option { background: #141414; color: #CBD5DF; }

/* ---- tiles ------------------------------------------------------------ */
.as-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin: 0 0 22px;
}
.as-tile {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 20px 40px -22px rgba(0,0,0,.7);
  border-radius: 16px; padding: 20px 22px;
}
.as-tile-label {
  font-size: 9.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--as-label);
}
.as-tile-value {
  margin-top: 10px; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums;
  letter-spacing: -.02em; color: var(--as-cream); line-height: 1;
}
.as-tile-sub { margin-top: 6px; font-size: 11px; color: var(--as-steel); }

.as-tile-brand {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  cursor: pointer; text-align: left; font: inherit;
}
.as-tile-brand:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.as-tile-brand img { display: block; align-self: flex-start; height: 26px; width: auto; max-width: 100%; object-fit: contain; }
.as-tile-brandtext { font-family: var(--font-serif); font-size: 20px; color: var(--as-gold); }
.as-tile-cta {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #CBD5DF;
}

/* ---- the grid --------------------------------------------------------- */
.as-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(max(180px, (100% - 64px) / 5), 1fr));
}
.as-card {
  position: relative; width: 100%; min-width: 0; display: flex; flex-direction: column;
  background: #171717; border: 1px solid rgba(220,201,166,.3); border-radius: 14px;
  overflow: hidden; box-shadow: 0 20px 44px -26px rgba(0,0,0,.9); color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.as-card:hover {
  transform: translateY(-3px); border-color: rgba(127,166,184,.5);
  box-shadow: 0 26px 52px -24px rgba(0,0,0,.95);
}
.as-card[hidden] { display: none; }

.as-card-strip { height: 6px; background: #3A4A5A; }
.as-card-plate {
  position: relative; background: #FBF6EE; height: 82px;
  display: flex; align-items: center; justify-content: center; padding: 12px 16px;
}
.as-card-logo {
  width: 148px; height: 50px; background-size: contain;
  background-repeat: no-repeat; background-position: center;
}
.as-card-wordmark { text-align: center; }
.as-card-wordtop {
  display: block; font-family: var(--font-serif); font-size: 21px; font-weight: 700;
  letter-spacing: .02em; color: #1A2430; line-height: 1.05;
}
.as-card-wordsub {
  display: block; margin-top: 3px; font-size: 7.5px; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; color: #8A745A;
}

.as-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px 15px 15px; }
.as-card-type {
  text-align: center; font-family: var(--font-serif); font-style: italic;
  font-size: 16px; font-weight: 600; color: #C9A45E; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 24px;
}
.as-card-name {
  display: flex; align-items: flex-start; justify-content: center; text-align: center;
  font-size: 14px; font-weight: 800; color: var(--as-cream); line-height: 1.28;
  margin: 6px 0 10px; min-height: 38px;
}
/* A program held back from the platform - admin preview only, and muted red rather than
   gold so it does not read as a workflow stage (9/24/2026). */
/* The one filter group that explains itself: Status hides inactive programs by default,
   so the group says so rather than leaving a count that never shows up (9/24/2026). */
.as-fgroup-note { padding: 2px 2px 8px; font-size: 10px; line-height: 1.45; color: var(--as-label); }

.as-card-offplatform { border-color: rgba(191,107,98,.55) !important; color: #BF6B62 !important; }
.as-card-draft {
  align-self: center; margin: -6px 0 8px; padding: 2px 8px; border-radius: 5px;
  font-size: 8.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--as-gold-soft); border: 1px solid rgba(226,194,123,.4);
}
.as-card-gauge { display: flex; flex-direction: column; align-items: center; margin-bottom: 12px; }

/* Sponsor report card (10/20/2026): this block stands where the mini tier gauge does, at
   its size, so a sponsor report sits in the grid like any other card. */
.as-card-sr {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 208px; max-width: 100%; height: 163px; border-radius: 12px;
  background: linear-gradient(180deg, #1B2636 0%, #111821 100%);
  border: 1px solid rgba(127,166,184,.18); color: var(--as-gold-soft);
}
.as-card-sr-title { font-size: 20px; font-weight: 800; color: var(--as-cream); letter-spacing: -.01em; }
.as-card-sr-kicker { font-size: 9px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--as-gold-soft); }
.as-card-sr-note { display: block; text-align: center; font-size: 12px; line-height: 1.5; color: var(--as-steel); padding: 0 6px 4px; }

.as-card-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(220,201,166,.14); border: 1px solid rgba(220,201,166,.14);
  border-radius: 10px; overflow: hidden;
}
.as-stat { background: #101010; padding: 8px 10px; min-width: 0; display: block; }
.as-stat-label {
  display: block; font-size: 7.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--as-label);
}
.as-stat-value {
  display: block; margin-top: 3px; font-size: 13px; font-weight: 700; color: #E6DCC8;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.25;
}
.as-stat-value.as-stat-sm { font-size: 12px; }
.as-stat-value.as-stat-soft { font-size: 11px; font-weight: 600; color: #B7C3CE; }

.as-card-matched { display: block; margin-top: 10px; border-top: 1px solid rgba(220,201,166,.12); padding-top: 8px; }
.as-matched-head {
  display: block; font-size: 7.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--as-label); margin-bottom: 5px;
}
.as-matched-list { display: flex; flex-wrap: wrap; gap: 4px; }
.as-matched-chip {
  font-size: 9.5px; font-weight: 600; color: #8FB89C; background: rgba(111,165,136,.14);
  border: 1px solid rgba(111,165,136,.3); border-radius: 5px; padding: 3px 7px;
}

.as-card-view {
  margin-top: 14px; text-align: center; font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; color: #E4E9EE; background: linear-gradient(180deg,#303030,#1F1F1F);
  border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 10px;
}
.as-card:hover .as-card-view {
  background: linear-gradient(180deg,#3A3A3A,#262626); border-color: rgba(255,255,255,.14);
}

/* ---- the card's own controls (10/26/2026) ----------------------------------
   The classic search's corner badges, kept inside the card (it clips): favorite star on
   the right, "Contact us about this program" on the left. Always visible - a touch screen
   has no hover - with a hit area larger than the 28px disc. */
.as-card-act {
  position: absolute; top: 12px; z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(20,20,20,.86); color: #E6DCC8; border: 1px solid rgba(220,201,166,.28);
  box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: background 80ms ease, color 80ms ease, transform 80ms ease;
}
.as-card-act::before { content: ""; position: absolute; inset: -8px; }
.as-card-act:hover { background: #141414; color: var(--as-cream); }
.as-card-act:active { transform: scale(.94); }
.as-card-act:focus-visible { outline: 2px solid #7FA6B8; outline-offset: 2px; }
.as-card-fav { right: 8px; }
.as-card-ask { left: 8px; }
.as-card-fav svg { fill: none; }
.as-card-fav.is-on { color: #E2C27B; border-color: rgba(226,194,123,.6); }
.as-card-fav.is-on svg { fill: currentColor; }

.as-card-alt {
  display: block; margin-top: 12px; text-align: center; cursor: pointer;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; color: var(--as-gold-soft);
  border: 1px dashed rgba(226,194,123,.4); border-radius: 8px; padding: 8px;
}
.as-card-alt:hover { background: rgba(226,194,123,.08); }
.as-card-alt:focus-visible { outline: 2px solid #7FA6B8; outline-offset: 2px; }

/* My favorites in the bar */
.as-fav-toggle svg { color: var(--as-label); }
.as-fav-toggle.is-on { background: rgba(226,194,123,.14); border-color: rgba(226,194,123,.5); color: var(--as-cream); }
.as-fav-toggle.is-on svg { color: #E2C27B; }
.as-fav-n {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
  background: rgba(110,126,140,.3); color: #CBD5DF;
}
.as-fav-toggle.is-on .as-fav-n { background: #C9A45E; color: #0A0A0A; }
.as-fav-toggle:focus-visible, .as-bar-btn:focus-visible { outline: 2px solid #7FA6B8; outline-offset: 2px; }

/* The Sponsor filter at the top of the pane (the classic page's "Filter By Company"). */
.as-fsponsor { padding: 2px 13px 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(220,201,166,.08); }
.as-fsponsor-label {
  display: block; margin: 0 0 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--as-label);
}
.as-fsponsor-select {
  width: 100%; min-width: 0; padding: 8px 9px; border-radius: 8px; cursor: pointer;
  background: #141414; color: #CBD5DF; border: 1px solid rgba(220,201,166,.14); font: inherit; font-size: 12.5px;
}
.as-fsponsor-select:focus-visible { outline: 2px solid #7FA6B8; outline-offset: 2px; }
.as-fsponsor-select option { background: #141414; color: #CBD5DF; }

/* ---- empty ------------------------------------------------------------ */
.as-empty {
  padding: 60px; text-align: center; color: var(--as-label);
  border: 1px dashed rgba(220,201,166,.16); border-radius: 14px;
}
.as-empty a { text-decoration: underline; }
.as-fav-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--as-steel); }
.as-fav-empty svg { color: #E2C27B; }
.as-fav-empty p { margin: 0; font-size: 14px; }

/* ---- "Contact us about this program" ------------------------------------ */
dialog.as-ask {
  width: min(520px, calc(100vw - 32px)); padding: 0; border-radius: 16px; color: var(--as-cream);
  background: #161616; border: 1px solid rgba(220,201,166,.16);
  box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 30px 80px rgba(0,0,0,.6);
}
dialog.as-ask::backdrop { background: rgba(0,0,0,.6); }
.as-ask-form, .as-ask-done { padding: 24px 24px 20px; }
.as-ask-done { text-align: center; }
.as-ask-done p { margin: 8px 0 20px; font-size: 13px; color: var(--as-steel); line-height: 1.5; }
.as-ask-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.as-ask-title { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--as-cream); }
.as-ask-x { background: none; border: 0; color: var(--as-steel); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.as-ask-x:hover { color: var(--as-cream); background: rgba(255,255,255,.06); }
.as-ask-program { margin: 4px 0 18px; font-size: 13px; font-weight: 600; color: var(--as-gold-soft); }
.as-ask-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.as-ask-label {
  display: block; margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--as-steel);
}
.as-ask-input {
  display: block; width: 100%; box-sizing: border-box; margin-bottom: 14px; padding: 10px 12px; border-radius: 8px;
  font: inherit; font-size: 16px; background: #101010; color: var(--as-cream); border: 1px solid rgba(220,201,166,.16);
}
.as-ask-input:focus { outline: none; border-color: rgba(226,194,123,.7); box-shadow: 0 0 0 3px rgba(226,194,123,.12); }
.as-ask-ta { resize: vertical; min-height: 110px; }
.as-ask-err { min-height: 18px; margin: -4px 0 4px; font-size: 13px; color: #E5867A; }
.as-ask-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.as-ask-who { flex: 1; min-width: 0; font-size: 12px; color: var(--as-label); overflow-wrap: anywhere; }
.as-ask-cancel { background: none; border: 0; color: var(--as-steel); font: inherit; font-size: 13px; cursor: pointer; padding: 8px 4px; }
.as-ask-cancel:hover { color: var(--as-cream); }
.as-ask-send {
  padding: 11px 20px; min-width: 140px; border-radius: 8px; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 800; background: linear-gradient(180deg, #E8CD8E, #C9A24A); color: #0A0A0A;
}
.as-ask-send[aria-busy="true"] { opacity: .7; cursor: progress; }
.as-ask-send:focus-visible, .as-ask-cancel:focus-visible, .as-ask-x:focus-visible { outline: 2px solid #E2C27B; outline-offset: 2px; }
@media (max-width: 520px) { .as-ask-grid { grid-template-columns: 1fr; gap: 0; } }

/* ---- toast ------------------------------------------------------------ */
.as-toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: min(420px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px;
  background: #1E1E1E; color: var(--as-cream); font-size: 13px; line-height: 1.4;
  border: 1px solid rgba(220,201,166,.16); box-shadow: 0 2px 4px rgba(0,0,0,.3), 0 18px 44px rgba(0,0,0,.55);
}
.as-toast-act {
  flex: none; background: none; border: 0; padding: 4px 2px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 800; color: #E2C27B; text-decoration: none;
}
.as-root a.as-toast-act { color: #E2C27B; }
.as-toast-act:hover { text-decoration: underline; }
@media (max-width: 600px) { .as-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .as-card-act { transition: none; } }

/* ---- narrow ----------------------------------------------------------- */
@media (max-width: 900px) {
  .as-shell { flex-direction: column; padding: 18px 14px 60px; }
  .as-facets { width: 100%; position: static; max-height: none; }
  .as-searchbox { width: auto; flex: 1 1 0; min-width: 0; max-width: none; }
  .as-topbar { flex-wrap: wrap; }
  .as-topbar-right { width: 100%; min-width: 0; }
}
