/* Calm operational workspaces: the trade determines content and accent. */
.workspace {
  --office-accent: #28564b;
  --office-soft: #e9f1ec;
}
.office-brand-foto {
  --office-accent: #44544b;
  --office-soft: #f0f0e8;
}
.office-brand-dj {
  --office-accent: #563a78;
  --office-soft: #f0eafa;
}
.office-brand-musik {
  --office-accent: #843f2a;
  --office-soft: #f9eee5;
}
.office-brand-rede {
  --office-accent: #375e78;
  --office-soft: #edf4f8;
}
.office-brand-massage {
  --office-accent: #645443;
  --office-soft: #f3eee7;
}
.office-brand-tattoo {
  --office-accent: #333333;
  --office-soft: #eeeeec;
}
.office-brand-piercing {
  --office-accent: #3e6373;
  --office-soft: #eaf3f7;
}
.office-brand-haar {
  --office-accent: #7c4035;
  --office-soft: #fbeee7;
}
.office-brand-video {
  --office-accent: #204e59;
  --office-soft: #e6f1f3;
}
.office-brand-visagistik {
  --office-accent: #74475e;
  --office-soft: #f6edf2;
}
.office-brand-hund {
  --office-accent: #3a5b2b;
  --office-soft: #f0f5df;
}
.office-brand-katze {
  --office-accent: #795624;
  --office-soft: #f8f1df;
}
.office-brand-musikunterricht {
  --office-accent: #315e85;
  --office-soft: #eaf2fc;
}
.office-brand-nachhilfe {
  --office-accent: #65572c;
  --office-soft: #faf6de;
}
.workspace .side-nav a.active {
  color: var(--office-accent);
  background: var(--office-soft);
}
.workspace .workspace-brand {
  border-bottom: 2px solid var(--office-accent);
  padding-bottom: 20px;
}
.office-context {
  gap: 16px;
  flex-wrap: wrap;
}
.demo-branch-label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  color: #42594f;
  min-width: 0;
}
.demo-branch-label select {
  width: 100%;
  max-width: 290px;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid #bdcdc3;
  border-radius: 8px;
  background: #fff;
  color: #253f34;
}
.quick-demo {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid #cedbd0;
  border-radius: 14px;
  background: #f3f7ed;
  margin: 0 0 26px;
  flex-wrap: wrap;
}
.quick-demo > div {
  flex: 1;
  min-width: 190px;
}
.quick-demo b {
  display: block;
  font-size: 16px;
  color: #203f33;
}
.quick-demo span {
  display: block;
  font-size: 12px;
  color: #4b6154;
  margin-top: 5px;
}
.quick-demo .text-button {
  font-size: 12px;
}
.demo-ready-note {
  padding: 12px 16px;
  border-radius: 8px;
  background: #f2f5eb;
  color: #42583e !important;
  font-size: 12px !important;
  line-height: 1.6;
}
.trade-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 35px;
  padding: 35px;
  background: var(--office-soft);
  border-radius: 18px;
  margin-bottom: 28px;
  border-top: 3px solid var(--office-accent);
}
.trade-overview h1 {
  font-size: clamp(30px, 3.2vw, 45px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 14px 0 16px;
  text-wrap: balance;
}
.trade-overview p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 450px;
}
.trade-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.trade-preview > button,
.trade-records > button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #d8e0d8;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  color: #263b31;
  min-width: 0;
  cursor: pointer;
}
.trade-preview button > span:nth-child(2),
.trade-records button > span:nth-child(2) {
  display: grid;
  gap: 7px;
  min-width: 0;
  flex: 1;
}
.trade-preview b,
.trade-records b {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.trade-preview small,
.trade-records small {
  font-size: 11px;
  line-height: 1.6;
  color: #526256;
}
.trade-preview > small {
  font-size: 10px;
}
.trade-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: var(--office-soft);
  color: var(--office-accent);
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
}
.trade-workbench {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.trade-records {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 20px;
}
.trade-records > button {
  width: 100%;
  padding: 13px;
}
.trade-records button[aria-pressed="true"] {
  border-color: var(--office-accent);
  box-shadow: inset 3px 0 var(--office-accent);
}
.trade-detail {
  min-width: 0;
}
.trade-detail .panel {
  margin-bottom: 20px;
  padding: 26px;
  border-radius: 14px;
}
.trade-detail .inline-split {
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.trade-detail h2 {
  font-size: 25px;
  line-height: 1.2;
}
.trade-detail .form-grid {
  margin-top: 20px;
}
.trade-detail .field {
  font-size: 12px;
}
.trade-detail input,
.trade-detail textarea {
  font-size: 14px;
}
.trade-detail textarea {
  min-height: 120px;
}
.trade-progress {
  color: #49614e;
  font-size: 12px;
}
.trade-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.trade-items li {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e6df;
  padding: 16px 0;
}
.trade-items li > span {
  font-size: 14px;
  line-height: 1.6;
}
.trade-items button {
  flex: none;
  font-size: 11px;
}
.trade-done {
  color: #3e5c45;
}
.trade-done::before {
  content: "✓ ";
  font-weight: 700;
}
.trade-add-item {
  border: 0;
  padding-top: 20px;
}
.trade-add-item summary {
  font-size: 13px;
  color: var(--office-accent);
  cursor: pointer;
  padding: 8px 0;
}
.trade-add-item form {
  display: flex;
  gap: 12px;
  align-items: end;
  padding-top: 14px;
}
.trade-add-item .field {
  flex: 1;
}
.trade-history {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.trade-history li {
  border-left: 2px solid var(--office-accent);
  padding: 0 0 10px 18px;
  margin-top: 22px;
}
.trade-history time {
  font-size: 11px;
  color: #53675b;
}
.trade-history p {
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.trade-linked {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #dce5db;
  text-decoration: none;
  color: var(--office-accent);
  font-size: 14px;
}
.trade-linked small {
  display: block;
  color: #536256;
  margin-top: 7px;
}
.trade-files,
.trade-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.trade-files > button {
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 20px;
  color: #2d473a;
}
.trade-files > button > span {
  font-size: 12px;
}
.record-link {
  margin: 12px 0;
}
.trade-image-preview {
  max-width: 100%;
  height: auto;
}
.file-card > button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.file-card > button img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.file-card .text-button {
  padding: 15px;
}
@media (max-width: 1100px) {
  .trade-overview {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 22px;
  }
  .trade-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trade-preview > small {
    grid-column: 1/-1;
  }
  .trade-workbench {
    grid-template-columns: 1fr;
  }
  .trade-records {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .trade-records > button {
    min-width: 210px;
    width: auto;
  }
}
@media (max-width: 600px) {
  .quick-demo {
    padding: 18px;
    gap: 15px;
  }
  .quick-demo > div {
    flex-basis: 100%;
  }
  .office-context {
    display: block;
  }
  .office-context > span {
    display: none;
  }
  .demo-branch-label select {
    max-width: 100%;
    min-width: 0;
  }
  .trade-overview {
    padding: 23px 19px;
  }
  .trade-preview {
    grid-template-columns: 1fr;
  }
  .trade-detail .panel {
    padding: 21px 17px;
  }
  .trade-detail .form-grid {
    grid-template-columns: 1fr;
  }
  .trade-items li {
    flex-wrap: wrap;
    gap: 10px;
  }
  .trade-items li > span {
    flex-basis: 100%;
  }
  .trade-add-item form {
    flex-direction: column;
    align-items: stretch;
  }
  .trade-files,
  .trade-contact-grid {
    grid-template-columns: 1fr;
  }
  .trade-records {
    max-width: 100%;
  }
  .trade-detail .btn {
    white-space: normal;
  }
}
.trade-detail .field {
  min-width: 0;
}
.trade-detail select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
  padding: 12px;
  border: 1px solid #c4d2c7;
  border-radius: 8px;
  background: #fff;
  color: #293f33;
}

.trade-detail select {
  appearance: none;
  display: block;
  overflow: hidden;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, #293f33 50%),
    linear-gradient(135deg, #293f33 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
