/* Sahifalar orasida umumiy qismlar: sarlavha ikonkasi, xulosa chiplari, o'lchov chizig'i, plitka kartalar. */

/* Asosiy maydon tepasida yengil yashil tus: sahifa "bo'sh qog'oz"dek ko'rinmasin. */
.main {
  background: radial-gradient(1100px 380px at 85% -140px, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%) no-repeat;
}

.page:not(.narrow) {
  max-width: 1240px;
}

/* ---- Sahifa sarlavhasi ---- */
.page-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.page-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(145deg, #0d8f6c, #0b6e53);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 22px -12px rgba(11, 122, 92, 0.9);
  color: #fff;
}

.page-head h1 {
  font-size: clamp(25px, 3vw, 32px);
}

/* ---- Xulosa chiplari ---- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-size: 13.5px;
}

.chip strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
}

.chip.tone-accent .chip-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.chip.tone-blue .chip-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.chip.tone-amber .chip-icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.chip.tone-red .chip-icon {
  background: var(--red-soft);
  color: var(--red);
}

/* ---- O'lchov chizig'i ---- */
.meter {
  height: 6px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.3s ease;
}

.meter.tone-amber span {
  background: var(--amber);
}

.meter.tone-red span {
  background: var(--red);
}

.meter-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.meter-label strong {
  color: var(--text);
  font-weight: 620;
}

/* ---- Plitka kartalar (testlar ro'yxati) ---- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.tile {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.tile:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tile-title {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.tile-foot {
  display: grid;
  gap: 6px;
}

/* ---- Kartalar va ro'yxatlar ---- */
.card {
  border-radius: 18px;
}

.card-head {
  padding: 18px 20px 2px;
}

/* Ro'yxat qatorlari orasida ingichka chiziq: ko'z qatorlarni oson ajratadi. */
.list > .row + .row,
.list > .material-row + .material-row {
  position: relative;
}

.list > .row + .row::before,
.list > .material-row + .material-row::before {
  content: '';
  position: absolute;
  top: 0;
  right: 12px;
  left: 12px;
  height: 1px;
  background: var(--line);
}

.row-icon {
  border-radius: 12px;
}

@media (max-width: 860px) {
  .page-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .chips {
    flex-wrap: nowrap;
    margin: 0 -16px;
    padding: 2px 16px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .chip {
    flex: none;
  }
}
