.workspace .topbar {
  gap: 32px;
}
.office-space .topbar {
  border-bottom-color: #c9c9be;
}
.topbar .account-identity small {
  display: block;
  color: #646b59;
  font-size: 11px;
  margin: 0 0 5px;
}
.topbar .account-identity strong {
  font-weight: 500;
  font-size: 14px;
}
.office-space .avatar {
  background: #efe3d6;
  color: #86420b;
}
.designer-space .avatar {
  background: #e3e9dd;
  color: #425438;
}
.workspace .compact-auth {
  display: block;
  width: 100%;
  max-width: 450px;
  margin: 8px auto 32px;
}
.compact-auth .auth-card {
  padding: 28px 32px;
  border-radius: 14px;
}
.compact-auth h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 8px 0 12px;
}
.compact-auth .eyebrow {
  margin: 0;
  font-size: 10px;
}
.auth-intro {
  font-size: 13px;
  color: #676b61;
  margin: 0 0 22px;
  line-height: 1.6;
}
.compact-auth .auth-card input {
  min-height: 44px;
  height: 44px;
  margin-bottom: 14px;
}
.compact-auth .button {
  min-height: 44px;
}
.auth-recovery {
  margin: -4px 0 16px;
  text-align: right;
  font-size: 12px;
  text-decoration: underline;
}
.auth-team-link {
  margin: 16px 0;
  font-size: 12px;
  text-align: center;
}
.auth-footnote {
  border-top: 1px solid #e7e7df;
  padding-top: 16px;
  margin: 18px 0 0;
  font-size: 11px;
  color: #656b60;
  line-height: 1.6;
}
.auth-pending {
  background: #f4f1e8;
  padding: 12px;
  font-size: 12px;
  border-radius: 6px;
}
.compact-auth .auth-switch {
  text-align: center;
  margin-top: 16px;
}
.designer-selection {
  padding: 16px;
  background: #f6f2eb;
  border: 1px solid #e2d7c8;
  border-radius: 8px;
  margin-bottom: 26px;
}
.designer-selection select {
  width: 100%;
  margin-bottom: 12px;
}
.assignment-needed {
  border-color: #ddb27b;
}
.filter-count {
  margin-left: 7px;
  font-size: 11px;
  opacity: 0.7;
}
.workspace .filters {
  flex-wrap: wrap;
}
.workspace .compact-project {
  gap: 18px;
  padding: 18px 20px;
}
.compact-project .project-thumb {
  width: 64px;
  height: 64px;
}
.compact-project .project-info h2 {
  font-size: 17px;
  margin: 6px 0;
}
.compact-project .selection-summary {
  margin-top: 7px;
  color: #595e53;
  line-height: 1.5;
}
.compact-project .project-date {
  margin-right: 0;
  min-width: 130px;
}
.compact-project .row-actions {
  gap: 10px;
}
.status.zhohan_offer i {
  background: #c4630a;
}
.status.client_offer i {
  background: #627b4a;
}
.filters.stage-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  flex: 1;
  gap: 8px;
}
.stage-filters button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  white-space: normal;
  padding: 12px 14px;
}
@media (max-width: 700px) {
  .project-toolbar:has(.stage-filters) {
    align-items: stretch;
  }
  .filters.stage-filters {
    grid-template-columns: 1fr;
    width: 100%;
  }
}
.settings-card {
  max-width: 640px;
  margin-top: 24px;
  overflow-wrap: anywhere;
}
@media (min-width: 900px) {
  .workspace:has(.compact-auth) main {
    padding-top: 36px;
    padding-bottom: 20px;
    min-height: 0;
  }
}
@media (max-width: 899px) {
  .workspace .topbar {
    gap: 18px 12px;
  }
  .workspace .topbar nav:empty {
    display: none;
  }
  .compact-project .project-date {
    display: none;
  }
}
@media (max-width: 600px) {
  .workspace .compact-auth {
    margin: 16px auto 24px;
  }
  .compact-auth .auth-card {
    padding: 24px 20px;
  }
  .topbar .account-identity {
    display: block;
    max-width: 175px;
    text-align: right;
  }
  .topbar .account-identity small {
    font-size: 9px;
    max-width: 175px;
  }
  .topbar .account-identity strong {
    font-size: 12px;
  }
  .public-space .account {
    gap: 12px;
    font-size: 12px;
  }
  .public-space .account .button {
    display: none;
  }
  .workspace .compact-project {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .compact-project .project-info {
    flex: 1;
  }
  .compact-project .row-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
  .compact-project .project-thumb {
    display: grid;
    width: 52px;
    height: 60px;
  }
  .compact-project .delete-button {
    flex: 0 0 36px;
  }
  .compact-project .row-actions .button {
    flex: 1;
  }
  .workspace .project-toolbar {
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
  }
  .workspace .list-heading {
    gap: 16px;
    flex-wrap: wrap;
  }
  .list-heading > .button {
    width: 100%;
  }
}
.response-note-line {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #666a5e;
}
.response-note-line.overdue {
  color: #9c4c13;
}
.service-banner.response-overdue {
  background: #fff3e8;
  border-color: #e8c7a8;
}
.offer-history {
  margin: 18px 0;
}
.offer-history > summary {
  cursor: pointer;
  padding: 16px;
  border: 1px solid #dedfd8;
  border-radius: 10px;
}
.offer-history .offer {
  margin-top: 16px;
}
.print-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 850px;
  margin: 0 auto 24px;
}
.print-toolbar .back-link {
  margin: 0;
}
.print-toolbar p {
  flex-basis: 100%;
  margin: 0;
  color: #63675d;
  font-size: 13px;
}
.print-document {
  max-width: 850px;
  margin: auto;
  background: white;
  border: 1px solid #ddd;
  padding: 42px;
}
.print-document .print-brand {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 2px solid #e57200;
}
.print-brand img {
  width: 155px;
  max-height: 50px;
}
.print-project {
  padding: 24px 0;
}
.print-project h1 {
  font-size: 28px;
  overflow-wrap: anywhere;
}
.print-document .offer {
  border: 0;
  box-shadow: none;
}
.print-document .offer-title {
  padding: 0 0 20px;
}
.print-document .offer-option {
  padding-left: 0;
  padding-right: 0;
}
.print-document .offer-terms {
  padding-left: 0;
  padding-right: 0;
}
.print-document .print-footer {
  display: block;
  height: auto;
  min-height: 0;
  background: transparent;
  padding: 24px 0 0;
  margin-top: 24px;
  border-top: 1px solid #dedfd8;
  font-size: 11px;
  line-height: 1.6;
  color: #63675d;
}
.previous-version {
  color: #9c4c13;
}
@media (max-width: 899px) {
  .workspace .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    min-height: 0;
    gap: 18px 12px;
    padding: 20px 0 0;
  }
  .topbar .account {
    grid-column: 2;
    grid-row: 1;
  }
  .workspace .topbar nav {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    height: auto;
    gap: 8px 18px;
    padding: 0;
  }
  .workspace .topbar nav a {
    min-height: 36px;
    padding: 0 0 8px;
  }
}
@media (max-width: 600px) {
  .print-document {
    padding: 20px;
  }
  .print-brand img {
    width: 110px;
  }
  .offer-title {
    flex-wrap: wrap;
    gap: 12px;
  }
  .print-toolbar .button {
    width: 100%;
  }
}
@media print {
  html:has(.print-document) {
    background: white;
  }
  @page {
    size: A4;
    margin: 15mm;
  }
  body:has(.print-document) {
    background: white;
    color: #171916;
  }
  body:has(.print-document) .topbar,
  body:has(.print-document) .workspace > footer,
  body:has(.print-document) .demo-guide,
  body:has(.print-document) .print-toolbar,
  body:has(.print-document) #toast,
  body:has(.print-document) dialog {
    display: none !important;
  }
  body:has(.print-document) .workspace,
  body:has(.print-document) main {
    max-width: none;
    padding: 0;
    margin: 0;
  }
  .print-document {
    max-width: none;
    padding: 0;
    border: 0;
  }
  .print-document .offer-option {
    break-inside: avoid;
    display: flex;
    gap: 20px;
  }
  .print-document .offer-option img {
    width: 105px;
    height: 105px;
    object-fit: contain;
  }
  .print-document .offer-title,
  .print-project,
  .print-brand {
    break-inside: avoid;
  }
  .print-document h3 {
    break-after: avoid;
  }
  .print-document .offer-terms {
    background: white;
  }
  .print-document a {
    color: inherit;
    text-decoration: none;
  }
}
/* A project starts with its conversation; supply offers stay in the staff space. */
.project-chat-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line, #dedfd8);
  margin: 0 0 26px;
  overflow-x: auto;
}
.compact-project .status + .message-count {
  margin-left: 8px;
}
.chat-card .card-heading {
  margin-bottom: 8px;
}
.tab-compact {
  display: none;
}
.project-chat-tabs a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 0;
  white-space: nowrap;
  text-decoration: none;
  color: #73766e;
  border-bottom: 3px solid transparent;
}
.project-chat-tabs a[aria-current="page"] {
  color: #292c27;
  border-color: #c35c08;
}
.chat-card .thread {
  max-height: clamp(170px, 30vh, 320px);
  min-height: 180px;
  overflow-y: auto;
  padding: 12px 6px 16px;
  overscroll-behavior: contain;
}
.chat-card .message {
  max-width: 90%;
  width: fit-content;
  border: 0;
  background: #f1f2ee;
  border-radius: 12px 12px 12px 3px;
  padding: 14px 17px;
  margin: 0 0 14px;
}
.chat-card .message.own {
  margin-left: auto;
  background: #fff2e5;
  border-radius: 12px 12px 3px 12px;
}
.chat-card .message > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}
.chat-card .message small,
.chat-card time {
  color: #73766e;
  font-size: 12px;
  font-weight: 400;
}
.chat-card .message small {
  display: block;
  margin-top: 3px;
}
.chat-card .message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 10px 0 0;
}
.chat-card form {
  border-top: 1px solid #e5e6df;
  padding-top: 18px;
  margin-top: 4px;
}
.chat-card textarea {
  resize: vertical;
  min-height: 88px;
}
.chat-send {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.chat-send > span,
.chat-live {
  font-size: 12px;
  color: #73766e;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.message-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #b45309;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 20px;
}
.message-notifications {
  position: relative;
}
.message-notifications summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  list-style: none;
  font-size: 13px;
}
.message-notifications summary::-webkit-details-marker {
  display: none;
}
.message-notifications summary:hover {
  background: #eceee7;
}
.message-notifications svg {
  width: 22px;
  height: 22px;
}
.notifications-popover {
  position: absolute;
  right: 0;
  top: 48px;
  z-index: 20;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid #dedfd8;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 34px #20251c18;
}
.notifications-popover h2 {
  font-size: 17px;
  margin: 0 0 14px;
}
.notifications-popover a {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: #292c27;
  text-decoration: none;
  border-top: 1px solid #eee;
}
.notifications-popover small {
  display: block;
  color: #73766e;
  margin-top: 12px;
  font-size: 12px;
}
.notifications-popover p {
  font-size: 14px;
  color: #73766e;
}
.supply-panel .private-note {
  background: #f5eee2;
  padding: 12px 16px;
  border-radius: 8px;
  color: #72531f;
  font-size: 14px;
}
.supply-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 16px;
  align-items: center;
}
.supply-heading h3 {
  margin: 0;
}
.supply-heading time {
  font-size: 13px;
  color: #73766e;
}
.supply-lines > div,
.supply-total {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e6df;
}
.supply-lines small {
  display: block;
  color: #73766e;
  margin-top: 5px;
}
.supply-total {
  font-size: 20px;
  margin-bottom: 26px;
}
.supply-history {
  margin-top: 26px;
  border-top: 1px solid #e5e6df;
  padding-top: 16px;
}
.supply-history summary {
  cursor: pointer;
}
.supply-empty {
  padding: 40px 0 24px;
}
.supply-empty p {
  color: #73766e;
  max-width: 500px;
}
.internal-project-tools {
  margin: 12px 0;
}
.internal-project-tools summary {
  cursor: pointer;
  color: #73766e;
  font-size: 13px;
}
@media (max-width: 700px) {
  .project-chat-tabs {
    gap: 18px;
    margin-bottom: 18px;
    font-size: 14px;
  }
  .project-chat-tabs .tab-full {
    display: none;
  }
  .project-chat-tabs .tab-compact {
    display: inline;
  }
  .chat-card .thread {
    max-height: 350px;
    min-height: 120px;
  }
  .chat-card .message {
    max-width: 96%;
    padding: 12px;
  }
  .chat-send > span,
  .chat-live,
  .notification-label {
    display: none;
  }
  .chat-send {
    justify-content: flex-end;
  }
  .notifications-popover {
    position: fixed;
    top: 78px;
    left: 18px;
    right: 18px;
    width: auto;
  }
  .supply-lines > div {
    gap: 12px;
  }
  .supply-lines b {
    white-space: nowrap;
  }
  .topbar .account {
    gap: 6px;
  }
}
