@font-face {
  font-family: Plex;
  src: url('../assets/fonts/plex-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url('../assets/fonts/plex-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #f5f3ee;
  --ink: #1a1a1a;
  --muted: #64635d;
  --border: #dfddd5;
  --surface: #fff;
  --black: #141414;
  --silver: #d2d2d2;
  --ok: #e8f2ea;
  --okink: #315740;
  --warn: #f8eee1;
  --warnink: #714723;
  --aside: 246px;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    15px/1.55 Plex,
    'Malgun Gothic',
    sans-serif;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #5b7263;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.23;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(28px, 3vw, 40px);
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 17px;
}
ul,
ol {
  padding-left: 1.35em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.caps {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
}
.skip {
  position: absolute;
  top: -100px;
  background: #fff;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 0;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke-width: 1.75;
}
button .icon {
  vertical-align: middle;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.3;
}
.button:hover {
  background: #efeee9;
}
.button.primary {
  background: #171717;
  border-color: #171717;
  color: #fff;
}
.button.primary:hover {
  background: #373737;
}
.button.silver {
  background: var(--silver);
  border-color: var(--silver);
  color: #171717;
}
.button.silver:hover {
  background: #ebebeb;
}
.button.ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.button.subtle {
  background: transparent;
  border-color: transparent;
  color: inherit;
}
.button.sm {
  min-height: 36px;
  font-size: 13px;
  padding: 6px 10px;
}
.button.icon-only {
  width: 42px;
  padding: 0;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--surface);
  min-width: 0;
  overflow-wrap: anywhere;
}
.card.stack {
  align-content: start;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 7px;
  padding: 3px 8px;
  background: #eeece6;
  font-size: 12px;
  font-weight: 700;
  color: #42413d;
  white-space: nowrap;
}
.badge.good {
  background: var(--ok);
  color: var(--okink);
}
.badge.warn {
  background: var(--warn);
  color: var(--warnink);
}
.note {
  background: var(--warn);
  color: var(--warnink);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 13px;
}
.empty {
  padding: 26px 15px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2px 0;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.link {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.safe-text {
  overflow-wrap: anywhere;
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--aside) minmax(0, 1fr);
}
.sidebar {
  background: var(--black);
  color: #e7e7e7;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
  padding: 23px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.brand {
  padding: 0 5px;
}
.brand strong {
  display: block;
  color: #fff;
  font-size: 32px;
  letter-spacing: -0.075em;
  line-height: 1.1;
}
.brand strong span {
  color: #bcbcbc;
}
.brand strong .brand-hash {
  color: inherit;
  font-size: 0.8em;
  letter-spacing: -0.075em;
  vertical-align: baseline;
}
.brand small {
  display: block;
  margin-top: 5px;
  color: #bcbcbc;
  font-size: 12px;
  white-space: nowrap;
}
.side-actions {
  display: grid;
  gap: 7px;
}
.side-actions .button {
  justify-content: flex-start;
}
.search-side {
  border-color: #414141;
  background: #232323;
  color: #dfdfdf;
}
.search-side:hover {
  background: #323232;
}
.nav {
  display: grid;
  gap: 3px;
}
.nav-label {
  color: #aaa8a3;
  font-size: 11px;
  letter-spacing: 0.07em;
  margin: 10px 9px 1px;
}
.nav a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 9px;
  gap: 10px;
  text-decoration: none;
  border-radius: 8px;
  color: #d5d5d5;
  font-size: 14px;
}
.nav a .icon {
  color: #aeaeae;
  width: 16px;
  height: 16px;
}
.nav a:hover,
.nav a[aria-current='page'] {
  background: #333;
  color: #fff;
}
.nav a[aria-current='page'] {
  font-weight: 700;
}
.nav a[aria-current='page'] .icon {
  color: #eee;
}
.account {
  display: grid;
  gap: 9px;
  margin-top: auto;
  border-top: 1px solid #444;
  padding-top: 13px;
}
.account-name {
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: none;
  border-radius: 50%;
  background: #444;
  color: #fff;
  font-weight: 700;
}
.account .muted {
  color: #bdbdbd;
}
.account .button {
  border-color: #515151;
  background: #252525;
  color: #efefef;
}
.account .button:hover {
  background: #414141;
}
.main {
  min-width: 0;
}
.topbar {
  min-height: 67px;
  padding: 10px clamp(16px, 3.2vw, 42px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar .badge {
  border: 1px solid #d8d4ca;
}
.mobile-toggle {
  display: none;
}
.overlay {
  display: none;
}
.page {
  max-width: 1440px;
  margin: auto;
  padding: 28px clamp(16px, 3.2vw, 42px) 45px;
  display: grid;
  gap: 19px;
}
.heading {
  display: grid;
  gap: 5px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 15px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #171717;
  color: #fff;
  min-height: 332px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 19px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 13px;
}
.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url('../assets/images/campus-hero-v2.webp') center/cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.4) 45%,
    rgba(0, 0, 0, 0.25) 100%
  );
}
.hero .caps {
  color: #c7c7c7;
}
.hero .week {
  font-size: clamp(45px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.075em;
  font-weight: 700;
}
.hero .week small {
  font-size: 19px;
  letter-spacing: 0;
  color: #c6c6c6;
}
.hero h2 {
  font-size: clamp(24px, 3vw, 35px);
}
.hero p {
  color: #ccc;
  max-width: 52ch;
}
.hero .button.ghost {
  border-color: #777;
}
.hero .button.ghost:hover {
  background: #3c3c3c;
}
.metric {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.metric small {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0;
}
.progress {
  height: 7px;
  border-radius: 6px;
  overflow: hidden;
  background: #eae8e3;
}
.progress > span {
  display: block;
  background: #595959;
  height: 100%;
  border-radius: 6px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.result-card {
  min-height: 135px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.result-card .badge {
  justify-self: start;
}
.result-card p {
  font-size: 13px;
  color: var(--muted);
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}
.login-art {
  padding: clamp(28px, 6vw, 80px);
  background: #141414;
  color: #fff;
  display: grid;
  align-content: space-between;
  gap: 40px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.login-art::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url('../assets/images/campus-login-v2.webp') 56% center/cover no-repeat;
}
.login-art::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.26) 80%);
}
.login-art .brand strong {
  font-size: clamp(58px, 8.5vw, 124px);
}
.login-art .brand small {
  font-size: clamp(15px, 2vw, 24px);
}
.login-art h1 {
  font-size: clamp(31px, 4.2vw, 58px);
  white-space: nowrap;
}
.login-art p {
  color: #c9c9c9;
  margin-top: 12px;
}
.login-main {
  padding: 30px;
  display: grid;
  place-items: center;
}
.login-box {
  width: min(100%, 470px);
  display: grid;
  gap: 17px;
}
.login-box h2 {
  font-size: 30px;
}
.login-box .card {
  padding: 24px;
}
.group-choices {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}
.group-choices label {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  padding: 11px;
  border-radius: 9px;
  background: #fff;
}
.group-choices label:has(input:checked) {
  border-color: #333;
  background: #efeee9;
}
.group-choices input {
  width: auto;
}
form {
  margin: 0;
}
.form {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}
.field > span {
  font-weight: 400;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d5d3ca;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  min-height: 42px;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
input[readonly] {
  background: #f5f3ee;
  color: #50504b;
}
input[type='checkbox'],
input[type='radio'] {
  width: auto;
  min-height: 0;
  accent-color: #333;
}
.check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tabs .button[aria-selected='true'],
.tabs .button.active {
  background: #202020;
  color: #fff;
  border-color: #202020;
}
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.table th,
.table td {
  padding: 11px 8px;
  border-bottom: 1px solid #e6e4dc;
  font-size: 14px;
}
.table th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table select {
  min-width: 100px;
}
.filters {
  display: flex;
  gap: 9px;
  align-items: end;
  flex-wrap: wrap;
}
.filters .field {
  flex: 1 1 150px;
}
.list-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eceae3;
  overflow-wrap: anywhere;
}
.list-entry:last-child {
  border: 0;
  padding-bottom: 0;
}
.list-entry:first-child {
  padding-top: 0;
}
.list-entry > div:first-child {
  min-width: 0;
}
.list-entry .actions {
  flex: none;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.calendar .day {
  min-height: 70px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px;
  font-size: 12px;
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}
.calendar .day .button {
  min-height: 26px;
  padding: 4px;
  font-size: 11px;
  overflow-wrap: anywhere;
  justify-content: start;
  text-align: left;
}
.calendar .dow {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.calendar .outside {
  opacity: 0.35;
}
dialog {
  width: min(620px, calc(100% - 26px));
  max-height: 88dvh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  color: var(--ink);
}
dialog::backdrop {
  background: #10101094;
}
#toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #171717;
  color: #fff;
  border-radius: 8px;
  padding: 11px 15px;
  z-index: 20;
  max-width: min(360px, 90vw);
  display: none;
}
#toast.show {
  display: block;
}
.form-error {
  color: #873c27;
  font-size: 13px;
  min-height: 0;
}
.form-error:empty {
  display: none;
}
.field > .password-input {
  position: relative;
  display: flex;
  font-weight: inherit;
}
.password-input input {
  padding-right: 65px;
}
.password-input button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: 0;
  border-radius: 5px;
  background: #f2f1ec;
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}
.password-input button:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}
.button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.login-box details summary {
  cursor: pointer;
}
.login-box details p {
  margin-top: 8px;
}
@media (max-width: 1050px) {
  :root {
    --aside: 210px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.28fr) minmax(220px, 1fr);
  }
  .brand small {
    font-size: 11px;
  }
  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(275px, 83vw);
    z-index: 5;
    display: none;
  }
  .sidebar.open {
    display: flex;
  }
  .overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #0007;
    z-index: 4;
    border: 0;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    min-height: 55px;
  }
  .page {
    padding-top: 18px;
  }
  .dashboard-grid,
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 25px;
    gap: 25px;
  }
  .login-art .brand strong {
    font-size: 54px;
  }
  .login-art h1 {
    font-size: clamp(22px, 10vw, 32px);
  }
  .login-main {
    padding: 22px 15px;
  }
  .hero {
    min-height: 270px;
  }
  .calendar {
    grid-template-columns: 1fr;
  }
  .calendar .dow,
  .calendar .day:not(.has-events) {
    display: none;
  }
  .calendar .day {
    min-height: 0;
  }
  .table th,
  .table td {
    padding: 8px 6px;
  }
}
@media (max-width: 450px) {
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 15px;
  }
  .topbar .button:not(.mobile-toggle) {
    font-size: 12px;
  }
  .topbar .badge {
    font-size: 11px;
  }
  .nav a,
  .button {
    min-height: 42px;
  }
  .page {
    gap: 14px;
  }
}

.group-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid #414141;
  border-radius: 10px;
  background: #202020;
}
.group-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #bdbdbd;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.group-tabs button:hover {
  background: #333;
  color: #fff;
}
.group-tabs button[aria-pressed='true'] {
  background: #efeee9;
  color: #171717;
}
.group-tabs button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
