﻿:root {
  color-scheme: light;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 800 900;
  src: url("../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-ext-800-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 800 900;
  src: url("../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  max-width: 100%;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

html.drawer-open,
body.drawer-open,
html.modal-open,
body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(248,248,248,.96)),
    repeating-linear-gradient(90deg, rgba(17,17,17,.025) 0 1px, transparent 1px 84px);
  opacity: .8;
  z-index: -1;
}

.app-page {
  animation: page-enter .52s var(--ease-out) both;
}

.app-page > section {
  animation: content-rise .58s var(--ease-out) .04s both;
}

.panel {
  border: 1px solid #e5e7eb;
  background: rgba(255,255,255,.96);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(17,17,17,.07);
  transition: transform .22s var(--ease-soft), box-shadow .22s var(--ease-soft), border-color .22s var(--ease-soft), background .22s var(--ease-soft);
}

.panel:hover {
  border-color: #dedede;
  box-shadow: 0 18px 50px rgba(17,17,17,.07);
  transform: none;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border .18s var(--ease-soft), box-shadow .18s var(--ease-soft), background .18s var(--ease-soft), transform .18s var(--ease-soft);
}

.input:focus {
  border-color: #e50914;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(229,9,20,.10);
  transform: translateY(-1px);
}

.btn-primary,
.btn-secondary,
.quick-action {
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .18s var(--ease-soft), box-shadow .18s var(--ease-soft), border-color .18s var(--ease-soft), color .18s var(--ease-soft), background .18s var(--ease-soft);
}

.btn-primary {
  background: #e50914;
  color: #fff;
  box-shadow: 0 12px 28px rgba(229,9,20,.18);
}

.btn-primary:hover {
  background: #dc2626;
  box-shadow: 0 16px 34px rgba(229,9,20,.24);
  transform: translateY(-2px);
}

.btn-danger {
  border-radius: 16px;
  background: #dc2626;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  padding: 12px 18px;
  box-shadow: 0 18px 34px rgba(220, 38, 38, .18);
  transition: transform .18s var(--ease-soft), background .18s var(--ease-soft), box-shadow .18s var(--ease-soft);
}

.btn-danger:hover {
  background: #b91c1c;
  box-shadow: 0 20px 44px rgba(220, 38, 38, .24);
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-secondary:active,
.btn-danger:active,
.quick-action:active {
  transform: translateY(0) scale(.99);
}

.btn-secondary,
.quick-action {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111;
}

.btn-secondary:hover,
.quick-action:hover {
  border-color: #e50914;
  color: #e50914;
  box-shadow: 0 12px 26px rgba(17,17,17,.06);
  transform: translateY(-1px);
}

.profile-photo-picker {
  border: 1px dashed #d7dbe3;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8f8f8);
  padding: 18px;
}

.profile-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.profile-photo-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin-top: 16px;
}

.profile-photo-select {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  transition: border .18s var(--ease-soft), box-shadow .18s var(--ease-soft), transform .18s var(--ease-soft);
}

.profile-photo-select:hover {
  border-color: #e50914;
  box-shadow: 0 14px 30px rgba(17,17,17,.07);
  transform: translateY(-1px);
}

.profile-photo-select-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: #e50914;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.profile-photo-select strong,
.profile-photo-select small {
  display: block;
}

.profile-photo-select strong {
  font-size: 14px;
  font-weight: 900;
  color: #111;
}

.profile-photo-select small {
  margin-top: 3px;
  max-width: 100%;
  overflow: hidden;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-photo-remove {
  border: 1px solid #fecaca;
  border-radius: 16px;
  background: #fff;
  color: #b91c1c;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
  transition: border .18s var(--ease-soft), background .18s var(--ease-soft), transform .18s var(--ease-soft), box-shadow .18s var(--ease-soft);
}

.profile-photo-remove:hover {
  border-color: #ef4444;
  background: #fef2f2;
  box-shadow: 0 14px 30px rgba(185,28,28,.10);
  transform: translateY(-1px);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.table th {
  background: #f8f8f8;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  padding: 14px 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.table td {
  border-top: 1px solid #e5e7eb;
  padding: 16px 18px;
  vertical-align: middle;
}

.table tbody tr {
  transition: background .16s var(--ease-soft), transform .16s var(--ease-soft), box-shadow .16s var(--ease-soft);
}

.table tbody tr:hover {
  background: #fff7f7;
  transform: none;
}

.overflow-x-auto {
  scrollbar-width: none;
}

.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.badge-ok { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-muted { background: #f3f4f6; color: #4b5563; }

.student-picker {
  max-height: 260px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  padding: 8px;
}

.student-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background .16s var(--ease-soft), color .16s var(--ease-soft);
}

.student-picker-row:hover {
  background: #fff7f7;
}

.student-picker-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.student-picker-check {
  width: 20px;
  height: 20px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: background .16s var(--ease-soft), border-color .16s var(--ease-soft), box-shadow .16s var(--ease-soft);
}

.student-picker-check::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  opacity: 0;
}

.student-picker-row input:checked + .student-picker-check {
  border-color: #e50914;
  background: #e50914;
  box-shadow: 0 8px 18px rgba(229,9,20,.18);
}

.student-picker-row input:checked + .student-picker-check::after {
  opacity: 1;
}

.scan-feed {
  min-height: 420px;
}

.scan-empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border: 1px dashed #e5e7eb;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(229,9,20,.08), transparent 34%),
    linear-gradient(180deg, #fff, #fafafa);
  padding: 34px;
}

.scan-empty-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 28px;
  background: #fff1f1;
  color: #e50914;
  box-shadow: inset 0 0 0 1px rgba(229,9,20,.12);
}

.scan-empty-icon::before,
.scan-empty-icon::after,
.scan-empty-icon span {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.scan-empty-icon::before {
  width: 22px;
  height: 22px;
}

.scan-empty-icon::after {
  width: 42px;
  height: 42px;
  opacity: .38;
}

.scan-empty-icon span {
  width: 62px;
  height: 62px;
  opacity: .18;
}

.scan-empty h3 {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 800;
}

.scan-empty p {
  max-width: 440px;
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.scan-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  padding: 14px;
  transition: border-color .16s var(--ease-soft), background .16s var(--ease-soft);
}

.scan-item:hover {
  border-color: #f3b4b8;
  background: #fffafa;
}

.scan-item-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}

.scan-item-icon svg {
  display: block;
}

.drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 60;
  background: rgba(17,17,17,.32);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  animation: fade-in .18s ease both;
  transform: none !important;
}

.drawer.hidden { display: none; }

.drawer-panel {
  width: min(100%, 460px);
  min-width: min(100%, 460px);
  height: 100%;
  max-height: 100vh;
  overflow: auto;
  background: #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: -20px 0 60px rgba(17,17,17,.12);
  animation: drawer-in .32s var(--ease-out) both;
}

.drawer-close {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, .34);
  padding: 24px;
  backdrop-filter: blur(10px);
  animation: fade-in .18s var(--ease-out) both;
}

.confirm-modal.hidden {
  display: none;
}

.confirm-modal.is-leaving {
  animation: fade-out .16s var(--ease-out) both;
}

.confirm-modal-card {
  width: min(100%, 480px);
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 36px 100px rgba(17, 17, 17, .22);
  padding: 28px;
  animation: modal-pop .24s var(--ease-out) both;
}

.confirm-modal.is-leaving .confirm-modal-card {
  animation: modal-out .16s var(--ease-out) both;
}

.confirm-modal-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff7ed;
  color: #f59e0b;
  font-size: 24px;
  font-weight: 1000;
  margin-bottom: 18px;
}

.confirm-modal-icon.is-danger {
  background: #fef2f2;
  color: #dc2626;
}

.confirm-modal-card h3 {
  color: #111;
  font-size: 24px;
  font-weight: 1000;
  letter-spacing: 0;
}

.confirm-modal-card p {
  margin-top: 10px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.confirm-modal-detail {
  margin-top: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f8f8f8;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  padding: 14px 16px;
}

.confirm-modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.project-about-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(17, 17, 17, .42);
  padding: 28px;
  backdrop-filter: blur(10px);
  animation: fade-in .18s var(--ease-out) both;
}

.project-about-modal.hidden {
  display: none;
}

.project-about-panel {
  position: relative;
  width: min(100%, 1040px);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  border: 1px solid rgba(229, 231, 235, .92);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 42px 110px rgba(17, 17, 17, .24);
  padding: 28px;
  animation: modal-pop .24s var(--ease-out) both;
}

.project-about-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #111;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  transition: border-color .18s var(--ease-soft), color .18s var(--ease-soft), transform .18s var(--ease-soft);
}

.project-about-close:hover {
  border-color: #e50914;
  color: #e50914;
  transform: translateY(-1px);
}

.project-about-hero {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  padding: 4px 56px 24px 0;
}

.project-about-brand {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.project-about-logo {
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: #e50914;
  box-shadow: 0 18px 36px rgba(229, 9, 20, .22);
}

.project-about-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-about-kicker,
.project-about-section-head p {
  color: #e50914;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.project-about-brand h2 {
  margin-top: 8px;
  color: #111;
  font-size: 30px;
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1.12;
}

.project-about-brand p:not(.project-about-kicker) {
  max-width: 660px;
  margin-top: 10px;
  color: #6b7280;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
}

.project-about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  margin-top: 18px;
}

.project-about-section,
.project-status-item {
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  padding: 18px;
}

.project-about-section-head h3 {
  margin-top: 6px;
  color: #111;
  font-size: 19px;
  font-weight: 1000;
  line-height: 1.25;
}

.project-member {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #f8f8f8;
  padding: 14px;
}

.project-member-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
}

.project-member strong,
.project-feature strong,
.project-status-item strong {
  display: block;
  color: #111;
  font-size: 14px;
  font-weight: 1000;
}

.project-member span,
.project-feature span,
.project-status-item small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.project-tags em {
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff1f1;
  color: #e50914;
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.project-feature {
  margin-top: 14px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #e50914;
  border-radius: 18px;
  background: #f8f8f8;
  padding: 15px;
}

.project-about-school,
.project-about-footer {
  margin-top: 16px;
  border-radius: 18px;
  background: #111;
  color: #fff;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.5;
}

.project-about-status {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.project-status-item {
  position: relative;
  padding-left: 42px;
}

.project-status-dot {
  position: absolute;
  left: 18px;
  top: 21px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, .13);
}

.project-status-dot.is-ok {
  background: #16a34a;
  box-shadow: 0 0 0 5px rgba(22, 163, 74, .13);
}

.project-status-dot.is-bad {
  background: #dc2626;
  box-shadow: 0 0 0 5px rgba(220, 38, 38, .12);
}

.project-about-footer {
  background: #f8f8f8;
  color: #111;
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.pagination-info {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
  margin-right: auto;
}

.pagination-button,
.pagination-page {
  min-width: 42px;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #111;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  font-weight: 1000;
  transition: background .18s var(--ease-soft), border-color .18s var(--ease-soft), color .18s var(--ease-soft), transform .18s var(--ease-soft);
}

.pagination-page {
  min-width: 56px;
  color: #e50914;
}

.pagination-button:hover:not(:disabled) {
  border-color: #e50914;
  color: #e50914;
  transform: translateY(-1px);
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: .42;
}

.weekly-calendar {
  overflow: hidden;
}

.weekly-calendar-scroll {
  overflow-x: auto;
  width: 100%;
}

.weekly-calendar-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
}

.weekly-calendar-table th,
.weekly-calendar-table td {
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.weekly-calendar-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8f8f8;
  color: #111;
  font-size: 13px;
  font-weight: 1000;
  padding: 14px 10px;
  text-align: center;
}

.weekly-calendar-table thead th:first-child,
.weekly-time-cell {
  position: sticky;
  left: 0;
  z-index: 3;
}

.weekly-calendar-table thead th:first-child {
  z-index: 4;
}

.weekly-time-head,
.weekly-time-cell {
  width: 96px;
}

.weekly-time-cell {
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 1000;
  padding: 18px 12px;
  text-align: center;
  white-space: nowrap;
}

.weekly-time-cell span {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.weekly-calendar-table tbody tr:nth-child(even) td,
.weekly-calendar-table tbody tr:nth-child(even) .weekly-time-cell {
  background: #fafafa;
}

.weekly-calendar-table td {
  height: 112px;
  padding: 8px;
  background: #fff;
}

.weekly-empty {
  display: block;
  min-height: 84px;
}

.weekly-lesson {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 96px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #e50914;
  border-radius: 10px;
  background: #fff;
  padding: 10px 8px;
  text-align: center;
  transition: border-color .18s var(--ease-soft), box-shadow .18s var(--ease-soft), transform .18s var(--ease-soft);
}

.weekly-lesson + .weekly-lesson {
  margin-top: 8px;
}

.weekly-lesson:hover {
  border-color: #e50914;
  box-shadow: 0 12px 24px rgba(17, 17, 17, .08);
  transform: translateY(-1px);
}

.weekly-lesson.is-practice {
  border-left-color: #2563eb;
}

.weekly-lesson.is-lab {
  border-left-color: #f97316;
}

.weekly-room {
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.weekly-lesson strong {
  color: #111;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.2;
}

.weekly-code {
  color: #111;
  font-size: 12px;
  font-weight: 900;
}

.weekly-session {
  color: #e50914;
  font-size: 12px;
  font-weight: 1000;
}

.weekly-calendar-empty {
  height: 220px;
  padding: 40px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  font-weight: 800;
}

.scanner-ring {
  width: 180px;
  height: 180px;
  border-radius: 48px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}

.scanner-status-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --scan-rgb: 22, 163, 74;
  --scan-pill: #16a34a;
}

.scanner-status-card > * {
  position: relative;
  z-index: 1;
}

.scanner-status-card::before,
.scanner-status-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.scanner-status-card::before {
  inset: 18px;
  border: 2px solid rgba(var(--scan-rgb), .36);
  border-radius: 28px;
  transform: scale(.985);
  z-index: 2;
}

.scanner-status-card::after {
  left: 50%;
  top: 50%;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--scan-rgb), .18) 0%, rgba(var(--scan-rgb), 0) 68%);
  transform: translate(-50%, -50%) scale(.55);
  z-index: 0;
}

.scanner-status-card.scan-ok {
  --scan-rgb: 22, 163, 74;
  --scan-pill: #16a34a;
}

.scanner-status-card.scan-warn {
  --scan-rgb: 245, 158, 11;
  --scan-pill: #f59e0b;
}

.scanner-status-card.scan-error {
  --scan-rgb: 220, 38, 38;
  --scan-pill: #dc2626;
}

.scan-latest-hit.scan-ok {
  --scan-rgb: 22, 163, 74;
}

.scan-latest-hit.scan-warn {
  --scan-rgb: 245, 158, 11;
}

.scan-latest-hit.scan-error {
  --scan-rgb: 220, 38, 38;
}

.scanner-status-card.scan-hit::before {
  animation: scan-border-flash .72s var(--ease-out) both;
}

.scanner-status-card.scan-hit::after {
  animation: scan-ripple .72s var(--ease-out) both;
}

.scanner-status-card.scan-hit .scanner-ring {
  animation: scanner-pop .62s var(--ease-out) both;
}

.scanner-status-card.scan-zoom {
  animation: scanner-card-zoom .72s cubic-bezier(.16, 1, .3, 1) both;
}

.scanner-status-card.scan-hit h2,
.scanner-status-card.scan-hit p {
  animation: scan-text-rise .46s var(--ease-out) both;
}

.scan-read-pulse {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(17, 17, 17, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 40px rgba(17, 17, 17, .08);
  color: var(--scan-pill);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 16px;
  opacity: 0;
}

.scanner-status-card.scan-hit .scan-read-pulse {
  animation: scan-pill .95s var(--ease-out) both;
}

.scan-latest-hit {
  animation: scan-latest-flash .7s var(--ease-out) both;
}

.scan-confirm-overlay {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 9998;
  transform: translate(-50%, -50%);
  min-width: 260px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  background: rgba(17, 17, 17, .88);
  box-shadow: 0 30px 80px rgba(17, 17, 17, .24);
  color: #fff;
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: 0;
  padding: 18px 28px;
  text-align: center;
  animation: scan-confirm-pop .88s cubic-bezier(.16, 1, .3, 1) both;
}

.scan-confirm-overlay.scan-ok {
  background: rgba(22, 163, 74, .94);
}

.scan-confirm-overlay.scan-warn {
  background: rgba(245, 158, 11, .96);
}

.scan-confirm-overlay.scan-error {
  background: rgba(220, 38, 38, .95);
}

.scan-confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.scan-confetti-layer span {
  position: absolute;
  top: -40px;
  animation: scan-confetti-fall 1.35s cubic-bezier(.2, .72, .2, 1) both;
  filter: drop-shadow(0 10px 12px rgba(17, 17, 17, .16));
  will-change: transform, opacity;
}

.scanner-ring svg {
  display: block;
}

#toast-root {
  z-index: 10000 !important;
  pointer-events: none;
}

.toast {
  border: 1px solid #e5e7eb;
  border-left: 4px solid #e50914;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(17,17,17,.12);
  padding: 14px 16px;
  min-width: 260px;
  font-size: 14px;
  font-weight: 800;
  animation: toast-in .28s var(--ease-out) both;
  pointer-events: auto;
}

#sidebar {
  box-shadow: 10px 0 40px rgba(17,17,17,.035);
}

#sidebar nav > div {
  animation: content-rise .5s var(--ease-out) both;
}

#sidebar nav > div:nth-child(2) { animation-delay: .04s; }
#sidebar nav > div:nth-child(3) { animation-delay: .08s; }
#sidebar nav > div:nth-child(4) { animation-delay: .12s; }

#sidebar nav a {
  position: relative;
  overflow: hidden;
}

#sidebar nav a::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 999px;
  background: #e50914;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .18s var(--ease-soft), transform .18s var(--ease-soft);
}

#sidebar nav a:hover::before,
#sidebar nav a.text-accent::before {
  opacity: 1;
  transform: translateX(0);
}

#sidebar-user-menu {
  transform-origin: bottom center;
  animation: menu-pop .2s var(--ease-out) both;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes content-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modal-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(.98); }
}

@keyframes drawer-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes menu-pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scan-border-flash {
  0% { opacity: 0; transform: scale(.985); }
  28% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.018); }
}

@keyframes scan-ripple {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.45); }
  24% { opacity: 1; transform: translate(-50%, -50%) scale(.9); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }
}

@keyframes scanner-pop {
  0% { transform: scale(.88); box-shadow: inset 0 0 0 1px #e5e7eb, 0 0 0 0 rgba(var(--scan-rgb), .28); }
  36% { transform: scale(1.08); box-shadow: inset 0 0 0 1px #e5e7eb, 0 0 0 22px rgba(var(--scan-rgb), .12); }
  100% { transform: scale(1); box-shadow: inset 0 0 0 1px #e5e7eb, 0 0 0 0 rgba(var(--scan-rgb), 0); }
}

@keyframes scanner-card-zoom {
  0% { transform: scale(1); filter: brightness(1); }
  18% { transform: scale(.985); filter: brightness(1.02); }
  48% { transform: scale(1.045); filter: brightness(1.06); box-shadow: 0 34px 90px rgba(var(--scan-rgb), .18); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes scan-text-rise {
  from { opacity: .55; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scan-pill {
  0% { opacity: 0; transform: translate(-50%, -10px) scale(.96); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  72% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -8px) scale(.98); }
}

@keyframes scan-latest-flash {
  0% { background: #fff; box-shadow: 0 0 0 0 rgba(var(--scan-rgb), .16); transform: translateY(0); }
  28% { background: rgba(var(--scan-rgb), .08); box-shadow: 0 0 0 6px rgba(var(--scan-rgb), .08); transform: translateY(-2px); }
  100% { background: #f8f8f8; box-shadow: 0 0 0 0 rgba(var(--scan-rgb), 0); transform: translateY(0); }
}

@keyframes scan-confirm-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.72); filter: blur(8px); }
  18% { opacity: 1; transform: translate(-50%, -50%) scale(1.14); filter: blur(0); }
  62% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%, -58%) scale(.94); filter: blur(4px); }
}

@keyframes scan-confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0deg) scale(.7); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--x), 112vh, 0) rotate(var(--r)) scale(1); }
}

@media (max-width: 640px) {
  .panel { padding: 18px; border-radius: 20px; }
  .profile-photo-actions { grid-template-columns: 1fr; }
  .profile-photo-remove { min-height: 48px; }
  .table th, .table td { padding: 13px 14px; }
  .project-about-modal { padding: 12px; }
  .project-about-panel { max-height: calc(100vh - 24px); border-radius: 22px; padding: 18px; }
  .project-about-hero,
  .project-about-brand { display: block; padding-right: 0; }
  .project-about-logo { margin-bottom: 14px; }
  .project-about-brand h2 { font-size: 24px; }
  .project-about-grid,
  .project-about-status { grid-template-columns: 1fr; }
  .project-about-close { top: 12px; right: 12px; }
}

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

