/* Original workstation materials and sizing. Both scenes are illustrations.
   All state derives from the shared workstation progress, with readable SSR. */
.ws-feature--database .ws-stage { background: #e9e2f2; }
.ws-feature--connections .ws-stage { background: #e3eaf3; }
.ws-db-app,.ws-connections-app { position: relative; min-width: 0; height: 456px; overflow: hidden; color: #3e3154; font-family: Inter,Arial,sans-serif; }
.ws-db-app { background: #f2edf7; }
.ws-connections-app { background: #edf2f7; }
.ws-db-app :is(h4,p),.ws-connections-app :is(h4,p) { margin: 0; }
.ws-db-app svg,.ws-connections-app svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ws-db-app-bar,.ws-connections-app-bar { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; border-bottom: 1px solid #dcd4e7; background: #ffffffa1; }
.ws-db-app-bar > div,.ws-connections-app-bar > span { display: flex; align-items: center; gap: 7px; }
.ws-db-app-bar img { width: 22px; height: 22px; }
.ws-db-app-bar strong,.ws-connections-app-bar strong { display: block; font-size: 9px; font-weight: 600; }
.ws-db-availability { display: block; margin-top: 1px; color: #92809f; font: 7px/1.3 Inter,sans-serif; }
.ws-db-read-only { display: flex; align-items: center; gap: 4px; color: #7a6e89; font: 7px Inter,sans-serif; white-space: nowrap; }
.ws-db-read-only svg { width: 10px; height: 10px; }
.ws-db-body { display: grid; grid-template-columns: 118px minmax(0,1fr); height: 416px; }
.ws-db-explorer { padding: 13px 7px; border-right: 1px solid #ddd5e7; background: #faf8fcbd; }
.ws-db-schema-label { display: flex; align-items: center; gap: 5px; padding: 0 4px 9px; color: #78678f; font: 7px Inter,sans-serif; }
.ws-db-schema-label > i { width: 5px; height: 5px; border-radius: 2px; background: #ad9bbf; }
.ws-db-schema-label code { font: 9px "DM Mono",monospace; }
.ws-db-schema-label b { margin-left: auto; color: #9c8eaa; font: 7px "DM Mono",monospace; }
.ws-db-source { position: relative; display: flex; gap: 6px; align-items: center; height: 23px; padding: 4px 5px; border: 1px solid transparent; border-radius: 3px; color: #9985ab; font: 6px/1.2 Inter,sans-serif; }
.ws-db-source img { width: 13px; height: 13px; object-fit: contain; flex-shrink: 0; }
.ws-db-source > span { white-space: nowrap; }
.ws-db-source--selected { color: #694093; border-color: rgb(180 152 210 / calc(var(--ws-first) * .6)); background: rgb(223 210 239 / calc(var(--ws-first) * .4)); }
.ws-db-source--selected::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: -7px; width: 2px; background: #9370b8; transform: scaleY(var(--ws-first)); }
.ws-db-source > i { display: flex; margin-left: auto; opacity: var(--ws-first); }
.ws-db-source > i > svg { width: 8px; height: 8px; }
.ws-db-explorer-note { margin: 12px 3px 0; padding-top: 8px; border-top: 1px solid #e4deec; color: #9c8daa; font-size: 6px; line-height: 1.65; }
.ws-db-explorer-note strong { display: block; margin-bottom: 3px; color: #81718f; font-weight: 500; }
.ws-db-main { min-width: 0; padding: 10px 12px 6px; }
.ws-db-section-label,.ws-connections-section-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 15px; }
.ws-db-section-label strong { color: #6c597f; font: 600 8px Inter,sans-serif; }
.ws-db-section-label code { color: #a08caf; font: 6px "DM Mono",monospace; }
.ws-db-schema { position: relative; height: 98px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-rows: 42px 42px; gap: 12px 48px; margin-top: 5px; }
.ws-db-node { position: relative; z-index: 1; min-width: 0; padding: 5px 6px; border: 1px solid #d5c9e2; border-radius: 4px; background: #fdfbff; box-shadow: 0 3px 8px #45266b05; transform: translateY(calc((1 - var(--ws-arrival)) * 9px)); }
.ws-db-node strong { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; color: #654482; font: 500 7px "DM Mono",monospace; }
.ws-db-node strong svg { width: 9px; height: 9px; }
.ws-db-node > span { display: block; color: #9b8ba9; font: 5.5px/1.4 "DM Mono",monospace; }
.ws-db-node em { float: right; color: #a68cbf; font: normal 5px "DM Mono",monospace; }
.ws-db-node--orders,.ws-db-node--items { border-color: rgb(194 174 216 / calc(.4 + var(--ws-first) * .6)); box-shadow: 0 0 0 calc(var(--ws-first) * 2px) #a78bc20b; }
.ws-db-app .ws-db-relations { position: absolute; inset: 0; width: 100%; height: 98px; color: #b29ac9; overflow: visible; }
.ws-db-relations path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--ws-first)); }
.ws-db-relations circle { fill: #b29ac9; stroke: none; opacity: var(--ws-first); }
.ws-db-query { position: relative; height: 119px; margin-top: 10px; overflow: hidden; border: 1px solid #d7cbe4; border-radius: 5px; background: #fcfaff; box-shadow: 0 4px 12px #3e225506; clip-path: inset(0 0 calc((1 - clamp(0,(var(--ws-progress) - .27)/.12,1)) * 100%) 0 round 5px); }
.ws-db-query > header { display: flex; justify-content: space-between; align-items: center; height: 23px; padding: 0 8px; border-bottom: 1px solid #e9e0f1; background: #f5effb; color: #9277a8; }
.ws-db-query > header > span { display: flex; align-items: center; gap: 5px; font: 7px Inter,sans-serif; }
.ws-db-query > header i { width: 4px; height: 4px; background: #9e7cbd; border-radius: 50%; }
.ws-db-query > header > code { font: 6px "DM Mono",monospace; }
.ws-db-sql { padding: 7px 8px; }
.ws-db-sql-line { display: flex; align-items: baseline; min-height: 10px; white-space: pre; font: 6.5px/1.5 "DM Mono",monospace; }
.ws-db-sql-line > b { color: #8b5aaf; font-weight: 500; }
.ws-db-sql-line > code { color: #5e5673; font: inherit; }
.ws-db-sql-line .is-typing::after { content: "|"; color: #8c5bad; }
.ws-db-query-scan { position: absolute; inset: 23px 0 auto; height: 1px; background: #c4abd960; opacity: calc(1 - var(--ws-second)); transform: translateY(calc(var(--ws-second) * 94px)); pointer-events: none; }
.ws-db-results { height: 114px; margin-top: 10px; padding: 7px 8px; border: 1px solid #ded4e8; border-radius: 5px; background: #fff; opacity: clamp(0,(var(--ws-progress) - .62)/.12,1); transform: translateY(calc((1 - var(--ws-third)) * 12px)); }
.ws-db-results > header { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-bottom: 6px; }
.ws-db-results > header strong { color: #6b537e; font: 600 7px Inter,sans-serif; }
.ws-db-results > header > span { color: #a799b1; font: 5.5px "DM Mono",monospace; }
.ws-db-result-body { display: grid; grid-template-columns: 1.12fr 1fr; gap: 12px; }
.ws-db-results table { width: 100%; border-collapse: collapse; text-align: left; font: 6.5px Inter,sans-serif; }
.ws-db-results :is(th,td) { height: 17px; padding: 0; border-bottom: 1px solid #f0ebf5; }
.ws-db-results th { height: 12px; color: #aaa0b3; font: 5.5px "DM Mono",monospace; }
.ws-db-results :is(th,td):last-child { text-align: right; color: #7d668e; font-family: "DM Mono",monospace; }
.ws-db-results tr.ws-db-total td { border: 0; color: #5c3d77; font-weight: 600; }
.ws-db-bars { padding-top: 6px; }
.ws-db-bars > div { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 22px; gap: 2px 4px; margin-bottom: 8px; color: #9d8cae; font-size: 5.5px; }
.ws-db-bars > div > span { grid-column: 1; white-space: nowrap; }
.ws-db-bars > div > i { grid-column: 1; grid-row: 2; width: calc(var(--ws-db-bar) / .525 * 100%); height: 5px; border-radius: 1px; background: #ab8bc5; transform: scaleX(var(--ws-third)); transform-origin: left; }
.ws-db-bars > div:nth-child(2) > i { background: #c4a9d8; }
.ws-db-bars > div:nth-child(3) > i { background: #ded1e8; }
.ws-db-bars small { grid-column: 2; grid-row: 2; color: #9c8aaa; font: 5px "DM Mono",monospace; }
.ws-db-provenance { display: flex; gap: 6px; align-items: center; height: 25px; margin-top: 4px; color: #a28caf; opacity: clamp(0,(var(--ws-progress) - .82)/.12,1); }
.ws-db-provenance-icon { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #ddd1e8; border-radius: 3px; background: #f8f3fc; }
.ws-db-provenance-icon > svg { width: 10px; height: 10px; }
.ws-db-provenance > div { min-width: 0; }
.ws-db-provenance code { display: block; color: #8c739e; font: 5.5px "DM Mono",monospace; }
.ws-db-provenance > div > span { display: block; margin-top: 3px; font-size: 5.5px; }
.ws-db-provenance > svg { width: 9px; height: 9px; margin-left: auto; }

/* Connections keep the catalog's own assets, names, routes and availability. */
.ws-connections-app-bar { border-color: #d5e0ea; }
.ws-connections-app-bar > span { color: #55718a; }
.ws-connections-app-bar > span > img { width: 18px; height: 18px; }
.ws-connections-app-bar > .ws-connections-catalog-label { color: #8fa2b3; font: 6px "DM Mono",monospace; }
.ws-connections-body { display: grid; grid-template-columns: 121px minmax(0,1fr); height: 416px; }
.ws-connections-rail { min-width: 0; padding: 13px 7px 8px; border-right: 1px solid #d7e1eb; background: #f7fafcba; }
.ws-connections-rail-label { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 0 4px 10px; color: #8ba0b2; font: 7px Inter,sans-serif; }
.ws-connections-rail-label > span { font: 6px "DM Mono",monospace; }
.ws-connections-source { position: relative; display: flex; gap: 6px; align-items: center; min-height: 43px; padding: 6px 4px; border: 1px solid transparent; border-radius: 4px; color: #6c8194; text-decoration: none; }
.ws-connections-source img { width: 16px; height: 16px; flex-shrink: 0; }
.ws-connections-source > span { min-width: 0; }
.ws-connections-source strong { display: block; font: 500 7px/1.4 Inter,sans-serif; white-space: nowrap; }
.ws-connections-source small { display: block; margin-top: 2px; color: #95a2ac; font: 5px/1.4 Inter,sans-serif; }
.ws-connections-source > i { display: grid; place-items: center; width: 11px; height: 11px; margin-left: auto; border: 1px solid #d4dfe7; border-radius: 3px; color: #b0beca; font: normal 8px Inter,sans-serif; flex-shrink: 0; }
.ws-connections-source > i > svg { width: 7px; height: 7px; }
.ws-connections-source--selected { border-color: rgb(174 198 219 / calc(var(--ws-first) * .7)); background: rgb(220 231 242 / calc(var(--ws-first) * .6)); }
.ws-connections-source--selected > i { color: #6e93b0; background: rgb(199 219 234 / var(--ws-first)); border-color: rgb(170 195 216 / var(--ws-first)); }
.ws-connections-source--selected > i > svg { opacity: var(--ws-first); }
.ws-connections-rail-note { margin: 22px 4px 0; padding-top: 10px; border-top: 1px solid #e0e8ee; color: #9eacb9; font: 6px/1.7 Inter,sans-serif; }
.ws-connections-rail-note > strong { display: block; margin-bottom: 3px; color: #8295a4; font-weight: 500; }
.ws-connections-main { min-width: 0; padding: 12px 12px 8px; }
.ws-connections-section-label > strong { color: #69849b; font: 600 8px Inter,sans-serif; }
.ws-connections-section-label > span { color: #9eb0bf; font: 5.5px "DM Mono",monospace; }
.ws-connections-scope { display: flex; gap: 6px; align-items: center; height: 38px; margin-top: 7px; padding: 6px 8px; border: 1px solid #d6e1ea; border-radius: 4px; background: #f5f9fc; clip-path: inset(0 calc((1 - var(--ws-first)) * 100%) 0 0 round 4px); }
.ws-connections-scope > svg { color: #91a9bc; width: 12px; height: 12px; }
.ws-connections-scope strong { display: block; color: #7591a6; font: 500 7px Inter,sans-serif; }
.ws-connections-scope div > span { display: block; margin-top: 3px; color: #a0afbd; font-size: 6px; }
.ws-connections-scope > b { margin-left: auto; color: #94aabd; font: 7px "DM Mono",monospace; }
.ws-connections-context { position: relative; margin-top: 10px; }
.ws-connections-context-source { display: flex; gap: 6px; align-items: center; min-height: 34px; margin-bottom: 4px; padding: 5px 7px; border: 1px solid #dbe5ed; border-radius: 4px; background: #fbfdff; opacity: clamp(0,var(--ws-second) * 1.7 - var(--ws-source-order) * .24,1); transform: translateX(calc((1 - var(--ws-second)) * -8px)); }
.ws-connections-context-source > b { display: grid; place-items: center; width: 10px; height: 10px; border-radius: 50%; color: #8aa1b6; background: #edf3f7; font: 5px "DM Mono",monospace; }
.ws-connections-context-source > img { width: 13px; height: 13px; }
.ws-connections-context-source > div { min-width: 0; }
.ws-connections-context-source strong { display: block; color: #6a8398; font: 500 6.5px Inter,sans-serif; }
.ws-connections-context-source small { display: block; margin-top: 3px; color: #a2b0bd; font: 5.5px "DM Mono",monospace; }
.ws-connections-context-source > span { display: flex; margin-left: auto; color: #b0c2d1; }
.ws-connections-context-source > span > svg { width: 9px; height: 9px; }
.ws-connections-app .ws-connections-link { display: block; width: 100%; height: 15px; margin-top: -1px; color: #a4b9ca; }
.ws-connections-link path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--ws-second)); }
.ws-connections-bundle { display: flex; gap: 7px; align-items: center; height: 39px; padding: 6px 8px; border: 1px solid #c8d8e5; border-radius: 5px; background: #e3edf5; opacity: clamp(0,(var(--ws-progress) - .46)/.15,1); transform: translateY(calc((1 - var(--ws-second)) * 6px)); }
.ws-connections-core { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #c8d8e4; border-radius: 7px; background: #f4f8fb; }
.ws-connections-core img { width: 17px; height: 17px; }
.ws-connections-bundle strong { display: block; color: #5c7c97; font: 600 8px Inter,sans-serif; }
.ws-connections-bundle > div > span { display: block; margin-top: 3px; color: #96a9b9; font-size: 6px; }
.ws-connections-bundle > b { margin-left: auto; align-self: flex-start; color: #92abc0; font: 5px "DM Mono",monospace; }
.ws-connections-mission { min-height: 102px; margin-top: 10px; padding: 8px 9px 0; border: 1px solid #c8d8e4; border-radius: 5px; background: #fff; box-shadow: 0 6px 15px #264d7007; clip-path: inset(0 0 calc((1 - var(--ws-third)) * 100%) 0 round 5px); transform: translateY(calc((1 - var(--ws-third)) * 8px)); }
.ws-connections-mission > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #9caebb; font: 5.5px "DM Mono",monospace; }
.ws-connections-mission > header > i { width: 4px; height: 4px; border: 1px solid #a9bac8; border-radius: 50%; }
.ws-connections-app h4 { min-height: 20px; margin: 6px 0 7px; color: #557692; font: 600 11px/1.35 "Bricolage Grotesque",Inter,sans-serif; letter-spacing: -.01em; }
.ws-connections-mission-meta { display: flex; align-items: center; gap: 6px; min-height: 23px; }
.ws-connections-avatar { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #dbe3eb; border-radius: 50%; background: #edf1f6; color: #8b9fb1; font: 6px Inter,sans-serif; }
.ws-connections-mission-meta strong { display: block; color: #7d92a4; font: 500 6px Inter,sans-serif; }
.ws-connections-mission-meta small { display: block; margin-top: 2px; color: #a2b0bc; font: 5px Inter,sans-serif; }
.ws-connections-draft { margin-left: auto; padding: 3px 5px; border: 1px solid #e5dac3; border-radius: 3px; color: #a9946d; background: #fcfaf4; font: 5.5px Inter,sans-serif; white-space: nowrap; }
.ws-connections-delivery { display: flex; justify-content: space-between; align-items: center; gap: 5px; margin-top: 7px; padding: 6px 0; border-top: 1px solid #edf1f5; color: #9eb0be; }
.ws-connections-delivery > span { display: flex; gap: 4px; align-items: center; }
.ws-connections-delivery svg { width: 9px; height: 9px; }
.ws-connections-delivery code { font: 5.5px "DM Mono",monospace; }
.ws-connections-delivery > b { font: 5px "DM Mono",monospace; }
.ws-connections-review { display: flex; gap: 6px; align-items: center; min-height: 34px; margin-top: 5px; padding-inline: 3px; opacity: clamp(0,(var(--ws-progress) - .81)/.13,1); }
.ws-connections-review > span { display: flex; color: #a68f69; }
.ws-connections-review > span > svg { width: 11px; height: 11px; }
.ws-connections-review strong { display: block; color: #9a896f; font: 500 6.5px Inter,sans-serif; }
.ws-connections-review small { display: block; margin-top: 3px; color: #a0afbb; font: 5.5px Inter,sans-serif; }

@media (min-width: 641px) and (max-width: 1100px) {
  .ws-db-body { grid-template-columns: 104px minmax(0,1fr); }
  .ws-db-source { gap: 4px; padding-inline: 3px; font-size: 5.3px; }
  .ws-db-main,.ws-connections-main { padding-inline: 8px; }
  .ws-db-schema { column-gap: 25px; }
  .ws-db-result-body { gap: 7px; }
  .ws-connections-body { grid-template-columns: 106px minmax(0,1fr); }
  .ws-connections-source { gap: 4px; padding-inline: 3px; }
  .ws-connections-source strong { font-size: 6.5px; }
  .ws-connections-source small { font-size: 4.5px; }
}
@media (max-width: 640px) {
  .ws-workspace--database,.ws-workspace--connections { grid-template-columns: minmax(0,1fr); grid-template-rows: 456px 256px; }
  .ws-db-body { grid-template-columns: 113px minmax(0,1fr); }
  .ws-db-main { padding-inline: 10px; }
  .ws-db-schema { column-gap: 31px; }
  .ws-db-query { height: 119px; }
  .ws-db-sql-line { font-size: 6px; }
  .ws-db-result-body { gap: 8px; }
  .ws-connections-body { grid-template-columns: 116px minmax(0,1fr); }
  .ws-connections-main { padding-inline: 10px; }
  .ws-connections-source strong { font-size: 7px; }
}
@media (max-width: 380px) {
  .ws-db-body { grid-template-columns: 102px minmax(0,1fr); }
  .ws-db-main,.ws-connections-main { padding-inline: 8px; }
  .ws-db-source { gap: 4px; padding-inline: 3px; font-size: 5px; }
  .ws-db-schema { column-gap: 23px; }
  .ws-db-node { padding-inline: 4px; }
  .ws-db-sql { padding-inline: 6px; }
  .ws-db-sql-line { font-size: 5.5px; }
  .ws-db-result-body { grid-template-columns: 1.2fr 1fr; gap: 6px; }
  .ws-db-results table { font-size: 5.5px; }
  .ws-db-results > header strong { font-size: 6px; }
  .ws-connections-body { grid-template-columns: 101px minmax(0,1fr); }
  .ws-connections-source { gap: 4px; padding-inline: 3px; }
  .ws-connections-source strong { font-size: 6px; }
  .ws-connections-source small { font-size: 4.3px; }
  .ws-connections-source img { width: 14px; height: 14px; }
  .ws-connections-source > i { width: 9px; height: 9px; }
  .ws-connections-context-source { gap: 4px; padding-inline: 5px; }
  .ws-connections-context-source strong { font-size: 5.5px; }
  .ws-connections-context-source small { font-size: 4.5px; }
  .ws-connections-section-label > strong { font-size: 7px; }
  .ws-connections-section-label > span { font-size: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-feature--database,.ws-feature--connections { --ws-progress: 1 !important; --ws-first: 1 !important; --ws-second: 1 !important; --ws-third: 1 !important; --ws-arrival: 1 !important; }
}
[data-ss-reduced] :is(.ws-feature--database,.ws-feature--connections) { --ws-progress: 1 !important; --ws-first: 1 !important; --ws-second: 1 !important; --ws-third: 1 !important; --ws-arrival: 1 !important; }
