/* ==========================================================================
   STEVE'S STUDY HOUSE � PORTAL & PARENT DASHBOARD STYLES
   Applies to: portal.html, parent-dashboard.html
   Does NOT touch: styles.css, studyhouse.css, teacher.css, british-collegiate.css
   ========================================================================== */

/* These pages don't load styles.css, so they never got the global
   border-box reset. Every width:100% + padding element below assumes
   border-box; without this, each one overflows its container by exactly
   its own padding, causing horizontal scroll on phones/tablets. */
*, *::before, *::after {
  box-sizing: border-box;
}

img, svg { max-width: 100%; height: auto; }

/* ----------------------------------------------------------------
   PORTAL PAGE � GATEWAY LAYOUT
   ---------------------------------------------------------------- */

.portal-page {
  min-height: 100vh;
  background: #0A192F;
  display: flex;
  flex-direction: column;
}

/* Institutional top bar */
.portal-header {
  background: #0E261E;
  border-bottom: 2px solid #D4AF37;
  box-shadow: 0 4px 24px rgba(0,0,0,0.45);
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.portal-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #DFBA6F;
  box-shadow: 0 0 14px rgba(223,186,111,0.4);
  overflow: hidden;
  background: #7E1D22;
  flex-shrink: 0;
}

.portal-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-brand-text {
  display: flex;
  flex-direction: column;
}

.portal-brand-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E5C378;
  line-height: 1.1;
  margin-bottom: 2px;
}

.portal-brand-name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.03em;
}

.portal-back-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: #94A3B8;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.portal-back-link:hover { color: #E5C378; }

/* Security ribbon below header */
.portal-security-bar {
  background: #061220;
  border-bottom: 1px solid #1E3A5F;
  padding: 7px 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4A7C59;
}

.portal-security-bar .sep {
  color: #1E3A5F;
  margin: 0 6px;
}

/* Main gateway area */
.portal-gateway {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 60px 40px 80px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* PARENT CARD (large, centred) */
.portal-parent-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-right: 40px;
}

.portal-parent-card {
  width: 100%;
  max-width: 520px;
  background: #FAF8F5;
  border: 1px solid #D4AF37;
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.15),
    0 24px 64px -16px rgba(0,0,0,0.6),
    0 8px 32px rgba(0,0,0,0.35);
  overflow: hidden;
}

.parent-card-crest {
  background: linear-gradient(160deg, #0E261E 0%, #061711 100%);
  border-bottom: 2px solid #D4AF37;
  padding: 32px 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.parent-card-crest::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,175,55,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.parent-crest-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid #D4AF37;
  box-shadow: 0 0 24px rgba(212,175,55,0.45);
  overflow: hidden;
  margin: 0 auto 16px;
  background: #7E1D22;
}

.parent-crest-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.parent-card-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}

.parent-card-subtitle {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E5C378;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.parent-card-subtitle::before,
.parent-card-subtitle::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #8A631F;
}

.parent-card-body {
  padding: 36px;
}

.parent-card-welcome {
  font-family: "Newsreader", Georgia, serif;
  font-size: 0.98rem;
  color: #33423D;
  line-height: 1.6;
  margin: 0 0 28px;
  font-style: italic;
}

.portal-field-label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4B5850;
  margin-bottom: 8px;
}

.portal-input {
  width: 100%;
  padding: 14px 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #0A192F;
  background: #FFFFFF;
  border: 1.5px solid #C5BBA8;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-transform: none;
  box-sizing: border-box;
}

.portal-input:focus {
  border-color: #1F4B3F;
  box-shadow: 0 0 0 3px rgba(31,75,63,0.12);
}

.portal-input::placeholder {
  color: #A0ABA6;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
}

.portal-input.error {
  border-color: #A23B2E;
  box-shadow: 0 0 0 3px rgba(162,59,46,0.12);
}

.password-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #7C8880;
  padding: 4px;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.password-toggle:hover { color: #1F4B3F; }

.portal-error-msg {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #A23B2E;
  margin-top: 10px;
  font-weight: 500;
}

.portal-error-msg.visible { display: flex; }

.portal-btn-parent {
  width: 100%;
  margin-top: 24px;
  padding: 15px 24px;
  background: linear-gradient(135deg, #11382B, #061711);
  color: #FFFFFF;
  border: none;
  border-radius: 3px;
  font-family: "Work Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.portal-btn-parent:hover {
  background: linear-gradient(135deg, #1A4E3E, #0A2418);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.portal-btn-parent:active { transform: scale(0.985); }

.parent-card-seal {
  border-top: 1px solid #E7E1D0;
  padding: 14px 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7C8880;
}

@keyframes portal-shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.shake { animation: portal-shake 0.45s ease; }

/* TEACHER SIDEBAR (small, discreet) */
.portal-teacher-sidebar {
  width: 240px;
  flex-shrink: 0;
  padding-top: 8px;
}

.teacher-sidebar-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  padding: 10px 14px;
  color: #4A6580;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: 100%;
  transition: color 0.2s, border-color 0.2s;
}

.teacher-sidebar-toggle:hover {
  color: #94A3B8;
  border-color: rgba(255,255,255,0.2);
}

.teacher-sidebar-toggle .ts-chevron {
  margin-left: auto;
  transition: transform 0.25s;
  font-size: 0.7rem;
  color: #2D4560;
}

.teacher-sidebar-toggle[aria-expanded="true"] .ts-chevron { transform: rotate(180deg); }

.teacher-sidebar-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  padding: 18px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 3px;
}

.teacher-sidebar-panel.open { display: flex; }

.teacher-sidebar-panel .portal-field-label {
  color: #4A6580;
}

.teacher-sidebar-panel .portal-input {
  background: #091520;
  border-color: #1E3A5F;
  color: #CBD5E1;
  font-size: 0.9rem;
  padding: 11px 14px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.teacher-sidebar-panel .portal-input:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 2px rgba(212,175,55,0.15);
}

.teacher-sidebar-panel .portal-input::placeholder {
  color: #2D4560;
}

.portal-btn-teacher {
  width: 100%;
  padding: 11px 16px;
  background: transparent;
  color: #94A3B8;
  border: 1px solid #1E3A5F;
  border-radius: 3px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  letter-spacing: 0.04em;
}

.portal-btn-teacher:hover {
  border-color: #D4AF37;
  color: #E5C378;
  background: rgba(212,175,55,0.06);
}

.teacher-error-msg {
  display: none;
  font-size: 0.75rem;
  color: #E2917F;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
}

.teacher-error-msg.visible { display: block; }

/* Portal footer */
.portal-footer {
  background: #061220;
  border-top: 1px solid #1E3A5F;
  padding: 24px 40px;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2D4560;
}

/* ----------------------------------------------------------------
   PARENT DASHBOARD
   ---------------------------------------------------------------- */

.pdash-page {
  min-height: 100vh;
  background: #FAF8F5;
  display: flex;
  flex-direction: column;
}

.pdash-header {
  background: #0E261E;
  border-bottom: 2px solid #D4AF37;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.pdash-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.pdash-brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #DFBA6F;
  box-shadow: 0 0 14px rgba(223,186,111,0.35);
  overflow: hidden;
  background: #7E1D22;
  flex-shrink: 0;
}

.pdash-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdash-brand-text { display: flex; flex-direction: column; }

.pdash-brand-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E5C378;
  line-height: 1.1;
  margin-bottom: 2px;
}

.pdash-brand-name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFFFFF;
}

.pdash-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pdash-session-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4A7C59;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pdash-session-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4A7C59;
  display: inline-block;
}

.pdash-logout {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94A3B8;
  text-decoration: none;
  border: 1px solid #2D4560;
  padding: 6px 12px;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
  background: none;
  font-size: 0.68rem;
}

.pdash-logout:hover {
  border-color: #D4AF37;
  color: #E5C378;
}

.pdash-welcome-bar {
  background: linear-gradient(135deg, #0E261E 0%, #0A192F 100%);
  border-bottom: 1px solid #1E3A5F;
  padding: 28px 40px;
  position: relative;
  overflow: hidden;
}

.pdash-welcome-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(212,175,55,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.pdash-welcome-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pdash-welcome-text { display: flex; flex-direction: column; gap: 4px; }

.pdash-welcome-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E5C378;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdash-welcome-eyebrow::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: #8A631F;
}

.pdash-welcome-headline {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.pdash-welcome-sub {
  font-size: 0.88rem;
  color: #6B8FA6;
  margin: 2px 0 0;
}

.pdash-cohort-badge {
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 3px;
  padding: 10px 18px;
  text-align: center;
}

.pdash-cohort-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A631F;
  display: block;
  margin-bottom: 2px;
}

.pdash-cohort-name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #D4AF37;
}

/* ── Class Announcements Banner (teacher notes for this family's class) ── */
.pdash-announce-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 40px 0;
}

.pdash-announce-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pdash-announce-header strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1rem;
  color: #0E261E;
}

.pdash-announce-icon {
  font-size: 1.1rem;
}

.pdash-announce-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdash-announce-item {
  background: #FDFBF7;
  border: 1.5px solid #D4AF37;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.pdash-announce-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #1A202C;
  line-height: 1.45;
}

.pdash-announce-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: #8A631F;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .pdash-announce-banner { padding: 16px 20px 0; }
  .pdash-announce-item { flex-direction: column; gap: 4px; }
}

.pdash-tabs-nav {
  background: #FFFFFF;
  border-bottom: 2px solid #E7E1D0;
  padding: 0 40px;
}

.pdash-tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
}

.pdash-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 16px 24px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #7C8880;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.pdash-tab-btn:hover { color: #1F4B3F; }

.pdash-tab-btn.active {
  color: #1F4B3F;
  border-bottom-color: #D4AF37;
}

.pdash-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.pdash-tab-pane { display: none; }
.pdash-tab-pane.active { display: block; }

.pdash-section-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0A192F;
  margin: 0 0 6px;
}

.pdash-section-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #A6792B;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pdash-section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: #A6792B;
}

.pdash-unit-card {
  background: #FFFFFF;
  border: 1px solid #D3C9AC;
  border-left: 4px solid #1F4B3F;
  border-radius: 3px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(27,43,36,0.07);
}

.pdash-unit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pdash-unit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E3EBE5;
  border: 1px solid #C5D5CC;
  border-radius: 2px;
  padding: 4px 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1F4B3F;
  flex-shrink: 0;
}

.pdash-unit-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0C1A1A;
  margin: 0 0 8px;
}

.pdash-unit-goal {
  font-size: 0.94rem;
  color: #4B5850;
  line-height: 1.6;
  margin: 0 0 12px;
}

.pdash-why-box {
  background: #F3EFEA;
  border: 1px solid #D3C9AC;
  border-radius: 3px;
  padding: 16px 20px;
  margin-top: 16px;
}

.pdash-why-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A631F;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.pdash-why-text {
  font-size: 0.93rem;
  color: #33423D;
  line-height: 1.65;
  margin: 0;
  font-style: italic;
}

.pdash-vocab-heading {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0A192F;
  margin: 32px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pdash-vocab-heading span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A631F;
  background: #F1E5C8;
  border: 1px solid #D3C9AC;
  border-radius: 2px;
  padding: 3px 8px;
}

.pdash-vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.pdash-vocab-card {
  background: #FFFFFF;
  border: 1px solid #D3C9AC;
  border-radius: 3px;
  padding: 18px 20px;
  box-shadow: 0 1px 6px rgba(27,43,36,0.06);
}

.pdash-vocab-word {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0A192F;
  margin: 0 0 2px;
}

.pdash-vocab-ipa {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #A6792B;
  display: block;
  margin-bottom: 6px;
}

.pdash-vocab-def {
  font-size: 0.84rem;
  color: #4B5850;
  line-height: 1.5;
  margin: 0 0 8px;
}

.pdash-vocab-ex {
  font-size: 0.82rem;
  color: #7C8880;
  font-style: italic;
  border-left: 2px solid #D3C9AC;
  padding-left: 10px;
  margin: 0;
}

/* Tab 2: Practice at Home */
.pdash-dinner-card {
  background: linear-gradient(135deg, #0E261E 0%, #0A192F 100%);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 4px;
  padding: 32px 36px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.pdash-dinner-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(212,175,55,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.pdash-dinner-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E5C378;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdash-dinner-prompt {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.5;
  margin: 0 0 14px;
}

.pdash-dinner-hint {
  font-size: 0.88rem;
  color: #6B8FA6;
  line-height: 1.6;
  margin: 0;
}

.pdash-dinner-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 2px;
  padding: 6px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4AF37;
}

.pdash-frames-card {
  background: #FFFFFF;
  border: 1px solid #D3C9AC;
  border-radius: 3px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

.pdash-frames-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0A192F;
  margin: 0 0 4px;
}

.pdash-frames-desc {
  font-size: 0.85rem;
  color: #7C8880;
  margin: 0 0 18px;
}

.pdash-frame-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F1EDE1;
}

.pdash-frame-item:last-child { border-bottom: none; }

.pdash-frame-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #A6792B;
  background: #F1E5C8;
  border: 1px solid #D3C9AC;
  border-radius: 2px;
  padding: 3px 7px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pdash-frame-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88rem;
  color: #1F4B3F;
  line-height: 1.6;
  margin: 0;
}

/* Tab 3: Milestones */
.pdash-progress-header {
  background: #FFFFFF;
  border: 1px solid #D3C9AC;
  border-radius: 3px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pdash-progress-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(#1F4B3F var(--pct, 0%), #E7E1D0 var(--pct, 0%));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.pdash-progress-circle::before {
  content: "";
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  position: absolute;
}

.pdash-progress-pct {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1F4B3F;
  position: relative;
  z-index: 1;
}

.pdash-progress-meta h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0A192F;
  margin: 0 0 4px;
}

.pdash-progress-meta p {
  font-size: 0.88rem;
  color: #7C8880;
  margin: 0;
}

.pdash-milestone-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdash-milestone-item {
  background: #FFFFFF;
  border: 1px solid #D3C9AC;
  border-radius: 3px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pdash-milestone-item.done { border-left: 4px solid #1F4B3F; }
.pdash-milestone-item.current { border-left: 4px solid #D4AF37; }
.pdash-milestone-item.upcoming { border-left: 4px solid #E7E1D0; opacity: 0.6; }

.pdash-milestone-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.pdash-milestone-info h4 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0A192F;
  margin: 0 0 2px;
}

.pdash-milestone-info p {
  font-size: 0.82rem;
  color: #7C8880;
  margin: 0;
}

.pdash-milestone-status {
  margin-left: auto;
  flex-shrink: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.status-done { background: #E3EBE5; color: #1F4B3F; }
.status-current { background: #F1E5C8; color: #8A631F; }
.status-upcoming { background: #F1EDE1; color: #7C8880; }

/* Unified Milestones & Resources Cards */
.pdash-milestone-card {
  background: #FFFFFF;
  border: 1px solid #D3C9AC;
  border-radius: 6px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pdash-milestone-card:hover {
  border-color: #D4AF37;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.12);
}

.pdash-milestone-card.done { border-left: 5px solid #1F4B3F; }
.pdash-milestone-card.current { border-left: 5px solid #D4AF37; background: #FFFCF5; }
.pdash-milestone-card.upcoming { border-left: 5px solid #E7E1D0; opacity: 0.85; }

.pdash-milestone-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pdash-milestone-card-main {
  flex: 1;
  min-width: 0;
}

.pdash-milestone-competency {
  background: #F7F5EE;
  border-left: 3px solid #1F4B3F;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  font-size: 0.84rem;
  color: #2D3748;
  margin-top: 8px;
  line-height: 1.45;
}

.pdash-milestone-card.current .pdash-milestone-competency {
  background: #FDF6E2;
  border-left-color: #D4AF37;
}

.pdash-milestone-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #F0EAE1;
}

@media (max-width: 700px) {
  .pdash-milestone-card {
    padding: 16px 16px;
  }
  .pdash-milestone-actions {
    width: 100%;
  }
  .pdash-milestone-actions .pdash-res-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

.pdash-contact-card {
  background: #FFFFFF;
  border: 1px solid #D3C9AC;
  border-radius: 3px;
  padding: 24px 28px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pdash-contact-icon { font-size: 2rem; flex-shrink: 0; }

.pdash-contact-text h4 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: #0A192F;
  margin: 0 0 3px;
}

.pdash-contact-text p {
  font-size: 0.84rem;
  color: #7C8880;
  margin: 0;
}

.pdash-contact-btn {
  margin-left: auto;
  padding: 11px 20px;
  background: #1F4B3F;
  color: #FFFFFF;
  border: none;
  border-radius: 3px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pdash-contact-btn:hover { background: #153A30; }

/* Loading state */
.pdash-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7C8880;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding: 40px 0;
}

@keyframes pdash-spin {
  to { transform: rotate(360deg); }
}

.pdash-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #D3C9AC;
  border-top-color: #1F4B3F;
  border-radius: 50%;
  animation: pdash-spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .portal-gateway {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 32px 20px 60px;
  }
  .portal-parent-area { padding-right: 0; }
  .portal-teacher-sidebar { width: 100%; }
  .teacher-sidebar-toggle { justify-content: center; }
  .pdash-header { padding: 0 20px; }
  .pdash-welcome-bar { padding: 20px; }
  .pdash-announce-banner { padding: 16px 20px 0; }
  .pdash-tabs-nav { padding: 0 20px; }
  .pdash-content { padding: 24px 20px 60px; }
  .pdash-tabs-inner { overflow-x: auto; }
  .pdash-tab-btn { padding: 14px 16px; font-size: 0.82rem; }
  .pdash-welcome-inner { flex-direction: column; align-items: flex-start; }
  .pdash-cohort-badge { align-self: flex-start; }
  .pdash-progress-header { flex-direction: column; text-align: center; }
  .pdash-contact-card { flex-direction: column; }
  .pdash-contact-btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* Institutional header (portal login + parent dashboard): brand lockup +
   language toggle + child pill + session badge + sign-out button no longer
   fit on one fixed-height row below ~700px. Wrap instead of clipping. */
@media (max-width: 700px) {
  .portal-header,
  .pdash-header {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 10px 20px;
  }
  .portal-brand-logo,
  .pdash-brand-logo { width: 38px; height: 38px; }
  .portal-brand-sub,
  .pdash-brand-sub { display: none; }
  .portal-brand-name { font-size: 1.05rem; }
  .pdash-brand-name { font-size: 1.05rem; }
  .portal-back-link { font-size: 0.68rem; }
  .pdash-header-right { flex-wrap: wrap; gap: 10px; row-gap: 8px; }
  .pdash-session-badge { display: none; }
  .pdash-child-pill { padding: 3px 10px; font-size: 0.76rem; }
  .pdash-logout { padding: 5px 10px; }
}

@media (max-width: 600px) {
  .portal-security-bar { padding: 6px 20px; font-size: 0.6rem; }
  .portal-header { padding: 10px 20px; }
  .portal-brand-name { font-size: 1.05rem; }
  .parent-card-crest { padding: 24px 24px 20px; }
  .parent-card-body { padding: 24px; }
  .parent-card-seal { padding: 12px 24px; }
  .pdash-section-title { font-size: 1.3rem; }
  .pdash-vocab-grid { grid-template-columns: 1fr; }
  .pdash-dinner-card { padding: 22px 20px; }
  .pdash-dinner-prompt { font-size: 1.1rem; }
}


/* Specific error styling for teacher sidebar inputs */
.teacher-sidebar-panel .portal-input.error {
  border-color: #A23B2E !important;
  box-shadow: 0 0 0 2px rgba(162, 59, 46, 0.3) !important;
}

.password-toggle svg {
  display: block;
  pointer-events: none;
}


/* ================================================================
   CLASSROOM RESOURCES TAB (pdashPane4)
   ================================================================ */

.pdash-res-intro {
  font-size: 0.93rem;
  color: #4A5568;
  margin: 0 0 28px;
  line-height: 1.6;
  max-width: 720px;
}

.pdash-res-phase {
  margin-bottom: 36px;
}

.pdash-res-phase-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1F4B3F;
  padding: 6px 12px;
  background: #E3EBE5;
  border-left: 3px solid #1F4B3F;
  border-radius: 2px;
  margin-bottom: 12px;
}

.pdash-res-unit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdash-res-card {
  background: #FFFFFF;
  border: 1px solid #D3C9AC;
  border-radius: 4px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.pdash-res-card:hover {
  border-color: #D4AF37;
  box-shadow: 0 2px 12px rgba(212,175,55,0.12);
}

.pdash-res-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 200px;
  min-width: 0;
}

.pdash-res-card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.pdash-res-card-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: #0A192F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdash-res-card-sub {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: #7C8880;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.pdash-res-card-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.pdash-res-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 3px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  cursor: pointer;
}

.pdash-res-btn-primary {
  background: #1F4B3F;
  color: #FFFFFF;
  border: 2px solid #1F4B3F;
}

.pdash-res-btn-primary:hover {
  background: #153A30;
  border-color: #153A30;
}

.pdash-res-btn-ghost {
  background: transparent;
  color: #1F4B3F;
  border: 2px solid #1F4B3F;
}

.pdash-res-btn-ghost:hover {
  background: #1F4B3F;
  color: #FFFFFF;
}

@media (max-width: 700px) {
  .pdash-res-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .pdash-res-card-btns {
    width: 100%;
  }
  .pdash-res-btn {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.78rem;
    padding: 9px 10px;
  }
  .pdash-res-card-title {
    white-space: normal;
  }
}

/* ═══════════════════════════════════════════════════════════════
   INTERACTIVE PORTAL ENHANCEMENTS: AUDIO, MASTERY & PRACTICE
   ═══════════════════════════════════════════════════════════════ */

/* Tab Navigation Pills */
.pdash-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #F1E5C8;
  color: #8A631F;
  border: 1px solid #D3C9AC;
  border-radius: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 4px;
}

.pdash-tab-pill.active-streak {
  background: rgba(224, 90, 43, 0.15);
  color: #C0392B;
  border-color: rgba(224, 90, 43, 0.35);
}

/* Audio Speech Buttons */
.pdash-speech-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F4EFE6;
  border: 1px solid #D3C9AC;
  border-radius: 4px;
  color: #1F4B3F;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.pdash-speech-btn:hover {
  background: #1F4B3F;
  color: #FFFFFF;
  border-color: #1F4B3F;
  box-shadow: 0 2px 6px rgba(31, 75, 63, 0.2);
}

.pdash-speech-btn.playing {
  background: #D4AF37;
  color: #0A192F;
  border-color: #8A631F;
  animation: pdashPulse 1.2s infinite;
}

@keyframes pdashPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(212, 175, 55, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.pdash-speech-mini {
  padding: 2px 6px;
  font-size: 0.7rem;
  margin-left: 6px;
  vertical-align: middle;
}

.pdash-speech-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.16);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  color: #E5C378;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.pdash-speech-pill-btn:hover {
  background: #D4AF37;
  color: #0A192F;
  border-color: #D4AF37;
}

/* Tab 1: Vocab Mastery Header Banner */
.pdash-mastery-header-card {
  background: linear-gradient(135deg, #FAF7F0 0%, #F3ECE0 100%);
  border: 1.5px solid #D3C9AC;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pdash-mastery-header-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0A192F;
  margin-bottom: 3px;
}

.pdash-mastery-header-sub {
  font-size: 0.85rem;
  color: #55665E;
  margin: 0;
  line-height: 1.45;
}

.pdash-mastery-header-stats {
  background: #FFFFFF;
  border: 1px solid #D3C9AC;
  border-radius: 4px;
  padding: 8px 16px;
  text-align: center;
  min-width: 110px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.pdash-mastery-badge-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1F4B3F;
}

.pdash-mastery-badge-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A631F;
  display: block;
}

/* Vocab Card Interactive Features */
.pdash-vocab-card {
  position: relative;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}

.pdash-vocab-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(27, 43, 36, 0.1);
  border-color: #C5BBA8;
}

.pdash-vocab-card.is-mastered {
  border-color: #2D6A4F;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4FAF6 100%);
  box-shadow: 0 2px 8px rgba(45, 106, 79, 0.09);
}

.pdash-vocab-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.pdash-mastery-btn {
  margin-top: auto;
  padding-top: 10px;
  background: transparent;
  border: none;
  border-top: 1px dashed #E7E1D0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: #7C8880;
  transition: color 0.18s;
}

.pdash-mastery-btn:hover {
  color: #1F4B3F;
}

.pdash-mastery-btn.active {
  color: #2D6A4F;
  font-weight: 700;
}

.pdash-mastery-check {
  font-size: 0.85rem;
  margin-right: 4px;
}

/* Tab 2: Practice Streak Banner */
.pdash-streak-card {
  background: linear-gradient(135deg, #102621 0%, #081622 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 4px;
  padding: 20px 26px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(10, 25, 47, 0.2);
}

.pdash-streak-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pdash-streak-icon {
  font-size: 2.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(243, 156, 18, 0.4));
}

.pdash-streak-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E5C378;
  margin-bottom: 2px;
}

.pdash-streak-heading {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px;
}

.pdash-streak-sub {
  font-size: 0.86rem;
  color: #94A3B8;
  margin: 0;
  line-height: 1.4;
}

.pdash-streak-action-btn {
  background: #D4AF37;
  color: #0A192F;
  border: 2px solid #D4AF37;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pdash-streak-action-btn:hover:not(:disabled) {
  background: #E5C378;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.pdash-streak-action-btn.completed {
  background: rgba(45, 106, 79, 0.4);
  color: #98E2C6;
  border-color: #2D6A4F;
  cursor: default;
}

/* Roleplay Stepper */
.pdash-dinner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pdash-roleplay-stepper {
  margin-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdash-roleplay-step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 14px 18px;
}

.pdash-step-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E5C378;
  background: rgba(212, 175, 55, 0.15);
  padding: 3px 8px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 8px;
}

.pdash-step-hint {
  font-size: 0.86rem;
  color: #C0CFD9;
  line-height: 1.5;
  margin: 0;
}

.pdash-toggle-answer-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #E5C378;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.pdash-toggle-answer-btn:hover {
  background: #D4AF37;
  color: #0A192F;
}

/* Tonight's Homework — scored mic practice, own card on the light page bg */
.pdash-optional-tag {
  display: inline-block;
  vertical-align: middle;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #55665E;
  background: #F3EFEA;
  border: 1px solid #D3C9AC;
  border-radius: 2px;
  padding: 3px 7px;
  margin-left: 8px;
}

.pdash-hw-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 26px 28px;
  margin: 28px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(27, 43, 36, 0.03);
  position: relative;
  transition: all 0.3s ease;
  scroll-margin-top: 88px;
}

.pdash-hw-mission-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0E291D;
  border: 1px solid #184632;
  color: #FFFFFF;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(14, 41, 29, 0.2);
}

.pdash-hw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EDE7D9;
}

.pdash-hw-main-title {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.42rem;
  font-weight: 800;
  color: #1B2B24;
  margin: 0 0 4px;
  line-height: 1.25;
}

.pdash-hw-sub {
  font-size: 0.88rem;
  color: #4B5850;
  margin: 4px 0 0;
}

.pdash-hw-progress {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8E7138;
  background: #FEF9EC;
  border: 1px solid #E9CE8F;
  border-radius: 20px;
  padding: 6px 14px;
  white-space: nowrap;
}

.pdash-hw-progress.complete {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  color: #1F4B3F;
  background: #EAF7EE;
  border: 1.5px solid #27AE60;
  border-radius: 20px;
  padding: 6px 16px;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.12);
}

.pdash-hw-step-section {
  margin-top: 20px;
}

.pdash-hw-step-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EAF7EE;
  border: 1.5px solid #27AE60;
  color: #1E6B37;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.12);
}

.pdash-hw-step {
  padding: 18px 0;
  border-top: 1px solid #EDE7D9;
  transition: all 0.25s ease;
}

.pdash-hw-step:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.pdash-hw-step.is-active {
  background: #FDFBF5;
  border: 1.5px solid #E5C378;
  border-radius: 8px;
  padding: 20px 22px;
  margin: 16px 0;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.14);
}

.pdash-hw-step.is-staged {
  background: #F8FCF9;
  border: 1.5px solid #27AE60;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 14px 0;
  box-shadow: 0 4px 14px rgba(39, 174, 96, 0.08);
}

.pdash-step-staged-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EAF7EE;
  border: 1px solid #27AE60;
  color: #1E6B37;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 2px 10px;
  margin-left: 10px;
  vertical-align: middle;
}

.pdash-hw-step.is-done {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0;
  box-shadow: 0 4px 16px rgba(27, 43, 36, 0.05);
}

.pdash-step-outer-card.is-done {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(27, 43, 36, 0.05);
}

.pdash-step-active-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #D4AF37;
  color: #0A192F;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}

.pdash-hw-step-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: #1B2B24;
  margin-bottom: 4px;
}

.pdash-hw-question {
  font-size: 0.96rem;
  font-weight: 600;
  color: #1B2B24;
  background: #F3EFEA;
  border-left: 3px solid #D4AF37;
  border-radius: 3px;
  padding: 10px 14px;
  margin: 8px 0 12px;
}

.pdash-speak-target-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.pdash-speak-word-chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  color: #8E7138;
  background: #FEF9EC;
  border: 1px solid #E9CE8F;
  border-radius: 3px;
  padding: 4px 10px;
}

.pdash-speak-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pdash-speak-controls[hidden] {
  display: none !important;
}

.pdash-speak-record-btn.recording {
  background: #C0392B;
  border-color: #C0392B;
  color: #fff;
  animation: pdashRecordPulse 1.4s ease-in-out infinite;
}

@keyframes pdashRecordPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(192, 57, 43, 0); }
}

.pdash-speak-status {
  font-size: 0.82rem;
  color: #55665E;
}

.pdash-speak-review {
  margin-top: 14px;
  background: #F8F6F0;
  border: 1px solid #D3C9AC;
  border-radius: 4px;
  padding: 16px 18px;
}

.pdash-speak-review-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8E7138;
  margin-bottom: 4px;
}

.pdash-speak-transcript {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-style: italic;
  color: #33423D;
  background: #FFFFFF;
  padding: 8px 12px;
  border-radius: 3px;
  border: 1px dashed #D3C9AC;
}

.pdash-speak-review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pdash-speak-submit-btn {
  background: #1F4B3F;
  color: #fff;
  border: 2px solid #1F4B3F;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(31, 75, 63, 0.2);
}

.pdash-speak-submit-btn:hover:not(:disabled) {
  background: #163a30;
  transform: translateY(-1px);
}

.pdash-speak-submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.pdash-speak-retry-btn {
  background: transparent;
  color: #55665E;
  border: 2px solid #D3C9AC;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdash-speak-retry-btn:hover:not(:disabled) {
  border-color: #9FB0A5;
  color: #33423D;
}

/* Big Celebrated Score & Step Cards Presentation */
.pdash-score-celebration {
  position: relative;
  overflow: hidden;
}

.pdash-step-score-card {
  padding: 4px 0;
}

/* Submitted, not yet graded — no score to show yet */
.pdash-score-celebration.is-pending-review {
  text-align: center;
  padding: 18px 12px;
}

.pdash-pending-review-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.pdash-pending-review-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #8E7138;
  margin-bottom: 6px;
}

.pdash-pending-review-note {
  font-size: 0.88rem;
  color: #5B6B60;
  margin: 6px 0 0;
}

.pdash-big-score-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* SVG Shield / Hexagon Score Badge */
.pdash-shield-badge {
  position: relative;
  width: 76px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.pdash-shield-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pdash-shield-inner-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
}

.pdash-shield-badge .score-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
}

.pdash-shield-badge .score-max {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: #D4AF37;
  line-height: 1;
  margin-top: 2px;
}

.pdash-shield-glow-gold {
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.7));
  animation: pdashShieldPulse 3s ease-in-out infinite alternate;
}

.pdash-shield-glow-green {
  filter: drop-shadow(0 0 6px rgba(46, 204, 113, 0.6));
}

.pdash-shield-glow-amber {
  filter: drop-shadow(0 0 5px rgba(243, 156, 18, 0.5));
}

@keyframes pdashShieldPulse {
  0% { filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.55)); }
  100% { filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.9)); }
}

.pdash-big-score-meta {
  flex: 1;
  min-width: 220px;
}

.pdash-big-score-tier {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1B2B24;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdash-big-score-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: #1E3D2F;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

/* Child recorded spoken answer dashed box */
.pdash-speak-transcript-container {
  background: #FAFCFA;
  border: 1.5px dashed #CBD5E1;
  border-radius: 8px;
  padding: 12px 18px;
  margin: 16px 0;
}

.pdash-speak-transcript {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 1.02rem;
  color: #1E293B;
  line-height: 1.5;
}

/* "How This Was Scored" breakdown: fixed rubric ladder + DeepSeek's reason */
.pdash-score-breakdown {
  background: #F8FAF9;
  border: 1px solid #E2E8E4;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 14px 0;
}

.pdash-score-breakdown-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  margin-bottom: 8px;
}

.pdash-score-criteria-ladder {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdash-score-criteria-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.pdash-score-criteria-row.is-current {
  background: #EAF7EE;
  border-color: #27AE60;
}

.pdash-score-criteria-tier {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1E293B;
  white-space: nowrap;
}

.pdash-score-criteria-row.is-current .pdash-score-criteria-tier {
  color: #1E6B37;
}

.pdash-score-criteria-check {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1E6B37;
}

.pdash-score-criteria-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.4;
}

.pdash-score-reason {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #DCE4E0;
  font-size: 0.88rem;
  color: #1E293B;
  line-height: 1.45;
}

.pdash-score-reason strong {
  color: #1E3D2F;
}

/* Coach feedback box & split row */
.pdash-speak-feedback-split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pdash-speak-feedback-box {
  background: #F1F5F3;
  border: 1px solid #DCE4E0;
  border-radius: 8px;
  padding: 12px 18px;
  flex: 1;
  min-width: 260px;
}

.pdash-speak-feedback-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  margin-bottom: 4px;
}

.pdash-speak-feedback {
  margin: 0;
  font-size: 0.95rem;
  color: #0F172A;
  line-height: 1.45;
  font-weight: 500;
}

/* Model Answer Toggle Button */
.pdash-model-answer-toggle-btn {
  background: linear-gradient(180deg, #FDF7E7 0%, #F5E8C4 100%);
  border: 1.5px solid #D4AF37;
  border-radius: 8px;
  color: #5C4311;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.15);
}

.pdash-model-answer-toggle-btn:hover {
  background: linear-gradient(180deg, #FFF9EA 0%, #F9EDCD 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.25);
}

.pdash-model-answer-toggle-btn .pdash-toggle-icon {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.pdash-speak-better-answer.pdash-model-answer-box {
  background: #FFF9ED;
  border: 1.5px solid #F3DC9E;
  border-left: 4px solid #D4AF37;
  border-radius: 8px;
  padding: 12px 18px;
  margin-top: 12px;
  font-size: 0.94rem;
  color: #3A2E12;
  line-height: 1.5;
  animation: pdashSlideDown 0.3s ease-out;
}

@keyframes pdashSlideDown {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.pdash-step-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F3;
}

.pdash-submitted-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EAF7EE;
  border: 1.5px solid #27AE60;
  color: #1E6B37;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 20px;
}

.pdash-locked-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #6C7A72;
  font-style: italic;
}

/* Batch Homework Submission Card (Two Steps Required) */
.pdash-hw-batch-card {
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0 16px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdash-hw-batch-card.is-pending {
  background: #FAF8F5;
  border: 1.5px dashed #D3C9AC;
}

.pdash-hw-batch-card.is-ready {
  background: linear-gradient(135deg, #F8FCF9 0%, #FEFAF0 100%);
  border: 1.5px solid #27AE60;
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.12), 0 2px 8px rgba(212, 175, 55, 0.1);
  animation: pdashBatchReadyPulse 2.5s infinite ease-in-out;
}

@keyframes pdashBatchReadyPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(39, 174, 96, 0.12); }
  50% { box-shadow: 0 8px 26px rgba(39, 174, 96, 0.22), 0 0 14px rgba(212, 175, 55, 0.2); }
}

.pdash-hw-batch-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pdash-hw-batch-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.pdash-hw-batch-text {
  flex: 1;
  min-width: 240px;
}

.pdash-hw-batch-title {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1B2B24;
  margin-bottom: 4px;
}

.pdash-hw-batch-desc {
  font-size: 0.88rem;
  color: #55665E;
  margin: 0;
  line-height: 1.4;
}

.pdash-hw-batch-btn {
  background: #D3D8D5;
  border: none;
  border-radius: 8px;
  color: #7A8982;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 12px 22px;
  cursor: not-allowed;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.pdash-hw-batch-btn.is-ready-btn {
  background: linear-gradient(135deg, #1E6B37 0%, #154D27 100%);
  color: #FFFFFF;
  border: 1px solid #184632;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(30, 107, 55, 0.25);
}

.pdash-hw-batch-btn.is-ready-btn:hover {
  background: linear-gradient(135deg, #27AE60 0%, #1E6B37 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 107, 55, 0.35);
}

.pdash-hw-batch-status {
  font-size: 0.88rem;
  text-align: center;
}

/* Overall Homework Grand Congratulations Banner & Inset Score Dashboard */
.pdash-hw-congrats-banner {
  background: linear-gradient(145deg, #0A2417 0%, #123524 50%, #0E291C 100%);
  border: 2px solid #D4AF37;
  border-radius: 16px;
  padding: 28px 24px 22px;
  margin: 20px 0 24px;
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(10, 25, 18, 0.35);
  animation: pdashPopIn 0.45s ease-out;
}

.pdash-hw-congrats-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
  animation: pdashTrophyFloat 3s ease-in-out infinite;
}

@keyframes pdashTrophyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pdash-hw-congrats-title {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #F8E7B9;
  margin: 0 0 8px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pdash-hw-congrats-sub {
  font-size: 0.92rem;
  color: #E2ECE5;
  max-width: 620px;
  margin: 0 auto 18px;
  line-height: 1.5;
}

/* Congratulations shown before grading has happened — same warm banner,
   softer border since there's no score/trophy to back it up yet. */
.pdash-hw-congrats-banner.is-pending-review {
  border-color: #8E7138;
}

.pdash-hw-congrats-banner.is-pending-review .pdash-hw-congrats-sub {
  margin-bottom: 0;
}

/* Floating Inset Overall Score Dashboard Card */
.pdash-hw-dashboard-card {
  background: rgba(8, 22, 15, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 20px 24px 18px;
  margin: 18px auto 0;
  max-width: 720px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pdash-hw-dashboard-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pdash-hw-dashboard-dial-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pdash-hw-dashboard-center-col {
  flex: 1;
  min-width: 200px;
  text-align: left;
  padding: 0 6px;
}

.pdash-hw-dashboard-title {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px;
  line-height: 1.25;
}

.pdash-hw-dashboard-desc {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.92rem;
  color: #D4AF37;
  margin: 0;
}

.pdash-hw-dashboard-desc strong {
  color: #F8E7B9;
  font-weight: 700;
}

.pdash-hw-dashboard-sub-dials {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.pdash-hw-sub-dial-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.pdash-hw-sub-dial-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: #C2DCC8;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.pdash-hw-dashboard-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.pdash-replay-sound-btn {
  background: rgba(212, 175, 55, 0.2);
  border: 1.5px solid #D4AF37;
  color: #F8E7B9;
  border-radius: 20px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pdash-replay-sound-btn:hover {
  background: #D4AF37;
  color: #0A192F;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(212, 175, 55, 0.35);
}

/* Tiered Glowing & Achievement Radiance */
.pdash-tier-glow-100 {
  border-color: #D4AF37;
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.45), 0 10px 36px rgba(10, 25, 18, 0.45);
  animation: pdashGoldPulse 3.5s ease-in-out infinite alternate;
}

.pdash-tier-glow-100 .pdash-hw-dashboard-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 40%,
    rgba(255, 240, 190, 0.12) 50%,
    rgba(255, 255, 255, 0.22) 52%,
    rgba(255, 240, 190, 0.12) 54%,
    transparent 64%
  );
  transform: rotate(25deg);
  animation: pdashShimmerSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pdashGoldPulse {
  0% {
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.4), 0 10px 36px rgba(10, 25, 18, 0.4);
    border-color: #D4AF37;
  }
  100% {
    box-shadow: 0 0 45px rgba(255, 215, 0, 0.7), 0 0 75px rgba(212, 175, 55, 0.35), 0 10px 36px rgba(10, 25, 18, 0.45);
    border-color: #FFF0BE;
  }
}

@keyframes pdashShimmerSweep {
  0% { transform: translateX(-150%) rotate(25deg); opacity: 0; }
  15% { opacity: 0.7; }
  35% { transform: translateX(150%) rotate(25deg); opacity: 0; }
  100% { transform: translateX(150%) rotate(25deg); opacity: 0; }
}

.pdash-tier-glow-75 {
  border-color: #2ECC71;
  box-shadow: 0 0 22px rgba(46, 204, 113, 0.4), 0 10px 36px rgba(10, 25, 18, 0.45);
  animation: pdashGreenPulse 3.5s ease-in-out infinite alternate;
}

@keyframes pdashGreenPulse {
  0% { box-shadow: 0 0 18px rgba(46, 204, 113, 0.35); }
  100% { box-shadow: 0 0 32px rgba(46, 204, 113, 0.65); }
}

.pdash-tier-glow-25 {
  border-color: #F39C12;
  box-shadow: 0 0 16px rgba(243, 156, 18, 0.35), 0 10px 36px rgba(10, 25, 18, 0.45);
}

/* Radial Gauge Styling */
.pdash-radial-dial-wrap,
.pdash-radial-sub-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pdash-dial-glow-gold {
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.85)) drop-shadow(0 0 18px rgba(212, 175, 55, 0.5));
  animation: pdashDialRingPulse 3.5s ease-in-out infinite alternate;
}

.pdash-dial-glow-green {
  filter: drop-shadow(0 0 6px rgba(46, 204, 113, 0.7));
}

.pdash-dial-glow-amber {
  filter: drop-shadow(0 0 6px rgba(243, 156, 18, 0.6));
}

@keyframes pdashDialRingPulse {
  0% { filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.7)) drop-shadow(0 0 12px rgba(212, 175, 55, 0.4)); }
  100% { filter: drop-shadow(0 0 12px rgba(255, 230, 100, 1)) drop-shadow(0 0 24px rgba(255, 215, 0, 0.7)); }
}

.pdash-radial-progress {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: pdashStrokeFill 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.pdash-radial-text-val {
  font-family: 'Work Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  fill: #FFFFFF;
  dominant-baseline: middle;
}

.pdash-radial-text-max {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  fill: #E5C378;
  dominant-baseline: middle;
  letter-spacing: 0.05em;
}

.pdash-radial-sub-text-val {
  font-family: 'Work Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  fill: #FFFFFF;
  dominant-baseline: middle;
}

.pdash-radial-sub-text-max {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  fill: #D4AF37;
  dominant-baseline: middle;
}

/* Confetti and Sparkling Star particles */
.pdash-confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.pdash-confetti-piece {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  opacity: 0.85;
  animation: pdashConfettiBurst 2s ease-out forwards;
}

.pdash-confetti-star {
  position: absolute;
  font-size: 1.1rem;
  color: #FFD700;
  opacity: 0.9;
  animation: pdashStarBurst 2s ease-out forwards;
  pointer-events: none;
}

@keyframes pdashConfettiBurst {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-55px) translateX(var(--cx, 0px)) rotate(360deg); opacity: 0; }
}

@keyframes pdashStarBurst {
  0% { transform: translateY(0) scale(0.5) rotate(0deg); opacity: 1; }
  50% { transform: translateY(-30px) translateX(var(--cx, 0px)) scale(1.2) rotate(180deg); opacity: 0.9; }
  100% { transform: translateY(-60px) translateX(var(--cx, 0px)) scale(0.8) rotate(360deg); opacity: 0; }
}

@keyframes pdashPopIn {
  0% { transform: scale(0.97); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.pdash-replay-pop {
  animation: pdashPopIn 0.4s ease-out;
}

/* Card footer & limited submissions pill */
.pdash-hw-card-footer {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.pdash-hw-limited-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748B;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 5px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Accessibility: respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .pdash-hw-congrats-banner,
  .pdash-hw-dashboard-card,
  .pdash-shield-badge,
  .pdash-dial-glow-gold,
  .pdash-radial-progress,
  .pdash-confetti-piece,
  .pdash-confetti-star {
    animation: none !important;
    transition: none !important;
  }
}

.pdash-coaching-tip strong {
  color: #E5C378;
}

/* Sentence Frame Playground */
.pdash-frame-playground {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.pdash-frame-interactive-box {
  background: #FAF7F0;
  border: 1px solid #D3C9AC;
  border-radius: 4px;
  padding: 16px 20px;
  transition: border-color 0.2s;
}

.pdash-frame-interactive-box:hover {
  border-color: #1F4B3F;
}

.pdash-frame-target-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  color: #0A192F;
  line-height: 1.6;
  margin: 0 0 10px;
}

.pdash-frame-target-text mark {
  background: #F8E7B2;
  color: #1F4B3F;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.pdash-chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pdash-chips-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A631F;
}

.pdash-sub-chip {
  background: #FFFFFF;
  border: 1px solid #C5BBA8;
  border-radius: 12px;
  padding: 3px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: #1F4B3F;
  cursor: pointer;
  transition: all 0.15s;
}

.pdash-sub-chip:hover {
  border-color: #1F4B3F;
  background: #EAF2ED;
}

.pdash-sub-chip.selected {
  background: #1F4B3F;
  color: #FFFFFF;
  border-color: #1F4B3F;
}

/* Tab 3: Milestone Competency & Phase Award */
.pdash-milestone-competency {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  color: #1F4B3F;
  background: #EAF3EE;
  border: 1px solid #C5DFD1;
  border-radius: 3px;
  padding: 3px 8px;
  line-height: 1.4;
}

.pdash-award-card {
  background: linear-gradient(135deg, #FAF7F0 0%, #F5EDE0 100%);
  border: 2px solid #D4AF37;
  border-radius: 4px;
  padding: 22px 28px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
}

.pdash-award-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pdash-award-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.pdash-award-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8A631F;
  font-weight: 700;
  margin-bottom: 2px;
}

.pdash-award-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0A192F;
  margin: 0 0 4px;
}

.pdash-award-desc {
  font-size: 0.85rem;
  color: #55665E;
  margin: 0;
  line-height: 1.45;
}

.pdash-award-badge {
  background: #FFFFFF;
  border: 1.5px solid #D4AF37;
  border-radius: 4px;
  padding: 8px 16px;
  text-align: center;
  min-width: 140px;
}

.pdash-award-status-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8A631F;
  text-transform: uppercase;
}

.pdash-award-status-sub {
  font-size: 0.72rem;
  color: #7C8880;
  display: block;
}

/* ----------------------------------------------------------------
   PORTAL AUTH TABS & REGISTRATION FLOW STYLES
   ---------------------------------------------------------------- */

.portal-auth-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0E261E;
  border-bottom: 2px solid #2A4035;
}

.portal-auth-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #8C9F93;
  font-family: "Work Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.portal-auth-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.portal-auth-tab.active {
  color: #E5C378;
  border-bottom-color: #D4AF37;
  background: rgba(212, 175, 55, 0.08);
}

.portal-flow {
  display: none;
}

.portal-flow.active {
  display: block;
}

/* Gender Selector Row */
.gender-picker-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 8px;
  margin-top: 4px;
}

.gender-pill {
  border: 1.5px solid #D8D2C4;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2D3748;
  transition: all 0.15s ease;
  user-select: none;
}

.gender-pill input[type="radio"] {
  display: none;
}

.gender-pill:hover {
  border-color: #C5A059;
  background: #FAF8F5;
}

.gender-pill.active {
  border-color: #0E261E;
  background: #0E261E;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(14, 38, 30, 0.2);
}

.gender-pill.active .gender-pill-text {
  color: #E5C378;
}

/* ── 10-Class Scrollable Registration Picker ────────────────── */
.portal-class-scroll-pill {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #8A631F;
  background: #FDF6E2;
  border: 1px solid #E5C378;
  border-radius: 12px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.portal-class-scroll-picker {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: #FAF8F5;
  border: 1.5px solid #C5BBA8;
  border-radius: 4px;
  scrollbar-width: thin;
  scrollbar-color: #C5A059 #FAF8F5;
}

.portal-class-scroll-picker::-webkit-scrollbar {
  width: 6px;
}

.portal-class-scroll-picker::-webkit-scrollbar-track {
  background: #FAF8F5;
  border-radius: 4px;
}

.portal-class-scroll-picker::-webkit-scrollbar-thumb {
  background: #C5A059;
  border-radius: 4px;
}

.portal-class-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1.5px solid #D8D2C4;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.portal-class-option-card:hover {
  border-color: #C5A059;
  background: #FFFDF8;
  transform: translateY(-1px);
}

.portal-class-option-card.selected {
  border-color: #0E261E;
  background: #0E261E;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(14, 38, 30, 0.15);
}

.portal-class-option-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.portal-class-option-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.portal-class-option-meta {
  min-width: 0;
}

.portal-class-option-name {
  font-family: "Work Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0A192F;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-class-option-card.selected .portal-class-option-name {
  color: #E5C378;
}

.portal-class-option-sub {
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 1px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-class-option-card.selected .portal-class-option-sub {
  color: #CBD5E1;
}

.portal-class-option-badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 3px;
  background: #ECE7DE;
  color: #33423D;
  flex-shrink: 0;
}

.portal-class-option-card.selected .portal-class-option-badge {
  background: rgba(229, 195, 120, 0.2);
  color: #E5C378;
  border: 1px solid rgba(229, 195, 120, 0.4);
}

.portal-class-radio-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.portal-class-option-card.selected .portal-class-radio-indicator {
  border-color: #E5C378;
  background: #E5C378;
}

.portal-class-radio-indicator::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0E261E;
  display: none;
}

.portal-class-option-card.selected .portal-class-radio-indicator::after {
  display: block;
}

.portal-select {
  appearance: auto;
  cursor: pointer;
  background-color: #FFFFFF;
  font-weight: 500;
}

.portal-field-hint {
  font-size: 0.72rem;
  color: #718096;
  font-family: "Work Sans", sans-serif;
  margin-top: 2px;
  line-height: 1.3;
}

.portal-register-prompt-box {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #E2D9C8;
  text-align: center;
  font-size: 0.82rem;
  color: #64748B;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.portal-link-btn {
  background: none;
  border: none;
  color: #1A5336;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: "Work Sans", sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 2px 6px;
  transition: color 0.15s ease;
}

.portal-link-btn:hover {
  color: #8A631F;
}

/* Registration Success Card */
.reg-success-banner {
  text-align: center;
  padding: 10px 0 16px;
}

.reg-success-icon {
  font-size: 2.8rem;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.reg-success-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0E261E;
  margin: 0 0 6px;
}

.reg-success-sub {
  font-size: 0.84rem;
  color: #55665E;
  margin: 0;
  font-family: "Work Sans", sans-serif;
}

.reg-creds-card {
  background: #0E261E;
  border: 1.5px solid #D4AF37;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.reg-creds-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #E5C378;
  letter-spacing: 0.1em;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,175,55,0.3);
  margin-bottom: 12px;
}

.reg-copy-btn {
  background: rgba(212,175,55,0.15);
  border: 1px solid #D4AF37;
  color: #E5C378;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.7rem;
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  transition: all 0.15s ease;
}

.reg-copy-btn:hover {
  background: #D4AF37;
  color: #0E261E;
}

.reg-creds-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reg-cred-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}

.reg-cred-k {
  color: #A8C4A0;
  font-family: "Work Sans", sans-serif;
  font-size: 0.8rem;
}

.reg-cred-v {
  font-weight: 600;
  color: #FFFFFF;
}

.reg-cred-row.highlight {
  background: rgba(255,255,255,0.06);
  padding: 6px 8px;
  border-radius: 4px;
}

.reg-cred-row.highlight .reg-cred-v {
  color: #FFDF85;
}

.reg-note-box {
  background: #F4EEDC;
  border: 1px solid #C5A059;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #4A3B18;
  line-height: 1.45;
  margin-top: 12px;
}

/* Child Pill in Parent Dashboard Header */
.pdash-child-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F2E22;
  border: 1.5px solid #D4AF37;
  padding: 4px 12px;
  border-radius: 20px;
  color: #FFFFFF;
  font-family: "Work Sans", sans-serif;
  font-size: 0.82rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.pdash-child-pill-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.pdash-child-pill-name {
  font-weight: 700;
  color: #E5C378;
}

/* ── Remember Me Checkbox ─────────────────────────────────── */
.portal-remember-row {
  margin: 12px 0 6px;
  display: flex;
  align-items: center;
}

.portal-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-family: "Work Sans", sans-serif;
  font-size: 0.82rem;
  color: #55665E;
}

.portal-checkbox-label input[type="checkbox"] {
  accent-color: #0E261E;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.portal-checkbox-label:hover {
  color: #0E261E;
}

/* ── Live Invite Code Preview Badge ────────────────────────── */
.invite-code-preview {
  display: none;
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  line-height: 1.4;
  font-family: "Work Sans", sans-serif;
  transition: all 0.2s ease;
}

.invite-code-preview.valid {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #E8F5E9;
  border: 1px solid #81C784;
  color: #1B5E20;
}

.invite-code-preview.invalid {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  color: #B78103;
}

.invite-badge-icon {
  font-weight: 700;
  font-size: 0.9rem;
}

/* ── Switch Class Button in Dashboard Header ──────────────── */
.pdash-switch-btn {
  background: rgba(212, 175, 55, 0.16);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  color: #E5C378;
  border-radius: 8px;
  padding: 5px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.pdash-switch-btn:hover {
  background: #D4AF37;
  color: #0E261E;
  border-color: #D4AF37;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

/* ── Switch Class Modal Backdrop & Card ────────────────────── */
.pdash-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.78);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pdash-modal-backdrop.open {
  display: flex;
}

.pdash-modal-card {
  background: #0E261E;
  border: 2px solid #D4AF37;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.pdash-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(0, 0, 0, 0.2);
}

.pdash-modal-title {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.25rem;
  color: #E5C378;
}

.pdash-modal-close {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}

.pdash-modal-close:hover {
  color: #FFFFFF;
}

.pdash-modal-body {
  padding: 20px;
}

.pdash-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.pdash-modal-btn {
  font-family: "Work Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.pdash-modal-btn.cancel {
  background: transparent;
  border: 1px solid #475569;
  color: #CBD5E1;
}

.pdash-modal-btn.cancel:hover {
  border-color: #94A3B8;
  color: #FFFFFF;
}

.pdash-modal-btn.confirm {
  background: #D4AF37;
  border: 1px solid #D4AF37;
  color: #0E261E;
}

.pdash-modal-btn.confirm:hover {
  background: #FFDF85;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}



