@font-face {
  font-family: Manrope;
  src: url(fonts/Manrope.ttf);
}
@font-face {
  font-family: Anton;
  src: url(fonts/Anton.ttf);
}
:root {
  font-family: Manrope, Arial, sans-serif;
  color: #10243a;
  background: #f5f7fa;
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button,
.button {
  background: #10243a;
  color: white;
  border: 1px solid #10243a;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover,
.button:hover {
  background: #254760;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: #123b56;
}
button.secondary,
.button.secondary {
  background: white;
  color: #123b56;
  border-color: #d9e1e8;
}
button.text {
  background: none;
  border: 0;
  color: #607085;
  padding: 8px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #d5dfe7;
  border-radius: 7px;
  background: white;
  padding: 12px;
  color: #10243a;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #b99a51;
  outline-offset: 2px;
}
textarea {
  resize: vertical;
  min-height: 78px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin: 16px 0 7px;
}
label.check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.5;
  font-weight: 500;
}
.check input {
  width: auto;
  margin-top: 3px;
  accent-color: #123b56;
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 8px 0 12px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
  margin: 5px 0 20px;
}
h3 {
  font-size: 17px;
  margin: 4px 0 12px;
}
p {
  line-height: 1.7;
}
small,
.muted {
  color: #697b90;
  line-height: 1.7;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6a7d91;
  font-weight: 800;
}
.layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: white;
  border-right: 1px solid #e1e6ec;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.brand img {
  width: 43px;
}
.brand b {
  font-size: 26px;
  letter-spacing: -1px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
}
.nav {
  display: grid;
  gap: 9px;
}
.nav a {
  padding: 11px 13px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 13px;
  color: #68788d;
}
.nav a.active {
  background: #edf3f7;
  color: #123b56;
  font-weight: 800;
}
.sidebar .bottom {
  margin-top: auto;
  border-top: 1px solid #e8ebee;
  padding-top: 20px;
}
.main {
  max-width: 1500px;
  width: 100%;
  padding: 40px 42px;
}
.top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 25px;
}
.status {
  font-size: 11px;
  padding: 7px 11px;
  border-radius: 30px;
  background: #e6edf2;
  color: #4d6377;
  white-space: nowrap;
}
.status.online {
  background: #e7f4eb;
  color: #286140;
}
.card {
  background: white;
  border: 1px solid #e1e6eb;
  border-radius: 12px;
  padding: 25px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 22px;
}
.project-card {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s;
}
.project-card:hover {
  transform: translateY(-3px);
}
.project-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #dcebf3;
}
.project-card .meta {
  padding: 17px 20px;
}
.project-card .placeholder {
  aspect-ratio: 16/9;
  background: #dcebf3 url(brand/background.jpg) center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  font-weight: 800;
  font-size: 22px;
}
.project-card h3 {
  overflow-wrap: anywhere;
}
.editor {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 25px;
  align-items: start;
}
.preview {
  padding: 0;
  overflow: hidden;
}
.preview img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #dcebf3;
}
.preview .caption {
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #708399;
}
.preview .empty {
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
  background: #dcebf3 url(brand/background.jpg) center/cover;
}
.mobile-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 30px 0;
}
.mobile-preview img {
  width: 260px;
  max-width: 50%;
  border-radius: 7px;
  box-shadow: 0 8px 22px #16354a20;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.actions button {
  flex: 1;
}
.banner {
  border: 1px solid #c8d8e5;
  border-radius: 9px;
  padding: 14px 18px;
  background: #edf4f9;
  margin-bottom: 24px;
  line-height: 1.6;
}
.error {
  background: #fff3ed;
  border-color: #efd2bd;
  color: #884527;
}
.auth {
  max-width: 440px;
  margin: 8vh auto;
  padding: 32px;
}
.auth .brand {
  margin-bottom: 30px;
}
.auth button[type='submit'] {
  width: 100%;
  margin-top: 23px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.portrait {
  width: 140px;
  height: 170px;
  object-fit: contain;
  border-radius: 9px;
  background: #dcebf3;
  margin: 18px 0;
}
.profile {
  max-width: 720px;
}
.empty-state {
  text-align: center;
  padding: 70px 25px;
}
.empty-state p {
  max-width: 390px;
  margin: 12px auto 25px;
}
.teacher-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #e5ebef;
  padding: 16px 0;
}
.teacher-row:last-child {
  border: 0;
}
.teacher-row p {
  margin: 3px 0;
}
.loading {
  padding: 80px;
  text-align: center;
  color: #687c90;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #10243a;
  color: white;
  padding: 14px 22px;
  border-radius: 9px;
  z-index: 10;
  max-width: 90vw;
  box-shadow: 0 5px 24px #10243a30;
}
#notice:empty {
  display: none;
}
hr {
  border: 0;
  border-top: 1px solid #e4e9ed;
  margin: 25px 0;
}
.wide {
  width: 100%;
}
.hint {
  font-size: 11px;
  margin: 8px 0;
}
.brand-lock {
  margin-top: 30px;
  padding: 20px;
  border-left: 3px solid #b99a51;
  background: #f2f6f8;
  line-height: 1.7;
}
.form-error {
  color: #a34027;
  margin-top: 15px;
  line-height: 1.6;
}
.line {
  display: flex;
  gap: 12px;
  align-items: center;
}
.line input {
  width: auto;
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 190px 1fr;
  }
  .main {
    padding: 30px 24px;
  }
  .editor {
    grid-template-columns: 1fr;
  }
  .sidebar {
    padding: 25px 14px;
  }
  .brand b {
    font-size: 23px;
  }
}
@media (max-width: 640px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 15px;
    gap: 15px;
    border-bottom: 1px solid #e1e6ec;
  }
  .sidebar .brand img {
    width: 32px;
  }
  .sidebar .brand b {
    font-size: 23px;
  }
  .sidebar .nav {
    display: flex;
    overflow: auto;
    gap: 3px;
  }
  .nav a {
    white-space: nowrap;
    padding: 9px;
  }
  .sidebar > .button,
  .sidebar .bottom {
    display: none;
  }
  .main {
    padding: 25px 16px;
  }
  .top {
    align-items: flex-start;
    gap: 10px;
  }
  h1 {
    font-size: 26px;
  }
  .top .status {
    font-size: 9px;
  }
  .card {
    padding: 20px;
  }
  .preview,
  .project-card {
    padding: 0;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .auth {
    margin: 35px 15px;
  }
  .mobile-preview {
    gap: 14px;
  }
  .actions {
    gap: 8px;
  }
  .actions button,
  .actions a {
    font-size: 12px;
    padding: 11px;
  }
  .teacher-row {
    align-items: flex-start;
  }
  .brand-lock {
    margin-top: 15px;
  }
}
h1 {
  overflow-wrap: anywhere;
}
.top > div {
  min-width: 0;
}
@media (max-width: 640px) {
  .sidebar .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    padding-top: 10px;
  }
  .sidebar .bottom p {
    display: none;
  }
  .sidebar .brand-lock {
    display: none;
  }
}
