:root {
  --ink: #17372e;
  --muted: #6b7d77;
  --green: #0f5f49;
  --green-2: #177257;
  --mint: #dff3ea;
  --line: #dce7e2;
  --soft: #f5f9f7;
  --amber-bg: #fff7df;
  --amber: #8b6410;
  --red-bg: #fde8e6;
  --red: #a2362b;
  --shadow: 0 24px 70px rgba(17, 76, 59, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7faf8;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f7faf8; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* Giriş */
.auth-shell { display: grid; grid-template-columns: minmax(420px, .9fr) 1.1fr; min-height: 100vh; }
.auth-card { align-self: center; justify-self: center; max-width: 520px; padding: 54px; width: 100%; }
.brand-lockup { align-items: center; display: flex; font-size: 18px; font-weight: 800; gap: 11px; letter-spacing: -.2px; margin-bottom: 64px; }
.brand-mark { align-items: center; background: var(--green); border-radius: 11px 4px 11px 4px; color: white; display: inline-flex; flex: none; font-family: Georgia, serif; font-size: 24px; height: 42px; justify-content: center; width: 42px; }
.eyebrow { color: var(--green-2); font-size: 11px; font-weight: 850; letter-spacing: 1.6px; margin: 0 0 9px; text-transform: uppercase; }
.eyebrow.light { color: #bfe6d7; }
.auth-card h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4.6vw, 56px); font-weight: 500; letter-spacing: -2px; line-height: 1.04; margin: 0; }
.auth-lede { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 22px 0 28px; }
.auth-notice { background: var(--amber-bg); border-left: 3px solid #e0aa24; border-radius: 8px; color: #6e5620; font-size: 13px; line-height: 1.5; margin: 0 0 20px; padding: 12px 14px; }
.auth-notice.info { background: var(--mint); border-color: var(--green-2); color: var(--green); }
.form-stack { display: grid; gap: 18px; }
.form-stack label { color: #35544b; display: grid; font-size: 13px; font-weight: 750; gap: 8px; }
.form-stack input { background: #fbfdfc; border: 1px solid #bed0c8; border-radius: 12px; color: var(--ink); font-size: 16px; outline: none; padding: 14px 15px; width: 100%; }
.form-stack input:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(23, 114, 87, .12); }
.link-button { background: none; border: 0; color: var(--green); font-size: 13px; font-weight: 750; justify-self: start; padding: 0; text-decoration: underline; }
.privacy-copy { color: #80918b; font-size: 12px; line-height: 1.55; margin-top: 28px; }
.auth-visual { background: var(--green); color: #fff; display: flex; flex-direction: column; justify-content: end; overflow: hidden; padding: clamp(52px, 7vw, 110px); position: relative; }
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual h2 { font-family: Georgia, serif; font-size: clamp(38px, 4.4vw, 62px); font-weight: 400; letter-spacing: -2px; line-height: 1.06; margin: 0; max-width: 720px; }
.auth-visual ul { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 32px 0 0; padding: 0; }
.auth-visual li { color: #d8eee6; font-size: 14px; }
.auth-visual li::before { color: #70d1ad; content: "✓"; font-weight: 900; margin-right: 8px; }
.visual-grid { background-image: linear-gradient(#ffffff10 1px, transparent 1px), linear-gradient(90deg, #ffffff10 1px, transparent 1px); background-size: 62px 62px; inset: 0; mask-image: linear-gradient(to bottom, #000, transparent 80%); position: absolute; transform: perspective(800px) rotateX(58deg) scale(1.5); transform-origin: top; }

/* Düğmeler */
.button { background: var(--green); border: 0; border-radius: 12px; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; padding: 13px 18px; text-decoration: none; transition: .18s ease; white-space: nowrap; }
.button:hover { background: #0a4b39; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button-quiet { background: white; border: 1px solid var(--line); color: var(--green); }
.button-quiet:hover { background: var(--soft); }
.button-danger { background: white; border: 1px solid #efc6c1; color: var(--red); }
.button-danger:hover { background: var(--red-bg); }
.button-compact { border-radius: 10px; font-size: 13px; padding: 10px 14px; }

/* Uygulama iskeleti */
.app-shell { min-height: 100vh; }
.sidebar { background: #113d31; color: #dcebe5; display: flex; flex-direction: column; inset: 0 auto 0 0; padding: 28px 18px; position: fixed; width: 250px; z-index: 20; }
.brand-light { color: white; margin: 0 10px 30px; }
.brand-light span:last-child { line-height: 1.25; overflow-wrap: anywhere; }
.brand-light .brand-mark { background: #d7f2e7; color: var(--green); }
.org-switch { color: #a9c3b9; display: grid; font-size: 11px; font-weight: 800; gap: 6px; letter-spacing: .6px; margin: 0 10px 22px; text-transform: uppercase; }
.org-switch select { background: #ffffff12; border: 1px solid #ffffff22; border-radius: 9px; color: white; padding: 9px; text-transform: none; }
.org-switch option { color: var(--ink); }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { align-items: center; background: transparent; border: 0; border-radius: 10px; color: #a9c3b9; display: flex; font-weight: 700; gap: 13px; padding: 12px 13px; text-align: left; width: 100%; }
.nav-item span { font-size: 17px; text-align: center; width: 22px; }
.nav-item.active, .nav-item:hover { background: #ffffff12; color: #fff; }
.sidebar-footer { border-top: 1px solid #ffffff18; display: grid; gap: 6px; margin-top: auto; padding: 20px 10px 0; }
.sidebar-footer strong { color: white; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.sidebar-footer span { color: #a9c3b9; font-size: 11px; }
.sidebar-footer button { background: none; border: 0; color: white; font-size: 13px; padding: 8px 0 0; text-align: left; }
.sidebar-scrim { background: rgba(10, 43, 34, .45); inset: 0; position: fixed; z-index: 15; }
.workspace { margin-left: 250px; min-height: 100vh; }
.topbar { align-items: center; background: rgba(247, 250, 248, .94); border-bottom: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; padding: 20px 38px; position: sticky; top: 0; backdrop-filter: blur(12px); z-index: 5; }
.topbar-title { min-width: 0; flex: 1; }
.topbar h1 { font-family: Georgia, serif; font-size: 28px; font-weight: 500; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .eyebrow { margin-bottom: 3px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: end; }
.menu-button { background: none; border: 0; color: var(--green); display: none; font-size: 24px; }
.content { display: grid; gap: 22px; margin: 0 auto; max-width: 1440px; padding: 30px 38px 60px; }
.loading { align-items: center; color: var(--muted); display: flex; gap: 12px; justify-content: center; padding: 70px 0; }
.spinner { animation: spin .8s linear infinite; border: 3px solid var(--mint); border-radius: 50%; border-top-color: var(--green); height: 22px; width: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Paneller ve tablolar */
.panel { background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 35px rgba(24, 68, 55, .045); overflow: hidden; }
.panel-heading { align-items: end; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 22px 26px 16px; }
.panel-heading h2 { font-family: Georgia, serif; font-size: 23px; font-weight: 500; margin: 0; }
.panel-heading p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.panel-body { padding: 0 26px 24px; }
.count-pill { background: var(--mint); border-radius: 99px; color: var(--green); font-size: 11px; font-weight: 850; padding: 7px 10px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { background: #f7faf8; color: #758780; font-size: 10px; letter-spacing: 1px; padding: 11px 12px; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { border-top: 1px solid #edf2ef; color: #415e55; font-size: 13px; padding: 12px; vertical-align: middle; }
td:nth-child(-n+2) strong { white-space: nowrap; }
th:first-child, td:first-child { padding-left: 26px; }
th:last-child, td:last-child { padding-right: 26px; }
td strong { color: var(--ink); display: block; font-size: 14px; }
td small { color: #81918c; display: block; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.check, th.check { width: 44px; }
tr.clickable { cursor: pointer; transition: background .15s; }
tr.clickable:hover, tr.clickable:focus-visible { background: #f8fbf9; outline: none; }
.status { border-radius: 99px; display: inline-flex; font-size: 10px; font-weight: 850; padding: 5px 9px; text-transform: uppercase; white-space: nowrap; }
.status.published, .status.yes { background: #dff4e9; color: #16704f; }
.status.draft { background: #edf0ef; color: #4f605a; }
.status.correction_pending { background: #fff0c7; color: var(--amber); }
.status.role { background: var(--soft); color: var(--green); }
.status.no { background: #f4f4f2; color: #85908c; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.empty-state { align-items: center; color: var(--muted); display: flex; flex-direction: column; gap: 8px; padding: 50px 24px; text-align: center; }
.empty-state strong { color: var(--ink); font-size: 16px; }
.empty-state .button { margin-top: 8px; }
.notice { background: var(--amber-bg); border-left: 3px solid #e0aa24; border-radius: 8px; color: #6e5620; font-size: 13px; line-height: 1.5; padding: 12px 14px; }
.notice.info { background: var(--mint); border-color: var(--green-2); color: #24544a; }
.intro { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* Araç çubuğu */
.toolbar { align-items: end; display: flex; flex-wrap: wrap; gap: 12px; padding: 0 26px 18px; }
.toolbar label { color: #35544b; display: grid; font-size: 11px; font-weight: 800; gap: 6px; }
.toolbar input, .toolbar select { background: #fbfdfc; border: 1px solid #bfd0c9; border-radius: 10px; color: var(--ink); min-width: 170px; outline: none; padding: 10px 12px; }
.toolbar input:focus, .toolbar select:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(23, 114, 87, .11); }
.toolbar .grow { flex: 1; }
.toolbar .grow input { width: 100%; }
.selection-bar { align-items: center; background: var(--soft); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 14px 26px; }
.selection-bar span { color: var(--muted); font-size: 13px; }
.selection-bar div { display: flex; flex-wrap: wrap; gap: 8px; }
.more-row { display: flex; justify-content: center; padding: 16px; }

/* Özet kartları */
.metric-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.metric-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card strong { display: block; font-family: Georgia, serif; font-size: 30px; font-weight: 500; margin-top: 6px; }
.meta-row { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.meta-row b { color: var(--ink); font-weight: 750; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { background: var(--soft); border: 1px solid var(--line); border-radius: 99px; color: #35544b; font-size: 12px; padding: 6px 11px; }

/* Sınıf kartları */
.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); padding: 0 26px 26px; }
.class-card { background: white; border: 1px solid var(--line); border-radius: 16px; color: inherit; display: grid; gap: 8px; padding: 18px; text-align: left; transition: .15s; }
.class-card:hover, .class-card:focus-visible { border-color: var(--green-2); box-shadow: 0 8px 24px rgba(24, 68, 55, .08); outline: none; }
.class-card strong { font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.class-card span { color: var(--muted); font-size: 13px; }
.class-card em { color: var(--green-2); font-size: 12px; font-style: normal; font-weight: 700; }
.list-rows { display: grid; }
.list-row { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 12px; justify-content: space-between; padding: 13px 26px; }
.list-row small { color: var(--muted); display: block; }

/* Diyalog */
.dialog-card { background: white; border: 0; border-radius: 20px; box-shadow: var(--shadow); color: var(--ink); max-height: min(92vh, 960px); max-width: 680px; overflow: auto; padding: 0; width: calc(100% - 32px); }
.dialog-card.wide { max-width: 1040px; }
.dialog-card::backdrop { background: rgba(10, 43, 34, .62); backdrop-filter: blur(4px); }
.dialog-body { padding: 26px 28px 28px; }
.dialog-heading { align-items: start; border-bottom: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; margin-bottom: 22px; padding-bottom: 18px; }
.dialog-heading h2 { font-family: Georgia, serif; font-size: 28px; font-weight: 500; margin: 0 0 5px; }
.dialog-heading p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.icon-button { background: #f1f5f3; border: 0; border-radius: 50%; color: var(--green); flex: none; font-size: 26px; height: 38px; line-height: 1; width: 38px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid label { color: #35544b; display: grid; font-size: 12px; font-weight: 750; gap: 7px; }
.form-grid input:not([type="checkbox"]):not([type="file"]), .form-grid select, .form-grid textarea { background: #fbfdfc; border: 1px solid #bfd0c9; border-radius: 10px; color: var(--ink); outline: none; padding: 11px 12px; width: 100%; }
.form-grid input:focus, .form-grid select:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(23, 114, 87, .11); }
.form-grid small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.4; }
.form-grid .check-label { align-items: center; display: flex; gap: 9px; }
.span-2 { grid-column: 1 / -1; }
.form-note { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.form-error { background: var(--red-bg); border-radius: 8px; color: var(--red); font-size: 13px; margin: 0; padding: 10px 12px; }
.dialog-actions { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; justify-content: end; margin-top: 8px; padding-top: 18px; }
.dialog-actions .spacer { flex: 1; }
.dialog-section { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.dialog-section h3 { font-size: 15px; margin: 0 0 4px; }
.dialog-section > p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0 0 12px; }
.mini-table th:first-child, .mini-table td:first-child { padding-left: 12px; }
.mini-table th:last-child, .mini-table td:last-child { padding-right: 12px; }
.mini-table tfoot td { border-top: 2px solid var(--line); color: var(--ink); font-weight: 800; }
.mini-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

/* Cevap ızgarası */
.answer-section { margin-top: 14px; }
.answer-section h4 { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; margin: 0 0 8px; }
.answer-section h4 span { color: var(--muted); font-weight: 600; }
.answer-grid { display: grid; gap: 5px; grid-template-columns: repeat(10, minmax(0, 1fr)); max-width: 560px; }
.answer-cell { border: 1px solid var(--line); border-radius: 8px; display: grid; font-variant-numeric: tabular-nums; justify-items: center; padding: 4px 2px 5px; }
.answer-cell i { color: #8a9a94; font-size: 10px; font-style: normal; }
.answer-cell b { font-size: 15px; line-height: 1.2; }
.answer-cell small { color: #8a9a94; font-size: 10px; }
.answer-cell.c { background: #e3f5ec; border-color: #b9e2cd; }
.answer-cell.c b { color: #16704f; }
.answer-cell.w { background: var(--red-bg); border-color: #f1c4be; }
.answer-cell.w b { color: var(--red); }
.answer-cell.b { background: #f6f7f6; }
.answer-cell.x { background: #f1f1ee; border-style: dashed; }
.legend { color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; margin-top: 10px; }
.legend span::before { border-radius: 3px; content: ""; display: inline-block; height: 9px; margin-right: 5px; width: 9px; }
.legend .c::before { background: #b9e2cd; }
.legend .w::before { background: #f1c4be; }
.legend .b::before { background: #e3e6e4; }
.legend .x::before { border: 1px dashed #a5b0ac; }
.answer-input { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 1.5px; text-transform: uppercase; }
.search-results { border: 1px solid var(--line); border-radius: 10px; display: grid; max-height: 220px; overflow: auto; }
.search-results button { background: white; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); padding: 10px 12px; text-align: left; }
.search-results button:hover { background: var(--soft); }
.search-results button small { color: var(--muted); display: block; }
.preview-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.row-error td { background: #fff6f5; }
.row-error td small { color: var(--red); }
.scan-review-card { background: #fbfdfc; border: 1px solid var(--line); border-radius: 14px; margin-top: 12px; padding: 16px 18px; }
.scan-review-head { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.scan-error-list { color: var(--red); font-size: 13px; line-height: 1.5; margin: 6px 0 0; padding-left: 20px; }
.form-grid small.ambiguous-hint { color: var(--amber); font-weight: 700; }

/* Sekmeler */
.tabs { background: white; border: 1px solid var(--line); border-radius: 14px; display: flex; gap: 4px; padding: 5px; width: fit-content; }
.tab { background: transparent; border: 0; border-radius: 10px; color: var(--muted); font-weight: 750; padding: 9px 16px; }
.tab.active { background: var(--green); color: white; }
.tab:not(.active):hover { background: var(--soft); color: var(--green); }
.toolbar-top { padding-top: 16px; }
.toolbar .check-label { align-items: center; display: flex; font-size: 13px; font-weight: 650; gap: 8px; }
.toolbar .check-label input { min-width: 0; }

/* Kazanım analizi */
.bar-cell { align-items: center; display: flex; gap: 10px; min-width: 150px; }
.bar { background: #edf2ef; border-radius: 99px; flex: 1; height: 8px; overflow: hidden; }
.bar-fill { border-radius: inherit; display: block; height: 100%; }
.bar-cell b { font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.heat-low { background: #e0796c; }
.heat-mid { background: #e8b84a; }
.heat-high { background: #3f9e72; }
.heat-cell.heat-low { background: var(--red-bg); color: var(--red); }
.heat-cell.heat-mid { background: #fff3d6; color: var(--amber); }
.heat-cell.heat-high { background: #e3f5ec; color: #16704f; }
.heat-cell.heat-none { background: transparent; color: #a3b0ab; }
td.outcome-cell { min-width: 260px; max-width: 520px; }
td.outcome-cell strong { font-size: 13px; font-weight: 650; line-height: 1.4; white-space: normal; }
tr.row-weak td:first-child { box-shadow: inset 3px 0 0 #e0796c; }
.status.weak { background: var(--red-bg); color: var(--red); }
.change.up { color: #16704f; font-weight: 800; }
.change.down { color: var(--red); font-weight: 800; }
th.trend-col { max-width: 150px; min-width: 96px; white-space: normal; }
th small { color: #9aa8a3; display: block; font-size: 9px; letter-spacing: 0; text-transform: none; }

/* Hata karnesi */
.card-head { align-items: start; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding: 22px 26px 6px; }
.card-head h2 { font-family: Georgia, serif; font-size: 28px; font-weight: 500; margin: 0 0 4px; }
.card-head p:not(.eyebrow) { color: var(--muted); margin: 0; }
.card-exam { display: grid; gap: 4px; justify-items: end; text-align: right; }
.card-exam span { color: var(--muted); font-size: 13px; }
.card-sheet .panel-body { padding-top: 14px; }
.topic-columns { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; padding-top: 22px; }
.topic-list { border-radius: 14px; padding: 16px 18px; }
.topic-list.weak { background: #fff6f5; border: 1px solid #f3d3ce; }
.topic-list.strong { background: #f1faf5; border: 1px solid #cfe9dc; }
.topic-list h3 { font-size: 15px; margin: 0 0 10px; }
.topic-list ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.topic-list li { display: grid; gap: 2px; font-size: 13px; }
.topic-list li small { color: var(--muted); font-size: 11px; }
.card-section { border-top: 1px solid var(--line); padding: 16px 0 6px; }
.card-section:first-child { border-top: 0; padding-top: 0; }
.card-section h3 { font-size: 16px; margin: 0 0 10px; }
.card-group { margin-bottom: 12px; }
.card-outcome { display: grid; gap: 2px; margin: 0 0 6px; }
.card-outcome strong { font-size: 14px; }
.card-outcome small { color: var(--muted); font-size: 11px; }
.card-group ul { display: grid; gap: 4px; margin: 0; padding-left: 20px; }
.card-group li { color: #415e55; font-size: 13px; }
.card-group li.q-blank { color: #6b7d77; }

.print-only { display: none; }

.toast { background: #17372e; border-radius: 10px; color: white; font-size: 13px; left: 50%; max-width: calc(100% - 32px); opacity: 0; padding: 12px 16px; pointer-events: none; position: fixed; top: 18px; transform: translate(-50%, -15px); transition: .2s; z-index: 100; }
.toast.error { background: var(--red); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .sidebar { transform: translateX(-100%); transition: .2s; }
  .sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .menu-button { display: block; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .auth-card { padding: 34px 16px; }
  .brand-lockup { margin-bottom: 44px; }
  .topbar { padding: 14px 16px; }
  .topbar h1 { font-size: 22px; }
  .page-actions { width: 100%; justify-content: start; }
  .content { gap: 16px; padding: 18px 16px 44px; }
  .panel-heading, .toolbar, .selection-bar, .list-row { padding-left: 16px; padding-right: 16px; }
  .card-grid { padding: 0 16px 16px; }
  th:first-child, td:first-child { padding-left: 16px; }
  th:last-child, td:last-child { padding-right: 16px; }
  .toolbar input, .toolbar select { min-width: 0; width: 100%; }
  .toolbar label { flex: 1 1 100%; }
  .metric-card { padding: 14px; }
  .metric-card strong { font-size: 24px; }
  .dialog-body { padding: 20px 16px; }
  .dialog-heading h2 { font-size: 23px; }
  .form-grid { grid-template-columns: 1fr; }
  .topic-columns { grid-template-columns: 1fr; }
  .card-head, .card-exam { justify-items: start; text-align: left; }
}

/* Yazdırma: yalnız içerik; panel menüsü, düğmeler ve filtreler basılmaz */
@media print {
  @page { margin: 14mm; }
  body, :root { background: white; }
  .sidebar, .sidebar-scrim, .menu-button, .page-actions, .no-print, .toast, .selection-bar, dialog { display: none !important; }
  .workspace { margin: 0; }
  .topbar { border: 0; padding: 0 0 8px; position: static; backdrop-filter: none; }
  .content { max-width: none; padding: 0; gap: 12px; }
  .panel, .metric-card { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
  th, td { padding: 6px 8px; }
  th:first-child, td:first-child { padding-left: 8px; }
  .print-only { display: flex; }
  .print-header { border-bottom: 1px solid var(--line); color: var(--muted); flex-wrap: wrap; font-size: 11px; gap: 4px 16px; padding-bottom: 6px; }
  .print-header strong { color: var(--ink); }
  .heat-cell, .bar-fill, .topic-list, .status { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
