/*
 * INFOtype — UI stylesheet
 * A quiet, Apple-inspired monochrome interface.
 * CSS only: no authentication, integrations, storage, or app logic is included.
 * Suggested main layout: .app-shell > .sidebar + .main-content
 */

/* 1. Design tokens --------------------------------------------------------- */
:root {
  color-scheme: light;
  --it-bg: #f5f5f7;
  --it-surface: #ffffff;
  --it-surface-soft: #fafafa;
  --it-surface-muted: #f0f0f2;
  --it-ink: #171719;
  --it-ink-2: #424247;
  --it-muted: #77777f;
  --it-faint: #a1a1a8;
  --it-line: rgba(25, 25, 30, 0.09);
  --it-line-strong: rgba(25, 25, 30, 0.15);
  --it-shadow-sm: 0 2px 8px rgba(20, 20, 25, 0.035);
  --it-shadow-md: 0 12px 36px rgba(20, 20, 25, 0.07);
  --it-shadow-lg: 0 24px 70px rgba(20, 20, 25, 0.12);
  --it-radius-xs: 8px;
  --it-radius-sm: 12px;
  --it-radius-md: 17px;
  --it-radius-lg: 22px;
  --it-radius-xl: 28px;
  --it-sidebar-width: 248px;
  --it-content-max: 1600px;
  --it-space-1: 4px;
  --it-space-2: 8px;
  --it-space-3: 12px;
  --it-space-4: 16px;
  --it-space-5: 20px;
  --it-space-6: 24px;
  --it-space-8: 32px;
  --it-space-10: 40px;
  --it-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --it-duration: 180ms;
  --it-focus: 0 0 0 4px rgba(30, 30, 35, 0.11);
}

/* 2. Foundation ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--it-bg);
  color: var(--it-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.018em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

::selection {
  color: #fff;
  background: #242428;
}

:focus-visible {
  outline: none;
  box-shadow: var(--it-focus);
}

[hidden] {
  display: none !important;
}

/* 3. Typography and shared utilities -------------------------------------- */
.it-eyebrow,
.eyebrow {
  color: var(--it-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.muted,
.text-muted {
  color: var(--it-muted);
}

.faint {
  color: var(--it-faint);
}

.text-sm {
  font-size: 12px;
}

.text-xs {
  font-size: 11px;
}

.nowrap {
  white-space: nowrap;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.divider {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--it-line);
}

/* 4. App shell and navigation ---------------------------------------------- */
.app-shell {
  display: grid;
  grid-template-columns: var(--it-sidebar-width) minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: var(--it-sidebar-width);
  height: 100dvh;
  padding: 25px 16px 18px;
  overflow: auto;
  background: rgba(250, 250, 251, 0.86);
  border-right: 1px solid var(--it-line);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin: 1px 8px 35px;
  color: var(--it-ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  place-items: center;
  color: #19191c;
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}
.brand-mark svg { display:block; width:100%; height:100%; }

.brand-name {
  display: block;
  font-size: 18px;
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.brand-caption {
  display: block;
  margin-top: 4px;
  color: var(--it-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.nav-section {
  margin: 0 0 22px;
}

.nav-heading {
  padding: 0 12px;
  margin: 0 0 8px;
  color: #99999f;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 3px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 9px 12px;
  color: #626269;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 570;
  text-decoration: none;
  transition: color var(--it-duration) var(--it-ease),
    background var(--it-duration) var(--it-ease),
    border-color var(--it-duration) var(--it-ease),
    transform var(--it-duration) var(--it-ease);
}

.nav-link:hover {
  color: var(--it-ink);
  background: rgba(0, 0, 0, 0.045);
}

.nav-link:active {
  transform: scale(0.985);
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: #171719;
  background: #e9e9ec;
  border-color: rgba(30, 30, 35, 0.035);
  font-weight: 700;
}

.nav-icon {
  display: inline-grid;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  place-items: center;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
}

.nav-count {
  min-width: 21px;
  padding: 2px 6px;
  margin-left: auto;
  color: #686870;
  background: #e9e9ed;
  border-radius: 7px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: center;
}

.sidebar-spacer {
  flex: 1 0 18px;
}

.sidebar-bottom {
  padding-top: 14px;
  border-top: 1px solid var(--it-line);
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 8px;
  border-radius: 12px;
  transition: background var(--it-duration) var(--it-ease);
}

.profile-chip:hover {
  background: rgba(0, 0, 0, 0.04);
}

.avatar {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  place-items: center;
  color: #fff;
  background: #66666e;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  min-width: 0;
  flex: 1;
}

.profile-name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-meta {
  color: var(--it-muted);
  font-size: 10px;
}

/* 5. Main workspace, top bar, page heading ------------------------------- */
.main-content {
  min-width: 0;
  padding: 0 clamp(20px, 3vw, 48px) 50px;
}

.content-inner {
  width: 100%;
  max-width: var(--it-content-max);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--it-line);
}

.topbar-left,
.topbar-actions,
.page-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--it-muted);
  font-size: 12px;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--it-ink);
}

.breadcrumb-separator {
  color: #b7b7bd;
}

.icon-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: #5b5b63;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 17px;
  transition: color var(--it-duration) var(--it-ease),
    background var(--it-duration) var(--it-ease),
    border-color var(--it-duration) var(--it-ease);
}

.icon-button:hover {
  color: var(--it-ink);
  background: #ebebee;
  border-color: var(--it-line);
}

.notification-dot {
  position: relative;
}

.notification-dot::after {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  content: "";
  background: #252529;
  border: 1.5px solid var(--it-bg);
  border-radius: 50%;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
}

.page-heading-copy {
  min-width: 0;
}

.page-description {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--it-muted);
  font-size: 13px;
}

.date-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #62626a;
  font-size: 12px;
  font-weight: 600;
}

/* 6. Buttons and badges ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 10px 16px;
  color: #27272b;
  background: #fff;
  border: 1px solid var(--it-line-strong);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(20, 20, 25, 0.025);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--it-duration) var(--it-ease),
    background var(--it-duration) var(--it-ease),
    color var(--it-duration) var(--it-ease),
    border-color var(--it-duration) var(--it-ease),
    box-shadow var(--it-duration) var(--it-ease);
}

.btn:hover {
  background: #f4f4f5;
  border-color: rgba(25, 25, 30, 0.23);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: #1b1b1f;
  border-color: #1b1b1f;
  box-shadow: 0 3px 8px rgba(15, 15, 20, 0.12);
}

.btn-primary:hover {
  color: #fff;
  background: #36363b;
  border-color: #36363b;
}

.btn-quiet {
  color: #5e5e66;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn-quiet:hover {
  color: var(--it-ink);
  background: #eeeeF1;
  border-color: transparent;
}

.btn-danger {
  color: #8b2424;
  background: #fff;
  border-color: rgba(139, 36, 36, 0.18);
}

.btn-danger:hover {
  background: #fff5f5;
  border-color: rgba(139, 36, 36, 0.3);
}

.btn-sm {
  min-height: 33px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 11px;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 23px;
  padding: 4px 8px;
  color: #5e5e66;
  background: #efeff1;
  border: 1px solid rgba(30, 30, 35, 0.035);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.1;
  white-space: nowrap;
}

.badge-dark {
  color: #fff;
  background: #29292d;
  border-color: #29292d;
}

.badge-outline {
  color: #5e5e66;
  background: transparent;
  border-color: var(--it-line-strong);
}

.badge-success {
  color: #315d48;
  background: #eaf3ed;
  border-color: #e0eee4;
}

.badge-warning {
  color: #745a2c;
  background: #f7f1e5;
  border-color: #f0e7d5;
}

.badge-overdue {
  color: #823c3c;
  background: #f7ebeb;
  border-color: #f0dfdf;
}

/* 7. Cards, panels, and layouts ------------------------------------------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

.panel,
.stat-card,
.project-card,
.file-card,
.assignment-card {
  min-width: 0;
  background: var(--it-surface);
  border: 1px solid var(--it-line);
  border-radius: var(--it-radius-lg);
  box-shadow: var(--it-shadow-sm);
}

.panel {
  padding: 22px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-heading-group {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.panel-subtitle {
  margin: 0;
  color: var(--it-muted);
  font-size: 11px;
}

.panel-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.section-stack {
  display: grid;
  gap: 18px;
}

/* 8. Dashboard overview and KPI cards ------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  position: relative;
  padding: 19px 20px;
  overflow: hidden;
  transition: transform var(--it-duration) var(--it-ease),
    box-shadow var(--it-duration) var(--it-ease),
    border-color var(--it-duration) var(--it-ease);
}

.stat-card:hover {
  border-color: rgba(25, 25, 30, 0.14);
  box-shadow: var(--it-shadow-md);
  transform: translateY(-2px);
}

.stat-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--it-muted);
  font-size: 11px;
  font-weight: 650;
}

.stat-icon {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: #414147;
  background: #f0f0f2;
  border-radius: 11px;
  font-size: 16px;
}

.stat-value {
  margin-top: 17px;
  font-size: clamp(25px, 2.2vw, 34px);
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 1;
}

.stat-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: var(--it-muted);
  font-size: 10px;
}

.stat-foot strong {
  color: #343439;
  font-weight: 750;
}

.stat-card-featured {
  color: #fff;
  background: #202024;
  border-color: #202024;
}

.stat-card-featured .stat-topline,
.stat-card-featured .stat-foot {
  color: #bcbcc4;
}

.stat-card-featured .stat-value,
.stat-card-featured .stat-foot strong {
  color: #fff;
}

.stat-card-featured .stat-icon {
  color: #fff;
  background: #3a3a40;
}

/* 9. Timetable and daily schedule ----------------------------------------- */
.schedule-list {
  display: grid;
  gap: 9px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 12px 13px;
  background: #fafafa;
  border: 1px solid rgba(20, 20, 25, 0.045);
  border-radius: 13px;
  transition: background var(--it-duration) var(--it-ease),
    border-color var(--it-duration) var(--it-ease);
}

.schedule-item:hover {
  background: #f5f5f6;
  border-color: var(--it-line-strong);
}

.schedule-time {
  color: #777780;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.4;
}

.schedule-detail {
  min-width: 0;
}

.schedule-name {
  overflow: hidden;
  color: #26262b;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-meta {
  margin-top: 3px;
  color: var(--it-muted);
  font-size: 10px;
}

.schedule-item.is-current {
  background: #f1f1f3;
  border-color: #d9d9df;
  box-shadow: inset 3px 0 #26262b;
}

.schedule-item.is-complete .schedule-name {
  color: #92929a;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.timetable-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--it-line);
  border-radius: 15px;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #d0d0d5 transparent;
}

.timetable {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 11px;
}

.timetable th,
.timetable td {
  padding: 12px 10px;
  border-right: 1px solid var(--it-line);
  border-bottom: 1px solid var(--it-line);
  text-align: center;
  vertical-align: middle;
}

.timetable th {
  color: #707078;
  background: #f8f8f9;
  font-size: 10px;
  font-weight: 750;
}

.timetable th:first-child,
.timetable td:first-child {
  width: 70px;
  color: #777780;
  background: #fafafa;
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 650;
}

.timetable tr:last-child td {
  border-bottom: 0;
}

.timetable th:last-child,
.timetable td:last-child {
  border-right: 0;
}

.timetable-cell {
  display: block;
  min-height: 40px;
  padding: 7px 5px;
  color: #414147;
  background: #f0f0f2;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 650;
}

.timetable-cell.is-break {
  color: #909098;
  background: transparent;
  border-style: dashed;
  border-color: #dedee2;
}

.timetable-cell.is-selected {
  color: #fff;
  background: #26262b;
}

/* 10. Tasks, deadlines, and focus timers ---------------------------------- */
.task-list {
  display: grid;
  gap: 2px;
}

.task-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 13px 3px;
  border-bottom: 1px solid var(--it-line);
}

.task-row:last-child {
  border-bottom: 0;
}

.task-check {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  place-items: center;
  background: #fff;
  border: 1.5px solid #c9c9d0;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--it-duration) var(--it-ease);
}

.task-check::after {
  width: 5px;
  height: 9px;
  content: "";
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.task-check:checked {
  background: #28282d;
  border-color: #28282d;
}

.task-check:checked::after {
  opacity: 1;
}

.task-content {
  min-width: 0;
}

.task-title {
  color: #29292e;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.45;
}

.task-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  color: var(--it-muted);
  font-size: 10px;
}

.task-row:has(.task-check:checked) .task-title {
  color: #96969e;
  text-decoration: line-through;
}

.deadline-date {
  min-width: 48px;
  padding-top: 2px;
  color: #696971;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.focus-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 25px 20px;
  background: linear-gradient(145deg, #f7f7f8, #ededf0);
  border: 1px solid var(--it-line);
  border-radius: 18px;
  text-align: center;
}

.focus-ring {
  display: grid;
  width: 142px;
  aspect-ratio: 1;
  place-items: center;
  padding: 10px;
  background: conic-gradient(#26262b var(--progress, 65%), #dcdce1 0);
  border-radius: 50%;
}

.focus-ring-inner {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  background: #f4f4f6;
  border-radius: 50%;
}

.focus-time {
  font-size: 31px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 1;
}

.focus-label {
  margin-top: 7px;
  color: var(--it-muted);
  font-size: 10px;
}

/* 11. Projects and progress ----------------------------------------------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 19px;
  transition: transform var(--it-duration) var(--it-ease),
    box-shadow var(--it-duration) var(--it-ease),
    border-color var(--it-duration) var(--it-ease);
}

.project-card:hover {
  border-color: rgba(25, 25, 30, 0.17);
  box-shadow: var(--it-shadow-md);
  transform: translateY(-3px);
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}

.project-symbol {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: #38383e;
  background: #efeff1;
  border-radius: 13px;
  font-size: 19px;
}

.project-title {
  margin: 0;
  font-size: 15px;
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.project-description {
  display: -webkit-box;
  min-height: 38px;
  margin: 7px 0 19px;
  overflow: hidden;
  color: var(--it-muted);
  font-size: 11px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 13px;
  margin-top: auto;
  color: var(--it-muted);
  font-size: 10px;
}

.progress-block {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #707078;
  font-size: 10px;
}

.progress-labels strong {
  color: #29292e;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.progress-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  background: #ededf0;
  border-radius: 99px;
}

.progress-fill {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: #2c2c31;
  border-radius: inherit;
  transition: width 300ms var(--it-ease);
}

.progress-fill.is-light {
  background: #9b9ba3;
}

.progress-fill.is-complete {
  background: #62626a;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--it-line);
}

/* 12. Performance assessments and grade summaries ------------------------- */
.grade-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
  gap: 17px;
}

.grade-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 25px;
  color: #fff;
  background: #222226;
  border-radius: var(--it-radius-lg);
}

.grade-hero .eyebrow,
.grade-hero .muted {
  color: #bebec5;
}

.grade-big-number {
  margin-top: 20px;
  font-size: clamp(38px, 5vw, 58px);
  font-variant-numeric: tabular-nums;
  font-weight: 780;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.grade-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  color: #d1d1d6;
  font-size: 11px;
}

.grade-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--it-line);
  border-radius: 15px;
}

.grade-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 11px;
}

.grade-table th,
.grade-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--it-line);
  text-align: left;
}

.grade-table th {
  color: #777780;
  background: #f8f8f9;
  font-size: 10px;
  font-weight: 750;
}

.grade-table tbody tr:last-child td {
  border-bottom: 0;
}

.grade-table tbody tr:hover {
  background: #fafafa;
}

.grade-number {
  font-variant-numeric: tabular-nums;
  font-weight: 730;
}

.assignment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 15px;
  padding: 18px;
  transition: border-color var(--it-duration) var(--it-ease),
    box-shadow var(--it-duration) var(--it-ease);
}

.assignment-card:hover {
  border-color: var(--it-line-strong);
  box-shadow: var(--it-shadow-sm);
}

.assignment-main {
  min-width: 0;
}

.assignment-title {
  margin: 0;
  font-size: 13px;
  font-weight: 720;
}

.assignment-description {
  margin: 6px 0 12px;
  color: var(--it-muted);
  font-size: 11px;
}

.assignment-weight {
  align-self: start;
  padding: 6px 9px;
  color: #55555d;
  background: #f0f0f2;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.rubric-list {
  display: grid;
  gap: 10px;
}

.rubric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  align-items: center;
  gap: 12px;
}

.rubric-label {
  color: #414147;
  font-size: 11px;
  font-weight: 600;
}

.rubric-score {
  color: #28282d;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: right;
}

/* 13. Calendar ------------------------------------------------------------- */
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.calendar-month {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.05em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-weekday {
  padding: 8px 0 11px;
  color: #8a8a92;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}

.calendar-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 69px;
  padding: 9px 3px 7px;
  color: #46464d;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  transition: background var(--it-duration) var(--it-ease),
    border-color var(--it-duration) var(--it-ease);
}

.calendar-day:hover {
  background: #f3f3f5;
}

.calendar-day.is-outside {
  color: #c0c0c6;
}

.calendar-day.is-today {
  color: #fff;
  background: #29292e;
  border-color: #29292e;
  font-weight: 750;
}

.calendar-day.is-selected:not(.is-today) {
  background: #efeff2;
  border-color: #d8d8dd;
  font-weight: 750;
}

.calendar-dots {
  display: flex;
  align-items: center;
  gap: 3px;
}

.calendar-dot {
  width: 4px;
  height: 4px;
  background: #64646d;
  border-radius: 50%;
}

.calendar-day.is-today .calendar-dot {
  background: #fff;
}

/* 14. School meal and timetable details ----------------------------------- */
.meal-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  padding: 17px;
  background: #fafafa;
  border: 1px solid var(--it-line);
  border-radius: 15px;
}

.meal-date {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 73px;
  color: #fff;
  background: #2b2b30;
  border-radius: 12px;
}

.meal-date-day {
  font-size: 27px;
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.meal-date-month {
  margin-top: 3px;
  color: #c9c9cf;
  font-size: 9px;
  font-weight: 700;
}

.meal-content {
  min-width: 0;
}

.meal-title {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 750;
}

.meal-menu {
  margin: 0;
  color: #696971;
  font-size: 11px;
  line-height: 1.8;
  word-break: keep-all;
}

.meal-allergens {
  margin-top: 8px;
  color: #a0a0a7;
  font-size: 9px;
}

/* 15. Files, uploads, and previews ---------------------------------------- */
.file-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.file-toolbar-left,
.file-toolbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.file-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--it-duration) var(--it-ease),
    box-shadow var(--it-duration) var(--it-ease),
    border-color var(--it-duration) var(--it-ease);
}

.file-card:hover {
  border-color: rgba(25, 25, 30, 0.18);
  box-shadow: var(--it-shadow-md);
  transform: translateY(-2px);
}

.file-thumbnail {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  color: #65656d;
  background: linear-gradient(145deg, #f4f4f5, #e9e9ec);
  border-bottom: 1px solid var(--it-line);
  font-size: 30px;
}

.file-thumbnail img,
.file-thumbnail video,
.file-thumbnail model-viewer,
.file-thumbnail canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-thumbnail.is-code {
  display: block;
  padding: 17px;
  color: #d5d5dc;
  background: #242428;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.file-type-icon {
  display: grid;
  width: 51px;
  height: 59px;
  place-items: center;
  color: #4d4d55;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(30, 30, 35, 0.07);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(20, 20, 25, 0.055);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.file-details {
  padding: 13px 14px 14px;
}

.file-name {
  overflow: hidden;
  color: #2b2b30;
  font-size: 11px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: #898991;
  font-size: 9px;
}

.dropzone {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 36px 22px;
  color: #66666e;
  background: #fbfbfc;
  border: 1.5px dashed #d3d3da;
  border-radius: 17px;
  text-align: center;
  transition: background var(--it-duration) var(--it-ease),
    border-color var(--it-duration) var(--it-ease),
    color var(--it-duration) var(--it-ease);
}

.dropzone:hover,
.dropzone.is-dragover {
  color: #2b2b30;
  background: #f1f1f3;
  border-color: #888890;
}

.dropzone-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: #424249;
  background: #eeeeF1;
  border-radius: 13px;
  font-size: 19px;
}

.dropzone-title {
  margin: 3px 0 0;
  color: #27272c;
  font-size: 13px;
  font-weight: 750;
}

.dropzone-hint {
  max-width: 440px;
  margin: 0;
  color: #85858d;
  font-size: 10px;
  line-height: 1.7;
}

.dropzone input[type="file"] {
  max-width: 100%;
  color: var(--it-muted);
  font-size: 11px;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.preview-stage {
  display: grid;
  min-height: 400px;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: #eaeaec;
  border: 1px solid var(--it-line);
  border-radius: var(--it-radius-lg);
}

.preview-stage > img,
.preview-stage > video,
.preview-stage > iframe,
.preview-stage > canvas {
  max-width: 100%;
  max-height: 75vh;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--it-shadow-md);
}

.preview-stage > model-viewer {
  width: 100%;
  height: min(68vh, 620px);
  min-height: 350px;
  background: #f8f8f9;
  border-radius: 13px;
}

.preview-stage > pre,
.code-preview {
  width: 100%;
  max-height: 70vh;
  margin: 0;
  padding: 22px;
  overflow: auto;
  color: #e1e1e7;
  background: #222226;
  border-radius: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.75;
  tab-size: 2;
  white-space: pre;
}

.preview-sidebar {
  display: grid;
  gap: 17px;
}

.file-property-list {
  display: grid;
  gap: 13px;
  margin: 0;
}

.file-property {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
}

.file-property dt {
  color: var(--it-muted);
}

.file-property dd {
  max-width: 65%;
  margin: 0;
  overflow-wrap: anywhere;
  color: #37373d;
  font-weight: 650;
  text-align: right;
}

/* 16. Search and form controls -------------------------------------------- */
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 180px;
  max-width: 360px;
}

.search-field .search-icon {
  position: absolute;
  left: 13px;
  color: #909098;
  font-size: 14px;
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 41px;
  padding: 10px 13px 10px 37px;
  color: #28282d;
  background: #fff;
  border: 1px solid var(--it-line-strong);
  border-radius: 12px;
  outline: none;
  font-size: 12px;
  transition: border-color var(--it-duration) var(--it-ease),
    box-shadow var(--it-duration) var(--it-ease);
}

.search-field input::placeholder {
  color: #a2a2a9;
}

.search-field input:focus {
  border-color: #9999a1;
  box-shadow: var(--it-focus);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.form-field.is-full {
  grid-column: 1 / -1;
}

.form-label {
  color: #3c3c42;
  font-size: 11px;
  font-weight: 720;
}

.form-hint {
  margin: -2px 0 0;
  color: #888890;
  font-size: 10px;
  line-height: 1.6;
}

.input,
.select,
.textarea {
  width: 100%;
  min-width: 0;
  color: #27272c;
  background: #fff;
  border: 1px solid #dedee3;
  border-radius: 11px;
  outline: none;
  font-size: 12px;
  transition: border-color var(--it-duration) var(--it-ease),
    box-shadow var(--it-duration) var(--it-ease),
    background var(--it-duration) var(--it-ease);
}

.input,
.select {
  min-height: 43px;
  padding: 10px 12px;
}

.textarea {
  min-height: 115px;
  padding: 12px;
  line-height: 1.7;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: #a3a3aa;
}

.input:focus,
.select:focus,
.textarea:focus {
  background: #fff;
  border-color: #9999a1;
  box-shadow: var(--it-focus);
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: #b65a5a;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}

/* 17. Account, connected services, and security --------------------------- */
.settings-list {
  display: grid;
  gap: 0;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--it-line);
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-copy {
  min-width: 0;
}

.settings-title {
  margin: 0;
  color: #303036;
  font-size: 12px;
  font-weight: 730;
}

.settings-description {
  margin: 5px 0 0;
  color: var(--it-muted);
  font-size: 10px;
  line-height: 1.6;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--it-line);
  border-radius: 14px;
  background: #fff;
}

.service-mark {
  display: grid;
  flex: 0 0 41px;
  width: 41px;
  height: 41px;
  place-items: center;
  color: #303036;
  background: #f0f0f2;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 750;
}

.service-copy {
  min-width: 0;
  flex: 1;
}

.service-name {
  font-size: 12px;
  font-weight: 740;
}

.service-status {
  margin-top: 3px;
  color: var(--it-muted);
  font-size: 10px;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  color: #55555c;
  background: #f5f5f6;
  border: 1px solid var(--it-line);
  border-radius: 13px;
  font-size: 11px;
  line-height: 1.7;
}

.security-note strong {
  color: #29292e;
}

/* Visual switch only; behavior requires app code. */
.switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 42px;
  height: 25px;
  padding: 3px;
  background: #d5d5db;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  transition: background var(--it-duration) var(--it-ease);
}

.switch::after {
  width: 19px;
  height: 19px;
  content: "";
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform var(--it-duration) var(--it-ease);
}

.switch[aria-checked="true"],
.switch.is-on {
  background: #29292e;
}

.switch[aria-checked="true"]::after,
.switch.is-on::after {
  transform: translateX(17px);
}

/* 18. Authentication screens --------------------------------------------- */
.auth-page {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 30px 18px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.98), transparent 56%),
    #f2f2f5;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  width: min(100%, 900px);
  min-height: 570px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20, 20, 25, 0.08);
  border-radius: 27px;
  box-shadow: var(--it-shadow-lg);
}

.auth-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  color: #fff;
  background: #202024;
}

.auth-brand-panel .brand {
  margin: 0;
  color: #fff;
}

.auth-brand-panel .brand-mark {
  color: #202024;
  background: #fff;
}

.auth-brand-message {
  max-width: 340px;
  margin: 70px 0;
}

.auth-brand-message h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 1.09;
}

.auth-brand-message p {
  margin: 16px 0 0;
  color: #c3c3ca;
  font-size: 12px;
  line-height: 1.8;
}

.auth-footnote {
  color: #a5a5ad;
  font-size: 10px;
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.auth-title {
  margin: 0;
  font-size: 25px;
  font-weight: 770;
  letter-spacing: -0.055em;
}

.auth-description {
  margin: 8px 0 27px;
  color: var(--it-muted);
  font-size: 12px;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: #96969d;
  font-size: 10px;
}

.auth-divider::before,
.auth-divider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--it-line);
}

.auth-legal {
  margin-top: 22px;
  color: #9999a0;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

/* 19. Modal, popover, notification, and empty states ----------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(19, 19, 23, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}

.modal {
  width: min(100%, 580px);
  max-height: min(86dvh, 780px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(25, 25, 30, 0.1);
  border-radius: 22px;
  box-shadow: var(--it-shadow-lg);
  animation: it-modal-in 180ms var(--it-ease) both;
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 22px;
}

.modal-header {
  border-bottom: 1px solid var(--it-line);
}

.modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--it-line);
}

.modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.modal-body {
  padding: 22px;
}

.popover {
  width: min(300px, calc(100vw - 30px));
  padding: 9px;
  background: #fff;
  border: 1px solid var(--it-line);
  border-radius: 15px;
  box-shadow: var(--it-shadow-lg);
}

.popover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  color: #44444b;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  text-align: left;
}

.popover-item:hover {
  color: #1e1e22;
  background: #f1f1f3;
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 32px));
  z-index: 120;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(25, 25, 30, 0.1);
  border-radius: 14px;
  box-shadow: var(--it-shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 11px;
  animation: it-toast-in 220ms var(--it-ease) both;
}

.toast-title {
  margin-bottom: 3px;
  color: #28282d;
  font-weight: 750;
}

.toast-message {
  color: var(--it-muted);
  line-height: 1.5;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 46px 20px;
  color: #808088;
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  margin-bottom: 16px;
  color: #62626a;
  background: #f0f0f2;
  border-radius: 17px;
  font-size: 23px;
}

.empty-state-title {
  margin: 0;
  color: #333339;
  font-size: 13px;
  font-weight: 750;
}

.empty-state-description {
  max-width: 350px;
  margin: 7px 0 16px;
  color: #85858d;
  font-size: 11px;
  line-height: 1.7;
}

/* 20. List rows, tabs, chips, and filters ---------------------------------- */
.tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  overflow-x: auto;
  background: #ededf0;
  border-radius: 12px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  min-height: 33px;
  padding: 7px 12px;
  color: #73737b;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: color var(--it-duration) var(--it-ease),
    background var(--it-duration) var(--it-ease),
    box-shadow var(--it-duration) var(--it-ease);
}

.tab:hover {
  color: #303036;
}

.tab.is-active,
.tab[aria-selected="true"] {
  color: #29292e;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 20, 25, 0.08);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  color: #64646b;
  background: #fff;
  border: 1px solid var(--it-line-strong);
  border-radius: 9px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.chip:hover,
.chip.is-active {
  color: #fff;
  background: #29292e;
  border-color: #29292e;
}

.data-list {
  display: grid;
}

.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-width: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--it-line);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row-main {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.data-row-copy {
  min-width: 0;
}

.data-row-title {
  overflow: hidden;
  color: #35353b;
  font-size: 11px;
  font-weight: 710;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-row-meta {
  margin-top: 3px;
  color: #8d8d95;
  font-size: 10px;
}

/* 21. Scrollbars and motion ------------------------------------------------ */
* {
  scrollbar-width: thin;
  scrollbar-color: #d8d8dd transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: #d8d8dd;
  border: 2px solid transparent;
  border-radius: 99px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: #b9b9c1;
  background-clip: padding-box;
}

@keyframes it-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes it-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 22. Responsive layouts --------------------------------------------------- */
@media (max-width: 1280px) {
  :root {
    --it-sidebar-width: 220px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .file-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .span-4,
  .span-3 {
    grid-column: span 6;
  }
}

@media (max-width: 980px) {
  :root {
    --it-sidebar-width: 76px;
  }

  .sidebar {
    align-items: center;
    padding-inline: 10px;
  }

  .brand {
    justify-content: center;
    margin: 2px 0 31px;
  }

  .brand-copy,
  .nav-heading,
  .nav-link .nav-label,
  .nav-count,
  .profile-info,
  .sidebar-extra {
    display: none;
  }

  .nav-section {
    width: 100%;
  }

  .nav-link {
    justify-content: center;
    width: 52px;
    min-height: 47px;
    padding: 0;
    margin-inline: auto;
  }

  .nav-icon {
    font-size: 18px;
  }

  .sidebar-bottom {
    width: 100%;
  }

  .profile-chip {
    justify-content: center;
    padding-inline: 0;
  }

  .stats-grid {
    gap: 12px;
  }

  .dashboard-grid {
    gap: 13px;
  }

  .panel {
    padding: 18px;
  }

  .span-8,
  .span-7,
  .span-6,
  .span-5 {
    grid-column: span 12;
  }

  .preview-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --it-radius-lg: 17px;
  }

  .app-shell {
    display: block;
    padding-bottom: 72px;
  }

  .sidebar {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 67px;
    padding: 7px 10px max(7px, env(safe-area-inset-bottom));
    overflow: visible;
    background: rgba(250, 250, 251, 0.91);
    border-top: 1px solid var(--it-line);
    border-right: 0;
    box-shadow: 0 -5px 20px rgba(20, 20, 25, 0.035);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
  }

  .brand,
  .sidebar-spacer,
  .sidebar-bottom,
  .nav-heading {
    display: none;
  }

  .nav-section {
    flex: 1;
    width: auto;
    margin: 0;
  }

  .nav-list {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1px;
  }

  .nav-list li {
    flex: 1;
    min-width: 0;
  }

  .nav-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 100%;
    min-height: 49px;
    padding: 5px 2px;
    color: #73737b;
    border: 0;
    border-radius: 10px;
    font-size: 9px;
  }

  .nav-link .nav-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-link.is-active,
  .nav-link[aria-current="page"] {
    color: #1f1f23;
    background: transparent;
  }

  .nav-icon {
    width: 23px;
    height: 23px;
    font-size: 18px;
  }

  .main-content {
    padding: 0 16px 32px;
  }

  .topbar {
    min-height: 65px;
    margin-bottom: 23px;
  }

  .topbar-actions {
    gap: 3px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .page-heading {
    display: grid;
    align-items: start;
    gap: 16px;
    margin-bottom: 22px;
  }

  .page-heading-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .page-title {
    font-size: 29px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }

  .stat-card {
    padding: 15px;
    border-radius: 16px;
  }

  .stat-value {
    margin-top: 14px;
    font-size: 27px;
  }

  .stat-icon {
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .span-12,
  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4,
  .span-3 {
    grid-column: 1;
  }

  .panel {
    padding: 17px;
  }

  .panel-header {
    gap: 10px;
    margin-bottom: 16px;
  }

  .schedule-item {
    grid-template-columns: 49px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 11px 10px;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .file-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .file-details {
    padding: 11px;
  }

  .grade-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .grade-hero {
    min-height: 180px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .form-field.is-full {
    grid-column: auto;
  }

  .preview-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-stage {
    min-height: 250px;
    padding: 12px;
  }

  .preview-stage > model-viewer {
    min-height: 270px;
  }

  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 470px);
    min-height: auto;
    border-radius: 22px;
  }

  .auth-brand-panel {
    min-height: 185px;
    padding: 22px;
  }

  .auth-brand-message {
    margin: 30px 0 12px;
  }

  .auth-brand-message h1 {
    font-size: 27px;
  }

  .auth-brand-message p,
  .auth-footnote {
    display: none;
  }

  .auth-form-panel {
    padding: 27px 22px 25px;
  }

  .auth-title {
    font-size: 23px;
  }

  .settings-row {
    align-items: flex-start;
  }

  .meal-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .meal-date {
    min-height: 64px;
  }

  .calendar-day {
    min-height: 53px;
    padding-top: 7px;
    font-size: 10px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .toast-stack {
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .main-content {
    padding-inline: 12px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-topline {
    font-size: 10px;
  }

  .stat-value {
    font-size: 24px;
  }

  .file-grid {
    gap: 8px;
  }

  .file-name {
    font-size: 10px;
  }

  .btn {
    padding-inline: 12px;
  }
}

/* INFOtype weekly school timetable, free-slot suggestions, project notes and login motion */
.auth-card{animation:it-auth-rise .7s cubic-bezier(.2,.75,.2,1) both}.auth-brand{animation:it-brand-fade .8s ease both}.auth-orb{animation:it-orb-drift 16s ease-in-out infinite alternate}.orb-b{animation-delay:-7s}@keyframes it-auth-rise{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes it-brand-fade{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes it-orb-drift{from{transform:translate3d(0,0,0)}to{transform:translate3d(18px,13px,0)}}.school-week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.school-week-day{min-width:0;padding:12px;border:1px solid #e9e9ef;border-radius:14px;background:linear-gradient(180deg,#fff,#fafaff)}.school-week-date{display:flex;align-items:baseline;justify-content:space-between;gap:5px;margin-bottom:10px;color:#5f6476;font-size:11px}.school-week-date strong{font-size:14px;color:#31354a}.school-week-lessons{display:grid;gap:6px}.school-week-lesson{display:grid;gap:3px;padding:7px;border-radius:9px;background:#f0f4ff;color:#52648f;font-size:10px}.school-week-lesson strong{color:#303e65;font-size:11px;overflow-wrap:anywhere}.school-week-lesson:nth-child(3n+2){background:#fdf2e8;color:#956c47}.school-week-lesson:nth-child(3n){background:#eaf7f1;color:#477c68}.slot-suggestion-list{display:grid;gap:9px}.slot-suggestion{display:grid;grid-template-columns:104px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid #e7eafa;border-radius:13px;background:linear-gradient(100deg,#f2f5ff,#fff8f0)}.slot-suggestion-time{font-size:12px;font-weight:800;color:#4d5f9b;font-variant-numeric:tabular-nums}.slot-suggestion strong,.slot-suggestion small{display:block}.slot-suggestion strong{font-size:12px;color:#303348}.slot-suggestion small{margin-top:3px;font-size:10px;color:#85869a}.file-date-note{margin-top:5px;color:#858694;font-size:9px}.project-file-dates{display:grid;gap:5px;margin-top:10px}.project-file-date{display:flex;gap:10px;align-items:baseline;min-width:0;font-size:10px}.project-file-date span{flex:0 0 auto;color:#888b9b;font-variant-numeric:tabular-nums}.project-file-date strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5a5e70;font-weight:600}.project-history-list{display:grid;gap:9px}.project-history-item{padding:12px 14px;border:1px solid #e9e9ef;border-radius:12px;background:#fcfcff}.project-history-item time{color:#6675a7;font-size:11px;font-weight:750}.project-history-item p{margin:7px 0 0;white-space:pre-wrap;font-size:12px;line-height:1.65;color:#484b5b}@media(max-width:1100px){.school-week-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:720px){.school-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.slot-suggestion{grid-template-columns:1fr;gap:7px}.slot-suggestion .btn{justify-self:start}}@media(prefers-reduced-motion:reduce){.auth-card,.auth-brand,.auth-orb{animation:none!important}}
.mail-message-list{display:grid;gap:9px}.mail-message{display:block;padding:13px 15px;border:1px solid #e8e9f0;border-radius:12px;background:#fff;color:inherit;text-decoration:none;transition:transform .16s ease,border-color .16s ease}.mail-message:hover{transform:translateY(-1px);border-color:#c9d2f3;background:#fbfcff}.mail-message-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.mail-message-top strong{font-size:12px;line-height:1.5}.mail-message-top time{flex:0 0 auto;color:#9091a0;font-size:9px}.mail-message-from{margin-top:5px;color:#6474a5;font-size:10px}.mail-message p{margin:7px 0 0;color:#777988;font-size:11px;line-height:1.5}@media(max-width:720px){.mail-message-top{display:block}}