:root {
  color-scheme: light;
  --ink: #20243f;
  --muted: #74809a;
  --line: #e5e9f2;
  --paper: #ffffff;
  --canvas: #f5f7fc;
  --purple: #6458e8;
  --purple-dark: #5145cb;
  --purple-light: #efedff;
  --green: #159b7c;
  --blue: #397cdb;
  --orange: #d98b36;
  --shadow-card: 0 16px 42px rgba(37, 45, 83, .07);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 8% 0%, #ebeaff 0, transparent 27rem), radial-gradient(ellipse at 94% 19%, #e8f7f6 0, transparent 25rem), var(--canvas); color: var(--ink); font-size: 15px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #6b5ce84d; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .65; }
.page-shell { max-width: 1360px; margin: 0 auto; padding: 0 6%; }
.topbar { position: sticky; top: 0; z-index: 8; height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(30, 36, 57, .07); background: rgba(248, 249, 255, .86); backdrop-filter: blur(18px); }
.brand, .sidebar-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 700; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand small, .sidebar-brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; margin-top: 5px; }
.brand-mark, .auth-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: white; font-size: 23px; background: linear-gradient(145deg, #8176f4, #5549d0); box-shadow: 0 8px 20px #6558e83b; }
.top-nav { display: flex; align-items: center; gap: 8px; }
.nav-link, .text-button, .back-link { border: 0; padding: 9px 13px; color: #626a7d; background: transparent; font-size: 13px; font-weight: 600; transition: .18s ease; }
.nav-link { border-radius: 10px; }
.nav-link:hover, .text-button:hover, .back-link:hover { color: var(--purple); }
.nav-link:hover { background: #eeedff; }
.status-chip { display: flex; align-items: center; gap: 8px; padding: 9px 13px; color: #287e6c; background: #e7f6f1; border: 1px solid #d5eee5; border-radius: 30px; font-size: 11px; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #32b78a; box-shadow: 0 0 0 4px #32b78a1f; }

.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 510px; margin: 26px 0 38px; padding: 28px 5%; overflow: hidden; border: 1px solid #e8e9f7; border-radius: 30px; background: linear-gradient(115deg, rgba(255,255,255,.98) 0%, rgba(251,250,255,.96) 52%, rgba(239,238,255,.84) 100%); box-shadow: 0 28px 80px rgba(65, 57, 150, .09); }
.hero::before { position: absolute; content: ""; width: 330px; height: 330px; top: -190px; right: 33%; border-radius: 50%; background: #8d84f41c; filter: blur(5px); }
.hero-copy { position: relative; z-index: 2; max-width: 530px; padding: 45px 0 53px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); font-size: 11px; font-weight: 600; letter-spacing: .1px; }
.eyebrow-line { display: inline-block; height: 2px; width: 22px; background: var(--purple); border-radius: 5px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 16px 0; font-size: clamp(42px, 5vw, 64px); line-height: 1.24; font-weight: 750; letter-spacing: -1.6px; }
.hero h1 span { color: var(--purple); }
.hero-copy > p { max-width: 460px; margin-bottom: 28px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.hero-actions { display: flex; gap: 11px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 650; transition: .18s ease; }
.button-primary { background: linear-gradient(135deg, #7669ef, #5d50da); color: white; box-shadow: 0 8px 19px #6555d43d; }
.button-primary:hover { background: linear-gradient(135deg, #695de3, #5043c8); transform: translateY(-2px); box-shadow: 0 11px 22px #6555d44a; }
.button-secondary { border-color: #e1e4ee; color: var(--ink); background: rgba(255,255,255,.9); }
.button-secondary:hover { border-color: #c9c4fb; color: var(--purple); background: #fcfbff; }
.button.compact { min-height: 39px; padding: 0 14px; font-size: 12px; }
.full-width { width: 100%; }
.trust-row { display: flex; align-items: center; gap: 8px; margin-top: 27px; color: #8a90a1; font-size: 11px; }
.trust-icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #2d9d74; background: #e1f3eb; font-size: 11px; }
.hero-art { min-height: 460px; position: relative; display: flex; align-items: center; justify-content: center; }
.art-glow { position: absolute; width: 390px; height: 390px; border-radius: 50%; background: radial-gradient(circle, #eeeaff 0%, #f3f1ff 43%, #f7f8fc00 72%); }
.art-card { position: absolute; z-index: 1; background: white; border: 1px solid #edeef5; border-radius: 17px; box-shadow: 0 22px 65px #34375d17; }
.art-main { width: 285px; padding: 20px; transform: rotate(-3deg) translate(-2px, 4px); }
.art-card-heading { display: flex; align-items: center; justify-content: space-between; }
.art-check { display: grid; place-items: center; width: 32px; height: 32px; color: var(--purple); background: var(--purple-light); border-radius: 10px; font-size: 16px; }
.art-menu { color: #a4a8b7; letter-spacing: 2px; font-size: 15px; }
.art-label { display: block; margin-top: 20px; color: #9b9fb0; font-size: 10px; }
.art-main > strong { display: block; margin: 4px 0 17px; font-size: 17px; }
.art-option { display: flex; align-items: center; gap: 9px; height: 37px; margin-bottom: 7px; padding: 0 10px; color: #6f7689; background: #fafaff; border: 1px solid #f0f0f6; border-radius: 8px; font-size: 10px; }
.art-option i { width: 13px; height: 13px; border: 1px solid #d5d7e3; border-radius: 50%; }
.art-option.selected { color: #5d50cb; border-color: #d7d2ff; background: #f8f7ff; }
.art-option.selected i { border: 4px solid var(--purple); }
.art-option b { margin-right: auto; font-size: 10px; }
.art-submit { margin-top: 13px; padding: 10px; color: white; background: var(--purple); border-radius: 8px; text-align: center; font-size: 10px; }
.art-stat { z-index: 2; width: 168px; padding: 17px; left: 3%; top: 63%; transform: rotate(4deg); }
.stat-spark { float: left; color: #2ea879; font-size: 17px; }
.art-stat small { display: block; color: #9197a8; font-size: 9px; }
.art-stat strong { display: block; margin: 6px 0; font-size: 24px; }
.mini-bars { height: 31px; display: flex; align-items: end; gap: 6px; }
.mini-bars i { flex: 1; height: 45%; background: #dedafa; border-radius: 4px 4px 1px 1px; }
.mini-bars i:nth-child(2) { height: 68%; }.mini-bars i:nth-child(3) { height: 55%; }.mini-bars i:nth-child(4) { height: 86%; }.mini-bars i:nth-child(5) { height: 70%; }.mini-bars i:nth-child(6) { height: 100%; background: #7567e6; }.mini-bars i:nth-child(7) { height: 82%; }
.art-orbit { position: absolute; border: 1px solid #dedbf8; border-radius: 50%; }
.orbit-one { width: 390px; height: 250px; transform: rotate(-28deg); }
.orbit-two { width: 350px; height: 305px; transform: rotate(26deg); border-color: #ebe9fa; }
.feature-section { padding: 18px 0 74px; }
.section-heading { text-align: center; margin-bottom: 29px; }
.section-heading h2 { margin: 9px 0; font-size: 25px; letter-spacing: -.3px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.feature-card { min-height: 180px; padding: 25px; background: rgba(255,255,255,.92); border: 1px solid #e8ebf3; border-radius: 18px; box-shadow: 0 10px 30px rgba(37, 45, 83, .035); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-icon, .metric-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; font-size: 19px; }
.feature-icon.purple, .metric-icon.purple { color: #7567df; background: #f0eeff; }
.feature-icon.blue, .metric-icon.blue { color: #418ae2; background: #eaf3ff; }
.feature-icon.green, .metric-icon.green { color: #2eab7b; background: #e8f7f0; }
.metric-icon.orange { color: #d18a2f; background: #fff4e5; }
.feature-card h3 { margin: 16px 0 7px; font-size: 15px; }
.feature-card p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }

.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; color: #9197a6; border-top: 1px solid rgba(30, 36, 57, .08); font-size: 11px; }
.site-footer > span:first-child { color: #585f72; font-weight: 700; }
.site-footer small { margin-right: 7px; color: #a1a5b2; font-weight: 400; }
.hidden { display: none !important; }
.screen { min-height: 60vh; }
.page-heading { padding: 43px 0 24px; }
.page-heading .eyebrow { display: flex; margin-top: 30px; }
.page-heading h1 { margin: 9px 0; font-size: 36px; letter-spacing: -.5px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.back-link { display: inline-block; }
.student-layout { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; margin-bottom: 55px; }
.panel { padding: 24px; border: 1px solid #e7eaf2; background: rgba(255,255,255,.96); border-radius: 18px; box-shadow: 0 12px 35px rgba(37, 45, 83, .045); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading h2 { margin: 5px 0 0; font-size: 18px; }
.round-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, #f1efff, #e8f5f6); color: var(--purple); }
.student-panel { min-height: 280px; }
.open-surveys { margin-top: 22px; }
.open-survey-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid #edf0f5; }
.open-survey-card h3 { margin: 0 0 6px; font-size: 15px; }
.open-survey-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.student-help { background: linear-gradient(150deg, #fff, #f3f4ff 100%); }
.help-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #e6e2ff; color: var(--purple); border-radius: 50%; font-weight: 600; }
.student-help h3 { margin: 14px 0 10px; font-size: 15px; }
.student-help ul { padding-right: 18px; color: #626d85; font-size: 12px; line-height: 2.15; }
.privacy-note { margin-top: 17px; padding: 12px; color: #74718d; background: #f2f0ff; border-radius: 9px; font-size: 10px; line-height: 1.9; }
.external-surveys-panel { margin-bottom: 55px; }
.external-survey-list { display: grid; gap: 10px; margin-top: 17px; }
.external-survey-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid #eceef5; border-radius: 12px; background: #fff; }
.external-survey-card-copy { min-width: 0; }
.external-survey-card h3 { margin: 0 0 5px; font-size: 13px; }
.external-survey-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.external-survey-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.external-survey-actions a { text-decoration: none; }
.external-survey-url { display: block; margin-top: 7px; overflow-wrap: anywhere; color: #858b9c; direction: ltr; text-align: right; font-size: 9px; }
.external-survey-embed { flex: 1 0 100%; min-width: 0; }
.external-survey-embed iframe, .embedded-external-survey iframe { display: block; width: 100%; min-height: 560px; border: 1px solid #e6e9f1; border-radius: 12px; background: #fff; }
.embedded-external-survey { margin: 18px 0; padding: 14px; border: 1px solid #eceef5; border-radius: 13px; background: #fcfcff; }
.embedded-external-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.embedded-external-heading h3 { margin: 0 0 5px; font-size: 13px; }
.embedded-external-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.danger-button { color: #b64e57; }
.danger-button:hover { border-color: #e8c2c5; color: #a23842; }
.empty-state { padding: 23px; text-align: center; color: var(--muted); background: #fafbfe; border-radius: 10px; font-size: 12px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: #16192b80; overflow: auto; }
.modal-panel { position: relative; width: min(620px, 100%); max-height: 90vh; overflow-y: auto; padding: 29px; border-radius: 17px; background: white; box-shadow: 0 25px 90px #11142840; }
.modal-close { position: absolute; left: 20px; top: 16px; border: 0; background: transparent; color: #82889a; font-size: 25px; }
.modal-panel h2 { margin: 6px 0; font-size: 21px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.8; }
.form-grid { display: grid; gap: 15px; }
.form-grid.two-col { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; color: #414a65; font-size: 12px; font-weight: 650; }
.field > span small { color: #a1a5b2; font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #e1e6f0; border-radius: 11px; padding: 12px 13px; background: #fbfcff; outline: none; color: var(--ink); font-size: 13px; transition: border .16s, box-shadow .16s, background .16s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #948af0; background: white; box-shadow: 0 0 0 4px #7162e218; }
.field textarea { resize: vertical; }
.response-questions { margin: 20px 0; display: grid; gap: 15px; }
.response-question { padding: 18px; background: #fbfbff; border: 1px solid #ececf8; border-radius: 13px; }
.response-question h3 { margin: 0 0 13px; font-size: 14px; line-height: 1.7; }
.answer-option { display: flex; align-items: center; gap: 10px; min-height: 36px; color: #626a7b; font-size: 13px; }
.answer-option input { accent-color: var(--purple); }
.form-message { min-height: 19px; margin: 9px 0; color: #c25656; font-size: 11px; }
.form-message.success { color: #27815e; }
.student-results-panel { margin-top: 21px; padding-top: 17px; border-top: 1px solid #eceef5; }
.student-results-panel > h3 { margin: 0 0 8px; font-size: 16px; }
.student-results-panel .result-question { padding: 15px; }
.student-results-panel .result-question h4 { margin: 0 0 7px; font-size: 13px; }

.auth-wrap { display: grid; place-items: center; padding: 38px 0 65px; }
.auth-wrap > .back-link { justify-self: start; width: 100%; }
.auth-card { width: min(420px, 100%); padding: 34px; border: 1px solid #e7eaf2; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: 0 24px 70px rgba(37, 45, 83, .1); }
.auth-mark { margin-bottom: 22px; }
.auth-card > .eyebrow { display: flex; }
.auth-card h1 { margin: 8px 0; font-size: 28px; letter-spacing: -.4px; }
.auth-card > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.auth-card form { margin-top: 22px; }
.auth-footnote { margin: 16px 0 0 !important; padding-top: 13px; border-top: 1px solid #eff0f5; font-size: 10px !important; }

.admin-shell { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 30px; min-height: 680px; padding: 29px 0 55px; }
.admin-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; min-height: 620px; height: calc(100vh - 125px); padding: 22px 15px; border: 1px solid #e7eaf2; border-radius: 20px; background: rgba(255,255,255,.82); box-shadow: 0 14px 40px rgba(37, 45, 83, .045); }
.sidebar-brand { display: block; margin-bottom: 45px; font-size: 20px; }
.sidebar-brand small { margin: -1px 0 0; }
.sidebar-caption { margin-bottom: 13px; color: #a2a7b5; font-size: 10px; }
.side-link { display: flex; align-items: center; gap: 11px; width: 100%; margin-bottom: 5px; padding: 12px 13px; border: 0; border-radius: 11px; background: transparent; color: #71788a; text-align: right; font-size: 12px; font-weight: 600; transition: .18s ease; }
.side-link span { display: inline-grid; place-items: center; width: 19px; color: #969bad; font-size: 16px; }
.side-link.active, .side-link:hover { color: var(--purple); background: linear-gradient(100deg, #f0eeff, #f8f7ff); }
.side-link.active span, .side-link:hover span { color: var(--purple); }
.sidebar-bottom { margin-top: auto; }
.admin-mini { display: flex; align-items: center; gap: 9px; padding: 13px 2px; border-top: 1px solid #e9ebf2; }
.admin-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eeecff; color: var(--purple); }
.admin-mini > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.admin-mini b { font-size: 11px; }.admin-mini small { color: #969bad; font-size: 9px; }
.logout-button { border: 0; background: transparent; color: #7f8698; font-size: 10px; padding: 8px 2px; }
.logout-button:hover { color: #bf5555; }
.logout-button span { margin-right: 4px; }
.admin-content { min-width: 0; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding: 24px 25px; border: 1px solid #e8eaf5; border-radius: 20px; background: linear-gradient(110deg, #fff, #f5f4ff); box-shadow: 0 12px 35px rgba(37, 45, 83, .04); }
.admin-header h1 { margin: 6px 0; font-size: 27px; letter-spacing: -.4px; }
.admin-header p, .section-toolbar p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.metric-card { position: relative; display: flex; flex-direction: column; min-height: 154px; padding: 19px; background: rgba(255,255,255,.96); border: 1px solid #e7eaf2; border-radius: 17px; box-shadow: 0 10px 28px rgba(37, 45, 83, .04); transition: transform .18s ease, box-shadow .18s ease; }
.metric-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.metric-icon { position: absolute; top: 15px; left: 15px; width: 32px; height: 32px; font-size: 15px; }
.metric-label { margin-top: 3px; color: #7d8499; font-size: 11px; font-weight: 600; }
.metric-card strong { margin-top: 16px; font-size: 27px; line-height: 1; }
.metric-card > small { margin-top: 8px; color: #969caf; font-size: 10px; }
.table-panel { padding: 23px; }
.text-button { color: var(--purple); font-size: 11px; }
.survey-list { margin-top: 17px; }
.survey-row { display: grid; grid-template-columns: minmax(0, 1.6fr) .7fr .8fr .8fr auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid #eff0f5; }
.survey-row-main { min-width: 0; }
.survey-row-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.survey-row-main small { display: block; margin-top: 4px; color: #999eac; font-size: 9px; }
.row-metric { color: #707789; font-size: 10px; }
.row-metric strong { display: block; margin-top: 3px; color: var(--ink); font-size: 12px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 5px 8px; border-radius: 30px; font-size: 9px; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-badge.open { color: #278a64; background: #e9f7f0; }
.status-badge.draft { color: #858999; background: #f0f1f5; }
.status-badge.closed { color: #c17a3b; background: #fff4e9; }
.row-actions { display: flex; align-items: center; gap: 8px; }
.small-button { padding: 7px 10px; border: 1px solid #e2e6ef; border-radius: 8px; color: #626b83; background: white; font-size: 10px; font-weight: 600; transition: .16s ease; }
.small-button:hover { color: var(--purple); border-color: #c9c4fb; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-toolbar h2 { margin: 0 0 5px; font-size: 17px; }
.survey-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.survey-card { padding: 20px; background: rgba(255,255,255,.97); border: 1px solid #e7eaf2; border-radius: 17px; box-shadow: 0 10px 28px rgba(37, 45, 83, .04); transition: transform .18s ease, box-shadow .18s ease; }
.survey-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.survey-card-top { display: flex; justify-content: space-between; gap: 10px; }
.survey-card h3 { margin: 0 0 7px; font-size: 14px; }
.survey-card p { min-height: 38px; margin: 0; color: #7d8499; font-size: 11px; line-height: 1.75; }
.progress-track { appearance: none; width: 100%; height: 6px; margin: 16px 0 8px; overflow: hidden; border: 0; border-radius: 10px; background: #f0f0f5; }
.progress-track::-webkit-progress-bar { border-radius: 10px; background: #f0f0f5; }
.progress-track::-webkit-progress-value { border-radius: 10px; background: linear-gradient(90deg, #8578ef, #5e4bd4); }
.progress-track::-moz-progress-bar { border-radius: 10px; background: linear-gradient(90deg, #8578ef, #5e4bd4); }
.survey-card-footer { display: flex; justify-content: space-between; align-items: center; color: #8a90a0; font-size: 9px; }
.survey-card-actions { display: flex; gap: 7px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #eff0f5; }
.create-panel { margin-top: 20px; }
.create-panel form { margin-top: 22px; }
.question-builder-heading { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 13px; }
.question-builder-heading h3 { margin: 0; font-size: 14px; }
.question-editor { position: relative; margin-bottom: 12px; padding: 15px; background: #fafaff; border: 1px solid #efeff7; border-radius: 10px; }
.question-editor-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.question-editor-header strong { font-size: 11px; }
.question-editor-tools { display: flex; gap: 10px; align-items: center; }
.question-editor-tools select { max-width: 170px; padding: 6px 8px; border: 1px solid #e4e5ed; border-radius: 7px; color: #62697a; background: white; font-size: 10px; }
.remove-question { border: 0; background: transparent; color: #bd6868; font-size: 10px; }
.question-text-input { width: 100%; padding: 10px; border: 1px solid #e4e5ed; border-radius: 8px; outline: none; font-size: 11px; }
.options-input { margin-top: 9px; font-size: 10px; }
.student-admin-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 15px; }
.external-admin-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: 15px; }
.external-survey-form { display: grid; align-content: start; gap: 13px; }
.external-survey-form .panel-heading { margin-bottom: 4px; }
.external-survey-form .form-message { margin: 0; }
.ai-builder-panel { display: grid; gap: 11px; margin: 21px 0; padding: 16px; border: 1px solid #e8e5fb; border-radius: 14px; background: linear-gradient(125deg, #fbfaff, #f8fcff); }
.ai-builder-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ai-builder-heading h3 { margin: 4px 0 0; font-size: 14px; }
.ai-builder-controls { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 12px; }
.ai-builder-panel .form-message { margin: 0; }
.import-panel, .student-roster-panel { min-width: 0; }
.import-panel > .muted { margin: 14px 0; font-size: 10px; }
code { padding: 2px 5px; border-radius: 4px; background: #f0effa; color: #6254cd; direction: ltr; unicode-bidi: isolate; }
.import-hint { margin: 8px 0; color: #999eac; font-size: 9px; line-height: 1.8; }
.student-roster { max-height: 390px; overflow-y: auto; margin-top: 14px; }
.roster-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #eff0f5; }
.roster-avatar { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 10px; background: #f0efff; color: #7062da; font-size: 11px; }
.roster-info { min-width: 0; flex: 1; }
.roster-info strong, .roster-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-info strong { font-size: 10px; }.roster-info small { margin-top: 3px; color: #9298a8; font-size: 9px; }
.count-pill { padding: 5px 9px; color: var(--purple); background: #efedff; border-radius: 20px; font-size: 10px; }
.warning-note { padding: 9px 11px; color: #976c2d; background: #fff8e9; border-radius: 8px; font-size: 10px; }
.results-heading { margin: 16px 0; }
.results-heading h2 { margin: 7px 0; font-size: 21px; }
.results-heading p { color: var(--muted); font-size: 11px; }
.results-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 17px 0; }
.result-summary-card { padding: 18px; border: 1px solid #e7eaf2; border-radius: 15px; background: white; box-shadow: 0 8px 24px rgba(37, 45, 83, .04); }
.result-summary-card small { color: #7e879c; font-size: 11px; font-weight: 600; }
.result-summary-card strong { display: block; margin-top: 8px; font-size: 24px; }
.result-question { margin-top: 14px; padding: 22px; background: white; border: 1px solid #e7eaf2; border-radius: 16px; box-shadow: 0 8px 24px rgba(37, 45, 83, .035); }
.result-question h3 { margin: 0 0 7px; font-size: 14px; }
.result-question > small { color: #959aaa; font-size: 9px; }
.result-bar-row { display: grid; grid-template-columns: minmax(80px, 1fr) 2fr 48px; align-items: center; gap: 11px; margin-top: 15px; color: #646b7c; font-size: 10px; }
.result-bar-track { appearance: none; width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 8px; background: #f0eff6; }
.result-bar-track::-webkit-progress-bar { border-radius: 8px; background: #f0eff6; }
.result-bar-track::-webkit-progress-value { border-radius: 8px; background: #7669e5; }
.result-bar-track::-moz-progress-bar { border-radius: 8px; background: #7669e5; }
.result-value { text-align: left; color: #5e55b3; font-weight: 600; }
.result-text-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 0; border-top: 1px solid #eff0f5; color: #626a7b; font-size: 11px; }
.result-text-item span { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-mobile-bar, .admin-mobile-nav { display: none; }
.loading { padding: 20px; text-align: center; color: #9298a7; font-size: 11px; }
.toast { position: fixed; bottom: 23px; left: 24px; z-index: 20; max-width: min(420px, calc(100vw - 40px)); padding: 12px 17px; border-radius: 9px; background: #252a3b; color: white; box-shadow: 0 8px 25px #10121e30; font-size: 11px; }

@media (max-width: 1000px) {
  .page-shell { padding: 0 4%; }
  .top-nav { gap: 17px; }
  .admin-shell { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .survey-row { grid-template-columns: minmax(0, 1.5fr) .7fr .8fr auto; }
  .survey-row .row-metric:nth-child(3) { display: none; }
}
@media (max-width: 720px) {
  .page-shell { padding: 0 18px; }
  .topbar { height: auto; min-height: 70px; flex-wrap: wrap; gap: 5px; padding: 8px 0; }
  .top-nav { gap: 4px; }
  .top-nav .nav-link { padding: 7px 9px; font-size: 11px; }
  .status-chip { display: none; }
  .brand { font-size: 17px; }
  .brand-mark { width: 36px; height: 36px; }
  .hero { grid-template-columns: 1fr; min-height: auto; margin: 16px 0 30px; padding: 10px 6% 20px; border-radius: 23px; }
  .hero-copy { padding: 52px 0 10px; }
  .hero h1 { font-size: 48px; }
  .hero-copy > p { font-size: 13px; }
  .hero-art { min-height: 360px; }
  .art-glow { width: 320px; height: 320px; }
  .art-main { transform: rotate(-3deg) translate(20px, 2px) scale(.9); }
  .art-stat { left: 0; top: 63%; transform: rotate(4deg) scale(.9); }
  .orbit-one { width: 330px; height: 210px; }
  .orbit-two { width: 300px; height: 255px; }
  .feature-section { padding-bottom: 45px; }
  .feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature-card { min-height: auto; padding: 20px; border-radius: 15px; }
  .feature-card h3 { margin-top: 11px; }
  .site-footer { font-size: 9px; }
  .student-layout { grid-template-columns: 1fr; }
  .page-heading { padding-top: 25px; }
  .page-heading h1 { font-size: 28px; }
  .student-panel, .panel { padding: 19px; border-radius: 16px; }
  .open-survey-card { align-items: flex-start; }
  .external-survey-card { align-items: flex-start; flex-direction: column; }
  .external-survey-actions { flex-wrap: wrap; }
  .ai-builder-controls { grid-template-columns: 1fr; }
  .embedded-external-heading { flex-direction: column; }
  .external-survey-embed iframe, .embedded-external-survey iframe { min-height: 470px; }
  .form-grid.two-col { grid-template-columns: 1fr; }
  .modal-panel { padding: 24px 18px; }
  .admin-shell { display: block; padding-top: 16px; }
  .admin-sidebar { display: none; }
  .admin-mobile-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .admin-mobile-bar .sidebar-brand { margin: 0; font-size: 17px; }
  .admin-mobile-nav { display: flex; gap: 5px; overflow-x: auto; margin: 0 -18px 22px; padding: 0 18px 8px; border-bottom: 1px solid #e9ebf2; }
  .admin-mobile-nav .side-link { flex: 0 0 auto; width: auto; margin: 0; padding: 8px 10px; white-space: nowrap; font-size: 10px; }
  .admin-header { align-items: flex-start; padding: 18px; border-radius: 16px; }
  .admin-header h1 { font-size: 23px; }
  .admin-header p { max-width: 240px; line-height: 1.7; }
  .metric-grid { gap: 10px; }
  .metric-card { min-height: 137px; padding: 15px; border-radius: 15px; }
  .metric-icon { width: 28px; height: 28px; top: 12px; left: 12px; }
  .metric-card strong { font-size: 21px; }
  .survey-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
  .survey-row .row-metric { display: none; }
  .row-actions { grid-column: 1 / -1; }
  .survey-grid, .student-admin-grid, .external-admin-grid { grid-template-columns: 1fr; }
  .results-summary { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .result-summary-card { padding: 13px; border-radius: 12px; }
  .result-summary-card small { font-size: 10px; }
  .result-summary-card strong { font-size: 19px; }
  .result-bar-row { grid-template-columns: minmax(70px, .9fr) 1.4fr 41px; gap: 7px; }
}
@media (max-width: 420px) {
  .top-nav { width: 100%; justify-content: space-between; gap: 3px; }
  .top-nav .nav-link { padding: 7px 8px; font-size: 10px; }
  .brand { gap: 7px; }
  .brand small { font-size: 8px; }
  .hero h1 { font-size: 42px; }
  .hero-actions .button { padding: 0 12px; font-size: 11px; }
  .art-stat { left: -10px; }
  .admin-header { flex-direction: column; }
  .results-summary { grid-template-columns: 1fr; }
}
