.muted { color: var(--muted); font-weight: 400; } .small { font-size: 13.5px; }
.pg { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 8px 0 12px; background: var(--bg); }
.seg { display: inline-flex; gap: 2px; background: var(--bg-soft); border: 1px solid var(--line); padding: 3px;
  border-radius: 9px; margin-bottom: 14px; }
.seg button { border: 0; background: transparent; color: var(--ink-2); padding: 6px 16px; border-radius: 6px;
  font: 600 14px system-ui, sans-serif; cursor: pointer; }
.seg button.on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .pg-grid { grid-template-columns: 1fr; } }
label.f { display: block; font-size: 13.5px; font-weight: 600; margin: 0 0 6px; }
label.f + .drop, label.f + div { margin-bottom: 0; }
.pg-grid > div > label.f:not(:first-child) { margin-top: 14px; }
.drop { border: 1.5px dashed var(--line); border-radius: 10px; min-height: 112px; display: grid; place-items: center;
  text-align: center; color: var(--muted); cursor: pointer; padding: 12px; background: var(--bg-soft); font-size: 14px; }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--accent); }
.drop img { max-width: 100%; max-height: 120px; background: #fff; border-radius: 4px; }
.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; max-height: 196px;
  overflow: auto; }
.sample { border: 1px solid var(--line); border-radius: 8px; padding: 5px; cursor: pointer; background: var(--bg); }
.sample:hover, .sample.on { border-color: var(--accent); }
.sample img { width: 100%; height: 36px; object-fit: contain; background: #fff; border-radius: 4px; display: block; }
.answer { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.answer b { font-family: "SindhiNaskh", serif; font-size: 19px; color: var(--ink); font-weight: 400; }
textarea, .cands input { width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 8px; padding: 8px 12px; font-size: 23px; line-height: 1.6; resize: vertical; }
.cands input { margin-bottom: 8px; font-size: 21px; }
textarea:focus, .cands input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.pg-out { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.verdict { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 10px; }
.verdict.ok { background: var(--ok-soft); } .verdict.bad { background: var(--bad-soft); }
.verdict .big { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 88px; }
.verdict.ok .big { color: var(--ok); } .verdict.bad .big { color: var(--bad); }
.verdict .what { font-weight: 650; }
.verdict .sub { font-size: 13px; color: var(--ink-2); }
.meter { height: 6px; background: color-mix(in srgb, var(--ink) 10%, transparent); border-radius: 99px; overflow: hidden;
  margin-top: 6px; width: 200px; max-width: 100%; }
.meter i { display: block; height: 100%; background: currentColor; border-radius: 99px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.pair figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.pair figcaption { font: 11.5px system-ui, sans-serif; color: #5d6673; margin-bottom: 4px; }
.pair img { display: block; max-width: 100%; height: 58px; object-fit: contain; margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; direction: rtl; margin: 8px 0 6px; }
.chip { min-width: 38px; text-align: center; border-radius: 8px; padding: 3px 6px 1px; border: 1.5px solid transparent; }
.chip .c { font-family: "SindhiNaskh", serif; font-size: 26px; line-height: 1.3; }
.chip .s { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; }
.chip.sp { min-width: 14px; background: transparent !important; }
.chip.flag { border-color: var(--bad); } .chip.changed { border-color: var(--ok); }
.legend { font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.res-h { font-size: 14px; font-weight: 650; margin: 16px 0 6px; }
.arrow { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0; }
.rank { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.rank.best { border-color: var(--ok); }
.rank .top { display: flex; align-items: center; gap: 10px; }
.rank .pos { font-weight: 700; color: var(--muted); width: 20px; }
.rank .txt { font-size: 23px; flex: 1; }
.pill { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.bad { background: var(--bad-soft); color: var(--bad); }
.err { color: var(--bad); background: var(--bad-soft); padding: 10px 12px; border-radius: 8px; }
.spin { display: inline-block; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: pgspin .7s linear infinite; vertical-align: -2px; margin-right: 4px; }
@keyframes pgspin { to { transform: rotate(360deg); } }
