/* Identitas dan kartu santri: tetap lapang di dashboard dan hasil pencarian. */
.student-nim{color:#365e76!important;font-weight:650;letter-spacing:.035em}
.card-person h3 a{color:inherit}
.card-person h3 a:hover{color:#176c63}
.selected-student-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px 0 16px}
.selected-student-heading h2{margin:4px 0;font-size:24px}
.focused-card-grid{grid-template-columns:minmax(0,850px)}
.selected-student-card{border-color:#80b2a9;box-shadow:0 12px 36px #163f3610}
.student-card{scroll-margin-top:100px;min-width:0}
.student-card .card-resource-links .button{white-space:normal;text-align:center}
.search-card-results{margin:0 0 28px;padding:20px;background:#edf4f6;border:1px solid #d7e4e8;border-radius:16px}
.search-card-results .section-heading{margin-top:0;align-items:flex-start}
.search-card-results .section-heading p{font-size:15px;overflow-wrap:anywhere}
.search-student-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr))}
.search-roster-count{font-size:16px}
.master-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.master-totals>div{display:flex;flex-direction:column;padding:20px;background:#eaf2ee;border:1px solid #d9e6df;border-radius:12px}
.master-totals>div:nth-child(2){background:#edf2fa}.master-totals>div:nth-child(3){background:#f1eef8}.master-totals>div:nth-child(4){background:#fbf2e6}
.master-totals span{font-size:15px}.master-totals strong{font-size:32px;line-height:1.3;margin-top:7px}
.master-panel{padding:24px;min-width:0}.master-table-wrap{overflow-x:auto}
.master-table{width:100%;border-collapse:collapse;text-align:left;font-size:15px;line-height:1.6}
.master-table th{padding:14px 12px;background:#203f40;color:#fff;font-weight:600;white-space:nowrap}
.master-table td{vertical-align:top;padding:16px 12px;border-bottom:1px solid #dce6e6;min-width:120px}
.master-table td:nth-child(2){min-width:200px}.master-table td:nth-child(3){width:35%;min-width:250px}
.master-table small{display:block;font-size:14px;color:#526777;margin:5px 0;overflow-wrap:anywhere}
.master-table select{display:block;width:100%;max-width:400px;min-height:44px;margin-top:10px;border:1px solid #c0d0d3;border-radius:7px;padding:8px;background:#fff;font-size:14px}
.master-row-review{background:#fff7e9}.master-table .badge{font-size:13px;white-space:normal}
.master-apply{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px}
.master-apply p{max-width:650px;margin:0}.student-picker-search{width:100%;min-height:46px;margin:0 0 8px;padding:10px 12px;border:1px solid #b8cdd3;border-radius:8px;background:#f4f8fa}
.student-picker-label{display:block;margin-bottom:6px;color:#536d7b;font-size:14px}.student-picker-status{display:block;font-size:14px;color:#536d7b;margin:6px 0 12px}
.stat-link{color:inherit;text-decoration:none;transition:border-color .18s,box-shadow .18s,transform .18s}
.stat-link:hover{border-color:#9fbdc7;box-shadow:0 8px 24px #183c4b12;transform:translateY(-2px);text-decoration:none}
.student-focus-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:24px;align-items:start}
.student-focus-primary{min-width:0}.student-focus-primary>.student-card{width:100%;margin:0}
.student-highlight{min-width:0;overflow:hidden;background:#fff;border:1px solid #d7e3e8;border-radius:16px;box-shadow:0 8px 30px #173c4a08}
.student-highlight-heading{padding:24px 26px;background:linear-gradient(125deg,#174550,#1b2d46);color:#fff}
.student-highlight-heading .eyebrow{display:block;color:#a8d7d6;font-size:12px;margin-bottom:8px;letter-spacing:.12em}
.student-highlight-heading h2{font-size:25px;color:#fff;margin:0 0 8px}.student-highlight-heading p{font-size:15px;color:#d1e2e8;margin:0}
.student-highlight-body{padding:24px 26px;font-size:16px;line-height:1.8}
.highlight-excerpt{border-left:3px solid #68a6a5;padding:4px 0 4px 17px;margin:0 0 24px}
.highlight-excerpt:nth-child(2){border-color:#c8a66d}.highlight-excerpt:nth-child(3){border-color:#9a8cbb}
.highlight-excerpt h3,.highlight-profile h3{font-size:17px;margin:0 0 9px;line-height:1.45}
.highlight-excerpt p{color:#344f5e;font-size:16px;line-height:1.8;margin:0 0 9px;overflow-wrap:anywhere}
.highlight-excerpt a{font-size:14px;font-weight:600}.highlight-profile{padding:18px;background:#f1f6f8;border:1px solid #e0e9ee;border-radius:12px;margin:0 0 22px}
.highlight-profile>p{font-size:14px;color:#536e7c;line-height:1.6;margin-bottom:14px}
.highlight-profile-head,.highlight-pillar{display:grid;grid-template-columns:minmax(0,1fr) 65px 65px;gap:8px;align-items:center}
.highlight-profile-head{font-size:13px;color:#577281;margin-bottom:12px}.highlight-profile-head>span:not(:first-child){text-align:right}
.highlight-pillar{font-size:15px;margin:12px 0}.highlight-pillar>span,.highlight-pillar>strong{text-align:right}
.highlight-pillar small{display:block;font-size:12px;color:#4d7278}.highlight-pillar-track{grid-column:1/-1;background:#dce8ed;border-radius:6px;height:6px;overflow:hidden}.highlight-pillar-track>span{display:block;height:100%;border-radius:6px}
.highlight-draft-note{padding:12px;background:#fff5e8;border-radius:8px;font-size:14px;line-height:1.6}
.search-card-results .student-focus-layout{grid-template-columns:minmax(0,1fr)}
.archive-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:8px 13px}
.archive-fields>:is(.form-errors,.field-error){grid-column:1/-1}
.report-archive-filter{margin-bottom:16px;padding:16px 20px}.report-archive-filter .field{margin:0 0 10px;min-width:0}.report-archive .section-heading{margin-top:0}
.report-archive-item{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(150px,.8fr) minmax(180px,1fr);gap:20px;align-items:center;padding:20px 0;border-top:1px solid #e0e8ed}
.report-archive-item h3,.draft-queue-item h3{font-size:19px;margin:0 0 7px;overflow-wrap:anywhere}.report-archive-item p,.draft-queue-item p{font-size:15px;color:#577080;margin:4px 0;line-height:1.7}
.report-archive-item .button-row{justify-content:flex-end}.draft-queue-item{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 0;border-top:1px solid #e0e8ed}.draft-queue-item>div:first-child{min-width:0;flex:1}.draft-queue-item .badge{margin-bottom:9px;font-size:13px}
@media(max-width:1150px){.student-focus-layout{grid-template-columns:minmax(0,1fr)}.report-archive-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.report-archive-item .button-row{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:650px){.student-highlight-heading,.student-highlight-body{padding:20px}.student-focus-layout{gap:20px}.report-archive-item{grid-template-columns:minmax(0,1fr)}.draft-queue-item{align-items:flex-start;flex-direction:column}.stat-link:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.stat-link{transition:none}.stat-link:hover{transform:none}}
@media(max-width:900px){.master-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.master-apply,.selected-student-heading{align-items:flex-start;flex-direction:column}.search-card-results{padding:16px}.search-card-results .section-heading{flex-wrap:wrap}.master-panel{padding:16px}}
@media(max-width:540px){.search-student-grid,.focused-card-grid{grid-template-columns:minmax(0,1fr)}.card-top{flex-wrap:wrap}.card-person{flex-basis:65%}.master-totals{gap:10px}.master-totals>div{padding:14px}.master-totals span{font-size:14px}}

.student-workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.student-workspace>.page-heading,
.student-workspace>.mentor-cohort-banner,
.student-workspace>.ov-pages { margin: 0; }
.student-workspace .student-list-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 395px), 1fr));
  gap: 15px 20px;
  min-height: 0;
  align-items: center;
  padding: clamp(16px, 2vw, 24px);
}
.student-list-hero h1 { margin: 0 0 4px; }
.student-list-hero .button-row { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.student-list-hero .student-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.student-hero-stats .stat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 9px;
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid #b0ccd54d;
  border-radius: 10px;
  background: #c2e2e61a;
  box-shadow: none;
}
.student-hero-stats .stat:nth-child(2) { background: #b4cbff1a; }
.student-hero-stats .stat:nth-child(3) { background: #f8d9a51a; }
.student-hero-stats .stat:hover { background: #c2e2e630; border-color: #aedfd6; }
.student-hero-stats .stat-icon { width: 31px; height: 31px; margin: 0; flex-shrink: 0; }
.student-hero-stats .stat-icon .icon { width: 17px; height: 17px; }
.student-hero-stats .stat-label { min-height: 0; color: #e1edf4; font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere; }
.student-hero-stats .stat strong { color: #fff; font-size: 1.65rem; line-height: 1.12; }
.student-workspace-heading h2 { margin: 0 0 4px; }
.student-workspace-heading p { margin: 4px 0; overflow-wrap: anywhere; }
.student-workspace-actions { display: flex; flex-wrap: wrap; gap: 3px 16px; font-size: .875rem; }
.student-workspace .bottom-callout { margin-top: 0; }
@media (max-width: 540px) {
  .student-hero-stats .stat { padding: 9px 8px; }
  .student-hero-stats .stat-icon { display: none; }
  .student-hero-stats .stat-label { font-size: .8125rem; }
}
@media print {
  .student-hero-stats .stat :is(.stat-label, strong) { color: #24465e; }
}

.fitrah-strip { margin: 12px 0 18px; padding: 13px 17px; border: 1px solid #bdd9d2; border-left: 3px solid #367b73; border-radius: 10px; background: #f1f8f6; color: #264f50; }
.fitrah-strip summary { cursor: pointer; }
.fitrah-strip summary span { display: inline-block; margin: 3px 0 3px 12px; }
.fitrah-strip p { max-width: 75ch; line-height: 1.65; }
.fitrah-match { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 10px 20px; align-items: center; padding: 12px 0; border-top: 1px solid #dbe4e8; }
.fitrah-match small { display: block; color: #425d70; line-height: 1.55; }
.fitrah-match select { width: 100%; }
.mentoring-summary .summary-actions ol { display: grid; gap: 7px; padding-left: 1.45rem; margin: 0; }
.mentoring-summary .summary-actions li::marker { font-weight: 700; color: #246966; }
.student-focus-layout .mentoring-summary .summary-section { margin-top: 13px; }

.selected-card-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.selected-card-title h3 { margin: 0; color: #203c50; font-size: 1.2rem; }
.student-workspace-heading:has(+ .student-focus-layout) { margin-block: 12px; }

.fitrah-card { margin: 14px 0 18px; border: 1px solid #bbd5d1; background: linear-gradient(105deg,#edf6f3,#fafcfc 70%); border-radius: 14px; overflow: hidden; }
.fitrah-card-link { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 14px 24px; padding: 18px 22px; color: #193c4c; }
.fitrah-card-link:hover { background: #e6f3ef; text-decoration: none; }
.fitrah-card-link:focus-visible { outline: 3px solid #176b74; outline-offset: -3px; }
.fitrah-card h2,.fitrah-card h3,.fitrah-card p { margin: 0 0 5px; }
.fitrah-card h3 { font-size: 1rem; }
.fitrah-card p { font-size: .95rem; line-height: 1.55; }
.fitrah-card-empty { padding: 14px 20px; }
.fitrah-pillar-list { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 0; margin: 10px 0 0; list-style: none; font-size: .9rem; }
.fitrah-signature > strong, .fitrah-back { display: inline-flex; align-items: center; gap: 6px; }
.fitrah-signature > strong { color: #145f62; margin-top: 3px; }
.fitrah-tabs { margin: 12px 0; align-items: center; }
.fitrah-tabs > * { padding: 8px 12px; }
.fitrah-tabs [aria-current] { border-radius: 8px; background: #e4efed; color: #224b50; }

/* Reading rhythm shared by the roster, the work queue and individual guides. */
.page .guide-reading :is(.step-body p, .focus-panel p, .report-document p, .decision-grid p, blockquote) {
  font-size: 1.0625rem;
  line-height: 1.72;
  max-inline-size: 75ch;
}
.page .guide-reading :is(.step-heading h3, .report-document h3) { font-size: 1.22rem; line-height: 1.45; }
.page .guide-reading :is(summary, .report-toc a, .focus-meta, .small-text) { font-size: .96875rem; line-height: 1.55; }
.page .guide-person { color: inherit; text-decoration: underline; text-decoration-color: #70aaa6; text-underline-offset: .16em; }
.page .guide-person:hover { color: #11665f; }
.page .journey-back { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
/* Calculate the number of cards from the space left beside the sidebar. */
.student-workspace, .work-queue, .search-card-results, .week-detail {
  container: card-area / inline-size;
  min-width: 0;
}
.page :is(.student-grid, .work-cards, .work-decisions, .week-actions, .student-focus-layout),
.page .student-grid.mentoring-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: .8rem;
}
@container card-area (min-width: 44rem) {
  .page :is(.student-grid, .work-cards, .work-decisions, .student-focus-layout),
  .page .student-grid.mentoring-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container card-area (min-width: 50rem) {
  .page .week-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.page :is(.student-grid, .work-decisions, .week-actions) > .empty,
.week-actions > section:only-child { grid-column: 1 / -1; }
.page :is(.student-card, .work-card, .work-decision) {
  min-width: 0;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid #ccdce2;
  border-top: 2px solid var(--card-accent, #36786e);
  background: white;
  overflow-wrap: anywhere;
}
.page .work-steps > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
.page :is(.student-card, .work-card, .student-highlight) :is(li,p,dd) { max-inline-size: 75ch; }
.page .highlight-excerpt { margin-block-end: 1rem; }
.highlight-excerpt ul { margin: .35rem 0; padding-inline-start: 1.3rem; }
.highlight-excerpt li + li { margin-block-start: .35rem; }
.highlight-excerpt details { margin: .5rem 0; }
.highlight-excerpt summary { color: #215964; cursor: pointer; font-weight: 600; }
.profile-highlight .fitrah-pillar-list { margin: 0 0 1rem; }
.profile-highlight .student-highlight-heading { background: #234e50; }
#profiling-santri, #arahan-terbaru, .report-document [id] { scroll-margin-top: calc(var(--topbar-height, 70px) + 1rem); }
.page .work-card .work-steps, .page .student-card .summary-section :is(p, li, blockquote) { font-size: 1.0625rem; line-height: 1.65; }
.page .student-card .summary-section h4 { font-size: 1.0625rem; }
.page .student-card :is(.summary-week-label, .card-chart-link, .summary-review) { font-size: .9375rem; }

/* Assessment and operational evidence occupy the first dashboard row. */
.dashboard-briefing { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 1rem; align-items: stretch; margin-block: 1rem; }
.dashboard-briefing > .panel { margin: 0; min-width: 0; }
.dashboard-briefing .team-achievement-body { grid-template-columns: minmax(0, 1fr); }
.dashboard-briefing .team-achievement-rating { border: 0; padding: 0; }
.dashboard-briefing .operations-preview { background: #f5f9fa; }
.work-distribution, .status-distribution { margin: 0; }
.work-distribution figcaption h2 { margin: 0; }
.work-distribution figcaption p, .work-distribution > p { font-size: .95rem; color: #415b68; }
.action-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); text-align: center; margin-block: 1rem; }
.action-columns > div { display: grid; grid-template-rows: 7rem auto auto; align-content: start; }
.action-columns strong { font-size: 1.3rem; color: #203d4b; margin-block: .35rem 0; }
.action-columns .column-track { display: flex; align-items: end; justify-content: center; border-bottom: 1px solid #9db2ba; }
.column-track span { width: min(50%, 3.5rem); background: #546a88; border-radius: 4px 4px 0 0; }
.action-columns > div:nth-child(2) .column-track span { background: #157772; }
.action-columns > div:nth-child(3) .column-track span { background: #976620; }
.decision-links { display: grid; border-top: 1px solid #d7e3e6; }
.decision-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; border-bottom: 1px solid #d7e3e6; color: #19535e; font-weight: 600; }
.status-distribution { margin-block: .9rem; }
.status-distribution figcaption { color: #304e62; font-weight: 650; }
.status-distribution ul { list-style: none; padding: 0; margin: .4rem 0; }
.status-distribution li { display: grid; grid-template-columns: minmax(6rem, 1fr) minmax(2rem, 1.6fr) 3ch; gap: .6rem; align-items: center; padding-block: .15rem; }
.status-distribution li strong { text-align: right; font-variant-numeric: tabular-nums; }
.status-track { display: block; height: .7rem; border-radius: .2rem; overflow: hidden; background: #e1e8ed; }
.status-track i { display: block; height: 100%; background-color: #3a7188; }
.status-track .segment-accelerating { background: #0d8179; }
.status-track .segment-growing { background: #3674d9; }
.status-track .segment-on_track { background: #7959ba; }
.status-track .segment-at_risk { background: #b76c0d; }
.status-track .segment-off_track { background: #c54a51; }
.status-track .segment-flat { background: #64748b; }
@media (max-width: 1050px) { .dashboard-briefing { grid-template-columns: minmax(0, 1fr); } }
@media print { .dashboard-briefing { display: block; } .decision-links { display: none; } .work-distribution, .status-distribution { break-inside: avoid; print-color-adjust: exact; } }


/* A profile and its active mentoring instructions share the first row. */
.student-context { display: grid; gap: .8rem; min-width: 0; }
.student-workspace:has(.student-context) { gap: .55rem; }
.student-workspace .detail-section-heading { margin: 0; }
.student-context :is(.student-highlight-heading, .student-highlight-body) { padding: .8rem 1rem; }
.student-context .student-highlight-heading h2 { font-size: 1.25rem; margin-block: .1rem; }
.student-context .student-highlight-heading .eyebrow { margin-bottom: .2rem; }
.student-context .highlight-excerpt { margin-bottom: .65rem; padding: 0 0 0 .7rem; }
.student-context .highlight-excerpt :is(h3, p) { margin-bottom: .25rem; }
.student-context .highlight-excerpt p { line-height: 1.55; }
.student-context .fitrah-pillar-list { margin-bottom: .6rem; }
.profile-topic { border-top: 1px solid #d9e5e7; }
.profile-topic summary, .roster-details summary {
  padding-block: .5rem; color: #235666; font-weight: 650; cursor: pointer;
}
.profile-topic summary span { font-weight: 500; }
.profile-topic ul { padding-inline-start: 1.25rem; margin: 0 0 .4rem; }
.profile-topic li + li { margin-top: .25rem; }
.profile-topic[open] { padding-bottom: .5rem; }
.profile-topic + .button { margin-top: .5rem; }
.roster-details { border-top: 1px solid #dce5e9; }
.roster-preview .card-period { margin-block: .4rem; }
.roster-preview .roster-focus { margin: .35rem 0 .55rem; color: #244659; line-height: 1.5; }
.roster-focus strong { display: block; font-size: .9375rem; }
.roster-preview .card-bottom { padding-block: .45rem 0; margin-top: .2rem; }
.roster-preview .card-bottom .text-button { min-height: 36px; }
.page .work-decision:has(.work-issue-list) { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.work-decision .work-issue-list { display: grid; gap: .4rem; }
.work-decision .decision-issue {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .6rem;
}
.work-decision .decision-issue + .decision-issue { padding-top: .45rem; }
.issue-copy { flex: 1 1 12rem; min-width: 0; }
.issue-copy strong { color: #284a5d; font-size: .9375rem; }
.work-decision .issue-copy p { margin: 0; line-height: 1.45; }
.page .decision-issue > .button { min-height: 38px; padding: .3rem .65rem; }
@media (pointer: coarse) {
  .page :is(.roster-details summary, .profile-topic summary, .decision-issue > .button, .roster-preview .text-button) { min-height: 44px; }
}

#control-mentoring .work-distribution{margin:.8rem 0}
#control-mentoring .work-distribution h2{font-size:1.05rem}
#control-mentoring .action-columns>div{grid-template-rows:4.5rem auto auto}
#control-mentoring .decision-links{margin-block:.7rem}

:where(main) :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid #16747b;
  outline-offset: 3px;
}
