:root {
  --bg: #eaf4fb;
  --bg-accent: #f7fbfe;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --text: #00324f;
  --muted: #4b6477;
  --line: rgba(0, 84, 159, 0.14);
  --primary: #005eb8;
  --primary-dark: #003087;
  --secondary: #41b6e6;
  --danger: #a44545;
  --shadow: 0 22px 60px rgba(0, 48, 135, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Public Sans", "Segoe UI", Calibri, Arial, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(65, 182, 230, 0.2), transparent 30%),
    radial-gradient(circle at right, rgba(0, 94, 184, 0.12), transparent 35%),
    linear-gradient(180deg, #f7fbff 0%, #e9f3fb 100%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.landing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.8fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 28px;
}

.landing-layout-centered {
  grid-template-columns: 1fr;
  justify-items: center;
}

.hero,
.topbar,
.panel-section,
.auth-card,
.tile-card,
.editor-card,
.list-card,
.stack-card,
.notice {
  backdrop-filter: blur(10px);
}

.hero {
  display: block;
}

.landing-layout-centered .hero,
.landing-layout-centered .auth-shell {
  width: min(980px, 100%);
}

.hero-copy,
.auth-card,
.panel-section,
.topbar,
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero-copy {
  padding: 42px;
  text-align: center;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: nowrap;
}

.practice-logo {
  display: block;
  width: 120px;
  height: auto;
  flex: 0 0 auto;
}

.brand-title {
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  line-height: 1;
  margin: 0;
  color: var(--primary-dark);
  white-space: nowrap;
}

.portal-title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
  margin: 0 0 18px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: "Public Sans", "Segoe UI", Calibri, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.hero-text,
.muted,
.status-message,
label,
input,
textarea,
select,
button {
  font-size: 0.98rem;
}

input,
textarea,
select,
button {
  line-height: 1.45;
}

.hero-text,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 60ch;
  margin: 0 auto 26px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.benefit-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(241, 248, 253, 0.9);
}

.benefit-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 94, 184, 0.1);
  color: var(--primary-dark);
  font-weight: 700;
}

.auth-card {
  padding: 26px;
}

.auth-shell {
  display: block;
}

.auth-card-centered {
  width: min(620px, 100%);
}

.topbar-actions,
.panel-header,
.tile-grid,
.form-grid {
  display: flex;
}

.tab-button,
.secondary-button,
.tile-card {
  border: 1px solid var(--line);
  background: transparent;
}

.tab-button,
.primary-button,
.secondary-button {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}


.tab-button.active,
.tile-card.active,
.secondary-button.active,
.menu-link.active {
  background: linear-gradient(135deg, var(--primary) 0%, #0072ce 100%);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(0, 48, 135, 0.18);
  color: white;
}

.tile-card.active .muted,
.menu-link.active .muted,
.secondary-button.active .muted,
.tile-card.active .tile-label,
.menu-link.active .tile-label,
.secondary-button.active .tile-label {
  color: rgba(255, 255, 255, 0.88);
}

.tile-card:active,
.secondary-button:active,
.menu-link:active,
.resource-filter-button:active,
.learner-selector-button:active {
  background: linear-gradient(135deg, rgba(0, 94, 184, 0.92) 0%, rgba(0, 114, 206, 0.92) 100%);
  border-color: transparent;
  color: white;
}

.auth-form,
.editor-card form {
  display: grid;
  gap: 14px;
}

.turnstile-slot {
  display: flex;
  justify-content: center;
  min-height: 66px;
}

.turnstile-slot-deferred {
  min-height: 0;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 84, 159, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-family: inherit;
}

select[multiple] {
  min-height: 152px;
  background: rgba(255, 255, 255, 0.9);
}

.picker-native.hidden {
  display: none;
}

textarea {
  resize: vertical;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0072ce 100%);
  color: white;
}

.secondary-button {
  color: var(--text);
}

.status-message {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--primary-dark);
  text-align: left;
}

.mfa-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 18px 0 14px;
  padding: 18px;
  border: 1px dashed rgba(0, 84, 159, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(247, 251, 254, 0.94);
}

.mfa-qr img,
.mfa-qr svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.mfa-secret {
  margin: 10px 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-dark);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}

.auth-intro {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-switch-text {
  margin: 14px 0 0;
  text-align: left;
  color: var(--muted);
}

.inline-link-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.hidden {
  display: none !important;
}

.topbar {
  position: relative;
  z-index: 30;
  padding: 26px 30px;
  margin-bottom: 20px;
  display: grid;
  gap: 18px;
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-left {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-logo {
  width: 64px;
}

.dashboard-brand-title {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  line-height: 1.08;
  font-weight: 800;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.profile-trigger-copy {
  display: grid;
  gap: 2px;
}

.avatar-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 94, 184, 0.14), rgba(65, 182, 230, 0.22));
  color: var(--primary-dark);
  font-weight: 800;
  border: 1px solid rgba(0, 84, 159, 0.16);
}

.avatar-mini {
  width: 42px;
  height: 42px;
}

.avatar-large {
  width: 84px;
  height: 84px;
}

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

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.dashboard-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 16px 35px rgba(0, 48, 135, 0.12);
  display: grid;
  gap: 8px;
  z-index: 40;
}

.notification-shell {
  position: relative;
}

.notification-button {
  position: relative;
  min-width: 168px;
  justify-content: center;
  gap: 10px;
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d5281b;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-panel {
  right: 0;
  left: auto;
  top: calc(100% + 10px);
  width: min(360px, calc(100vw - 72px));
  max-width: calc(100vw - 72px);
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 10px;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.notification-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.notification-card {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: white;
  text-align: left;
}

.notification-card-shell {
  display: grid;
  gap: 6px;
}

.notification-archive-button {
  justify-self: end;
}

.notification-card.unread {
  background: #edf6fd;
  border-color: rgba(0, 94, 184, 0.24);
}

.notification-card-title {
  margin: 0 0 4px;
  font-weight: 800;
}

.notification-card-text {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.menu-link {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  font-weight: 700;
}

.dashboard-message {
  min-height: 24px;
  margin: 0 0 18px;
  color: var(--primary-dark);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.account-summary-card {
  display: grid;
  gap: 18px;
}

.account-subhead {
  margin-bottom: 10px;
}

.account-summary-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar-picker {
  display: grid;
  gap: 12px;
}

.avatar-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 12px;
}

.avatar-option {
  display: grid;
  gap: 0;
  justify-items: center;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  text-align: center;
}

.avatar-option.active {
  border-color: transparent;
  box-shadow: 0 14px 24px rgba(0, 48, 135, 0.18);
  background: linear-gradient(135deg, rgba(0, 94, 184, 0.16) 0%, rgba(65, 182, 230, 0.18) 100%);
  outline: 3px solid rgba(0, 94, 184, 0.24);
  transform: translateY(-1px);
}

.avatar-option-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0, 84, 159, 0.12);
}

.tile-grid {
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.feedback-action-grid {
  margin-bottom: 18px;
}

.resource-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.resource-filter-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.resource-filter-button.active {
  background: linear-gradient(135deg, var(--primary) 0%, #0072ce 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 14px 28px rgba(0, 48, 135, 0.18);
}

.dashboard-tile-grid {
  justify-content: center;
}

.dashboard-tile {
  flex: 0 1 240px;
  min-height: 140px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.trend-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: white;
}

.trend-card h4 {
  margin-bottom: 6px;
}

.trend-card-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.trend-chart {
  width: 100%;
  height: auto;
  display: block;
}

.trend-chart-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-chart-area {
  fill: rgba(0, 94, 184, 0.08);
}

.trend-chart-dot {
  fill: #0072ce;
  stroke: white;
  stroke-width: 2;
}

.trend-chart-gridline {
  stroke: rgba(0, 84, 159, 0.12);
  stroke-width: 1;
}

.trend-chart-axis {
  fill: var(--muted);
  font-size: 10px;
  font-family: inherit;
}

.overview-card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 16px 35px rgba(0, 48, 135, 0.08);
  overflow: visible;
}

.score-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 84, 159, 0.1);
  overflow: hidden;
  margin-top: 10px;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #0072ce 100%);
  border-radius: 999px;
}

.overview-card-detail {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  box-shadow: 0 18px 36px rgba(0, 48, 135, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.overview-card:hover .overview-card-detail,
.overview-card:focus-visible .overview-card-detail {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.overview-card-detail p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.overview-breakdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.feedback-status-row,
.feedback-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
}

.status-chip,
.score-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-good {
  background: rgba(0, 94, 184, 0.12);
  color: #005eb8;
}

.status-danger {
  background: rgba(212, 60, 60, 0.12);
  color: #a12626;
}

.score-neutral {
  background: rgba(79, 87, 101, 0.1);
  color: #4f5765;
}

.score-poor {
  background: rgba(212, 60, 60, 0.14);
  color: #9d1f1f;
}

.score-fair {
  background: rgba(250, 204, 21, 0.2);
  color: #8b6d00;
}

.score-satisfactory {
  background: rgba(245, 158, 11, 0.16);
  color: #9a5a00;
}

.score-good {
  background: rgba(133, 194, 73, 0.18);
  color: #3d7c21;
}

.score-excellent {
  background: rgba(46, 125, 50, 0.16);
  color: #1f5e24;
}

.score-distribution {
  display: flex;
  gap: 4px;
  height: 12px;
  margin-top: 10px;
}

.score-distribution.is-empty {
  border-radius: 999px;
  background: rgba(0, 84, 159, 0.08);
}

.score-distribution-segment {
  display: block;
  min-width: 10px;
  height: 100%;
  border-radius: 999px;
}

.placement-feedback-section {
  margin-top: 18px;
}

.placement-feedback-section h5 {
  margin-bottom: 12px;
  color: var(--primary);
}

.placement-feedback-detail-grid {
  display: grid;
  gap: 12px;
}

.placement-feedback-detail-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
}

.placement-feedback-detail-label {
  margin: 0 0 8px;
  font-weight: 700;
}

.placement-feedback-detail-value {
  color: var(--text);
  line-height: 1.6;
}

.tile-card {
  flex: 1 1 180px;
  min-height: 116px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.tile-card:hover {
  transform: translateY(-2px);
}

.tile-label {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.notice,
.panel-section {
  padding: 28px;
  margin-bottom: 18px;
}

.panel-header {
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

#directory-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notice-critical {
  margin-bottom: 18px;
  border-color: rgba(174, 11, 11, 0.2);
  background: rgba(255, 238, 238, 0.96);
  color: #8f1111;
}

.notice-critical strong {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
}

.accordion-list {
  display: grid;
  gap: 14px;
}

.list-card,
.stack-card,
.editor-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 35px rgba(0, 48, 135, 0.08);
}

.list-card,
.stack-card {
  padding: 18px;
}

.list-card h4,
.stack-card h4,
.editor-card h4 {
  margin-bottom: 8px;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.editor-card {
  margin-top: 18px;
  padding: 20px;
}

.form-grid {
  gap: 14px;
  flex-wrap: wrap;
}

.form-grid label {
  flex: 1 1 220px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.editor-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.rich-editor {
  min-height: 220px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 84, 159, 0.16);
  background: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #8c9893;
}

.rich-editor:focus {
  outline: 2px solid rgba(0, 94, 184, 0.18);
  outline-offset: 2px;
}

.accordion-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  overflow: hidden;
  box-shadow: 0 16px 35px rgba(0, 48, 135, 0.08);
}

.accordion-button {
  width: 100%;
  padding: 20px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.accordion-button strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.nested-accordion-button {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0, 94, 184, 0.04);
}

.accordion-content {
  padding: 0 20px 20px;
}

.learner-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.learner-selector-button {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.learner-selector-button:hover {
  border-color: rgba(0, 94, 184, 0.28);
  box-shadow: 0 10px 24px rgba(0, 48, 135, 0.08);
  transform: translateY(-1px);
}

.learner-selector-button.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary) 0%, #0072ce 100%);
  box-shadow: 0 14px 28px rgba(0, 48, 135, 0.18);
  color: white;
}

.learner-selector-button.active .muted {
  color: rgba(255, 255, 255, 0.88);
}

.learner-selector-button strong {
  margin: 0;
  font-size: 1rem;
}

.form-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.form-section h5 {
  margin: 0;
  font-size: 1rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
}

.select-picker {
  position: relative;
  margin-top: 8px;
}

.select-picker-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.select-picker-summary::-webkit-details-marker {
  display: none;
}

.select-picker-summary::after {
  content: "▾";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.select-picker[open] .select-picker-summary::after {
  content: "▴";
}

.select-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(13, 43, 74, 0.12);
}

.select-picker-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.select-picker-option:hover {
  background: rgba(0, 94, 184, 0.06);
}

.select-picker-option input {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
}

.select-picker-option span {
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

.select-picker-panel-grouped {
  max-height: 320px;
  overflow: auto;
}

.picker-group {
  border-top: 1px solid rgba(0, 48, 135, 0.08);
  padding-top: 6px;
}

.picker-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.picker-group-summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  font-weight: 700;
  color: var(--primary-dark);
}

.picker-group-summary::-webkit-details-marker {
  display: none;
}

.picker-group-summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
}

.picker-group[open] .picker-group-summary::after {
  content: "▴";
}

.picker-group-options {
  display: grid;
  gap: 4px;
  padding: 0 4px 6px;
}

.notice-inline {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 94, 184, 0.08);
}

.resource-image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: 12px;
}

.curriculum-guidance-body {
  line-height: 1.7;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(0, 94, 184, 0.1);
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.ghost-button,
.danger-button {
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.ghost-button {
  border: 1px solid var(--line);
  background: white;
}

.danger-button {
  border: 1px solid rgba(164, 69, 69, 0.2);
  background: rgba(164, 69, 69, 0.08);
  color: var(--danger);
}

a.resource-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  padding: 8px 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.site-feedback-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--primary) 0%, #0072ce 100%);
  color: white;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(0, 48, 135, 0.24);
  cursor: pointer;
}

.site-feedback-modal-card {
  width: min(760px, 100%);
  max-height: calc(100vh - 20px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 37, 84, 0.42);
  backdrop-filter: blur(4px);
}

.modal-card {
  width: min(880px, 100%);
  max-height: min(88vh, 940px);
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 24px 56px rgba(0, 48, 135, 0.2);
  overflow: hidden;
  display: grid;
  gap: 18px;
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.terms-modal-card {
  gap: 16px;
}

.pre-placement-modal-card {
  overflow: auto;
}

.placement-settings-row {
  display: grid;
  gap: 14px;
}

.placement-settings-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.terms-copy {
  max-height: 48vh;
  overflow: auto;
  padding-right: 8px;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.terms-copy h3 {
  margin-top: 10px;
  color: var(--text);
  font-size: 1rem;
}

.terms-copy p,
.terms-copy ul {
  margin: 0;
}

.terms-copy ul {
  padding-left: 20px;
}

@media (max-width: 900px) {
  .landing-layout {
    grid-template-columns: 1fr;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .topbar-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topbar-left,
  .topbar-actions {
    flex-wrap: wrap;
  }

  .profile-trigger {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .hero-copy,
  .auth-card,
  .topbar,
  .panel-section,
  .notice {
    padding: 16px;
  }

  .auth-form,
  .editor-card form {
    gap: 12px;
  }

  .topbar,
  .panel-section,
  .notice,
  .auth-card,
  .hero-copy {
    box-shadow: 0 12px 28px rgba(0, 48, 135, 0.08);
    backdrop-filter: none;
  }

  .brand-row {
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
  }

  .practice-logo {
    width: 82px;
  }

  .brand-title {
    white-space: normal;
  }

  .portal-title {
    margin-bottom: 12px;
  }

  .notification-button {
    min-width: 132px;
  }

  .notification-shell {
    position: static;
    width: 100%;
  }

  .notification-panel {
    position: fixed;
    top: 86px;
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 110px);
    overflow: auto;
  }

  #directory-list {
    grid-template-columns: 1fr;
  }

  .tile-grid,
  .form-grid,
  .list-grid {
    grid-template-columns: 1fr;
  }

  .tile-card,
  .secondary-button,
  .primary-button {
    min-height: 48px;
  }

  .feedback-view,
  .editor-card,
  .accordion-card {
    scroll-margin-top: 96px;
  }

  .modal-overlay {
    align-items: flex-start;
    padding: 10px;
  }

  .modal-card {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }

  .terms-copy {
    max-height: 42vh;
  }

  .site-feedback-button {
    right: 14px;
    bottom: 14px;
    padding: 12px 16px;
  }
}
