.password-toggle {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  font-weight: 550 !important;
}

.password-toggle input {
  width: 18px !important;
  height: 18px;
  margin: 0 !important;
}

.cockpit-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 26px 0;
}

.cockpit-stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
}

.cockpit-stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 400;
}

.cockpit-stat span {
  color: #617068;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cockpit-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.cockpit-tab {
  min-height: 50px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 12px 20px;
  background: transparent;
  color: #65736c;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.cockpit-tab.active {
  border-bottom-color: var(--green);
  color: var(--green);
}

.cockpit-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.cockpit-heading h2 {
  margin: 8px 0 0;
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: 400;
}

.cockpit-heading > p {
  max-width: 500px;
  color: #65736c;
}

.work-grid {
  display: grid;
  gap: 20px;
}

.work-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: 0 15px 40px rgba(18, 37, 31, .05);
}

.work-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.work-card h3 {
  margin: 10px 0 0;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.work-meta,
.work-description {
  color: #5d6b64;
}

.work-description {
  max-width: 850px;
  white-space: pre-wrap;
}

.work-waiting,
.work-contact {
  margin-top: 20px;
  padding: 18px;
  background: var(--mint);
}

.work-contact p {
  margin: 5px 0 0;
}

.work-contact a {
  color: #285b47;
  text-decoration: underline;
}

.work-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.work-form label,
.message-form {
  color: #506159;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.work-form input,
.work-form select,
.work-form textarea,
.message-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #c6d0cb;
  padding: 12px 13px;
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.work-form input:focus,
.work-form select:focus,
.work-form textarea:focus,
.message-form textarea:focus {
  border-color: #39705a;
}

.invoice-box {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  padding: 18px;
}

.invoice-box legend {
  padding: 0 8px;
  font-family: Georgia, serif;
  font-size: 22px;
}

.invoice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-ghost-dark {
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
}

.message-area {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.message-area h4 {
  margin: 0 0 14px;
  font-size: 17px;
}

.message-empty {
  color: #6a7770;
}

.message-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 15px;
  border-left: 3px solid #aac1b6;
  margin: 10px 0;
  padding: 10px 14px;
  background: #f3f6f2;
}

.message-item time {
  color: #7a867f;
  font-size: 11px;
}

.message-item p {
  grid-column: 1 / -1;
  margin: 5px 0 0;
  white-space: pre-wrap;
}

.message-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  margin-top: 15px;
}

.message-form textarea {
  margin: 0;
  min-height: 72px;
  resize: vertical;
  text-transform: none;
}

.message-form .form-message {
  grid-column: 1 / -1;
}

.status-pill.assigned,
.status-pill.in_progress,
.status-pill.review {
  background: #d8e7ef;
  color: #244e64;
}

.status-pill.completed,
.status-pill.invoiced,
.status-pill.paid {
  background: #d1eadb;
  color: #23523f;
}

.status-pill.declined {
  background: #ead2d2;
  color: #6b2929;
}

@media (max-width: 900px) {
  .cockpit-stats,
  .invoice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cockpit-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .cockpit-stat {
    padding: 15px;
  }

  .cockpit-stat strong {
    font-size: 30px;
  }

  .cockpit-tabs {
    overflow-x: auto;
  }

  .cockpit-tab {
    flex: 1 0 auto;
    padding-inline: 12px;
  }

  .cockpit-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .cockpit-heading h2 {
    font-size: 34px;
  }

  .work-card {
    padding: 20px 17px;
  }

  .work-card-header {
    flex-direction: column;
  }

  .invoice-grid,
  .message-form {
    grid-template-columns: 1fr;
  }

  .work-form input,
  .work-form select,
  .work-form textarea,
  .message-form textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .work-actions .button,
  .message-form .button {
    width: 100%;
    justify-content: center;
  }
}
