@font-face {
  font-family: Inter;
  src: url('/site/visual-lab/assets/inter-cyr.woff2');
}
@font-face {
  font-family: Inter;
  src: url('/site/visual-lab/assets/inter-lat.woff2');
  unicode-range: U+0000-024F;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #191a1d;
  color: #e4e5e8;
  font:
    13px Inter,
    system-ui,
    sans-serif;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
}
button:hover {
  color: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid #c2d0db;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-size: 15px;
  font-weight: 550;
}
input {
  width: 100%;
  padding: 11px 12px;
  background: #202125;
  border: 1px solid #393b42;
  color: #e4e5e8;
  border-radius: 6px;
}
input::placeholder {
  color: #777b86;
}
.brand {
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 600;
}
.brand small {
  font-size: 10px;
  color: #838790;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 8px;
}
#login {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
#login form {
  width: min(340px, calc(100vw - 40px));
}
#login h1 {
  font-size: 20px;
  margin: 40px 0 26px;
}
#login label {
  display: block;
  color: #92959e;
  font-size: 12px;
  margin-bottom: 9px;
}
.primary {
  background: #d7dfe3;
  color: #22252a;
  border-radius: 6px;
  padding: 11px 16px;
}
.primary:hover {
  background: #f0f2f4;
  color: #22252a;
}
.primary:disabled {
  opacity: 0.5;
}
#login .primary {
  width: 100%;
  margin-top: 16px;
}
#login-error {
  color: #dbada8;
  min-height: 40px;
  margin-top: 14px;
  font-size: 12px;
}
header {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid #303238;
}
header > div {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #90959d;
  font-size: 11px;
}
#connection:before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #a7bbaa;
  border-radius: 50%;
  margin-right: 7px;
}
#connection.off:before {
  background: #c8aa80;
}
main {
  display: grid;
  grid-template-columns: 240px 300px minmax(0, 1fr);
  min-height: calc(100vh - 105px);
}
main > aside,
main > section {
  padding: 24px 18px;
  min-width: 0;
}
main > aside,
.stories-panel {
  border-right: 1px solid #303238;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 27px;
  margin-bottom: 20px;
  gap: 10px;
}
.heading > span {
  color: #838791;
  font-size: 11px;
}
.heading p {
  font-size: 10px;
  color: #828791;
  line-height: 1.7;
  margin-top: 8px;
  word-break: break-word;
}
#search-users {
  font-size: 11px;
  margin-bottom: 16px;
}
#users-list,
#stories-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.row {
  display: block;
  padding: 13px 11px;
  width: 100%;
  text-align: left;
  border-radius: 6px;
  border: 1px solid transparent;
}
.row:hover {
  background: #222429;
}
.row.selected {
  background: #2a2d33;
  border-color: #41454f;
}
.row strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.row small {
  display: block;
  font-size: 10px;
  color: #898f9a;
  line-height: 1.7;
  margin-top: 5px;
}
.empty {
  color: #777e89;
  line-height: 1.9;
  font-size: 12px;
  margin: 30px 8px;
}
.reader-panel {
  max-width: 1000px;
  padding: 26px 36px;
}
.reader-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.reader-header h2 {
  font-size: 23px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.reader-header p {
  color: #828c98;
  font-size: 11px;
  margin-top: 10px;
  line-height: 1.6;
}
.reader-header a {
  font-size: 11px;
  color: #aab7c7;
  white-space: nowrap;
}
.idea {
  font-size: 12px;
  line-height: 1.8;
  color: #a4adb9;
  margin: 22px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notice {
  font-size: 12px;
  line-height: 1.8;
  padding: 13px 15px;
  margin: 20px 0;
  background: #292d33;
  border: 1px solid #434b57;
  border-radius: 6px;
  color: #b4c0d0;
}
.notice.error {
  border-color: #674e4e;
  color: #d7adab;
}
.notice button {
  display: block;
  margin-top: 9px;
  text-decoration: underline;
}
.chapter-heading {
  font-size: 12px;
  margin: 26px 0 17px;
  padding-top: 22px;
  border-top: 1px solid #343941;
  color: #afb9c7;
}
.chapter-heading small {
  font-size: 10px;
  color: #818d9d;
  display: block;
  margin-top: 7px;
  font-weight: 400;
}
.scene {
  margin: 22px 0 30px;
}
.scene > small {
  display: block;
  color: #7d8b9c;
  font-size: 10px;
  margin-bottom: 12px;
}
.scene img {
  width: 100%;
  max-height: 270px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 16px;
  background: #252b32;
}
.scene p {
  font-size: 13px;
  line-height: 1.95;
  color: #d1d7df;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.choices {
  margin-top: 16px;
  border-left: 1px solid #424c58;
  padding-left: 14px;
}
.choice {
  font-size: 11px;
  color: #7e8b9c;
  line-height: 1.8;
  padding: 5px 0;
}
.choice.selected {
  color: #b5cfc1;
}
.scene-end {
  color: #99ae9d;
  font-size: 11px;
  margin-top: 15px;
}
details {
  padding-top: 16px;
  margin: 20px 0;
  border-top: 1px solid #343b44;
  color: #909dad;
}
summary {
  cursor: pointer;
  font-size: 11px;
}
details p {
  font-size: 11px;
  line-height: 1.85;
  white-space: pre-wrap;
  margin-top: 14px;
  overflow-wrap: anywhere;
}
.draft {
  padding: 13px;
  color: #959ead;
  font-size: 11px;
  line-height: 1.8;
  border: 1px dashed #434b55;
  border-radius: 6px;
  margin-top: 18px;
}
footer {
  padding: 13px 28px;
  border-top: 1px solid #303238;
  display: flex;
  justify-content: space-between;
  color: #666e7a;
  font-size: 9px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  background: #d7dfe3;
  color: #22252a;
  border-radius: 7px;
  font-size: 12px;
  z-index: 10;
  max-width: 90vw;
}
@media (max-width: 1050px) {
  main {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .stories-panel {
    border-right: 0;
  }
  .reader-panel {
    grid-column: 1/-1;
    border-top: 1px solid #303238;
    max-width: none;
    padding: 26px;
  }
  main > aside,
  .stories-panel {
    max-height: 350px;
    overflow: auto;
  }
  .scene img {
    max-height: 350px;
  }
}
@media (max-width: 560px) {
  header {
    padding: 0 18px;
    height: 57px;
  }
  header > div {
    gap: 15px;
    font-size: 10px;
  }
  .brand {
    font-size: 21px;
  }
  main {
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  }
  main > aside,
  main > section {
    padding: 20px 12px;
  }
  .row {
    padding: 11px 7px;
  }
  .row strong {
    font-size: 11px;
  }
  .row small {
    font-size: 9px;
  }
  .heading h1,
  .heading h2 {
    font-size: 12px;
  }
  #search-users {
    font-size: 10px;
    padding: 9px 8px;
  }
  .reader-panel {
    padding: 23px 18px;
  }
  .reader-header h2 {
    font-size: 20px;
  }
  .scene img {
    max-height: 220px;
  }
  .scene p {
    font-size: 12px;
  }
  footer {
    padding: 13px 18px;
    gap: 10px;
    line-height: 1.6;
  }
  #connection {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
