.phase-two .cpp-coach {
  flex: 0 0 auto;
  min-width: 0;
  margin: 8px 0;
}
.phase-two .cpp-coach-text { overflow-wrap: anywhere; }
.phase-two .cpp-coach-head { align-items: start; }
.phase-two .cpp-coach-exit { flex: 0 0 100px; min-height: 40px; border-radius: 12px; }
.phase-two .cpp-coach-bar { flex-wrap: wrap; }
.phase-two .cpp-coach-bar i { min-width: 5px; }
.phase-two .guide { flex: 0 0 auto; max-height: 48%; overflow-y: auto; }
.phase-two .home-head { gap: 4px; padding: 8px 16px 6px; }
.phase-two .home-head h2 { font-size: 21px; }
.phase-two .home-head .date { font-size: 11px; }
.phase-two #browser-guide,
.phase-two .settings-guide,
.phase-two .notes-guide { display: none !important; }
.phase-two #browser-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.phase-two .p2-workspace {
  display: grid;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  gap: 12px;
  padding: 14px;
  overflow-y: auto;
  color: #233531;
  background: #f7faf8;
  border: 1px solid #e0e9e4;
  border-radius: 20px;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.phase-two .p2-workspace[hidden],
.phase-two [data-p2][hidden] { display: none !important; }
.p2-workspace h3 { margin: 0; font-size: 23px; letter-spacing: -.5px; }
.p2-workspace h4 { margin: 0; font-size: 17px; }
.p2-workspace p { margin: 0; overflow-wrap: anywhere; }
.p2-workspace .p2-eyebrow { color: #397263; font-size: 11px; font-weight: 750; letter-spacing: 1px; text-transform: uppercase; }
.p2-workspace .p2-card { display: grid; gap: 10px; padding: 15px; border: 1px solid #e0e9e4; border-radius: 16px; background: #fff; }
.p2-workspace label { display: grid; gap: 5px; font-weight: 650; }
.p2-workspace input:not([type=checkbox]),
.p2-workspace select,
.p2-workspace textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px;
  border: 1px solid #9aafa5;
  border-radius: 10px;
  color: #233531;
  background: #fff;
  font: inherit;
}
.p2-workspace textarea { min-height: 80px; resize: vertical; }
.p2-workspace .p2-checkbox { grid-template-columns: 24px minmax(0, 1fr); align-items: center; min-height: 44px; }
.p2-workspace input[type=checkbox] { width: 22px; height: 22px; accent-color: #176957; }
.phase-two .p2-button {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #c5d8ce;
  border-radius: 12px;
  color: #165b4c;
  background: #fff;
  font: 650 14px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.phase-two .p2-primary { color: #fff; background: #176957; border-color: #176957; text-align: center; }
.phase-two .p2-danger { color: #943d35; border-color: #dec7c2; }
.phase-two .p2-button:disabled { opacity: .5; cursor: default; }
.phase-two .p2-button:focus-visible,
.p2-workspace :focus-visible { outline: 3px solid #cf9219; outline-offset: 2px; }
.p2-status { padding: 11px; border-radius: 12px; color: #235a48; background: #e7f3eb; font-size: 14px; }
.p2-status:empty { display: none; }
.p2-status[data-error=true] { color: #803c23; background: #fff0df; }
.p2-workspace dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: 0; }
.p2-workspace dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.p2-workspace code { overflow-wrap: anywhere; white-space: normal; font-size: 14px; }
.p2-watch-controls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.p2-watch-controls button { min-height: 44px; }
.p2-resources { color: #53665e; font-size: 12px; line-height: 1.4; }
.p2-resources summary { min-height: 28px; cursor: pointer; }
.p2-resources a { display: inline-block; padding-block: 8px; color: #165b4c; }
.phase-two .cpp-coach { scroll-margin-block: 8px; }
.phase-two #video-view .cpp-coach { margin-inline: 8px; }
.phase-two #video-view .video-feed { min-height: 110px; }
.phase-two #video-view .video-active { min-height: 0; overflow-y: auto; }
.phase-two #messages-view .chat-messages { min-height: 60px; }
.phase-two #photo-detail .photo-detail-actions { flex-wrap: wrap; }
.phase-two #photo-detail { overflow-y: auto; }
.phase-two #browser-view,
.phase-two #messages-view,
.phase-two #notes-view,
.phase-two #bank-view,
.phase-two #store-view,
.phase-two #photos-view { overflow-y: auto !important; scroll-padding-block: 12px; }
.phase-two #photos-view > * { flex-shrink: 0; }
.phase-two #photos-view #photos-grid { flex: 0 0 auto; overflow: visible; }
.phase-two #notes-view .notes-list-screen,
.phase-two #notes-view .notes-editor,
.phase-two #notes-view .notes-list { flex: 0 0 auto; overflow: visible; }
.phase-two #bank-view .bank-content { flex: 0 0 auto; overflow-y: visible; }
.phase-two #store-view .store-catalogue,
.phase-two #store-view .ps-detail,
.phase-two #store-view .store-download { flex: 0 0 auto; overflow-y: visible !important; }
.phase-two #browser-content,
.phase-two .p2-workspace { flex: 0 0 auto; min-height: 170px; overflow: visible; }
.phase-two #messages-view #messages-home,
.phase-two #messages-view .chat-view,
.phase-two #messages-view .contact-picker { flex: 0 0 auto; min-height: 220px; overflow: visible; }
.phase-two #messages-view .message-list,
.phase-two #messages-view .chat-messages { flex: 0 0 auto; overflow: visible; }
.phase-two #messages-view .message-thread { min-height: 46px; }
.phase-two #settings-view .settings-header { position: relative; }
@media (max-width: 460px), (max-height: 650px) {
  .phase-two .p2-workspace { padding: 10px; gap: 9px; border-radius: 14px; font-size: 14px; }
  .phase-two .p2-workspace .p2-card { padding: 11px; }
  .phase-two .cpp-coach { padding: 8px 10px; }
}
