:root {
  color-scheme: light;
  --uchile-blue: #1f5592;
  --uchile-yellow: #f7ce65;
  --uchile-green: #008456;
  --uchile-red: #da4f40;
  --ink: #142d48;
  --muted: #5d6f82;
  --paper: #f4f7fa;
  --surface: #ffffff;
  --line: #d3dde8;
  --deep: var(--uchile-blue);
  --deep-2: #174474;
  --cyan: var(--uchile-green);
  --cyan-soft: #e4f3ed;
  --reagent: var(--uchile-yellow);
  --danger: var(--uchile-red);
  --danger-soft: #fcedeb;
  --success: var(--uchile-green);
  --shadow: 0 20px 60px rgba(31, 85, 146, .14);
  --radius: 20px;
  --font-display: "Manrope", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-data: "Roboto Mono", monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf4fb;
  --muted: #aabbd0;
  --paper: #07182c;
  --surface: #102a49;
  --line: #2c4a6d;
  --deep: #0b315d;
  --deep-2: #123d6d;
  --cyan: #38ad7f;
  --cyan-soft: #123c38;
  --reagent: var(--uchile-yellow);
  --danger: #ef796d;
  --danger-soft: #4b292c;
  --success: #51c695;
  --shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100dvh; font-family: var(--font-body); background: var(--paper); color: var(--ink); line-height: 1.6; }
main { position: relative; isolation: isolate; }
button, input, textarea, select { font: inherit; }
button, label, select { touch-action: manipulation; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: var(--reagent); color: #142d48; padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.site-header { min-height: 82px; padding: 9px clamp(16px, 2.5vw, 38px); display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 1.8vw, 28px); background: color-mix(in srgb, var(--surface) 91%, transparent); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px); }
.brand { min-width: 0; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.university-lockup { width: 124px; height: 53px; padding: 4px 5px; flex: none; display: grid; place-items: center; overflow: hidden; background: white; border-radius: 4px; }
.university-lockup img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-divider { width: 1px; height: 38px; flex: none; background: var(--line); }
.brand-mark { width: 52px; height: 52px; flex: none; display: grid; place-items: center; color: var(--uchile-blue); background: linear-gradient(145deg, #fff 12%, #edf4fb 100%); border: 1px solid rgba(31, 85, 146, .2); border-radius: 15px; box-shadow: 0 7px 18px rgba(20, 45, 72, .12), inset 0 1px 0 rgba(255,255,255,.92); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.brand:hover .brand-mark { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(31, 85, 146, .18), inset 0 1px 0 rgba(255,255,255,.95); }
.brand-mark svg { width: 35px; height: 41px; overflow: visible; stroke-width: 2.25; filter: drop-shadow(0 1px 0 rgba(255,255,255,.85)); }
.flask-liquid { color: var(--uchile-green); stroke-width: 2.6; }
.flask-bubble { fill: var(--uchile-yellow); stroke: var(--uchile-blue); stroke-width: .55; transform-box: fill-box; transform-origin: center; animation: flask-bubble-rise 2.35s ease-in infinite; }
.flask-vapor { color: var(--uchile-green); stroke-width: 2.1; }
.flask-bubble-two { animation-delay: -.8s; animation-duration: 2.75s; }
.flask-bubble-three { animation-delay: -1.55s; animation-duration: 2.1s; }
.flask-vapor { opacity: 0; transform-box: fill-box; transform-origin: center bottom; animation: flask-vapor-rise 3s ease-out infinite; }
.flask-vapor-two { animation-delay: -1.45s; animation-duration: 3.35s; }
@keyframes flask-bubble-rise {
  0% { opacity: 0; transform: translateY(2px) scale(.65); }
  18% { opacity: 1; }
  76% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-14px) scale(1.12); }
}
@keyframes flask-vapor-rise {
  0%, 16% { opacity: 0; transform: translateY(2px) scaleY(.72); }
  38% { opacity: .85; }
  100% { opacity: 0; transform: translateY(-6px) scaleY(1.12); }
}
.brand b, .brand small { display: block; }
.brand b { font-family: var(--font-display); font-size: 19px; letter-spacing: .03em; }
.brand small { color: var(--muted); font-size: 12px; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 3px; }
.site-nav a { padding: 9px 10px; color: var(--muted); border-radius: 9px; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; transition: color .18s ease, background-color .18s ease; }
.site-nav a:hover { color: var(--ink); background: var(--cyan-soft); }
.site-nav a[aria-current="page"] { color: var(--deep); background: var(--reagent); }
[data-theme="dark"] .site-nav a[aria-current="page"] { color: #082f3b; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.save-state { color: var(--muted); font-size: 13px; }
.icon-button { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); background: var(--surface); border-radius: 14px; }
.icon-button svg { width: 22px; }
.nav-toggle { display: none; }

.page-view { min-height: calc(100dvh - 139px); position: relative; z-index: 1; }
.landing { position: relative; }
.landing-hero { overflow: hidden; position: relative; }
.hero-copy, .instrument-panel { min-height: 540px; }
.hero-copy { width: 56%; padding: clamp(64px, 8vw, 120px) clamp(24px, 6vw, 100px); display: flex; flex-direction: column; justify-content: center; background: color-mix(in srgb, var(--deep) 88%, transparent); color: white; position: relative; }
.hero-copy h1 { margin: 12px 0 22px; max-width: 780px; font: 800 clamp(38px, 5.4vw, 78px)/1.03 var(--font-display); letter-spacing: -.055em; }
.eyebrow { margin: 0; color: var(--cyan); font: 600 12px/1.3 var(--font-data); text-transform: uppercase; letter-spacing: .16em; }
.hero-copy .eyebrow, .page-hero-compact .eyebrow { color: var(--uchile-yellow); font-weight: 700; text-shadow: 0 1px 8px rgba(8, 38, 72, .28); }
.hero-lead { max-width: 680px; margin: 0; color: #bfd6d6; font-size: clamp(17px, 1.5vw, 21px); }
.hero-features { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-features span { border: 1px solid rgba(255,255,255,.18); padding: 8px 12px; border-radius: 100px; color: #e3f1f0; font-size: 13px; }
.instrument-panel { position: absolute; top: 0; right: 0; bottom: 132px; width: 44%; min-height: 0; padding: 0; display: grid; place-items: center; overflow: hidden; isolation: isolate; background: #dfeaf3; }
.instrument-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,85,146,.22), transparent 24%), linear-gradient(180deg, transparent 68%, rgba(20,45,72,.12)); pointer-events: none; }
.course-hero-image { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: cover; object-position: center; filter: saturate(.78) contrast(.96); }
[data-theme="dark"] .course-hero-image { filter: saturate(.68) brightness(.72) contrast(1.04); }

.home-paths { min-height: 132px; padding: 0 clamp(16px, 6vw, 100px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: color-mix(in srgb, var(--deep) 92%, transparent); border-top: 1px solid rgba(255,255,255,.1); }
.home-paths a { min-width: 0; padding: 28px clamp(18px, 2.5vw, 38px); display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 1px 18px; color: white; text-decoration: none; border-left: 1px solid rgba(255,255,255,.1); transition: background-color .2s ease; }
.home-paths a:last-child { border-right: 1px solid rgba(255,255,255,.1); }
.home-paths a:hover { background: rgba(255,255,255,.055); }
.home-paths span { grid-column: 1; color: #9fc4c5; font: 500 11px var(--font-data); text-transform: uppercase; letter-spacing: .1em; }
.home-paths b { grid-column: 1; font: 700 clamp(16px, 1.5vw, 20px) var(--font-display); }
.home-paths i { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--reagent); font: normal 25px var(--font-display); transition: transform .2s ease; }
.home-paths a:hover i { transform: translateX(4px); }

.home-academic { padding: clamp(76px, 9vw, 132px) clamp(20px, 7vw, 112px); background: var(--paper); }
.academic-heading { max-width: 1220px; margin: 0 auto clamp(42px, 6vw, 76px); padding-bottom: 30px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: end; gap: clamp(30px, 6vw, 90px); border-bottom: 1px solid var(--line); }
.academic-heading h2 { max-width: 760px; margin: 10px 0 0; font: 800 clamp(34px, 5vw, 62px)/1.05 var(--font-display); letter-spacing: -.045em; }
.academic-heading > p { margin: 0; color: var(--muted); font-size: 17px; }
.mission-layout { max-width: 1220px; margin: 0 auto clamp(60px, 8vw, 104px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: clamp(28px, 5vw, 76px); }
.program-label { margin: 0; color: var(--cyan); font: 700 11px/1.4 var(--font-data); text-transform: uppercase; letter-spacing: .14em; }
.mission-statement { padding-left: 24px; border-left: 4px solid var(--uchile-yellow); }
.mission-statement > p { max-width: 760px; margin: 18px 0 26px; color: var(--ink); font: 600 clamp(22px, 2.4vw, 34px)/1.45 var(--font-display); letter-spacing: -.025em; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--uchile-blue); font-weight: 700; text-decoration: none; }
[data-theme="dark"] .text-link { color: var(--uchile-yellow); }
.text-link:hover span { transform: translateX(4px); }
.text-link span { transition: transform .18s ease; }
.course-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; align-content: start; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.course-facts div { min-width: 0; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.course-facts dt, .program-metadata dt { color: var(--muted); font: 600 10px var(--font-data); text-transform: uppercase; letter-spacing: .1em; }
.course-facts dd, .program-metadata dd { margin: 7px 0 0; color: var(--ink); font-weight: 700; line-height: 1.35; }
.learning-summary { max-width: 1220px; margin: auto; display: grid; grid-template-columns: 1.05fr repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.learning-summary-intro, .learning-summary article { padding: 28px clamp(18px, 2.4vw, 34px); }
.learning-summary article { border-left: 1px solid var(--line); }
.learning-summary h3 { margin: 7px 0 0; font: 800 28px var(--font-display); letter-spacing: -.03em; }
.learning-summary article > span { color: var(--cyan); font: 600 11px var(--font-data); }
.learning-summary h4 { margin: 26px 0 8px; font: 800 21px var(--font-display); }
.learning-summary article p { margin: 0; color: var(--muted); font-size: 14px; }

.content-view { padding: clamp(70px, 10vw, 138px) clamp(20px, 8vw, 130px); background: linear-gradient(115deg, color-mix(in srgb, var(--paper) 87%, transparent) 0 66%, color-mix(in srgb, var(--cyan-soft) 84%, transparent) 66% 100%); }
.content-view-inner { width: min(850px, 100%); }
.page-index { margin: 0 0 clamp(54px, 8vw, 104px); color: var(--muted); font: 600 11px var(--font-data); text-transform: uppercase; letter-spacing: .12em; }
.content-view h1, .page-hero-compact h1 { margin: 10px 0 22px; font: 800 clamp(42px, 7vw, 82px)/1 var(--font-display); letter-spacing: -.055em; }
.page-lead { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 24px); line-height: 1.55; }
.prepared-section { max-width: 720px; margin-top: clamp(48px, 7vw, 82px); padding-top: 22px; display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 22px; border-top: 1px solid var(--line); }
.prepared-section > span { color: var(--cyan); font: 600 13px var(--font-data); }
.prepared-section b { font: 700 18px var(--font-display); }
.prepared-section p { margin: 5px 0 0; color: var(--muted); }
.public-period{margin:42px 0 16px;color:var(--muted);font:600 12px var(--font-data);text-transform:uppercase;letter-spacing:.08em}.public-records{margin-top:42px;display:grid;gap:1px;background:var(--line);border:1px solid var(--line)}.public-records article{padding:22px;background:var(--paper)}.public-records span{color:var(--cyan);font:600 11px var(--font-data);text-transform:uppercase;letter-spacing:.06em}.public-records h2{margin:8px 0 5px;font:700 19px var(--font-display)}.public-records p{margin:0;color:var(--muted)}
.program-view { padding-top: clamp(70px, 8vw, 110px); background: var(--paper); }
.program-content { width: min(1120px, 100%); }
.program-actions { margin: 34px 0 0; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.program-actions > span { color: var(--muted); font: 600 11px var(--font-data); text-transform: uppercase; letter-spacing: .1em; }
.document-link { min-height: 44px; padding: 9px 15px; display: inline-flex; align-items: center; gap: 12px; color: white; background: var(--uchile-blue); border-radius: 9px; font-weight: 700; text-decoration: none; }
.document-link:hover { background: var(--deep-2); }
.program-metadata { margin: clamp(48px, 7vw, 76px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.program-metadata div { min-width: 0; padding: 21px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 76%, transparent); }
.program-section { margin-top: clamp(72px, 10vw, 126px); }
.program-section > h2, .program-section-heading h2, .program-closing h2 { margin: 9px 0 20px; font: 800 clamp(30px, 4.2vw, 52px)/1.08 var(--font-display); letter-spacing: -.04em; }
.program-purpose { max-width: 930px; padding-left: clamp(22px, 4vw, 48px); border-left: 5px solid var(--uchile-yellow); }
.program-purpose > p:last-child { max-width: 840px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); }
.program-section-heading { margin-bottom: 34px; padding-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.program-section-heading h2 { margin-bottom: 0; }
.program-section-heading > p { max-width: 350px; margin: 0; color: var(--muted); }
.learning-outcomes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.learning-outcomes li { min-width: 0; padding: 24px; display: grid; grid-template-columns: 56px 1fr; gap: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.learning-outcomes li:last-child { grid-column: 1 / -1; }
.learning-outcomes span { color: var(--uchile-blue); font: 700 12px var(--font-data); }
[data-theme="dark"] .learning-outcomes span { color: var(--uchile-yellow); }
.learning-outcomes p { margin: 0; color: var(--ink); }
.course-units { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.course-units li { padding: 19px 0; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 18px; align-items: start; border-bottom: 1px solid var(--line); }
.course-units > li > span { color: var(--cyan); font: 700 12px var(--font-data); }
.course-units h3 { margin: 0; font: 700 clamp(18px, 2vw, 23px) var(--font-display); }
.course-units p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.program-closing { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.program-closing article { padding: clamp(26px, 4vw, 46px); background: var(--surface); }
.program-closing h2 { margin-bottom: 14px; font-size: clamp(25px, 3vw, 36px); }
.program-closing article > p:last-child { margin: 0; color: var(--muted); }
.program-source { margin: 42px 0 0; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); font: 500 11px/1.7 var(--font-data); }
.laboratory-view { background: color-mix(in srgb, var(--paper) 89%, transparent); }
.page-hero-compact { padding: clamp(54px, 7vw, 92px) clamp(16px, 6vw, 100px) clamp(38px, 5vw, 66px); display: flex; align-items: end; justify-content: space-between; gap: 40px; background: color-mix(in srgb, var(--deep) 90%, transparent); color: white; }
.page-hero-compact .page-index { margin: 0 0 34px; color: #8db3b6; }
.page-hero-compact h1 { margin-bottom: 0; }
.page-hero-compact > p { max-width: 410px; margin: 0 0 8px; color: #bfd6d6; font-size: 17px; }

.form-library { padding: clamp(64px, 8vw, 112px) clamp(16px, 6vw, 100px); }
.section-heading { max-width: 1200px; margin: 0 auto 34px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 8px 0 0; font: 800 clamp(30px, 4vw, 52px)/1.1 var(--font-display); letter-spacing: -.04em; }
.section-heading > p { max-width: 360px; margin: 0; color: var(--muted); }
.form-grid { max-width: 1200px; margin: auto; display: grid; gap: 46px; }
.form-family { min-width: 0; }
.family-heading { margin-bottom: 18px; padding-bottom: 13px; display: flex; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.family-heading > div { display: flex; align-items: center; gap: 12px; }
.family-heading span, .protocol-badge { padding: 5px 8px; color: var(--deep); background: var(--reagent); border-radius: 6px; font: 700 10px var(--font-data); letter-spacing: .08em; }
.family-heading h3 { margin: 0; font: 800 25px var(--font-display); }
.family-heading p { max-width: 430px; margin: 0; color: var(--muted); font-size: 13px; }
.form-family-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.form-card { min-height: 430px; padding: 18px 24px 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 30px rgba(8,47,59,.06); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.form-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: var(--shadow); }
.form-card:focus-within { outline: 3px solid color-mix(in srgb, var(--cyan) 35%, transparent); }
.structure-figure { margin: 0 0 14px; }
.structure-figure a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #f6f6f6; }
.chemical-structure { display: block; width: 100%; height: 168px; object-fit: contain; mix-blend-mode: multiply; }
.structure-figure figcaption { margin-top: 6px; color: var(--muted); font: 10px var(--font-data); text-align: right; }
[data-theme="dark"] .chemical-structure { mix-blend-mode: normal; }
.form-card .code { color: var(--muted); font: 12px var(--font-data); }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.form-card h3 { margin: 10px 0 8px; font: 700 25px/1.15 var(--font-display); }
.form-card p { margin: 0; color: var(--muted); font-size: 14px; }
.form-card button { margin-top: auto; min-height: 48px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; font-weight: 700; }

.workspace { min-height: calc(100dvh - 82px); display: grid; grid-template-columns: 320px minmax(0, 1fr); position: relative; z-index: 1; }
.form-sidebar { padding: 28px 24px; color: white; background: color-mix(in srgb, var(--deep) 97%, transparent); position: sticky; top: 82px; height: calc(100dvh - 82px); overflow-y: auto; }
.back-button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; border: 0; color: #c8dddd; background: transparent; }.back-button svg { width: 20px; }
.sample-identity { margin: 40px 0 32px; }.sample-identity p { margin: 12px 0 4px; color: #a9c7c8; font-size: 13px; }.sample-identity h2 { margin: 0; font: 700 28px/1.15 var(--font-display); }
.sample-code { display: inline-block; color: var(--deep); background: var(--reagent); padding: 7px 10px; border-radius: 8px; font: 600 12px var(--font-data); }
.step-nav { display: grid; gap: 6px; }
.step-link { width: 100%; min-height: 54px; padding: 9px 12px; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; color: #b9d0d1; background: transparent; border: 1px solid transparent; border-radius: 12px; text-align: left; }
.step-link span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #456a71; border-radius: 50%; font: 11px var(--font-data); }
.step-link.active { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }.step-link.active span { color: var(--deep); background: var(--reagent); border-color: var(--reagent); }
.step-link.complete span { color: var(--deep); background: var(--cyan); border-color: var(--cyan); }
.sidebar-note { margin-top: 36px; padding: 16px; display: flex; gap: 10px; color: #bad0d1; background: rgba(255,255,255,.06); border-radius: 14px; font-size: 12px; }.sidebar-note svg { width: 20px; flex: none; }.sidebar-note p { margin: 0; }

.form-shell { padding: clamp(30px, 6vw, 76px); min-width: 0; }
.form-shell form { max-width: 840px; margin: auto; }
.mobile-progress { max-width: 840px; margin: 0 auto 10px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }.mobile-progress strong { display: block; color: var(--ink); font-size: 15px; }.progress-track { max-width: 840px; height: 5px; margin: 0 auto 50px; overflow: hidden; background: var(--line); border-radius: 10px; }.progress-track span { display: block; height: 100%; width: 0; background: var(--cyan); transition: width .25s ease; }
.step-intro { margin-bottom: 34px; }.step-intro h1 { margin: 10px 0 12px; font: 800 clamp(32px, 5vw, 54px)/1.08 var(--font-display); letter-spacing: -.045em; }.step-intro > p:last-child { margin: 0; max-width: 680px; color: var(--muted); }
.fields { display: grid; gap: 18px; }
.field, .field-group { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.field label, .field legend { display: block; margin-bottom: 7px; color: var(--ink); font-weight: 700; line-height: 1.35; }
.required { color: var(--danger); margin-left: 4px; }.helper { margin: 0 0 12px; color: var(--muted); font-size: 13px; white-space: pre-line; }
.field input[type="text"], .field input[type="email"], .field input[type="search"], .field input[type="number"], .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 11px; outline: 0; }
.field textarea { min-height: 128px; resize: vertical; }.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 22%, transparent); }
.field.invalid { border-color: var(--danger); }.field-error { margin: 9px 0 0; color: var(--danger); font-size: 13px; }
.radio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }.radio-card { min-height: 50px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; }.radio-card:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.team-picker { display: grid; gap: 12px; }.selected-team { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; }.team-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: var(--deep); background: var(--reagent); border-radius: 999px; font-size: 13px; font-weight: 700; }.team-chip button { width: 24px; height: 24px; border: 0; background: transparent; color: inherit; }
.student-results { max-height: 260px; overflow: auto; display: grid; border: 1px solid var(--line); border-radius: 12px; }.student-option { min-height: 48px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); cursor: pointer; }.student-option:last-child { border-bottom: 0; }.student-option:has(input:checked) { background: var(--cyan-soft); }.student-option input { width: 20px; height: 20px; accent-color: var(--cyan); }
.selected-team.smart:empty { display: none; }
.selected-team.smart { display: grid; gap: 8px; }
.selected-member { min-height: 54px; padding: 8px 8px 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); background: var(--cyan-soft); border: 1px solid color-mix(in srgb, var(--cyan) 42%, var(--line)); border-radius: 12px; font-weight: 700; }
.selected-member span { min-width: 0; }
.selected-member small { display: block; color: var(--muted); font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.selected-member button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; color: var(--ink); background: color-mix(in srgb, var(--surface) 72%, transparent); font-size: 22px; }
.team-confirmation { min-height: 54px; margin: 0 !important; padding: 10px 12px; display: flex !important; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; }
.team-confirmation:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.team-confirmation input { width: 22px; height: 22px; flex: none; accent-color: var(--cyan); }
.team-confirmation span { font-size: 13px; line-height: 1.4; }
.collaboration-onboarding { padding: clamp(18px,3vw,26px); display: grid; gap: 15px; border: 1px solid color-mix(in srgb,var(--cyan) 50%,var(--line)); border-radius: 18px; background: linear-gradient(135deg,var(--cyan-soft),var(--surface)); }
.collaboration-onboarding .eyebrow { margin: 0 0 5px; }
.collaboration-onboarding h3 { margin: 0; font: 800 21px/1.25 var(--font-display); }
.collaboration-onboarding p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.collaboration-onboarding ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.leader-acceptance { min-height: 58px; margin: 0 !important; padding: 11px 12px; display: flex !important; align-items: flex-start; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.leader-acceptance:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.leader-acceptance input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--cyan); }
.leader-acceptance span { font-size: 13px; line-height: 1.45; }
.collaboration-onboarding > .button { width: fit-content; margin: 0; }
.collaboration-onboarding.active { grid-template-columns: auto minmax(0,1fr); align-items: center; }
.live-pulse { width: 10px; height: 10px; display: inline-block; flex: none; border-radius: 50%; background: #27c58a; box-shadow: 0 0 0 5px rgb(39 197 138 / .15); }
.available-sessions { display: grid; gap: 8px; }
.available-sessions > p { margin: 0; padding-top: 4px; border-top: 1px solid var(--line); }
.available-sessions h4 { margin: 4px 0 0; font: 700 14px var(--font-display); }
.available-sessions article { padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--paper); border: 1px solid var(--cyan); border-radius: 11px; }
.available-sessions article span { min-width: 0; display: grid; }
.available-sessions article small { color: var(--muted); }
.available-sessions article button { min-height: 42px; padding: 8px 12px; flex: none; color: var(--deep); background: var(--reagent); border: 0; border-radius: 9px; font-weight: 700; }
.collaboration-bar { max-width: 840px; margin: 0 auto 22px; padding: 14px; color: white; background: var(--deep-2); border: 1px solid #31535b; border-radius: 16px; box-shadow: 0 12px 30px rgb(3 35 43 / .14); }
.collaboration-bar-head, .collaboration-bar-head > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.collaboration-bar-head > div > span:last-child { display: grid; }
.collaboration-bar-head small { color: #a9c7c8; }
.collaboration-bar-head button, .role-label { min-height: 38px; padding: 7px 10px; color: white; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .18); border-radius: 9px; font-size: 12px; }
.presence-list { margin-top: 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.presence-member { min-width: 180px; padding: 9px 10px; display: flex; align-items: center; gap: 8px; color: #bdd0d3; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); border-radius: 10px; }
.presence-member > i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #718b90; }
.presence-member.online > i { background: #27c58a; box-shadow: 0 0 0 4px rgb(39 197 138 / .13); }
.presence-member.leader { border-color: rgb(200 241 63 / .45); }
.presence-member span { min-width: 0; display: grid; }
.presence-member b, .presence-member small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presence-member b { color: white; font-size: 12px; }.presence-member small { font-size: 10px; }
.leadership-alert { margin-top: 10px; padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--deep); background: var(--reagent); border-radius: 10px; font-size: 12px; }
.leadership-alert span { display: grid; }.leadership-alert button { min-height: 38px; padding: 7px 10px; border: 1px solid rgb(7 37 45 / .25); border-radius: 8px; background: white; font-weight: 700; }
.team-dialog { width: min(760px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.team-dialog::backdrop { background: rgb(3 24 31 / .72); backdrop-filter: blur(5px); }
.team-dialog-content { padding: 20px 24px 24px; display: grid; gap: 16px; overflow-y: auto; }
.team-admin-summary { padding: 14px; display: grid; gap: 3px; background: var(--cyan-soft); border-left: 4px solid var(--cyan); border-radius: 4px 12px 12px 4px; }
.team-admin-summary span, .add-member-panel p { color: var(--muted); font-size: 13px; }
.team-admin-list { display: grid; gap: 8px; }
.team-admin-list article { min-height: 62px; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 11px; }
.team-admin-list article > span { min-width: 0; display: flex; align-items: center; gap: 9px; }.team-admin-list article > span > i { width: 9px; height: 9px; border-radius: 50%; background: #85999d; }.team-admin-list article > span > i.online { background: #27c58a; }
.team-admin-list article span span { min-width: 0; display: grid; }.team-admin-list small { color: var(--muted); }
.team-admin-list article > div { display: flex; gap: 6px; }.team-admin-list button { min-height: 40px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 11px; font-weight: 700; }.team-admin-list button.danger { color: var(--danger); }.team-admin-list button:disabled { opacity: .4; }
.add-member-panel { padding-top: 4px; display: grid; gap: 8px; border-top: 1px solid var(--line); }.add-member-panel h3, .add-member-panel p { margin: 0; }.add-member-panel input { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.team-member-results { display: grid; gap: 5px; }.team-member-results button { min-height: 44px; padding: 8px 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; text-align: left; }.team-member-results p { margin: 0; padding: 10px; color: var(--muted); }
.smart-results { max-height: 392px; }
.student-empty { margin: 0; padding: 14px; color: var(--muted); font-size: 13px; text-align: center; }
.file-drop { min-height: 132px; padding: 20px; display: grid; place-items: center; gap: 8px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--paper); text-align: center; }.file-drop input { width: 100%; max-width: 340px; }.file-preview { max-width: 240px; max-height: 180px; object-fit: cover; border-radius: 10px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.enhanced-photo { overflow: hidden; border: 1.5px dashed var(--line); border-radius: 16px; background: var(--paper); }
.photo-empty { min-height: 190px; padding: 24px; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; }
.photo-empty[hidden], .photo-result[hidden] { display: none; }
.photo-empty svg { width: 40px; height: 40px; fill: none; stroke: var(--cyan); stroke-width: 1.7; }
.photo-empty small { color: var(--muted); }
.capture-button { margin: 8px 0 0 !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.photo-result { padding: 12px; display: grid; grid-template-columns: 104px minmax(0,1fr) auto; align-items: center; gap: 14px; }
.enhanced-preview { width: 104px; height: 118px; max-width: none; max-height: none; object-fit: cover; border-radius: 11px; }
.photo-result-copy { min-width: 0; display: grid; gap: 4px; }
.photo-result-copy span { color: var(--cyan); font-size: 13px; font-weight: 700; }
.photo-result-copy small { color: var(--muted); }
.photo-actions { display: grid; gap: 5px; }
.photo-actions button { min-height: 40px; padding: 7px 10px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 9px; font-weight: 700; }
.photo-actions button:last-child { color: var(--danger); }
.camera-dialog { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; color: white; background: #031b22; border: 1px solid #31535b; border-radius: 22px; box-shadow: var(--shadow); }
.camera-dialog::backdrop { background: rgb(1 13 17 / .9); backdrop-filter: blur(7px); }
.camera-shell { min-height: min(820px, calc(100dvh - 24px)); display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.camera-topbar { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.camera-topbar h2 { margin: 2px 0 0; color: white; font: 800 22px var(--font-display); }
.camera-topbar .eyebrow { margin: 0; color: #79ddd8; }
.camera-icon-button { width: 48px; height: 48px; flex: none; color: white; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .2); border-radius: 50%; font-size: 26px; }
.camera-viewport { min-height: 0; position: relative; overflow: hidden; background: #000; }
.camera-viewport video { width: 100%; height: 100%; display: block; object-fit: cover; }
.camera-guides { position: absolute; inset: 7%; border: 1px solid rgb(255 255 255 / .48); border-radius: 12px; pointer-events: none; }
.camera-guides::before, .camera-guides::after, .camera-guides span::before, .camera-guides span::after { width: 34px; height: 34px; position: absolute; content: ""; border-color: #c8f13f; }
.camera-guides::before { top: -1px; left: -1px; border-top: 3px solid; border-left: 3px solid; border-radius: 10px 0 0; }
.camera-guides::after { top: -1px; right: -1px; border-top: 3px solid; border-right: 3px solid; border-radius: 0 10px 0 0; }
.camera-guides span::before { bottom: -1px; left: -1px; border-bottom: 3px solid; border-left: 3px solid; border-radius: 0 0 0 10px; }
.camera-guides span::after { right: -1px; bottom: -1px; border-right: 3px solid; border-bottom: 3px solid; border-radius: 0 0 10px; }
.camera-status { padding: 7px 10px; position: absolute; top: 12px; left: 50%; translate: -50% 0; color: white; background: rgb(0 0 0 / .62); border-radius: 999px; font: 600 11px var(--font-data); white-space: nowrap; }
.camera-controls { padding: 12px 18px max(16px, env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 10px; }
.camera-controls > p { margin: 0; color: #a7bcc1; font-size: 11px; text-align: center; }
.camera-tools { width: 100%; display: flex; justify-content: center; gap: 8px; }
.camera-tool { min-width: 76px; min-height: 50px; padding: 6px 10px; display: grid; place-items: center; gap: 2px; color: white; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .18); border-radius: 12px; font-size: 11px; }
.camera-tool span { font-size: 20px; line-height: 1; }
.camera-tool.active { color: #102c30; background: #c8f13f; border-color: #c8f13f; }
.camera-tool:disabled { opacity: .38; }
.camera-zoom { width: min(360px,100%); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; color: #c5d4d7; font-size: 12px; }
.camera-zoom input { width: 100%; accent-color: #c8f13f; }
.camera-zoom output { min-width: 32px; color: white; font-family: var(--font-data); }
.shutter-button { width: 72px; height: 72px; padding: 5px; display: grid; place-items: center; background: transparent; border: 3px solid white; border-radius: 50%; }
.shutter-button span { width: 54px; height: 54px; display: block; background: white; border-radius: 50%; transition: scale .15s ease; }
.shutter-button:active span { scale: .88; }
.shutter-button:disabled { opacity: .35; }
.photo-dialog, .review-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.photo-dialog::backdrop, .review-dialog::backdrop { background: rgb(3 24 31 / .72); backdrop-filter: blur(5px); }
.dialog-heading { padding: 22px 24px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 2px 0 0; font: 800 26px var(--font-display); }
.dialog-heading .eyebrow { margin: 0; }
.dialog-close { width: 48px; height: 48px; flex: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 26px; }
.photo-editor-layout { padding: 20px 24px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(250px,.65fr); gap: 22px; }
.editor-stage { min-height: 420px; display: grid; place-items: center; overflow: hidden; background: #092c34; border-radius: 16px; }
.editor-stage img { max-width: 100%; max-height: 62vh; object-fit: contain; }
.editor-controls { display: grid; align-content: start; gap: 14px; }
.editor-controls > p { margin: 0; color: var(--muted); line-height: 1.5; }
.rotation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rotation-actions .button { margin: 0; padding-inline: 10px; }
.crop-control { margin-top: 6px; display: flex; justify-content: space-between; font-weight: 700; }
.crop-control output { color: var(--cyan); font-family: var(--font-data); }
#crop-inset { width: 100%; accent-color: var(--cyan); }
.position-grid, .tone-grid { display: grid; grid-template-columns: 1fr; gap: 5px; }
.position-grid label, .tone-grid label { margin-top: 4px; display: flex; justify-content: space-between; color: var(--ink); font-size: 12px; font-weight: 700; }
.position-grid output, .tone-grid output { color: var(--cyan); font-family: var(--font-data); font-weight: 600; }
.position-grid input, .tone-grid input { width: 100%; accent-color: var(--cyan); }
.quality-report { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; line-height: 1.45; }
.quality-report strong { color: #a76600; }
.quality-report .quality-ok { color: #13745e; }
.quality-report p, .quality-report ul { margin: 6px 0 0; }
.quality-report ul { padding-left: 18px; }
.quality-report small { display: block; margin-top: 8px; color: var(--muted); }
.dialog-actions { padding: 16px 24px max(16px, env(safe-area-inset-bottom)); display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }
.dialog-actions .button { margin: 0; }
.review-dialog { width: min(780px, calc(100vw - 32px)); grid-template-rows: auto minmax(0,1fr) auto; }
.review-dialog[open] { display: grid; }
#review-content { min-height: 0; padding: 20px 24px; overflow-y: auto; }
.review-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-facts p { margin: 0; padding: 14px; display: grid; gap: 5px; background: var(--surface); border-radius: 12px; }
.review-facts span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
#review-content h3 { margin: 22px 0 10px; font: 700 17px var(--font-display); }
.review-evidence-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.review-evidence { margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.review-evidence img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; background: var(--surface); }
.review-evidence figcaption { padding: 8px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.trace-summary { margin-top: 12px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.trace-summary span { min-width: 0; padding: 11px; display: grid; gap: 2px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; font-size: 11px; text-align: center; }
.trace-summary b { color: var(--ink); font: 700 18px var(--font-data); }
.authorship-declaration { margin-top: 26px; padding: clamp(16px,3vw,24px); border: 1px solid color-mix(in srgb,var(--cyan) 55%,var(--line)); border-radius: 16px; background: color-mix(in srgb,var(--cyan-soft) 55%,var(--paper)); }
.authorship-declaration > .eyebrow { margin: 0; }
#review-content .authorship-declaration h3 { margin: 5px 0 8px; font-size: 21px; }
.authorship-declaration > p:not(.eyebrow) { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.authorship-declaration h4 { margin: 20px 0 9px; font: 700 14px var(--font-display); }
.declaration-list { display: grid; gap: 7px; }
.declaration-option { min-height: 52px; margin: 0 !important; padding: 10px 11px; display: flex !important; align-items: flex-start; gap: 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: 12px; line-height: 1.45; }
.declaration-option:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.declaration-option input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--cyan); }
.member-declaration span { display: grid; gap: 2px; }
.confirmation-phrase { margin-top: 18px; display: grid; gap: 8px; color: var(--ink); font-size: 13px; }
.confirmation-phrase input { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 11px; outline: 0; font: 600 14px var(--font-data); text-transform: uppercase; }
.confirmation-phrase input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb,var(--cyan) 22%,transparent); }
.confirmation-status { margin: 10px 0 0 !important; color: var(--danger) !important; font-weight: 700; }
.confirmation-status.ready { color: #13745e !important; }
.calculation-card { padding: 22px; border-left: 4px solid var(--cyan); background: var(--cyan-soft); border-radius: 4px 14px 14px 4px; }.calculation-card h3 { margin: 0 0 6px; font: 700 18px var(--font-display); }.calculation-card p { margin: 0; color: var(--muted); }
.valuation-group { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.valuation-group legend { width: 100%; padding: 0 2px 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--ink); }
.valuation-group legend span { font: 700 18px var(--font-display); }
.valuation-group legend small { color: var(--muted); font: 12px var(--font-body); }
.measurement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.compact-field { min-width: 0; }
.compact-field label { display: block; min-height: 34px; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.25; }
.measurement-input { position: relative; }
.measurement-input input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 42px 10px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 11px; outline: 0; font: 600 15px var(--font-data); }
.measurement-input input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 22%, transparent); }
.measurement-input span { position: absolute; top: 50%; right: 9px; translate: 0 -50%; color: var(--muted); font: 10px var(--font-data); pointer-events: none; }
.compact-field.invalid .measurement-input input { border-color: var(--danger); }
.compact-field .field-error { font-size: 11px; line-height: 1.3; }
.sample-data-group { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.sample-data-group legend { width: 100%; padding: 0 2px 12px; color: var(--ink); font: 700 18px var(--font-display); }
.sample-data-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 10px; }
.compact-control, .compact-control > .measurement-input { height: 48px; }
.compact-control select { width: 100%; height: 48px; padding: 9px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 11px; outline: 0; }
.compact-control > input { width: 100%; height: 48px; padding: 9px 10px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 11px; outline: 0; }
.compact-control > input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 22%, transparent); }
.compact-control select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 22%, transparent); }
.error-summary { margin-bottom: 20px; padding: 16px 18px; color: var(--danger); background: var(--danger-soft); border: 1px solid var(--danger); border-radius: 14px; }
.form-actions { margin-top: 28px; display: flex; justify-content: space-between; gap: 12px; }.button { min-height: 50px; padding: 12px 20px; border-radius: 12px; font-weight: 700; }.button.primary { margin-left: auto; color: #142d48; background: var(--reagent); border: 1px solid color-mix(in srgb, var(--reagent) 78%, var(--uchile-blue)); }.button.secondary { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }.button:disabled { cursor: not-allowed; opacity: .45; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 100; max-width: min(380px, calc(100vw - 40px)); padding: 14px 18px; color: white; background: var(--deep-2); border-radius: 12px; box-shadow: var(--shadow); transform: translateY(140%); transition: transform .25s ease; }.toast.show { transform: translateY(0); }
footer { padding: 28px; color: var(--muted); background: var(--paper); text-align: center; font-size: 13px; border-top: 1px solid var(--line); position: relative; z-index: 2; }
footer span, footer a { margin: 0 8px; }
footer a { color: var(--deep); font-weight: 700; text-decoration: none; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 1280px) { .save-state { display: none; } }
@media (max-width: 1120px) {
  .site-header { position: sticky; }
  .nav-toggle { display: grid; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: clamp(12px, 3vw, 32px); right: clamp(12px, 3vw, 32px); padding: 10px; display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; background: color-mix(in srgb, var(--surface) 96%, transparent); border: 1px solid var(--line); border-radius: 0 0 18px 18px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
  .site-nav.open { display: grid; }
  .site-nav a { min-height: 44px; display: grid; place-items: center; text-align: center; }
}
@media (max-width: 980px) { .hero-copy { width: 100%; min-height: auto; padding-bottom: 280px; }.instrument-panel { top: auto; bottom: auto; width: 100%; height: 250px; min-height: 0; margin-top: -250px; position: relative; }.course-hero-image { object-position: center 46%; }.form-family-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.workspace { grid-template-columns: 250px minmax(0,1fr); }.form-sidebar { padding-inline: 16px; } }
@media (max-width: 980px) {
  .academic-heading, .mission-layout { grid-template-columns: 1fr; }
  .academic-heading > p { max-width: 720px; }
  .learning-summary { grid-template-columns: 1fr 1fr; }
  .learning-summary-intro { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .learning-summary article:first-of-type { border-left: 0; }
  .learning-summary article:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .program-metadata { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) { .site-header { min-height: 72px; }.university-lockup { width: 104px; height: 45px; padding: 3px 4px; }.brand-divider { height: 34px; }.brand-mark { width: 44px; height: 44px; border-radius: 13px; }.brand-mark svg { width: 30px; height: 36px; }.save-state { display: none; }.site-nav { grid-template-columns: 1fr 1fr; }.site-nav a { justify-items: start; padding-inline: 14px; }.hero-copy { padding: 58px 20px 250px; }.hero-copy h1 { font-size: clamp(38px, 12vw, 58px); }.home-paths { padding: 0 20px; grid-template-columns: 1fr; }.home-paths a { min-height: 104px; padding: 20px 14px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.1); }.home-paths a:last-child { border-right: 0; border-bottom: 0; }.content-view { padding: 62px 20px 90px; background: color-mix(in srgb, var(--paper) 93%, transparent); }.page-index { margin-bottom: 58px; }.content-view h1, .page-hero-compact h1 { font-size: clamp(40px, 13vw, 62px); }.prepared-section { grid-template-columns: 44px minmax(0,1fr); gap: 12px; }.page-hero-compact { align-items: flex-start; flex-direction: column; gap: 22px; }.page-hero-compact .page-index { margin-bottom: 38px; }.page-hero-compact > p { font-size: 15px; }.form-library { padding-inline: 16px; }.section-heading { display: block; }.section-heading > p { margin-top: 12px; }.family-heading { display: block; }.family-heading p { margin-top: 8px; }.form-family-grid { grid-template-columns: 1fr; }.form-card { min-height: 430px; }.chemical-structure { height: 230px; }.workspace { display: block; }.form-sidebar { height: auto; position: static; padding: 16px; }.form-sidebar .sample-identity, .form-sidebar .step-nav, .form-sidebar .sidebar-note { display: none; }.form-shell { padding: 26px 16px 44px; }.progress-track { margin-bottom: 34px; }.field, .field-group { padding: 18px 16px; }.radio-grid { grid-template-columns: 1fr; }.form-actions { position: sticky; bottom: 0; z-index: 20; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 24%); }.button { flex: 1; padding-inline: 12px; } }
@media (max-width: 720px) {
  .home-academic { padding-inline: 20px; }
  .academic-heading { padding-bottom: 22px; }
  .academic-heading h2 { font-size: clamp(32px, 10vw, 48px); }
  .mission-statement { padding-left: 17px; border-left-width: 3px; }
  .mission-statement > p { font-size: 21px; }
  .course-facts { grid-template-columns: 1fr; }
  .learning-summary { grid-template-columns: 1fr; }
  .learning-summary-intro, .learning-summary article, .learning-summary article:first-of-type, .learning-summary article:last-child { grid-column: auto; border-left: 0; border-top: 1px solid var(--line); }
  .learning-summary-intro { border-top: 0; }
  .program-actions, .program-section-heading { align-items: flex-start; flex-direction: column; }
  .document-link { width: 100%; justify-content: space-between; }
  .program-metadata, .learning-outcomes, .program-closing { grid-template-columns: 1fr; }
  .learning-outcomes li:last-child { grid-column: auto; }
  .learning-outcomes li { grid-template-columns: 48px 1fr; padding: 19px 16px; }
  .program-purpose { padding-left: 18px; }
  .course-units li { grid-template-columns: 44px minmax(0, 1fr); }
}
@media (max-width: 720px) { .photo-result { grid-template-columns: 82px minmax(0,1fr); }.enhanced-preview { width: 82px; height: 96px; }.photo-actions { grid-column: 1 / -1; grid-template-columns: repeat(3,1fr); }.photo-actions button { min-height: 46px; }.photo-dialog, .review-dialog { width: 100vw; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; }.photo-editor-layout { padding: 14px 16px; grid-template-columns: 1fr; overflow: auto; }.editor-stage { min-height: 36dvh; }.editor-stage img { max-height: 40dvh; }.dialog-heading { padding: 16px; }.dialog-actions { padding-inline: 16px; position: sticky; bottom: 0; background: var(--paper); }.review-facts { grid-template-columns: 1fr; }.review-evidence-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.trace-summary { grid-template-columns: 1fr 1fr 1fr; }.trace-summary span { padding-inline: 5px; }.trace-summary b { font-size: 16px; } }
@media (max-width: 720px) { .collaboration-bar { margin: -8px 0 18px; border-radius: 13px; }.collaboration-onboarding.active { grid-template-columns: auto 1fr; }.collaboration-onboarding.active > button { grid-column: 1 / -1; width: 100%; }.available-sessions article { align-items: stretch; flex-direction: column; }.available-sessions article button { width: 100%; }.team-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }.team-admin-list article { align-items: stretch; flex-direction: column; }.team-admin-list article > div { display: grid; grid-template-columns: 1fr 1fr; }.leadership-alert { align-items: stretch; flex-direction: column; } }
@media (max-width: 720px) { .camera-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }.camera-shell { min-height: 100dvh; }.camera-topbar { padding-top: max(12px, env(safe-area-inset-top)); }.camera-viewport { min-height: 42dvh; }.camera-controls { gap: 8px; } }
@media (max-width: 420px) { .valuation-group, .sample-data-group { padding: 14px 10px; }.valuation-group legend { align-items: flex-start; flex-direction: column; gap: 0; }.measurement-grid, .sample-data-grid { gap: 6px; }.sample-data-grid { grid-template-columns: 1.1fr .9fr 1.1fr; }.compact-field label { min-height: 32px; font-size: 11px; }.measurement-input input { min-height: 48px; padding: 8px 30px 8px 7px; font-size: 13px; }.measurement-input span { right: 6px; font-size: 9px; }.compact-control select { padding-inline: 6px; font-size: 13px; } }
@media (max-width: 520px) { .course-wordmark { display: none; } }
@media (max-width: 390px) { .site-header { gap: 7px; padding-inline: 10px; }.brand { gap: 7px; }.university-lockup { width: 98px; }.header-actions { gap: 6px; }.icon-button { width: 40px; height: 40px; }.site-nav { left: 8px; right: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }.flask-bubble, .flask-vapor { animation: none !important; } }
