﻿:root[data-theme] {
  color-scheme: light;
  --accent: #0875c9;
  --border: #c1d8ee;
  --page: #edf6ff;
  --wash: #d8ecff;
  --ink: #123f72;
  --muted: #55708b;
  --focus: #39a9e8;
  --selection: #e7f5ff;
  --tint: #f7fbff;
}
:root[data-theme] body {
  color: #123f72;
  background: #fff;
}
:root[data-theme] body .card {
  background: #fff;
  border: 4px solid #123f72;
  box-shadow: 0 18px 48px #12447720, 0 4px 12px #12447712;
}
:root[data-theme] body .card-header {
  color: #123f72;
  background-image:
    repeating-linear-gradient(135deg, #0875c906 0 2px, transparent 2px 10px),
    linear-gradient(125deg, #e9f5ff 0%, #f5fbff 54%, #fff2ce 100%);
  border-bottom: 1px solid #000;
}
:root[data-theme] body h1 { color: #0c5598; }
:root[data-theme] body #className {
  border: 1px solid #68b8e7;
  background: linear-gradient(100deg, #e2f5ff, #fff4cf);
  color: #104b7e;
}
:root[data-theme] body label { color: #214b70; }
:root[data-theme] body label svg { stroke: #1684c8; }
:root[data-theme] body select,
:root[data-theme] body input[type="password"] {
  color: #173f64;
  border-color: #bfd4e9;
  background-color: #f7fbff;
}
:root[data-theme] body select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230875c9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
}
:root[data-theme] body select:disabled { color: #8296a9; background-color: #eef4f8; }
:root[data-theme] body select:required:valid:not(:disabled) {
  color: #104b7e;
  border-color: #58b5e8;
  background-color: #eaf7ff;
  box-shadow: inset 3px 0 #0d83ce;
}
:root[data-theme] body input[type="file"] {
  color: #526d87;
  border-color: #76bce2;
  background: #fff9e8;
}
:root[data-theme] body input::file-selector-button {
  color: #fff;
  background: linear-gradient(105deg, #0875c9, #0758a5);
}
:root[data-theme] body button {
  color: #fff;
  border: 1px solid #0758a5;
  background: linear-gradient(105deg, #0875c9, #0758a5);
  box-shadow: 0 5px 14px #0758a533;
}
:root[data-theme] body button:disabled {
  color: #edf4fb;
  border-color: #9aafc2;
  background: #8da3b8;
  box-shadow: none;
}
:root[data-theme] body button:not(:disabled):hover {
  box-shadow: 0 8px 18px #0758a544;
}
:root[data-theme] body :is(select, input, button):focus-visible {
  outline-color: #79caff;
  border-color: #0875c9;
}
:root[data-theme] body .team-section,
:root[data-theme] body .payment-section {
  color: #244f73;
  border-color: #8bc8e9;
  background: #eff9ff;
}
:root[data-theme] body .team-section select { background-color: #fff; }
:root[data-theme] body .notes-section,
:root[data-theme] body .page-nav { border-color: #c8dced; }
:root[data-theme] body .notes-section h2,
:root[data-theme] body .payment-section h2 { color: #164b79; }
:root[data-theme] body .notes-help,
:root[data-theme] body .notes-status,
:root[data-theme] body .payment-section p { color: #56718a; }
:root[data-theme] body .page-nav a {
  color: #13558a;
  border-color: #b5d1e7;
  background: #f3faff;
}
:root[data-theme] body .page-nav a:hover {
  color: #103f69;
  border-color: #1684c8;
  background: #fff4d2;
}
:root[data-theme] body .preview { color: #75570b; background: #fff5d8; }
:root[data-theme] body .info { color: #075d9c; background: #e7f5ff; }
:root[data-theme] body .success { color: #21633b; background: #eaf7ee; }
:root[data-theme] body .error { color: #a12e35; background: #fff0f0; }
:root[data-theme] body .creator-credit { color: #466581; }
:root[data-theme] body .page-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 22px 22px;
  padding-top: 18px;
  border-top: 1px solid #c8dced;
}
:root[data-theme] body .page-nav a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  border: 1px solid #0758a5;
  border-bottom: 3px solid #39a9e8;
  border-radius: 10px;
  background: linear-gradient(145deg, #0875c9, #0758a5);
  box-shadow: 0 4px 10px #0758a526;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, filter .18s;
}
:root[data-theme] body .page-nav a:hover {
  border-color: #064a89;
  border-bottom-color: #79caff;
  background: linear-gradient(145deg, #1593df, #0862ad);
  box-shadow: 0 7px 15px #0758a540;
  color: #fff;
  transform: translateY(-2px);
}
:root[data-theme] body .page-nav a:focus-visible {
  outline: 3px solid #79caff;
  outline-offset: 3px;
}
@media (max-width: 390px) {
  :root[data-theme] body .page-nav { grid-template-columns: 1fr; }
  :root[data-theme] body .page-nav a { min-height: 48px; }
}

:root[data-theme] body .student-identity { border-color:#c8dced; background:#f7fbff; }
:root[data-theme] body .student-identity strong,
:root[data-theme] body .student-view-heading h2,
:root[data-theme] body .notes-list-panel h3,
:root[data-theme] body .notes-upload-panel h3 { color:#164b79; }
:root[data-theme] body .student-identity p,
:root[data-theme] body .student-view-heading p:not(.workspace-eyebrow) { color:#5e7183; }
:root[data-theme] body .workspace-eyebrow { color:#1684c8; }
:root[data-theme] body .workspace-card {
  border:1px solid #c8dced;
  border-bottom:3px solid #39a9e8;
  background:linear-gradient(145deg,#fff,#f3faff);
  color:#164b79;
}
:root[data-theme] body .workspace-card:hover { border-color:#1684c8; background:linear-gradient(145deg,#fff,#eaf7ff); }
:root[data-theme] body .workspace-card-icon { background:#e3f4ff; color:#0875c9; }
:root[data-theme] body .workspace-card-title,
:root[data-theme] body .note-item-details strong { color:#123f72; }
:root[data-theme] body .workspace-card-copy,
:root[data-theme] body .note-item-details span { color:#5e7183; }
:root[data-theme] body .workspace-card-link { color:#075d9c; }
:root[data-theme] body .back-button,
:root[data-theme] body .note-download { border:1px solid #b5d1e7; background:#f3faff; color:#13558a; box-shadow:none; }
:root[data-theme] body .back-button:hover,
:root[data-theme] body .note-download:hover { border-color:#1684c8; background:#e7f5ff; color:#103f69; box-shadow:none; }
:root[data-theme] body .notes-list-panel,
:root[data-theme] body .notes-upload-panel { border-color:#c8dced; background:#fff; }
:root[data-theme] body .notes-list-panel label,
:root[data-theme] body .notes-upload-panel label,
:root[data-theme] body .schedule-selectors label { color:#214b70; }
:root[data-theme] body .note-item { border-color:#dce9f3; background:#f8fbfe; }
:root[data-theme] body .schedule-selectors select { background-color:#fff; }
:root[data-theme] body .student-view .topic-schedule h3 { color:#164b79; }
:root[data-theme] body .student-view .topic-schedule p { color:#5e7183; }
:root[data-theme] body .page-nav.staff-nav { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:820px; margin-right:auto; margin-left:auto; }
:root[data-theme] body .notes-choice-cards { gap:24px; }
:root[data-theme] body .notes-choice-cards .workspace-card { min-height:150px; }

/* The historical branded page removed the generic presentation icon. */
:root[data-theme] body .presentation-icon { display: none; }
:root[data-theme] body .card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}
:root[data-theme] body .card-header::before {
  position: static;
  z-index: auto;
  display: block;
  width: 135px;
  height: 135px;
  margin: 0 auto 9px;
  border: 0;
  border-radius: 0;
  background: url("/assets/chips-logo.png") center / contain no-repeat;
  box-shadow: none;
}
html[data-local-preview="true"] #className { display: none; }
:root[data-theme] body input[type="file"] { background: #f7fbff; }
:root[data-theme] body input[type="file"]::file-selector-button { color: #fff; background: linear-gradient(105deg, #0875c9, #0758a5); }
:root[data-theme] body input[type="file"]:hover::file-selector-button { color: #fff; background: linear-gradient(105deg, #1593df, #0862ad); }

/* Light tactile finish: keep the original CHIPSS palette while adding texture. */
:root[data-theme] body {
  background-color: #f8fcff;
  background-image:
    radial-gradient(circle at 1px 1px, #0875c90a 1px, transparent 1.5px),
    radial-gradient(ellipse at 8% 4%, #dff1ff 0, transparent 34%),
    radial-gradient(ellipse at 96% 16%, #fff2ce 0, transparent 25%),
    linear-gradient(180deg, #f8fcff, #fff 42%, #f7fbff);
  background-size: 18px 18px, auto, auto, auto;
}
:root[data-theme] body .card {
  box-shadow: 0 4px 0 #e2eff8, 0 18px 42px #12558a14, 0 2px 8px #12558a0b;
}
:root[data-theme] body .card-header {
  box-shadow: inset 0 -3px #000;
}
