@import url("./tokens.css");

tt-teacher-card,
tt-need-brief,
tt-match-sheet,
tt-booking-ticket,
tt-session-room,
tt-outcome-card,
tt-trust-passport,
tt-guarantee-seal,
tt-safety-timeline,
tt-earnings-payout,
tt-demand-prompt,
tt-notification-item {
  display: block;
  min-width: 0;
  color: var(--tt-ink);
  font-family: var(--tt-font);
  font-size: var(--tt-size-body);
  letter-spacing: 0;
}

.tt-object,
.tt-object * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.tt-object {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: var(--tt-space-3);
  overflow: hidden;
  padding: var(--tt-space-4);
  border: 1px solid var(--tt-border-strong);
  border-radius: var(--tt-radius-object);
  background: var(--tt-surface);
  box-shadow: var(--tt-e2);
}

.tt-object--rail {
  width: min(100%, 236px);
  min-height: 292px;
}

.tt-object--row {
  min-height: 76px;
}

.tt-object-header,
.tt-identity,
.tt-name,
.tt-price-row,
.tt-ticket-stamp,
.tt-band-row,
.tt-change-line,
.tt-verification-row,
.tt-payout-promise,
.tt-guarantee-mark {
  display: flex;
  align-items: center;
}

.tt-object-header,
.tt-price-row,
.tt-ticket-stamp,
.tt-band-row {
  justify-content: space-between;
}

.tt-object-title,
.tt-section-title,
.tt-object h4,
.tt-object p,
.tt-object blockquote {
  margin: 0;
}

.tt-object-title {
  overflow-wrap: anywhere;
  font-size: var(--tt-size-h3);
  line-height: 1.35;
}

.tt-section-title,
.tt-object h4 {
  font-size: var(--tt-size-label);
  line-height: 1.4;
}

.tt-eyebrow {
  color: var(--tt-muted);
  font-size: var(--tt-size-caption);
  font-weight: 800;
  text-transform: uppercase;
}

.tt-honesty,
.tt-meta-line,
.tt-policy,
.tt-child-line {
  color: var(--tt-muted);
  font-size: var(--tt-size-label);
  line-height: 1.45;
}

.tt-identity {
  gap: var(--tt-space-3);
}

.tt-avatar {
  position: relative;
  display: grid;
  width: 56px;
  height: 64px;
  flex: 0 0 56px;
  place-items: center;
  border: 1px solid rgb(14 124 134 / 22%);
  border-radius: var(--tt-radius-object);
  background: var(--tt-trust-wash);
  color: var(--tt-trust-deep);
  font-size: var(--tt-size-h2);
  font-weight: 800;
}

.tt-presence {
  position: absolute;
  right: -3px;
  bottom: 7px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--tt-surface);
  border-radius: 50%;
  background: var(--tt-faint);
}

.tt-presence--online {
  background: var(--tt-proof);
  animation: tt-breathe 2400ms ease-in-out infinite;
}

.tt-avatar__image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.tt-identity__copy {
  min-width: 0;
}

.tt-name {
  gap: var(--tt-space-1);
  font-size: var(--tt-size-h3);
  font-weight: 800;
}

.tt-fit-line {
  margin: var(--tt-space-1) 0 0;
  color: var(--tt-trust-deep);
  font-size: var(--tt-size-label);
  font-weight: 700;
  line-height: 1.35;
}

.tt-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--tt-border);
  padding-block: var(--tt-space-2);
}

.tt-proof-metric {
  min-width: 0;
  padding-inline: var(--tt-space-1);
  text-align: center;
}

.tt-proof-metric + .tt-proof-metric {
  border-left: 1px solid var(--tt-border);
}

.tt-proof-metric b,
.tt-proof-metric small {
  display: block;
}

.tt-proof-metric b {
  color: var(--tt-ink);
  font-size: var(--tt-size-h3);
  font-variant-numeric: tabular-nums;
}

.tt-proof-metric small {
  margin-top: 2px;
  color: var(--tt-muted);
  font-size: 9px;
  line-height: 1.2;
}

.tt-price {
  font-size: var(--tt-size-h3);
  font-variant-numeric: tabular-nums;
}

.tt-chip-row,
.tt-fit-reasons,
.tt-risk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tt-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--tt-border-strong);
  border-radius: var(--tt-radius-chip);
  background: var(--tt-soft);
  color: var(--tt-muted);
  font-size: var(--tt-size-caption);
  font-weight: 700;
  line-height: 1.25;
  padding: 4px 7px;
}

.tt-chip--trust {
  border-color: rgb(14 124 134 / 25%);
  background: var(--tt-trust-wash);
  color: var(--tt-trust-deep);
}

.tt-chip--warn {
  border-color: rgb(185 118 15 / 30%);
  background: #fff6df;
  color: #76500d;
}

.tt-chip--warm {
  border-color: rgb(180 99 44 / 25%);
  background: var(--tt-warm-wash);
  color: #7e401b;
}

.tt-chip--proof {
  border-color: rgb(18 131 91 / 25%);
  background: #e8f7f0;
  color: #096443;
}

.tt-microseal {
  display: flex;
  align-items: center;
  gap: var(--tt-space-2);
  color: var(--tt-trust-deep);
  font-size: 9px;
  font-weight: 800;
}

.tt-ticket::after {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--tt-border-strong);
  border-radius: 50%;
  background: var(--tt-page);
  content: "";
}

.tt-ticket-stamp {
  padding-bottom: var(--tt-space-2);
  border-bottom: 1px dashed var(--tt-border-strong);
  color: var(--tt-trust-deep);
  font-size: var(--tt-size-label);
}

.tt-quote,
.tt-teacher-voice {
  border-left: 3px solid var(--tt-warm);
  color: var(--tt-ink);
  font-size: var(--tt-size-body);
  line-height: 1.5;
  padding-left: var(--tt-space-3);
}

.tt-empty-line {
  color: var(--tt-muted);
  line-height: 1.45;
}

.tt-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c47c08;
  border-radius: var(--tt-radius-chip);
  background: var(--tt-action);
  color: #342000;
  cursor: pointer;
  font: 800 var(--tt-size-body) / 1.2 var(--tt-font);
  padding: 10px 12px;
  transition: transform var(--tt-press), filter var(--tt-settle);
}

.tt-button:hover {
  filter: brightness(0.97);
}

.tt-button:active {
  transform: scale(0.985);
}

.tt-button:focus-visible {
  outline: 3px solid rgb(14 124 134 / 30%);
  outline-offset: 2px;
}

.tt-button--soft {
  border-color: var(--tt-border-strong);
  background: var(--tt-soft);
  color: var(--tt-ink);
}

.tt-button--danger {
  border-color: var(--tt-danger);
  background: var(--tt-surface);
  color: var(--tt-danger);
}

.tt-state-rail,
.tt-safety-timeline,
.tt-ready-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tt-state-rail {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tt-state-rail li {
  position: relative;
  min-height: 36px;
  border-top: 2px solid var(--tt-border-strong);
  color: var(--tt-faint);
  font-size: 9px;
  line-height: 1.25;
  padding-top: 6px;
}

.tt-state-rail li.is-complete {
  border-color: var(--tt-trust);
  color: var(--tt-trust-deep);
  font-weight: 800;
}

.tt-objective {
  display: grid;
  gap: var(--tt-space-1);
  border-left: 4px solid var(--tt-trust);
  background: var(--tt-trust-wash);
  padding: var(--tt-space-3);
}

.tt-countdown {
  color: var(--tt-trust-deep);
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tt-ready-list {
  display: grid;
  gap: 6px;
}

.tt-ready-list li::before {
  color: var(--tt-trust);
  content: "✓";
  font-weight: 900;
  margin-right: 7px;
}

.tt-change-line {
  display: grid;
  gap: var(--tt-space-2);
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
}

.tt-change-line span,
.tt-change-line strong {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.tt-change-line strong {
  color: var(--tt-proof);
}

.tt-teacher-voice {
  display: flex;
  align-items: flex-start;
  gap: var(--tt-space-2);
  color: #7e401b;
}

.tt-passport-section {
  display: grid;
  gap: var(--tt-space-2);
}

.tt-verification-row {
  gap: var(--tt-space-2);
  font-size: var(--tt-size-label);
}

.tt-timeline {
  display: grid;
  border-left: 2px solid var(--tt-trust-wash);
  gap: var(--tt-space-2);
  padding-left: var(--tt-space-3);
}

.tt-timeline__item {
  font-size: var(--tt-size-label);
  line-height: 1.4;
}

.tt-spend-meter {
  height: 10px;
  overflow: hidden;
  border-radius: var(--tt-radius-pill);
  background: var(--tt-page);
}

.tt-spend-meter::before {
  display: block;
  width: var(--tt-progress);
  height: 100%;
  border-radius: inherit;
  background: var(--tt-trust);
  content: "";
}

.tt-object--seal {
  align-items: center;
  box-shadow: var(--tt-e1);
  text-align: center;
}

.tt-guarantee-mark {
  flex-direction: column;
  color: var(--tt-trust-deep);
  font-size: var(--tt-size-label);
}

.tt-safety-timeline {
  display: grid;
  gap: 0;
}

.tt-safety-timeline li {
  position: relative;
  display: grid;
  min-height: 44px;
  border-left: 2px solid var(--tt-border-strong);
  color: var(--tt-faint);
  gap: 2px;
  grid-template-columns: 1fr auto;
  margin-left: 7px;
  padding: 0 0 var(--tt-space-3) 18px;
}

.tt-safety-timeline li::before {
  position: absolute;
  top: 0;
  left: -7px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--tt-border-strong);
  border-radius: 50%;
  background: var(--tt-surface);
  content: "";
}

.tt-safety-timeline li.is-complete {
  border-left-color: var(--tt-trust);
  color: var(--tt-ink);
}

.tt-safety-timeline li.is-complete::before {
  border-color: var(--tt-trust);
  background: var(--tt-trust);
}

.tt-safety-timeline time {
  color: var(--tt-muted);
  font-size: var(--tt-size-caption);
}

.tt-earnings-hero {
  display: grid;
  gap: var(--tt-space-1);
}

.tt-hero-number {
  color: var(--tt-ink);
  font-size: 36px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.tt-payout-promise {
  gap: var(--tt-space-3);
  border-top: 1px solid var(--tt-border);
  padding-top: var(--tt-space-3);
}

.tt-demand-visual {
  position: relative;
  display: grid;
  min-height: 92px;
  place-items: center;
}

.tt-demand-heat {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(5, 1fr);
  opacity: 0.85;
}

.tt-demand-heat i {
  border: 1px solid rgb(14 124 134 / 12%);
  border-radius: 4px;
  background: var(--tt-trust-wash);
}

.tt-demand-heat i[data-level="2"] {
  background: #b9dfe2;
}

.tt-demand-heat i[data-level="3"] {
  background: #7dbec4;
}

.tt-demand-visual .tt-hero-number {
  position: relative;
  padding: 6px 9px;
  border: 1px solid var(--tt-border-strong);
  border-radius: var(--tt-radius-chip);
  background: rgb(255 255 255 / 92%);
}

.tt-object--o12 {
  display: grid;
  align-items: center;
  gap: var(--tt-space-3);
  grid-template-columns: 12px minmax(0, 1fr) auto;
}

.tt-object--o12.is-read {
  background: var(--tt-soft);
  box-shadow: var(--tt-e1);
}

.tt-actor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tt-trust);
}

.tt-actor-dot--teacher {
  background: var(--tt-warm);
}

.tt-actor-dot--system {
  background: var(--tt-ink);
}

.tt-notification-copy {
  min-width: 0;
  line-height: 1.45;
}

.tt-glyph {
  flex: 0 0 auto;
  overflow: visible;
  stroke: var(--tt-trust);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tt-glyph__support {
  opacity: 0.35;
  stroke: var(--tt-ink);
}

.tt-glyph__detail {
  stroke-width: 1.25;
}

.tt-glyph path,
.tt-glyph rect,
.tt-glyph circle {
  animation: tt-draw var(--tt-draw) both;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}

.tt-glyph--quote,
.tt-glyph--chalk-play {
  stroke: var(--tt-warm);
}

@keyframes tt-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes tt-breathe {
  50% { box-shadow: 0 0 0 5px rgb(18 131 91 / 12%); }
}

@media (max-width: 420px) {
  .tt-object {
    padding: var(--tt-space-3);
  }

  .tt-object--rail {
    width: 100%;
  }

  .tt-state-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tt-proof-metric small {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt-presence--online,
  .tt-glyph path,
  .tt-glyph rect,
  .tt-glyph circle {
    animation: none;
    stroke-dashoffset: 0;
  }
}
