/* D101 — ortak bileşenler. Eski sınıflar, aşamalı geçişte aynı yüzeyi kullanır. */
.rota-icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.2em;
}
.rota-icon--small { width: 1rem; height: 1rem; }
.rota-icon--large { width: 1.5rem; height: 1.5rem; }

body:is(.tema-koyu, .ds-body) :is(.btn, .ds-button, .button, .rota-button):not(:where(.monaco-editor *, .cm-editor *, .cell-editor *)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  min-height: 38px;
  padding-inline: 17px;
  border: 1px solid transparent;
  border-radius: var(--rota-pill);
  background: var(--rota-accent);
  color: var(--rota-accent-ink);
  font-size: .90625rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
body:is(.tema-koyu, .ds-body) :is(.btn.secondary, .button.soft, .ds-button--ghost, .ds-button--secondary, .rota-button--secondary) {
  background: var(--rota-fill);
  color: var(--rota-text);
}
body:is(.tema-koyu, .ds-body) :is(.btn.danger, .ds-button--danger) {
  background: var(--rota-yellow-soft);
  color: var(--rota-yellow);
  border-color: var(--rota-yellow-line);
}
body:is(.tema-koyu, .ds-body) :is(.btn, .ds-button, .button, .rota-button):hover:not(:disabled) { filter: brightness(1.09); }
body:is(.tema-koyu, .ds-body) :is(.ds-button--icon, .rota-button--icon) { width: 38px; padding: 0; }
body:is(.tema-koyu, .ds-body) :is(.rota-button--large) { min-height: 48px; font-size: 1.0625rem; }
body:is(.tema-koyu, .ds-body) :is(.card, .ds-card, .rota-card) {
  background: var(--rota-card);
  border-radius: var(--rota-card-radius);
}
body:is(.tema-koyu, .ds-body) :is(.badge, .tag, .ds-tag, .rota-tag) { border-radius: var(--rota-pill); }
.rota-segments, .rota-stepper {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  min-height: 38px;
  padding: 2px;
  background: var(--rota-fill);
  border-radius: var(--rota-pill);
}
.rota-segments > *, .rota-stepper > * { padding: .35rem .8rem; border-radius: inherit; }
.rota-segments :is([aria-current], [aria-pressed="true"]),
body.tema-koyu.workspace-mentorluk .student-goal-tabs > a[aria-current="page"],
body:is(.tema-koyu, .ds-body) :is(.cal-tabs, .m-tabs) > a[aria-current="page"] { background: var(--rota-selected); color: var(--rota-text); }
.rota-search { display: flex; align-items: center; gap: 7px; }
.rota-search input[type="search"] { border-radius: var(--rota-pill); }

body:is(.tema-koyu, .ds-body) :is(select, textarea, input:not([type]), input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="url"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"]):not(:where(.monaco-editor *, .cm-editor *, .cell-editor *)) {
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  border: 1px solid var(--rota-field-border);
  border-radius: var(--rota-field-radius);
  background: var(--rota-fill);
  color: var(--rota-text);
}
body:is(.tema-koyu, .ds-body) :is(select, input[type="checkbox"], input[type="radio"]):not(:where(.monaco-editor *, .cm-editor *, .cell-editor *)) {
  appearance: none;
  -webkit-appearance: none;
}
body:is(.tema-koyu, .ds-body) select:not([multiple], [size], :where(.monaco-editor *, .cm-editor *, .cell-editor *)) {
  padding-inline-end: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--rota-text) 50%), linear-gradient(135deg, var(--rota-text) 50%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
body:is(.tema-koyu, .ds-body) select option { background: var(--rota-card); color: var(--rota-text); }
body:is(.tema-koyu, .ds-body) input:is([type="checkbox"], [type="radio"]):not(:where(.monaco-editor *, .cm-editor *, .cell-editor *)) {
  display: inline-grid;
  place-content: center;
  width: 19px;
  height: 19px;
  margin: 0 .4em 0 0;
  border: 1px solid var(--rota-field-border);
  border-radius: 5px;
  background: var(--rota-fill);
  vertical-align: -.2em;
  color: var(--rota-accent-ink);
}
body:is(.tema-koyu, .ds-body) input[type="radio"] { border-radius: 50%; }
body:is(.tema-koyu, .ds-body) input:is([type="checkbox"], [type="radio"]):checked:not(:where(.monaco-editor *, .cm-editor *, .cell-editor *)) {
  background: var(--rota-accent);
  border-color: var(--rota-accent);
}
body:is(.tema-koyu, .ds-body) input[type="checkbox"]:checked::after {
  content: "";
  width: .6em;
  height: .38em;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}
body:is(.tema-koyu, .ds-body) input[type="radio"]:checked::after {
  content: "";
  width: .43em;
  height: .43em;
  border-radius: 50%;
  background: currentColor;
}
body:is(.tema-koyu, .ds-body) input[type="checkbox"][role="switch"] {
  width: 50px;
  height: 30px;
  place-content: center start;
  padding-inline: 2px;
  border-radius: var(--rota-pill);
}
body:is(.tema-koyu, .ds-body) input[type="checkbox"][role="switch"]::after {
  content: "";
  width: 24px;
  height: 24px;
  background: var(--rota-text);
  border: 0;
  border-radius: 50%;
  transform: none;
}
body:is(.tema-koyu, .ds-body) input[type="checkbox"][role="switch"]:checked { place-content: center end; }
body:is(.tema-koyu, .ds-body) :is(input, select, textarea, button):disabled { cursor: not-allowed; }

.rota-list { overflow: hidden; border-radius: var(--rota-card-radius); background: var(--rota-card); }
.rota-list-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 60px;
  padding: 11px 16px;
}
.rota-list-row + .rota-list-row::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 52px;
  border-top: 1px solid var(--rota-line);
}
.rota-list-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rota-list-copy strong { display: block; font-size: 1.03125rem; line-height: 1.27; font-weight: 600; }
.rota-list-copy small { color: var(--rota-secondary); font-size: .875rem; line-height: 1.36; }
.rota-smart {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 20px;
  background: var(--rota-smart-gray);
  color: var(--rota-text);
}
.rota-smart[data-tone="blue"] { background: var(--rota-smart-blue); }
.rota-smart[data-tone="green"] { background: var(--rota-smart-green); }
.rota-smart[data-tone="missed"] { background: var(--rota-smart-red); }
.rota-smart:is([aria-current], [aria-pressed="true"]) { box-shadow: 0 0 0 2px var(--rota-bg), 0 0 0 4px var(--rota-text); }
.rota-smart strong { align-self: end; font-size: 2rem; line-height: 1.1; }
.rota-date-tile { display: grid; place-content: center; min-width: 42px; min-height: 44px; border-radius: 12px; background: var(--rota-well); text-align: center; }
.rota-date-tile small { color: var(--rota-accent); font-weight: 700; }
.rota-avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--rota-accent); color: var(--rota-accent-ink); font-weight: 700; }
.rota-sheet { max-width: min(520px, calc(100vw - 28px)); padding: 16px; border: 1px solid var(--rota-line-strong); border-radius: var(--rota-sheet-radius); background: var(--rota-bg); color: var(--rota-text); }
.rota-sheet::backdrop { background: var(--rota-veil); }
.rota-empty { padding: 18px; color: var(--rota-secondary); text-align: center; }
.rota-section { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.rota-chart { display: inline-block; max-width: 100%; height: auto; color: var(--rota-accent); }

.rota-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rota-rings circle { fill: none; stroke: var(--rota-ring); stroke-width: 10; stroke-linecap: round; }
.rota-rings .rota-ring-track { opacity: .24; }
.rota-rings [data-tone="coral"] { --rota-ring: var(--rota-ring-coral); }
.rota-rings [data-tone="green"] { --rota-ring: var(--rota-ring-green); }
.rota-rings [data-tone="blue"] { --rota-ring: var(--rota-ring-blue); }
.rota-rings [data-tone="teal"] { --rota-ring: var(--rota-ring-teal); }
.rota-rings [data-tone="yellow"] { --rota-ring: var(--rota-ring-yellow); }
.rota-sparkline polyline { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media print {
  body:is(.tema-koyu, .ds-body) :is(.btn, .ds-button, .button, .rota-button) {
    background: none;
    color: CanvasText;
    border-color: GrayText;
  }
}

body.workspace-hasbahce .language-badge { font-family: var(--rota-font); }
body.tema-koyu :is(.cal-mini-week a.is-today, .cal .is-today strong, .cal-month-day.is-today .cal-day-number) {
  color: var(--rota-black);
}
