/* Hesap, bildirim, veli, form ve tablo yüzeyleri. */
body:is(.tema-koyu, .ds-body) :is([data-rota-page="account-settings"], .rota-notifications > header) h1 {
  font-size: var(--rota-title-size);
  line-height: 1.15;
  letter-spacing: -.03em;
}
body:is(.tema-koyu, .ds-body) .rota-settings-grid .form-action button { border-radius: var(--rota-pill); }
body:is(.tema-koyu, .ds-body) .rota-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
body:is(.tema-koyu, .ds-body) :is(.rota-settings-grid, .rota-family-surface) > :is(.card, .parent-student-card),
body:is(.tema-koyu, .ds-body) .rota-family-surface :is(.parent-welcome, .parent-profile-hero, .parent-student-card, .parent-growth-strip),
body:is(.tema-koyu, .ds-body) .rota-notifications > .card {
  background: var(--rota-card);
  border-radius: var(--rota-card-radius);
  box-shadow: none;
}
body:is(.tema-koyu, .ds-body) .rota-settings-grid .detail-list > div {
  display: grid;
  grid-template-columns: minmax(7rem, .7fr) minmax(0, 1fr);
  gap: 8px;
  padding-block: 9px;
  border-bottom: 1px solid var(--rota-line);
}
.rota-settings-grid :is(dd, dt) { margin: 0; overflow-wrap: anywhere; }
.rota-settings-grid .section-heading:not(:first-child) { margin-top: 20px; }
.rota-settings-grid .rota-settings-list { margin: 0; padding: 0; }
.rota-settings-list .list-row + .list-row { border-top: 1px solid var(--rota-line); }
.rota-form-fields, .rota-settings-grid section, .rota-notifications .list-copy { min-width: 0; }
.rota-form-fields > p { margin-block: 0 12px; }
.rota-form-fields > p > label { margin-bottom: 5px; }
.rota-form-fields > :is(p, .helptext) { overflow-wrap: anywhere; }
body:is(.tema-koyu, .ds-body) .rota-form-fields .errorlist { color: var(--rota-yellow); }
body:is(.tema-koyu, .ds-body) .rota-form-fields .form-error {
  padding: 10px 12px;
  background: var(--rota-yellow-soft);
  border: 1px solid var(--rota-yellow-line);
  border-radius: var(--rota-field-radius);
  color: var(--rota-text);
}
body:is(.tema-koyu, .ds-body) .rota-notifications :is(.clean-list,.ds-notification-list) {
  margin: 0;
  padding: 0;
  list-style: none;
}
body:is(.tema-koyu, .ds-body) .rota-notifications .list-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 0;
}
.rota-notifications .list-copy :is(p, time) { display: block; }
.rota-notifications .list-copy p { margin: 5px 0; }
.rota-notifications .list-copy > .badge { align-self: flex-start; width: fit-content; }
.rota-notifications time { color: var(--rota-secondary-strong); font-size: .875rem; }
.rota-notifications .rota-list-row + .rota-list-row { border-top: 1px solid var(--rota-line); }
.rota-notifications .rota-section { margin: 14px 0; }
.rota-notifications .rota-list-row .rota-tile { margin-top: 3px; }
.rota-family-surface .rota-family-identity { display: flex; gap: 14px; align-items: center; }
.rota-family-surface .rota-family-identity .rota-avatar { width: 52px; height: 52px; font-size: 1.25rem; }
.rota-family-surface .report-highlight .badge-ok { color: var(--rota-text); }
.rota-family-surface .parent-student-card .list-row + .list-row { border-top: 1px solid var(--rota-line); }
.rota-family-surface .trust-banner { border-radius: var(--rota-field-radius); }
.rota-family-surface .empty-state { border-radius: var(--rota-card-radius); }
.rota-family-surface :is(.profile-actions,.card-actions) { flex-wrap: wrap; }
.rota-family-surface .list-copy { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 54rem) {
  body:is(.tema-koyu, .ds-body) .rota-settings-grid { grid-template-columns: minmax(0,1fr); }
  body:is(.tema-koyu, .ds-body) .rota-notifications .list-row { grid-template-columns: auto minmax(0,1fr); }
  .rota-notifications .list-row > form { grid-column: 2; }
}
@media print {
  body:is(.tema-koyu, .ds-body) :is(.rota-settings-grid,.rota-family-surface,.rota-notifications) :is(.card,.parent-student-card,.parent-profile-hero,.parent-welcome,.parent-growth-strip) {
    color: CanvasText;
    background: Canvas;
  }
}

/* Rutin bölümleri ve uzun okul programı tablosunun okunur başlıkları. */
body.tema-koyu.workspace-mentorluk .routine-page .r-tabs > a[aria-current="page"] {
  color: var(--rota-text);
  border-bottom-color: var(--rota-accent);
}
body.tema-koyu .routine-page .r-program-table th { color: var(--rota-secondary-strong); }
.r-program-table details > summary { list-style: none; }
.r-program-table details > summary::-webkit-details-marker { display: none; }
.r-program-table details > summary::before {
  content: "";
  display: inline-block;
  width: .4em;
  height: .4em;
  margin-inline-end: .45em;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-.12em) rotate(-45deg);
}
.r-program-table details[open] > summary::before { transform: translateY(-.15em) rotate(45deg); }
body.tema-koyu .step-heading .step-index:not(.is-teal, .is-amber, .is-dark) { color: var(--rota-text); }
body:is(.tema-koyu, .ds-body) :is(p, dd, td) > code:not(:where(.notebook *, .lesson-reader *, .monaco-editor *, .cm-editor *)) {
  font-family: var(--rota-font);
}

body.tema-koyu .rota-menu .count-pill,
body.tema-koyu .rota-family-surface .privacy-seal small { color: var(--rota-text); }
