/* CN-SEG-007 R12.3-F: mobile-first dashboard density, visual only.
   Keeps existing content, navigation, authenticated controls and ECUE cards intact. */
@media (max-width: 600px) {
  body.seg-boost-dashboard .p12-main {
    padding-top: 10px !important;
  }
  body.seg-boost-dashboard .p12-head.r273-welcome.r282-welcome.r287-premium {
    padding: 12px !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
    border-radius: 15px !important;
  }
  body.seg-boost-dashboard .r287-premium .r282-welcome-main {
    gap: 10px !important;
    align-items: center !important;
  }
  body.seg-boost-dashboard .r287-premium .r282-welcome-symbol {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    font-size: 22px !important;
    border-radius: 11px !important;
  }
  body.seg-boost-dashboard .r287-premium .r282-welcome-copy h1 {
    font-size: clamp(18px, 5vw, 21px) !important;
    line-height: 1.18 !important;
    margin: 2px 0 !important;
  }
  body.seg-boost-dashboard .r287-premium .r282-welcome-copy p {
    font-size: 12px !important;
    line-height: 1.36 !important;
    margin: 3px 0 0 !important;
  }
  body.seg-boost-dashboard .r287-premium .r273-welcome-label {
    font-size: 10px !important;
  }
  body.seg-boost-dashboard .r287-premium .r282-welcome-university {
    padding: 9px 10px !important;
    gap: 9px !important;
    border-radius: 11px !important;
  }
  body.seg-boost-dashboard .r287-premium .r287-school-icon {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
  }
  body.seg-boost-dashboard .r287-premium .r282-uni-caption {
    font-size: 10px !important;
  }
  body.seg-boost-dashboard .r287-premium .r282-uni-meta {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
  body.seg-boost-dashboard .seg-primary-uni-card:not([hidden]) {
    padding: 12px !important;
    margin-bottom: 10px !important;
    border-radius: 13px !important;
  }
  body.seg-boost-dashboard .seg-primary-uni-card:not([hidden]) h2 {
    font-size: 16px !important;
    margin-bottom: 4px !important;
  }
  body.seg-boost-dashboard .seg-primary-uni-card:not([hidden]) p {
    font-size: 12px !important;
    line-height: 1.38 !important;
    margin-block: 5px !important;
  }
  body.seg-boost-dashboard .segc-personal-shortcuts {
    margin-block: 8px 10px !important;
  }
  body.seg-boost-dashboard #segcShortcutsTitle {
    margin-bottom: 7px !important;
    font-size: 16px !important;
  }
  body.seg-boost-dashboard .segc-personal-shortcut-grid {
    gap: 7px !important;
  }
  body.seg-boost-dashboard .segc-personal-shortcut {
    min-height: 63px !important;
    padding: 8px !important;
    border-radius: 11px !important;
  }
  body.seg-boost-dashboard .p12-column > .p12-card:has(#p12Ecues) {
    padding-top: 12px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.seg-boost-dashboard .p12-head.r273-welcome.r282-welcome.r287-premium {
    scroll-behavior: auto !important;
  }
}

/* CN-SEG-007 R12.3-U — finition visuelle du tableau de bord connecte.
   Scope: tableau de bord seulement. Aucun changement de route ou de droit. */
body.seg-boost-dashboard .segc-personal-shortcut-grid {
  align-items: stretch;
  gap: clamp(10px, 1.5vw, 16px) !important;
}
body.seg-boost-dashboard .segc-personal-shortcut {
  box-sizing: border-box;
  min-width: 0;
  border-radius: 14px !important;
  min-height: 78px !important;
  padding: 12px 14px !important;
  transition: box-shadow .16s ease, transform .16s ease !important;
}
body.seg-boost-dashboard .segc-personal-shortcut:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(14,57,80,.13) !important;
}
body.seg-boost-dashboard .segc-personal-shortcut:focus-visible,
body.seg-boost-dashboard #p12Ecues .p12-ecue-direct-links a:focus-visible {
  outline: 3px solid #edb74a !important;
  outline-offset: 3px !important;
}
body.seg-boost-dashboard .segc-personal-shortcut span:last-child {
  min-width: 0;
}
body.seg-boost-dashboard .segc-personal-shortcut small {
  display: block;
  line-height: 1.38 !important;
  margin-top: 4px;
}
body.seg-boost-dashboard #p12Ecues.p12-list {
  gap: 13px !important;
  align-items: stretch !important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 12px !important;
  gap: 8px !important;
  min-width: 0 !important;
  overflow: hidden;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card > .seg-p3b-ecue-cover {
  height: 116px !important;
  max-height: 116px !important;
  min-height: 0 !important;
  width: calc(100% + 24px) !important;
  margin: -12px -12px 3px !important;
  border-radius: 15px 15px 0 0 !important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card .r276-name b {
  font-size: clamp(15px, 1.16vw, 17px) !important;
  line-height: 1.32 !important;
  overflow-wrap: anywhere !important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card .seg-ecue-progress-empty,
body.seg-boost-dashboard #p12Ecues .r286-ocean-card > div:has(> .p12-bar) {
  padding: 8px 10px !important;
  border-radius: 10px !important;
  min-width: 0;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card .seg-student-observed-progress-r123t3 {
  order: 2;
  margin-top: 0 !important;
  padding: 9px 11px !important;
  border: 1px solid #cfe4ec;
  border-left: 3px solid #1d7894;
  border-radius: 10px !important;
  background: #eff8fb !important;
  color: #174a65 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 650 !important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card .p12-ecue-direct-links {
  order: 3;
  margin-top: auto !important;
  gap: 8px !important;
  padding-top: 10px !important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card .p12-ecue-direct-links > .r279-ecue-action {
  min-width: 0 !important;
  min-height: 50px !important;
  padding: 8px 6px !important;
  font-size: 12px !important;
  line-height: 1.28 !important;
  border-radius: 9px !important;
}
body.seg-boost-dashboard #p12Ecues .r286-ocean-card .p12-ecue-direct-links > .seg-boost-action-agenda {
  min-height: 38px !important;
}
@media (max-width: 879px) {
  body.seg-boost-dashboard #p12Ecues.p12-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  body.seg-boost-dashboard .segc-personal-shortcut-grid {
    gap: 8px !important;
  }
  body.seg-boost-dashboard .segc-personal-shortcut {
    min-height: 60px !important;
    padding: 9px 10px !important;
    border-radius: 11px !important;
  }
  body.seg-boost-dashboard #p12Ecues.p12-list {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
  }
  body.seg-boost-dashboard #p12Ecues .r286-ocean-card > .seg-p3b-ecue-cover {
    height: 122px !important;
    max-height: 122px !important;
  }
  body.seg-boost-dashboard #p12Ecues .r286-ocean-card .p12-ecue-direct-links > .r279-ecue-action {
    min-height: 48px !important;
    font-size: 12px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.seg-boost-dashboard .segc-personal-shortcut {
    transition: none !important;
  }
  body.seg-boost-dashboard .segc-personal-shortcut:hover {
    transform: none !important;
  }
}