:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #637083;
  --line: #dbe3ea;
  --paper: #f6f8fb;
  --panel: #ffffff;
  --soft-panel: #f9fbfc;
  --teal: #11756b;
  --teal-strong: #0b5f59;
  --blue: #2f5fbb;
  --blue-soft: #edf4ff;
  --gold: #b9821c;
  --red: #b42318;
  --green: #257a3e;
  --focus: #101828;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 3px 12px rgba(16, 24, 40, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
select,
input,
textarea {
  font: inherit;
}

button,
select,
input,
textarea,
a {
  outline-offset: 3px;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 5;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #ffffff;
  color: var(--ink);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #ffffff;
  font-weight: 800;
}

.brand span,
.scope-copy {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.nav-list {
  display: grid;
  gap: 0.45rem;
}

.nav-item,
.nav-item-external {
  display: block;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #354052;
  text-align: left;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active,
.nav-item-external:hover {
  background: var(--blue-soft);
  border-color: #c9dbff;
  color: #1e4f9f;
}

.role-switcher {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.role-switcher label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-weight: 700;
}

.role-switcher select,
.field select,
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.78rem 0.82rem;
  color: var(--ink);
  background: #fff;
}

.field input[type="file"] {
  min-height: 48px;
}

.main {
  min-width: 0;
}

.topbar {
  min-height: 108px;
  padding: 1.35rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Google Website Translator widget: keep it functional but invisible — we
   drive it entirely through our own #langToggleButton, not its default UI. */
.google-translate-host {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
body.translated-ltr,
body.translated-rtl {
  top: 0 !important;
}
.goog-te-banner-frame,
.skiptranslate > iframe {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}
.lang-toggle {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.signin-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: var(--soft-panel);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--teal-strong);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 2.3rem, 2.3rem);
  line-height: 1.1;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.primary-action,
.secondary-action,
.danger-action,
.quiet-action {
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 0.72rem 1rem;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  color: #fff;
  background: var(--teal);
}

.primary-action:hover {
  background: var(--teal-strong);
}

.secondary-action {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.secondary-action:hover,
.quiet-action:hover {
  border-color: #bdd1f8;
  background: var(--blue-soft);
}

.danger-action {
  color: #fff;
  background: var(--red);
}

.summer-manager-action {
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid #7c2d12;
  padding: 0.72rem 1rem;
  font-weight: 900;
  cursor: pointer;
  color: #fff;
  background: #c2410c;
}

.summer-manager-action:hover {
  background: #9a3412;
}

.payroll-full-panel {
  border-color: #c9dbff;
}

.quiet-action {
  color: var(--teal-strong);
  background: transparent;
}

.view {
  padding: 1.5rem;
  max-width: 1480px;
  margin: 0 auto;
  width: 100%;
}

.ai-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 260px;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
  background: linear-gradient(120deg, #1e1b4b 0%, #2563eb 55%, #0ea5e9 100%);
  box-shadow: 0 20px 44px -20px rgba(37, 99, 235, 0.55);
}
.ai-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
.ai-hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  max-width: 620px;
}
.ai-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #bae6fd;
  margin: 0 0 0.5rem;
}
.ai-hero h2 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
.ai-hero-sub {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  max-width: 470px;
  margin: 0 0 1.35rem;
}
.ai-hero-cta {
  background: #fff;
  color: #1e3a8a;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: background 0.15s ease, transform 0.15s ease;
}
.ai-hero-cta:hover { background: #f0f9ff; transform: translateY(-1px); }
@media (max-width: 600px) {
  .ai-hero-content { padding: 1.75rem 1.5rem; }
  .ai-hero-sub { font-size: 0.92rem; }
}

.program-button-public {
  border-color: #7dd3fc;
  background: linear-gradient(180deg, #f0f9ff, #ffffff);
}
.program-button-public em { color: #0369a1; font-weight: 700; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}
.gallery-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  margin: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.85rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.gallery-tile figcaption {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.gallery-tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.photo-tile {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
  background: #e2e8f0;
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.photo-tile:hover img { transform: scale(1.05); }

.home-chooser {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: 2.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.home-chooser h2 {
  font-size: clamp(2rem, 2.5rem, 2.5rem);
  line-height: 1.1;
  margin-bottom: 0.55rem;
}

.program-button-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-button {
  min-height: 122px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.04);
  position: relative;
}

.program-button:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.12);
}

.program-button::before {
  content: "";
  width: 34px;
  height: 4px;
  display: block;
  border-radius: 999px;
  background: var(--teal);
  margin-bottom: 0.85rem;
}

.program-button strong,
.program-button span {
  display: block;
}

.program-button strong {
  font-size: 1.14rem;
  margin-bottom: 0.35rem;
}

.program-button span {
  color: var(--muted);
}

.program-button em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 0.85rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: #eef6f6;
  color: var(--teal);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.testing-site-panel {
  margin-top: 1rem;
}

.public-pilot-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.login-mode-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.login-mode-panel h2 {
  margin-bottom: 0.3rem;
}

.login-mode-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-width: 260px;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.login-mode-switch button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  cursor: pointer;
}

.login-mode-switch button.active {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.16);
}

.login-hero {
  display: grid;
  align-items: end;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  margin-bottom: 1rem;
}

.login-hero h2 {
  margin-bottom: 0.45rem;
  font-size: 2rem;
}

.quick-login {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.simple-login-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.quick-student-card {
  display: grid;
  gap: 0.3rem;
  min-height: 112px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.quick-student-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.12);
}

.quick-student-card strong,
.quick-student-card span,
.quick-student-card em {
  display: block;
}

.quick-student-card strong {
  font-size: 1rem;
}

.quick-student-card span,
.quick-student-card em {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.role-test-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.role-test-card {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  min-height: 210px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-login-form {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.advanced-login-list {
  margin-top: 1rem;
}

.advanced-login-list summary {
  min-height: 44px;
  padding: 0.7rem 0;
  color: var(--teal-strong);
  font-weight: 800;
  cursor: pointer;
}

.login-password-panel {
  display: grid;
  align-items: end;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  margin-bottom: 1rem;
}

.password-login-form {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.student-program-hub {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.student-program-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-program-card {
  display: grid;
  gap: 0.65rem;
  min-height: 190px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.student-program-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.12);
}

.student-program-card strong,
.student-program-card span,
.student-program-card em {
  display: block;
}

.student-program-card strong {
  font-size: 1.25rem;
}

.student-program-card span {
  color: var(--muted);
  line-height: 1.5;
}

.student-program-card em {
  align-self: end;
  width: fit-content;
  min-height: 32px;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: #eef6f6;
  color: var(--teal);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

.earn-roster {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.earn-roster article {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #fff;
}

.earn-roster span,
.earn-roster em {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: normal;
}

.earn-signup {
  display: grid;
  align-items: end;
  gap: 1rem;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  width: 100%;
  padding: 1rem;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #fff;
}

.file-card-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.file-card {
  display: grid;
  gap: 0.7rem;
  align-content: space-between;
  min-height: 190px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.file-card h4 {
  margin: 0;
}

.restricted-documents {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
}

.restricted-file-card {
  border-color: #facc15;
  background: #fff;
}

.test-profile-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.test-profile-card {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  min-height: 190px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.test-profile-card h3 {
  margin: 0.65rem 0 0.35rem;
}

.access-request-list {
  display: grid;
  gap: 0.75rem;
}

.access-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.access-request h3 {
  margin-bottom: 0.25rem;
}

.session-heading {
  display: grid;
  align-items: end;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  margin-bottom: 1rem;
}

.band {
  margin: -2rem -2rem 2rem;
  padding: 3rem 2rem;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 37, 42, 0.92), rgba(16, 37, 42, 0.72)),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
}

.band-inner {
  max-width: 820px;
}

.band h2 {
  font-size: clamp(2rem, 2.6rem, 2.6rem);
  line-height: 1.1;
}

.band p {
  max-width: 680px;
  color: #edf5f3;
  font-size: 1.05rem;
  line-height: 1.6;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.card,
.panel {
  padding: 1.15rem;
}

.selected-card {
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.12);
}

.student-login-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.teacher-login-card {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  min-height: 210px;
}

.eee-profile-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.eee-profile-shell > .panel:first-child,
.eee-profile-form {
  grid-column: 1 / -1;
}

.eee-profile-form {
  display: grid;
  gap: 1.2rem;
}

.document-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.university-controls {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.university-table table {
  min-width: 980px;
}

.eee-profile-form h2 {
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.eee-profile-form h2:first-child {
  border-top: 0;
  padding-top: 0;
}

.document-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.95rem;
  background: var(--soft-panel);
}

.document-field span {
  display: block;
  margin: 0.25rem 0 0.5rem;
}

.profile-picture-section {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-panel);
}

.profile-picture-preview {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e1f4ef;
  color: var(--teal-strong);
  font-size: 1.6rem;
  font-weight: 900;
  border: 1px solid #b6dfc4;
}

.profile-picture-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legal-box {
  border: 1px solid #ead19b;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff8e8;
  padding: 1rem;
}

.legal-box p {
  color: #5f4b1f;
  line-height: 1.55;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 800;
}

.consent-check input {
  margin-top: 0.25rem;
}

.profile-summary {
  display: grid;
  gap: 0.55rem;
}

.profile-summary p {
  margin: 0;
}

.metric {
  padding: 1.05rem;
  min-height: 118px;
}

.metric strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metric span,
.muted,
.table-note {
  color: var(--muted);
  line-height: 1.5;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.25rem 0.6rem;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.pill.good {
  color: var(--green);
  border-color: #b6dfc4;
  background: #effaf2;
}

.pill.warn {
  color: var(--gold);
  border-color: #edd19b;
  background: #fff8e8;
}

.pill.blocked {
  color: var(--red);
  border-color: #f4b7b2;
  background: #fff0ee;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.summer-camp-heading {
  border-color: #fed7aa;
  background: #fff7ed;
}

.compact-date-field {
  min-width: 240px;
}

.summer-section,
.summer-section-static {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.summer-section summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-weight: 900;
  color: var(--ink);
}

.summer-section summary::before {
  content: "▶";
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.8rem;
  flex: 0 0 auto;
}

.summer-section[open] summary::before {
  content: "▼";
}

.summer-section summary .pill {
  margin-left: auto;
}

.summer-section-body,
.summer-section-static {
  padding: 1rem;
}

.summer-section[open] summary {
  border-bottom: 1px solid var(--line);
}

.attendance-cell {
  min-width: 130px;
}

.attendance-cell select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem;
  font-weight: 800;
}

.attendance-cell.present select {
  color: var(--green);
  border-color: #b6dfc4;
  background: #effaf2;
}

.attendance-cell.late select {
  color: var(--gold);
  border-color: #edd19b;
  background: #fff8e8;
}

.attendance-cell.absent select {
  color: var(--red);
  border-color: #f4b7b2;
  background: #fff0ee;
}

.attendance-cell.unmarked select {
  color: var(--muted);
  background: #f8fafc;
}

.summer-contact-grid,
.staff-contact-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-tile,
.staff-contact-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-tile strong,
.staff-contact-card h4,
.break-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-tile strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.2;
}

.contact-tile span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-weight: 800;
}

.transition-alert-panel {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 0.75rem 0 1rem;
  padding: 1rem;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
}

.transition-alert-panel h4 {
  margin: 0 0 0.25rem;
}

.tabs,
.earn-tabs,
.stepper {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab,
.earn-tab,
.step {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  min-height: 44px;
  padding: 0.62rem 0.85rem;
  cursor: pointer;
  font-weight: 800;
  color: var(--muted);
}

.tab.active,
.earn-tab.active,
.step.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 800;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.survey-list {
  display: grid;
  gap: 1rem;
}

.survey-question {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.03);
}

.survey-question legend {
  font-weight: 800;
  line-height: 1.35;
  padding: 0 0.25rem;
}

.survey-options {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.survey-options label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.35;
}

.survey-options input {
  margin-top: 0.2rem;
}

.survey-other-input {
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.lesson-viewer {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.lesson-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lesson-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.lesson-frame {
  width: 100%;
  height: min(68vh, 720px);
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f1f5f4;
}

/* Grade 7 paginated presentation viewer */
.lesson-pdf-shell {
  display: grid;
  gap: 1rem;
}

.lesson-pdf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lesson-pdf-canvas-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f1f5f4;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 320px;
}

.lesson-pdf-canvas-wrap canvas {
  max-width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
}

.lesson-pdf-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.lesson-pdf-nav .pill {
  min-width: 110px;
  text-align: center;
}

.lesson-page-tools {
  gap: 1rem;
}

.lesson-page-panel h3 {
  margin-bottom: 0.35rem;
}

/* Grade 7 completion certificate */
.certificate-panel {
  display: grid;
  gap: 1rem;
}

.certificate-border {
  position: relative;
  border: 2px solid #292524;
  outline: 1px solid #292524;
  outline-offset: 8px;
  border-radius: 2px;
  padding: 2.5rem 2rem 2rem;
  margin: 8px;
  text-align: center;
  background: #fffdf7;
  color: #292524;
  font-family: Georgia, 'Times New Roman', serif;
}

.certificate-border::before,
.certificate-border::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}
.certificate-border::before { top: -9px; left: -9px; }
.certificate-border::after { top: -9px; right: -9px; border-left: none; border-right: 2px solid var(--gold); }

.certificate-seal {
  width: 70px;
  height: 70px;
  margin: 0 auto 0.5rem;
  display: block;
}

.certificate-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  font-weight: 700;
  color: #7a5c1e;
  margin: 0 0 0.6rem;
}

.certificate-title {
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 2.1rem;
  font-weight: 400;
  margin: 0 0 1rem;
  color: #292524;
}

.certificate-body {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  font-style: italic;
  color: #57534e;
}

.certificate-name {
  font-family: 'Brush Script MT', 'Segoe Script', cursive;
  font-size: 2rem;
  font-weight: 400;
  margin: 0.15rem 0 0.75rem;
  color: #292524;
  display: inline-block;
  padding: 0 1rem 0.3rem;
  border-bottom: 1px solid #d6cba9;
}

.certificate-program {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #292524;
  max-width: 30rem;
  margin: 0 auto 1rem;
}

.certificate-badge {
  margin: 0.5rem 0 1rem;
  display: flex;
  justify-content: center;
}

.certificate-signatures {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.certificate-signature-img {
  display: block;
  height: 3.2rem;
  max-width: 11rem;
  width: auto;
  margin: 0 auto 0.15rem;
  object-fit: contain;
}

.certificate-signature {
  border-top: 1px solid #292524;
  padding-top: 0.3rem;
  font-size: 0.72rem;
  min-width: 11rem;
  font-family: Arial, sans-serif;
}

.certificate-meta {
  font-size: 0.72rem;
  color: #78716c;
  margin: 1rem 0 0;
  font-family: Arial, sans-serif;
}

/* Cartoon-style profile badges */
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.profile-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100px;
}

.profile-badge span {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 0.25rem;
  color: var(--ink, #1f2937);
}

/* 8th Grade research card layout variants — same content, different accent */
.g8-card-layout-comparison {
  border-color: var(--gold);
  background: #fdf6e8;
}

.g8-card-layout-city {
  border-color: var(--green);
  background: #eef8f0;
}

.portfolio-uploader {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #b6dfc4;
  border-radius: 8px;
  background: #f4fbf8;
}

.portfolio-uploader input[type="file"] {
  padding: 0.85rem;
  border-style: dashed;
  background: #fff;
}

.portfolio-preview {
  display: grid;
  gap: 0.75rem;
}

.portfolio-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0.85rem;
}

.portfolio-entry h4 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.public-profile-mode {
  background: #eef3f8;
}

.public-profile-mode .skip-link,
.public-profile-mode .sidebar,
.public-profile-mode .topbar {
  display: none;
}

.public-profile-mode .app-shell {
  display: block;
  min-height: 100vh;
}

.public-profile-mode .main {
  min-height: 100vh;
}

.public-profile-mode .view {
  max-width: none;
  padding: 0;
}

.public-profile-page {
  min-height: 100vh;
  padding: 1.5rem;
  background: #f7f9fb;
}

.public-profile-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.public-site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.public-site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.public-site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0.5rem 0.72rem;
  color: #334155;
  text-decoration: none;
  font-weight: 800;
}

.public-site-nav a:hover,
.public-site-nav a.active {
  background: var(--blue-soft);
  color: #1e4f9f;
}

.public-directory-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
}

.public-directory-hero h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.public-directory-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.public-filter-panel {
  position: sticky;
  top: 1rem;
  padding: 1rem;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
}

.public-filter-panel form {
  display: grid;
  gap: 0.75rem;
}

.public-student-results {
  display: grid;
  gap: 1rem;
}

.public-student-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.public-card-avatar {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 900;
}

.public-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-card-body {
  display: grid;
  gap: 0.55rem;
}

.public-card-body h3,
.public-card-body p {
  margin: 0;
}

.public-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.public-card-tags span {
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  color: #1e4f9f;
  background: var(--blue-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.public-card-url code {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.public-profile-card {
  overflow: hidden;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.public-profile-card:not(.public-profile-hero) {
  padding: 1.2rem;
}

.public-cover-band {
  min-height: 168px;
  background: #15395b;
  border-bottom: 5px solid var(--teal);
}

.public-profile-main {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(190px, auto);
  gap: 1rem;
  align-items: end;
  padding: 0 1.25rem 1.25rem;
}

.public-avatar {
  width: 144px;
  height: 144px;
  margin-top: -72px;
  border: 5px solid #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.14);
}

.public-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-profile-copy h2 {
  margin: 0.1rem 0 0.25rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.public-headline {
  margin: 0 0 0.35rem;
  color: #27364a;
  font-size: 1.08rem;
  font-weight: 800;
}

.public-profile-actions {
  display: grid;
  gap: 0.55rem;
  align-self: center;
}

.public-profile-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.public-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.7rem;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #fff;
}

.public-profile-tabs a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.52rem 0.75rem;
  color: #334155;
  text-decoration: none;
  font-weight: 850;
}

.public-profile-tabs a:hover,
.public-profile-tabs a.active {
  border-color: #bdd1f8;
  background: var(--blue-soft);
  color: #1e4f9f;
}

.public-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.public-skill-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid #bdd1f8;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  color: #1e4f9f;
  background: var(--blue-soft);
  font-weight: 800;
}

.public-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.public-section-heading h3,
.public-section-heading p {
  margin: 0;
}

.public-work-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.public-work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.public-work-media {
  min-height: 190px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: #1e4f9f;
  font-weight: 900;
}

.public-work-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Pathways: click-to-play YouTube video grid */
.pathway-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.pathway-video-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pathway-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-soft);
}

.pathway-video-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pathway-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pathway-play-button {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background: rgba(15, 23, 42, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
}

.pathway-play-button:hover {
  background: rgba(15, 23, 42, 0.35);
}

.pathway-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 1.4rem;
  padding-left: 4px;
}

.pathway-video-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--ink, #1f2937);
}

/* ===== 8th Grade Data Center Mission — Zearn-style game HUD ===== */

@keyframes g8FadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes g8PopIn {
  0% { opacity: 0; transform: scale(0.85); }
  60% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes g8Pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes g8Bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.g8-anim-in { animation: g8FadeInUp 320ms ease-out; }
.g8-anim-pop { animation: g8PopIn 420ms cubic-bezier(0.2, 0.8, 0.25, 1); }

@media (prefers-reduced-motion: reduce) {
  .g8-anim-in, .g8-anim-pop { animation: none; }
  .mission-timer-low, .mission-badge-icon-flair { animation: none !important; }
}

.mission-hud {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(135deg, #0f172a, #1d4ed8 65%, #0ea5e9);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1rem;
  color: #ffffff;
  flex-wrap: wrap;
}

.mission-hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 90px;
  text-align: center;
}

.mission-hud-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.mission-timer-value {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.02em;
}

.mission-timer-value.mission-timer-low {
  color: #fb923c;
  animation: g8Pulse 1s ease-in-out infinite;
}

.mission-timer-value.mission-timer-done {
  color: #f87171;
}

.mission-stage-name {
  flex: 1;
  flex-direction: row;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.mission-hud-icon {
  font-size: 1.4rem;
}

.mission-points-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #86efac;
}

.mission-points-max {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

/* 7-stage progress bar */
.mission-progress-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.mission-progress-stage {
  flex: 1;
  min-width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.35rem;
  border-radius: 10px;
  background: #f1f5f9;
  border: 2px solid transparent;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  color: #64748b;
}

.mission-progress-stage .mission-progress-icon {
  font-size: 1.15rem;
}

.mission-progress-stage.is-complete {
  background: #dcfce7;
  color: #15803d;
}

.mission-progress-stage.is-current {
  background: #dbeafe;
  border-color: var(--blue);
  color: #1d4ed8;
  animation: g8Pulse 1.8s ease-in-out infinite;
}

/* Big mission-styled content card */
.mission-stage-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.mission-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0 0 0.35rem;
}

.mission-headline {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.mission-subcopy {
  font-size: 1rem;
  color: var(--muted, #64748b);
  margin: 0 0 1rem;
}

/* Stage-complete celebration overlay */
.mission-celebration {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 3rem 1.5rem;
  background: linear-gradient(160deg, #0f172a, #1d4ed8 60%, #257a3e);
  border-radius: 16px;
  color: #ffffff;
}

.mission-celebration-icon {
  font-size: 4rem;
  animation: g8Bounce 1.1s ease-in-out infinite;
}

.mission-celebration-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  font-weight: 800;
  color: #86efac;
  margin: 0.5rem 0 0;
}

.mission-celebration-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.15rem 0 0.5rem;
}

.mission-celebration-points {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fbbf24;
  margin: 0;
}

.mission-celebration-total {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0.15rem 0 1.5rem;
}

.mission-continue-btn {
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
}

/* "Did You Know?" fact callouts */
.did-you-know-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #fdf6e8;
  border: 1px solid #f0ddb0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 1rem 0;
}

.did-you-know-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.did-you-know-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 800;
  color: #92640b;
  margin: 0 0 0.2rem;
}

.did-you-know-body {
  font-size: 0.9rem;
  color: #4b3a12;
  margin: 0;
}

.future-self-example-image,
.future-self-uploaded-image {
  display: block;
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.12);
}

/* Big colorful choice buttons (quiz, recommendation, layout picks) */
.mission-choice-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.mission-choice-button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease;
}

.mission-choice-button:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.mission-choice-button.is-correct {
  border-color: var(--green);
  background: #eafaf0;
}

.mission-choice-button.is-incorrect {
  border-color: #f87171;
  background: #fef2f2;
}

.public-work-body {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.public-work-body h4 {
  margin: 0;
  font-size: 1.08rem;
}

.public-work-body p {
  margin: 0;
}

.public-work-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.public-empty-portfolio {
  border: 1px dashed #b8c5d8;
  border-radius: 8px;
  padding: 1.25rem;
  background: #f9fbfc;
}

.public-badge-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.public-badge-grid article {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid #bdd1f8;
  border-radius: 8px;
  background: #f7fbff;
}

.public-badge-grid span,
.public-activity-list span {
  color: var(--muted);
}

.public-project-heading {
  padding: 1.2rem;
}

.public-project-heading h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.public-project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  align-items: stretch;
}

.public-project-media {
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8e0ec;
  border-radius: 8px;
  background: #eef4ff;
  color: #1e4f9f;
  font-size: 1.25rem;
  font-weight: 900;
}

.public-project-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.public-profile-footnote {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.summer-entry-panel {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.summer-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.summer-entry-list {
  display: grid;
  gap: 0.75rem;
}

.summer-module-tabs {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.summer-module-tab {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0.75rem;
  text-align: left;
  cursor: pointer;
}

.summer-module-tab strong,
.summer-module-tab span,
.summer-module-tab em {
  display: block;
}

.summer-module-tab span {
  color: var(--muted);
  margin-top: 0.18rem;
}

.summer-module-tab em {
  font-style: normal;
  font-size: 0.8rem;
  margin-top: 0.45rem;
  color: var(--teal-strong);
  font-weight: 800;
}

.summer-module-tab.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.14);
}

.summer-module-tab:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: #f4f7fb;
}

.summer-module-page {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.summer-module-fields {
  display: grid;
  gap: 0.75rem;
}

.summer-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f8;
}

.summer-entry-topline {
  display: grid;
  align-items: start;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 190px;
}

.summer-entry h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.summer-entry h5 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

.summer-day-badge {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  font-weight: 800;
  color: var(--teal-strong);
}

.summer-day-badge span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e1f4ef;
}

.summer-day-badge strong {
  font-size: 0.78rem;
  white-space: nowrap;
}

.compact-field select {
  padding: 0.55rem;
}

.compact-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.45;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.compact-table table {
  min-width: 560px;
}

th,
td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: #f4f7fb;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

tr:last-child td {
  border-bottom: 0;
}

tr.selected-row td {
  background: #eef4ff;
}

.compact-action {
  min-height: 34px;
  margin-top: 0.45rem;
  padding: 0.38rem 0.62rem;
  font-size: 0.84rem;
}

.student-record-profile {
  border-top-color: #f97316;
  scroll-margin-top: 96px;
}

.student-profile-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(5, 14, 30, 0.58);
  animation: profileOverlayIn 150ms ease-out;
}

.student-profile-dialog {
  width: min(1120px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  border: 1px solid #d8e0ec;
  border-radius: 10px;
  background: #f7faff;
  box-shadow: 0 24px 70px rgba(5, 14, 30, 0.28);
  animation: profileDialogIn 200ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

@keyframes profileOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes profileDialogIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Live "ask a teacher" popup — sits above everything, including other
   modals, since it can arrive at any moment regardless of what a teacher
   is currently looking at. */
.teacher-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(5, 14, 30, 0.58);
  animation: profileOverlayIn 150ms ease-out;
}

.teacher-alert-dialog {
  width: min(440px, 100%);
  border: 1px solid #d8e0ec;
  border-radius: 10px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(5, 14, 30, 0.28);
  animation: profileDialogIn 200ms cubic-bezier(0.2, 0.8, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
  .student-profile-overlay,
  .student-profile-dialog,
  .teacher-alert-overlay,
  .teacher-alert-dialog {
    animation: none;
  }
}

/* In-modal profile panel: drop the redundant collapsible chrome so the modal reads as one clean pop-out */
.summer-section-in-modal {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.student-profile-modal-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.student-profile-modal-bar h2,
.student-profile-modal-bar p {
  margin: 0;
}

.student-record-profile-in-modal {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.profile-url-bar,
.public-url-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #cfd8e6;
  border-radius: 8px;
  background: #f8fafc;
}

.profile-url-bar code,
.public-url-strip code {
  display: block;
  margin-top: 0.25rem;
  color: #334155;
  font-size: 0.86rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.public-url-strip {
  margin: 0 1.25rem 1.25rem;
}

.staff-upload-preview {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.staff-upload-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.staff-upload-media {
  width: 96px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #eef4ff;
  color: #1e4f9f;
  font-size: 0.8rem;
  font-weight: 900;
}

.staff-upload-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-record-header {
  display: grid;
  align-items: center;
  gap: 1rem;
  grid-template-columns: 112px minmax(0, 1fr) minmax(260px, 340px);
}

.student-record-photo {
  width: 104px;
  height: 104px;
  border-radius: 8px;
  border: 1px solid #cfd8e6;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eaf1ff;
  color: #1d4ed8;
  font-size: 1.5rem;
  font-weight: 900;
}

.student-record-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-photo-upload {
  min-width: 0;
}

.nested-panel {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-panel);
}

.toolbar {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(220px, 1fr) 190px 190px;
  margin-bottom: 1rem;
}

.flag-list {
  display: grid;
  gap: 0.7rem;
}

.flag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}

.flag:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  display: inline-block;
  background: #b8c4c8;
  position: relative;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: var(--teal);
}

.switch input:checked + span::after {
  transform: translateX(20px);
}

.notice {
  border-left: 5px solid var(--gold);
  background: #fff8e8;
  padding: 1rem;
  border-radius: 6px;
}

.sensitive-notice {
  margin-bottom: 1rem;
  border-left-color: #e11d48;
  background: #fff1f2;
  color: #7f1d1d;
}

.sensitive-notice h4 {
  margin-bottom: 0.35rem;
}

.aces-response-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: #fff;
}

.aces-response-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aces-response-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
}

.aces-response-item legend {
  padding: 0 0.25rem;
  font-weight: 800;
}

.summer-attendance-panel,
.summer-instruction-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.summer-instruction-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.instruction-list {
  min-width: 0;
}

.instruction-list h4 {
  margin-bottom: 0.45rem;
}

.rubric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-options {
  gap: 0.45rem;
}

.school-list {
  display: grid;
  gap: 0.4rem;
  max-height: 260px;
  overflow: auto;
  padding-right: 0.25rem;
}

.school-list span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft-panel);
  padding: 0.55rem 0.65rem;
  line-height: 1.35;
}

.success-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 320px;
  background: #17212b;
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

/* BuildGenius command-center visual direction from the company dashboard. */
:root {
  --ink: #111827;
  --muted: #66758a;
  --line: #d9e1ec;
  --paper: #eef3f9;
  --panel: #ffffff;
  --soft-panel: #f7f9fc;
  --teal: #2563eb;
  --teal-strong: #1d4ed8;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --gold: #d97706;
  --red: #dc2626;
  --green: #16a34a;
  --focus: #2563eb;
  --shadow: 0 18px 36px rgba(15, 23, 42, 0.11);
  --shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.08);
}

body {
  background: var(--paper);
}

.sidebar {
  background: #08111f;
  color: #e8eef8;
  border-right: 1px solid #172235;
}

.brand {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #1b2840;
}

.brand strong {
  color: #f8fbff;
}

.brand span,
.scope-copy {
  color: #8291a8;
}

.brand-mark {
  background: #ffffff;
  color: #2563eb;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.18);
}

.nav-item,
.nav-item-external {
  color: #a7b2c4;
}

.nav-item:hover,
.nav-item.active,
.nav-item-external:hover {
  background: #132a55;
  border-color: #1e5bd7;
  color: #ffffff;
  box-shadow: inset 4px 0 0 #2563eb;
}

.topbar {
  min-height: 90px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.eyebrow {
  color: #2563eb;
  letter-spacing: 0.14em;
}

.primary-action {
  background: #2563eb;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.primary-action:hover {
  background: #1d4ed8;
}

.secondary-action {
  border-color: #cfd8e6;
  background: #ffffff;
  color: #1f2937;
}

.panel,
.card,
.metric {
  border-color: #dce4ef;
  box-shadow: var(--shadow-soft);
}

.panel,
.metric {
  border-top: 4px solid #2563eb;
}

.metric:nth-child(2n) {
  border-top-color: #16a34a;
}

.metric:nth-child(3n) {
  border-top-color: #f97316;
}

.metric:nth-child(4n) {
  border-top-color: #dc2626;
}

.metric strong {
  color: #1d4ed8;
}

.command-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.command-hero h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1;
}

.command-metrics .metric {
  min-height: 132px;
}

.command-summary-card {
  min-height: 100%;
}

.signin-status {
  background: #f8fafc;
  color: #334155;
}

.login-hero,
.home-chooser {
  border-top: 4px solid #2563eb;
}

.summer-manager-action {
  background: #f97316;
  border-color: #ea580c;
}

.summer-manager-action:hover {
  background: #ea580c;
}

.summer-camp-heading {
  border-color: #fed7aa;
  border-top-color: #f97316;
  background: #fff7ed;
}

@media print {
  .sidebar,
  .topbar,
  .actions,
  .skip-link {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .view {
    max-width: none;
    padding: 0;
  }

  .panel,
  .metric,
  .card {
    box-shadow: none;
    break-inside: avoid;
  }
}

@media (max-width: 940px) {
  .student-profile-overlay {
    padding: 0.6rem;
  }

  .student-profile-dialog {
    max-height: calc(100vh - 1.2rem);
  }

  .student-profile-modal-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-profile-page {
    padding: 0.8rem;
  }

  .public-profile-main,
  .public-profile-grid,
  .public-directory-layout,
  .public-project-layout {
    grid-template-columns: 1fr;
  }

  .public-site-header,
  .public-directory-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-filter-panel {
    position: static;
  }

  .public-student-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .public-card-avatar {
    width: 112px;
    height: 112px;
  }

  .public-profile-actions {
    grid-template-columns: 1fr 1fr;
  }

  .profile-url-bar,
  .public-url-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-avatar {
    width: 118px;
    height: 118px;
    margin-top: -59px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-item,
  .nav-item-external {
    text-align: center;
  }

  .role-switcher {
    margin-top: 0;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    position: static;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .program-button-grid,
  .simple-login-grid,
  .role-test-grid,
  .student-program-grid,
  .login-hero,
  .login-password-panel,
  .test-profile-grid,
  .summer-module-tabs,
  .eee-profile-shell,
  .document-grid,
  .university-controls,
  .aces-response-grid,
  .rubric-grid,
  .earn-signup,
  .file-card-grid,
  .summer-contact-grid,
  .staff-contact-grid,
  .profile-picture-section,
  .student-record-header,
  .session-heading,
  .form-grid,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .teacher-login-card {
    min-height: auto;
  }

  .test-profile-card {
    min-height: auto;
  }

  .public-pilot-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-mode-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .login-mode-switch {
    width: 100%;
    min-width: 0;
  }

  .transition-alert-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .earn-roster {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .public-profile-actions {
    grid-template-columns: 1fr;
  }

  .public-cover-band {
    min-height: 128px;
  }

  .public-profile-copy h2 {
    font-size: 2rem;
  }

  .public-student-card {
    grid-template-columns: 1fr;
  }

  .public-card-avatar {
    width: 100%;
    height: 180px;
  }

  .public-profile-tabs,
  .public-site-nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .public-project-media {
    min-height: 240px;
  }

  .staff-upload-card {
    grid-template-columns: 1fr;
  }

  .staff-upload-media {
    width: 100%;
    height: 160px;
  }

  .access-request {
    align-items: stretch;
    flex-direction: column;
  }

  .view,
  .topbar,
  .band {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-chooser {
    padding: 1.2rem;
  }

  .band {
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .nav-list {
    grid-template-columns: 1fr 1fr;
  }

  .primary-action,
  .secondary-action,
  .danger-action,
  .quiet-action {
    width: 100%;
  }

  .lesson-viewer-header {
    align-items: stretch;
    flex-direction: column;
  }

  .lesson-frame {
    min-height: 360px;
  }

  .summer-entry-header {
    align-items: stretch;
    flex-direction: column;
  }

  .summer-entry,
  .summer-entry-topline {
    grid-template-columns: 1fr;
  }

  .summer-day-badge {
    justify-items: start;
  }

  .student-login-card {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-picture-section {
    grid-template-columns: 1fr;
  }
}

/* Minimal shell: hides the internal app sidebar/nav on the public landing
   page and the pre-auth login screens, so those pages read as clean,
   uncluttered entry points rather than the full authenticated app chrome. */
.minimal-shell .app-shell {
  grid-template-columns: 1fr;
}
.minimal-shell .sidebar {
  display: none;
}

/* Dedicated teacher one-time-passcode login page */
.otp-login-shell {
  max-width: 440px;
  margin: 2.5rem auto;
}
.otp-login-shell .actions {
  flex-wrap: wrap;
}

/* ---- Student flow simplification (7th/8th grade) ---------------------- */

/* "Do this, then this" lists on the mission screens. */
.g8-steps {
  margin: 0.75rem 0 1rem;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.4rem;
  font-size: 1.02rem;
}

/* Only two choices on the student sign-in hero: keep them big and side by side. */
.login-hero .program-button-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 8 stages don't fit in a row on a Chromebook/phone; the header already names
   the current stage, so on narrow screens show icons only (current one keeps
   its label). */
@media (max-width: 760px) {
  .mission-progress-stage {
    min-width: 0;
  }
  .mission-progress-stage:not(.is-current) > span:last-child {
    display: none;
  }
  .mission-progress-stage.is-current {
    flex: 2;
  }
  .stepper .step {
    flex: 1 1 auto;
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }
}

/* `.nav-item { display: block }` was overriding the hidden attribute that
   render() sets from the role's allowed views, so students saw staff-only
   links (Dashboard, Teacher, Students, Reports, Settings). */
.nav-item[hidden],
.nav-item-external[hidden] {
  display: none !important;
}

/* The staff-portal links are <a> elements with display set by their button
   classes, which overrides the hidden attribute (same trap as .nav-item). */
#staffPortalLink[hidden],
#staffPortalNavLink[hidden] {
  display: none !important;
}


/* ------------------------------------------------------------------------
   8th grade mission: joyful, kid-friendly screens (Future Self, Set Up Your
   Mission, Pick Your Topic). Reuse these classes on the other screens.
   ------------------------------------------------------------------------ */
.g8-kid { text-align: center; max-width: 44rem; margin: 0 auto; display: grid; gap: 1.1rem; justify-items: center; }
.g8-kid-eyebrow { margin: 0; padding: 0.3rem 0.9rem; border-radius: 999px; background: #fff3c4; color: #8a5a00; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.g8-kid-title { margin: 0; font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.1; font-weight: 900; color: #1d3a8a; }
.g8-kid-lead { margin: 0; font-size: 1.25rem; line-height: 1.5; color: #22304a; max-width: 38rem; }
.g8-kid-figure { margin: 0; display: grid; justify-items: center; gap: 0.6rem; width: 100%; }
.g8-kid-figure figcaption { font-size: 1.05rem; color: #3b4a63; max-width: 32rem; }
.g8-kid-photo { display: block; width: 100%; max-width: 420px; border-radius: 22px; border: 5px solid #ffffff; box-shadow: 0 10px 28px rgba(37, 99, 235, 0.25); }
.g8-kid-saved { font-weight: 800; color: #157347; font-size: 1.2rem !important; }
.g8-kid-tip { background: #eaf3ff; border: 2px dashed #7aa7ff; border-radius: 18px; padding: 0.9rem 1.2rem; font-size: 1.1rem; line-height: 1.45; max-width: 36rem; }
.g8-kid-steps { display: grid; gap: 0.6rem; width: 100%; max-width: 30rem; }
.g8-kid-step { display: flex; align-items: center; justify-content: center; gap: 0.75rem; font-size: 1.15rem; }
.g8-kid-num { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #ff8a3d; color: #fff; font-weight: 900; display: grid; place-items: center; }
.g8-kid-link { color: #1d4ed8; font-weight: 800; }
.g8-kid-field { display: grid; gap: 0.4rem; width: 100%; max-width: 34rem; font-weight: 800; font-size: 1.1rem; color: #1d3a8a; text-align: center; }
.g8-kid-field input, .g8-kid-field textarea { font: inherit; font-weight: 500; font-size: 1.05rem; color: #17212b; padding: 0.75rem 1rem; border: 2px solid #b8c9ee; border-radius: 14px; text-align: left; width: 100%; box-sizing: border-box; }
.g8-kid-field textarea { min-height: 7rem; }
.g8-kid-field input:focus, .g8-kid-field textarea:focus { outline: 3px solid #93b4ff; border-color: #2563eb; }
.g8-kid-required { color: #c2410c; font-weight: 800; }
.g8-kid-hint { margin: 0; color: #8a5a00; font-weight: 700; font-size: 1rem; }
.g8-kid-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center; width: 100%; }
.g8-kid-button { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: 1.2rem; color: #fff; padding: 0.95rem 2rem; min-height: 3.4rem; border-radius: 999px; background: linear-gradient(180deg, #3b82f6, #1d4ed8); box-shadow: 0 6px 0 #173a99, 0 12px 22px rgba(29, 78, 216, 0.3); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.g8-kid-button:hover:not(:disabled) { transform: translateY(-2px); }
.g8-kid-button:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #173a99; }
.g8-kid-button:focus-visible { outline: 4px solid #ffd166; outline-offset: 3px; }
.g8-kid-button:disabled { background: #dfe5f1; box-shadow: 0 6px 0 #b9c2d4; color: #4b5873; cursor: not-allowed; }
.g8-kid-button--go { background: linear-gradient(180deg, #34d399, #059669); box-shadow: 0 6px 0 #046c4e, 0 12px 22px rgba(5, 150, 105, 0.3); }
.g8-kid-button--go:active:not(:disabled) { box-shadow: 0 2px 0 #046c4e; }
.g8-kid-secondary { appearance: none; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.05rem; color: #1d4ed8; background: #fff; border: 2px solid #b8c9ee; border-radius: 999px; padding: 0.8rem 1.5rem; min-height: 3.1rem; }
.g8-kid-skip { appearance: none; cursor: pointer; font: inherit; font-size: 0.95rem; color: #55637d; background: none; border: 0; text-decoration: underline; padding: 0.5rem; }
.g8-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

.g8-topic-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; width: 100%; }
@media (min-width: 640px) { .g8-topic-grid { grid-template-columns: 1fr 1fr; } }
.g8-topic-card { appearance: none; cursor: pointer; font: inherit; text-align: center; display: grid; gap: 0.45rem; justify-items: center; padding: 1.3rem 1.1rem; border-radius: 22px; border: 4px solid var(--topic-soft, #e6efff); background: var(--topic-soft, #f1f6ff); color: #17212b; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08); transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease; }
.g8-topic-card:hover { transform: translateY(-3px); border-color: var(--topic); }
.g8-topic-card:focus-visible { outline: 4px solid #ffd166; outline-offset: 3px; }
.g8-topic-card.is-picked { border-color: var(--topic); background: #fff; box-shadow: 0 0 0 4px var(--topic-soft), 0 10px 22px rgba(0, 0, 0, 0.14); transform: scale(1.02); }
.g8-topic-emoji { font-size: 3rem; line-height: 1; }
.g8-topic-title { font-size: 1.35rem; font-weight: 900; color: #1d3a8a; }
.g8-topic-question { font-size: 1.05rem; line-height: 1.4; color: #2d3b55; }
.g8-topic-check { margin-top: 0.2rem; padding: 0.25rem 0.8rem; border-radius: 999px; background: var(--topic); color: #fff; font-weight: 800; font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .g8-kid-button, .g8-topic-card { transition: none; } }


/* Prompt builder: the R-Q-F-S-E formula, one part at a time */
.g8-formula-title { margin: 0.2rem 0 0; font-size: 1.5rem; font-weight: 900; color: #1d3a8a; }
.g8-formula { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.g8-formula-chip { display: grid; justify-items: center; gap: 0.2rem; min-width: 4.6rem; padding: 0.5rem 0.6rem; border-radius: 18px; background: #eef2fb; color: #5a6b8c; border: 3px solid transparent; opacity: 0.75; transition: transform 0.15s ease; }
.g8-formula-chip.is-now { background: #fff; border-color: var(--chip); color: #17212b; opacity: 1; transform: scale(1.1); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14); }
.g8-formula-chip.is-done { background: var(--chip); color: #fff; opacity: 1; }
.g8-formula-letter { font-size: 1.7rem; font-weight: 900; line-height: 1; }
.g8-formula-chip.is-now .g8-formula-letter { color: var(--chip); }
.g8-formula-name { font-size: 0.85rem; font-weight: 800; }
.g8-prompt-card { width: 100%; max-width: 38rem; display: grid; gap: 0.8rem; justify-items: center; padding: 1.4rem 1.2rem; border-radius: 24px; background: #fff; border: 4px solid var(--chip, #2563eb); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1); }
.g8-prompt-card--result { --chip: #22c55e; }
.g8-prompt-letter { margin: 0; font-size: 1.6rem; font-weight: 900; color: var(--chip); display: flex; align-items: center; gap: 0.5rem; }
.g8-prompt-letter span { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--chip); color: #fff; }
.g8-prompt-ask { margin: 0; font-size: 1.25rem; font-weight: 700; color: #22304a; }
.g8-prompt-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem; width: 100%; }
.g8-prompt-prefix { font-size: 1.25rem; font-weight: 900; color: #1d3a8a; }
.g8-prompt-line input { flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 1.15rem; padding: 0.8rem 1rem; border: 3px solid #b8c9ee; border-radius: 14px; }
.g8-prompt-line input:focus { outline: 3px solid #93b4ff; border-color: var(--chip, #2563eb); }
.g8-prompt-tip { margin: 0; font-size: 1.02rem; color: #4a5a78; }
.g8-prompt-points { margin: 0; padding: 0.5rem 0.9rem; border-radius: 14px; background: #fff7e0; color: #7a4d00; font-size: 1.02rem; }
.g8-prompt-built { width: 100%; box-sizing: border-box; text-align: left; font-size: 1.1rem; line-height: 1.55; padding: 1rem 1.2rem; border-radius: 16px; background: #f1fbf4; border: 3px dashed #22c55e; color: #14281d; white-space: pre-wrap; user-select: all; }
.g8-prompt-recap { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center; font-size: 0.98rem; color: #3b4a63; }
@media (prefers-reduced-motion: reduce) { .g8-formula-chip { transition: none; } }


/* paste-the-answer screens */
.g8-kid-box { width: 100%; max-width: 38rem; box-sizing: border-box; display: grid; gap: 0.8rem; padding: 1rem 1.2rem; border-radius: 20px; background: #f3f7ff; border: 3px solid #c9d8f5; text-align: left; }
.g8-kid-boxlabel { display: grid; gap: 0.4rem; font-weight: 800; font-size: 1.05rem; color: #1d3a8a; }
.g8-kid-boxlabel textarea { font: inherit; font-weight: 500; font-size: 1rem; line-height: 1.5; padding: 0.7rem 0.9rem; border: 2px solid #b8c9ee; border-radius: 12px; background: #fff; color: #17212b; resize: vertical; width: 100%; box-sizing: border-box; }
a.g8-kid-secondary { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }


/* Record Your Commercial */
.g8-script-card { width: 100%; max-width: 38rem; box-sizing: border-box; padding: 1rem 1.3rem; border-radius: 20px; background: #fffbea; border: 3px dashed #f6c343; text-align: left; }
.g8-script-label { margin: 0 0 0.3rem; font-weight: 900; color: #8a5a00; }
.g8-script-text { margin: 0; font-size: 1.3rem; line-height: 1.55; color: #231f10; white-space: pre-wrap; }
.g8-cam-frame { position: relative; width: 100%; max-width: 30rem; border-radius: 22px; overflow: hidden; background: #0f172a; border: 5px solid #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.35); }
.g8-cam-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0f172a; }
#g8CamPreview { transform: scaleX(-1); }
.g8-cam-rec { position: absolute; top: 0.6rem; left: 0.6rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: rgba(15, 23, 42, 0.75); color: #fff; font-weight: 800; font-size: 1rem; }
.g8-cam-count { position: absolute; inset: 0; display: grid; place-items: center; font-size: 6rem; font-weight: 900; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6); background: rgba(15, 23, 42, 0.35); }
.g8-cam-count[hidden] { display: none; }
.g8-cam-status { padding: 1.2rem 1.6rem; border-radius: 18px; background: #eaf3ff; color: #1d3a8a; font-size: 1.2rem; font-weight: 800; }
.g8-kid-button--rec { background: linear-gradient(180deg, #f87171, #dc2626); box-shadow: 0 6px 0 #991b1b, 0 12px 22px rgba(220, 38, 38, 0.3); }
.g8-kid-button--rec:active:not(:disabled) { box-shadow: 0 2px 0 #991b1b; }
.g8-kid-button--stop { background: linear-gradient(180deg, #475569, #1e293b); box-shadow: 0 6px 0 #0f172a, 0 12px 22px rgba(15, 23, 42, 0.3); }

.g8-mic-card { display: grid; justify-items: center; gap: 0.8rem; padding: 1.6rem 1.2rem; background: linear-gradient(180deg, #ede9fe, #dbeafe); border: 5px solid #fff; }
.g8-mic-emoji { font-size: 4rem; line-height: 1; }
.g8-mic-meter { width: 70%; height: 1rem; border-radius: 999px; background: #c7d2fe; overflow: hidden; }
.g8-mic-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #84cc16); transition: width 0.08s linear; }
.g8-mic-card .g8-cam-rec { color: #fff; }
.g8-mic-card audio { width: 100%; max-width: 24rem; }
.g8-kid-button--mic { background: linear-gradient(180deg, #a78bfa, #6d28d9); box-shadow: 0 6px 0 #4c1d95, 0 12px 22px rgba(109, 40, 217, 0.3); }
.g8-kid-button--mic:active:not(:disabled) { box-shadow: 0 2px 0 #4c1d95; }

/* Fact Check: one question */
.g8-fact-question { font-size: 1.5rem; font-weight: 900; color: #1d3a8a; max-width: 30rem; }
@media (min-width: 640px) { .g8-topic-grid--three { grid-template-columns: repeat(3, 1fr); } }

/* "Your topic" reminder on the prompt builder */
.g8-topic-banner { display: flex; align-items: center; justify-content: center; gap: 0.9rem; width: 100%; max-width: 38rem; box-sizing: border-box; padding: 0.8rem 1.1rem; border-radius: 20px; background: var(--topic-soft, #edf4ff); border: 3px solid var(--topic, #2563eb); text-align: left; }
.g8-topic-banner-emoji { font-size: 2.6rem; line-height: 1; }
.g8-topic-banner-text { display: grid; gap: 0.1rem; color: #22304a; font-size: 1.02rem; line-height: 1.35; }
.g8-topic-banner-text strong { font-size: 1.3rem; color: #1d3a8a; }
.g8-topic-banner-label { font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #55637d; }

/* Public Gallery: students' future-self pictures (portrait) */
.photo-grid--portrait { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.photo-tile--portrait { aspect-ratio: 3 / 4; position: relative; }
.photo-caption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 1.6rem 0.6rem 0.5rem; color: #fff; font-weight: 800; font-size: 0.9rem; text-align: center; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.72)); pointer-events: none; }

/* 7th grade mission (Make & Create): extra pieces on top of the g8-kid-* look. */
.g7-sub { margin: 0.4rem 0 0; font-size: 1.3rem; color: #1d3a8a; }
.g7-keys { display: grid; gap: 0.6rem; width: 100%; max-width: 36rem; }
.g7-key { display: flex; align-items: center; gap: 0.75rem; text-align: left; background: #fff8e1; border: 2px solid #ffd166; border-radius: 16px; padding: 0.7rem 1rem; font-size: 1.1rem; font-weight: 600; }
.g7-key span { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: #ff8a3d; color: #fff; font-weight: 900; display: grid; place-items: center; }
.g7-quiz { display: grid; gap: 0.6rem; width: 100%; max-width: 36rem; }
.g7-quiz-option { appearance: none; cursor: pointer; font: inherit; font-size: 1.05rem; font-weight: 600; text-align: left; line-height: 1.4; color: #17212b; background: #fff; border: 3px solid #b8c9ee; border-radius: 16px; padding: 0.85rem 1.1rem; }
.g7-quiz-option:hover:not(:disabled) { border-color: #2563eb; background: #f1f6ff; }
.g7-quiz-option:focus-visible { outline: 4px solid #ffd166; outline-offset: 2px; }
.g7-quiz-option.is-right { border-color: #059669; background: #e6f8ef; }
.g7-quiz-option:disabled { cursor: default; }
.g7-idea { text-align: left; display: grid; gap: 0.6rem; justify-items: start; }
.g7-prompt-box { background: #fff; border: 2px solid #b8c9ee; border-radius: 12px; padding: 0.7rem 0.9rem; font-weight: 500; font-size: 1rem; width: 100%; box-sizing: border-box; }
.g7-pledge { text-align: left; }
.g7-pledge ul, .g7-list { margin: 0.5rem 0; padding-left: 1.3rem; display: grid; gap: 0.35rem; }
.g7-check { display: flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; font-weight: 800; color: #1d3a8a; cursor: pointer; }
.g7-check input { width: 1.6rem; height: 1.6rem; accent-color: #059669; }
.g7-count { margin: 0; font-weight: 800; color: #55637d; }
.g7-count.is-ok { color: #157347; }
.g7-count.is-over { color: #b42318; }
.g7-practice { display: grid; gap: 0.6rem; justify-items: center; width: 100%; max-width: 34rem; }
.g7-practice-line { margin: 0; font-size: 1.05rem; line-height: 1.5; background: #f1f6ff; border-radius: 14px; padding: 0.7rem 1rem; }
.g7-timer { font-size: 2rem; font-weight: 900; color: #1d3a8a; min-height: 2.4rem; }
/* Eight milestones: one even row (icons only when narrow). */
.mission-progress-bar--many { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.35rem; }
.mission-progress-bar--many .mission-progress-stage { min-width: 0; padding: 0.4rem 0.2rem; font-size: 0.72rem; text-align: center; flex-direction: column; }
@media (max-width: 760px) { .mission-progress-bar--many .mission-progress-stage span:last-child:not(.mission-progress-icon) { display: none; } }

/* Teacher PD (AI Innovation Lab for Educators). */
.mission-progress-bar--icons .mission-progress-stage span:last-child:not(.mission-progress-icon) { display: none; }
.mission-progress-bar--icons .mission-progress-stage { padding: 0.45rem 0.1rem; }
.pd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem; width: 100%; max-width: 44rem; }
.pd-card { text-align: left; background: #fff; border: 2px solid #b8c9ee; border-radius: 16px; padding: 0.85rem 1rem; display: grid; gap: 0.3rem; }
.pd-card p { margin: 0; font-size: 0.98rem; line-height: 1.45; color: #22304a; }
.pd-card-icon { font-size: 1.6rem; font-weight: 900; color: #1d3a8a; }
.pd-details summary { cursor: pointer; }
.pd-details p { text-align: left; margin: 0.5rem 0 0; }
.g8-kid-field select { font: inherit; font-weight: 500; font-size: 1.05rem; padding: 0.75rem 1rem; border: 2px solid #b8c9ee; border-radius: 14px; width: 100%; box-sizing: border-box; background: #fff; }
.pd-toolkit-item { display: grid; gap: 0.4rem; justify-items: start; margin: 0.9rem 0; }
.pd-toolkit-item .g7-prompt-box { white-space: pre-wrap; }
.pd-steps { text-align: left; margin: 0.5rem 0; padding-left: 1.4rem; display: grid; gap: 0.35rem; }
.pd-details { text-align: left; max-width: 48rem; width: 100%; box-sizing: border-box; }

/* Step-by-step drawings (Turn Off Data Sharing). */
.pd-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0.9rem; margin: 0.8rem 0 0.4rem; }
.pd-shot { margin: 0; display: grid; gap: 0.4rem; }
.pd-shot-svg { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 4px 14px rgba(29, 58, 138, 0.15); }
.pd-shot figcaption { font-size: 0.95rem; line-height: 1.35; color: #22304a; }
.pd-shots-note { margin: 0.2rem 0 0.6rem; }
.pd-ring { animation: pdPulse 1.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.pd-cursor { transform: translate(var(--x), var(--y)); animation: pdCursor 3.2s ease-in-out infinite; }
.pd-track { fill: #10a37f; animation: pdTrack 3.2s ease-in-out infinite; }
.pd-knob { animation: pdKnob 3.2s ease-in-out infinite; }
@keyframes pdPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes pdCursor { 0% { transform: translate(var(--sx), var(--sy)); } 35%, 85% { transform: translate(var(--x), var(--y)); } 100% { transform: translate(var(--sx), var(--sy)); } }
@keyframes pdTrack { 0%, 45% { fill: #10a37f; } 60%, 100% { fill: #b9c2d4; } }
@keyframes pdKnob { 0%, 45% { transform: translateX(0); } 60%, 100% { transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) {
  .pd-ring, .pd-cursor, .pd-track, .pd-knob { animation: none; }
  .pd-cursor { transform: translate(var(--x), var(--y)); }
  .pd-track { fill: #b9c2d4; }
  .pd-knob { transform: translateX(-24px); }
}

/* Statistics cards (Teacher PD, YouTube step). */
.pd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.8rem; width: 100%; max-width: 48rem; }
.pd-stat { text-align: left; background: #fff8e1; border: 2px solid #ffd166; border-radius: 16px; padding: 0.8rem 1rem; display: grid; gap: 0.3rem; align-content: start; }
.pd-stat p { margin: 0; font-size: 0.98rem; line-height: 1.4; color: #22304a; }
.pd-stat-big { font-size: 2rem; font-weight: 900; color: #b45309; line-height: 1.1; }
.pd-stat a { font-size: 0.85rem; color: #1d4ed8; }

/* Optional screenshots and notes on every Teacher PD screen. */
.pd-attach { text-align: left; max-width: 48rem; width: 100%; box-sizing: border-box; }
.pd-attach summary { cursor: pointer; }
.pd-attach-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0.6rem 0; }
.pd-attach-item { display: grid; gap: 0.2rem; justify-items: center; }
.pd-attach-item img { max-height: 90px; max-width: 150px; border-radius: 10px; border: 2px solid #b8c9ee; }
.pd-attach-file { display: inline-block; padding: 0.5rem 0.8rem; border-radius: 10px; border: 2px solid #b8c9ee; background: #fff; font-size: 0.9rem; }
