/* Student presentation is scoped so the university editor keeps its layout. */
.student-app { --ink:#17213b; --muted:#626e85; --green:#2451d9; --brand:#2451d9; --line:#e4e9f3; --accent-soft:#eef2fc; --paper:#f7f9ff; --frame-height:100dvh; min-height:100dvh; color:var(--ink); background:#eaf0fa; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased; }
.student-app * { -webkit-tap-highlight-color:transparent; }
.student-app button,.student-app a,.student-app input,.student-app select,.student-app summary { touch-action:manipulation; }
.student-app button { min-width:44px; min-height:44px; }
.student-app :focus-visible { outline:3px solid #6b9de7; outline-offset:3px; }
.student-app h1,.student-app h2,.student-app h3 { text-wrap:balance; }
.student-app p,.student-app li { text-wrap:pretty; }
.revision-field p { white-space:pre-line; overflow-wrap:anywhere; }
.revision-field h3 { margin:18px 0 8px; }
.ryadom-shell { display:flex; flex-direction:column; max-width:430px; min-height:var(--frame-height); margin:0 auto; background:var(--paper); }
.app-header { display:flex; gap:8px; align-items:center; justify-content:space-between; min-height:64px; padding:6px 20px; padding-top:max(6px,env(safe-area-inset-top)); }
.app-brand { display:flex; gap:8px; align-items:center; }
.brand-name { font-size:19px; font-weight:700; letter-spacing:-.6px; }
.app-brand img { border-radius:9px; outline:1px solid #0000001a; outline-offset:-1px; }
.language-switch { display:flex; gap:2px; padding:3px; margin-left:auto; background:#eaf1fc; border:1px solid #dce7f8; border-radius:12px; flex-shrink:0; }
.language-switch button { min-width:44px; min-height:44px; padding:5px; border-radius:8px; color:#61718d; font-size:12px; font-weight:600; }
.language-switch button.selected { color:var(--brand); background:#fff; box-shadow:0 1px 5px #1b4d9c12; }
.back-button { display:flex; align-items:center; padding:0 8px; margin-left:-8px; gap:4px; color:var(--muted); font-size:14px; }
.screen { flex:1; padding:4px 20px calc(92px + env(safe-area-inset-bottom)); min-width:0; overflow-wrap:break-word; }
.student-app h1 { font-size:27px; letter-spacing:-.8px; line-height:1.22; font-weight:700; }
.student-app h2 { font-size:20px; font-weight:700; letter-spacing:-.6px; margin:24px 0 14px; }
.student-app h3 { font-size:16px; }
.student-app p { line-height:1.55; }
.screen-title { text-align:left; margin:8px 0 22px; font-size:27px!important; }
.bottom-tabs { position:fixed; z-index:15; bottom:0; left:50%; transform:translateX(-50%); width:min(100%,430px); display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:5px 10px calc(6px + env(safe-area-inset-bottom)); background:#f7f9fff5; backdrop-filter:blur(16px); border-top:1px solid var(--line); }
.bottom-tabs button { display:flex; flex-direction:column; gap:3px; align-items:center; justify-content:center; padding:4px 2px; color:var(--muted); min-height:55px; font-size:12px; line-height:1.3; }
.nav-icon { display:grid; place-items:center; width:39px; height:27px; border-radius:9px; }
.bottom-tabs button.active { color:var(--brand); font-weight:600; }
.bottom-tabs button.active .nav-icon { color:white; background:var(--brand); }
.student-app .primary,.student-app .secondary { border-radius:13px; min-height:48px; font-size:15px; padding:12px 16px; }
.student-app .primary { background:var(--brand); border-color:var(--brand); box-shadow:0 4px 8px #0066ff0c; }
.student-app .primary:hover { background:#1b43be; }
.student-app .secondary { color:var(--brand); border-color:var(--line); background:#fff; }
.wide { display:flex; width:100%; margin-top:16px; }
.wide span { margin-left:8px; }
.student-app #event-form .actions { display:block; }
.student-app #event-form .actions>.primary { display:block; width:100%; min-height:52px; }
.stage-copy .stage-progress { white-space:pre-line; }
.tile-icon { display:grid; place-items:center; width:48px; height:48px; flex:0 0 auto; border-radius:14px; background:#e9f3ff; color:#176de0; }
.context-card { width:100%; padding:6px 0 14px; display:flex; align-items:center; gap:10px; text-align:left; margin-bottom:0; background:none; min-height:50px; }
.context-card .tile-icon { background:none; width:20px; height:30px; border-radius:0; }
.context-card .tile-icon svg { width:20px; }
.context-card>span:nth-child(2) { flex:1; min-width:0; }
.context-card strong { display:block; font-size:14px; }
.context-card small { display:block; color:var(--muted); font-size:13px; line-height:1.5; }
.context-card>svg { width:16px; color:#79869c; }
.hero-card { position:relative; padding:20px; border-radius:23px; background:var(--brand); color:white; box-shadow:0 8px 22px #2451d919; }
.next-label { display:flex; align-items:center; gap:7px; color:#e1e9ff; font-size:13px; font-weight:500; }
.hero-card h1 { margin:13px 0; max-width:100%; font-size:26px; }
.hero-card p { font-size:14px; color:#e7eeff; }
.hero-card .primary { background:white; color:var(--brand); border-color:white; box-shadow:none; }
.hero-compact { padding:17px 18px; border-radius:20px; }
.hero-compact h1 { font-size:22px; line-height:1.25; margin:0 0 12px; }
.hero-compact .primary { justify-content:center; text-align:center; min-height:48px; margin-top:14px; padding:12px 16px; font-weight:600; }
.hero-compact p { font-size:14px; margin:8px 0; }
.hero-compact .deadline-line { font-size:13px; margin:8px 0; }
.student-app .hero-card .primary:hover { background:#eef3ff; }
.student-app .hero-card .recheck { color:#fff2cb; }
.deadline-line { display:flex; gap:9px; align-items:flex-start; font-size:13px; color:#e7eeff; line-height:1.5; margin:8px 0; }
.deadline-line svg { margin-top:2px; }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:12px; }
.section-heading h2 { margin:17px 0; font-size:21px; }
.text-link { color:#065edb; min-height:44px; font-size:14px; padding:9px 0; }
.text-link.danger { color:#ac352f; }
.stage-timeline { position:relative; padding-left:25px; }
.stage-timeline:before { content:""; position:absolute; left:8px; top:38px; bottom:38px; width:1px; background:#cbdaf1; }
.stage-row { display:flex; align-items:center; position:relative; gap:11px; text-align:left; width:100%; padding:14px 12px; margin:10px 0; border:1px solid #dce7f8; border-radius:16px; background:#fcfdff; min-height:82px; }
.stage-row.current { background:#edf5ff; border-color:#88b6ff; }
.stage-row.done { background:#f8fbff; border-color:#d5e4f6; }
.stage-row .tile-icon { width:36px; height:36px; border-radius:11px; background:#e9f3ff; color:#176de0; }
.stage-row .tile-icon svg { width:22px; height:22px; }
.stage-row.current .tile-icon { background:#dfedff; }
.timeline-dot { position:absolute; left:-26px; top:50%; transform:translateY(-50%); width:18px; height:18px; border:1.5px solid #9bb1cf; background:var(--paper); border-radius:50%; display:grid; place-items:center; color:white; }
.current .timeline-dot { border:2px solid white; outline:1.5px solid #0879f7; background:#0879f7; }
.done .timeline-dot { border-color:#397fc8; background:#397fc8; }
.done .timeline-dot svg { width:12px; height:12px; stroke-width:2.5; }
.tile-icon.completed { background:#e4f0ff; color:#286ebc; }
.stage-copy { flex:1; min-width:0; }
.stage-copy strong { display:block; font-size:14px; font-weight:600; line-height:1.4; }
.stage-copy>span,.stage-copy small { display:block; color:var(--muted); font-size:12px; line-height:1.4; margin-top:4px; font-variant-numeric:tabular-nums; }
.stage-copy small { color:#286ebc; font-size:11px; }
.stage-row>svg { width:14px; color:#7b9ac2; }
.all-stages { display:block; margin-left:auto; }
.clarification-summary { background:#fff8ec; border:1px solid #ecdfca; border-radius:16px; padding:13px; margin-top:10px; }
.clarification-heading { display:flex; align-items:flex-start; gap:11px; text-align:left; padding:2px 0 13px; width:100%; }
.clarification-heading strong { font-size:14px; display:block; }
.clarification-heading small { display:block; color:#767b8b; font-size:12px; line-height:1.5; margin-top:4px; }
.clarification-heading>span:nth-child(2) { flex:1; }
.warning-icon { background:#fff0d7; border:1px solid #d5af64; border-radius:50%; width:24px; height:24px; display:grid; place-items:center; flex-shrink:0; color:#8a5d20; font-size:18px; font-weight:700; }
.clarification-short { display:flex; width:100%; gap:11px; align-items:center; background:white; border-radius:11px; margin-top:7px; padding:12px; text-align:left; font-size:14px; line-height:1.4; }
.clarification-short span { flex:1; }
.clarification-short svg { color:#7b87a1; }
.surface,.profile-group { border:1px solid #e2ebf8; background:#fff; border-radius:15px; padding:16px; margin:15px 0; }
.surface h2,.profile-group h2 { margin:0 0 14px; font-size:18px; }
.surface p,.review-notice p { color:#617197; font-size:14px; }
.card-heading { display:flex; gap:13px; align-items:center; }
.conditional { border-color:#f2da9c; background:linear-gradient(140deg,#fffdf6,white); }
.needs_review { background:linear-gradient(145deg,#f2f8ff,white); }
.info-note { display:flex; gap:10px; padding:15px; background:#edf5ff; color:#506893; font-size:13px; line-height:1.55; border-radius:12px; margin:16px 0; }
.info-note svg { color:#0665ff; }
.review-notice { padding:18px; border-radius:16px; background:#fff7e3; }
.review-notice h3 { display:flex; gap:12px; color:#aa6500; margin:0; }
.source-link { display:flex; gap:10px; align-items:center; padding:12px 0; font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.student-app .source a { overflow-wrap:anywhere; }
.task-stack { margin-top:15px; }
.compact-task { display:flex; gap:12px; text-align:left; align-items:center; border:1px solid var(--line); width:100%; padding:15px 12px; border-radius:14px; margin:9px 0; background:#fff; }
.compact-task>span:nth-child(2) { flex:1; min-width:0; }
.compact-task strong { display:block; font-size:15px; line-height:1.4; }
.compact-task small { display:block; margin-top:5px; font-size:12px; color:#6c7c9d; line-height:1.4; }
.student-app .recheck { color:#9e6400; font-size:13px; }
.progress-label { color:#0062f5; font-size:14px; margin-bottom:7px; }
.student-app progress { display:block; appearance:none; border:0; width:100%; height:7px; border-radius:8px; background:#e2edff; }
.student-app progress::-webkit-progress-bar { background:#e2edff; border-radius:8px; }
.student-app progress::-webkit-progress-value { background:#0067ff; border-radius:8px; }
.student-app summary { min-height:44px; padding:12px 0; font-size:14px; }
.event-option { display:flex; gap:12px; align-items:center; width:100%; text-align:left; padding:14px 12px; border:1px solid #e4edf9; border-radius:14px; margin:10px 0; }
.event-option strong { flex:1; font-size:14px; line-height:1.45; }
.segmented { display:flex; gap:6px; background:#f0f6ff; padding:4px; border-radius:13px; margin:14px 0 22px; }
.segmented button { flex:1; font-size:13px; min-height:44px; padding:8px; border-radius:10px; }
.segmented button.active { color:white; background:#0067ff; }
.success-note { display:flex; gap:12px; align-items:center; background:#eaf8ef; border:1px solid #d3efde; border-radius:14px; padding:17px; color:#25844e; }
.success-note strong,.success-note small { display:block; line-height:1.5; }
.success-note small { color:#657e74; margin-top:3px; font-size:12px; }
.student-app .diff { grid-template-columns:1fr 1fr; gap:8px; font-size:12px; }
.diff>div { padding:10px; min-width:0; background:#f4f8ff; border-radius:9px; overflow-wrap:anywhere; }
.diff p { font-size:12px; }
.diff-task { display:flex; align-items:center; justify-content:space-between; gap:12px; text-align:left; width:100%; padding:0 0 8px; font-size:15px; line-height:1.4; }
.history-item { display:flex; gap:12px; border:1px solid #e4ecfa; border-radius:15px; padding:15px 12px; margin:12px 0; width:100%; text-align:left; background:#fff; }
.history-item>div,.history-item>span:nth-child(2) { flex:1; min-width:0; }
.history-item strong { font-size:14px; line-height:1.45; display:block; }
.history-item p,.history-item small { display:block; color:#677ba3; font-size:12px; line-height:1.5; margin:6px 0; }
.profile-group { padding:15px 12px 3px; }
.profile-group h2 { display:flex; gap:10px; align-items:center; font-size:17px; }
.profile-group h2 svg { color:#0066ff; }
.profile-row { display:flex; width:100%; text-align:left; gap:8px; align-items:center; padding:14px 0; border-top:1px solid #eaf0fa; font-size:13px; line-height:1.5; }
.profile-row>span:first-child { flex:1; }
.field-value { max-width:49%; color:#445989; text-align:right; overflow-wrap:anywhere; }
.profile-row svg { color:#8195b8; }
.student-app .fields { grid-template-columns:1fr; gap:15px; }
.student-app .field { font-size:13px; color:#1b2351; gap:8px; margin:16px 0; }
.student-app .field input,.student-app .field select,.student-app textarea { border:1px solid #dbe7fa; background:#f8fbff; min-height:47px; border-radius:10px; width:100%; color:var(--ink); font-size:16px; }
.student-app input[type=checkbox] { accent-color:#0665ff; width:19px; height:19px; flex-shrink:0; }
.student-app .checkbox { font-size:13px; line-height:1.6; align-items:flex-start; }
.student-app .privacy { font-size:12px; line-height:1.6; }
.student-app .detail-section { border:1px solid #e4ecf9; padding:16px; border-radius:15px; margin:17px 0; }
.student-app .detail-section h3 { margin-top:4px; }
.student-app .detail-action { font-size:15px; color:#5c6d90; }
.student-app .detail-text { font-size:14px; line-height:1.65; }
.student-app .time-row { border-radius:11px; background:#f3f8ff; border:0; padding:12px; font-size:13px; line-height:1.65; }
/* Detailed actions share one reading column; only timing, contacts and alerts use surfaces. */
.stage-summary .progress-label { margin:5px 0; color:var(--muted); }
.stage-group { margin-top:28px; }
.student-app .stage-group h2 { margin:0 0 12px; font-size:18px; letter-spacing:-.3px; }
.stage-group .task-stack { margin-top:0; }
.completed-tasks .compact-task { background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; padding:12px 0; margin:0; }
.completed-tasks .tile-icon { width:30px; height:30px; border-radius:9px; background:transparent; }
.completed-tasks .compact-task strong { font-weight:500; }
.task-heading h1 { margin:9px 0 16px; font-size:26px; }
.task-heading .eyebrow { font-size:13px; }
.task-state { margin:0 0 16px; color:var(--brand); font-weight:600; }
.task-context,.task-attention { margin:16px 0; padding:16px; background:#edf3ff; border-radius:14px; }
.task-attention { background:#fff5e3; }
.student-app .task-attention h2 { margin:0 0 8px; font-size:17px; }
.task-context p,.task-attention p { margin:0 0 8px; }
.task-context p:last-child,.task-attention p:last-child { margin-bottom:0; }
.task-section { margin:28px 0 0; }
.student-app .task-section h2 { margin:0 0 12px; font-size:19px; letter-spacing:-.3px; }
.student-app .task-section h3 { margin:16px 0 6px; font-size:15px; font-weight:600; letter-spacing:0; }
.task-section p { margin:8px 0; font-size:15px; line-height:1.65; }
.task-section .task-caption,.task-detail .task-caption { font-size:13px; color:var(--muted); line-height:1.55; }
.task-instruction { white-space:pre-line; }
.task-timing { background:#edf3ff; padding:16px; border-radius:14px; margin-top:20px; }
.task-no-date { margin-top:18px; color:var(--muted); }
.student-app .task-no-date h2 { display:inline; font-size:14px; margin:0; letter-spacing:0; }
.task-no-date h2:after { content:': '; }
.task-no-date p { display:inline; font-size:14px; }
.task-date-row+.task-date-row { border-top:1px solid #d7e2f4; margin-top:16px; padding-top:2px; }
.task-date-row:first-of-type h3 { margin-top:0; }
.task-date-row .task-date-value { font-weight:650; font-size:17px; }
.task-documents,.task-remaining ul { padding-left:20px; margin:0; }
.task-documents li,.task-remaining li { margin:10px 0; font-size:15px; line-height:1.6; }
.task-remaining { margin-top:18px; }
.task-contact { background:white; border:1px solid var(--line); border-radius:14px; padding:12px 16px; overflow-wrap:anywhere; }
.task-contact p:first-child { font-weight:600; }
.task-contact a { display:inline-block; padding:10px 0; min-height:44px; }
.task-result { border-top:1px solid var(--line); padding-top:24px; }
.task-detail .workflow-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; margin:0; }
.task-detail .workflow-actions:empty { display:none; }
.task-detail .workflow-actions button { width:100%; white-space:normal; line-height:1.45; }
.task-detail .user-status:before { content:none; }
.task-detail .disclosure p { font-size:14px; line-height:1.6; }
.task-detail .disclosure { margin-top:24px; }
.task-reference-link { display:flex; align-items:center; gap:12px; width:100%; margin:26px 0 0; padding:16px 0; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; text-align:left; color:var(--ink); }
.task-reference-icon { display:flex; color:var(--muted); flex-shrink:0; }
.task-reference-link>span:nth-child(2) { flex:1; min-width:0; }
.task-reference-link strong { display:block; font-size:15px; font-weight:600; }
.task-reference-link small { display:block; margin-top:4px; color:var(--muted); font-size:13px; line-height:1.5; }
.task-reference-link>svg { flex-shrink:0; color:var(--muted); }
.task-information-subtitle { color:var(--muted); margin-top:-10px; }
.reference-source { padding:18px 0; border-top:1px solid var(--line); }
.reference-source:first-of-type { border-top:0; padding-top:0; }
.reference-title { display:flex; align-items:center; min-height:44px; font-weight:600; font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
.reference-facts { margin:16px 0 0; font-size:14px; }
.reference-facts dt { color:var(--muted); margin-top:12px; font-size:13px; }
.reference-facts dd { margin:3px 0 0; overflow-wrap:anywhere; }
.student-app .status-control { display:flex; flex-wrap:wrap; gap:5px; }
.student-app .status-control button { flex:1; min-height:44px; padding:10px; font-size:12px; border-radius:10px; }
.is-onboarding .screen { display:flex; flex-direction:column; padding-bottom:calc(22px + env(safe-area-inset-bottom)); }
.student-app .onboard { display:flex; flex:1; flex-direction:column; min-height:0; padding:14px 0 0; margin:0; max-width:none; border:0; background:none; border-radius:0; }
.quiz-meta { display:flex; justify-content:space-between; gap:12px; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.quiz-meta>span:first-child { color:var(--brand); }
.student-app .steps { gap:5px; margin:11px 0 27px; }
.student-app .steps span { height:4px; border-radius:3px; background:#e0e6f4; }
.student-app .steps span.active { background:var(--brand); }
.question-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:16px; background:#eaf0ff; color:var(--brand); margin-bottom:17px; }
.student-app .onboard h1 { margin:0; font-size:28px; letter-spacing:-.9px; }
.quiz-lede { color:var(--muted); font-size:15px; margin:12px 0 0; }
#onboard-form { display:flex; flex:1; flex-direction:column; }
.quiz-options { display:grid; gap:10px; margin:25px 0 0; padding:0; border:0; min-width:0; }
.quiz-option { position:relative; display:flex; align-items:center; gap:13px; width:100%; min-height:79px; padding:16px 14px; background:white; border:1px solid var(--line); border-radius:16px; cursor:pointer; }
.quiz-option input { position:absolute; opacity:0; width:1px; height:1px; min-height:0; padding:0; }
.quiz-option:has(input:checked) { background:#edf2ff; border-color:#7799ee; box-shadow:0 0 0 1px #7799ee20; }
.quiz-option:has(input:focus-visible) { outline:3px solid #6b9de7; outline-offset:3px; }
.quiz-option .tile-icon { width:36px; height:36px; border-radius:11px; background:#f2f5fc; }
.option-copy { flex:1; min-width:0; }
.quiz-option strong { display:block; font-size:15px; line-height:1.4; font-weight:600; }
.quiz-option small { display:block; font-size:13px; color:var(--muted); line-height:1.45; margin-top:4px; }
.choice-dot { width:20px; height:20px; border:1.5px solid #c7cfdf; border-radius:50%; flex-shrink:0; }
.quiz-option:has(input:checked) .choice-dot { border:6px solid var(--brand); background:white; }
.quiz-hint { display:flex; align-items:flex-start; gap:8px; margin:19px 0; color:var(--muted); font-size:13px; }
.quiz-hint svg { margin-top:2px; }
.quiz-footer { margin-top:auto; padding-top:23px; }
.quiz-footer .primary { min-height:51px; margin-top:0; }
.quiz-footer p { font-size:12px; color:var(--muted); text-align:center; margin:9px 0 0; }
.student-app .quiz-consent { margin-top:18px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.sheet-language { display:flex; padding:0 20px 8px 0; }
.later-card { display:flex; align-items:center; gap:12px; width:100%; padding:15px 14px; border:1px solid var(--line); border-radius:15px; background:white; margin:17px 0; text-align:left; }
.data-summary { display:flex; align-items:center; gap:12px; width:100%; padding:13px 14px; margin:18px 0 8px; border:1px solid var(--line); border-radius:14px; background:white; text-align:left; }
.data-summary>span:first-child { flex:1; min-width:0; }
.data-summary strong,.data-summary small { display:block; }
.data-summary strong { display:flex; align-items:center; gap:8px; font-size:15px; line-height:1.45; }
.data-count { flex-shrink:0; min-width:22px; padding:1px 5px; border-radius:7px; background:#edf3ff; color:#3155a5; font-size:12px; text-align:center; }
.data-summary small { margin-top:4px; color:var(--muted); font-size:13px; line-height:1.45; }
.data-summary>svg { flex-shrink:0; }
.data-group { margin-top:24px; }
.data-group>h2 { font-size:17px; margin-bottom:12px; }
.data-question { margin-bottom:12px; }
.data-question h3 { margin:0 0 10px; font-size:17px; }
.data-question p { font-size:14px; line-height:1.55; overflow-wrap:anywhere; }
.data-question .actions { display:flex; flex-wrap:wrap; gap:8px; }
.data-question .actions button { min-height:44px; flex:1 1 140px; }
.data-waiting { color:var(--muted); border-left:3px solid var(--line); padding-left:12px; }
.later-card>span:nth-child(2) { flex:1; min-width:0; }
.later-card strong,.later-card small { display:block; line-height:1.5; }
.later-card strong { font-size:14px; }
.later-card small { font-size:13px; color:var(--muted); }
.student-app .empty { background:#f7faff; border-radius:15px; line-height:1.6; font-size:14px; padding:24px 18px; }
.student-app dialog { max-width:min(440px,calc(100% - 24px)); border-radius:20px; padding:26px; }
.student-app dialog.field-sheet { position:fixed; inset:auto 0 0; width:min(430px,100%); max-width:430px; max-height:85dvh; margin:0 auto; padding:32px 22px calc(25px + env(safe-area-inset-bottom)); border-radius:24px 24px 0 0; border:1px solid #e1ebfb; color:var(--ink); }
.student-app dialog.clarification-sheet[open] { display:flex; flex-direction:column; overflow:hidden; }
.clarification-sheet #field-form { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.clarification-fields { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.clarification-sheet #field-form>button { flex-shrink:0; margin-top:12px; }
.clarification-progress { flex-shrink:0; margin:10px 0 0; color:#4666a0; font-size:12px; font-weight:650; }
.clarification-question { border-top:1px solid #e4ecfa; padding:12px 0 2px; }
.question-position { color:#4666a0; font-size:12px; font-weight:700; }
.clarification-question .field { margin:8px 0 12px; }
.field-sheet #field-form { padding-bottom:4px; }
.field-sheet::backdrop { background:#101e4148; backdrop-filter:blur(2px); }
.sheet-close { position:absolute; right:10px; top:3px; width:44px; height:44px; font-size:28px; color:#607292; }
.form-error { padding:12px; color:#9b352a; background:#fff0ec; border-radius:10px; font-size:13px; }
.student-app #toast { max-width:calc(100% - 32px); bottom:100px; font-size:13px; }
[hidden] { display:none!important; }
@media(max-width:350px) { .screen { padding-left:16px; padding-right:16px; } .app-header { padding-left:16px; padding-right:16px; } .student-app .onboard h1 { font-size:25px; } .hero-card { padding:17px; } .hero-card h1 { font-size:24px; } .quiz-option { padding:13px 11px; gap:9px; min-height:73px; } .stage-row { gap:8px; padding:12px 10px; } .stage-copy strong { font-size:13px; } .stage-row .tile-icon { width:32px; height:32px; } }
@media(prefers-reduced-motion:reduce) { .student-app * { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }

/* Shrinkable rows and scrollable sheets keep long translations and the keyboard usable. */
.student-app .card-heading h3 { min-width:0; overflow-wrap:anywhere; }
.student-app dialog { overflow-y:auto; overscroll-behavior:contain; max-height:calc(100dvh - 16px); }
.student-app .status-control { flex-wrap:nowrap; background:#edf1f9; padding:4px; border-radius:12px; gap:4px; }
.student-app .status-control button { min-width:0; padding:6px 3px; line-height:1.4; }
.student-app .status-control button[aria-pressed=true] { background:white; color:var(--brand); border-color:transparent; box-shadow:0 2px 5px #26375f0c; }
.student-app .source-link,.student-app .source a { min-height:44px; }
.student-app .source a { display:inline-flex; align-items:center; }
.student-app .tag.demo { color:#2451d9; background:#eaf2ff; }
.student-app .empty { border:1px solid var(--line); }
.student-app .loading { color:var(--muted); }
.student-app .clarification-progress,.student-app .progress-label { font-variant-numeric:tabular-nums; }
.student-app .primary.danger { background:#a43d39; border-color:#a43d39; color:white; }
.student-app #toast { bottom:calc(85px + env(safe-area-inset-bottom)); }
@media(prefers-reduced-motion:no-preference) { .student-app .primary:active,.student-app .secondary:active { transform:scale(.96); } }

/* Welcome follows welcome/index.html; its route is a static illustration only. */
.is-welcome { display:flex; flex-direction:column; font-synthesis:none; }
.is-welcome .app-header { min-height:0; padding:14px 24px 6px; padding-top:max(14px,env(safe-area-inset-top)); }
.is-welcome .app-brand { gap:9px; }
.is-welcome .app-brand img { width:33px; height:33px; border-radius:0; outline:none; }
.is-welcome .brand-name { font-size:21px; font-weight:750; letter-spacing:-.6px; }
.is-welcome .language-switch { gap:0; background:#eaf0fc; border-color:#dce5f8; border-radius:14px; }
.is-welcome .language-switch button { width:44px; padding:0; border-radius:10px; color:#526482; font-weight:400; }
.is-welcome .language-switch button.selected { color:#2451d9; box-shadow:0 2px 6px #173a8210; }
.is-welcome .screen { display:flex; flex:1; flex-direction:column; padding:31px 24px 22px; padding-bottom:max(22px,env(safe-area-inset-bottom)); }
.student-app .is-welcome h1 { font-size:36px; line-height:1.13; letter-spacing:-1.4px; margin:0; font-weight:750; text-wrap:wrap; }
.welcome-title em { font-style:normal; color:#2451d9; }
.student-app .welcome-intro { margin:0; font-size:15px; line-height:1.55; text-wrap:wrap; }
.welcome-intro strong { font-weight:650; }
.welcome-footer { margin-top:auto; padding-top:25px; }
.student-app .welcome-footer .primary { display:block; width:100%; margin:0; border:0; border-radius:15px; background:#2451d9; color:#fff; min-height:56px; font-size:15px; font-weight:650; padding:14px 16px; box-shadow:0 6px 16px #2451d91a; }
.student-app .welcome-footer .primary:hover { background:#1b43be; }
.student-app .welcome-footer .primary:disabled { background:#8a9fe7; cursor:default; box-shadow:none; }
.is-welcome :focus-visible { outline:3px solid #78a6ff; outline-offset:4px; }
.is-welcome h1:focus { outline:none; }
.rp { --rp-border:#e1e6ef; --rp-soft:#eff5ff; --rp-muted:#626e85; margin:26px 0 23px; background:#fff; border:1px solid var(--rp-border); border-radius:16px; box-shadow:0 1px 3px #17213b06; overflow:hidden; font-size:13px; line-height:1.4; flex-shrink:0; }
.student-app .rp h2,.student-app .rp h3,.student-app .rp p { margin:0; text-wrap:wrap; }
.rp-head { display:flex; gap:8px; align-items:center; justify-content:space-between; padding:13px 16px 10px; }
.student-app .rp h2 { font-size:14px; line-height:1.4; letter-spacing:-.2px; font-weight:650; }
.rp-badge { border:1px solid var(--rp-border); border-radius:6px; padding:3px 6px; color:#58677f; font-size:10px; line-height:1.3; font-weight:500; flex-shrink:0; background:white; }
.student-app .rp-foot { border-top:1px solid var(--rp-border); padding:8px 16px; color:var(--rp-muted); font-size:11px; line-height:1.45; background:#fbfcff; }
.rp-icon { width:25px; height:25px; background:#eef3fd; color:#2451d9; display:grid; place-items:center; border-radius:7px; flex-shrink:0; }
.rp svg { width:16px; height:16px; flex-shrink:0; }
.rp-label { display:block; font-size:10px; line-height:1.4; font-weight:500; letter-spacing:.1px; }
.rp-action { margin:0 12px 10px; padding:12px 14px; background:#2451d9; color:white; border-radius:11px; }
.rp-action .rp-label { color:#e4ecff; margin-bottom:5px; }
.student-app .rp-action h3 { font-size:15px; line-height:1.35; font-weight:650; letter-spacing:-.15px; }
.rp-stage { font-size:12px; font-weight:600; line-height:1.4; }
.rp-sub { display:block; font-size:10px; color:#2451d9; font-weight:400; line-height:1.4; margin-top:2px; }
.rp-dot { position:absolute; left:-20px; width:11px; height:11px; border:1px solid #a8b7d0; border-radius:50%; background:#fff; flex:none; z-index:1; }
.rp-on .rp-dot { background:#2451d9; border:2px solid #fff; outline:1px solid #2451d9; }
.rp-list { position:relative; margin:0 12px 10px; padding:0 0 0 19px; list-style:none; display:grid; gap:5px; }
.rp-list:before { content:''; position:absolute; left:5px; top:23px; bottom:23px; width:1px; background:#cbd7e9; }
.rp-row { position:relative; display:flex; align-items:center; gap:9px; padding:8px 9px; background:white; border:1px solid #e6eaf1; border-radius:9px; min-height:44px; }
.rp-on { background:var(--rp-soft); border-color:#b6cdf8; }
.rp-done .rp-dot { width:15px; height:15px; left:-22px; background:#397fc8; border-color:#397fc8; color:#fff; display:grid; place-items:center; }
.rp-done .rp-dot svg { width:11px; height:11px; }
/* One frame across welcome, questions and the plan. Content can grow and scroll. */
@media(min-width:600px) {
    .student-app { --frame-height:min(820px,calc(100dvh - 48px)); padding:24px 0; }
    .ryadom-shell { border:1px solid #dbe4f5; border-radius:28px; box-shadow:0 20px 80px #1d3c6810; }
    .ryadom-shell:not(.is-onboarding) .screen { padding-bottom:24px; }
    .bottom-tabs { position:sticky; left:auto; bottom:0; transform:none; width:100%; flex-shrink:0; margin-top:auto; border-radius:0 0 27px 27px; }
    .student-app dialog.field-sheet { inset:0; height:fit-content; max-height:calc(100dvh - 48px); margin:auto; border-radius:24px; }
}
@media(max-width:350px) {
    .is-welcome .app-header { padding-left:18px; padding-right:18px; }
    .is-welcome .screen { padding:24px 18px 20px; padding-bottom:max(20px,env(safe-area-inset-bottom)); }
    .student-app .is-welcome h1 { font-size:31px; }
    .student-app .welcome-intro { font-size:14px; }
    .rp { margin-top:22px; margin-bottom:20px; }
    .rp-head,.student-app .rp-foot { padding-left:12px; padding-right:12px; }
    .student-app .rp h2 { font-size:13px; }
    .student-app .rp-action h3 { font-size:14px; }
    .rp-stage { font-size:11px; }
}
@media(prefers-reduced-motion:no-preference) {
    .is-welcome .screen { animation:welcome-appear .28s ease-out; }
    @keyframes welcome-appear { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
}
.onboarding-summary { margin: 24px 0; }
.onboarding-summary > div { padding: 12px 0; border-bottom: 1px solid var(--line, #dce5f5); }
.onboarding-summary dt { font-size: 13px; color: var(--muted, #61708a); }
.onboarding-summary dd { margin: 6px 0 0; overflow-wrap: anywhere; }
.workflow-actions { flex-wrap: wrap; }
.student-app .workflow-actions > button { min-height: 44px; flex: 1 1 200px; white-space: normal; }

/* One aligned, clickable row for short answers and long confirmations. */
.student-app .checkbox { display:flex; align-items:flex-start; gap:12px; min-height:46px; margin:10px 0; padding:12px; border:1px solid #dbe7fa; border-radius:12px; background:#f8fbff; font-size:14px; line-height:22px; cursor:pointer; }
.student-app .checkbox:has(input:checked) { background:#edf3ff; border-color:#9db9f4; }
.student-app input[type=checkbox] { appearance:none; width:22px; min-width:22px; height:22px; min-height:22px; margin:0; padding:0; border:1.5px solid #8b9bb7; border-radius:6px; background:#fff; position:relative; flex:0 0 22px; cursor:pointer; }
.student-app input[type=checkbox]:checked { background:var(--brand); border-color:var(--brand); }
.student-app input[type=checkbox]:checked::after { content:''; position:absolute; left:6px; top:2px; width:6px; height:11px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.student-app input[type=checkbox]:disabled { opacity:.55; cursor:default; }
.student-app .date-answer { margin:16px 0; }
.student-app .date-answer .field { margin:0; }
.student-app .date-answer .checkbox { margin:8px 0 0; }
.student-app .field-note { margin:-6px 0 12px; padding:12px 14px; border-left:3px solid #9bb8ec; border-radius:0 10px 10px 0; background:#eef4ff; color:#4b6287; font-size:13px; line-height:1.6; }
.student-app .onboarding-documents { margin:20px 0 6px; }
.document-toggle { display:flex; align-items:center; gap:12px; width:100%; padding:14px; border:1px solid #dbe7fa; border-radius:12px; background:#fff; color:var(--brand); text-align:left; font-size:14px; line-height:1.5; }
.document-toggle span { flex:1; }
.document-toggle svg { flex-shrink:0; }
.document-toggle[aria-expanded=true]>svg:last-child { transform:rotate(90deg); }
#office-documents { padding:4px 16px 12px; border:1px solid #dbe7fa; border-top:0; border-radius:0 0 12px 12px; background:#fff; }
.document-toggle[aria-expanded=true] { border-radius:12px 12px 0 0; }
#office-documents p { font-size:14px; font-weight:600; }
#office-documents ul { padding-left:20px; margin:10px 0; font-size:14px; line-height:1.65; }
#office-documents li+li { margin-top:6px; }
.result-entry .result-explanation { color:var(--muted); line-height:1.65; margin:14px 0 24px; }
.result-entry #result-form { padding:4px 0 0; }
.result-entry #result-form>.checkbox { margin:20px 0 16px; }
.route-result .result-overview { margin:20px 0 28px; }
.route-result .success-note { background:#edf7f2; border:0; align-items:flex-start; }
.route-result .success-note>svg { flex-shrink:0; margin-top:2px; }
.route-result .result-empty { color:var(--muted); line-height:1.6; }
.revision-group { margin:26px 0; }
.revision-group>h2 { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px; font-size:18px; }
.revision-count { display:grid; place-items:center; min-width:26px; height:26px; padding:0 7px; border-radius:8px; background:#e8effc; color:#54698e; font-size:13px; font-weight:500; }
.revision-card { margin:12px 0; padding:16px; border:1px solid #e0e8f5; border-radius:16px; background:#fff; }
.revision-card .diff-task { padding:0 0 14px; font-size:15px; line-height:1.5; }
.revision-card .diff-task strong { flex:1; }
.revision-card .diff-task>svg { flex-shrink:0; }
.revision-card .tile-icon { width:34px; height:34px; flex-shrink:0; }
.revision-card .diff { margin:0; gap:8px; }
.revision-card .diff>div { padding:12px; background:#f4f6fa; }
.revision-card .diff>.revision-after { background:#edf3ff; }
.revision-status span { display:block; color:#6a7991; font-size:12px; margin-bottom:5px; }
.revision-status strong { display:block; color:#3f526f; font-size:14px; line-height:1.5; font-weight:600; }
.revision-after strong { color:#2052b5; }
.revision-card .revision-field { border-top:1px solid #edf0f5; margin-top:16px; padding-top:14px; }
.revision-card .revision-field h3 { margin:0 0 10px; font-size:13px; font-weight:600; color:#526480; }
.revision-card .revision-field p { margin:6px 0 0; line-height:1.6; }
.revision-current { margin:0; color:#526480; font-size:14px; }
@media(max-width:420px) { .revision-card .diff { grid-template-columns:1fr; } }
@media(forced-colors:active) { .student-app input[type=checkbox] { appearance:auto; } .student-app input[type=checkbox]:checked::after { content:none; } }
