/* Çalışma alanlarının görev, rapor ve profil düzenleri. */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.45rem;
}
.page-header .lead { margin-bottom: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }

.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  margin: 0 0 1rem;
  background: var(--surface-soft);
  line-height: 1.55;
}
.notice-warn { border-color: var(--rota-line); background: var(--rota-well); color: var(--ink-800); }
.notice-ok { border-color: var(--rota-line); background: var(--rota-well); color: var(--ink-800); }
.setup-list { margin: 0 0 1.25rem; padding-left: 1.35rem; }
.setup-list li { margin: 0 0 .65rem; padding-left: .2rem; line-height: 1.55; }
.field-label { display: block; margin: 0 0 .35rem; font-weight: 700; color: var(--ink-800); }

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem 1rem;
  margin-bottom: 1rem;
}
.panel-heading h2, .panel-heading h3 { margin: .1rem 0 0; }
.panel-kicker { display: block; color: var(--ink-500); font-size: .72rem; font-weight: 750; letter-spacing: .075em; text-transform: uppercase; }
.count-pill { display: inline-flex; align-items: center; min-height: 1.8rem; padding: .28rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--ink-600); font-size: .76rem; font-weight: 680; white-space: nowrap; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.section-heading h2 { margin: .12rem 0 0; }
.section-heading > a, .text-action { color: var(--primary-strong); font-size: .86rem; font-weight: 680; text-decoration: none; }
.section-heading > a:hover, .text-action:hover { color: var(--primary); }

/* Mentor overview */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.metric-card {
  position: relative;
  display: flex;
  min-height: 8.2rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rota-well);
  box-shadow: var(--shadow-sm);
}
.metric-card::after { position: absolute; top: -.9rem; right: -1rem; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--metric-halo, var(--rota-well)); content: ""; }
.metric-label { color: var(--ink-600); font-size: .78rem; font-weight: 680; }
.metric-card > strong { color: var(--ink-950); font-size: 1.95rem; font-weight: 760; line-height: 1; letter-spacing: -.045em; }
.metric-card > strong small { margin-left: .18rem; color: var(--ink-500); font-size: .9rem; font-weight: 620; }
.metric-note { color: var(--ink-500); font-size: .75rem; }
.metric-primary { --metric-halo: var(--rota-well); border-top-color: var(--rota-line); }
.metric-teal { --metric-halo: var(--rota-well); border-top-color: var(--rota-line); }
.metric-amber { --metric-halo: var(--rota-well); border-top-color: var(--rota-line); }
.metric-indigo { --metric-halo: var(--rota-well); border-top-color: var(--rota-line); }

.attention-panel { padding: 0; overflow: hidden; }
.attention-panel > .panel-heading { margin: 0; padding: 1.15rem 1.25rem .85rem; }
.attention-list { border-top: 1px solid var(--line); }
.attention-item {
  display: grid;
  grid-template-columns: .6rem minmax(8rem, .35fr) minmax(0, 1fr) 1.5rem;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-800);
  text-decoration: none;
  transition: background-color .14s ease;
}
.attention-item:last-child { border-bottom: 0; }
.attention-item:hover { background: var(--surface-soft); color: var(--ink-950); }
.attention-signal { width: .55rem; height: .55rem; border-radius: 999px; background: var(--amber); box-shadow: 0 0 0 .25rem var(--amber-soft); }
.attention-signal.is-danger { background: var(--red); box-shadow: 0 0 0 .25rem var(--red-soft); }
.attention-person { font-size: .88rem; font-weight: 700; }
.attention-copy { display: flex; min-width: 0; flex-direction: column; }
.attention-copy strong { font-size: .86rem; }
.attention-copy small { overflow: hidden; color: var(--ink-500); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.item-arrow { color: var(--ink-500); font-size: 1.05rem; }
.calm-state { display: flex; align-items: center; gap: .75rem; margin: 0 1.25rem 1.2rem; padding: .85rem 1rem; border-radius: .8rem; background: var(--rota-well); color: var(--rota-text); }
.calm-state span { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--teal); color: var(--rota-text); font-size: .8rem; font-weight: 800; }
.calm-state p { margin: 0; font-size: .88rem; font-weight: 620; }

.student-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.student-card { display: flex; min-width: 0; flex-direction: column; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--rota-well); box-shadow: var(--shadow-sm); }
.student-card-head { display: grid; grid-template-columns: 2.65rem minmax(0,1fr) .75rem; align-items: center; gap: .75rem; }
.student-avatar { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; flex: 0 0 auto; border-radius: .85rem; background: linear-gradient(145deg, var(--rota-card), var(--rota-card)); color: var(--primary-strong); font-size: 1rem; font-weight: 780; }
.student-avatar.is-large { width: 4.4rem; height: 4.4rem; border-radius: 1.25rem; font-size: 1.45rem; }
.student-avatar.is-parent { background: linear-gradient(145deg, var(--rota-card), var(--rota-card)); color: var(--rota-text); }
.student-identity { min-width: 0; }
.student-identity h3 { margin: 0; font-size: 1rem; }
.student-identity h3 a { color: var(--ink-950); text-decoration: none; }
.student-identity > span { display: block; margin-top: .18rem; color: var(--ink-500); font-size: .78rem; }
.status-dot { width: .62rem; height: .62rem; border-radius: 50%; background: var(--ink-500); box-shadow: 0 0 0 .25rem var(--rota-shadow); }
.status-dot.is-ok { background: var(--teal); box-shadow: 0 0 0 .25rem var(--teal-soft); }
.status-dot.is-waiting { background: var(--amber); box-shadow: 0 0 0 .25rem var(--amber-soft); }
.student-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 1.15rem 0; }
.student-facts div { min-width: 0; padding: .7rem; border-radius: .7rem; background: var(--surface-soft); }
.student-facts dt { color: var(--ink-500); font-size: .7rem; font-weight: 650; }
.student-facts dd { overflow: hidden; margin: .18rem 0 0; color: var(--ink-900); font-size: .82rem; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.completion-block { padding-top: .9rem; border-top: 1px solid var(--line); }
.completion-block .bar-track { display: block; margin-top: .5rem; }
.status-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: 1rem; }

/* Shared welcome panels */
.welcome-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: clamp(1.35rem, 3.5vw, 2.1rem);
  overflow: hidden;
  border: 1px solid var(--rota-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, var(--rota-card) 0%, var(--rota-card) 62%, var(--rota-card) 140%);
  box-shadow: var(--shadow-sm);
}
.welcome-panel::after { position: absolute; right: -3rem; bottom: -5.5rem; width: 13rem; height: 13rem; border: 1.6rem solid var(--rota-line); border-radius: 50%; content: ""; }
.welcome-panel > * { position: relative; z-index: 1; }
.welcome-panel h1 { margin-bottom: .55rem; }
.welcome-panel p { max-width: 42rem; margin: 0; color: var(--ink-600); }
.welcome-action { flex: 0 0 auto; }
.parent-welcome { border-color: var(--rota-line); background: linear-gradient(125deg, var(--rota-card), var(--rota-card)); }
.privacy-seal { display: grid; grid-template-columns: 2.5rem auto; align-items: center; gap: .7rem; flex: 0 0 auto; padding: .65rem .8rem; border: 1px solid var(--rota-line); border-radius: .8rem; background: var(--rota-well); }
.privacy-seal > span { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .72rem; background: var(--teal); color: var(--rota-text); font-weight: 800; }
.privacy-seal small { color: var(--rota-text); font-size: .76rem; font-weight: 700; line-height: 1.25; }

/* Hasbahçe dashboards */
.hasbahce-welcome { border-color: var(--rota-line); background: linear-gradient(125deg, var(--rota-card) 0%, var(--rota-card) 62%, var(--rota-card) 145%); }
.hasbahce-welcome::after { border-color: var(--rota-line); }
.hasbahce-welcome .eyebrow { margin-bottom: .35rem; color: var(--rota-text); }
.welcome-copy { min-width: 0; }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.readonly-seal { border-color: var(--rota-line); background: var(--rota-well); }
.readonly-seal > span { background: var(--rota-well); }
.readonly-seal small { color: var(--rota-text); }
.hasbahce-metrics .metric-card { min-height: 7.5rem; }
.hasbahce-metrics .metric-label { max-width: calc(100% - 2rem); }
.hasbahce-metrics-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hasbahce-section-grid { margin-bottom: 1rem; }
.hasbahce-section-grid > .card { height: 100%; margin-bottom: 0; }
.workspace-hasbahce .card > .section-heading { align-items: center; margin: 0 0 1rem; }
.workspace-hasbahce .compact-list { margin: 0; padding: 0; list-style: none; }
.workspace-hasbahce .compact-list .list-row { position: relative; display: block; padding: .72rem .2rem .72rem 1.15rem; }
.workspace-hasbahce .compact-list .list-row::before { position: absolute; top: 1.15rem; left: .1rem; width: .48rem; height: .48rem; border-radius: 50%; background: var(--rota-well); box-shadow: 0 0 0 .22rem var(--rota-shadow); content: ""; }
.workspace-hasbahce .compact-list .list-row > a { color: var(--ink-900); font-weight: 680; text-decoration: none; }
.workspace-hasbahce .compact-list .list-row > a:hover { color: var(--primary-strong); }
.workspace-hasbahce .compact-list .list-row .small { display: block; margin-top: .16rem; color: var(--ink-500); font-size: .76rem; }
.workspace-hasbahce .compact-list .inline-form { margin: .5rem 0 0; }
.hasbahce-priority-card { border-color: var(--rota-line); background: linear-gradient(130deg, var(--rota-card), var(--rota-card)); }
.hasbahce-priority-card .list-row::before { background: var(--rota-well) !important; box-shadow: 0 0 0 .22rem var(--rota-shadow) !important; }

/* Student dashboard */
.dashboard-grid { display: grid; gap: 1rem; }
.dashboard-grid-main { grid-template-columns: minmax(0, 1.55fr) minmax(17rem, .75fr); }
.dashboard-grid-secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.focus-card { padding: 1.35rem; }
.progress-ring { --value: 0; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--primary) calc(var(--value) * 1%), var(--rota-card) 0); }
.progress-ring::before { grid-area: 1/1; width: 3.45rem; height: 3.45rem; border-radius: 50%; background: var(--surface); content: ""; }
.progress-ring > span { z-index: 1; grid-area: 1/1; color: var(--ink-900); font-size: .82rem; font-weight: 760; }
.progress-ring.is-small { width: 3.8rem; height: 3.8rem; }
.progress-ring.is-small::before { width: 2.9rem; height: 2.9rem; }
.priority-list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.priority-item { display: grid; grid-template-columns: 2rem minmax(0,1fr) auto; align-items: center; gap: .7rem; margin: 0; padding: .65rem .7rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface); }
.priority-number { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .58rem; background: var(--primary-soft); color: var(--primary-strong); font-size: .7rem; font-weight: 760; }
.priority-item > a, .priority-title { color: var(--ink-900); font-size: .9rem; font-weight: 670; text-decoration: none; }
.completion-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--ink-500); font-size: .77rem; }
.checkin-card { background: linear-gradient(145deg, var(--rota-card), var(--rota-card)); }
.checkin-card.is-complete { background: linear-gradient(145deg, var(--rota-card), var(--rota-card)); }
.checkin-card h2 { margin: .45rem 0 .65rem; }
.checkin-card p { color: var(--ink-600); font-size: .88rem; }
.card-symbol { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; margin-bottom: 1.2rem; border-radius: .78rem; background: var(--primary-soft); color: var(--primary); font-size: 1.05rem; font-weight: 800; }
.is-complete .card-symbol, .checkin-summary.is-ready .card-symbol { background: var(--teal-soft); color: var(--teal); }
.clean-list { margin: 0; padding: 0; list-style: none; }
.list-row { display: flex; align-items: flex-start; gap: .7rem; margin: 0; padding: .68rem 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-mark { width: .58rem; height: .58rem; flex: 0 0 auto; margin-top: .42rem; border-radius: .2rem; background: var(--primary); transform: rotate(45deg); }
.list-mark.is-teal { background: var(--teal); }
.list-mark.is-amber { background: var(--rota-well); }
.list-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.list-copy > a, .list-copy > strong { color: var(--ink-900); font-size: .88rem; font-weight: 680; text-decoration: none; }
.list-copy small { margin-top: .15rem; color: var(--ink-500); font-size: .75rem; }
.decision-card { background: linear-gradient(145deg, var(--rota-card), var(--rota-card)); }
.date-chip { display: inline-flex; margin-bottom: .7rem; padding: .22rem .55rem; border-radius: 999px; background: var(--surface-soft); color: var(--ink-500); font-size: .74rem; font-weight: 650; }
.decision-copy { color: var(--ink-800); font-size: .91rem; }
.growth-strip { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1rem; padding: 1.35rem 1.5rem; border: 1px solid var(--rota-line); border-radius: var(--radius); background: linear-gradient(125deg, var(--rota-card), var(--rota-card)); }
.growth-strip h2 { margin: .15rem 0 .4rem; }
.growth-strip p { max-width: 48rem; margin: 0; color: var(--ink-600); font-size: .88rem; }
.growth-actions { display: flex; align-items: center; gap: 1rem; flex: 0 0 auto; }
.mini-stat { display: flex; min-width: 5.4rem; flex-direction: column; text-align: center; }
.mini-stat strong { color: var(--ink-950); font-size: 1.45rem; line-height: 1; }
.mini-stat small { margin-top: .25rem; color: var(--ink-500); font-size: .7rem; }

/* Parent overview */
.trust-banner { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid var(--rota-line); border-radius: .8rem; background: var(--rota-well); color: var(--rota-text); }
.trust-banner p { margin: 0; font-size: .84rem; }
.trust-icon { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; flex: 0 0 auto; border-radius: 50%; background: var(--teal); color: var(--rota-text); font-size: .75rem; font-weight: 800; }
.parent-student-grid { display: grid; gap: 1rem; }
.parent-student-card { padding: clamp(1rem, 2.8vw, 1.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--rota-well); box-shadow: var(--shadow-sm); }
.parent-card-head { display: grid; grid-template-columns: 2.65rem minmax(0,1fr) auto; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.parent-card-head h2 { margin: .12rem 0 0; }
.parent-card-head h2 a { color: var(--ink-950); text-decoration: none; }
.report-highlight { display: grid; grid-template-columns: 2.6rem minmax(0,1fr) auto; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--rota-line); border-radius: .9rem; background: linear-gradient(130deg, var(--rota-card), var(--rota-card)); }
.report-symbol { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; border-radius: .75rem; background: var(--teal); color: var(--rota-text); font-size: 1.1rem; }
.report-copy { display: flex; min-width: 0; flex-direction: column; gap: .22rem; }
.report-copy .badge { align-self: flex-start; }
.report-copy > strong { margin-top: .15rem; color: var(--ink-950); }
.report-copy > small { color: var(--rota-text); font-size: .75rem; }
.shared-goals { margin-top: 1.25rem; }
.shared-goals .panel-heading { margin-bottom: .25rem; }
.parent-profile-hero { border-color: var(--rota-line); background: linear-gradient(125deg, var(--rota-card), var(--rota-card)); }
.report-timeline a { color: var(--ink-900); font-weight: 680; text-decoration: none; }
.report-timeline a:hover { color: var(--primary); }
.parent-growth-strip { border-color: var(--rota-line); background: linear-gradient(125deg, var(--rota-card), var(--rota-card)); }

/* Student context hub */
.profile-hero { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; padding: 1.3rem 1.4rem; border: 1px solid var(--rota-line); border-radius: var(--radius-lg); background: linear-gradient(125deg, var(--rota-card), var(--rota-card)); box-shadow: var(--shadow-sm); }
.profile-main { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.profile-main h1 { margin: 0; }
.profile-main p { margin: .35rem 0 0; color: var(--ink-600); font-size: .9rem; }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.section-nav { display: flex; gap: .35rem; margin-bottom: 1rem; padding: .4rem; overflow-x: auto; border: 1px solid var(--line); border-radius: .85rem; background: var(--rota-well); scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav a { flex: 0 0 auto; padding: .5rem .72rem; border-radius: .6rem; color: var(--ink-700); font-size: .81rem; font-weight: 650; text-decoration: none; }
.section-nav a:hover { background: var(--primary-soft); color: var(--primary-strong); }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; margin-bottom: 1rem; }
.summary-tile { display: grid; grid-template-columns: 2.3rem minmax(0,1fr); gap: .1rem .7rem; padding: .9rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--rota-well); box-shadow: var(--shadow-sm); }
.summary-icon { display: grid; grid-row: 1 / 4; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .67rem; background: var(--primary-soft); color: var(--primary); font-weight: 780; }
.summary-icon.is-teal { background: var(--teal-soft); color: var(--teal); }
.summary-icon.is-amber { background: var(--amber-soft); color: var(--amber); }
.summary-tile > strong { overflow: hidden; color: var(--ink-950); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.summary-tile > small { color: var(--ink-500); font-size: .72rem; }
.quick-actions-panel { padding: 1rem 1.15rem; }
.quick-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .55rem; }
.quick-action { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 2.75rem; padding: .62rem .75rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface-soft); color: var(--ink-800); font-size: .8rem; font-weight: 650; text-decoration: none; }
.quick-action:hover { border-color: var(--rota-line); background: var(--primary-soft); color: var(--primary-strong); }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(17.5rem, .72fr); align-items: start; gap: 1rem; }
.hub-main, .hub-aside { min-width: 0; }
.comparison-bars { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.comparison-bars .bar-track { display: block; margin: .45rem 0; }
.comparison-bars small { color: var(--ink-500); font-size: .74rem; }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 42rem; table-layout: auto; }
.table-scroll th, .table-scroll td { overflow-wrap: anywhere; }
.score-value { display: block; color: var(--ink-900); font-weight: 720; }
.cell-meta { display: block; margin-top: .14rem; color: var(--ink-500); font-size: .74rem; }
.context-note, .privacy-note { margin: .85rem 0 0; padding: .62rem .75rem; border-radius: .65rem; background: var(--surface-soft); color: var(--ink-500); font-size: .76rem; }
.timeline-group + .timeline-group { margin-top: 1rem; }
.timeline-group h3 { margin: 0 0 .7rem; color: var(--ink-600); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.checkin-summary { position: sticky; top: 1rem; }
.answer-list { margin: .8rem 0 0; }
.answer-list div { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.answer-list div:last-child { border-bottom: 0; }
.answer-list dt { color: var(--ink-500); font-size: .73rem; font-weight: 680; }
.answer-list dd { margin: .18rem 0 0; color: var(--ink-800); font-size: .86rem; }
.compact-list .list-row { align-items: center; }
.compact-timeline strong { display: block; font-size: .86rem; }

.empty-state { display: grid; justify-items: center; margin: 1rem 0; padding: 2.25rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--rota-well); text-align: center; }
.empty-state-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; margin-bottom: .7rem; border-radius: .8rem; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.empty-state h2 { margin: 0 0 .4rem; }
.empty-state p { max-width: 31rem; margin: 0 0 1rem; color: var(--ink-600); font-size: .88rem; }
.empty-state.compact { display: flex; align-items: center; justify-content: flex-start; gap: .7rem; padding: .8rem; text-align: left; }
.empty-state.compact .empty-state-icon { width: 2rem; height: 2rem; flex: 0 0 auto; margin: 0; border-radius: .6rem; }
.empty-state.compact p { margin: 0; }

/* Hasbahçe branded learning surfaces */
.brand-page-header { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--rota-line); }
.course-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; }
.course-card { display: grid; grid-template-columns: 3rem minmax(0,1fr) auto; align-items: center; gap: .85rem; min-height: 5.6rem; padding: 1rem; border: 1px solid var(--rota-line); border-radius: 1rem; background: var(--rota-well); color: var(--ink-900); box-shadow: var(--shadow-sm); text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.course-card:hover { border-color: var(--rota-line); color: var(--primary-strong); box-shadow: 0 1rem 2rem var(--rota-shadow); transform: translateY(-2px); }
.course-card-mark { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .85rem; background: linear-gradient(145deg, var(--rota-card), var(--rota-card)); color: var(--rota-text); font-size: 1.3rem; font-weight: 800; }
.course-card-copy { display: flex; min-width: 0; flex-direction: column; }
.course-card-copy strong { font-size: 1.06rem; }
.course-card-copy small { margin-top: .18rem; color: var(--ink-500); font-size: .78rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; color: var(--ink-500); font-size: .8rem; }
.breadcrumb a { color: var(--primary); font-weight: 680; text-decoration: none; }
.form-card { max-width: 48rem; }
.score-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem 1rem; margin: 1rem 0; }
.score-field { margin: 0; }
.score-field:nth-child(even) input { background: var(--rota-well); }

/* Weekly mentoring workflow */
.week-hero .eyebrow { margin-bottom: .2rem; }
.week-toolbar { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .6rem; margin-bottom: 1rem; padding: .55rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--rota-well); box-shadow: var(--shadow-sm); }
.week-toolbar a { display: inline-flex; min-height: 2.35rem; align-items: center; justify-content: center; padding: .45rem .72rem; border-radius: .62rem; color: var(--primary-strong); font-size: .82rem; font-weight: 680; text-decoration: none; }
.week-toolbar a:hover { background: var(--primary-soft); }
.week-toolbar > span { display: flex; min-width: 0; flex-direction: column; align-items: center; line-height: 1.25; }
.week-toolbar small { color: var(--ink-500); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.week-toolbar strong { margin-top: .1rem; font-size: .87rem; }
.workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.workflow-card { overflow: hidden; }
.step-heading { display: grid; grid-template-columns: 2.5rem minmax(0,1fr) auto; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.step-heading h2 { margin: .08rem 0 0; }
.step-index { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: .75rem; background: var(--primary-soft); color: var(--primary-strong); font-size: .75rem; font-weight: 800; }
.step-index.is-teal { background: var(--teal-soft); color: var(--teal); }
.step-index.is-amber { background: var(--amber-soft); color: var(--amber); }
.step-index.is-dark { background: var(--sidebar); color: var(--rota-text); }
.week-answers { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 1rem; }
.week-progress { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.week-progress .bar-track { display: block; margin: .5rem 0; }
.trend-chip { display: inline-flex; margin-top: .25rem; padding: .22rem .5rem; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-size: .72rem; font-weight: 700; }
.trend-chip.is-positive { background: var(--teal-soft); color: var(--teal); }
.session-step { border-color: var(--rota-line); background: linear-gradient(135deg, var(--rota-card), var(--rota-card)); }
.session-step.is-ready { border-color: var(--rota-line); background: linear-gradient(135deg, var(--rota-card), var(--rota-card)); }

/* Responsive */
@media (max-width: 68rem) {
  .app-shell { grid-template-columns: 14.75rem minmax(0, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hasbahce-metrics-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid-secondary > :last-child { grid-column: 1 / -1; }
  .quick-action-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 54rem) {
  .app-shell { display: block; }
  .app-sidebar { position: sticky; width: 100%; height: auto; padding: .75rem .85rem .65rem; overflow: visible; box-shadow: 0 .45rem 1.6rem var(--rota-shadow); }
  .sidebar-heading { padding: 0 .15rem .6rem; }
  .app-nav { flex-direction: row; gap: .35rem; margin: 0 -.85rem; padding: .1rem .85rem .2rem; overflow-x: auto; overflow-y: hidden; scroll-padding-inline: .85rem; scrollbar-width: none; }
  .app-nav::-webkit-scrollbar { display: none; }
  .nav-caption { display: none; }
  .nav-link { min-height: 2.35rem; padding: .48rem .68rem; flex: 0 0 auto; border-radius: .65rem; font-size: .82rem; }
  .nav-link.is-active { box-shadow: inset 0 -.16rem 0 var(--rota-shadow); }
  .workspace-hasbahce .nav-link.is-active { box-shadow: inset 0 -.16rem 0 var(--rota-shadow); }
  .sidebar-user { position: absolute; top: .72rem; right: .85rem; margin: 0; padding: 0; border: 0; background: transparent; grid-template-columns: 1.9rem minmax(0, 8rem) 1.9rem; }
  .user-copy small { display: none; }
  .user-copy strong { font-size: .76rem; }
  .wrap { padding-top: 1.6rem; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .page-header { align-items: flex-start; }
  .student-grid, .dashboard-grid-main, .dashboard-grid-secondary, .hub-grid, .workflow-grid { grid-template-columns: 1fr; }
  .dashboard-grid-secondary > :last-child { grid-column: auto; }
  .summary-grid { grid-template-columns: repeat(3, minmax(12rem, 1fr)); overflow-x: auto; padding-bottom: .2rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .summary-tile { scroll-snap-align: start; }
  .hasbahce-metrics-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-summary { position: static; }
  .auth-main { align-items: start; }
  .course-card-grid { grid-template-columns: 1fr; }
  .login-card { order: -1; width: min(100%, 36rem); justify-self: center; }
}

@media (max-width: 38rem) {
  .sidebar-user { right: .85rem; grid-template-columns: 1.9rem 1.9rem; }
  .user-copy { display: none; }
  .wrap { padding: 1.25rem .9rem 3rem; }
  .foot { padding-inline: .9rem; }
  h1 { font-size: 1.65rem; }
  .lead { margin-bottom: 1.25rem; }
  .card { padding: 1rem; border-radius: .9rem; }
  .spread { align-items: flex-start; }
  .spread > .row { width: 100%; }
  .spread > .row .btn { flex: 1 1 auto; }
  .row > .btn { min-height: 2.75rem; }
  .page-header { flex-direction: column; }
  .page-header > .btn { width: 100%; }
  .metric-grid { gap: .6rem; }
  .metric-card { min-height: 7.1rem; padding: .85rem; }
  .metric-card > strong { font-size: 1.65rem; }
  .attention-item { grid-template-columns: .55rem minmax(0,1fr) 1.25rem; gap: .65rem; padding-inline: 1rem; }
  .attention-person { grid-column: 2; }
  .attention-copy { grid-column: 2; }
  .attention-copy small { white-space: normal; }
  .item-arrow { grid-column: 3; grid-row: 1 / 3; }
  .student-facts { grid-template-columns: 1fr; }
  .student-facts div { display: flex; justify-content: space-between; gap: .75rem; }
  .student-facts dd { margin: 0; text-align: right; }
  .welcome-panel, .profile-hero, .growth-strip { align-items: flex-start; flex-direction: column; }
  .welcome-action, .profile-actions, .growth-actions { width: 100%; }
  .welcome-actions { justify-content: stretch; }
  .welcome-actions .btn { flex: 1 1 auto; }
  .profile-actions .btn, .growth-actions .btn { flex: 1; }
  .privacy-seal { align-self: stretch; justify-content: center; }
  .progress-ring { width: 4rem; height: 4rem; }
  .progress-ring::before { width: 3.05rem; height: 3.05rem; }
  .priority-item { grid-template-columns: 2rem minmax(0,1fr); }
  .priority-item .badge { grid-column: 2; justify-self: start; }
  .growth-actions { justify-content: space-between; }
  .parent-card-head { grid-template-columns: 2.65rem minmax(0,1fr); }
  .parent-card-head .count-pill { grid-column: 2; justify-self: start; }
  .report-highlight { grid-template-columns: 2.6rem minmax(0,1fr); }
  .report-highlight .btn { grid-column: 1 / -1; }
  .profile-main { align-items: flex-start; }
  .quick-action-grid, .comparison-bars, .week-answers { grid-template-columns: 1fr; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  tbody tr:first-child { padding-top: .25rem; }
  tbody tr:last-child { border-bottom: 0; }
  td { display: grid; grid-template-columns: minmax(6.7rem, .42fr) minmax(0, 1fr); gap: .7rem; padding: .3rem 0; border: 0; }
  td[data-label]::before { color: var(--ink-500); content: attr(data-label); font-size: .75rem; font-weight: 680; }
  td[data-label=""] { display: block; padding-top: .55rem; }
  td[data-label=""]::before { content: none; }
  .inline-form { display: flex; margin-top: .45rem; }
  .bar { grid-template-columns: 1fr 2.7rem; }
  .bar-label { grid-column: 1 / -1; margin-bottom: -.3rem; }
  .auth-header { padding: 1rem; }
  .auth-access-chip { padding-inline: .58rem; font-size: 0; }
  .auth-access-chip::after { color: var(--rota-text); content: "Özel erişim"; font-size: .68rem; }
  .auth-main { padding: 1.25rem 1rem 2rem; }
  .login-card { padding: 1.2rem; }
  .hasbahce-brand-logo { width: 8.8rem; max-height: 2.5rem; padding: .25rem .35rem; border-radius: .5rem; }
  .score-entry-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

.setup-steps { display: flex; flex-wrap: wrap; gap: .65rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.setup-steps li { padding: .7rem 1rem; border-radius: 2rem; background: var(--rota-well); color: var(--rota-text); font-weight: 650; }
.setup-steps [aria-current="step"] { color: var(--rota-text); background: var(--rota-well); }
.setup-steps .is-complete { color: var(--rota-text); background: var(--rota-well); }
.setup-card { max-width: 44rem; }

@media print {
  .app-shell { display: block; }
  .app-sidebar, .foot, button, .btn { display: none !important; }
  .app-main, body { background: Canvas; }
  .wrap { max-width: none; padding: 0; }
  .card { break-inside: avoid; box-shadow: none; }
}
