/* A working sample workspace, using the landing page's ink, cobalt and metal palette. */
.workspace-app {
  --ws-bg: #15181e;
  --ws-raised: #20242c;
  --ws-muted: #a6adbb;
  --ws-edge: #424956;
  --ws-blue: #315feb;
  color: #f1f3f8;
  background: var(--ws-bg);
  border: 1px solid #3c424d;
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  font: 400 14px/1.6 var(--sans);
  box-shadow: 0 24px 65px #0004;
}
.workspace-app *, #workspace-dialog * { box-sizing: border-box; }
.workspace-app button, .workspace-app input, .workspace-app select, #workspace-close {
  font: inherit;
}
.workspace-app button, #workspace-close {
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
}
.workspace-app svg, #workspace-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ws-header {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: #1c2028;
}
.ws-project, .ws-header-actions { display: flex; align-items: center; gap: 13px; }
.ws-project img { width: 32px; height: 32px; mix-blend-mode: screen; }
.ws-project strong { display: block; font-size: 16px; font-weight: 650; line-height: 1.5; }
.ws-project span { display: block; color: var(--ws-muted); font-size: 11px; }
.ws-preview-label { color: #bdc5d3; font-size: 11px; }
#workspace-expand, #workspace-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 13px;
  background: #292e37;
  border: 1px solid #505866;
  border-radius: 7px;
  font-size: 12px;
}
.ws-nav {
  display: flex;
  gap: 6px;
  padding: 14px 22px;
  background: #1c2028;
}
.ws-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 17px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #bdc4d0;
  font-size: 12px;
  font-weight: 500;
}
.ws-nav button[aria-selected="true"] { background: #f0f2f7; color: #111724; }
.ws-panel { display: grid; grid-template-columns: 235px minmax(0,1fr); min-height: 548px; }
.ws-index { display: flex; flex-direction: column; padding: 24px 14px 22px; background: #191d24; min-width: 0; }
.ws-search { display: flex; align-items: center; gap: 8px; margin: 0 4px; padding: 0 10px; background: #11141a; border: 1px solid var(--ws-edge); border-radius: 7px; color: #a6adbb; }
.ws-search:focus-within { outline: 2px solid #8ec5ff; outline-offset: 3px; }
.ws-search input { width: 100%; min-width: 0; height: 41px; padding: 0; color: #f1f3f8; border: 0; outline: 0; background: transparent; font-size: 12px; }
.ws-search input:focus-visible { outline: 0; }
.ws-search input::placeholder { color: #a6adbb; opacity: 1; }
.ws-count { margin: 18px 11px 9px; color: #a6adbb; font: 10px/1.5 var(--mono); }
.ws-record-list { display: flex; flex-direction: column; gap: 5px; }
.ws-record-button { display: block; width: 100%; text-align: left; padding: 13px 12px; border: 0; border-radius: 7px; background: transparent; }
.ws-record-button[aria-pressed="true"] { background: var(--ws-blue); color: white; }
.ws-record-button span { display: block; font: 10px/1.6 var(--mono); color: #aeb9cc; }
.ws-record-button strong { display: block; font-weight: 500; font-size: 12px; line-height: 1.5; margin-top: 3px; }
.ws-record-button[aria-pressed="true"] span { color: #e1e9ff; }
.ws-sample-note { margin: auto 11px 0; padding-top: 32px; color: #c5cbd5; font-size: 10px; }
.ws-sample-note span { display: block; color: #a6adbb; margin-top: 5px; line-height: 1.6; }
.ws-mobile-picker { display: none; }
.ws-record-content { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 222px; }
.ws-detail { min-width: 0; padding: 32px 30px 36px; }
.ws-record-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.ws-record-id { margin: 0; color: #b5c5e6; font: 11px/1.6 var(--mono); }
.ws-status { display: inline-flex; align-items: center; gap: 6px; background: #343b47; color: #e7ecf4; padding: 4px 8px; border-radius: 5px; white-space: nowrap; font-size: 10px; }
.ws-status::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.ws-status[data-state="approved"] { color: #bce8d3; background: #233b33; }
.ws-status[data-state="in_review"], .ws-status[data-state="open"] { color: #ffcb85; background: #453421; }
.ws-detail h3 { font-size: clamp(23px,2.1vw,31px); line-height: 1.24; letter-spacing: -.035em; font-weight: 550; margin: 23px 0 16px; text-wrap: balance; }
.ws-detail h3:focus { outline: none; }
.ws-description { color: #d0d5df; font-size: 13px; line-height: 1.85; margin: 0; max-width: 55ch; }
.ws-properties { display: flex; flex-wrap: wrap; column-gap: 30px; row-gap: 16px; margin: 26px 0; }
.ws-properties div { min-width: 74px; }
.ws-properties dt { color: var(--ws-muted); font-size: 10px; margin-bottom: 5px; }
.ws-properties dd { color: #f0f2f7; font-size: 11px; font-weight: 500; margin: 0; }
.ws-detail-block { margin-top: 24px; }
.ws-detail-block h4, .ws-related h4 { color: #f1f3f8; font-size: 11px; line-height: 1.5; font-weight: 600; margin: 0 0 9px; }
.ws-detail-block p { color: #c4cbd7; font-size: 12px; line-height: 1.8; margin: 0; }
.ws-finding { display: flex; gap: 12px; margin-top: 24px; padding: 16px; background: #30291f; border-radius: 8px; color: #ffce8d; }
.ws-finding svg { margin-top: 2px; }
.ws-finding strong { display: block; font-size: 11px; font-weight: 600; margin-bottom: 5px; }
.ws-finding p { margin: 0; color: #ead0ac; font-size: 11px; line-height: 1.75; }
.ws-score { display: flex; align-items: center; gap: 18px; margin: 26px 0; padding: 20px; background: #30291f; border-radius: 8px; }
.ws-score strong { font: 500 46px/1 var(--sans); letter-spacing: -.04em; color: #ffcb85; }
.ws-score span { display: block; color: #f0d9b8; font-size: 11px; }
.ws-score small { display: block; color: #c1ab8d; font-size: 10px; margin-top: 5px; }
.ws-model { margin: 24px -4px 0; }
.ws-model img { display: block; width: 100%; height: 175px; object-fit: cover; border-radius: 8px; }
.ws-model figcaption { margin-top: 9px; color: #a6adbb; font-size: 10px; }
.ws-related { padding: 32px 20px 28px 2px; min-width: 0; }
.ws-related h4 { margin: 0 0 15px; }
.ws-link { display: block; width: 100%; padding: 13px; margin-bottom: 9px; text-align: left; background: #20252d; border: 1px solid #3a424f; border-radius: 8px; }
.ws-link small { display: block; color: #acb8cf; font: 9px/1.6 var(--mono); }
.ws-link strong { display: block; color: #e9edf5; font-size: 11px; line-height: 1.65; font-weight: 500; margin: 5px 0 7px; }
.ws-link span { color: #a9b3c5; font-size: 10px; }
.ws-related-note { font-size: 10px; line-height: 1.8; color: #a6adbb; margin: 20px 2px 0; }
.ws-empty { padding: 64px 35px; }
.ws-empty h3 { font-size: 25px; font-weight: 500; margin: 0 0 12px; }
.ws-empty p { color: #b6c0d0; font-size: 13px; }
#ws-clear-search { margin-top: 24px; background: #315feb; color: white; border: 0; border-radius: 7px; padding: 12px 18px; font-size: 12px; }
.ws-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 14px 24px; background: #1c2028; color: #a6adbb; font-size: 10px; }
.ws-footer span:first-child { font: 10px/1.6 var(--mono); color: #bec9de; }
.workspace-preview-note { color: #a6adbb; font-size: 11px; line-height: 1.8; margin: 20px 0 0; max-width: 740px; }
.workspace-app [hidden] { display: none !important; }
#workspace-dialog { width: min(1400px,96vw); max-width: none; max-height: 94dvh; padding: 18px; border: 1px solid #485162; background: #101319; color: #f1f3f8; border-radius: 15px; overflow-y: auto; }
#workspace-dialog::backdrop { background: #020409e8; }
.ws-dialog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 2px 16px; font: 12px/1.5 var(--sans); }
#workspace-dialog #workspace-expand { display: none; }
#workspace-dialog .workspace-app { box-shadow: none; }
@media (hover:hover) {
  .ws-nav button:not([aria-selected="true"]):hover, .ws-record-button:not([aria-pressed="true"]):hover { background: #2b313b; }
  .ws-link:hover { background: #2a3240; border-color: #8297bc; }
  #workspace-expand:hover, #workspace-close:hover { background: #383f4b; }
  #ws-clear-search:hover { background: #4871f0; }
}
@media (max-width:1150px) and (min-width:721px) {
  .ws-panel { grid-template-columns: 210px minmax(0,1fr); }
  .ws-record-content { grid-template-columns: minmax(0,1fr); }
  .ws-related { padding: 0 28px 30px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .ws-related h4, .ws-related-note { grid-column: 1/-1; }
  .ws-related h4 { margin-bottom: 3px; }
  .ws-link { margin: 0; }
  .ws-detail { padding-bottom: 25px; }
}
@media (max-width:720px) {
  .workspace-app { border-radius: 11px; }
  .ws-header { padding: 18px; gap: 10px; }
  .ws-project { gap: 10px; }
  .ws-project strong { font-size: 14px; }
  .ws-project span { font-size: 10px; }
  .ws-preview-label, #workspace-expand span { display: none; }
  #workspace-expand { min-width: 42px; padding: 10px; }
  .ws-nav { padding: 0 13px 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .ws-nav button { justify-content: flex-start; padding: 11px 13px; font-size: 11px; }
  .ws-panel { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .ws-index { padding: 20px 18px; }
  .ws-search { margin: 0; }
  .ws-search input { font-size: 16px; height: 44px; }
  .ws-count { margin: 13px 0 8px; }
  .ws-record-list, .ws-sample-note { display: none; }
  .ws-mobile-picker { display: block; color: #a6adbb; font-size: 10px; }
  .ws-mobile-picker select { width: 100%; height: 46px; margin-top: 6px; padding: 0 10px; border: 1px solid #556178; border-radius: 7px; color: #edf3ff; background: #252e3f; font-size: 16px; color-scheme: dark; }
  .ws-mobile-picker select:focus-visible { outline: 2px solid #8ec5ff; outline-offset: 3px; }
  .ws-mobile-picker select:disabled { opacity: .5; }
  .ws-record-content { display: block; }
  .ws-detail { padding: 28px 22px; }
  .ws-detail h3 { font-size: 28px; margin-top: 21px; }
  .ws-description { font-size: 13px; }
  .ws-properties { column-gap: 25px; }
  .ws-related { padding: 2px 22px 28px; }
  .ws-link { padding: 14px; }
  .ws-link strong { font-size: 12px; margin: 3px 0; }
  .ws-link small, .ws-link span { font-size: 10px; }
  .ws-related-note { margin-top: 15px; }
  .ws-footer { padding: 14px 18px; }
  .ws-footer span:last-child { font-size: 9px; }
  .workspace-preview-note { font-size: 10px; }
  #workspace-dialog { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; padding: 10px; }
  .ws-dialog-toolbar { position: sticky; top: -10px; z-index: 1; background: #101319; padding: 8px 4px 14px; }
  .ws-dialog-toolbar>span { font-size: 10px; }
}
