/* STT Workspace V19: comfortable desktop reading and precise project editing. */

.project-edit-trigger {
  display: inline-grid;
  width: 27px;
  height: 27px;
  margin-left: 7px;
  place-items: center;
  vertical-align: middle;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #928b80;
  opacity: 0.72;
  transition: background 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, opacity 0.16s ease;
}

.project-edit-trigger:hover,
.project-edit-trigger:focus-visible {
  border-color: #ecd8cf;
  background: #fbf1ec;
  color: #be604a;
  opacity: 1;
}

.project-edit-trigger svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.project-identity-editor {
  margin: 19px 0 22px;
  padding: 16px;
  border: 1px solid #e9e4dc;
  border-radius: 12px;
  background: #fcfbf8;
}

.project-identity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.project-identity-heading h3 {
  margin: 0;
  color: #313632;
  font-size: 14px;
  font-weight: 760;
}

.project-identity-heading span {
  color: #8d8277;
  font-size: 10px;
  font-weight: 650;
}

.project-identity-form {
  display: grid;
  gap: 11px;
}

.project-identity-form label {
  display: grid;
  gap: 6px;
  color: #666d65;
  font-size: 11px;
  font-weight: 680;
}

.project-identity-form input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #e3ded5;
  border-radius: 8px;
  background: #fff;
  color: #2f332f;
  font-size: 13px;
}

.project-identity-form input:focus {
  border-color: #d28069;
  outline: 2px solid #ead4c944;
}

.project-identity-form button {
  min-height: 39px;
  font-size: 12px;
  font-weight: 720;
}

.project-identity-message {
  min-height: 0;
  color: #32755d;
  font-size: 11px;
}

.project-identity-message:empty {
  display: none;
}

.project-identity-message.is-error {
  color: #b94b3d;
}

@media (min-width: 901px) {
  .app-shell {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  main {
    padding: 34px clamp(30px, 2.4vw, 48px) 48px;
  }

  .sidebar {
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand .stt-brand-logo {
    width: 176px;
  }

  .sidebar nav > small {
    font-size: 10px;
  }

  .sidebar nav button {
    height: 45px;
    font-size: 13px;
  }

  .sidebar nav button em,
  .capacity > small,
  .profile small {
    font-size: 10px;
  }

  .capacity > div,
  .profile b {
    font-size: 12px;
  }

  .topbar small {
    font-size: 12px;
  }

  .topbar h1 {
    font-size: clamp(31px, 2.2vw, 39px);
    font-weight: 690;
  }

  .search {
    width: 290px;
    height: 43px;
  }

  .search input,
  .top-actions > button,
  .type-filters button {
    font-size: 12px;
  }

  .stats article {
    min-height: 112px;
    padding: 17px 19px;
  }

  .stats article > label {
    font-size: 11px;
    letter-spacing: 0.07em;
  }

  .stats article > div > b {
    font-size: 32px;
  }

  .stats article > div > em {
    font-size: 11px;
  }

  .project-panel > header {
    padding: 22px 23px 18px;
  }

  .project-panel > header h2 {
    font-size: 20px;
  }

  .project-panel > header p {
    font-size: 12px;
  }

  .project-panel th {
    height: 45px;
    font-size: 10.5px;
    letter-spacing: 0.045em;
  }

  .project-panel td {
    height: 90px;
    padding-top: 13px;
    padding-bottom: 13px;
    font-size: 12px;
  }

  .project-panel .project-name > i {
    width: 48px;
    height: 48px;
    font-size: 17px;
  }

  .project-panel .project-name > span > b {
    font-size: 15px;
    font-weight: 740;
    line-height: 1.4;
  }

  .project-panel .project-name .project-title {
    margin-top: 5px;
    color: #626762;
    font-size: 12.5px;
    font-weight: 610;
    line-height: 1.4;
  }

  .project-panel .assignee b,
  .project-panel .schedule-cell b {
    font-size: 13px;
    font-weight: 710;
  }

  .project-panel .assignee small,
  .project-panel .schedule-cell small {
    font-size: 11px;
    line-height: 1.4;
  }

  .project-panel .avatar {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }

  .project-panel .type-badge,
  .project-panel .feedback-count {
    font-size: 10.5px;
  }

  .project-order,
  .priority-tag,
  .mine-tag {
    font-size: 10px;
  }

  .project-panel .status.status-picker {
    min-width: 118px;
    height: 35px;
    font-size: 11.5px;
  }

  .project-panel .status:not(.status-picker) {
    min-width: 90px;
    height: 31px;
    font-size: 11px;
  }

  .order-controls button {
    width: 29px;
    height: 24px;
    font-size: 13px;
  }

  .calendar-heading h2 {
    font-size: 23px;
  }

  .calendar-legend span,
  .calendar-weekdays span,
  .calendar-actions button {
    font-size: 11px;
  }
}

@media (min-width: 1650px) {
  .project-panel .project-name > span > b {
    font-size: 16px;
  }

  .project-panel .project-name .project-title {
    font-size: 13px;
  }

  .project-panel .assignee b,
  .project-panel .schedule-cell b {
    font-size: 13.5px;
  }
}

@media (max-width: 760px) {
  .project-identity-editor {
    margin: 19px 0 22px;
    padding: 15px;
  }

  .project-identity-heading h3 {
    font-size: 15px;
  }

  .project-identity-form label {
    font-size: 12px;
  }

  .project-identity-form input {
    height: 44px;
    font-size: 15px;
  }

  .project-identity-form button {
    min-height: 44px;
    font-size: 13px;
  }
}
