/* =========================================================
   Ders Programı — Kurumsal SaaS Arayüz Sistemi
   Minimal, beyaz ağırlıklı, yumuşak gri + tek accent (teal)
   ========================================================= */
.selection{
    width: 100%;
}
:root {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --muted-2: #9ca3af;

    --brand: #0f766e;
    --brand-2: #0d9488;
    --brand-soft: #f0fdfa;
    --accent: #0f766e;

    --line: #e8eaed;
    --line-strong: #d1d5db;
    --card: #ffffff;

    --ok: #059669;
    --ok-soft: #ecfdf5;
    --err: #dc2626;
    --err-soft: #fef2f2;
    --warn: #d97706;
    --warn-soft: #fffbeb;

    --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
    --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px -12px rgba(17, 24, 39, 0.1);
    --shadow-hover: 0 2px 4px rgba(17, 24, 39, 0.04), 0 12px 28px -10px rgba(15, 118, 110, 0.18);
    --radius: 14px;
    --radius-sm: 10px;

    --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --display: "Plus Jakarta Sans", sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --sidebar-w: 260px;
    --sidebar-collapsed: 76px;
    --motion: 180ms var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection { background: var(--brand); color: #fff; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.bg-mesh {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(900px 420px at 12% -8%, rgba(15, 118, 110, 0.06), transparent 60%),
        radial-gradient(700px 380px at 100% 0%, rgba(15, 118, 110, 0.04), transparent 55%);
}

.topbar, .container, .footer, .app-shell { position: relative; z-index: 1; }

/* ---------- Guest topbar (login/404) ---------- */

.topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar-guest { justify-content: center; }

/* ---------- Admin panel shell ---------- */

.app-shell {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.sidebar-toggle-input { display: none; }
.sidebar-scrim { display: none; }

.sidebar {
    width: var(--sidebar-w);
    transition: width var(--motion);
    flex: none;
    background: var(--surface);
    border-right: 1px solid var(--line);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    padding: 0 0.4rem;
}

.sidebar .brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border-radius: 0.65rem;
    background: var(--brand);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.sidebar .brand-text {
    font-family: var(--display);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted-2);
    font-weight: 700;
    padding: 0.9rem 0.6rem 0.3rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-ico { font-size: 1rem; line-height: 1; }

.sidebar-nav a:hover { background: var(--bg); color: var(--ink); }

.sidebar-nav a.is-active {
    background: var(--brand-soft);
    color: var(--brand-2);
    font-weight: 600;
}

.sidebar-footer {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.userbox {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    min-width: 0;
}

.user-avatar {
    flex: none;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand-2);
    font-weight: 700;
    font-size: 0.85rem;
}

.user-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
    line-height: 1.25;
}

.user-name {
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.25;
}

.user-role {
    display: block;
    line-height: 1.25;
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 30;
}

.app-topbar-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--muted);
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
}

.menu-btn:hover { background: var(--bg); }

@media (max-width: 960px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 60;
        transform: translateX(-100%);
        transition: transform 0.25s var(--ease);
        box-shadow: var(--shadow);
    }

    .sidebar-toggle-input:checked ~ .sidebar { transform: translateX(0); }

    .sidebar-scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        z-index: 50;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .sidebar-toggle-input:checked ~ .sidebar-scrim {
        opacity: 1;
        pointer-events: auto;
    }

    .menu-btn { display: inline-flex; }
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
}

.brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border-radius: 0.65rem;
    background: var(--brand);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-text {
    font-family: var(--display);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
}

.nav {
    display: flex;
    gap: 0.2rem;
    flex: 1;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.89rem;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover { background: var(--brand-soft); color: var(--brand-2); }

.container {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 1.75rem 0 4rem;
    padding: 0 1.75rem;
}

.footer {
    text-align: center;
    color: var(--muted-2);
    font-size: 0.82rem;
    padding: 1.75rem;
}

/* ---------- Typography ---------- */

h1, h2 {
    font-family: var(--display);
    letter-spacing: -0.015em;
    margin: 0 0 0.35rem;
    color: var(--ink);
    font-weight: 700;
}

h1 { font-size: clamp(1.55rem, 3.4vw, 2rem); }
h2 { font-size: 1.1rem; }

.muted { color: var(--muted); }
.tiny { font-size: 0.78rem; }
.right { text-align: right; }
.inline { display: inline; }
.inline-form { display: inline-flex; }

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

.actions { display: flex; gap: 0.55rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.65rem 1.1rem;
    font: inherit;
    font-weight: 600;
    font-size: 0.89rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.btn:active { transform: scale(0.97); }
.btn-sm { padding: 0.42rem 0.8rem; font-size: 0.82rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-ico { font-size: 0.95em; }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 118, 110, 0.1), 0 6px 16px -6px rgba(15, 118, 110, 0.4);
}

.btn-primary:hover {
    background: var(--brand-2);
    box-shadow: 0 1px 2px rgba(15, 118, 110, 0.1), 0 10px 22px -6px rgba(15, 118, 110, 0.45);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--bg);
    border-color: var(--muted-2);
}

/* ---------- Alerts ---------- */

.alert {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.alert-success { border-color: #bbf7d0; color: var(--ok); background: var(--ok-soft); }
.alert-error { border-color: #fecaca; color: var(--err); background: var(--err-soft); }

/* ---------- Auth ---------- */

.auth-wrap {
    min-height: calc(100vh - 11rem);
    display: grid;
    place-items: center;
}

.auth-panel {
    width: min(420px, 100%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
}

.auth-panel--restricted {
    text-align: center;
    border-color: color-mix(in srgb, #b45309 35%, var(--line));
}

.auth-panel--restricted h1 {
    margin: 0.6rem 0 0.5rem;
    font-size: 1.35rem;
}

.ip-lock-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto;
    border-radius: 50%;
    color: #b45309;
    background: color-mix(in srgb, #b45309 12%, transparent);
}

.ip-meta {
    display: grid;
    gap: 0.65rem;
    margin: 1.15rem 0;
    text-align: left;
}

.ip-meta div {
    display: grid;
    gap: 0.2rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg, transparent);
}

.ip-meta dt {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ip-meta dd {
    margin: 0;
}

.ip-meta code {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
}

.auth-panel--restricted .btn {
    margin-top: 0.5rem;
}

/* ---------- Forms ---------- */

.form { display: grid; gap: 0.95rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.89rem; }
.form label > span { color: var(--muted); font-weight: 500; }

.form-grid fieldset > label:not(.full) > span:first-of-type {
    min-height: 1.35rem;
    display: flex;
    align-items: flex-end;
    line-height: 1.3;
}

.form-grid fieldset > label:not(.full) > input,
.form-grid fieldset > label:not(.full) > select {
    height: 2.75rem;
    min-height: 2.75rem;
    padding-top: 0;
    padding-bottom: 0;
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 0.68rem 0.85rem;
    font: inherit;
    background: var(--surface);
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder, textarea::placeholder { color: var(--muted-2); }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3.5px rgba(15, 118, 110, 0.14);
}

input[type="color"] { padding: 0.3rem; height: 2.75rem; cursor: pointer; }
select { cursor: pointer; }

.form-grid { display: grid; gap: 1rem; }

fieldset {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1.15rem;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 720px) {
    fieldset {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
    fieldset .full { grid-column: 1 / -1; }

    .form-grid fieldset > label:not(.full) {
        grid-template-rows: 2.5rem auto auto;
        align-content: start;
    }
}

legend {
    font-family: var(--display);
    font-weight: 700;
    padding: 0 0.35rem;
    color: var(--ink);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* ---------- Table ---------- */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.table th, .table td {
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.table tbody tr { transition: background 0.12s ease; }
.table tbody tr:hover { background: var(--bg); }
.table tbody tr:last-child td { border-bottom: none; }

.table th {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    background: #fafbfe;
}

/* Pagination (super admin tables) */
.sg-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-top: 0.85rem;
}
.sg-pagination-info {
    font-size: 0.82rem;
    color: var(--muted);
    margin-right: auto;
}
.sg-pagination-size {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--muted);
}
.sg-pagination-size select,
.sg-input-sm {
    max-width: 4.5rem;
    padding: 0.3rem 0.45rem;
    font-size: 0.82rem;
}
.sg-pagination-nav {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
}
.sg-pagination-ellipsis {
    padding: 0 0.2rem;
    color: var(--muted);
}
.sg-pagination .is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-off { background: var(--err-soft); color: var(--err); }

.empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

/* ---------- Stats ---------- */

.stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

@media (min-width: 720px) {
    .stat-row { grid-template-columns: repeat(4, 1fr); }
}

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.05rem 1.15rem;
    box-shadow: var(--shadow-xs);
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: #c7d2fe;
}

.stat-label { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 0.2rem; }

.stat-value {
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand);
}

/* ---------- Layout helpers ---------- */

.split {
    display: grid;
    gap: 1rem;
}

@media (min-width: 860px) {
    .split { grid-template-columns: 1fr 1fr; }
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem;
    box-shadow: var(--shadow-xs);
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.chip-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chip-list li {
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--chip, var(--brand)) 12%, white);
    color: var(--ink);
    font-size: 0.83rem;
    font-weight: 500;
    border: 1px solid color-mix(in srgb, var(--chip, var(--brand)) 28%, white);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chip-list li:hover { transform: translateY(-1px); box-shadow: var(--shadow-xs); }

.chip-list.plain li {
    background: var(--bg);
    border-color: var(--line);
}

.filter-bar {
    margin-bottom: 1.1rem;
    max-width: 280px;
}

/* ---------- Schedule grid ---------- */

.schedule-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.schedule {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.schedule th, .schedule td {
    border: 1px solid var(--line);
    padding: 0.5rem;
    vertical-align: top;
    min-width: 115px;
}

.schedule thead th {
    background: #fafbfe;
    font-size: 0.82rem;
    color: var(--muted);
}

.schedule tbody th {
    background: #fcfcfd;
    text-align: left;
    width: 100px;
}

.period { display: block; font-weight: 700; color: var(--ink); }
.time { display: block; font-size: 0.73rem; color: var(--muted); }

.lesson-cell {
    position: relative;
    background: color-mix(in srgb, var(--c) 12%, white);
    border-left: 3px solid var(--c);
    border-radius: 10px;
    padding: 0.45rem 0.5rem;
    min-height: 3.2rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lesson-cell:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}

.lesson-cell strong { display: block; font-size: 0.87rem; color: var(--ink); }
.lesson-cell small { color: var(--muted); }

.lesson-cell small.teacher-missing {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #b45309;
    font-weight: 600;
    font-size: 0.72rem;
}

.cell-del {
    position: absolute;
    top: 0.12rem;
    right: 0.22rem;
}

.cell-del button {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1;
    transition: color 0.15s ease;
}

.cell-del button:hover { color: var(--err); }

.assign summary {
    list-style: none;
    cursor: pointer;
    color: var(--muted);
    text-align: center;
    padding: 0.6rem;
    border-radius: 10px;
    border: 1px dashed var(--line-strong);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.assign summary:hover {
    background: var(--brand-soft);
    color: var(--brand-2);
    border-color: #c7d2fe;
}

.assign summary::-webkit-details-marker { display: none; }
.assign[open] summary { display: none; }

.assign-form {
    display: grid;
    gap: 0.4rem;
    padding: 0.25rem;
}

/* ---------- Rules ---------- */

.info-strip {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
}

@media (min-width: 720px) {
    .info-strip { grid-template-columns: repeat(4, 1fr); }
}

.settings-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .settings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .settings-grid { grid-template-columns: repeat(3, 1fr); }
}

.settings-form label span,
.rule-value span {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.rules-list { display: grid; gap: 0.7rem; }

.rule-item {
    display: grid;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    align-items: end;
    transition: border-color 0.15s ease;
}

.rule-item:hover { border-color: var(--line-strong); }

.rule-meta {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.rule-meta strong {
    font-size: 0.95rem;
}

.rule-help {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--muted, #64748b);
}

.rule-key {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    color: var(--muted-2);
    background: var(--bg);
    border-radius: 6px;
    border: 1px solid var(--line);
}

.rule-values {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
}

.rule-prefix-toggle {
    margin-top: 0.15rem;
}

.rule-prefix-fieldset {
    margin: 0.15rem 0 0;
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    background: var(--bg);
}

.rule-prefix-fieldset legend {
    font-size: 0.78rem;
    color: var(--muted);
    padding: 0 0.25rem;
}

.rule-item-wide {
    grid-template-columns: 1fr;
}

@media (min-width: 800px) {
    .rule-item {
        grid-template-columns: 1.8fr 0.9fr auto auto;
        align-items: center;
    }

    .rule-item-wide {
        grid-template-columns: 1.4fr 1.6fr auto auto;
        align-items: start;
    }
}

.check {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    grid-auto-flow: column;
}

.check input { width: auto; }

/* =========================================================
   Yönetim sayfası
   ========================================================= */

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--brand-soft), #ecfeff);
    border-color: #e0e7ff;
}

.cta-panel h2 { margin-bottom: 0.15rem; }

.tabs { display: grid; gap: 1.1rem; }

.tab-bar {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.3rem;
    box-shadow: var(--shadow-xs);
    width: fit-content;
    max-width: 100%;
}

.tab-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    font-size: 0.87rem;
    padding: 0.55rem 1rem;
    border-radius: 9px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.tab-btn:hover { color: var(--ink); background: var(--bg); }

.tab-btn.is-active {
    background: var(--brand);
    color: #fff;
}

.tab-ico { font-size: 0.92rem; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.form-panel h2 { margin-bottom: 0.15rem; }
.form-panel > p { margin: 0 0 0.9rem; }

.icon-btn {
    flex: none;
    appearance: none;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
    background: var(--err-soft);
    border-color: #fecaca;
    color: var(--err);
}

.empty-mini {
    text-align: center;
    padding: 1.75rem 1rem;
    background: var(--bg);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.89rem;
}

/* =========================================================
   Kontrol Paneli (admin dashboard) bileşenleri
   ========================================================= */

.dash-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 960px) {
    .dash-grid { grid-template-columns: 1.6fr 1fr; }
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.panel-title-row h2 { margin: 0; }

.fill-list { display: grid; gap: 0.7rem; }

.fill-row {
    display: grid;
    grid-template-columns: 68px 1fr 60px;
    align-items: center;
    gap: 0.85rem;
}

.fill-name {
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress {
    height: 8px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--line);
    overflow: hidden;
}

.progress > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transition: width 0.4s var(--ease);
}

.fill-pct {
    text-align: right;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
}

.quick-actions {
    display: grid;
    gap: 0.6rem;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    text-decoration: none;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.quick-action:hover {
    border-color: #c7d2fe;
    box-shadow: var(--shadow-xs);
    transform: translateX(2px);
}

.quick-action-ico {
    flex: none;
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-soft);
    font-size: 1.05rem;
}

.quick-action-text { display: grid; gap: 0.05rem; min-width: 0; }
.quick-action-text strong { font-size: 0.89rem; }
.quick-action-text span { font-size: 0.78rem; color: var(--muted); }
.quick-action-arrow { margin-left: auto; color: var(--muted-2); }

.list-plain {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.list-plain li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}

.list-plain li:last-child { border-bottom: none; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
    .topbar { padding: 0.7rem 1rem; }
    .app-topbar { padding: 0.75rem 1rem; }
    .container { padding: 0 1rem; }
    .nav { order: 3; width: 100%; }
}

/* ---------- Öğretmen boşluğu uyarı kutusu ---------- */

.gap-report {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.gap-report-head {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.75rem;
}

.gap-report-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gap-report-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--surface, #fff);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
}

.gap-report-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.gap-report-form {
    display: flex;
    align-items: end;
    gap: 0.5rem;
}

.gap-report-input {
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
    gap: 0.15rem;
}

.gap-report-input input {
    width: 72px;
    padding: 0.3rem 0.4rem;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.gap-report-generic {
    margin-top: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px dashed rgba(239, 68, 68, 0.3);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
}

.gap-report-generic p {
    margin: 0;
}

/* ---------- Otomatik program kontrol raporu ---------- */

.validation-report {
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
}

.validation-report.is-ok {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.35);
}

.validation-report.is-warn {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.35);
}

.validation-report.is-error {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.3);
}

.validation-report-head {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.65rem;
}

.validation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.validation-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.validation-badge.is-error {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
}

.validation-badge.is-warn {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.3);
}

.validation-issue-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: min(42vh, 360px);
    overflow: auto;
}

.validation-issue {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.65rem;
    font-size: 0.85rem;
    line-height: 1.35;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    background: var(--surface, #fff);
    border: 1px solid var(--line);
}

.validation-issue.is-error {
    border-color: rgba(239, 68, 68, 0.28);
}

.validation-issue.is-warn {
    border-color: rgba(245, 158, 11, 0.3);
}

.validation-cat {
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted, #64748b);
}

/* ---------- Öğretmen/sınıf görünüm sekmeleri ---------- */

.view-tabs {
    display: flex;
    gap: 0.4rem;
}

/* ---------- Yazdır seçim diyaloğu ---------- */

.print-dialog {
    border: none;
    border-radius: 16px;
    padding: 0;
    max-width: min(480px, 94vw);
    width: 100%;
    background: transparent;
}

.print-dialog::backdrop {
    background: rgba(15, 23, 42, 0.45);
}

.print-dialog-card {
    background: var(--surface, #fff);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: min(80vh, 640px);
}

.print-dialog-head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.print-dialog-head .muted {
    margin: 0;
    font-size: 0.85rem;
}

.print-dialog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--line);
}

.print-dialog-list {
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 40vh;
    padding-right: 0.25rem;
}

.print-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
}

.print-option:hover {
    background: rgba(15, 118, 110, 0.06);
}

.print-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--line);
}

.print-dialog-card .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.print-dialog-card .form-field span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text, #1e293b);
}

.print-dialog-card .form-field em {
    color: #dc2626;
    font-style: normal;
}

.print-dialog-card .form-field input[type="text"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 8px;
    font: inherit;
    box-sizing: border-box;
}

.print-dialog-card .form-field input[type="text"]:focus {
    outline: 2px solid rgba(79, 70, 229, 0.35);
    border-color: #6366f1;
}

.print-dialog-card .form-field select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 8px;
    font: inherit;
    box-sizing: border-box;
    background: #fff;
}

.print-dialog-card .form-field .tiny {
    margin-top: 0.15rem;
}

/* ---------- Otomatik program diyalogu / program listesi ---------- */

.auto-prefix-all {
    margin-bottom: 0.45rem;
}

#auto-prefix-fieldset em {
    color: #dc2626;
    font-style: normal;
}

.wizard-dialog {
    max-width: min(560px, 94vw);
}

.wizard-dialog .print-dialog-card,
.wizard-card {
    max-width: 100%;
    max-height: min(88vh, 720px);
}

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
}

.wizard-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid var(--line, #e2e8f0);
    background: #f8fafc;
    border-radius: 999px;
    padding: 0.35rem 0.45rem;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted, #64748b);
    cursor: default;
}

.wizard-step span {
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.7rem;
}

.wizard-step.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.wizard-step.is-active span,
.wizard-step.is-done span {
    background: #2563eb;
    color: #fff;
}

.wizard-step.is-done {
    color: #1e40af;
}

.wizard-panels {
    min-height: 220px;
    overflow: auto;
}

.wizard-panel {
    display: none;
    flex-direction: column;
    gap: 0.65rem;
}

.wizard-panel.is-active {
    display: flex;
}

.wizard-select-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.wizard-select-head strong {
    font-size: 0.9rem;
}

.wizard-check-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 28vh;
    overflow: auto;
    padding: 0.35rem;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 10px;
    background: #f8fafc;
}

.wizard-check-item {
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
}

.wizard-check-item:hover {
    background: rgba(37, 99, 235, 0.06);
}

.wizard-actions {
    flex-wrap: wrap;
}

.wizard-page {
    max-width: 720px;
}

.wizard-page-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wizard-page .wizard-panels {
    min-height: 280px;
}

.wizard-page .wizard-check-list {
    max-height: 40vh;
}

.wizard-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line, #e2e8f0);
}

.program-list-page {
    display: grid;
    gap: 0.75rem;
}

.program-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 12px;
    background: #fff;
}

.program-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

.program-card-head h3 {
    margin: 0;
    font-size: 1rem;
}

.program-card-head h3 a {
    color: inherit;
    text-decoration: none;
}

.program-card-head h3 a:hover {
    color: #2563eb;
}

.program-card-main p {
    margin: 0.15rem 0 0;
}

.program-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.program-prefix-edit-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.45rem;
}

.empty-slot-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
    max-height: 22rem;
    overflow: auto;
}

.empty-slot-list li {
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.35;
}

.program-detail-grid-page {
    margin-top: 0.75rem;
}

@media (max-width: 720px) {
    .program-card {
        grid-template-columns: 1fr;
    }

    .program-card-actions {
        justify-content: flex-start;
    }
}

.programs-panel {
    margin-bottom: 1rem;
}

.programs-layout {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.2fr);
    gap: 1rem;
    align-items: start;
}

@media (max-width: 720px) {
    .programs-layout {
        grid-template-columns: 1fr;
    }

    .wizard-step {
        font-size: 0;
        gap: 0;
    }

    .wizard-step span {
        font-size: 0.7rem;
    }
}

.program-history-list {
    display: grid;
    gap: 0.4rem;
    max-height: 320px;
    overflow: auto;
    padding-right: 0.15rem;
}

.program-history-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
    align-items: center;
    border: 1px solid var(--line, #e2e8f0);
    background: #fff;
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    color: inherit;
}

.program-history-item:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.program-history-item.is-selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1px #2563eb inset;
}

.program-history-link {
    display: grid;
    gap: 0.15rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.program-status {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.15rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.program-status.is-done {
    background: #dcfce7;
    color: #166534;
}

.program-status.is-pending {
    background: #fef3c7;
    color: #92400e;
}

.program-continue-btn {
    white-space: nowrap;
}

.program-detail {
    padding: 0.75rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--line, #e2e8f0);
}

.program-detail h4 {
    margin: 0 0 0.55rem;
    font-size: 0.9rem;
}

.program-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.75rem;
    margin: 0;
}

.program-detail-grid dt {
    color: var(--muted, #64748b);
    font-size: 0.75rem;
}

.program-detail-grid dd {
    margin: 0.1rem 0 0;
    font-size: 0.85rem;
    font-weight: 600;
}

.program-detail-extra {
    margin: 0.7rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.8rem;
    color: var(--muted, #64748b);
}

.program-detail-extra:empty {
    display: none;
}

/* ---------- Prefix tamamlayıcı ---------- */

.prefix-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
    min-height: 0;
}

.prefix-suggest:empty {
    display: none;
}

.prefix-chip {
    border: 1px solid var(--line, #e2e8f0);
    background: #f8fafc;
    color: var(--text, #1e293b);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.prefix-chip:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: #a5b4fc;
}

.prefix-chip[hidden] {
    display: none !important;
}

.prefix-fieldset {
    border: 1px solid var(--line, #e2e8f0);
    border-radius: 10px;
    padding: 0.65rem 0.8rem 0.75rem;
    margin: 0;
}

.prefix-fieldset legend {
    padding: 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted, #64748b);
}

.prefix-fieldset > .tiny {
    margin: 0 0 0.5rem;
}

.lesson-hours-fieldset {
    display: grid;
    gap: 0.45rem;
}

.lesson-hours-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.lesson-hours-row .lesson-hours-label {
    font-size: 0.9rem;
}

.lesson-hours-row input[type="number"] {
    width: 4.5rem;
    padding: 0.35rem 0.45rem;
}

.lesson-hours-row input[type="number"]:disabled {
    opacity: 0.45;
}

.prefix-check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
}

/* ---------- Gizli workspace ---------- */

body.workspace-alt {
    --ws-frame: #0f766e;
    --ws-frame-w: 5px;
}

.ws-frame {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
    border: var(--ws-frame-w) solid var(--ws-frame);
    box-sizing: border-box;
}

.ws-frame-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--ws-frame);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
}

.ws-frame-badge--top {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ws-frame-badge--bottom {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

.ws-frame-badge--left {
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.ws-frame-badge--right {
    right: 0;
    top: 50%;
    transform: translate(50%, -50%) rotate(90deg);
}

body.workspace-alt .brand-mark {
    background: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25);
}

body.workspace-alt .sidebar {
    border-right-color: rgba(15, 118, 110, 0.35);
}

.ws-gate {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.ws-gate[hidden] {
    display: none !important;
}

.ws-gate-card {
    width: min(320px, calc(100vw - 2rem));
    padding: 1.1rem 1.15rem 1rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    display: grid;
    gap: 0.75rem;
}

.ws-gate-card label {
    display: grid;
    gap: 0.35rem;
}

.ws-gate-card label span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.ws-gate-card input[type="password"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font: inherit;
}

.ws-gate-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.45rem;
}

/* ---------- Yazdırma ---------- */

.print-only { display: none; }

@media print {
    .no-print,
    .sidebar,
    .app-topbar,
    .topbar,
    .footer,
    .alert,
    details.assign,
    .cell-del {
        display: none !important;
    }

    .print-only { display: block; }

    body, .app-shell, .app-main, .container, .bg-mesh { background: #fff !important; }

    .schedule-scroll { overflow: visible !important; }

    .schedule {
        width: 100%;
        border-collapse: collapse;
    }

    .schedule th, .schedule td {
        border: 1px solid #999 !important;
        color: #000 !important;
    }

    .lesson-cell {
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .lesson-lock,
    .lesson-del,
    .slot-add {
        display: none !important;
    }

    body.is-printing .bg-mesh,
    body.is-printing .app-shell,
    body.is-printing .help-drawer,
    body.is-printing .saas-modal,
    body.is-printing .ws-frame {
        display: none !important;
    }

    body.is-printing #printRoot {
        display: block !important;
    }
}

/* Manage data tables (curriculum / assignments) */
.table-wrap {
    overflow-x: auto;
    max-width: 100%;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.data-table th,
.data-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
    vertical-align: top;
}
.data-table th {
    font-weight: 600;
    white-space: nowrap;
}
.data-table tr.err td {
    color: var(--danger, #b91c1c);
}

/* =========================================================
   SaaS UX Layer — Dashboard, Sidebar, Wizard, Onboarding
   ========================================================= */

.ico { display: inline-block; vertical-align: -0.2em; flex: none; }
.ico-inline { vertical-align: -0.15em; }

/* Sidebar collapse + tooltips */
.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.25rem;
}
.sidebar-collapse-btn {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 8px;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--muted);
    transition: background var(--motion), color var(--motion);
}
.sidebar-collapse-btn:hover { background: var(--brand-soft); color: var(--brand); }

.sidebar-divider {
    display: block;
    height: 1px;
    background: var(--line);
    margin: 0.65rem 0.4rem;
}

.sidebar-nav a,
.nav-help-btn {
    position: relative;
}
.nav-help-btn {
    appearance: none;
    border: 0;
    background: transparent;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    color: var(--muted);
    font: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
}
.nav-help-btn:hover { background: var(--bg); color: var(--ink); }

.sidebar-nav a.is-active {
    box-shadow: inset 3px 0 0 var(--brand);
}
.sidebar-nav a.tour-highlight {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    animation: pulse-soft 1.2s var(--ease) infinite;
}

.app-shell.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed); }
.app-shell.sidebar-collapsed .brand-text,
.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .sidebar-label,
.app-shell.sidebar-collapsed .user-meta,
.app-shell.sidebar-collapsed .sidebar-footer .btn .nav-label { display: none; }
.app-shell.sidebar-collapsed .sidebar-nav a,
.app-shell.sidebar-collapsed .nav-help-btn { justify-content: center; padding-inline: 0.75rem; }
.app-shell.sidebar-collapsed .userbox { justify-content: center; }
.app-shell.sidebar-collapsed .brand { justify-content: center; }
.app-shell.sidebar-collapsed .sidebar-top { justify-content: center; }
.app-shell.sidebar-collapsed .sidebar-collapse-btn { margin: 0 auto; }

/* Tooltip on collapsed sidebar */
.app-shell.sidebar-collapsed .sidebar-nav a[data-tooltip]::after,
.app-shell.sidebar-collapsed .nav-help-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--ink);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion);
    z-index: 80;
}
.app-shell.sidebar-collapsed .sidebar-nav a:hover::after,
.app-shell.sidebar-collapsed .nav-help-btn:hover::after { opacity: 1; }

.topbar-actions { margin-left: auto; display: flex; gap: 0.4rem; align-items: center; }
.icon-btn {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--surface);
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--muted);
    transition: background var(--motion), color var(--motion), border-color var(--motion);
}
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); border-color: #99f6e4; }

/* Page enter */
.page-enter { animation: page-in 0.35s var(--ease) both; }
@keyframes page-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(15,118,110,0.25); }
    50% { box-shadow: 0 0 0 6px rgba(15,118,110,0); }
}
.toast-enter { animation: toast-in 0.35s var(--ease) both; }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
}

/* Dashboard */
.dash-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    align-items: stretch;
}
.status-card {
    flex: 1 1 420px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-xs);
}
.status-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
}
.status-title { margin: 0 0 0.75rem; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.status-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--muted);
}
.status-chip.is-ok { background: var(--ok-soft); color: var(--ok); border-color: #a7f3d0; }
.status-chip.is-warn { background: var(--warn-soft); color: var(--warn); border-color: #fde68a; }
.status-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}
.status-facts dt { font-size: 0.72rem; color: var(--muted-2); margin: 0 0 0.15rem; }
.status-facts dd { margin: 0; font-weight: 650; font-size: 0.9rem; }
.dash-hero-side { display: flex; flex-direction: column; gap: 0.5rem; justify-content: center; }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.kpi-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-xs);
    transition: transform var(--motion), box-shadow var(--motion), border-color var(--motion);
    min-height: 8.5rem;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: #99f6e4;
}
.kpi-top { display: flex; justify-content: space-between; align-items: center; }
.kpi-icon {
    width: 2.1rem; height: 2.1rem; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand);
}
.kpi-check {
    width: 1.35rem; height: 1.35rem; border-radius: 999px;
    display: grid; place-items: center;
    background: var(--ok-soft); color: var(--ok);
}
.kpi-value { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.03em; margin-top: 0.35rem; }
.kpi-label { font-weight: 650; font-size: 0.92rem; }
.kpi-desc { font-size: 0.75rem; color: var(--muted); }
.kpi-bar {
    margin-top: auto;
    height: 4px;
    border-radius: 99px;
    background: var(--bg);
    overflow: hidden;
}
.kpi-bar > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    border-radius: 99px;
    transition: width 0.5s var(--ease);
}

.dash-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1rem;
    align-items: start;
}
.dash-col-main, .dash-col-side { display: grid; gap: 1rem; }
.panel-soft { background: #fafbfc; }
.readiness-panel .ready-badge {
    font-weight: 750;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
}
.ready-badge.is-green { background: var(--ok-soft); color: var(--ok); }
.ready-badge.is-yellow { background: var(--warn-soft); color: var(--warn); }
.ready-badge.is-red { background: var(--err-soft); color: var(--err); }
.ready-track {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.ready-step {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--surface);
}
.ready-dot {
    width: 1.1rem; height: 1.1rem; border-radius: 999px;
    display: grid; place-items: center;
    background: var(--bg);
}
.ready-step.is-green { background: var(--ok-soft); border-color: #a7f3d0; color: var(--ok); }
.ready-step.is-yellow { background: var(--warn-soft); border-color: #fde68a; color: var(--warn); }
.ready-step.is-red { background: var(--err-soft); border-color: #fecaca; color: var(--err); }

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.55rem;
}
.quick-tile {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
    background: var(--surface);
    transition: border-color var(--motion), transform var(--motion), background var(--motion);
}
.quick-tile:hover { border-color: #99f6e4; transform: translateY(-1px); background: var(--brand-soft); }
.quick-tile-accent { border-color: #99f6e4; background: var(--brand-soft); }
.quick-tile strong { font-size: 0.88rem; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline-item {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-dot {
    width: 10px; height: 10px; border-radius: 999px;
    background: var(--brand); margin-top: 0.35rem;
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.timeline-body { display: grid; gap: 0.15rem; }
.health-list, .tip-list, .todo-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.health-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.55rem 0.65rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
    font-size: 0.86rem;
}
.health-list li.is-ok strong { color: var(--ok); }
.health-list li.is-warn strong { color: var(--warn); }
.health-list li.is-err strong { color: var(--err); }
.tip-list li { font-size: 0.86rem; color: var(--muted); padding-left: 0.9rem; position: relative; }
.tip-list li::before { content: ""; position: absolute; left: 0; top: 0.55rem; width: 5px; height: 5px; border-radius: 99px; background: var(--brand); }
.shortcut-list { display: grid; gap: 0.35rem; }
.shortcut-list a {
    display: block; padding: 0.5rem 0.65rem; border-radius: 8px;
    text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
    font-size: 0.86rem; transition: background var(--motion);
}
.shortcut-list a:hover { background: var(--brand-soft); }
.todo-mini li a { color: var(--brand); font-weight: 600; text-decoration: none; font-size: 0.88rem; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #fafbfc);
}
.empty-state-icon {
    width: 3rem; height: 3rem; margin: 0 auto 0.85rem;
    border-radius: 14px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand);
}
.empty-state-title { margin: 0 0 0.35rem; font-size: 1.05rem; }
.empty-state-desc { margin: 0 0 1rem; color: var(--muted); font-size: 0.9rem; max-width: 28rem; margin-inline: auto; }

/* Step track */
.step-track {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0;
    margin: 0 0 1.25rem;
    padding: 0.65rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
}
.step-track-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    padding-right: 1.1rem;
    flex: 1 1 auto;
    min-width: 0;
}
.step-track-dot {
    width: 1.55rem; height: 1.55rem; border-radius: 999px;
    display: grid; place-items: center;
    font-size: 0.72rem; font-weight: 700;
    background: var(--bg); color: var(--muted); border: 1px solid var(--line);
    flex: none;
}
.step-track-label { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-track-line {
    position: absolute; right: 0.2rem; top: 50%;
    width: 0.55rem; height: 1px; background: var(--line-strong);
}
.step-track-item.is-active .step-track-dot { background: var(--brand); color: #fff; border-color: var(--brand); }
.step-track-item.is-active .step-track-label { color: var(--ink); font-weight: 650; }
.step-track-item.is-done .step-track-dot { background: var(--ok-soft); color: var(--ok); border-color: #a7f3d0; }
.step-track-item.is-done .step-track-label { color: var(--ok); }

/* Why box */
.why-box {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    margin-bottom: 1rem;
    overflow: hidden;
}
.why-box-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
}
.why-box-body {
    display: none;
    padding: 0 0.85rem 0.85rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}
.why-box.is-open .why-box-body { display: block; animation: page-in 0.25s var(--ease); }
.why-chevron { margin-left: auto; transition: transform var(--motion); }
.why-box.is-open .why-chevron { transform: rotate(90deg); }

/* Help drawer */
.help-drawer { position: fixed; inset: 0; z-index: 90; }
.help-drawer[hidden] { display: none !important; }
.help-scrim {
    position: absolute; inset: 0;
    background: rgba(17, 24, 39, 0.35);
    opacity: 0; transition: opacity 0.22s ease;
}
.help-panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: min(400px, 100vw);
    background: var(--surface);
    box-shadow: -12px 0 40px rgba(17, 24, 39, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s var(--ease);
    display: flex; flex-direction: column;
}
.help-drawer.is-open .help-scrim { opacity: 1; }
.help-drawer.is-open .help-panel { transform: none; }
.help-panel-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 1.1rem 1.15rem; border-bottom: 1px solid var(--line);
}
.help-panel-head h2 { margin: 0.1rem 0 0; font-size: 1.15rem; }
.help-panel-body { padding: 1.1rem 1.15rem; overflow-y: auto; display: grid; gap: 1.15rem; }
.help-panel-body h3 { margin: 0 0 0.4rem; font-size: 0.92rem; }
.help-panel-body p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.help-list { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.88rem; }
.help-faq { border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.75rem; background: var(--bg); }
.help-faq summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; }
.help-faq p { margin-top: 0.45rem; }
.help-video-placeholder { padding: 0.85rem; border-radius: 10px; background: var(--bg); border: 1px dashed var(--line-strong); }

/* Onboarding */
.onboard-welcome {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center;
    background: rgba(17, 24, 39, 0.45);
    padding: 1rem;
}
.onboard-welcome[hidden] { display: none !important; }
.onboard-card {
    width: min(440px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.25);
    text-align: center;
    animation: page-in 0.35s var(--ease);
}
.onboard-icon {
    width: 3.2rem; height: 3.2rem; margin: 0 auto 0.9rem;
    border-radius: 16px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand);
}
.onboard-card h2 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.onboard-actions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 1.15rem; }
.onboard-tour {
    position: fixed; left: 1rem; bottom: 1rem; z-index: 95;
    max-width: min(360px, calc(100vw - 2rem));
}
.onboard-tour[hidden] { display: none !important; }
.onboard-tour-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
    animation: page-in 0.3s var(--ease);
}
.onboard-tour-card h3 { margin: 0.15rem 0 0.4rem; }

/* Wizard SaaS */
.wizard-steps-full {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.15rem;
}
.wizard-steps-full .wizard-step {
    flex: 1 1 auto;
    min-width: 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.35rem;
    border: 1px solid var(--line);
    background: var(--bg);
    border-radius: 10px;
    cursor: pointer;
    color: var(--muted);
    font: inherit;
    transition: background var(--motion), border-color var(--motion), color var(--motion), transform var(--motion);
}
.wizard-steps-full .wizard-step span {
    width: 1.5rem; height: 1.5rem; border-radius: 999px;
    display: grid; place-items: center;
    font-size: 0.72rem; font-weight: 700;
    background: var(--surface); border: 1px solid var(--line);
}
.wizard-steps-full .wizard-step em { font-style: normal; font-size: 0.68rem; font-weight: 600; }
.wizard-steps-full .wizard-step.is-active {
    background: var(--brand-soft); border-color: #99f6e4; color: var(--brand);
}
.wizard-steps-full .wizard-step.is-active span { background: var(--brand); color: #fff; border-color: var(--brand); }
.wizard-steps-full .wizard-step.is-done span { background: var(--ok-soft); color: var(--ok); border-color: #a7f3d0; }
.wizard-step-head h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.wizard-step-head p { margin: 0 0 0.85rem; }
.school-pill {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 0.9rem; border-radius: 12px;
    background: var(--brand-soft); border: 1px solid #99f6e4; margin-bottom: 0.9rem;
}
.school-pill strong { display: block; }
.check-report {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--bg);
    margin-bottom: 0.85rem;
}
.tone-pill {
    display: inline-flex;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.tone-pill.is-green { background: var(--ok-soft); color: var(--ok); }
.tone-pill.is-yellow { background: var(--warn-soft); color: var(--warn); }
.tone-pill.is-red { background: var(--err-soft); color: var(--err); }
.gen-progress { margin-bottom: 0.85rem; }
.gen-progress-bar {
    height: 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); overflow: hidden;
}
.gen-progress-bar > span {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--brand), #2dd4bf);
    transition: width 0.35s var(--ease);
}
.wizard-advanced { margin-top: 0.75rem; color: var(--muted); font-size: 0.85rem; }
.rules-section-title { margin: 1.1rem 0 0.55rem; font-size: 0.95rem; }

/* Responsive */
@media (max-width: 1200px) {
    .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dash-layout { grid-template-columns: 1fr; }
    .status-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wizard-steps-full .wizard-step em { display: none; }
    .status-facts { grid-template-columns: 1fr 1fr; }
    .onboard-tour { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; max-width: none; }
}
@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Program Kurulum Merkezi
   ========================================================= */

.setup-center { max-width: 1100px; margin: 0 auto; padding-bottom: 3rem; }

.setup-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.setup-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
}
.setup-title { margin: 0; font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; }
.setup-lead { margin: 0.35rem 0 0; max-width: 40rem; }
.setup-hero-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.setup-progress {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 0.5rem;
    z-index: 20;
    background: rgba(244, 245, 247, 0.92);
    backdrop-filter: blur(8px);
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-xs);
}
.setup-progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.45rem 0.25rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: background var(--motion), border-color var(--motion);
}
.setup-progress-item:hover { background: var(--surface); border-color: var(--line); }
.setup-progress-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--muted-2);
}
.setup-progress-item.is-done .setup-progress-dot { background: var(--ok); }
.setup-progress-item.is-missing .setup-progress-dot { background: var(--err); }
.setup-progress-item.is-warn .setup-progress-dot { background: var(--warn); }
.setup-progress-item.is-pending .setup-progress-dot { background: var(--muted-2); }
.setup-progress-label { font-size: 0.72rem; font-weight: 600; text-align: center; line-height: 1.2; }
.setup-progress-status { font-size: 0.65rem; color: var(--muted); }

.setup-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-xs);
    padding: 1.15rem 1.25rem 1.25rem;
    margin-bottom: 1rem;
    scroll-margin-top: 5.5rem;
    border-left: 3px solid var(--line-strong);
}
.setup-card.is-done { border-left-color: var(--ok); }
.setup-card.is-missing { border-left-color: var(--err); }
.setup-card.is-warn { border-left-color: var(--warn); }
.setup-card.is-pending { border-left-color: var(--muted-2); }
.setup-card.is-flash { animation: setupFlash 1.1s var(--ease); }
.setup-card.is-tour-focus {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    box-shadow: var(--shadow-hover);
}
@keyframes setupFlash {
    0%, 100% { background: var(--surface); }
    30% { background: var(--brand-soft); }
}

.setup-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.setup-card-title { display: flex; gap: 0.75rem; align-items: flex-start; }
.setup-card-title h2 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.setup-card-title p { margin: 0.15rem 0 0; }
.setup-card-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    flex-shrink: 0;
}

.setup-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--muted);
}
.setup-badge.is-done { background: var(--ok-soft); color: var(--ok); }
.setup-badge.is-missing { background: var(--err-soft); color: var(--err); }
.setup-badge.is-warn { background: var(--warn-soft); color: var(--warn); }

.setup-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}
.setup-kpi {
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
}
.setup-kpi span { display: block; font-size: 0.7rem; color: var(--muted); }
.setup-kpi strong { font-size: 1.05rem; }
.setup-kpi.is-ok strong { color: var(--ok); }
.setup-kpi.is-err strong { color: var(--err); }
.setup-kpi.is-warn strong { color: var(--warn); }

.setup-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}
.setup-grid-3 label,
.setup-form label,
.setup-modal-body label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
}
.setup-grid-3 label span,
.setup-form label span,
.setup-modal-body label span {
    font-weight: 500;
    color: var(--muted);
    font-size: 0.78rem;
}
.setup-grid-3 input,
.setup-grid-3 select,
.setup-form input,
.setup-form select,
.setup-table input,
.setup-table select,
.setup-modal-body input,
.setup-modal-body select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    font: inherit;
    background: #fff;
}
.setup-span-2 { grid-column: span 2; }
.setup-fact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.45rem 0;
}
.setup-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    align-items: center;
}
.setup-empty {
    padding: 1.25rem;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    text-align: center;
    color: var(--muted);
}
.setup-empty p { margin: 0.2rem 0; }
.setup-advanced {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}
.setup-advanced summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--muted);
}
.setup-bar {
    height: 8px;
    background: #eef0f3;
    border-radius: 999px;
    overflow: hidden;
}
.setup-bar > span {
    display: block;
    height: 100%;
    background: var(--brand);
    border-radius: inherit;
}

.setup-table td, .setup-table th { vertical-align: middle; }
.setup-table input[type="text"],
.setup-table input[type="number"],
.setup-table select { width: 100%; min-width: 4rem; }
.setup-table tr.is-row-error { background: var(--err-soft); }
.setup-table tr.is-row-warn { background: var(--warn-soft); }
.setup-inline-form { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; margin: 0; }
.setup-stack { flex-direction: column; align-items: stretch; }

.pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: #f3f4f6;
}
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-err { background: var(--err-soft); color: var(--err); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }

.setup-grade-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin: 0.75rem 0;
}
.setup-grade-tab {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 0.35rem 0.7rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.setup-grade-tab.is-active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}
.setup-batch {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    padding: 0.65rem;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.setup-alert {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    margin-bottom: 0.85rem;
    border: 1px solid var(--line);
}
.setup-alert.is-err { background: var(--err-soft); border-color: #fecaca; }
.setup-alert.is-warn { background: var(--warn-soft); border-color: #fde68a; }
.setup-alert ul { margin: 0.4rem 0 0; padding-left: 1rem; }

.setup-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.setup-profile {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
}
.setup-profile.is-active,
.setup-profile:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
}
.setup-profile input { accent-color: var(--brand); }

.setup-rule-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.65rem;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.setup-check-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}
.setup-check-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.7rem;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.setup-check-card.is-ok { border-color: #a7f3d0; background: var(--ok-soft); }
.setup-check-card.is-err { border-color: #fecaca; background: var(--err-soft); }
.setup-check-card.is-warn { border-color: #fde68a; background: var(--warn-soft); }
.setup-check-card span { font-size: 0.78rem; color: var(--muted); }

.setup-issue-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}
.setup-issue-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
}

.setup-stages {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}
.setup-stages li {
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    background: #f3f4f6;
    color: var(--muted);
    font-size: 0.85rem;
}
.setup-stages li.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.setup-stages li.is-done { background: var(--ok-soft); color: var(--ok); }

.setup-toast-host {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: min(360px, calc(100vw - 2rem));
}
.setup-toast {
    background: #111827;
    color: #fff;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    font-size: 0.85rem;
    box-shadow: var(--shadow);
    animation: toastIn 0.25s var(--ease);
}
.setup-toast.is-err { background: var(--err); }
.setup-toast.is-warn { background: var(--warn); }
.setup-toast.is-out { opacity: 0; transition: opacity 0.25s; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

dialog.setup-modal {
    border: none;
    border-radius: 12px;
    padding: 0;
    width: min(440px, calc(100vw - 2rem));
    box-shadow: var(--shadow-hover);
}
dialog.setup-modal::backdrop { background: rgba(17, 24, 39, 0.4); }
.setup-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem 1.1rem 1.1rem;
}
.setup-modal-body header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.setup-modal-body header h3 { margin: 0; font-size: 1.05rem; }
.setup-modal-body footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.setup-tour {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
}
.setup-tour-card {
    pointer-events: auto;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: min(360px, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-hover);
}
.setup-tour-card h3 { margin: 0.2rem 0 0.35rem; font-size: 1rem; }
.setup-tour-card p { margin: 0; }
.setup-tour-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-top: 0.85rem;
}

@media (max-width: 960px) {
    .setup-progress { grid-template-columns: repeat(4, 1fr); }
    .setup-grid-3 { grid-template-columns: 1fr 1fr; }
    .setup-check-grid { grid-template-columns: repeat(2, 1fr); }
    .setup-profile-grid { grid-template-columns: 1fr; }
    .setup-span-2 { grid-column: span 2; }
}
@media (max-width: 640px) {
    .setup-progress { grid-template-columns: repeat(2, 1fr); position: static; }
    .setup-grid-3 { grid-template-columns: 1fr; }
    .setup-span-2 { grid-column: span 1; }
    .setup-title { font-size: 1.35rem; }
    .setup-check-grid { grid-template-columns: 1fr; }
}

/* Setup group save */
.setup-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.65rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.setup-save-bar.is-dirty {
    border-color: var(--warn);
    background: var(--warn-soft);
}
.setup-save-bar p { margin: 0; }
.setup-group-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}
.setup-assign-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 12rem;
}
.setup-assign-row select { width: 100%; }

/* ========== Kademeli Program Kurulum Merkezi ========== */
.ss-center { max-width: 1100px; margin: 0 auto; padding: 0 0 3rem; }
.ss-hero {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    margin-bottom: 1.25rem; padding: 1.25rem 0 0.5rem;
}
.ss-eyebrow { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--brand, #0f766e); }
.ss-title { margin: 0 0 0.35rem; font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; }
.ss-lead { margin: 0; max-width: 36rem; }
.ss-hero-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: flex-start; }
.ss-chip {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.3rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
    background: rgba(15, 118, 110, 0.08); color: var(--ink, #0f172a);
}
.ss-chip.is-ok { background: var(--ok-soft, #d1fae5); color: var(--ok, #047857); }
.ss-chip.is-warn { background: #fef3c7; color: #b45309; }

.ss-stepper {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem;
    margin-bottom: 1.25rem; position: sticky; top: 0; z-index: 20;
    padding: 0.5rem 0; background: linear-gradient(180deg, var(--bg, #f8fafc) 70%, transparent);
}
.ss-step {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem;
    padding: 0.55rem 0.5rem; border-radius: 12px; border: 1px solid var(--border, #e2e8f0);
    background: #fff; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, transform .12s;
    font: inherit; color: inherit;
}
.ss-step:hover { border-color: var(--brand, #0f766e); }
.ss-step.is-viewport { box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25); }
.ss-step.is-done { border-color: #a7f3d0; background: #f0fdf4; }
.ss-step.is-missing { border-color: #fecaca; background: #fef2f2; }
.ss-step.is-active { border-color: #99f6e4; background: #f0fdfa; }
.ss-step-num {
    width: 1.35rem; height: 1.35rem; border-radius: 999px; display: grid; place-items: center;
    font-size: 0.7rem; font-weight: 800; background: var(--surface-2, #f1f5f9); color: var(--muted, #64748b);
}
.ss-step.is-done .ss-step-num { background: var(--ok, #047857); color: #fff; }
.ss-step.is-active .ss-step-num, .ss-step.is-viewport .ss-step-num { background: var(--brand, #0f766e); color: #fff; }
.ss-step-ico { color: var(--brand, #0f766e); display: none; }
.ss-step-body { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.ss-step-body strong { font-size: 0.72rem; font-weight: 700; line-height: 1.2; }
.ss-step-body em { font-style: normal; font-size: 0.62rem; color: var(--muted, #64748b); font-weight: 600; }

.ss-section { margin-bottom: 1rem; scroll-margin-top: 5.5rem; }
.ss-section.is-flash { animation: ssFlash 0.9s ease; }
@keyframes ssFlash {
    0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.35); }
    100% { box-shadow: 0 0 0 8px transparent; }
}
.ss-section-head { margin-bottom: 0.85rem; }
.ss-section-head h2 {
    margin: 0 0 0.25rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.4rem;
}
.ss-section-head p { margin: 0; }
.ss-subhead {
    margin: 1.25rem 0 0.5rem; font-size: 0.95rem; display: flex; align-items: center; gap: 0.35rem;
}

.ss-grid-3, .ss-grid-4 {
    display: grid; gap: 0.65rem; margin-bottom: 0.85rem;
}
.ss-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ss-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ss-stat {
    padding: 0.7rem 0.85rem; border-radius: 12px; background: var(--surface-2, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
}
.ss-stat strong { display: block; margin-top: 0.15rem; font-size: 0.95rem; }

.ss-form-row {
    display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: flex-end; margin-top: 0.5rem;
}
.ss-form-row label {
    display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.78rem; font-weight: 600; color: var(--muted);
}
.ss-form-row label.grow { flex: 1 1 220px; }
.ss-form-row input, .ss-form-row select {
    min-width: 7rem; padding: 0.45rem 0.55rem; border-radius: 8px; border: 1px solid var(--border);
    font: inherit; color: inherit; background: #fff;
}

.ss-banner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
    margin-top: 0.75rem; padding: 0.65rem 0.85rem; border-radius: 10px; font-size: 0.88rem;
}
.ss-banner.is-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.ss-banner a { font-weight: 700; color: inherit; }

.ss-recommend {
    padding: 0.55rem 0.75rem; border-radius: 10px; background: #f0fdfa;
    border: 1px solid #99f6e4; font-size: 0.88rem; margin: 0 0 0.75rem;
}
.ss-order-warn { color: #b45309 !important; margin: 0 0 0.5rem; }

.ss-level-select { display: grid; gap: 0.45rem; }
.ss-level-pick {
    display: grid; grid-template-columns: auto 1fr auto; gap: 0.65rem; align-items: center;
    padding: 0.65rem 0.8rem; border-radius: 12px; border: 1px solid var(--border); background: #fff; cursor: pointer;
}
.ss-level-pick:hover { border-color: var(--brand); }
.ss-level-pick span strong { display: block; font-size: 0.92rem; }
.ss-level-pick span em { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.ss-order-badge {
    font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.45rem; border-radius: 6px;
    background: var(--surface-2); color: var(--muted);
}

.ss-actions-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0.85rem; }

.ss-level-preflight, .ss-level-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.75rem;
}
.ss-pf-card, .ss-level-card {
    border: 1px solid var(--border); border-radius: 14px; padding: 0.85rem; background: #fff;
    display: flex; flex-direction: column; gap: 0.55rem;
}
.ss-pf-card header, .ss-level-card header {
    display: flex; justify-content: space-between; align-items: center; gap: 0.4rem;
}
.ss-pf-card header strong, .ss-level-card h3 { margin: 0; font-size: 1rem; }
.ss-pf-meta { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem; font-size: 0.78rem; color: var(--muted); }
.ss-pf-errors { margin: 0; padding-left: 1rem; font-size: 0.8rem; color: #b91c1c; }
.ss-pf-errors a { color: inherit; }

.ss-badge {
    display: inline-flex; align-items: center; gap: 0.2rem;
    font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.45rem; border-radius: 999px;
    background: var(--surface-2); color: var(--muted);
}
.ss-badge.is-ok { background: #d1fae5; color: #047857; }
.ss-badge.is-err { background: #fee2e2; color: #b91c1c; }

.ss-status {
    font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px;
    background: var(--surface-2); color: var(--muted);
}
.ss-level-card.is-ready .ss-status { background: #ccfbf1; color: #0f766e; }
.ss-level-card.is-committed .ss-status { background: #d1fae5; color: #047857; }
.ss-level-card.is-preview .ss-status { background: #e0e7ff; color: #3730a3; }
.ss-level-card.is-generating .ss-status { background: #fef3c7; color: #b45309; }
.ss-level-card.is-failed .ss-status, .ss-level-card.is-regen .ss-status { background: #fee2e2; color: #b91c1c; }

.ss-dl {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.65rem; margin: 0; font-size: 0.8rem;
}
.ss-dl dt { color: var(--muted); font-weight: 500; }
.ss-dl dd { margin: 0; font-weight: 700; }
.ss-result p { margin: 0; font-size: 0.82rem; }
.ss-card-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; }
.ss-msg { margin: 0; color: var(--muted); }
.ss-msg.is-err { color: #b91c1c; }

.ss-progress-line { margin-top: 0.85rem; }
.ss-progress-bar {
    height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-bottom: 0.35rem;
}
.ss-progress-bar span {
    display: block; height: 100%; width: 40%; border-radius: inherit; background: var(--brand);
    animation: ssSlide 1.1s ease-in-out infinite;
}
@keyframes ssSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(280%); }
}

.ss-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.ss-table th, .ss-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--border); text-align: left; }
.ss-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

.ss-toast-host {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 80; display: flex; flex-direction: column; gap: 0.4rem;
}
.ss-toast {
    padding: 0.65rem 0.9rem; border-radius: 10px; background: #0f172a; color: #fff;
    font-size: 0.88rem; font-weight: 600; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
    transition: opacity .25s, transform .25s;
}
.ss-toast.is-err { background: #b91c1c; }
.ss-toast.is-out { opacity: 0; transform: translateY(6px); }

@media (max-width: 900px) {
    .ss-stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ss-step-body strong { font-size: 0.65rem; }
    .ss-grid-3, .ss-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ss-stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ss-grid-3, .ss-grid-4 { grid-template-columns: 1fr; }
    .ss-step-body em { display: none; }
}

/* Müfredat builder */
.ss-cur-capacity {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    padding: 0.75rem 0.9rem; border-radius: 12px; margin-bottom: 0.85rem;
    border: 1px solid var(--border, #e2e8f0); background: var(--surface-2, #f8fafc);
}
.ss-cur-capacity.is-ready { border-color: #a7f3d0; background: #f0fdf4; }
.ss-cur-capacity.is-short { border-color: #fde68a; background: #fffbeb; }
.ss-cur-capacity.is-over { border-color: #fecaca; background: #fef2f2; }
.ss-cur-capacity strong { display: block; font-size: 0.95rem; }
.ss-cur-capacity .ss-badge.is-warn { background: #fef3c7; color: #b45309; }
.ss-cur-modes { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.ss-cur-modes .btn.is-active { box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2); }
.ss-cur-tools {
    display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.65rem 0;
}
.ss-cur-tools input[type="search"] {
    flex: 1 1 160px; padding: 0.45rem 0.6rem; border-radius: 8px; border: 1px solid var(--border);
    font: inherit;
}
.ss-cur-picker { display: grid; gap: 0.65rem; margin-bottom: 0.75rem; max-height: 220px; overflow: auto; }
.ss-cur-cat strong { display: block; font-size: 0.78rem; margin-bottom: 0.3rem; color: var(--muted); }
.ss-cur-cat-lessons { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ss-cur-chip {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.78rem; padding: 0.25rem 0.5rem; border-radius: 8px;
    border: 1px solid var(--border); background: #fff; cursor: pointer;
}
.ss-cur-chip.is-on { border-color: var(--brand); background: #f0fdfa; }
.ss-cur-grid input.ss-cur-inp, .ss-cur-grid select.ss-cur-inp {
    width: 100%; max-width: 6.5rem; padding: 0.3rem 0.4rem; border-radius: 6px;
    border: 1px solid var(--border); font: inherit;
}
.ss-cur-grid input[data-f="block_plan"] { max-width: 7.5rem; }
.ss-cur-preview {
    margin-top: 0.85rem; padding: 0.85rem; border-radius: 12px;
    border: 1px solid var(--border); background: #fff;
}
.ss-cur-preview-list { margin: 0.4rem 0 0; padding-left: 1.1rem; font-size: 0.85rem; }
.ss-cur-preview-list .is-err { color: #b91c1c; }
.ss-cur-missing { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.65rem; margin-bottom: 0.75rem; }
#ss-cur-msg.is-err { color: #b91c1c; }
