/*
  Glenmark assessment visual system
  Clear, high-legibility typography and a restrained red / charcoal / warm-white palette.
  This file intentionally overrides the earlier compact starter styling.
*/
:root {
  --paper: #F8F7F6;
  --surface: #FFFFFF;
  --ink: #1D1D1F;
  --muted: #626269;
  --line: #E7E4E2;
  --accent: #ED1C24;
  --accent-dark: #C9171E;
  --accent-soft: #FFF1F1;
  --success: #26754D;
  --success-soft: #EDF7F0;
  --danger: #B4232B;
  --danger-soft: #FFF1F1;
  --gold: #A58B78;
  --shadow: 0 22px 64px rgba(38, 24, 24, .075);
  --radius: 18px;
  --font-body: 'DM Sans', 'Arial', sans-serif;
  --font-display: 'Manrope', 'Arial', sans-serif;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.65; }
.ambient-grain { opacity: .025; }

/* Glenmark brand lockups */
.site-header { height: 94px; padding-inline: clamp(22px, 5vw, 76px); border-bottom-color: rgba(29, 29, 31, .09); }
.glenmark-header-brand { gap: 0; min-width: 0; }
.glenmark-header-logo { display: block; width: 154px; max-height: 86px; height: auto; object-fit: contain; }
#brand-name { position: absolute !important; }
.header-meta { gap: 25px; font-size: 13px; letter-spacing: .015em; }
.admin-entry { color: #3E3E42; font-size: 14px; }
.admin-entry:hover { color: var(--accent); }
.status-dot { background: #2F855A; box-shadow: 0 0 0 4px rgba(47, 133, 90, .12); width: 8px; height: 8px; }
.secure-note { font-weight: 600; }

.participant-shell {
  width: min(1280px, calc(100% - 64px));
  min-height: calc(100vh - 94px);
  grid-template-columns: minmax(300px, .82fr) minmax(580px, 1.18fr);
  gap: clamp(48px, 7vw, 112px);
  padding: 62px 0 72px;
}
.intro-rail { max-width: 475px; padding-left: 4px; }
.eyebrow, .section-eyebrow, .panel-kicker, .sidebar-label {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .13em;
  color: #66666B;
}
.intro-rail h1 {
  font-size: clamp(54px, 5.3vw, 76px);
  line-height: 1.04;
  letter-spacing: -.06em;
  margin: 25px 0 22px;
}
.intro-rail h1 em, .journey-screen h2 em, .page-heading h1 em, .admin-login-card h1 em { color: var(--accent); }
.hero-copy { max-width: 390px; font-size: 18px; line-height: 1.75; color: #5F5F64; }
.experience-notes { margin-top: 48px; max-width: 380px; }
.note-line { gap: 18px; padding: 16px 0; font-size: 15px; color: #48484D; }
.note-number { font-size: 13px; color: var(--accent); }
.rail-footnote { font-size: 13px; color: #707076; margin-top: 24px; }

.journey-panel {
  max-width: 720px;
  min-height: 780px;
  padding: 30px clamp(30px, 4vw, 54px) 0;
  border-radius: 20px;
  border-color: rgba(29, 29, 31, .10);
  box-shadow: 0 24px 72px rgba(31, 24, 24, .075);
}
.panel-topline { padding-bottom: 23px; }
.panel-kicker { font-size: 12px; }
.step-indicator { font-size: 13px; color: #55555B; }
.journey-screen { padding: 30px 0 34px; }
.glenmark-form-lockup { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 26px; }
.glenmark-form-lockup .uploaded-logo img { width: 204px; max-width: min(204px, 55vw); max-height: 116px; height: auto; object-fit: contain; }
.assessment-context-chip {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #F1C7C9; color: #A5161D; background: #FFF7F7;
  border-radius: 999px; padding: 8px 12px; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
}
.journey-screen h2 {
  font-size: clamp(42px, 4.2vw, 52px);
  line-height: 1.08; letter-spacing: -.055em; margin: 14px 0 14px;
}
.section-copy { color: #5F6065; font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.field-grid { gap: 18px 16px; }
.field { gap: 8px; }
.field > span { font-size: 15px; color: #333338; font-weight: 700; }
.optional-label { font-size: 11px; color: #707076; }
.field input, .field textarea {
  min-height: 56px; padding: 14px 16px; border-radius: 10px;
  background: #FFFEFE; border-color: #DCD9D8; color: #242428;
  font-size: 16px; line-height: 1.4;
}
.field textarea { min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #89898E; }
.field input:hover, .field textarea:hover { border-color: #C8BFC0; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(237, 28, 36, .10); }
.field input[aria-invalid=true] { border-color: var(--danger); }
.field-error { font-size: 13px; line-height: 1.4; }
.consent-row { gap: 12px; margin: 20px 0 10px; color: #5E5E64; font-size: 13px; line-height: 1.55; }
.custom-check { flex-basis: 19px; height: 19px; border-color: #B8B4B3; border-radius: 5px; }
.consent-row input:checked + .custom-check { background: var(--accent); border-color: var(--accent); }
.consent-row input:checked + .custom-check:after { left: 4px; top: 0; font-size: 12px; }
.consent-row input:focus-visible + .custom-check { outline: 3px solid rgba(237, 28, 36, .22); }
.consent-row a { color: #B8171D; font-weight: 700; }
.button {
  min-height: 56px; padding: 0 22px; border-radius: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: 0;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.button-primary { background: var(--accent); box-shadow: 0 7px 18px rgba(237, 28, 36, .15); }
.button-primary:hover:not(:disabled) { background: var(--accent-dark); box-shadow: 0 10px 24px rgba(237, 28, 36, .20); }
.button-secondary { background: #FFF; border-color: #D8D4D2; color: #323237; }
.button-secondary:hover:not(:disabled) { border-color: #D18A8D; background: #FFF9F9; }
.button:focus-visible, .icon-button:focus-visible, .nav-item:focus-visible, .text-button:focus-visible { outline: 3px solid rgba(237, 28, 36, .22); outline-offset: 3px; }
.button-wide { padding-inline: 20px; }
.button-arrow { font-size: 20px; }
.form-error { font-size: 14px; }
.privacy-note { font-size: 12px; line-height: 1.65; color: #717177; margin-top: 18px; }
.panel-footer { padding: 18px 0; font-size: 12px; color: #69696F; }
.panel-footer span:last-child { font-size: 11px; }

.assessment-facts { gap: 16px; padding: 22px 0; margin: 30px 0 20px; }
.fact-value { font-size: 22px; color: #242429; }
.fact-label { font-size: 13px; color: #66666C; }
.gentle-note { padding: 16px; border-radius: 10px; background: #F8F6F5; font-size: 14px; color: #55555B; }
.gentle-note-icon { width: 20px; height: 20px; flex-basis: 20px; border-color: #E9A3A6; color: var(--accent); font-size: 12px; }
.screen-symbol { width: 54px; height: 54px; background: var(--accent-soft); color: var(--accent); font-size: 27px; margin-bottom: 25px; }

/* The question screen is deliberately spacious and designed around readable answer cards. */
.question-meta { align-items: center; gap: 12px; }
.question-meta .section-eyebrow { color: #A71920; }
.question-count { font-size: 15px; color: #333338; }
.question-count span { color: #7A7A80; }
.question-timer { font-size: 13px; padding: 7px 11px; background: #FFF6F0; color: #8E4C26; }
.progress-track { height: 6px; margin: 17px 0 32px; background: #EEE9E8; border-radius: 999px; }
.progress-track span { background: linear-gradient(90deg, #ED1C24, #F35A60); border-radius: 999px; transition: width .4s var(--ease); }
.question-heading-row { margin-bottom: 10px; }
.question-index, .question-points { font-size: 12px; letter-spacing: .10em; color: #68686E; }
.question-index { display: inline-flex; align-items: center; gap: 8px; }
.question-index::before { content: ''; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; }
.question-points { color: #A71920; background: #FFF2F2; border-radius: 999px; padding: 6px 10px; }
.question-title {
  max-width: 600px !important;
  margin: 12px 0 13px !important;
  font: 750 clamp(30px, 3.5vw, 38px)/1.24 var(--font-display) !important;
  letter-spacing: -.045em !important;
  color: #202024;
}
.question-hint { margin: 0 0 18px; color: #5F5F65; font-size: 16px; line-height: 1.6; }
.answer-instruction { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; color: #69696F; font-size: 13px; font-weight: 600; }
.instruction-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(237, 28, 36, .10); }
.answer-list { gap: 12px; }
.answer-option {
  position: relative; min-height: 72px; gap: 16px; padding: 15px 18px;
  border: 1px solid #E0DCDA; border-radius: 12px;
  color: #29292E; background: #FFF; box-shadow: 0 2px 7px rgba(30, 20, 20, .025);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.answer-option::before { content: ''; position: absolute; left: -1px; top: 15px; bottom: 15px; width: 3px; border-radius: 0 4px 4px 0; background: transparent; transition: background .18s ease; }
.answer-option:hover:not(:disabled) { border-color: #E4A1A4; background: #FFFBFB; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(50, 20, 20, .06); }
.answer-option:focus-visible { outline: 3px solid rgba(237, 28, 36, .20); outline-offset: 3px; }
.answer-letter {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
  border: 1px solid #E2DDDB; background: #F8F6F5;
  color: #4E4E54; font: 750 15px var(--font-display);
}
.answer-text { flex: 1; font-size: 18px; font-weight: 600; line-height: 1.5; color: inherit; }
.answer-indicator { width: 22px; height: 22px; flex-basis: 22px; border: 1.5px solid #C9C3C1; border-radius: 50%; margin-left: auto; position: relative; }
.answer-option.is-selected { border-color: var(--accent); background: #FFF6F6; color: #7D151A; box-shadow: 0 0 0 2px rgba(237, 28, 36, .08); }
.answer-option.is-selected::before { background: var(--accent); }
.answer-option.is-selected .answer-letter { background: var(--accent); border-color: var(--accent); color: #FFF; }
.answer-option.is-selected .answer-indicator { border-color: var(--accent); background: var(--accent); }
.answer-option.is-selected .answer-indicator::after { content: ''; position: absolute; width: 6px; height: 10px; border: solid #FFF; border-width: 0 2px 2px 0; transform: rotate(45deg); left: 7px; top: 4px; }
.answer-option.is-correct { border-color: #75A98A; background: #F1F8F3; color: #205D3A; }
.answer-option.is-correct::before { background: #26754D; }
.answer-option.is-correct .answer-letter { background: #26754D; color: #FFF; border-color: #26754D; }
.answer-option.is-correct .answer-indicator { border-color: #26754D; background: #26754D; }
.answer-option.is-incorrect { border-color: #E78D91; background: #FFF3F3; color: #8F1E25; }
.answer-option.is-incorrect::before { background: var(--accent); }
.answer-option.is-incorrect .answer-letter { background: var(--accent); color: #FFF; border-color: var(--accent); }
.answer-option:disabled { cursor: default; opacity: 1; }
.answer-option:disabled:hover { transform: none; box-shadow: none; }
.feedback-panel { margin-top: 18px; padding: 18px 20px; border-radius: 12px; background: #F0F8F2; border: 1px solid #D6E9DB; }
.feedback-heading { gap: 11px; color: #215F3A; font-size: 17px; }
.feedback-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: #26754D; color: #FFF; font-size: 16px; font-weight: 800; }
.feedback-state { margin-left: auto; color: #557D61; font-size: 12px; letter-spacing: .08em; font-weight: 800; }
.feedback-panel p { margin: 10px 0 0 39px; color: #405C49; font-size: 15px; line-height: 1.65; }
.feedback-panel.is-incorrect { background: #FFF5F5; border-color: #F1D5D6; }
.feedback-panel.is-incorrect .feedback-heading { color: #8B1E25; }
.feedback-panel.is-incorrect .feedback-icon { background: var(--accent); }
.feedback-panel.is-incorrect p { color: #694247; }
.correct-answer-line { margin: 10px 0 0 39px; color: #922229; font-size: 14px; font-weight: 700; line-height: 1.55; }
.feedback-panel.is-pending { background: #FFF9F3; border-color: #F2E2D3; }
.feedback-panel.is-pending .feedback-heading { color: #75451F; }
.feedback-panel.is-pending .feedback-icon { background: #A6632D; }
.feedback-panel.is-pending p { color: #725B48; }
.feedback-panel.is-pending .feedback-state { color: #8C694B; }
.feedback-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #FFF; border-radius: 50%; display: inline-block; animation: glenmark-spin .7s linear infinite; }
@keyframes glenmark-spin { to { transform: rotate(360deg); } }
.question-actions { margin-top: 24px; gap: 16px; }
.question-action-buttons { gap: 10px; }
.question-actions .button { min-height: 54px; }
.save-state { font-size: 13px; color: #5F6B62; }
.save-state .status-dot { margin-right: 5px; }
.question-error { color: var(--danger); font-size: 14px; }

/* Results and completion */
.result-overline { gap: 10px; }
.result-spark { color: var(--accent); font-size: 22px; }
.score-feature { padding: 20px; border-radius: 14px; background: #FBF6F5; border: 1px solid #F0E5E3; }
.score-ring { width: 142px; height: 142px; flex-basis: 142px; }
.score-ring-value { stroke: var(--accent); }
.score-ring-label strong { font-size: 31px; color: #202024; }
.score-ring-label span { font-size: 12px; color: #68686E; }
.score-copy strong { font-size: 20px; color: #27272C; }
.score-copy span { font-size: 15px; color: #67676D; line-height: 1.6; }
.result-stats { gap: 10px; }
.result-stats>div { padding: 14px 8px; border-radius: 10px; background: #FAF8F7; }
.result-stats strong { font-size: 26px; color: #242428; }
.result-stats span { font-size: 13px; color: #5F5F65; }
.result-footnote, .thankyou-small { color: #626269; font-size: 14px; line-height: 1.65; }
.thankyou-mark { width: 64px; height: 64px; background: var(--accent-soft); color: var(--accent); font-size: 31px; }
.thankyou-divider { background: #E8D8D7; }
.toast { font-size: 14px; }

/* Admin shell */
.admin-body { background: #F8F7F6; font-size: 15px; }
.admin-login-wrap { min-height: 100vh; padding: 42px 20px; }
.admin-login-card { width: min(500px, 100%); padding: 42px 46px; border-radius: 18px; box-shadow: 0 24px 72px rgba(31,24,24,.085); }
.glenmark-admin-lockup { margin-bottom: 28px; }
.admin-glenmark-logo { display: block; width: 174px; max-width: 100%; height: auto; object-fit: contain; }
.admin-login-card h1 { font-size: 48px; line-height: 1.08; }
.admin-login-card .section-copy { font-size: 16px; }
.admin-login-card .field { margin-bottom: 6px; }
.admin-login-card .button { width: 100%; }
.back-link { font-size: 14px; }
.admin-sidebar { width: 254px; padding: 20px 18px 18px; background: #FFF; }
.admin-side-brand { min-height: 112px; padding: 0 7px 20px; display: flex; align-items: center; }
.sidebar-glenmark-logo { width: 160px; }
.sidebar-label { font-size: 12px; color: #6B6B70; }
.admin-nav { gap: 6px; }
.nav-item { min-height: 48px; padding: 12px 13px; border-radius: 9px; gap: 13px; font-size: 14px; color: #55555B; }
.nav-item:hover { background: #FFF6F6; color: #9D181E; }
.nav-item.is-active { background: #FFF0F0; color: #A9171E; font-weight: 800; }
.nav-icon { font-size: 18px; width: 23px; color: currentColor; }
.nav-count { font-size: 12px; }
.sidebar-bottom { gap: 14px; }
.sidebar-help { padding: 13px; border-radius: 10px; background: #FAF7F6; }
.sidebar-help strong { font-size: 13px; }
.sidebar-help small { font-size: 12px; }
.sidebar-logout { font-size: 14px; min-height: 42px; }
.admin-main-wrap { margin-left: 254px; }
.admin-topbar { height: 76px; padding: 0 clamp(22px, 3vw, 44px); border-bottom-color: #E9E5E3; }
.mobile-brand { display: none; min-height: 62px; }
.mobile-glenmark-logo { display: block; width: 110px; height: auto; max-height: 62px; object-fit: contain; }
.topbar-context { font-size: 12px; color: #717177; }
.topbar-context strong { color: #242428; font-size: 13px; }
.live-indicator { font-size: 13px; color: #55555B; }
.admin-avatar { width: 36px; height: 36px; font-size: 13px; background: #FFF0F0; color: #A8171E; }
.admin-email { font-size: 13px; color: #505057; }
.admin-content { padding: 42px clamp(22px, 3.4vw, 52px) 64px; }
.page-heading { gap: 22px; margin-bottom: 34px; }
.page-heading h1 { font-size: clamp(44px, 4vw, 58px); line-height: 1.04; }
.page-description { font-size: 15px; line-height: 1.65; color: #606067; }
.heading-actions { gap: 12px; }
.button-small { min-height: 46px; padding-inline: 16px; font-size: 14px; }
.select-wrap select, .subtle-select { min-height: 44px; font-size: 14px; color: #35353A; }
.metric-grid, .analytics-summary { gap: 13px; }
.metric-card { min-height: 132px; padding: 20px; border-radius: 12px; border-color: #E7E2E0; }
.metric-card>span { font-size: 14px; color: #5C5C63; font-weight: 600; }
.metric-card>strong { font-size: 32px; margin: 11px 0 5px; color: #222226; letter-spacing: -.04em; }
.metric-card>small { font-size: 12px; color: #727279; line-height: 1.5; }
.dashboard-grid { gap: 16px; }
.surface-card { border-color: #E6E2E0; border-radius: 13px; box-shadow: 0 5px 20px rgba(30,20,20,.025); }
.chart-card, .activity-card, .table-card { padding: 22px 23px; }
.card-heading { gap: 14px; margin-bottom: 16px; }
.card-heading h2 { font-size: 21px; letter-spacing: -.035em; }
.card-heading .section-eyebrow { font-size: 11px; }
.chart-legend { font-size: 13px; color: #616168; }
.chart-legend i { background: var(--accent); }
.chart-wrap { min-height: 280px; }
.chart-empty { font-size: 14px; }
.live-pill { padding: 7px 10px; font-size: 12px; color: #A8171E; background: #FFF1F1; border-color: #F5D1D2; }
.activity-item { gap: 13px; padding: 15px 0; border-top-color: #EEE9E7; }
.activity-icon { width: 34px; height: 34px; flex: 0 0 34px; background: #FFF1F1; color: #B31820; font-size: 16px; }
.activity-content strong { font-size: 14px; color: #303036; }
.activity-content p { font-size: 13px; color: #696970; margin-top: 3px; }
.activity-time { font-size: 12px; color: #77777D; }
.text-button { color: #AD171E; font-size: 13px; font-weight: 700; }
.text-button:hover { color: #7F1016; }
.table-card .card-heading { margin-bottom: 18px; }
.table-scroll { overflow-x: auto; }
table { min-width: 720px; }
th { padding: 12px 13px; font-size: 12px; letter-spacing: .07em; color: #66666D; }
td { padding: 15px 13px; font-size: 14px; color: #424248; }
tbody tr:hover { background: #FFFAFA; }
.person-cell { gap: 11px; }
.person-avatar { width: 38px; height: 38px; flex: 0 0 38px; font-size: 13px; background: #FFF0F0; color: #A9171E; }
.person-cell strong { font-size: 14px; color: #2D2D32; }
.person-cell small { font-size: 12px; color: #696970; }
.status-tag { padding: 6px 9px; font-size: 12px; }
.score-cell { font-size: 14px; }
.table-loading { padding: 28px 16px; font-size: 14px; color: #68686E; }
.table-toolbar { gap: 13px; margin-bottom: 18px; }
.search-field { min-height: 46px; border-radius: 9px; }
.search-field>span { font-size: 18px; }
.search-field input { font-size: 14px; }
.search-field input::placeholder { color: #818188; }
.table-count { font-size: 13px; color: #66666D; }
.table-pagination { padding-top: 17px; font-size: 13px; color: #68686E; }
.pagination-button { min-height: 39px; padding: 7px 13px; font-size: 13px; color: #3F3F45; border-radius: 8px; }
.compact-heading { margin-bottom: 30px; }
.assessment-list-card, .builder-card, .settings-card { padding: 23px; }
.assessment-row { padding: 18px 0; gap: 17px; }
.assessment-row h3 { font-size: 16px; color: #28282D; }
.assessment-row p { font-size: 13px; color: #68686F; }
.assessment-meta { font-size: 13px; color: #66666D; }
.assessment-actions { gap: 8px; }
.empty-state { padding: 42px 16px; color: #68686E; }
.empty-state strong { font-size: 15px; color: #35353A; }
.empty-state p { font-size: 13px; color: #6D6D74; max-width: 300px; }
.builder-fields { gap: 17px; }
.question-editor-heading h3 { font-size: 19px; }
.question-editor-item { padding: 17px; border-color: #E6E1DF; border-radius: 11px; }
.question-editor-top strong { font-size: 13px; color: #4A4A50; }
.question-editor-item textarea, .question-editor-item input[type=text] { min-height: 48px; padding: 12px; border-radius: 8px; font-size: 14px; }
.option-editor-grid { gap: 10px; }
.option-editor-row { gap: 9px; }
.option-editor-row input[type=text] { min-height: 44px; font-size: 14px; }
.builder-footer { padding-top: 18px; }
.builder-note, .field-help { font-size: 12px; color: #696970; }
.settings-card form { gap: 17px; }
.logo-upload-row { padding: 16px; background: #FAF7F6; border-color: #EAE5E3; }
.logo-preview { width: 132px; height: 90px; border-radius: 9px; }
.settings-info-list>div { padding: 14px 0; font-size: 13px; }
.settings-info-list span { color: #64646B; }
.settings-info-list strong { color: #303036; }
.analytics-summary .metric-card { min-height: 124px; }
.analytics-grid { gap: 16px; }
.doughnut-wrap { height: 270px; }
.participant-modal { width: min(900px, 100%); border-radius: 16px; padding: 28px; }
.modal-heading h2 { font-size: 24px; }
.icon-button { width: 42px; height: 42px; border-radius: 9px; font-size: 21px; }
.profile-header { gap: 15px; }
.profile-header .person-avatar { width: 48px; height: 48px; font-size: 15px; }
.profile-header h3 { font-size: 18px; }
.profile-header p { font-size: 13px; }
.profile-info-grid { gap: 12px; }
.profile-info-grid>div { padding: 14px; border-radius: 9px; }
.profile-info-grid span { font-size: 12px; }
.profile-info-grid strong { font-size: 14px; line-height: 1.5; }
.profile-section-title { font-size: 16px; }
.attempt-detail { padding: 16px; border-radius: 10px; }
.attempt-detail-head strong { font-size: 14px; }
.attempt-detail-head span { font-size: 13px; }
.response-detail { padding: 13px 0; }
.response-detail strong { font-size: 14px; line-height: 1.6; }
.response-detail p { font-size: 13px; line-height: 1.6; }
.response-result { font-size: 12px; }

/* Make live data changes feel acknowledged, never flashy. */
.metric-card, .surface-card, .journey-panel, .answer-option { transition-timing-function: var(--ease); }
.metric-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30,20,20,.055); border-color: #E8C7C8; }
.admin-view.is-active { animation: glenmark-view-in .28s ease both; }
@keyframes glenmark-view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.toast { font-size: 14px; border-left: 4px solid var(--accent); }

@media (max-width: 1100px) {
  .participant-shell { grid-template-columns: minmax(250px, .75fr) minmax(520px, 1.25fr); gap: 42px; }
  .intro-rail h1 { font-size: 58px; }
}
@media (max-width: 900px) {
  .participant-shell { grid-template-columns: 1fr; width: min(720px, calc(100% - 40px)); gap: 24px; padding-top: 32px; }
  .intro-rail { max-width: none; padding: 0 4px; }
  .intro-rail h1 { font-size: clamp(44px, 8vw, 60px); margin: 14px 0 12px; }
  .hero-copy { max-width: 600px; font-size: 17px; }
  .experience-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: none; margin-top: 22px; border: 0; }
  .note-line { border: 1px solid var(--line); border-radius: 10px; padding: 12px; gap: 9px; font-size: 13px; }
  .rail-footnote { display: none; }
  .journey-panel { justify-self: stretch; max-width: none; min-height: 0; }
  .admin-sidebar { width: 254px; }
  .admin-main-wrap { margin-left: 254px; }
}
@media (max-width: 760px) {
  .site-header { height: 78px; padding-inline: 18px; }
  .glenmark-header-logo { width: 122px; max-height: 70px; }
  .header-meta { gap: 14px; }
  .secure-note { display: none; }
  .participant-shell { width: calc(100% - 28px); padding: 22px 0 36px; }
  .intro-rail { padding: 0 6px 6px; }
  .intro-rail h1 { font-size: clamp(40px, 9vw, 52px); }
  .hero-copy { font-size: 16px; }
  .experience-notes { display: none; }
  .journey-panel { min-height: 0; padding: 20px 23px 0; border-radius: 16px; }
  .journey-screen { padding: 23px 0 28px; }
  .glenmark-form-lockup { min-height: 91px; margin-bottom: 22px; }
  .glenmark-form-lockup .uploaded-logo img { width: 165px; max-width: 52vw; max-height: 92px; }
  .assessment-context-chip { font-size: 11px; padding: 7px 9px; }
  .journey-screen h2 { font-size: clamp(37px, 8vw, 46px); }
  .section-copy { font-size: 15px; }
  .field-grid { grid-template-columns: 1fr 1fr; gap: 15px 12px; }
  .field > span { font-size: 14px; }
  .field input, .field textarea { min-height: 54px; font-size: 16px; }
  .consent-row { font-size: 12px; }
  .button { min-height: 54px; font-size: 15px; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: none; }
  .admin-sidebar.is-open { transform: translateX(0); box-shadow: 10px 0 35px rgba(20,20,20,.12); }
  .admin-main-wrap { margin-left: 0; }
  .admin-topbar { height: 70px; padding-inline: 16px; }
  .mobile-brand { display: flex; }
  .mobile-glenmark-logo { width: 94px; max-height: 56px; }
  .topbar-left { display: none; }
  .admin-email { display: none; }
  .admin-content { padding: 30px 17px 48px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 42px; }
  .heading-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .metric-grid, .analytics-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric-card { padding: 15px; min-height: 116px; }
  .metric-card>strong { font-size: 26px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 12px; }
  .chart-card, .activity-card, .table-card { padding: 17px; }
  .table-toolbar { flex-wrap: wrap; }
  .search-field { max-width: none; flex-basis: 100%; }
  .table-count { margin-left: auto; }
  .settings-layout, .analytics-grid { grid-template-columns: 1fr; }
  .assessment-row { grid-template-columns: minmax(140px, 1fr) auto; gap: 9px; }
  .assessment-meta:nth-child(3) { display: none; }
  .assessment-actions { justify-content: flex-end; }
  .builder-fields { grid-template-columns: 1fr; }
  .builder-fields .field-full, .builder-two-col { grid-column: auto; }
  .builder-two-col { grid-template-columns: 1fr 1fr; }
  .admin-login-card { padding: 32px 26px; }
  .back-link { top: 20px; left: 20px; }
  .admin-topbar .live-indicator { font-size: 0; gap: 0; }
  .admin-topbar .live-indicator .status-dot { width: 8px; height: 8px; }
  .profile-info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .field-grid { grid-template-columns: 1fr; }
  .journey-panel { padding-inline: 17px; }
  .journey-screen h2 { font-size: 37px; }
  .question-title { font-size: 29px !important; }
  .question-hint { font-size: 15px; }
  .answer-option { min-height: 66px; padding: 13px 12px; gap: 11px; }
  .answer-letter { width: 34px; height: 34px; flex-basis: 34px; }
  .answer-text { font-size: 16px; }
  .answer-instruction { font-size: 12px; }
  .question-actions { align-items: stretch; flex-direction: column; }
  .question-actions .button { width: 100%; }
  .question-action-buttons { width: 100%; }
  .question-action-buttons .button { flex: 1; }
  .score-feature { gap: 12px; padding: 14px; }
  .score-ring { width: 112px; height: 112px; flex-basis: 112px; }
  .score-ring-label strong { font-size: 25px; }
  .result-stats { grid-template-columns: 1fr 1fr; }
  .builder-two-col, .option-editor-grid { grid-template-columns: 1fr; }
  .builder-footer { align-items: flex-start; flex-direction: column; }
  .builder-footer>div { width: 100%; }
  .builder-footer .button { flex: 1; }
  .profile-info-grid { grid-template-columns: 1fr 1fr; }
  .participant-modal { padding: 17px; }
  .admin-login-card { padding: 29px 21px; }
  .admin-glenmark-logo { width: 158px; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-spinner { animation: none; border-top-color: currentColor; }
  .admin-view.is-active { animation: none; }
}
