:root {
  --ink: #0f1117;
  --paper: #f5f0e8;
  --cream: #faf7f2;
  --sage: #4a6741;
  --sage-light: #6b8f62;
  --sage-pale: #e8f0e6;
  --amber: #c8822a;
  --amber-pale: #fdf0df;
  --rust: #a84832;
  --sky: #3a6b8a;
  --sky-pale: #e3eef5;
  --muted: #7a7568;
  --border: #ddd8ce;
  --surface: #ffffff;
  --shadow: 0 12px 32px rgba(15, 17, 23, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-padding-top: 86px;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Sidebar */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  display: flex;
  width: 232px;
  min-height: 100vh;
  flex-direction: column;
  background: var(--ink);
  border-right: 2px solid #1e2230;
}

.mobile-nav-toggle,
.sidebar-close,
.sidebar-backdrop {
  display: none;
}

.logo {
  display: block;
  padding: 24px 18px 18px;
  border-bottom: 1px solid #2a2d3a;
}

.logo-mark {
  color: var(--paper);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.logo-mark span {
  color: var(--sage-light);
}

.logo-sub {
  margin-top: 6px;
  color: #5a5f70;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sidebar-nav {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 10px;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: #2a2d3a;
  border-radius: 4px;
}

.nav-section {
  padding: 15px 0 5px;
}

.nav-label {
  padding: 0 18px 7px;
  color: #3a3f50;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 8px 18px;
  color: #8a8fa0;
  border-left: 2px solid transparent;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-item:hover,
.nav-item.active {
  color: var(--paper);
  background: #1a1d28;
}

.nav-item.active {
  border-left-color: var(--sage-light);
}

.nav-item .icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex: 0 0 auto;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.nav-item .icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-badge {
  margin-left: auto;
  padding: 2px 7px;
  color: #fff;
  background: var(--rust);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-footer {
  margin-top: auto;
  padding: 18px;
  border-top: 1px solid #1e2230;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar,
.s-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 800;
}

.avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--sage), var(--sky));
  border-radius: 50%;
  font-size: 13px;
}

.user-info {
  min-width: 0;
}

.user-info .name {
  overflow: hidden;
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-info .role {
  margin-top: 2px;
  color: #5a5f70;
  font-size: 11px;
}

.institution-chip {
  margin-top: 14px;
  padding-top: 12px;
  color: #8a8fa0;
  border-top: 1px solid #2a2d3a;
  font-size: 11px;
  font-weight: 700;
}

.institution-chip span {
  display: block;
  margin-top: 3px;
  color: #5a5f70;
  font-weight: 500;
}

/* Main */
.main {
  min-height: 100vh;
  margin-left: 232px;
  max-width: calc(100vw - 232px);
  min-width: 0;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 62px;
  padding: 0 32px;
  background: rgba(250, 247, 242, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.topbar-left h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.topbar-left p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content {
  padding: 30px 32px;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.content > *,
.main > * {
  max-width: 100%;
  min-width: 0;
}

.btn,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.btn-primary,
.primary-button {
  color: #fff;
  background: var(--sage);
}

.btn-primary:hover,
.primary-button:hover {
  background: var(--sage-light);
}

.btn:disabled,
.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn-ghost,
.secondary-button {
  color: var(--muted);
  background: transparent;
  border-color: var(--border);
}

.btn-ghost:hover,
.secondary-button:hover {
  color: var(--ink);
  background: var(--paper);
}

.compact {
  min-height: 34px;
  padding: 6px 12px;
}

.inline-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 3px 4px 3px 0;
  vertical-align: middle;
}

.inline-form input,
.inline-form select {
  width: auto;
  min-width: 112px;
  min-height: 34px;
  padding: 6px 9px;
  font-size: 12px;
}

/* Layout */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
  max-width: 100%;
  min-width: 0;
}

.two-col,
.dashboard-grid,
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 20px;
  margin-bottom: 20px;
  max-width: 100%;
  min-width: 0;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-bottom: 20px;
}

.three-col,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  max-width: 100%;
  min-width: 0;
}

.page-heading,
.student-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-heading h1,
.student-profile h1 {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 28px;
  line-height: 1.1;
}

.page-heading p,
.student-profile p {
  margin: 6px 0 0;
  color: var(--muted);
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Cards */
.card,
.panel,
.table-panel,
.metric,
.login-card,
.error-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: none;
  max-width: 100%;
  min-width: 0;
}

.card,
.table-panel {
  overflow: hidden;
}

.panel,
.metric,
.login-card,
.error-panel {
  padding: 20px 22px;
}

.card-header,
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.card-header > div,
.panel-header > div {
  min-width: 0;
}

.panel-header {
  margin: -20px -22px 18px;
}

.card-title,
.panel-header h2,
.module-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.card-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.card-link,
.panel-header a,
.text-link {
  flex: 0 0 auto;
  max-width: 100%;
  color: var(--sage);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.card-body {
  padding: 18px 22px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.stat-card,
.metric {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 20px 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover,
.metric:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stat-card::before,
.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sage);
}

.stat-card.green::before {
  background: var(--sage);
}

.stat-card.amber::before {
  background: var(--amber);
}

.stat-card.sky::before {
  background: var(--sky);
}

.stat-card.rust::before {
  background: var(--rust);
}

.stat-icon {
  display: inline-grid;
  width: 34px;
  height: 30px;
  place-items: center;
  margin-bottom: 12px;
  color: var(--sage);
  background: var(--sage-pale);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.stat-value,
.metric strong {
  display: block;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.stat-label,
.metric span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric small,
.stat-card small,
.student-row small,
.timeline small,
td small,
.muted-line,
.empty,
.empty-cell {
  color: var(--muted);
}

.stat-change {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.stat-change.up {
  color: var(--sage);
  background: var(--sage-pale);
}

.stat-change.down {
  color: var(--rust);
  background: #fdeae7;
}

.stat-change.neutral {
  color: var(--muted);
  background: #eee9df;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  padding: 22px 24px;
  color: var(--paper);
  background: linear-gradient(135deg, var(--ink) 0%, #1e2540 100%);
  border-radius: 12px;
}

.notice > div:not(.notice-icon) {
  min-width: 0;
  flex: 1 1 auto;
}

.notice-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  font-weight: 900;
}

.notice h3 {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.notice p {
  margin: 5px 0 0;
  color: #8a8fa0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.notice-btn {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 10px 20px;
  color: #fff;
  background: var(--sage);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.soft-notice {
  color: var(--ink);
  background: linear-gradient(135deg, #fff 0%, var(--paper) 100%);
  border: 1px solid var(--border);
}

.soft-notice .notice-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--sage), var(--sky));
}

.soft-notice p {
  color: var(--muted);
}

.owner-command-center {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.owner-command-main {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.owner-command-main h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.owner-command-main p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.owner-command-hero-value {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.owner-command-hero-value strong {
  font-size: 34px;
  line-height: 1;
}

.owner-command-hero-value span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.owner-command-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.owner-command-meta div {
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.owner-command-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.owner-command-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.owner-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.daily-focus-shell {
  margin-bottom: 14px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(74, 103, 65, 0.38), transparent 30%),
    linear-gradient(135deg, #111820 0%, #1d2929 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(15, 17, 23, 0.14);
}

.daily-focus-head,
.daily-focus-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.daily-focus-head h1 {
  margin: 11px 0 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.08;
}

.daily-focus-head p {
  margin: 8px 0 0;
  color: #c7d0ce;
  line-height: 1.5;
}

.ai-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dce8de;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.ai-status i {
  width: 8px;
  height: 8px;
  background: #86b47b;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(134, 180, 123, 0.14);
}

.daily-focus-meta {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 10px;
}

.daily-focus-meta span {
  color: #c7d0ce;
  font-size: 11px;
  font-weight: 800;
}

.daily-focus-meta a,
.daily-focus-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  color: #17201d;
  background: #fff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.daily-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px 20px;
}

.daily-focus-card {
  display: flex;
  min-width: 0;
  min-height: 224px;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px;
  color: var(--ink);
  background: #fff;
  border-top: 5px solid var(--sky);
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
}

.daily-focus-card.action {
  border-top-color: var(--sage);
}

.daily-focus-card.attention,
.daily-focus-card.risk {
  border-top-color: var(--amber);
}

.daily-focus-card.crisis {
  border-top-color: var(--rust);
}

.daily-focus-card.clear {
  border-top-color: var(--sage);
}

.daily-focus-card > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.daily-focus-card > strong {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.daily-focus-card p {
  margin: 9px 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.daily-focus-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.daily-focus-card a b {
  font-size: 16px;
}

.daily-focus-foot {
  align-items: center;
  padding-top: 13px;
  padding-bottom: 13px;
  background: rgba(255, 255, 255, 0.055);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.daily-focus-foot span {
  color: #bac4c1;
  font-size: 11px;
}

.daily-focus-foot a {
  min-height: auto;
  padding: 0;
  color: #fff;
  background: transparent;
}

.priority-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.priority-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid #8a8f98;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(15, 17, 23, 0.055);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.priority-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.priority-card.crisis {
  border-left-color: var(--rust);
  background: #fff8f6;
}

.priority-card.risk-students {
  border-left-color: var(--amber);
  background: #fffbf5;
}

.priority-card.sessions {
  border-left-color: var(--sky);
  background: #f7fbfd;
}

.priority-card.library {
  border-left-color: #8a8f98;
  background: #fafafa;
}

.priority-card-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: #8a8f98;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 900;
}

.priority-card.crisis .priority-card-icon {
  background: var(--rust);
}

.priority-card.risk-students .priority-card-icon {
  background: var(--amber);
}

.priority-card.sessions .priority-card-icon {
  background: var(--sky);
}

.priority-card-copy {
  min-width: 0;
}

.priority-card-copy strong,
.priority-card-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.priority-card-copy strong {
  font-size: 12px;
}

.priority-card-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.priority-card > b {
  font-size: 23px;
}

.risk-pathway {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.6fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--amber);
  border-radius: 11px;
  box-shadow: var(--shadow);
}

.risk-pathway-copy > span {
  color: var(--amber);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.risk-pathway-copy h2 {
  margin: 6px 0 0;
  font-size: 19px;
}

.risk-pathway-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.risk-pathway-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.risk-pathway-steps a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.risk-pathway-steps a:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -13px;
  color: #bbb7ae;
  content: "→";
  transform: translateY(-50%);
}

.risk-pathway-steps i {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.risk-pathway-steps span,
.risk-pathway-steps small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.risk-pathway-steps span {
  font-size: 11px;
  font-weight: 900;
}

.risk-pathway-steps small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.pdr-ai-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 22px;
  overflow: hidden;
  color: #fff;
  background: #1f2725;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 6px solid var(--sage);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.pdr-ai-center.watch {
  border-left-color: var(--amber);
}

.pdr-ai-center.risk {
  border-left-color: var(--rust);
}

.pdr-ai-main,
.pdr-ai-side {
  display: grid;
  align-content: start;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.pdr-ai-kicker,
.pdr-ai-title,
.pdr-ai-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}

.pdr-ai-kicker .eyebrow {
  color: #d8ded6;
}

.pdr-ai-kicker em {
  min-width: 0;
  flex: 1 1 auto;
  color: #d8ded6;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: right;
}

.pdr-ai-title {
  align-items: flex-start;
  margin-top: 12px;
}

.pdr-ai-title > div {
  min-width: 0;
}

.pdr-ai-title h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.pdr-ai-title p,
.pdr-ai-commentary span,
.pdr-ai-signal span,
.pdr-ai-signal p {
  color: #c6cdc8;
}

.pdr-ai-title p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.pdr-ai-primary,
.pdr-ai-actions a,
.pdr-ai-signal a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  color: #17201d;
  background: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.pdr-ai-commentary {
  max-width: 100%;
  min-width: 0;
  margin-top: 18px;
  padding: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.pdr-ai-commentary span,
.pdr-ai-commentary strong,
.pdr-ai-signal span,
.pdr-ai-signal strong {
  display: block;
}

.pdr-ai-commentary span,
.pdr-ai-signal span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.pdr-ai-commentary strong {
  margin-top: 6px;
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pdr-ai-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 14px;
  overflow: hidden;
}

.pdr-ai-actions a {
  min-height: 34px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: normal;
}

.pdr-ai-signal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 210px;
  padding: 16px;
  overflow: hidden;
  background: #fff;
  border-top: 5px solid var(--sage);
  border-radius: 10px;
}

.pdr-ai-signal.watch {
  border-top-color: var(--amber);
}

.pdr-ai-signal.risk {
  border-top-color: var(--rust);
}

.pdr-ai-signal strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pdr-ai-signal p {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.pdr-ai-signal a {
  margin-top: auto;
  color: #fff;
  background: var(--ink);
  white-space: normal;
}

.pdr-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.pdr-role-card {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 118px;
  padding: 14px;
  overflow: visible;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--sage);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pdr-role-card.watch {
  border-left-color: var(--amber);
}

.pdr-role-card.risk {
  border-left-color: var(--rust);
}

.pdr-role-card span,
.pdr-persona-lenses span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.pdr-role-card strong {
  color: var(--ink);
  font-size: 25px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.pdr-role-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pdr-command-brief {
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--sage);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.pdr-command-brief.watch {
  border-left-color: var(--amber);
}

.pdr-command-brief.risk {
  border-left-color: var(--rust);
}

.pdr-brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.pdr-brief-head > div:first-child {
  min-width: 0;
}

.pdr-brief-head h2 {
  max-width: 920px;
  margin: 6px 0 0;
  font-size: 20px;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.pdr-brief-score {
  display: grid;
  min-width: 112px;
  padding: 12px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
}

.pdr-brief-score strong {
  font-size: 30px;
  line-height: 1;
}

.pdr-brief-score span {
  margin-top: 4px;
  color: #cfd3dc;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.pdr-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 14px;
  min-width: 0;
}

.pdr-next-actions,
.pdr-evidence-grid {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.pdr-next-action {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sage);
  border-radius: 8px;
}

.pdr-next-action.watch {
  border-left-color: var(--amber);
}

.pdr-next-action.risk {
  border-left-color: var(--rust);
  background: #fff7f5;
}

.pdr-next-action > span {
  display: grid;
  width: 32px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.pdr-next-action div {
  min-width: 0;
}

.pdr-next-action strong,
.pdr-next-action small,
.pdr-next-action em,
.pdr-evidence-grid span,
.pdr-evidence-grid strong,
.pdr-evidence-grid small {
  display: block;
  overflow-wrap: anywhere;
}

.pdr-next-action strong {
  font-size: 13px;
}

.pdr-next-action small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.pdr-next-action-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.pdr-next-action-tools a,
.pdr-next-action-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.pdr-next-action-tools button {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.pdr-next-action-tools form {
  margin: 0;
}

.pdr-next-action em {
  color: var(--sage);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.pdr-next-action.watch em {
  color: var(--amber);
}

.pdr-next-action.risk em {
  color: var(--rust);
}

.pdr-evidence-grid {
  grid-template-columns: 1fr;
}

.pdr-evidence-grid div {
  min-width: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sage);
  border-radius: 8px;
}

.pdr-evidence-grid div.watch {
  border-left-color: var(--amber);
}

.pdr-evidence-grid div.risk {
  border-left-color: var(--rust);
}

.pdr-evidence-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.pdr-evidence-grid strong {
  margin-top: 5px;
  font-size: 19px;
  line-height: 1.12;
}

.pdr-evidence-grid small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.ai-review-actions {
  display: grid;
  gap: 7px;
  min-width: 220px;
}

.ai-review-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.ai-review-actions .form-input {
  min-width: 150px;
  flex: 1 1 150px;
}

.ai-review-actions strong,
.ai-review-actions small,
.data-table td > small {
  display: block;
  overflow-wrap: anywhere;
}

.ai-review-actions small,
.data-table td > small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.ai-review-actions.compact {
  min-width: 170px;
}

.pdr-persona-lenses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pdr-persona-lenses article {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pdr-persona-lenses strong,
.pdr-persona-lenses span {
  display: block;
  overflow-wrap: anywhere;
}

.pdr-persona-lenses strong {
  margin-bottom: 6px;
  font-size: 13px;
}

.pdr-persona-lenses span {
  margin-top: 4px;
  line-height: 1.35;
}

.compact-dashboard-note {
  margin-bottom: 18px;
}

.dashboard-detail-pack {
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.dashboard-detail-pack summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.dashboard-detail-pack summary::-webkit-details-marker {
  display: none;
}

.dashboard-detail-pack summary::after {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--sage);
  content: "+";
  background: var(--sage-pale);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-detail-pack[open] summary::after {
  content: "-";
}

.dashboard-detail-pack summary span,
.dashboard-detail-pack summary strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-detail-pack summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.dashboard-detail-pack summary strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.dashboard-detail-body {
  display: grid;
  gap: 16px;
  padding: 0 16px 16px;
}

.dashboard-detail-body > section {
  margin-bottom: 0;
}

.role-lens-pack {
  background: var(--cream);
}

.product-detail-pack {
  border-left: 4px solid var(--sage);
}

.advanced-dashboard-pack {
  border-left: 4px solid var(--sky);
}

.advanced-dashboard-pack summary::after {
  color: var(--sky);
  background: var(--sky-pale);
}

.module-suite-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 20px;
  padding: 20px;
  overflow: visible;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--sage);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.module-suite-main,
.module-suite-actions {
  display: grid;
  align-content: start;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
}

.module-suite-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
  min-width: 0;
}

.module-suite-title > div {
  min-width: 0;
}

.module-suite-title h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.module-suite-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.module-suite-score {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  justify-content: center;
  min-width: 84px;
  padding: 12px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
}

.module-suite-score strong {
  font-size: 32px;
  line-height: 1;
}

.module-suite-score span {
  color: #a9adbb;
  font-size: 12px;
  font-weight: 900;
}

.module-family-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.module-family-strip > div,
.module-next-action {
  min-width: 0;
  padding: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.module-family-strip span,
.module-product-head span,
.module-product-head em,
.module-product-metric small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.module-family-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.module-next-action {
  display: block;
}

.module-next-action strong,
.module-next-action small {
  display: block;
  overflow-wrap: anywhere;
}

.module-next-action small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.module-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 22px;
}

.module-product-card {
  display: grid;
  align-content: start;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  min-height: 190px;
  padding: 15px;
  overflow: visible;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--amber);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.module-product-card.ok {
  border-top-color: var(--sage);
}

.module-product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.module-product-head em {
  text-align: right;
}

.module-product-card > strong {
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.module-product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.module-product-metric {
  align-self: end;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.module-product-metric span {
  font-size: 26px;
  font-weight: 900;
}

.task-command-center {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.14fr);
  gap: 18px;
  margin-bottom: 22px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.task-command-main {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.task-command-main h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.task-command-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.task-command-metrics div {
  min-width: 0;
  padding: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.task-command-metrics span,
.task-command-empty span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.task-command-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.task-command-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.task-command-item,
.task-command-empty {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sage);
  border-radius: 8px;
}

.task-command-empty {
  grid-template-columns: minmax(0, 1fr);
}

.task-command-item.risk {
  border-left-color: var(--rust);
  background: #fff7f5;
}

.task-command-item.watch {
  border-left-color: var(--amber);
  background: #fff8eb;
}

.task-command-icon {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.task-command-item strong,
.task-command-item small,
.task-command-item p {
  display: block;
}

.task-command-item strong {
  font-size: 13px;
}

.task-command-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.task-command-item p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.task-command-item .s-status {
  margin-left: 0;
}

.owner-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.owner-decision-card {
  display: grid;
  gap: 8px;
  min-height: 144px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.owner-decision-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.owner-decision-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.owner-decision-card strong {
  font-size: 26px;
  line-height: 1;
}

.owner-decision-card small {
  color: var(--muted);
  line-height: 1.45;
}

.owner-decision-card.risk {
  border-color: rgba(168, 72, 50, 0.35);
  background: #fff8f6;
}

.owner-decision-card.watch {
  border-color: rgba(200, 130, 42, 0.35);
  background: #fffaf2;
}

.owner-decision-card.ok {
  border-color: rgba(74, 103, 65, 0.3);
  background: #f7fbf5;
}

.owner-focus-strip {
  display: grid;
  grid-template-columns: minmax(220px, 280px) repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.owner-focus-head,
.owner-focus-item {
  min-width: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.owner-focus-head strong {
  display: block;
  line-height: 1.35;
}

.owner-focus-item {
  display: grid;
  gap: 5px;
}

.owner-focus-item span {
  color: var(--sage);
  font-size: 11px;
  font-weight: 900;
}

.owner-focus-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.owner-focus-item small {
  color: var(--muted);
  line-height: 1.4;
}

.owner-focus-item em {
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.owner-focus-item.muted {
  grid-column: span 2;
}

.crm-next-step {
  max-width: 360px;
  margin-bottom: 10px;
  line-height: 1.45;
}

.crm-log-form {
  display: grid;
  gap: 8px;
  min-width: 320px;
}

.crm-log-grid {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(96px, 0.85fr) minmax(160px, 1fr);
  gap: 8px;
}

.crm-log-form textarea {
  min-height: 58px;
  resize: vertical;
}

.student-hero,
.form-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 28px;
  color: var(--paper);
  background:
    linear-gradient(135deg, rgba(15, 17, 23, 0.96), rgba(30, 37, 64, 0.94)),
    linear-gradient(90deg, rgba(74, 103, 65, 0.2), transparent);
  border: 1px solid #242939;
  border-radius: 16px;
  overflow: hidden;
}

.student-hero h1,
.form-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.student-hero p,
.form-hero p {
  margin: 10px 0 0;
  color: #aaa79d;
  font-size: 14px;
}

.student-hero .eyebrow,
.form-hero .eyebrow {
  color: var(--sage-light);
}

.student-hero-main {
  min-width: 0;
}

.student-hero-side {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 auto;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-meta span {
  padding: 7px 10px;
  color: #d9d4c8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.dossier-card .card-body {
  display: grid;
  gap: 14px;
}

.compact-form {
  margin-top: 4px;
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: var(--border);
}

.form-catalog .form-card {
  min-height: 210px;
}

.form-card .card-body {
  display: grid;
  min-height: 100%;
  align-content: start;
  gap: 12px;
}

.form-card h2 {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.08;
}

.form-card p {
  color: var(--muted);
  line-height: 1.55;
}

.premium-form > .card-body {
  padding: 22px;
}

/* Lists */
.student-stack,
.timeline,
.stack-form,
.mini-list,
.field-preview {
  display: grid;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}

.student-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  margin: 0 -10px;
  padding: 9px 10px;
  border-bottom: 1px solid #f0ece4;
  border-radius: 7px;
  transition: background 0.15s;
}

.student-row:hover {
  background: var(--cream);
}

.student-row:last-child {
  border-bottom: none;
}

.student-row > span {
  flex: 1 1 180px;
  min-width: 0;
}

.student-row strong,
.s-name,
td strong,
.timeline-item strong {
  display: block;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.student-row small,
.s-meta,
.timeline-item small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.s-avatar {
  width: 32px;
  height: 32px;
  background: var(--sage);
  border-radius: 50%;
  font-size: 12px;
}

.s-status,
.risk,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.s-status {
  margin-left: auto;
}

.status-risk,
.risk.high,
.risk.critical {
  color: var(--rust);
  background: #fdeae7;
}

.status-ok,
.risk.low {
  color: var(--sage);
  background: var(--sage-pale);
}

.status-watch,
.risk.medium {
  color: var(--amber);
  background: var(--amber-pale);
}

.vertical-row {
  align-items: stretch;
  flex-direction: column;
}

.agenda-item,
.timeline-item {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f0ece4;
  max-width: 100%;
  min-width: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
}

.agenda-item:last-child,
.timeline-item:last-child {
  border-bottom: none;
}

.agenda-time {
  width: 52px;
  flex: 0 0 auto;
  padding-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.agenda-dot,
.timeline-item > span {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  flex: 0 0 auto;
  background: var(--sage);
  border-radius: 50%;
}

.agenda-content .title {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.agenda-content .meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.scrollable {
  max-height: 320px;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.scrollable::-webkit-scrollbar {
  width: 4px;
}

.scrollable::-webkit-scrollbar-track {
  background: var(--cream);
}

.scrollable::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* Tools and charts */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  min-width: 0;
  padding: 16px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.tool-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.tool-icon {
  display: inline-grid;
  width: 34px;
  height: 30px;
  place-items: center;
  margin-bottom: 8px;
  color: var(--sky);
  background: var(--sky-pale);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
}

.tool-name {
  font-size: 13px;
  font-weight: 800;
}

.tool-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.progress-row {
  margin-bottom: 14px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.progress-label {
  font-size: 12.5px;
  font-weight: 800;
}

.progress-value {
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  background: var(--border);
  border-radius: 3px;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.chart-list {
  display: grid;
  gap: 12px;
}

.chart-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.chart-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-row div {
  height: 8px;
  overflow: hidden;
  background: var(--border);
  border-radius: 999px;
}

.chart-row i {
  display: block;
  min-width: 3px;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--sky));
  border-radius: inherit;
}

.chart-row strong {
  text-align: right;
}

.risk-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.risk-cell {
  padding: 13px;
  text-align: center;
  border-radius: 9px;
  transition: transform 0.2s;
}

.risk-cell:hover {
  transform: scale(1.03);
}

.risk-cell .count {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.risk-cell .lbl {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.command-card .card-body {
  min-height: 290px;
}

.mtss-trend {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 190px;
}

.trend-week {
  display: grid;
  align-items: end;
  gap: 6px;
  min-width: 0;
  height: 100%;
  text-align: center;
}

.trend-stack {
  display: flex;
  min-height: 8px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px 8px 4px 4px;
}

.trend-tier {
  display: block;
  width: 100%;
  min-height: 0;
}

.trend-tier.tier1 {
  background: var(--sage);
}

.trend-tier.tier2 {
  background: var(--amber);
}

.trend-tier.tier3 {
  background: var(--rust);
}

.trend-total {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.trend-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.heatmap {
  display: grid;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.heatmap-row {
  display: grid;
  grid-template-columns: 74px repeat(6, minmax(42px, 1fr));
  align-items: center;
  gap: 6px;
}

.heatmap-row strong,
.heatmap-row span {
  min-width: 0;
  font-size: 11px;
  font-weight: 800;
}

.heatmap-row strong {
  color: var(--muted);
}

.heatmap-head span {
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.heat-cell {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(74, 103, 65, 0.14);
  border-radius: 7px;
}

.compact-alert {
  margin: 14px 0 0;
}

.sla-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.sla-strip div {
  min-width: 0;
  padding: 12px;
  background: var(--sage-pale);
  color: var(--sage);
  border-radius: 9px;
}

.sla-strip div.warning {
  background: var(--amber-pale);
  color: var(--amber);
}

.sla-strip div.danger {
  background: #fdeae7;
  color: var(--rust);
}

.sla-strip strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.sla-strip span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-list {
  max-height: 175px;
}

.ai-queue-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0ece4;
}

.ai-queue-item:last-child {
  border-bottom: 0;
}

.ai-queue-item strong,
.ai-queue-item span,
.ai-queue-item p {
  display: block;
}

.ai-queue-item strong {
  font-size: 13px;
}

.ai-queue-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.ai-queue-item p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.student360-cockpit {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 18px;
  margin-bottom: 22px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--sage);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 100%;
  min-width: 0;
  scroll-margin-top: 86px;
}

.pyxis-compass {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--sage);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.pyxis-compass.risk {
  border-left-color: var(--rust);
}

.pyxis-compass.watch {
  border-left-color: var(--amber);
}

.pyxis-compass,
.pyxis-compass-main,
.pyxis-compass-side,
.pyxis-compass-title,
.pyxis-north-star,
.pyxis-aspect,
.pyxis-step-card,
.pyxis-guidance-strip > div {
  min-width: 0;
}

.pyxis-compass-main,
.pyxis-compass-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.pyxis-compass-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.pyxis-compass-title > div {
  flex: 1 1 auto;
  min-width: 0;
}

.pyxis-compass-title h2,
.pyxis-weekly-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.pyxis-compass-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.pyxis-compass-score {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  justify-content: center;
  min-width: 78px;
  padding: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
}

.pyxis-compass-score strong {
  font-size: 32px;
  line-height: 1;
}

.pyxis-compass-score span {
  color: #a9adbb;
  font-size: 12px;
  font-weight: 900;
}

.pyxis-north-star {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
  gap: 10px;
  max-width: 100%;
}

.pyxis-north-star > div,
.pyxis-message,
.pyxis-mini-columns > div,
.pyxis-guidance-strip > div {
  padding: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 100%;
  overflow: hidden;
}

.pyxis-north-star > div.ok {
  background: var(--sage-pale);
}

.pyxis-north-star > div.risk {
  background: #fff0ed;
}

.pyxis-north-star span,
.pyxis-message span,
.pyxis-mini-columns span,
.pyxis-guidance-strip span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.pyxis-north-star strong,
.pyxis-message strong,
.pyxis-guidance-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pyxis-north-star small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pyxis-aspect-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  max-width: 100%;
}

.pyxis-aspect {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}

.pyxis-aspect.risk {
  background: #fff7f5;
}

.pyxis-aspect.watch {
  background: #fff8eb;
}

.pyxis-aspect-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.pyxis-aspect-head strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pyxis-aspect-head span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.pyxis-aspect-track {
  height: 7px;
  overflow: hidden;
  background: rgba(15, 17, 23, 0.08);
  border-radius: 999px;
}

.pyxis-aspect-track span {
  display: block;
  height: 100%;
  background: var(--sage);
  border-radius: inherit;
}

.pyxis-aspect small,
.pyxis-step-card small,
.pyxis-step-card em {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pyxis-mini-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 100%;
}

.pyxis-mini-columns p {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pyxis-weekly-map {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.pyxis-weekly-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.pyxis-weekly-head > div {
  min-width: 0;
}

.pyxis-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  max-width: 100%;
}

.pyxis-step-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: transform 0.18s, border-color 0.18s;
  overflow: hidden;
}

.pyxis-step-card:hover {
  transform: translateY(-1px);
  border-color: rgba(74, 103, 65, 0.32);
}

.pyxis-step-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--sage);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.pyxis-step-card strong {
  display: block;
  margin: 5px 0;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pyxis-step-card em {
  display: block;
  font-style: normal;
  font-weight: 800;
}

.pyxis-guidance-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 100%;
}

.student360-cockpit,
.student360-cockpit-main,
.student360-cockpit-side,
.student360-cockpit-title,
.student360-cockpit-title > div,
.student360-cockpit-summary,
.student360-signal-strip,
.student360-signal-pill,
.student360-metric-grid,
.student360-metric,
.student360-open-actions,
.student360-open-action,
.student360-open-action > div {
  min-width: 0;
}

.student360-cockpit.risk {
  border-left-color: var(--rust);
}

.student360-cockpit.watch {
  border-left-color: var(--amber);
}

.student360-cockpit-main {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.student360-cockpit-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.student360-cockpit-title > div {
  flex: 1 1 0;
  max-width: 100%;
}

.student360-cockpit-title .s-status {
  flex: 0 0 auto;
}

.student360-cockpit-title h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.student360-cockpit-title p {
  display: block;
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.student360-cockpit-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.student360-cockpit-summary strong {
  display: block;
  flex: 1 1 0;
  max-width: 100%;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.student360-cockpit-summary span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.student360-signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.student360-signal-pill {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  background: var(--sage-pale);
  border: 1px solid rgba(74, 103, 65, 0.18);
  border-radius: 8px;
}

.student360-signal-pill.risk {
  background: #fdeae7;
  border-color: rgba(176, 76, 61, 0.2);
}

.student360-signal-pill.watch {
  background: var(--amber-pale);
  border-color: rgba(190, 127, 57, 0.2);
}

.student360-signal-pill span {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
}

.student360-signal-pill strong {
  display: block;
  max-width: 100%;
  min-width: 0;
  font-size: 12px;
  line-height: 1.38;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.student360-cockpit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
}

.student360-cockpit-actions form {
  min-width: 0;
  margin: 0;
}

.student360-cockpit-actions .btn,
.student360-cockpit-actions .secondary-button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.student360-cockpit-side {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.student360-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student360-metric {
  display: grid;
  gap: 5px;
  min-height: 116px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.student360-metric.risk {
  background: #fff7f5;
}

.student360-metric.watch {
  background: #fff8eb;
}

.student360-metric span {
  display: block;
  max-width: 100%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
}

.student360-metric strong {
  font-size: 24px;
  line-height: 1;
}

.student360-metric small {
  display: block;
  max-width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.student360-open-actions {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.mini-section-title {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.student360-open-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.student360-open-action .s-status {
  margin-left: 0;
}

.student360-open-action strong,
.student360-open-action small {
  display: block;
}

.student360-open-action strong {
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.student360-open-action small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.student360-timeline {
  margin-bottom: 20px;
  scroll-margin-top: 86px;
}

.product-readiness-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--sage);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.product-readiness-hero.watch {
  border-left-color: var(--amber);
}

.product-readiness-hero.risk {
  border-left-color: var(--rust);
}

.product-readiness-copy {
  min-width: 0;
}

.product-readiness-copy h2 {
  margin: 4px 0 8px;
  font-size: 30px;
  line-height: 1.08;
}

.product-readiness-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-readiness-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.product-readiness-actions form {
  margin: 0;
}

.product-complete-form {
  margin: 0;
}

.product-score-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 156px;
  padding: 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.product-score-ring {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  position: relative;
}

.product-score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: #fff;
  border-radius: 50%;
}

.product-score-ring strong,
.product-score-ring span {
  position: relative;
  z-index: 1;
}

.product-score-ring strong {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1;
}

.product-score-ring span {
  margin-top: -22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-score-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.product-pillar {
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.product-pillar.risk {
  background: #fff7f5;
  border-color: rgba(176, 76, 61, 0.2);
}

.product-pillar.watch {
  background: #fff8eb;
  border-color: rgba(190, 127, 57, 0.2);
}

.product-pillar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.product-pillar-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-pillar-head strong {
  font-size: 20px;
}

.product-pillar p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.product-blocker-notice {
  border-left-color: var(--rust);
}

.product-readiness-mini {
  border-left-color: var(--sage);
}

.product-checklist,
.launch-action-list {
  display: grid;
  gap: 12px;
}

.product-check-group {
  display: grid;
  gap: 8px;
}

.product-check-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.product-check-item.missing {
  background: #fff8eb;
  border-color: rgba(190, 127, 57, 0.22);
}

.product-check-item.done {
  background: var(--sage-pale);
  border-color: rgba(74, 103, 65, 0.18);
}

.product-check-item em {
  min-width: 44px;
  padding: 4px 7px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.product-check-item strong,
.product-check-item small,
.launch-action-card strong,
.launch-action-card small,
.launch-action-card p {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-check-item strong {
  font-size: 13px;
}

.product-check-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.launch-action-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
}

.launch-action-card .s-status {
  width: max-content;
  margin-left: 0;
}

.launch-action-card strong {
  font-size: 14px;
}

.launch-action-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.launch-action-card p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.timeline-visual-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(74, 103, 65, 0.12), rgba(58, 107, 138, 0.08)),
    #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.timeline-visual-head strong,
.timeline-visual-head small {
  display: block;
}

.timeline-visual-head strong {
  font-size: 24px;
  line-height: 1;
}

.timeline-visual-head small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.timeline-kind-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.timeline-kind-chips span,
.life-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  color: var(--muted);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-kind-chips b {
  color: var(--ink);
}

.timeline-kind-chips .crisis,
.life-kind.crisis {
  color: var(--rust);
  background: #fff1ee;
  border-color: rgba(168, 72, 50, 0.22);
}

.timeline-kind-chips .session,
.life-kind.session {
  color: var(--sage);
  background: var(--sage-pale);
  border-color: rgba(74, 103, 65, 0.2);
}

.timeline-kind-chips .exam,
.life-kind.exam {
  color: var(--sky);
  background: var(--sky-pale);
  border-color: rgba(58, 107, 138, 0.2);
}

.timeline-kind-chips .wellbeing,
.life-kind.wellbeing {
  color: var(--amber);
  background: var(--amber-pale);
  border-color: rgba(200, 130, 42, 0.22);
}

.timeline-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.timeline-summary-strip div {
  min-width: 0;
  padding: 11px 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.timeline-summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-summary-strip strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}

.student-life-timeline {
  position: relative;
  display: grid;
  gap: 12px;
  max-height: 620px;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px 4px 6px 0;
}

.student-life-timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 75px;
  width: 2px;
  background: linear-gradient(var(--sage-light), var(--sky));
  opacity: 0.28;
}

.student-life-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
}

.student-life-item:last-child {
  border-bottom: 0;
}

.life-date {
  display: grid;
  justify-items: end;
  gap: 2px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.life-date strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.life-date em {
  color: #aaa396;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.life-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--sage);
  border: 4px solid #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 17, 23, 0.12);
  font-size: 11px;
  font-weight: 900;
}

.student-life-item.risk .life-marker {
  background: var(--rust);
}

.student-life-item.watch .life-marker {
  background: var(--amber);
}

.life-content {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--sage);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(15, 17, 23, 0.04);
}

.student-life-item.risk .life-content,
.student-life-item.crisis .life-content {
  border-left-color: var(--rust);
}

.student-life-item.watch .life-content,
.student-life-item.wellbeing .life-content {
  border-left-color: var(--amber);
}

.student-life-item.exam .life-content {
  border-left-color: var(--sky);
}

.life-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.life-head > div {
  min-width: 0;
}

.life-head strong {
  display: block;
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.life-content small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.life-content p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.life-head .text-link,
.timeline-open {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--sage);
  background: var(--sage-pale);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.student360-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
  max-width: 100%;
  min-width: 0;
}

.compact-stats {
  margin-bottom: 20px;
}

.student-signal {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0ece4;
  max-width: 100%;
  min-width: 0;
}

.student-signal:last-child {
  border-bottom: 0;
}

.student-signal strong,
.student-signal small,
.student-signal p {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.student-signal strong {
  font-size: 13px;
}

.student-signal small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.student-signal p {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.signal-badge {
  display: grid;
  width: 48px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 900;
}

.signal-badge.tier1 {
  background: var(--sage-pale);
  color: var(--sage);
}

.signal-badge.tier2 {
  background: var(--amber-pale);
  color: var(--amber);
}

.signal-badge.tier3 {
  background: #fdeae7;
  color: var(--rust);
}

.student-ai {
  padding-top: 0;
}

.student360-actions {
  margin-bottom: 20px;
}

.student360-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 100%;
  min-width: 0;
}

.quick-action-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.quick-action-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.quick-action-head strong {
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.quick-action-head span {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.quick-action-card label {
  gap: 5px;
  font-size: 11px;
}

.quick-action-card input,
.quick-action-card select,
.quick-action-card textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 36px;
  font-size: 12px;
}

.quick-action-card textarea {
  resize: vertical;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.inline-check input {
  width: auto;
  min-height: auto;
}

.owner-usage-stack {
  display: grid;
  gap: 14px;
}

.usage-row {
  display: grid;
  gap: 8px;
}

.usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.usage-head strong,
.usage-head span {
  font-size: 12px;
  font-weight: 900;
}

.usage-head span {
  color: var(--muted);
}

.usage-track {
  height: 9px;
  overflow: hidden;
  background: var(--border);
  border-radius: 999px;
}

.usage-track i {
  display: block;
  min-width: 3px;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--sky));
  border-radius: inherit;
}

.owner-trend {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 190px;
}

.owner-trend-week {
  display: grid;
  align-items: end;
  gap: 6px;
  min-width: 0;
  height: 100%;
  text-align: center;
}

.owner-trend-stack {
  display: flex;
  min-height: 116px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px 8px 4px 4px;
}

.owner-trend-stack i {
  display: block;
  width: 100%;
  min-height: 0;
}

.owner-trend-week strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.owner-trend-week span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.trend-sessions {
  background: var(--sage);
}

.trend-mtss {
  background: var(--sky);
}

.trend-wellbeing {
  background: var(--sage-light);
}

.trend-crisis {
  background: var(--rust);
}

.trend-ai {
  background: var(--amber);
}

.trend-reports {
  background: #5a5f70;
}

/* Forms */
label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

label input,
label select,
label textarea,
.form-input,
.filterbar input,
.filterbar select,
.inline-upload input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

label textarea,
textarea.form-input {
  min-height: 86px;
  resize: vertical;
}

label input:focus,
label select:focus,
label textarea:focus,
.form-input:focus,
.filterbar input:focus,
.filterbar select:focus {
  background: #fff;
  border-color: var(--sage);
}

.split-fields,
.form-grid,
.filterbar,
.inline-upload {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}

.filterbar {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto;
  margin-bottom: 16px;
}

.full {
  grid-column: 1 / -1;
}

.form-actions,
.inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-upload {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
}

.field-error {
  color: var(--rust);
  font-size: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
  min-height: auto;
}

/* Tables */
table,
.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
.data-table th {
  padding: 11px 12px;
  color: var(--muted);
  background: var(--cream);
  border-bottom: 2px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}

td,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid #f0ece4;
  vertical-align: middle;
}

tr:hover td,
.data-table tr:hover td {
  background: var(--cream);
}

.table-panel {
  overflow: auto;
}

/* Supporting blocks */
.alert {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-left: 3px solid;
  border-radius: 8px;
}

.alert-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 900;
}

.alert-title {
  font-size: 13px;
  font-weight: 900;
}

.alert-text {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
}

.alert.green,
.alert.success {
  color: var(--sage);
  background: var(--sage-pale);
  border-color: var(--sage);
}

.alert.red,
.alert.error {
  color: var(--rust);
  background: #fdeae7;
  border-color: var(--rust);
}

.alert.amber {
  color: var(--amber);
  background: var(--amber-pale);
  border-color: var(--amber);
}

.note-block,
.field-preview div,
.mini-list div {
  padding: 13px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.note-block p,
.module-card p,
.detail-list dd,
.tool-desc {
  line-height: 1.55;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.detail-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.policy-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  margin-bottom: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 6px solid var(--sage);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.policy-command.risk {
  border-left-color: var(--rust);
}

.policy-command.watch {
  border-left-color: var(--amber);
}

.policy-command,
.policy-command-main,
.policy-command-side,
.policy-command-title,
.policy-product-grid,
.policy-role-card,
.policy-module-row,
.policy-proof-row {
  max-width: 100%;
  min-width: 0;
}

.policy-command-main,
.policy-command-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.policy-command-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.policy-command-title > div {
  min-width: 0;
}

.policy-command-title h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.policy-command-title p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.policy-score {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  justify-content: center;
  min-width: 82px;
  padding: 12px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
}

.policy-score strong {
  font-size: 32px;
  line-height: 1;
}

.policy-score span {
  color: #a9adbb;
  font-size: 12px;
  font-weight: 900;
}

.policy-command-strip,
.policy-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.policy-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.policy-command-strip > div,
.policy-selected-card {
  padding: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.policy-command-strip span,
.policy-selected-card span,
.policy-blueprint span,
.policy-proof-row span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.policy-command-strip strong,
.policy-selected-card strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.policy-selected-card.risk {
  background: #fff0ed;
}

.policy-selected-card.watch {
  background: #fff8eb;
}

.policy-selected-card.ok {
  background: var(--sage-pale);
}

.policy-selected-card p,
.policy-selected-card small {
  display: block;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.policy-role-list,
.policy-module-list {
  display: grid;
  gap: 9px;
}

.policy-role-card,
.policy-module-row,
.policy-proof-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.policy-role-card.active {
  border-color: rgba(74, 103, 65, 0.35);
  background: var(--sage-pale);
}

.policy-role-card strong,
.policy-module-row strong,
.policy-proof-row strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.policy-role-card small,
.policy-module-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.policy-role-card span,
.policy-role-card em,
.policy-proof-row em,
.policy-module-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.policy-role-card em.risk {
  color: var(--rust);
}

.policy-role-card em.ok {
  color: var(--sage);
}

.policy-progress {
  width: 96px;
  height: 7px;
  overflow: hidden;
  background: rgba(15, 17, 23, 0.08);
  border-radius: 999px;
}

.policy-progress span {
  display: block;
  height: 100%;
  background: var(--sage);
  border-radius: inherit;
}

.policy-blueprint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.policy-blueprint > strong,
.policy-blueprint > p {
  flex: 1 0 100%;
  margin: 0;
}

.policy-blueprint > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.policy-blueprint span {
  max-width: 100%;
  padding: 6px 8px;
  background: var(--sage-pale);
  border-radius: 999px;
  overflow-wrap: anywhere;
  text-transform: none;
  letter-spacing: 0;
}

.policy-blueprint span.missing,
.policy-blueprint span.sensitive {
  color: var(--rust);
  background: #fff0ed;
}

.policy-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.policy-group legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.policy-check {
  align-items: flex-start;
  min-width: 0;
  padding: 4px 0;
}

.policy-check.sensitive {
  padding: 7px;
  background: #fff8eb;
  border-radius: 8px;
}

.policy-check input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.policy-check span,
.policy-check strong,
.policy-check small {
  min-width: 0;
}

.policy-check span {
  display: block;
  overflow: hidden;
}

.policy-check strong,
.policy-check small {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.policy-check small {
  line-height: 1.35;
}

.version-line {
  color: var(--muted);
}

.danger-panel {
  border-color: #f1c5ba;
  background: #fffefe;
}

/* Shared layout stability */
img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

form,
fieldset,
.topbar-left,
.topbar-actions,
.card-header > *,
.panel-header > *,
.page-heading > *,
.student-profile > *,
.notice > *,
.alert > *,
.student-row > *,
.agenda-item > * {
  min-width: 0;
}

form,
fieldset {
  max-width: 100%;
}

.topbar-left h1,
.topbar-left p,
.page-heading h1,
.page-heading p,
.student-profile h1,
.student-profile p,
.notice h3,
.notice p,
.alert-title,
.alert-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.topbar-actions,
.card-header,
.panel-header,
.page-heading,
.student-profile {
  flex-wrap: wrap;
}

.card-body,
.table-panel,
.panel.table-panel {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.table-panel table,
.card-body > table,
.card-body > .data-table {
  max-width: none;
}

pre,
code {
  max-width: 100%;
  overflow-wrap: anywhere;
}

pre {
  overflow: auto;
  white-space: pre-wrap;
}

input[type="file"] {
  min-width: 0;
  max-width: 100%;
}

/* Auth */
.auth-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(18px, 3vw, 42px);
  overflow-x: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 16%, rgba(91, 130, 80, 0.24), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(58, 107, 138, 0.18), transparent 30%),
    linear-gradient(135deg, #0d100f 0%, #141a17 52%, #11151a 100%);
}

.auth-shell::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  opacity: 0.16;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 72%);
  mask-image: linear-gradient(to bottom right, #000, transparent 72%);
}

.auth-shell::after {
  position: fixed;
  z-index: -1;
  right: -180px;
  bottom: -240px;
  width: 580px;
  height: 580px;
  content: "";
  background: radial-gradient(circle, rgba(107, 143, 98, 0.15), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-main {
  position: relative;
  z-index: 1;
  width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #8eb6ff;
  outline-offset: 3px;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(400px, 480px);
  align-items: center;
  gap: clamp(42px, 7vw, 104px);
  width: min(1240px, 100%);
  min-height: calc(100vh - clamp(36px, 6vw, 84px));
  margin: 0 auto;
}

.login-story {
  display: grid;
  align-content: center;
  min-width: 0;
  color: #f5f0e8;
}

.login-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-bottom: clamp(48px, 8vh, 92px);
}

.login-wordmark-symbol,
.login-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #5e7c55, #315d68);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.login-wordmark-symbol {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
}

.login-wordmark > span:last-child {
  display: grid;
  gap: 2px;
}

.login-wordmark strong {
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.4px;
}

.login-wordmark small {
  color: #88928c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 18px;
  color: #aeb9b1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.login-kicker i,
.login-secure-state i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #85a77a;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(133, 167, 122, 0.11);
}

.login-story-copy h1 {
  max-width: 700px;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 5.1vw, 72px);
  font-weight: 800;
  letter-spacing: -3.5px;
  line-height: 0.98;
}

.login-story-copy p {
  max-width: 650px;
  margin: 24px 0 0;
  color: #aeb7b1;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
}

.login-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 650px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.login-flow li {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.login-flow li:not(:last-child)::after {
  position: absolute;
  top: 9px;
  right: 16px;
  left: 37px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(133, 167, 122, 0.62), rgba(255, 255, 255, 0.08));
}

.login-flow span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 25px;
  height: 19px;
  place-items: center;
  color: #b7c9b2;
  background: #17201b;
  border: 1px solid rgba(133, 167, 122, 0.32);
  border-radius: 6px;
  font-size: 8px;
  font-weight: 900;
}

.login-flow strong {
  color: #d7ddd8;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.login-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 700px;
  margin-top: clamp(38px, 6vh, 66px);
}

.login-principles article {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.login-principles span,
.login-principles strong {
  display: block;
  overflow-wrap: anywhere;
}

.login-principles span {
  color: #7f9e77;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.login-principles strong {
  margin-top: 7px;
  color: #cbd2cd;
  font-size: 10px;
  line-height: 1.45;
}

.login-standards {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.login-standards span {
  padding: 5px 8px;
  color: #87928b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.login-card-shell {
  position: relative;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.login-card-shell::before {
  position: absolute;
  z-index: -1;
  inset: -18px;
  content: "";
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 26px;
}

.login-card {
  position: relative;
  display: grid;
  gap: 0;
  width: 100%;
  padding: clamp(28px, 3.4vw, 42px);
  overflow: hidden;
  background: rgba(253, 251, 247, 0.985);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.login-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, #4a6741, #6b8f62 58%, #3a6b8a);
}

.login-card-head {
  display: grid;
}

.login-brand-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
}

.login-brand-mark::after {
  position: absolute;
  width: 22px;
  height: 22px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.login-brand-mark span {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 900;
}

.login-secure-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #657166;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.login-secure-state i {
  width: 6px;
  height: 6px;
  flex-basis: 6px;
  box-shadow: 0 0 0 4px rgba(74, 103, 65, 0.1);
}

.login-card h2 {
  margin: 15px 0 0;
  color: #121713;
  font-size: clamp(27px, 2.5vw, 35px);
  letter-spacing: -1.2px;
  line-height: 1.08;
}

.login-card-head > p {
  margin: 9px 0 0;
  color: #777d77;
  font-size: 13px;
  line-height: 1.5;
}

.login-alert {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding: 11px 12px;
  color: #7f2e20;
  background: #fff1ed;
  border: 1px solid #efc8bf;
  border-radius: 9px;
}

.login-alert > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #fff;
  background: var(--rust);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
}

.login-alert p {
  margin: 0;
  color: inherit;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

.login-fields {
  display: grid;
  gap: 17px;
  margin-top: 28px;
}

.login-field {
  display: grid;
  gap: 8px;
  color: #2b302c;
  font-size: 11px;
  font-weight: 850;
}

.login-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  color: #161a17;
  background: #f7f4ee;
  border: 1px solid #d9d5cc;
  border-radius: 10px;
  outline: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.login-field input::placeholder {
  color: #a19d95;
}

.login-field input:hover {
  border-color: #c2bdb3;
}

.login-field input:focus {
  background: #fff;
  border-color: #5d7e54;
  box-shadow: 0 0 0 4px rgba(74, 103, 65, 0.11);
}

.login-field input[aria-invalid="true"] {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(168, 72, 50, 0.09);
}

.login-field .field-error {
  color: var(--rust);
  font-size: 10px;
  line-height: 1.35;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  padding: 0 17px 0 19px;
  color: #fff;
  background: #3f5d39;
  border: 1px solid #3f5d39;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(63, 93, 57, 0.18);
  font-size: 12px;
  font-weight: 900;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.login-submit:hover {
  background: #334f2e;
  box-shadow: 0 15px 30px rgba(51, 79, 46, 0.22);
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(0);
}

.login-submit b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #254020;
  background: #eff5ec;
  border-radius: 7px;
  font-size: 15px;
}

.login-support-note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #e4e0d8;
}

.login-support-note > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #63705f;
  background: #edf1ea;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
}

.login-support-note p {
  margin: 0;
  color: #89877f;
  font-size: 9px;
  line-height: 1.45;
}

.login-human-note {
  max-width: 390px;
  margin: 0 auto;
  color: #737d76;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

/* Legacy two-factor screen compatibility. */
.login-copy {
  color: var(--paper);
}

.login-copy h1 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: 52px;
  line-height: 1.02;
}

.login-copy p {
  max-width: 620px;
  color: #b5b0a5;
  font-size: 17px;
  line-height: 1.6;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sage), var(--sky));
  border-radius: 10px;
  font-weight: 900;
}

@media (max-width: 1080px) {
  .login-panel {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    gap: 42px;
  }

  .login-principles {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .login-principles article {
    padding: 11px 13px;
  }

  .login-wordmark {
    margin-bottom: 48px;
  }
}

@media (max-width: 880px) {
  .auth-shell {
    place-items: start center;
    padding: 24px;
  }

  .login-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    min-height: auto;
  }

  .login-story {
    padding-top: 16px;
  }

  .login-story-copy h1 {
    font-size: clamp(43px, 9vw, 62px);
  }

  .login-principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    margin-top: 34px;
  }

  .login-card-shell {
    width: min(520px, 100%);
    margin: 0 auto 26px;
  }
}

@media (max-width: 620px) {
  .auth-shell {
    padding: 14px;
  }

  .login-wordmark {
    margin-bottom: 40px;
  }

  .login-story-copy h1 {
    font-size: clamp(39px, 13vw, 52px);
    letter-spacing: -2.3px;
  }

  .login-story-copy p {
    margin-top: 18px;
    font-size: 14px;
  }

  .login-principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .login-flow li:not(:last-child)::after {
    right: 8px;
    left: 31px;
  }

  .login-card-shell::before {
    inset: -7px;
    border-radius: 21px;
  }

  .login-card {
    padding: 25px 20px;
    border-radius: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-submit,
  .login-submit b {
    transition: none;
  }
}
.center-page,
.debug-page {
  padding: 28px;
}

.center-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.error-panel {
  width: min(520px, 100%);
}

.debug-page pre {
  overflow: auto;
  padding: 18px;
  color: #fff;
  background: #111;
}

.print-page {
  background: #fff;
}

.print-sheet {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 32px;
}

@media print {
  .metric,
  .panel,
  .table-panel,
  .card {
    box-shadow: none;
  }
}

@media (max-width: 1180px) {
  .topbar {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .priority-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .risk-pathway {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .three-col,
  .student360-actions-grid,
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .command-grid,
  .pdr-ai-center,
  .pdr-brief-grid,
  .owner-command-center,
  .module-suite-command,
  .task-command-center,
  .owner-focus-strip,
  .policy-command,
  .policy-product-grid,
  .pyxis-compass,
  .student360-cockpit,
  .product-readiness-hero,
  .student360-grid,
  .dashboard-grid,
  .profile-grid,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .pdr-role-grid,
  .pdr-persona-lenses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .daily-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-focus-card:last-child {
    grid-column: 1 / -1;
    min-height: 188px;
  }

  .content {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 860px) {
  .daily-focus-head,
  .daily-focus-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-focus-meta {
    justify-items: start;
  }

  .daily-focus-grid {
    grid-template-columns: 1fr;
  }

  .daily-focus-card:last-child {
    grid-column: auto;
  }

  .daily-focus-card {
    min-height: 188px;
  }

  .risk-pathway-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .risk-pathway-steps a:nth-child(2)::after {
    content: none;
  }

  html {
    scroll-padding-top: 154px;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  .mobile-nav-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 180;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: var(--ink);
    border: 1px solid #2a2d3a;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 17, 23, 0.22);
  }

  .mobile-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--paper);
    border-radius: 999px;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    pointer-events: none;
    background: rgba(15, 17, 23, 0);
    transition: background 0.2s;
  }

  body.sidebar-open .sidebar-backdrop {
    pointer-events: auto;
    background: rgba(15, 17, 23, 0.52);
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 160;
    width: min(288px, 86vw);
    min-height: 100vh;
    transform: translateX(-102%);
    box-shadow: 18px 0 42px rgba(15, 17, 23, 0.24);
    transition: transform 0.24s ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    position: absolute;
    top: 14px;
    right: 12px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--paper);
    background: #1a1d28;
    border: 1px solid #2a2d3a;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
  }

  .sidebar-nav {
    max-height: none;
  }

  .main {
    margin-left: 0;
    max-width: 100vw;
  }

  .topbar {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 18px 18px 68px;
  }

  .content {
    padding: 18px;
  }

  .card-header,
  .panel-header {
    align-items: flex-start;
  }

  .card-link,
  .panel-header a,
  .text-link {
    white-space: normal;
  }

  .student360-cockpit,
  .student360-timeline {
    scroll-margin-top: 154px;
  }

  .stats-grid,
  .three-col,
  .pdr-role-grid,
  .pdr-persona-lenses,
  .cards-grid,
  .policy-command-strip,
  .student360-actions-grid,
  .pyxis-aspect-grid,
  .pyxis-step-grid,
  .pyxis-guidance-strip,
  .student360-signal-strip,
  .student360-metric-grid,
  .pyxis-north-star,
  .pyxis-mini-columns,
  .timeline-visual-head,
  .timeline-summary-strip,
  .split-fields,
  .form-grid,
  .filterbar,
  .policy-grid,
  .policy-layout,
  .inline-upload,
  .login-panel {
    grid-template-columns: 1fr;
  }

  .page-heading,
  .student-profile,
  .student-hero,
  .form-hero,
  .notice,
  .pdr-brief-head,
  .pdr-ai-kicker,
  .pdr-ai-title,
  .policy-command-title,
  .module-suite-title,
  .pyxis-compass-title,
  .pyxis-weekly-head,
  .student360-cockpit-title,
  .student360-cockpit-summary,
  .product-readiness-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .pdr-ai-primary,
  .pdr-ai-actions a,
  .pdr-brief-score {
    width: 100%;
    white-space: normal;
  }

  .pdr-next-action {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .pdr-next-action em {
    grid-column: 2;
    white-space: normal;
  }

  .student360-cockpit-title .s-status {
    margin-left: 0;
  }

  .product-readiness-actions .btn,
  .product-readiness-actions .secondary-button,
  .product-readiness-actions form {
    width: 100%;
  }

  .notice-btn {
    margin-left: 0;
  }

  .timeline-kind-chips {
    justify-content: flex-start;
  }

  .owner-decision-grid,
  .task-command-metrics,
  .crm-log-grid,
  .owner-command-meta {
    grid-template-columns: 1fr;
  }

  .module-suite-score {
    width: 100%;
  }

  .module-product-head,
  .module-product-metric {
    align-items: flex-start;
    flex-direction: column;
  }

  .crm-log-form {
    min-width: 0;
  }

  .owner-focus-item.muted {
    grid-column: auto;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heatmap-row {
    grid-template-columns: 68px repeat(6, minmax(38px, 1fr));
  }

  .sla-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-copy h1 {
    font-size: 38px;
  }
}

@media (max-width: 560px) {
  .daily-focus-head,
  .daily-focus-foot {
    padding: 17px;
  }

  .daily-focus-grid {
    padding: 0 12px 12px;
  }

  .priority-card-grid,
  .risk-pathway-steps {
    grid-template-columns: 1fr;
  }

  .risk-pathway-steps a::after {
    content: none !important;
  }

  .tools-grid,
  .risk-matrix,
  .sla-strip,
  .stats-grid,
  .product-pillar-grid {
    grid-template-columns: 1fr;
  }

  .mtss-trend {
    gap: 6px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-actions form,
  .topbar-actions .btn {
    flex: 1 1 auto;
  }

  .topbar-actions .btn {
    width: 100%;
    white-space: normal;
  }

  .card-header,
  .panel-header,
  .page-heading,
  .student-profile {
    flex-direction: column;
  }

  .card-link,
  .panel-header a,
  .text-link,
  .page-heading .btn,
  .page-heading .primary-button,
  .page-heading .secondary-button {
    align-self: stretch;
    text-align: left;
  }

  .inline-form {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-right: 0;
  }

  .inline-form input,
  .inline-form select,
  .inline-form button,
  .inline-form .btn,
  .inline-form .primary-button,
  .inline-form .secondary-button {
    width: 100%;
    min-width: 0;
  }

  table,
  .data-table {
    min-width: 640px;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .task-command-item,
  .student-life-item {
    grid-template-columns: 1fr;
  }

  .student-life-timeline::before {
    display: none;
  }

  .life-date {
    justify-items: start;
    padding-top: 0;
  }

  .life-marker {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .student360-cockpit {
    padding: 16px;
  }

  .pyxis-compass,
  .pyxis-weekly-map {
    padding: 16px;
  }

  .student360-cockpit-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .policy-role-card,
  .policy-module-row,
  .policy-proof-row {
    grid-template-columns: 1fr;
  }

  .policy-progress {
    width: 100%;
  }

  .student360-cockpit-actions a,
  .student360-cockpit-actions form,
  .student360-cockpit-actions button {
    width: 100%;
  }

  .page-heading h1,
  .student-profile h1,
  .student-hero h1,
  .form-hero h1,
  .pyxis-compass-title h2,
  .pyxis-weekly-head h2,
  .student360-cockpit-title h2 {
    font-size: 24px;
  }

  .pyxis-compass-score {
    width: 100%;
  }
}

/* Dashboard layout hardening: long decision-support content must never escape its grid. */
.ai-detail-pack,
.ai-detail-pack .dashboard-detail-body,
.pdr-command-brief,
.pdr-brief-head,
.pdr-brief-grid,
.pdr-next-actions,
.pdr-evidence-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ai-detail-pack,
.pdr-command-brief,
.pdr-next-actions,
.pdr-evidence-grid {
  overflow: hidden;
}

.pdr-command-brief {
  grid-template-columns: minmax(0, 1fr);
}

.pdr-brief-head,
.pdr-brief-grid {
  grid-column: 1 / -1;
}

.pdr-brief-head > *,
.pdr-brief-grid > *,
.pdr-next-action > * {
  max-width: 100%;
  min-width: 0;
}

.pdr-brief-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: start;
}

.pdr-next-action {
  grid-template-columns: 36px minmax(0, 1fr) minmax(72px, 120px);
  max-width: 100%;
  overflow: hidden;
}

.pdr-next-action > div,
.pdr-next-action-tools,
.pdr-next-action-tools form {
  max-width: 100%;
  min-width: 0;
}

.pdr-next-action strong,
.pdr-next-action small,
.pdr-evidence-grid strong,
.pdr-evidence-grid small {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pdr-next-action em {
  max-width: 120px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: right;
}

@media (max-width: 1400px) {
  .pdr-brief-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pdr-evidence-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .pdr-brief-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .pdr-brief-score {
    width: 100%;
  }

  .pdr-next-action {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  
  .pdr-next-action em {
    grid-column: 2;
    max-width: none;
    text-align: left;
  }

  .pdr-evidence-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
