:root {
  --blue: #2d78bd;
  --sky: #5a99bf;
  --page: #eaf4fc;
  --green: #2b8268;
  --amber: #a06a16;
  --red: #c34f45;
  --gray: #6f7880;
  --text: #111;
  --muted: #6f7880;
  --faint: #a0a8b0;
  --line: #eceff2;
  --soft: #f6f7f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

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

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

.top-line {
  height: 69px;
  background: var(--sky);
}

.header {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 69px;
  margin-top: -69px;
  padding: 0 18px;
  border-bottom: 0;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 214px;
}

.mark {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid #cfd7df;
  background: linear-gradient(135deg, #fff 0 50%, #eef8ed 50% 100%);
}

.mark:before,
.mark:after {
  content: "";
  position: absolute;
  left: 6px;
  width: 22px;
  height: 4px;
  border-radius: 2px;
}

.mark:before {
  top: 10px;
  background: #e45745;
  transform: rotate(-18deg);
}

.mark:after {
  top: 19px;
  background: #55a96b;
  transform: rotate(18deg);
}

.brand-text {
  line-height: 1.05;
}

.brand-name {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.brand-sub {
  display: block;
  max-width: 170px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 700;
  white-space: normal;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.84);
  white-space: nowrap;
}

.main-menu a {
  padding: 20px 0;
}

.main-menu a.active {
  color: #fff;
  font-weight: 800;
}

.search {
  position: relative;
  width: 236px;
  margin-left: auto;
}

.search input {
  width: 100%;
  height: 36px;
  padding: 0 13px 0 38px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #476273;
  outline: 0;
}

.search span {
  position: absolute;
  top: 8px;
  left: 12px;
  color: #4a718a;
  font-size: 18px;
}

.auth {
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.wrap {
  max-width: 900px;
  margin: 30px auto 0;
  padding: 0 14px 34px;
}

.start {
  width: auto;
  height: 37px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.main {
  min-width: 0;
}

.feed-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.feed-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select,
.action {
  border: 0;
  border-radius: 4px;
  background: #f0f0f0;
  color: #747b84;
  cursor: pointer;
}

.select {
  height: 36px;
  padding: 0 12px;
}

.menu-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
}

.menu-filter select {
  height: 32px;
  min-width: 132px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #476273;
  cursor: pointer;
  padding: 0 10px;
}

.material-list {
  display: grid;
  gap: 18px;
}

.material {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(90, 153, 191, 0.18);
}

.avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: #e5e9ef;
}

.avatar:before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}

.avatar.red {
  background: var(--red);
}

.avatar.blue {
  background: var(--blue);
}

.avatar.green {
  background: var(--green);
}

.avatar.amber {
  background: var(--amber);
}

.avatar.gray {
  background: var(--gray);
}

.pin,
.lock {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  line-height: 1;
}

.pin {
  right: -2px;
  top: -2px;
  width: 19px;
  height: 19px;
  background: #d95345;
  font-size: 11px;
}

.lock {
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  background: #8d9298;
  font-size: 10px;
}

.material-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.type {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.type.green {
  background: #e1f0eb;
  color: var(--green);
}

.type.blue {
  background: #e3eef8;
  color: var(--blue);
}

.type.amber {
  background: #f5ebd9;
  color: var(--amber);
}

.type.red {
  background: #f7e4e2;
  color: var(--red);
}

.type.gray {
  background: #edf0f2;
  color: var(--gray);
}

.title {
  display: block;
  margin: 0 0 5px;
  color: #000;
  font-size: 17px;
  line-height: 1.28;
}

.title:hover {
  color: var(--blue);
}

.byline {
  margin-bottom: 7px;
  color: #a1a8b0;
  font-size: 11px;
  font-weight: 700;
}

.excerpt {
  max-width: 690px;
  color: #89939d;
  font-size: 12px;
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.tag,
.tag-cloud a {
  padding: 3px 6px;
  border-radius: 3px;
  background: #e9e5de;
  color: #68635c;
  font-size: 10px;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.action {
  min-height: 28px;
  padding: 0 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.action:hover {
  background: var(--soft);
  color: #333;
}

.action.active {
  background: #e3eef8;
  color: var(--blue);
}

.action.solved {
  color: var(--green);
}

.empty {
  padding: 32px 0;
  color: var(--muted);
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: start center;
  padding: 72px 16px 16px;
  background: rgba(17, 24, 39, 0.28);
}

.modal {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  padding: 16px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(31, 42, 55, 0.18);
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal h2 {
  margin: 0;
  font-size: 18px;
}

.modal label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  border: 1px solid #dfe5eb;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
}

.modal input,
.modal select {
  height: 38px;
  padding: 0 10px;
}

.modal textarea {
  min-height: 96px;
  padding: 9px 10px;
  resize: vertical;
}

.icon-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: #f0f0f0;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(420px, calc(100vw - 36px));
  padding: 10px 12px;
  border-radius: 4px;
  background: #2c2c2c;
  color: #fff;
  box-shadow: 0 12px 28px rgba(31, 42, 55, 0.2);
}

@media (max-width: 760px) {
  .header {
    height: auto;
    flex-wrap: wrap;
    padding: 10px;
  }

  .brand {
    min-width: 0;
  }

  .main-menu {
    order: 2;
    width: 100%;
    gap: 14px;
    overflow-x: auto;
  }

  .search {
    width: 100%;
    order: 3;
  }

  .auth {
    margin-left: auto;
  }

  .wrap {
    margin-top: 18px;
  }

  .feed-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-left {
    width: 100%;
  }

  .inline-start {
    flex: 1;
  }

  .material-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tags {
    justify-content: flex-start;
  }

}
