/* STT Workspace Polish V25 */

/* ---------------------------------------------------------
   1. Sidebar brand/tagline: fit cleanly inside the dark rail.
   --------------------------------------------------------- */
.sidebar .brand {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.sidebar .brand .stt-brand-logo {
  max-width: 100% !important;
}

.sidebar .brand::after {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  white-space: nowrap !important;
  font-size: 7px !important;
  letter-spacing: .075em !important;
  line-height: 1.28 !important;
}

/* Slightly more room on normal desktop without changing main layout. */
@media (min-width: 901px) {
  .sidebar .brand {
    padding-right: 2px !important;
  }
}

/* ---------------------------------------------------------
   2. Project pencil: always aligned right beside the name.
   --------------------------------------------------------- */
.project-panel .project-name > span > b,
#project-rows .project-name > span > b {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  max-width: 100% !important;
}

.project-panel .project-edit-trigger,
#project-rows .project-edit-trigger {
  flex: 0 0 auto !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  margin: 0 0 0 3px !important;
  padding: 0 !important;
  vertical-align: middle !important;
  transform: none !important;
}

/* If an old layout put priority/edit elements in the same heading,
   keep the pencil immediately after the name and let badges sit below. */
.project-panel .project-name > span {
  min-width: 0 !important;
}

.project-panel .project-name .priority-tag,
#project-rows .project-name .priority-tag {
  vertical-align: middle !important;
}

/* ---------------------------------------------------------
   3. Member rename controls.
   --------------------------------------------------------- */

/* Hide the old text-style V20 button if it happens to appear. */
#team-list .team-name-edit-v20 {
  display: none !important;
}

.stt-v25-member-name-line {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  max-width: 100%;
}

.stt-v25-member-edit {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  min-width: 29px;
  min-height: 29px;
  padding: 0;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #938b81;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.stt-v25-member-edit:hover,
.stt-v25-member-edit:focus-visible {
  color: #bd6149;
  background: #fbf1ec;
  border-color: #ecd8cf;
  outline: none;
}

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

/* Modal */
.stt-v25-member-overlay {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(21, 27, 23, .64);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.stt-v25-member-overlay[hidden] {
  display: none !important;
}

.stt-v25-member-modal {
  width: min(450px, 100%);
  padding: 26px;
  border: 1px solid #e2dcd4;
  border-radius: 20px;
  background: #fbf8f2;
  box-shadow: 0 28px 80px rgba(0,0,0,.22);
  color: #252a26;
}

.stt-v25-member-modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.stt-v25-member-modal h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 760;
}

.stt-v25-member-modal .sub {
  margin: 6px 0 0;
  color: #7c817c;
  font-size: 12.5px;
  line-height: 1.45;
}

.stt-v25-member-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid #ded8cf;
  border-radius: 50%;
  background: #fff;
  color: #5e625e;
  font-size: 22px;
  cursor: pointer;
}

.stt-v25-member-modal label {
  display: grid;
  gap: 8px;
  color: #555b56;
  font-size: 12.5px;
  font-weight: 720;
}

.stt-v25-member-modal input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid #ddd6cc;
  border-radius: 11px;
  background: #fff;
  color: #262b27;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.stt-v25-member-modal input:focus {
  border-color: #cf836d;
  box-shadow: 0 0 0 3px rgba(207,131,109,.14);
}

.stt-v25-member-email {
  margin: 10px 0 0;
  color: #8b8e89;
  font-size: 11.5px;
}

.stt-v25-member-save {
  width: 100%;
  min-height: 48px;
  margin-top: 17px;
  border: 0;
  border-radius: 11px;
  background: #df704e;
  color: #fff;
  font-weight: 780;
  cursor: pointer;
}

.stt-v25-member-save:disabled {
  opacity: .65;
  cursor: wait;
}

.stt-v25-member-message {
  min-height: 19px;
  margin: 10px 0 0;
  color: #a94b39;
  font-size: 12px;
}

body.stt-v25-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .stt-v25-member-overlay {
    align-items: end;
    padding: 0;
  }

  .stt-v25-member-modal {
    width: 100%;
    border-radius: 22px 22px 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  }
}