/* REHBİS · TASARIM.md, adım 1. Yerel varlıklar; yalnız sunum. */
:root {
  --r-navy-900: #14213D;
  --r-navy-700: #2B3F66;
  --r-navy-50: #EEF2F8;
  --r-teal-700: #0F766E;
  --r-teal-800: #115E59;
  --r-teal-50: #E6F4F2;
  --r-teal-200: #99D5CE;
  --r-red-700: #B42318;
  --r-red-50: #FEF3F2;
  --r-red-border: #FECDCA;
  --r-red-text: #7A271A;
  --r-red-title: #912018;
  --r-background: #F8FAFC;
  --r-surface: #FFFFFF;
  --r-border: #E4E7EC;
  --r-text: #101828;
  --r-muted: #475467;
  --r-label: #344054;
  --r-input-border: #D0D5DD;
  --r-neutral: #F2F4F7;
  --r-apricot: #FDE7C7;
  --r-apricot-text: #7A4A0B;
  --r-student-background: #FBF7F0;
  --r-student-border: #EFE6D8;
  --r-student-text: #1F2937;
  --r-student-muted: #6B5B45;
  --r-student-label: #7A5A2E;
  --r-completed-background: #F5EEE3;
  --r-completed-border: #E9DECC;
  --r-header-text: #C8D1E0;
  --r-header-muted: #9AA8C0;
  --r-header-border: #3A4B6E;
  --r-font: Inter, system-ui, "Segoe UI", Roboto, sans-serif;
  --r-title-size: 28px;
  --r-section-size: 20px;
  --r-card-title-size: 18px;
  --r-small-size: 14px;
  --r-radius-card: 12px;
  --r-radius-control: 8px;
  --r-space-1: 4px;
  --r-space-2: 8px;
  --r-space-3: 12px;
  --r-space-4: 16px;
  --r-space-5: 20px;
  --r-space-6: 24px;
  --r-space-8: 32px;
  --bs-primary: var(--r-teal-700);
  --bs-primary-rgb: 15, 118, 110;
  --bs-body-font-family: var(--r-font);
  --bs-link-color: var(--r-teal-700);
  --bs-link-hover-color: var(--r-teal-800);
  --ink: var(--r-text);
  --muted: var(--r-muted);
  --line: var(--r-border);
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter/InterVariable.woff2") format("woff2");
}

/* Bootstrap bileşenleri: mevcut alanlar ve davranışlar korunur. */
body.r-staff, body.r-student {
  margin: 0;
  background: var(--r-background);
  color: var(--r-text);
  font-family: var(--r-font);
  font-size: 15px;
  line-height: 1.6;
  --bs-body-color: var(--r-text);
  --bs-body-bg: var(--r-background);
  --bs-border-color: var(--r-border);
  --bs-secondary-color: var(--r-muted);
  --shell-header-height: 64px;
}
body.r-student {
  --r-background: var(--r-student-background);
  --r-border: var(--r-student-border);
  --r-text: var(--r-student-text);
  --r-muted: var(--r-student-muted);
  --r-label: var(--r-student-label);
  --r-radius-card: 20px;
  --r-radius-control: 999px;
  font-size: 17px;
}
body h1, body .h1, body .h4 { color: var(--r-navy-900); font-size: var(--r-title-size); font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
body h2, body .h2 { color: var(--r-navy-900); font-size: var(--r-section-size); font-weight: 600; line-height: 1.4; }
body h3, body .h3, body .h5 { color: var(--r-navy-900); font-size: var(--r-card-title-size); font-weight: 600; }
body .h6 { font-size: 17px; font-weight: 600; }
body a { color: var(--r-teal-700); }
body a:hover { color: var(--r-teal-800); }
body small, body .small, body .form-text { font-size: var(--r-small-size); }
body .text-body-secondary, body .text-muted, body .form-text { color: var(--r-muted) !important; }
body .text-danger { color: var(--r-red-700) !important; }
body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--r-teal-200) !important;
  outline-offset: 1px;
  box-shadow: none;
}
body .btn, .r-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: var(--r-radius-control);
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.4;
  text-decoration: none; border: 1px solid var(--r-input-border); box-shadow: none;
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
body .btn-primary, .r-btn-primary {
  --bs-btn-bg: var(--r-teal-700); --bs-btn-border-color: var(--r-teal-700);
  --bs-btn-hover-bg: var(--r-teal-800); --bs-btn-hover-border-color: var(--r-teal-800);
  --bs-btn-active-bg: var(--r-teal-800); --bs-btn-active-border-color: var(--r-teal-800);
  --bs-btn-disabled-bg: var(--r-teal-700); --bs-btn-disabled-border-color: var(--r-teal-700);
  background: var(--r-teal-700); border-color: var(--r-teal-700); color: #fff;
}
body .btn-primary:hover, .r-btn-primary:hover { background: var(--r-teal-800); border-color: var(--r-teal-800); color: #fff; }
body .btn-outline-secondary, body .btn-outline-primary, .r-btn-secondary {
  --bs-btn-color: var(--r-label); --bs-btn-border-color: var(--r-input-border);
  --bs-btn-hover-color: var(--r-navy-900); --bs-btn-hover-bg: var(--r-navy-50);
  --bs-btn-hover-border-color: var(--r-input-border);
  background: #fff; border-color: var(--r-input-border); color: var(--r-label);
}
body .btn-outline-secondary:hover, body .btn-outline-primary:hover, .r-btn-secondary:hover { background: var(--r-navy-50); color: var(--r-navy-900); }
body.r-student .btn, body.r-student .r-btn { min-height: 50px; font-size: 16px; }
body.r-student :is(.btn-outline-primary, .btn-outline-secondary, .r-btn-secondary) { color: var(--r-teal-700); border: 1.5px solid var(--r-teal-700); }
body .form-label { color: var(--r-label); font-size: 14px; font-weight: 500; margin-bottom: 6px; }
body .form-control, body .form-select, .r-input {
  min-height: 44px; border: 1px solid var(--r-input-border); border-radius: 8px;
  background-color: #fff; color: var(--r-text); font: inherit; padding: 10px 12px;
}
body .form-control:focus, body .form-select:focus { border-color: var(--r-teal-700); box-shadow: none; }
body .form-check-input { accent-color: var(--r-teal-700); border-color: var(--r-input-border); }
body .form-check-input:checked { background-color: var(--r-teal-700); border-color: var(--r-teal-700); }
body .card, .r-card { background: var(--r-surface); color: var(--r-text); border: 1px solid var(--r-border); border-radius: var(--r-radius-card); box-shadow: none; }
body .card-header { background: transparent; border-bottom-color: var(--r-border); padding: 20px 24px; }
body .card-body { padding: 24px; }
body .list-group { --bs-list-group-border-color: var(--r-border); --bs-list-group-border-radius: var(--r-radius-card); }
body .list-group-item { padding: 16px 20px; background: var(--r-surface); color: var(--r-text); }
body .badge, .r-badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; font-size: 13px; font-weight: 600; padding: 4px 10px; line-height: 1.5; }
body .text-bg-success, .r-badge-active { background: var(--r-teal-50) !important; color: var(--r-teal-800) !important; }
body .text-bg-secondary, .r-badge-closed { background: var(--r-neutral) !important; color: #344054 !important; }
body .text-bg-danger, .r-badge-priority { background: var(--r-red-50) !important; color: var(--r-red-700) !important; }
body .text-bg-warning, .r-badge-items { background: var(--r-apricot) !important; color: var(--r-apricot-text) !important; }
body .alert, .r-alert { border: 1px solid var(--r-teal-200); border-radius: var(--r-radius-card); padding: 16px 20px; background: #fff; color: var(--r-text); box-shadow: none; }
body .alert-danger, .r-alert-danger { background: var(--r-red-50); border-color: var(--r-red-border); color: var(--r-red-text); }
body .alert-danger strong, .r-alert-danger strong { color: var(--r-red-title); }
body .alert-warning { background: var(--r-apricot); border-color: var(--r-student-border); color: var(--r-apricot-text); }
body .alert-success { background: var(--r-teal-50); color: var(--r-teal-800); }
body .alert > svg, .r-alert-icon { flex: 0 0 24px; width: 24px; height: 24px; vertical-align: middle; margin-inline-end: 8px; }
body .table { --bs-table-bg: var(--r-surface); --bs-table-color: var(--r-text); --bs-table-border-color: var(--r-border); font-size: 15px; font-variant-numeric: tabular-nums; margin-bottom: 0; }
body .table > thead > tr > th { background: #F8FAFC; color: #475467; font-size: 13px; font-weight: 600; }
body .table > :not(caption) > * > * { padding: 12px 24px; border-bottom-color: var(--r-border); }
body .table-responsive, .r-table-scroll { overflow-x: auto; border-radius: var(--r-radius-card); }

/* Ortak iskelet ve yeniden kullanılabilir REHBİS sınıfları. */
.r-card { padding: 24px; }
.r-stack { display: grid; gap: var(--r-space-6); }
.r-section-label { color: var(--r-label); text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.r-option { display: flex; gap: 12px; align-items: start; min-height: 48px; padding: 14px; border: 1.5px solid var(--r-student-border); border-radius: 16px; background: #fff; cursor: pointer; }
.r-option:has(input:checked) { background: var(--r-teal-50); border-color: var(--r-teal-700); }
.r-option input { flex-shrink: 0; width: 22px; height: 22px; accent-color: var(--r-teal-700); }
.r-completed { background: var(--r-completed-background); border: 1px solid var(--r-completed-border); border-radius: 20px; padding: 20px; }
body .shell-header {
  min-height: 64px; padding: 10px 32px; gap: 20px; line-height: 1.4;
  background: var(--r-navy-900); color: #fff; border-bottom: 0;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}
body .shell-brand, body .shell-brand:hover { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
body .shell-brand-mark { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: #fff; color: var(--r-navy-900); font-size: 23px; font-weight: 700; }
body .shell-current { border-left: 1px solid var(--r-header-border); padding-left: 20px; }
body .shell-current strong { color: var(--r-header-text); font-size: 14px; font-weight: 500; }
body .shell-page-title { display: none; }
body .shell-avatar { width: 36px; height: 36px; border: 0; background: var(--r-navy-700); font-size: 14px; }
body .shell-account { flex-direction: row-reverse; gap: 12px; text-align: right; }
body .shell-account strong { font-size: 14px; font-weight: 600; }
body .shell-account small { color: var(--r-header-muted); font-size: 13px; margin-top: 0; line-height: 1.4; }
body .shell-account .r-account-role { display: inline; margin-inline-end: 8px; }
body .shell-account .r-account-detail { display: inline; font-size: 11px; color: var(--r-header-text); }
body .shell-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px; color: #fff; border: 1px solid var(--r-header-border); border-radius: 8px; background: transparent; }
body .shell-menu-toggle[hidden], body .shell-sidebar[hidden] { display: none; }
body .shell-layout { grid-template-columns: 240px minmax(0, 1fr); }
body .shell-sidebar { top: 64px; padding: 24px 16px; background: #fff; color: var(--r-text); border-right: 1px solid var(--r-border); min-height: calc(100dvh - 64px); max-height: calc(100dvh - 64px); }
body .shell-nav { gap: 6px; }
body .shell-nav a, body .shell-nav-group summary { display: block; min-height: 44px; padding: 10px 12px; border-radius: 8px; font-size: 15px; line-height: 1.6; color: var(--r-label); }
body .shell-nav a:hover, body .shell-nav-group summary:hover { background: var(--r-navy-50); color: var(--r-navy-900); }
body .shell-nav a[aria-current="page"] { background: var(--r-navy-50); color: var(--r-navy-900); font-weight: 600; box-shadow: none; }
body .shell-nav-unavailable { color: var(--r-muted); font-size: 14px; }
body .shell-nav-children { border-left-color: var(--r-border); }
body .shell-sidebar-footer { border-top-color: var(--r-border); margin-top: 24px; padding-top: 20px; }
body .shell-sidebar-footer :is(p, small), body .shell-sidebar .shell-muted { color: var(--r-muted); font-size: 13px; }
body .shell-sidebar-footer .btn-outline-secondary { color: var(--r-label); border-color: var(--r-input-border); background: #fff; }
body .shell-sidebar .school-card { border: 1px solid var(--r-border); border-radius: 12px; background: var(--r-background); color: var(--r-text); box-shadow: none; }
body .shell-sidebar .school-card small, body .shell-sidebar .nav-caption { color: var(--r-muted); }
.r-nav-item { position: relative; min-width: 0; }
.r-nav-item:has(.r-nav-count) a { padding-inline-end: 48px; }
.r-nav-count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--r-teal-700); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
body .shell-main { width: 100%; max-width: 1000px; margin-inline: auto; padding: 28px 32px; min-width: 0; }
body .shell-footer { max-width: 1000px; margin-inline: auto; padding: 20px 32px; border-top-color: var(--r-border); color: var(--r-muted); font-size: 13px; }
body .shell-skip-link { position: fixed; top: 8px; left: 8px; padding: 8px 12px; background: #fff; color: var(--r-navy-900); z-index: 100; }
body.r-student .shell-header { grid-template-columns: auto minmax(0, 1fr) auto auto; }
body.r-student .shell-layout { display: block; }
body.r-student .shell-sidebar { position: static; min-height: 0; max-height: none; border-right: 0; border-bottom: 1px solid var(--r-border); background: var(--r-background); }
body.r-student .shell-nav { display: flex; flex-wrap: wrap; gap: 8px; }
body.r-student .shell-sidebar-footer { max-width: 220px; }
body.r-student .shell-main { max-width: 860px; }

/* Dört giriş formunda ortak yerleşim; form davranışları değişmez. */
.r-auth-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, 520px) minmax(0, 1fr); background: #fff; }
.r-auth-intro { display: flex; flex-direction: column; gap: 64px; min-height: 100dvh; padding: 48px; background: var(--r-navy-900); color: #fff; }
.r-auth-intro-copy { margin-block: auto; }
body .r-auth-intro h2 { color: #fff; font-size: 36px; font-weight: 700; line-height: 1.25; letter-spacing: -.03em; max-width: 390px; }
.r-auth-assurances { display: grid; gap: 24px; list-style: none; padding: 0; margin: 40px 0 0; color: var(--r-header-text); font-size: 16px; }
.r-auth-assurances li { display: flex; align-items: center; gap: 14px; }
.r-auth-assurances svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--r-teal-200); }
.r-auth-privacy { margin: 0; color: var(--r-header-text); font-size: 14px; }
.r-auth-form-area { display: grid; align-items: center; justify-items: center; padding: 48px 32px; }
.r-auth-form { width: 100%; max-width: 400px; min-width: 0; }
body .r-auth-mobile-brand { display: none; }
body .shell-brand-light, body .shell-brand-light:hover { color: var(--r-navy-900); }
body .shell-brand-light .shell-brand-mark { color: #fff; background: var(--r-navy-900); }
body.workspace-shell--management .shell-header { background: var(--r-navy-900); }
body.workspace-shell--management .shell-sidebar { background: #fff; }
body.workspace-shell--management .shell-brand-mark { color: var(--r-navy-900); }
body.workspace-shell--management .shell-nav [aria-current="page"] { background: var(--r-navy-50); color: var(--r-navy-900); box-shadow: none; }
.r-auth-form h1 { margin-bottom: 24px !important; }
.r-auth-form .form-control { width: 100%; }
.r-auth-form .btn { min-height: 48px; }
.r-auth-form .alert { font-size: 14px; }

@media (max-width: 960px) {
  body .shell-header { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand toggle" "current account" "controls controls"; gap: 8px 16px; padding: 10px 20px; }
  body .shell-current { padding-left: 0; border-left: 0; }
  body .shell-account { max-width: 230px; }
  body .shell-layout { display: block; }
  body .shell-sidebar { position: static; min-height: 0; max-height: none; border-right: 0; border-bottom: 1px solid var(--r-border); padding: 16px 20px; }
  body .shell-nav { display: flex; flex-wrap: wrap; gap: 8px; }
  body .shell-nav-group { width: 100%; }
  body .shell-main { padding: 24px 20px; }
  body .shell-footer { padding: 20px; }
  body.r-student .shell-header { grid-template-columns: minmax(0, 1fr) auto; }
  .r-auth-layout { grid-template-columns: minmax(300px, 40%) minmax(0, 1fr); }
  .r-auth-intro { padding: 32px; }
  body .r-auth-intro h2 { font-size: 32px; }
}
@media (max-width: 640px) {
  .r-auth-layout { display: block; }
  .r-auth-intro { display: none; }
  .r-auth-form-area { padding: 32px 24px; min-height: 100dvh; align-items: start; }
  body .r-auth-mobile-brand { display: inline-flex; margin-bottom: 40px; }
  body .shell-header { padding-inline: 16px; gap: 6px 12px; }
  body .shell-account { max-width: 180px; }
  body .shell-main { padding: 24px 16px; }
  body .shell-current strong { font-size: 13px; }
  body .shell-account .r-account-detail { display: none; }
}
@media (prefers-reduced-motion: reduce) { body .btn, .r-btn { transition: none; } }

/* Tasarım adım 2: öğrenci sayfaları ve ortak taşma düzeltmeleri. */
.shell-layout, .shell-page, .shell-main, .card, .r-card, form, fieldset { min-width: 0; }
.r-table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
.r-table-wrap > table { width: 100%; }
.r-library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body .r-library-entry { display: grid; justify-items: start; align-content: start; gap: 8px; color: var(--r-text); text-decoration: none; }
body .r-library-entry:where(:hover, :target) { border-color: var(--r-teal-700); background: var(--r-teal-50); }
.r-library-icon { width: 28px; height: 28px; color: var(--r-teal-700); }
.r-library-entry .r-library-entry-title { margin: 0; font-size: 18px; font-weight: 600; }
.r-library-count { font-size: 30px; font-weight: 700; line-height: 1.2; }
.r-library-entry p { margin: 0; color: var(--r-muted); font-size: 14px; }
.r-library-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.r-library-item { overflow-wrap: anywhere; }
.r-library-ready-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.r-library-item .r-library-title { margin: 0; color: var(--r-text); font-size: 16px; font-weight: 600; }
.r-library-detail { display: block; margin-top: 4px; color: var(--r-muted); font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
.r-library-source { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.r-library-source a { color: inherit; }
.r-library-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.r-library-applications { margin: 12px 0 0; padding-inline-start: 20px; }
.r-library-create { display: flex; flex-wrap: wrap; gap: 8px; }
.r-library-create .form-control { flex: 1 1 200px; width: auto; min-width: 0; max-width: 100%; }
.r-library-note { margin: 12px 0 0; }
@media (max-width: 640px) {
  .r-library-grid { grid-template-columns: minmax(0, 1fr); }
  .r-library-grid > .r-card { padding: 16px; }
}
.r-auth-description { margin: 24px 0 0; color: #C8D1E0; font-size: 16px; line-height: 1.6; }
.r-student-home { display: grid; gap: 32px; }
body .r-student-welcome h1 { font-size: 24px; margin: 0 0 8px; }
.r-student-welcome p { margin: 0; font-size: 15px; color: var(--r-student-muted); }
body .r-student-home .r-section-label { margin: 0 0 16px; font-size: 13px; color: var(--r-student-label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.r-survey-cards { display: grid; gap: 20px; }
.r-survey-card { padding: 24px; }
.r-survey-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
body .r-survey-card h3 { min-width: 0; margin: 0; font-size: 17px; line-height: 1.5; }
.r-survey-card .r-badge { flex-shrink: 0; }
.r-survey-description { color: var(--r-student-muted); font-size: 14px; margin: 12px 0 20px; overflow-wrap: anywhere; }
.r-survey-description:empty { margin-top: 0; }
.r-completed-list { list-style: none; padding: 0; margin: 0; }
.r-completed-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--r-completed-border); }
.r-completed-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.r-completed-list svg, .r-student-thanks svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--r-teal-700); }
.r-completed-list small { color: var(--r-student-muted); font-size: 13px; white-space: nowrap; }
body .r-student-thanks { display: flex; gap: 12px; align-items: center; margin: 0; background: var(--r-teal-50); color: var(--r-teal-800); }
.r-survey-page { padding-bottom: 160px; }
.r-form-top { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--r-border); border-radius: 16px 16px 0 0; }
.r-form-back { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--r-navy-900); }
.r-form-back svg { width: 24px; height: 24px; }
.r-form-heading { min-width: 0; }
body .r-form-heading h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; margin: 0 0 4px; letter-spacing: normal; }
.r-form-heading p { margin: 0; color: var(--r-muted); font-size: 13px; }
.r-survey-page .response-progress { margin-bottom: 20px; }
.r-survey-page .response-progress .progress { height: 6px; border-radius: 0 0 6px 6px; background: #EFE6D8; }
.r-survey-page .progress-bar { background: var(--r-teal-700); }
.r-mode-note { display: flex; gap: 12px; align-items: start; padding: 16px; margin-bottom: 20px; border: 1px solid var(--r-student-border); border-radius: 16px; background: var(--r-apricot); color: var(--r-apricot-text); font-size: 15px; }
.r-mode-note svg { flex: 0 0 24px; width: 24px; height: 24px; }
.r-survey-instructions { font-size: 15px; overflow-wrap: anywhere; }
.r-survey-page .choice-list { gap: 12px; }
.r-survey-page .choice-list .form-check { margin: 0; padding: 0; border: 0; }
.r-survey-page .choice-list .r-option { display: flex; align-items: start; gap: 12px; width: 100%; padding: 14px; border: 1.5px solid #EFE6D8; border-radius: 16px; background: #fff; color: var(--r-text); font-size: 16px; line-height: 1.6; }
.r-survey-page .choice-list .r-option:has(input:checked) { background: var(--r-teal-50); border-color: var(--r-teal-700); }
.r-survey-page .choice-list .form-check-input { float: none; margin: 2px 0 0; flex: 0 0 22px; width: 22px; height: 22px; accent-color: var(--r-teal-700); }
.r-survey-page .choice-list .r-option span { min-width: 0; overflow-wrap: anywhere; }
.r-survey-page .card { border: 0; padding: 0 !important; background: transparent; }
.r-survey-page legend { padding: 16px 0 12px; margin-bottom: 0; font-size: 17px; line-height: 1.6; }
.r-survey-page legend:focus { outline: 3px solid var(--r-teal-200); outline-offset: 1px; }
.r-response-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; padding: 12px 24px calc(16px + env(safe-area-inset-bottom)); background: var(--r-background); border-top: 1px solid var(--r-border); }
.r-step-count { margin: 0 auto 10px; text-align: center; font-size: 13px; color: var(--r-muted); }
.r-response-buttons { display: flex; gap: 12px; width: 100%; max-width: 796px; margin: 0 auto; }
.r-response-buttons .response-step-nav { display: contents; }
.r-response-buttons .response-step-nav[hidden], .r-step-count[hidden] { display: none !important; }
.r-response-buttons .btn { flex: 2 1 0; min-width: 0; min-height: 52px; font-size: 16px; }
.r-response-buttons [data-step-back] { flex: 1 1 0; }
body.r-staff .r-response-footer { left: 240px; }
@media (max-width: 960px) { body.r-staff .r-response-footer { left: 0; } }
@media (max-width: 640px) {
  .r-survey-card { padding: 20px; }
  .r-survey-card-heading { flex-wrap: wrap; }
  .r-completed-list li { grid-template-columns: 24px minmax(0, 1fr); }
  .r-completed-list small { grid-column: 2; }
  .r-response-footer { padding-inline: 16px; }
}

/* Tasarım adım 3: personel sonuçları, müdür özeti ve ortak durumlar. */
.r-page-heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.r-page-heading > div { min-width: 0; flex: 1 1 280px; }
.r-page-meta { margin: 8px 0 0; font-size: 15px; color: var(--r-muted); overflow-wrap: anywhere; }
.r-priority-alert { display: flex; align-items: start; gap: 16px; }
.r-priority-alert > svg { width: 24px; height: 24px; flex: 0 0 24px; color: var(--r-red-700); margin: 0; }
body .r-priority-alert h2 { color: var(--r-red-title); font-size: 18px; margin: 0 0 8px; }
.r-priority-alert p { margin: 0 0 8px; }
.r-priority-alert p:last-child { margin: 0; }
.r-result-card, .r-answer-card { margin-bottom: 24px; }
.r-result-card h2, .r-answer-card h2 { margin-bottom: 20px; }
.r-score-list { display: grid; }
.r-score-row { display: grid; grid-template-columns: minmax(0, min(240px, 25%)) minmax(0, 1fr) max-content max-content; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--r-border); }
.r-score-row:last-child { border-bottom: 0; }
.r-score-ranked .r-score-row { grid-template-columns: 60px minmax(0, min(240px, 25%)) minmax(0, 1fr) max-content; }
.r-score-rank { font-size: 14px; font-weight: 600; color: var(--r-muted); }
.r-score-label { min-width: 0; }
.r-score-label strong { font-size: 15px; font-weight: 600; }
.r-score-description { margin: 8px 0 0; font-size: 13px; color: var(--r-muted); }
.r-score-track { min-width: 0; height: 10px; overflow: hidden; border-radius: 999px; background: var(--r-navy-50); }
.r-score-track > span { display: block; height: 100%; border-radius: inherit; background: var(--r-navy-900); }
.r-score-value { white-space: nowrap; justify-self: end; text-align: right; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.r-score-band { min-width: 0; }
.r-score-annotation { margin: 20px 0 0; }
.r-result-notes { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--r-border); font-size: 13px; color: var(--r-muted); overflow-wrap: anywhere; }
.r-result-notes p { margin-bottom: 8px; }
.r-result-notes p:last-child { margin-bottom: 0; }
body .table .r-priority-answer > td, body .table .r-priority-answer .text-body-secondary { color: var(--r-red-700) !important; font-weight: 600; }
.r-audit-note { display: flex; align-items: start; gap: 8px; color: var(--r-muted); font-size: 13px; margin: 0; }
.r-audit-note svg { flex: 0 0 20px; width: 20px; height: 20px; }
.r-admin-pending { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 24px; margin-bottom: 24px; background: #fff; border: 1px solid var(--r-teal-200); border-radius: 12px; }
.r-admin-pending > div { flex: 1 1 220px; min-width: 0; }
.r-admin-pending ul { margin: 6px 0 0; padding-left: 18px; color: var(--r-muted); font-size: 14px; }
.r-info-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; background: var(--r-teal-50); color: var(--r-teal-700); border-radius: 10px; }
.r-info-icon svg { width: 24px; height: 24px; }
.r-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 20px; margin-bottom: 24px; }
.r-stat-card h2 { font-size: 15px; font-weight: 500; color: var(--r-muted); margin: 0 0 12px; }
.r-stat-card > strong { display: block; color: var(--r-navy-900); font-size: 32px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.r-stat-card p { margin: 8px 0 0; font-size: 13px; color: var(--r-muted); }
.r-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.r-section-heading h2 { margin: 0; }
.r-recent-results { margin-bottom: 24px; }
.r-badge-pending { background: var(--r-apricot); color: var(--r-apricot-text); }
body.r-staff .shell-main > .d-flex.justify-content-between, body.r-staff .list-group-item.d-flex { flex-wrap: wrap; gap: 12px; }
body.r-staff .shell-main > .d-flex > div { min-width: 0; }
body.r-staff .r-table-wrap .table { vertical-align: middle; }
body .r-platform-schools tr > :first-child { min-width: 220px; white-space: nowrap; }
body.r-staff .r-table-wrap .btn { white-space: normal; }
body.r-staff .card, body.r-staff .r-card { box-shadow: none; }
.r-mode-option { display: flex; align-items: start; gap: 12px; width: 100%; min-height: 52px; margin-top: 12px; padding: 14px; border: 1.5px solid var(--r-input-border); border-radius: 16px; background: var(--r-surface); color: #475467; font-size: 14px; line-height: 1.6; cursor: pointer; }
.r-mode-option .form-check-input { float: none; margin: 1px 0 0; flex: 0 0 22px; width: 22px; height: 22px; accent-color: var(--r-teal-700); }
.r-mode-option span { min-width: 0; overflow-wrap: anywhere; }
.r-mode-option:has(input:checked) { background: var(--r-teal-50); border-color: var(--r-teal-700); }
@media (max-width: 640px) {
  .r-result-card, .r-answer-card { padding: 20px 16px; }
  .r-score-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .r-score-ranked .r-score-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .r-score-label { grid-column: 1 / -1; }
  .r-score-ranked .r-score-label { grid-column: 2 / -1; }
  .r-score-track { grid-column: 1; }
  .r-score-ranked .r-score-track { grid-column: 1 / 3; }
  .r-score-value { grid-column: -2; }
  .r-score-band { grid-column: 1 / -1; justify-self: end; }
  .r-admin-pending { padding: 20px; }
}
