/* Shared application system, derived from the approved Today references. */
body[data-hub] {
  --hub-ink: #0e1530;
  --hub-accent: #2f5bff;
  --hub-muted: #566083;
  --hub-soft: #e4ebff;
  --hub-line: #dce1f0;
  --ink: #0e1530;
  --teal: #2f5bff;
  --line: #dce1f0;
  --muted: #566083;
  --student-ink: #0e1530;
  --student-muted: #566083;
  --student-focus: #2f5bff;
  background: #eef1f8;
  color: #0e1530;
  font:
    400 16px/1.55 "Hanken Grotesk",
    sans-serif;
}
html[data-accent="mint"] body[data-hub]:not([data-today]) {
  --hub-accent: #16765f;
  --hub-soft: #ddf5ea;
  --teal: #16765f;
}
html[data-accent="violet"] body[data-hub]:not([data-today]) {
  --hub-accent: #6554d9;
  --hub-soft: #eeeafe;
  --teal: #6554d9;
}
body[data-hub] * {
  box-sizing: border-box;
}
body[data-hub] [hidden] {
  display: none !important;
}
body[data-hub] .shell,
body[data-hub] .shell > main {
  background: #eef1f8;
  min-width: 0;
}
body[data-hub]:not([data-today]) .shell > main {
  padding: 28px 40px 32px;
  overflow: visible;
}
body[data-hub] :is(h1, h2, h3, h4) {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.02em;
  color: var(--hub-ink);
  text-wrap: pretty;
  line-height: 1.2;
}
body[data-hub] h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
}
body[data-hub] h2 {
  font-size: 22px;
  font-weight: 700;
}
body[data-hub] h3 {
  font-size: 19px;
}
body[data-hub] h4 {
  font-size: 17px;
}
body[data-hub] p {
  line-height: 1.65;
}
body[data-hub] .muted,
body[data-hub] small {
  color: var(--hub-muted);
}
body[data-hub] a {
  color: var(--hub-accent);
  text-underline-offset: 4px;
}
body[data-hub] :is(button, input, textarea, select) {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 15px;
  color: var(--hub-ink);
}
body[data-hub] button {
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  background: white;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  box-shadow: none;
  cursor: pointer;
  transition:
    background-color 0.16s,
    border-color 0.16s,
    color 0.16s;
}
body[data-hub] button:hover:not(:disabled) {
  background: #f6f8ff;
  border-color: #9cafef;
}
body[data-hub] button:active:not(:disabled) {
  background: var(--hub-soft);
}
body[data-hub] button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
body[data-hub] .primary {
  background: var(--hub-accent);
  color: white;
  border-color: var(--hub-accent);
}
body[data-hub] .primary:hover:not(:disabled) {
  background: #2348da;
  color: white;
  border-color: #2348da;
}
body[data-hub] .text-button {
  background: transparent;
  color: var(--hub-accent);
  border-color: transparent;
  padding: 8px 12px;
}
body[data-hub] :is(input, select, textarea) {
  min-height: 48px;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  max-width: 100%;
  box-shadow: none;
}
body[data-hub] :is(input, textarea)::placeholder {
  color: #65708f;
  opacity: 1;
}
body[data-hub] :is(input, textarea) {
  caret-color: var(--hub-accent);
}
body[data-hub] input:is([type="checkbox"], [type="radio"]) {
  width: 22px;
  height: 22px;
  min-height: 22px;
  min-width: 22px;
  flex-shrink: 0;
  padding: 0;
  accent-color: var(--hub-accent);
}
body[data-hub] label:has(> input[type="checkbox"]) {
  min-height: 44px;
  align-items: center;
}
body[data-hub]
  :is(button, a, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid #ffb020;
  outline-offset: 3px;
}
body[data-hub] ::selection {
  background: var(--hub-soft);
  color: var(--hub-ink);
}
body[data-hub] .view-heading {
  margin: 24px 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 20px;
}
body[data-hub] .view-heading > h1 {
  width: 100%;
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
}
body[data-hub] .view-heading > p {
  margin: 0;
  max-width: 68ch;
  color: var(--hub-muted);
  font-size: 16px;
  flex: 1 1 70%;
}
body[data-hub] .view-heading .eyebrow {
  display: none;
}
body[data-hub] .view-heading > div > h1 {
  margin: 0 0 10px;
  font-size: 36px;
}
body[data-hub] .view-heading > div > p {
  margin: 0;
  color: var(--hub-muted);
  max-width: 65ch;
}
body[data-hub] .panel {
  background: white;
  border: 0;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 0 #dce1f0;
  min-width: 0;
}
body[data-hub] .panel > h2:first-child {
  margin-top: 0;
}
body[data-hub] .section-head {
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
body[data-hub] .section-head h2 {
  margin: 0;
}
body[data-hub] .empty {
  color: var(--hub-muted);
  background: #f7f9ff;
  border: 1px dashed var(--hub-line);
  padding: 28px;
  border-radius: 16px;
  line-height: 1.7;
  min-height: 96px;
}
body[data-hub] .badge {
  background: var(--hub-soft);
  color: var(--hub-accent);
  font-size: 12px;
  font-weight: 600;
  border: 0;
  padding: 6px 10px;
  border-radius: 99px;
  line-height: 1.4;
  white-space: normal;
}
body[data-hub] .badge.overdue {
  background: #fde7e5;
  color: #a42a28;
}
body[data-hub] .badge.due {
  background: #fff1d6;
  color: #7a4e00;
}
body[data-hub] .badge.submitted {
  background: #ddf5ea;
  color: #126b47;
}
body[data-hub] summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
  font-weight: 600;
}
/* One rail and one phone tab bar for all routes. */
body[data-hub] main > header {
  display: none;
}
body[data-hub] .hub-appbar {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  min-height: 48px;
  margin-bottom: 22px;
}
body[data-today] .hub-appbar {
  display: none;
}
body[data-hub] .hub-home-action {
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px;
  font-weight: 800;
}
body[data-hub] .hub-mini-brand {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--hub-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}
body[data-hub] .hub-route-label {
  font-size: 14px;
  color: var(--hub-muted);
  margin-right: auto;
}
body[data-hub] .hub-appbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
body[data-hub] .hub-icon-action {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--hub-accent);
  font-size: 14px;
  padding: 10px 12px;
  background: #fff;
  border: 0;
}
body[data-hub] .hub-icon-action > svg {
  flex-shrink: 0;
}
body[data-hub] .hub-appbar-actions .hub-icon-action:not(:first-child) > span {
  display: none;
}
body[data-hub] .sync-bar {
  margin: 0 0 10px;
  padding: 12px 16px;
  background: #e4ebff;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #314d9d;
  font-size: 12px;
  line-height: 1.5;
  border: 0;
}
body[data-hub] #workspace-freshness {
  font-size: 12px;
  color: var(--hub-muted);
  margin: 0 0 16px;
}
body[data-hub] .today-rail {
  min-height: 100dvh;
}
body[data-hub] .today-rail-links > button {
  font-size: 15px;
}
body[data-hub] .today-rail-links > button:hover,
body[data-hub] .hub-campus-links > button:hover {
  background: #17214a;
  color: white;
  border: 0;
}
body[data-hub] .today-rail-links > button.active {
  background: #2f5bff;
  color: white;
}
body[data-hub] .hub-campus-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid #26345d;
}
body[data-hub] .hub-campus-links > button {
  display: flex;
  gap: 14px;
  align-items: center;
  background: transparent;
  color: #c9d2f0;
  border: 0;
  font-weight: 500;
  padding: 12px 14px;
  text-align: left;
}
body[data-hub] .hub-campus-links > button.active {
  background: #17214a;
  color: white;
}
body[data-hub] .today-rail-footer {
  margin-top: auto;
}
body[data-hub] .today-rail-footer > button:hover {
  background: #26345d;
  color: white;
  border: 0;
}
body[data-hub] .hub-skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: white;
  color: #0e1530;
  padding: 12px 20px;
  border-radius: 10px;
}
body[data-hub] .hub-skip-link:focus {
  top: 12px;
}
/* Courses, assignments, and the full-page reader. */
body[data-hub] #courses-view > .panel {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
body[data-hub] #course-period-picker {
  padding: 20px 24px;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  margin-bottom: 24px;
}
body[data-hub] #course-period-picker > label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  flex: 1 1 50%;
}
body[data-hub] #course-period-picker select {
  min-width: 200px;
  background: #f7f9ff;
}
body[data-hub] #course-period-picker > p {
  font-size: 13px;
  color: var(--hub-muted);
  margin: 0;
}
body[data-hub] #course-period-picker > p.muted {
  order: 4;
  flex-basis: 100%;
  line-height: 1.6;
}
body[data-hub] #course-period-picker details {
  margin-top: 0;
  flex-basis: 100%;
}
body[data-hub] .course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
body[data-hub] .course-grid > .empty {
  grid-column: 1/-1;
}
body[data-hub] .course {
  background: white;
  border: 0;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 1px 0 var(--hub-line);
}
body[data-hub] .course h3 {
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
body[data-hub] .course button {
  background: var(--hub-accent);
  color: white;
  border: 0;
  margin: 0;
  min-height: 46px;
  padding: 10px 18px;
}
body[data-hub] .course > a {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
body[data-hub] .filters {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: #eef1f8;
  border-radius: 14px;
  margin: 20px 0;
  flex-wrap: wrap;
}
body[data-hub] .filters button {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--hub-muted);
  flex: 1;
}
body[data-hub] .filters button.selected {
  background: var(--hub-ink);
  color: #fff;
}
body[data-hub] #assignments-status {
  font-size: 14px;
  color: var(--hub-muted);
  margin: 14px 0;
}
body[data-hub] .assignment {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--hub-line);
}
body[data-hub] .assignment:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
body[data-hub] .assignment > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body[data-hub] .assignment h3 {
  font-size: 22px;
  line-height: 1.35;
  order: -2;
  margin: 0;
}
body[data-hub] .assignment small {
  font-size: 14px;
  line-height: 1.5;
}
body[data-hub] .assignment small:first-of-type {
  order: -1;
}
body[data-hub] .assignment .primary {
  align-self: flex-start;
  margin: 8px 0;
}
body[data-hub] .assignment a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  align-self: flex-start;
}
body[data-hub] .course-page {
  width: 100%;
  max-width: none;
}
body[data-hub] .course-toolbar {
  margin: 20px 0;
  gap: 14px;
}
body[data-hub] .course-toolbar span {
  font-size: 14px;
  overflow-wrap: anywhere;
  flex: 1;
}
body[data-hub] .course-body {
  padding: 32px;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 1px 0 var(--hub-line);
  min-height: 55vh;
}
body[data-hub] .course-body h1 {
  font-size: 32px;
  line-height: 1.15;
  margin: 14px 0 20px;
}
body[data-hub] .course-body > span {
  font-size: 13px;
  color: var(--hub-muted);
}
body[data-hub] .course-actions {
  padding: 16px 0;
  border-block: 1px solid var(--hub-line);
  gap: 10px;
  margin: 24px 0;
}
body[data-hub] .course-actions > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
}
body[data-hub] .course-body .moodle-activity {
  display: block;
  width: 100%;
  padding: 16px 18px;
  background: #f6f8ff;
  border: 1px solid #e1e6f5;
  border-radius: 12px;
  color: var(--hub-ink);
  margin: 10px 0;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  line-height: 1.6;
}
body[data-hub] .course-body .moodle-activity:hover {
  background: var(--hub-soft);
  color: var(--hub-accent);
}
body[data-hub] .moodle-rich {
  line-height: 1.75;
  overflow-wrap: anywhere;
}
body[data-hub] .moodle-pdf {
  background: #f6f8ff;
  border-radius: 16px;
  padding: 18px;
  border: 0;
}
body[data-hub] .pdf-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
body[data-hub] .pdf-frame {
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: #eef1f8;
}
body[data-hub] .submission-panel {
  background: #eef3ff;
  border: 0;
  border-radius: 18px;
  padding: 24px;
  margin: 24px 0;
}
body[data-hub] .submission-panel h3 {
  margin: 0 0 16px;
  font-size: 22px;
}
body[data-hub] .submission-panel input[type="file"] {
  background: #fff;
  border: 1px dashed #a5b6f0;
  width: 100%;
  max-width: 100%;
  padding: 16px;
}
body[data-hub] .submission-panel button {
  margin-top: 10px;
}
/* AI conversation workspace. */
body[data-hub] .chat-workspace {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 0;
  min-height: 650px;
  background: white;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 1px 0 var(--hub-line);
  overflow: hidden;
}
body[data-hub] .chat-workspace > .chat-history {
  position: static;
  display: flex;
  flex-direction: column;
  width: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  background: #f7f9ff;
  color: var(--hub-ink);
  padding: 20px;
  border: 0;
  border-right: 1px solid var(--hub-line);
  gap: 14px;
}
body[data-hub] .chat-history #chat-new {
  width: 100%;
  font-size: 14px;
  white-space: normal;
}
body[data-hub] .chat-history label {
  font-size: 13px;
  color: var(--hub-muted);
  display: flex;
  gap: 8px;
}
body[data-hub] #chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  max-height: 480px;
  min-width: 0;
  flex: 1;
}
body[data-hub] #chat-list button {
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  text-align: left;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: none;
  width: 100%;
  margin: 0;
}
body[data-hub] #chat-list button.selected {
  background: var(--hub-soft);
  color: var(--hub-accent);
}
body[data-hub] #chat-list .muted {
  font-size: 14px;
  margin: 0;
  padding: 12px 0;
}
body[data-hub] #chat-attendance {
  font-size: 13px;
  margin-top: auto;
  background: white;
}
body[data-hub] .chat-main {
  padding: 28px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
body[data-hub] .chat-top {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
body[data-hub] .chat-top h2 {
  font-size: 21px;
  margin: 0;
  flex: 1;
  min-width: 140px;
}
body[data-hub] .chat-top button {
  font-size: 12px;
  padding: 8px 12px;
}
body[data-hub] #chat-save-state {
  font-size: 12px;
  margin-top: 10px;
  color: var(--hub-muted);
}
body[data-hub] .chat-thread {
  min-height: 260px;
  max-height: 60vh;
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 20px 0;
  flex: 1;
}
body[data-hub] .chat-welcome {
  text-align: left;
  padding: 24px 0;
}
body[data-hub] .chat-welcome h2 {
  font-size: 30px;
  max-width: 20ch;
  margin: 0 0 12px;
}
body[data-hub] .chat-welcome p {
  font-size: 15px;
  color: var(--hub-muted);
  max-width: 52ch;
  line-height: 1.7;
  margin: 0 0 20px;
}
body[data-hub] .chat-welcome button {
  display: inline-block;
  max-width: 100%;
  font-size: 14px;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: #f9fafe;
  padding: 12px;
  margin: 0 8px 8px 0;
  text-align: left;
}
body[data-hub] .chat-entry {
  background: #f4f6fd;
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  line-height: 1.75;
}
body[data-hub] .chat-entry.user {
  background: var(--hub-soft);
  margin-left: 10%;
}
body[data-hub] .chat-entry small {
  font:
    600 11px/1.5 "Hanken Grotesk",
    sans-serif;
  letter-spacing: 0.08em;
  color: var(--hub-muted);
}
body[data-hub] .chat-answer {
  line-height: 1.8;
  font-size: 15px;
}
body[data-hub] .chat-source-record {
  border-color: var(--hub-line);
}
body[data-hub] .chat-answer-tools button {
  font-size: 13px;
  color: var(--hub-accent);
  background: white;
  min-height: 44px;
}
body[data-hub] #chat-form {
  margin-top: auto;
  padding-top: 20px;
  border-color: var(--hub-line);
}
body[data-hub] #chat-question {
  border: 1px solid #b9c6ed;
  border-radius: 16px;
  padding: 16px;
  background: #f9fafe;
  font-size: 16px;
  min-height: 112px;
  line-height: 1.6;
}
body[data-hub] .chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}
body[data-hub] .chat-options label {
  max-width: none;
  font-size: 13px;
  color: var(--hub-muted);
}
body[data-hub] .chat-options select {
  font-size: 14px;
  min-height: 44px;
  background: #f7f9ff;
  margin: 4px 0 0;
  padding: 8px 12px;
}
body[data-hub] .chat-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--hub-line);
  padding: 10px 14px;
  border-radius: 12px;
  background: white;
  color: var(--hub-accent) !important;
  font-weight: 600;
  cursor: pointer;
}
body[data-hub] .chat-consent {
  display: flex;
  align-items: flex-start !important;
  gap: 12px;
  background: #f7f9ff;
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--hub-muted);
  margin: 16px 0;
}
body[data-hub] .chat-consent input {
  margin-top: 2px;
}
body[data-hub] .chat-send-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
body[data-hub] #chat-progress {
  font-size: 12px;
  max-width: 52ch;
  color: var(--hub-muted);
}
body[data-hub] #chat-send {
  min-width: 100px;
}
body[data-hub] .chat-file {
  background: #fff1d6;
  color: #62420d;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  gap: 10px;
}
body[data-hub] .hub-history-toggle {
  display: none;
}
/* Study studio library and PDF workspace. */
body[data-hub] .studio-grid {
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.8fr);
  gap: 24px;
  align-items: start;
}
body[data-hub] .library-panel {
  background: var(--hub-ink);
  color: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: none;
}
body[data-hub] .library-panel h2 {
  color: white;
}
body[data-hub] .library-panel .muted {
  color: #c9d2f0;
}
body[data-hub] .upload-zone {
  background: #17214a;
  border: 2px dashed #3a4a85;
  border-radius: 18px;
  padding: 24px 16px;
  gap: 12px;
  color: #fff;
}
body[data-hub] .upload-zone > span {
  color: #ffb020;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
body[data-hub] .upload-zone svg {
  width: 28px;
  height: 28px;
}
body[data-hub] .upload-zone small {
  color: #c9d2f0;
}
body[data-hub] .upload-zone input {
  background: #fff;
  color: var(--hub-ink);
  font-size: 13px;
  border: 0;
  width: 100%;
  padding: 8px;
}
body[data-hub] .document-tile {
  border: 1px solid #35436d;
  background: #17214a;
  color: white;
  padding: 16px;
  border-radius: 14px;
  margin: 12px 0;
}
body[data-hub] .document-tile.selected {
  background: #2f5bff;
  border-color: #2f5bff;
}
body[data-hub] .document-tile small {
  color: #c9d2f0;
  font-size: 12px;
}
body[data-hub] .library-panel .empty {
  background: #17214a;
  color: #c9d2f0;
  border-color: #3a4a85;
  font-size: 14px;
}
body[data-hub] .study-workspace {
  padding: 28px;
  border-radius: 24px;
  min-height: 560px;
}
body[data-hub] .study-workspace .section-head {
  align-items: flex-start;
}
body[data-hub] #document-name {
  font-size: 24px;
  overflow-wrap: anywhere;
}
body[data-hub] .provider-control {
  padding: 12px 0;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--hub-muted);
}
body[data-hub] .provider-control select {
  background: #f7f9ff;
  font-size: 14px;
}
body[data-hub] .study-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
body[data-hub] .study-actions button {
  font-size: 13px;
  padding: 10px 12px;
  background: #f6f8ff;
  border-color: #dce3fa;
}
body[data-hub] .study-actions button:first-child {
  background: var(--hub-accent);
  color: white;
  border-color: var(--hub-accent);
}
body[data-hub] #document-status {
  background: #eef3ff;
  color: #314d9d;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
}
body[data-hub] .document-analysis {
  font-size: 16px;
  line-height: 1.8;
  margin: 24px 0;
}
body[data-hub] #document-form {
  background: #f6f8ff;
  border: 1px solid #d4ddf5;
  border-radius: 14px;
  padding: 6px;
  gap: 8px;
  display: flex;
  align-items: center;
}
body[data-hub] #document-question {
  background: transparent;
  border: 0;
  min-width: 0;
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
}
body[data-hub] #document-submit {
  flex-shrink: 0;
}
/* Official reports and grade views. */
body[data-hub] .phone-report-note {
  background: #e4ebff;
  color: #314d9d;
  padding: 22px 24px;
}
body[data-hub] .phone-report-note h2 {
  color: var(--hub-ink);
}
body[data-hub] .phone-report-note p {
  font-size: 14px;
  max-width: 70ch;
}
body[data-hub] .report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
body[data-hub] .report-card {
  background: #fff;
  border: 0;
  border-radius: 18px;
  padding: 22px;
  text-align: left;
  box-shadow: 0 1px 0 var(--hub-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
body[data-hub] .report-card h2 {
  font-size: 20px;
  margin: 0;
  color: var(--hub-ink);
}
body[data-hub] .report-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--hub-muted);
  margin: 0;
}
body[data-hub] .hub-report-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--hub-soft);
  color: var(--hub-accent);
  border-radius: 12px;
  margin-bottom: 4px;
}
body[data-hub] .hub-report-icon svg {
  width: 24px;
  height: 24px;
}
body[data-hub] .report-document {
  min-width: 0;
  max-width: 100%;
  font-size: 15px;
}
body[data-hub] #report-content {
  scroll-margin-top: 24px;
}
body[data-hub] .visual-summary {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--hub-line);
  margin: 0 0 24px;
}
body[data-hub] .visual-summary h3 {
  font-size: 28px;
  margin: 0 0 14px;
}
body[data-hub] .week-board {
  gap: 10px;
}
body[data-hub] .week-day {
  background: #f3f6fe;
  border-radius: 16px;
  padding: 14px;
  min-width: 160px;
}
body[data-hub] .week-day h4 {
  font-size: 17px;
  margin: 0 0 16px;
}
body[data-hub] .class-block {
  background: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
  box-shadow: 0 1px 0 #dce1f0;
}
body[data-hub] .class-time {
  font-size: 13px;
  color: var(--hub-accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
body[data-hub] .class-block small {
  font-size: 12px;
  line-height: 1.6;
}
body[data-hub] .exam-event {
  border: 1px solid var(--hub-line);
  border-left-width: 1px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  gap: 20px;
}
body[data-hub] .date-stamp {
  background: #fff1d6;
  color: #7a4e00;
  border-radius: 14px;
}
body[data-hub] .exam-event h3 {
  font-size: 20px;
  margin: 0 0 8px;
}
body[data-hub] .exam-event p {
  font-size: 15px;
}
body[data-hub] .record-card {
  border: 1px solid var(--hub-line);
  border-top-width: 1px;
  border-radius: 16px;
  padding: 20px;
  background: white;
}
body[data-hub] .grade-symbol {
  background: var(--hub-soft);
  color: var(--hub-accent);
  border-radius: 12px;
  font-family: "Bricolage Grotesque", sans-serif;
}
body[data-hub] .grade-summary {
  gap: 16px;
}
body[data-hub] .grade-summary article {
  background: var(--hub-soft);
  border: 0;
  border-radius: 16px;
  padding: 22px;
}
body[data-hub] .grade-summary strong {
  font-family: "Bricolage Grotesque", sans-serif;
  color: var(--hub-ink);
}
body[data-hub] .source-document {
  background: #f7f9ff;
  border: 1px solid var(--hub-line);
  border-radius: 14px;
  padding: 18px;
}
body[data-hub] pre {
  font-family: "Hanken Grotesk", sans-serif;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
body[data-hub] .gpa-track {
  background: #e4ebff;
}
body[data-hub] .gpa-track > span {
  background: var(--hub-accent);
}
body[data-hub] table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
body[data-hub] th {
  color: #3e4e79;
  background: #f3f6fe;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
}
body[data-hub] td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hub-line);
  line-height: 1.6;
}
/* Request compose/review/tracking remain the existing ORS form. */
body[data-hub] .ors-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  gap: 24px;
}
body[data-hub] .ors-compose {
  padding: 28px;
  border-radius: 24px;
}
body[data-hub] .ors-top {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  align-items: center;
}
body[data-hub] .ors-top h2 {
  font-size: 24px;
  margin: 0;
}
body[data-hub] #ors-status,
body[data-hub] #ors-list-status {
  font-size: 14px;
  line-height: 1.65;
  background: #f3f6fe;
  border-radius: 12px;
  padding: 14px;
  color: var(--hub-muted);
}
body[data-hub] .ors-compose form {
  gap: 12px;
}
body[data-hub] .ors-field {
  margin-top: 10px;
  gap: 8px;
}
body[data-hub] .ors-field label,
body[data-hub] .ors-compose form > label {
  font-size: 14px;
  font-weight: 600;
}
body[data-hub] #ors-review {
  margin-top: 18px;
  min-height: 48px;
}
body[data-hub] #ors-draft-status {
  font-size: 13px;
  color: var(--hub-muted);
}
body[data-hub] #ors-terms {
  border-top: 1px solid var(--hub-line);
  padding-top: 18px;
  margin-top: 16px;
}
body[data-hub] #ors-terms p {
  font-size: 14px;
  color: var(--hub-muted);
  line-height: 1.8;
}
body[data-hub] #ors-confirm {
  background: #f3f6fe;
  border-radius: 16px;
  padding: 20px;
  margin-top: 24px;
}
body[data-hub] #ors-confirm h3 {
  margin-top: 0;
  font-size: 22px;
}
body[data-hub] .ors-accept {
  align-items: flex-start !important;
  font-size: 14px;
  line-height: 1.8;
}
body[data-hub] .ors-compose dl {
  border-color: var(--hub-line);
  font-size: 14px;
}
body[data-hub] #ors-receipt {
  background: #fff1d6;
  color: #62420d;
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
}
body[data-hub] .ors-tracking {
  padding: 24px;
}
body[data-hub] .ors-tracking article {
  border-color: var(--hub-line);
  padding: 20px 0;
}
body[data-hub] .ors-tracking article > strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}
/* Account: primary login column and secondary service panels. */
body[data-hub] #connections-view {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
body[data-hub] #connections-view > .view-heading {
  grid-column: 1/-1;
  margin-bottom: 0;
}
body[data-hub] #connections-view > .panel {
  max-width: none;
  margin: 0;
  width: 100%;
  padding: 28px;
  border-radius: 24px;
}
body[data-hub] #connections-view > .account-panel {
  grid-column: 1;
  grid-row: 2 / span 4;
}
body[data-hub] #connections-view > .moodle-connect-panel {
  grid-column: 2;
  grid-row: 2;
}
body[data-hub] #connections-view > .hub-device-panel {
  grid-column: 2;
  grid-row: 3;
  background: var(--hub-ink);
  color: #fff;
}
body[data-hub] .hub-device-panel h2 {
  color: #fff;
}
body[data-hub] .hub-device-panel .muted {
  color: #c9d2f0;
}
body[data-hub] #connections-view > .hub-ai-panel {
  grid-column: 2;
  grid-row: 4;
}
body[data-hub] #connections-view h2 {
  font-size: 24px;
  margin-bottom: 14px;
}
body[data-hub] #connections-view p {
  font-size: 14px;
  line-height: 1.8;
}
body[data-hub] #connections-view .key-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: none;
  margin: 20px 0;
}
body[data-hub] #connections-view .key-form input {
  flex: none;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  font-size: 16px;
  min-height: 48px;
}
body[data-hub] #connections-view .key-form input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
}
body[data-hub] #connections-view .key-form label {
  font-size: 14px;
  display: block;
  line-height: 1.6;
}
body[data-hub] #connections-view label:has(> input[type="checkbox"]) {
  display: flex;
  gap: 10px;
  margin: 6px 0;
  align-items: flex-start;
}
body[data-hub] #connections-view .connection-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
body[data-hub] #student-account > div.connection-links > button[type="submit"] {
  width: 100%;
}
body[data-hub]
  #student-account
  > div.connection-links
  > button:not([type="submit"]) {
  font-size: 13px;
  padding: 8px 10px;
  background: #f7f9ff;
}
body[data-hub] #account-status {
  background: #f3f6fe;
  color: #3e4e79;
  padding: 14px 16px;
  border-radius: 12px;
}
body[data-hub] #official-downloads {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hub-line);
}
body[data-hub] #official-downloads button {
  font-size: 13px;
}
body[data-hub] .account-panel > section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--hub-line);
}
body[data-hub] .account-panel > section > h3 {
  margin-top: 0;
  font-size: 22px;
}
body[data-hub] .account-panel > section > label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
body[data-hub] #university-source {
  width: 100%;
  background: #f7f9ff;
}
/* Calendar, university feed, dialogs and status messages. */
body[data-hub] .calendar-toolbar {
  gap: 10px;
  margin: 24px 0;
  flex-wrap: wrap;
}
body[data-hub] .calendar-toolbar h2 {
  font-size: 26px;
  flex: 1;
  min-width: 160px;
  margin: 0;
}
body[data-hub] .hub-calendar-scroll {
  overflow: auto;
  border-radius: 20px;
  outline-offset: 3px;
  scrollbar-gutter: stable;
}
body[data-hub] .academic-grid {
  gap: 8px;
  min-width: 600px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
body[data-hub] .calendar-weekday {
  color: var(--hub-muted);
  font-size: 13px;
  font-family: "Hanken Grotesk", sans-serif;
  padding: 12px;
}
body[data-hub] .calendar-day {
  min-height: 116px;
  background: white;
  border: 0;
  border-radius: 14px;
  padding: 12px;
  font-size: 16px;
  box-shadow: 0 1px 0 var(--hub-line);
}
body[data-hub] .calendar-day small {
  font-size: 12px;
  padding: 6px 8px;
  line-height: 1.4;
  border-radius: 8px;
  margin-top: 8px;
  background: var(--hub-soft);
  color: #314d9d;
  overflow-wrap: anywhere;
}
body[data-hub] .calendar-day .exams {
  background: #fff1d6;
  color: #7a4e00;
}
body[data-hub] .calendar-day .holiday {
  background: #ddf5ea;
  color: #126b47;
}
body[data-hub] .academic-agenda {
  border-radius: 20px;
  background: white;
  padding: 8px 20px;
  margin: 24px 0;
}
body[data-hub] .calendar-event {
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hub-line);
}
body[data-hub] .calendar-event strong {
  font-size: 16px;
}
body[data-hub] .news-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
body[data-hub] .news-card {
  background: white;
  border: 1px solid var(--hub-line);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  color: var(--hub-ink);
  min-height: 170px;
}
body[data-hub] .news-card h3 {
  font-size: 21px;
  line-height: 1.35;
  margin: 0;
}
body[data-hub] .news-card .muted {
  font-size: 13px;
  color: var(--hub-accent);
}
body[data-hub] .news-card:hover {
  background: #f6f8ff;
  border-color: #a6b7ed;
  text-decoration: none;
}
body[data-hub] dialog {
  border: 0;
  border-radius: 24px;
  padding: 28px;
  background: #fff;
  color: var(--hub-ink);
  font-family: "Hanken Grotesk", sans-serif;
  max-width: 640px;
}
body[data-hub] dialog::backdrop {
  background: rgba(14, 21, 48, 0.62);
}
body[data-hub] dialog h2 {
  font-size: 28px;
  margin: 0 0 18px;
}
body[data-hub] dialog p {
  color: var(--hub-muted);
  line-height: 1.8;
}
body[data-hub] #student-more-menu {
  padding: 24px;
  border: 0;
  border-radius: 22px;
  background: var(--hub-ink);
  color: white;
  max-height: 80dvh;
  overflow: auto;
  box-shadow: 0 12px 36px rgba(14, 21, 48, 0.2);
  z-index: 80;
}
body[data-hub] #student-more-menu h2 {
  color: white;
  font-size: 22px;
  margin: 0 0 16px;
}
body[data-hub] #student-more-menu button {
  color: #e9ecf7;
  background: #17214a;
  border: 0;
  font-size: 15px;
  min-height: 48px;
  margin: 4px 0;
}
body[data-hub] #student-more-menu button:hover {
  background: #26345d;
  color: white;
}
body[data-hub] #student-more-menu > .text-button {
  color: #ffb020;
}
body[data-hub] .floating-ai {
  background: var(--hub-accent);
  color: white;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 6px 18px -8px rgba(14, 21, 48, 0.4);
}
body[data-hub] main > footer {
  margin-top: 32px;
  padding: 20px 0;
  gap: 16px;
  border-top: 1px solid var(--hub-line);
  font-size: 12px;
  color: var(--hub-muted);
}
body[data-hub] main > footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
body[data-hub] .hub-startup-note,
body[data-hub] .hub-sync-progress {
  background: var(--hub-ink);
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  max-width: 90vw;
}
body[data-hub] .hub-startup-note {
  pointer-events: none;
}
body[data-hub] #hub-update {
  border: 0;
  background: #fff1d6;
  color: #62420d;
  border-radius: 14px;
  max-width: calc(100vw - 32px);
}
@media (max-width: 1100px) and (min-width: 721px) {
  body[data-hub]:not([data-today]) .shell > main {
    padding: 28px;
  }
  body[data-hub] .chat-workspace {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  body[data-hub] .chat-main {
    padding: 22px;
  }
  body[data-hub] .studio-grid {
    grid-template-columns: 1fr;
  }
  body[data-hub] .library-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  body[data-hub] .library-panel h2 {
    grid-column: 1/-1;
  }
  body[data-hub] #document-library {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  body[data-hub] .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-hub] .ors-layout {
    grid-template-columns: 1fr;
  }
  body[data-hub] #connections-view {
    grid-template-columns: 1fr;
  }
  body[data-hub] #connections-view > .panel {
    grid-column: auto;
    grid-row: auto;
  }
  body[data-hub] #connections-view > .account-panel {
    order: 1;
  }
  body[data-hub] #connections-view > .moodle-connect-panel {
    order: 2;
  }
  body[data-hub] #connections-view > .hub-device-panel {
    order: 3;
  }
  body[data-hub] #connections-view > .hub-ai-panel {
    order: 4;
  }
}
@media (max-width: 720px) {
  body[data-hub]:not([data-today]) .shell > main {
    padding: 20px 20px calc(110px + env(safe-area-inset-bottom));
    min-height: 100dvh;
  }
  body[data-hub] .hub-appbar {
    gap: 10px;
    margin: 0 0 20px;
    min-height: 44px;
  }
  body[data-hub] .hub-home-action {
    font-size: 18px;
    gap: 8px;
  }
  body[data-hub] .hub-route-label {
    display: none;
  }
  body[data-hub] .hub-appbar-actions {
    gap: 6px;
    margin-left: auto;
  }
  body[data-hub] .hub-appbar-actions .hub-icon-action {
    padding: 10px;
    min-width: 44px;
    width: 44px;
    border-radius: 12px;
  }
  body[data-hub] .hub-appbar-actions .hub-icon-action > span {
    display: none;
  }
  body[data-hub] .view-heading {
    margin: 24px 0;
    gap: 10px;
  }
  body[data-hub] .view-heading > h1,
  body[data-hub] .view-heading > div > h1 {
    font-size: 30px;
    line-height: 1.1;
  }
  body[data-hub] .view-heading > p,
  body[data-hub] .view-heading > div > p {
    font-size: 15px;
    line-height: 1.7;
  }
  body[data-hub] h2 {
    font-size: 21px;
  }
  body[data-hub] .panel {
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 20px;
  }
  body[data-hub] .sync-bar {
    font-size: 12px;
    padding: 12px;
    line-height: 1.5;
    gap: 4px;
  }
  body[data-hub] #last-updated {
    font-size: 11px;
  }
  body[data-hub] #workspace-freshness {
    font-size: 12px;
    margin-bottom: 8px;
  }
  body[data-hub] #course-period-picker {
    padding: 18px;
    gap: 12px;
    margin-bottom: 20px;
  }
  body[data-hub] #course-period-picker > label {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    font-size: 14px;
  }
  body[data-hub] #course-period-picker select {
    width: 100%;
    min-width: 0;
  }
  body[data-hub] .course-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  body[data-hub] .course {
    padding: 22px;
    border-radius: 18px;
  }
  body[data-hub] .course h3 {
    font-size: 22px;
    margin-bottom: 8px;
  }
  body[data-hub] .course button {
    width: 100%;
  }
  body[data-hub] .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }
  body[data-hub] .filters button {
    padding: 10px 8px;
    min-height: 44px;
    font-size: 14px;
  }
  body[data-hub] .assignment {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 0;
  }
  body[data-hub] .assignment h3 {
    font-size: 21px;
  }
  body[data-hub] .assignment small {
    font-size: 14px;
  }
  body[data-hub] .assignment .badge {
    max-width: none;
    font-size: 12px;
  }
  body[data-hub] .assignment .primary {
    width: 100%;
    font-size: 14px;
  }
  body[data-hub] .course-body {
    padding: 20px;
    border-radius: 20px;
  }
  body[data-hub] .course-body h1 {
    font-size: 28px;
  }
  body[data-hub] .course-toolbar {
    gap: 12px;
    align-items: flex-start;
  }
  body[data-hub] .course-toolbar span {
    flex-basis: 100%;
    font-size: 13px;
  }
  body[data-hub] .course-actions {
    gap: 8px;
  }
  body[data-hub] .course-actions button {
    font-size: 13px;
    padding: 10px 12px;
  }
  body[data-hub] .submission-panel {
    padding: 18px;
  }
  body[data-hub] .submission-panel button {
    width: 100%;
    margin-right: 0;
  }
  body[data-hub] .chat-workspace {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    min-height: 0;
    overflow: visible;
  }
  body[data-hub] .hub-history-toggle {
    display: inline-flex;
    margin-top: 4px;
    font-size: 14px;
  }
  body[data-hub] .chat-workspace > .chat-history {
    display: none;
    border-right: 0;
    border-bottom: 1px solid var(--hub-line);
    border-radius: 20px 20px 0 0;
    padding: 18px;
  }
  body[data-hub] .hub-history-open .chat-workspace > .chat-history {
    display: flex;
  }
  body[data-hub] #chat-list {
    max-height: 220px;
    gap: 6px;
    overflow: auto;
    flex: auto;
  }
  body[data-hub] .chat-main {
    padding: 20px;
  }
  body[data-hub] .chat-top {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
  body[data-hub] .chat-top h2 {
    font-size: 20px;
    margin: 0;
  }
  body[data-hub] .chat-top .connection-links {
    gap: 8px;
  }
  body[data-hub] .chat-thread {
    min-height: 240px;
    max-height: none;
    overflow: visible;
    padding: 20px 0;
    flex: auto;
  }
  body[data-hub] .chat-welcome {
    padding: 8px 0;
  }
  body[data-hub] .chat-welcome h2 {
    font-size: 28px;
  }
  body[data-hub] .chat-welcome p {
    font-size: 15px;
  }
  body[data-hub] .chat-welcome button {
    width: 100%;
    margin: 0 0 10px;
    font-size: 14px;
    padding: 14px;
  }
  body[data-hub] .chat-entry {
    padding: 16px;
    font-size: 15px;
    border-radius: 14px;
  }
  body[data-hub] .chat-entry.user {
    margin-left: 5%;
  }
  body[data-hub] .chat-options {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  body[data-hub] .chat-options label {
    width: 100%;
    max-width: none;
    font-size: 13px;
  }
  body[data-hub] .chat-options select {
    width: 100%;
  }
  body[data-hub] .chat-consent {
    font-size: 13px;
    padding: 12px;
    line-height: 1.7;
  }
  body[data-hub] .chat-send-row {
    align-items: flex-start;
    flex-direction: column;
  }
  body[data-hub] #chat-send {
    width: 100%;
    min-height: 48px;
  }
  body[data-hub] #chat-progress {
    font-size: 12px;
  }
  body[data-hub] .studio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  body[data-hub] .library-panel {
    padding: 22px;
    border-radius: 20px;
  }
  body[data-hub] .study-workspace {
    padding: 20px;
    min-height: 400px;
  }
  body[data-hub] #document-name {
    font-size: 23px;
  }
  body[data-hub] .study-workspace .section-head {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  body[data-hub] .provider-control {
    flex-direction: column;
    align-items: stretch;
    font-size: 14px;
  }
  body[data-hub] .provider-control select {
    width: 100%;
  }
  body[data-hub] .study-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body[data-hub] .study-actions button {
    font-size: 13px;
    padding: 12px 8px;
    min-height: 46px;
  }
  body[data-hub] #document-question {
    width: 100%;
    padding: 10px 8px;
    font-size: 16px;
  }
  body[data-hub] #document-submit {
    font-size: 14px;
    min-width: 54px;
    padding: 10px;
  }
  body[data-hub] .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
  }
  body[data-hub] .report-card {
    padding: 18px 16px;
    border-radius: 16px;
    gap: 10px;
  }
  body[data-hub] .report-card h2 {
    font-size: 18px;
    overflow-wrap: anywhere;
  }
  body[data-hub] .report-card p {
    font-size: 13px;
  }
  body[data-hub] .phone-report-note {
    padding: 20px;
  }
  body[data-hub] .visual-summary h3 {
    font-size: 24px;
  }
  body[data-hub] .record-grid {
    grid-template-columns: 1fr;
  }
  body[data-hub] .exam-event {
    padding: 16px;
    gap: 14px;
    align-items: flex-start;
  }
  body[data-hub] .date-stamp {
    min-width: 60px;
    width: 60px;
    height: 72px;
  }
  body[data-hub] .exam-event h3 {
    font-size: 19px;
  }
  body[data-hub] .exam-event p {
    font-size: 14px;
  }
  body[data-hub] .ors-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  body[data-hub] .ors-compose,
  body[data-hub] .ors-tracking {
    padding: 20px;
    border-radius: 20px;
  }
  body[data-hub] .ors-top {
    align-items: flex-start;
    gap: 12px;
  }
  body[data-hub] .ors-top h2 {
    font-size: 23px;
  }
  body[data-hub] .ors-top button {
    font-size: 13px;
    padding: 10px 12px;
  }
  body[data-hub] .ors-compose dl {
    display: block;
  }
  body[data-hub] .ors-compose dd {
    margin: 4px 0 16px;
  }
  body[data-hub] #ors-confirm {
    padding: 16px;
  }
  body[data-hub] #connections-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  body[data-hub] #connections-view > .view-heading {
    order: 0;
    margin: 24px 0 4px;
  }
  body[data-hub] #connections-view > .account-panel {
    order: 1;
  }
  body[data-hub] #connections-view > .moodle-connect-panel {
    order: 2;
  }
  body[data-hub] #connections-view > .hub-device-panel {
    order: 3;
  }
  body[data-hub] #connections-view > .hub-ai-panel {
    order: 4;
  }
  body[data-hub] #connections-view > .panel {
    padding: 22px 20px;
    border-radius: 20px;
  }
  body[data-hub] #connections-view h2 {
    font-size: 23px;
  }
  body[data-hub] #connections-view .connection-links > button {
    flex: 1;
    min-width: 100px;
  }
  body[data-hub] #connections-view .key-form {
    gap: 10px;
  }
  body[data-hub] .calendar-toolbar {
    gap: 8px;
  }
  body[data-hub] .calendar-toolbar h2 {
    order: -1;
    width: 100%;
    flex-basis: 100%;
    font-size: 25px;
  }
  body[data-hub] .calendar-toolbar button {
    flex: 1;
    font-size: 13px;
    padding: 10px 8px;
  }
  body[data-hub] .academic-grid {
    min-width: 640px;
  }
  body[data-hub] .calendar-day {
    min-height: 112px;
    padding: 10px;
  }
  body[data-hub] .calendar-day small {
    font-size: 12px;
  }
  body[data-hub] .academic-agenda {
    padding: 4px 18px;
  }
  body[data-hub] .calendar-event {
    gap: 8px;
    flex-direction: column;
    padding: 18px 0;
  }
  body[data-hub] .news-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  body[data-hub] .news-card {
    padding: 20px;
    min-height: 160px;
  }
  body[data-hub] .news-card h3 {
    font-size: 22px;
  }
  body[data-hub] dialog {
    padding: 24px 20px;
    border-radius: 22px;
    width: calc(100% - 24px);
    max-height: 88dvh;
  }
  body[data-hub] dialog h2 {
    font-size: 26px;
  }
  body[data-hub] #student-more-menu {
    left: 12px;
    right: 12px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    max-height: 75dvh;
    padding: 22px;
    z-index: 90;
  }
  body[data-hub] .floating-ai {
    display: none;
  }
  body[data-hub] main > footer {
    font-size: 12px;
    padding: 20px 0 8px;
    gap: 4px 16px;
    margin-top: 24px;
  }
  body[data-hub] .hub-sync-progress,
  body[data-hub] .hub-startup-note {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }
  body[data-hub] #hub-update {
    bottom: calc(96px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    font-size: 13px;
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-hub] *,
  body[data-hub] *:before,
  body[data-hub] *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Override legacy generated nav captions and hover states. */
body[data-hub] :is(.today-tabs, .today-rail) button:before,
body[data-hub] :is(.today-tabs, .today-rail) button:after,
body[data-hub] :is(.today-tabs, .today-rail) button span:before,
body[data-hub] :is(.today-tabs, .today-rail) button span:after {
  content: none !important;
}
body[data-hub] .today-rail-links > button > span:first-of-type,
body[data-hub] .hub-campus-links > button > span {
  font-size: inherit;
}
body[data-hub] .today-tabs > button:hover:not(:disabled) {
  background: #17214a;
  color: #fff;
  border: 0;
}
body[data-hub] .today-tabs > button.active:hover:not(:disabled) {
  background: #2f5bff;
  color: #fff;
  border: 0;
}
body[data-hub] #hub-update {
  position: fixed;
  top: auto;
  left: auto;
  right: 20px;
  bottom: 20px;
  transform: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  z-index: 100;
  max-width: min(520px, calc(100vw - 32px));
  font-size: 14px;
}
@media (max-width: 720px) {
  body[data-hub] #hub-update {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    font-size: 13px;
    gap: 10px;
    padding: 12px;
  }
}

/* Shared external study resources */
