/* Vibrozz 2 — «О монете» (coin.js): the card and the brief line (position page), the strip under the terminal chart,
   the sheet (market, home). Tokens from base.css only. */
.ci{min-width:0}
.ci-head{display:flex;align-items:center;gap:12px;min-width:0}
.ci-head .coin{width:44px;height:44px}
.ci-name{display:grid;min-width:0}
.ci-name b{font-size:18px;font-weight:800;letter-spacing:-.01em;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ci-name small{font-size:12px;color:var(--tx-3);white-space:nowrap}
.ci-px{display:grid;justify-items:end;gap:1px;flex:none}
.ci-px b{font-size:18px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.ci-px span{font-size:13px;font-weight:700}
.ci-sec{display:grid;gap:12px;min-width:0}
.ci-sec h4{font-size:15px;font-weight:700;letter-spacing:-.005em;margin:0}

/* the analysis: the hero of the block */
.ci-ai{position:relative;display:grid;gap:10px;padding:16px 18px 14px;border-radius:18px;overflow:hidden;
  background:linear-gradient(135deg,color-mix(in srgb,var(--acc) 16%,var(--soft)) 0%,var(--soft) 55%)}
.ci-ai::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--acc) 30%,transparent)}
:root[data-vz-theme=dark] .ci-ai{background:linear-gradient(135deg,color-mix(in srgb,var(--acc) 10%,var(--soft)) 0%,var(--soft) 60%)}
:root[data-vz-theme=dark] .ci-ai::before{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--acc) 18%,transparent)}
.ci-ai-h{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-width:0;min-height:30px}
/* age + refresh keep to the right; with no room they wrap as a whole, never cut */
.ci-meta{display:inline-flex;align-items:center;gap:6px;margin-left:auto;flex:none}
.ci-ai-ic{color:var(--acc-2);flex:none}
:root[data-vz-theme=dark] .ci-ai-ic{color:var(--acc)}
.ci-v{font-size:13px;padding:5px 10px;border-radius:10px;letter-spacing:.005em}
.ci-ai .ci-v.mu{background:var(--card);color:var(--tx)}
.ci-age{font-size:12px;color:var(--tx-3);white-space:nowrap}
.ci-rf{width:30px;height:30px;color:var(--tx-2);margin:-4px -8px -4px -2px}
.ci-rf:disabled{opacity:.45}
.ci-rf.spin svg{animation:vspin .9s linear infinite}
.ci-text{font-size:15px;line-height:1.55;color:var(--tx);margin:0;text-wrap:pretty}
.ci-srcs{display:flex;flex-wrap:wrap;gap:6px}
.ci-src{display:inline-flex;align-items:baseline;gap:6px;max-width:100%;padding:5px 10px;border-radius:9px;background:var(--card);color:var(--tx-2);font-size:12px;
  box-shadow:inset 0 0 0 1px var(--line);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ci-src b{font-weight:600;color:var(--tx)}
.ci-src small{color:var(--tx-3);font-size:11px}
@media (hover:hover){.ci-src:hover{box-shadow:inset 0 0 0 1px var(--line-2);color:var(--tx)}}
.ci-g{color:var(--tx-3)}
.ci-gl{font-weight:800;font-size:11px;color:var(--link)}
.ci-ai-off{display:flex;align-items:center;gap:8px;padding:12px 16px;color:var(--tx-3);font-size:13px;background:var(--soft)}
.ci-ai-off::before{display:none}
.ci-ai-off .ci-ai-ic{color:var(--tx-3)}
.ci-ai-wait{gap:9px}
.ci-sk-pill{display:inline-block;width:120px;height:26px;border-radius:10px}
.ci-sk-l{height:14px}
.ci-sk-l.short{width:60%}

/* our facts */
.ci-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ci-f{display:grid;gap:2px;align-content:start;padding:11px 13px;border-radius:14px;background:var(--soft);min-width:0}
.ci-f>span{font-size:12px;color:var(--tx-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ci-f>b{font-size:17px;font-weight:700;letter-spacing:-.01em;line-height:1.3;white-space:nowrap}
.ci-f>small{font-size:12px;color:var(--tx-3);line-height:1.35;overflow-wrap:anywhere}
.ci-f>small span{font-weight:600}
.ci-evs{display:grid;gap:2px}
.ci-ev{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:12px;color:var(--tx);font-size:13px;min-width:0}
a.ci-ev{color:var(--tx)}
@media (hover:hover){a.ci-ev:hover{background:var(--soft)}}
.ci-ev b{font-weight:600}
.ci-ev small{color:var(--tx-3);font-size:12px;margin-left:4px}
.ci-ev time{color:var(--tx-3);font-size:12px;white-space:nowrap;flex:none}
.ci-ev-dot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--acc-2)}
.ci-ev-dot.dn{background:var(--dn)}.ci-ev-dot.wa{background:var(--warn)}

/* what it is */
.ci-tags{display:flex;flex-wrap:wrap;gap:6px}
.ci-tags .pill{font-size:12px;padding:4px 9px}
.ci-about{font-size:14px;line-height:1.55;color:var(--tx-2);margin:0}
.ci-kv{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;font-size:14px}
.ci-kv>span{color:var(--tx-3)}.ci-kv>b{font-weight:600;text-align:right}
.ci-venues{display:flex;flex-wrap:wrap;gap:6px}
.ci-what-n{display:grid;gap:12px;min-width:0}
.ci-vn{font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line-2);color:var(--tx-2)}
.ci-load{display:grid;gap:12px}
.ci-load .grid.cb{padding:0}

/* the card (position page, full width under the columns): the analysis at a reading measure, our numbers and the
   timeline beside or under it, «Что за монета» as a secondary row — laid out by the card's own width */
.ci-card{display:grid;gap:22px;padding:20px 24px 24px;container-type:inline-size}
.ci-card .ci-sec>h4{font-size:19px;letter-spacing:-.01em}
.ci-body{display:grid;gap:12px;min-width:0}
.ci-main{container-type:inline-size}
.ci-main,.ci-side{display:grid;gap:12px;align-content:start;min-width:0}
.ci-card .ci-text{max-width:72ch;line-height:1.6}
.ci-card .ci-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
.ci-card .ci-what>h4{font-size:16px}
/* events as a timeline: dots joined by a line */
.ci-card .ci-evs{gap:0}
.ci-card .ci-ev{position:relative;padding:10px 12px}
.ci-card .ci-ev:not(:last-child)::after{content:"";position:absolute;left:15px;top:calc(50% + 8px);height:calc(100% - 16px);width:2px;border-radius:1px;background:var(--line-2)}
.ci-card .ci-ev-dot{box-shadow:0 0 0 3px var(--card)}
.ci-card .ci-ev time{order:-1;min-width:96px;font-variant-numeric:tabular-nums}
.ci-card .ci-ev .ci-ev-dot{order:-2}
/* sources beside the text when the analysis box is wide */
@container (min-width:700px){
  .ci-card .ci-ai:has(>.ci-srcs){grid-template-columns:minmax(0,600px) minmax(184px,1fr);column-gap:28px;align-items:start}
  .ci-card .ci-ai:has(>.ci-srcs)>.ci-ai-h{grid-column:1/-1}
  .ci-card .ci-ai>.ci-srcs{grid-column:2;grid-row:2;flex-direction:column;align-items:flex-start;gap:6px;padding-top:3px}
  .ci-card .ci-ai>.ci-srcs .ci-src{max-width:260px;white-space:normal;overflow-wrap:anywhere}
  .ci-card .ci-ai>.ci-srcs .ci-src small{white-space:nowrap}
}
@container (min-width:520px){
  .ci-card .ci-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container (min-width:620px){
  /* «Что за монета»: heading + tags and the text on the left, the numbers and venues on the right */
  .ci-card .ci-what{grid-template-columns:auto minmax(0,1fr) minmax(200px,280px);grid-template-areas:"h tags n" "txt txt n";grid-template-rows:auto 1fr;
    column-gap:16px;row-gap:8px;align-items:start;padding-top:20px;border-top:1px solid var(--line)}
  .ci-card .ci-what>h4{grid-area:h;line-height:28px}
  .ci-card .ci-what>.ci-tags{grid-area:tags;padding-top:2px}
  .ci-card .ci-what>.ci-about{grid-area:txt;max-width:72ch;padding-right:24px}
  .ci-card .ci-what>.ci-what-n{grid-area:n;padding-top:4px}
}
@container (min-width:940px){
  .ci-card .ci-body{grid-template-columns:minmax(0,1.15fr) minmax(440px,1fr);column-gap:20px;align-items:start}
  .ci-card .ci-body>.ci-side:only-child{grid-column:1/-1}
  .ci-card .ci-side:only-child .ci-facts{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@container (min-width:560px){.ci-card .ci-text{font-size:16px}}   /* against .ci-main */

/* the sheet (market, home) */
.v-dialog.ci-dlg{width:min(600px,100%)}
.ci-sheet{display:grid;gap:20px}
.ci-sheet .ci-head{padding-right:44px}
.ci-acts{position:sticky;bottom:-26px;margin:0 -26px -26px;padding:12px 26px 22px;background:linear-gradient(to bottom,transparent,var(--card) 14px)}
.ci-acts .btn{height:48px}

/* the brief line under the position header: the verdict and the first sentences */
.ci-brief{display:flex;align-items:center;gap:12px;min-width:0;min-height:48px;padding:10px 12px 10px 10px;border-radius:16px;cursor:pointer;
  background:linear-gradient(90deg,color-mix(in srgb,var(--acc) 14%,var(--soft)),var(--soft) 55%);transition:background .15s}
@media (hover:hover){.ci-brief:hover{background:linear-gradient(90deg,color-mix(in srgb,var(--acc) 22%,var(--soft)),var(--soft-2) 65%)}}
:root[data-vz-theme=dark] .ci-brief{background:linear-gradient(90deg,color-mix(in srgb,var(--acc) 9%,var(--soft)),var(--soft) 55%)}
.ci-brief:focus-visible{outline:2px solid var(--link);outline-offset:-2px}
.ci-br-t{flex:1 1 auto;min-width:0;margin:0;font-size:14px;line-height:1.5;color:var(--tx);text-wrap:pretty;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ci-br-t .ci-v{display:inline-flex;font-size:12px;line-height:1.35;padding:1px 8px;border-radius:8px;margin-right:8px;vertical-align:1px}
.ci-brief .ci-v.mu{background:var(--card);color:var(--tx)}
.ci-brief .ci-sk-pill{width:96px;height:22px;flex:none}

/* the strip under the terminal chart */
.ci-strip{display:flex;align-items:center;gap:10px;flex:none;min-width:0;height:44px;margin:0 6px 6px;padding:0 12px 0 10px;border-radius:14px;cursor:pointer;
  background:linear-gradient(90deg,color-mix(in srgb,var(--acc) 14%,var(--soft)),var(--soft) 45%);transition:background .15s}
@media (hover:hover){.ci-strip:hover{background:linear-gradient(90deg,color-mix(in srgb,var(--acc) 22%,var(--soft)),var(--soft-2) 60%)}}
:root[data-vz-theme=dark] .ci-strip{background:linear-gradient(90deg,color-mix(in srgb,var(--acc) 9%,var(--soft)),var(--soft) 45%)}
.ci-strip:focus-visible{outline:2px solid var(--link);outline-offset:-2px}
.ci-st-ic{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--card);flex:none}
.ci-st-ic .ci-ai-ic{width:15px;height:15px}
.ci-strip .ci-v{font-size:12px;padding:3px 8px;border-radius:8px;flex:none}
.ci-st-t{flex:1 1 auto;font-size:13px;font-weight:500;color:var(--tx)}
.ci-st-k{font-size:13px;font-weight:700;flex:none}
.ci-st-age{font-size:12px;color:var(--tx-3);white-space:nowrap;flex:none}
.ci-st-chev{color:var(--tx-3);flex:none}
.ci-strip .ci-sk-pill{width:96px;height:22px;flex:none}
.ci-sk-st{flex:1 1 auto;height:12px;max-width:360px}

@media (max-width:760px){
  .ci-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ci-ai{padding:14px 14px 12px}
  .ci-text{font-size:15px}
  .ci-sheet{gap:18px}
  .ci-sheet .ci-head{padding-right:48px}
  .ci-acts{bottom:calc(-22px - env(safe-area-inset-bottom,0px));margin:0 -18px calc(-22px - env(safe-area-inset-bottom,0px));padding:12px 18px calc(16px + env(safe-area-inset-bottom,0px))}
  .ci-strip{height:48px;margin:0 4px 4px}
  .ci-st-age{display:none}
  .ci-br-t{-webkit-line-clamp:3}
  .ci-card{padding:18px 16px 18px}
  .ci-rf{width:40px;height:40px;margin:-8px -10px -8px -6px}
}
/* phones: the verdict line right under the price, on the first screen (the chart takes the height that is left) */
@media (max-width:760px){
  .vt-main>.vt-head{order:-2}
  .vt-main>.ci-strip{order:-1;margin:6px 10px 6px}
}
