/* The fictional feedback job branches into a writer, a checker, and a person. */
#first-fix #team-desk-open { border-color: #3f5470; background: #3f5470; }

.team-desk {
  box-sizing: border-box;
  display: grid;
  min-width: 0;
  margin: 24px 0 0;
  padding: clamp(16px, 2.4vw, 28px);
  gap: 15px;
  border: 2px solid #233e35;
  border-radius: 12px;
  color: #21372e;
  background: #e9ede1;
  box-shadow: 7px 8px 0 #c8ad7c;
  scroll-margin-top: 18px;
}

.team-desk[hidden],
.team-desk [hidden] { display: none !important; }
body[data-studio-view="check"] .team-desk,
body[data-studio-view="ask"] .team-desk { display: none !important; }
.team-desk * { box-sizing: border-box; min-width: 0; }
.team-desk :is(h3, h4, p, blockquote) { margin: 0; }
.team-desk :is(p, strong, blockquote, small) { overflow-wrap: anywhere; }
.team-desk:focus-visible,
.team-desk :is(button, article):focus-visible { outline: 3px solid #087d9a; outline-offset: 3px; }

.team-desk-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}
.team-desk-kicker,
.team-desk-brief span,
.team-desk-route li > span,
.team-paper-top,
.team-human > span {
  font: 850 .65rem/1.35 ui-monospace, Menlo, monospace;
  letter-spacing: .055em;
}
.team-desk-kicker { margin-bottom: 5px !important; color: #7b5435; }
.team-desk h3 { font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 1.04; letter-spacing: -.05em; }
.team-desk-head p:last-child { max-width: 64ch; margin-top: 8px; font-size: .84rem; line-height: 1.5; }
.team-desk-close {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #50695c;
  border-radius: 4px;
  color: #21372e;
  background: #f9f7ec;
  font: 800 .73rem/1.3 Inter, ui-sans-serif, sans-serif;
  cursor: pointer;
}

.team-desk-brief {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #807c69;
  border-left: 6px solid #b56f3c;
  background: #fff9ec;
  box-shadow: 3px 4px 0 #d2d5c5;
}
.team-desk-brief span { color: #865333; }
.team-desk-brief strong { display: block; margin-top: 5px; font-size: 1.04rem; line-height: 1.3; }
.team-desk-brief p { margin-top: 3px; color: #555b51; font-size: .74rem; line-height: 1.4; }
.team-desk-brief-mark {
  flex: 0 0 62px;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 2px dashed #a86940;
  border-radius: 50%;
  color: #855032;
  font: 900 .68rem/1.05 ui-monospace, Menlo, monospace !important;
  text-align: center;
  transform: rotate(9deg);
}

.team-desk-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.team-desk-route li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid #b0b9a9;
  border-radius: 5px;
  background: #f8f8ee;
  transition: background-color 180ms ease, transform 180ms ease;
}
.team-desk-route li + li::before {
  position: absolute;
  top: 26px;
  left: -8px;
  content: "→";
  color: #607e68;
  font-weight: 900;
}
.team-desk-route li[data-active="true"] { border-color: #3f7453; background: #d8ead3; transform: translateY(-2px); }
.team-desk-route li[data-held="true"] { border-color: #a05d3b; background: #fae7cf; }
.team-desk-route li > span { color: #55705b; }
.team-desk-route strong { font-size: .87rem; line-height: 1.25; }
.team-desk-route small { color: #5c6258; font-size: .69rem; line-height: 1.35; }

.team-desk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.team-desk-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 14px;
  border: 1px solid #213e33;
  border-radius: 5px;
  color: #fffdf3;
  background: #213e33;
  font: 850 .77rem/1.3 Inter, ui-sans-serif, sans-serif;
  cursor: pointer;
}
.team-desk-actions button:hover, .team-desk-close:hover { filter: brightness(1.12); }
.team-desk-actions p { flex: 1 1 240px; color: #4b584b; font-size: .73rem; line-height: 1.4; }

.team-desk-papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.team-paper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(17px, 2vw, 24px);
  border: 1px solid #8c8069;
  border-radius: 4px;
  background: #fffdf5;
  box-shadow: 5px 6px 0 #d2c6ae;
  animation: team-paper-arrive 260ms ease-out both;
}
.team-paper-unchecked { transform: rotate(-.4deg); }
.team-paper-checked { border-color: #4b765b; background: #f7fff1; box-shadow: 5px 6px 0 #b5d0b2; animation-delay: 70ms; }
.team-paper-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #655a47; }
.team-paper-top b { flex: 0 0 auto; padding: 5px 7px; border: 2px solid #a05232; border-radius: 2px; color: #984a2d; transform: rotate(5deg); }
.team-paper-checked .team-paper-top b { border-color: #3b7354; color: #316244; transform: rotate(-5deg); }
.team-paper h4 { font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.08; letter-spacing: -.04em; }
.team-paper blockquote { flex: 1; padding: 13px 15px; border-left: 3px solid #ab724c; background: #f4ecde; font-size: .86rem; line-height: 1.55; }
.team-paper-checked blockquote { border-color: #4b765b; background: #e4f1dd; }
.team-paper mark { padding: 1px 3px; color: #7c361f; background: #f7c49d; text-decoration: underline wavy #b2482b; text-underline-offset: 3px; }
.team-paper-checked blockquote strong { color: #275d3b; }
.team-paper-margin { padding: 9px 10px; border: 1px dashed #ad8d6c; color: #624a38; background: #fff9e9; font-size: .72rem; line-height: 1.45; }
.team-paper-checked .team-paper-margin { border-color: #709477; color: #305a3d; background: #eff8e7; }
.team-check-action {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 9px 13px;
  border: 1px solid #8c5335;
  border-radius: 4px;
  color: #fffdf3;
  background: #8c5335;
  font: 850 .77rem/1.3 Inter, ui-sans-serif, sans-serif;
  text-align: left;
  cursor: pointer;
}
.team-check-action:hover { filter: brightness(1.12); }

.team-human { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 5px 14px; padding: 15px 18px; border: 2px solid #3c5d4d; border-radius: 5px; background: #dce9d7; }
.team-human > span { grid-row: 1 / 3; color: #31523e; }
.team-human p { font-size: .89rem; font-weight: 800; line-height: 1.35; }
.team-human small { color: #4a5b4c; font-size: .69rem; line-height: 1.45; }

@keyframes team-paper-arrive { from { translate: 0 8px; } to { translate: 0 0; } }

@media (max-width: 700px) {
  .team-desk { margin-top: 17px; padding: 14px; box-shadow: 4px 5px 0 #c8ad7c; }
  .team-desk-head { gap: 10px; }
  .team-desk-close { padding: 7px 8px; }
  .team-desk-brief { padding: 12px; }
  .team-desk-brief-mark { display: none; }
  .team-desk-route { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .team-desk-route li { padding: 9px 12px; }
  .team-desk-route li + li::before { display: none; }
  .team-desk-route small { display: none; }
  .team-desk-papers { grid-template-columns: minmax(0, 1fr); }
  .team-human { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .team-human > span { grid-row: auto; }
}

@media (max-width: 420px) {
  .team-desk-head { display: grid; }
  .team-desk-close { justify-self: start; }
  .team-desk-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .team-desk *, .team-desk *::before, .team-desk *::after { animation: none !important; transition: none !important; }
}
