/* Extracted from ecosystem.css — Shared task workspace shell. */
/* Load after ecosystem_dashboard.css and before ecosystem_deals.css. */

 /* Shared task workspace: Cabinet and Platform use one calm, responsive shell. */
    :root {
        --ws-radius-lg:20px; --ws-radius:15px; --ws-gap:10px;
        --ws-border:color-mix(in srgb,var(--tg-theme-hint-color,#89909a) 20%,transparent);
        --ws-soft:color-mix(in srgb,var(--tg-theme-secondary-bg-color,#f1f1f1) 64%,transparent);
        --ws-accent-soft:color-mix(in srgb,var(--tg-theme-button-color,#3390ec) 10%,transparent);
    }
    .sr-only {
        position:absolute !important; width:1px !important; height:1px !important; padding:0 !important;
        margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important;
        white-space:nowrap !important; border:0 !important;
    }
    .workspace-shell { display:flex; flex-direction:column; gap:var(--ws-gap); min-width:0; }
    .workspace-hero {
        display:flex; align-items:center; justify-content:space-between; gap:16px; padding:17px 19px;
        border:1px solid var(--ws-border); border-radius:var(--ws-radius-lg);
        background:linear-gradient(135deg,var(--ws-accent-soft),var(--tg-theme-bg-color,#fff) 58%);
        box-shadow:0 10px 32px rgba(18,31,53,.055);
    }
    .workspace-hero-copy { min-width:0; }
    .workspace-hero h1 { margin:2px 0 3px; font-size:24px; line-height:1.1; letter-spacing:-.35px; }
    .workspace-hero p { max-width:680px; margin:0; color:var(--tg-theme-hint-color,#68717d); line-height:1.4; }
    .workspace-eyebrow {
        display:block; color:var(--ui-accent-ink, #185fa8); font-size:10px; font-weight:800;
        letter-spacing:.11em; text-transform:uppercase;
    }
    .workspace-hero-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; flex-wrap:wrap; }
    .workspace-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:var(--ws-gap); align-items:start; }
    .workspace-nav {
        position:sticky; top:8px; display:flex; flex-direction:column; gap:3px; max-height:calc(100dvh - 20px);
        padding:7px; overflow:auto; border:1px solid var(--ws-border); border-radius:16px;
        background:var(--tg-theme-bg-color,#fff); box-shadow:0 7px 24px rgba(18,31,53,.04);
    }
    .workspace-nav-group {
        margin:8px 8px 2px; color:var(--ui-muted-strong,#3f4b5a); font-size:9px; font-weight:800;
        letter-spacing:.08em; text-transform:uppercase;
    }
    .workspace-nav-group:first-child { margin-top:3px; }
    .workspace-nav-item {
        display:flex; align-items:center; gap:9px; width:100%; min-height:41px; padding:7px 9px;
        border:0; border-radius:11px; color:var(--tg-theme-text-color,#111); background:transparent;
        font:inherit; font-size:12px; font-weight:650; text-align:left; cursor:pointer;
    }
    .workspace-nav-item:hover { background:color-mix(in srgb,var(--tg-theme-hint-color,#89909a) 8%,transparent); }
    .workspace-nav-item.active { color:var(--ui-accent-ink, #185fa8); background:var(--ws-accent-soft); }
    .workspace-nav-item:focus-visible { outline:2px solid var(--tg-theme-button-color,#3390ec); outline-offset:-2px; }
    .workspace-nav-icon {
        display:grid; place-items:center; flex:0 0 27px; width:27px; height:27px; border-radius:9px;
        background:color-mix(in srgb,currentColor 9%,transparent); font-size:12px;
    }
    .workspace-nav-badge {
        min-width:18px; margin-left:auto; padding:2px 5px; border-radius:999px;
        color:var(--tg-theme-hint-color,#68717d); background:var(--ws-soft); font-size:9px; text-align:center;
    }
    .workspace-nav-item.active .workspace-nav-badge { color:currentColor; background:var(--tg-theme-bg-color,#fff); }
    .workspace-mobile-nav { display:none; }
    .workspace-content { min-width:0; }
    .workspace-panel { display:none; min-width:0; animation:workspace-in .16s ease-out; }
    .workspace-panel.active { display:block; }
    @keyframes workspace-in { from { opacity:.35; transform:translateY(3px); } to { opacity:1; transform:none; } }
    .workspace-empty {
        grid-column:1 / -1; display:flex; flex-direction:column; align-items:center; justify-content:center;
        gap:6px; min-height:160px; padding:22px; border:1px dashed var(--ws-border); border-radius:14px;
        color:var(--ui-muted-strong, color-mix(in srgb, var(--tg-theme-text-color,#111) 90%, #1f2937));
        text-align:center;
    }
    .workspace-empty b { color:var(--tg-theme-text-color,#111); font-size:14px; }
    .workspace-empty > span:not(.workspace-empty-icon) {
        max-width:390px; font-size:11px; line-height:1.45;
        color:var(--ui-muted-strong, color-mix(in srgb, var(--tg-theme-text-color,#111) 90%, #1f2937));
    }
    .workspace-empty-icon {
        display:grid; place-items:center; width:38px; height:38px; border-radius:12px;
        color:var(--tg-theme-button-color,#267fd9); background:var(--ws-accent-soft); font-size:18px;
    }
    .workspace-stack-row {
        display:flex; flex-direction:column; gap:5px; padding:10px; border:1px solid var(--ws-border);
        border-radius:12px; background:var(--tg-theme-bg-color,#fff); cursor:pointer;
    }
    .workspace-stack-row:focus-visible { outline:2px solid var(--tg-theme-button-color,#3390ec); }
    .workspace-stack-head { display:flex; align-items:center; gap:7px; min-width:0; }
    .workspace-stack-icon { display:grid; place-items:center; width:25px; height:25px; border-radius:8px; background:var(--ws-accent-soft); }
    .workspace-stack-id { color:var(--tg-theme-hint-color,#68717d); font-size:9px; }
    .workspace-stack-head b { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
    .workspace-stack-open { margin-left:auto; color:var(--tg-theme-hint-color,#68717d); font-size:18px; }
    .workspace-stack-sub { overflow:hidden; color:var(--tg-theme-hint-color,#68717d); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }

/* cascade fix: workspace-shell desktop base was migrated from app.css (loads before
 ecosystem) to AFTER the early ecosystem mobile media rules. Re-assert responsive
 overrides so max-width:700 keeps a single-column shell (nav hidden, mobile select on). */
@media (max-width:920px) and (min-width:701px) {
    .workspace-layout { grid-template-columns:62px minmax(0,1fr); }
    .workspace-nav-group, .workspace-nav-item > span:not(.workspace-nav-icon) { display:none; }
    .workspace-nav-item { justify-content:center; padding:7px; }
}
@media (max-width:700px) {
    .workspace-hero { align-items:flex-start; padding:14px; border-radius:16px; }
    .workspace-hero h1 { font-size:21px; }
    .workspace-hero p { max-width:270px; font-size:11px; }
    .workspace-layout { display:block; }
    .workspace-nav { display:none; }
    .workspace-mobile-nav { display:block; position:sticky; top:2px; z-index:6; }
    .workspace-mobile-nav label { display:block; }
    .workspace-mobile-select {
        width:100%; max-width:none; min-height:46px; padding:0 12px; border:1px solid var(--ws-border);
        border-radius:13px; color:var(--tg-theme-text-color,#111);
        background:color-mix(in srgb,var(--tg-theme-bg-color,#fff) 94%,transparent);
        font:inherit; font-weight:700; backdrop-filter:blur(12px);
    }
    .workspace-content { margin-top:7px; }
}
