:root {
  --paper: #f7f6f2;
  --white: #fffefa;
  --ink: #293a32;
  --muted: #7b827c;
  --green: #315b49;
  --green-light: #e9efe8;
  --line: #e3e5dc;
  --orange: #bd8250;
  --danger: #ab4c43;
  --radius: 16px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
h1 {
  font-size: clamp(32px, 3.4vw, 48px);
  margin-bottom: 12px;
}
h2 {
  font-size: 27px;
  margin-bottom: 16px;
}
h3 {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 6px;
  font-weight: 600;
}
p {
  color: var(--muted);
  margin-bottom: 16px;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}
.app-shell {
  padding-left: 240px;
}
.sidebar {
  width: 240px;
  background: #f0f1e9;
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 34px 23px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.brand strong {
  font-weight: 600;
}
.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--green);
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 8px;
}
.nav-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #939a8e;
  margin: 48px 12px 13px;
}
.sidebar nav .nav-label {
  margin-top: 34px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
  padding: 12px;
  border-radius: 9px;
  font-size: 12px;
  color: #6a756b;
}
.sidebar nav a.active,
.sidebar nav a:hover {
  background: #e2e8db;
  color: var(--green);
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 32px;
}
.sidebar-bottom > p {
  font:
    22px/1.4 Georgia,
    serif;
  color: #85907e;
  padding: 0 12px;
}
.sidebar-bottom > p em {
  color: var(--green);
}
.user-chip {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.user-chip small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.avatar {
  background: #e1e7d9;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar svg {
  width: 18px;
}
.signout {
  background: none;
  border: 0;
  padding: 12px 0 0;
  width: 100%;
  text-align: left;
  color: var(--muted);
  font-size: 11px;
}
.signout span {
  float: right;
}
main {
  min-width: 0;
}
.page {
  max-width: 1500px;
  padding: 0 48px 24px;
  margin: auto;
}
.topbar {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #92988f;
  gap: 12px;
}
.breadcrumb {
  color: #6d796d;
  letter-spacing: 0.01em;
  margin-left: 12px;
}
.today-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 12px;
  color: #6e796e;
  font-size: 10px;
  letter-spacing: 0;
  white-space: nowrap;
}
.today-chip svg {
  width: 15px;
  height: 15px;
}
.page-heading {
  padding-top: 45px;
  margin-bottom: 32px;
}
.page-heading p {
  margin-bottom: 0;
  font-size: 13px;
}
.heading-row {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.arabic {
  font-size: 0.6em;
  color: #9aab95;
  letter-spacing: 0;
  margin-left: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  padding: 11px 18px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  min-height: 43px;
}
.button:hover {
  filter: brightness(0.95);
}
.button span {
  margin-left: auto;
  font-size: 16px;
}
.button.secondary {
  background: transparent;
  border-color: #d6ddd2;
  color: var(--green);
}
.button.light {
  background: #f3f2e6;
  color: var(--green);
  border-color: #f3f2e6;
  min-width: 180px;
}
.button.small {
  padding: 7px 12px;
  min-height: 34px;
  font-size: 11px;
}
.button.full {
  width: 100%;
}
.text-link,
.text-button {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}
.text-link:hover,
.text-button:hover {
  text-decoration: underline;
}
.text-button {
  background: transparent;
  border: 0;
  padding: 6px 0;
}
.danger {
  color: var(--danger);
}
.icon-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: #7b8578;
}
.delete-button {
  border: 0;
  color: #a6aaa0;
}
.delete-button:hover {
  color: var(--danger);
  background: #faeee7;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px 24px;
  position: relative;
  background: var(--white);
}
.stat > span:first-child {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.stat strong {
  display: block;
  font:
    37px/1.2 Georgia,
    serif;
  margin-top: 10px;
}
.stat svg,
.stat-symbol {
  position: absolute;
  right: 22px;
  bottom: 25px;
  color: #a8b69e;
}
.stat-symbol {
  font-size: 28px;
  line-height: 1;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 25px;
}
.academy-card {
  background: #315a48;
  border-radius: var(--radius);
  padding: 34px;
  position: relative;
  overflow: hidden;
  min-height: 350px;
  color: #f4f1dc;
}
.academy-card .eyebrow {
  color: #b1c6ac;
  position: relative;
  z-index: 1;
}
.academy-card h2 {
  font-size: 42px;
  position: relative;
}
.academy-card h2 span {
  font-size: 25px;
  color: #afc2a7;
  display: block;
  margin-top: 3px;
}
.academy-card p {
  color: #c7d2bd;
  font-size: 12px;
  position: relative;
}
.academy-card .button {
  position: relative;
  z-index: 1;
}
.academy-art {
  position: absolute;
  right: -35px;
  top: 28px;
  width: 250px;
  height: 250px;
  border: 1px solid #72927b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transform: rotate(-15deg);
}
.academy-art:before {
  content: "";
  position: absolute;
  border: 1px solid #88a388;
  inset: 22px;
  border-radius: 50%;
}
.academy-art svg {
  width: 115px;
  height: 115px;
  stroke-width: 0.7;
}
.card-bottom {
  font-size: 8px;
  letter-spacing: 0.15em;
  border-top: 1px solid #52755e;
  padding-top: 18px;
  margin-top: 24px;
  color: #b6c7a8;
  position: relative;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}
.section-heading .eyebrow {
  margin-bottom: 6px;
}
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font:
    11px/1 "Segoe UI",
    sans-serif;
  vertical-align: middle;
  color: var(--muted);
  margin-left: 5px;
  padding: 0 5px;
}
.today-panel {
  display: flex;
  flex-direction: column;
}
.today-panel > .text-link {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
}
.class-row {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.class-time {
  font-size: 12px;
  color: var(--green);
  border-right: 2px solid #abc0a3;
  padding-right: 16px;
  min-width: 58px;
  font-weight: 600;
}
.class-time small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.class-row h3 {
  font-size: 13px;
}
.class-row p {
  font-size: 11px;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.small-empty {
  text-align: center;
  flex: 1;
  padding: 28px 12px;
}
.small-empty > span {
  font-size: 32px;
  color: #9da98d;
}
.small-empty h3 {
  font:
    21px Georgia,
    serif;
  margin-top: 12px;
}
.small-empty p {
  font-size: 12px;
  max-width: 260px;
  margin: 12px auto 20px;
}
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 25px;
}
.quick-links > a {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.quick-links > a:hover {
  background: var(--green-light);
}
.quick-links > a > span:last-child {
  margin-left: auto;
  color: var(--green);
}
.quick-links h3 {
  font-size: 12px;
}
.quick-links p {
  margin: 0;
  font-size: 11px;
}
.quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaede1;
  border-radius: 9px;
  width: 42px;
  height: 42px;
  color: var(--green);
  font-size: 25px;
  flex-shrink: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  color: #909887;
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 18px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #687363;
  margin-bottom: 14px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #dce1d5;
  border-radius: 7px;
  background: #fbfcf7;
  color: var(--ink);
  padding: 10px 12px;
  margin-top: 6px;
  font-size: 12px;
  min-width: 0;
  min-height: 42px;
}
textarea {
  resize: vertical;
  min-height: 70px;
}
input::placeholder,
textarea::placeholder {
  color: #a0a69a;
  font-weight: 400;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #95b18a;
  outline-offset: 1px;
}
input[type="file"] {
  padding: 8px;
}
input[type="file"]::file-selector-button {
  border: 0;
  background: var(--green-light);
  color: var(--green);
  padding: 6px 10px;
  border-radius: 4px;
  margin-right: 10px;
  font: inherit;
}
input:disabled,
select:disabled {
  opacity: 0.65;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.optional {
  font-weight: 400;
  color: #a5aa9c;
  font-size: 10px;
  margin-left: 5px;
}
.semester-picker {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
}
.semester-picker label {
  margin: 0;
}
.semester-picker select {
  width: auto;
  min-width: 160px;
  max-width: 300px;
  margin: 0;
}
.academy-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 25px;
}
.calendar-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calendar-weekdays,
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.calendar-weekdays {
  margin: 25px 0 12px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}
.calendar {
  gap: 5px;
}
.calendar-day {
  min-height: 60px;
  border-radius: 8px;
  padding: 8px 3px;
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 13px;
  border: 1px solid transparent;
  gap: 5px;
}
.calendar-day:hover {
  background: #f0f3e9;
}
.calendar-day.selected-day {
  background: var(--green);
  color: white;
}
.calendar-day.is-today:not(.selected-day) {
  border-color: #a2b696;
  color: var(--green);
  font-weight: 700;
}
.muted-day {
  color: #b3b9ad;
}
.day-dots {
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.recording-dot {
  background: #b8cfa5;
  color: #315b49;
  border-radius: 4px;
  min-width: 15px;
  font-size: 9px;
  line-height: 15px;
  padding: 0 3px;
}
.schedule-dot {
  background: #c29a65;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}
.calendar-legend {
  display: flex;
  gap: 16px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.calendar-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.recording-legend {
  background: #a3c58b;
}
.schedule-legend {
  background: #c29a65;
}
.add-recording h2 {
  margin-bottom: 6px;
}
.add-recording > p {
  font-size: 11px;
  margin-bottom: 20px;
}
.recordings-section {
  margin-top: 34px;
}
.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search-form input {
  margin: 0;
  min-height: 34px;
  width: 220px;
}
.recording-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 17px;
}
.recording-icon {
  background: #edf0e4;
  padding: 12px;
  border-radius: 9px;
  color: #7e936d;
  display: flex;
}
.recording-body {
  flex: 1;
  min-width: 0;
}
.recording-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 10px;
}
.course-tag {
  font-size: 9px;
  background: #e9efdf;
  color: #67805a;
  border-radius: 5px;
  padding: 4px 7px;
  display: inline-block;
  font-weight: 600;
}
.course-tag[data-color="#9b6a46"] {
  color: #9b6a46;
  background: #f5e9df;
}
.course-tag[data-color="#6576a0"] {
  color: #6576a0;
  background: #e9edf6;
}
.course-tag[data-color="#9a6481"] {
  color: #9a6481;
  background: #f6e9f0;
}
.course-tag[data-color="#897b43"] {
  color: #897b43;
  background: #f3efdf;
}
.recording-body h3 {
  font-size: 17px;
}
.notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  margin: 10px 0;
}
.recording-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.watched-label {
  color: #719161;
}
.recording-card.watched .recording-icon {
  opacity: 0.6;
}
.edit-details {
  margin-top: 13px;
  font-size: 11px;
}
.edit-details summary {
  color: var(--muted);
  cursor: pointer;
  min-height: 30px;
  padding: 4px 0;
}
.edit-details[open] {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.edit-details form {
  margin-top: 12px;
}
.empty-state {
  padding: 60px 25px;
  border: 1px dashed #d1dac8;
  border-radius: var(--radius);
  text-align: center;
  background: #f1f3e9;
}
.empty-state > svg {
  width: 35px;
  height: 35px;
  color: #9cac90;
  margin-bottom: 16px;
}
.empty-state h3 {
  font:
    25px Georgia,
    serif;
  margin-bottom: 12px;
}
.empty-state p {
  max-width: 400px;
  margin: 0 auto 22px;
  font-size: 12px;
}
.empty-state.compact {
  padding: 32px;
}
.empty-state.compact p {
  margin-bottom: 0;
}
.daily-schedule {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.daily-schedule span {
  font-size: 10px;
  padding: 7px 12px;
  border-radius: 30px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.daily-schedule strong {
  color: var(--green);
  margin-right: 8px;
}
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 20px;
}
.setup-grid .panel {
  padding: 22px;
}
.setup-grid h2 {
  font-size: 24px;
}
.section-block {
  margin-top: 35px;
}
.schedule-list {
  display: grid;
  gap: 10px;
}
.schedule-card {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 20px 25px;
}
.schedule-day {
  width: 150px;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
}
.schedule-day strong {
  display: block;
  color: var(--green);
  font-size: 16px;
  margin-top: 3px;
}
.schedule-day strong span {
  font-weight: 400;
  font-size: 13px;
}
.schedule-body {
  flex: 1;
  min-width: 0;
}
.schedule-body p {
  font-size: 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.management-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.management-grid h3 {
  margin-top: 12px;
}
.management-grid > .panel > form {
  margin-top: 12px;
}
.semester-card {
  background: #f0f3e9;
}
.upload-intro {
  display: flex;
  gap: 20px;
  align-items: center;
}
.upload-intro h2 {
  margin-bottom: 6px;
}
.upload-intro p {
  font-size: 12px;
  margin-bottom: 5px;
}
.upload-icon {
  background: #edf0e4;
  padding: 23px;
  border-radius: 12px;
  color: #789366;
}
.upload-icon svg {
  width: 32px;
  height: 32px;
}
.upload-fields {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  margin-top: 24px;
}
.progress-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
}
.progress-heading strong {
  overflow-wrap: anywhere;
}
progress {
  width: 100%;
  height: 12px;
  margin: 15px 0 5px;
  accent-color: var(--green);
}
progress::-webkit-progress-bar {
  background: #e8eddf;
  border-radius: 6px;
}
progress::-webkit-progress-value {
  background: var(--green);
  border-radius: 6px;
}
.upload-progress p {
  font-size: 11px;
}
.button-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.resume-notice {
  font-size: 11px;
  padding: 14px;
  background: var(--green-light);
  border-radius: 8px;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.book-grid > .empty-state {
  grid-column: 1/-1;
}
.book-cover {
  height: 150px;
  background: #e9eddf;
  margin-bottom: 20px;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #829a73;
  gap: 15px;
}
.book-cover svg {
  width: 52px;
  height: 52px;
  stroke-width: 1;
}
.book-cover span {
  letter-spacing: 0.2em;
  font-size: 9px;
}
.book-card h3 {
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.book-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.book-card > form {
  margin-top: 10px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: 24px;
  align-items: start;
}
.person-row {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.person-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.person-row:last-child {
  padding-bottom: 0;
}
.person-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.person-info h3 {
  font-size: 13px;
}
.person-info p {
  margin: 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.role-badge {
  font-size: 8px;
  margin-left: 6px;
  border-radius: 4px;
  color: var(--green);
  background: #e8eddc;
  padding: 3px 5px;
}
.person-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0 0 48px;
}
.person-actions .small {
  font-size: 10px;
}
.fine-print {
  font-size: 10px;
  line-height: 1.7;
  color: #919a88;
  margin-top: 18px;
}
.generated-link {
  margin-bottom: 24px;
  border-color: #acc39e;
}
.generated-link p {
  font-size: 12px;
}
.alert {
  font-size: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 20px;
  overflow-wrap: anywhere;
}
.alert.success {
  background: #e6eddd;
  color: #496742;
  border: 1px solid #d3dec7;
}
.alert.error {
  background: #f9e9e2;
  color: #a3493e;
  border: 1px solid #eac9ba;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #923f37;
  color: white;
  z-index: 100;
  padding: 15px 22px;
  border-radius: 10px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 8px 30px #0002;
  font-size: 12px;
}
.auth-main {
  max-width: 1100px;
  margin: 0 auto;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 70px 45px;
}
.auth-page > .alert {
  grid-column: 1/-1;
  margin: 0;
}
.auth-intro .brand {
  margin-bottom: 70px;
}
.auth-intro h1 {
  font-size: 55px;
  line-height: 1.12;
}
.auth-intro p {
  font-size: 13px;
  line-height: 1.9;
}
.auth-illustration {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #9aa68e;
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 25px;
  font:
    italic 16px Georgia,
    serif;
}
.auth-illustration svg {
  width: 28px;
  height: 28px;
}
.auth-card {
  background: var(--white);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 15px 60px #24352204;
}
.auth-card h2 {
  font-size: 35px;
  margin-bottom: 10px;
}
.auth-card > p {
  font-size: 12px;
}
.auth-card form {
  margin-top: 27px;
}
.auth-card label {
  margin-bottom: 20px;
}
.auth-card .fine-print {
  margin-bottom: 0;
  font-size: 10px;
}
.password-card {
  grid-column: 1/-1;
  max-width: 460px;
  margin: auto;
  width: 100%;
}
.password-card .brand {
  margin-bottom: 35px;
}
.password-card h1 {
  font-size: 35px;
}
.password-card > .text-link {
  display: block;
  margin-top: 22px;
}
.mobile-bar {
  display: none;
}
[x-cloak],
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid #779d66;
  outline-offset: 4px;
}
.htmx-request button[type="submit"] {
  opacity: 0.65;
  pointer-events: none;
}
@media (min-width: 1500px) {
  .page {
    padding-left: 70px;
    padding-right: 70px;
  }
}
@media (max-width: 1200px) {
  .page {
    padding-left: 28px;
    padding-right: 28px;
  }
  .app-shell {
    padding-left: 210px;
  }
  .sidebar {
    width: 210px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .setup-grid {
    grid-template-columns: 1fr 1fr;
  }
  .setup-grid > .panel:last-child {
    grid-column: 1/-1;
  }
  .management-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .academy-grid {
    gap: 18px;
  }
  .panel {
    padding: 21px;
  }
  .academy-card {
    padding: 28px;
  }
  .calendar-day {
    min-height: 54px;
  }
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .academy-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .academy-art {
    right: 20px;
  }
  .academy-card {
    min-height: 330px;
  }
  .calendar-day {
    min-height: 66px;
  }
  .today-panel .small-empty {
    padding: 20px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .auth-page {
    gap: 35px;
  }
  .auth-intro h1 {
    font-size: 42px;
  }
  .auth-card {
    padding: 28px;
  }
  .quick-links {
    gap: 15px;
  }
  .quick-links > a {
    padding: 17px;
  }
  .quick-icon {
    display: none;
  }
  .stat {
    padding: 18px;
  }
  .stat svg,
  .stat-symbol {
    right: 15px;
  }
  .heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  .app-shell {
    padding-left: 0;
  }
  .mobile-bar {
    position: sticky;
    top: 0;
    background: #f0f1e9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
    border-bottom: 1px solid var(--line);
    padding: 0 20px;
    z-index: 30;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    letter-spacing: -0.04em;
  }
  .mobile-brand .brand-mark {
    width: 31px;
    height: 31px;
  }
  .sidebar {
    inset: 65px 0 0 0;
    width: 100%;
    display: none;
    padding: 22px;
    overflow: auto;
  }
  .sidebar.open {
    display: flex;
  }
  .sidebar > .brand {
    display: none;
  }
  .sidebar > .nav-label {
    margin-top: 8px;
  }
  .sidebar nav a {
    font-size: 14px;
    padding: 15px;
  }
  .sidebar-bottom > p {
    display: none;
  }
  .sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
  }
  .page {
    padding: 0 20px 22px;
  }
  .topbar {
    height: 65px;
    font-size: 8px;
  }
  .topbar > span:first-child {
    font-size: 0;
  }
  .breadcrumb {
    font-size: 10px;
    margin-left: 0;
  }
  .today-chip {
    font-size: 9px;
    padding: 5px 9px;
  }
  .page-heading {
    padding-top: 28px;
    margin-bottom: 25px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  h1 {
    font-size: 33px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .stat-grid {
    gap: 8px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 13px 10px;
    border-radius: 10px;
  }
  .stat > span:first-child {
    font-size: 9px;
    line-height: 1.4;
    min-height: 25px;
  }
  .stat strong {
    font-size: 28px;
    margin-top: 6px;
  }
  .stat svg,
  .stat-symbol {
    display: none;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .academy-card {
    padding: 27px;
    min-height: 320px;
  }
  .academy-art {
    right: -40px;
    top: 42px;
  }
  .academy-card h2 {
    font-size: 38px;
  }
  .panel {
    padding: 20px;
    border-radius: 12px;
  }
  .quick-links {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }
  .quick-links > a {
    padding: 20px;
  }
  .quick-icon {
    display: flex;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .calendar {
    gap: 3px;
  }
  .calendar-day {
    min-height: 54px;
    font-size: 12px;
  }
  .calendar-navigation {
    gap: 5px;
  }
  .calendar-navigation .icon-button {
    width: 28px;
    height: 28px;
  }
  .calendar-weekdays {
    font-size: 9px;
  }
  .calendar-legend {
    font-size: 8px;
    gap: 12px;
  }
  .semester-picker {
    gap: 8px;
  }
  .semester-picker select {
    flex: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .search-form {
    width: 100%;
    flex-wrap: wrap;
  }
  .search-form input {
    flex: 1;
    width: 100px;
  }
  .recording-card {
    padding: 17px;
    gap: 11px;
  }
  .recording-icon {
    display: none;
  }
  .recording-body h3 {
    font-size: 15px;
  }
  .recording-meta {
    gap: 8px;
  }
  .recording-actions {
    gap: 18px;
  }
  .setup-grid,
  .management-grid,
  .book-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .setup-grid > .panel:last-child {
    grid-column: auto;
  }
  .schedule-card {
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    padding: 18px;
  }
  .schedule-day {
    width: 100%;
    padding-right: 40px;
  }
  .schedule-card > form {
    position: absolute;
    right: 12px;
    top: 12px;
  }
  .schedule-body {
    width: 100%;
    flex: 1 1 100%;
  }
  .upload-intro {
    gap: 12px;
    align-items: flex-start;
  }
  .upload-icon {
    padding: 14px;
  }
  .upload-icon svg {
    width: 24px;
    height: 24px;
  }
  .upload-intro h2 {
    font-size: 24px;
  }
  .upload-intro p {
    font-size: 11px;
  }
  .upload-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .button-row {
    flex-wrap: wrap;
  }
  .book-cover {
    height: 135px;
  }
  .book-card {
    display: block;
  }
  .person-actions {
    gap: 12px;
    margin-left: 0;
  }
  .people-panel {
    padding: 20px 17px;
  }
  .resume-notice {
    flex-direction: column;
    gap: 5px;
  }
  .auth-page {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    gap: 30px;
    min-height: 100vh;
    align-content: center;
  }
  .auth-intro .brand {
    margin-bottom: 30px;
  }
  .auth-intro .eyebrow {
    margin-bottom: 8px;
  }
  .auth-intro h1 {
    font-size: 39px;
  }
  .auth-intro p,
  .auth-illustration {
    display: none;
  }
  .auth-card {
    padding: 25px;
  }
  .auth-card h2 {
    font-size: 30px;
  }
  .auth-card .eyebrow {
    font-size: 9px;
  }
  .auth-card form {
    margin-top: 22px;
  }
  .auth-card label {
    margin-bottom: 17px;
  }
  .auth-card .fine-print {
    margin-top: 15px;
  }
  .auth-page > .alert {
    order: -1;
  }
  .auth-intro h1 {
    margin-bottom: 0;
  }
  footer {
    font-size: 8px;
  }
  .form-row {
    gap: 10px;
  }
  .toast {
    left: 20px;
    right: 20px;
    transform: none;
    max-width: none;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  label {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button,
  .quick-links > a,
  .calendar-day {
    transition:
      background 0.15s,
      filter 0.15s;
  }
  .htmx-added {
    animation: appear 0.15s ease;
  }
  @keyframes appear {
    from {
      opacity: 0.5;
    }
    to {
      opacity: 1;
    }
  }
}
