/* AskMyGrants AI, beta. Din 3 dec 2026 în tiparele Claude Code (cererea lui Radu: „vreau să furăm design pattern-urile de aici”):
   suprafețe neutre, linii fine negru 8-10%, text negru 90% / 70% / 58%, butonul principal închis, butoanele secundare fără culoare,
   colțuri de 8 px la controale și 12-14 px la cutii, albastrul (#257DE0) doar la focus și la linkurile din text.
   Valorile sunt cele citite pe 3 dec din claude.ai/code (tokenurile --cds-*), cu o abatere cerută de Radu: în locul albului pur,
   gri foarte deschis (#F9F9F9 pagina, #FCFCFC cutiile). Fontul: al sistemului (Anthropic Sans nu e liber); Sora rămâne doar în numele din antet.
   Paleta de dinainte (albastrul UE al siglei C1, 2 dec 2026) e în git, la da2c6e2. */

@font-face { font-family: "Sora"; src: url("/static/sora-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap;
             unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand-600: #1A1A1A; --brand-500: #257DE0; --brand-400: rgba(0, 0, 0, .22); --brand-050: rgba(0, 0, 0, .055);   /* fostul albastru: acum neutru; --brand-500 = focus */
  --brand-grad: #1A1A1A; --brand-grad-hover: #000;                                                                 /* butonul principal, ca „Got it” din Claude */
  --on-primary: #FCFCFC;
  --link: #1757AC;                                                                                                 /* text-accent din Claude, doar pentru linkuri în text */
  --gold: #FBB315; --gold-ink: #895902; --gold-soft: rgba(251, 179, 21, .16);
  --bg: #F9F9F9; --surface: #FCFCFC; --surface-2: #EFEFEF;                                                        /* pagina, cutiile, etichetele */
  --glass: #FCFCFC; --glass-2: #F4F4F4; --glass-border: rgba(0, 0, 0, .08);
  --pop: #FCFCFC;                                                                                                  /* meniuri și ferestre */
  --ink: #1A1A1A; --ink-2: #474747; --ink-3: #6B6B6B;                                                              /* 16,6 / 9,3 / 5,2 :1 pe #FCFCFC */
  --line: rgba(0, 0, 0, .1); --line-2: rgba(0, 0, 0, .06);
  --hover: rgba(0, 0, 0, .045); --active: rgba(0, 0, 0, .075);
  --bar: #6B6B6B;
  --ok: #006C10; --ok-bg: rgba(16, 161, 34, .12); --warn: #895902; --warn-bg: rgba(251, 179, 21, .16); --danger: #A42528; --danger-bg: rgba(220, 60, 61, .10);
  --info: #474747; --info-bg: rgba(0, 0, 0, .05);
  --warm: #B85A3A;                                                                                                 /* cercul contului */
  --fb-bg: #FCEBC6; --fb-ink: #6E4A00; --fb-line: rgba(176, 116, 0, .30);                                          /* butonul de feedback: galben-portocaliu deschis */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04); --shadow-md: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .08);
  --radius: 12px; --radius-sm: 8px; --r-box: 14px;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wash: #F9F9F9;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand-600: #EDEDED; --brand-500: #6AABF1; --brand-400: rgba(255, 255, 255, .25); --brand-050: rgba(255, 255, 255, .07);
    --brand-grad: #EDEDED; --brand-grad-hover: #FFFFFF; --on-primary: #191919;
    --link: #6AABF1;
    --gold-ink: #E49C06; --gold-soft: rgba(251, 179, 21, .12);
    --bg: #191919; --surface: #1F1F1F; --surface-2: #2A2A2A;
    --glass: #1F1F1F; --glass-2: #242424; --glass-border: rgba(255, 255, 255, .08);
    --pop: #2B2B2B;
    --ink: #EDEDED; --ink-2: #C4C4C4; --ink-3: #9A9A9A;
    --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .07);
    --hover: rgba(255, 255, 255, .05); --active: rgba(255, 255, 255, .09);
    --bar: #A8A8A8;
    --ok: #53C556; --ok-bg: rgba(16, 161, 34, .16); --warn: #E49C06; --warn-bg: rgba(251, 179, 21, .12); --danger: #F49090; --danger-bg: rgba(220, 60, 61, .18);
    --info: #C4C4C4; --info-bg: rgba(255, 255, 255, .06);
    --warm: #C96A49;
    --fb-bg: #3A2F17; --fb-ink: #F2C94C; --fb-line: rgba(251, 179, 21, .30);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow-md: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, .32), 0 2px 6px rgba(0, 0, 0, .2);
    --wash: #191919;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font-body); color: var(--ink-2); background: var(--wash); background-color: var(--bg);
       background-attachment: fixed; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.01em; margin: 0; font-optical-sizing: auto; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 32px;
          background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--glass-border);
          backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: "Sora", var(--font-body); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
/* eticheta „beta” din antet: aurie, ca pe landing („Beta · in testing · access by request”) */
.brand + .pill { color: var(--gold-ink); background: var(--gold-soft); box-shadow: inset 0 0 0 1px rgba(255, 204, 0, .45); }
.se-trad { color: var(--brand-600); }
.pill { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-600);
        background: var(--brand-050); border-radius: 8px; padding: 3px 9px; }

.card { background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--radius); box-shadow: var(--shadow-md); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px;
       border-radius: var(--radius-sm); border: 1px solid transparent; font: 700 15px/1 var(--font-body); cursor: pointer; color: var(--ink-2); }
.btn.primary { background: var(--brand-grad); color: #fff; }
.btn.primary:hover { background: var(--brand-grad-hover); }
.btn.ghost { background: var(--glass-2); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand-400); color: var(--brand-600); }

input, select, textarea { font: 16px var(--font-body); color: var(--ink); background: var(--glass-2); border: 1px solid var(--line);
       border-radius: 12px; min-height: 44px; padding: 0 14px; }
input::placeholder { color: var(--ink-3); }

.tag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 8px;
       background: var(--surface-2); color: var(--ink-3); white-space: nowrap; }
.tag.open { background: var(--ok-bg); color: var(--ok); }
.tag.soon { background: var(--warn-bg); color: var(--warn); }
.tag.nou { background: var(--info-bg); color: var(--info); }
.tag.arc { background: var(--brand-050); color: var(--brand-600); }
.mute { color: var(--ink-3); }
.small { font-size: 14px; }

/* ---------- layout ---------- */
/* desktop: tot ecranul (cerința lui Radu, 31 oct 2026); textele lungi își păstrează lățimea de citit (ch) */
.wrap { max-width: none; margin: 0; padding: 20px 32px 8px; }
.eyebrow { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); }
.hero { padding: 18px 2px 14px; }
.hero h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; font-weight: 600; }
.center { text-align: center; }
.foot { margin: 12px auto 0; padding: 0 20px 20px; color: var(--ink-3); font-size: 13.5px; text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 8px; font: 600 14px var(--font-body);
        color: var(--ink-2); background: var(--glass-2); border: 1px solid var(--line); cursor: pointer; white-space: nowrap; }
.chip:hover { text-decoration: none; border-color: var(--brand-400); color: var(--brand-600); }
.chip i { font-style: normal; font-weight: 600; color: var(--ink-3); }
.chip.on { background: var(--brand-050); border-color: var(--brand-400); color: var(--brand-600); }
.chip.on i { color: var(--brand-600); }

.filters { padding: 16px; display: grid; gap: 12px; }
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; }
.more summary { cursor: pointer; font-weight: 600; color: var(--ink-2); list-style: none; display: inline-flex; gap: 6px; align-items: center; min-height: 36px; }
.more summary::before { content: "▸"; transition: transform .15s; }
.more[open] summary::before { transform: rotate(90deg); }
.frow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.frow > span { width: 70px; font-size: 14px; color: var(--ink-2); }
.frow select { min-width: 220px; }

.listhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 18px 2px 10px; }
.listhead p { margin: 0; color: var(--ink-2); }
.listhead b { color: var(--ink); font-family: var(--font-display); font-size: 18px; }
.clear { font-size: 14px; font-weight: 600; }

.calls { display: grid; gap: 10px; }
.call { display: grid; grid-template-columns: minmax(0, 1fr) 210px 190px 96px; gap: 16px; align-items: center; padding: 16px 18px;
        color: var(--ink-2); box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.call:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.call h3 { font-size: 17px; line-height: 1.35; font-weight: 500; margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag.act { background: var(--ink); color: var(--surface); }
@media (prefers-color-scheme: dark) { .tag.act { background: var(--ink-2); color: var(--bg); } }
.call code { display: block; margin-top: 8px; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-3); overflow-wrap: anywhere; }
.c-bud { font-size: 14px; color: var(--ink-2); }
.c-tri { display: grid; gap: 4px; font-size: 14px; }
.due { display: grid; line-height: 1.25; }
.due b { color: var(--ink); font-size: 15px; }
.due span { font-size: 14px; color: var(--ink-2); }
.due.warm b { color: var(--warn); }
.due.hot b, .due.late b { color: var(--danger); }
.due.soon b { color: var(--brand-600); }
.c-due { display: grid; gap: 8px; }
.when { display: grid; gap: 1px; }
.when small { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.c-due .due { display: flex; flex-wrap: wrap; gap: 0 6px; align-items: baseline; }
.c-due .due b { font-size: 14px; }
.prog { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--brand-grad); border-radius: 99px; transition: width .25s; }
.empty { padding: 28px; text-align: center; }
.empty h3 { margin-bottom: 6px; }

/* ---------- call page ---------- */
.crumbs { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 2px 12px; font-weight: 600; }
.crumbs span { display: flex; gap: 16px; }
.callhead { padding: 22px; }
.callhead h1 { font-size: clamp(22px, 3.2vw, 30px); line-height: 1.2; font-weight: 600; margin-bottom: 16px; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.fact { background: var(--glass-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; display: grid; gap: 2px; }
.fact > span { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.fact > b { color: var(--ink); font-size: 15px; }
.fact .due b { font-size: 15px; }
.arcnote { margin: 14px 0 0; font-size: 14px; }
.eo { margin-top: 14px; font-size: 15.5px; line-height: 1.7; max-width: 72ch; }
.eo p { margin: 0 0 6px; }
.eo summary { cursor: pointer; color: var(--brand-600); font-weight: 600; }

.progress { position: sticky; top: 60px; z-index: 10; margin: 14px 0 6px; padding: 12px 16px; display: grid; gap: 10px;
             background: var(--surface); box-shadow: 0 0 0 8px var(--bg), var(--shadow-sm); }
.p-top { display: flex; align-items: center; gap: 14px; }
.p-top > span:first-child { white-space: nowrap; color: var(--ink-2); }
.p-top b { color: var(--ink); }
.p-top .prog { flex: 1; }
.p-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.p-tabs a { font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: var(--brand-050); }
.p-tabs a:hover { text-decoration: none; }
.p-tabs i { font-style: normal; color: var(--ink-2); margin-left: 4px; }
.hint { font-size: 14.5px; color: var(--ink-2); margin: 10px 2px 0; }
h2 { font-size: 18px; margin: 24px 2px 10px; scroll-margin-top: 150px; }

.cands { display: grid; gap: 10px; }
.cand.busy { opacity: .6; pointer-events: none; }
.cand.is-da { border-left-color: var(--ok); }
.cand.is-poate { border-left-color: var(--warn); }
.cand.is-nu { border-left-color: var(--danger); }
.rank { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font: 700 13px var(--font-display);
        color: var(--brand-600); background: var(--brand-050); }
.cand h3 { font-family: var(--font-body); letter-spacing: 0; font-size: 15.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.meta { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.ev b { color: var(--ink); }
.ptitle { color: var(--ink-2); flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg button { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
              font: 600 15px var(--font-body); cursor: pointer; }
.seg button:hover { border-color: var(--brand-400); }
.seg button.on { color: #fff; }
.seg .v-da.on { background: var(--ok); border-color: var(--ok); }
.seg .v-poate.on { background: var(--warn); border-color: var(--warn); }
.seg .v-nu.on { background: var(--danger); border-color: var(--danger); }
@media (prefers-color-scheme: dark) { .seg button.on { color: var(--bg); } }
.cand.is-da .why .chips, .cand.is-poate .why .chips { display: none; }
.why .chip { min-height: 32px; padding: 0 10px; font-size: 14px; }
.why input { width: 100%; min-height: 40px; }
.saved { font-size: 14px; min-height: 18px; }
.saved:empty { display: none; }
.saved.ok { color: var(--ok); }
.saved.err { color: var(--danger); }


/* ---------- v2: call sheet, reasoning, profile, search (docs/propunere-v2-explicabil.md) ---------- */
.fisa { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.frule { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 10px 12px; display: grid; gap: 2px; }
.frule > span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.frule > b { color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.frule small { font-size: 13px; color: var(--ink-3); }
.switch { margin: 8px 0 0; }
.linkbtn { background: none; border: 0; padding: 0; font: 600 14px var(--font-body); color: var(--brand-600); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 2px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14.5px; }


.fit { display: inline-grid; place-items: center; min-width: 46px; height: 24px; padding: 0 8px; border-radius: 7px;
       font: 700 12.5px var(--font-body); letter-spacing: .02em; flex: none; }
.fit-high { color: var(--ok); background: var(--ok-bg); }
.fit-med { color: var(--warn); background: var(--warn-bg); }
.fit-low { color: var(--ink-2); background: var(--surface-2); }
.fitrow { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0; font-size: 14.5px; }
.rol { font-weight: 700; color: var(--ink); }
.terms { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.term { font-size: 13px; padding: 1px 8px; border-radius: 8px; border: 1px solid var(--brand-400); color: var(--ink); background: var(--surface); }
.term.adj { border-style: dashed; border-color: var(--line); color: var(--ink-2); }
.because { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 75ch; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand-500); border-radius: 99px; }
.comp small { color: var(--ink-3); font-size: 13.5px; line-height: 1.4; }
.tag.geo { color: var(--info); background: var(--info-bg); }
.tag.sup { color: var(--warn); background: var(--warn-bg); }
.meta .tag { margin-left: 4px; vertical-align: 1px; }
.orglink { color: inherit; }
.orglink:hover { color: var(--brand-600); }

.supbox { margin-top: 18px; }
.supbox > summary { cursor: pointer; list-style: none; }
.supbox > summary::-webkit-details-marker { display: none; }
.supbox > summary h2 { display: inline; }
.supbox > summary h2::after { content: " ▾"; color: var(--brand-600); font-size: 14px; }
.gone { margin: 8px 2px 0; font-size: 14.5px; }
.gone summary { cursor: pointer; color: var(--ink-3); font-weight: 600; }
.gone ul { margin: 6px 0 0; padding-left: 18px; }
.gone li { display: flex; gap: 12px; align-items: baseline; }
.gone form { margin: 0; }

.searchbox { margin-top: 26px; padding: 18px 20px; box-shadow: var(--shadow-sm); scroll-margin-top: 150px; }
.searchbox h2 { margin: 0 0 4px; }
.searchbox h3 { font-family: var(--font-body); font-size: 14px; margin: 16px 0 6px; letter-spacing: .02em; }
.hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 10px 12px;
       border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--glass-2); }
.hit .meta { margin: 0; }
.hit form { margin: 0; }

.panel { position: fixed; inset: 0; z-index: 40; background: rgba(12, 17, 40, .32); display: flex; justify-content: flex-end; }
.panel[hidden] { display: none; }
.panel-in { width: min(560px, 100%); height: 100%; overflow-y: auto; border-radius: var(--radius) 0 0 var(--radius); padding: 22px 24px 30px; position: relative; }
.panel-x { position: sticky; top: 0; float: right; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
           background: var(--surface); color: var(--ink); font-size: 16px; cursor: pointer; }
.panel-body h3, .profile h3 { font-family: var(--font-body); font-size: 14px; letter-spacing: .02em; margin: 18px 0 6px; color: var(--ink); }
.panel-body p, .profile p { font-size: 14.5px; margin: 0 0 6px; }
.ptitle-h { font-size: 22px; line-height: 1.25; margin: 4px 0 12px; overflow-wrap: anywhere; }
.pfit { border: 1px solid var(--line-2); background: var(--glass-2); border-radius: var(--radius-sm); padding: 4px 14px 10px; margin-bottom: 12px; }
.pfit .term { margin: 0 4px 4px 0; display: inline-block; }
.ev.plain { margin-left: 0; }
.profile { padding: 22px; }
body.locked { overflow: hidden; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .wrap { padding: 14px 16px 8px; }
  .topbar { padding: 10px 16px; }
  .call { grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px; }
  .c-main { grid-column: 1 / -1; }
  .call code { order: 9; }
  .call h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .c-tri { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; }
  .hit { grid-template-columns: auto minmax(0, 1fr); }
  .hit form, .hit > .mute { grid-column: 1 / -1; }
  .panel-in { width: 100%; border-radius: 0; padding: 16px; }
  .fisa { grid-template-columns: 1fr; }
  .ptitle { flex-basis: 100%; }
  .seg button { min-height: 48px; }
  .progress { top: 58px; }
  .frow > span { width: 100%; }
  .frow select { flex: 1; min-width: 0; }
  .callhead { padding: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* repeated cards sit flatter than the header blocks */
.call.card, .cand.card { box-shadow: var(--shadow-sm); }

/* ---------- v3: meniul de sus și „Firmele mele” ---------- */
.topnav { margin-left: auto; display: flex; gap: 4px; }
.topnav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.topnav a:hover { text-decoration: none; color: var(--brand-600); background: var(--glass-2); }
.topnav a[aria-current="page"] { color: var(--brand-600); background: var(--brand-050); }
.lead { max-width: 75ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin: 8px 0 0; }
.firms { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.firm { display: grid; gap: 6px; padding: 16px 18px; color: inherit; box-shadow: var(--shadow-sm); height: 100%; }
.firm:hover { text-decoration: none; border-color: var(--brand-400); }
.firm h3 { font-size: 17px; }
.firm p { margin: 0; }
.fdesc { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 75ch; white-space: pre-line; }
.callhead h3.sub { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin: 18px 0 6px; }
.addfirm { margin-top: 22px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.addfirm h2 { margin-bottom: 8px; }
details.searchbox > summary { cursor: pointer; list-style: none; }
details.searchbox > summary::-webkit-details-marker { display: none; }
details.searchbox > summary h2 { display: inline; }
details.searchbox > summary h2::after { content: " ▾"; color: var(--brand-600); font-size: 14px; }
.fform { display: grid; gap: 12px; max-width: 760px; margin-top: 10px; }
.fform label { display: grid; gap: 4px; }
.fform label > span { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.fform label i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.fform input, .fform select, .fform textarea { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); }
.fform textarea { resize: vertical; line-height: 1.5; }
.fform .btn { justify-self: start; }
.frow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) {
  .topnav a { padding: 6px 8px; font-size: 13.5px; }
  .topbar { gap: 8px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .topbar .pill { display: none; }
  .frow2 { grid-template-columns: 1fr; }
  .firms { grid-template-columns: 1fr; }
  .fform .btn { justify-self: stretch; }
}

/* ---------- v4: „Pe scurt” scris de AI, notele, recalcularea ---------- */
/* v4.1 „Pe scurt” (31 oct 2026): textul în stânga, acțiunile într-un panou în dreapta; pe ecran îngust panoul vine dedesubt.
   Textul de citit e la 17px cu interlinie 1,65 și cel mult ~68 de caractere pe rând (45-75 e plaja recomandată; WCAG 1.4.8: ≤ 80, interlinie ≥ 1,5);
   studiile Rello & Pielot (2013, 2016) arată că înțelegerea crește cu mărimea textului. Contrast: ink-2 pe hârtie 10,5:1, fără negru pur. */
.rezumat { margin-top: 14px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; overflow: hidden; }
.rz-text { padding: 24px 32px 26px; min-width: 0; }
.rz-act { padding: 22px 24px; background: var(--glass-2); border-left: 1px solid var(--line-2); display: grid; align-content: start; gap: 18px; }
.rezumat .eyebrow { color: var(--brand-600); }
.rz-meta { margin: 0 0 14px; font-size: 14px; color: var(--ink-3); }
.idee { font-family: var(--font-body); font-weight: 500; font-size: clamp(19px, 1.75vw, 22px); line-height: 1.5; color: var(--ink); margin: 0 0 18px; max-width: 38em; }
.puncte { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.puncte li { display: grid; grid-template-columns: 150px minmax(0, 68ch); gap: 4px 18px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.puncte .et { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-600); padding-top: 5px; line-height: 1.4; }
.src { display: inline; margin-left: 4px; }
.src summary { display: inline; cursor: pointer; font-size: 14px; color: var(--ink-3); text-decoration: underline dotted; text-underline-offset: 3px; list-style: none; }
.src summary::-webkit-details-marker { display: none; }
.src q { display: block; margin: 6px 0 2px; padding: 8px 12px; border-left: 3px solid var(--brand-400); background: var(--surface); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); quotes: "„" "”"; }
.detaliu { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.detaliu summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--brand-600); }
.detaliu p { font-size: 16px; line-height: 1.7; max-width: 72ch; color: var(--ink-2); }
.nota { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--brand-050); border: 1px solid var(--line-2); max-width: 72ch; }
.nota b { font-size: 13px; color: var(--brand-600); }
.nota p { margin: 2px 0 0; font-size: 16px; line-height: 1.6; white-space: pre-line; color: var(--ink); }
.act + .act { border-top: 1px solid var(--line-2); padding-top: 18px; }
.act h3 { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.act .hint { margin: 4px 0 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.act form { display: grid; gap: 8px; }
.act textarea { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); font-size: 15px; line-height: 1.5; resize: vertical; }
.act .btn { justify-self: start; }
.recalc label { display: grid; gap: 4px; }
.recalc label > span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.recalc label i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.rnote { margin-top: 8px; }
form.inline { display: inline; margin: 0; }
.schimbari { margin-top: 12px; padding: 12px 16px; border-left: 4px solid var(--brand-400); font-size: 15px; line-height: 1.6; }
.schimbari p { margin: 0; }
@media (max-width: 980px) {
  .rezumat { grid-template-columns: 1fr; }
  .rz-act { border-left: 0; border-top: 1px solid var(--line-2); }
}
@media (max-width: 760px) {
  .rz-text { padding: 18px 16px 20px; }
  .rz-act { padding: 18px 16px; }
  .puncte li { grid-template-columns: 1fr; font-size: 16.5px; }
  .act .btn { justify-self: stretch; }
}
.caps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.caps li { font-size: 14px; }
.warn { border-left: 4px solid var(--danger); }
/* termenul într-un rând de meta (lista de apeluri a unei firme) */
.meta .due { display: inline; }
.meta .due b, .meta .due span { font-size: inherit; }
.meta .due span::before { content: " · "; }

/* Dictation (31 oct 2026): microphone next to the feedback fields; the browser transcribes, the text lands in the field */
.dict { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 8px; }
.mic { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 8px;
       border: 1px solid var(--line); background: var(--glass-2); color: var(--ink-2); font: 600 14px var(--font-body); cursor: pointer; }
.mic:hover { border-color: var(--brand-400); color: var(--brand-600); }
.mic-ico { width: 14px; height: 14px; background: currentColor;
           -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3' fill='black'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E") center / contain no-repeat;
                   mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3' fill='black'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E") center / contain no-repeat; }
.mic.rec { background: var(--danger); border-color: var(--danger); color: #fff; }
.mic.rec .mic-ico { animation: mic-puls 1.2s ease-in-out infinite; }
@keyframes mic-puls { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mic.rec .mic-ico { animation: none; } }
@media (prefers-color-scheme: dark) { .mic.rec { color: var(--bg); } }
.mic-st { font-size: 14px; color: var(--ink-3); }
.mic-st:empty { display: none; }
.mic-st.err { color: var(--danger); }
.why .dict { margin: 0; }

/* „Pe scurt” smart (31 oct 2026, seara): rescrierea lângă notă, termenii de recalculare ca etichete bifabile */
.act .btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.act .btnrow .btn { justify-self: auto; }
.act .cost { color: var(--ink-3); margin: 0; }
.act .pending { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--brand-400); border-radius: var(--radius-sm); background: var(--surface);
                display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.act .pending p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.act .rnote { margin: 0 0 10px; color: var(--ink-2); }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { position: relative; display: inline-flex; cursor: pointer; }
.tchip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tchip span { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 11px; border-radius: 8px; font-size: 14px;
              border: 1px dashed var(--line); color: var(--ink-2); background: var(--surface); }
.tchip span::before { content: "+"; font-weight: 700; color: var(--ink-3); }
.tchip input:checked + span { border-style: solid; border-color: var(--brand-400); background: var(--brand-050); color: var(--ink); }
.tchip input:checked + span::before { content: "✓"; color: var(--brand-600); }
.tchip input:focus-visible + span { outline: 2px solid var(--brand-400); outline-offset: 2px; }
.recalc input[name=termeni] { width: 100%; background: var(--surface); }
.btn[data-recalc]:disabled { opacity: 1; cursor: default; color: var(--ink-3); background: transparent; border-style: dashed; }
@media (max-width: 760px) { .act .btnrow .btn { flex: 1 1 auto; } }

/* ---------- Feedback (31 oct 2026): butonul din colț, panoul, selectarea zonei, lista și conversația ---------- */
.fb-fab[hidden] { display: none; }
.fb-ico { width: 18px; height: 18px; background: currentColor;
          -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E") center / contain no-repeat;
                  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.fb { position: fixed; right: 20px; bottom: 20px; z-index: 45; width: min(400px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto;
      padding: 16px 18px 18px; box-shadow: 0 18px 50px rgba(18, 24, 51, .20); }
.fb[hidden] { display: none; }
.fb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.fb-head h2 { font-size: 19px; }
.fb-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass-2); color: var(--ink-2); cursor: pointer; font-size: 15px; }
.fb-form { display: grid; gap: 8px; }
.fb-lab { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.fb textarea { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); line-height: 1.5; resize: vertical; background: var(--glass-2); }
.fb .dict { margin: 0; }
.fb-shot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fb-thumb { display: inline-flex; align-items: center; gap: 10px; }
.fb-thumb[hidden] { display: none; }
.fb-thumb img { max-width: 120px; max-height: 70px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; }
.fb-note { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.fb-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 2px; }
.fb-st { font-size: 14px; color: var(--ink-3); }
.fb-st.ok { color: var(--ok); } .fb-st.err { color: var(--danger); }
.fb-sel { position: fixed; inset: 0; z-index: 60; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.fb-sel[hidden] { display: none; }
.fb-box { position: absolute; border: 2px solid #fff; border-radius: 4px; outline: 1px solid var(--brand-600); box-shadow: 0 0 0 100vmax rgba(12, 17, 40, .45); pointer-events: none; }
.fb-sel-hint { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 8px; max-width: calc(100vw - 32px);
               background: var(--surface); color: var(--ink); font-size: 14px; box-shadow: var(--shadow-md); text-align: center; pointer-events: none; }
body.fb-selecting { overflow: hidden; }
/* statusuri */
.tag.st-nou { background: var(--info-bg); color: var(--info); }
.tag.st-vazut { background: var(--surface-2); color: var(--ink-2); }
.tag.st-implementat { background: var(--ok-bg); color: var(--ok); }
.tag.st-nu { background: var(--danger-bg); color: var(--danger); }
.fb-chips { margin: 4px 0 14px; }
.fbl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 980px; }
.fbi { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px; color: inherit; box-shadow: var(--shadow-sm); }
.fbi:hover { text-decoration: none; border-color: var(--brand-400); }
.fbi.necitit { border-left: 4px solid var(--brand-600); }
.fbi-img { height: 92px; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.fbi-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.fb-noimg { font-size: 13px; color: var(--ink-3); }
.fbi-txt p { margin: 0 0 4px; }
.fbi-t { font-size: 15.5px; color: var(--ink); line-height: 1.5; }
.dot { font-size: 12.5px; color: var(--brand-600); margin-left: 6px; }
.fb-one { padding: 20px 24px; max-width: 980px; }
.fb-text { font-size: 17px; line-height: 1.65; color: var(--ink); white-space: pre-line; max-width: 68ch; margin: 10px 0; }
.fb-poze { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.fb-poze figure { margin: 0; }
.fb-poze figcaption { font-size: 13px; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }
.fb-poze img { display: block; width: 100%; max-height: 520px; object-fit: contain; object-position: top left; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.fb-act { margin-top: 16px; padding: 18px 22px; max-width: 980px; box-shadow: var(--shadow-sm); }
.fb-act h2 { font-size: 20px; margin-bottom: 10px; }
.fb-stare, .fb-rasp { display: grid; gap: 10px; }
.fb-stare label, .fb-rasp label { display: grid; gap: 4px; }
.fb-stare label > span, .fb-rasp label > span { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.fb-stare label i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.fb-act textarea { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); line-height: 1.5; resize: vertical; }
.fb-act .btn { justify-self: start; }
.st-chips .tchip span::before { content: "○"; }
.st-chips .tchip input:checked + span::before { content: "●"; }
.fbt { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.fbm { max-width: 72ch; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--glass-2); border: 1px solid var(--line-2); }
.fbm.eu { background: var(--brand-050); margin-left: auto; }
.fbm p { margin: 0; }
.fbm-cine { font-size: 13.5px; margin-bottom: 2px !important; }
.fbm-text { font-size: 16px; line-height: 1.6; color: var(--ink); white-space: pre-line; }
.fbm.sys { background: none; border: 0; padding: 2px 4px; font-size: 14px; color: var(--ink-2); }
.fbm-motiv { margin-top: 4px !important; padding-left: 10px; border-left: 3px solid var(--line); }
@media (max-width: 760px) {
  .fb { right: 8px; left: 8px; bottom: 8px; width: auto; max-height: calc(100vh - 16px); }
  .fbi { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .fbi-img { height: 72px; }
  .fb-one, .fb-act { padding: 16px; }
  .fb-act .btn { justify-self: stretch; }
}
/* three menu items do not fit next to the full name on a phone: below 480px the header keeps the mark, the name stays for screen readers */
@media (max-width: 480px) {
  .brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand img { width: 30px; height: 30px; }
  .topnav { gap: 2px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }   /* 5 linkuri (3 nov 2026): derulează, nu lărgește pagina */
  .topnav::-webkit-scrollbar { display: none; }
  .topbar > .pill { display: none; }
}

/* ---------- E (3 nov 2026): note și preferințe private pe organizații ---------- */
.otools { display: grid; gap: 6px; }
.orow { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.otools form { margin: 0; }
.obtn { min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 600 13.5px var(--font-body); cursor: pointer; }
.obtn:hover { border-color: var(--brand-400); }
.obtn.o-favourite.on { color: var(--warn); background: var(--warn-bg); border-color: var(--warn); }
.obtn.o-avoid.on { color: var(--ink); background: var(--surface-2); border-color: var(--ink-3); }
.onota summary { cursor: pointer; list-style: none; min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); display: inline-flex; align-items: center; font: 600 13.5px var(--font-body); color: var(--ink-2); }
.onota summary::-webkit-details-marker { display: none; }
.onota[open] { flex-basis: 100%; }
.onota[open] summary { margin-bottom: 6px; }
.onota textarea { width: 100%; min-height: 70px; resize: vertical; margin-bottom: 6px; }
.osaved { font-size: 13.5px; align-self: center; } .osaved:empty { display: none; }
.osaved.ok { color: var(--ok); } .osaved.err { color: var(--danger); }
.onote { display: none; margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); }
.onote:has(.otext:not(:empty)), .is-avoid .onote, .is-fav .onote { display: block; }
.otools .onote { margin-left: 0; }
.omark { display: none; font-size: 12.5px; font-weight: 700; padding: 1px 8px; border-radius: 8px; margin-right: 8px; }
.is-avoid .o-avoid { display: inline-block; color: var(--ink); background: var(--surface-2); border: 1px solid var(--ink-3); }
.is-fav .o-fav { display: inline-block; color: var(--warn); background: var(--warn-bg); }
.cand.is-avoid { background: var(--surface-2); opacity: .78; }
.cand.is-avoid h3, .cand.is-avoid .meta { color: var(--ink-2); }
.ohist ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14.5px; }
.ohist h3 { font-size: 14px; margin: 6px 0 0; }
.otools[data-ohost] { margin: 8px 0 14px; }

/* căutarea pe înțeles (4 nov 2026): linia de transparență sub căsuța de căutare */
.searched { margin: 6px 2px 0; line-height: 1.5; }
.searched b { font-weight: 600; color: var(--ink, #222); }
.searched a { white-space: nowrap; }

/* agentul de căutare (4 nov 2026): caseta de propoziție și răspunsul */
.search-ask { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-ask label { flex: 1 1 100%; display: block; margin: 0; }
.search-ask textarea { width: 100%; resize: vertical; min-height: 44px; font: inherit; }
.search-ask > button { margin-left: auto; }
.search-ask .dict { margin: 0; flex: 0 1 auto; }
.agent { padding: 16px; margin: 14px 0; display: grid; gap: 10px; }
.searchbox .agent { padding: 0; }
.agent-wait { margin: 0; color: var(--ink-2); }
.agent-wait::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--brand-400); animation: mic-puls 1.2s ease-in-out infinite; }
.agent-int, .agent-q { margin: 0; }
.agent-q { font-weight: 600; }
.agent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.agent-rez { padding: 12px; border: 1px solid var(--glass-border); border-radius: 12px; display: grid; gap: 4px; min-width: 0; }
.agent-rez form { margin: 4px 0 0; }
.agent-top { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.agent-top a { min-width: 0; overflow-wrap: anywhere; }
.agent-meta { margin: 0; font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.agent-meta code { overflow-wrap: anywhere; }
.agent-why { margin: 2px 0 0; }
.agent-nu { margin: 0; font-size: 14px; color: var(--warn); }
.agent-cit { margin: 4px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--brand-400); font-size: 13px; color: var(--ink-2); font-style: italic; }
.agent-foot { margin: 0; }
.agent-sub { font-size: 16px; margin: 18px 0 2px; }
.agent-meta .when { display: inline-flex; gap: 5px; align-items: baseline; flex-wrap: wrap; }
.agent-cuv summary { cursor: pointer; }

/* bara lipită de antet, panoul unic și pașii agentului (4 nov 2026, feedbackul lui Radu: folosit 8 ore pe zi) */
.stick { position: sticky; top: 0; z-index: 20; }
.stick .topbar { position: static; }
.stick:has(.topf) .topbar { border-bottom: 0; padding-bottom: 6px; }
.topf { padding: 0 32px 10px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
       border-bottom: 1px solid var(--glass-border); display: grid; gap: 8px; }
.bar-ask { display: flex; gap: 8px; align-items: flex-start; }
.bar-ask label { flex: 1; min-width: 0; margin: 0; }
.bar-ask textarea, .ai-raf textarea { display: block; width: 100%; min-height: 40px; max-height: 104px; padding: 8px 14px; resize: none; font: 15px/1.5 var(--font-body); border-radius: 10px; }
.bar-ask .btn { min-height: 40px; padding: 0 18px; }
.bar-ask .dict, .ai-raf .dict { margin: 0; flex: none; }
.bar-ask .mic, .ai-raf .mic { min-height: 40px; width: 40px; padding: 0; justify-content: center; }
.bar-ask .mic-lab, .ai-raf .mic-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bar-ask .mic-st, .ai-raf .mic-st { font-size: 12.5px; max-width: 220px; line-height: 1.25; }
.bar-f { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 32px; }
.bar-f .chip { min-height: 32px; padding: 0 12px; font-size: 13.5px; }
.bar-sel { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.bar-sel select { height: 32px; min-height: 32px; width: auto; max-width: 190px; padding: 0 26px 0 12px; font: 600 13.5px var(--font-body); border-radius: 8px; color: var(--ink-2); }
.bar-sel select.on { background-color: var(--brand-050); border-color: var(--brand-400); color: var(--brand-600); }
.bar-end { margin-left: auto; display: flex; gap: 14px; align-items: baseline; font-size: 13.5px; }
.bar-nr b { color: var(--ink); font-weight: 700; }
.topf .searched { margin: 0; font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }
.p-nr { display: none; }

.lista { padding: 0; overflow: hidden; margin-top: 2px; }
.lista .calls { display: block; gap: 0; }
.lista .call, .aibox > .call { grid-template-columns: minmax(0, 1fr) 300px 170px 90px; gap: 6px 16px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); align-items: start;
                            box-shadow: none; transition: background .1s; scroll-margin-top: 130px; background: none; }
.lista .call:last-child { border-bottom: 0; }
.lista .call:hover { transform: none; box-shadow: none; background: var(--glass-2); }
.lista .call[hidden] { display: none; }
.lista .c-main { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; }
.lista .call h3 { flex: 1 0 100%; font-size: 16px; line-height: 1.35; margin: 0; color: var(--ink); }
.lista .call code { margin: 0; font-size: 12px; }
.lista .call .tag { font-size: 12px; padding: 1px 8px; }
.lista .c-due { gap: 2px; }
.lista .when { grid-template-columns: 62px minmax(0, 1fr); gap: 0 6px; align-items: baseline; }
.lista .when small { font-size: 11px; letter-spacing: .02em; }
.lista .c-due .due { line-height: 1.35; }
.lista .c-due .due b { font-size: 13.5px; font-weight: 600; }
.lista .c-due .due span { font-size: 12.5px; color: var(--ink-3); }
.lista .c-bud, .lista .c-tri { font-size: 13px; line-height: 1.4; }
.lista .empty { padding: 28px 18px; text-align: center; }
.p-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 14px 18px 8px; border-top: 1px solid var(--line); background: var(--glass-2); border-bottom: 1px solid var(--line-2); }
.p-sub h2 { margin: 0; font-size: 14px; font-weight: 700; font-family: var(--font-body); color: var(--ink); }
.ai-cuv summary { cursor: pointer; }
.ai-cuv .searched { margin: 4px 0 0; font-size: 13px; }

.aibox:empty { display: none; }
.aibox > .ai-int, .aibox > .ai-steps { padding: 0 18px; }
.aibox > .ai-int { padding-top: 14px; }
.aibox > .ai-steps { padding-top: 10px; padding-bottom: 14px; }
.ai-head { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: var(--brand-050); background: color-mix(in srgb, var(--brand-050) 45%, var(--surface)); }
.ai-mark { flex: none; font: 700 11.5px var(--font-body); letter-spacing: .04em; color: var(--surface); background: var(--brand-600); border-radius: 6px; padding: 3px 7px; height: fit-content; margin-top: 2px; }
.ai-int { margin: 0; color: var(--ink); }
.ai-how { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; }
.ai-urme { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-3); }
.ai-urme span { display: inline-block; margin: 0 4px; padding: 0 8px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); }
.ai-steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 13px; color: var(--ink-3); }
.ai-steps li { display: inline-flex; align-items: center; gap: 6px; }
.ai-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line); background: none; }
.ai-steps li.now { color: var(--ink); font-weight: 600; }
.ai-steps li.now::before { background: var(--brand-400); border-color: var(--brand-400); animation: mic-puls 1.2s ease-in-out infinite; }
.ai-steps li.ok::before, .ai-steps.done li::before { content: "✓"; width: auto; height: auto; border: 0; color: var(--ok); font-weight: 700; font-size: 13px; line-height: 1; }
.ai-why { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ai-why .fit { grid-row: 1; align-self: start; }
.ai-why p, .ai-why blockquote { grid-column: 2; margin: 0; }
.ai-why p b, .ai-why blockquote b { font-weight: 700; margin-right: 3px; font-style: normal; }
.ai-why .ai-nu { color: var(--warn); }
.ai-why blockquote { font-size: 13px; color: var(--ink-3); font-style: italic; }
.ai-out { padding: 10px 18px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.ai-out summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.ai-out ul { list-style: none; margin: 8px 0 2px; padding: 0; display: grid; gap: 6px; }
.ai-out li { display: grid; gap: 0; line-height: 1.4; }
.ai-out li span { font-size: 13px; color: var(--ink-3); }
.ai-next { padding: 12px 18px; display: grid; gap: 8px; border-bottom: 1px solid var(--line-2); }
.ai-next p { margin: 0; }
.ai-q { font-weight: 600; color: var(--ink); }
.ai-raf { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.ai-raf label { flex: 1; min-width: 0; margin: 0; }
.ai-raf .btn { min-height: 40px; }
.ai-err, .ai-gol { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.agent-why b, .agent-nu b { font-weight: 700; margin-right: 3px; }

@media (max-width: 1100px) {
  .lista .call, .aibox > .call { grid-template-columns: minmax(0, 1fr) 270px 120px; }
  .lista .c-tri { display: none; }
}
@media (max-width: 760px) {
  .topf { padding: 0 16px 8px; gap: 6px; }
  .bar-ask textarea { font-size: 16px; }
  .bar-ask textarea:not(:focus) { height: 40px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bar-f { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
  .bar-f::-webkit-scrollbar { display: none; }
  .bar-f .chip { flex: none; }
  .bar-sel { flex-wrap: nowrap; flex: none; }
  .bar-sel select { flex: none; }
  .bar-end { order: -1; margin: 0; flex: none; }
  .bar-end:not(:has(a)) { display: none; }
  .bar-nr { display: none; }
  .p-nr { display: block; margin: 0 2px 8px; }
  .wrap { padding-top: 10px; }
  .lista .call, .aibox > .call { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .lista .c-main, .lista .c-due { grid-column: 1; }
  .lista .c-bud { display: block; grid-column: 1; }
  .ai-head, .ai-next, .ai-out, .p-sub { padding-left: 14px; padding-right: 14px; }
  .ai-why { grid-template-columns: minmax(0, 1fr); }
  .ai-why .fit { justify-self: start; grid-row: auto; }
  .ai-why p, .ai-why blockquote { grid-column: 1; }
}

/* tooltipuri (decizia din 4 nov 2026): pagina arată ideea principală, detaliile apar la cerere. Componenta e în app.js. */
.tip { position: fixed; left: 0; top: 0; z-index: 70; width: max-content; max-width: min(340px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow-y: auto;
       padding: 9px 12px; border-radius: 10px; background: var(--ink); color: var(--surface); font: 500 13.5px/1.5 var(--font-body); white-space: pre-line;
       box-shadow: 0 10px 28px rgba(18, 24, 51, .28); }
.tip[hidden] { display: none; }
.tip.rich { max-width: min(520px, calc(100vw - 16px)); padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink-2); white-space: normal;
            box-shadow: 0 18px 50px rgba(18, 24, 51, .20); }
.tip h4 { margin: 0 0 10px; font: 700 15px var(--font-body); color: var(--ink); }
.tip b { color: var(--ink); font-weight: 700; }
.tip-legend { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.tip-legend li { display: grid; grid-template-columns: 124px 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.tip-legend li:first-child { padding-top: 0; border-top: 0; }
.tip-legend .tk { font-weight: 700; color: var(--ink); line-height: 1.35; }
.tip-legend .tk .fit { margin: 0 1px 3px 0; }
.tip-legend .term { display: inline; }
.tip-i { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 16px; height: 16px; margin: 0 0 0 2px; padding: 0; vertical-align: -2px;
         border: 1.5px solid currentColor; border-radius: 50%; background: none; color: var(--ink-3); opacity: .75; cursor: help; font: 700 10.5px/1 var(--font-body); letter-spacing: 0; text-transform: none;
         touch-action: manipulation; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.tip-i::before { content: "i"; }
.tip-i::after { content: ""; position: absolute; inset: -12px; }   /* țintă mai mare pentru deget */
.tip-i:hover, .tip-i[aria-describedby] { color: var(--brand-600); opacity: 1; }
.tip-link { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 28px; padding: 0 2px; border: 0; background: none; color: var(--ink-3); cursor: help;
            font: 600 13px var(--font-body); touch-action: manipulation; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.tip-link::before { content: "i"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: none; border: 1.5px solid currentColor; border-radius: 50%; font: 700 10.5px/1 var(--font-body); }
.tip-link:hover, .tip-link[aria-describedby] { color: var(--brand-600); }
[data-tip] { cursor: help; }
a[data-tip], select[data-tip] { cursor: pointer; }
.bar-ask > .tip-i { align-self: center; margin: 0 2px 0 0; }
@media (max-width: 760px) {
  .foot { padding-bottom: 72px; }   /* butonul de feedback din colț nu acoperă rândul */
  .bar-ask > .tip-i { display: none; }   /* pe telefon bara rămâne strânsă */
  .p-top .tip-lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tip-legend li { grid-template-columns: 1fr; gap: 3px; }
}

/* companiile la un apel (4 nov 2026): același bloc e fișă (implicit, și fără JS) sau rând (Compare); bara cea mai lungă din coloană e cea mai bună din listă */
.cand { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 0 10px; align-items: start; padding: 14px 16px; box-shadow: var(--shadow-sm);
        scroll-margin-top: 150px; border-left: 4px solid transparent; transition: border-color .15s, opacity .15s; }
.c-id { min-width: 0; }
.c-id .meta { font-size: 13px; color: var(--ink-3); margin: 1px 0 0; }
.cand.is-fav h3 a::before { content: "★ "; color: var(--warn); }
.tag.c-warn { color: var(--warn); background: var(--warn-bg); }
.tag.c-prior { color: var(--info); background: var(--info-bg); }
.c-tools { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 2px; }
.t-btn, .c-tools .obtn, .c-tools .onota summary { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: none;
        font: 600 13px var(--font-body); color: var(--ink-3); cursor: pointer; white-space: nowrap; list-style: none; }
.t-btn:hover, .c-tools .obtn:hover, .c-tools .onota summary:hover { background: var(--glass-2); border-color: var(--line); color: var(--brand-600); text-decoration: none; }
.c-tools summary::-webkit-details-marker { display: none; }
.c-tools .otools, .c-tools .orow { display: contents; }
.c-tools .osaved { order: -1; margin-right: 6px; font-size: 12.5px; }
.onota, .omore { position: relative; }
.c-tools .onota > form, .omore > form { position: absolute; right: 0; top: calc(100% + 4px); z-index: 15; width: min(340px, calc(100vw - 48px)); margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 34px rgba(18, 24, 51, .16); }
.c-tools .onota[open] { flex-basis: auto; } .c-tools .onota[open] summary { margin: 0; }
.omore > form { width: max-content; }
.c-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr repeat(4, 1fr); margin: 12px 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--glass-2); }
.kpi { min-width: 0; padding: 9px 13px 10px; border-left: 1px solid var(--line-2); cursor: help; }
.kpi:first-child { border-left: 0; }
.k-lab { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-val { display: flex; align-items: baseline; gap: 6px; overflow: hidden; white-space: nowrap; line-height: 1.25; }
.k-val b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.k-val small { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.k-pre { display: none; }
.k-bar { display: block; height: 4px; margin-top: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.k-bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand-500); }
.kpi.zero .k-val b { color: var(--ink-3); font-weight: 500; }
.kpi.info .k-val b { color: var(--ink-3); font-weight: 600; }
.k-rol { margin-left: 6px; font-size: 12px; color: var(--ink-2); }
.k-fit .fit { height: 26px; }
.c-more { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 26px; min-height: 84px; }
.c-more h4 { margin: 0 0 4px; font: 700 12px var(--font-body); letter-spacing: 0; color: var(--ink-3); }
.because { margin: 0 0 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.cand.open-why .because { -webkit-line-clamp: unset; }
.c-terms { display: flex; flex-wrap: wrap; gap: 4px 5px; align-items: center; margin: 0; font-size: 12.5px; }
.c-terms .term { font-size: 12.5px; }
.prior { margin: 6px 0 0; font-size: 13.5px; color: var(--info); }
.ev { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13.5px; }
.ev li { display: grid; grid-template-columns: 82px 116px minmax(0, 1fr); gap: 6px; align-items: baseline; min-width: 0; }
.ev b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .mute { font-size: 12.5px; white-space: nowrap; }
.ev .ptitle { flex: none; }
.react { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.seg { display: flex; gap: 8px; }
.seg button { min-width: 112px; min-height: 40px; border-radius: 10px; font-size: 14.5px; }
.seg em { font-style: normal; }
.why { display: none; flex: 1 1 340px; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cand.is-nu .why, .cand.is-poate .why, .cand.is-da .why { display: flex; }
.why .chips { gap: 5px; }
.why .chip { min-height: 30px; font-size: 13px; }
.why input { flex: 1 1 180px; width: auto; min-height: 34px; font-size: 14px; }
.chev { display: none; }
.c-cols { display: none; }
.viewsw { display: none; flex: none; padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.has-js .viewsw { display: inline-flex; }
.viewsw button { min-height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: none; font: 600 13px var(--font-body); color: var(--ink-3); cursor: pointer; }
.viewsw button[aria-pressed="true"] { background: var(--brand-050); color: var(--brand-600); }

/* Compare: un rând pe companie; bucățile fișei se așază pe aceleași coloane, fără să se dubleze nimic */
.m-compare .cands { --cols: 30px minmax(220px, 1fr) 62px repeat(4, minmax(84px, 108px)) 118px 18px; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.m-compare .c-cols { display: grid; grid-template-columns: var(--cols); gap: 0 12px; align-items: center; padding: 8px 16px; font-size: 12px; font-weight: 700; color: var(--ink-3); background: var(--glass-2); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.m-compare .c-cols span:first-child { grid-column: 1 / 3; }
.m-compare .cand { grid-template-columns: var(--cols); gap: 0 12px; align-items: center; min-height: 56px; padding: 6px 16px 6px 13px; border: 0; border-left: 3px solid transparent; border-bottom: 1px solid var(--line-2); border-radius: 0; box-shadow: none; background: none; cursor: pointer; }
.m-compare .cand:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.m-compare .cand:hover { background: var(--glass-2); }
.m-compare .cand.is-da { border-left-color: var(--ok); } .m-compare .cand.is-poate { border-left-color: var(--warn); } .m-compare .cand.is-nu { border-left-color: var(--danger); }
.m-compare .cand.is-avoid { background: var(--surface-2); }
.m-compare .rank { grid-row: 1; grid-column: 1; }
.m-compare .c-id { grid-row: 1; grid-column: 2; }
.m-compare .cand h3 { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-compare .c-id .meta { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-compare .c-id .tag { font-size: 11.5px; padding: 0 6px; }
.m-compare .c-id .onote { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; margin: 0; }
.m-compare .c-kpis { display: contents; }
.m-compare .kpi { grid-row: 1; padding: 0; border: 0; }
.m-compare .k-lab, .m-compare .k-val small, .m-compare .k-rol { display: none; }
.m-compare .k-pre { display: inline; font-weight: 700; }
.m-compare .k-val b { font-size: 14.5px; }
.m-compare .k-bar { margin-top: 3px; }
.m-compare .cand.is-nu:not([data-open="1"]) > .c-id, .m-compare .cand.is-nu:not([data-open="1"]) .kpi { opacity: .55; }
.m-compare .c-tools, .m-compare .c-more { display: none; }
.m-compare .react { display: contents; }
.m-compare .seg { grid-row: 1; grid-column: -3; gap: 3px; }   /* penultima coloană: nu depinde de câte cifre are rândul */
.m-compare .seg button { min-width: 0; width: 36px; min-height: 34px; padding: 0; }
.m-compare .seg em { display: none; }
.m-compare .why, .m-compare .cand.is-nu .why, .m-compare .cand.is-poate .why, .m-compare .cand.is-da .why { display: none; }
.m-compare .cand.why-open .why { display: flex; grid-column: 2 / -1; grid-row: 2; padding: 6px 0 4px; cursor: default; }
.m-compare .saved.ok { display: none; }
.m-compare .saved.err { grid-column: 2 / -1; grid-row: 3; }
.m-compare .chev { display: block; grid-row: 1; grid-column: -2; justify-self: end; width: 18px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.m-compare .chev::before { content: ""; display: block; width: 7px; height: 7px; margin: 3px auto 0; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .1s; }
/* rândul deschis: micro, fără să pierzi lista */
.m-compare .cand[data-open="1"] { padding-bottom: 12px; background: var(--surface); }
.m-compare .cand[data-open="1"] h3, .m-compare .cand[data-open="1"] .c-id .meta { white-space: normal; }
.m-compare .cand[data-open="1"] .chev::before { margin-top: 7px; transform: rotate(-135deg); }
.m-compare .cand[data-open="1"] .c-more { display: grid; grid-column: 1 / -1; grid-row: 2; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); cursor: default; }
.m-compare .cand[data-open="1"] .seg { grid-column: 1 / 3; grid-row: 3; gap: 8px; margin-top: 10px; }
.m-compare .cand[data-open="1"] .seg button { width: auto; min-width: 112px; min-height: 40px; }
.m-compare .cand[data-open="1"] .seg em { display: inline; }
.m-compare .cand[data-open="1"] .c-tools { display: flex; grid-column: 3 / -1; grid-row: 3; justify-content: flex-end; margin-top: 10px; cursor: default; }
.m-compare .cand[data-open="1"].is-nu .why, .m-compare .cand[data-open="1"].is-poate .why, .m-compare .cand[data-open="1"].is-da .why, .m-compare .cand[data-open="1"].why-open .why { display: flex; grid-column: 1 / -1; grid-row: 4; padding: 10px 0 0; cursor: default; }
.m-compare .cand[data-open="1"] .saved.ok { display: block; grid-column: 1 / -1; grid-row: 5; }
@media (max-width: 1100px) {
  .m-compare .cands { --cols: 26px minmax(150px, 1fr) 46px repeat(3, minmax(52px, 62px)) 38px 112px 14px; }
  .m-compare .c-cols, .m-compare .cand { column-gap: 8px; }
  .ev li { grid-template-columns: 76px minmax(0, 1fr); } .ev .mute { display: none; }
}
@media (max-width: 760px) {
  .progress { padding: 8px 12px; gap: 6px; }
  .p-top { flex-wrap: wrap; gap: 6px 8px; font-size: 13.5px; } .p-top .prog { order: 9; flex: 1 1 100%; }
  .p-top .tip-link { margin-left: auto; }
  .viewsw button { padding: 0 8px; font-size: 12.5px; }
  .p-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -12px; padding-right: 12px; } .p-tabs::-webkit-scrollbar { display: none; }
  .p-tabs a { flex: none; font-size: 13px; }
  .cand { padding: 12px; grid-template-columns: 26px minmax(0, 1fr); }
  .c-tools { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; margin-top: 8px; }
  .t-btn, .c-tools .obtn, .c-tools .onota summary { border-color: var(--line); padding: 0 8px; }
  .c-tools .onota > form, .omore > form { right: auto; left: 0; }
  .c-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi { padding: 7px 10px; border-left: 0; }
  .k-val b { font-size: 17px; } .k-val small { display: none; }
  .k-rol { display: block; margin: 2px 0 0; }
  .c-more { grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 0; }
  .ev li { grid-template-columns: minmax(0, 1fr); gap: 0; } .ev .ptitle { white-space: normal; }
  .seg, .seg button { flex: 1; } .seg button { min-width: 0; }
  .react { flex-direction: column; align-items: stretch; } .why { flex: none; }
  .m-compare .c-cols { display: none; }
  .m-compare .cands { background: none; border: 0; display: grid; gap: 8px; }
  .m-compare .cand { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px 6px; padding: 10px 12px 10px 9px; background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid transparent; border-radius: 12px; }
  .m-compare .cand:last-child { border-radius: 12px; border-bottom: 1px solid var(--line-2); }
  .m-compare .rank { grid-column: span 1; }
  .m-compare .c-id { grid-column: 2 / 10; }
  .m-compare .k-fit { grid-column: 10 / 12; grid-row: 1; justify-self: end; }
  .m-compare .kpi:not(.k-fit) { grid-column: span 3; grid-row: 2; align-self: start; }
  .m-compare .k-lab { display: block; font-size: 11px; margin: 0; }
  .m-compare .k-fit .k-lab { display: none; }
  .m-compare .k-val b { font-size: 13px; }
  .m-compare .chev { grid-column: 12; }
  .m-compare .seg { grid-column: 1 / -1; grid-row: 3; gap: 6px; }
  .m-compare .seg button { width: auto; min-height: 38px; }
  .m-compare .seg em { display: inline; }
  .m-compare .cand.why-open .why { grid-column: 1 / -1; grid-row: 4; }
  .m-compare .cand[data-open="1"] .c-more { grid-row: 3; }
  .m-compare .cand[data-open="1"] .seg { grid-column: 1 / -1; grid-row: 4; }
  .m-compare .cand[data-open="1"] .seg button { min-width: 0; }
  .m-compare .cand[data-open="1"] .c-tools { grid-column: 1 / -1; grid-row: 5; justify-content: flex-start; }
  .m-compare .cand[data-open="1"].is-nu .why, .m-compare .cand[data-open="1"].is-poate .why, .m-compare .cand[data-open="1"].is-da .why, .m-compare .cand[data-open="1"].why-open .why { grid-row: 6; }
  .m-compare .cand[data-open="1"] .saved.ok { grid-row: 7; }
}

/* Stratul „feedbackul tău” (30 nov 2026): banda de deasupra listei, rândul de pe card, rândul pliat cu cele evitate */
.fb-banner { margin-top: 12px; padding: 12px 16px; border-left: 4px solid var(--info); font-size: 15px; line-height: 1.6; }
.fb-banner p { margin: 0; }
.fb-banner a { white-space: nowrap; margin-left: 6px; }
.fb-line { margin: 2px 0 0; font-size: 12.5px; color: var(--info); }
.fb-tag { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; margin-right: 4px; }
.fb-loc { color: var(--ink-3); margin-left: 6px; white-space: nowrap; }
.m-compare .cand:not([data-open="1"]) .fb-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-avoided, .fb-down { margin-top: 14px; }


/* căsuțe și butoane radio (2 dec 2026, feedbackul lui Radu despre aliniere): regula generală de la `input` le dădea înălțimea unui câmp de text (44px),
   așa că bifa plutea între rânduri. Aici au mărimea lor și stau pe prima linie a etichetei. */
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; flex: none; border-radius: 4px; background: none;
  accent-color: var(--brand-600); vertical-align: -2px; }
input[type="radio"] { border-radius: 50%; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { cursor: pointer; }

/* Banda „se lucrează” (2 dec 2026, după întâlnirea cu Anca): la un formular cu data-busy, sus în fereastră, cât așteaptă pagina AI-ul.
   Culorile butonului principal (--brand-grad + alb), verificate deja în ambele teme. */
#busy-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px; background: var(--brand-grad); color: #fff; font: 600 15px/1.35 var(--font-body); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
#busy-bar i { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: busy-spin .8s linear infinite; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #busy-bar i { animation: none; border-top-color: rgba(255, 255, 255, .4); } }

/* ---------- conturile: /login, /register și rândul din subsol (2 dec 2026, seara) ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 16px; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-card { width: 100%; max-width: 420px; padding: 28px; }
.auth-card h1 { font-size: 26px; line-height: 1.2; font-weight: 600; }
.auth-card .lead { margin: 8px 0 18px; font-size: 15px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.auth-f small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.auth-f input { width: 100%; }
.auth-form .btn { width: 100%; margin-top: 4px; }
.auth-msg { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--info-bg); color: var(--ink); font-size: 14.5px; line-height: 1.45; }
.auth-msg.err { background: var(--danger-bg); color: var(--danger); }
.auth-alt { margin: 16px 0 0; font-size: 14.5px; color: var(--ink-2); }
.auth-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* „Continue with Google” (3 dec 2026): butonul neutru al aplicației, cu sigla G în culorile Google; linia „sau” sub el */
.btn.g-btn { width: 100%; gap: 10px; text-decoration: none; }   /* aceeași înălțime și literă ca „Sign in” și câmpurile */
.btn.g-btn:hover { background: var(--hover); text-decoration: none; }
.g-btn .g-logo { flex: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 13px; color: var(--ink-3); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 480px) {
  .auth { justify-content: flex-start; padding-top: 28px; } .auth-card { padding: 22px 18px; }
  .auth-brand .brand > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }   /* fără meniu aici: numele rămâne lângă siglă */
}
/* adminul, la Cereri: Accept / Reject pe rând, textul de copiat după Accept, confirmarea legării de un cont vechi */
.ca-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.ca-act select { min-height: 36px; font-size: 14px; }
.ca-confirm { margin-top: 18px; }
.ca-ok { padding: 16px 18px; margin: 0 0 8px; }
.ca-ok h2 { margin: 0 0 6px; }
.ca-ok textarea { width: 100%; padding: 10px 12px; font-size: 14px; line-height: 1.5; }

/* ======================================================================================================================
   v5, 3 dec 2026: tiparele Claude Code peste toată aplicația (antetul, meniul contului ca la ElevenLabs, controale, etichete,
   căsuța de scris cu butoanele înăuntru, butonul de feedback). Regulile de aici câștigă peste cele vechi de mai sus.
   ====================================================================================================================== */
body { font: 14px/1.5 var(--font-body); color: var(--ink-2); background: var(--bg); }
a { color: var(--link); }
h1, h2, h3 { font-weight: 600; letter-spacing: -.005em; }
h2 { font-size: 16px; }
.hero h1 { font-size: 24px; line-height: 1.3; }
.callhead h1 { font-size: 22px; line-height: 1.3; }
::selection { background: rgba(37, 125, 224, .18); }

/* antetul: sigla și locurile de lucru la stânga, contul la dreapta */
.topbar { gap: 6px; min-height: 52px; padding: 8px 32px; background: var(--bg); border-bottom: 1px solid var(--line-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
.stick:has(.topf) .topbar { border-bottom: 0; padding-bottom: 4px; }
.brand { gap: 8px; font-size: 16px; font-weight: 700; margin-right: 4px; }
.brand img { width: 26px; height: 26px; }
.brand .ai { color: inherit; font-weight: 500; opacity: .55; }
.brand + .pill { color: var(--ink-3); background: none; box-shadow: inset 0 0 0 1px var(--line); font-size: 11px; padding: 1px 6px; }
.topnav { margin-left: 14px; gap: 2px; }
.topnav a { padding: 6px 10px; border-radius: 8px; font-weight: 500; font-size: 14px; color: var(--ink-2); line-height: 20px; }
.topnav a:hover { color: var(--ink); background: var(--hover); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--active); }

/* meniul contului (ca la ElevenLabs): cercul cu inițiala, inelul = AI-ul folosit luna asta */
.acct { position: relative; margin-left: auto; flex: none; }
.acct > summary { list-style: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.acct > summary::-webkit-details-marker { display: none; }
.acct > summary:hover { background: var(--hover); }
.acct[open] > summary { background: var(--active); }
.acct-av { position: relative; display: grid; place-items: center; width: 32px; height: 32px; }
.acct-ring { position: absolute; inset: 0; width: 32px; height: 32px; }
.acct-ring circle { fill: none; stroke-width: 2.25; }
.acct-ring .tr { stroke: var(--line); }
.acct-ring .ar { stroke: var(--ink-2); stroke-linecap: round; }
.acct-av.aproape .ar { stroke: var(--gold); } .acct-av.plin .ar { stroke: var(--danger); }
.acct-l { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--warm); color: #fff; font: 600 12px/1 var(--font-body); }
.acct-p { display: none; font: 600 9.5px/1 var(--font-body); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.acct > summary:hover .acct-p, .acct[open] .acct-p { display: block; }
.acct > summary:hover .acct-l:has(+ .acct-p), .acct[open] .acct-l:has(+ .acct-p) { display: none; }
.acct-dot { position: absolute; top: 0; right: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--bg); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; width: 260px; padding: 6px; background: var(--pop); border: 1px solid var(--line);
             border-radius: 12px; box-shadow: var(--shadow-pop); }
.acct-who { padding: 6px 10px 8px; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who b { font-weight: 500; color: var(--ink-2); }
.acct-use { display: grid; gap: 7px; margin: 0 0 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); }
.acct-use:hover { text-decoration: none; border-color: var(--brand-400); }
.acct-use-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.acct-use-h b { font-weight: 600; color: var(--ink); }
.acct-bar { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.acct-bar i { display: block; height: 100%; border-radius: 4px; background: var(--ink-2); }
.acct-use.aproape .acct-bar i { background: var(--gold); } .acct-use.plin .acct-bar i { background: var(--danger); }
.acct-use.aproape .acct-use-h span { color: var(--warn); } .acct-use.plin .acct-use-h span { color: var(--danger); }
.acct-use-f { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.acct-use-c { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; } .acct-use-c b { font-weight: 600; color: var(--ink-2); }   /* creditul separat, 3 dec 2026 */
.acct-items { display: grid; }
.acct-items a, .acct-out { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 6px 10px; border: 0; border-radius: 6px; background: none;
                           font: 400 14px/1.3 var(--font-body); color: var(--ink); text-align: left; cursor: pointer; }
.acct-items a:hover, .acct-out:hover { background: var(--hover); text-decoration: none; }
.acct-items a[aria-current="page"] { background: var(--active); }
.acct-items small { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.acct-items form { margin: 0; }
.acct-out { color: var(--ink-2); }
.acct-nr { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font: 600 11px/18px var(--font-body); font-style: normal; text-align: center; }
@media (prefers-color-scheme: dark) { .acct-nr { color: var(--bg); } }
.acct-sep { height: 1px; margin: 6px -6px; background: var(--line-2); }

/* cutii: plate, cu linie fină (Claude nu pune umbre pe carduri) */
.card { border-color: var(--line); box-shadow: none; }
.call.card, .cand.card { box-shadow: none; }
.call:hover { transform: none; box-shadow: none; }

/* butoane: 32 px, colțuri 8 px; principalul închis, restul neutre */
.btn { min-height: 32px; padding: 0 12px; gap: 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
       font: 500 14px/1 var(--font-body); }
.btn:hover { background: var(--glass-2); text-decoration: none; }
.btn.primary { background: var(--brand-grad); border-color: transparent; color: var(--on-primary); }
.btn.primary:hover { background: var(--brand-grad-hover); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { background: var(--hover); border-color: var(--line); color: var(--ink); }
.btn.sm { min-height: 28px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { font: 500 14px var(--font-body); color: var(--link); }

/* câmpuri */
input, select, textarea { font: 14px var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-height: 32px; padding: 0 10px; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus-visible, textarea:focus-visible { outline: none; border-color: rgba(0, 0, 0, .3); }
@media (prefers-color-scheme: dark) { input:focus-visible, textarea:focus-visible { border-color: rgba(255, 255, 255, .32); } }
select { padding-right: 26px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); }

/* etichete, filtre, pastile: pătrățoase, fără majuscule forțate */
.tag { font-size: 12px; font-weight: 500; padding: 1px 6px; border-radius: 6px; line-height: 18px; }
.tag.act { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { .tag.act { background: transparent; color: var(--ink-2); } }
.lista .call .tag { font-size: 12px; padding: 0 6px; }
.pill { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); background: var(--brand-050); border-radius: 6px; padding: 2px 7px; }
.chip { min-height: 28px; padding: 0 10px; border-radius: 8px; font: 500 13px var(--font-body); color: var(--ink-2); background: transparent; border: 1px solid var(--line); }
.chip:hover { color: var(--ink); background: var(--hover); border-color: var(--line); }
.chip.on { color: var(--ink); background: var(--active); border-color: var(--brand-400); }
.chip.on i { color: var(--ink-2); }
.bar-f .chip { min-height: 28px; padding: 0 10px; font-size: 13px; }
.bar-sel select { height: 28px; min-height: 28px; border-radius: 8px; font: 500 13px var(--font-body); color: var(--ink-2); background-color: transparent; }
.bar-sel select:hover { background-color: var(--hover); }
.bar-sel select.on { background-color: var(--active); border-color: var(--brand-400); color: var(--ink); }
.term { border-radius: 6px; border-color: var(--line); }
.p-tabs a { border-radius: 8px; color: var(--ink-2); }
.rank { border-radius: 6px; color: var(--ink-2); background: var(--surface-2); font-family: var(--font-body); }
.fit { border-radius: 6px; font-weight: 600; }
.ai-mark { background: var(--ink); color: var(--bg); }
.ai-head { background: var(--glass-2); }
.mic { min-height: 32px; border-radius: 8px; font: 500 13px var(--font-body); background: transparent; }
.mic:hover { border-color: var(--line); color: var(--ink); background: var(--hover); }
.tchip span { border-radius: 8px; }
.tchip input:checked + span { border-color: var(--brand-400); background: var(--active); }
.tchip input:checked + span::before { color: var(--ink); }
.viewsw { border-radius: 8px; }
.viewsw button { border-radius: 6px; }
.viewsw button[aria-pressed="true"] { background: var(--active); color: var(--ink); }
.seg button { border-radius: 8px; font-weight: 500; font-size: 14px; }
.obtn, .onota summary { border-radius: 8px; font-weight: 500; }
.t-btn:hover, .c-tools .obtn:hover, .c-tools .onota summary:hover { color: var(--ink); background: var(--hover); }

/* etichetele mici de deasupra valorilor: ca la Claude, în litere obișnuite, gri */
.eyebrow, .rezumat .eyebrow, .when small, .lista .when small, .fact > span, .frule > span, .puncte .et, .callhead h3.sub, .k-lab, .c-more h4, .fb-tag {
  text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.puncte .et { font-size: 13px; padding-top: 3px; }
.lista .when { grid-template-columns: 72px minmax(0, 1fr); }   /* măsurat 3 dec: „Se deschide” are 71 px la 12 px; pe 62 px „S-a deschis” se rupea pe două rânduri */
.lista .when small { white-space: nowrap; }

/* bare de progres și de scor: o culoare neutră */
.prog i, .bar i, .k-bar i { background: var(--bar); }
.prog, .bar, .k-bar { border-radius: 4px; }

/* textul de citit (rezumatul, descrierile): 15 px, interlinie 1,6 */
.puncte li { font-size: 15px; line-height: 1.6; }
.idee { font-size: 17px; line-height: 1.5; font-weight: 500; }
.eo, .detaliu p, .fb-text { font-size: 15px; line-height: 1.6; }
.nota { background: var(--glass-2); }
.nota b { color: var(--ink-2); }
.src q, .agent-cit, .schimbari { border-left-color: var(--line); }
.src q { border-left-width: 2px; }

/* crumbs și linkurile de navigare: gri, nu albastre */
.crumbs { font-weight: 500; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }

/* căsuța de scris ca în Claude: o cutie rotunjită, butoanele mici înăuntru, la dreapta */
.bar-q { display: flex; align-items: center; gap: 8px; }
.bar-ask, .ai-raf { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 2px; padding: 4px; background: var(--surface); border: 1px solid var(--line);
                    border-radius: var(--r-box); box-shadow: var(--shadow-sm); }
.bar-ask:focus-within, .ai-raf:focus-within { border-color: var(--brand-400); }
.bar-ask textarea, .ai-raf textarea { border: 0; background: transparent; min-height: 32px; padding: 6px 8px; font: 15px/20px var(--font-body); border-radius: 8px; box-shadow: none; }
.bar-ask textarea:focus-visible, .ai-raf textarea:focus-visible { outline: none; border: 0; }
.bar-ask .dict, .ai-raf .dict { align-self: flex-end; }
.bar-ask .mic, .ai-raf .mic { width: 32px; min-height: 32px; border: 0; color: var(--ink-3); }
.bar-ask .mic.rec, .ai-raf .mic.rec { color: #fff; background: var(--danger); }
.btn.send { width: 32px; min-height: 32px; padding: 0; border-radius: 8px; flex: none; }
.send-ico { width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.bar-q > .tip-i { margin: 0 2px; }
.search-ask { padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); box-shadow: var(--shadow-sm); gap: 4px; }
.search-ask:focus-within { border-color: var(--brand-400); }
.search-ask textarea { border: 0; background: transparent; padding: 6px 8px; font-size: 15px; resize: none; }
.search-ask textarea:focus-visible { outline: none; border: 0; }
.search-ask .mic { border: 0; color: var(--ink-3); }
.topf { padding: 0 32px 10px; background: var(--bg); border-bottom: 1px solid var(--line-2); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* butonul de feedback: pătrățel galben-portocaliu deschis; la hover (sau focus) se lărgește și apare cuvântul */
.fb-fab { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 0; height: 36px; min-width: 36px; padding: 0 10px;
          border: 1px solid var(--fb-line); border-radius: 10px; background: var(--fb-bg); color: var(--fb-ink); font: 500 13px/1 var(--font-body);
          box-shadow: var(--shadow-sm); text-decoration: none; transition: gap .18s ease, padding .18s ease; }
.fb-fab .fb-ico { width: 15px; height: 15px; flex: none; }
.fb-fab .fb-lab { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .18s ease, opacity .12s ease; }
.fb-fab:hover, .fb-fab:focus-visible { gap: 7px; padding: 0 12px 0 10px; text-decoration: none; }
.fb-fab:hover .fb-lab, .fb-fab:focus-visible .fb-lab { max-width: 90px; opacity: 1; }
.fb-fab[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .fb-fab, .fb-fab .fb-lab { transition: none; } }
.fb { border-radius: 12px; box-shadow: var(--shadow-pop); background: var(--pop); border-color: var(--line); }
.fb-head h2 { font-size: 16px; }
.fb-x { width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--ink-3); }
.fb-x:hover { background: var(--hover); color: var(--ink); }

/* ferestre și indicii */
.tip { border-radius: 8px; font-size: 13px; box-shadow: var(--shadow-pop); }
.tip.rich { border-radius: 12px; background: var(--pop); box-shadow: var(--shadow-pop); }
.tip-i:hover, .tip-i[aria-describedby], .tip-link:hover, .tip-link[aria-describedby] { color: var(--ink); }
.panel { background: rgba(0, 0, 0, .3); }
.panel-x { width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--hover); }
.c-tools .onota > form, .omore > form { border-radius: 12px; background: var(--pop); box-shadow: var(--shadow-pop); }
.fb-sel-hint { border-radius: 8px; }
.fbi.necitit { border-left-color: var(--warm); }
.dot { color: var(--warm); }
.fbm.eu { background: var(--active); }
.agent-wait::before, .ai-steps li.now::before { background: var(--ink-3); border-color: var(--ink-3); }
#busy-bar { background: var(--brand-grad); color: var(--on-primary); font: 500 14px/1.35 var(--font-body); }
#busy-bar i { border-color: color-mix(in srgb, var(--on-primary) 40%, transparent); border-top-color: var(--on-primary); }

/* subsolul: doar „Cum folosim datele” */
.foot { font-size: 13px; }

@media (max-width: 760px) {
  .topbar { padding: 8px 16px; }
  .topnav { margin-left: 2px; gap: 0; }
  .topnav a { padding: 6px 6px; font-size: 13.5px; }
  .topf { padding: 0 16px 8px; }
  .btn { min-height: 40px; }
  .btn.sm, .btn.send { min-height: 36px; }
  .btn.send { width: 36px; }
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; }   /* sub 16 px, iPhone mărește pagina la atingerea câmpului; !important pentru că filtrele, căutarea din fișă și Atelierul aveau reguli mai precise (13-15 px), măsurat în WebKit 3 dec */
  .bar-sel select { height: 32px; min-height: 32px; }
  .bar-f .chip, .bar-end { min-height: 32px; font-size: 16px; }   /* tot rândul de filtre la aceeași mărime cu listele de lângă */
  .bar-ask textarea, .ai-raf textarea { padding: 8px; }
  .bar-ask textarea:not(:focus) { height: 36px !important; }   /* un rând, cât butoanele de lângă el */
  .bar-ask .mic, .ai-raf .mic { width: 36px; min-height: 36px; }
  .bar-q > .tip-i { display: none; }   /* pe telefon bara rămâne strânsă, ca înainte */
  .acct-menu { width: min(280px, calc(100vw - 24px)); }
  .acct-items a, .acct-out { min-height: 40px; }
}
@media (max-width: 380px) {   /* 4 locuri de lucru + cercul încap fără derulare până la 360 px; sub atât meniul se derulează */
  .topbar { gap: 4px; }
  .topnav a { padding: 6px 5px; font-size: 13px; }
}
@media (hover: none) {
  .fb-fab { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .fb-fab:hover, .fb-fab:focus-visible { padding: 0; gap: 0; }
  .fb-fab:hover .fb-lab, .fb-fab:focus-visible .fb-lab { max-width: 0; opacity: 0; }
}
h2 .tip-i, h3 .tip-i { vertical-align: 2px; }   /* măsurat 3 dec: la titlurile de 15-16 px, -2px lăsa iconița cu 4 px sub mijlocul textului */

/* profilul scris de AI din site-ul organizației, pe fișa /org (3 dec 2026): cutie gri deschis ca „Față de apelul”, etichetele pe o coloană */
.aiprof { margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--glass-2); }
.aiprof > h3:first-child { margin-top: 0; }
.aiprof .aiprof-src { font-size: 13px; color: var(--ink-3); overflow-wrap: anywhere; margin: 0 0 8px; }
.aiprof .aiprof-sum { font-size: 15px; line-height: 1.6; color: var(--ink); margin: 0; max-width: 75ch; }
.aiprof-dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 12px; align-items: baseline; margin: 12px 0 0; }
.aiprof-dl dt { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.aiprof-dl dd { margin: 0; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; max-width: 75ch; }
.aiprof .caps { margin-bottom: 0; }
.aiprof .caps li { overflow-wrap: anywhere; }
.ailine .tag:first-child { margin-left: 0; }
