/* Student Commons 5.27.0 — Search & Communication maturation */
html[data-theme] body.nsc5-document .nsc527-search-lens,
html[data-theme] body.nsc5-document .nsc527-conversation-tools,
html[data-theme] body.nsc5-document .nsc527-notification-lens{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;
  color:var(--nsc571-body,#24392f);
  -webkit-text-fill-color:currentColor;
}
html[data-theme] body.nsc5-document .nsc527-kicker{
  display:block;margin:0 0 4px;font-size:.72rem;font-weight:750;letter-spacing:.07em;text-transform:uppercase;color:var(--nsc571-link,#005a36)!important;-webkit-text-fill-color:var(--nsc571-link,#005a36)!important
}

/* Search */
html[data-theme] body.nsc5-document .nsc527-search-lens{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:18px;margin:14px 0 18px;padding:16px 18px;border:1px solid var(--nsc571-border-soft,#cbd5d0);border-radius:16px;background:var(--nsc571-surface-alt,#f3f7f5)!important
}
html[data-theme] body.nsc5-document .nsc527-search-lens-copy strong{display:block;font-size:1rem;color:var(--nsc571-ink,#10231b)!important;-webkit-text-fill-color:var(--nsc571-ink,#10231b)!important}
html[data-theme] body.nsc5-document .nsc527-search-lens-copy p{max-width:720px;margin:4px 0 0;font-size:.86rem;line-height:1.55;color:var(--nsc571-muted,#405249)!important;-webkit-text-fill-color:var(--nsc571-muted,#405249)!important}
html[data-theme] body.nsc5-document .nsc527-search-lens-controls,
html[data-theme] body.nsc5-document .nsc527-notification-filters{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
html[data-theme] body.nsc5-document .nsc527-search-lens-controls button,
html[data-theme] body.nsc5-document .nsc527-notification-filters button,
html[data-theme] body.nsc5-document .nsc527-tool-button,
html[data-theme] body.nsc5-document .nsc527-search-button{
  min-height:38px;border:1px solid var(--nsc571-border-soft,#cbd5d0);border-radius:999px;padding:0 12px;background:var(--nsc571-surface,#fff)!important;color:var(--nsc571-body,#24392f)!important;-webkit-text-fill-color:var(--nsc571-body,#24392f)!important;font:650 .78rem/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer
}
html[data-theme] body.nsc5-document .nsc527-search-lens-controls button:hover,
html[data-theme] body.nsc5-document .nsc527-search-lens-controls button:focus-visible,
html[data-theme] body.nsc5-document .nsc527-notification-filters button:hover,
html[data-theme] body.nsc5-document .nsc527-notification-filters button:focus-visible,
html[data-theme] body.nsc5-document .nsc527-tool-button:hover,
html[data-theme] body.nsc5-document .nsc527-tool-button:focus-visible{
  border-color:var(--nsc571-primary,#005a36);outline:none
}
html[data-theme] body.nsc5-document .nsc527-search-lens-controls button.is-active,
html[data-theme] body.nsc5-document .nsc527-notification-filters button.is-active{
  border-color:var(--nsc571-primary,#005a36);background:var(--nsc571-accent-soft,#dff3e8)!important;color:var(--nsc571-link,#005a36)!important;-webkit-text-fill-color:var(--nsc571-link,#005a36)!important
}
html[data-theme] body.nsc5-document .nsc5-discovery-card.nsc527-best-start{border-color:color-mix(in srgb,var(--nsc571-primary,#005a36) 48%,var(--nsc571-border-soft,#cbd5d0))!important}
html[data-theme] body.nsc5-document .nsc527-best-badge{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;background:var(--nsc571-accent-soft,#dff3e8)!important;color:var(--nsc571-link,#005a36)!important;-webkit-text-fill-color:var(--nsc571-link,#005a36)!important;font-size:.68rem;font-weight:750}

/* Messages */
html[data-theme] body.nsc5-document .nsc574-message-filters:has([data-message-view="muted"]){grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-theme] body.nsc5-document .nsc527-conversation-tools{display:grid;gap:10px;padding:10px 16px;border-bottom:1px solid var(--nsc571-border-soft,#cbd5d0);background:var(--nsc571-surface,#fff)!important}
html[data-theme] body.nsc5-document .nsc527-conversation-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
html[data-theme] body.nsc5-document .nsc527-tool-button{min-height:34px;padding:0 10px;background:transparent!important}
html[data-theme] body.nsc5-document .nsc527-tool-button[aria-busy="true"],
html[data-theme] body.nsc5-document .nsc527-search-button[aria-busy="true"]{opacity:.58;cursor:wait}
html[data-theme] body.nsc5-document .nsc527-tool-status{min-height:1.1em;margin:0;font-size:.76rem;color:var(--nsc571-muted,#405249)!important;-webkit-text-fill-color:var(--nsc571-muted,#405249)!important}
html[data-theme] body.nsc5-document .nsc527-message-search{display:grid;gap:8px;padding:11px;border:1px solid var(--nsc571-border-soft,#cbd5d0);border-radius:13px;background:var(--nsc571-surface-alt,#f3f7f5)!important}
html[data-theme] body.nsc5-document .nsc527-message-search[hidden]{display:none!important}
html[data-theme] body.nsc5-document .nsc527-message-search-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
html[data-theme] body.nsc5-document .nsc527-message-search-line label{display:grid;gap:5px;min-width:0;font-size:.76rem;font-weight:650;color:var(--nsc571-muted,#405249)!important;-webkit-text-fill-color:var(--nsc571-muted,#405249)!important}
html[data-theme] body.nsc5-document .nsc527-message-search-line input{width:100%;min-width:0;height:42px;border:1px solid var(--nsc571-border,#8da096)!important;border-radius:10px!important;padding:0 11px!important;background:var(--nsc571-surface,#fff)!important;color:var(--nsc571-ink,#10231b)!important;-webkit-text-fill-color:var(--nsc571-ink,#10231b)!important;font:400 .9rem/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
html[data-theme] body.nsc5-document .nsc527-search-button{height:42px;border-radius:10px;background:var(--nsc571-primary,#005a36)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-theme] body.nsc5-document .nsc527-message-search-results{display:grid;gap:6px;max-height:260px;overflow:auto}
html[data-theme] body.nsc5-document .nsc527-message-match{display:grid;gap:4px;width:100%;padding:10px 11px;border:1px solid transparent;border-radius:10px;background:var(--nsc571-surface,#fff)!important;color:var(--nsc571-body,#24392f)!important;-webkit-text-fill-color:var(--nsc571-body,#24392f)!important;text-align:left;cursor:pointer}
html[data-theme] body.nsc5-document .nsc527-message-match:hover,
html[data-theme] body.nsc5-document .nsc527-message-match:focus-visible{border-color:var(--nsc571-border,#8da096);outline:none}
html[data-theme] body.nsc5-document .nsc527-message-match-top{display:flex;justify-content:space-between;gap:12px}
html[data-theme] body.nsc5-document .nsc527-message-match-top strong{font-size:.78rem;color:var(--nsc571-ink,#10231b)!important;-webkit-text-fill-color:var(--nsc571-ink,#10231b)!important}
html[data-theme] body.nsc5-document .nsc527-message-match-top small{font-size:.68rem;color:var(--nsc571-muted,#405249)!important;-webkit-text-fill-color:var(--nsc571-muted,#405249)!important}
html[data-theme] body.nsc5-document .nsc527-message-match-snippet{font-size:.8rem;line-height:1.45;color:var(--nsc571-body,#24392f)!important;-webkit-text-fill-color:var(--nsc571-body,#24392f)!important}
html[data-theme] body.nsc5-document .nsc527-search-empty{margin:0;padding:8px;font-size:.8rem;color:var(--nsc571-muted,#405249)!important;-webkit-text-fill-color:var(--nsc571-muted,#405249)!important}
html[data-theme] body.nsc5-document .nsc574-message-bubble.nsc527-message-highlight{outline:3px solid var(--nsc571-primary,#005a36);outline-offset:3px}

/* Notifications */
html[data-theme] body.nsc5-document .nsc527-notification-lens{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px;margin:0 0 16px;padding:15px 16px;border:1px solid var(--nsc571-border-soft,#cbd5d0);border-radius:16px;background:var(--nsc571-surface-alt,#f3f7f5)!important}
html[data-theme] body.nsc5-document .nsc527-notification-copy strong{display:block;color:var(--nsc571-ink,#10231b)!important;-webkit-text-fill-color:var(--nsc571-ink,#10231b)!important}
html[data-theme] body.nsc5-document .nsc527-notification-copy p{margin:4px 0 0;max-width:700px;font-size:.82rem;line-height:1.5;color:var(--nsc571-muted,#405249)!important;-webkit-text-fill-color:var(--nsc571-muted,#405249)!important}
html[data-theme] body.nsc5-document .nsc5-notification-row[data-notification-priority="attention"]{border-inline-start:3px solid var(--nsc571-primary,#005a36)}

html[data-theme="dark"] body.nsc5-document :is(.nsc527-search-lens,.nsc527-notification-lens,.nsc527-message-search){background:var(--nsc571-surface-alt,#12251d)!important}
html[data-theme="dark"] body.nsc5-document :is(.nsc527-search-lens-controls button,.nsc527-notification-filters button,.nsc527-message-match,.nsc527-conversation-tools){background:var(--nsc571-surface,#0d1c16)!important}

@media (max-width:820px){
  html[data-theme] body.nsc5-document .nsc527-search-lens,
  html[data-theme] body.nsc5-document .nsc527-notification-lens{grid-template-columns:1fr;align-items:start}
  html[data-theme] body.nsc5-document .nsc527-search-lens-controls,
  html[data-theme] body.nsc5-document .nsc527-notification-filters{justify-content:flex-start}
}
@media (max-width:560px){
  html[data-theme] body.nsc5-document .nsc574-message-filters:has([data-message-view="muted"]){grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-theme] body.nsc5-document .nsc527-message-search-line{grid-template-columns:1fr}
  html[data-theme] body.nsc5-document .nsc527-search-button{width:100%}
  html[data-theme] body.nsc5-document .nsc527-conversation-actions{display:grid;grid-template-columns:1fr 1fr}
  html[data-theme] body.nsc5-document .nsc527-conversation-actions .nsc527-tool-button:last-child{grid-column:1/-1}
  html[data-theme] body.nsc5-document .nsc527-search-lens,
  html[data-theme] body.nsc5-document .nsc527-notification-lens{padding:14px}
}
@media (prefers-reduced-motion: reduce){
  html[data-theme] body.nsc5-document .nsc574-message-bubble.nsc527-message-highlight{scroll-behavior:auto}
}
@media (forced-colors: active){
  html[data-theme] body.nsc5-document :is(.nsc527-search-lens,.nsc527-conversation-tools,.nsc527-notification-lens,.nsc527-message-search,.nsc527-message-match){forced-color-adjust:auto;border-color:CanvasText!important}
  html[data-theme] body.nsc5-document :is(.nsc527-search-lens-controls button,.nsc527-notification-filters button,.nsc527-tool-button,.nsc527-search-button):focus-visible{outline:2px solid Highlight!important;outline-offset:2px}
}
