@font-face {
  font-family: Assistant;
  src: url("/assistant.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f1f5f8;
  color: #173248;
  font:
    18px/1.5 Assistant,
    Arial,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
a {
  color: #165c8d;
}
button {
  border: 1px solid #c5d2dd;
  background: white;
  color: #173248;
  padding: 9px 17px;
  border-radius: 9px;
  min-height: 44px;
  font-weight: 600;
}
button:hover:not(:disabled) {
  background: #eaf1f6;
}
button.primary {
  background: #174e76;
  color: white;
  border-color: #174e76;
}
button.primary:hover:not(:disabled) {
  background: #0e3655;
}
button.danger {
  color: #a12d35;
}
button.text {
  background: none;
  border-color: transparent;
}
button.small {
  padding: 6px 12px;
  font-size: 16px;
}
.muted {
  color: #5c7080;
}
.brand {
  font:
    600 24px/1.1 Arial,
    sans-serif;
  letter-spacing: -1px;
  direction: ltr;
  display: inline-block;
}
.brand span {
  font-weight: 400;
  color: #6f94b1;
}
.skip {
  position: fixed;
  top: -100px;
  right: 12px;
  padding: 10px;
  background: white;
  z-index: 100;
}
.skip:focus {
  top: 8px;
}
:focus-visible {
  outline: 3px solid #d89128;
  outline-offset: 3px;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: #123f64;
  color: #fff;
  padding: 70px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-story .brand span {
  color: #a3c3dd;
}
.login-story h1 {
  font-size: clamp(40px, 4.5vw, 72px);
  line-height: 1.12;
  margin: 70px 0 24px;
  font-weight: 600;
  max-width: 500px;
}
.login-story p {
  font-size: 22px;
  color: #d7e7f2;
  max-width: 400px;
}
.sample {
  height: 175px;
  border: 1px solid #ffffff40;
  border-radius: 14px;
  padding: 25px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  gap: 25px;
  background: #ffffff09;
}
.sample-play {
  font: 48px Arial;
  color: #a3c3dd;
}
.sample-lines {
  flex: 1;
}
.sample-lines i {
  display: block;
  height: 7px;
  background: #ffffff35;
  margin: 12px 0;
  border-radius: 8px;
}
.sample-lines i:nth-child(2) {
  width: 65%;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-card {
  width: 100%;
  max-width: 390px;
}
.login-card h2 {
  font-size: 36px;
  margin: 0 0 10px;
}
.login-card p {
  margin: 0 0 30px;
}
.login-card .primary {
  width: 100%;
  margin-top: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.field label {
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #bacbd7;
  border-radius: 8px;
  background: #fff;
  color: #173248;
  min-height: 46px;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
.field small {
  color: #5c7080;
  font-size: 15px;
}
.ltr {
  direction: ltr;
  text-align: right;
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-left: 1px solid #d9e2e9;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  font-size: 23px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav {
  border: 0;
  text-align: right;
  padding: 13px 15px;
  background: transparent;
  color: #5c7080;
}
.nav.active {
  background: #e8f0f6;
  color: #123f64;
}
.account {
  margin-top: auto;
  font-size: 16px;
  border-top: 1px solid #e3eaf0;
  padding-top: 22px;
  overflow-wrap: anywhere;
}
.account strong {
  display: block;
  font-size: 19px;
}
.account button {
  margin: 10px 0 0;
  padding: 6px 9px;
}
.workspace {
  padding: 36px clamp(20px, 4vw, 66px);
  min-width: 0;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #d3dee7;
  padding-bottom: 20px;
  margin-bottom: 35px;
  font-size: 16px;
}
.topline time {
  color: #5c7080;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 0 30px;
}
.intro h1 {
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 10px;
}
.intro p {
  margin: 0;
  color: #5c7080;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.search {
  padding: 10px 15px;
  border: 1px solid #c5d2dd;
  background: white;
  border-radius: 9px;
  min-width: 250px;
}
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.project-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d9e3eb;
  text-align: right;
  padding: 0;
  width: 100%;
  display: block;
}
.project-card:hover:not(:disabled) {
  background: white;
  border-color: #91afc5;
}
.project-visual {
  height: 120px;
  background: #e0ebf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px;
  color: #325d7d;
}
.project-visual .monogram {
  font-size: 48px;
  font-weight: 600;
  opacity: 0.65;
}
.project-visual .folder {
  font: 52px Arial;
  opacity: 0.6;
}
.project-body {
  padding: 22px;
}
.project-body h2 {
  margin: 7px 0;
  font-size: 25px;
}
.project-body p {
  font-size: 17px;
  font-weight: 400;
  min-height: 28px;
  margin: 0 0 20px;
  color: #5c7080;
}
.project-foot {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 400;
  color: #5c7080;
  border-top: 1px solid #e7edf2;
  padding-top: 15px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #e7eef4;
  color: #35566c;
  font-size: 14px;
  white-space: nowrap;
}
.badge.approved {
  color: #216446;
  background: #e1f1e8;
}
.badge.changes {
  color: #895016;
  background: #fcf0dd;
}
.badge.failed {
  color: #a12d35;
  background: #fce9e9;
}
.badge.released {
  color: #225984;
  background: #dcecf8;
}
.empty {
  padding: 70px 24px;
  text-align: center;
  border: 1px dashed #b7cbd9;
  border-radius: 14px;
  background: #ffffff70;
}
.empty h2 {
  margin: 8px 0;
  font-size: 28px;
}
.empty p {
  color: #5c7080;
  margin: 0 auto 20px;
  max-width: 500px;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}
.media-card {
  background: white;
  overflow: hidden;
  border: 1px solid #d9e3eb;
  border-radius: 12px;
  padding: 0;
  text-align: right;
}
.media-thumb {
  height: 210px;
  background: #dfe7ee;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.media-thumb img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.media-thumb .play {
  position: absolute;
  background: #123f64de;
  color: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font: 20px Arial;
}
.media-info {
  padding: 18px;
}
.media-info h2 {
  font-size: 23px;
  margin: 8px 0 12px;
}
.media-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 15px;
}
.back {
  margin-bottom: 22px;
}
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  gap: 26px;
}
.review-stage {
  background: #122331;
  border-radius: 12px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.review-stage video,
.review-stage img {
  max-width: 100%;
  max-height: 65vh;
  display: block;
}
.review-stage .muted {
  color: #d6e6f0;
  padding: 30px;
}
.review-bar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 18px;
  border-radius: 0 0 10px 10px;
  flex-wrap: wrap;
}
.review-bar select {
  padding: 8px;
  border: 1px solid #bacbd7;
  border-radius: 6px;
  background: white;
  color: #173248;
  max-width: 100%;
}
.review-details {
  margin-top: 22px;
  padding: 22px;
  background: #fff;
  border-radius: 12px;
}
.review-details h2 {
  font-size: 22px;
  margin: 0 0 12px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lock-note {
  padding: 14px 0;
  color: #5c7080;
  font-size: 16px;
}
.comments {
  background: #fff;
  border: 1px solid #dbe4eb;
  border-radius: 12px;
  padding: 22px;
  align-self: start;
}
.comments h2 {
  font-size: 24px;
  margin: 0 0 20px;
}
.comment-list {
  max-height: 420px;
  overflow: auto;
}
.comment {
  border-bottom: 1px solid #e7edf2;
  padding: 14px 0;
  overflow-wrap: anywhere;
}
.comment p {
  white-space: pre-wrap;
  font-size: 17px;
  margin: 7px 0;
}
.comment small {
  font-size: 13px;
  color: #5c7080;
}
.comment-author {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}
.comment-form {
  margin-top: 22px;
}
.comment-form .field {
  margin-bottom: 10px;
}
.clients {
  display: grid;
  gap: 12px;
}
.client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid #dbe4eb;
  background: white;
  border-radius: 10px;
}
.client-row h2 {
  font-size: 22px;
  margin: 0;
}
.client-row p {
  margin: 4px 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.client-row.inactive {
  opacity: 0.65;
}
dialog {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 20px 90px #102d4850;
  width: min(540px, calc(100% - 30px));
  padding: 28px;
  color: #173248;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #102d4870;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 28px;
  margin: 0;
}
.dialog-head button {
  font-size: 22px;
  padding: 0 10px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}
.error {
  color: #a12d35;
  font-size: 16px;
  min-height: 24px;
}
.hint {
  font-size: 16px;
  color: #5c7080;
}
.file-input {
  border: 1px dashed #98b3c7;
  border-radius: 10px;
  padding: 24px;
  background: #f1f6fa;
}
.progress {
  width: 100%;
  height: 16px;
  accent-color: #174e76;
}
.download {
  display: inline-block;
  background: #174e76;
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 9px;
}
.storage {
  font-size: 14px;
  color: #5c7080;
}
.loading {
  padding: 50px;
  text-align: center;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: calc(100vw - 48px);
  padding: 0;
  z-index: 200;
  background: #173248;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 30px #123f6420;
}
#notice.show {
  padding: 14px 22px;
}
#notice.error {
  background: #922f38;
  color: #fff;
}
footer {
  margin-top: 50px;
  color: #687f90;
  font-size: 14px;
}
summary {
  cursor: pointer;
  padding: 8px 0;
  font-size: 16px;
}
.nowrap {
  white-space: nowrap;
}
.admin-note {
  border-right: 3px solid #9bbbd2;
  padding-right: 15px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 1100px) {
  .review-layout {
    grid-template-columns: 1fr;
  }
  .comments {
    width: 100%;
  }
  .comment-list {
    max-height: 320px;
  }
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 14px;
  }
  .workspace {
    padding: 26px;
  }
  .intro h1 {
    font-size: 32px;
  }
}
@media (max-width: 700px) {
  .login {
    display: block;
  }
  .login-story {
    padding: 30px;
    min-height: 230px;
  }
  .login-story h1 {
    font-size: 38px;
    margin: 30px 0 15px;
  }
  .login-story p,
  .sample,
  .login-story > small {
    display: none;
  }
  .login-panel {
    padding: 35px 24px;
  }
  .login-card h2 {
    font-size: 29px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 18px 20px;
    gap: 15px;
    border-bottom: 1px solid #d9e3eb;
  }
  .sidebar .brand {
    font-size: 22px;
  }
  .sidebar nav {
    display: flex;
    gap: 8px;
  }
  .nav {
    padding: 8px 14px;
  }
  .account {
    position: absolute;
    left: 18px;
    top: 10px;
    border: 0;
    margin: 0;
    padding: 0;
    font-size: 14px;
  }
  .account strong {
    font-size: 16px;
  }
  .account .email,
  .account .storage,
  .account .password-btn {
    display: none;
  }
  .account button {
    margin: 0;
    min-height: 34px;
    font-size: 14px;
  }
  .workspace {
    padding: 22px 18px;
  }
  .topline {
    margin-bottom: 24px;
    padding-bottom: 12px;
    font-size: 14px;
  }
  .intro {
    align-items: flex-start;
  }
  .intro h1 {
    font-size: 29px;
  }
  .intro p {
    font-size: 17px;
  }
  .intro > button {
    font-size: 16px;
    padding: 8px 12px;
    white-space: nowrap;
  }
  .search {
    width: 100%;
    min-width: 0;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .project-visual {
    height: 92px;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .media-thumb {
    height: 155px;
  }
  .media-info {
    padding: 12px;
  }
  .media-info h2 {
    font-size: 19px;
  }
  .media-meta {
    flex-wrap: wrap;
  }
  .badge {
    font-size: 13px;
    padding: 3px 7px;
  }
  .review-stage {
    min-height: 240px;
  }
  .review-bar {
    padding: 12px;
  }
  .review-stage video,
  .review-stage img {
    max-height: 60vh;
  }
  .review-layout {
    gap: 18px;
  }
  .client-row {
    align-items: flex-start;
    padding: 18px;
    flex-direction: column;
    gap: 10px;
  }
  .client-row .actions {
    width: 100%;
  }
  footer {
    margin-top: 35px;
  }
  .empty {
    padding: 45px 20px;
  }
  .comments {
    padding: 18px;
  }
  .topline time {
    display: none;
  }
}
@media (max-width: 700px) {
  .sidebar > .brand {
    align-self: flex-start;
    max-width: 55%;
  }
  .account {
    max-width: 40%;
  }
  .account strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.gallery-toolbar select {
  padding: 9px 12px;
  border: 1px solid #b8cbd9;
  border-radius: 8px;
  background: white;
  color: #173248;
  max-width: 100%;
}
.gallery-section {
  margin: 36px 0 45px;
}
.section-title {
  font-size: 27px;
  font-weight: 600;
  border-bottom: 1px solid #cbd9e3;
  padding-bottom: 14px;
  margin-bottom: 24px;
}
.media-card h3 {
  font-size: 24px;
  line-height: 1.25;
  margin: 14px 0;
}
.media-description {
  font-size: 17px;
  color: #5c7080;
  line-height: 1.6;
  white-space: pre-line;
  min-height: 54px;
}
.media-thumb.video-thumb {
  height: auto;
  background: #142937;
}
.video-thumb.portrait {
  aspect-ratio: 9/16;
  max-height: 480px;
}
.video-thumb.landscape {
  aspect-ratio: 16/9;
}
.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.image-open {
  padding: 0;
  border: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
}
.heart {
  font:
    29px/1 Arial,
    sans-serif;
  min-width: 44px;
  min-height: 44px;
  padding: 5px;
  border: 1px solid #c8d7e1;
  border-radius: 50%;
  color: #5d7587;
}
.heart.liked {
  color: #aa284a;
  background: #fff0f4;
  border-color: #e5b7c4;
}
.review-link {
  width: 100%;
  margin-top: 18px;
  background: #f2f6f9;
  font-size: 16px;
}
@media (max-width: 700px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
  .video-thumb.portrait {
    max-height: 65vh;
  }
  .gallery-toolbar {
    gap: 9px;
  }
  .gallery-toolbar select {
    width: 100%;
  }
  .section-title {
    font-size: 23px;
  }
  .media-description {
    min-height: 0;
  }
  .media-card h3 {
    font-size: 24px;
  }
}
