/* Pretty Trained — layout, tablet-first */

.pt-topbar {
  background: var(--pt-black);
  color: #f2ede0;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.pt-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.pt-brand img {
  height: 34px;
  width: auto;
  display: block;
}
.pt-brand .pt-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.pt-brand .pt-brand-text .studio {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  color: var(--pt-gold-light);
  font-weight: 700;
}
.pt-brand .pt-brand-text .product {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cfc6b0;
}

.pt-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.pt-nav a {
  color: #f2ede0;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4em 0.2em;
}
.pt-nav a:hover { color: var(--pt-gold-light); text-decoration: none; }
.pt-nav a.active { color: var(--pt-gold-light); border-bottom: 2px solid var(--pt-gold); }
.pt-nav .pt-pill {
  background: var(--pt-red);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1em 0.55em;
  margin-left: 0.35em;
}
.pt-nav form { display: inline; }
.pt-nav .logout {
  background: transparent;
  border: 1px solid #4a4432;
  color: #f2ede0;
  border-radius: var(--radius-sm);
  padding: 0.5em 0.9em;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}
.pt-nav .logout:hover { background: var(--pt-black-soft); }

.pt-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.6rem 1.2rem 4rem;
}

.pt-page-header {
  margin-bottom: 1.4rem;
}
.pt-page-header h1 { font-size: 1.6rem; margin-bottom: 0.15em; }
.pt-page-header .subtitle { color: var(--pt-muted); }

.pt-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.pt-stat {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.pt-stat .num { font-size: 1.8rem; font-weight: 700; color: var(--pt-black); }
.pt-stat .label { color: var(--pt-muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pt-stat.flagged .num { color: var(--pt-orange); }

.pt-phase-block { margin-bottom: 2rem; }
.pt-phase-block h2 {
  font-size: 1.15rem;
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}
.pt-phase-block .day-range { font-size: 0.82rem; font-weight: 500; color: var(--pt-muted); }

.pt-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.pt-module-card {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}
.pt-module-card:hover { border-color: var(--pt-gold); text-decoration: none; }
.pt-module-card .week-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pt-gold-dark);
  font-weight: 700;
}
.pt-module-card h3 { font-size: 1.05rem; margin: 0; }
.pt-module-card .progress-note { font-size: 0.84rem; color: var(--pt-muted); }

.pt-skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.pt-skill-row {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.pt-skill-row .skill-title { font-weight: 600; }
.pt-skill-row .skill-desc { color: var(--pt-muted); font-size: 0.88rem; margin-top: 0.2em; }
.pt-skill-row .skill-main { flex: 1 1 260px; }
.pt-skill-row .skill-actions { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }

.pt-weekplan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 2rem;
}
.pt-weekplan .day-card {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-left: 4px solid var(--pt-gold);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.pt-weekplan .day-card h4 {
  margin: 0 0 0.4em;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pt-gold-dark);
}
.pt-weekplan .day-card p { margin: 0; font-size: 0.92rem; color: var(--pt-ink); }

.pt-roster-table,
.pt-review-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pt-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.pt-roster-table th,
.pt-roster-table td,
.pt-review-table th,
.pt-review-table td {
  padding: 0.85em 1em;
  text-align: left;
  border-bottom: 1px solid var(--pt-border);
  vertical-align: middle;
}
.pt-roster-table th,
.pt-review-table th {
  background: #f4efe3;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pt-muted);
}
.pt-roster-table tr:last-child td,
.pt-review-table tr:last-child td { border-bottom: none; }

.pt-table-wrap { overflow-x: auto; }

.pt-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pt-black);
  padding: 1.5rem;
}
.pt-login-card {
  background: var(--pt-surface);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 2.2rem;
  width: 100%;
  max-width: 380px;
}
.pt-login-card .pt-brand { justify-content: center; margin-bottom: 1.6rem; }
.pt-login-card .pt-brand .studio { color: var(--pt-gold-dark); font-size: 1.3rem; }
.pt-login-card .pt-brand .product { color: var(--pt-muted); }
.pt-login-card .pt-brand img { height: 46px; filter: invert(0.08); }

.pt-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--pt-muted);
}

.pt-flag-note {
  background: var(--pt-amber-bg);
  border-radius: var(--radius-sm);
  padding: 0.9em 1.1em;
  font-size: 0.88rem;
  color: var(--pt-amber);
  margin-bottom: 1.2rem;
}

.pt-proof-file {
  display: inline-block;
  margin-top: 0.4em;
  font-size: 0.88rem;
}

/* Lessons: slide viewer */
.pt-slide-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.pt-slide-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pt-border);
  display: inline-block;
}
.pt-slide-dots .dot.active { background: var(--pt-gold); }
.pt-slide-dots .dot:hover { background: var(--pt-gold-light); }

.pt-slide-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto 1.6rem;
}
.pt-slide-card h2 { font-size: 1.3rem; }
.pt-slide-image {
  max-width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}
.pt-slide-video {
  width: 100%;
  border-radius: var(--radius-sm);
  background: #000;
  display: block;
}
.pt-slide-body { font-size: 1.05rem; line-height: 1.6; }

.pt-slide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  gap: 1rem;
}
.pt-slide-nav form { margin: 0; }

.pt-file-frame {
  width: 100%;
  height: 70vh;
  border: 1px solid var(--pt-border);
  border-radius: var(--radius-sm);
}

/* Lessons: quiz */
.pt-quiz-question { margin-bottom: 1rem; }
.pt-quiz-question.correct { border-left: 4px solid var(--pt-green); }
.pt-quiz-question.incorrect { border-left: 4px solid var(--pt-red); }
.pt-quiz-result.pass { border-left: 4px solid var(--pt-green); }
.pt-quiz-result.fail { border-left: 4px solid var(--pt-red); }
.pt-quiz-result h2 { margin-bottom: 0.2em; }

/* Manage Training */
.pt-training-program { margin-bottom: 1.4rem; }
.pt-training-phase {
  border-top: 1px solid var(--pt-border);
  margin-top: 1.2rem;
  padding-top: 1.2rem;
}
.pt-training-phase h3 { display: flex; align-items: baseline; gap: 0.6em; }
.pt-training-phase .day-range { font-size: 0.8rem; font-weight: 500; color: var(--pt-muted); }
.pt-training-module-list {
  list-style: none;
  margin: 0.8rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pt-training-module-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.7em 1em;
  border: 1px solid var(--pt-border);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
}
.pt-training-module-link:hover { border-color: var(--pt-gold); text-decoration: none; }
.pt-training-module-link .week-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pt-gold-dark);
  font-weight: 700;
  min-width: 4.5em;
}
.pt-training-module-link .title { font-weight: 600; flex: 1 1 auto; }
.pt-training-module-link .counts { font-size: 0.82rem; color: var(--pt-muted); }

.pt-formset-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0 0.6rem;
}
.pt-formset-table th {
  text-align: left;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pt-muted);
  padding: 0.4em 0.5em;
}
.pt-formset-table td {
  padding: 0.4em 0.5em;
  vertical-align: top;
  border-bottom: 1px solid var(--pt-border);
}
.pt-formset-table input[type=text],
.pt-formset-table input[type=number],
.pt-formset-table textarea,
.pt-formset-table select {
  min-height: 38px;
  padding: 0.4em 0.5em;
  font-size: 0.92rem;
}
.pt-formset-table input[type=checkbox] { width: auto; min-height: auto; }
.pt-formset-table input[type=file] { font-size: 0.82rem; }
.pt-delete-label {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.78rem;
  color: var(--pt-red);
  font-weight: 500;
  white-space: nowrap;
}
.pt-delete-label input { width: auto; min-height: auto; }

.pt-checkbox-list {
  display: block;
  border: 1px solid var(--pt-border);
  border-radius: var(--radius-sm);
  padding: 0.6em 0.9em;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
}
.pt-checkbox-list ul { list-style: none; margin: 0; padding: 0; }
.pt-checkbox-list li { padding: 0.3em 0; }
.pt-checkbox-list label { display: flex; align-items: center; gap: 0.5em; font-weight: 400; margin: 0; }
.pt-checkbox-list input[type=checkbox] { width: auto; min-height: auto; }

.pt-content-list {
  list-style: none;
  margin: 0.6rem 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pt-content-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7em 1em;
  border: 1px solid var(--pt-border);
  border-radius: var(--radius-sm);
}

@media (max-width: 640px) {
  .pt-topbar { padding: 0.8rem 1rem; }
  .pt-nav { gap: 0.7rem; }
  .pt-main { padding: 1.2rem 0.8rem 3rem; }
  .pt-skill-row { flex-direction: column; align-items: flex-start; }
  .pt-skill-row .skill-actions { width: 100%; }
}
