/* Teksbuild workspace branding. Fleet styles and animation tokens stay in style.css. */
.top-nav { height: 72px; flex-shrink: 0; background: #fff; border-bottom: 1px solid #dce5e8; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -.8px; color: #102d39; }
.brand-tag { font-size: 9px; letter-spacing: 1.1px; color: #536d79; }
.brand-logo { flex-shrink: 0; }
.nav-tab { color: #526571; border-radius: 7px; }
.nav-tab.active { background: #e4f4ef; color: #176b59; }
.nav-tab:hover { background: #eff5f4; color: #102d39; }
.center-panel, .right-panel {
    --bg-primary: #f5f8f9;
    --bg-secondary: #edf3f4;
    --bg-tertiary: #e5edef;
    --bg-elevated: #fff;
    --bg-hover: #e7f2ef;
    --text-primary: #102d39;
    --text-secondary: #405d69;
    --text-tertiary: #586e79;
    --border-subtle: #e2e9ec;
    --border-default: #d0dde1;
}
.center-panel { min-width: 0; }
#tab-command { gap: 0; padding: 0; }
#tab-command .pipeline-viz { background: #fff; padding: 16px 24px; }
.response-welcome { max-width: 760px; margin: auto; min-height: min-content; padding: 36px 0; align-items: flex-start; text-align: left; }
.workspace-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: #217863; margin-bottom: 20px; }
.welcome-title { font-size: clamp(28px, 3vw, 44px); line-height: 1.14; letter-spacing: -1.7px; color: #102d39; max-width: 440px; margin-bottom: 18px; }
.welcome-text { max-width: 490px; line-height: 1.8; color: #526975; }
.starter-prompts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 32px; }
.starter-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 16px 36px; border: 1px solid #dbe5e8; border-radius: 12px; background: #fff; color: #526975; text-align: left; font: inherit; font-size: 12px; line-height: 1.6; cursor: pointer; transition: border-color 150ms, box-shadow 150ms; }
.starter-card:hover { border-color: #348f79; box-shadow: 0 4px 16px #102d390a; }
.starter-card strong { color: #102d39; font-size: 14px; line-height: 1.4; }
.starter-number { color: #217863; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.starter-arrow { position: absolute; bottom: 12px; right: 16px; font-size: 18px; color: #217863; }
.welcome-note { margin-top: 24px; font-size: 11px; color: #586e79; line-height: 1.7; }
#tab-command .command-area { background: #fff; border-top: 1px solid #e2e9ec; padding: 20px 24px; }
#tab-command .input-container { border: 1px solid #d0dde1; border-radius: 12px; background: #f8fafb; box-shadow: 0 2px 6px #102d3905; }
#tab-command .send-btn { background: #176b59; color: #fff; }
#tab-command .send-btn:hover { background: #105443; }
.top-nav button:focus-visible, .center-panel button:focus-visible, #command-input:focus-visible { outline: 2px solid #217863; outline-offset: 3px; }
.tab-header { gap: 16px; flex-wrap: wrap; }
.tab-title { letter-spacing: -.7px; }
@media (max-width: 1200px) {
    .top-nav { height: auto; min-height: 72px; padding: 12px 20px; gap: 12px; flex-wrap: wrap; }
    .nav-left { min-width: 0; flex: 1; flex-wrap: wrap; }
    .nav-tabs { flex-wrap: wrap; }
    .nav-tab { padding: 8px; }
    .starter-prompts { grid-template-columns: 1fr; }
    .starter-card { padding: 14px 32px 14px 16px; gap: 5px; }
    .response-welcome { height: auto; padding: 20px 0; }
}
@media (max-width: 600px) {
    .top-nav .nav-divider { display: none; }
    .nav-tabs { width: 100%; }
    .top-nav .nav-right { display: none; }
    .response-area { padding: 20px; }
    #tab-command .pipeline-viz { padding: 12px 4px; }
    #tab-command .pipeline-stage { padding: 6px; }
    #tab-command .command-area { padding: 12px; }
}

/* Repository delivery workspace; scoped away from the fleet visualization. */
#tab-factory { gap: 20px; }
.delivery-heading p, .delivery-card-body > p { color: #526975; line-height: 1.7; margin-top: 8px; }
.delivery-heading .workspace-eyebrow { margin-bottom: 10px; }
.delivery-card { display: flex; gap: 16px; padding: 24px; background: #fff; border: 1px solid #dbe5e8; border-radius: 12px; }
.delivery-step { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #e4f4ef; color: #176b59; font-weight: 700; text-align: center; line-height: 28px; }
.delivery-card-body { min-width: 0; flex: 1; }
.delivery-card h3, .delivery-history h3 { font-size: 16px; color: #102d39; }
.delivery-card form { margin-top: 18px; }
.delivery-card fieldset { border: 0; min-width: 0; }
.delivery-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.delivery-row .grow { flex: 1; min-width: min(200px, 100%); }
.delivery-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.delivery-field label { font-size: 12px; font-weight: 600; color: #405d69; }
.delivery-field input, .delivery-field select { width: 100%; min-width: 0; border: 1px solid #ccdadd; border-radius: 7px; background: #fff; color: #102d39; padding: 10px 12px; font: inherit; font-size: 13px; }
.delivery-field input:focus, .delivery-field select:focus { outline: 2px solid #217863; outline-offset: 1px; }
.delivery-field small, .delivery-help { font-size: 12px; line-height: 1.7; color: #586e79; }
.delivery-help { margin-top: 12px; }
.delivery-help summary { cursor: pointer; color: #176b59; }
.delivery-help a { color: #176b59; }
.delivery-primary, .delivery-secondary { border-radius: 7px; padding: 10px 14px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.delivery-primary { background: #176b59; color: #fff; border: 1px solid #176b59; }
.delivery-secondary { background: #fff; color: #405d69; border: 1px solid #ccdadd; }
.delivery-row > button { margin-bottom: 16px; }
.delivery-primary:disabled, .delivery-secondary:disabled, .delivery-card fieldset:disabled { opacity: .55; cursor: not-allowed; }
.delivery-notice { padding: 14px 16px; border-radius: 8px; background: #e4f4ef; color: #176b59; border: 1px solid #b9ddcf; overflow-wrap: anywhere; }
.delivery-notice.error { background: #fff0ef; color: #9f3232; border-color: #f1cdca; }
.delivery-job { padding: 20px; margin-top: 14px; border: 1px solid #dbe5e8; border-radius: 10px; background: #fff; overflow-wrap: anywhere; }
.delivery-job h4 { margin-bottom: 8px; }
.delivery-job .delivery-row { align-items: center; margin-top: 12px; }
.delivery-job a { color: #176b59; font-size: 12px; }
.delivery-job pre { font-size: 11px; white-space: pre-wrap; }
.delivery-phase { display: inline-block; padding: 4px 8px; border-radius: 5px; font-size: 11px; background: #edf3f4; color: #405d69; }
.delivery-phase.failed { color: #9f3232; background: #fff0ef; }
.delivery-phase.published, .delivery-phase.plan_ready, .delivery-phase.ready_to_publish { color: #176b59; background: #e4f4ef; }
.delivery-dialog { margin: auto; width: min(850px, 92vw); max-height: 85vh; border: 1px solid #ccdadd; border-radius: 12px; padding: 24px; color: #102d39; }
.delivery-dialog::backdrop { background: #102d3966; }
.delivery-dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.8; max-height: 65vh; overflow: auto; }
#tab-factory [hidden] { display: none !important; }
@media (max-width: 800px) {
    .delivery-card { padding: 16px; gap: 10px; }
    .delivery-row > .delivery-field { width: 100%; }
    .delivery-card-body > p { font-size: 13px; }
    .delivery-field input, .delivery-field select { font-size: 12px; }
}

/* Keep the execution stop control prominent without changing fleet visuals. */
.delivery-job .delivery-stop { margin: 10px 0 10px 14px; border: 1px solid #f87171; color: #fecaca; background: #451a1a; font-weight: 700; }
.delivery-job .delivery-stop:disabled { opacity: .75; cursor: wait; }
