
/* All selectors prefixed with .cabinet__ */

:root {
  --cabinet-dark: #2c374a;
  --cabinet-blue: #4680c2;
  --cabinet-green: #53a351;
  --cabinet-light-blue: #e0e9f8;
  --cabinet-border: #dfdfdf;
  --cabinet-bg: #f3f6fc;
}

/* ========================================
   LAYOUT
   ======================================== */

.cabinet {
  color: var(--cabinet-dark);
}


.cabinet__left-sub {
  margin-bottom: 16px;
}

/* ========================================
   PANEL (profile + stats card)
   ======================================== */

.cabinet__panel {
  background: #fff;
  border: 1px solid var(--cabinet-border);
  border-radius: 16px;
  padding: 20px 10px;
  margin-bottom: 16px;
}

/* ========================================
   PROFILE BLOCK
   ======================================== */

.cabinet__profile {
  margin-bottom: 20px;
}

.cabinet__profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cabinet__avatar {
  flex-shrink: 0;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cabinet-light-blue);
}

.cabinet__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.cabinet__profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cabinet__profile-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--cabinet-dark);
  line-height: 1.1;
}

.cabinet__profile-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cabinet__rating-score {
  font-size: 16px;
  color: var(--cabinet-blue);
  line-height: 1.1;
}

.cabinet__stars { display: flex; gap: 0; color: #f0a962; font-size: 18px; line-height: 1;}
.cabinet__stars svg.profile_star {height: 20px; width: 20px; }
.cabinet__stars svg.profile_star path {fill: #F2A13C;}

.cabinet__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cabinet__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 25px;
  font-size: 12px;
  color: #fff;
  line-height: 1.1;
  font-weight: 400;
}

.cabinet__badge--pro {
  background: #ed654e;
}

.cabinet__badge--club {
  background: #f0a962;
}

.cabinet__badge--special {
  background: #a987b1;
}

.cabinet__profile-link {
  display: block;
  font-size: 16px;
  color: var(--cabinet-blue);
  text-decoration: underline;
  line-height: 1.1;
}

.cabinet__profile-link:hover {
  color: #365f8f;
  text-decoration: underline;
}

/* ========================================
   STATS BLOCKS
   ======================================== */

.cabinet__stats {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cabinet__stats-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cabinet__stats-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--cabinet-dark);
  margin: 0;
  line-height: 1.1;
}

.cabinet__stats-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cabinet__stats-rows--sm .cabinet__stats-row {
  font-size: 14px;
}

.cabinet__stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  line-height: 1.3;
}

.cabinet__stats-label {
  color: var(--cabinet-blue);
  text-decoration: underline;
}

.cabinet__stats-label:hover {
  color: #365f8f;
}

.cabinet__stats-value {
  color: var(--cabinet-dark);
  white-space: nowrap;
  text-align: right;
}

.cabinet__stats-text {
  color: var(--cabinet-dark);
}

/* Work / Reputation 2-column mini layout */
.cabinet__work-rep {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cabinet__work-col {
  flex: 0 0 calc(50% - 5px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cabinet__work-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--cabinet-dark);
  margin: 0;
  line-height: 1.1;
}



.cabinet__box {
  border-radius: 20px;
  padding: 20px;
}

.cabinet__box--bg {
  background: rgba(243, 246, 252, 0.8);
}

.cabinet__box--border {
  border: 1px solid var(--cabinet-blue);
}

.cabinet__box-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--cabinet-dark);
  text-align: center;
  margin: 0 0 10px;
  line-height: 1.1;
}

/* Education list */
.cabinet__edu-list {
  list-style: decimal;
  padding-left: 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cabinet__edu-list li {
  font-size: 16px;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style-position: outside;
}

.cabinet__edu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.cabinet__edu-item a {
  color: var(--cabinet-blue);
  text-decoration: underline;
}

.cabinet__edu-item a:hover {
  color: #365f8f;
}

.cabinet__edu-item span {
  color: rgba(44, 55, 74, 0.35);
}
.cabinet__edu-item .cabinet__stats-label-before {text-align: end; color: var(--cabinet-blue); text-decoration: underline;}
.cabinet__edu-item .cabinet__stats-label-before:hover {cursor: pointer;}

.cabinet__edu-checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--cabinet-blue);
  border-radius: 3px;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.cabinet__edu-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--cabinet-blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Tariff block */
.cabinet__tariff-subtitle {
  font-size: 16px;
  color: var(--cabinet-dark);
  margin: 0 0 6px;
  line-height: 1.1;
}

.cabinet__tariff-date {
  font-size: 16px;
  font-weight: 600;
  color: var(--cabinet-blue);
  margin: 0 0 6px;
  line-height: 1.1;
}

.cabinet__tariff-note {
  font-size: 16px;
  color: var(--cabinet-dark);
  margin: 0 0 22px;
  line-height: 1.1;
}

.cabinet__tariff-section-title {
  font-size: 16px;
  color: var(--cabinet-dark);
  margin: 0 0 6px;
  line-height: 1.1;
}

.cabinet__tariff-used-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--cabinet-dark);
  margin: 0 0 6px;
  line-height: 1.1;
}

.cabinet__tariff-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: var(--cabinet-dark);
  margin-top: 6px;
  line-height: 1.1;
}

.cabinet__tariff-link {
  display: block;
  font-size: 14px;
  color: var(--cabinet-blue);
  text-decoration: underline;
  margin-top: 6px;
  line-height: 1.3;
}

.cabinet__tariff-link:hover {
  color: #365f8f;
}

/* Pending tariff */
.cabinet__pending-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 16px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.cabinet__pending-name {
  color: var(--cabinet-dark);
  flex: 1;
}

.cabinet__pending-date {
  font-weight: 600;
  color: var(--cabinet-blue);
  white-space: nowrap;
}

.cabinet__pending-desc {
  font-size: 14px;
  color: var(--cabinet-dark);
  line-height: 1.1;
  margin: 0;
}

/* Profile views chipsa */
.cabinet__chipsa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(83, 163, 81, 0.04);
  border: 1px solid rgba(83, 163, 81, 0.5);
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 16px;
  line-height: 1.1;
}

.cabinet__chipsa-label {
  color: var(--cabinet-dark);
  font-weight: 400;
}

.cabinet__chipsa-value {
  color: var(--cabinet-green);
  font-weight: 600;
}

/* ========================================
   MENU (accordion)
   ======================================== */

.cabinet__menu {
  background: #fff;
  border: 1px solid var(--cabinet-blue);
  border-radius: 20px;
  padding: 16px;
}

.cabinet__menu-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--cabinet-dark);
  margin: 0 0 15px;
  line-height: 1.2;
}

.cabinet__menu-group {
  margin-bottom: 10px;
}

.cabinet__menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 20px;
  color: var(--cabinet-blue);
  line-height: 1.3;
  user-select: none;
  border: 1px solid var(--cabinet-blue);
  background: #fff;
  transition: background 0.15s;
}

.cabinet__menu-group--open .cabinet__menu-header {
  border-color: transparent;
  background: var(--cabinet-light-blue);
}

.cabinet__menu-arrow {
  flex-shrink: 0;
  width: 12px;
  height: 8px;
  transition: transform 0.2s;
}

.cabinet__menu-group--open .cabinet__menu-arrow {
  transform: rotate(180deg);
}

.cabinet__menu-body {
  padding: 6px 20px 0;
}

.cabinet__menu-items {
  list-style: decimal;
  padding-left: 24px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cabinet__menu-items li { font-size: 16px; line-height: 1.3;}
.cabinet__menu-items li:not(.c_2c374a59) { color: var(--cabinet-blue);}
.cabinet__menu-items li.li_active::marker { color: var(--cabinet-dark, #22447a); text-decoration: underline; font-weight: 700;}

.cabinet__menu-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cabinet__menu-item-row a, .cabinet__menu-item-row .person-new-page {
  color: var(--cabinet-blue);
  text-decoration: underline;
}

.cabinet__menu-item-row a:hover {
  color: #365f8f;
}
.cabinet__menu-item-row .person-new-page:hover {cursor: pointer; color: #365f8f;}

.cabinet__menu-checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0 0 0 8px;
  border: 1px solid #2c374a;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.cabinet__menu-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 11px;
  border: solid #2c374a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cabinet__menu-badge {
  color: var(--cabinet-dark);
  font-size: 16px;
  text-align: right;
  white-space: nowrap;
  margin-left: 8px;
}

.cabinet__menu-badge--new {
  color: var(--cabinet-blue);
}



.cabinet__collab-title {
  font-size: 46px;
  font-weight: 600;
  color: var(--cabinet-dark);
  line-height: 1.05;
  margin: 0 0 20px;
}

.cabinet__collab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.cabinet__collab-header .cabinet__collab-title {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.cabinet__collab-header .cabinet__collab-add-btn {
  flex: 0 0 auto;
  width: auto;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 22px;
  white-space: nowrap;
  font-size: 17px;
}

.cabinet__collab-form--hidden {
  display: none;
}

.cabinet__collab-form {
  margin-top: 24px;
  margin-bottom: 24px;
}

/* Tabs */
.cabinet__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.cabinet__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 15px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--cabinet-blue);
  background: #fff;
  border: 1px solid var(--cabinet-blue);
  cursor: pointer;
  line-height: 1.1;
  transition: background 0.15s;
}

.cabinet__tab--active {
  background: var(--cabinet-light-blue);
  border-color: transparent;
}

.cabinet__tab:hover:not(.cabinet__tab--active) {
  background: rgba(224, 233, 248, 0.5);
}

/* Tab panel */
.cabinet__tab-panel {
  display: none;
}

.cabinet__tab-panel--active {
  display: block;
}

/* Description */
.cabinet__desc {
  font-size: 16px;
  color: var(--cabinet-dark);
  line-height: 1.1;
  margin-bottom: 20px;
}

/* ========================================
   ADD FORM
   ======================================== */

.cabinet__collab-form {
  background: var(--cabinet-light-blue);
  border-radius: 20px;
  padding: 30px 25px 40px;
  margin-bottom: 20px;
  overflow: visible;
}

.cabinet__form-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--cabinet-blue);
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.2;
}

.cabinet__form-row {
  display: flex;
  gap: 7px;
  margin-bottom: 15px;
}

.cabinet__collab-form .cabinet__form-row:last-child {
  margin-bottom: 0;
}

.cabinet__form-row .cabinet__input {
  flex: 1;
  margin-bottom: 0;
}

.cabinet__form-row .cabinet__btn--submit {
  flex: 1;
  width: auto;
  min-width: 0;
  margin-bottom: 0;
}

.cabinet__collab-form > .cabinet__input {
  margin-bottom: 15px;
}

.cabinet__input {
  display: flex;
  background: #fff;
  border-radius: 20px;
  font-size: 16px;
  color: rgba(44, 55, 74, 0.7);
  margin-bottom: 0;
  border: none;
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.cabinet__input:not(.cabinet__input--textarea) {
  align-items: stretch;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  padding: 0 16px;
}

.cabinet__input--select {
  cursor: pointer;
}

.cabinet__input--error {
  box-shadow: inset 0 0 0 2px #e45757;
}

.cabinet__input--error .cabinet__select-label,
.cabinet__input--error input,
.cabinet__input--error textarea {
  color: #a73030;
}

.cabinet__form-message {
  margin-top: 12px;
  color: #a73030;
  font-size: 14px;
  line-height: 1.35;
  padding-left: 4px;
}

.cabinet__input:has(input[type="text"]):not(.cabinet__input--select) {
  cursor: text;
}

.cabinet__input--textarea {
  align-items: stretch;
  flex-direction: column;
  min-height: 108px;
  height: auto;
  max-height: none;
  padding: 16px;
  cursor: text;
}

.cabinet__input select,
.cabinet__input input,
.cabinet__input textarea {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 16px;
  color: rgba(44, 55, 74, 0.7);
  font-family: inherit;
  resize: none;
  line-height: 22px;
}

.cabinet__input:not(.cabinet__input--textarea) select:not(.cabinet__select-native),
.cabinet__input:not(.cabinet__input--textarea) input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  margin: 0;
  align-self: stretch;
}

.cabinet__input select:not(.cabinet__select-native) {
  cursor: pointer;
  padding-right: 28px;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.cabinet__input select:not(.cabinet__select-native)::-ms-expand {
  display: none;
}

.cabinet__select-toggle {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  line-height: 22px;
  box-shadow: none !important;
  cursor: pointer;
}

.cabinet__select-toggle.dropdown-toggle::after {
  display: none;
}

.cabinet__select-toggle:focus {
  outline: none;
}

.cabinet__select-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cabinet__select-label--placeholder {
  color: rgba(44, 55, 74, 0.55);
}

.cabinet__collab-form .cabinet__dropdown-menu {
  margin-top: 0.35rem;
  padding: 0.35rem 0;
  border: 1px solid rgba(44, 55, 74, 0.12);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(44, 55, 74, 0.12);
  max-height: min(320px, calc(100vh - 140px));
  overflow-y: auto;
}

.cabinet__collab-form .cabinet__dropdown-item {
  padding: 0.55rem 1rem;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(44, 55, 74, 0.9);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.cabinet__collab-form .cabinet__dropdown-item:hover,
.cabinet__collab-form .cabinet__dropdown-item:focus {
  background: var(--cabinet-light-blue);
  color: var(--cabinet-dark);
  outline: none;
}

.cabinet__collab-form .cabinet__dropdown-item.active {
  background: rgba(224, 233, 248, 0.85);
  color: var(--cabinet-blue);
  font-weight: 500;
}

.cabinet__collab-form .cabinet__dropdown-divider {
  margin: 0.35rem 0;
  border-top-color: rgba(44, 55, 74, 0.12);
}

.cabinet__collab-form .cabinet__dropdown-group-title {
  margin: 0.35rem 0.5rem 0.2rem;
  padding: 0.3rem 0.6rem;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(44, 55, 74, 0.78);
  background: rgba(224, 233, 248, 0.65);
  border-radius: 8px;
  pointer-events: none;
}

.cabinet__collab-form .cabinet__dropdown-field-title {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -0.35rem 0 0.25rem;
  padding: 0.45rem 1rem 0.4rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(44, 55, 74, 0.52);
  border-radius: 0;
  border-bottom: 1px solid rgba(44, 55, 74, 0.08);
  background: rgba(255, 255, 255, 0.94);
  text-transform: uppercase;
}

.cabinet__select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.cabinet__input-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 12px;
  height: 8px;
  margin-left: 0;
  cursor: pointer;
}

.cabinet__btn--submit {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cabinet-green);
  color: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  width: 100%;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  align-self: center;
  flex-shrink: 0;
  transition: background 0.15s;
  line-height: 22px;
  box-sizing: border-box;
}

.cabinet__btn--submit:hover {
  background: #469644;
  color: #fff;
}

/* ========================================
   COLLABORATION CARD
   ======================================== */

.cabinet__card {
  background: #fff;
  border: 1px solid var(--cabinet-border);
  border-radius: 20px;
  padding: 24px 25px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card__completed {
  opacity: 0.6; 
}

.cabinet__card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.cabinet__card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cabinet__card-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cabinet-light-blue);
}

.cabinet__card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.cabinet__card-author-name {
  font-size: 16px;
  color: var(--cabinet-dark);
  line-height: 1.2;
  white-space: nowrap;
}

.cabinet__card-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cabinet__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 25px;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.cabinet__label--solid {
  background: var(--cabinet-blue);
  color: #fff;
}

.cabinet__label--outline {
  border: 1px solid var(--cabinet-blue);
  color: rgba(45, 55, 74, 0.8);
}

.cabinet__label--light {
  background: var(--cabinet-light-blue);
  color: var(--cabinet-dark);
}

.cabinet__label--outline-green {
  border: 1px solid var(--cabinet-green);
  color: rgba(45, 55, 74, 0.8);
}

.cabinet__label--outline-border {
  border: 1px solid var(--cabinet-light-blue);
  color: rgba(45, 55, 74, 0.8);
}

.cabinet__card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--cabinet-dark);
  line-height: 1.2;
  margin: 0;
}

.cabinet__card-reward {
  font-size: 16px;
  font-weight: 500;
  color: var(--cabinet-green);
  line-height: 1.2;
  margin: 0;
}

.cabinet__card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.cabinet__card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.cabinet__card-body {
  font-size: 16px;
  color: rgba(45, 55, 74, 0.8);
  line-height: 1.4;
  margin: 0;
}

.cabinet__card-body--extra {
  color: var(--cabinet-dark);
}

.cabinet__card-extra {
  width: 100%;
  padding-top: 2px;
}

.cabinet__card-more {
  display: block;
  color: var(--cabinet-blue);
  text-decoration: underline;
  font-size: 16px;
  margin-top: 0;
  line-height: 1.4;
}

.cabinet__card-more:hover {
  color: #365f8f;
}

.cabinet__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.cabinet__btn--replies {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cabinet-green);
  color: #fff;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  min-width: 200px;
  line-height: 1.1;
  transition: background 0.15s;
  white-space: nowrap;
}

.cabinet__btn--replies:hover {
  background: #469644;
  color: #fff;
}

.cabinet__btn--replies-disabled {
  background: #f4f5f6;
  color: rgba(44, 55, 74, 0.5);
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 16px;
  min-width: 200px;
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
}

button.cabinet__btn--replies-disabled {
  border: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.cabinet__btn--replies-disabled[aria-expanded="false"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cabinet-green);
  color: #fff;
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  min-width: 200px;
  line-height: 1.1;
  transition: background 0.15s;
  white-space: nowrap;
}

.cabinet__btn--replies-disabled[aria-expanded="false"]:hover {
  background: #469644;
  color: #fff;
}

.cabinet__card-replies {
  margin-top: 12px;
}

.cabinet__card-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.cabinet__card-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cabinet__card-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  line-height: 1;
  color: #5c6370;
}

/* Metrics: SVG icons (subset font-awesome has no fa-heart-o) */
.cabinet__card-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.cabinet__card-icon--views::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M2 12s3.5-6.5 10-6.5 10 6.5 10 6.5-3.5 6.5-10 6.5-10-6.5-10-6.5z' stroke='%235C6370' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='2.75' stroke='%235C6370' stroke-width='1.5'/%3E%3C/svg%3E");
}

.cabinet__card-icon--likes::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z' stroke='%235C6370' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cabinet__card-icon--comments::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z' stroke='%235C6370' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cabinet__card-date {
  font-size: 14px;
  color: #5c6370;
  white-space: nowrap;
}

.cabinet__card-meta-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cabinet__card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #7b818c;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}


/* ========================================
   REPLY BLOCK (inside card)
   ======================================== */

.cabinet__reply {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cabinet__reply + .cabinet__reply {
  border-top: 1px solid var(--cabinet-border);
  padding-top: 16px;
  margin-top: 6px;
}

.cabinet__reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.cabinet__reply-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cabinet__reply-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef2fa;
  color: rgba(44, 55, 74, 0.8);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.cabinet__reply-text {
  font-size: 16px;
  color: var(--cabinet-dark);
  line-height: 1.1;
  margin: 0;
}

.cabinet__info-agree {
  font-size: 16px;
  color: #4680C2;;
  line-height: 1.1;
  margin: 0;
}

.cabinet__reply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.cabinet__reply-link {
  color: var(--cabinet-blue);
  text-decoration: underline;
  font-size: 16px;
  line-height: 1.4;
}

.cabinet__reply-link:hover {
  color: #365f8f;
}

.cabinet__reply-date {
  color: rgba(45, 55, 74, 0.8);
  white-space: nowrap;
}

/* Thread under first message (expand/collapse) */
.cabinet__reply-thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 4px;
}

.cabinet__reply-thread-footer {
  font-size: 16px;
  line-height: 1.4;
}

.cabinet__reply-msg {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cabinet__reply-msg--nested {
  padding-left: 18px;
  border-left: 2px solid var(--cabinet-border);
}

.cabinet__reply-msg-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cabinet__reply-msg-meta {
  font-size: 14px;
}

.cabinet__reply-msg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.cabinet__reply-msg-footer--inline {
  justify-content: flex-start;
  gap: 16px;
}

.cabinet__reply-inline-link {
  color: var(--cabinet-blue);
  text-decoration: underline;
  word-break: break-all;
}

.cabinet__reply-inline-link:hover {
  color: #365f8f;
}

/* Reply compose + agreed (Figma Frame 1551, 1692) */
.cabinet__reply-compose {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cabinet__reply-compose-inner {
  background: #eef1f6;
  border: 1px solid var(--cabinet-border);
  border-radius: 12px;
  padding: 14px 16px 12px;
}

.cabinet__reply-compose-field {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  min-height: 88px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.4;
  color: var(--cabinet-dark);
}

.cabinet__reply-compose-field:focus {
  outline: none;
  box-shadow: none;
}

.cabinet__reply-compose-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(223, 223, 223, 0.6);
}

.cabinet__reply-compose-submit {
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--cabinet-blue);
  background: var(--cabinet-light-blue);
  border: 1px solid rgba(70, 128, 194, 0.25);
}

.cabinet__reply-compose-submit:hover {
  color: #365f8f;
  background: #d4e0f5;
}

.cabinet__reply-agreed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.cabinet__reply-agreed-btn {
  border-radius: 12px;
  padding: 8px 28px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
  background: var(--cabinet-green);
  border: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cabinet__reply-agreed-btn:hover {
  color: #fff;
  background: #479a45;
}

.cabinet__reply-agreed-hint {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--cabinet-dark);
  opacity: 0.75;
}

@media (max-width: 575px) {
  .cabinet__reply-agreed {
    flex-direction: column;
    align-items: stretch;
  }

  .cabinet__reply-agreed-btn {
    width: 100%;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet 768-991: right column form inputs go to single column */
@media (min-width: 768px) and (max-width: 991px) {
  .cabinet__collab-title {
    font-size: 32px;
  }

  .cabinet__form-row {
    flex-direction: column;
    gap: 15px;
  }

  .cabinet__form-row .cabinet__input {
    margin-bottom: 0;
  }

  .cabinet__form-row .cabinet__btn--submit {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 575px) {
  .cabinet__collab-title {
    font-size: 26px;
  }

  .cabinet__tabs {
    gap: 8px;
  }

  .cabinet__card-header {
    flex-direction: column;
  }

  .cabinet__card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .cabinet__btn--replies,
  .cabinet__btn--replies-disabled {
    width: 100%;
    min-width: unset;
  }

  .cabinet__collab-form {
    padding: 20px;
  }

  .cabinet__form-title {
    font-size: 20px;
    margin: 0 0 20px;
  }

  .cabinet__collab-form > .cabinet__input {
    margin-bottom: 10px;
  }

  .cabinet__form-row {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
  }

  .cabinet__form-row:last-of-type {
    gap: 20px;
  }

  .cabinet__form-row .cabinet__input {
    margin-bottom: 0;
  }

  .cabinet__form-row .cabinet__btn--submit {
    width: 100%;
    flex: none;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    padding: 0 20px;
  }

  .cabinet__input:not(.cabinet__input--textarea) {
    height: 47px;
    min-height: 47px;
    max-height: 47px;
    padding: 0 12px;
    font-size: 15px;
  }

  .cabinet__input--textarea {
    min-height: 94px;
    height: auto;
    max-height: none;
    padding: 16px 12px;
  }

  .cabinet__input select,
  .cabinet__input input,
  .cabinet__input textarea {
    font-size: 15px;
    line-height: 1.2;
  }

  .cabinet__input select {
    padding-right: 24px;
  }

  .cabinet__input-arrow {
    right: 12px;
  }

  .cabinet__collab-form .cabinet__dropdown-item {
    font-size: 15px;
    padding: 0.5rem 0.75rem;
  }

  .cabinet__work-rep {
    flex-direction: column;
  }

  .cabinet__work-col {
    flex: 0 0 100%;
  }
}

/* PRO limits promo block */
.cabinet__pro-limit,
.cabinet__pro-limit-foot {
  text-align: center;
}

.cabinet__pro-limit-lead {
  font-size: 16px;
  font-weight: 600;
  color: var(--cabinet-dark);
  margin: 0;
  line-height: 1.3;
}

.cabinet__pro-limit-accent {
  color: var(--cabinet-green);
}

.cabinet__pro-limit-foot {
  margin-top: 14px;
}

.cabinet__pro-limit-line,
.cabinet__pro-limit-hint {
  font-size: 15px;
  color: var(--cabinet-dark);
  margin: 0;
  line-height: 1.35;
}

.cabinet__pro-limit-num {
  color: #6eb0ee;
  font-weight: 700;
}

.cabinet .cabinet__pro-limit-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border-radius: 999px;
  font-weight: 600;
  padding: 10px 16px;
  font-size: 15px;
  line-height: 1.2;
}

.cabinet__pro-limit-btn--outline {
  background: #fff;
  color: var(--cabinet-green);
  border: 1px solid var(--cabinet-green);
}

.cabinet__pro-limit-btn--outline:hover,
.cabinet__pro-limit-btn--outline:focus {
  background: rgba(83, 163, 81, 0.08);
  color: var(--cabinet-green);
  border-color: var(--cabinet-green);
  box-shadow: none;
}

.cabinet__pro-limit-btn--fill {
  background: var(--cabinet-light-blue);
  color: var(--cabinet-dark);
  border: 1px solid transparent;
}

.cabinet__pro-limit-btn--fill:hover,
.cabinet__pro-limit-btn--fill:focus {
  background: #d4e0f5;
  color: var(--cabinet-dark);
  box-shadow: none;
}

/* --- Active menu item + muted badge (cabinet__ side panel) --- */
.cabinet__menu-item-row--active > a {
  font-weight: 700;
  color: var(--cabinet-dark, #22447a);
}

.cabinet__badge--muted {
  opacity: 0.4;
  filter: grayscale(1);
}

/* --- Collab card edit button --- */
.cabinet__card-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cabinet__card-edit-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  background: #f4f6f9;
  border: 1px solid #c8d2de;
  color: #5e7184;
  cursor: pointer;
  border-radius: 5px;
  line-height: 1;
  margin-top: 1px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  vertical-align: top;
}

.cabinet__card-edit-btn svg {
  width: 14px;
  height: 14px;
}

.cabinet__card-edit-btn:hover,
.cabinet__card-edit-btn:focus {
  color: var(--cabinet-dark, #22447a);
  background: #e8eef7;
  border-color: var(--cabinet-dark, #22447a);
  outline: none;
}

.cabinet__card-author-link {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.cabinet__card-author-link:hover,
.cabinet__card-author-link:focus {
  text-decoration: none;
  color: var(--cabinet-accent, #4a7fd4);
}
