/* Practice tools: buyer role cards, objection deck and the admin review.
   Loaded after app.css on account.html and admin.html. Large type: these
   screens are read on a phone held at arm's length during a rep. */

.practice-seg {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--app-card);
}

.practice-seg button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: 600 14px var(--sans);
  cursor: pointer;
}

.practice-seg button[aria-selected="true"] {
  background: var(--app-raised);
  color: var(--bone);
  box-shadow: inset 0 -2px 0 var(--orange);
}

.practice-card {
  max-width: 720px;
}

.practice-card .app-empty span {
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.5;
}

.app-page .btn.practice-big {
  min-height: 52px;
  padding: 0 22px;
  font-size: 16px;
}

.practice-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.practice-label {
  margin-bottom: 6px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.practice-muted {
  color: var(--muted);
}

/* ---------- Buyer card ---------- */

.buyer-card {
  display: grid;
  gap: 18px;
  justify-items: start;
  border-top: 4px solid var(--orange);
}

.buyer-card .practice-kicker {
  margin-bottom: 0;
}

.app-card-head h2.buyer-title,
.buyer-title {
  font-family: var(--sans);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
  color: var(--bone);
}

.buyer-situation {
  font-size: clamp(18px, 3.6vw, 21px);
  line-height: 1.5;
  color: var(--bone);
}

.buyer-secret,
.buyer-win {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--app-raised);
  font-size: 18px;
  line-height: 1.45;
}

.buyer-secret {
  border-left: 4px solid var(--orange);
}

.buyer-secret[hidden] {
  display: none;
}

.buyer-secret .practice-label {
  color: var(--orange);
}

/* ---------- Objection deck ---------- */

.practice-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.practice-filter {
  display: grid;
  gap: 4px;
  color: var(--faint);
  font-size: 12.5px;
}

.practice-filter select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--app-raised);
  color: var(--bone);
  font: 500 14px var(--sans);
}

.practice-add {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.practice-add[hidden] {
  display: none;
}

.practice-count {
  margin-top: -6px;
  color: var(--faint);
  font-size: 12px;
  text-align: right;
}

.objection-text {
  margin-bottom: 22px;
  font-size: clamp(24px, 5.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--bone);
}

.practice-timer {
  display: grid;
  gap: 10px;
}

.practice-time {
  font-size: clamp(56px, 14vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
  transition: color 0.2s ease;
}

.practice-timer-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--app-raised);
}

.practice-timer-bar i {
  display: block;
  width: var(--w, 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--bone);
  transition: width 0.1s linear, background-color 0.2s ease;
}

.practice-timer.is-ending .practice-time,
.practice-timer.is-done .practice-time {
  color: var(--orange);
}

.practice-timer.is-ending .practice-timer-bar i {
  background: var(--orange);
}

.practice-status {
  min-height: 1.5em;
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 15px;
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* ---------- Admin review ---------- */

.objection-row {
  align-items: start;
}

.objection-row strong {
  font-weight: 500;
  line-height: 1.4;
}

.objection-row-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.practice-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.app-page .practice-row-actions .btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

@media (max-width: 860px) {
  .practice-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .practice-card {
    padding: 18px 16px;
  }

  .practice-actions .btn {
    flex: 1 1 100%;
  }

  .buyer-card .btn.practice-big,
  .practice-card .app-empty .btn.practice-big {
    width: 100%;
  }

  .objection-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .objection-row-side {
    justify-items: start;
  }

  .practice-row-actions {
    justify-content: start;
  }
}
