.tray-body { --tray-accent: #9fd8b4; --tray-line: #4f8a68; --held: #f2a0a0; --review: #e8c98c; --ready: #9cc4ff; --draft: #9fd8b4; background-image: linear-gradient(rgb(159 216 180 / .022) 1px, transparent 1px), linear-gradient(90deg, rgb(159 216 180 / .022) 1px, transparent 1px), radial-gradient(ellipse at 85% 8%, rgb(64 128 96 / .12), transparent 45%); }
.tray-page { width: min(1120px, calc(100% - 48px)); margin: auto; padding: 78px 0 70px; }
.tray-page a:focus-visible, .tray-page button:focus-visible, .tray-page input:focus-visible, .tray-page summary:focus-visible, .tray-csv:focus-visible { outline: 2px solid var(--tray-accent); outline-offset: 4px; }
.tray-index { color: var(--tray-accent); font-size: 11px; font-weight: 550; letter-spacing: .14em; margin: 0 0 22px; }
.tray-small { font-size: 13px; color: var(--muted); }
.tray-small a, .tray-field-source a, .tray-audit a { color: var(--tray-accent); text-decoration: underline; text-underline-offset: 3px; }

.tray-hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 72px; }
.tray-hero h1 { font-size: clamp(44px, 6.2vw, 80px); line-height: 1.05; letter-spacing: -.055em; margin-bottom: 28px; }
.tray-hero h1 span { color: var(--tray-accent); }
.tray-lead { font-size: 18px; color: #c1cbd2; max-width: 590px; }
.tray-boundary { max-width: 590px; margin: 18px 0 0; padding: 12px 14px; border-left: 2px solid var(--tray-accent); background: rgb(159 216 180 / .05); color: #dbe4ea; font-size: 15px; }
.tray-boundary strong { color: var(--text); }
.tray-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin: 28px 0 0; }
.tray-page .cta-link { border-color: var(--tray-line); background: rgb(159 216 180 / .06); }
.tray-page .cta-link:hover { border-color: var(--tray-accent); background: rgb(159 216 180 / .13); }
.tray-page .cta-link:disabled { opacity: .5; cursor: not-allowed; }
.tray-text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #d9e0e9; font: inherit; font-size: 14px; font-weight: 540; cursor: pointer; }
.tray-text-button span { color: var(--tray-accent); }
.tray-text-button:hover { color: var(--tray-accent); text-decoration: underline; text-underline-offset: 3px; }
.tray-status { color: #c1cbd2; font-size: 12px; border-left: 2px solid var(--tray-line); padding: 6px 0 6px 12px; }
.tray-brief { border-top: 1px solid var(--tray-line); border-bottom: 1px solid var(--line); padding: 28px 0 12px; }
.tray-brief .tray-index { margin-bottom: 10px; }
.tray-price { font-size: 38px; letter-spacing: -.045em; margin: 0 0 24px; line-height: 1.15; }
.tray-price span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.tray-tax { margin: -12px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tray-brief dl { margin: 0; }
.tray-brief dl div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.tray-brief dt { color: var(--muted); }
.tray-brief dd { margin: 0; }
.tray-brief > p:last-child { font-size: 13px; color: var(--muted); margin-top: 18px; }

.tray-demo { border: 1px solid var(--line); border-radius: 10px; background: rgb(20 25 31 / .86); padding: clamp(20px, 4vw, 40px); scroll-margin-top: 20px; }
.tray-demo-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: end; }
.tray-demo h2, .tray-section h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.035em; line-height: 1.15; margin: 0; font-weight: 580; }
.tray-demo .tray-index { margin-bottom: 14px; }
.tray-synthetic { margin: 0; padding: 12px 14px; border: 1px solid #3f4c45; border-radius: 6px; background: #121a16; color: #cfd9d2; font-size: 13px; line-height: 1.55; }
.tray-synthetic strong { color: var(--tray-accent); }
.tray-demo > .tray-small { margin: 18px 0 0; max-width: 760px; }

.tray-intake { margin-top: 26px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tray-intake-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tray-file { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 15px; border: 1px dashed #56636f; border-radius: 6px; color: #dbe3ea; font-size: 14px; font-weight: 540; cursor: pointer; }
.tray-file:hover { border-color: var(--tray-accent); color: var(--text); }
.tray-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tray-file:focus-within { outline: 2px solid var(--tray-accent); outline-offset: 4px; }
.tray-samples { margin-top: 14px; font-size: 13px; color: var(--muted); }
.tray-samples summary { cursor: pointer; width: fit-content; padding: 6px 0; color: #cfd8df; }
.tray-samples ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.9; }
.tray-samples a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.tray-message { min-height: 1.6em; margin: 12px 0 0; color: #d6dee6; font-size: 13px; }

.tray-workspace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: 28px; margin-top: 24px; align-items: start; }
.tray-column-title { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.tray-column-title span { color: var(--muted); font-weight: 450; }
.tray-empty { margin: 0; padding: 22px 16px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; }
.tray-empty[hidden] { display: none; }
.tray-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tray-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; width: 100%; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 6px; background: #151a20; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tray-item:hover { border-color: #46515d; }
.tray-item[aria-pressed="true"] { border-color: #5b6a78; background: #1a2027; }
.tray-item[data-status="held"] { border-left-color: var(--held); }
.tray-item[data-status="review"] { border-left-color: var(--review); }
.tray-item[data-status="ready"] { border-left-color: var(--ready); }
.tray-item[data-status="draft"] { border-left-color: var(--draft); }
.tray-item-vendor { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.tray-item-detail { grid-column: 1; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.tray-item .tray-chip { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.tray-chip { display: inline-block; padding: 3px 8px; border: 1px solid #46515d; border-radius: 999px; color: #c9d2da; font-size: 11px; font-weight: 560; white-space: nowrap; }
.tray-chip[data-status="held"] { border-color: #8a5050; color: var(--held); }
.tray-chip[data-status="review"] { border-color: #86704a; color: var(--review); }
.tray-chip[data-status="ready"] { border-color: #4b6a95; color: var(--ready); }
.tray-chip[data-status="draft"] { border-color: var(--tray-line); color: var(--draft); }

.tray-review { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #12161b; }
.tray-review[hidden] { display: none; }
.tray-review-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tray-review h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tray-review h3:focus { outline: none; }
.tray-issues { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.tray-issues li { display: grid; gap: 3px; padding: 10px 12px; border-left: 2px solid var(--review); background: rgb(232 201 140 / .06); font-size: 13px; line-height: 1.5; color: #dbe2e8; }
.tray-issues li.is-hold { border-left-color: var(--held); background: rgb(242 160 160 / .07); }
.tray-issues li.is-clear { border-left-color: var(--ready); background: rgb(156 196 255 / .06); }
.tray-issue-code { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.tray-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.tray-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.tray-field:first-child { grid-column: 1 / -1; }
.tray-field label { font-size: 13px; font-weight: 540; color: #e4e9ef; }
.tray-field input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #394451; border-radius: 5px; background: #0e1217; color: var(--text); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; }
.tray-field input[readonly] { border-style: dashed; color: #b9c3cc; background: #11151a; }
.tray-field-source { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.tray-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 18px; }
.tray-form-actions [hidden] { display: none; }
.tray-audit { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.tray-audit h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.tray-audit ul { margin: 0; padding-left: 18px; color: #c4cdd5; font-size: 13px; line-height: 1.7; }
.tray-audit .tray-small { margin: 8px 0 0; overflow-wrap: anywhere; }

.tray-export { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.tray-export-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.tray-export h3 { margin: 0; font-size: 18px; font-weight: 600; }
.tray-export .tray-small { margin: 6px 0 0; }
.tray-csv { margin: 14px 0 0; padding: 14px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: #0d1014; color: #cfe3d6; font-size: 12px; line-height: 1.6; white-space: pre; }

.tray-section { margin-top: 80px; border-top: 1px solid var(--line); padding-top: 40px; }
.tray-section .tray-index { margin-bottom: 16px; }
.tray-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 36px 0 24px; }
.tray-number { font-size: 12px; color: var(--tray-accent); }
.tray-section h3 { font-size: 18px; font-weight: 560; margin: 16px 0 12px; }
.tray-columns p, .tray-scope p, .tray-section-heading > p:not(.tray-index) { color: var(--muted); font-size: 15px; }
.tray-pilot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 100px; }
.tray-pilot .cta-link { margin-top: 18px; }
.tray-scope h3:first-child { margin-top: 0; }
.tray-scope ul { list-style: none; padding: 0; margin: 0 0 30px; }
.tray-scope li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; }

@media (max-width: 900px) {
  .tray-hero { gap: 36px; }
  .tray-pilot { gap: 48px; }
  .tray-workspace { grid-template-columns: 1fr; }
  .tray-demo-heading { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 700px) {
  .tray-page { padding-top: 45px; }
  .tray-hero, .tray-pilot { grid-template-columns: 1fr; gap: 32px; }
  .tray-columns { grid-template-columns: 1fr; gap: 28px; }
  .tray-section { margin-top: 54px; padding-top: 32px; }
  .brand-header { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .tray-page { width: calc(100% - 32px); }
  .tray-hero h1 { font-size: 44px; }
  .tray-lead { font-size: 16px; }
  .tray-demo { padding: 18px 14px; border-radius: 8px; }
  .tray-review { padding: 16px 14px; }
  .tray-fields { grid-template-columns: minmax(0, 1fr); }
  .tray-field input { font-size: 16px; }
  .tray-item { grid-template-columns: minmax(0, 1fr); }
  .tray-item .tray-chip { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 4px; }
  .tray-intake-actions { align-items: stretch; flex-direction: column; }
  .tray-intake-actions .cta-link, .tray-file { justify-content: center; }
  .tray-export-heading { align-items: stretch; flex-direction: column; }
}
