/*
Theme Name: Student Survey LMS
Theme URI: https://example.com/student-survey-lms
Description: A standalone professional LMS theme for the Student Survey application. Includes the student dashboard, survey library, completed surveys, survey forms, role-aware navigation and instructor response tools.
Author: Student Survey Team
Version: 3.8.0
Text Domain: student-survey-lms
*/

:root {
  --lms-primary: #5b5ce2;
  --lms-primary-dark: #4546c7;
  --lms-primary-soft: #eeedff;
  --lms-mint: #22a88a;
  --lms-mint-soft: #e6f8f3;
  --lms-ink: #172033;
  --lms-muted: #68748a;
  --lms-bg: #f6f7fb;
  --lms-card: #ffffff;
  --lms-border: #e6e9f1;
  --lms-danger: #c94b65;
  --lms-warning: #b2761d;
  --lms-radius: 22px;
  --lms-shadow: 0 18px 55px rgba(25, 33, 57, 0.08);
  --lms-shadow-sm: 0 8px 26px rgba(25, 33, 57, 0.06);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body.lms-app {
  margin: 0;
  background: var(--lms-bg);
  color: var(--lms-ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}
body.lms-app a {
  color: inherit;
}
body.lms-app button,
body.lms-app input,
body.lms-app select,
body.lms-app textarea {
  font: inherit;
}
img {
  max-width: 100%;
}

/* Chat */
.chat-page {
  max-width: 1120px;
}
.chat-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
  gap: 20px;
  align-items: start;
}
.chat-card,
.chat-contacts,
.chat-empty {
  padding: 28px;
}
.chat-selector {
  display: flex;
  align-items: end;
  gap: 14px;
  margin-bottom: 20px;
  padding: 20px;
}
.chat-selector label {
  display: grid;
  flex: 1;
  gap: 7px;
  font-weight: 700;
}
.chat-selector select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--lms-border);
  border-radius: 12px;
  padding: 8px 12px;
  background: #fff;
}
.chat-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--lms-border);
}
.chat-card__header h2,
.chat-contacts h2 {
  margin: 0;
  font-size: 24px;
}
.chat-mode-selector {
  margin-bottom: 20px;
}
.chat-mode-selector label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}
.chat-mode-selector select {
  min-height: 42px;
  border: 1px solid var(--lms-border);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
}
.chat-card__header small,
.chat-contact small {
  color: var(--lms-muted);
}
.chat-card__header img,
.chat-contact img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
}
.chat-messages {
  min-height: 260px;
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 0;
}
.chat-message {
  max-width: 78%;
  align-self: flex-start;
}
.chat-message--mine {
  align-self: flex-end;
  text-align: right;
}
.chat-message__body {
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  background: var(--lms-primary-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-message--mine .chat-message__body {
  border-radius: 16px 16px 4px 16px;
  background: var(--lms-primary);
  color: #fff;
}
.chat-message small {
  display: block;
  margin-top: 4px;
  color: var(--lms-muted);
  font-size: 11px;
}
.chat-message__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.chat-message__actions form {
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-message__actions button {
  border: 0;
  padding: 3px 6px;
  border-radius: 6px;
  background: transparent;
  color: var(--lms-primary);
  cursor: pointer;
  font-size: 11px;
}
.chat-message__actions button:hover {
  background: var(--lms-primary-soft);
}
.chat-edit-input {
  width: min(230px, 42vw);
  border: 1px solid var(--lms-border);
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
}
.chat-form {
  display: grid;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--lms-border);
}
.chat-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}
.chat-form textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--lms-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.chat-form textarea:focus {
  outline: 2px solid rgba(91, 92, 226, 0.22);
  border-color: var(--lms-primary);
}
.chat-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
}
.chat-contact:hover,
.chat-contact.is-active {
  background: var(--lms-primary-soft);
}
.chat-contact img {
  width: 40px;
  height: 40px;
}
.chat-contact span {
  min-width: 0;
  display: grid;
}
.chat-contact strong,
.chat-contact small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-no-messages,
.chat-empty {
  color: var(--lms-muted);
}
.chat-no-messages {
  margin: auto;
  text-align: center;
}
.chat-no-messages strong,
.chat-empty strong {
  display: block;
  color: var(--lms-ink);
  font-size: 18px;
}
.chat-empty p {
  margin: 5px 0 18px;
}
@media (max-width: 760px) {
  .chat-selector {
    align-items: stretch;
    flex-direction: column;
  }
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .chat-card,
  .chat-contacts,
  .chat-empty {
    padding: 20px;
  }
  .chat-message {
    max-width: 90%;
  }
}

/* Header */
.lms-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(230, 233, 241, 0.9);
  box-shadow: 0 8px 30px rgba(28, 36, 61, 0.05);
}
.lms-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.lms-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.lms-brand__mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #6567e8, #8a73ed);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(91, 92, 226, 0.25);
}
.lms-brand__text {
  display: grid;
  line-height: 1.05;
}
.lms-brand__text strong {
  font-size: 18px;
  letter-spacing: -0.045em;
}
.lms-brand__text strong span {
  color: var(--lms-primary);
}
.lms-brand__text small {
  margin-top: 5px;
  color: #929aab;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lms-header__nav {
  display: flex;
  align-items: center;
}
.lms-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}
.lms-notifications {
  position: relative;
}
.lms-notifications summary {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--lms-ink);
  cursor: pointer;
  list-style: none;
}
.lms-notifications summary::-webkit-details-marker {
  display: none;
}
.lms-notifications summary:hover {
  background: var(--lms-primary-soft);
}
.lms-notifications__icon {
  font-size: 18px;
}
.lms-notifications summary b {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--lms-danger);
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}
.lms-notifications__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 105;
  width: min(320px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--lms-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--lms-shadow);
}
.lms-notifications__panel > strong {
  display: block;
  margin-bottom: 8px;
}
.lms-notifications__panel > p {
  margin: 0;
  color: var(--lms-muted);
  font-size: 13px;
}
.lms-notifications__panel a {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--lms-border);
  text-decoration: none;
}
.lms-notifications__panel a small {
  overflow: hidden;
  color: var(--lms-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lms-notifications__panel a.is-archived {
  opacity: 0.68;
}
.lms-notifications__list {
  max-height: 330px;
  overflow-y: auto;
  padding-right: 5px;
}
.lms-notifications__list::-webkit-scrollbar {
  width: 6px;
}
.lms-notifications__list::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: #c9cedb;
}
.lms-header-avatar {
  display: block;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(25, 33, 57, 0.16);
}
.lms-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dynamic-main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0 !important;
  padding: 5px !important;
  list-style: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: none !important;
  font-size: 14px !important;
}
.dynamic-main-menu > a,
.dynamic-main-menu .dynamic-menu-dropdown > a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px !important;
  border-radius: 12px !important;
  color: #667188 !important;
  text-decoration: none !important;
  font-weight: 750 !important;
  transition: 0.2s ease;
  box-shadow: none !important;
}
.dynamic-main-menu > a:hover,
.dynamic-main-menu > a:focus,
.dynamic-main-menu .dynamic-menu-dropdown > a:hover,
.dynamic-main-menu .dynamic-menu-dropdown > a:focus {
  background: #f0efff !important;
  color: var(--lms-primary) !important;
}
.dynamic-main-menu > a.is-active {
  background: #f0efff !important;
  color: var(--lms-primary) !important;
  font-weight: 850 !important;
}
.dynamic-menu-dropdown {
  position: relative;
}
.dynamic-menu-dropdown > a::after {
  content: "⌄";
  margin-left: 7px;
  font-size: 12px;
}
.dynamic-menu-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  background: #fff !important;
  border: 1px solid var(--lms-border) !important;
  border-radius: 15px !important;
  box-shadow: 0 20px 50px rgba(28, 35, 62, 0.14) !important;
}
.dynamic-menu-dropdown:hover .dynamic-menu-dropdown-content,
.dynamic-menu-dropdown:focus-within .dynamic-menu-dropdown-content {
  display: block;
}
.dynamic-menu-dropdown-content a {
  display: block;
  padding: 10px 12px !important;
  color: #5e687d !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
}
.dynamic-menu-dropdown-content a:hover {
  background: #f4f4ff !important;
  color: var(--lms-primary) !important;
}

/* Global layout */
.lms-main {
  min-height: calc(100vh - 145px);
  padding: 34px 18px 70px;
}
.lms-page {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.lms-section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.05em;
  line-height: 1.08;
}
.lms-kicker {
  margin: 0 0 8px;
  color: var(--lms-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lms-muted {
  color: var(--lms-muted);
}
.lms-card {
  background: var(--lms-card);
  border: 1px solid var(--lms-border);
  border-radius: var(--lms-radius);
  box-shadow: var(--lms-shadow);
}

/* Buttons */
.lms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}
.lms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 0;
  border-radius: 14px;
  background: var(--lms-primary);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(91, 92, 226, 0.21);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.lms-btn:hover {
  background: var(--lms-primary-dark);
  transform: translateY(-2px);
}
.lms-btn--ghost {
  background: #fff;
  color: var(--lms-ink) !important;
  border: 1px solid var(--lms-border);
  box-shadow: none;
}
.lms-btn--ghost:hover {
  background: #f9f9ff;
}

/* Home */
.lms-hero {
  min-height: 485px;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 48px;
  padding: 48px;
  overflow: hidden;
  position: relative;
  border-radius: 30px;
  background: linear-gradient(135deg, #f0efff 0%, #fff 47%, #e8fbf7 100%);
  border: 1px solid #e2e4f2;
}
.lms-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  top: -150px;
  border-radius: 50%;
  background: rgba(105, 105, 230, 0.1);
}
.lms-hero::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  left: -100px;
  bottom: -100px;
  border-radius: 50%;
  background: rgba(34, 168, 138, 0.08);
}
.lms-hero__copy {
  position: relative;
  z-index: 1;
}
.lms-hero h1 {
  margin: 0 0 17px;
  max-width: 650px;
  font-size: clamp(39px, 5.3vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}
.lms-hero h1 span {
  color: var(--lms-primary);
}
.lms-hero p {
  max-width: 590px;
  margin: 0 0 26px;
  color: #657087;
  font-size: 16px;
}
.lms-hero__visual {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lms-hero__image {
  width: min(100%, 465px);
  height: 342px;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  box-shadow: 0 30px 65px rgba(38, 45, 76, 0.17);
  transform: rotate(2deg);
}
.lms-float-card {
  position: absolute;
  left: 0;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid #eceef4;
  border-radius: 17px;
  box-shadow: 0 18px 45px rgba(32, 39, 67, 0.14);
}
.lms-float-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lms-mint-soft);
  color: var(--lms-mint);
  font-weight: 900;
}
.lms-float-card strong {
  display: block;
  font-size: 13px;
}
.lms-float-card small {
  color: #8790a1;
  font-size: 11px;
}
.lms-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.lms-feature {
  padding: 24px;
}
.lms-feature__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--lms-primary-soft);
  font-size: 21px;
  margin-bottom: 17px;
}
.lms-feature:nth-child(2) .lms-feature__icon {
  background: #e9f9f5;
}
.lms-feature:nth-child(3) .lms-feature__icon {
  background: #fff5e6;
}
.lms-feature h3 {
  margin: 0 0 7px;
  font-size: 17px;
}
.lms-feature p {
  margin: 0;
  color: #707a8e;
  font-size: 14px;
}
.lms-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.lms-stat {
  padding: 17px 20px;
  background: #fff;
  border: 1px solid var(--lms-border);
  border-radius: 18px;
  box-shadow: var(--lms-shadow-sm);
}
.lms-stat strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.04em;
}
.lms-stat span {
  color: #7c8597;
  font-size: 12px;
}

/* Survey cards */
.lms-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.lms-toolbar p {
  margin: 8px 0 0;
  color: var(--lms-muted);
}
.survey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.survey-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.survey-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(38, 45, 76, 0.12);
}
.survey-card__image-wrap {
  position: relative;
  height: 155px;
  overflow: hidden;
}
.survey-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.survey-card:hover .survey-card__image {
  transform: scale(1.04);
}
.survey-card__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 24, 44, 0.35), transparent 55%);
}
.survey-card__number {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 12px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--lms-ink);
  font-size: 12px;
  font-weight: 900;
}
.survey-card__body {
  padding: 20px;
}
.survey-card__tag {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--lms-primary-soft);
  color: var(--lms-primary);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.survey-card h3 {
  margin: 12px 0 7px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.survey-card p {
  min-height: 42px;
  margin: 0 0 17px;
  color: #747d90;
  font-size: 13px;
}
.survey-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.survey-card__meta span {
  padding: 5px 8px;
  border-radius: 8px;
  background: #f7f8fb;
  color: #7b8496;
  font-size: 10px;
  font-weight: 800;
}
.survey-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lms-primary) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 900;
}
.survey-card__link::after {
  content: "→";
  transition: transform 0.2s;
}
.survey-card:hover .survey-card__link::after {
  transform: translateX(3px);
}
.empty-state,
.survey-permission,
.survey-error,
.survey-success,
.survey-info,
.no-questions {
  padding: 20px;
  border-radius: 17px;
  border: 1px solid var(--lms-border);
  background: #fff;
  box-shadow: var(--lms-shadow-sm);
}
.survey-error,
.survey-permission {
  background: #fff5f7;
  color: var(--lms-danger);
  border-color: #f3d8df;
}
.survey-success {
  background: #effbf7;
  color: #167f69;
  border-color: #d4efe7;
}
.survey-info {
  background: #fffaf0;
  color: var(--lms-warning);
  border-color: #f1e2c4;
}

/* Completed surveys */
.my-surveys-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}
.completed-list {
  padding: 18px;
  position: sticky;
  top: 98px;
}
.completed-list h2 {
  margin: 0 0 14px;
  font-size: 16px;
}
.survey-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.survey-list-item {
  margin: 0;
}
.survey-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  background: #fafbff;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #4f5b73 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 750;
  transition: 0.2s;
}
.survey-link::before {
  content: "✓";
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--lms-mint-soft);
  color: var(--lms-mint);
  font-weight: 900;
}
.survey-link:hover,
.survey-link:focus {
  background: #f1f0ff;
  border-color: #dedcff;
  color: var(--lms-primary) !important;
}
.survey-answers-block {
  padding: 28px;
}
.answers-title {
  margin: 0 0 20px;
  font-size: 25px;
  letter-spacing: -0.035em;
}
.question-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.question-list-item {
  padding: 15px 16px;
  border: 1px solid var(--lms-border);
  border-radius: 14px;
  background: #fbfcff;
}
.question-label {
  display: block;
  color: #667187;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}
.answer-value {
  color: var(--lms-ink);
  font-size: 14px;
  font-weight: 650;
  white-space: pre-wrap;
}
.instructor-feedback {
  margin-top: 20px !important;
  padding: 16px 18px !important;
  border-radius: 14px !important;
  background: #effbf7 !important;
  color: #267765 !important;
  border: 1px solid #d6f0e8 !important;
}

/* Survey form */
.survey-shell {
  width: min(840px, 100%);
  margin: 0 auto;
}
.survey-hero {
  padding: 31px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #202a49, #5557ca);
  border-radius: 25px;
  color: #fff;
  box-shadow: 0 22px 55px rgba(38, 45, 76, 0.16);
  position: relative;
  overflow: hidden;
}
.survey-hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -100px;
  top: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.survey-hero > * {
  position: relative;
  z-index: 1;
}
.survey-hero h1 {
  margin: 0 0 9px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.survey-description {
  margin: 0;
  color: #e1e4f3;
  font-size: 14px;
}
.survey-dates {
  display: inline-flex;
  margin: 18px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #e8eafa;
  font-size: 12px;
}
.survey-form {
  display: grid;
  gap: 15px;
}
.survey-question {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--lms-border) !important;
  border-radius: 19px !important;
  background: #fff !important;
  box-shadow: var(--lms-shadow-sm);
}
.survey-question__heading {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 18px;
  text-align: center;
}
.survey-question__progress {
  display: block;
  width: 100%;
  margin: 0 0 10px !important;
  color: var(--lms-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}
.survey-question__heading > p {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  color: var(--lms-ink);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.55;
  text-align: center;
}
.survey-option {
  display: flex !important;
  align-items: center;
  box-sizing: border-box;
  gap: 10px;
  margin: 9px 0 !important;
  padding: 12px 13px;
  width: 100%;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fafbfe;
  color: #68738a;
  cursor: pointer;
  transition: 0.18s ease;
}
.survey-option:hover {
  border-color: #d9d9f7;
  background: #f7f6ff;
}
.survey-option input {
  margin: 0;
}
.form-control,
.survey-question input[type="text"],
.survey-question input[type="email"],
.survey-question input[type="tel"],
.survey-question input[type="date"],
.survey-question input[type="number"],
.survey-question input[type="time"],
.survey-question input[type="file"],
.survey-question select,
.survey-question textarea {
  width: 100% !important;
  min-height: 48px;
  padding: 12px 14px !important;
  border: 1px solid #dfe2eb !important;
  border-radius: 12px !important;
  background: #fbfcff !important;
  color: var(--lms-ink);
  outline: none;
  transition: 0.2s;
}
.survey-question textarea {
  min-height: 120px;
  resize: vertical;
}
.survey-question > select,
.survey-question > .form-control,
.survey-question > textarea {
  align-self: stretch;
}
.survey-question input:focus,
.survey-question select:focus,
.survey-question textarea:focus {
  border-color: #8b8cf1 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(91, 92, 226, 0.09);
}
.survey-question input[type="checkbox"],
.survey-question input[type="radio"] {
  accent-color: var(--lms-primary);
}
.survey-question input[type="range"] {
  width: 100%;
  accent-color: var(--lms-primary);
}
.survey-navigation {
  margin: 2px 0 0 !important;
  display: flex;
  justify-content: flex-end;
}
#submit-btn {
  min-height: 50px;
  padding: 0 23px;
  border: 0;
  border-radius: 13px;
  background: var(--lms-primary);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(91, 92, 226, 0.2);
}
#submit-btn:hover {
  background: var(--lms-primary-dark);
}
#progress {
  margin: 0 !important;
  color: #8b93a4;
  font-size: 12px !important;
  text-align: right;
}
.survey-progress {
  position: sticky;
  top: 84px;
  z-index: 10;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: rgba(246, 247, 251, 0.9);
  backdrop-filter: blur(12px);
}
.survey-progress__bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e9f1;
}
.survey-progress__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lms-primary), #7c72ed);
  transition: width 0.25s ease;
}

/* About */
.about-hero {
  padding: 46px;
  border-radius: 29px;
  background: linear-gradient(135deg, #252e4d, #5a5be1);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about-hero::after {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  right: -110px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.about-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 35px;
  align-items: center;
}
.about-hero h1 {
  margin: 0 0 10px;
  color: #fff !important;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.05em;
  line-height: 1.04;
}
.about-hero p {
  margin: 0;
  color: #dfe2f3;
  max-width: 650px;
}
.about-hero__image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 25px 50px rgba(10, 18, 43, 0.24);
}
.about-section {
  margin-top: 30px;
}
.about-section h2 {
  margin: 0 0 14px;
  color: var(--lms-ink) !important;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.about-section > p {
  color: #68738a;
  max-width: 820px;
}
.features-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px !important;
}
.feature-card {
  padding: 22px !important;
  border: 1px solid var(--lms-border);
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: var(--lms-shadow-sm) !important;
}
.feature-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 13px;
  background: var(--lms-primary-soft);
  font-size: 20px;
}
.feature-card h3 {
  margin: 0 0 8px;
  color: var(--lms-ink) !important;
  font-size: 16px !important;
}
.feature-card p {
  margin: 0;
  color: #70798d !important;
  font-size: 13px;
}

/* Footer */
.lms-footer {
  background: #fff;
  border-top: 1px solid var(--lms-border);
  padding: 29px 18px;
}
.lms-footer__inner {
  width: min(1120px, 100%);
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: #8991a1;
  font-size: 12px;
}
.lms-footer strong {
  color: var(--lms-ink);
  font-size: 14px;
}
.lms-footer p {
  margin: 3px 0 0;
}

/* WordPress content fallback */
.lms-content {
  width: min(820px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--lms-border);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--lms-shadow-sm);
}
.lms-content h1,
.lms-content h2,
.lms-content h3 {
  letter-spacing: -0.035em;
}

/* Responsive */
@media (max-width: 980px) {
  .lms-hero {
    grid-template-columns: 1fr;
    padding: 38px;
  }
  .lms-hero__visual {
    min-height: 310px;
  }
  .survey-grid,
  .features-grid,
  .lms-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .my-surveys-layout {
    grid-template-columns: 1fr;
  }
  .completed-list {
    position: static;
  }
  .about-hero__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .lms-header__inner {
    width: calc(100% - 20px);
    min-height: 68px;
  }
  .lms-brand__text small {
    display: none;
  }
  .lms-header__nav {
    max-width: 58%;
    overflow-x: auto;
  }
  .dynamic-main-menu {
    gap: 0;
  }
  .dynamic-main-menu > a,
  .dynamic-main-menu .dynamic-menu-dropdown > a {
    padding: 0 7px !important;
    font-size: 11px;
    white-space: nowrap;
  }
  .lms-main {
    padding: 20px 11px 48px;
  }
  .lms-hero {
    padding: 27px 21px;
    border-radius: 23px;
  }
  .lms-hero h1 {
    font-size: 39px;
  }
  .lms-hero__image {
    height: 275px;
  }
  .lms-float-card {
    left: 0;
    right: 0;
    width: max-content;
    max-width: 100%;
  }
  .survey-grid,
  .features-grid,
  .lms-feature-grid,
  .lms-stat-strip {
    grid-template-columns: 1fr;
  }
  .lms-toolbar {
    display: block;
  }
  .lms-footer__inner {
    display: block;
    text-align: center;
  }
  .lms-footer__inner > p {
    margin-top: 13px;
  }
  .survey-hero {
    padding: 25px 21px;
  }
  .survey-question {
    padding: 19px;
  }
  .survey-navigation {
    justify-content: stretch;
  }
  #submit-btn {
    width: 100%;
  }
  #progress {
    text-align: left;
  }
  .about-hero {
    padding: 29px 22px;
  }
  .about-hero__image {
    height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Student dashboard */
.dashboard-welcome {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
  padding: 36px;
  margin-bottom: 20px;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #222b4a, #5c5ee4);
  box-shadow: 0 24px 60px rgba(38, 45, 76, 0.16);
  overflow: hidden;
  position: relative;
}
.dashboard-welcome::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -150px;
  top: -150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.dashboard-welcome > div {
  position: relative;
  z-index: 1;
}
.dashboard-welcome h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}
.dashboard-welcome p:not(.lms-kicker) {
  max-width: 600px;
  color: #dfe3f5;
  margin: 0 0 22px;
}
.dashboard-welcome .lms-kicker {
  color: #bfc3ff;
}
.dashboard-welcome .lms-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}
.dashboard-welcome__visual {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.dashboard-welcome__visual img {
  width: min(100%, 390px);
  height: 255px;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  box-shadow: 0 25px 55px rgba(10, 15, 40, 0.25);
  transform: rotate(2deg);
}
.dashboard-badge {
  position: absolute;
  left: 0;
  bottom: 5px;
  min-width: 110px;
  padding: 12px 15px;
  border-radius: 16px;
  background: #fff;
  color: #1d2745;
  box-shadow: 0 18px 45px rgba(10, 15, 40, 0.2);
  text-align: center;
}
.dashboard-badge strong {
  display: block;
  font-size: 25px;
  line-height: 1;
}
.dashboard-badge span {
  color: #7c8598;
  font-size: 11px;
  font-weight: 800;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}
.dashboard-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px;
  background: #fff;
  border: 1px solid var(--lms-border);
  border-radius: 19px;
  box-shadow: var(--lms-shadow-sm);
}
.dashboard-stat__icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  flex: 0 0 47px;
  border-radius: 14px;
  background: var(--lms-primary-soft);
  font-size: 20px;
}
.dashboard-stat__icon--green {
  background: var(--lms-mint-soft);
  color: var(--lms-mint);
}
.dashboard-stat__icon--gold {
  background: #fff5e6;
  color: #b2761d;
}
.dashboard-stat strong {
  display: block;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.dashboard-stat span:last-child {
  color: #7c8597;
  font-size: 12px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  align-items: start;
}
.dashboard-panel {
  padding: 24px;
}
.dashboard-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
}
.dashboard-panel__head h2,
.dashboard-quick h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.04em;
}
.dashboard-panel__head a {
  color: var(--lms-primary);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}
.dashboard-history {
  display: grid;
  gap: 9px;
}
.history-item {
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: #fafbfe;
  text-decoration: none;
  transition: 0.18s ease;
}
.history-item:hover {
  transform: translateX(3px);
  border-color: #dcdbf9;
  background: #f7f6ff;
}
.history-check {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--lms-mint-soft);
  color: var(--lms-mint);
  font-weight: 900;
}
.history-item strong,
.history-item small {
  display: block;
}
.history-item strong {
  font-size: 13px;
}
.history-item small {
  color: #8a92a3;
  font-size: 11px;
  margin-top: 2px;
}
.history-arrow {
  color: #a1a8b8;
  font-weight: 800;
}
.dashboard-quick {
  display: grid;
  gap: 10px;
}
.dashboard-quick > .lms-kicker {
  margin-bottom: -4px;
}
.quick-link {
  display: grid;
  grid-template-columns: 36px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  text-decoration: none;
  background: #fafbfe;
}
.quick-link > span:first-child {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef0ff;
}
.quick-link strong,
.quick-link small {
  display: block;
}
.quick-link strong {
  font-size: 12px;
}
.quick-link small {
  font-size: 10px;
  color: #8b93a4;
}
.quick-link b {
  color: #9aa2b3;
}
.quick-link--primary {
  background: #f4f3ff;
  border-color: #e0defc;
}
.dashboard-tip {
  margin-top: 6px;
  padding: 14px;
  border-radius: 14px;
  background: #effbf7;
  color: #2d7868;
}
.dashboard-tip strong {
  font-size: 12px;
}
.dashboard-tip p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.5;
}
.dashboard-empty {
  text-align: center;
  padding: 25px 10px;
  color: #7b8496;
}
.dashboard-empty > span {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}
.dashboard-empty strong {
  display: block;
  color: var(--lms-ink);
}
.dashboard-empty p {
  font-size: 12px;
  margin: 4px 0 14px;
}
@media (max-width: 850px) {
  .dashboard-welcome {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-welcome__visual {
    min-height: 220px;
  }
  .dashboard-welcome__visual img {
    height: 220px;
  }
}
@media (max-width: 650px) {
  .dashboard-welcome {
    padding: 25px 20px;
  }
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  .dashboard-panel {
    padding: 19px;
  }
  .dashboard-welcome h1 {
    font-size: 34px;
  }
  .dashboard-welcome__visual img {
    height: 200px;
  }
  .dashboard-badge {
    left: 0;
  }
}

/* Photo credit */
.lms-photo-credit {
  display: block;
  margin-top: 7px;
  color: #a1a8b6;
  font-size: 10px;
}
.lms-photo-credit a {
  color: #70798d;
  text-decoration: none;
}
.lms-photo-credit a:hover {
  color: var(--lms-primary);
  text-decoration: underline;
}

/* v3.3 — Student profile + expanded About page */
.about-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.about-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
  padding: 10px 0;
}
.about-intro h2 {
  max-width: 560px;
}
.about-intro > p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.85;
}
.about-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.about-steps article {
  padding: 22px;
  border: 1px solid var(--lms-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--lms-shadow-sm);
}
.about-steps span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--lms-primary-soft);
  color: var(--lms-primary);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 15px;
}
.about-steps h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.about-steps p {
  margin: 0;
  color: #70798d;
  font-size: 12px;
  line-height: 1.7;
}
.about-purpose {
  margin-top: 34px;
  padding: 30px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 25px;
  align-items: center;
  background: linear-gradient(135deg, #f3f2ff, #eefbf7);
  border: 1px solid #e2e4ef;
}
.about-purpose h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.04em;
}
.about-purpose p:not(.lms-kicker) {
  color: #69748a;
  max-width: 700px;
  line-height: 1.75;
}
.about-purpose__quote {
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  color: #252e4d;
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.5;
  box-shadow: var(--lms-shadow-sm);
}

.student-profile-page {
  max-width: 1180px;
}
.profile-hero {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 25px;
  align-items: center;
  padding: 34px;
  margin-bottom: 18px;
  border-radius: 27px;
  color: #fff;
  background: linear-gradient(135deg, #222b4a, #5c5ee4);
  overflow: hidden;
  position: relative;
}
.profile-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -130px;
  top: -130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.profile-hero > div {
  position: relative;
  z-index: 1;
}
.profile-hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.05em;
}
.profile-hero p:not(.lms-kicker) {
  margin: 0;
  max-width: 650px;
  color: #dfe3f5;
  line-height: 1.7;
}
.profile-hero .lms-kicker {
  color: #bfc3ff;
}
.profile-completion {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.profile-completion span {
  display: block;
  color: #dce0f4;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.profile-completion strong {
  display: block;
  margin: 4px 0 10px;
  font-size: 34px;
}
.profile-progress {
  height: 7px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}
.profile-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}
.profile-notice {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 750;
}
.profile-notice--success {
  color: #24715f;
  background: #eafaf5;
  border: 1px solid #c8eee1;
}
.profile-notice--error {
  color: #8a3f3f;
  background: #fff0f0;
  border: 1px solid #f2d0d0;
}
.student-profile-form {
  padding: 0;
  overflow: hidden;
}
.profile-form-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
}
.profile-photo-panel {
  padding: 28px;
  background: #f8f9fc;
  border-right: 1px solid var(--lms-border);
}
.profile-photo-wrap {
  width: 170px;
  height: 190px;
  margin: 0 auto 18px;
  overflow: hidden;
  border-radius: 24px;
  background: #e9ebf4;
  border: 5px solid #fff;
  box-shadow: 0 15px 35px rgba(30, 38, 68, 0.12);
}
.profile-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-photo-panel h2 {
  margin: 0 0 7px;
  text-align: center;
  font-size: 19px;
}
.profile-photo-panel p {
  margin: 0 0 17px;
  text-align: center;
  color: #737d90;
  font-size: 12px;
  line-height: 1.65;
}
.profile-photo-panel small {
  display: block;
  margin-top: 9px;
  color: #8a93a4;
  font-size: 10px;
  line-height: 1.5;
}
.lms-file-field {
  display: block;
  cursor: pointer;
}
.lms-file-field span {
  display: block;
  padding: 11px 13px;
  text-align: center;
  border: 1px solid #dddff0;
  border-radius: 12px;
  background: #fff;
  color: var(--lms-primary);
  font-size: 12px;
  font-weight: 850;
}
.lms-file-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.profile-fields {
  padding: 30px;
}
.profile-section-heading {
  margin-bottom: 20px;
}
.profile-section-heading h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.profile-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.profile-fields label,
.profile-bio {
  display: block;
}
.profile-fields label > span,
.profile-bio > span {
  display: block;
  margin-bottom: 7px;
  color: #4d5669;
  font-size: 11px;
  font-weight: 850;
}
.profile-fields input,
.profile-fields textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e3eb;
  border-radius: 12px;
  padding: 12px 13px;
  background: #fbfcfe;
  color: #252c3d;
  outline: none;
  font: inherit;
  font-size: 13px;
  transition: 0.18s ease;
}
.profile-fields input:focus,
.profile-fields textarea:focus {
  border-color: #b9b8ee;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91, 91, 225, 0.08);
}
.profile-fields input:disabled {
  color: #8991a0;
  background: #f3f5f8;
  cursor: not-allowed;
}
.profile-fields label small {
  display: block;
  margin-top: 5px;
  color: #8a93a4;
  font-size: 9px;
}
.profile-bio {
  margin-top: 16px;
}
.profile-bio textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.profile-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #edf0f5;
}
.profile-form-actions .lms-btn {
  border: 0;
  cursor: pointer;
}
.profile-summary {
  margin-top: 18px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.profile-summary h2 {
  margin: 0 0 5px;
  font-size: 21px;
}
.profile-summary p {
  margin: 0;
  color: #778094;
  font-size: 12px;
}
.profile-summary img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(30, 38, 68, 0.12);
}

@media (max-width: 900px) {
  .about-intro,
  .about-purpose {
    grid-template-columns: 1fr;
  }
  .about-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-hero {
    grid-template-columns: 1fr;
  }
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
  .profile-photo-panel {
    border-right: 0;
    border-bottom: 1px solid var(--lms-border);
  }
}
@media (max-width: 600px) {
  .about-steps,
  .profile-fields-grid {
    grid-template-columns: 1fr;
  }
  .profile-hero {
    padding: 25px 20px;
  }
  .profile-fields {
    padding: 22px 18px;
  }
  .profile-photo-panel {
    padding: 22px 18px;
  }
  .profile-form-actions {
    flex-direction: column-reverse;
  }
  .profile-form-actions .lms-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}

/* v3.4 — Mobile hamburger navigation */
.lms-menu-toggle {
  display: none;
}
@media (max-width: 760px) {
  .lms-header__inner {
    min-height: 68px;
    width: min(100% - 24px, 1180px);
    position: relative;
  }
  .lms-brand__text small {
    display: none;
  }
  .lms-brand__text strong {
    font-size: 16px;
  }
  .lms-brand__mark {
    width: 40px;
    height: 40px;
  }
  .lms-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--lms-border);
    border-radius: 13px;
    background: #fff;
    color: var(--lms-ink);
    cursor: pointer;
    box-shadow: var(--lms-shadow-sm);
    position: relative;
    z-index: 103;
  }
  .lms-menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 3px;
    background: #596176;
    transition: 0.2s ease;
  }
  .lms-menu-toggle b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .lms-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .lms-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .lms-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .lms-header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    z-index: 102;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--lms-border);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(28, 35, 62, 0.16);
    max-width: none !important;
  }
  .lms-header__nav.is-open {
    display: block;
  }
  .dynamic-main-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 2px !important;
  }
  .dynamic-main-menu > a,
  .dynamic-main-menu .dynamic-menu-dropdown > a {
    width: 100%;
    min-height: 46px;
    justify-content: space-between;
    padding: 0 13px !important;
    font-size: 13px !important;
  }
  .dynamic-menu-dropdown {
    width: 100%;
  }
  .dynamic-menu-dropdown-content {
    position: static;
    min-width: 0;
    margin: 0 6px 6px;
    box-shadow: none !important;
    border: 0 !important;
    background: #f7f8fc !important;
  }
  .dynamic-menu-dropdown:hover .dynamic-menu-dropdown-content {
    display: none;
  }
  .dynamic-menu-dropdown:focus-within .dynamic-menu-dropdown-content {
    display: block;
  }
  body.mobile-menu-open {
    overflow: hidden;
  }
}

/* v3.5 — Survey cover images + student feedback center */
.survey-hero--with-image {
  min-height: 340px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #202a49, #5557ca);
}
.survey-hero--with-image .survey-hero__image {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}
.survey-hero--with-image .survey-hero__content {
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.survey-hero--with-image::after {
  right: -80px;
  top: -120px;
}

.feedback-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 24px;
}
.feedback-intro p:not(.lms-kicker) {
  margin: 9px 0 0;
  max-width: 720px;
  color: var(--lms-muted);
}
.feedback-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.feedback-sidebar {
  padding: 18px;
  position: sticky;
  top: 98px;
  overflow: hidden;
}
.feedback-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 14px;
  border-bottom: 1px solid #edf0f5;
}
.feedback-sidebar__head span {
  color: #68738a;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.feedback-sidebar__head strong {
  min-width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lms-primary-soft);
  color: var(--lms-primary);
  font-size: 12px;
}
.feedback-response-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.feedback-response {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none !important;
  color: var(--lms-ink) !important;
  transition: 0.18s ease;
}
.feedback-response:hover {
  background: #fafaff;
  border-color: #e4e3f7;
}
.feedback-response.is-active {
  background: #f1f0ff;
  border-color: #dedcff;
}
.feedback-response__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--lms-mint-soft);
  color: var(--lms-mint);
  font-size: 12px;
  font-weight: 900;
}
.feedback-response__text {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.feedback-response__text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.feedback-response__text small {
  color: #929aab;
  font-size: 9px;
}
.feedback-response__status {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.feedback-response__status.has-feedback {
  background: #e8f8f3;
  color: #24836f;
}
.feedback-response__status.waiting {
  background: #f4f5f8;
  color: #8b93a4;
}
.feedback-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.feedback-survey-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.22fr);
}
.feedback-survey-media {
  min-height: 290px;
  position: relative;
  overflow: hidden;
  background: #e9ebf3;
}
.feedback-survey-media img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
  display: block;
}
.feedback-survey-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 45, 0.56), transparent 55%);
  pointer-events: none;
}
.feedback-survey-media > span {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 16px;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  color: #4f5b72;
  font-size: 9px;
  font-weight: 850;
}
.feedback-survey-body {
  padding: 28px;
}
.feedback-survey-body h2 {
  margin: 0 0 10px;
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.feedback-survey-description {
  margin: 0 0 21px;
  color: #6e788c;
  font-size: 13px;
  line-height: 1.75;
}
.feedback-info-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.6fr 1fr;
  gap: 10px;
}
.feedback-info-grid > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: #fafbfe;
}
.feedback-info-grid small {
  display: block;
  margin-bottom: 6px;
  color: #8a93a4;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.feedback-info-grid strong {
  display: block;
  color: #273047;
  font-size: 12px;
  line-height: 1.45;
}
.feedback-person {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.feedback-person img {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  object-fit: cover;
  flex: 0 0 27px;
}
.feedback-full-card {
  padding: 28px;
}
.feedback-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.feedback-card-heading h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.04em;
}
.feedback-badge {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.feedback-badge--ready {
  background: #e7f8f2;
  color: #217e6a;
}
.feedback-badge--waiting {
  background: #f5f6f9;
  color: #7d8799;
}
.feedback-quote {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f4f3ff, #f0fbf8);
  border: 1px solid #e3e5f0;
  color: #30384d;
  font-size: 15px;
  line-height: 1.85;
  white-space: normal;
  overflow-wrap: anywhere;
}
.feedback-quote__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--lms-primary);
  font-family: Georgia, serif;
  font-size: 25px;
  box-shadow: 0 8px 20px rgba(34, 42, 72, 0.08);
}
.feedback-pending {
  padding: 22px;
  border: 1px dashed #dfe2eb;
  border-radius: 16px;
  background: #fafbfe;
}
.feedback-pending strong {
  color: #3f4a61;
  font-size: 14px;
}
.feedback-pending p {
  margin: 6px 0 0;
  color: #7a8497;
  font-size: 12px;
  line-height: 1.7;
}
.feedback-bottom-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.feedback-empty {
  max-width: 680px;
  margin: 40px auto;
  padding: 45px 30px;
  text-align: center;
}
.feedback-empty__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--lms-primary-soft);
  color: var(--lms-primary);
  font-size: 25px;
}
.feedback-empty h2 {
  margin: 0 0 8px;
  font-size: 25px;
  letter-spacing: -0.04em;
}
.feedback-empty p {
  margin: 0 auto 20px;
  max-width: 520px;
  color: #758095;
  font-size: 13px;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .feedback-layout {
    grid-template-columns: 1fr;
  }
  .feedback-sidebar {
    position: static;
  }
  .feedback-response-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .feedback-survey-card {
    grid-template-columns: 1fr;
  }
  .feedback-survey-media {
    min-height: 220px;
  }
  .feedback-survey-media img {
    min-height: 220px;
    max-height: 280px;
  }
  .feedback-info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feedback-info-grid > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .survey-hero--with-image {
    grid-template-columns: 1fr;
  }
  .survey-hero--with-image .survey-hero__image {
    min-height: 210px;
    max-height: 250px;
  }
  .survey-hero--with-image .survey-hero__content {
    padding: 25px 20px;
  }
  .feedback-intro {
    align-items: stretch;
    flex-direction: column;
  }
  .feedback-intro .lms-btn {
    width: 100%;
  }
  .feedback-response-list {
    grid-template-columns: 1fr;
  }
  .feedback-survey-body,
  .feedback-full-card {
    padding: 22px 18px;
  }
  .feedback-info-grid {
    grid-template-columns: 1fr;
  }
  .feedback-info-grid > div:first-child {
    grid-column: auto;
  }
  .feedback-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .feedback-quote {
    grid-template-columns: 1fr;
    padding: 19px;
    font-size: 14px;
  }
  .feedback-bottom-actions .lms-btn {
    width: 100%;
  }
}

/* v3.6 — profile active state, response archive and question counter spacing */
.dynamic-main-menu .dynamic-menu-dropdown > a.is-active {
  color: var(--lms-primary) !important;
  background: #f1f0ff !important;
}
.dynamic-main-menu .dynamic-menu-dropdown-content a.is-active {
  color: var(--lms-primary) !important;
  background: #f1f0ff !important;
  font-weight: 900;
}
.completed-list__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.completed-list__heading h2 {
  margin: 2px 0 0;
}
.completed-list__heading .lms-kicker {
  margin: 0;
}
.completed-count {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--lms-primary-soft);
  color: var(--lms-primary);
  font-size: 12px;
  font-weight: 900;
}
.survey-list-item.hidden {
  display: none;
}
.survey-link {
  position: relative;
}
.survey-link.is-selected {
  background: #f1f0ff;
  border-color: #dedcff;
  color: var(--lms-primary) !important;
}
.survey-link__number {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--lms-mint-soft);
  color: var(--lms-mint);
  font-size: 10px;
  font-weight: 900;
}
.survey-link small {
  display: block;
  margin-top: 3px;
  color: #98a0b0;
  font-size: 10px;
  font-weight: 600;
}
.survey-archive-toggle {
  width: 100%;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px dashed #d9dced;
  border-radius: 12px;
  background: #fafbff;
  color: var(--lms-primary);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.survey-archive-toggle:hover {
  background: #f4f3ff;
  border-color: #c9c7ef;
}
.survey-archive-toggle span {
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ecebff;
  font-size: 10px;
}
.survey-question__progress {
  margin: 0 0 8px !important;
}

@media (max-width: 760px) {
  .completed-list__heading {
    margin-bottom: 12px;
  }
}

/* v3.7.0: read-only student response review */
.survey-answers-block .answer-value {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Instructor frontend workspace */
.instructor-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-top: 18px;
}
.instructor-panel {
  padding: 24px;
  margin-top: 18px;
}
.instructor-dashboard-grid .instructor-panel {
  margin-top: 0;
}
.instructor-panel h2 {
  margin: 2px 0 18px;
}
.instructor-survey-list {
  display: grid;
  gap: 8px;
}
.instructor-survey-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  gap: 8px;
  margin: 0 0 14px;
}
.instructor-survey-tools input,
.instructor-survey-tools select {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #dfe2eb;
  border-radius: 9px;
  background: #fbfcff;
  color: var(--lms-ink);
}
.instructor-survey-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.instructor-survey-entry > form button {
  border: 0;
  background: transparent;
  color: #68738a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.instructor-survey-entry > form button:hover {
  color: var(--lms-primary);
}
.instructor-survey-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  color: var(--lms-ink);
  background: #fbfcff;
  text-decoration: none;
}
.instructor-survey-item:hover,
.instructor-survey-item.is-selected {
  border-color: #d9d9f7;
  background: #f5f4ff;
  color: var(--lms-primary);
}
.instructor-survey-item strong,
.instructor-survey-item small {
  display: block;
}
.instructor-survey-item small,
.instructor-response__person small,
.instructor-student small,
.instructor-student span {
  margin-top: 4px;
  color: #8b93a4;
  font-size: 11px;
}
.instructor-form,
.instructor-profile-form {
  display: grid;
  gap: 15px;
}
.instructor-form label,
.instructor-profile-form label {
  display: grid;
  gap: 6px;
  color: var(--lms-ink);
  font-size: 12px;
  font-weight: 800;
}
.instructor-form input,
.instructor-form select,
.instructor-form textarea,
.instructor-profile-form input,
.instructor-profile-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #dfe2eb;
  border-radius: 10px;
  background: #fbfcff;
  color: var(--lms-ink);
}
.instructor-form-grid,
.instructor-student-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.instructor-delete-form {
  margin-top: 12px;
}
.instructor-delete-form .lms-btn--danger {
  background: #b3485f;
  color: #fff;
}
.instructor-delete-form .lms-btn--danger:hover {
  background: #963d51;
}
.instructor-delete-form button,
.instructor-inline-delete button {
  border: 0;
  background: transparent;
  color: #b3485f;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.instructor-question-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 1.5fr) minmax(125px, 1fr) minmax(120px, 1fr)
    auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #edf0f5;
}
.instructor-question-row input,
.instructor-question-row select,
.instructor-question-row textarea,
.instructor-question-new input,
.instructor-question-new select,
.instructor-question-new textarea {
  min-width: 0;
  padding: 10px;
  border: 1px solid #dfe2eb;
  border-radius: 9px;
  background: #fbfcff;
}
.instructor-check {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #68738a;
  font-size: 11px;
  white-space: nowrap;
}
.instructor-inline-delete {
  display: inline;
  margin-left: 8px;
}
.instructor-question-new {
  display: grid;
  grid-template-columns: 1fr 160px 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #edf0f5;
}
.instructor-question-new .lms-kicker {
  grid-column: 1/-1;
  margin: 0;
}
.lms-btn--small {
  min-height: 36px !important;
  padding: 0 13px !important;
  font-size: 11px !important;
}
.instructor-responses {
  display: grid;
  gap: 12px;
}
.instructor-response-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0 0 14px;
}
.instructor-response-tools input {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #dfe2eb;
  border-radius: 9px;
  background: #fbfcff;
  color: var(--lms-ink);
}
.instructor-response {
  padding: 16px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fbfcff;
}
.instructor-response__person strong,
.instructor-response__person small {
  display: block;
}
.instructor-response details {
  margin: 12px 0;
  color: #68738a;
  font-size: 12px;
}
.instructor-response pre {
  max-height: 150px;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: #f1f3f8;
  white-space: pre-wrap;
}
.instructor-answer-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--lms-ink);
}
.instructor-answer-list li {
  overflow-wrap: anywhere;
}
.instructor-no-answer {
  margin: 12px 0 0;
}
.instructor-response textarea {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid #dfe2eb;
  border-radius: 9px;
}
.instructor-student-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.instructor-student {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fbfcff;
}
.instructor-student img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
}
.instructor-student strong,
.instructor-student small,
.instructor-student span {
  display: block;
}
.instructor-profile-form {
  padding: 25px;
}

@media (max-width: 900px) {
  .instructor-dashboard-grid,
  .instructor-student-grid {
    grid-template-columns: 1fr;
  }
  .instructor-question-row,
  .instructor-question-new {
    grid-template-columns: 1fr 1fr;
  }
  .instructor-question-row input:first-of-type,
  .instructor-question-new input:first-of-type,
  .instructor-question-new .lms-kicker {
    grid-column: 1/-1;
  }
}

@media (max-width: 600px) {
  .instructor-form-grid {
    grid-template-columns: 1fr;
  }
  .instructor-survey-tools {
    grid-template-columns: 1fr;
  }
}
.survey-answers-block .question-list-item {
  cursor: default;
}

/* v3.8.0 Student profile and four-item survey archive */
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px;
  margin-bottom: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  background: #fff;
}
.profile-avatar-wrap {
  flex: 0 0 auto;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.profile-details > div {
  padding: 15px;
  border-radius: 14px;
  background: #f7f8fa;
}
.profile-details span {
  display: block;
  font-size: 0.78rem;
  opacity: 0.65;
  margin-bottom: 5px;
}
.profile-details strong {
  display: block;
  line-height: 1.45;
}
.profile-details .profile-bio {
  grid-column: 1/-1;
}
.profile-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.profile-form label {
  display: grid;
  gap: 7px;
  font-weight: 600;
  font-size: 0.9rem;
}
.profile-form input,
.profile-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9dde3;
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
}
.profile-form input[type="file"] {
  padding: 9px;
  background: #fafafa;
}
.profile-success {
  margin-bottom: 22px;
}
.archive-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.survey-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.archive-survey-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}
.archive-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.archive-status {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9f7ef;
  font-size: 0.75rem;
  font-weight: 700;
}
.archive-date {
  font-size: 0.8rem;
  opacity: 0.6;
}
.archive-survey-card h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.archive-meta {
  opacity: 0.65;
  margin: 0 0 20px;
}
.archive-survey-card .lms-button {
  margin-top: auto;
  align-self: flex-start;
}
.survey-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}
.survey-pagination a {
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 800px) {
  .profile-grid,
  .survey-archive-grid {
    grid-template-columns: 1fr;
  }
  .profile-details {
    grid-template-columns: 1fr;
  }
  .archive-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-header-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
