/* beindie tool — store text analyzer */

.tool-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.tool-actions__hint{flex:1 1 240px;min-width:200px;margin:0}
.btn.is-copied{background:var(--yellow);color:#141414;border-color:var(--ink)}

#stRoot .split > .stack{grid-template-columns:minmax(0,1fr)}
#stRoot .split > .stack > *{min-width:0}
#stRoot .panel{min-width:0}
#stRoot .panel .table-wrap{max-width:100%}
#stRoot textarea{font-size:15px}

.st-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* verdict pills: the shared .pill with a colour that means something */
.pill.st-pill--pass::before{background:var(--green)}
.pill.st-pill--warn::before{background:var(--orange)}
.pill.st-pill--fail::before{background:var(--red)}
.pill.st-pill--fail{border-color:var(--ink)}

.st-rows{display:grid;gap:22px}
.st-row{display:grid;gap:8px}
.st-row__top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.st-row__top b{font-weight:600;font-size:15px}
.st-row__meta{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums;margin:0}
.st-row .hint{margin:0}

.st-bar{height:10px}
.st-bar i{background:var(--green)}
.st-bar.is-near i{background:var(--orange)}
.st-bar.is-over i{background:var(--red)}

.st-quote{
  border-left:3px solid var(--yellow);padding:10px 0 10px 16px;margin:12px 0 0;
  font-size:1.08rem;line-height:1.5;color:var(--ink);
}

.st-checks{list-style:none;padding:0;margin:0;display:grid;gap:9px}
.st-checks li{display:grid;grid-template-columns:auto 1fr;gap:11px;align-items:start;font-size:14.5px;color:var(--ink-soft)}
.st-checks li::before{
  content:"";width:11px;height:11px;border:1px solid var(--ink);margin-top:5px;flex:none;
}
.st-checks li.is-ok::before{background:var(--green)}
.st-checks li.is-no::before{background:var(--red)}

table.st-table{min-width:0;font-size:14.5px}
.st-table td,.st-table th{padding:9px 14px}
.st-table b{font-weight:600}
.st-table .num{font-variant-numeric:tabular-nums}

/* small stat strip, same shape as the other tools use */
.mini{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1px;background:var(--line);border:1px solid var(--line)}
.mini > div{background:var(--paper-2);padding:14px 16px}
.mini b{display:block;font-family:var(--display);font-size:1.15rem;line-height:1.1;font-variant-numeric:tabular-nums}
.mini span{display:block;margin-top:5px;font-size:11.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:600}

#stRoot .chip--static{cursor:default}
#stRoot .chips .chip.is-on{background:var(--yellow);color:#141414;border-color:var(--ink)}

/* ---------- copy buttons: the failure has to be as loud as the success ----------
   site.css styles .is-copied, and site.js only ever reaches that branch. A
   clipboard that is unavailable (a non-secure origin) or refused (a denied
   permission) left the button sitting still, which reads exactly like a
   silent success. The tool scripts handle their own copy buttons and set one
   of these two states every time. */
.is-copyfail{background:var(--red);color:#141414;border-color:var(--ink)}
.copy-note{
  flex:1 1 100%;margin:0;font-size:12.5px;line-height:1.45;
  color:var(--red);font-weight:600;
}
.copy-note:empty{display:none}

/* Anything driven by a thumb: the shared chrome is sized for a mouse, and
   30px of button is not a tap target. */
@media (pointer:coarse){
  .copy,.chip,.seg button,.btn-sm{min-height:40px}
  .copy,.seg button{display:inline-flex;align-items:center;justify-content:center}
}
