:root {
  --navy: #122c40;
  --navy-soft: #1e4058;
  --gold: #e4b249;
  --paper: #f5f6f8;
  --ink: #203244;
  --muted: #6e7d89;
  --border: #e6e9ed;
  --green: #317660;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  color: #275b81;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.boot {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
}
.boot img {
  width: 100px;
}
.shell {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: #b8c6d0;
  padding: 30px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: white;
  padding: 0 9px 28px;
  border-bottom: 1px solid #ffffff1a;
}
.brand img {
  width: 49px;
  height: 49px;
}
.brand strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}
.brand small {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--gold);
}
.nav-caption {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.8px;
  margin: 28px 13px 12px;
  color: #8fa4b4;
}
.nav-item {
  display: flex;
  width: 100%;
  gap: 13px;
  align-items: center;
  border: 0;
  background: none;
  color: #bdcbd5;
  text-align: left;
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 5px;
}
.nav-item:hover {
  color: white;
  background: #ffffff09;
}
.nav-item.active {
  background: #e4b249;
  color: #172d3d;
  font-weight: 650;
}
.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidebar-foot {
  margin-top: auto;
  padding: 25px 12px 0;
  font-size: 11px;
  color: #9fb1bf;
}
.sidebar-foot strong {
  display: block;
  color: #e4b249;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 6px;
}
.topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
  gap: 15px;
}
.breadcrumb-text {
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb-text span {
  margin: 0 10px;
  color: #b9c2c9;
}
.account-chip {
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #eef1f4;
  color: #344e64;
  font-size: 13px;
  font-weight: 700;
}
.account-name {
  font-weight: 650;
  font-size: 12px;
}
.account-role {
  color: var(--muted);
  font-size: 10px;
}
.content {
  padding: 32px 42px 24px;
  max-width: 1600px;
  margin: auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--green);
  margin-bottom: 8px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
h1 {
  font-size: clamp(25px, 3vw, 33px);
  letter-spacing: -1px;
  margin: 0 0 6px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.3px;
  margin: 0;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
p {
  margin-top: 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.btn-campus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: white;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
}
.btn-campus:hover {
  background: var(--navy-soft);
  color: white;
  text-decoration: none;
}
.btn-campus.secondary {
  background: white;
  color: var(--ink);
  border-color: #dce1e6;
}
.btn-campus.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #213444;
}
.btn-campus.danger {
  color: #a33f45;
  border-color: #efd6d8;
  background: #fff5f5;
}
.btn-campus.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
  padding: 34px 36px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 215px;
  margin-bottom: 26px;
}
.hero::after {
  content: "";
  position: absolute;
  height: 370px;
  width: 370px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  right: -30px;
  top: -90px;
  box-shadow:
    0 0 0 42px #ffffff04,
    0 0 0 85px #ffffff03;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 70%;
}
.hero .eyebrow {
  color: #e6c16f;
}
.hero h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.8vw, 36px);
  font-weight: normal;
  margin: 8px 0 11px;
  line-height: 1.25;
}
.hero p {
  color: #b9cad6;
  font-size: 12px;
  max-width: 470px;
  margin-bottom: 19px;
}
.hero img {
  width: 133px;
  height: 133px;
  position: relative;
  z-index: 1;
  margin-right: 25px;
  filter: drop-shadow(0 8px 18px #0004);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 21px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  background: #f1f5f8;
  border-radius: 8px;
  color: #416782;
}
.stat:nth-child(2) .stat-icon {
  background: #faf5e9;
  color: #a57b27;
}
.stat:nth-child(3) .stat-icon {
  background: #edf5f0;
  color: #457e64;
}
.stat-value {
  font-size: 30px;
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: -1px;
}
.stat-note {
  color: var(--muted);
  font-size: 10px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 22px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-heading p {
  margin: 5px 0 0;
}
.group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.group-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.group-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px #17364d09;
}
.group-card-main {
  padding: 21px;
}
.badge-soft {
  display: inline-block;
  background: #f0f4f7;
  color: #4b6980;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 650;
}
.badge-soft.green {
  background: #edf5ef;
  color: #42765d;
}
.badge-soft.gold {
  background: #fcf5e4;
  color: #956e21;
}
.group-number {
  font-family: Georgia, serif;
  font-size: 25px;
  margin: 13px 0 5px;
}
.group-meta {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 16px;
}
.group-teacher {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  padding-top: 13px;
  border-top: 1px solid #f0f2f4;
}
.group-teacher .avatar {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  font-size: 10px;
}
.group-card-footer {
  padding: 11px 21px;
  background: #fbfcfd;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: none;
  color: #385c77;
  font-size: 11px;
  font-weight: 650;
  padding: 4px;
}
.empty {
  padding: 32px 18px;
  text-align: center;
  background: #fbfcfd;
  border: 1px dashed #dce3e9;
  border-radius: 9px;
  color: var(--muted);
}
.empty strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.quick-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: none;
  text-align: left;
  color: var(--ink);
}
.quick-link:last-child {
  border: none;
}
.quick-link .stat-icon {
  flex: 0 0 auto;
}
.quick-link span strong {
  display: block;
  font-size: 12px;
}
.quick-link span small {
  font-size: 10px;
  color: var(--muted);
}
.notice {
  border-left: 3px solid var(--gold);
  background: #fffbef;
  padding: 15px 18px;
  border-radius: 0 8px 8px 0;
  color: #7d642b;
  font-size: 12px;
  margin-bottom: 20px;
}
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 21px 0 0;
  color: #8a959e;
  font-size: 10px;
  margin-top: 30px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  font-weight: 600;
  background: #fafbfc;
}
th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf0f3;
  text-align: left;
}
td {
  font-size: 12px;
}
td .btn-campus {
  padding: 6px 10px;
  font-size: 10px;
  margin: 2px;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar input,
.toolbar select {
  max-width: 300px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  color: #475d6f;
}
.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid #dce2e8;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #7f9ab0;
  box-shadow: 0 0 0 3px #366c9710;
}
.field textarea {
  min-height: 105px;
  resize: vertical;
}
.field small {
  font-size: 10px;
  color: var(--muted);
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 22px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: 12px;
}
.check input {
  margin-top: 5px;
  flex: 0 0 auto;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 23px;
  overflow: auto;
}
.tab {
  border: none;
  background: none;
  padding: 12px 17px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 12px;
  white-space: nowrap;
}
.tab.active {
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
.post {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.post:first-child {
  padding-top: 0;
}
.post p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}
.post.reply {
  margin-left: 24px;
  border-left: 2px solid #e5ebef;
  padding-left: 16px;
}
.post small {
  font-size: 10px;
  color: var(--muted);
}
.material {
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.question-block {
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 9px;
  margin-top: 14px;
}
.question-block label {
  display: block;
  margin-top: 10px;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: #0b2032a6;
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
}
.dialog {
  background: white;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px #0003;
  padding: 28px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
}
.close-dialog {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
  width: 32px;
  height: 32px;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 46% 54%;
}
.auth-story {
  background: var(--navy);
  color: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story::after {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  border: 1px solid #ffffff10;
  border-radius: 50%;
  top: 180px;
  left: -250px;
  box-shadow:
    0 0 0 90px #ffffff03,
    0 0 0 180px #ffffff02;
  pointer-events: none;
}
.auth-story .brand {
  border: 0;
  padding: 0;
}
.auth-quote {
  margin: auto 0;
  padding: 70px 0;
  position: relative;
  z-index: 1;
}
.auth-quote h1 {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.18;
  letter-spacing: -1.5px;
}
.auth-quote h1 em {
  color: #e5be68;
  font-style: normal;
}
.auth-quote p {
  color: #aec2d0;
  max-width: 360px;
  margin-top: 24px;
}
.auth-story-footer {
  color: #8fa9bc;
  font-size: 11px;
}
.auth-form-area {
  display: grid;
  align-content: center;
  padding: 50px;
}
.auth-form {
  width: min(420px, 100%);
  margin: auto;
}
.auth-form h2 {
  font-size: 29px;
  margin: 0 0 9px;
}
.auth-form .field {
  margin-top: 20px;
}
.auth-form .btn-campus {
  width: 100%;
  margin-top: 25px;
  padding: 13px;
}
.auth-form .subtle {
  margin-top: 10px;
}
.auth-small {
  margin-top: 35px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.public-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 35px 20px;
}
.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.public-header img {
  width: 65px;
}
.photo-preview {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}
.mobile-menu {
  display: none;
}
.inline-error {
  margin-top: 16px;
  padding: 11px;
  color: #9b3943;
  background: #fff1f2;
  border-radius: 7px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 40px;
  }
  .hero {
    min-height: 245px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .content {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .columns {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 16px;
  }
  .hero img {
    margin-right: 0;
    width: 110px;
    height: 110px;
  }
}
@media (max-width: 1000px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .side-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-story {
    padding: 35px;
  }
  .auth-form-area {
    padding: 30px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 0 0 100vw #102b4066;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 69px;
    padding: 0 18px;
  }
  .breadcrumb-text {
    display: none;
  }
  .content {
    padding: 24px 18px;
  }
  .hero {
    padding: 25px;
    min-height: 220px;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero img {
    display: none;
  }
  .hero h2 {
    font-size: 29px;
  }
  .group-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading .btn-campus {
    padding: 9px 11px;
  }
  .side-panels {
    display: block;
  }
  .footer {
    flex-direction: column;
    gap: 6px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 24px;
  }
  .auth-quote {
    padding: 30px 0 10px;
  }
  .auth-quote h1 {
    font-size: 35px;
  }
  .auth-quote p,
  .auth-story-footer {
    display: none;
  }
  .auth-form-area {
    padding: 36px 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .dialog {
    padding: 22px;
  }
  .panel {
    padding: 19px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
