/* Look: docs/DESIGN-AR.md (Airtable, adapted). Colors stay on the dashboard's theme tokens so light and dark both work;
   from Airtable we take the modest weights (400/500), the 4px spacing scale, the radius ladder (6/10/12px),
   hairline borders with no shadows, the filter rail and the 12px table rows. */
#dash-root { --dash-gutter: clamp(12px, 3vw, 32px); overflow-x: clip; }
.st { direction: rtl; font-family: "IBM Plex Sans Arabic", var(--font-anthropic-sans); color: var(--color-fg); max-width: 1280px; margin-inline: auto;
  --r-sm: 6px; --r-md: 10px; --r-lg: 12px; --hair: 1px solid var(--color-border-line); }
.st.st :is(b, strong) { font-weight: 500; color: var(--color-fg); }
.st h1 { font-family: inherit; font-weight: 400; font-size: var(--cds-font-size-title); line-height: 1.2; margin: 0 0 16px; }
.st h2 { font-size: var(--cds-font-size-heading); font-weight: 500; margin: 48px 0 8px; }
.st h3 { font-size: var(--cds-font-size-body); font-weight: 500; margin: 0 0 8px; }
.st .lead { color: var(--color-fg-muted); margin: 0 0 24px; line-height: 1.7; max-width: 72ch; }
.st .note { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); margin: 0 0 12px; line-height: 1.6; max-width: 90ch; }

/* top bar (platform header): sticky, hairline bottom; brand at the start, page links with an ink underline */
.st .topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; min-height: 60px; margin-inline: calc(50% - 50vw); padding-inline: max(var(--dash-gutter, 16px), calc(50vw - 640px));
  background: color-mix(in srgb, var(--color-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: var(--hair); }
.st .brand { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: var(--cds-font-size-heading); font-weight: 500; }
.st .brand .bname { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.st .brand .logo { display: block; width: 32px; height: 32px; border-radius: var(--r-sm); }
.st .brand:focus-visible, .st .tabs button:focus-visible, .st .topfav:focus-visible { outline: 2px solid var(--cds-chart-categorical-1); outline-offset: 2px; }
.st .tabs { display: flex; gap: 4px; align-self: stretch; }
.st .tabs button { all: unset; cursor: pointer; display: flex; align-items: center; padding: 0 12px; font-size: var(--cds-font-size-body); color: var(--color-fg-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.st .tabs button:hover { color: var(--color-fg); }
.st .tabs button[aria-selected=true] { color: var(--color-fg); font-weight: 500; border-bottom-color: var(--color-fg); }
.st .topbar .grow { flex: 1; }
.st .topfav { all: unset; cursor: pointer; white-space: nowrap; flex: none; padding: 6px 12px; border: var(--hair); border-radius: var(--r-lg); font-size: var(--cds-font-size-caption); font-variant-numeric: tabular-nums; }
.st section.page { padding-top: 32px; }
.st h2[id] { scroll-margin-top: 76px; }
@media (max-width: 640px) { .st .topbar { gap: 8px; } .st .brand .bname { display: none; } .st .tabs button { padding: 0 8px; } }

/* home page */
.st .hero { padding: 48px 32px; border: var(--hair); border-radius: var(--r-lg); background: var(--color-panel); text-align: center; }
.st .hero h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 500; line-height: 1.25; margin: 0 0 12px; }
.st .hero .sub { color: var(--color-fg-muted); font-size: var(--cds-font-size-heading); line-height: 1.6; margin: 0 auto 24px; max-width: 46rem; }
.st .hsearch { display: flex; gap: 8px; max-width: 40rem; margin: 0 auto; }
.st .hsearch input[type=search] { height: 52px; font-size: var(--cds-font-size-body); border-radius: var(--r-md); }
.st .btn.primary { background: var(--color-fg); color: var(--color-bg); border-color: var(--color-fg); padding: 0 24px; display: flex; align-items: center; font-size: var(--cds-font-size-body); border-radius: var(--r-md); }
.st .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.st .chips button { all: unset; cursor: pointer; padding: 4px 12px; border: var(--hair); border-radius: var(--r-md); font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); background: var(--color-bg); }
.st .chips button:hover { color: var(--color-fg); border-color: var(--color-fg-muted); }
.st .stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0 0; border: var(--hair); border-radius: var(--r-lg); }
.st .stats > div { padding: 20px 24px; display: grid; gap: 4px; }
.st .stats > div + div { border-inline-start: var(--hair); }
.st .stats b { font-size: var(--cds-font-size-title); font-weight: 500; font-variant-numeric: tabular-nums; }
.st .stats span { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); }
.st .rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 48px 0 16px; }
.st .rowhead h2 { margin: 0; }
.st .more-link { all: unset; cursor: pointer; color: var(--color-link, #1b61c9); font-size: var(--cds-font-size-caption); white-space: nowrap; }
.st .more-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.st .cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.st .ccard { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: var(--hair); border-radius: var(--r-md); background: var(--color-bg); }
.st .ccard:hover { border-color: var(--color-fg-muted); }
.st .ccard:focus-visible { outline: 2px solid var(--cds-chart-categorical-1); outline-offset: 2px; }
.st .ccard .ctop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.st .ccard .co { font-size: var(--cds-font-size-body); font-weight: 500; direction: ltr; unicode-bidi: isolate; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st .ccard .cline { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st .ccard .meta { margin-top: auto; }
.st .ccard .mt { align-self: flex-start; padding: 1px 8px; border-radius: var(--r-md); font-size: 11px; border: var(--hair); }
.st .tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.st .tiles button { all: unset; cursor: pointer; display: grid; gap: 6px; padding: 20px; border: var(--hair); border-radius: var(--r-md); background: var(--color-panel); }
.st .tiles button:hover { border-color: var(--color-fg-muted); }
.st .tiles button:focus-visible { outline: 2px solid var(--cds-chart-categorical-1); outline-offset: 2px; }
.st .tiles b { font-size: var(--cds-font-size-body); }
.st .tiles b::after { content: ' ←'; color: var(--color-fg-muted); }
.st .tiles span { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); line-height: 1.6; }
@media (max-width: 1000px) { .st .cards, .st .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .st .cards, .st .tiles { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .st .hero { padding: 32px 16px; } .st .stats { grid-template-columns: 1fr 1fr; } .st .stats > div:nth-child(3) { border-inline-start: 0; } .st .stats > div:nth-child(n+3) { border-top: var(--hair); } }

.st .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 16px; }
.st .kpi { background: var(--color-panel); border: var(--hair); border-radius: var(--r-md); padding: 16px 24px; }
.st .kpi .v { font-weight: 400; font-size: var(--cds-font-size-title); font-variant-numeric: tabular-nums; line-height: 1.2; }
.st .kpi .l { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); margin-top: 4px; line-height: 1.5; }
.st .card { background: var(--color-panel); border: var(--hair); border-radius: var(--r-lg); padding: 24px; position: relative; }
.st .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 16px; }
.st .chart { min-height: 320px; position: relative; direction: ltr; }
.st .chart.tall { min-height: 560px; }
.st .tip { position: absolute; pointer-events: none; background: var(--cds-surface-popover); border: 1px solid var(--cds-border); border-radius: var(--r-sm); box-shadow: var(--cds-shadow-popover); padding: var(--cds-pad-xs) var(--cds-pad-sm); font-size: var(--cds-font-size-caption); direction: rtl; max-width: 280px; line-height: 1.5; z-index: 3; }
.st .tip .k { color: var(--cds-text-secondary); }

/* inputs: 44px, hairline, 6px corners */
.st .controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; align-items: center; }
.st input[type=search] { flex: 1 1 14rem; min-width: 0; height: 44px; box-sizing: border-box; padding: 0 16px; border: var(--hair); border-radius: var(--r-sm); background: var(--color-bg); color: var(--color-fg); font: inherit; }
.st input[type=search]:focus { outline: 2px solid var(--cds-chart-categorical-1); outline-offset: -1px; }
.st .controls .dash-select { min-width: 9rem; }
.st .btn { all: unset; cursor: pointer; padding: 8px 16px; border: var(--hair); border-radius: var(--r-lg); font-weight: 500; font-size: var(--cds-font-size-caption); color: var(--color-fg); background: var(--color-bg); }
.st .btn:focus-visible { outline: 2px solid var(--cds-chart-categorical-1); outline-offset: 2px; }

/* tables: 12px rows, hairline dividers, no shadows */
.st .tbox { max-height: 620px; overflow: auto; border: var(--hair); border-radius: var(--r-md); }
.st table { width: 100%; border-collapse: collapse; font-size: var(--cds-font-size-caption); font-variant-numeric: tabular-nums; }
.st th { position: sticky; top: 0; background: var(--color-panel); text-align: start; padding: 12px; border-bottom: var(--hair); z-index: 1; white-space: nowrap; font-weight: 500; }
.st th button { all: unset; cursor: pointer; font-weight: 500; }
.st th[aria-sort=ascending] button::after { content: ' ▲'; font-size: 9px; }
.st th[aria-sort=descending] button::after { content: ' ▼'; font-size: 9px; }
.st td { padding: 12px; border-bottom: var(--hair); vertical-align: top; line-height: 1.5; }
.st tr:last-child td { border-bottom: 0; }
.st tr.pick { cursor: pointer; }
.st tr.pick:hover td { background: color-mix(in srgb, var(--color-fg) 4%, transparent); }
.st td .co { font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.st td .desc { color: var(--color-fg-muted); unicode-bidi: plaintext; display: block; max-width: 34rem; }
.st td .pf { color: var(--color-fg-muted); display: block; max-width: 30rem; }
.st .bar { display: inline-block; height: 8px; border-radius: 2px; background: var(--cds-chart-categorical-1); vertical-align: middle; margin-inline-start: 6px; }
.st .pill { display: inline-block; padding: 1px 8px; border-radius: var(--r-md); font-size: 11px; border: var(--hair); white-space: nowrap; }
.st .pill.ok { color: var(--color-ok); } .st .pill.bad { color: var(--color-bad); } .st .pill.warn { color: var(--color-warn); }
.st .what { min-width: 14rem; max-width: 28rem; }
.st .what .ev { unicode-bidi: plaintext; display: block; }
.st .what .why { color: var(--color-fg-muted); display: block; }
/* favorites (public site only) */
.st button.heart { all: unset; cursor: pointer; font-size: 16px; line-height: 1; color: var(--color-fg-muted); margin-inline-end: 6px; vertical-align: -1px; }
.st button.heart[aria-pressed=true] { color: var(--color-bad); }
.st button.heart:focus-visible { outline: 2px solid var(--cds-chart-categorical-1); outline-offset: 2px; border-radius: 4px; }
.st .favbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; border: var(--hair); border-radius: var(--r-md); background: var(--color-panel); padding: 10px 16px; margin: 0 0 16px; font-size: var(--cds-font-size-caption); }
.st .favbar > div, .st .favbar form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; width: 100%; }
.st .favbar[hidden], .st .favbar [hidden] { display: none !important; }
.st .favbar input[type=email] { flex: 1 1 14rem; min-width: 0; height: 36px; box-sizing: border-box; padding: 0 12px; border: var(--hair); border-radius: var(--r-sm); background: var(--color-bg); color: var(--color-fg); font: inherit; direction: ltr; text-align: left; }
.st .favbar .fav-msg { color: var(--color-fg-muted); flex-basis: 100%; }
.st .favbar .fav-msg.bad { color: var(--color-bad); }
.st .favbar .fav-msg:empty { display: none; }
.st .favbar a { color: var(--cds-chart-categorical-1); }
.st .favbar .fav-who { direction: ltr; unicode-bidi: isolate; font-weight: 500; }
.st .favbar .grow { flex: 1; }
.st .favbar:has(.fav-in[hidden]):has(.fav-form[hidden]) { border: 0; background: none; padding: 0; margin-bottom: 8px; }
.st td .mt { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: var(--r-md); font-size: 11px; border: var(--hair); color: var(--color-fg); }
.st .links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 11px; }
.st .links a { color: var(--cds-chart-categorical-1); text-decoration: none; }
.st .links a:hover { text-decoration: underline; text-underline-offset: 2px; }
.st .meta { color: var(--color-fg-muted); font-size: 11px; display: block; margin-top: 2px; }
.st tr.open td { background: color-mix(in srgb, var(--color-fg) 4%, transparent); }
.st tr.xrow td { background: var(--color-bg); padding: 16px 24px; }
.st .xgrid { display: grid; grid-template-columns: minmax(7rem, 10rem) 1fr; gap: 8px 16px; line-height: 1.6; }
.st .xgrid dt { font-weight: 500; } .st .xgrid dd { margin: 0; }
.st .xgrid .ltr { direction: ltr; unicode-bidi: isolate; }
.st .muted { color: var(--color-fg-muted); }
.st details { margin-top: 48px; border-top: var(--hair); padding-top: 16px; }
.st details summary { cursor: pointer; font-weight: 500; }
.st details dl { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 8px 16px; font-size: var(--cds-font-size-caption); line-height: 1.6; }
.st details dt { font-weight: 500; } .st details dd { margin: 0; color: var(--color-fg-muted); }
.st th.grp { text-align: center; border-bottom: var(--hair); color: var(--color-fg-muted); font-weight: 400; }
.st #segTable th[rowspan] { vertical-align: bottom; }
.st #segTable thead tr:nth-child(2) th { top: 41px; }
.st .spark { display: block; }
.st .count { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); }

/* company database: filter rail beside the table */
.st .db { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 24px; align-items: start; }
.st .rail { border: var(--hair); border-radius: var(--r-lg); padding: 16px; background: var(--color-panel); }
.st .rail .grp + .grp { border-top: var(--hair); margin-top: 16px; padding-top: 16px; }
.st .rail .grp[hidden] + .grp { border-top: 0; margin-top: 0; padding-top: 0; }
.st .rail h3 { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); font-weight: 500; margin: 0 0 8px; }
.st .facet { display: grid; gap: 2px; }
.st .facet label { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 4px 6px; border-radius: var(--r-sm); cursor: pointer; font-size: var(--cds-font-size-caption); line-height: 1.4; }
.st .facet label:hover { background: color-mix(in srgb, var(--color-fg) 5%, transparent); }
.st .facet label.zero { opacity: .45; }
.st .facet input { margin: 0; accent-color: var(--color-fg); }
.st .facet .n { color: var(--color-fg-muted); font-variant-numeric: tabular-nums; font-size: 11px; }
.st .rail .dash-select { width: 100%; }
.st .rail .years { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st .rail .toggle { display: flex; gap: 8px; align-items: center; font-size: var(--cds-font-size-caption); cursor: pointer; }
.st .rail .toggle input { accent-color: var(--color-fg); margin: 0; }
.st .rail .btn { margin-top: 16px; }
.st .dbhead { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 12px; }
.st .dbhead .count b { font-variant-numeric: tabular-nums; }
.st .more { margin-top: 12px; text-align: center; }
.st #dbTable td.ltr { direction: ltr; unicode-bidi: isolate; text-align: end; white-space: nowrap; }
@media (max-width: 760px) { .st .db { grid-template-columns: 1fr; } .st .db > div:last-child { order: -1; } .st .dbhead input[type=search] { flex-basis: 100%; } }

/* .btn uses all:unset, which would otherwise override the hidden attribute (e.g. the "show 200 more" button) */
.st [hidden] { display: none !important; }

[data-dash-source-state=refreshing] { opacity: .5; transition: opacity var(--cds-dur-slow); }
@media (max-width: 640px) { .st .hide-sm { display: none; } .st .xgrid { grid-template-columns: 1fr; gap: 2px 0; } .st .xgrid dd { margin-bottom: 8px; } .st tr.xrow td { padding: 12px; } }

/* ---- MT AUTO identity: the navy of the MT AUTO logo for primary actions and highlights (lighter in dark mode) */
.st { --brand: #0b1f5e; --brand-ink: #ffffff; --brand-soft: color-mix(in srgb, var(--brand) 8%, var(--color-bg)); }
@media (prefers-color-scheme: dark) { .st { --brand: #8ea6ff; --brand-ink: #0b1020; } }
.st .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.st .tabs button[aria-selected=true] { border-bottom-color: var(--brand); }
.st .hero { background: linear-gradient(180deg, var(--brand-soft), var(--color-panel)); }

/* company logos (YC image store) or a letter in the brand color */
.st .av { display: inline-grid; place-items: center; flex: none; border-radius: var(--r-sm); overflow: hidden; background: var(--color-bg); border: var(--hair); box-sizing: border-box; }
.st .av img { width: 100%; height: 100%; object-fit: contain; }
.st .av.letter { background: var(--brand); color: var(--brand-ink); border: 0; font-weight: 500; font-size: 0.55em; direction: ltr; }
.st .ccard .who, .st .mini .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st .ccard .av.letter { font-size: 13px; } .st .mini .av.letter { font-size: 11px; }

/* the idea file (one page per company) */
.st .cp { max-width: 960px; margin-inline: auto; }
.st .cp .back { all: unset; cursor: pointer; color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); margin-bottom: 16px; display: inline-block; }
.st .cp .back:hover { color: var(--color-fg); }
.st .cphead { display: flex; align-items: center; gap: 16px; }
.st .cphead .av.letter { font-size: 28px; }
.st .cphead > div { flex: 1; min-width: 0; }
.st .cptitle { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st .cptitle h1 { margin: 0; font-size: var(--cds-font-size-title); font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.st .cpmeta { margin: 4px 0 0; color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); }
.st .heart.big { font-size: 28px; }
.st .cplead { font-size: var(--cds-font-size-heading); line-height: 1.7; margin: 24px 0 0; }
.st .cp h2 { font-size: var(--cds-font-size-heading); margin: 40px 0 12px; }
.st .quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.st .qc { border: var(--hair); border-radius: var(--r-md); padding: 16px; background: var(--color-panel); display: grid; gap: 6px; border-inline-start: 3px solid var(--brand); }
.st .qk { font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); font-weight: 500; }
.st .qv { line-height: 1.6; } .st .qv.none { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); }
.st .facts { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 10px 16px; margin: 0; border: var(--hair); border-radius: var(--r-md); padding: 16px; background: var(--color-panel); }
.st .facts dt { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); } .st .facts dd { margin: 0; line-height: 1.6; }
.st .eco { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.st .eco .layer { border: var(--hair); border-radius: var(--r-md); padding: 12px; display: grid; gap: 4px; color: var(--color-fg-muted); background: var(--color-panel); }
.st .eco .layer b { font-size: var(--cds-font-size-caption); font-weight: 500; } .st .eco .layer span { font-size: 11px; line-height: 1.5; }
.st .eco .layer.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.st.st .eco .layer.on b { color: var(--brand-ink); }
.st .simcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 16px; align-items: start; }
.st .simcol { display: grid; gap: 8px; } .st .simcol h3 { margin: 0 0 4px; color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); }
.st .mini { all: unset; cursor: pointer; display: grid; gap: 4px; padding: 12px; border: var(--hair); border-radius: var(--r-md); background: var(--color-bg); }
.st .mini:hover { border-color: var(--color-fg-muted); } .st .mini:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.st .mini .co { direction: ltr; unicode-bidi: isolate; font-weight: 500; }
.st .mini .cline { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st .ws { display: grid; gap: 12px; border: var(--hair); border-radius: var(--r-md); padding: 16px; background: var(--brand-soft); }
.st .seg { display: flex; gap: 8px; flex-wrap: wrap; }
.st .seg button { all: unset; cursor: pointer; padding: 6px 14px; border: var(--hair); border-radius: var(--r-md); background: var(--color-bg); font-size: var(--cds-font-size-caption); }
.st .seg button[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.st .ws textarea { font: inherit; padding: 12px; border: var(--hair); border-radius: var(--r-sm); background: var(--color-bg); color: var(--color-fg); resize: vertical; }
.st .ws textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.st .ws .saved { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); min-height: 1em; }
.st .cp .links { font-size: var(--cds-font-size-body); gap: 8px 20px; }
@media (max-width: 760px) { .st .quad { grid-template-columns: 1fr; } .st .eco { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st .facts { grid-template-columns: 1fr; gap: 2px; } .st .facts dd { margin-bottom: 8px; } .st .cphead .av { width: 48px !important; height: 48px !important; } }

/* comparison */
.st .cmpbtn { margin-inline-start: auto; white-space: nowrap; }
.st .cmpbtn[aria-pressed=true] { border-color: var(--brand); color: var(--brand); }
.st .cmpbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: none; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  padding: 12px max(var(--dash-gutter, 16px), calc(50vw - 640px)); padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: var(--color-bg); border-top: var(--hair); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); font-size: var(--cds-font-size-caption); }
.st .cmpbar.on { display: flex; }
.st .cmpbar .cmpnames { flex: 1 1 12rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st .cmpbar .btn.primary { padding: 8px 16px; font-size: var(--cds-font-size-caption); }
.st .cmpbar .btn[disabled] { opacity: .5; cursor: default; }
.st .cp > h1, .st .ecohead h1 { font-size: var(--cds-font-size-title); font-weight: 500; margin: 0 0 16px; }
.st .cmpgrid { display: grid; grid-template-columns: minmax(7rem, 9rem) repeat(var(--n), minmax(12rem, 1fr)); border: var(--hair); border-radius: var(--r-md); overflow-x: auto; background: var(--color-panel); }
.st .cmpgrid > div { padding: 12px; border-bottom: var(--hair); line-height: 1.6; }
.st .cmpgrid .ck { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); background: var(--color-bg); position: sticky; inset-inline-start: 0; }
.st .cmpgrid .cv.none { color: var(--color-fg-muted); }
.st .cmpgrid .chead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st .cmpgrid .chead .who { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.st .cmpgrid .chead .co { direction: ltr; unicode-bidi: isolate; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st .cmpgrid .cx { all: unset; cursor: pointer; color: var(--color-fg-muted); padding: 2px 6px; border-radius: var(--r-sm); }
.st .cmpgrid .cx:hover { background: color-mix(in srgb, var(--color-fg) 8%, transparent); }

/* MT AUTO opportunities */
.st .ecohead .lead { margin-bottom: 16px; }
.st .eco-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.st .etab { all: unset; cursor: pointer; display: grid; gap: 4px; padding: 12px; border: var(--hair); border-radius: var(--r-md); background: var(--color-panel); }
.st .etab b { font-size: var(--cds-font-size-caption); font-weight: 500; } .st .etab span { font-size: 11px; color: var(--color-fg-muted); line-height: 1.5; }
.st .etab .en { color: var(--color-fg); font-variant-numeric: tabular-nums; }
.st .etab[aria-selected=true] { background: var(--brand); border-color: var(--brand); }
.st.st .etab[aria-selected=true] b, .st .etab[aria-selected=true] span { color: var(--brand-ink); }
.st .etab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.st .eco-direct { display: flex; gap: 8px; align-items: center; font-size: var(--cds-font-size-caption); margin: 0 0 16px; cursor: pointer; }
.st #eco .stats { margin-top: 0; }
.st .chips.left { justify-content: flex-start; }
.st .chip { padding: 4px 12px; border: var(--hair); border-radius: var(--r-md); font-size: var(--cds-font-size-caption); background: var(--color-bg); }

/* phones: the top bar and the layer tabs scroll sideways instead of wrapping; the comparison table scrolls */
@media (max-width: 760px) {
  .st .topbar { gap: 8px; }
  .st .tabs { overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
  .st .tabs::-webkit-scrollbar { display: none; }
  .st .tabs button { white-space: nowrap; font-size: 14px; }
  .st .eco-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(10rem, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .st .etab { scroll-snap-align: start; }
  .st .cmpgrid { grid-template-columns: 6.5rem repeat(var(--n), minmax(11rem, 1fr)); }
  .st .cphead { flex-wrap: wrap; }
  .st .cmpbtn { margin-inline-start: 0; }
  .st .hero h1 { font-size: 26px; }
  .st .hsearch { flex-direction: column; } .st .hsearch input[type=search] { flex: none; } .st .hsearch .btn.primary { justify-content: center; height: 44px; }
  .st .cmpbar .cmpnames { flex-basis: 100%; }
  body { padding-bottom: 72px; }
}

.st .simcol .more2 { justify-self: center; }
.st .eco-tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.st .eco-mode { margin: 0 0 8px; }
.st .eco-note { margin-bottom: 16px; }
.st .mini .cline.how { color: var(--color-fg); }
.st .trbox { border: var(--hair); border-inline-start: 3px solid var(--brand); border-radius: var(--r-md); padding: 16px; background: var(--brand-soft); display: grid; gap: 6px; margin-bottom: 12px; }
.st .trbox p { margin: 0; line-height: 1.7; }
@media (max-width: 1100px) and (min-width: 761px) { .st .eco-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .st .eco-tabs { grid-template-columns: none; } .st .eco-mode { flex-wrap: nowrap; overflow-x: auto; } .st .eco-mode button { white-space: nowrap; } }
/* MT AUTO-only parts (opportunities, links, transferable ideas): shown to the signed-in owner only on the site;
   the class mt-on is set by fav.js once the private data has loaded (the Claude dashboard sets it at once) */
html:not(.mt-on) .st .mt-only { display: none !important; }
html.mt-on .st .mt-off { display: none !important; }
@media (min-width: 761px) { html:not(.mt-on) .st #home .stats { grid-template-columns: repeat(3, 1fr); } }

/* MT AUTO decisions guide (owner-only) */
.st #guide [data-draw=guide] { max-width: 860px; }
.st .gprog { position: sticky; top: 64px; z-index: 2; background: var(--color-bg); border: var(--hair); border-radius: var(--r-md); padding: 10px 16px; margin: 0 0 12px; }
.st .gprog span { color: var(--color-fg-muted); }
.st .gtoc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.st .gbody h1 { font-size: var(--cds-font-size-title); margin: 16px 0 8px; }
.st .gbody h2 { margin: 32px 0 8px; scroll-margin-top: 120px; }
.st .gbody h3 { font-size: var(--cds-font-size-body); margin: 20px 0 6px; }
.st .gbody p, .st .gbody li { line-height: 1.8; }
.st .gbody ul { padding-inline-start: 20px; margin: 4px 0 8px; }
.st .gbody .tbl { overflow-x: auto; border: var(--hair); border-radius: var(--r-md); margin: 8px 0 12px; }
.st .gbody table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: var(--cds-font-size-caption); }
.st .gbody th, .st .gbody td { text-align: start; vertical-align: top; padding: 8px 10px; border-bottom: var(--hair); line-height: 1.6; }
.st .gbody thead th { background: var(--brand-soft); }
.st .gbody tbody th { font-weight: 600; white-space: nowrap; }
.st .gbody .co-link { all: unset; cursor: pointer; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.st .gbody code { font-size: .9em; }
.st .gq { display: grid; gap: 10px; border: var(--hair); border-inline-start: 3px solid var(--color-border, #ccc); border-radius: var(--r-md); padding: 14px 16px; margin: 10px 0; background: var(--color-bg); }
.st .gq.done { border-inline-start-color: var(--brand); background: var(--brand-soft); }
.st .gq .qt { margin: 0; line-height: 1.8; }
.st .gq textarea { font: inherit; padding: 10px; border: var(--hair); border-radius: var(--r-sm); background: var(--color-bg); color: var(--color-fg); resize: vertical; }
.st .gq textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.st .gq .saved { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); min-height: 1em; }
@media (max-width: 760px) { .st .gprog { top: 56px; } }
.st .gtoc.chips { justify-content: flex-start; margin-top: 0; }
.st .eco-cat { margin-top: 8px; }
@media (max-width: 760px) { .st .eco-cat { flex-wrap: nowrap; overflow-x: auto; } .st .eco-cat button { white-space: nowrap; } }

/* the 12 chosen ideas (owner-only): card grid and study page */
.st .ptitle { font-size: var(--cds-font-size-title); font-weight: 500; margin: 8px 0 8px; }
.st .sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0 0 16px; }
.st .scard { all: unset; cursor: pointer; display: grid; gap: 6px; padding: 16px; border: var(--hair); border-radius: var(--r-md); background: var(--color-bg); }
.st .scard:hover, .st .scard:focus-visible { border-color: var(--brand); }
.st .scard:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.st .scard .snum { color: var(--brand); font-weight: 600; font-size: var(--cds-font-size-caption); }
.st .scard b { font-weight: 500; line-height: 1.5; }
.st .scard .sstat { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); line-height: 1.6; }
.st .scard .sprog { font-size: var(--cds-font-size-caption); color: var(--brand); }
.st #studyp .back { all: unset; cursor: pointer; color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); margin-bottom: 12px; display: inline-block; }
.st #studyp .back:hover { color: var(--color-fg); }

/* company side panel (wide screens, companies list and MT AUTO opportunities): the list stays beside it */
.st { --pw: min(560px, 44vw); }
.st .cpanel { box-sizing: border-box; position: fixed; top: 60px; bottom: 0; inset-inline-end: 0; width: var(--pw); overflow-y: auto; z-index: 15;
  background: var(--color-bg); border-inline-start: var(--hair); box-shadow: 0 0 24px rgba(0,0,0,.08); padding: 16px 20px 32px; }
.st .cpanel .cp { max-width: none; }
.st .cpanel .cphead { flex-wrap: wrap; }
html.panel-open .st section.page:not(#company) { padding-inline-end: max(0px, calc(var(--pw) + 16px - max(0px, (100vw - 1280px) / 2))); }
.st .pbar { position: sticky; top: -16px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -16px -20px 12px; padding: 10px 20px; background: var(--color-bg); border-bottom: var(--hair); }
.st .pbtn { all: unset; cursor: pointer; padding: 6px 10px; border: var(--hair); border-radius: var(--r-sm); font-size: var(--cds-font-size-caption); }
.st .pbtn:hover:not(:disabled) { border-color: var(--brand); }
.st .pbtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.st .pbtn:disabled { opacity: .4; cursor: default; }
.st .pbar .pbtn:last-child { margin-inline-start: auto; color: var(--brand); }
.st .pcount { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); }
.st tr.sel-co td { background: var(--brand-soft); }
.st tr.sel-co td:first-child { box-shadow: inset -3px 0 0 var(--brand); }
.st .sel-co.mini, .st .sel-co.ccard { border-color: var(--brand); background: var(--brand-soft); }
@media (max-width: 1023px) { .st .cpanel { display: none; } }
html.panel-open .st #database .hide-sm { display: none; }
html.panel-open .st .dbhead { flex-wrap: wrap; } html.panel-open .st .dbhead input[type=search] { flex-basis: 100%; }

/* wide pages (owner, 2026-11-07): the companies table and the MT AUTO opportunities use the whole screen width;
   reading pages (home, guide, chosen ideas, idea file) keep the 1280px column */
.st section#database, .st section#eco { margin-inline: min(0px, calc(50% - 50vw)); padding-inline: var(--dash-gutter, 16px); }
html.panel-open .st section.page#database, html.panel-open .st section.page#eco { padding-inline-end: calc(var(--pw) + var(--dash-gutter, 16px)); }

/* animated scene at the top of a chosen idea (GSAP; sizes follow the stage width through cqw) */
.st .shead { display: grid; gap: 12px; margin-bottom: 8px; }
.st .scn { display: grid; gap: 10px; max-width: 960px; }
.st .scn-stage { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; border-radius: var(--r-lg); background: #0b1f5e; color: #ffffff; }
.st .scn-f { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.6cqw; padding: 5cqw 6cqw 7cqw; background: #0b1f5e; }
.st .scn-f.light { background: #f6f7fb; color: #0b1f5e; }
.st .scn-f .k { margin: 0; color: #f5a524; font-size: 1.9cqw; font-weight: 500; }
.st .scn-f.light .k { color: #b06f00; }
.st .scn-f .t { margin: 0; font-size: 4cqw; font-weight: 600; line-height: 1.25; color: inherit; }
.st .scn-f .t.xl { font-size: 6.4cqw; }
.st .scn-f .s { margin: 0; font-size: 2cqw; line-height: 1.6; font-weight: 300; color: #d6dcf0; max-width: 72cqw; }
.st .scn-f.light .s { color: #3b4566; }
.st .scn-f .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; margin-top: 1cqw; }
.st .scn-f .sc-card { position: relative; display: grid; align-content: start; gap: 0.8cqw; padding: 2.2cqw; border-radius: 1.6cqw; background: #ffffff; box-shadow: 0 0.6cqw 2cqw rgba(11,31,94,.08); overflow: hidden; }
.st .scn-f .sc-card b { font-size: 2.6cqw; font-weight: 600; color: #0b1f5e; }
.st .scn-f .sc-card .s { font-size: 1.75cqw; }
.st .scn-f .sc-card .tag { font-size: 1.5cqw; color: #8a93ad; }
.st .scn-f .sc-card .sc-bar { position: absolute; top: 0; inset-inline: 0; height: 0.7cqw; background: #0b1f5e; }
.st .scn-f .sc-card.bad .sc-bar { background: #d9473a; } .st .scn-f .sc-card.warn .sc-bar { background: #f5a524; }
.st .scn-f .badge { width: 4cqw; height: 4cqw; border-radius: 50%; display: grid; place-items: center; background: #0b1f5e; color: #ffffff; font-size: 2cqw; font-weight: 600; }
.st .scn-f .nums { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3cqw; align-items: center; }
.st .scn-f .big { display: block; font-size: 15cqw; line-height: 1; font-weight: 600; color: #f5a524; font-variant-numeric: tabular-nums; }
.st .scn-f .sc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4cqw; }
.st .scn-f .sc-stat { display: grid; gap: 0.4cqw; padding: 1.6cqw 2cqw; border-radius: 1.4cqw; background: #142a75; }
.st .scn-f .sc-stat b { font-size: 5cqw; line-height: 1.05; font-weight: 600; color: #ffffff; font-variant-numeric: tabular-nums; }
.st .scn-f .sc-stat.good b { color: #6fdc9a; } .st .scn-f .sc-stat.bad b { color: #ff8a7a; }
.st .scn-f .sc-stat span { font-size: 1.7cqw; color: #b7c2e6; }
.st .scn-f .sc-note { font-size: 1.7cqw; }
.st .scn-f .item { padding: 1.6cqw 2.4cqw; border-radius: 1.4cqw; background: #142a75; display: grid; gap: 0.4cqw; }
.st .scn-f .item b { font-size: 2.6cqw; font-weight: 600; color: #6fdc9a; }
.st .scn-f .box { border: 0.2cqw solid #f5a524; border-radius: 1.4cqw; padding: 1.4cqw 2.2cqw; max-width: none; }
.st .scn-f .foot { margin: 0; font-size: 1.4cqw; color: #8e9bc7; }
.st .scn-f.light .foot { color: #8a93ad; }
.st .scn-f .sc-brand { position: absolute; bottom: 2.4cqw; left: 6cqw; direction: ltr; font-size: 1.4cqw; font-weight: 600; opacity: .85; }
.st .scn-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st .scn-dots { display: flex; gap: 6px; margin-inline-start: auto; }
.st .scn-dots .dot { all: unset; cursor: pointer; width: 10px; height: 10px; border-radius: 50%; background: var(--color-border-line, #ccc); }
.st .scn-dots .dot[aria-current=true] { background: var(--brand); width: 22px; border-radius: 5px; }
.st .scn-dots .dot:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* account menu in the top bar (site only; owner, 2026-11-08) */
.st .acct { position: relative; flex: none; }
.st .acct-btn { all: unset; cursor: pointer; padding: 6px 12px; border: var(--hair); border-radius: var(--r-lg); font-size: var(--cds-font-size-caption); white-space: nowrap; }
.st .acct-btn:hover { border-color: var(--brand); }
.st .acct-btn:focus-visible { outline: 2px solid var(--cds-chart-categorical-1); outline-offset: 2px; }
.st .favbar.acct-pop { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 40; width: min(340px, calc(100vw - 24px)); margin: 0; padding: 14px; background: var(--color-bg); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.st .favbar.acct-pop .fav-in { flex-direction: column; align-items: stretch; }
.st .favbar.acct-pop .fav-in .btn { justify-content: center; }
.st .favbar.acct-pop .fav-out { display: none !important; }
.st .db-more { all: unset; cursor: pointer; display: block; margin: 12px auto; padding: 6px 12px; color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); } .st .db-more[hidden] { display: none; } .st .db-more:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* companies page: the table box and the filter rail end at the bottom edge of the window (owner, 2026-11-08) */
@media (min-width: 761px) {
  .st #database .tbox { box-sizing: border-box; max-height: none; height: var(--fit-h, 620px); }
  .st #database .rail { box-sizing: border-box; max-height: var(--fit-h, none); overflow-y: auto; }
  .st #database section.page, .st section#database { padding-bottom: 0; }
}
.st .tnote { margin: 8px 16px 16px; }

/* the archive (site, owner only, 2026-11-08): tag on a shown archived row, the box on the company page, the archive page */
.st td .archtag { display: inline-block; margin-inline-end: 6px; padding: 1px 8px; border-radius: var(--r-md); font-size: 11px; border: var(--hair); color: var(--color-fg-muted); background: var(--color-panel); vertical-align: middle; }
.st tr:has(.archtag) td { color: var(--color-fg-muted); }
.st .archbox { border: var(--hair); border-radius: var(--r-lg); background: var(--color-panel); padding: 16px; display: grid; gap: 8px; justify-items: start; }
.st .archbox p { margin: 0; line-height: 1.7; }
.st .archbox .why, .st .archlist .why { color: var(--color-fg); white-space: pre-wrap; }
.st .cphead .archbtn { flex: none; }
.st .cphead .archbtn[aria-expanded=true] { background: var(--color-panel); }
.st .archform { display: grid; gap: 8px; margin: 12px 0 0; padding: 16px; border: var(--hair); border-radius: var(--r-lg); background: var(--color-panel); }
.st .archbox { margin-top: 12px; }
.st .archform label { display: grid; gap: 6px; font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); }
.st .archform textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 8px 10px; border: var(--hair); border-radius: var(--r-md); background: var(--color-bg); color: var(--color-fg); resize: vertical; }
.st .archform .row { display: flex; gap: 8px; flex-wrap: wrap; }
.st .archform .btn.go { background: var(--color-fg); color: var(--color-bg); border-color: var(--color-fg); }
.st .archlist { list-style: none; margin: 0; padding: 0; border: var(--hair); border-radius: var(--r-lg); }
.st .archlist li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.st .archlist li + li { border-top: var(--hair); }
.st .archlist .info { display: grid; gap: 4px; min-width: 0; }
.st .archlist .who { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.st .archlist .who:hover .co { text-decoration: underline; }
.st .archlist .who:focus-visible { outline: 2px solid var(--cds-chart-categorical-1); outline-offset: 2px; }
.st .archlist .meta, .st .archlist .when { color: var(--color-fg-muted); font-size: var(--cds-font-size-caption); }
.st .archlist .why { margin: 0; line-height: 1.6; }
.st .archlist .btn { flex: none; }
@media (max-width: 600px) { .st .archlist li { flex-direction: column; } }

/* archive from the companies list (owner, 2026-11-08) */
.st td .rowarch { all: unset; cursor: pointer; display: inline-block; margin-top: 6px; padding: 1px 10px; border: var(--hair); border-radius: var(--r-md); font-size: 11px; color: var(--color-fg-muted); background: var(--color-bg); }
.st td .rowarch:hover { color: var(--color-fg); border-color: var(--color-fg-muted); }
.st td .rowarch:focus-visible { outline: 2px solid var(--cds-chart-categorical-1); outline-offset: 2px; }
@media (hover: hover) and (min-width: 761px) { .st tr:not(:hover):not(:focus-within) td .rowarch { opacity: 0; } }
.st td .rowarch-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; max-width: 34rem; }
.st td .rowarch-form input { flex: 1 1 14rem; min-width: 0; font: inherit; font-size: var(--cds-font-size-caption); padding: 6px 10px; border: var(--hair); border-radius: var(--r-md); background: var(--color-bg); color: var(--color-fg); }
.st td .rowarch-form .btn { padding: 6px 12px; }
.st td .rowarch-form .btn.go { background: var(--color-fg); color: var(--color-bg); border-color: var(--color-fg); }
.st .toast { position: fixed; inset-inline: 0; bottom: 20px; margin-inline: auto; width: max-content; max-width: calc(100vw - 32px); z-index: 50; display: flex; align-items: center; gap: 16px;
  padding: 10px 16px; border-radius: var(--r-lg); background: var(--color-fg); color: var(--color-bg); font-size: var(--cds-font-size-caption); box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.st .toast button { all: unset; cursor: pointer; font-weight: 500; text-decoration: underline; }
.st .toast button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* copy a link without opening it (owner, 2026-11-09) */
.st .copylink { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-start: 2px; vertical-align: middle;
  border-radius: var(--r-md); color: var(--color-fg-muted); font-size: 12px; line-height: 1; }
.st .copylink:hover { color: var(--color-fg); background: var(--color-panel); }
.st .copylink:focus-visible { outline: 2px solid var(--cds-chart-categorical-1); outline-offset: 1px; }
.st .copylink.done { color: var(--color-ok, #1a7f37); }
@media (hover: hover) and (min-width: 761px) { .st tr:not(:hover):not(:focus-within) td .copylink { opacity: 0; } }

/* "مقترحة لك" (owner, 2026-11-09): a compact strip above the companies table */
.st .rec { margin: 0 0 12px; contain: inline-size; }   /* its cards scroll inside it and never widen the column (phone) */
.st .rec:empty { display: none; }
.st .rec .rechead { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.st .rec .rechead h2 { margin: 0; font-size: var(--cds-font-size-body, 15px); }
.st .rec .rechead .note { margin: 0; flex: 1; }
.st .rec .rechead .btn { padding: 4px 10px; font-size: var(--cds-font-size-caption); }
.st .recgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.st .recgrid li { display: grid; grid-template-rows: auto 1fr auto auto; gap: 4px; padding: 10px 12px; border: var(--hair); border-radius: var(--r-lg); background: var(--color-bg); min-width: 0; }
.st .recgrid li.explore { border-style: dashed; }
.st .recgrid .recopen { all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px; min-width: 0; }
.st .recgrid .recopen .co { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st .recgrid .recopen:hover .co { text-decoration: underline; }
.st .recgrid .recopen:focus-visible { outline: 2px solid var(--cds-chart-categorical-1); outline-offset: 2px; }
.st .recgrid .line { margin: 0; font-size: var(--cds-font-size-caption); color: var(--color-fg-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st .recgrid .why { margin: 0; font-size: 11px; color: var(--color-fg); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st .recgrid .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.st .recgrid .acts .btn { padding: 2px 8px; font-size: 11px; }
@media (max-width: 1100px) { .st .recgrid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; } .st .recgrid li { scroll-snap-align: start; } }
