[v-cloak] { display: none; }

.brand { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }

.hero { padding: 2rem 0 1rem; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: .5rem; }
.hero form[role=search] { margin-top: 1.5rem; }

.error { color: var(--pico-del-color); }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.grid-cards .card {
  display: flex; flex-direction: column; gap: .5rem;
  padding: .75rem; border-radius: var(--pico-border-radius);
  border: 1px solid var(--pico-muted-border-color);
  text-decoration: none; color: inherit;
}
.grid-cards .card:hover { border-color: var(--pico-primary-border); }
.grid-cards img { width: 100%; height: auto; }

.chart-card { padding: .5rem; position: relative; }
.chart-card img.chart { width: 100%; height: auto; display: block; }
.progress-box { padding: .5rem 1rem 0; }

.snippet { margin-bottom: 2rem; display: flex; gap: .75rem; align-items: flex-start; flex-wrap: wrap; }
.snippet pre { flex: 1 1 400px; margin: 0; white-space: pre-wrap; word-break: break-all; }
.snippet button { flex: 0 0 auto; width: auto; }

tr.muted td { color: var(--pico-muted-color); }
td, th { font-variant-numeric: tabular-nums; }

/* interactive chart */
.chart-box { position: relative; }
.chart-box.interactive { cursor: crosshair; touch-action: pan-y; }
.chart-svg svg { width: 100%; height: auto; display: block; }
.chart-box .cursor {
  position: absolute; width: 1px; pointer-events: none;
  background: var(--pico-muted-color); opacity: .7;
}
.chart-box .dot {
  position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; border: 2px solid var(--pico-background-color);
  pointer-events: none; box-sizing: border-box;
}
.chart-box .tip {
  position: absolute; z-index: 2; pointer-events: none;
  min-width: 220px; max-width: 340px; padding: .6rem .75rem;
  font-size: .78rem; line-height: 1.35;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}
.tip-head { display: flex; justify-content: space-between; gap: .75rem; color: var(--pico-muted-color); }
.tip-head code { padding: 0 .3rem; font-size: .75rem; }
.tip-author { margin-top: .3rem; font-weight: 600; }
.tip-msg { margin-top: .15rem; overflow-wrap: anywhere; }
.tip-langs { width: 100%; margin: .5rem 0 .2rem; font-size: .75rem; }
.tip-langs td { padding: .1rem .25rem; border: 0; background: none; white-space: nowrap; }
.tip-langs td:first-child { padding-left: 0; }
.tip-langs td:not(:first-child) { text-align: right; }
.tip-langs i { display: inline-block; width: .6rem; height: .6rem; border-radius: 2px; margin-right: .35rem; vertical-align: baseline; }
.tip-langs .up { color: #2da44e; }
.tip-langs .down { color: #cf222e; }
.tip-total td { border-top: 1px solid var(--pico-muted-border-color); font-weight: 600; }
.tip-foot { color: var(--pico-muted-color); font-size: .7rem; }

/* owner page */
.muted { color: var(--pico-muted-color); }
.owner-head { display: flex; gap: 1.25rem; align-items: center; margin: 1rem 0 1.5rem; }
.owner-head h1 { margin: 0; font-size: 1.8rem; }
.owner-head p { margin: .2rem 0 0; }
.owner-head .avatar { border-radius: 50%; flex: 0 0 auto; }
.owner-head .bio { font-size: .9rem; }

.lang-bar { margin-bottom: 1.5rem; }
.lang-bar .bar { display: flex; height: 30px; border-radius: 6px; overflow: hidden; gap: 2px; }
.lang-bar .seg {
  flex: 1 1 0; min-width: 3px; overflow: hidden; white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0; font-size: 13px; line-height: 1;
}
.lang-bar .seg b { font-weight: 600; }
.lang-bar .seg small { font-size: 12px; opacity: .85; }
.lang-icon {
  flex: 0 0 16px; width: 16px; height: 16px; display: inline-block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.chips { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: 0; margin: .6rem 0 0; list-style: none; font-size: .85rem; }
.chips li { list-style: none; margin: 0; }
.chips i, .chip i { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .35rem; }

.queue-note { font-size: .9rem; }
.owner-tools { display: flex; gap: .75rem; }
.owner-tools input { flex: 1 1 auto; }
.owner-tools select { flex: 0 0 13rem; }

.owner-cards .card { gap: .35rem; }
.owner-cards .thumb { aspect-ratio: 2 / 1; display: flex; }
.owner-cards .thumb img { width: 100%; height: 100%; }
.thumb-status {
  flex: 1; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--pico-muted-border-color); border-radius: 6px;
  color: var(--pico-muted-color); font-size: .85rem;
}
.thumb-status.error, .thumb-status.not_found { border-style: solid; }
.card-title { display: flex; align-items: baseline; gap: .5rem; }
.card-title .stars { margin-left: auto; color: var(--pico-muted-color); }
.card-title .tag { border: 1px solid var(--pico-muted-border-color); border-radius: 4px; padding: 0 .3rem; color: var(--pico-muted-color); }
.card-desc {
  margin: 0; font-size: .82rem; color: var(--pico-muted-color);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .78rem; margin-top: auto; }
@media (max-width: 576px) {
  .owner-tools { flex-direction: column; gap: 0; }
  .owner-tools select { flex: 0 0 auto; }
}
