.journey-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.journey-tabs button{background:#edf4f5;color:#163f4b;border:1px solid #c6d9dd;padding:11px 16px;border-radius:9px;font:inherit;cursor:pointer}.journey-tabs button[aria-pressed=true]{background:#154b5b;color:white}.journey-section{padding:22px 0;border-bottom:1px solid #d9e4e7}.journey-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.journey-summary div{margin:0}.journey-section dt,.journey-history dt{font-weight:700;color:#48646d;margin-top:12px}.journey-section dd,.journey-history dd{margin:4px 0 12px;white-space:pre-wrap}.journey-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.journey-form label{display:grid;gap:6px;font-size:14px;font-weight:700}.journey-form input,.journey-form select,.journey-form textarea,.journey-table input,.journey-table textarea,.journey-table select{width:100%;min-width:0;box-sizing:border-box;border:1px solid #bdd0d5;border-radius:6px;padding:9px;background:white;color:#163f4b;font:inherit}.journey-form .journey-check{display:flex;align-items:center;font-weight:400}.journey-check input{width:auto;flex:none}.journey-form fieldset{grid-column:1/-1;min-width:0;border:1px solid #d9e4e7;border-radius:8px;padding:12px}.journey-form button{align-self:end;width:fit-content}.journey-table-wrap{overflow:auto}.journey-table{border-collapse:collapse;width:100%;min-width:620px;text-align:left}.journey-table th,.journey-table td{padding:12px 8px;border-bottom:1px solid #d9e4e7;vertical-align:top}.journey-table th{background:#edf4f5}.journey-table td:nth-child(1){width:55%}.journey-table td:nth-child(2){width:28%}.journey-table td:nth-child(3){width:17%}.journey-table input{margin-top:6px}.journey-table small{display:block}.journey-specialist,.journey-history{padding:16px 0;border-bottom:1px solid #d9e4e7}.journey-specialist summary,.journey-history summary{cursor:pointer;font-weight:700}.journey-message:not(:empty){padding:12px;background:#edf4f5;border-left:3px solid #154b5b}.journey-links{max-height:340px;overflow:auto}.journey-linked{padding:12px 0;border-bottom:1px solid #d9e4e7}.journey-linked details{padding:8px 0}.journey-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:22px 0}.journey-groups ul{list-style:none;padding:0}.journey-groups li{padding:12px 0;border-bottom:1px solid #d9e4e7}.journey-groups small{display:block;color:#48646d;margin-top:5px}[data-journey] [hidden],[data-student-journey] [hidden]{display:none!important}.journey-form p{font-size:14px}.journey-section h3{margin-top:0}@media(max-width:700px){.journey-summary,.journey-form,.journey-groups{grid-template-columns:1fr}.journey-section{padding:18px 0}.journey-tabs button{flex:1}.journey-summary{gap:8px}}
[data-journey]{min-width:0}

/* Functional layout only: keep assessment editing usable without sideways scrolling. */
.journey-linked small{display:block;margin:4px 0 8px}
.journey-enrichment{display:inline-block;margin-left:6px;padding:2px 6px;border-radius:4px;background:#edf4f5;color:#154b5b;font-size:12px;font-weight:700}
[data-student-journey] .journey-groups{grid-template-columns:1fr}
@media(max-width:700px){
  .journey-table{min-width:0;display:block}
  .journey-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .journey-table tbody,.journey-table td{display:block;width:100%!important;box-sizing:border-box}
  .journey-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(84px,.48fr);gap:5px 10px;width:100%;box-sizing:border-box}
  .journey-table tr{padding:10px 0;border-bottom:1px solid #d9e4e7}
  .journey-table td{border:0;padding:0}
  .journey-table td::before{content:attr(data-label);display:block;font-weight:700;margin-bottom:3px}
  .journey-table td[data-label="Skill"]{grid-column:1/-1;font-weight:700}
  .journey-table td[data-label="Skill"]::before{display:none}
  .journey-table td[data-label="Last assessed"]{font-size:12px;color:#48646d}
  .journey-table td[data-label="Last assessed"] small{display:none}
  .journey-table-wrap{overflow:visible}
  .journey-form select,.journey-section select{max-width:100%}
}

.journey-form .journey-optional,.journey-form [data-sp1-readiness]{grid-column:1/-1;min-width:0}

.journey-lesson-actions{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}
.journey-lesson-actions button{min-height:44px;padding:10px 16px}
.journey-lesson-actions [data-action-status]{order:3;flex-basis:100%}
@media(min-width:370px) and (max-width:700px){
  [data-jform="lesson"]{grid-template-columns:repeat(2,minmax(0,1fr))}
  [data-jform="lesson"]>label{grid-column:1/-1}
  [data-jform="lesson"]>label:has([name="lesson_date"]),[data-jform="lesson"]>label:has([name="lesson_time"]),[data-jform="lesson"]>label:has([name="lesson_status"]),[data-jform="lesson"]>label:has([name="deduct_lesson"]){grid-column:auto}
}
