* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sanko-navy: #1f2f64;
    --sanko-navy-strong: #172553;
    --sanko-navy-soft: #eaf0ff;
    --sanko-red: #b5121b;
    --sanko-red-soft: #fff0f1;
    /* Seçim / video / tercih / onay / admin üst marka — her sayfada aynı */
    --app-header-brand-logo-size: 80px;
    --app-header-brand-name-size: 1.32rem;
    --app-header-brand-subtitle-size: 0.94rem;
    --app-header-brand-gap: 12px;
    /* Ekran başlığı (h2) okul adından büyük olmasın */
    --app-screen-page-title-size: 1.24rem;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(31, 47, 100, 0.1), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: #1e293b;
    text-align: start;
}

/* Genel şartlar: iki yana yaslama */
.welcome-rules .rules-list li,
.rules-accept label {
    text-align: justify;
    text-justify: inter-word;
}

/* İki yana yaslı dışı: form kontrolleri ve düğme metinleri */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
select,
textarea {
    text-align: start;
}

button,
.btn,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    text-align: center;
}

.bg-orb {
    display: none;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 20px 48px;
    min-width: 0;
}

.app-page-stack {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-page-stack > .container {
    flex: 1 0 auto;
    min-width: 0;
    max-width: 100%;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

.card {
    background: #ffffff;
    border: 1px solid #dde7f2;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.welcome-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 42px 44px;
    display: grid;
    gap: 28px;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: "";
    position: absolute;
    top: -220px;
    left: -240px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(31, 47, 100, 0.15) 0%, rgba(31, 47, 100, 0.00) 60%);
    pointer-events: none;
}

.welcome-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    position: relative;
    z-index: 1;
    flex-direction: column;
    text-align: center;
}

.welcome-stack {
    display: grid;
    gap: 16px;
    justify-items: center;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 24px;
}

.welcome-layout .brand-block {
    flex-direction: column;
    gap: 14px;
}

.welcome-layout .brand-block > div {
    text-align: center;
}

.eyebrow {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.brand-logo {
    width: var(--app-header-brand-logo-size);
    height: var(--app-header-brand-logo-size);
    object-fit: contain;
    flex-shrink: 0;
}

.logo-image {
    display: block;
}

.welcome-card h1 {
    font-size: 1.55rem;
    line-height: 1.15;
    margin-bottom: 10px;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.subtitle {
    color: #475569;
    font-size: 1.12rem;
    line-height: 1.55;
    font-weight: 600;
}

.welcome-note {
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.welcome-rules {
    position: relative;
    z-index: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 22px;
    max-width: 860px;
    margin: 0 auto;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.rules-accept-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 860px;
}

.rules-accept {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 860px;
    width: 100%;
    padding: 0 6px;
}

.rules-accept input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #111827;
    flex-shrink: 0;
}

.rules-accept label {
    cursor: pointer;
    user-select: none;
}

.welcome-rules h2 {
    font-size: 1.15rem;
    color: #0f172a;
    margin-bottom: 14px;
}

.rules-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    color: #475569;
    line-height: 1.7;
    display: grid;
    gap: 10px;
    font-size: 0.98rem;
}

.rules-list li {
    position: relative;
    padding-left: 24px;
}

.rules-list li::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 0.32em;
    color: var(--sanko-red);
    font-size: 10px;
    font-weight: 800;
}

.card-body {
    padding: 32px;
}

.selection-shell {
    display: grid;
    gap: 24px;
}

.selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.selection-brand {
    display: flex;
    align-items: center;
    gap: var(--app-header-brand-gap);
}

.selection-brand-logo {
    display: block;
    width: var(--app-header-brand-logo-size);
    height: var(--app-header-brand-logo-size);
    object-fit: contain;
    flex-shrink: 0;
}

.selection-brand-name {
    font-size: var(--app-header-brand-name-size);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.selection-brand-subtitle {
    font-size: var(--app-header-brand-subtitle-size);
    font-weight: 600;
    color: #64748b;
    line-height: 1.35;
}

.selection-status {
    padding: 10px 14px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 0.84rem;
    font-weight: 700;
}

.selection-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 340px);
    gap: 24px;
    align-items: start;
}

.selection-main {
    display: grid;
    gap: 18px;
}

.selection-sidebar {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 24px;
}

.card-panel {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

.selection-intro {
    padding: 24px;
}

.selection-intro h2 {
    font-size: 1.55rem;
    line-height: 1.12;
    margin-bottom: 8px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.selection-intro p {
    color: #64748b;
    line-height: 1.55;
    font-size: 0.94rem;
}

.selection-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.step-pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
}

.step-pill.active {
    background: var(--sanko-navy-soft);
    border-color: #b8c6f3;
    color: var(--sanko-navy);
}

.step-pill.completed {
    background: var(--sanko-red-soft);
    border-color: #fbc1c5;
    color: var(--sanko-red);
}

.selection-panel {
    padding: 18px;
    background: #fbfcfe;
}

.selection-controls-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-card {
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    padding: 14px;
    box-shadow: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.step-card:hover {
    border-color: #c9d8ea;
    background: #fafafa;
}

.step-card-number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.step-card.disabled {
    opacity: 0.6;
}

.step-card.enabled .step-card-number,
.step-card.active .step-card-number {
    background: #111827;
    color: #fff;
}

.step-card.completed .step-card-number {
    background: var(--sanko-red);
    color: #fff;
}

.step-card.completed {
    border-color: #fda4af;
}

.form-group label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group select {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #ffffff;
    padding: 12px 13px;
    font-size: 0.94rem;
    color: #1f2937;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

.student-list-box {
    padding: 18px;
}

.student-list-box.verify-panel {
    padding: 22px 24px;
}

.student-list-header {
    margin-bottom: 20px;
}

.student-list-box h3 {
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 6px;
}

#studentListHint {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.verify-panel .verify-fields {
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) minmax(11rem, 1fr) auto;
    gap: 12px 16px;
    align-items: end;
}

.verify-panel .verify-field {
    margin: 0;
    min-width: 0;
}

.verify-panel .verify-field--action {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-self: end;
}

.verify-panel .verify-field input[type="text"],
.verify-panel .verify-field input[type="date"],
.verify-panel .verify-field select {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #ffffff;
    padding: 12px 14px;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #1f2937;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.verify-panel .verify-field input[type="date"] {
    display: block;
    appearance: none;
    -webkit-appearance: none;
}

.verify-panel .verify-field input:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.12);
}

.verify-panel .verify-btn {
    min-height: 46px;
    padding: 12px 22px;
    white-space: nowrap;
    align-self: end;
}

.post-verify-fields {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.75rem;
}

.post-verify-fields .form-group label {
    color: #334155;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 0.45rem;
    display: block;
}

.post-verify-fields #kurSelect,
.post-verify-fields #careerSelect {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 44px;
    padding: 0 13px;
    border-color: #9fb0c8;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.94rem;
    border-radius: 10px;
    background: #ffffff;
}

.verify-error {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}

.verify-error.success {
    background: #ecfdf3;
    border-color: #86efac;
    color: #166534;
    line-height: 1.5;
}

.existing-pref-banner {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #e0f2fe 100%);
    color: #1e3a5f;
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 500;
}

.verify-result-box {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.verify-result-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.verify-result-box strong {
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 700;
}

.student-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.student-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.student-list li:hover {
    border-color: #cbd5e1;
    background: #fafafa;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.student-list li.selected {
    border-color: #111827;
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.student-list input[type="radio"] {
    accent-color: #111827;
    margin: 0;
    flex-shrink: 0;
}

.student-list label {
    width: 100%;
    cursor: pointer;
    font-weight: 500;
    color: #1e293b;
    font-size: 0.95rem;
}

.button-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.video-button-row {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.video-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 13px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--sanko-navy);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 47, 100, 0.28);
}

.btn-primary:hover:not(:disabled) {
    background: var(--sanko-navy-strong);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-secondary.is-reviewed,
.btn-secondary.is-reviewed:disabled {
    background: #16a34a;
    color: #ffffff;
    opacity: 1;
}

.summary-panel,
.helper-panel {
    padding: 16px;
}

.summary-panel h3,
.helper-panel h3 {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.selection-summary {
    display: grid;
    gap: 10px;
}

.summary-chip {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
    min-height: 46px;
    display: flex;
    align-items: center;
}

.summary-chip.active {
    color: #111827;
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* [hidden] + display:flex çakışmasını önler — şube özeti birleştirilince boş kutu kalmasın */
.summary-chip[hidden] {
    display: none !important;
}

.helper-panel p {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
}

.card-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 28px;
    background: #ffffff;
}

.card-header h2 {
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 6px;
}

.card-header p {
    color: #64748b;
}

.video-shell {
    display: grid;
    gap: 18px;
}

.video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.video-header .selection-brand {
    align-items: center;
    gap: var(--app-header-brand-gap);
}

.video-status {
    padding: 11px 16px;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 0.92rem;
    font-weight: 700;
}

.video-intro {
    padding: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.video-intro h2 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.video-intro p {
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
}

.video-intro-text {
    margin-bottom: 12px;
}

.selection-summary-inline {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.6;
}

.variation-student-summary span {
    color: #334155;
    font-weight: 600;
}

.variation-student-summary .summary-value {
    color: #0f172a;
}

.video-meta-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.video-meta-pill {
    min-height: 94px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.summary-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.summary-value {
    font-size: 1.12rem;
    line-height: 1.4;
    color: #0f172a;
    font-weight: 700;
}

.video-wrapper {
    width: 100%;
    position: relative;
    padding-top: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #0f172a;
}

.video-wrapper video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.description-box {
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 18px;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.7;
    font-size: 0.98rem;
    font-weight: 500;
}

.description-box strong {
    color: var(--sanko-red);
}

.description-box p + p {
    margin-top: 10px;
}

.variation-shell {
    display: grid;
    gap: 22px;
}

.variation-header {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 18px 20px;
}

.variation-brand {
    margin-bottom: 12px;
}

.variation-header h2 {
    font-size: var(--app-screen-page-title-size);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.variation-header p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

.variation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.variation-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    padding: 20px;
    display: grid;
    gap: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.preference-card {
    border: 1px solid #c9d7f0;
    background:
        radial-gradient(circle at top right, rgba(31, 47, 100, 0.08), transparent 42%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 32px rgba(31, 47, 100, 0.12);
}

.variation-badge {
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.preference-card .variation-badge {
    background: linear-gradient(135deg, #1f2f64 0%, #314c95 100%);
    color: #f8fafc;
    border-color: #4b65ad;
    box-shadow: 0 8px 18px rgba(31, 47, 100, 0.28);
    letter-spacing: 0.02em;
}

.variation-card h3 {
    color: #0f172a;
    font-size: 1.15rem;
}

.preference-card h3 {
    font-size: 1.32rem;
    letter-spacing: -0.01em;
}

.variation-card p {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.5;
}

.variation-result {
    padding: 11px 13px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #f8fafc;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.92rem;
}

.variation-student-summary {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.variation-final-approval {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.93rem;
    font-weight: 600;
}

.variation-final-approval input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--sanko-navy);
}

.variation-button-row {
    justify-content: space-between;
    align-items: center;
}

.variation-summary-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.variation-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.variation-summary-item {
    background: #ffffff;
    border: 1px solid #d5e1f1;
    border-radius: 10px;
    padding: 9px 10px;
    display: grid;
    gap: 3px;
}

.variation-summary-item span {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.variation-summary-item strong {
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.35;
}

.variation-summary-item-wide {
    grid-column: 1 / -1;
}

/* Preference screen (tercih) */
#variationScreen .card {
    background:
        radial-gradient(circle at top right, rgba(31, 47, 100, 0.1), transparent 36%),
        linear-gradient(180deg, #f5f9ff 0%, #eef4ff 100%);
    border-color: #d2e0f4;
    box-shadow: 0 18px 36px rgba(31, 47, 100, 0.15);
    width: 100%;
    max-width: min(920px, 100%);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

#variationScreen .card-body {
    padding: clamp(28px, 3.5vw, 48px);
}

#variationScreen .variation-shell {
    gap: 20px;
    width: 100%;
    min-width: 0;
}

#variationScreen .variation-header {
    padding: 20px 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    border-color: #d5e3f5;
    min-width: 0;
}

#variationScreen .variation-brand {
    margin-bottom: 12px;
}

#variationScreen .selection-brand > div {
    min-width: 0;
}

#variationScreen .variation-header h2 {
    color: #0f172a;
    font-size: var(--app-screen-page-title-size);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    line-height: 1.25;
}

#variationScreen .variation-header p {
    color: #475569;
    text-align: start;
    overflow-wrap: anywhere;
}

#variationScreen .variation-button-row .btn {
    min-width: 190px;
}

#variationScreen .variation-grid {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
}

#variationScreen .preference-card {
    background: #ffffff;
    border-color: #d6e3f5;
    box-shadow: 0 12px 24px rgba(31, 47, 100, 0.08);
    padding: 22px;
    color-scheme: light;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

#variationScreen .preference-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
}

#variationScreen .preference-section + .preference-section {
    margin-top: 1.35rem;
    padding-top: 1.35rem;
    border-top: 1px solid #e8eef5;
}

#variationScreen .preference-section__title {
    margin: 0 0 0.15rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

#variationScreen .preference-section--summary .preference-section__title {
    margin-bottom: 0.35rem;
}

#variationScreen .variation-student-summary {
    background: #f8fbff;
    border-color: #d4e1f3;
    padding: 16px 18px;
    margin-bottom: 0;
    border-radius: 14px;
}

#variationScreen .variation-summary-grid {
    /* Sabit rem sütunları dar görünümde taşır; min(100%,…) ile tek/çok sütun akıcı geçiş */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: 12px;
}

#variationScreen .variation-summary-item {
    border-bottom: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 4.5rem;
    min-width: 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

#variationScreen .variation-summary-item span {
    color: #64748b;
    min-width: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#variationScreen .variation-summary-item strong {
    color: #0f172a;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#variationScreen .variation-summary-item-wide {
    grid-column: 1 / -1;
}

#variationScreen .form-group label {
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    text-transform: none;
}

#variationScreen .form-group select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: #ffffff;
    border-color: #c7d5e8;
    color: #0f172a;
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 12px 14px;
    min-height: 48px;
    font-weight: 400;
}

/*
 * Öğretmen/konu select: optgroup’ta uppercase kullanmayın — bazı motorlarda option metni de büyük harfe dönüşür.
 * İsimler normal cümle yazımı; grup başlığı küçük ama kalın, okunaklı.
 */
#variationScreen .preference-card .form-group select option {
    background-color: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.55;
    padding: 0.45rem 0.65rem;
    text-transform: none;
    font-variant: normal;
}

#variationScreen .preference-card .form-group select optgroup {
    background-color: #ffffff;
    color: #475569;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.45;
}

#variationScreen .preference-card .form-group {
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
}

#variationScreen .variation-teacher-field,
#variationScreen .variation-topic-field {
    width: 100%;
    min-width: 0;
}

#variationScreen .variation-result {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.55;
    font-weight: 500;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 3.25rem;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

#variationScreen .variation-result-teacher {
    border-style: solid;
    border-width: 1px;
    border-radius: 12px;
}

#variationScreen .variation-result-topic {
    border-style: solid;
    border-width: 1px;
    border-left-width: 4px;
    border-radius: 12px;
}

#variationScreen .variation-result-teacher[data-feedback-tone="idle"] {
    background: #f8fafc;
    border-color: #e2e8f0;
    border-left: 4px solid #cbd5e1;
    color: #64748b;
    font-weight: 500;
}

#variationScreen .variation-result-teacher[data-feedback-tone="info"] {
    background: #f8fbff;
    border-color: #c7d5e8;
    border-left: 4px solid #3b6fb0;
    color: #1e3a5f;
    font-weight: 600;
}

#variationScreen .variation-result-teacher[data-feedback-tone="success"] {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: #bbf7d0;
    border-left: 4px solid #16a34a;
    color: #14532d;
    font-weight: 600;
}

#variationScreen .variation-result-teacher[data-feedback-tone="warning"],
#variationScreen .variation-result-topic[data-feedback-tone="warning"] {
    background: #fffbeb;
    border-color: #fde68a;
    border-left-color: #d97706;
    color: #92400e;
    font-weight: 600;
}

#variationScreen .variation-result-teacher[data-feedback-tone="danger"],
#variationScreen .variation-result-topic[data-feedback-tone="danger"] {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #dc2626;
    color: #991b1b;
    font-weight: 600;
}

#variationScreen .variation-result-topic[data-feedback-tone="idle"] {
    background: #f8fafc;
    border-color: #e2e8f0;
    border-left-color: #94a3b8;
    color: #64748b;
    font-weight: 500;
}

#variationScreen .variation-result-topic[data-feedback-tone="info"] {
    background: linear-gradient(180deg, #f0f7ff 0%, #e8f2fc 100%);
    border-color: #b8d0ee;
    border-left-color: #3b6fb0;
    color: #1e3a5f;
    font-weight: 600;
}

#variationScreen .variation-result-topic[data-feedback-tone="success"] {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: #86efac;
    border-left-color: #16a34a;
    color: #14532d;
    font-weight: 600;
}

#variationScreen .variation-final-approval {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border-color: #d7e3f3;
    color: #334155;
    border-radius: 14px;
}

#variationScreen .variation-final-approval label {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
}

#variationScreen .variation-topic-field label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #475569;
}

#variationScreen .variation-topic-field select {
    font-size: 0.9375rem;
    line-height: 1.5;
    min-height: 46px;
    padding: 11px 13px;
    font-weight: 400;
}

#variationScreen .preference-section--topic .variation-result-topic {
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 900px) {
    #variationScreen .preference-card {
        display: flex;
        flex-direction: column;
    }

    #variationScreen .variation-button-row .btn {
        min-width: 0;
    }
}

.confirm-card {
    gap: 0;
    border: 1px solid #c8daf0;
    background: linear-gradient(180deg, #ffffff 0%, #f2f7fd 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 16px 42px rgba(31, 47, 100, 0.09);
    padding: 10px 12px 12px;
    border-radius: 20px;
}

.confirm-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px 0;
    align-items: start;
    padding: 14px 18px 15px;
    border: none;
    border-bottom: 1px solid #e3edf8;
    border-radius: 0;
    background: transparent;
}

.confirm-row span {
    color: #1e3a5f;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.45;
    text-transform: none;
    display: block;
}

.confirm-row strong {
    color: #334155;
    font-size: 1.02rem;
    text-align: left;
    font-weight: 500;
    line-height: 1.55;
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.confirm-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (min-width: 640px) {
    .confirm-row {
        grid-template-columns: minmax(10rem, 34%) minmax(0, 1fr);
        gap: 10px 24px;
    }
}

.preference-modal-message {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

.preference-modal-message.success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

#confirmScreen .variation-header {
    border-color: #d8e5f4;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

#confirmScreen .variation-header h2 {
    font-size: var(--app-screen-page-title-size);
    font-weight: 700;
    line-height: 1.25;
}

#confirmScreen .variation-header p {
    font-size: 1rem;
}

#confirmScreen .variation-header .selection-brand > div {
    min-width: 0;
}

#confirmScreen .variation-header h2 {
    overflow-wrap: anywhere;
}

/* Tercih ve onay adımlarında içerik alanını genişlet (dar kart hissi azalır) */
main.container:has(#confirmScreen.active),
main.container:has(#variationScreen.active) {
    max-width: 1340px;
}

#confirmScreen .card-body {
    padding: clamp(30px, 3.5vw, 48px);
}

#confirmScreen .variation-shell {
    gap: 26px;
    min-width: 0;
}

#confirmScreen .card {
    max-width: 100%;
    box-sizing: border-box;
}

#confirmScreen .variation-header {
    padding: 22px clamp(22px, 3vw, 36px);
}

#confirmScreen .variation-button-row .btn {
    min-width: min(190px, 100%);
}

@media (max-width: 640px) {
    #confirmScreen .variation-button-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #confirmScreen .variation-button-row .btn {
        min-width: 0;
        width: 100%;
    }

    #confirmScreen .card-body {
        padding: 16px 14px;
    }

    #confirmScreen .variation-header {
        padding: 14px 16px;
    }

    #confirmScreen .variation-header .selection-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #confirmScreen .selection-brand-logo {
        width: 56px;
        height: 56px;
    }

    #confirmScreen .confirm-card {
        padding: 8px 10px 10px;
    }

    #confirmScreen .confirm-row {
        padding: 12px 12px;
    }

    #variationScreen .variation-button-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #variationScreen .variation-button-row .btn {
        min-width: 0;
        width: 100%;
    }

    #variationScreen .card-body {
        padding: 16px 12px;
    }

    #variationScreen .variation-header {
        padding: 14px 14px;
    }

    #variationScreen .variation-header .selection-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #variationScreen .selection-brand-logo {
        width: 56px;
        height: 56px;
    }

    #variationScreen .preference-card {
        padding: 16px 14px;
    }

    #variationScreen .variation-student-summary {
        padding: 12px 12px;
    }
}

@media (max-width: 900px) {
    .welcome-card {
        padding: 28px;
        gap: 24px;
    }

    .welcome-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-block {
        flex-direction: column;
        text-align: center;
    }

    .selection-grid {
        grid-template-columns: 1fr;
    }

    .variation-grid {
        grid-template-columns: 1fr;
    }

    #variationScreen .variation-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .selection-sidebar {
        position: static;
    }

}

@media (max-width: 760px) {
    .container {
        padding: 20px 14px;
    }

    .selection-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .video-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .selection-controls-grid {
        grid-template-columns: 1fr;
    }

    .video-meta-strip {
        grid-template-columns: 1fr;
    }

    .variation-summary-grid {
        grid-template-columns: 1fr;
    }

    #variationScreen .variation-summary-grid {
        grid-template-columns: 1fr;
    }

    .card-body,
    .card-header,
    .selection-panel,
    .selection-intro,
    .summary-panel,
    .helper-panel,
    .video-intro,
    .student-list-box,
    .welcome-card {
        padding: 16px;
    }

    .welcome-closed-shell {
        padding: 28px 20px 22px;
        border-radius: 20px;
    }

    .welcome-closed-brand {
        gap: 12px;
        margin-bottom: 22px;
        padding-bottom: 18px;
    }

    .welcome-closed-brand-logo {
        width: 52px;
        height: 52px;
    }

    .welcome-closed-brand-school {
        font-size: 1.05rem;
    }

    .welcome-closed-brand-system {
        font-size: 0.8rem;
    }

    .welcome-closed-emblem svg {
        width: 56px;
        height: 56px;
    }

    .welcome-closed-timeline {
        padding: 16px;
        margin-top: 22px;
    }

    .button-row .btn {
        width: 100%;
    }

    .button-row {
        justify-content: stretch;
    }

    .video-button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .video-actions-right {
        width: 100%;
        flex-direction: column;
    }

    .welcome-card h1 {
        font-size: 1.65rem;
    }

    .selection-intro h2 {
        font-size: 1.45rem;
    }

    .verify-panel .verify-fields {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .verify-panel .verify-field--action {
        width: 100%;
    }

    .verify-panel .verify-btn {
        width: 100%;
    }

    .post-verify-fields {
        grid-template-columns: 1fr;
    }
}

body.theme-dark {
    background:
        radial-gradient(circle at top left, rgba(181, 18, 27, 0.14), transparent 38%),
        linear-gradient(180deg, #0f1936 0%, #111b3a 100%);
    color: #e2e8f0;
}

body.theme-dark .card,
body.theme-dark .welcome-card,
body.theme-dark .selection-panel,
body.theme-dark .selection-intro,
body.theme-dark .student-list-box,
body.theme-dark .summary-panel,
body.theme-dark .helper-panel,
body.theme-dark .video-intro,
body.theme-dark .variation-card,
body.theme-dark .variation-header {
    background: #111b30;
    border-color: #2a3a55;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

body.theme-dark .welcome-card h1,
body.theme-dark .selection-intro h2,
body.theme-dark .selection-brand-name,
body.theme-dark .video-intro h2,
body.theme-dark .variation-header h2,
body.theme-dark .variation-card h3,
body.theme-dark .summary-value {
    color: #f8fafc;
}

body.theme-dark .subtitle,
body.theme-dark .welcome-note,
body.theme-dark .rules-list,
body.theme-dark .selection-intro p,
body.theme-dark .selection-status,
body.theme-dark .helper-panel p,
body.theme-dark .video-status,
body.theme-dark .video-intro p,
body.theme-dark .variation-header p,
body.theme-dark .variation-card p,
body.theme-dark #studentListHint,
body.theme-dark .summary-label,
body.theme-dark .verify-result-label {
    color: #cbd5e1;
}

body.theme-dark .form-group label,
body.theme-dark .selection-brand-subtitle,
body.theme-dark .summary-chip,
body.theme-dark #studentListHint,
body.theme-dark .helper-panel p,
body.theme-dark .variation-result,
body.theme-dark .variation-final-approval,
body.theme-dark .summary-label,
body.theme-dark .verify-result-label {
    color: #dbe7ff;
}

body.theme-dark .confirm-row span {
    color: #f1f5f9;
}

body.theme-dark .confirm-row strong {
    color: #94a3b8;
    font-weight: 400;
}

body.theme-dark .video-status {
    background: #1a2744;
    border-color: #32466d;
    color: #eef2ff;
}

body.theme-dark .welcome-closed-shell {
    background: linear-gradient(180deg, #152238 0%, #0f1a2e 100%);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

body.theme-dark .welcome-closed-eyebrow {
    color: #94a3b8;
}

body.theme-dark .welcome-closed-lead {
    color: #f8fafc;
}

body.theme-dark .welcome-closed-detail {
    color: #cbd5e1;
}

body.theme-dark .welcome-closed-timeline {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(148, 163, 184, 0.16);
}

body.theme-dark .welcome-closed-timeline-item + .welcome-closed-timeline-item {
    border-top-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .welcome-closed-timeline-label {
    color: #94a3b8;
}

body.theme-dark .welcome-closed-timeline-value {
    color: #e2e8f0;
}

body.theme-dark .welcome-closed-timeline-item--final .welcome-closed-timeline-value {
    color: #c7d2fe;
}

body.theme-dark .welcome-closed-timeline-dot {
    background: #475569;
    box-shadow: 0 0 0 4px rgba(71, 85, 105, 0.3);
}

body.theme-dark .welcome-closed-timeline-item--final .welcome-closed-timeline-dot {
    background: #c7d2fe;
    box-shadow: 0 0 0 4px rgba(199, 210, 254, 0.18);
}

body.theme-dark .welcome-closed-brand {
    border-bottom-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .welcome-closed-brand-school {
    color: #f1f5f9;
}

body.theme-dark .welcome-closed-brand-system {
    color: #94a3b8;
}

body.theme-dark .welcome-closed-refresh-link {
    color: #64748b;
}

body.theme-dark .welcome-closed-refresh-link:hover,
body.theme-dark .welcome-closed-refresh-link:focus-visible {
    color: #c7d2fe;
    background: rgba(199, 210, 254, 0.1);
}

body.theme-dark #welcomeScreen:has(#welcomeClosedPanel:not([hidden])) .welcome-card {
    background: transparent;
}

body.theme-dark .welcome-rules,
body.theme-dark .welcome-note,
body.theme-dark .selection-status,
body.theme-dark .summary-chip,
body.theme-dark .variation-result,
body.theme-dark .verify-result-box,
body.theme-dark .selection-summary-inline,
body.theme-dark .variation-final-approval,
body.theme-dark .description-box,
body.theme-dark .confirm-row {
    background: #0f1a30;
    border-color: #2a3a55;
}

body.theme-dark .existing-pref-banner {
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.28) 0%, rgba(12, 74, 110, 0.22) 100%);
    border-color: #3b5f90;
    color: #e0e7ff;
}

body.theme-dark .summary-chip.active {
    color: #f8fafc;
    border-color: #5870a8;
    background: #172743;
}

body.theme-dark .step-card {
    background: #14213a;
    border-color: #2f4260;
}

body.theme-dark .step-card:hover {
    background: #172742;
    border-color: #3b5175;
}

body.theme-dark .step-card.disabled {
    background: #111b30;
    border-color: #2a3a55;
    opacity: 0.78;
}

body.theme-dark .step-card.enabled .step-card-number,
body.theme-dark .step-card.active .step-card-number {
    background: #2d3f82;
    color: #f8fafc;
}

body.theme-dark .step-card.completed .step-card-number {
    background: var(--sanko-red);
    color: #ffffff;
}

body.theme-dark .step-pill {
    background: #132038;
    border-color: #2f4260;
    color: #cbd5e1;
}

body.theme-dark .step-pill.active {
    background: #2a3e80;
    border-color: #6d7fbb;
    color: #eaf2ff;
}

body.theme-dark .step-pill.completed {
    background: #7c1f2a;
    border-color: #f08a93;
    color: #ffe4e6;
}

body.theme-dark .rules-list li::before {
    color: #fda4af;
}

body.theme-dark .form-group select,
body.theme-dark .verify-panel .verify-field input[type="text"],
body.theme-dark .verify-panel .verify-field input[type="date"],
body.theme-dark .verify-panel .verify-field select {
    background: #101c33;
    color: #e2e8f0;
    border-color: #2f4260;
}

body.theme-dark .post-verify-fields .form-group label {
    color: #dbe7ff;
}

body.theme-dark .post-verify-fields #careerSelect {
    background: #13213c;
    border-color: #506790;
    color: #f8fafc;
}

body.theme-dark .form-group select:focus,
body.theme-dark .verify-panel .verify-field input:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.25);
}

body.theme-dark .btn-primary {
    background: #2a3f81;
    box-shadow: 0 8px 18px rgba(31, 47, 100, 0.44);
}

body.theme-dark .btn-primary:hover:not(:disabled) {
    background: #3a529b;
}

body.theme-dark .btn-secondary {
    background: #1e293b;
    color: #e2e8f0;
}

body.theme-dark .btn-secondary:hover {
    background: #334155;
}

body.theme-dark .btn-secondary.is-reviewed,
body.theme-dark .btn-secondary.is-reviewed:disabled {
    background: #16a34a;
    color: #f8fafc;
}

body.theme-dark .video-wrapper {
    background: #020617;
}

body.theme-dark #verifiedStudentName {
    color: #f8fafc;
}

body.theme-dark .description-box {
    color: #f1f5f9;
}

body.theme-dark .description-box strong {
    color: #fecaca;
}

body.theme-dark .variation-summary-title {
    color: #dbe7ff;
}

body.theme-dark .variation-summary-item {
    background: #13213c;
    border-color: #375074;
}

body.theme-dark .preference-card {
    border-color: #3d527b;
    background:
        radial-gradient(circle at top right, rgba(95, 123, 190, 0.22), transparent 45%),
        linear-gradient(180deg, #111c34 0%, #0f1930 100%);
    box-shadow: 0 14px 30px rgba(6, 13, 28, 0.55);
}

body.theme-dark .preference-card .variation-badge {
    background: linear-gradient(135deg, #4a67b0 0%, #6380c7 100%);
    border-color: #7f97d5;
    color: #f8fafc;
}

body.theme-dark #variationScreen .preference-card {
    color-scheme: dark;
}

body.theme-dark #variationScreen .preference-card .form-group select {
    background: #152a4a;
    border-color: #4a6fa0;
    color: #f8fafc;
}

body.theme-dark #variationScreen .preference-card .form-group select option {
    background-color: #152a4a;
    color: #f8fafc;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.55;
    text-transform: none;
    font-variant: normal;
}

body.theme-dark #variationScreen .preference-card .form-group select optgroup {
    background-color: #152a4a;
    color: #cbd5e1;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.45;
}

body.theme-dark #variationScreen .preference-section + .preference-section {
    border-top-color: rgba(148, 163, 184, 0.22);
}

body.theme-dark #variationScreen .preference-section__title {
    color: #94a3b8;
}

body.theme-dark #variationScreen .variation-topic-field label {
    color: #cbd5e1;
}

body.theme-dark #variationScreen .variation-topic-field select {
    font-size: 0.9375rem;
    font-weight: 400;
}

body.theme-dark #variationScreen .preference-section--topic .variation-result-topic {
    font-size: 0.9rem;
    line-height: 1.55;
}

body.theme-dark .variation-summary-item span {
    color: #c7d8f6;
}

body.theme-dark .variation-summary-item strong {
    color: #f8fafc;
}

body.theme-dark #variationScreen .variation-summary-item {
    background: rgba(19, 33, 60, 0.85);
    border-color: #375074;
    box-shadow: none;
}

body.theme-dark #variationScreen .variation-result-teacher[data-feedback-tone="idle"] {
    background: rgba(15, 36, 71, 0.65);
    border-color: #3d527b;
    border-left-color: #64748b;
    color: #94a3b8;
}

body.theme-dark #variationScreen .variation-result-teacher[data-feedback-tone="info"] {
    background: #13284b;
    border-color: #4a6fa0;
    border-left-color: #6b9bd4;
    color: #d8e7ff;
}

body.theme-dark #variationScreen .variation-result-teacher[data-feedback-tone="success"] {
    background: rgba(6, 46, 25, 0.55);
    border-color: #166534;
    border-left-color: #4ade80;
    color: #bbf7d0;
}

body.theme-dark #variationScreen .variation-result-teacher[data-feedback-tone="warning"],
body.theme-dark #variationScreen .variation-result-topic[data-feedback-tone="warning"] {
    background: rgba(69, 26, 3, 0.45);
    border-color: #b45309;
    border-left-color: #fbbf24;
    color: #fde68a;
}

body.theme-dark #variationScreen .variation-result-teacher[data-feedback-tone="danger"],
body.theme-dark #variationScreen .variation-result-topic[data-feedback-tone="danger"] {
    background: rgba(69, 10, 10, 0.5);
    border-color: #991b1b;
    border-left-color: #f87171;
    color: #fecaca;
}

body.theme-dark #variationScreen .variation-result-topic[data-feedback-tone="idle"] {
    background: rgba(15, 36, 71, 0.65);
    border-color: #3d527b;
    border-left-color: #64748b;
    color: #94a3b8;
}

body.theme-dark #variationScreen .variation-result-topic[data-feedback-tone="info"] {
    background: #13284b;
    border-color: #3b5f90;
    border-left-color: #6b9bd4;
    color: #d8e7ff;
}

body.theme-dark #variationScreen .variation-result-topic[data-feedback-tone="success"] {
    background: rgba(6, 46, 25, 0.55);
    border-color: #166534;
    border-left-color: #4ade80;
    color: #bbf7d0;
}

body.theme-dark #confirmScreen .confirm-card {
    background: linear-gradient(180deg, #121f3a 0%, #0f1a30 100%);
    border-color: #3a5078;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 16px 40px rgba(0, 0, 0, 0.35);
}

body.theme-dark #confirmScreen .confirm-row {
    background: transparent;
    border: none;
    border-bottom: 1px solid #2f4260;
}

body.theme-dark #confirmScreen .confirm-row span {
    color: #f8fafc;
}

body.theme-dark #confirmScreen .confirm-row strong {
    color: #cbd5e1;
    font-weight: 400;
}

body.theme-dark .preference-modal-message {
    background: #111b30;
    border-color: #2a3a55;
    color: #cbd5e1;
}

body.theme-dark .preference-modal-message.success {
    background: #052e16;
    border-color: #166534;
    color: #bbf7d0;
}

.welcome-open-flow {
    display: grid;
    gap: 28px;
    position: relative;
    z-index: 1;
}

/* [hidden] bazen display:grid tarafından ezilir; kapalıyken şartlar kesinlikle görünmesin */
#welcomeOpenFlow[hidden],
.welcome-open-flow[hidden] {
    display: none !important;
}

#welcomeClosedPanel[hidden] {
    display: none !important;
}

/* Tercih durumu gelene kadar Genel Şartlar vb. görünmesin (FOUC önleme) */
#welcomeScreen.tercih-welcome-loading .welcome-open-flow {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

#welcomeScreen.tercih-welcome-loading .welcome-closed-panel[hidden] {
    display: none !important;
}

#welcomeScreen.tercih-welcome-loading .welcome-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#welcomeScreen.tercih-welcome-loading .welcome-card::after {
    content: "Tercih durumu kontrol ediliyor…";
    font-size: 1.05rem;
    font-weight: 500;
    color: #64748b;
}

/* Kapalı tercih: ferah, ortalı, bilgilendirici kart */
#welcomeScreen:has(#welcomeClosedPanel:not([hidden])) .welcome-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 24px 12px 48px;
}

.welcome-closed-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
}

.welcome-closed-shell {
    position: relative;
    padding: 36px 36px 28px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(31, 47, 100, 0.1);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 24px 60px -28px rgba(31, 47, 100, 0.35);
    text-align: center;
    overflow: hidden;
}

.welcome-closed-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #1f2f64 0%, #3b5bdb 50%, #1f2f64 100%);
}

.welcome-closed-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
}

.welcome-closed-brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.welcome-closed-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.25;
    min-width: 0;
}

.welcome-closed-brand-school {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.018em;
}

.welcome-closed-brand-system {
    font-size: 0.86rem;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.005em;
}

.welcome-closed-emblem {
    display: inline-flex;
    margin: 4px 0 16px;
    filter: drop-shadow(0 8px 18px rgba(31, 47, 100, 0.22));
}

.welcome-closed-eyebrow {
    margin: 0 0 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6471a0;
}

.welcome-closed-lead {
    margin: 0;
    font-size: clamp(1.4rem, 3.4vw, 1.7rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.018em;
    color: #0f172a;
}

.welcome-closed-detail {
    margin: 14px auto 0;
    max-width: 440px;
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.65;
    color: #475569;
}

.welcome-closed-timeline {
    list-style: none;
    margin: 26px 0 4px;
    padding: 18px 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid rgba(31, 47, 100, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.welcome-closed-timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 4px;
    position: relative;
}

.welcome-closed-timeline-item + .welcome-closed-timeline-item {
    padding-top: 14px;
    border-top: 1px dashed rgba(31, 47, 100, 0.14);
}

.welcome-closed-timeline-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #cbd5e1;
    box-shadow: 0 0 0 4px rgba(203, 213, 225, 0.35);
}

.welcome-closed-timeline-item--final .welcome-closed-timeline-dot {
    background: #1f2f64;
    box-shadow: 0 0 0 4px rgba(31, 47, 100, 0.18);
}

.welcome-closed-timeline-item--done .welcome-closed-timeline-dot {
    background: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.22);
    position: relative;
}

.welcome-closed-timeline-item--done .welcome-closed-timeline-dot::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 999px;
    background: #fff;
}

.welcome-closed-timeline-item--done .welcome-closed-timeline-value {
    color: #64748b;
}

.welcome-closed-timeline-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
    min-width: 0;
}

.welcome-closed-timeline-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7a99;
}

.welcome-closed-timeline-value {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.welcome-closed-timeline-item--final .welcome-closed-timeline-value {
    color: #1f2f64;
}

.welcome-closed-refresh-link {
    appearance: none;
    background: none;
    border: none;
    margin: 18px auto 0;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.18s ease, background 0.18s ease;
}

.welcome-closed-refresh-link:hover,
.welcome-closed-refresh-link:focus-visible {
    color: #1f2f64;
    background: rgba(31, 47, 100, 0.06);
    outline: none;
}

.welcome-closed-refresh-link[disabled] {
    cursor: progress;
    color: #cbd5e1;
}

body.theme-dark #welcomeScreen.tercih-welcome-loading .welcome-card::after {
    color: #94a3b8;
}

.variation-tercih-banner {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 0.875rem;
    line-height: 1.45;
}

.variation-sunum-banner {
    margin-top: 8px;
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

/* [hidden] + .form-group { display:flex } çakışmasını önler — sadece Diğer branş seçilince görünür */
#variationScreen .other-teacher-panel[hidden] {
    display: none !important;
}

#variationScreen .other-teacher-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
    padding: 14px 16px;
    border: 1px solid #c7d5e8;
    border-radius: 12px;
    background: #f4f8fd;
    position: relative;
    z-index: 2;
}

#variationScreen .other-teacher-panel-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#variationScreen .other-teacher-panel-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

#variationScreen .other-teacher-panel-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #c7d5e8;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.9375rem;
}

#variationScreen .other-teacher-panel-field input:focus {
    outline: none;
    border-color: #3b5f90;
    box-shadow: 0 0 0 2px rgba(59, 95, 144, 0.2);
}

#variationScreen .other-teacher-hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #94a3b8;
}

.field-hint-example {
    font-weight: 600;
    color: #0f172a;
}

.field-hint-muted {
    color: #94a3b8;
    margin-left: 0.35rem;
}

#otherTeacherName::placeholder {
    color: #94a3b8;
    opacity: 1;
}

body.theme-dark .variation-tercih-banner {
    background: #2a1810;
    border-color: #854d0e;
    color: #fde68a;
}

body.theme-dark .variation-sunum-banner {
    background: rgba(15, 40, 80, 0.85);
    border-color: #3b5f90;
    color: #bfdbfe;
}

body.theme-dark #variationScreen .other-teacher-panel {
    background: rgba(10, 28, 56, 0.75);
    border-color: #355a8d;
}

body.theme-dark #variationScreen .other-teacher-hint {
    color: #94a3b8;
}

body.theme-dark #variationScreen .other-teacher-panel-field label {
    color: #cbd5e1;
}

body.theme-dark #variationScreen .other-teacher-panel-field input {
    background: #0f2447;
    border-color: #3b5f90;
    color: #f8fbff;
}

body.theme-dark .field-hint-example {
    color: #f1f5f9;
}

body.theme-dark .field-hint-muted {
    color: #94a3b8;
}
