/* Shared surfaces for the B-side desks, sample record and request dialog. */
.studio :is(.bw-page, .bs-detail, .hh-dialog) {
  --work-pine: #153e35;
  --work-muted: #52655b;
  --work-line: #d7dbce;
  --work-paper: #fffef9;
  --work-sage: #e7ecdf;
  --work-clay: #984322;
  --bw-ink: var(--work-pine);
  --bs-ink: var(--work-pine);
  --bw-muted: var(--work-muted);
  --bs-muted: var(--work-muted);
  --bw-line: var(--work-line);
  --bs-line: var(--work-line);
}
.studio :is(.bw-page-head h1, .bs-detail h1) {
  color: var(--work-pine);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 740;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.studio :is(.bw-create, .bs-btn:not(.quiet), .hh-dialog .hh-btn.primary) {
  background: var(--work-pine);
  border-color: var(--work-pine);
  color: #fffef7;
}
.studio :is(.bw-create, .bs-btn, .hh-dialog .hh-btn) {
  min-height: 44px;
  border-radius: 9px;
}
.studio :is(.bw-create, .bs-btn:not(.quiet), .hh-dialog .hh-btn.primary):hover {
  background: #245345;
}
.studio :is(.bw-table, .bw-empty, .bs-card, .bs-archive) {
  background-color: var(--work-paper);
  border: 1px solid var(--work-line);
  border-radius: 16px;
  box-shadow: 0 3px 9px #2f352708;
}

/* The list stays dense enough to scan; a soft fill separates the column names. */
.studio .bw-page {padding-top: clamp(18px, 2.8vw, 36px)}
.studio .bw-page-head {margin-bottom: 24px}
.studio .bw-sales-head {
  color: var(--work-muted);
  background: #e8eae0;
  font-weight: 650;
  padding-block: 13px;
}
.studio .bw-row {padding-block: 16px}
.studio .bw-row:hover {background: #f1f3e9}
.studio .bw-titles strong {font-size: 16px; line-height: 1.45}
.studio .bw-identity {gap: 13px}
.studio .bw-identity .hh-photo-frame {width: 48px; height: 48px; border-radius: 9px}
.studio .bw-price {color: var(--work-pine); font-weight: 690}
.studio .bw-status {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 7px;
  background: #f0efe7;
  color: #555b50;
  font-weight: 620;
}
.studio .bw-status::before {width: 6px; height: 6px}
.studio .bw-status-modeling {background: #e0ece0; color: #2a503b}
.studio .bw-status-assigned {background: #e7edef; color: #395763}
.studio .bw-status-review {background: #f9ecd5; color: #714722}
.studio .bw-status-returned {background: #f7e6da; color: #863d25}
.studio .bw-status-done {background: #e6e9e0; color: #495e50}
.studio .bw-pool-head {
  padding: clamp(18px, 2.5vw, 29px);
  margin-bottom: 12px;
  background: var(--work-sage);
  border: 1px solid #ced7c5;
  border-radius: 16px;
}
.studio .bw-pool-head p {margin: 6px 0 0}
.studio .bw-pool-head p strong {color: var(--work-pine); font-size: 22px}
.studio .bw-count {
  min-width: 1.8em;
  margin-left: 4px;
  padding: 3px 6px;
  text-align: center;
  background: var(--work-sage);
  border-radius: 6px;
}
.studio .bw-tool {
  min-height: 60px;
  background: var(--work-pine);
  color: #fffdf3;
  border-radius: 11px;
}
.studio .bw-tool small {color: #d5e4d6}
.studio .bw-tool > span:first-child {color: #f0b18c}
.studio .bw-tool:hover {background: #235043}
.studio .bw-select-task select {min-height: 44px}
.studio .bw-claim {color: var(--work-clay)}

/* A handoff is grouped by people, followed by the quote and the sample brief. */
.studio .bs-detail {width: min(100%, 1000px)}
.studio .bs-back {display: inline-flex; align-items: center; min-height: 44px}
.studio .bs-heading {margin: 10px 0 21px; align-items: center}
.studio .bs-meta {font-variant-numeric: tabular-nums}
.studio .bs-stage {color: #274c36; background: #e0eadc; border: 1px solid #cbdcc7}
.studio .bs-progress {
  background: #e7ecdf;
  border: 1px solid #ced7c5;
  border-radius: 16px;
}
.studio .bs-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.studio .bs-people dd {font-size: 17px; line-height: 1.5}
.studio .bs-card h2 {
  margin-bottom: 17px;
  font-size: 19px;
  color: var(--work-pine);
}
.studio .bs-plate summary {min-height: 52px}
.studio .bs-price {color: var(--work-pine)}
.studio .bs-file {display: inline-flex; align-items: center; min-height: 38px; text-underline-offset: 4px}
.studio .bs-file-links {row-gap: 5px}
.studio .bs-exports {margin-top: 12px}
.studio .bs-btn.quiet {
  color: var(--work-pine);
  background: #fffef9;
  border-color: #a4b2a2;
}
.studio .bs-btn.quiet:hover {background: #eef1e7}
.studio .bs-offer {
  background: #f3f3e9;
  border-radius: 10px;
  padding: 14px 16px;
  font-variant-numeric: tabular-nums;
}
.studio .bs-offer li {align-items: baseline; padding-block: 10px}
.studio .bs-offer li strong {color: var(--work-clay); font-size: 15px}
.studio .bs-offer p {display: flex; align-items: baseline; justify-content: flex-end; gap: 8px}
.studio .bs-offer p strong {font-size: 21px; color: var(--work-pine)}
.studio .bs-image {width: clamp(88px, 17vw, 134px)}
.studio .bs-image img {padding: 3px; border: 1px solid var(--work-line); background: #f5f4ee; border-radius: 10px}
.studio :is(.bs-folder, .bs-archive, .bs-form-extra) > summary {padding-block: 5px; line-height: 1.6}

/* Keep the submit controls reachable when the request holds many attachments. */
.studio .hh-dialog {
  width: min(620px, calc(100% - 24px));
  max-height: min(90dvh, 860px);
  overflow: hidden;
  border-color: #c8d0c1;
  border-radius: 19px;
  background: var(--work-paper);
  box-shadow: 0 24px 100px #18382c42;
}
.studio .hh-dialog::backdrop {background: #162c24a8}
.studio .hh-dialog form {
  display: flex;
  flex-direction: column;
  max-height: min(calc(90dvh - 2px), 858px);
}
.studio :is(.hh-dialog-head, .hh-dialog-foot) {
  flex: none;
  padding: 13px clamp(16px, 4vw, 26px);
  background: #f1f1e7;
  border-color: var(--work-line);
}
.studio .hh-dialog h2 {font-size: 21px; color: var(--work-pine)}
.studio .hh-dialog-body {
  min-height: 0;
  padding: 19px clamp(16px, 4vw, 26px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.studio .bs-field :is(input, select, textarea) {
  padding: 10px 12px;
  border-color: #bcc6b8;
  min-height: 44px;
  border-radius: 8px;
}
.studio .bs-field :is(input, select, textarea):focus {
  outline: 2px solid #49765c;
  outline-offset: 1px;
}
.studio .bs-upload {background: #edf1e5; border: 1px dashed #99ae95; border-radius: 10px}
.studio .bs-upload input::file-selector-button {
  font: inherit;
  font-weight: 600;
  color: #234432;
  background: #fffef8;
  padding: 6px 9px;
  margin-right: 6px;
  border: 1px solid #b3c2ab;
  border-radius: 6px;
  cursor: pointer;
}

@media (min-width: 761px) {
  .studio .bw-sales-row, .studio .bw-sales-head {
    grid-template-columns: minmax(160px, 1.55fr) minmax(122px, .85fr) minmax(55px, .48fr) minmax(80px, .7fr) minmax(100px, .84fr) 12px;
  }
}
@media (max-width: 680px) {
  .studio .bw-pool-head {align-items: stretch; flex-direction: column; gap: 12px}
  .studio .bw-tool-box {width: 100%}
  .studio .bw-tool-box .bw-tool {justify-content: flex-start}
  .studio .bw-tool > .bw-icon:last-child {margin-left: auto}
  .studio .bs-people {gap: 11px 16px; grid-template-columns: repeat(2, minmax(0, 1fr))}
  .studio .bs-heading {flex-wrap: wrap; gap: 8px}
  .studio .bs-image {width: min(27vw, 110px)}
}
@media (max-width: 420px) {
  .studio .bw-page-head {margin-bottom: 16px}
  .studio .bs-offer {padding: 12px}
  .studio .bs-offer p {flex-wrap: wrap}
  .studio .bs-field-pair {grid-template-columns: 1fr; gap: 0}
}
