:root {
    --bg: #0b1020;
    --surface: #121935;
    --surface-2: #1b254b;
    --text: #eef2ff;
    --muted: #a9b3d1;
    --accent: #8ab4ff;
    --danger: #ff8a8a;
    --success: #91e3b0;
    --border: rgba(255,255,255,0.12);
    --cyan: #67d7f3;
    --amber: #e8b15d;
    --green: #5ac89d;
    --red: #ef728e;
    --purple: #a48eff;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: linear-gradient(180deg, #0a0f1d 0%, #101937 100%);
    color: var(--text);
}
.container {
    width: min(100%, 1080px);
    margin: 0 auto;
    padding: 32px 20px;
}
.card {
    background: rgba(18, 25, 53, 0.96);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}
.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.auth-card {
    width: min(100%, 460px);
}
input[type="email"],
input[type="password"],
input[type="text"],
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #0c1330;
    color: var(--text);
    outline: none;
}
label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--muted);
}
.field { margin-bottom: 16px; }
.btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: #071022;
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.kpi {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}
.kpi .label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}
.kpi .value {
    font-size: 28px;
    font-weight: 800;
}
.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}
.alert-error {
    background: rgba(255, 138, 138, 0.1);
    border: 1px solid rgba(255, 138, 138, 0.25);
    color: #ffd4d4;
}
.alert-success {
    background: rgba(145, 227, 176, 0.1);
    border: 1px solid rgba(145, 227, 176, 0.25);
    color: #d8ffe7;
}
a { color: var(--accent); text-decoration: none; }
.small { font-size: 13px; color: var(--muted); }
code { background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 6px; }

select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #0c1330;
    color: var(--text);
    outline: none;
}
.topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.hero-card {
    margin-bottom: 18px;
}
.hero-text {
    margin-top: -4px;
    margin-bottom: 20px;
}

.field-hint {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.track-select {
    width: 100%;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.list-stack {
    display: grid;
    gap: 12px;
}
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}
.list-item:hover {
    border-color: rgba(138,180,255,0.35);
    background: rgba(255,255,255,0.05);
}
.static-item:hover {
    border-color: var(--border);
    background: rgba(255,255,255,0.03);
}
.item-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.align-right {
    justify-content: flex-end;
    text-align: right;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
}
.status-draft {
    color: #f6e3a1;
    background: rgba(246, 227, 161, 0.08);
    border-color: rgba(246, 227, 161, 0.25);
}
.status-active {
    color: #b6d2ff;
    background: rgba(138, 180, 255, 0.08);
    border-color: rgba(138, 180, 255, 0.28);
}
.status-archived,
.status-neutral {
    color: #d8dfef;
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.16);
}
.status-progress {
    color: #bff1fb;
    background: rgba(103, 215, 243, 0.12);
    border-color: rgba(103, 215, 243, 0.28);
}
.status-review,
.status-warn {
    color: #f4deb7;
    background: rgba(232, 177, 93, 0.12);
    border-color: rgba(232, 177, 93, 0.28);
}
.status-passed {
    color: #c9f3e2;
    background: rgba(90, 200, 157, 0.12);
    border-color: rgba(90, 200, 157, 0.28);
}
.status-blocked {
    color: #e0d6ff;
    background: rgba(164, 142, 255, 0.12);
    border-color: rgba(164, 142, 255, 0.28);
}
.status-discarded {
    color: #ffd8a8;
    background: rgba(240, 180, 122, 0.12);
    border-color: rgba(240, 180, 122, 0.28);
}
.status-failed,
.status-danger {
    color: #ffc4d0;
    background: rgba(239, 114, 142, 0.12);
    border-color: rgba(239, 114, 142, 0.28);
}
.empty-state {
    padding: 28px;
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.02);
}
.empty-state h3 {
    margin-top: 0;
    margin-bottom: 10px;
}
.table-wrap {
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th,
.table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    vertical-align: top;
    text-align: left;
}
.table th {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.btn-small {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}
.two-col-grid {
    grid-template-columns: 1.2fr 0.8fr;
}
.meta-list {
    display: grid;
    gap: 12px;
}
.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.meta-label {
    color: var(--muted);
    font-size: 13px;
}
.meta-value {
    font-weight: 600;
    text-align: right;
}
.divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 20px 0;
}
.project-description {
    line-height: 1.7;
}
.narrow-container {
    width: min(100%, 860px);
}
@media (max-width: 860px) {
    .two-col-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 720px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .topbar-actions,
    .section-head,
    .list-item,
    .meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .align-right,
    .meta-value {
        text-align: left;
        justify-content: flex-start;
    }
}

.workspace-container {
    width: min(100%, 1240px);
}
.workspace-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.board-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.board-card-head {
    align-items: flex-start;
}
.board-title {
    margin: 6px 0 0;
    font-size: 26px;
}
.eyebrow {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.workspace-copy {
    line-height: 1.7;
}
.mini-list-stack {
    display: grid;
    gap: 10px;
}
.mini-list-item {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
}
.empty-inline {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,0.16);
    color: var(--muted);
    background: rgba(255,255,255,0.02);
}
.board-actions {
    margin-top: auto;
}

.btn-danger {
    background: rgba(255, 138, 138, 0.16);
    color: #ffdede;
    border: 1px solid rgba(255, 138, 138, 0.36);
}
.btn-danger:hover {
    background: rgba(255, 138, 138, 0.22);
}
.compact-actions {
    gap: 8px;
}
.mini-item-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}
.inline-form {
    display: inline-flex;
    margin: 0;
}

.phase-banner {
    margin-bottom: 18px;
    white-space: pre-line;
    line-height: 1.55;
}
.card-stack {
    display: grid;
    gap: 16px;
}
.card-shell {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}
.card-shell-head,
.nested-shell-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.card-shell-title {
    margin: 0;
    font-size: 20px;
}
.muted-copy {
    color: var(--muted);
    line-height: 1.65;
}
.meta-cluster {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.nested-stack {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.nested-shell {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(11, 16, 32, 0.32);
}
.checklist-items-stack {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}
.checklist-item-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
}
.checklist-item-row.is-done {
    border-color: rgba(145, 227, 176, 0.3);
    background: rgba(145, 227, 176, 0.06);
}
.done-meta {
    color: #d8ffe7;
}
.status-done {
    color: #d8ffe7;
    background: rgba(145, 227, 176, 0.12);
    border-color: rgba(145, 227, 176, 0.28);
}
.status-pending {
    color: #d8dfef;
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.16);
}
.check-toggle-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
    color: rgba(238, 242, 255, 0.72);
    cursor: pointer;
    transition: all 0.18s ease;
}
.check-toggle-btn:hover {
    border-color: rgba(138,180,255,0.4);
    background: rgba(138,180,255,0.08);
}
.check-toggle-btn.is-done {
    border-color: rgba(145, 227, 176, 0.42);
    background: rgba(145, 227, 176, 0.18);
    color: #d8ffe7;
    box-shadow: inset 0 0 0 1px rgba(145, 227, 176, 0.18);
}
.check-toggle-btn.is-done:hover {
    background: rgba(145, 227, 176, 0.24);
}
.check-toggle-icon {
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}
.subtle-grid {
    display: grid;
    gap: 12px;
}
@media (max-width: 720px) {
    .card-shell-head,
    .nested-shell-head,
    .checklist-item-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #0c1330;
    color: var(--muted);
}
.checklist-item-main {
    flex: 1 1 auto;
    min-width: 0;
}
.item-support-lane {
    margin: -2px 0 14px;
}
.support-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.support-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(9, 14, 28, 0.42);
}
.support-head {
    margin-bottom: 10px;
}
.comment-thread,
.evidence-stack {
    display: grid;
    gap: 10px;
}
.comment-node {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
}
.comment-node.has-replies {
    border-color: rgba(138,180,255,0.18);
}
.comment-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
}
.comment-body {
    line-height: 1.65;
    color: var(--text);
}
.comment-replies {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding-left: 14px;
    border-left: 2px solid rgba(255,255,255,0.08);
}
.mini-disclosure {
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
}
.mini-disclosure summary {
    cursor: pointer;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--muted);
    list-style: none;
}
.mini-disclosure summary::-webkit-details-marker {
    display: none;
}
.mini-disclosure[open] summary {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.inline-create-form {
    padding: 14px;
}
.evidence-card {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
}
.evidence-pill {
    margin-bottom: 10px;
}
.evidence-thumb {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-top: 6px;
}
.evidence-link-wrap {
    margin-top: 4px;
    line-height: 1.5;
    word-break: break-word;
}
.evidence-head-tools {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.evidence-plus-menu {
    position: relative;
}
.evidence-plus-menu summary {
    list-style: none;
}
.evidence-plus-menu summary::-webkit-details-marker {
    display: none;
}
.evidence-plus-btn {
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.evidence-plus-pop {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    top: auto;
    z-index: 60;
    width: min(320px, 82vw);
    padding: 10px;
    display: grid;
    gap: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(8, 12, 25, 0.98);
    box-shadow: 0 18px 48px rgba(0,0,0,0.42);
}
.evidence-add-block {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
}
.evidence-add-title {
    padding: 10px 12px 0;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: .03em;
    text-transform: uppercase;
}
.compact-inline-form {
    padding-top: 10px;
}
.compact-inline-form input[type="file"],
.compact-inline-form input[type="url"] {
    margin-top: 0;
}
.compact-row {
    justify-content: flex-start;
}
.evidence-stack-compact {
    gap: 8px;
}
.evidence-meta-line {
    margin-top: 8px;
    word-break: break-word;
}
.evidence-upload-note {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--muted);
}
.evidence-file-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.evidence-file-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    border: 1px solid rgba(147, 197, 253, 0.26);
    background: rgba(147, 197, 253, 0.1);
    color: #bfdbfe;
}
.evidence-file-main {
    min-width: 0;
}
.evidence-file-name {
    font-weight: 850;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.evidence-file-meta,
.evidence-description {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
    word-break: break-word;
}
.evidence-download-btn {
    white-space: nowrap;
}
.item-secondary-meta .status-pill {
    min-height: 28px;
}
@media (max-width: 720px) {
    .comment-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .support-grid {
        grid-template-columns: 1fr;
    }
}


.workspace-shell-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #06101f 0%, #08142c 100%);
}
.workspace-shell {
    display: grid;
    grid-template-columns: 320px minmax(560px, 1fr) 340px;
    gap: 14px;
    min-height: 100vh;
    padding: 14px;
    align-items: stretch;
}
.ws-pane {
    min-width: 0;
    min-height: 0;
}
.ws-left-pane,
.ws-main-pane,
.ws-right-pane {
    background: linear-gradient(180deg, rgba(16, 29, 61, 0.98), rgba(11, 22, 48, 0.98));
    border: 1px solid rgba(157, 183, 241, 0.14);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    overflow: hidden;
}
.ws-left-pane {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.ws-main-pane {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}
.ws-right-pane {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}
.ws-project-head {
    padding: 14px 18px 12px;
    border-bottom: 1px solid rgba(157, 183, 241, 0.14);
}
.ws-project-head-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ws-left-create-project {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
}
.ws-project-code,
.ws-selected-kicker,
.ws-side-kicker {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
}
.ws-project-head h1,
.ws-selected-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.08;
    letter-spacing: -0.04em;
}
.ws-project-head p,
.ws-selected-copy {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}
.ws-left-actions,
.ws-search-shell,
.ws-tree {
    padding-left: 18px;
    padding-right: 18px;
}
.ws-left-actions {
    display: grid;
    gap: 10px;
    padding-bottom: 16px;
}
.ws-search-shell {
    padding-top: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(157, 183, 241, 0.14);
    display: grid;
    gap: 12px;
}
.ws-search-shell label {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ws-search-shell input {
    height: 46px;
    padding: 0 14px;
    border-radius: 16px;
    border-color: rgba(157, 183, 241, 0.14);
    background: rgba(6, 16, 34, 0.55);
}
.ws-scope-toggle {
    display: flex;
    gap: 8px;
    margin-top: 0;
    padding: 4px;
    border-radius: 14px;
    background: rgba(6, 16, 34, 0.55);
    border: 1px solid rgba(157, 183, 241, 0.14);
}
.scope-pill {
    appearance: none;
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--muted);
    border-radius: 14px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.scope-pill.is-active {
    color: var(--text);
    background: linear-gradient(180deg, rgba(122, 160, 255, 0.22), rgba(122, 160, 255, 0.12));
    box-shadow: inset 0 0 0 1px rgba(150, 184, 255, 0.24), 0 8px 20px rgba(0,0,0,0.14);
}
.ws-search-meta {
    display: none;
}
.ws-search-results {
    margin-top: 0;
    display: grid;
    gap: 8px;
    max-height: 320px;
    overflow: auto;
}
.ws-search-results[hidden] {
    display: none !important;
}
.ws-search-result {
    display: grid;
    gap: 6px;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid rgba(157, 183, 241, 0.10);
    background: rgba(7, 17, 36, 0.32);
    color: var(--text);
}
.ws-search-result:hover {
    border-color: rgba(138,180,255,0.35);
    background: rgba(138,180,255,0.08);
}
.ws-search-result-top,
.ws-search-result-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.ws-search-result-kind,
.ws-search-result-project,
.ws-search-result-code,
.ws-search-result-meta {
    font-size: 11px;
    color: var(--muted);
}
.ws-search-result-kind {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}
.ws-search-result-project {
    color: var(--accent);
}
.ws-search-result-title {
    font-weight: 700;
    line-height: 1.5;
}
.ws-search-empty {
    padding: 14px;
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,0.16);
    color: var(--muted);
    font-size: 13px;
}
.ws-tree {
    padding-top: 12px;
    padding-bottom: 16px;
    display: grid;
    gap: 6px;
    min-height: 0;
    overflow: auto;
}
.ws-root-link,
.ws-tree-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
}
.ws-root-link:hover,
.ws-tree-link:hover {
    border-color: rgba(157, 183, 241, 0.10);
    background: rgba(255,255,255,0.03);
    color: var(--text);
}
.ws-root-link.is-current,
.ws-tree-link.is-current {
    border-color: rgba(138,180,255,0.32);
    background: rgba(138,180,255,0.12);
    color: var(--text);
}
.ws-root-title {
    font-weight: 700;
}
.ws-root-meta {
    font-size: 12px;
    color: var(--muted);
}
.ws-empty-nav {
    padding: 14px;
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,0.18);
    color: var(--muted);
    font-size: 13px;
}
.ws-node {
    border: 0;
    border-radius: 0;
    background: transparent;
}
.ws-node summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 14px;
    cursor: pointer;
    list-style: none;
    color: var(--muted);
}
.ws-node summary:hover {
    background: rgba(255,255,255,0.03);
    color: var(--text);
}
.ws-node[open] > summary {
    color: var(--text);
}
.ws-node summary::-webkit-details-marker {
    display: none;
}
.ws-node-body {
    display: grid;
    gap: 6px;
    padding: 0 0 0 18px;
}
.ws-node-child {
    margin-left: 0;
}
.ws-node-kind {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.ws-node-label {
    flex: 1;
    font-weight: 700;
    min-width: 0;
}
.ws-node-count {
    color: var(--muted);
    font-size: 12px;
}
.ws-tree-leaf {
    margin-left: 0;
}

.ws-root-link,
.ws-tree-link,
.ws-node summary {
    padding: 4px 0;
    min-height: 34px;
    background: transparent;
    border: 0;
}
.ws-root-link:hover,
.ws-tree-link:hover,
.ws-node summary:hover,
.ws-root-link.is-current,
.ws-tree-link.is-current,
.ws-node summary.is-current {
    background: transparent;
    border: 0;
}
.ws-tree-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}
.ws-node-toggle,
.ws-node-toggle-spacer {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-grid;
    place-items: center;
}
.ws-node-toggle {
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: rgba(132,173,255,.08);
    color: rgba(222, 234, 255, .92);
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, color .16s ease;
}
.ws-node-toggle:hover {
    background: rgba(132,173,255,.16);
    color: #fff;
}
.ws-node-toggle .icon-glyph {
    width: 15px;
    height: 15px;
}
.ws-node[open] > summary .ws-node-toggle {
    color: #fff;
}
.ws-node[open] > summary .ws-node-toggle .icon-glyph {
    transform: rotate(90deg);
}
.ws-node-toggle-spacer {
    background: transparent;
}
.ws-node-icon {
    width: 15px;
    height: 15px;
    display: inline-grid;
    place-items: center;
    color: rgba(216, 228, 255, 0.85);
    flex: 0 0 15px;
}
.ws-node-icon .icon-glyph {
    width: 15px;
    height: 15px;
}
.ws-tree-pill {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    padding: 5px 12px;
    border-radius: 999px;
    color: rgba(240, 245, 255, 0.92);
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ws-tree-pill.is-current,
.ws-root-link.is-current .ws-tree-pill,
.ws-tree-link.is-current .ws-tree-pill,
.ws-node summary.is-current .ws-tree-pill {
    background: linear-gradient(180deg, rgba(115, 152, 242, 0.26), rgba(115, 152, 242, 0.14));
    box-shadow: inset 0 0 0 1px rgba(158, 191, 255, 0.28);
}
.ws-node-count {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 28px;
    font-size: 12px;
    font-weight: 800;
    color: rgba(240,245,255,0.88);
    border: 1px solid rgba(157, 183, 241, 0.16);
    background: rgba(8, 19, 43, 0.72);
}
.ws-root-meta,
.ws-node-kind {
    display: none;
}
.ws-node-body {
    gap: 2px;
    padding: 0 0 0 18px;
    margin-left: 11px;
    border-left: 1px dashed rgba(157, 183, 241, 0.12);
}
.ws-project-node > .ws-node-body {
    padding-top: 2px;
}
.ws-tree-link {
    justify-content: flex-start;
}
.ws-tree-link .status-pill {
    display: none;
}
.ws-root-link {
    justify-content: space-between;
}
.ws-root-link + .ws-root-link,
.ws-root-link + .ws-project-node,
.ws-project-node + .ws-root-link,
.ws-project-node + .ws-project-node {
    margin-top: 8px;
}
.ws-left-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin-top: auto;
    display: flex;
    gap: 12px;
    padding: 14px 18px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(15,28,60,0.88), rgba(11,22,48,0.98));
}
.ws-tree {
    padding-top: 12px;
    padding-bottom: 10px;
}
.workspace-shell.is-global-search .ws-tree {
    opacity: 0.72;
}
.ws-project-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.ws-project-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(157, 183, 241, 0.14);
    background: linear-gradient(180deg, rgba(21, 37, 76, 0.82), rgba(14, 27, 58, 0.9));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.ws-project-card.is-current {
    border-color: rgba(138, 180, 255, 0.38);
    box-shadow: inset 0 0 0 1px rgba(138, 180, 255, 0.14), 0 10px 28px rgba(0,0,0,0.18);
}
.ws-project-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.ws-project-card-code {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.ws-project-card h4 {
    margin: 0;
    font-size: 26px;
    line-height: 1.04;
    letter-spacing: -0.04em;
}
.ws-project-card-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.ws-project-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ws-main-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(157, 183, 241, 0.14);
}
.ws-main-topbar > div:first-child {
    flex: 1;
    min-width: 0;
}
.ws-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}
.ws-breadcrumbs a {
    color: var(--muted);
}
.ws-sep {
    color: rgba(255,255,255,0.25);
}
.ws-head-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    flex-wrap: nowrap;
    padding-top: 2px;
}
.ws-head-actions-left,
.ws-head-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ws-head-actions-right {
    justify-content: flex-end;
}

.iconbtn {
    appearance: none;
    border: 1px solid rgba(157, 183, 241, 0.18);
    background: rgba(7, 17, 36, 0.46);
    color: var(--text);
    border-radius: 16px;
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    font-size: 16px;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.iconbtn:hover {
    border-color: rgba(157, 183, 241, 0.32);
    transform: translateY(-1px);
}
.iconbtn.danger {
    color: #ffe4ea;
    border-color: rgba(239,114,142,.18);
    background: linear-gradient(180deg, rgba(239,114,142,.11), rgba(239,114,142,.05));
}
.iconbtn.is-disabled,
.iconbtn:disabled {
    cursor: not-allowed;
    opacity: .48;
    transform: none;
    box-shadow: none;
    pointer-events: none;
}
.iconbtn.is-disabled:hover,
.iconbtn:disabled:hover {
    border-color: rgba(157, 183, 241, 0.18);
    transform: none;
}

.ws-action-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ws-action-side-primary {
    justify-content: flex-end;
}
.ws-action-side-utility {
    justify-content: flex-end;
}
.ws-action-hub {
    position: relative;
}

.ws-action-hub-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(320px, calc(100vw - 64px));
    border-radius: 20px;
    border: 1px solid rgba(157, 183, 241, 0.14);
    background: linear-gradient(180deg, rgba(20,35,72,0.98), rgba(11,22,48,0.98));
    box-shadow: 0 24px 42px rgba(0,0,0,0.28);
    z-index: 40;
    overflow: hidden;
}

.ws-action-group + .ws-action-group {
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(157, 183, 241, 0.08);
}


.ws-action-group {
    padding: 12px 12px 10px;
}

.ws-action-group-title {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.ws-action-link {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    text-align: left;
    appearance: none;
    border: 1px solid rgba(157,183,241,.10);
    background: rgba(7,17,36,.34);
    color: var(--text);
    padding: 11px 12px;
    font-size: 14px;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
}
.ws-action-link:hover {
    border-color: rgba(157,183,241,.18);
    background: rgba(7,17,36,.46);
}

.ws-action-link.is-muted,
.ws-action-link:disabled {
    color: var(--muted);
    cursor: not-allowed;
    opacity: .82;
}
.ws-action-icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: var(--muted);
}
.ws-action-copy strong {
    display: block;
    font-size: .92rem;
}
.ws-action-sub,
.ws-action-user-highlight {
    display: none;
}

.ws-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}
.ws-main-content {
    min-height: 0;
    overflow: auto;
    padding: 18px;
}
.ws-kpi-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 18px;
}
.ws-object-list {
    display: grid;
    gap: 14px;
}
.ws-object-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
}
.ws-object-card.compact {
    padding: 16px;
}
.ws-object-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.ws-object-head h3 {
    margin: 0;
    font-size: 20px;
}
.ws-mini-checklist {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}
.ws-mini-checklist-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}
.ws-item-focus {
    max-width: 780px;
}
.ws-side-head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid rgba(157, 183, 241, 0.14);
}
.ws-side-head-copy {
    display: none;
}
.ws-side-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
}
.ws-side-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin-left: auto;
}
.ws-side-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    appearance: none;
    border: 1px solid rgba(157, 183, 241, 0.14);
    background: rgba(6,16,34,0.55);
    color: var(--muted);
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
}
.ws-side-tab.is-active {
    color: var(--text);
    background: rgba(132,173,255,0.12);
    border-color: rgba(132,173,255,0.18);
}
.ws-right-body {
    overflow: auto;
    padding: 18px;
    display: grid;
    gap: 14px;
    align-content: start;
}
.ws-side-panel {
    padding: 0;
    display: none;
    gap: 14px;
}
.ws-side-panel.is-active {
    display: grid;
}
.ws-side-card {
    padding: 18px;
}
.ws-user-chip-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.ws-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    font-size: 12px;
}
.ws-activity-list {
    display: grid;
    gap: 12px;
}
.ws-activity-item {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
}
.ws-activity-title {
    font-weight: 700;
    margin-bottom: 6px;
}
@media (max-width: 1480px) {
    .workspace-shell {
        grid-template-columns: 300px minmax(420px, 1fr) 320px;
    }
}
@media (max-width: 1220px) {
    .workspace-shell {
        grid-template-columns: 1fr;
    }
    .ws-left-pane,
    .ws-main-pane,
    .ws-right-pane {
        min-height: 340px;
    }
}
@media (max-width: 860px) {
    .workspace-shell {
        padding: 12px;
    }
    .ws-main-topbar,
    .ws-side-head,
    .ws-object-head,
    .ws-head-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .ws-head-actions,
    .ws-action-side,
    .ws-action-side-primary,
    .ws-action-side-utility {
        justify-content: flex-start;
    }
    .ws-action-user-highlight {
        align-items: flex-start;
        flex-direction: column;
    }
}


.ws-foot-link {
    color: var(--muted);
    font-size: 13px;
}
.iconbtn-bell,
.iconbtn-edit,
.iconbtn-delete,
.iconbtn-hub {
    position: relative;
}
.iconbtn-bell {
    background: rgba(7, 17, 36, 0.62);
}
.iconbtn-hub {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border-color: rgba(132,173,255,.18);
    background: linear-gradient(180deg, rgba(125,163,255,.18), rgba(98,140,255,.10));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 12px 28px rgba(0,0,0,.18);
}
.iconbtn-hub:hover {
    border-color: rgba(132,173,255,.32);
}
.iconbtn-edit {
    background: linear-gradient(180deg, rgba(132,173,255,.10), rgba(132,173,255,.05));
}
.iconbtn-edit .icon-glyph {
    color: var(--accent);
}
.iconbtn-delete .icon-glyph {
    color: #ff9ab0;
}
.iconbtn-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(180deg, #ff8aa3, #f15a79);
    border: 2px solid #0d1835;
}
.icon-glyph {
    width: 18px;
    height: 18px;
    display: block;
}
.ws-action-note { display:none; }
.ws-side-tab-count {
    opacity: .78;
    font-size: .78rem;
    font-weight: 800;
}
.ws-action-link + .ws-action-link {
    margin-top: 8px;
}
.ws-member-manager {
    display: grid;
    gap: 12px;
}
.ws-picker-stack {
    display: grid;
    gap: 10px;
    max-height: 260px;
    overflow: auto;
}
.ws-picker-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}
.ws-picker-check {
    display: flex;
    justify-content: center;
    padding-top: 2px;
}
.ws-picker-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.ws-member-stack {
    display: grid;
    gap: 12px;
}
.ws-member-row {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
}
.ws-member-main {
    min-width: 0;
}
.ws-member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.ws-member-role-form select {
    min-width: 110px;
}

.ws-action-hub-scroll {
    max-height: min(68vh, 560px);
    overflow: auto;
    padding: 2px 0;
}
.ws-action-hub-left .ws-action-hub-menu {
    left: 0;
    right: auto;
}
.ws-action-hub-right .ws-action-hub-menu {
    right: 0;
    left: auto;
}
.ws-side-card .section-head h3 {
    margin: 0;
}

.ws-root-link + .ws-root-link {
    margin-top: 4px;
}
.ws-root-link {
    padding-left: 0;
}

/* Workspace header correction */
.workspace-shell-body {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 14px;
}
.ws-global-topbar {
    margin: 14px 14px 0;
    height: 76px;
    min-height: 76px;
    max-height: 76px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(180deg, rgba(16, 29, 61, 0.98), rgba(11, 22, 48, 0.98));
    border: 1px solid rgba(157, 183, 241, 0.14);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
    box-sizing: border-box;
    flex: 0 0 76px;
    overflow: visible;
}
.ws-global-spacer {
    flex: 1 1 auto;
}
.ws-global-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    position: relative;
    flex: 0 0 auto;
    align-self: center;
}
.ws-global-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
}
.ws-profile-shell {
    position: relative;
    flex: 0 0 auto;
}
.ws-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    padding: 14px;
    display: grid;
    gap: 6px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(16, 29, 61, 0.98), rgba(11, 22, 48, 0.98));
    border: 1px solid rgba(157, 183, 241, 0.16);
    box-shadow: 0 24px 60px rgba(0,0,0,0.34);
    z-index: 120;
}
.ws-profile-name {
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}
.ws-profile-email {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
    margin-bottom: 8px;
}
.ws-profile-logout {
    width: 100%;
    justify-content: center;
}
.workspace-shell {
    min-height: 0;
    padding-top: 0;
}
.ws-left-footer {
    justify-content: flex-start;
}
.ws-main-topbar {
    align-items: center;
    padding: 18px 22px 14px;
    min-height: 72px;
    box-sizing: border-box;
}
.ws-breadcrumbs {
    margin-bottom: 0;
    min-width: 0;
    flex: 1 1 auto;
}
.ws-head-actions {
    margin-left: auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}
.ws-head-actions-left,
.ws-head-actions-right {
    display: contents;
}
.ws-action-hub-right {
    position: relative;
}
.ws-action-hub-right .ws-action-hub-menu {
    top: calc(100% + 12px);
}
.ws-main-pane,
.ws-right-pane,
.ws-left-pane {
    min-height: 0;
}
@media (max-width: 860px) {
    .ws-global-topbar {
        margin: 12px 12px 0;
    }
    .workspace-shell-body {
        gap: 12px;
    }
    .ws-main-topbar {
        align-items: flex-start;
    }
    .ws-head-actions {
        margin-left: 0;
    }
}


/* Track Workspace — shell geometry lock fix */
:root {
    --ws-shell-pad: 14px;
    --ws-shell-gap: 14px;
    --ws-left-width: 320px;
    --ws-right-width: 340px;
    --ws-topbar-height: 64px;
}

.workspace-shell-body {
    min-height: 100vh;
    margin: 0;
    padding: var(--ws-shell-pad);
    display: grid;
    grid-template-columns: var(--ws-left-width) minmax(560px, 1fr) var(--ws-right-width);
    grid-template-rows: var(--ws-topbar-height) minmax(0, 1fr);
    gap: var(--ws-shell-gap);
    background: linear-gradient(180deg, #06101f 0%, #08142c 100%);
    overflow: hidden;
    box-sizing: border-box;
}

.workspace-shell {
    display: contents;
}

.ws-global-topbar {
    grid-column: 2 / 4;
    grid-row: 1;
    margin: 0;
    width: auto;
    height: var(--ws-topbar-height);
    min-height: var(--ws-topbar-height);
    max-height: var(--ws-topbar-height);
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
    overflow: visible;
    z-index: 20;
}

.ws-left-pane {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 0;
    height: calc(100vh - (var(--ws-shell-pad) * 2));
}

.ws-main-pane {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    height: calc(100vh - (var(--ws-shell-pad) * 2) - var(--ws-topbar-height) - var(--ws-shell-gap));
}

.ws-right-pane {
    grid-column: 3;
    grid-row: 2;
    min-height: 0;
    height: calc(100vh - (var(--ws-shell-pad) * 2) - var(--ws-topbar-height) - var(--ws-shell-gap));
}

.ws-left-pane,
.ws-main-pane,
.ws-right-pane {
    align-self: stretch;
    overflow: hidden;
}

.ws-main-topbar {
    min-height: 68px;
    padding: 14px 22px;
    align-items: center;
}

.ws-main-content,
.ws-right-body,
.ws-tree {
    min-height: 0;
}

.ws-profile-menu[hidden],
.ws-action-hub-menu[hidden] {
    display: none !important;
}

.ws-profile-shell,
.ws-action-hub-right {
    position: relative;
}

.ws-action-hub-menu,
.ws-profile-menu {
    z-index: 140;
}

.ws-workflow-overlay[hidden] {
    display: none !important;
}

.ws-workflow-overlay {
    position: fixed;
    top: calc(var(--ws-shell-pad) + var(--ws-topbar-height) + var(--ws-shell-gap));
    right: var(--ws-shell-pad);
    bottom: var(--ws-shell-pad);
    left: calc(var(--ws-shell-pad) + var(--ws-left-width) + var(--ws-shell-gap));
    z-index: 260;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.ws-workflow-backdrop {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: rgba(3, 8, 18, 0.62);
    backdrop-filter: blur(6px);
}

.ws-workflow-panel {
    position: relative;
    z-index: 1;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 29, 61, 0.98), rgba(11, 22, 48, 0.98));
    border: 1px solid rgba(157, 183, 241, 0.16);
    box-shadow: 0 28px 68px rgba(0,0,0,0.38);
}

.ws-workflow-head {
    min-height: 58px;
    padding: 10px 14px 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(157, 183, 241, 0.14);
}

.ws-workflow-title {
    min-width: 0;
}

.ws-workflow-title strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
}

.ws-workflow-title span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.ws-workflow-close {
    flex: 0 0 auto;
}

.ws-workflow-frame {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    border: 0;
    background: transparent;
}


.ws-export-overlay[hidden] {
    display: none !important;
}

.ws-export-overlay {
    position: fixed;
    top: calc(var(--ws-shell-pad) + var(--ws-topbar-height) + var(--ws-shell-gap));
    right: var(--ws-shell-pad);
    bottom: var(--ws-shell-pad);
    left: calc(var(--ws-shell-pad) + var(--ws-left-width) + var(--ws-shell-gap));
    z-index: 265;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.ws-export-backdrop {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: rgba(3, 8, 18, 0.68);
    backdrop-filter: blur(6px);
}

.ws-export-panel {
    position: relative;
    z-index: 1;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 29, 61, 0.98), rgba(11, 22, 48, 0.98));
    border: 1px solid rgba(157, 183, 241, 0.16);
    box-shadow: 0 28px 68px rgba(0,0,0,0.38);
}

.ws-export-head {
    min-height: 58px;
    padding: 10px 14px 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(157, 183, 241, 0.14);
}

.ws-export-title-wrap {
    min-width: 0;
}

.ws-export-title-wrap strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
}

.ws-export-title-wrap span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.ws-export-body {
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    padding: 16px 18px 18px;
}

.ws-export-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.ws-export-meta {
    display: grid;
    gap: 4px;
}

.ws-export-filename {
    font-weight: 700;
    font-size: 14px;
}

.ws-export-status {
    color: var(--muted);
    font-size: 12px;
}

.ws-export-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ws-export-message {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(157, 183, 241, 0.12);
    background: rgba(7, 17, 36, 0.52);
    color: var(--text);
    font-size: 13px;
}

.ws-export-message.is-error {
    border-color: rgba(239, 68, 68, 0.22);
    color: #fecaca;
    background: rgba(75, 15, 24, 0.42);
}

.ws-export-message.is-success {
    border-color: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
    background: rgba(7, 54, 29, 0.35);
}

.ws-export-code {
    min-height: 0;
    margin: 0;
    padding: 16px;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(157, 183, 241, 0.14);
    background: rgba(5, 12, 27, 0.9);
    color: #dbe8ff;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.workspace-embed-body {
    margin: 0;
    min-height: 100%;
    background: linear-gradient(180deg, rgba(6, 16, 31, 0.96), rgba(8, 20, 44, 0.98));
}

.workspace-embed-wrap {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.workspace-embed-shell {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(157, 183, 241, 0.14);
    background: rgba(7, 17, 36, 0.42);
}

.workspace-embed-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.workspace-embed-head h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
}

.workspace-embed-head p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.workspace-embed-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.workspace-embed-shell .card {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.workspace-embed-shell .alert {
    margin-bottom: 14px;
}

@media (max-width: 1480px) {
    :root {
        --ws-left-width: 300px;
        --ws-right-width: 320px;
    }
    .workspace-shell-body {
        grid-template-columns: var(--ws-left-width) minmax(420px, 1fr) var(--ws-right-width);
    }
}

@media (max-width: 1220px) {
    .workspace-shell-body {
        overflow: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }
    .ws-global-topbar,
    .ws-left-pane,
    .ws-main-pane,
    .ws-right-pane {
        grid-column: 1;
        grid-row: auto;
        height: auto;
    }
    .workspace-shell {
        display: contents;
    }
    .ws-workflow-overlay,
    .ws-export-overlay {
        inset: 12px;
    }
}

@media (max-width: 860px) {
    .workspace-shell-body {
        padding: 12px;
        gap: 12px;
    }
    .ws-global-topbar {
        padding: 8px 14px;
    }
    .ws-workflow-overlay,
    .ws-export-overlay {
        inset: 12px;
    }
    .workspace-embed-head,
    .ws-export-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .workspace-embed-actions {
        justify-content: flex-start;
    }
}


.ws-selected-surface {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(157, 183, 241, 0.14);
    background: linear-gradient(180deg, rgba(20,35,72,0.72), rgba(11,22,48,0.68));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.015);
    margin-bottom: 18px;
}
.ws-selected-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}
.ws-selected-copy {
    flex: 1;
    min-width: 0;
}
.ws-selected-kicker {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.ws-selected-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.ws-selected-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}
.ws-selected-description {
    margin: 14px 0 0;
    max-width: 860px;
    color: var(--muted);
    line-height: 1.6;
}
.ws-selected-aside {
    display: grid;
    gap: 10px;
    justify-items: end;
    flex: 0 0 auto;
}
.ws-path-chip,
.ws-updated-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(157, 183, 241, 0.14);
    background: rgba(7, 17, 36, 0.34);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.ws-selected-actions {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(157, 183, 241, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.ws-selected-quick {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.ws-selected-note {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
    min-width: 220px;
}
.ws-workflow-summary-grid .ws-summary-card {
    display: grid;
    gap: 12px;
}
.ws-tree-state-pill {
    margin-left: 2px;
    flex: 0 0 auto;
    min-height: 26px;
    padding: 4px 10px;
    font-size: 11px;
}
.ws-workflow-lanes-zone {
    margin-top: 8px;
}
.ws-current-tree-toggle {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}
.ws-current-tree-toggle .ws-current-tree-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.ws-current-tree-hint {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.ws-current-tree-chevron {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: transform .18s ease;
}
.ws-workflow-lanes-zone:not(.is-collapsed) .ws-current-tree-chevron {
    transform: rotate(90deg);
}
.ws-workflow-lanes {
    display: grid;
    gap: 8px;
}
.ws-workflow-lane {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
}
.ws-workflow-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.ws-form-stack {
    display: grid;
    gap: 8px;
}
.ws-workflow-note-block {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(157,183,241,0.12);
    background: rgba(255,255,255,0.03);
}
.ws-workflow-history-list {
    margin-top: 14px;
}
.ws-workflow-history-item {
    gap: 8px;
}
.ws-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-bottom: 18px;
}
.ws-summary-card {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(157, 183, 241, 0.12);
    background: rgba(255, 255, 255, 0.03);
}
.ws-summary-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ws-summary-value {
    margin-top: 10px;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.ws-summary-hint {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.ws-surface-block {
    border-radius: 20px;
    border: 1px solid rgba(157, 183, 241, 0.12);
    background: rgba(255, 255, 255, 0.02);
    padding: 18px;
}
.ws-surface-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.ws-surface-head h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.ws-item-focus .meta-list {
    margin-top: 16px;
}
@media (max-width: 1120px) {
    .ws-selected-top {
        flex-direction: column;
    }
    .ws-selected-aside {
        justify-items: start;
    }
}
@media (max-width: 720px) {
    .ws-selected-surface,
    .ws-surface-block {
        padding: 18px;
    }
    .ws-selected-actions {
        align-items: flex-start;
    }
    .ws-selected-note {
        justify-content: flex-start;
        min-width: 0;
    }
    .ws-path-chip,
    .ws-updated-chip {
        white-space: normal;
    }
}

.ws-workbench-stack {
    display: grid;
    gap: 16px;
}
.ws-workbench-group {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(157, 183, 241, 0.12);
    background: rgba(255, 255, 255, 0.03);
}
.ws-workbench-group.is-current {
    border-color: rgba(138, 180, 255, 0.32);
    box-shadow: inset 0 0 0 1px rgba(138, 180, 255, 0.12);
}
.ws-workbench-group-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.ws-workbench-group-head h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}
.ws-workbench-group-link {
    color: inherit;
    text-decoration: none;
}
.ws-workbench-group-link:hover {
    color: var(--accent);
}
.ws-workbench-items {
    display: grid;
    gap: 12px;
}
.ws-workbench-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
}
.ws-workbench-item.is-done {
    border-color: rgba(145, 227, 176, 0.28);
    background: rgba(145, 227, 176, 0.08);
}
.ws-workbench-item.is-selected {
    border-color: rgba(138,180,255,0.38);
    box-shadow: inset 0 0 0 1px rgba(138,180,255,0.18);
}
.ws-workbench-item-main {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
}
.ws-workbench-toggle-form {
    flex: 0 0 auto;
}
.ws-workbench-item-link {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.ws-workbench-item-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.ws-workbench-item-title {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}
.ws-workbench-item-code {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.ws-workbench-item-meta {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.55;
}
.ws-workbench-item-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.ws-workbench-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 0 0 auto;
}
.ws-workbench-item-actions .btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
@media (max-width: 1120px) {
    .ws-workbench-group-head,
    .ws-workbench-item,
    .ws-workbench-item-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .ws-workbench-item-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Pre–Pass 5A convergence correction */
.comment-thread {
    gap: 12px;
}
.comment-node {
    padding: 14px 15px;
    border-radius: 16px;
    background: rgba(255,255,255,0.024);
}
.comment-node.has-replies {
    border-color: rgba(138,180,255,0.14);
    background: rgba(138,180,255,0.04);
}
.comment-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.comment-reply-count {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(157,183,241,0.12);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    background: rgba(7,17,36,0.34);
}
.comment-reply-composer,
.comment-more-replies {
    border: 1px solid rgba(157,183,241,0.10);
    border-radius: 12px;
    background: rgba(7,17,36,0.26);
}
.comment-reply-composer summary,
.comment-more-replies summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 11px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.comment-reply-composer summary::-webkit-details-marker,
.comment-more-replies summary::-webkit-details-marker {
    display: none;
}
.comment-inline-thread {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: grid;
    gap: 10px;
}
.comment-inline-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.comment-reply-card {
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(157,183,241,0.10);
    background: rgba(7,17,36,0.34);
}
.comment-reply-card.is-compact .comment-meta-row {
    margin-bottom: 6px;
}
.comment-reply-card .comment-body {
    font-size: 13px;
    line-height: 1.55;
}
.comment-more-stack {
    display: grid;
    gap: 8px;
    padding: 0 10px 10px;
}

.ws-left-pane {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}
.ws-tree {
    gap: 3px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.ws-node-body {
    gap: 3px;
    padding-left: 12px;
}
.ws-root-link,
.ws-tree-link,
.ws-node summary {
    min-height: 30px;
    padding: 2px 0;
}
.ws-root-link + .ws-root-link,
.ws-root-link + .ws-project-node,
.ws-project-node + .ws-root-link,
.ws-root-link + .ws-root-link {
    margin-top: 1px;
}
.ws-tree-main {
    gap: 8px;
}
.ws-node-toggle,
.ws-node-toggle-spacer {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
}
.ws-node-toggle {
    background: rgba(132,173,255,.07);
}
.ws-node-toggle .icon-glyph {
    width: 13px;
    height: 13px;
}
.ws-node-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    color: rgba(225,234,255,.92);
}
.ws-node-icon .icon-glyph {
    width: 16px;
    height: 16px;
}
.ws-node-icon.is-project,
.ws-node-icon.is-board,
.ws-node-icon.is-list,
.ws-node-icon.is-card,
.ws-node-icon.is-group {
    color: rgba(232,239,255,.92);
}
.ws-node-icon.is-item-open {
    color: rgba(214,226,255,.88);
}
.ws-node-icon.is-item-done {
    color: #91e3b0;
}
.ws-node-icon.is-item-discarded {
    color: #f0b47a;
}
.ws-tree-pill {
    padding: 4px 10px;
    font-size: 12px;
}
.ws-tree-link.is-current .ws-tree-pill,
.ws-root-link.is-current .ws-tree-pill,
.ws-node summary.is-current .ws-tree-pill {
    box-shadow: inset 0 0 0 1px rgba(157,183,241,0.22);
}
.ws-node-count {
    font-size: 11px;
}

.ws-side-card .section-head {
    align-items: center;
}

.check-toggle-btn.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}
.ws-workbench-item.is-discarded {
    border-color: rgba(240,180,122,0.28);
    background: rgba(240,180,122,0.08);
}
.ws-workbench-item.is-discarded .ws-workbench-item-title,
.ws-workbench-item.is-discarded .ws-workbench-item-meta {
    color: rgba(233, 223, 210, 0.94);
}

.ws-member-stack {
    gap: 10px;
}
.ws-member-row {
    padding: 11px 12px;
}


/* Pre–Pass 5B convergence */
.scope-pill.scope-pill-sm {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 11px;
}
.ws-sort-shell {
    display: grid;
    gap: 10px;
    margin: 12px 0 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(157,183,241,0.10);
}
.ws-sort-row {
    display: grid;
    gap: 8px;
}
.ws-sort-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.ws-sort-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ws-project-root-list {
    display: grid;
    gap: 4px;
}
.ws-current-tree-zone {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(157,183,241,0.10);
}
.ws-current-tree-zone > summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 34px;
    cursor: pointer;
    padding: 2px 0;
}
.ws-current-tree-zone > summary::-webkit-details-marker {
    display: none;
}
.ws-current-tree-body {
    margin-top: 6px;
}
.comment-node {
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(157,183,241,0.10);
    background: rgba(255,255,255,0.022);
}
.comment-node.has-replies {
    background: rgba(138,180,255,0.038);
}
.comment-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
}
.comment-meta-row-compact {
    margin-bottom: 4px;
}
.comment-inline-delete .btn,
.comment-actions-row .btn {
    padding-inline: 10px;
}
.comment-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.comment-reply-count {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.comment-reply-composer,
.comment-more-replies {
    border: 1px solid rgba(157,183,241,0.10);
    border-radius: 12px;
    background: rgba(7,17,36,0.22);
}
.comment-reply-composer summary,
.comment-more-replies summary {
    list-style: none;
    cursor: pointer;
    padding: 7px 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.comment-inline-thread {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: grid;
    gap: 8px;
}
.comment-inline-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
}
.comment-reply-card {
    padding: 10px 11px;
    border-radius: 13px;
    border: 1px solid rgba(157,183,241,0.09);
    background: rgba(7,17,36,0.30);
}
.comment-reply-card.is-compact {
    padding: 9px 10px;
}
.comment-reply-card .comment-body {
    font-size: 13px;
    line-height: 1.5;
}
.comment-more-stack {
    display: grid;
    gap: 8px;
    padding: 0 10px 10px;
}
@media (max-width: 1120px) {
    .comment-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Pre–Pass 5B convergence follow-up */
.ws-sort-shell {
    display: block;
    margin: 12px 0 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(157,183,241,0.10);
}
.ws-sort-inline-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 8px;
    align-items: start;
}
.ws-sort-menu {
    position: relative;
}
.ws-sort-menu > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 12px;
    border: 1px solid rgba(157,183,241,0.14);
    background: rgba(7,17,36,0.34);
    cursor: pointer;
}
.ws-sort-menu > summary::-webkit-details-marker {
    display: none;
}
.ws-sort-menu[open] > summary {
    border-color: rgba(138,180,255,0.22);
    background: rgba(12,30,64,0.50);
}
.ws-sort-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ws-sort-current {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}
.ws-sort-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    gap: 4px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(157,183,241,0.14);
    background: rgba(7,17,36,0.96);
    box-shadow: 0 16px 36px rgba(0,0,0,0.34);
}
.ws-sort-option {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}
.ws-sort-option:hover,
.ws-sort-option.is-active {
    background: rgba(138,180,255,0.16);
    color: #fff;
}
.ws-project-root-list {
    gap: 2px;
}
.ws-root-link {
    min-height: 34px;
    padding-top: 4px;
    padding-bottom: 4px;
}
.ws-current-tree-zone {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(157,183,241,0.10);
}
.ws-current-tree-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.ws-current-tree-title {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.ws-current-tree-count {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.ws-current-tree-body {
    margin-top: 0;
}
.comment-actions-row {
    gap: 12px;
}
.comment-thread-replies {
    margin-top: 10px;
    border: 1px solid rgba(157,183,241,0.10);
    border-radius: 12px;
    background: rgba(7,17,36,0.18);
}
.comment-thread-replies summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 10px;
}
.comment-thread-replies summary::-webkit-details-marker {
    display: none;
}
.comment-thread-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.comment-thread-replies[open] {
    background: rgba(7,17,36,0.24);
}
.comment-thread-replies .comment-more-stack {
    padding: 0 10px 10px;
}
.comment-reply-card.is-compact {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
}
@media (max-width: 1120px) {
    .ws-sort-inline-row {
        grid-template-columns: 1fr;
    }
}


.comment-mention-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted, #9cb3dd);
}

.ws-mention-menu {
    margin-top: 8px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(138, 180, 255, 0.30);
    background: rgba(7, 15, 35, 0.98);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
}

.ws-mention-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 2px 4px;
    color: #eaf1ff;
    font-size: 12px;
    font-weight: 800;
}

.ws-mention-menu-head small {
    color: rgba(201, 216, 255, 0.66);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.ws-mention-menu-list {
    display: grid;
    gap: 6px;
}

.ws-mention-item {
    width: 100%;
    min-width: 0;
    text-align: left;
    border: 1px solid rgba(114, 155, 255, 0.18);
    background: linear-gradient(180deg, rgba(25, 45, 95, 0.98), rgba(12, 27, 62, 0.96));
    color: #eaf1ff;
    border-radius: 14px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.ws-mention-item:hover,
.ws-mention-item.is-active {
    transform: translateY(-1px);
    border-color: rgba(152, 196, 255, 0.54);
    background: linear-gradient(180deg, rgba(45, 76, 154, 0.98), rgba(20, 45, 101, 0.96));
    box-shadow: 0 10px 22px rgba(44, 98, 220, .24), inset 0 1px 0 rgba(255,255,255,0.08);
}

.ws-mention-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(154, 195, 255, .30);
    background: rgba(116, 164, 255, .14);
    color: #dce8ff;
    font-size: 12px;
    font-weight: 900;
}

.ws-mention-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.ws-mention-item-main {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
}

.ws-mention-item-email,
.ws-mention-empty {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: rgba(201, 216, 255, 0.76);
}

.ws-mention-role {
    justify-self: end;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 999px;
    padding: 4px 7px;
    border: 1px solid rgba(154, 195, 255, .18);
    background: rgba(255,255,255,.045);
    color: rgba(221, 232, 255, .84);
    font-size: 10px;
    font-weight: 800;
}

.ws-mention-empty {
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed rgba(154, 195, 255, .22);
    background: rgba(255,255,255,.035);
}


.ws-notification-lane-tabs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}
.ws-notification-lane-tab {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: inherit;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}
.ws-notification-lane-tab.is-active {
    border-color: rgba(132,173,255,.32);
    background: linear-gradient(180deg, rgba(125,163,255,.18), rgba(98,140,255,.10));
}
.ws-notification-lane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.ws-notification-lane-copy {
    color: rgba(201, 216, 255, 0.78);
}
.ws-notification-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.ws-notification-body,
.ws-request-history,
.ws-request-history-note,
.ws-request-role {
    margin-top: 8px;
}
.ws-notification-item.is-unread,
.ws-request-item.is-unread {
    border-color: rgba(255, 197, 92, 0.32);
    box-shadow: inset 0 0 0 1px rgba(255, 197, 92, 0.08);
}
.ws-request-actions-row {
    margin-top: 10px;
}


/* Pass 6A — visual convergence + workflow exposure */
.workspace-shell .ws-root-link,
.workspace-shell .ws-tree-link,
.workspace-shell .ws-node summary {
    min-height: 38px;
    padding: 7px 10px !important;
    border-radius: 14px;
    border: 1px solid transparent !important;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.workspace-shell .ws-root-link:hover,
.workspace-shell .ws-tree-link:hover,
.workspace-shell .ws-node summary:hover {
    background: rgba(132,173,255,.08) !important;
    border-color: rgba(157,183,241,.12) !important;
    color: var(--text);
}
.workspace-shell .ws-root-link.is-current,
.workspace-shell .ws-tree-link.is-current,
.workspace-shell .ws-node summary.is-current {
    background: linear-gradient(180deg, rgba(132,173,255,.16), rgba(132,173,255,.10)) !important;
    border-color: rgba(132,173,255,.16) !important;
    color: var(--text);
}
.workspace-shell .ws-tree-pill {
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 700;
}
.workspace-shell .ws-node-count {
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--muted);
    border: 1px solid rgba(157,183,241,.14);
    background: rgba(10,20,42,.5);
}
.workspace-shell .ws-current-tree-body {
    margin-top: 4px;
}
.ws-hover-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 320;
    max-width: 320px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(157,183,241,.18);
    background: rgba(8, 18, 40, 0.96);
    color: rgba(240,245,255,.96);
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: .01em;
    box-shadow: 0 16px 40px rgba(0,0,0,.34);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .14s ease, transform .14s ease;
}
.ws-hover-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ws-tree-state-indicator {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex: 0 0 10px;
    margin-left: 4px;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 0 0 3px rgba(255,255,255,.02);
}
.ws-tree-state-indicator.is-open { background: rgba(214,226,255,.78); }
.ws-tree-state-indicator.is-in_progress { background: var(--cyan); }
.ws-tree-state-indicator.is-in_review { background: var(--amber); }
.ws-tree-state-indicator.is-blocked { background: var(--purple); }
.ws-tree-state-indicator.is-passed { background: var(--green); }
.ws-tree-state-indicator.is-failed { background: var(--red); }
.ws-tree-state-indicator.is-discarded { background: #f0b47a; }
.ws-tree-state-indicator.is-neutral { background: rgba(214,226,255,.34); }
.ws-node-icon.is-workflow {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}
.ws-node-icon.is-workflow .icon-glyph {
    width: 18px;
    height: 18px;
}
.ws-node-icon.is-workflow.is-open { color: rgba(214,226,255,.88); }
.ws-node-icon.is-workflow.is-in_progress { color: var(--cyan); }
.ws-node-icon.is-workflow.is-in_review { color: var(--purple); }
.ws-node-icon.is-workflow.is-blocked { color: var(--amber); }
.ws-node-icon.is-workflow.is-passed { color: var(--green); }
.ws-node-icon.is-workflow.is-failed { color: var(--red); }
.ws-node-icon.is-workflow.is-neutral { color: rgba(214,226,255,.42); }
.ws-workflow-lanes {
    gap: 6px;
}
.ws-workflow-lane {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
}
.ws-workflow-lane:hover {
    background: rgba(132,173,255,.06);
    border-color: rgba(157,183,241,.10);
}
.ws-workflow-lane-main,
.ws-workflow-strip-main,
.ws-card-inline-workflow-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.ws-workflow-lane-label,
.ws-workflow-strip-label {
    font-weight: 700;
    color: rgba(237,243,255,.92);
}
.ws-summary-grid.ws-workflow-summary-grid {
    display: none;
}
.ws-workflow-strip {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(157,183,241,.12);
    background: rgba(255,255,255,.02);
}
.ws-workflow-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.ws-workflow-strip-head .eyebrow {
    margin-bottom: 0;
}
.ws-workflow-strip-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}
.ws-workflow-strip-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(157,183,241,.10);
    background: rgba(10,20,42,.45);
}
.ws-workflow-strip-item.is-zero {
    opacity: .7;
}
.ws-workflow-strip-count {
    font-weight: 800;
    color: rgba(237,243,255,.95);
}
.ws-card-inline-workflow {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(157,183,241,.12);
}
.ws-inline-eyebrow {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.ws-card-inline-workflow-copy {
    display: grid;
    gap: 8px;
}
.ws-status-trigger {
    min-height: 38px;
    padding: 3px 12px 3px 4px;
    border-radius: 999px;
    border: 1px solid rgba(157,183,241,.18);
    background: rgba(10,20,42,.56);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.ws-status-trigger:hover {
    border-color: rgba(157,183,241,.32);
}
.ws-status-trigger:focus-visible,
.ws-status-option:focus-visible {
    outline: 2px solid rgba(132,173,255,.55);
    outline-offset: 2px;
}
.ws-status-trigger-text {
    font-size: 13px;
    font-weight: 800;
    color: rgba(237,243,255,.94);
}
.ws-status-trigger-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    color: var(--muted);
    transition: transform .18s ease;
}
.ws-card-inline-workflow.is-open .ws-status-trigger-icon {
    transform: rotate(180deg);
}
.ws-status-popover[hidden] {
    display: none !important;
}
.ws-status-popover {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 80;
    width: min(320px, calc(100vw - 120px));
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(157,183,241,.18);
    background: linear-gradient(180deg, rgba(20,35,72,.98), rgba(11,22,48,.98));
    box-shadow: 0 24px 48px rgba(0,0,0,.34);
    overflow: hidden;
}
.ws-card-inline-workflow.is-upward .ws-status-popover {
    top: auto;
    bottom: calc(100% + 10px);
}
.ws-status-popover-form {
    display: block;
}
.ws-status-popover-scroll {
    max-height: min(360px, calc(100vh - 260px));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 10px;
    display: grid;
    gap: 10px;
}
.ws-status-popover-list {
    display: grid;
    gap: 6px;
}
.ws-status-option {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(157,183,241,.12);
    background: rgba(10,20,42,.52);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}
.ws-status-option:hover {
    border-color: rgba(157,183,241,.26);
    background: rgba(20,35,72,.76);
}
.ws-status-option.is-current {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.ws-status-option.is-open.is-current {
    background: rgba(132,173,255,.14);
}
.ws-status-option.is-in_progress.is-current {
    background: rgba(103,215,243,.14);
}
.ws-status-option.is-in_review.is-current {
    background: rgba(232,177,93,.16);
}
.ws-status-option.is-blocked.is-current {
    background: rgba(243,181,74,.16);
}
.ws-status-option.is-passed.is-current {
    background: rgba(108,214,161,.16);
}
.ws-status-option.is-failed.is-current {
    background: rgba(255,123,123,.16);
}
.ws-status-option.is-discarded.is-current {
    background: rgba(240,180,122,.16);
}
.ws-status-note-pane {
    display: grid;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(157,183,241,.12);
}
.ws-status-note-title {
    font-size: 13px;
    font-weight: 800;
    color: rgba(237,243,255,.94);
}
.ws-profile-menu {
    min-width: 220px;
}
.ws-profile-link {
    width: 100%;
    justify-content: center;
}
.ws-left-footer {
    justify-content: space-between;
}


.ws-project-tree-root {
  margin-bottom: 0;
}
.ws-project-tree-root > summary {
  background: rgba(18, 34, 78, 0.42);
}
.ws-project-tree-root > .ws-node-body {
  padding-top: 10px;
}

/* Pass 9C — quiet checklist-item state UI */
.ws-workbench-group-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
}
.ws-workbench-group-stats span {
    white-space: nowrap;
}
.ws-workbench-item {
    padding: 12px 13px;
    border-color: rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.018);
}
.ws-workbench-item.is-done {
    border-color: rgba(145, 227, 176, 0.16);
    background: rgba(145, 227, 176, 0.035);
}
.ws-workbench-item.is-state-in-progress,
.ws-workbench-item.is-state-waiting,
.ws-workbench-item.is-state-blocked,
.ws-workbench-item.is-review-ready-for-review,
.ws-workbench-item.is-review-in-review,
.ws-workbench-item.is-review-changes-requested {
    border-color: rgba(138,180,255,0.18);
}
.ws-workbench-item-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.ws-workbench-item-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ws-item-type-chip {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 10px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .01em;
    white-space: nowrap;
}
.ws-item-type-chip.status-progress {
    color: #cfe3ff;
    background: rgba(132,173,255,.08);
}
.ws-item-type-chip.status-neutral,
.ws-item-type-chip.status-open {
    color: var(--muted);
    background: rgba(255,255,255,.035);
}
.ws-item-signal.is-type {
    font-size: 10px;
    opacity: .92;
}
.ws-item-signal {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.13);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .01em;
}
.ws-item-signal.is-count {
    color: var(--muted);
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.11);
}
.ws-workbench-item-actions {
    position: relative;
}
.ws-item-icon-btn {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.035);
    color: rgba(232,239,255,.9);
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
}
.ws-item-icon-btn:hover,
.ws-item-state-menu[open] > .ws-item-icon-btn {
    border-color: rgba(138,180,255,0.32);
    background: rgba(138,180,255,0.10);
    color: #fff;
}
.ws-item-state-menu {
    position: relative;
}
.ws-item-state-menu > summary {
    list-style: none;
}
.ws-item-state-menu > summary::-webkit-details-marker {
    display: none;
}
.ws-item-state-panel {
    position: absolute;
    top: 38px;
    right: 0;
    z-index: 50;
    width: 252px;
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(157,183,241,0.22);
    background: rgba(17, 23, 38, 0.98);
    box-shadow: 0 18px 42px rgba(0,0,0,.38);
}
.ws-item-state-panel label,
.ws-side-state-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ws-item-state-panel select,
.ws-item-state-panel textarea,
.ws-side-state-form select,
.ws-side-state-form textarea,
.track-select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.045);
    color: var(--text);
    padding: 8px 10px;
    outline: none;
}
.ws-item-state-panel textarea,
.ws-side-state-form textarea {
    resize: vertical;
    min-height: 56px;
}
.ws-side-state-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.form-grid.compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 1120px) {
    .ws-workbench-group-stats {
        justify-content: flex-start;
    }
    .ws-item-state-panel {
        position: static;
        width: min(100%, 280px);
        margin-top: 8px;
    }
    .form-grid.compact-grid {
        grid-template-columns: 1fr;
    }
}

/* Pass 9E — right-pane analytics view */
.ws-summary-card-button {
    width: 100%;
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: pointer;
    display: grid;
    gap: 0;
}
.ws-summary-card-button:hover,
.ws-summary-card-button:focus-visible {
    border-color: rgba(132,173,255,0.34);
    background: rgba(132,173,255,0.055);
    outline: none;
}
.ws-summary-card-button .ws-summary-label,
.ws-summary-card-button .ws-summary-value,
.ws-summary-card-button .ws-summary-hint {
    display: block;
}
.ws-analytics-card {
    overflow: hidden;
}
.ws-analytics-rings {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.ws-analytics-ring-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(157,183,241,0.12);
    background: rgba(255,255,255,0.025);
}
.ws-analytics-ring {
    --value: 0;
    width: 68px;
    height: 68px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(13,27,56,0.98) 0 53%, transparent 54%),
        conic-gradient(rgba(132,173,255,0.82) calc(var(--value) * 1%), rgba(255,255,255,0.10) 0);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.ws-analytics-ring span {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.04em;
}
.ws-analytics-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.ws-analytics-mini-card {
    padding: 12px;
    border-radius: 15px;
    border: 1px solid rgba(157,183,241,0.11);
    background: rgba(255,255,255,0.022);
}
.ws-analytics-mini-card .ws-summary-value {
    font-size: 22px;
}
.ws-analytics-bars {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}
.ws-analytics-bar-row {
    display: grid;
    gap: 7px;
}
.ws-analytics-bar-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.ws-analytics-bar-meta strong {
    color: var(--text);
}
.ws-analytics-bar-track {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.07);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.045);
}
.ws-analytics-bar-track span {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
    background: rgba(132,173,255,0.72);
}
.ws-analytics-note {
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(157,183,241,0.11);
    background: rgba(255,255,255,0.025);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
@media (max-width: 860px) {
    .ws-analytics-mini-grid {
        grid-template-columns: 1fr;
    }
}
.ws-summary-card-button {
    appearance: none;
    border: 1px solid rgba(157, 183, 241, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.ws-flash-banner {
    margin: 0 0 16px;
    max-width: 100%;
}

/* Pass 11B: card workflow quick filters */
.ws-workflow-filter-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.ws-workflow-filter-link.is-active {
    border-color: rgba(126, 246, 177, 0.38);
    background: rgba(126, 246, 177, 0.08);
    box-shadow: inset 0 0 0 1px rgba(126, 246, 177, 0.08);
}
.ws-workflow-filter-link.is-active .ws-workflow-lane-label,
.ws-workflow-filter-link.is-active .ws-workflow-strip-label,
.ws-workflow-filter-link.is-active .ws-workflow-strip-count {
    color: rgba(238, 255, 246, 0.98);
}
.ws-filter-chip,
.ws-filter-context-row .ws-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(126, 246, 177, 0.24);
    background: rgba(126, 246, 177, 0.08);
    color: rgba(225, 255, 238, 0.96);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.ws-filter-chip:hover {
    border-color: rgba(126, 246, 177, 0.42);
    background: rgba(126, 246, 177, 0.12);
}
.ws-filter-context-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 14px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(157, 183, 241, 0.10);
    background: rgba(255, 255, 255, 0.025);
}
@media (max-width: 760px) {
    .ws-filter-context-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Pass 11B: quiet card schedule fields */
input[type="date"],
input[type="datetime-local"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #0c1330;
    color: var(--text);
    outline: none;
    color-scheme: dark;
}
.track-form-grid {
    display: grid;
    gap: 14px;
}
.track-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 760px) {
    .track-form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Pass 11B.2 + 11C.1: compact planning/time controls */
.iconbtn-planning {
    background: linear-gradient(180deg, rgba(103,215,243,.12), rgba(103,215,243,.05));
}
.iconbtn-planning .icon-glyph {
    color: var(--cyan);
}
.track-time-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.track-time-pair input[type="number"] {
    width: 100%;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #0c1330;
    color: var(--text);
    outline: none;
}
.track-time-pair span {
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}
.track-time-pair.is-disabled,
.track-time-mode-root.is-time-disabled .track-time-pair {
    opacity: .52;
}
.track-time-pair input:disabled {
    cursor: not-allowed;
    opacity: .62;
}

/* Pass 11D: exposed time/action surface + compact timer controls */
.iconbtn-time {
    background: linear-gradient(180deg, rgba(103, 215, 243, .13), rgba(103, 215, 243, .045));
    color: var(--cyan);
}
.iconbtn-time.is-disabled,
.ws-item-icon-btn:disabled {
    opacity: .42;
    cursor: not-allowed;
    filter: grayscale(.35);
}
.iconbtn-discard {
    color: rgba(255, 209, 102, .95);
}
.iconbtn-danger {
    color: rgba(255, 126, 126, .98);
    background: rgba(255, 105, 135, .08);
    border-color: rgba(255, 105, 135, .16);
}
.iconbtn-danger:disabled {
    color: rgba(255, 126, 126, .45);
    background: rgba(255,255,255,.035);
    border-color: rgba(255,255,255,.08);
}
.track-timer-card {
    display: grid;
    gap: 16px;
}
.track-timer-head,
.track-timer-metrics,
.track-timer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.track-timer-head {
    justify-content: space-between;
    flex-wrap: wrap;
}
.track-timer-head h2 {
    margin: 0;
    font-size: 18px;
}
.track-timer-metrics strong {
    font-size: 22px;
    letter-spacing: -0.04em;
}
.track-timer-action-btn {
    min-width: 42px;
    min-height: 42px;
    font-size: 15px;
}
.track-manual-time-form {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(157, 183, 241, .10);
    background: rgba(255,255,255,.025);
}
.track-manual-time-form label,
.track-time-history h3 {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.track-time-history {
    display: grid;
    gap: 8px;
}
.track-time-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid rgba(157, 183, 241, .10);
    color: var(--muted);
    font-size: 12px;
}
.track-time-entry span,
.track-time-entry strong {
    color: var(--text);
    font-weight: 900;
}
.track-time-entry small {
    grid-column: 1 / -1;
    color: var(--muted);
    line-height: 1.45;
}
@media (max-width: 760px) {
    .track-time-entry {
        grid-template-columns: 1fr;
    }
}

/* Pass 11D.4: planning field UX + timer status clarity */
.status-stopped {
    color: #c7d1e4;
    background: rgba(148, 163, 184, .10);
    border-color: rgba(148, 163, 184, .24);
}
.track-date-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.track-date-input {
    cursor: pointer;
}
.track-clear-field {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(157, 183, 241, .16);
    background: rgba(255,255,255,.035);
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}
.track-clear-field:hover {
    color: var(--text);
    border-color: rgba(103, 215, 243, .28);
}
.track-time-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.track-time-summary-cell {
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(157, 183, 241, .10);
    background: rgba(255,255,255,.025);
}
.track-time-summary-cell span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.track-time-summary-cell strong {
    color: var(--text);
    font-size: 14px;
}
.track-timer-live {
    font-variant-numeric: tabular-nums;
}
.track-timer-helper {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(103, 215, 243, .14);
    background: rgba(103, 215, 243, .055);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.track-side-time-card {
    display: grid;
    gap: 12px;
}
.track-side-time-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.track-side-time-actions .track-timer-action-btn {
    min-width: 38px;
    min-height: 38px;
}
.track-manual-time-form.compact {
    padding: 10px;
}
@media (max-width: 760px) {
    .track-date-field,
    .track-time-summary-grid {
        grid-template-columns: 1fr;
    }
}

.ws-active-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.ws-health-strip,
.ws-focus-queue {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.025);
    border-radius: 18px;
    padding: 14px;
    margin-top: 14px;
}
.ws-health-strip-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.ws-health-strip-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    color: var(--text);
    text-decoration: none;
}
.ws-health-strip-item:hover,
.ws-health-strip-item.is-active,
.ws-focus-item:hover {
    border-color: rgba(138,180,255,0.36);
    background: rgba(138,180,255,0.08);
}
.ws-health-strip-item.is-zero {
    opacity: .58;
}
.ws-health-strip-item > strong {
    font-size: 13px;
}
.ws-focus-queue-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}
.ws-focus-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    color: var(--text);
    text-decoration: none;
}
.ws-focus-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.ws-focus-main strong,
.ws-focus-main em {
    overflow-wrap: anywhere;
}
.ws-focus-main em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}
.ws-health-lanes-zone .ws-current-tree-toggle {
    margin-top: 10px;
}
.ws-lane-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.ws-health-result-card {
    border-color: rgba(138,180,255,0.18);
}

/* Pass 11E UI correction: Schedule Health belongs in the right pane, using calm chips. */
.ws-side-health-card,
.ws-side-focus-card {
    display: grid;
    gap: 12px;
}
.ws-side-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.ws-side-health-chip {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(157,183,241,.14);
    background: rgba(255,255,255,.035);
    color: rgba(237,243,255,.92);
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
}
.ws-side-health-chip strong {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.ws-side-health-chip.status-neutral { background: rgba(148,163,184,.09); border-color: rgba(148,163,184,.20); color: #dbe3f2; }
.ws-side-health-chip.status-warn { background: rgba(232,177,93,.10); border-color: rgba(232,177,93,.26); color: #f2d6a9; }
.ws-side-health-chip.status-progress { background: rgba(103,215,243,.10); border-color: rgba(103,215,243,.25); color: #bff1fb; }
.ws-side-health-chip.status-danger { background: rgba(239,114,142,.10); border-color: rgba(239,114,142,.25); color: #ffc4d0; }
.ws-side-health-chip.is-zero {
    opacity: .58;
}
.ws-side-health-chip:hover,
.ws-side-health-chip.is-active {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.18);
}
.ws-side-focus-list {
    display: grid;
    gap: 8px;
}
.ws-side-focus-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(157,183,241,.10);
    background: rgba(255,255,255,.025);
    color: var(--text);
    text-decoration: none;
}
.ws-side-focus-item:hover {
    border-color: rgba(138,180,255,.28);
    background: rgba(138,180,255,.055);
}
.ws-side-focus-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.ws-side-focus-main strong,
.ws-side-focus-main em {
    overflow-wrap: anywhere;
}
.ws-side-focus-main em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

/* Calm status coloring on the left-nav status filters. */
.ws-workflow-lane {
    opacity: .92;
}
.ws-workflow-lane.has-value,
.ws-workflow-lane.is-active {
    opacity: 1;
}
.ws-workflow-lane.is-zero:not(.is-active) {
    opacity: .84;
}
.ws-workflow-lane.is-state-open {
    background: rgba(132,173,255,.095);
    border-color: rgba(132,173,255,.22);
}
.ws-workflow-lane.is-state-in_progress {
    background: rgba(103,215,243,.078);
    border-color: rgba(103,215,243,.19);
}
.ws-workflow-lane.is-state-in_review {
    background: rgba(164,142,255,.078);
    border-color: rgba(164,142,255,.19);
}
.ws-workflow-lane.is-state-blocked {
    background: rgba(232,177,93,.078);
    border-color: rgba(232,177,93,.21);
}
.ws-workflow-lane.is-state-passed {
    background: rgba(90,200,157,.078);
    border-color: rgba(90,200,157,.21);
}
.ws-workflow-lane.is-state-failed {
    background: rgba(239,114,142,.078);
    border-color: rgba(239,114,142,.21);
}
.ws-workflow-lane.is-state-discarded {
    background: rgba(148,163,184,.075);
    border-color: rgba(148,163,184,.20);
}
.ws-workflow-lane.is-active {
    filter: saturate(1.16) brightness(1.06);
}
.ws-workflow-lane:hover,
.ws-workflow-lane.is-active {
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}

/* Calm status coloring on the main status filter chips. */
.ws-workflow-strip-item.is-state-open { background: rgba(148,163,184,.075); border-color: rgba(148,163,184,.16); }
.ws-workflow-strip-item.is-state-in_progress { background: rgba(103,215,243,.085); border-color: rgba(103,215,243,.20); }
.ws-workflow-strip-item.is-state-in_review { background: rgba(164,142,255,.085); border-color: rgba(164,142,255,.20); }
.ws-workflow-strip-item.is-state-blocked { background: rgba(232,177,93,.085); border-color: rgba(232,177,93,.22); }
.ws-workflow-strip-item.is-state-passed { background: rgba(90,200,157,.085); border-color: rgba(90,200,157,.22); }
.ws-workflow-strip-item.is-state-failed { background: rgba(239,114,142,.085); border-color: rgba(239,114,142,.22); }
.ws-workflow-strip-item.is-state-discarded { background: rgba(148,163,184,.06); border-color: rgba(148,163,184,.16); }
.ws-workflow-strip-item:hover,
.ws-workflow-strip-item.is-active {
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}

/* Calm status coloring inside the card status dropdown. */
.ws-status-option.is-open { background: rgba(148,163,184,.08); border-color: rgba(148,163,184,.18); }
.ws-status-option.is-in_progress { background: rgba(103,215,243,.09); border-color: rgba(103,215,243,.22); }
.ws-status-option.is-in_review { background: rgba(164,142,255,.09); border-color: rgba(164,142,255,.22); }
.ws-status-option.is-blocked { background: rgba(232,177,93,.09); border-color: rgba(232,177,93,.24); }
.ws-status-option.is-passed { background: rgba(90,200,157,.09); border-color: rgba(90,200,157,.24); }
.ws-status-option.is-failed { background: rgba(239,114,142,.09); border-color: rgba(239,114,142,.24); }
.ws-status-option.is-discarded { background: rgba(148,163,184,.065); border-color: rgba(148,163,184,.18); }
.ws-status-option:hover,
.ws-status-option.is-current {
    filter: brightness(1.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
@media (max-width: 760px) {
    .ws-side-health-grid {
        grid-template-columns: 1fr;
    }
}


/* UI hotfix: readable status selects, stronger calm Open/Discarded color, and non-sticky state menus. */
.status-open {
    color: #d8e7ff;
    background: rgba(132, 173, 255, 0.105);
    border-color: rgba(132, 173, 255, 0.26);
}
.status-discarded {
    color: #cfd8e8;
    background: rgba(148, 163, 184, 0.105);
    border-color: rgba(148, 163, 184, 0.26);
}
.ws-workflow-strip-item.is-state-open {
    background: rgba(132,173,255,.105);
    border-color: rgba(132,173,255,.26);
}
.ws-workflow-strip-item.is-state-discarded {
    background: rgba(148,163,184,.095);
    border-color: rgba(148,163,184,.25);
}
.ws-workflow-strip-item.is-state-open .ws-node-icon,
.ws-workflow-strip-item.is-state-open .ws-workflow-strip-label,
.ws-workflow-strip-item.is-state-open .ws-workflow-strip-count {
    color: #d8e7ff;
}
.ws-workflow-strip-item.is-state-discarded .ws-node-icon,
.ws-workflow-strip-item.is-state-discarded .ws-workflow-strip-label,
.ws-workflow-strip-item.is-state-discarded .ws-workflow-strip-count {
    color: #cfd8e8;
}
.ws-node-icon.is-workflow.is-open { color: #9dbdff; }
.ws-node-icon.is-workflow.is-neutral { color: #9da8bc; }
.ws-status-option.is-open {
    background: rgba(132,173,255,.105);
    border-color: rgba(132,173,255,.25);
    color: #d8e7ff;
}
.ws-status-option.is-discarded {
    background: rgba(148,163,184,.095);
    border-color: rgba(148,163,184,.24);
    color: #cfd8e8;
}
.ws-item-state-panel select,
.ws-side-state-form select,
.ws-workflow-panel select,
.form-grid select,
.track-form select,
.track-select {
    color-scheme: dark;
    background-color: #111b31;
    color: #eef4ff;
    border-color: rgba(157,183,241,.24);
}
.ws-item-state-panel select option,
.ws-side-state-form select option,
.ws-workflow-panel select option,
.form-grid select option,
.track-form select option,
.track-select option {
    background-color: #111b31;
    color: #eef4ff;
}
.ws-item-state-panel select option.open,
.ws-item-state-panel select option.none,
.ws-side-state-form select option.open,
.ws-side-state-form select option.none { color: #d8e7ff; }
.ws-item-state-panel select option.in_progress,
.ws-side-state-form select option.in_progress { color: #bff1fb; }
.ws-item-state-panel select option.in_review,
.ws-side-state-form select option.in_review,
.ws-item-state-panel select option.ready_for_review,
.ws-side-state-form select option.ready_for_review { color: #f4deb7; }
.ws-item-state-panel select option.waiting,
.ws-side-state-form select option.waiting,
.ws-item-state-panel select option.blocked,
.ws-side-state-form select option.blocked,
.ws-item-state-panel select option.changes_requested,
.ws-side-state-form select option.changes_requested { color: #f2d6a9; }
.ws-item-state-panel select option.done,
.ws-side-state-form select option.done,
.ws-item-state-panel select option.approved,
.ws-side-state-form select option.approved { color: #c9f3e2; }
.ws-item-state-panel select option.discarded,
.ws-side-state-form select option.discarded { color: #cfd8e8; }
.ws-item-state-panel select option.rejected,
.ws-side-state-form select option.rejected { color: #ffc4d0; }
.ws-item-state-menu[open] > .ws-item-icon-btn {
    border-color: rgba(132,173,255,.52);
    background: rgba(132,173,255,.14);
    color: #eaf1ff;
}

@media (max-width: 520px) {
    .evidence-file-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }
    .evidence-download-btn {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

/* Premium Track login page */
body.auth-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(48, 102, 255, 0.18), transparent 30%),
        radial-gradient(circle at 79% 24%, rgba(103, 215, 243, 0.14), transparent 25%),
        radial-gradient(circle at 50% 96%, rgba(59, 91, 219, 0.16), transparent 32%),
        linear-gradient(135deg, #050916 0%, #081128 48%, #0d1734 100%);
    color: #f7f9ff;
}
body.auth-page::before,
body.auth-page::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
}
body.auth-page::before {
    width: 640px;
    height: 640px;
    right: -240px;
    top: -220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(77, 127, 255, 0.24), rgba(77, 127, 255, 0.02) 56%, transparent 70%);
    filter: blur(10px);
}
body.auth-page::after {
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, rgba(0,0,0,0.72), transparent 68%);
}
.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 520px);
    align-items: center;
    gap: clamp(34px, 7vw, 96px);
}
.login-orbit {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.orbit-line {
    position: absolute;
    border: 1px dashed rgba(138, 180, 255, 0.16);
    border-radius: 50%;
    transform: rotate(-9deg);
}
.orbit-line-one {
    width: 840px;
    height: 310px;
    left: 4vw;
    top: 11vh;
}
.orbit-line-two {
    width: 970px;
    height: 360px;
    right: -11vw;
    bottom: 11vh;
    transform: rotate(12deg);
}
.floating-panel {
    position: absolute;
    border: 1px solid rgba(146, 173, 230, 0.15);
    background: linear-gradient(145deg, rgba(15, 27, 61, 0.60), rgba(9, 16, 38, 0.22));
    border-radius: 18px;
    box-shadow: 0 22px 70px rgba(0,0,0,0.26);
    color: rgba(175, 194, 242, 0.48);
    backdrop-filter: blur(12px);
}
.panel-title {
    font-size: 12px;
    letter-spacing: 0.01em;
    color: rgba(205, 216, 246, 0.46);
    margin-bottom: 12px;
}
.panel-title b {
    float: right;
    font-weight: 700;
}
.panel-board {
    width: 280px;
    left: 9vw;
    top: 6vh;
    padding: 18px;
    transform: rotate(5deg);
    opacity: 0.68;
}
.mini-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.mini-board span {
    font-size: 11px;
    color: rgba(195, 209, 244, 0.42);
}
.mini-board i {
    height: 33px;
    border-radius: 8px;
    border: 1px solid rgba(138,180,255,0.13);
    background: rgba(92, 127, 219, 0.08);
    position: relative;
}
.mini-board i::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    left: 9px;
    top: 11px;
    background: rgba(100, 144, 255, 0.72);
    box-shadow: 18px 1px 0 rgba(255,255,255,0.09), 34px 1px 0 rgba(255,255,255,0.07);
}
.panel-checks {
    width: 104px;
    left: 3vw;
    top: 24vh;
    padding: 19px 18px;
    display: grid;
    gap: 14px;
}
.panel-checks span {
    display: block;
    width: 64px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(126, 167, 255, 0.30), rgba(255,255,255,0.05));
    position: relative;
}
.panel-checks span::before {
    content: "✓";
    position: absolute;
    left: -2px;
    top: -6px;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(117, 154, 247, 0.44);
    border-radius: 6px;
    color: rgba(117, 154, 247, 0.80);
    background: rgba(9,16,38,0.84);
    display: grid;
    place-items: center;
    font-size: 12px;
}
.panel-chart {
    width: 188px;
    left: 2vw;
    bottom: 14vh;
    padding: 16px;
    color: rgba(84, 131, 255, 0.72);
}
.panel-chart svg {
    width: 100%;
    height: 72px;
    color: rgba(72, 118, 255, 0.82);
}
.panel-team {
    left: 8vw;
    bottom: 5vh;
    min-width: 258px;
    min-height: 74px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 20px;
    opacity: .66;
    background:
        linear-gradient(145deg, rgba(17, 29, 66, 0.58), rgba(8, 15, 36, 0.24)),
        rgba(10, 18, 42, 0.22);
}
.team-avatar,
.team-more {
    position: relative;
    width: 42px;
    height: 42px;
    margin-right: -7px;
    border-radius: 50%;
    border: 1px solid rgba(150, 180, 248, 0.26);
    background:
        radial-gradient(circle at 50% 34%, rgba(246, 237, 225, 0.90) 0 19%, transparent 20%),
        radial-gradient(circle at 50% 104%, rgba(74, 103, 175, 0.72) 0 40%, transparent 41%),
        linear-gradient(145deg, rgba(78, 125, 255, 0.42), rgba(14, 24, 58, 0.88));
    box-shadow: 0 12px 24px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.14);
    overflow: hidden;
}
.team-avatar::before {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    top: 8px;
    height: 15px;
    border-radius: 999px 999px 8px 8px;
    background: rgba(29, 39, 74, 0.78);
}
.team-avatar::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 7px;
    height: 14px;
    border-radius: 14px 14px 7px 7px;
    background: linear-gradient(135deg, rgba(90, 132, 255, 0.82), rgba(90, 200, 157, 0.34));
}
.avatar-two {
    background:
        radial-gradient(circle at 50% 34%, rgba(239, 218, 199, 0.92) 0 19%, transparent 20%),
        radial-gradient(circle at 50% 104%, rgba(109, 91, 180, 0.72) 0 40%, transparent 41%),
        linear-gradient(145deg, rgba(116, 152, 255, 0.36), rgba(12, 22, 54, 0.90));
}
.avatar-three {
    background:
        radial-gradient(circle at 50% 34%, rgba(226, 194, 169, 0.92) 0 19%, transparent 20%),
        radial-gradient(circle at 50% 104%, rgba(72, 141, 189, 0.72) 0 40%, transparent 41%),
        linear-gradient(145deg, rgba(83, 201, 227, 0.30), rgba(12, 22, 54, 0.90));
}
.avatar-four {
    background:
        radial-gradient(circle at 50% 34%, rgba(236, 215, 193, 0.92) 0 19%, transparent 20%),
        radial-gradient(circle at 50% 104%, rgba(138, 180, 255, 0.62) 0 40%, transparent 41%),
        linear-gradient(145deg, rgba(151, 130, 255, 0.36), rgba(12, 22, 54, 0.90));
}
.team-more {
    display: grid;
    place-items: center;
    margin-right: 0;
    color: rgba(201, 213, 249, 0.72);
    font-weight: 800;
    font-size: 13px;
    background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
}
.panel-calendar {
    width: 184px;
    left: 47vw;
    top: 4vh;
    padding: 16px;
    opacity: 0.54;
}
.mini-calendar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 9px;
}
.mini-calendar span,
.mini-calendar b {
    height: 8px;
    border-radius: 999px;
    background: rgba(138,180,255,0.15);
}
.mini-calendar b {
    background: rgba(74, 119, 255, 0.82);
    box-shadow: 0 0 0 6px rgba(74, 119, 255, 0.14);
}
.panel-comments {
    width: 190px;
    right: 5vw;
    top: 13vh;
    padding: 16px;
}
.mini-comment {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.mini-comment i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(103, 215, 243, 0.36), rgba(138, 180, 255, 0.18));
}
.mini-comment span {
    flex: 1;
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
}
.panel-bell,
.panel-import {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-style: dashed;
}
.panel-bell {
    right: 8vw;
    top: 41vh;
}
.panel-import {
    right: 11vw;
    bottom: 9vh;
}
.panel-bell::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4e7dff;
    box-shadow: 0 0 18px rgba(78, 125, 255, 0.78);
}
.panel-bell svg,
.panel-import svg,
.feature-chip svg,
.input-shell svg,
.login-trust svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.login-hero {
    position: relative;
    max-width: 660px;
    z-index: 2;
}
.brand-glass,
.brand-lockup,
.login-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
}
.brand-glass {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    max-width: min(100%, 520px);
    padding: 16px 18px;
    margin-bottom: 12px;
    border-radius: 22px;
    border: 1px solid rgba(166, 192, 255, 0.22);
    background: linear-gradient(145deg, rgba(18, 31, 70, 0.56), rgba(8, 14, 35, 0.24));
    box-shadow: 0 24px 60px rgba(0,0,0,0.24), 0 0 0 1px rgba(255,255,255,0.02) inset;
    backdrop-filter: blur(18px) saturate(1.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.18);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.brand-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02) 34%, transparent 55%);
    pointer-events: none;
}
.brand-glass::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at 12% 8%, rgba(132, 170, 255, 0.26), transparent 35%);
    opacity: .8;
    pointer-events: none;
}
.brand-glass:hover,
.brand-glass.is-engaged {
    transform: translateY(-2px);
    border-color: rgba(150, 184, 255, 0.36);
    background: linear-gradient(145deg, rgba(20, 35, 80, 0.66), rgba(8, 16, 39, 0.32));
    box-shadow: 0 28px 78px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.04) inset, 0 0 48px rgba(86, 125, 255, 0.22);
}
.brand-mark {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #eff5ff;
    font-size: 31px;
    font-weight: 950;
    letter-spacing: -0.08em;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.03)),
        linear-gradient(135deg, #20356f, #0c1532 58%, #111a38);
    border: 1px solid rgba(152, 182, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 16px 34px rgba(30, 79, 190, 0.24);
    text-shadow: 0 0 18px rgba(83, 130, 255, 0.86);
}
.eyebrow {
    margin: 0;
    font-size: 38px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.055em;
    color: #f9fbff;
}
.brand-subtitle {
    display: block;
    max-width: 360px;
    margin: 8px 0 0;
    color: #c7d4f8;
    font-size: 14px;
    line-height: 1.45;
}
.login-hero h1 {
    margin: clamp(36px, 5vw, 54px) 0 22px;
    font-size: clamp(48px, 6vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.075em;
    color: #f9fbff;
    max-width: 680px;
    text-wrap: balance;
}
.login-hero h1 span {
    color: #5f8cff;
    text-shadow: 0 0 42px rgba(95, 140, 255, 0.58);
}
.hero-copy {
    max-width: 560px;
    margin: 0 0 28px;
    color: #c9d4f5;
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 1.45;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 540px;
}
.feature-chip {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(149, 176, 239, 0.17);
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
    color: #eef3ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.feature-chip::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.02) 30%, rgba(124, 164, 255, 0.22) 50%, rgba(255,255,255,0.02) 70%, transparent 100%);
    transform: translateX(-120%);
    transition: transform .55s ease;
    pointer-events: none;
}
.feature-chip:hover,
.feature-chip:focus-within {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(128, 167, 255, 0.34);
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
    box-shadow: 0 14px 32px rgba(24, 46, 112, 0.24), 0 0 0 1px rgba(255,255,255,0.02) inset, 0 0 24px rgba(95, 140, 255, 0.14);
    animation: featurePulse 1.6s ease-in-out infinite;
}
.feature-chip:hover::before,
.feature-chip:focus-within::before {
    transform: translateX(120%);
}
.feature-chip svg {
    width: 21px;
    height: 21px;
    color: #5f8cff;
}
.feature-chip span {
    font-weight: 700;
    white-space: nowrap;
}
.login-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: clamp(26px, 4vw, 42px);
    border-radius: 28px;
    border: 1px solid rgba(169, 194, 255, 0.31);
    background:
        linear-gradient(145deg, rgba(26, 40, 88, 0.62), rgba(7, 13, 31, 0.38)),
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
        rgba(15, 24, 52, 0.36);
    box-shadow:
        0 36px 95px rgba(0,0,0,0.42),
        0 0 0 1px rgba(255,255,255,0.03) inset,
        0 0 70px rgba(73, 119, 255, 0.18);
    backdrop-filter: blur(28px) saturate(1.24);
    -webkit-backdrop-filter: blur(28px) saturate(1.24);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}
.login-card:hover,
.login-card:focus-within,
.login-card.is-engaged {
    transform: translateY(-2px);
    border-color: rgba(173, 198, 255, 0.46);
    background:
        linear-gradient(145deg, rgba(30, 47, 103, 0.68), rgba(7, 15, 36, 0.42)),
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)),
        rgba(15, 24, 52, 0.42);
    box-shadow:
        0 42px 110px rgba(0,0,0,0.46),
        0 0 0 1px rgba(255,255,255,0.05) inset,
        0 0 98px rgba(88, 132, 255, 0.24);
}
.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 14% 6%, rgba(126, 167, 255, 0.24), transparent 34%),
        radial-gradient(circle at 86% 100%, rgba(92, 136, 255, 0.16), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,0.12), transparent 28%);
    pointer-events: none;
}
.login-card-glow {
    position: absolute;
    left: 18%;
    right: 18%;
    top: -2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(143, 179, 255, 0.98), transparent);
    box-shadow: 0 0 30px rgba(143, 179, 255, 0.82);
    opacity: .8;
    transition: opacity .24s ease, box-shadow .24s ease, left .24s ease, right .24s ease;
}
.login-card:hover .login-card-glow,
.login-card:focus-within .login-card-glow,
.login-card.is-engaged .login-card-glow {
    left: 14%;
    right: 14%;
    opacity: 1;
    box-shadow: 0 0 44px rgba(143, 179, 255, 0.95);
}
.login-card > *:not(.login-card-glow) {
    position: relative;
    z-index: 1;
}
.login-card-head {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(170, 193, 246, 0.18);
    margin-bottom: 26px;
}
.login-brand-mark {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    font-size: 40px;
}
.login-card-head h2 {
    margin: 0;
    font-size: clamp(36px, 3vw, 48px);
    line-height: 1;
    letter-spacing: -0.06em;
}
.login-card-head p {
    margin: 11px 0 0;
    color: #b9c6ea;
    line-height: 1.45;
    max-width: 320px;
}
.auth-error {
    margin: -8px 0 22px;
}
.login-form {
    display: grid;
    gap: 18px;
}
.login-field {
    margin: 0;
}
.login-field label {
    color: #e8efff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 9px;
}
.input-shell {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 13px;
    border: 1px solid rgba(153, 180, 240, 0.27);
    background: linear-gradient(180deg, rgba(8, 15, 38, 0.66), rgba(7, 14, 36, 0.50));
    color: #8ea6df;
    padding: 0 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}
.input-shell:focus-within {
    transform: translateY(-1px);
    border-color: rgba(124, 164, 255, 0.78);
    background: linear-gradient(180deg, rgba(10, 19, 48, 0.92), rgba(8, 16, 40, 0.78));
    box-shadow: 0 0 0 4px rgba(92, 136, 255, 0.14), 0 16px 36px rgba(24, 55, 145, 0.22), 0 0 24px rgba(92, 136, 255, 0.10);
}
.input-shell > svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}
.input-shell input[type="email"],
.input-shell input[type="password"],
.input-shell input[type="text"] {
    border: 0;
    outline: 0;
    padding: 0;
    height: 54px;
    min-width: 0;
    flex: 1;
    color: #f7faff;
    background: transparent;
    box-shadow: none;
}
.input-shell input::placeholder {
    color: #8796bd;
}
.password-toggle {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: transparent;
    color: #8ea6df;
    cursor: pointer;
}
.password-toggle:hover,
.password-toggle:focus-visible {
    color: #dce7ff;
    background: rgba(138, 180, 255, 0.10);
    outline: none;
}
.password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.login-submit {
    margin-top: 12px;
    min-height: 58px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 850;
    cursor: pointer;
    background: linear-gradient(135deg, #6fa0ff, #3465ff 58%, #2e52dc);
    box-shadow: 0 18px 42px rgba(54, 99, 255, 0.34), inset 0 1px 0 rgba(255,255,255,0.24);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.login-submit:hover,
.login-submit:focus-visible {
    transform: translateY(-1px);
    filter: saturate(1.06);
    box-shadow: 0 22px 50px rgba(54, 99, 255, 0.42), inset 0 1px 0 rgba(255,255,255,0.28);
    outline: none;
}
.login-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: #91a3cd;
    font-size: 14px;
}
.login-trust svg {
    width: 22px;
    height: 22px;
    color: #5f8cff;
}

@keyframes featurePulse {
    0% { box-shadow: 0 14px 32px rgba(24, 46, 112, 0.20), 0 0 0 1px rgba(255,255,255,0.02) inset, 0 0 0 rgba(95, 140, 255, 0.00); }
    50% { box-shadow: 0 16px 38px rgba(24, 46, 112, 0.26), 0 0 0 1px rgba(255,255,255,0.02) inset, 0 0 28px rgba(95, 140, 255, 0.18); }
    100% { box-shadow: 0 14px 32px rgba(24, 46, 112, 0.20), 0 0 0 1px rgba(255,255,255,0.02) inset, 0 0 0 rgba(95, 140, 255, 0.00); }
}

@media (max-width: 1100px) {
    .login-shell {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: start;
    }
    .login-hero {
        max-width: 760px;
        margin: 0 auto;
        text-align: center;
    }
    .brand-glass {
        margin-left: auto;
        margin-right: auto;
    }
    .brand-lockup {
        justify-content: center;
    }
    .hero-copy,
    .feature-grid {
        margin-left: auto;
        margin-right: auto;
    }
    .login-card {
        max-width: 540px;
        margin: 0 auto;
    }
    .panel-board { left: 4vw; top: 4vh; }
    .panel-comments { right: 3vw; top: 8vh; }
    .panel-calendar,
    .panel-checks,
    .panel-team,
    .panel-import { display: none; }
}
@media (max-width: 720px) {
    body.auth-page {
        overflow: auto;
    }
    .login-shell {
        padding: 24px 16px 32px;
    }
    .login-hero {
        text-align: left;
    }
    .brand-glass {
        display: flex;
        width: 100%;
        max-width: 100%;
        padding: 14px 16px;
    }
    .brand-lockup {
        justify-content: flex-start;
        align-items: flex-start;
    }
    .brand-subtitle {
        display: block;
        font-size: 13px;
    }
    .login-hero h1 {
        font-size: clamp(42px, 14vw, 64px);
        letter-spacing: -0.065em;
    }
    .hero-copy {
        font-size: 17px;
    }
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .feature-chip {
        min-height: 50px;
        padding: 0 13px;
        gap: 10px;
    }
    .feature-chip span {
        font-size: 14px;
    }
    .login-card {
        border-radius: 22px;
        padding: 24px 18px;
    }
    .login-card-head {
        gap: 13px;
        padding-bottom: 22px;
        margin-bottom: 22px;
    }
    .login-brand-mark {
        width: 56px;
        height: 56px;
        font-size: 34px;
        border-radius: 16px;
    }
    .login-card-head h2 {
        font-size: 34px;
    }
    .login-card-head p {
        font-size: 14px;
    }
    .floating-panel,
    .orbit-line {
        display: none;
    }
}
@media (max-width: 430px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .eyebrow {
        font-size: 32px;
    }
    .brand-mark:not(.login-brand-mark) {
        width: 46px;
        height: 46px;
        font-size: 28px;
    }
}

/* Login polish pass: glass field autofill fix, background life, and card aura */
.login-card {
    overflow: visible;
    isolation: isolate;
}
.login-card::after {
    content: "";
    position: absolute;
    inset: -26px;
    z-index: -1;
    border-radius: 42px;
    background:
        radial-gradient(circle at 18% 12%, rgba(142, 178, 255, 0.34), transparent 34%),
        radial-gradient(circle at 82% 90%, rgba(74, 118, 255, 0.24), transparent 38%),
        linear-gradient(135deg, rgba(95, 140, 255, 0.18), transparent 48%, rgba(103, 215, 243, 0.10));
    filter: blur(18px);
    opacity: .34;
    pointer-events: none;
    animation: loginAura 5.4s ease-in-out infinite;
}
.login-card:hover::after,
.login-card:focus-within::after,
.login-card.is-engaged::after {
    opacity: .56;
    animation-duration: 3.8s;
}
.login-card::before {
    z-index: 0;
}
.login-card > *:not(.login-card-glow) {
    z-index: 2;
}
.login-card-glow {
    z-index: 1;
}
.input-shell input[type="email"],
.input-shell input[type="password"],
.input-shell input[type="text"] {
    color-scheme: dark;
    caret-color: #8fb2ff;
    color: #f7faff;
    background: transparent !important;
}
.input-shell input:-webkit-autofill,
.input-shell input:-webkit-autofill:hover,
.input-shell input:-webkit-autofill:focus,
.input-shell input:-webkit-autofill:active {
    -webkit-text-fill-color: #f7faff !important;
    caret-color: #8fb2ff !important;
    -webkit-box-shadow: 0 0 0 1000px #09142f inset !important;
    box-shadow: 0 0 0 1000px #09142f inset !important;
    border-radius: 10px;
    transition: background-color 999999s ease-in-out 0s, color .18s ease, -webkit-text-fill-color .18s ease;
}
.input-shell:has(input:-webkit-autofill) {
    border-color: rgba(124, 164, 255, 0.58);
    box-shadow: 0 0 0 4px rgba(92, 136, 255, 0.11), 0 14px 34px rgba(24, 55, 145, 0.18);
}
.panel-board {
    left: 1.5vw;
    top: 5vh;
    width: 240px;
    opacity: .52;
    transform: rotate(4deg) scale(.94);
    animation: floatPanelSlow 9s ease-in-out infinite;
}
.panel-checks {
    animation: floatPanel 7.6s ease-in-out infinite;
}
.panel-chart {
    animation: floatPanelReverse 8.4s ease-in-out infinite;
}
.panel-team {
    animation: floatPanelSoft 9.5s ease-in-out infinite;
}
.panel-team .team-avatar,
.panel-team .team-more {
    animation: avatarBreathe 3.8s ease-in-out infinite;
}
.panel-team .avatar-two { animation-delay: .35s; }
.panel-team .avatar-three { animation-delay: .70s; }
.panel-team .avatar-four { animation-delay: 1.05s; }
.panel-team .team-more { animation-delay: 1.35s; }
.panel-calendar {
    animation: floatPanelSoft 9.2s ease-in-out infinite;
}
.panel-comments {
    animation: floatPanel 8.8s ease-in-out infinite;
}
.panel-bell {
    animation: floatPanelSoft 7.2s ease-in-out infinite;
}
.panel-import {
    animation: floatPanelReverse 8s ease-in-out infinite;
}
.panel-bell::after {
    animation: notificationPulse 2.4s ease-in-out infinite;
}
.floating-panel {
    will-change: transform, opacity, box-shadow;
}
.floating-panel:hover {
    box-shadow: 0 28px 86px rgba(0,0,0,0.32), 0 0 36px rgba(95, 140, 255, 0.12);
}
.brand-glass {
    margin-top: 4px;
}
.brand-glass:hover,
.brand-glass.is-engaged {
    box-shadow:
        0 30px 82px rgba(0,0,0,0.30),
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 0 54px rgba(86, 125, 255, 0.28);
}
@keyframes loginAura {
    0%, 100% { opacity: .30; transform: scale(.985); }
    50% { opacity: .56; transform: scale(1.015); }
}
@keyframes floatPanel {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: .58; }
    50% { transform: translate3d(0, -10px, 0); opacity: .78; }
}
@keyframes floatPanelReverse {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: .62; }
    50% { transform: translate3d(0, 10px, 0); opacity: .80; }
}
@keyframes floatPanelSoft {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: .50; }
    50% { transform: translate3d(0, -7px, 0); opacity: .70; }
}
@keyframes floatPanelSlow {
    0%, 100% { transform: rotate(4deg) scale(.94) translate3d(0, 0, 0); opacity: .44; }
    50% { transform: rotate(4deg) scale(.94) translate3d(0, -8px, 0); opacity: .60; }
}
@keyframes notificationPulse {
    0%, 100% { transform: scale(1); opacity: .78; box-shadow: 0 0 18px rgba(78, 125, 255, 0.72); }
    50% { transform: scale(1.32); opacity: 1; box-shadow: 0 0 28px rgba(78, 125, 255, 0.98); }
}
@media (prefers-reduced-motion: reduce) {
    .floating-panel,
    .panel-team .team-avatar,
    .panel-team .team-more,
    .panel-bell::after,
    .login-card::after,
    .feature-chip:hover,
    .feature-chip:focus-within {
        animation: none !important;
    }
}

/* Track Pass — mobile shell, project card stretch guard, and timestamp chips */
.ws-mobile-nav-toggle,
.ws-left-close,
.ws-mobile-nav-backdrop {
    display: none;
}
.ws-left-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.ws-project-grid {
    align-items: start;
    justify-content: start;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 340px));
}
.ws-project-card {
    align-self: start;
    align-content: start;
    grid-auto-rows: auto;
    min-height: 0;
    max-width: 340px;
    width: 100%;
}
.ws-project-card-head {
    min-width: 0;
}
.ws-project-card-head > div {
    min-width: 0;
}
.ws-project-card h4,
.ws-project-card-code {
    overflow-wrap: anywhere;
}
.ws-project-card-desc {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
}
.ws-project-card-pills {
    align-items: flex-start;
    align-content: flex-start;
}
.ws-project-card .status-pill,
.ws-project-card .btn,
.ws-project-card .button-row {
    align-self: flex-start;
}
.ws-project-card .button-row {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0;
}
.ws-project-card .btn.btn-small {
    width: auto;
    height: auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ws-time-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(157, 183, 241, 0.14);
    background: rgba(7, 17, 36, 0.34);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.ws-time-chip strong {
    color: var(--text);
    font-weight: 900;
}

@media (max-width: 1100px) {
    .workspace-shell-body {
        overflow: auto;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: var(--ws-topbar-height) auto auto;
    }
    .ws-global-topbar {
        grid-column: 1;
        grid-row: 1;
    }
    .ws-mobile-nav-toggle {
        display: inline-grid;
        flex: 0 0 auto;
    }
    .ws-left-close {
        display: inline-grid;
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }
    .ws-mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 285;
        width: 100vw;
        height: 100vh;
        border: 0;
        background: rgba(2, 8, 20, 0.58);
        backdrop-filter: blur(4px);
        cursor: pointer;
    }
    body.ws-mobile-nav-open .ws-mobile-nav-backdrop {
        display: block;
    }
    .ws-left-pane {
        position: fixed;
        z-index: 300;
        top: var(--ws-shell-pad);
        bottom: var(--ws-shell-pad);
        left: var(--ws-shell-pad);
        width: min(86vw, 340px);
        height: auto;
        transform: translateX(calc(-100% - 28px));
        transition: transform .22s ease;
    }
    body.ws-mobile-nav-open .ws-left-pane {
        transform: translateX(0);
    }
    .ws-main-pane {
        grid-column: 1;
        grid-row: 2;
        height: auto;
        min-height: calc(100vh - (var(--ws-shell-pad) * 2) - var(--ws-topbar-height) - var(--ws-shell-gap));
    }
    .ws-right-pane {
        grid-column: 1;
        grid-row: 3;
        height: auto;
        min-height: 360px;
    }
    .ws-workflow-overlay,
    .ws-export-overlay {
        inset: var(--ws-shell-pad);
    }
}

@media (max-width: 760px) {
    :root {
        --ws-shell-pad: 10px;
        --ws-shell-gap: 10px;
        --ws-topbar-height: 60px;
    }
    .ws-global-topbar {
        padding: 7px 10px;
        border-radius: 18px;
    }
    .ws-global-actions {
        gap: 8px;
    }
    .ws-global-icon,
    .iconbtn.ws-global-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
    .ws-main-content,
    .ws-right-body {
        padding: 12px;
    }
    .ws-main-topbar {
        padding: 12px 14px;
        min-height: 0;
    }
    .ws-project-grid {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }
    .ws-project-card {
        max-width: none;
        padding: 16px;
        border-radius: 20px;
    }
    .ws-project-card h4 {
        font-size: clamp(22px, 7vw, 30px);
    }
    .ws-project-card-desc {
        -webkit-line-clamp: 7;
    }
    .ws-selected-top,
    .ws-selected-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .ws-selected-aside {
        justify-items: start;
    }
    .ws-time-chip {
        white-space: normal;
    }
}

/* Track Pass 4 — project identity images */
.ws-project-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(157, 183, 241, 0.24);
    background: linear-gradient(135deg, rgba(99, 142, 255, 0.46), rgba(12, 24, 55, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 10px 24px rgba(0,0,0,0.18);
    color: var(--text);
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}
.ws-project-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ws-project-avatar.has-image {
    background: rgba(7, 17, 36, 0.38);
}
.ws-project-avatar.has-image img {
    object-fit: contain;
    padding: 6px;
}
.ws-project-avatar-nav {
    width: 24px;
    height: 24px;
    border-radius: 9px;
    font-size: 10px;
    box-shadow: none;
}
.ws-project-avatar-nav.has-image img {
    padding: 3px;
}
.ws-project-avatar-card {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    font-size: 19px;
}
.ws-project-avatar-hero {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    font-size: 30px;
}
.ws-project-avatar-large {
    width: 82px;
    height: 82px;
    border-radius: 26px;
    font-size: 32px;
}
.ws-project-card-titleline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.ws-project-card-titleline > div:last-child {
    min-width: 0;
}
.ws-project-card-times {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    align-content: flex-start;
}
.ws-project-card-times span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    max-width: 100%;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(157, 183, 241, 0.13);
    background: rgba(7, 17, 36, 0.28);
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
}
.ws-project-card-times strong {
    color: var(--text);
    font-weight: 950;
}
.ws-project-edit-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(157, 183, 241, 0.14);
    background: rgba(7, 17, 36, 0.28);
}
.ws-tree-main .ws-project-avatar-nav + .ws-tree-pill {
    margin-left: 2px;
}

@media (max-width: 760px) {
    .ws-project-avatar-card {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 17px;
    }
    .ws-project-avatar-hero {
        width: 62px;
        height: 62px;
        border-radius: 20px;
        font-size: 24px;
    }
    .ws-project-card-head {
        gap: 10px;
    }
    .ws-project-card-titleline {
        gap: 10px;
    }
    .ws-project-card-times {
        gap: 6px;
    }
    .ws-project-edit-preview {
        align-items: flex-start;
    }
}

/* Track Pass 6 — brand icon integration */
.brand-mark-image {
    padding: 0;
    overflow: hidden;
    background: transparent;
    border-color: rgba(152, 182, 255, 0.18);
}
.brand-mark-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-chip img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 12px rgba(95, 140, 255, 0.34));
}
.ws-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
    padding: 8px 12px 8px 9px;
    border-radius: 18px;
    border: 1px solid rgba(157, 183, 241, 0.13);
    background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.ws-topbar-brand:hover,
.ws-topbar-brand:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(157, 183, 241, 0.24);
    background: linear-gradient(145deg, rgba(255,255,255,0.072), rgba(255,255,255,0.026));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 34px rgba(0,0,0,0.18);
}
.ws-topbar-brand img {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: block;
    flex: 0 0 auto;
}
.ws-topbar-brand span {
    display: grid;
    gap: 2px;
    min-width: 0;
    line-height: 1.05;
}
.ws-topbar-brand strong {
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.04em;
}
.ws-topbar-brand em {
    font-style: normal;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}
.ws-project-code-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ws-project-code-brand img {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    display: block;
}
.ws-node-icon.has-brand-asset {
    background: rgba(255,255,255,0.026);
    border-color: rgba(157, 183, 241, 0.12);
    color: inherit;
}
.ws-node-icon.has-brand-asset img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
    filter: saturate(1.05) drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}
.ws-root-link.is-current .ws-node-icon.has-brand-asset,
.ws-node summary.is-current .ws-node-icon.has-brand-asset {
    border-color: rgba(128, 167, 255, 0.28);
    box-shadow: 0 0 0 1px rgba(128, 167, 255, 0.10), 0 10px 22px rgba(0,0,0,0.16);
}
@media (max-width: 760px) {
    .ws-topbar-brand {
        padding: 7px;
        border-radius: 16px;
    }
    .ws-topbar-brand img {
        width: 40px;
        height: 40px;
    }
    .ws-topbar-brand span {
        display: none;
    }
}
@media (max-width: 540px) {
    .feature-chip img {
        width: 22px;
        height: 22px;
    }
}

/* Track Pass 9 — login/home containment and 1080p fit restore */
body.auth-page {
    overflow: hidden;
}
body.auth-page .login-shell {
    min-height: 100svh;
    max-height: 100svh;
    padding: clamp(20px, 3.2vw, 44px);
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 460px);
    gap: clamp(24px, 4vw, 60px);
    align-items: center;
    isolation: isolate;
}
body.auth-page .login-shell::before {
    content: "";
    position: fixed;
    right: clamp(-220px, -10vw, -80px);
    top: clamp(48px, 16vh, 132px);
    width: clamp(360px, 42vw, 680px);
    aspect-ratio: 1;
    background: url('/tc/assets/brand/track/logo/track-mark-transparent.svg') center / contain no-repeat;
    opacity: .08;
    filter: drop-shadow(0 0 58px rgba(88, 132, 255, .26));
    pointer-events: none;
    z-index: -2;
}
body.auth-page .login-orbit,
body.auth-page .floating-panel,
body.auth-page .orbit-line {
    z-index: -1;
}
body.auth-page .floating-panel {
    opacity: .34;
    max-width: min(260px, 38vw);
}
body.auth-page .panel-board { left: 2.5vw; top: 7vh; width: 218px; transform: rotate(4deg) scale(.88); }
body.auth-page .panel-chart { left: 4vw; bottom: 12vh; width: 166px; }
body.auth-page .panel-team { left: 7vw; bottom: 4vh; min-width: 210px; transform: scale(.88); transform-origin: left center; }
body.auth-page .panel-calendar { left: 45vw; top: 5vh; transform: scale(.9); transform-origin: left top; }
body.auth-page .panel-comments { right: 5vw; top: 14vh; transform: scale(.9); transform-origin: right top; }

body.auth-page .login-hero,
body.auth-page .login-card {
    position: relative;
    z-index: 3;
}
body.auth-page .login-hero {
    max-width: 590px;
}
body.auth-page .brand-glass {
    max-width: min(100%, 470px);
    padding: 11px 13px;
    margin-bottom: 8px;
    border-radius: 18px;
    overflow: hidden;
    align-items: center;
}
body.auth-page .brand-lockup {
    gap: 11px;
    min-width: 0;
    align-items: center;
}
body.auth-page .brand-glass .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    padding: 7px;
    overflow: hidden;
    flex: 0 0 44px;
}
body.auth-page .brand-mark-image img,
body.auth-page .brand-glass .brand-mark img,
body.auth-page .feature-chip img,
body.auth-page .login-card img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
}
body.auth-page .brand-mark-image img,
body.auth-page .brand-glass .brand-mark img {
    width: 100% !important;
    height: 100% !important;
}
body.auth-page .eyebrow {
    font-size: clamp(27px, 3.2vw, 36px);
    line-height: 1.02;
}
body.auth-page .brand-subtitle {
    max-width: 330px;
    font-size: 13px;
    line-height: 1.34;
    margin-top: 5px;
}
body.auth-page .login-hero h1 {
    margin: clamp(20px, 3vw, 32px) 0 14px;
    font-size: clamp(44px, 4.8vw, 68px);
    line-height: .98;
    max-width: 600px;
}
body.auth-page .hero-copy {
    max-width: 510px;
    margin-bottom: 18px;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.38;
}
body.auth-page .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 500px;
    gap: 8px;
}
body.auth-page .feature-chip {
    min-height: 44px;
    height: 44px;
    padding: 0 11px;
    gap: 8px;
    align-items: center;
    align-content: center;
    justify-content: flex-start;
    border-radius: 13px;
    overflow: hidden;
}
body.auth-page .feature-chip img {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px;
    padding: 0;
}
body.auth-page .feature-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

body.auth-page .login-card {
    justify-self: end;
    width: min(100%, 460px);
    max-width: 460px;
    padding: clamp(24px, 2.6vw, 32px);
    border-radius: 24px;
    overflow: hidden !important;
    isolation: isolate;
}
body.auth-page .login-card::after {
    inset: -12px;
    border-radius: 30px;
    filter: blur(14px);
    opacity: .28;
}
body.auth-page .login-card:hover,
body.auth-page .login-card:focus-within,
body.auth-page .login-card.is-engaged {
    transform: none;
}
body.auth-page .login-card-head {
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
body.auth-page .login-brand-mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    border-radius: 16px;
    font-size: 27px;
    padding: 0;
    overflow: hidden;
}
body.auth-page .login-card-head h2 {
    font-size: clamp(30px, 2.3vw, 36px);
}
body.auth-page .login-card-head p {
    margin-top: 7px;
    max-width: 280px;
    font-size: 13px;
    line-height: 1.35;
}
body.auth-page .auth-error {
    margin: -4px 0 16px;
}
body.auth-page .login-form {
    gap: 14px;
}
body.auth-page .login-field label {
    margin-bottom: 7px;
    font-size: 13px;
}
body.auth-page .input-shell {
    min-height: 50px;
    padding: 0 13px;
}
body.auth-page .input-shell input[type="email"],
body.auth-page .input-shell input[type="password"],
body.auth-page .input-shell input[type="text"] {
    height: 48px;
}
body.auth-page .login-submit {
    min-height: 52px;
    margin-top: 8px;
}
body.auth-page .login-trust {
    margin-top: 18px;
    font-size: 13px;
}

@media (max-width: 1100px) {
    body.auth-page {
        overflow: auto;
    }
    body.auth-page .login-shell {
        max-height: none;
        min-height: 100svh;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 28px;
        padding: 28px 18px 36px;
    }
    body.auth-page .login-shell::before {
        opacity: .05;
        width: min(72vw, 520px);
        right: -24vw;
        top: 42px;
    }
    body.auth-page .login-hero,
    body.auth-page .login-card {
        justify-self: center;
        margin-left: auto;
        margin-right: auto;
    }
    body.auth-page .login-hero {
        text-align: center;
        max-width: 720px;
    }
    body.auth-page .brand-glass,
    body.auth-page .hero-copy,
    body.auth-page .feature-grid {
        margin-left: auto;
        margin-right: auto;
    }
    body.auth-page .panel-board,
    body.auth-page .panel-chart,
    body.auth-page .panel-team,
    body.auth-page .panel-calendar,
    body.auth-page .panel-comments,
    body.auth-page .panel-checks,
    body.auth-page .panel-bell,
    body.auth-page .panel-import {
        display: none;
    }
}
@media (max-width: 720px) {
    body.auth-page .login-hero {
        text-align: left;
    }
    body.auth-page .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.auth-page .brand-glass {
        width: 100%;
    }
}
@media (max-width: 900px) {
    body.auth-page .login-hero h1 {
        max-width: 11ch;
        font-size: clamp(40px, 7.2vw, 56px);
        line-height: 1;
        letter-spacing: -.062em;
        text-wrap: balance;
    }
    body.auth-page .hero-copy {
        max-width: 54ch;
        font-size: 16px;
        line-height: 1.42;
    }
}
@media (max-width: 720px) {
    body.auth-page .login-hero h1 {
        margin: 18px 0 12px;
        max-width: 10ch;
        font-size: clamp(34px, 10.6vw, 46px);
        line-height: 1.02;
        letter-spacing: -.048em;
    }
    body.auth-page .hero-copy {
        font-size: 15px;
        line-height: 1.4;
    }
}
@media (max-width: 430px) {
    body.auth-page .login-hero h1 {
        max-width: 9ch;
        font-size: clamp(30px, 11.4vw, 38px);
        line-height: 1.04;
        letter-spacing: -.04em;
    }
    body.auth-page .hero-copy {
        font-size: 14px;
        line-height: 1.36;
    }
    body.auth-page .brand-subtitle {
        font-size: 12px;
        line-height: 1.3;
    }
}
@media (max-width: 430px) {
    body.auth-page .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Track Pass 9 — public home brand pill containment */
body:not(.auth-page) .brand {
    overflow: hidden;
}
body:not(.auth-page) .brand img {
    flex: 0 0 42px;
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
    padding: 6px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}
body:not(.auth-page) .brand > span {
    min-width: 0;
}

/* Track Pass 1 — login brand containment and safe favicon/icon use */
body.auth-page {
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
}
body.auth-page .login-shell {
    min-height: 100svh;
    max-height: none;
    overflow: visible;
}
body.auth-page .login-shell::before {
    z-index: -3;
    opacity: .065;
    pointer-events: none;
}
body.auth-page .login-orbit,
body.auth-page .floating-panel,
body.auth-page .orbit-line {
    pointer-events: none;
}
body.auth-page .login-hero,
body.auth-page .login-card {
    position: relative;
    z-index: 5;
}
body.auth-page .brand-glass,
body.auth-page .login-card,
body.auth-page .feature-chip,
body.auth-page .input-shell,
body.auth-page .login-submit {
    box-sizing: border-box;
}
body.auth-page .brand-mark,
body.auth-page .login-app-mark,
body.auth-page .login-brand-mark {
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018)),
        rgba(8, 16, 40, .78);
}
body.auth-page .login-app-mark {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 7px;
    border-radius: 14px;
}
body.auth-page .login-brand-mark {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    padding: 8px;
    border-radius: 16px;
    font-size: 0;
    letter-spacing: 0;
    text-shadow: none;
}
body.auth-page .login-brand-icon {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    flex: 0 0 auto;
    border: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body.auth-page .brand-lockup > div,
body.auth-page .login-card-head > div {
    min-width: 0;
}
body.auth-page .feature-grid {
    align-items: stretch;
}
body.auth-page .feature-chip {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    flex: 0 1 auto;
    white-space: nowrap;
}
body.auth-page .feature-chip svg,
body.auth-page .feature-chip img {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain !important;
    flex: 0 0 20px;
}
body.auth-page .feature-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.auth-page .login-card img,
body.auth-page .brand-glass img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
body.auth-page .input-shell,
body.auth-page .input-shell input[type="email"],
body.auth-page .input-shell input[type="password"],
body.auth-page .input-shell input[type="text"] {
    -webkit-appearance: none;
    appearance: none;
}
body.auth-page .input-shell input[type="email"],
body.auth-page .input-shell input[type="password"],
body.auth-page .input-shell input[type="text"] {
    min-width: 0;
    background: transparent !important;
    border-radius: 0;
}
body.auth-page .password-toggle,
body.auth-page .login-submit {
    -webkit-appearance: none;
    appearance: none;
}
@media (min-width: 1101px) and (min-height: 760px) {
    body.auth-page .login-shell {
        align-items: center;
    }
}
@media (max-width: 720px) {
    body.auth-page .login-shell {
        padding: 24px 16px 34px;
    }
    body.auth-page .brand-glass {
        max-width: 100%;
    }
    body.auth-page .feature-chip {
        min-height: 46px;
        height: 46px;
    }
    body.auth-page .login-card {
        width: 100%;
        max-width: 520px;
    }
}
@media (max-width: 430px) {
    body.auth-page .login-app-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        padding: 7px;
    }
    body.auth-page .feature-chip {
        height: 44px;
        min-height: 44px;
    }
}


/* Track Pass 3 — workspace shell hierarchy cleanup */
.ws-global-topbar {
    background: linear-gradient(180deg, rgba(13, 26, 56, 0.94), rgba(7, 17, 36, 0.91));
    border-color: rgba(157, 183, 241, 0.13);
    box-shadow: 0 18px 46px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.045);
}

.ws-topbar-brand.ws-app-anchor {
    min-width: 0;
    max-width: 220px;
    height: 44px;
    padding: 5px 10px 5px 6px;
    gap: 9px;
    border-radius: 16px;
    border-color: rgba(157, 183, 241, 0.10);
    background: rgba(255,255,255,0.026);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
    flex: 0 1 auto;
}

.ws-topbar-brand.ws-app-anchor:hover,
.ws-topbar-brand.ws-app-anchor:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(128, 167, 255, 0.26);
    background: rgba(255,255,255,0.048);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 12px 28px rgba(0,0,0,0.18);
}

.ws-app-anchor-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 13px;
    overflow: hidden;
    flex: 0 0 34px;
    background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
    border: 1px solid rgba(157, 183, 241, 0.12);
}

.ws-topbar-brand.ws-app-anchor .ws-app-anchor-icon img,
.ws-app-anchor-icon img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 34px;
    max-height: 34px;
    border-radius: 12px;
    object-fit: contain;
}

.ws-app-anchor-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
    line-height: 1;
}

.ws-app-anchor-copy strong {
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -0.035em;
    color: var(--text);
}

.ws-app-anchor-copy em {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: normal;
    color: rgba(191, 207, 245, 0.70);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ws-project-head {
    background: linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.006));
}

.ws-project-context-code {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 27px;
    margin-bottom: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(157, 183, 241, 0.12);
    background: rgba(7, 17, 36, 0.28);
    color: rgba(191, 207, 245, 0.74);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ws-project-head h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.ws-project-head p {
    font-size: 13px;
}

.ws-project-code-brand img {
    display: none;
}

.ws-main-topbar {
    background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0));
    border-bottom: 1px solid rgba(157, 183, 241, 0.08);
}

.ws-breadcrumbs a,
.ws-breadcrumbs span {
    line-height: 1.35;
}

@media (max-width: 1100px) {
    .ws-topbar-brand.ws-app-anchor {
        max-width: 190px;
    }
    .ws-app-anchor-copy em {
        max-width: 92px;
    }
}

@media (max-width: 760px) {
    .ws-topbar-brand.ws-app-anchor {
        width: 42px;
        height: 42px;
        max-width: 42px;
        padding: 4px;
        gap: 0;
        border-radius: 15px;
    }
    .ws-app-anchor-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        border-radius: 12px;
    }
    .ws-topbar-brand.ws-app-anchor .ws-app-anchor-icon img,
    .ws-app-anchor-icon img {
        max-width: 32px;
        max-height: 32px;
        border-radius: 11px;
    }
    .ws-app-anchor-copy {
        display: none;
    }
    .ws-project-context-code {
        min-height: 25px;
        padding: 5px 9px;
        font-size: 9px;
        letter-spacing: 0.12em;
    }
}

/* Track Pass 4 — left navigation + project navigator refinement */
.ws-scope-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 5px;
    border-radius: 16px;
    overflow: hidden;
}
.scope-pill {
    min-width: 0;
    min-height: 40px;
    padding: 9px 10px;
    gap: 7px;
    white-space: nowrap;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}
.scope-pill > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.scope-pill-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    color: rgba(215, 228, 255, 0.88);
    background: rgba(132, 173, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(157, 183, 241, 0.10);
}
.scope-pill-icon .icon-glyph {
    width: 14px;
    height: 14px;
}
.scope-pill.is-active .scope-pill-icon {
    color: #fff;
    background: rgba(122, 160, 255, 0.20);
    box-shadow: inset 0 0 0 1px rgba(183, 207, 255, 0.20);
}
.ws-project-root-list {
    display: grid;
    gap: 9px;
    margin-bottom: 8px;
}
.ws-project-switch-link.ws-root-link {
    min-height: 54px;
    padding: 8px 10px;
    gap: 10px;
    border-radius: 18px;
    border: 1px solid rgba(157, 183, 241, 0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.006));
    color: rgba(222, 234, 255, 0.86);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.ws-project-switch-link.ws-root-link:hover {
    transform: translateY(-1px);
    border-color: rgba(138, 180, 255, 0.25);
    background: linear-gradient(180deg, rgba(138, 180, 255, 0.095), rgba(255,255,255,0.012));
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    color: var(--text);
}
.ws-project-switch-link.ws-root-link.is-current {
    border-color: rgba(122, 160, 255, 0.36);
    background: linear-gradient(180deg, rgba(122, 160, 255, 0.16), rgba(13, 27, 60, 0.50));
    box-shadow: inset 0 0 0 1px rgba(190, 212, 255, 0.08), 0 12px 26px rgba(0,0,0,0.15);
}
.ws-root-project-main {
    gap: 11px;
    align-items: center;
    min-width: 0;
}
.ws-project-avatar-switcher.ws-project-avatar-nav {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 14px;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 8px 18px rgba(0,0,0,0.16);
}
.ws-project-avatar-switcher.ws-project-avatar-nav.has-image img {
    padding: 4px;
}
.ws-root-project-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
    flex: 1 1 auto;
}
.ws-root-project-title.ws-tree-pill {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(244, 248, 255, 0.94);
    font-size: 13px;
    line-height: 1.16;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ws-root-link.is-current .ws-root-project-title.ws-tree-pill,
.ws-root-project-title.ws-tree-pill.is-current {
    background: transparent;
    box-shadow: none;
    color: #fff;
}
.ws-root-project-meta {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(191, 207, 245, 0.68);
    font-size: 10.5px;
    font-weight: 780;
    line-height: 1.15;
    letter-spacing: 0.015em;
}
.ws-root-board-count.ws-node-count {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 12px;
    border-color: rgba(157, 183, 241, 0.18);
    background: rgba(4, 12, 30, 0.58);
}
.ws-project-switch-link.is-current .ws-root-board-count {
    border-color: rgba(157, 190, 255, 0.32);
    background: rgba(122, 160, 255, 0.15);
    color: #fff;
}
.ws-current-tree-zone {
    margin-top: 12px;
}
.ws-left-footer {
    align-items: center;
    flex-wrap: wrap;
}
.ws-foot-link {
    min-height: 32px;
    padding: 8px 11px;
    border-radius: 999px;
    border: 1px solid rgba(157, 183, 241, 0.12);
    background: rgba(7, 17, 36, 0.28);
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.ws-foot-link:hover {
    transform: translateY(-1px);
    border-color: rgba(138, 180, 255, 0.28);
    background: rgba(138, 180, 255, 0.10);
}

@media (max-width: 760px) {
    .ws-scope-toggle {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .scope-pill {
        min-height: 38px;
        padding: 8px 9px;
        font-size: 12px;
    }
    .scope-pill-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
        border-radius: 8px;
    }
    .scope-pill-icon .icon-glyph {
        width: 13px;
        height: 13px;
    }
    .ws-project-switch-link.ws-root-link {
        min-height: 50px;
        padding: 7px 9px;
        border-radius: 16px;
    }
    .ws-project-avatar-switcher.ws-project-avatar-nav {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 12px;
        font-size: 12px;
    }
    .ws-root-project-title.ws-tree-pill {
        font-size: 12.5px;
    }
    .ws-root-project-meta {
        font-size: 10px;
    }
    .ws-root-board-count.ws-node-count {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}

@media (max-width: 390px) {
    .scope-pill {
        gap: 5px;
        padding-inline: 7px;
    }
    .scope-pill-icon {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-project-switch-link.ws-root-link,
    .ws-foot-link,
    .scope-pill {
        transition: none;
    }
    .ws-project-switch-link.ws-root-link:hover,
    .ws-foot-link:hover {
        transform: none;
    }
}

/* Track Pass 4B — true Project Hub modal + left tree breathing room */
button.ws-topbar-brand,
button.scope-pill,
button.ws-foot-link,
.ws-breadcrumb-link-button {
    font: inherit;
    cursor: pointer;
}
button.ws-topbar-brand,
button.scope-pill,
button.ws-foot-link {
    appearance: none;
}
.ws-hub-trigger-row .scope-pill-hub {
    border: 0;
}
.ws-hub-trigger-row .scope-pill-hub:not(.is-active) {
    color: rgba(213, 226, 255, 0.86);
    background: rgba(138, 180, 255, 0.055);
    box-shadow: inset 0 0 0 1px rgba(157, 183, 241, 0.10);
}
.ws-hub-trigger-row .scope-pill-hub:hover,
.ws-hub-trigger-row .scope-pill-hub:focus-visible {
    color: var(--text);
    background: rgba(138, 180, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(157, 190, 255, 0.22), 0 10px 22px rgba(0,0,0,0.14);
}
.ws-current-tree-zone:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.ws-left-footer .ws-foot-link {
    color: rgba(219, 231, 255, 0.82);
}
.ws-left-footer button.ws-foot-link {
    min-width: 0;
}
.ws-breadcrumb-link-button {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(179, 197, 238, 0.82);
    font-weight: 760;
}
.ws-breadcrumb-link-button:hover,
.ws-breadcrumb-link-button:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.project-hub-overlay[hidden] {
    display: none !important;
}
.project-hub-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    isolation: isolate;
}
.project-hub-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 0;
    background:
        radial-gradient(circle at 18% 14%, rgba(100, 154, 255, 0.18), transparent 34%),
        radial-gradient(circle at 82% 78%, rgba(58, 211, 255, 0.10), transparent 36%),
        rgba(2, 8, 20, 0.74);
    backdrop-filter: blur(16px);
    cursor: default;
}
.project-hub-panel {
    width: min(980px, calc(100vw - 48px));
    max-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    border-radius: 30px;
    border: 1px solid rgba(157, 183, 241, 0.18);
    background:
        linear-gradient(145deg, rgba(20, 35, 73, 0.96), rgba(6, 16, 35, 0.96)),
        var(--panel);
    box-shadow: 0 36px 110px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255,255,255,0.06);
    transform: translateY(0);
    animation: projectHubIn .18s ease-out both;
}
.project-hub-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px 18px;
    border-bottom: 1px solid rgba(157, 183, 241, 0.11);
}
.project-hub-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(139, 178, 255, 0.18);
    background: rgba(138, 180, 255, 0.08);
    color: rgba(201, 218, 255, 0.86);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.project-hub-head h2 {
    margin: 12px 0 4px;
    color: #fff;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 0.96;
    letter-spacing: -0.055em;
}
.project-hub-head p {
    margin: 0;
    max-width: 560px;
    color: rgba(197, 211, 244, 0.74);
    font-size: 14px;
    line-height: 1.4;
}
.project-hub-close {
    flex: 0 0 auto;
}
.project-hub-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(157, 183, 241, 0.10);
}
.project-hub-search-label {
    grid-column: 1 / -1;
    color: rgba(186, 205, 245, 0.76);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.project-hub-toolbar input[type="search"] {
    min-width: 0;
    height: 48px;
    padding: 0 15px;
    border-radius: 16px;
    border: 1px solid rgba(157, 183, 241, 0.16);
    background: rgba(5, 14, 32, 0.68);
    color: var(--text);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.project-hub-toolbar input[type="search"]:focus {
    border-color: rgba(140, 181, 255, 0.42);
    background: rgba(7, 18, 42, 0.86);
    box-shadow: 0 0 0 3px rgba(122, 160, 255, 0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}
.project-hub-create {
    min-height: 48px;
    white-space: nowrap;
}
.project-hub-grid {
    min-height: 0;
    overflow: auto;
    padding: 22px 28px 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.project-hub-card {
    position: relative;
    min-width: 0;
    min-height: 118px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(157, 183, 241, 0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
    color: var(--text);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.project-hub-card:hover,
.project-hub-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(138, 180, 255, 0.30);
    background: linear-gradient(145deg, rgba(122, 160, 255, 0.13), rgba(255,255,255,0.024));
    box-shadow: 0 18px 38px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.07);
}
.project-hub-card.is-current {
    border-color: rgba(121, 163, 255, 0.42);
    background: linear-gradient(145deg, rgba(122, 160, 255, 0.18), rgba(14, 30, 65, 0.70));
}
.project-hub-avatar.ws-project-avatar {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 22px;
    font-size: 21px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07), 0 14px 30px rgba(0,0,0,0.22);
}
.project-hub-avatar.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.project-hub-card-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}
.project-hub-card-copy strong,
.project-hub-card-copy em,
.project-hub-card-copy span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.project-hub-card-copy strong {
    color: #fff;
    font-size: 16px;
    line-height: 1.08;
    letter-spacing: -0.025em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.project-hub-card-copy em {
    display: block;
    color: rgba(160, 188, 255, 0.82);
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.project-hub-card-copy span {
    color: rgba(196, 211, 245, 0.70);
    font-size: 12px;
    font-weight: 760;
    white-space: nowrap;
}
.project-hub-current-badge {
    position: absolute;
    top: 13px;
    right: 13px;
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(128, 191, 255, 0.28);
    background: rgba(102, 160, 255, 0.14);
    color: rgba(225, 237, 255, 0.94);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.project-hub-empty {
    padding: 0 28px 28px;
    color: rgba(196, 211, 245, 0.72);
    font-size: 14px;
    font-weight: 760;
}
body.is-project-hub-open {
    overflow: hidden;
}
@keyframes projectHubIn {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 760px) {
    .project-hub-overlay {
        padding: 12px;
        align-items: end;
    }
    .project-hub-panel {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 24px;
    }
    .project-hub-head {
        padding: 20px 18px 14px;
    }
    .project-hub-head h2 {
        font-size: 26px;
    }
    .project-hub-toolbar {
        grid-template-columns: 1fr;
        padding: 14px 18px;
    }
    .project-hub-create {
        width: 100%;
        justify-content: center;
    }
    .project-hub-grid {
        grid-template-columns: 1fr;
        padding: 16px 18px 20px;
    }
    .project-hub-card {
        grid-template-columns: 54px minmax(0, 1fr);
        min-height: 104px;
        border-radius: 20px;
    }
    .project-hub-avatar.ws-project-avatar {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 18px;
        font-size: 18px;
    }
    .project-hub-current-badge {
        position: static;
        justify-self: start;
        grid-column: 2;
        margin-top: -2px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .project-hub-panel {
        animation: none;
    }
    .project-hub-card,
    .ws-hub-trigger-row .scope-pill-hub {
        transition: none;
    }
    .project-hub-card:hover,
    .project-hub-card:focus-visible {
        transform: none;
    }
}

/* Track Pass 5 — status pills + KPI typography hardening
   Keeps chips compact, separates label/count, and prevents pill stretching/collision. */
.status-pill {
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    gap: 6px;
    line-height: 1.12;
    white-space: nowrap;
    text-align: center;
}

.ws-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
    align-items: stretch;
}
.ws-summary-card {
    min-width: 0;
    overflow: hidden;
}
.ws-summary-label {
    line-height: 1.16;
    overflow-wrap: anywhere;
}
.ws-summary-value {
    font-size: clamp(26px, 3vw, 34px);
    line-height: .98;
    overflow-wrap: anywhere;
}
.ws-summary-hint {
    line-height: 1.22;
    max-width: 34ch;
}

.ws-workflow-strip {
    overflow: hidden;
}
.ws-workflow-strip-items {
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    align-items: stretch;
}
.ws-workflow-strip-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 58px;
    padding: 10px 12px;
}
.ws-workflow-strip-main {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.ws-workflow-strip-label {
    min-width: 0;
    line-height: 1.05;
    overflow-wrap: anywhere;
    word-break: normal;
}
.ws-workflow-strip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid rgba(157,183,241,.15);
    background: rgba(7,17,36,.42);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}
.ws-workflow-strip-item .ws-node-icon,
.ws-workflow-lane .ws-node-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.ws-workflow-lanes {
    gap: 8px;
}
.ws-workflow-lane {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    min-height: 42px;
    gap: 10px;
    padding: 8px 10px;
}
.ws-workflow-lane-main {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.ws-workflow-lane-label {
    min-width: 0;
    line-height: 1.08;
    overflow-wrap: anywhere;
}
.workspace-shell .ws-node-count,
.ws-workflow-lane .ws-node-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(157,183,241,.13);
    background: rgba(7,17,36,.34);
    color: rgba(237,243,255,.86);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.ws-filter-chip,
.ws-filter-context-row .ws-filter-chip {
    max-width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    white-space: normal;
    line-height: 1.15;
}

@media (min-width: 1280px) {
    .ws-workflow-strip-items {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .ws-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    .ws-workflow-strip-items {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 760px) {
    .ws-summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
        gap: 10px;
    }
    .ws-summary-card {
        padding: 14px;
        border-radius: 16px;
    }
    .ws-summary-value {
        font-size: clamp(24px, 8vw, 30px);
    }
    .ws-workflow-strip {
        padding: 12px;
    }
    .ws-workflow-strip-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .ws-workflow-strip-items {
        grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
        gap: 8px;
    }
    .ws-workflow-strip-item {
        min-height: 54px;
    }
}

@media (max-width: 430px) {
    .ws-summary-grid,
    .ws-workflow-strip-items {
        grid-template-columns: 1fr;
    }
}

/* Track Pass 6 — motion / alive UI polish
   Subtle control-room micro-interactions only: no stretching, no loud motion. */
:root {
    --track-motion-fast: 160ms;
    --track-motion-med: 240ms;
    --track-motion-slow: 520ms;
    --track-ease-control: cubic-bezier(.2,.75,.22,1);
    --track-hover-glow: 0 16px 34px rgba(0,0,0,.22), 0 0 0 1px rgba(128,167,255,.08);
    --track-active-glow: 0 0 0 1px rgba(133,178,255,.18), 0 14px 34px rgba(39,86,180,.15);
}

@keyframes trackSoftReveal {
    from { opacity: .72; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes trackCalmHalo {
    0%, 100% { box-shadow: inset 0 0 0 1px rgba(190,212,255,.08), 0 12px 26px rgba(0,0,0,.15); }
    50% { box-shadow: inset 0 0 0 1px rgba(190,212,255,.12), 0 16px 34px rgba(64,116,220,.18); }
}

@keyframes trackSignalDot {
    0%, 100% { opacity: .62; transform: scale(.94); }
    50% { opacity: 1; transform: scale(1.04); }
}

.workspace-shell .ws-global-topbar,
.workspace-shell .ws-left-pane,
.workspace-shell .ws-main-pane,
.workspace-shell .ws-selected-surface,
.workspace-shell .ws-summary-card,
.workspace-shell .ws-surface-block,
.workspace-shell .ws-object-card,
.workspace-shell .ws-workbench-group,
.workspace-shell .ws-workbench-item,
.workspace-shell .ws-right-pane,
.project-hub-panel {
    animation: trackSoftReveal var(--track-motion-slow) var(--track-ease-control) both;
}

.workspace-shell .ws-summary-card,
.workspace-shell .ws-workflow-strip-item,
.workspace-shell .ws-workflow-lane,
.workspace-shell .ws-project-card,
.workspace-shell .ws-object-card,
.workspace-shell .ws-workbench-group,
.workspace-shell .ws-workbench-item,
.workspace-shell .ws-action-link,
.workspace-shell .ws-tree-link,
.workspace-shell .ws-tree-pill,
.workspace-shell .status-pill,
.workspace-shell .scope-pill,
.workspace-shell .iconbtn,
.workspace-shell .btn,
.project-hub-card,
.project-hub-close,
.project-hub-create {
    transition:
        transform var(--track-motion-fast) var(--track-ease-control),
        border-color var(--track-motion-fast) ease,
        background-color var(--track-motion-fast) ease,
        background var(--track-motion-fast) ease,
        color var(--track-motion-fast) ease,
        box-shadow var(--track-motion-med) ease,
        opacity var(--track-motion-fast) ease;
}

.workspace-shell .ws-summary-card:hover,
.workspace-shell .ws-project-card:hover,
.workspace-shell .ws-object-card:hover,
.workspace-shell .ws-workbench-group:hover,
.workspace-shell .ws-workbench-item:hover,
.workspace-shell .ws-action-link:hover,
.workspace-shell .ws-workflow-strip-item:hover,
.workspace-shell .ws-workflow-lane:hover,
.project-hub-card:hover {
    transform: translateY(-2px);
    border-color: rgba(138,180,255,.26);
    box-shadow: var(--track-hover-glow);
}

.workspace-shell .iconbtn:hover,
.workspace-shell .iconbtn:focus-visible,
.workspace-shell .btn:hover,
.workspace-shell .btn:focus-visible,
.workspace-shell .scope-pill:hover,
.workspace-shell .scope-pill:focus-visible,
.workspace-shell .status-pill:hover,
.workspace-shell .status-pill:focus-visible,
.project-hub-close:hover,
.project-hub-close:focus-visible,
.project-hub-create:hover,
.project-hub-create:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.065);
}

.workspace-shell .ws-tree-link:hover,
.workspace-shell .ws-tree-link:focus-visible,
.workspace-shell .ws-tree-pill:hover,
.workspace-shell .ws-tree-pill:focus-visible {
    transform: translateX(2px);
    border-color: rgba(138,180,255,.22);
}

.workspace-shell .is-current,
.workspace-shell .is-active,
.project-hub-card.is-current {
    box-shadow: var(--track-active-glow);
}

.workspace-shell .ws-project-switch-link.ws-root-link.is-current,
.workspace-shell .ws-workflow-strip-item.is-active,
.workspace-shell .ws-workflow-lane.is-active,
.project-hub-card.is-current {
    animation: trackCalmHalo 3.8s ease-in-out infinite;
}

.workspace-shell .ws-workflow-strip-item.has-value .ws-node-icon,
.workspace-shell .ws-workflow-lane.has-value .ws-node-icon,
.workspace-shell .status-pill[class*="status-"] svg,
.workspace-shell .status-pill[class*="status-"] .icon-glyph {
    transform-origin: center;
}

.workspace-shell .ws-workflow-strip-item.has-value:hover .ws-node-icon,
.workspace-shell .ws-workflow-lane.has-value:hover .ws-node-icon,
.workspace-shell .status-pill:hover svg,
.workspace-shell .status-pill:hover .icon-glyph {
    animation: trackSignalDot 1.4s ease-in-out infinite;
}

.workspace-shell .ws-summary-value,
.workspace-shell .ws-workflow-strip-count,
.workspace-shell .ws-node-count {
    transition: color var(--track-motion-fast) ease, transform var(--track-motion-fast) var(--track-ease-control);
}

.workspace-shell .ws-summary-card:hover .ws-summary-value,
.workspace-shell .ws-workflow-strip-item:hover .ws-workflow-strip-count,
.workspace-shell .ws-workflow-lane:hover .ws-node-count {
    transform: translateY(-1px);
    color: rgba(245,249,255,.98);
}

.workspace-shell .ws-selected-surface,
.workspace-shell .ws-surface-block,
.workspace-shell .ws-right-pane {
    position: relative;
    isolation: isolate;
}

.workspace-shell .ws-selected-surface::after,
.workspace-shell .ws-surface-block::after,
.workspace-shell .ws-right-pane::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(circle at 24% 0%, rgba(128,167,255,.14), transparent 34%);
    transition: opacity var(--track-motion-med) ease;
    z-index: -1;
}

.workspace-shell .ws-selected-surface:hover::after,
.workspace-shell .ws-surface-block:hover::after,
.workspace-shell .ws-right-pane:hover::after {
    opacity: 1;
}

.workspace-shell .ws-status-trigger,
.workspace-shell .ws-action-link,
.workspace-shell .ws-breadcrumb-link-button {
    -webkit-tap-highlight-color: transparent;
}

.workspace-shell .ws-action-link:hover .ws-action-icon,
.workspace-shell .ws-action-link:focus-visible .ws-action-icon,
.workspace-shell .ws-topbar-brand.ws-app-anchor:hover .ws-app-anchor-icon,
.workspace-shell .ws-topbar-brand.ws-app-anchor:focus-visible .ws-app-anchor-icon {
    box-shadow: inset 0 0 0 1px rgba(190,212,255,.16), 0 0 22px rgba(96,148,255,.16);
}

@media (hover: none) {
    .workspace-shell .ws-summary-card:hover,
    .workspace-shell .ws-project-card:hover,
    .workspace-shell .ws-object-card:hover,
    .workspace-shell .ws-workbench-group:hover,
    .workspace-shell .ws-workbench-item:hover,
    .workspace-shell .ws-action-link:hover,
    .workspace-shell .ws-workflow-strip-item:hover,
    .workspace-shell .ws-workflow-lane:hover,
    .project-hub-card:hover,
    .workspace-shell .iconbtn:hover,
    .workspace-shell .btn:hover,
    .workspace-shell .scope-pill:hover,
    .workspace-shell .status-pill:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .workspace-shell .ws-global-topbar,
    .workspace-shell .ws-left-pane,
    .workspace-shell .ws-main-pane,
    .workspace-shell .ws-selected-surface,
    .workspace-shell .ws-summary-card,
    .workspace-shell .ws-surface-block,
    .workspace-shell .ws-object-card,
    .workspace-shell .ws-workbench-group,
    .workspace-shell .ws-workbench-item,
    .workspace-shell .ws-right-pane,
    .project-hub-panel,
    .workspace-shell .ws-project-switch-link.ws-root-link.is-current,
    .workspace-shell .ws-workflow-strip-item.is-active,
    .workspace-shell .ws-workflow-lane.is-active,
    .project-hub-card.is-current,
    .workspace-shell .ws-workflow-strip-item.has-value:hover .ws-node-icon,
    .workspace-shell .ws-workflow-lane.has-value:hover .ws-node-icon,
    .workspace-shell .status-pill:hover svg,
    .workspace-shell .status-pill:hover .icon-glyph {
        animation: none !important;
    }

    .workspace-shell .ws-summary-card,
    .workspace-shell .ws-workflow-strip-item,
    .workspace-shell .ws-workflow-lane,
    .workspace-shell .ws-project-card,
    .workspace-shell .ws-object-card,
    .workspace-shell .ws-workbench-group,
    .workspace-shell .ws-workbench-item,
    .workspace-shell .ws-action-link,
    .workspace-shell .ws-tree-link,
    .workspace-shell .ws-tree-pill,
    .workspace-shell .status-pill,
    .workspace-shell .scope-pill,
    .workspace-shell .iconbtn,
    .workspace-shell .btn,
    .project-hub-card,
    .project-hub-close,
    .project-hub-create,
    .workspace-shell .ws-summary-value,
    .workspace-shell .ws-workflow-strip-count,
    .workspace-shell .ws-node-count {
        transition: none !important;
    }

    .workspace-shell .ws-summary-card:hover,
    .workspace-shell .ws-project-card:hover,
    .workspace-shell .ws-object-card:hover,
    .workspace-shell .ws-workbench-group:hover,
    .workspace-shell .ws-workbench-item:hover,
    .workspace-shell .ws-action-link:hover,
    .workspace-shell .ws-workflow-strip-item:hover,
    .workspace-shell .ws-workflow-lane:hover,
    .project-hub-card:hover,
    .workspace-shell .iconbtn:hover,
    .workspace-shell .btn:hover,
    .workspace-shell .scope-pill:hover,
    .workspace-shell .status-pill:hover,
    .workspace-shell .ws-tree-link:hover,
    .workspace-shell .ws-tree-pill:hover,
    .workspace-shell .ws-summary-card:hover .ws-summary-value,
    .workspace-shell .ws-workflow-strip-item:hover .ws-workflow-strip-count,
    .workspace-shell .ws-workflow-lane:hover .ws-node-count {
        transform: none !important;
    }
}

/* Track Pass 7 — project icon upload and asset containment */
.project-image-upload-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    margin: 0 0 18px;
    border-radius: 22px;
    border: 1px solid rgba(157, 183, 241, 0.14);
    background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.014));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}
.project-image-preview-card,
.ws-project-edit-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.project-image-preview-card > div:last-child,
.ws-project-edit-preview > div:last-child {
    min-width: 0;
}
.project-image-preview-card strong,
.ws-project-edit-preview strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.track-file-input {
    width: 100%;
    min-height: 48px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(157, 183, 241, 0.16);
    background: rgba(5, 14, 32, 0.68);
    color: rgba(220, 232, 255, 0.9);
    font-size: 13px;
    font-weight: 740;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.track-file-input::file-selector-button {
    min-height: 32px;
    margin-right: 12px;
    padding: 0 13px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(122,160,255,0.95), rgba(54,211,255,0.86));
    color: rgba(4, 12, 28, 0.96);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(55, 131, 255, 0.22);
}
.track-file-input:hover,
.track-file-input:focus-visible {
    border-color: rgba(140, 181, 255, 0.40);
    background: rgba(7, 18, 42, 0.88);
    outline: none;
    box-shadow: 0 0 0 3px rgba(122, 160, 255, 0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}
.project-image-storage-note {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 760;
    border: 1px solid rgba(157, 183, 241, 0.13);
    background: rgba(255,255,255,0.035);
    color: rgba(207, 221, 255, 0.82);
}
.project-image-storage-note.is-ok {
    border-color: rgba(34, 197, 94, 0.20);
    background: rgba(11, 70, 41, 0.25);
    color: rgba(193, 255, 217, 0.86);
}
.project-image-storage-note.is-warning {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(83, 52, 8, 0.28);
    color: rgba(255, 232, 177, 0.92);
}
.ws-project-avatar,
.ws-project-avatar.has-image,
.project-hub-avatar.ws-project-avatar {
    aspect-ratio: 1 / 1;
}
.ws-project-avatar.has-image img,
.project-hub-avatar.has-image img,
.ws-project-avatar-large.has-image img,
.ws-project-avatar-hero.has-image img,
.ws-project-avatar-card.has-image img,
.ws-project-avatar-nav.has-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: inherit;
}
.project-hub-avatar.has-image img {
    padding: 6px;
    border-radius: 18px;
}
.ws-project-avatar-large.has-image img,
.ws-project-avatar-hero.has-image img {
    padding: 7px;
}
.ws-project-avatar-card.has-image img {
    padding: 5px;
}
.ws-project-avatar-nav.has-image img {
    padding: 3px;
}
@media (max-width: 640px) {
    .project-image-preview-card,
    .ws-project-edit-preview {
        align-items: flex-start;
    }
    .track-file-input {
        font-size: 12px;
    }
    .track-file-input::file-selector-button {
        display: block;
        width: 100%;
        margin: 0 0 8px;
    }
}

/* Track Pass 8 — Project Hub placement + runtime/status hardening
   Project Hub is now an icon-only sidebar header action. The filter row remains
   This Project / All Projects, and status chips are protected from mid-word breaks. */
.ws-left-project-hub,
.ws-left-create-project {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}
.ws-left-project-hub {
    color: rgba(221, 232, 255, 0.92);
    background: linear-gradient(145deg, rgba(122,160,255,0.14), rgba(54,211,255,0.06));
    border-color: rgba(157,183,241,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 24px rgba(0,0,0,0.16);
}
.ws-left-project-hub:hover,
.ws-left-project-hub:focus-visible {
    color: #fff;
    background: linear-gradient(145deg, rgba(122,160,255,0.24), rgba(54,211,255,0.10));
    border-color: rgba(138,180,255,0.38);
    transform: translateY(-1px);
}
.ws-left-project-hub .icon-glyph {
    width: 17px;
    height: 17px;
}
.ws-scope-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.scope-pill {
    min-width: 0;
    max-width: 100%;
}
.scope-pill > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ws-workflow-strip {
    overflow: visible;
}
.ws-workflow-strip-items {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    align-items: stretch;
}
.ws-workflow-strip-item {
    min-width: 0;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) auto;
}
.ws-workflow-strip-main {
    grid-template-columns: 18px minmax(82px, 1fr);
    min-width: 0;
}
.ws-workflow-strip-label,
.ws-workflow-lane-label {
    min-width: 0;
    white-space: normal;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: manual;
}
.ws-workflow-strip-count,
.ws-workflow-lane .ws-node-count {
    flex: 0 0 auto;
    white-space: nowrap;
}
.ws-analytics-card .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
}
.ws-analytics-card .section-head > div {
    min-width: 0;
    flex: 1 1 170px;
}
.ws-analytics-card .section-head > .status-pill {
    flex: 0 1 auto;
    max-width: 100%;
    justify-content: flex-start;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    text-align: left;
    line-height: 1.18;
}
@media (max-width: 760px) {
    .ws-left-project-hub,
    .ws-left-create-project {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
    .ws-workflow-strip-items {
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
    }
    .ws-workflow-strip-main {
        grid-template-columns: 18px minmax(70px, 1fr);
    }
}
@media (max-width: 430px) {
    .ws-workflow-strip-items {
        grid-template-columns: 1fr !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ws-left-project-hub:hover,
    .ws-left-project-hub:focus-visible {
        transform: none;
    }
}

/* Track Pass 1 — left-nav surgery / navigator-only cleanup */
.workspace-shell .ws-left-pane {
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    overflow: hidden !important;
}
.workspace-shell .ws-left-footer {
    display: none !important;
}
.workspace-shell .ws-project-head {
    padding: 12px 16px 10px !important;
}
.workspace-shell .ws-project-head-top {
    gap: 10px;
    min-width: 0;
}
.workspace-shell .ws-project-code,
.workspace-shell .ws-project-context-code {
    min-width: 0;
    max-width: 170px;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workspace-shell .ws-project-head h1 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
    font-size: clamp(18px, 1.45vw, 21px) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.035em;
}
.workspace-shell .ws-project-head p {
    margin-top: 6px !important;
    font-size: 13px;
    line-height: 1.35;
}
.workspace-shell .ws-search-shell {
    padding: 12px 16px 12px !important;
    gap: 10px !important;
}
.workspace-shell .ws-search-shell label {
    font-size: 11px;
    letter-spacing: 0.11em;
}
.workspace-shell .ws-search-shell input {
    height: 42px;
    min-width: 0;
    max-width: 100%;
    border-radius: 15px;
}
.workspace-shell .ws-sort-shell {
    margin: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}
.workspace-shell .ws-sort-inline-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
}
.workspace-shell .ws-sort-menu {
    min-width: 0;
}
.workspace-shell .ws-sort-menu > summary {
    min-height: 31px !important;
    padding: 6px 9px !important;
    border-radius: 12px !important;
    gap: 7px;
    overflow: hidden;
}
.workspace-shell .ws-sort-label,
.workspace-shell .ws-sort-current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workspace-shell .ws-sort-label {
    flex: 0 0 auto;
    font-size: 9px;
    letter-spacing: .11em;
}
.workspace-shell .ws-sort-current {
    flex: 1 1 auto;
    font-size: 11px;
}
.workspace-shell .ws-tree {
    min-width: 0;
    padding: 10px 12px 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable;
}
.workspace-shell .ws-current-tree-zone {
    min-width: 0;
    max-width: 100%;
}
.workspace-shell .ws-current-tree-head {
    min-width: 0;
    gap: 8px;
}
.workspace-shell .ws-current-tree-title,
.workspace-shell .ws-current-tree-count {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workspace-shell .ws-node,
.workspace-shell .ws-node-body,
.workspace-shell .ws-project-body,
.workspace-shell .ws-project-tree-root,
.workspace-shell .ws-current-tree-body {
    min-width: 0;
    max-width: 100%;
}
.workspace-shell .ws-node-body {
    padding-left: 10px !important;
    margin-left: 8px !important;
}
.workspace-shell .ws-project-tree-root > .ws-node-body {
    padding-top: 8px !important;
}
.workspace-shell .ws-root-link,
.workspace-shell .ws-tree-link,
.workspace-shell .ws-node summary {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 34px !important;
    padding: 6px 8px !important;
    gap: 8px !important;
    overflow: hidden;
}
.workspace-shell .ws-tree-main {
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
    gap: 7px !important;
    overflow: hidden;
}
.workspace-shell .ws-tree-pill {
    min-width: 0;
    max-width: 100%;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 1.18;
}
.workspace-shell .ws-node-toggle,
.workspace-shell .ws-node-toggle-spacer {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
}
.workspace-shell .ws-node-toggle .icon-glyph {
    width: 12px !important;
    height: 12px !important;
}
.workspace-shell .ws-node-icon:not(.is-workflow) {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
}
.workspace-shell .ws-node-icon.is-workflow {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
}
.workspace-shell .ws-node-count {
    min-width: 22px !important;
    width: auto !important;
    height: 22px !important;
    flex: 0 0 auto !important;
    padding: 0 6px !important;
    font-size: 10px !important;
}
.workspace-shell .ws-workflow-lanes-zone {
    display: none !important;
}
@media (max-width: 760px) {
    .workspace-shell .ws-left-pane {
        width: min(88vw, 336px) !important;
    }
    .workspace-shell .ws-project-head,
    .workspace-shell .ws-search-shell {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .workspace-shell .ws-tree {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .workspace-shell .ws-project-code,
    .workspace-shell .ws-project-context-code {
        max-width: 145px;
    }
}

/* Track Pass 2 — tree compression + Project Hub polish */
.workspace-shell .ws-current-tree-head {
    position: sticky;
    top: -10px;
    z-index: 3;
    margin: -2px 0 8px;
    padding: 7px 2px 8px;
    background: linear-gradient(180deg, rgba(8, 19, 43, .96), rgba(8, 19, 43, .78));
    backdrop-filter: blur(10px);
}
.workspace-shell .ws-current-tree-title {
    font-size: 10px !important;
    letter-spacing: .14em;
}
.workspace-shell .ws-current-tree-count {
    font-size: 10px !important;
    opacity: .72;
}
.workspace-shell .ws-project-tree-root > summary {
    min-height: 38px !important;
    border-color: rgba(132, 173, 255, .18) !important;
    background: linear-gradient(180deg, rgba(132, 173, 255, .12), rgba(24, 45, 91, .12)) !important;
}
.workspace-shell .ws-node-body {
    padding-left: 8px !important;
    margin-left: 7px !important;
    border-left: 1px dashed rgba(157, 183, 241, .11);
}
.workspace-shell .ws-node .ws-node .ws-node-body {
    padding-left: 7px !important;
    margin-left: 6px !important;
}
.workspace-shell .ws-node summary,
.workspace-shell .ws-tree-link {
    min-height: 32px !important;
    padding: 5px 7px !important;
    border-radius: 12px !important;
}
.workspace-shell .ws-node summary::marker,
.workspace-shell .ws-node summary::-webkit-details-marker {
    display: none;
    content: '';
}
.workspace-shell .ws-tree-main {
    gap: 6px !important;
}
.workspace-shell .ws-node-toggle,
.workspace-shell .ws-node-toggle-spacer {
    width: 20px !important;
    height: 20px !important;
    flex-basis: 20px !important;
}
.workspace-shell .ws-node-icon:not(.is-workflow) {
    width: 14px !important;
    height: 14px !important;
    flex-basis: 14px !important;
}
.workspace-shell .ws-project-avatar-nav {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
}
.workspace-shell .ws-node:not(.ws-project-tree-root) > summary > .ws-node-count {
    display: none !important;
}
.workspace-shell .ws-node.is-active-branch > summary,
.workspace-shell .ws-node summary.is-current,
.workspace-shell .ws-tree-link.is-current {
    border-color: rgba(137, 181, 255, .34) !important;
    background: linear-gradient(90deg, rgba(126, 166, 255, .20), rgba(126, 166, 255, .07)) !important;
    box-shadow: inset 3px 0 0 rgba(134, 184, 255, .72), 0 10px 24px rgba(5, 12, 30, .16);
}
.workspace-shell .ws-node.is-active-branch > .ws-node-body {
    border-left-color: rgba(134, 184, 255, .25);
}
.workspace-shell .ws-node summary.is-current .ws-tree-pill,
.workspace-shell .ws-tree-link.is-current .ws-tree-pill {
    color: #f7fbff;
    font-weight: 800;
}
.workspace-shell .ws-node.is-active-branch:not(.ws-project-tree-root) > summary:not(.is-current) .ws-tree-pill {
    color: rgba(226, 235, 255, .94);
}
.workspace-shell .ws-tree-pill {
    font-size: 13px !important;
    letter-spacing: -.015em;
}
.workspace-shell .ws-tree-leaf .ws-tree-pill {
    font-size: 12.5px !important;
}
.workspace-shell .ws-empty-nav {
    border-radius: 14px;
    padding: 11px 12px;
    background: rgba(9, 20, 44, .48);
    border: 1px solid rgba(157, 183, 241, .10);
}
.project-hub-active-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    margin: 2px 0 16px;
    padding: 13px;
    border-radius: 22px;
    border: 1px solid rgba(137, 181, 255, .24);
    background: linear-gradient(135deg, rgba(31, 58, 117, .42), rgba(8, 18, 42, .74));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 48px rgba(2, 8, 24, .26);
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
.project-hub-active-strip:hover,
.project-hub-active-strip:focus-visible {
    border-color: rgba(150, 194, 255, .46);
    transform: translateY(-1px);
}
.project-hub-active-avatar.ws-project-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
}
.project-hub-active-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.project-hub-active-kicker {
    color: rgba(188, 207, 255, .72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.project-hub-active-copy strong,
.project-hub-active-copy em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.project-hub-active-copy strong {
    color: #f7fbff;
    font-size: 15px;
    font-weight: 900;
}
.project-hub-active-copy em {
    color: rgba(203, 218, 255, .78);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}
.project-hub-active-badge {
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(137, 181, 255, .25);
    background: rgba(137, 181, 255, .13);
    color: #dfeaff;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
.project-hub-panel {
    overflow-x: hidden !important;
}
.project-hub-grid {
    align-items: stretch;
}
.project-hub-card {
    min-width: 0;
}
.project-hub-card:focus-visible {
    outline: 2px solid rgba(150, 194, 255, .65);
    outline-offset: 3px;
}
.project-hub-card-copy {
    min-width: 0;
}
.project-hub-card-copy strong,
.project-hub-card-copy em,
.project-hub-card-copy span {
    max-width: 100%;
}
@media (max-width: 760px) {
    .workspace-shell .ws-node-body,
    .workspace-shell .ws-node .ws-node .ws-node-body {
        padding-left: 6px !important;
        margin-left: 5px !important;
    }
    .workspace-shell .ws-tree-pill {
        font-size: 12.5px !important;
    }
    .project-hub-active-strip {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .project-hub-active-badge {
        display: none;
    }
}

/* Pass 3 — Activity / comments visibility upgrade */
.workspace-shell .ws-activity-hero-card,
.workspace-shell .ws-comments-card,
.workspace-shell .ws-evidence-card {
    border-color: rgba(138, 180, 255, 0.18);
    background:
        radial-gradient(circle at 10% 0%, rgba(120, 162, 255, 0.10), transparent 32%),
        rgba(9, 20, 44, 0.72);
}

.workspace-shell .ws-activity-section-head {
    align-items: flex-start;
    gap: 14px;
}

.workspace-shell .ws-activity-chip {
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.workspace-shell .ws-comment-composer {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(138, 180, 255, 0.18);
    border-radius: 18px;
    background: rgba(4, 12, 28, 0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.workspace-shell .ws-comment-composer textarea,
.workspace-shell .comment-reply-composer textarea {
    width: 100%;
    min-width: 0;
    resize: vertical;
    border-radius: 14px;
}

.workspace-shell .ws-visible-comment-thread {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.workspace-shell .comment-author-block {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.workspace-shell .comment-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(138, 180, 255, 0.24);
    background: linear-gradient(135deg, rgba(138, 180, 255, 0.26), rgba(58, 217, 240, 0.12));
    color: rgba(245,249,255,0.96);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}

.workspace-shell .comment-body {
    font-size: 14px;
    line-height: 1.62;
    color: rgba(232, 239, 255, 0.94);
}

.workspace-shell .comment-node,
.workspace-shell .comment-reply-card {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.workspace-shell .comment-node:hover,
.workspace-shell .comment-reply-card:hover {
    border-color: rgba(138, 180, 255, 0.22);
    background: rgba(138, 180, 255, 0.045);
}

.workspace-shell .ws-comment-jump {
    position: relative;
    color: rgba(129, 222, 255, 0.95);
}

.workspace-shell .ws-comment-jump.has-count {
    border-color: rgba(129, 222, 255, 0.30);
    background: rgba(129, 222, 255, 0.08);
}

.workspace-shell .ws-item-icon-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(6, 16, 34, 0.92);
    background: rgba(129, 222, 255, 0.95);
    color: rgba(5, 14, 30, 0.96);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.workspace-shell .ws-side-tab[data-tab-target="activity"].is-active {
    border-color: rgba(129, 222, 255, 0.26);
    background: rgba(129, 222, 255, 0.10);
}

.workspace-shell .ws-evidence-card .evidence-stack-compact {
    display: grid;
    gap: 12px;
}

@media (max-width: 1120px) {
    .workspace-shell .ws-activity-section-head,
    .workspace-shell .ws-activity-hero-card .section-head {
        align-items: flex-start;
    }
    .workspace-shell .ws-comment-composer {
        padding: 12px;
    }
}

/* Track Pass 4 — responsive + overflow QA seal
   Final shell guard: no hidden horizontal scroll, no stretched pills/buttons,
   and safer pane behavior on desktop, tablet, and mobile. */
html,
body.workspace-shell-body {
    max-width: 100%;
    overflow-x: hidden;
}

.workspace-shell-body,
.workspace-shell,
.workspace-shell * {
    min-width: 0;
}

.workspace-shell-body {
    width: 100%;
}

.workspace-shell .ws-pane,
.workspace-shell .ws-left-pane,
.workspace-shell .ws-main-pane,
.workspace-shell .ws-right-pane,
.workspace-shell .ws-main-content,
.workspace-shell .ws-right-body,
.workspace-shell .ws-side-panel,
.workspace-shell .ws-surface-block,
.workspace-shell .ws-selected-surface,
.workspace-shell .ws-object-card,
.workspace-shell .ws-workbench-group,
.workspace-shell .ws-workbench-item,
.workspace-shell .ws-current-tree-zone,
.workspace-shell .ws-current-tree-body,
.workspace-shell .ws-tree,
.workspace-shell .ws-tree-main,
.workspace-shell .ws-node,
.workspace-shell .ws-node-body,
.workspace-shell .ws-project-body,
.workspace-shell .ws-side-card,
.workspace-shell .ws-activity-hero-card,
.workspace-shell .ws-comments-card,
.workspace-shell .ws-evidence-card {
    max-width: 100%;
    min-width: 0;
}

.workspace-shell .ws-left-pane,
.workspace-shell .ws-main-pane,
.workspace-shell .ws-right-pane,
.workspace-shell .ws-tree,
.workspace-shell .ws-right-body,
.workspace-shell .ws-main-content {
    overflow-x: hidden !important;
}

.workspace-shell .ws-global-topbar,
.workspace-shell .ws-main-topbar,
.workspace-shell .ws-side-head,
.workspace-shell .ws-selected-top,
.workspace-shell .ws-selected-actions,
.workspace-shell .ws-head-actions,
.workspace-shell .button-row,
.workspace-shell .item-meta,
.workspace-shell .ws-filter-context-row,
.workspace-shell .ws-user-chip-stack,
.workspace-shell .ws-project-card-pills,
.workspace-shell .ws-action-side,
.workspace-shell .ws-action-side-primary,
.workspace-shell .ws-action-side-utility {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.workspace-shell .btn,
.workspace-shell .iconbtn,
.workspace-shell .scope-pill,
.workspace-shell .status-pill,
.workspace-shell .ws-filter-chip,
.workspace-shell .ws-side-tab,
.workspace-shell .ws-notification-lane-tab,
.workspace-shell .ws-action-link,
.workspace-shell .ws-time-chip,
.workspace-shell .ws-comment-jump,
.workspace-shell .project-hub-create,
.workspace-shell .project-hub-close {
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
}

.workspace-shell .btn,
.workspace-shell .scope-pill,
.workspace-shell .status-pill,
.workspace-shell .ws-filter-chip,
.workspace-shell .ws-side-tab,
.workspace-shell .ws-notification-lane-tab,
.workspace-shell .ws-action-link,
.workspace-shell .ws-time-chip {
    white-space: normal;
    overflow-wrap: anywhere;
}

.workspace-shell .iconbtn,
.workspace-shell .ws-node-toggle,
.workspace-shell .ws-node-toggle-spacer,
.workspace-shell .ws-node-icon,
.workspace-shell .ws-item-icon-count,
.workspace-shell .ws-side-tab-count,
.workspace-shell .ws-workflow-strip-count,
.workspace-shell .ws-node-count {
    flex-shrink: 0;
    overflow-wrap: normal;
}

.workspace-shell .ws-tree-pill,
.workspace-shell .ws-breadcrumbs,
.workspace-shell .ws-breadcrumbs *,
.workspace-shell .ws-selected-title,
.workspace-shell .ws-object-title,
.workspace-shell .ws-summary-label,
.workspace-shell .ws-project-card h4,
.workspace-shell .ws-project-card-code,
.workspace-shell .ws-project-card-desc,
.workspace-shell .ws-activity-title,
.workspace-shell .comment-body,
.workspace-shell .comment-meta-row,
.workspace-shell .mini-comment,
.workspace-shell .evidence-title,
.workspace-shell .evidence-meta {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.workspace-shell .ws-side-tabs,
.workspace-shell .ws-notification-lane-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    overflow-x: hidden;
}

.workspace-shell .ws-side-tab,
.workspace-shell .ws-notification-lane-tab {
    min-height: 36px;
    justify-content: center;
    line-height: 1.15;
}

.workspace-shell table,
.workspace-shell pre,
.workspace-shell code,
.workspace-shell .ws-export-code,
.workspace-shell .ws-json-preview {
    max-width: 100%;
}

.workspace-shell pre,
.workspace-shell .ws-export-code,
.workspace-shell .ws-json-preview {
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.workspace-shell .ws-comment-composer,
.workspace-shell .comment-reply-composer,
.workspace-shell .ws-comment-composer textarea,
.workspace-shell .comment-reply-composer textarea,
.workspace-shell input,
.workspace-shell select,
.workspace-shell textarea {
    max-width: 100%;
    min-width: 0;
}

.workspace-shell .ws-comments-card,
.workspace-shell .ws-evidence-card,
.workspace-shell .ws-side-card {
    overflow: hidden;
}

.project-hub-panel,
.project-hub-grid,
.project-hub-card,
.project-hub-card-copy,
.project-hub-active-strip,
.project-hub-active-copy {
    max-width: 100%;
    min-width: 0;
}

.project-hub-card-copy strong,
.project-hub-card-copy em,
.project-hub-card-copy span,
.project-hub-active-copy strong,
.project-hub-active-copy em {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1100px) {
    .workspace-shell-body {
        min-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .ws-global-topbar {
        height: auto !important;
        min-height: var(--ws-topbar-height) !important;
        max-height: none !important;
        align-items: center;
    }
    .workspace-shell .ws-main-pane,
    .workspace-shell .ws-right-pane {
        width: 100%;
        max-width: 100%;
    }
    .workspace-shell .ws-main-content,
    .workspace-shell .ws-right-body {
        min-height: 0;
    }
    .project-hub-panel {
        width: min(94vw, 900px);
        max-height: calc(100dvh - 28px);
        overflow-y: auto;
        overflow-x: hidden;
    }
}

@media (max-width: 760px) {
    .workspace-shell-body {
        padding: var(--ws-shell-pad);
    }
    .workspace-shell .ws-left-pane {
        width: min(90vw, 340px) !important;
        max-width: calc(100vw - (var(--ws-shell-pad) * 2));
    }
    .workspace-shell .ws-global-topbar {
        gap: 8px;
        justify-content: flex-start;
    }
    .workspace-shell .ws-global-spacer {
        display: none;
    }
    .workspace-shell .ws-global-actions {
        margin-left: auto;
        flex-wrap: nowrap;
        max-width: 100%;
    }
    .workspace-shell .ws-main-topbar,
    .workspace-shell .ws-side-head,
    .workspace-shell .ws-selected-top,
    .workspace-shell .ws-selected-actions,
    .workspace-shell .ws-head-actions {
        align-items: flex-start;
    }
    .workspace-shell .ws-head-actions {
        width: 100%;
    }
    .workspace-shell .ws-head-actions .btn,
    .workspace-shell .ws-head-actions .iconbtn,
    .workspace-shell .ws-selected-actions .btn,
    .workspace-shell .ws-selected-actions .iconbtn,
    .workspace-shell .button-row .btn {
        flex: 0 1 auto;
        width: auto;
    }
    .workspace-shell .ws-side-tabs,
    .workspace-shell .ws-notification-lane-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .workspace-shell .ws-side-tab,
    .workspace-shell .ws-notification-lane-tab {
        width: 100%;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
    }
    .workspace-shell .ws-comment-composer {
        border-radius: 16px;
    }
    .workspace-shell .comment-meta-row,
    .workspace-shell .comment-actions-row {
        gap: 8px;
    }
    .project-hub-active-strip,
    .project-hub-card {
        border-radius: 18px;
    }
}

@media (max-width: 430px) {
    .workspace-shell .ws-side-tabs,
    .workspace-shell .ws-notification-lane-tabs {
        grid-template-columns: 1fr;
    }
    .workspace-shell .ws-global-actions {
        gap: 6px;
    }
    .workspace-shell .ws-global-icon,
    .workspace-shell .iconbtn.ws-global-icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }
    .workspace-shell .ws-main-content,
    .workspace-shell .ws-right-body {
        padding: 10px;
    }
    .workspace-shell .ws-side-card,
    .workspace-shell .ws-activity-hero-card,
    .workspace-shell .ws-comments-card,
    .workspace-shell .ws-evidence-card {
        padding: 14px;
    }
}

/* Project-status pill + profile-menu icon repair retained before the new control contract. */
.workspace-shell .ws-project-card-head {
    align-items: flex-start;
    flex-wrap: nowrap;
    min-width: 0;
}

.workspace-shell .ws-project-card-titleline {
    flex: 1 1 auto;
    min-width: 0;
}

.workspace-shell .ws-project-card-head > .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 68px;
    max-width: none;
    min-height: 34px;
    padding: 7px 14px;
    line-height: 1;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    align-self: flex-start;
}

.workspace-shell .ws-project-card-pills {
    align-items: center;
    gap: 8px;
}

.workspace-shell .ws-project-card-pills .status-pill {
    flex: 0 0 auto;
    width: auto;
    min-width: auto;
    max-width: 100%;
    min-height: 30px;
    padding: 6px 11px;
    line-height: 1;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.workspace-shell .ws-profile-menu {
    min-width: 260px;
    gap: 8px;
    padding: 14px;
}

.workspace-shell .ws-profile-link,
.workspace-shell .ws-profile-logout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    text-align: left;
    white-space: nowrap;
    overflow-wrap: normal;
}

.workspace-shell .ws-profile-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    color: rgba(237, 243, 255, 0.92);
    background: rgba(138, 180, 255, 0.13);
    border: 1px solid rgba(138, 180, 255, 0.16);
}

.workspace-shell .ws-profile-link-icon .icon-glyph {
    width: 15px;
    height: 15px;
}

.workspace-shell .ws-profile-link span:last-child,
.workspace-shell .ws-profile-logout span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-shell .ws-profile-logout .ws-profile-link-icon {
    color: rgba(255, 190, 190, 0.95);
    background: rgba(255, 123, 123, 0.12);
    border-color: rgba(255, 123, 123, 0.18);
}

@media (max-width: 760px) {
    .workspace-shell .ws-project-card-head {
        gap: 10px;
    }
    .workspace-shell .ws-project-card-head > .status-pill {
        min-width: 62px;
        padding-inline: 12px;
    }
    .workspace-shell .ws-profile-menu {
        min-width: min(280px, calc(100vw - 32px));
    }
}

/* Track UI foundation — pill/card diet and mobile-safe control contract.
   Pills are now treated as compact state/filter tokens, not layout containers.
   Cards remain major section/object surfaces only; nested supporting surfaces are
   softened so mobile does not become a stack of retail-like slabs. */
:root {
    --track-control-radius: 12px;
    --track-pill-radius: 999px;
    --track-pill-min-h: 30px;
    --track-pill-pad-y: 6px;
    --track-pill-pad-x: 11px;
    --track-pill-font: 11.5px;
    --track-pill-gap: 6px;
    --track-meta-font: 12px;
    --track-meta-color: rgba(188, 204, 238, 0.74);
    --track-soft-panel-bg: rgba(255, 255, 255, 0.022);
    --track-soft-panel-border: rgba(157, 183, 241, 0.095);
}

/* Layout shells may wrap; controls themselves must never become vertical text. */
.workspace-shell .ws-global-topbar,
.workspace-shell .ws-main-topbar,
.workspace-shell .ws-side-head,
.workspace-shell .ws-selected-top,
.workspace-shell .ws-selected-actions,
.workspace-shell .ws-head-actions,
.workspace-shell .ws-head-actions-left,
.workspace-shell .ws-head-actions-right,
.workspace-shell .button-row,
.workspace-shell .item-meta,
.workspace-shell .ws-filter-context-row,
.workspace-shell .ws-user-chip-stack,
.workspace-shell .ws-project-card-pills,
.workspace-shell .ws-workbench-item-pills,
.workspace-shell .ws-active-filter-row,
.workspace-shell .comment-actions-row,
.workspace-shell .meta-cluster,
.workspace-shell .compact-actions {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    overflow: visible;
}

.workspace-shell .btn,
.workspace-shell .iconbtn,
.workspace-shell .scope-pill,
.workspace-shell .status-pill,
.workspace-shell .ws-filter-chip,
.workspace-shell .ws-side-tab,
.workspace-shell .ws-notification-lane-tab,
.workspace-shell .ws-action-link,
.workspace-shell .ws-time-chip,
.workspace-shell .ws-item-type-chip,
.workspace-shell .ws-side-health-chip,
.workspace-shell .track-timer-action-btn,
.workspace-shell .ws-comment-jump,
.workspace-shell .project-hub-create,
.workspace-shell .project-hub-close {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    text-wrap: nowrap;
    max-width: 100%;
}

.workspace-shell .btn,
.workspace-shell .scope-pill,
.workspace-shell .status-pill,
.workspace-shell .ws-filter-chip,
.workspace-shell .ws-time-chip,
.workspace-shell .ws-item-type-chip,
.workspace-shell .ws-side-health-chip,
.workspace-shell .track-timer-action-btn,
.workspace-shell .project-hub-create,
.workspace-shell .project-hub-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-shell .status-pill,
.workspace-shell .ws-filter-chip,
.workspace-shell .ws-time-chip,
.workspace-shell .ws-item-type-chip,
.workspace-shell .ws-side-health-chip {
    min-height: var(--track-pill-min-h);
    padding: var(--track-pill-pad-y) var(--track-pill-pad-x);
    gap: var(--track-pill-gap);
    border-radius: var(--track-pill-radius);
    font-size: var(--track-pill-font);
    line-height: 1.05;
    letter-spacing: .01em;
}

.workspace-shell .status-pill,
.workspace-shell .ws-filter-chip,
.workspace-shell .ws-time-chip,
.workspace-shell .ws-item-type-chip,
.workspace-shell .ws-side-health-chip,
.workspace-shell .scope-pill {
    box-shadow: none;
}

.workspace-shell .status-pill:hover,
.workspace-shell .status-pill:focus-visible,
.workspace-shell .ws-filter-chip:hover,
.workspace-shell .ws-filter-chip:focus-visible,
.workspace-shell .ws-time-chip:hover,
.workspace-shell .ws-time-chip:focus-visible {
    transform: none;
}

.workspace-shell .iconbtn,
.workspace-shell .ws-global-icon,
.workspace-shell .ws-left-project-hub,
.workspace-shell .ws-left-create-project,
.workspace-shell .ws-item-icon-btn,
.workspace-shell .ws-node-toggle,
.workspace-shell .ws-node-toggle-spacer,
.workspace-shell .ws-node-icon,
.workspace-shell .ws-item-icon-count,
.workspace-shell .ws-side-tab-count,
.workspace-shell .ws-workflow-strip-count,
.workspace-shell .ws-node-count {
    flex: 0 0 auto !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
}

.workspace-shell .iconbtn { --control-size: 46px; }
.workspace-shell .ws-global-icon { --control-size: 48px; }
.workspace-shell .ws-left-project-hub,
.workspace-shell .ws-left-create-project { --control-size: 38px; }
.workspace-shell .iconbtn,
.workspace-shell .ws-global-icon,
.workspace-shell .ws-left-project-hub,
.workspace-shell .ws-left-create-project {
    width: var(--control-size, auto);
    min-width: var(--control-size, auto);
}

/* Long prose and data labels may wrap. The control contract above is intentionally stricter. */
.workspace-shell .ws-project-card-desc,
.workspace-shell .ws-tree-pill,
.workspace-shell .ws-breadcrumbs,
.workspace-shell .ws-breadcrumbs *,
.workspace-shell .ws-selected-title,
.workspace-shell .ws-object-title,
.workspace-shell .ws-summary-label,
.workspace-shell .ws-project-card h4,
.workspace-shell .ws-project-card-code,
.workspace-shell .ws-activity-title,
.workspace-shell .comment-body,
.workspace-shell .comment-meta-row,
.workspace-shell .mini-comment,
.workspace-shell .evidence-title,
.workspace-shell .evidence-meta,
.workspace-shell textarea,
.workspace-shell input,
.workspace-shell select {
    max-width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
}

/* Reusable quiet metadata rows for the following cleanup passes. */
.workspace-shell .track-meta-row,
.workspace-shell .ws-meta-row,
.workspace-shell .quiet-meta-row,
.workspace-shell .inline-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-width: 0;
    max-width: 100%;
    color: var(--track-meta-color);
    font-size: var(--track-meta-font);
    font-weight: 720;
    line-height: 1.35;
}

.workspace-shell .track-meta-row > *,
.workspace-shell .ws-meta-row > *,
.workspace-shell .quiet-meta-row > *,
.workspace-shell .inline-meta-row > * {
    min-width: 0;
}

.workspace-shell .track-meta-dot,
.workspace-shell .ws-meta-dot,
.workspace-shell .quiet-meta-dot {
    width: 3px;
    height: 3px;
    flex: 0 0 3px;
    border-radius: 999px;
    background: rgba(188, 204, 238, .55);
}

.workspace-shell .track-meta-label,
.workspace-shell .ws-meta-label,
.workspace-shell .quiet-meta-label {
    color: rgba(231, 238, 255, .88);
    font-weight: 850;
}

.workspace-shell .track-meta-value,
.workspace-shell .ws-meta-value,
.workspace-shell .quiet-meta-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card diet foundation: keep major panels premium; soften nested/support cards. */
.workspace-shell .ws-object-card,
.workspace-shell .ws-workbench-group,
.workspace-shell .ws-workbench-item,
.workspace-shell .ws-side-card,
.workspace-shell .ws-activity-hero-card,
.workspace-shell .ws-comments-card,
.workspace-shell .ws-evidence-card {
    box-shadow: none;
}

.workspace-shell .ws-side-card,
.workspace-shell .ws-activity-hero-card,
.workspace-shell .ws-comments-card,
.workspace-shell .ws-evidence-card,
.workspace-shell .evidence-card,
.workspace-shell .evidence-file-card,
.workspace-shell .comment-reply-card {
    background: var(--track-soft-panel-bg);
    border-color: var(--track-soft-panel-border);
}

.workspace-shell .ws-object-card:hover,
.workspace-shell .ws-workbench-group:hover,
.workspace-shell .ws-workbench-item:hover {
    box-shadow: none;
}

.workspace-shell .ws-project-card-head {
    align-items: flex-start;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
}

.workspace-shell .ws-project-card-titleline,
.workspace-shell .ws-action-copy,
.workspace-shell .ws-profile-link span:last-child,
.workspace-shell .ws-profile-logout span:last-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.workspace-shell .ws-project-card-head > .status-pill,
.workspace-shell .ws-project-card-pills .status-pill,
.workspace-shell .ws-active-filter-row .status-pill,
.workspace-shell .item-meta .status-pill,
.workspace-shell .ws-workbench-item-pills .status-pill {
    flex: 0 0 auto !important;
    width: auto;
    min-width: auto;
    max-width: min(100%, 180px);
}

.workspace-shell .ws-project-card-head > .status-pill {
    min-width: 62px;
    max-width: 112px;
    align-self: flex-start;
}

.workspace-shell .ws-action-copy strong,
.workspace-shell .ws-action-sub,
.workspace-shell .ws-action-user-highlight,
.workspace-shell .ws-profile-link span:last-child,
.workspace-shell .ws-profile-logout span:last-child {
    display: block;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
}

.workspace-shell .ws-side-tabs,
.workspace-shell .ws-notification-lane-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    overflow-x: hidden;
}

.workspace-shell .ws-side-tab,
.workspace-shell .ws-notification-lane-tab {
    min-height: 36px;
    justify-content: center;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-shell table,
.workspace-shell pre,
.workspace-shell code,
.workspace-shell .ws-export-code,
.workspace-shell .ws-json-preview {
    max-width: 100%;
}

.workspace-shell pre,
.workspace-shell .ws-export-code,
.workspace-shell .ws-json-preview {
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.workspace-shell .ws-comment-composer,
.workspace-shell .comment-reply-composer,
.workspace-shell .ws-comment-composer textarea,
.workspace-shell .comment-reply-composer textarea,
.workspace-shell input,
.workspace-shell select,
.workspace-shell textarea {
    max-width: 100%;
    min-width: 0;
}

.workspace-shell .ws-comments-card,
.workspace-shell .ws-evidence-card,
.workspace-shell .ws-side-card {
    overflow: hidden;
}

.project-hub-panel,
.project-hub-grid,
.project-hub-card,
.project-hub-card-copy,
.project-hub-active-strip,
.project-hub-active-copy {
    max-width: 100%;
    min-width: 0;
}

.project-hub-card-copy strong,
.project-hub-card-copy em,
.project-hub-card-copy span,
.project-hub-active-copy strong,
.project-hub-active-copy em {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Profile menu icon/layout repair retained under the new control contract. */
.workspace-shell .ws-profile-menu {
    min-width: min(280px, calc(100vw - 32px));
    gap: 8px;
    padding: 14px;
}

.workspace-shell .ws-profile-link,
.workspace-shell .ws-profile-logout {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    text-align: left !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
}

.workspace-shell .ws-profile-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px !important;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    color: rgba(237, 243, 255, 0.92);
    background: rgba(138, 180, 255, 0.13);
    border: 1px solid rgba(138, 180, 255, 0.16);
}

.workspace-shell .ws-profile-link-icon .icon-glyph {
    width: 15px;
    height: 15px;
}

.workspace-shell .ws-profile-logout .ws-profile-link-icon {
    color: rgba(255, 190, 190, 0.95);
    background: rgba(255, 123, 123, 0.12);
    border-color: rgba(255, 123, 123, 0.18);
}

/* Activity count chips must remain readable without turning the section into a chip wall. */
.workspace-shell .ws-activity-hero-card .section-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
}

.workspace-shell .ws-activity-hero-card .meta-cluster.compact-actions,
.workspace-shell .ws-activity-hero-card .compact-actions {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 7px !important;
    overflow: visible !important;
}

.workspace-shell .ws-activity-hero-card .status-pill,
.workspace-shell .ws-activity-chip {
    min-width: max-content !important;
    max-width: 100% !important;
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 6px 9px !important;
    font-size: 11px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 1100px) {
    .workspace-shell-body {
        min-height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
    }
    .ws-global-topbar {
        height: auto !important;
        min-height: var(--ws-topbar-height) !important;
        max-height: none !important;
        align-items: center;
    }
    .workspace-shell .ws-main-pane,
    .workspace-shell .ws-right-pane {
        width: 100%;
        max-width: 100%;
    }
    .workspace-shell .ws-main-content,
    .workspace-shell .ws-right-body {
        min-height: 0;
    }
    .project-hub-panel {
        width: min(94vw, 900px);
        max-height: calc(100dvh - 28px);
        overflow-y: auto;
        overflow-x: hidden;
    }
}

@media (max-width: 760px) {
    :root {
        --track-pill-min-h: 28px;
        --track-pill-pad-y: 5px;
        --track-pill-pad-x: 9px;
        --track-pill-font: 10.8px;
        --track-meta-font: 11.5px;
    }
    .workspace-shell-body {
        padding: var(--ws-shell-pad);
    }
    .workspace-shell .ws-left-pane {
        width: min(90vw, 340px) !important;
        max-width: calc(100vw - (var(--ws-shell-pad) * 2));
    }
    .workspace-shell .ws-global-topbar {
        gap: 8px;
        justify-content: flex-start;
    }
    .workspace-shell .ws-global-spacer {
        display: none;
    }
    .workspace-shell .ws-global-actions {
        margin-left: auto;
        flex-wrap: nowrap;
        max-width: 100%;
    }
    .workspace-shell .ws-main-topbar,
    .workspace-shell .ws-side-head,
    .workspace-shell .ws-selected-top,
    .workspace-shell .ws-selected-actions,
    .workspace-shell .ws-head-actions {
        align-items: flex-start;
    }
    .workspace-shell .ws-head-actions {
        width: 100%;
    }
    .workspace-shell .ws-head-actions .btn,
    .workspace-shell .ws-head-actions .iconbtn,
    .workspace-shell .ws-selected-actions .btn,
    .workspace-shell .ws-selected-actions .iconbtn,
    .workspace-shell .button-row .btn {
        flex: 0 1 auto;
        width: auto;
    }
    .workspace-shell .ws-side-tabs,
    .workspace-shell .ws-notification-lane-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .workspace-shell .ws-side-tab,
    .workspace-shell .ws-notification-lane-tab {
        width: 100%;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
    }
    .workspace-shell .ws-comment-composer {
        border-radius: 16px;
    }
    .workspace-shell .comment-meta-row,
    .workspace-shell .comment-actions-row {
        gap: 8px;
    }
    .workspace-shell .ws-left-project-hub,
    .workspace-shell .ws-left-create-project {
        --control-size: 36px;
    }
    .workspace-shell .ws-object-card,
    .workspace-shell .ws-workbench-group,
    .workspace-shell .ws-workbench-item,
    .workspace-shell .ws-side-card,
    .workspace-shell .ws-activity-hero-card,
    .workspace-shell .ws-comments-card,
    .workspace-shell .ws-evidence-card,
    .workspace-shell .evidence-card,
    .workspace-shell .evidence-file-card,
    .workspace-shell .comment-reply-card {
        border-radius: 16px;
    }
    .project-hub-active-strip,
    .project-hub-card {
        border-radius: 18px;
    }
}

@media (max-width: 430px) {
    .workspace-shell .ws-side-tabs,
    .workspace-shell .ws-notification-lane-tabs {
        grid-template-columns: 1fr;
    }
    .workspace-shell .ws-global-actions {
        gap: 6px;
    }
    .workspace-shell .ws-global-icon,
    .workspace-shell .iconbtn.ws-global-icon {
        width: 38px;
        min-width: 38px;
        height: 38px;
        border-radius: 13px;
    }
    .workspace-shell .ws-main-content,
    .workspace-shell .ws-right-body {
        padding: 10px;
    }
    .workspace-shell .ws-side-card,
    .workspace-shell .ws-activity-hero-card,
    .workspace-shell .ws-comments-card,
    .workspace-shell .ws-evidence-card {
        padding: 14px;
    }
    .workspace-shell .ws-project-card-head > .status-pill,
    .workspace-shell .ws-project-card-pills .status-pill,
    .workspace-shell .ws-active-filter-row .status-pill,
    .workspace-shell .item-meta .status-pill,
    .workspace-shell .ws-workbench-item-pills .status-pill {
        max-width: 132px;
    }
}

/* Track Pill/Card Diet — Pass 2: quiet form context lines.
   Iframe/create/edit pages must not open with stacked context pills.
   Context is metadata, not a decorative pill layer. */
.workspace-embed-shell .workspace-context-line,
.workspace-shell .workspace-context-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin-top: 9px;
    max-width: 100%;
    color: rgba(194, 207, 232, .82);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.workspace-embed-shell .workspace-context-item,
.workspace-shell .workspace-context-item {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-embed-shell .workspace-context-item strong,
.workspace-shell .workspace-context-item strong {
    color: rgba(239, 245, 255, .94);
    font-weight: 850;
}

.workspace-embed-shell .workspace-context-separator,
.workspace-shell .workspace-context-separator {
    color: rgba(148, 163, 184, .62);
    font-weight: 900;
    flex: 0 0 auto;
}

/* Compatibility guard: any old context-pill markup left behind becomes quiet metadata,
   not a visible pill/card stack. */
.workspace-embed-shell .workspace-context-pills,
.workspace-shell .workspace-context-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 10px;
    margin-top: 9px;
    max-width: 100%;
}

.workspace-embed-shell .workspace-context-pill,
.workspace-shell .workspace-context-pill {
    display: inline;
    min-height: 0;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(194, 207, 232, .82);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-embed-shell .workspace-context-pill strong,
.workspace-shell .workspace-context-pill strong {
    display: inline;
    margin-right: 4px;
    color: rgba(239, 245, 255, .94);
    font-weight: 850;
}

/* Reduce form-page slab feeling without changing workflow structure. */
.workspace-embed-shell > .card,
.workspace-embed-shell .two-col-grid > .card {
    box-shadow: none;
}

.workspace-embed-shell .section-head .small,
.workspace-embed-shell .meta-row,
.workspace-embed-shell .empty-inline {
    max-width: 100%;
}

@media (max-width: 680px) {
    .workspace-embed-shell .workspace-context-line,
    .workspace-shell .workspace-context-line,
    .workspace-embed-shell .workspace-context-pills,
    .workspace-shell .workspace-context-pills {
        gap: 4px 7px;
        font-size: 11.2px;
    }

    .workspace-embed-shell .workspace-context-item,
    .workspace-shell .workspace-context-item,
    .workspace-embed-shell .workspace-context-pill,
    .workspace-shell .workspace-context-pill {
        max-width: 100%;
    }

    .workspace-embed-shell .workspace-context-separator,
    .workspace-shell .workspace-context-separator {
        display: none;
    }

    .workspace-embed-shell .workspace-context-line,
    .workspace-shell .workspace-context-line {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }
}


/* Track Pass 3 — main-surface pill/card diet.
   Rule: statuses may stay as pills; counts/roles/codes become quiet metadata. */
.workspace-shell .ws-inline-metric,
.workspace-shell .ws-quiet-meta,
.workspace-shell .ws-quiet-token,
.workspace-shell .ws-project-card-meta span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    color: rgba(194, 207, 232, .78);
    font-size: 12px;
    font-weight: 680;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-shell .ws-selected-meta-quiet,
.workspace-shell .ws-project-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    min-width: 0;
    max-width: 100%;
}

.workspace-shell .ws-selected-meta-quiet .ws-inline-metric + .ws-inline-metric::before,
.workspace-shell .ws-project-card-meta span + span::before {
    content: "·";
    margin-right: 10px;
    color: rgba(148, 163, 184, .58);
    font-weight: 900;
}

.workspace-shell .ws-quiet-token {
    color: rgba(239, 245, 255, .86);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px;
    letter-spacing: .02em;
}

.workspace-shell .meta-cluster .ws-quiet-meta {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.workspace-shell .ws-project-card-pills {
    display: none;
}

.workspace-shell .ws-project-card-meta {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, .09);
}

/* Flatten the dashboard/selection metric cards so they read as stats, not nested retail cards. */
.workspace-shell .ws-summary-grid {
    gap: 8px;
}

.workspace-shell .ws-summary-card {
    min-height: 0;
    padding: 10px 12px;
    border-color: rgba(148, 163, 184, .10);
    border-radius: 14px;
    background: rgba(8, 15, 30, .34);
    box-shadow: none;
}

.workspace-shell .ws-summary-label {
    font-size: 10.5px;
    letter-spacing: .12em;
}

.workspace-shell .ws-summary-value {
    font-size: clamp(18px, 2.1vw, 25px);
    line-height: 1.05;
}

/* Work-surface cards should hold objects, not look like multiple cards inside cards. */
.workspace-shell .ws-object-card {
    border-color: rgba(148, 163, 184, .10);
    background: linear-gradient(180deg, rgba(15, 23, 42, .54), rgba(8, 13, 27, .38));
    box-shadow: none;
}

.workspace-shell .ws-object-head .meta-cluster {
    gap: 5px 10px;
}

.workspace-shell .ws-object-head .meta-cluster .status-pill + .ws-quiet-meta,
.workspace-shell .ws-object-head .meta-cluster .ws-quiet-meta + .ws-quiet-meta {
    margin-left: 2px;
}

/* Mobile is primary: metadata wraps as lines, not bulky chips. */
@media (max-width: 720px) {
    .workspace-shell .ws-selected-meta,
    .workspace-shell .ws-selected-meta-quiet,
    .workspace-shell .ws-project-card-meta,
    .workspace-shell .ws-object-head .meta-cluster {
        gap: 4px 8px;
    }

    .workspace-shell .ws-selected-meta-quiet .ws-inline-metric + .ws-inline-metric::before,
    .workspace-shell .ws-project-card-meta span + span::before {
        margin-right: 7px;
    }

    .workspace-shell .ws-project-card-meta,
    .workspace-shell .ws-object-head .meta-cluster {
        align-items: flex-start;
    }

    .workspace-shell .ws-summary-card {
        padding: 9px 10px;
        border-radius: 12px;
    }

    .workspace-shell .ws-quiet-meta,
    .workspace-shell .ws-inline-metric,
    .workspace-shell .ws-quiet-token,
    .workspace-shell .ws-project-card-meta span {
        font-size: 11.4px;
        line-height: 1.35;
    }
}

@media (max-width: 520px) {
    .workspace-shell .ws-selected-meta-quiet,
    .workspace-shell .ws-project-card-meta {
        display: block;
    }

    .workspace-shell .ws-selected-meta-quiet .ws-inline-metric,
    .workspace-shell .ws-project-card-meta span {
        margin-right: 10px;
    }

    .workspace-shell .ws-selected-meta-quiet .ws-inline-metric + .ws-inline-metric::before,
    .workspace-shell .ws-project-card-meta span + span::before {
        margin-right: 8px;
    }

    .workspace-shell .ws-object-head .meta-cluster {
        width: 100%;
    }
}

/* Track Pill/Card Diet — Pass 4: Activity / Discussion / Evidence cleanup.
   Comments and evidence must read like an operational trail, not a wall of pills/cards. */
.workspace-shell .ws-activity-hero-card {
    padding: 14px 16px;
    border-color: rgba(129, 222, 255, .15);
    background: linear-gradient(180deg, rgba(10, 20, 43, .56), rgba(7, 13, 28, .38));
    box-shadow: none;
}

.workspace-shell .ws-activity-hero-card .section-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 12px !important;
}

.workspace-shell .ws-activity-countline,
.workspace-shell .ws-section-count,
.workspace-shell .ws-activity-counter-link {
    color: rgba(194, 207, 232, .78);
    font-size: 12px;
    font-weight: 680;
    line-height: 1.4;
    white-space: nowrap;
}

.workspace-shell .ws-activity-countline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-width: 0;
    max-width: 100%;
}

.workspace-shell .ws-activity-countline span + span::before {
    content: "·";
    margin-right: 10px;
    color: rgba(148, 163, 184, .58);
    font-weight: 900;
}

.workspace-shell .ws-activity-countline strong,
.workspace-shell .ws-section-count strong,
.workspace-shell .ws-activity-counter-link strong {
    color: rgba(239, 245, 255, .94);
    font-weight: 900;
}

.workspace-shell .ws-activity-counter-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
}

.workspace-shell .ws-activity-counter-link:hover {
    color: rgba(129, 222, 255, .96);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.workspace-shell .ws-activity-counter-link + .ws-activity-counter-link::before {
    content: "·";
    margin-right: 8px;
    color: rgba(148, 163, 184, .58);
    font-weight: 900;
}

.workspace-shell .ws-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: max-content;
}

.workspace-shell .ws-comments-card,
.workspace-shell .ws-evidence-card {
    padding: 14px 16px;
    border-color: rgba(148, 163, 184, .10);
    background: rgba(7, 13, 28, .42);
    box-shadow: none;
}

.workspace-shell .ws-comments-card + .ws-evidence-card {
    margin-top: 10px;
}

.workspace-shell .ws-activity-section-head {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, .09);
}

.workspace-shell .ws-comment-composer {
    margin-top: 12px;
    padding: 12px;
    border-color: rgba(129, 222, 255, .14);
    border-radius: 15px;
    background: rgba(4, 12, 28, .34);
    box-shadow: none;
}

.workspace-shell .ws-visible-comment-thread {
    margin-top: 12px;
    gap: 8px;
}

.workspace-shell .comment-node,
.workspace-shell .comment-reply-card {
    padding: 11px 12px;
    border-radius: 13px;
    border-color: rgba(148, 163, 184, .10);
    background: rgba(255, 255, 255, .018);
    box-shadow: none;
}

.workspace-shell .comment-node.has-replies {
    border-color: rgba(129, 222, 255, .14);
}

.workspace-shell .comment-body {
    font-size: 13.5px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.workspace-shell .comment-meta-row {
    gap: 10px;
    align-items: flex-start;
}

.workspace-shell .comment-author-block strong {
    color: rgba(239, 245, 255, .94);
}

.workspace-shell .evidence-head-tools {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-width: 0;
}

.workspace-shell .evidence-card {
    padding: 12px;
    border-radius: 13px;
    border-color: rgba(148, 163, 184, .10);
    background: rgba(255, 255, 255, .018);
    box-shadow: none;
}

.workspace-shell .evidence-type-label {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(239, 245, 255, .88);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .01em;
    white-space: nowrap;
}

.workspace-shell .evidence-author-line {
    margin-top: 4px !important;
}

.workspace-shell .evidence-file-card {
    margin-top: 8px;
    border-color: rgba(148, 163, 184, .10);
    background: rgba(6, 12, 26, .34);
    box-shadow: none;
}

.workspace-shell .evidence-description {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(232, 239, 255, .88);
    overflow-wrap: anywhere;
}

.workspace-shell .evidence-link-wrap a,
.workspace-shell .evidence-file-name,
.workspace-shell .evidence-meta-line {
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .workspace-shell .ws-activity-hero-card,
    .workspace-shell .ws-comments-card,
    .workspace-shell .ws-evidence-card {
        padding: 13px;
        border-radius: 15px;
    }

    .workspace-shell .ws-activity-hero-card .section-head {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .workspace-shell .ws-activity-countline {
        justify-content: flex-start;
        font-size: 11.5px;
    }

    .workspace-shell .ws-section-count,
    .workspace-shell .ws-activity-counter-link {
        font-size: 11.5px;
    }

    .workspace-shell .ws-activity-section-head {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .workspace-shell .evidence-head-tools {
        justify-content: flex-start;
        width: 100%;
    }

    .workspace-shell .comment-meta-row {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .workspace-shell .comment-body {
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    .workspace-shell .ws-activity-countline,
    .workspace-shell .meta-cluster.compact-actions {
        gap: 3px 7px;
    }

    .workspace-shell .ws-activity-counter-link + .ws-activity-counter-link::before,
    .workspace-shell .ws-activity-countline span + span::before {
        margin-right: 7px;
    }

    .workspace-shell .comment-meta-row {
        grid-template-columns: 1fr;
    }

    .workspace-shell .comment-inline-delete,
    .workspace-shell .evidence-card .inline-form {
        justify-self: start;
    }
}

/* Track right-pane bevel cleanup — remove sharp inner panel lines while keeping the premium bevel. */
.workspace-shell .ws-right-pane .ws-side-panel {
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
}

.workspace-shell .ws-right-pane .ws-side-card,
.workspace-shell .ws-right-pane .ws-activity-hero-card,
.workspace-shell .ws-right-pane .ws-comments-card,
.workspace-shell .ws-right-pane .ws-evidence-card,
.workspace-shell .ws-right-pane .ws-side-health-card,
.workspace-shell .ws-right-pane .ws-side-focus-card,
.workspace-shell .ws-right-pane .track-side-time-card,
.workspace-shell .ws-right-pane .ws-analytics-card {
    border: 0 !important;
    outline: 0 !important;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(22, 35, 72, .72), rgba(12, 24, 52, .66));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .075),
        inset 0 -1px 0 rgba(0, 0, 0, .22) !important;
}

.workspace-shell .ws-right-pane .ws-side-card::before,
.workspace-shell .ws-right-pane .ws-side-card::after,
.workspace-shell .ws-right-pane .ws-side-panel::before,
.workspace-shell .ws-right-pane .ws-side-panel::after {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.workspace-shell .ws-right-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(157, 183, 241, .42) transparent;
}

.workspace-shell .ws-right-body::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.workspace-shell .ws-right-body::-webkit-scrollbar-track {
    background: transparent;
    border: 0;
    border-radius: 999px;
    margin: 10px 0;
}

.workspace-shell .ws-right-body::-webkit-scrollbar-thumb {
    background: rgba(157, 183, 241, .34);
    border: 2px solid rgba(7, 16, 34, .72);
    border-radius: 999px;
}

.workspace-shell .ws-right-body::-webkit-scrollbar-thumb:hover {
    background: rgba(157, 183, 241, .52);
}

@media (max-width: 760px) {
    .workspace-shell .ws-right-pane .ws-side-card,
    .workspace-shell .ws-right-pane .ws-activity-hero-card,
    .workspace-shell .ws-right-pane .ws-comments-card,
    .workspace-shell .ws-right-pane .ws-evidence-card,
    .workspace-shell .ws-right-pane .ws-side-health-card,
    .workspace-shell .ws-right-pane .ws-side-focus-card,
    .workspace-shell .ws-right-pane .track-side-time-card,
    .workspace-shell .ws-right-pane .ws-analytics-card {
        border-radius: 18px;
    }
}

/* Track correction — search scope and right-pane bevel cleanup.
   The left search scope is a filter control, not the page/dashboard state.
   Right-pane tab cards must keep the bevel surface without a sharp inner box line. */
.workspace-shell .ws-scope-toggle button.scope-pill {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    cursor: pointer;
}

.workspace-shell .ws-right-pane .ws-side-panel,
.workspace-shell .ws-right-pane .ws-side-panel.is-active {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.workspace-shell .ws-right-pane .card,
.workspace-shell .ws-right-pane .ws-side-card,
.workspace-shell .ws-right-pane .ws-activity-hero-card,
.workspace-shell .ws-right-pane .ws-comments-card,
.workspace-shell .ws-right-pane .ws-evidence-card,
.workspace-shell .ws-right-pane .ws-side-health-card,
.workspace-shell .ws-right-pane .ws-side-focus-card,
.workspace-shell .ws-right-pane .track-side-time-card,
.workspace-shell .ws-right-pane .ws-analytics-card {
    border: 0 !important;
    outline: 0 !important;
    background:
        radial-gradient(circle at 22% 0%, rgba(132, 173, 255, .055), transparent 34%),
        linear-gradient(180deg, rgba(22, 35, 72, .74), rgba(12, 24, 52, .66)) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .16) !important;
}

.workspace-shell .ws-right-pane .card::before,
.workspace-shell .ws-right-pane .card::after,
.workspace-shell .ws-right-pane .ws-side-card::before,
.workspace-shell .ws-right-pane .ws-side-card::after,
.workspace-shell .ws-right-pane .ws-side-panel::before,
.workspace-shell .ws-right-pane .ws-side-panel::after,
.workspace-shell .ws-right-pane .ws-activity-hero-card::before,
.workspace-shell .ws-right-pane .ws-activity-hero-card::after,
.workspace-shell .ws-right-pane .ws-comments-card::before,
.workspace-shell .ws-right-pane .ws-comments-card::after,
.workspace-shell .ws-right-pane .ws-evidence-card::before,
.workspace-shell .ws-right-pane .ws-evidence-card::after,
.workspace-shell .ws-right-pane .ws-analytics-card::before,
.workspace-shell .ws-right-pane .ws-analytics-card::after {
    content: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.workspace-shell .ws-right-pane .empty-inline {
    border: 0 !important;
    outline: 0 !important;
    background: rgba(255, 255, 255, .035) !important;
    box-shadow: none !important;
}

.workspace-shell .ws-right-pane,
.workspace-shell .ws-right-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(132, 173, 255, .28) transparent;
}

.workspace-shell .ws-right-pane::-webkit-scrollbar,
.workspace-shell .ws-right-body::-webkit-scrollbar,
.workspace-shell .ws-right-pane *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.workspace-shell .ws-right-pane::-webkit-scrollbar-track,
.workspace-shell .ws-right-body::-webkit-scrollbar-track,
.workspace-shell .ws-right-pane *::-webkit-scrollbar-track {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.workspace-shell .ws-right-pane::-webkit-scrollbar-thumb,
.workspace-shell .ws-right-body::-webkit-scrollbar-thumb,
.workspace-shell .ws-right-pane *::-webkit-scrollbar-thumb {
    background: rgba(132, 173, 255, .28) !important;
    border: 2px solid rgba(7, 16, 34, .82) !important;
    border-radius: 999px !important;
}

/* Right pane live surface polish: visible bevel border + calm motion. */
.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-side-card,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-activity-hero-card,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-comments-card,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-evidence-card,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-side-health-card,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-side-focus-card,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .track-side-time-card,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-analytics-card {
    border: 1px solid rgba(150, 180, 255, .34) !important;
    outline: 0 !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 14% 0%, rgba(145, 183, 255, .14), transparent 35%),
        linear-gradient(180deg, rgba(25, 40, 82, .82), rgba(12, 24, 52, .72)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        inset 0 -1px 0 rgba(0, 0, 0, .24),
        0 0 0 1px rgba(70, 106, 190, .12),
        0 18px 36px rgba(0, 0, 0, .20),
        0 0 26px rgba(92, 138, 230, .10) !important;
    transition:
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease,
        background .22s ease !important;
    animation: trackRightPaneCardBreath 5.8s ease-in-out infinite;
}

.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-side-card:hover,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-activity-hero-card:hover,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-comments-card:hover,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-evidence-card:hover,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-side-health-card:hover,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-side-focus-card:hover,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .track-side-time-card:hover,
.workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-analytics-card:hover {
    transform: translateY(-1px);
    border-color: rgba(175, 202, 255, .52) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        inset 0 -1px 0 rgba(0, 0, 0, .24),
        0 0 0 1px rgba(132, 173, 255, .20),
        0 20px 42px rgba(0, 0, 0, .24),
        0 0 34px rgba(132, 173, 255, .18) !important;
}

.workspace-shell .ws-right-pane .ws-side-tab,
.workspace-shell .ws-right-pane .ws-notification-lane-tab {
    position: relative;
    border: 1px solid rgba(139, 171, 238, .22) !important;
    background:
        linear-gradient(180deg, rgba(14, 29, 60, .92), rgba(7, 18, 40, .86)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 8px 18px rgba(0, 0, 0, .14) !important;
    color: rgba(218, 229, 255, .76);
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    transition:
        transform .18s ease,
        border-color .18s ease,
        color .18s ease,
        box-shadow .18s ease,
        background .18s ease !important;
}

.workspace-shell .ws-right-pane .ws-side-tab:hover,
.workspace-shell .ws-right-pane .ws-notification-lane-tab:hover {
    transform: translateY(-1px);
    color: rgba(245, 249, 255, .96);
    border-color: rgba(160, 193, 255, .48) !important;
    background:
        radial-gradient(circle at 30% 0%, rgba(132, 173, 255, .24), transparent 42%),
        linear-gradient(180deg, rgba(24, 42, 85, .94), rgba(10, 23, 50, .88)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        0 12px 22px rgba(0, 0, 0, .20),
        0 0 20px rgba(132, 173, 255, .14) !important;
}

.workspace-shell .ws-right-pane .ws-side-tab.is-active,
.workspace-shell .ws-right-pane .ws-notification-lane-tab.is-active {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, .86) !important;
    background:
        radial-gradient(circle at 26% 0%, rgba(158, 195, 255, .28), transparent 44%),
        linear-gradient(180deg, rgba(42, 66, 125, .96), rgba(18, 35, 77, .94)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .22),
        0 0 0 1px rgba(132, 173, 255, .20),
        0 12px 26px rgba(0, 0, 0, .24),
        0 0 24px rgba(132, 173, 255, .18) !important;
    animation: trackRightPanePillPulse 3.8s ease-in-out infinite;
}

.workspace-shell .ws-right-pane .ws-user-chip,
.workspace-shell .ws-right-pane .status-pill,
.workspace-shell .ws-right-pane .ws-time-chip,
.workspace-shell .ws-right-pane .ws-section-count,
.workspace-shell .ws-right-pane .ws-activity-counter-link,
.workspace-shell .ws-right-pane .ws-side-tab-count,
.workspace-shell .ws-right-pane .btn,
.workspace-shell .ws-right-pane .pill,
.workspace-shell .ws-right-pane .chip {
    border-color: rgba(144, 176, 244, .28) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 6px 16px rgba(0, 0, 0, .10) !important;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease !important;
}

.workspace-shell .ws-right-pane .ws-user-chip:hover,
.workspace-shell .ws-right-pane .status-pill:hover,
.workspace-shell .ws-right-pane .ws-time-chip:hover,
.workspace-shell .ws-right-pane .ws-section-count:hover,
.workspace-shell .ws-right-pane .ws-activity-counter-link:hover,
.workspace-shell .ws-right-pane .btn:hover,
.workspace-shell .ws-right-pane .pill:hover,
.workspace-shell .ws-right-pane .chip:hover {
    transform: translateY(-1px);
    border-color: rgba(175, 202, 255, .50) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        0 10px 22px rgba(0, 0, 0, .16),
        0 0 18px rgba(132, 173, 255, .14) !important;
}

@keyframes trackRightPaneCardBreath {
    0%, 100% {
        border-color: rgba(150, 180, 255, .32);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .13),
            inset 0 -1px 0 rgba(0, 0, 0, .24),
            0 0 0 1px rgba(70, 106, 190, .11),
            0 18px 36px rgba(0, 0, 0, .20),
            0 0 22px rgba(92, 138, 230, .09);
    }
    50% {
        border-color: rgba(174, 202, 255, .50);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .18),
            inset 0 -1px 0 rgba(0, 0, 0, .24),
            0 0 0 1px rgba(132, 173, 255, .18),
            0 20px 40px rgba(0, 0, 0, .22),
            0 0 34px rgba(132, 173, 255, .18);
    }
}

@keyframes trackRightPanePillPulse {
    0%, 100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .20),
            0 0 0 1px rgba(132, 173, 255, .18),
            0 12px 26px rgba(0, 0, 0, .22),
            0 0 18px rgba(132, 173, 255, .12);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .26),
            0 0 0 1px rgba(180, 207, 255, .28),
            0 14px 30px rgba(0, 0, 0, .24),
            0 0 30px rgba(132, 173, 255, .24);
    }
}

@media (max-width: 760px) {
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-side-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-activity-hero-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-comments-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-evidence-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-side-health-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-side-focus-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .track-side-time-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-analytics-card {
        border-radius: 18px !important;
    }

    .workspace-shell .ws-right-pane .ws-side-tab,
    .workspace-shell .ws-right-pane .ws-notification-lane-tab {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-side-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-activity-hero-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-comments-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-evidence-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-side-health-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-side-focus-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .track-side-time-card,
    .workspace-shell .ws-right-pane .ws-side-panel.is-active .ws-analytics-card,
    .workspace-shell .ws-right-pane .ws-side-tab.is-active,
    .workspace-shell .ws-right-pane .ws-notification-lane-tab.is-active {
        animation: none !important;
    }

    .workspace-shell .ws-right-pane .ws-side-tab,
    .workspace-shell .ws-right-pane .ws-notification-lane-tab,
    .workspace-shell .ws-right-pane .ws-user-chip,
    .workspace-shell .ws-right-pane .status-pill,
    .workspace-shell .ws-right-pane .ws-time-chip,
    .workspace-shell .ws-right-pane .btn {
        transition: none !important;
    }
}

/* Track hotfix — checklist row icon geometry lock.
   The comment action contains an SVG + optional count badge; earlier global
   pill/card control rules could make that link behave like a flexible chip.
   These rules keep all checklist-row icon actions as true square icon buttons. */
.workspace-shell .ws-workbench-item-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    overflow: visible;
}

.workspace-shell .ws-workbench-item-actions .ws-item-icon-btn,
.workspace-shell .ws-workbench-item-actions .ws-item-state-menu > summary.ws-item-icon-btn,
.workspace-shell .ws-workbench-item-actions .track-timer-action-btn,
.workspace-shell .ws-workbench-item-actions .ws-comment-jump {
    position: relative;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    aspect-ratio: 1 / 1;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    overflow: visible !important;
    white-space: nowrap !important;
    text-align: center !important;
}

.workspace-shell .ws-workbench-item-actions .ws-comment-jump .icon-glyph,
.workspace-shell .ws-workbench-item-actions .ws-comment-jump svg {
    width: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
    height: 17px !important;
    min-height: 17px !important;
    max-height: 17px !important;
    flex: 0 0 17px !important;
    display: block !important;
    transform: none !important;
}

.workspace-shell .ws-workbench-item-actions .ws-item-icon-count {
    position: absolute !important;
    top: -7px !important;
    right: -7px !important;
    width: auto !important;
    min-width: 17px !important;
    max-width: none !important;
    height: 17px !important;
    min-height: 17px !important;
    padding: 0 5px !important;
    flex: 0 0 auto !important;
    line-height: 17px !important;
    z-index: 2;
}

.workspace-shell .ws-workbench-item-actions .ws-item-icon-btn:hover,
.workspace-shell .ws-workbench-item-actions .ws-item-icon-btn:focus-visible {
    transform: translateY(-1px);
}

@media (max-width: 1120px) {
    .workspace-shell .ws-workbench-item-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .workspace-shell .ws-workbench-item-actions .ws-item-icon-btn,
    .workspace-shell .ws-workbench-item-actions .ws-item-state-menu > summary.ws-item-icon-btn,
    .workspace-shell .ws-workbench-item-actions .track-timer-action-btn,
    .workspace-shell .ws-workbench-item-actions .ws-comment-jump {
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        flex-basis: 30px !important;
        border-radius: 11px !important;
    }

    .workspace-shell .ws-workbench-item-actions .ws-comment-jump .icon-glyph,
    .workspace-shell .ws-workbench-item-actions .ws-comment-jump svg {
        width: 16px !important;
        min-width: 16px !important;
        max-width: 16px !important;
        height: 16px !important;
        min-height: 16px !important;
        max-height: 16px !important;
        flex-basis: 16px !important;
    }
}

.workspace-shell .ws-comment-composer-wrap {
    position: relative;
    isolation: isolate;
    margin-top: 12px;
}

.workspace-shell .ws-comment-composer-wrap .ws-comment-composer {
    margin-top: 0;
}

.workspace-shell .ws-comment-compose-shell {
    position: relative;
    min-width: 0;
}

.workspace-shell .ws-comment-compose-shell textarea {
    min-height: 112px;
    padding-bottom: 50px;
}

.workspace-shell .ws-mention-menu[hidden],
.workspace-shell .ws-comment-tool-pop[hidden] {
    display: none !important;
}

.workspace-shell .ws-comment-compose-shell .ws-mention-menu,
.workspace-shell .comment-reply-composer .ws-mention-menu,
.workspace-shell form[data-comment-mention-form] .ws-mention-menu {
    position: fixed;
    left: 12px;
    top: 12px;
    right: auto;
    z-index: 2400;
    margin-top: 0;
    display: grid;
    max-height: min(270px, calc(100vh - 24px));
    overflow: auto;
    overscroll-behavior: contain;
}

.workspace-shell .ws-comment-tooldock {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    width: auto;
    max-width: calc(100% - 20px);
    padding: 5px;
    border: 1px solid rgba(132, 176, 255, .20);
    border-radius: 16px;
    background: rgba(7, 16, 38, .88);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(12px);
}

.workspace-shell .ws-comment-tool-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 34px;
    min-height: 34px;
    max-height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(148, 184, 255, .22);
    border-radius: 12px;
    color: rgba(232, 240, 255, .92);
    background: linear-gradient(180deg, rgba(34, 57, 113, .86), rgba(12, 26, 60, .82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.workspace-shell .ws-comment-tool-btn .icon-glyph,
.workspace-shell .ws-comment-tool-btn svg {
    width: 17px;
    min-width: 17px;
    max-width: 17px;
    height: 17px;
    min-height: 17px;
    max-height: 17px;
    flex: 0 0 17px;
    display: block;
}

.workspace-shell .ws-comment-tool-btn:hover,
.workspace-shell .ws-comment-tool-btn:focus-visible,
.workspace-shell .ws-comment-tool-btn.is-active {
    transform: translateY(-1px);
    border-color: rgba(158, 198, 255, .52);
    background: linear-gradient(180deg, rgba(52, 83, 156, .96), rgba(20, 43, 94, .92));
    box-shadow: 0 10px 24px rgba(44, 98, 220, .22), inset 0 1px 0 rgba(255, 255, 255, .13);
    outline: none;
}

.workspace-shell .ws-comment-composer-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.workspace-shell .ws-comment-composer-foot .comment-mention-hint {
    margin-top: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.workspace-shell .ws-comment-composer-foot .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.workspace-shell .ws-comment-tool-pop {
    position: absolute;
    right: 12px;
    top: 76px;
    z-index: 90;
    width: min(320px, calc(100vw - 52px));
    padding: 10px;
    border: 1px solid rgba(132, 176, 255, .28);
    border-radius: 18px;
    background: rgba(7, 15, 35, .98);
    box-shadow: 0 22px 54px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .06);
    backdrop-filter: blur(14px);
}

.workspace-shell .ws-comment-tool-pop .inline-create-form {
    padding: 10px 0 0;
}

.workspace-shell .ws-comment-tool-pop input[type="url"],
.workspace-shell .ws-comment-tool-pop input[type="file"] {
    width: 100%;
    min-width: 0;
}

@media (max-width: 640px) {
    .workspace-shell .ws-comment-compose-shell textarea {
        min-height: 122px;
        padding-bottom: 54px;
    }

    .workspace-shell .ws-comment-tooldock {
        left: 10px;
        right: auto;
        justify-content: flex-start;
    }

    .workspace-shell .ws-comment-composer-foot {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .workspace-shell .ws-comment-composer-foot .btn {
        width: fit-content;
        max-width: 100%;
    }

    .workspace-shell .ws-comment-tool-pop {
        left: 0;
        right: 0;
        top: 82px;
        width: auto;
    }
}


/* Track Pass 2 — true floating @mention overlay */
.workspace-shell form[data-comment-mention-form] {
    position: relative;
}

.workspace-shell .ws-mention-menu[data-open="true"] {
    animation: wsMentionOverlayIn .16s ease both;
}

@keyframes wsMentionOverlayIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .workspace-shell .ws-mention-menu {
        width: calc(100vw - 24px) !important;
        max-height: min(260px, calc(100vh - 24px));
    }

    .workspace-shell .ws-mention-menu-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .workspace-shell .ws-mention-menu-head small {
        white-space: normal;
    }

    .workspace-shell .ws-mention-item {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .workspace-shell .ws-mention-role {
        display: none;
    }
}

/* Track Pass 3 — comment attachment drafts saved with comment */
.workspace-shell .ws-comment-file-native {
    display: none !important;
}

.workspace-shell .ws-comment-attachment-drafts {
    display: grid;
    gap: 7px;
    margin-top: 9px;
}

.workspace-shell .ws-comment-attachment-drafts[hidden],
.workspace-shell .ws-comment-attachment-row[hidden] {
    display: none !important;
}

.workspace-shell .ws-comment-attachment-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid rgba(126, 174, 255, .20);
    border-radius: 14px;
    background:
        radial-gradient(circle at 0% 0%, rgba(132, 173, 255, .12), transparent 36%),
        rgba(9, 19, 44, .62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.workspace-shell .ws-comment-attachment-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(143, 184, 255, .20);
    border-radius: 11px;
    color: rgba(187, 212, 255, .95);
    background: rgba(15, 32, 72, .72);
}

.workspace-shell .ws-comment-attachment-icon svg,
.workspace-shell .ws-comment-attachment-icon .icon-glyph {
    width: 15px;
    height: 15px;
    display: block;
}

.workspace-shell .ws-comment-attachment-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.workspace-shell .ws-comment-attachment-copy strong,
.workspace-shell .ws-comment-attachment-copy small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-shell .ws-comment-attachment-copy strong {
    color: rgba(239, 245, 255, .94);
    font-size: 12.5px;
    font-weight: 850;
}

.workspace-shell .ws-comment-attachment-copy small {
    color: rgba(190, 203, 232, .72);
    font-size: 11.2px;
    line-height: 1.25;
}

.workspace-shell .ws-comment-attachment-remove {
    appearance: none;
    -webkit-appearance: none;
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, .16) !important;
    border-radius: 10px !important;
    background: rgba(3, 8, 20, .50) !important;
    color: rgba(226, 235, 255, .82) !important;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 28px !important;
    box-shadow: none !important;
}

.workspace-shell .ws-comment-attachment-remove:hover,
.workspace-shell .ws-comment-attachment-remove:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(248, 113, 113, .46) !important;
    color: rgba(255, 226, 226, .98) !important;
    outline: none;
}

.workspace-shell .ws-comment-link-fields {
    display: grid;
    gap: 8px;
    margin-top: 9px;
}

.workspace-shell .ws-comment-link-fields input[type="url"],
.workspace-shell .ws-comment-link-fields input[type="text"] {
    width: 100%;
    min-width: 0;
    border-radius: 12px;
}

.workspace-shell .ws-comment-link-fields input.is-invalid {
    border-color: rgba(248, 113, 113, .72) !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .12) !important;
}

.workspace-shell .ws-comment-tool-pop .button-row .btn {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}

@media (max-width: 430px) {
    .workspace-shell .ws-comment-attachment-row {
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        padding: 7px 8px;
    }

    .workspace-shell .ws-comment-attachment-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
}

/* Track Pass 4 — evidence/comment attachment separation */
.workspace-shell .ws-comment-proof-list {
    display: grid;
    gap: 7px;
    margin: 10px 0 2px;
    padding: 9px;
    border: 1px solid rgba(132, 156, 222, .16);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(17, 34, 75, .42), rgba(5, 12, 30, .32));
}

.workspace-shell .ws-comment-proof-heading {
    color: rgba(190, 203, 232, .76);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1.15;
    text-transform: uppercase;
}

.workspace-shell .ws-comment-proof-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    background: rgba(3, 8, 20, .36);
}

.workspace-shell .ws-comment-proof-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(136, 169, 255, .22);
    border-radius: 11px;
    background: rgba(96, 165, 250, .10);
    color: rgba(190, 216, 255, .96);
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
}

.workspace-shell .ws-comment-proof-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.workspace-shell .ws-comment-proof-main a,
.workspace-shell .ws-comment-proof-main strong {
    min-width: 0;
    overflow: hidden;
    color: rgba(226, 235, 255, .95);
    font-size: 12.5px;
    font-weight: 850;
    line-height: 1.25;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-shell .ws-comment-proof-main a:hover,
.workspace-shell .ws-comment-proof-main a:focus-visible {
    color: rgba(147, 197, 253, .98);
    text-decoration: underline;
    outline: none;
}

.workspace-shell .ws-comment-proof-main small {
    min-width: 0;
    overflow: hidden;
    color: rgba(190, 203, 232, .68);
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-shell .ws-comment-proof-remove {
    margin: 0;
    justify-self: end;
}

.workspace-shell .ws-comment-proof-remove-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 10px;
    background: rgba(3, 8, 20, .46);
    color: rgba(226, 235, 255, .76);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 28px;
}

.workspace-shell .ws-comment-proof-remove-btn:hover,
.workspace-shell .ws-comment-proof-remove-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(248, 113, 113, .48);
    color: rgba(255, 226, 226, .98);
    outline: none;
}

.workspace-shell .ws-evidence-separation-note {
    margin: 10px 0 0;
    padding: 9px 10px;
    border: 1px solid rgba(96, 165, 250, .16);
    border-radius: 14px;
    background: rgba(96, 165, 250, .07);
    color: rgba(190, 203, 232, .80);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

@media (max-width: 430px) {
    .workspace-shell .ws-comment-proof-list {
        padding: 8px;
        border-radius: 14px;
    }

    .workspace-shell .ws-comment-proof-card {
        grid-template-columns: 28px minmax(0, 1fr) 26px;
        gap: 7px;
        padding: 7px;
    }

    .workspace-shell .ws-comment-proof-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .workspace-shell .ws-comment-proof-remove-btn {
        width: 26px;
        min-width: 26px;
        max-width: 26px;
        height: 26px;
        min-height: 26px;
        max-height: 26px;
        flex-basis: 26px;
    }
}

/* Track Pass 6 — true body overlays for comment link + @mentions */
.ws-comment-tool-pop[hidden],
.ws-mention-menu[hidden] {
    display: none !important;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop {
    position: fixed !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 12000 !important;
    display: grid;
    gap: 9px;
    width: min(340px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    padding: 12px !important;
    border: 1px solid rgba(146, 188, 255, .38) !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, rgba(10, 22, 52, .99), rgba(5, 12, 31, .99)) !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .62), 0 0 0 1px rgba(91, 133, 230, .14), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
    backdrop-filter: blur(18px);
    isolation: isolate;
    overflow: visible !important;
    transform-origin: top right;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop[data-open="true"] {
    animation: wsFloatingCommentToolIn .16s ease both;
}

@keyframes wsFloatingCommentToolIn {
    from {
        opacity: 0;
        transform: translateY(7px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ws-comment-tool-pop.is-floating-comment-tool-pop .evidence-add-title {
    margin: 0;
    color: rgba(235, 242, 255, .96);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop .ws-comment-link-fields {
    display: grid;
    gap: 8px;
    margin-top: 0;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop input[type="url"],
.ws-comment-tool-pop.is-floating-comment-tool-pop input[type="text"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(139, 179, 255, .30) !important;
    border-radius: 13px !important;
    color: rgba(235, 242, 255, .96) !important;
    background: rgba(7, 16, 39, .92) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 0 rgba(125, 171, 255, 0) !important;
    outline: none !important;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop input[type="url"]:focus,
.ws-comment-tool-pop.is-floating-comment-tool-pop input[type="text"]:focus {
    border-color: rgba(154, 198, 255, .62) !important;
    box-shadow: 0 0 0 3px rgba(111, 162, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .07) !important;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop input.is-invalid {
    border-color: rgba(248, 113, 113, .78) !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .14) !important;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop .button-row,
.ws-comment-tool-pop.is-floating-comment-tool-pop .compact-row {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px !important;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop .button-row .btn,
.ws-comment-tool-pop.is-floating-comment-tool-pop .compact-row .btn {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    border-radius: 13px !important;
}

.ws-mention-menu.is-floating-mention-menu {
    position: fixed !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 12100 !important;
    display: grid;
    gap: 8px;
    width: min(340px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(270px, calc(100vh - 24px));
    overflow: auto;
    overscroll-behavior: contain;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(138, 180, 255, 0.38);
    background: linear-gradient(180deg, rgba(9, 21, 49, .99), rgba(5, 12, 31, .99));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(91, 133, 230, .14), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
}

.ws-mention-menu.is-floating-mention-menu[data-open="true"] {
    animation: wsMentionOverlayIn .16s ease both;
}

@media (max-width: 430px) {
    .ws-comment-tool-pop.is-floating-comment-tool-pop,
    .ws-mention-menu.is-floating-mention-menu {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }

    .ws-comment-tool-pop.is-floating-comment-tool-pop .button-row,
    .ws-comment-tool-pop.is-floating-comment-tool-pop .compact-row {
        gap: 7px;
    }
}

/* Track Pass 6 — narrow right-pane copy protection */
.workspace-shell .ws-right-pane .ws-activity-hero-card .section-head {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}

.workspace-shell .ws-right-pane .ws-activity-hero-card .section-head > div,
.workspace-shell .ws-right-pane .ws-activity-section-head > div {
    min-width: 0;
}

.workspace-shell .ws-right-pane .ws-activity-hero-card .small,
.workspace-shell .ws-right-pane .ws-activity-section-head .small {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
}

.workspace-shell .ws-right-pane .ws-activity-countline {
    justify-content: flex-start;
    white-space: normal;
}

/* Track Pass 7 — comment overlay reliability + compact activity copy */
.workspace-shell .ws-right-pane .ws-activity-hero-card {
    padding: 14px 16px !important;
}

.workspace-shell .ws-right-pane .ws-activity-hero-card .section-head {
    align-items: flex-start !important;
}

.workspace-shell .ws-right-pane .ws-activity-hero-card .small,
.workspace-shell .ws-right-pane .ws-activity-section-head .small,
.workspace-shell .ws-comments-card .comment-mention-hint {
    line-height: 1.35 !important;
    hyphens: none !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop {
    box-sizing: border-box !important;
    contain: layout paint;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop *,
.ws-mention-menu.is-floating-mention-menu * {
    box-sizing: border-box;
}

body.ws-comment-overlay-open .workspace-shell .ws-right-pane,
body.ws-comment-overlay-open .workspace-shell .ws-side-panel {
    overflow: visible;
}

.ws-mention-menu.is-floating-mention-menu .ws-mention-empty {
    border: 1px dashed rgba(139, 179, 255, .28);
    border-radius: 14px;
    padding: 10px 12px;
    color: rgba(190, 204, 232, .88);
    background: rgba(8, 18, 42, .78);
}

.workspace-shell .ws-member-row[data-mention-source] {
    scroll-margin-top: 86px;
}

@media (max-width: 520px) {
    .workspace-shell .ws-right-pane .ws-activity-hero-card {
        padding: 12px !important;
        border-radius: 18px !important;
    }

    .workspace-shell .ws-right-pane .ws-activity-hero-card h3,
    .workspace-shell .ws-right-pane .ws-comments-card h3,
    .workspace-shell .ws-right-pane .ws-evidence-card h3 {
        font-size: 18px !important;
        line-height: 1.15 !important;
    }

    .workspace-shell .ws-right-pane .ws-activity-hero-card .small,
    .workspace-shell .ws-right-pane .ws-activity-section-head .small {
        font-size: 12px !important;
        line-height: 1.32 !important;
    }

    .workspace-shell .ws-right-pane .ws-activity-countline {
        gap: 6px !important;
    }

    .workspace-shell .ws-right-pane .ws-activity-counter-link,
    .workspace-shell .ws-right-pane .ws-activity-countline span {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
}

/* Track Pass 9 — minimal comment composer actions */
.workspace-shell .ws-comment-compose-shell textarea {
    min-height: 112px !important;
    padding-bottom: 14px !important;
}

.workspace-shell .ws-comment-tooldock {
    display: none !important;
}

.workspace-shell .ws-comment-composer-foot {
    align-items: center !important;
    gap: 10px !important;
}

.workspace-shell .ws-comment-foot-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.workspace-shell .ws-comment-add-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    flex: 0 0 30px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 1px solid rgba(145, 184, 255, .30);
    border-radius: 50%;
    color: rgba(232, 241, 255, .92);
    background: rgba(8, 18, 43, .72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 18px rgba(0,0,0,.20);
    cursor: pointer;
    line-height: 1;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.workspace-shell .ws-comment-add-btn .icon-glyph,
.workspace-shell .ws-comment-add-btn svg {
    width: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    height: 14px !important;
    min-height: 14px !important;
    max-height: 14px !important;
    flex: 0 0 14px !important;
    display: block;
}

.workspace-shell .ws-comment-add-btn:hover,
.workspace-shell .ws-comment-add-btn:focus-visible,
.workspace-shell .ws-comment-add-btn.is-active {
    transform: translateY(-1px);
    border-color: rgba(159, 201, 255, .58);
    color: rgba(255,255,255,.98);
    background: rgba(27, 52, 105, .88);
    box-shadow: 0 10px 24px rgba(54, 111, 230, .22), inset 0 1px 0 rgba(255,255,255,.10);
    outline: none;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop .ws-comment-add-menu {
    display: grid;
    gap: 8px;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop .ws-comment-add-menu-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 9px 10px !important;
    border: 1px solid rgba(138, 179, 255, .24) !important;
    border-radius: 14px !important;
    color: rgba(232, 240, 255, .94) !important;
    background: rgba(9, 20, 47, .72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop .ws-comment-add-menu-btn:hover,
.ws-comment-tool-pop.is-floating-comment-tool-pop .ws-comment-add-menu-btn:focus-visible,
.ws-comment-tool-pop.is-floating-comment-tool-pop .ws-comment-add-menu-btn.is-active {
    transform: translateY(-1px);
    border-color: rgba(153, 196, 255, .54) !important;
    background: rgba(24, 46, 95, .88) !important;
    box-shadow: 0 12px 26px rgba(31, 78, 177, .18), inset 0 1px 0 rgba(255,255,255,.08) !important;
    outline: none;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop .ws-comment-add-menu-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(150, 190, 255, .26);
    border-radius: 11px;
    background: rgba(5, 13, 32, .58);
    color: rgba(215, 229, 255, .94);
}

.ws-comment-tool-pop.is-floating-comment-tool-pop .ws-comment-add-menu-icon .icon-glyph,
.ws-comment-tool-pop.is-floating-comment-tool-pop .ws-comment-add-menu-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop .ws-comment-add-menu-btn strong {
    display: block;
    color: rgba(240, 246, 255, .98);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop .ws-comment-add-menu-btn small {
    display: block;
    margin-top: 3px;
    color: rgba(181, 198, 231, .82);
    font-size: 11px;
    line-height: 1.25;
}

.ws-comment-tool-pop.is-floating-comment-tool-pop .ws-comment-link-panel {
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid rgba(132, 176, 255, .16);
}

.ws-comment-tool-pop.is-floating-comment-tool-pop .ws-comment-link-panel[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .workspace-shell .ws-comment-composer-foot {
        grid-template-columns: 1fr;
        align-items: start !important;
    }

    .workspace-shell .ws-comment-foot-main {
        width: 100%;
    }

    .workspace-shell .ws-comment-composer-foot .btn {
        width: fit-content !important;
        max-width: 100% !important;
    }
}

/* Track surgical pass — compact proof overlays + closed project map */
.workspace-shell .evidence-plus-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.workspace-shell .evidence-plus-btn {
    appearance: none;
    -webkit-appearance: none;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    border: 1px solid rgba(156, 196, 255, .34) !important;
    color: rgba(235, 242, 255, .96) !important;
    background: linear-gradient(180deg, rgba(37, 65, 128, .90), rgba(13, 29, 66, .88)) !important;
    box-shadow: 0 10px 24px rgba(37, 92, 210, .18), inset 0 1px 0 rgba(255,255,255,.10) !important;
    overflow: visible !important;
    white-space: nowrap !important;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.workspace-shell .evidence-plus-btn:hover,
.workspace-shell .evidence-plus-btn:focus-visible,
.workspace-shell .evidence-plus-btn.is-active {
    transform: translateY(-1px);
    border-color: rgba(166, 206, 255, .68) !important;
    background: linear-gradient(180deg, rgba(61, 96, 176, .98), rgba(22, 48, 103, .94)) !important;
    box-shadow: 0 14px 30px rgba(57, 114, 230, .28), inset 0 1px 0 rgba(255,255,255,.14) !important;
    outline: none;
}

.workspace-shell .evidence-plus-btn .icon-glyph,
.workspace-shell .evidence-plus-btn svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    display: block;
}

.evidence-plus-pop[hidden],
.evidence-plus-pop.is-floating-evidence-pop[hidden] {
    display: none !important;
}

.evidence-plus-pop.is-floating-evidence-pop {
    position: fixed !important;
    left: 12px;
    top: 12px;
    right: auto !important;
    bottom: auto !important;
    z-index: 12200 !important;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow: auto !important;
    overscroll-behavior: contain;
    box-sizing: border-box;
    padding: 12px !important;
    border: 1px solid rgba(146, 188, 255, .40) !important;
    border-radius: 18px !important;
    color: rgba(232, 240, 255, .96);
    background: linear-gradient(180deg, rgba(10, 22, 52, .99), rgba(5, 12, 31, .99)) !important;
    box-shadow: 0 28px 70px rgba(0,0,0,.62), 0 0 0 1px rgba(91, 133, 230, .14), inset 0 1px 0 rgba(255,255,255,.08) !important;
    backdrop-filter: blur(18px);
    transform-origin: top right;
}

.evidence-plus-pop.is-floating-evidence-pop[data-open="true"] {
    animation: wsFloatingCommentToolIn .16s ease both;
}

.evidence-plus-pop.is-floating-evidence-pop *,
.evidence-plus-pop.is-floating-evidence-pop *::before,
.evidence-plus-pop.is-floating-evidence-pop *::after {
    box-sizing: border-box;
}

.evidence-plus-pop.is-floating-evidence-pop .evidence-add-title {
    padding: 0 !important;
    margin: 0 0 1px;
    color: rgba(238, 245, 255, .98);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.evidence-plus-pop.is-floating-evidence-pop .evidence-add-block {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(138, 179, 255, .22) !important;
    border-radius: 15px !important;
    background: rgba(8, 18, 42, .74) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.evidence-plus-pop.is-floating-evidence-pop .evidence-add-block-title {
    color: rgba(240, 246, 255, .98);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.15;
}

.evidence-plus-pop.is-floating-evidence-pop .inline-create-form,
.evidence-plus-pop.is-floating-evidence-pop .compact-inline-form {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.evidence-plus-pop.is-floating-evidence-pop input[type="url"],
.evidence-plus-pop.is-floating-evidence-pop input[type="file"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border: 1px solid rgba(139, 179, 255, .30) !important;
    border-radius: 13px !important;
    color: rgba(235, 242, 255, .96) !important;
    background: rgba(7, 16, 39, .92) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}

.evidence-plus-pop.is-floating-evidence-pop input[type="url"] {
    height: 42px;
    padding: 0 12px;
}

.evidence-plus-pop.is-floating-evidence-pop input[type="url"]:focus,
.evidence-plus-pop.is-floating-evidence-pop input[type="file"]:focus-visible {
    border-color: rgba(154, 198, 255, .62) !important;
    box-shadow: 0 0 0 3px rgba(111, 162, 255, .16), inset 0 1px 0 rgba(255,255,255,.07) !important;
    outline: none !important;
}

.evidence-plus-pop.is-floating-evidence-pop .evidence-upload-note {
    color: rgba(178, 195, 226, .78);
    font-size: 11px;
    line-height: 1.35;
}

.evidence-plus-pop.is-floating-evidence-pop .button-row,
.evidence-plus-pop.is-floating-evidence-pop .compact-row {
    display: inline-flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 0 !important;
}

.evidence-plus-pop.is-floating-evidence-pop .button-row .btn,
.evidence-plus-pop.is-floating-evidence-pop .compact-row .btn {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    border-radius: 13px !important;
}

.workspace-shell .ws-comment-foot-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.workspace-shell .ws-comment-composer-foot {
    align-items: center !important;
}

.workspace-shell .ws-current-tree-count {
    white-space: nowrap;
}

@media (max-width: 520px) {
    .evidence-plus-pop.is-floating-evidence-pop {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        padding: 10px !important;
    }

    .workspace-shell .ws-comment-composer-foot {
        grid-template-columns: 1fr;
        align-items: start !important;
    }
}

/* Wave 1 Pass 3: disciplined Track brand icons for workspace actions. */
.workspace-shell .ws-brand-action-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
    opacity: .92;
}
.workspace-shell .ws-brand-action-icon img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,.2));
}
.workspace-shell .ws-side-tab .ws-brand-action-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    opacity: .88;
}
.workspace-shell .ws-side-tab .ws-brand-action-icon img {
    width: 17px;
    height: 17px;
}
.workspace-shell .ws-side-tab.is-active .ws-brand-action-icon {
    opacity: 1;
}
.workspace-shell .ws-icon-only-delete {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: var(--red);
}
.workspace-shell .ws-icon-only-delete .icon-glyph {
    width: 16px;
    height: 16px;
}


/* Wave 2 workspace interaction hardening. */
.workspace-shell.is-tree-searching .ws-tree .ws-filterable.is-search-match > summary .ws-tree-pill,
.workspace-shell.is-tree-searching .ws-tree .ws-tree-leaf.is-search-match .ws-tree-pill {
    border-color: rgba(125, 211, 252, .48);
    background: rgba(14, 165, 233, .16);
    box-shadow: 0 0 0 1px rgba(125, 211, 252, .10), inset 0 1px 0 rgba(255,255,255,.08);
}

.workspace-shell.is-tree-searching .ws-tree .ws-filterable.is-search-context > summary .ws-tree-pill,
.workspace-shell.is-tree-searching .ws-tree .ws-tree-leaf.is-search-context .ws-tree-pill {
    opacity: .82;
}

.workspace-shell .evidence-link-wrap a {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.workspace-shell .evidence-description {
    max-height: 120px;
    overflow: auto;
}

.workspace-shell .evidence-card .comment-meta-row {
    gap: 10px;
}

@media (max-width: 520px) {
    .workspace-shell .evidence-file-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }
    .workspace-shell .evidence-download-btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}


/* Track Wave 2 Pass 9A — login brand home navigation */
body.auth-page .auth-home-link,
body.auth-page .auth-title-home-link {
    color: inherit;
    text-decoration: none;
}

body.auth-page .auth-home-link {
    display: inline-flex;
    width: min(100%, 34rem);
    cursor: pointer;
}

body.auth-page .auth-home-link:focus-visible,
body.auth-page .auth-home-mark:focus-visible,
body.auth-page .auth-title-home-link:focus-visible {
    outline: 2px solid rgba(115, 158, 255, .95);
    outline-offset: 4px;
}

body.auth-page .auth-home-link:hover .eyebrow,
body.auth-page .auth-title-home-link:hover {
    color: #dbe8ff;
}

body.auth-page .auth-home-mark {
    flex: 0 0 auto;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

body.auth-page .auth-title-home-link {
    display: inline-block;
}


/* Track Wave 2 Pass 9C — critical shell controls layering */
.ws-global-topbar {
    position: relative;
    z-index: 1500;
}
.ws-profile-shell {
    position: relative;
    z-index: 1510;
}
.ws-profile-menu {
    z-index: 1520;
}
.project-hub-overlay {
    z-index: 2000;
}
.ws-node-toggle {
    cursor: pointer;
    pointer-events: auto;
}

/* Track workspace project hub stabilization */
.workspace-shell .ws-project-dashboard-hero {
    padding: 20px;
    border-color: rgba(150, 184, 255, .15);
    background:
        radial-gradient(circle at 8% 0%, rgba(96, 148, 255, .13), transparent 34%),
        linear-gradient(180deg, rgba(18, 32, 66, .72), rgba(8, 18, 41, .66));
}

.workspace-shell .ws-project-dashboard-hero .ws-selected-title {
    max-width: 780px;
    font-size: clamp(25px, 3.1vw, 34px);
}

.workspace-shell .ws-project-dashboard-hero .ws-selected-description {
    max-width: 680px;
    font-size: 14px;
}

.workspace-shell .ws-project-dashboard-hero .ws-selected-actions {
    margin-top: 14px;
    padding-top: 14px;
    align-items: center;
}

.workspace-shell .ws-project-dashboard-hero .ws-selected-note {
    min-width: 0;
}

.workspace-shell .ws-project-dashboard-head {
    align-items: center;
    gap: 16px;
}

.workspace-shell .ws-project-finder {
    width: min(100%, 420px);
    display: grid;
    gap: 7px;
    justify-self: end;
}

.workspace-shell .ws-project-finder label {
    margin: 0;
    color: rgba(190, 207, 245, .72);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.workspace-shell .ws-project-finder-field {
    min-width: 0;
    min-height: 42px;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border-radius: 16px;
    border: 1px solid rgba(157, 183, 241, .15);
    background: rgba(5, 14, 32, .62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.workspace-shell .ws-project-finder-field .icon-glyph {
    width: 18px;
    height: 18px;
    color: rgba(191, 207, 245, .72);
}

.workspace-shell .ws-project-finder-field input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    outline: none;
    box-shadow: none;
    font-size: 13px;
    font-weight: 720;
}

.workspace-shell .ws-project-finder-field:focus-within {
    border-color: rgba(140, 181, 255, .42);
    background: rgba(7, 18, 42, .84);
    box-shadow: 0 0 0 3px rgba(122, 160, 255, .11), inset 0 1px 0 rgba(255,255,255,.05);
}

.workspace-shell .ws-project-finder-meta {
    color: rgba(190, 207, 245, .66);
    font-size: 11px;
    font-weight: 780;
}

.workspace-shell .ws-project-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 292px), 1fr));
    gap: 12px;
    align-items: stretch;
}

.workspace-shell .ws-project-card {
    min-width: 0;
    min-height: 0;
    gap: 11px;
    padding: 15px;
    border-radius: 18px;
    border-color: rgba(157, 183, 241, .12);
    background: linear-gradient(180deg, rgba(16, 29, 61, .58), rgba(8, 18, 41, .48));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
    overflow: hidden;
}

.workspace-shell .ws-project-card.is-current {
    border-color: rgba(138, 180, 255, .34);
    background: linear-gradient(180deg, rgba(42, 69, 128, .45), rgba(9, 21, 47, .55));
    box-shadow: inset 0 0 0 1px rgba(138, 180, 255, .10), 0 14px 30px rgba(0,0,0,.16);
}

.workspace-shell .ws-project-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.workspace-shell .ws-project-card-titleline {
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.workspace-shell .ws-project-avatar-card {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 14px;
    font-size: 15px;
}

.workspace-shell .ws-project-avatar-card.has-image img {
    padding: 4px;
}

.workspace-shell .ws-project-card-code {
    margin-bottom: 4px;
    color: rgba(190, 207, 245, .72);
    font-size: 10px;
    line-height: 1;
    letter-spacing: .11em;
}

.workspace-shell .ws-project-card h4 {
    max-width: 100%;
    margin: 0;
    color: #f7fbff;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.08;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.workspace-shell .ws-project-card .status-pill {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 10.5px;
    line-height: 1.05;
    white-space: nowrap;
}

.workspace-shell .ws-project-card-desc {
    display: -webkit-box;
    margin: 0;
    color: rgba(196, 211, 245, .72);
    font-size: 13px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.workspace-shell .ws-project-card-times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    margin-top: 1px;
}

.workspace-shell .ws-project-card-times span {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(190, 207, 245, .68);
    font-size: 11px;
    font-weight: 680;
    line-height: 1.35;
    white-space: normal;
}

.workspace-shell .ws-project-card-times strong {
    display: block;
    color: rgba(239, 245, 255, .88);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.workspace-shell .ws-project-card-meta {
    margin-top: 1px;
    padding-top: 9px;
    border-top-color: rgba(148, 163, 184, .10);
}

.workspace-shell .ws-project-card .button-row {
    justify-content: flex-end;
    margin-top: 2px;
}

.workspace-shell .ws-project-card .btn-small {
    min-height: 36px;
    padding: 10px 13px;
    border-radius: 13px;
}

.workspace-shell .ws-project-dashboard-empty {
    grid-column: 1 / -1;
}

.project-hub-panel {
    width: min(860px, calc(100vw - 48px));
    border-radius: 26px;
}

.project-hub-head {
    padding: 22px 24px 16px;
}

.project-hub-head h2 {
    margin-top: 10px;
    font-size: clamp(23px, 2.5vw, 32px);
}

.project-hub-active-strip {
    margin: 0 24px 14px;
    padding: 12px;
    border-radius: 18px;
}

.project-hub-active-avatar.ws-project-avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 14px;
}

.project-hub-toolbar {
    padding: 15px 24px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.project-hub-toolbar input[type="search"] {
    height: 44px;
    border-radius: 15px;
}

.project-hub-create {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.project-hub-grid {
    padding: 18px 24px 24px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 12px;
}

.project-hub-card {
    min-height: 92px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 13px;
    border-radius: 18px;
}

.project-hub-avatar.ws-project-avatar {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 15px;
    font-size: 16px;
}

.project-hub-avatar.has-image img {
    border-radius: 13px;
    object-fit: contain;
    padding: 4px;
}

.project-hub-card-copy {
    gap: 5px;
}

.project-hub-card-copy strong {
    font-size: 15px;
    line-height: 1.12;
}

.project-hub-card-copy em,
.project-hub-card-copy span {
    font-size: 11px;
}

.project-hub-current-badge {
    position: static;
    align-self: start;
    justify-self: end;
    grid-column: auto;
    min-height: 23px;
    padding: 5px 8px;
    font-size: 9.5px;
}

@media (max-width: 920px) {
    .workspace-shell .ws-project-dashboard-head {
        align-items: stretch;
    }
    .workspace-shell .ws-project-finder {
        width: 100%;
        justify-self: stretch;
    }
    .project-hub-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .workspace-shell .ws-project-dashboard-hero {
        padding: 16px;
        border-radius: 18px;
    }
    .workspace-shell .ws-project-dashboard-hero .ws-selected-actions {
        align-items: flex-start;
    }
    .workspace-shell .ws-project-card-head,
    .workspace-shell .ws-project-card-times {
        grid-template-columns: 1fr;
    }
    .workspace-shell .ws-project-card .status-pill {
        justify-self: start;
    }
    .workspace-shell .ws-project-card .button-row {
        justify-content: flex-start;
    }
    .project-hub-overlay {
        padding: 10px;
    }
    .project-hub-panel {
        width: 100%;
        max-height: calc(100dvh - 20px);
        border-radius: 22px;
    }
    .project-hub-head {
        padding: 18px 16px 12px;
    }
    .project-hub-active-strip {
        margin: 0 16px 12px;
        grid-template-columns: auto minmax(0, 1fr);
    }
    .project-hub-toolbar {
        grid-template-columns: 1fr;
        padding: 13px 16px;
    }
    .project-hub-grid {
        padding: 14px 16px 18px;
    }
    .project-hub-card {
        grid-template-columns: 42px minmax(0, 1fr);
        min-height: 86px;
    }
    .project-hub-avatar.ws-project-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 14px;
    }
    .project-hub-current-badge {
        grid-column: 2;
        justify-self: start;
    }
}

/* Track hotfix — right pane compact tabs + scroll lock.
   Right-pane navigation must be a small workflow tab strip, not large image cards. */
.workspace-shell .ws-right-pane {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 24px) !important;
    overflow: hidden !important;
}

.workspace-shell .ws-right-pane .ws-side-head {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    padding: 10px 10px 8px !important;
    overflow: hidden !important;
    border-bottom-color: rgba(150, 184, 255, .12) !important;
}

.workspace-shell .ws-right-pane .ws-side-tabs,
.workspace-shell .ws-right-pane .ws-notification-lane-tabs {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 0 4px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin;
}

.workspace-shell .ws-right-pane .ws-side-tab,
.workspace-shell .ws-right-pane .ws-notification-lane-tab {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 30px !important;
    max-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 6px 9px !important;
    border-radius: 11px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    letter-spacing: .01em !important;
    white-space: nowrap !important;
    transform: none !important;
    animation: none !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.workspace-shell .ws-right-pane .ws-side-tab:hover,
.workspace-shell .ws-right-pane .ws-notification-lane-tab:hover,
.workspace-shell .ws-right-pane .ws-side-tab.is-active,
.workspace-shell .ws-right-pane .ws-notification-lane-tab.is-active {
    transform: none !important;
    animation: none !important;
}

.workspace-shell .ws-right-pane .ws-side-tab .ws-brand-action-icon,
.workspace-shell .ws-right-pane .ws-side-tab .ws-brand-action-icon img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    flex-basis: 0 !important;
}

.workspace-shell .ws-right-pane .ws-side-tab-count {
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    font-size: 10px !important;
    line-height: 18px !important;
}

.workspace-shell .ws-right-pane .ws-right-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 12px !important;
    overscroll-behavior: contain;
}

.workspace-shell .ws-right-pane .ws-side-panel {
    min-height: 0 !important;
    max-width: 100% !important;
}

@media (max-width: 1180px) {
    .workspace-shell .ws-right-pane {
        max-height: none !important;
    }
}

/* Track hotfix — keep project search controls premium/dark after browser autofill/default styling. */
.workspace-shell .ws-project-finder-field,
.workspace-shell .project-hub-toolbar input[type="search"] {
    color-scheme: dark;
}

.workspace-shell .ws-project-finder-field input[type="search"],
.workspace-shell .project-hub-toolbar input[type="search"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: rgba(7, 18, 42, .78) !important;
    color: #f6f9ff !important;
    border-color: rgba(157, 183, 241, .18) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
}

.workspace-shell .ws-project-finder-field input[type="search"] {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.workspace-shell .ws-project-finder-field input[type="search"]::placeholder,
.workspace-shell .project-hub-toolbar input[type="search"]::placeholder {
    color: rgba(190, 207, 245, .58) !important;
}

.workspace-shell .ws-project-finder-field input[type="search"]:-webkit-autofill,
.workspace-shell .project-hub-toolbar input[type="search"]:-webkit-autofill {
    -webkit-text-fill-color: #f6f9ff !important;
    box-shadow: 0 0 0 1000px rgba(7, 18, 42, .92) inset !important;
}


/* Track hotfix v3 — right pane compact old-style glyph icons.
   The right pane must use small glyph controls, never large brand image posters. */
.workspace-shell .ws-right-pane .ws-side-tab .ws-side-glyph {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
    display: inline-grid !important;
    place-items: center !important;
    color: currentColor !important;
    opacity: .94 !important;
}
.workspace-shell .ws-right-pane .ws-side-tab .ws-side-glyph .icon-glyph,
.workspace-shell .ws-right-pane .ws-side-tab > .icon-glyph {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: block !important;
}
.workspace-shell .ws-right-pane .ws-side-tab .ws-brand-action-icon,
.workspace-shell .ws-right-pane .ws-side-tab .ws-brand-action-icon img,
.workspace-shell .ws-right-pane .ws-side-tab img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 0 0 0 !important;
    object-fit: contain !important;
}
.workspace-shell .ws-right-pane .ws-side-tab,
.workspace-shell .ws-right-pane .ws-notification-lane-tab {
    min-height: 31px !important;
    max-height: 33px !important;
    padding: 6px 9px !important;
    gap: 6px !important;
}
.workspace-shell .ws-right-pane .ws-side-tab span:not(.ws-side-glyph):not(.ws-side-tab-count) {
    font-size: 11px !important;
    line-height: 1 !important;
}

/* Track hotfix v8 superseded — Project Hub must remain an overlay/modal.
   Hidden state is controlled by the active Project Hub overlay rules below. */

.ws-breadcrumb-current {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    color: rgba(214, 228, 255, .86);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .02em;
}

.ws-left-project-hub.iconbtn {
    text-decoration: none;
}

.workspace-shell .ws-main-pane .ws-main-content > .ws-project-dashboard-hero,
.workspace-shell .ws-main-pane .ws-main-content > .ws-surface-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.workspace-shell .ws-project-dashboard-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    align-items: end;
    gap: 16px;
}

.workspace-shell .ws-project-finder {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
}

.workspace-shell .ws-project-finder-field {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.workspace-shell .ws-project-finder-field input[type="search"] {
    min-width: 0;
    max-width: 100%;
}

.workspace-shell .ws-project-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.workspace-shell .ws-project-card {
    min-width: 0;
    max-width: 100%;
}

.workspace-shell .ws-project-card-titleline,
.workspace-shell .ws-project-card-titleline > div,
.workspace-shell .ws-project-card-meta,
.workspace-shell .ws-project-card-times {
    min-width: 0;
}

.workspace-shell .ws-project-card h4,
.workspace-shell .ws-project-card-code,
.workspace-shell .ws-project-card-desc,
.workspace-shell .ws-project-card-meta span,
.workspace-shell .ws-project-card-times span {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .workspace-shell .ws-project-dashboard-head {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

/* Track hotfix v9 — restore Project Hub as a centered overlay.
   Search belongs at the top of the overlay, not loose in the middle pane. */
.project-hub-overlay[hidden],
[data-project-hub-overlay][hidden] {
    display: none !important;
}
.project-hub-overlay:not([hidden]),
[data-project-hub-overlay]:not([hidden]) {
    display: grid !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2200 !important;
    place-items: center !important;
    padding: clamp(12px, 3vw, 26px) !important;
    background: transparent !important;
    isolation: isolate;
}
.project-hub-backdrop {
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background:
        radial-gradient(circle at 14% 10%, rgba(92, 147, 255, .20), transparent 34%),
        radial-gradient(circle at 88% 80%, rgba(74, 222, 255, .12), transparent 36%),
        rgba(1, 7, 18, .80) !important;
    backdrop-filter: blur(16px);
}
.project-hub-panel {
    width: min(1040px, calc(100vw - 32px)) !important;
    max-height: min(820px, calc(100vh - 32px)) !important;
    min-height: min(620px, calc(100vh - 32px));
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
    border-radius: 30px !important;
    border: 1px solid rgba(157, 183, 241, .20) !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(96, 148, 255, .16), transparent 36%),
        linear-gradient(145deg, rgba(20, 35, 73, .98), rgba(6, 16, 35, .98)) !important;
    box-shadow: 0 38px 120px rgba(0, 0, 0, .58), inset 0 1px 0 rgba(255,255,255,.06) !important;
}
.project-hub-head {
    padding: 24px 28px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 18px !important;
    border-bottom: 1px solid rgba(157,183,241,.11) !important;
}
.project-hub-toolbar-top {
    order: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "label create" "search create" !important;
    gap: 8px 14px !important;
    align-items: center !important;
    padding: 16px 28px !important;
    border-bottom: 1px solid rgba(157,183,241,.10) !important;
    background: rgba(5, 13, 30, .36) !important;
}
.project-hub-search-label {
    grid-area: label;
    margin: 0 !important;
    color: rgba(201, 218, 255, .76) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .13em !important;
    text-transform: uppercase !important;
}
.project-hub-search-shell {
    grid-area: search;
    min-width: 0;
    width: 100%;
    min-height: 46px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 0 14px;
    border-radius: 17px;
    border: 1px solid rgba(157,183,241,.17);
    background: rgba(4, 12, 29, .74);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.project-hub-search-shell .icon-glyph {
    width: 18px !important;
    height: 18px !important;
    color: rgba(191, 207, 245, .74) !important;
}
.project-hub-search-shell input[type="search"],
.project-hub-toolbar input[type="search"] {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--text) !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 760 !important;
}
.project-hub-search-shell:focus-within {
    border-color: rgba(139,181,255,.46);
    box-shadow: 0 0 0 4px rgba(74,144,255,.10), inset 0 1px 0 rgba(255,255,255,.05);
}
.project-hub-create {
    grid-area: create;
    align-self: end;
    white-space: nowrap;
}
.project-hub-active-strip {
    margin: 16px 28px 0 !important;
    min-width: 0;
}
.project-hub-grid {
    min-height: 0 !important;
    overflow: auto !important;
    padding: 18px 28px 28px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)) !important;
    gap: 14px !important;
}
.project-hub-card {
    min-width: 0 !important;
    overflow: hidden !important;
}
.project-hub-card-copy,
.project-hub-card-copy strong,
.project-hub-card-copy em,
.project-hub-card-copy span {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}
.project-hub-empty {
    margin: 0 28px 26px !important;
}
body.is-project-hub-open {
    overflow: hidden;
}
.ws-left-project-hub.iconbtn {
    appearance: none;
}
@media (max-width: 720px) {
    .project-hub-panel {
        width: calc(100vw - 18px) !important;
        max-height: calc(100vh - 18px) !important;
        min-height: 0;
        border-radius: 22px !important;
    }
    .project-hub-head,
    .project-hub-toolbar-top,
    .project-hub-grid {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    .project-hub-toolbar-top {
        grid-template-columns: 1fr !important;
        grid-template-areas: "label" "search" "create" !important;
    }
    .project-hub-create {
        justify-self: stretch;
    }
    .project-hub-active-strip {
        margin-left: 18px !important;
        margin-right: 18px !important;
    }
}

/* Track Project Hub Surgery PASS 1 — body-level modal contract guard */
.project-hub-overlay[hidden],
[data-project-hub-overlay][hidden] {
    display: none !important;
}
body > .project-hub-overlay:not([hidden]),
body > [data-project-hub-overlay]:not([hidden]) {
    position: fixed !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    z-index: 2400 !important;
    padding: clamp(12px, 3vw, 26px) !important;
    overflow: hidden !important;
}
body > .project-hub-overlay .project-hub-panel {
    width: min(1040px, calc(100vw - 32px)) !important;
    max-height: min(820px, calc(100dvh - 32px)) !important;
    min-height: 0 !important;
}
body > .project-hub-overlay .project-hub-grid {
    min-height: 0 !important;
    overflow: auto !important;
}
@media (max-width: 720px) {
    body > .project-hub-overlay:not([hidden]),
    body > [data-project-hub-overlay]:not([hidden]) {
        align-items: end !important;
        padding: 9px !important;
    }
    body > .project-hub-overlay .project-hub-panel {
        width: calc(100vw - 18px) !important;
        max-height: calc(100dvh - 18px) !important;
        border-radius: 22px !important;
    }
}


/* Track Project Hub PASS 2A — persistent right-pane tabs + typed project-map labels. */
.workspace-shell .ws-right-pane .ws-side-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 12 !important;
    overflow: visible !important;
    padding: 9px 10px 8px !important;
    background: linear-gradient(180deg, rgba(14, 28, 61, .98), rgba(9, 21, 48, .96)) !important;
    backdrop-filter: blur(14px);
}

.workspace-shell .ws-right-pane .ws-side-tabs {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
}

.workspace-shell .ws-right-pane .ws-side-tabs::-webkit-scrollbar {
    display: none !important;
}

.workspace-shell .ws-right-pane .ws-side-tab {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 31px !important;
    max-height: none !important;
    padding: 6px 7px !important;
    gap: 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.workspace-shell .ws-right-pane .ws-side-tab span:not(.ws-side-glyph):not(.ws-side-tab-count) {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
}

.workspace-shell .ws-right-pane .ws-side-tab-count {
    flex: 0 0 auto !important;
}

.workspace-shell .ws-right-pane .ws-right-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.workspace-shell .ws-tree-main {
    align-items: flex-start !important;
}

.workspace-shell .ws-tree-typed-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    column-gap: 4px !important;
    align-items: baseline !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    line-height: 1.22 !important;
}

.workspace-shell .ws-tree-type {
    color: rgba(158, 182, 231, .78) !important;
    font-size: 9.5px !important;
    font-weight: 900 !important;
    letter-spacing: .035em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.workspace-shell .ws-tree-name {
    min-width: 0 !important;
    max-width: 100% !important;
    color: currentColor !important;
    font-size: 11.5px !important;
    font-weight: 850 !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    white-space: normal !important;
}

.workspace-shell .ws-tree-typed-label.is-current .ws-tree-type,
.workspace-shell .ws-tree-typed-label.is-current .ws-tree-name {
    color: rgba(244, 248, 255, .96) !important;
}

.workspace-shell .ws-node summary,
.workspace-shell .ws-tree-link {
    align-items: flex-start !important;
}

@media (max-width: 1320px) {
    .workspace-shell .ws-right-pane .ws-side-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1100px) {
    .workspace-shell .ws-right-pane .ws-side-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 520px) {
    .workspace-shell .ws-right-pane .ws-side-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .workspace-shell .ws-tree-typed-label {
        grid-template-columns: 1fr !important;
        row-gap: 1px !important;
    }
}

/* Track Project Hub PASS 2B — tree labels stay compact; type/full label appears on hover tooltip only. */
.workspace-shell .ws-tree-main {
    align-items: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.workspace-shell .ws-tree-title-label,
.workspace-shell .ws-tree-typed-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    line-height: 1.18 !important;
}

.workspace-shell .ws-tree-typed-label .ws-tree-type,
.workspace-shell .ws-tree-title-label .ws-tree-type {
    display: none !important;
}

.workspace-shell .ws-tree-title-label .ws-tree-name,
.workspace-shell .ws-tree-typed-label .ws-tree-name {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    color: currentColor !important;
}

.workspace-shell .ws-node summary,
.workspace-shell .ws-tree-link {
    align-items: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.workspace-shell .ws-node summary .ws-node-count,
.workspace-shell .ws-tree-link .ws-node-count,
.workspace-shell .ws-node-icon,
.workspace-shell .ws-node-toggle,
.workspace-shell .ws-node-toggle-spacer,
.workspace-shell .ws-project-avatar-nav,
.workspace-shell .ws-node-icon.is-workflow {
    flex-shrink: 0 !important;
}

.workspace-shell .ws-hover-tooltip {
    max-width: min(420px, calc(100vw - 28px)) !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 520px) {
    .workspace-shell .ws-tree-title-label,
    .workspace-shell .ws-tree-typed-label {
        display: block !important;
        white-space: nowrap !important;
    }
}

/* Track correction — compact, vertically scrollable right-pane tab tray + visible submitted request details. */
.workspace-shell .ws-right-pane {
    grid-template-rows: auto minmax(0, 1fr) !important;
}

.workspace-shell .ws-right-pane .ws-side-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 12 !important;
    padding: 8px 10px !important;
    max-height: 86px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(132, 173, 255, .32) transparent;
    background:
        linear-gradient(180deg, rgba(13, 26, 58, .98), rgba(9, 20, 45, .96)) !important;
}

.workspace-shell .ws-right-pane .ws-side-head::-webkit-scrollbar {
    width: 6px;
}

.workspace-shell .ws-right-pane .ws-side-head::-webkit-scrollbar-track {
    background: transparent;
}

.workspace-shell .ws-right-pane .ws-side-head::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(132, 173, 255, .34);
}

.workspace-shell .ws-right-pane .ws-side-tabs,
.workspace-shell .ws-right-pane .ws-notification-lane-tabs {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    align-items: start !important;
    margin: 0 !important;
    overflow: visible !important;
}

.workspace-shell .ws-right-pane .ws-side-tab,
.workspace-shell .ws-right-pane .ws-notification-lane-tab {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 30px !important;
    height: auto !important;
    padding: 6px 8px !important;
    border-radius: 12px !important;
    gap: 5px !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.workspace-shell .ws-right-pane .ws-side-tab .icon-glyph,
.workspace-shell .ws-right-pane .ws-notification-lane-tab .icon-glyph {
    width: 13px !important;
    height: 13px !important;
    flex: 0 0 13px !important;
}

.workspace-shell .ws-right-pane .ws-side-tab > span:not(.ws-side-tab-count),
.workspace-shell .ws-right-pane .ws-notification-lane-tab > span:not(.ws-side-tab-count) {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.workspace-shell .ws-right-pane .ws-side-tab-count {
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 5px !important;
    font-size: 9.5px !important;
    line-height: 16px !important;
}

.workspace-shell .ws-right-pane .ws-right-body {
    grid-row: 2 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-top: 12px !important;
}

.workspace-shell .ws-side-note-block {
    margin: 0 0 14px !important;
    padding: 12px 13px !important;
    border: 1px solid rgba(132, 173, 255, .18) !important;
    border-radius: 16px !important;
    background: rgba(6, 16, 34, .38) !important;
}

.workspace-shell .ws-card-description-text {
    margin-top: 7px !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.workspace-shell .ws-selected-description-more {
    display: block !important;
    margin-top: 8px !important;
    color: rgba(174, 203, 255, .84) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

@media (max-width: 1180px) {
    .workspace-shell .ws-right-pane .ws-side-head {
        max-height: 104px !important;
    }
}

@media (max-width: 760px) {
    .workspace-shell .ws-right-pane .ws-side-tabs,
    .workspace-shell .ws-right-pane .ws-notification-lane-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .workspace-shell .ws-right-pane .ws-side-head {
        max-height: 98px !important;
    }
}

/* Track correction — right pane fixed tabs + readable tab content + reliable tree hover labels. */
.workspace-shell .ws-right-pane {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
}

.workspace-shell .ws-right-pane .ws-side-head {
    position: relative !important;
    top: auto !important;
    z-index: 12 !important;
    flex: 0 0 auto !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding: 8px 10px 10px !important;
    border-bottom: 1px solid rgba(150, 184, 255, .12) !important;
    background: linear-gradient(180deg, rgba(13, 26, 58, .98), rgba(9, 20, 45, .96)) !important;
}

.workspace-shell .ws-right-pane .ws-side-tabs {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    align-items: stretch !important;
}

.workspace-shell .ws-right-pane .ws-side-tab {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 30px !important;
    max-height: none !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 6px 8px !important;
    border-radius: 12px !important;
    font-size: 10.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transform: none !important;
    animation: none !important;
}

.workspace-shell .ws-right-pane .ws-side-tab span:not(.ws-side-glyph):not(.ws-side-tab-count) {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.workspace-shell .ws-right-pane .ws-side-tab-count {
    flex: 0 0 auto !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 5px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 9.5px !important;
    line-height: 1 !important;
}

.workspace-shell .ws-right-pane .ws-right-body {
    grid-row: 2 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 12px 12px 16px !important;
    overscroll-behavior: contain !important;
}

.workspace-shell .ws-right-pane .ws-side-panel {
    min-width: 0 !important;
    max-width: 100% !important;
    align-content: start !important;
    overflow: visible !important;
}

.workspace-shell .ws-right-pane .ws-side-card,
.workspace-shell .ws-right-pane .ws-activity-hero-card,
.workspace-shell .ws-right-pane .ws-comments-card,
.workspace-shell .ws-right-pane .ws-evidence-card,
.workspace-shell .ws-right-pane .ws-side-health-card,
.workspace-shell .ws-right-pane .ws-side-focus-card,
.workspace-shell .ws-right-pane .track-side-time-card,
.workspace-shell .ws-right-pane .ws-analytics-card {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}

.workspace-shell .ws-right-pane .section-head,
.workspace-shell .ws-right-pane .ws-notification-topline,
.workspace-shell .ws-right-pane .ws-notification-lane-head,
.workspace-shell .ws-right-pane .button-row,
.workspace-shell .ws-right-pane .compact-row,
.workspace-shell .ws-right-pane .meta-row {
    min-width: 0 !important;
    max-width: 100% !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.workspace-shell .ws-right-pane .ws-notification-lane-tabs {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    margin: 12px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.workspace-shell .ws-right-pane .ws-notification-lane-tab {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    max-height: none !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 7px 10px !important;
    border-radius: 14px !important;
    font-size: 11.5px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    cursor: pointer !important;
}

.workspace-shell .ws-right-pane .ws-notification-lane,
.workspace-shell .ws-right-pane .ws-notification-lane .ws-activity-list {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.workspace-shell .ws-right-pane .small,
.workspace-shell .ws-right-pane .empty-inline,
.workspace-shell .ws-right-pane .ws-card-description-text,
.workspace-shell .ws-right-pane .ws-notification-body,
.workspace-shell .ws-right-pane .ws-notification-lane-copy,
.workspace-shell .ws-right-pane .meta-label,
.workspace-shell .ws-right-pane .meta-value,
.workspace-shell .ws-right-pane .ws-summary-label,
.workspace-shell .ws-right-pane .ws-summary-hint,
.workspace-shell .ws-right-pane .ws-analytics-note {
    max-width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

.workspace-shell .ws-right-pane .status-pill,
.workspace-shell .ws-right-pane .ws-filter-chip,
.workspace-shell .ws-right-pane .ws-time-chip,
.workspace-shell .ws-right-pane .ws-section-count,
.workspace-shell .ws-right-pane .ws-side-health-chip,
.workspace-shell .ws-right-pane .ws-user-chip,
.workspace-shell .ws-right-pane .chip,
.workspace-shell .ws-right-pane .pill {
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

.workspace-shell .ws-right-pane .empty-inline {
    line-height: 1.38 !important;
}

.workspace-shell .ws-right-pane .ws-notification-lane-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
}

.workspace-shell .ws-right-pane .ws-notification-lane-head .inline-form,
.workspace-shell .ws-right-pane .ws-notification-lane-head .btn {
    justify-self: end !important;
    white-space: nowrap !important;
}

.workspace-shell .ws-tree summary[data-hover-label],
.workspace-shell .ws-tree a[data-hover-label] {
    cursor: pointer;
}

body > .ws-hover-tooltip,
.ws-hover-tooltip {
    z-index: 100000 !important;
    max-width: min(420px, calc(100vw - 28px)) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 760px) {
    .workspace-shell .ws-right-pane .ws-side-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .workspace-shell .ws-right-pane .ws-notification-lane-head {
        grid-template-columns: 1fr !important;
    }

    .workspace-shell .ws-right-pane .ws-notification-lane-head .inline-form,
    .workspace-shell .ws-right-pane .ws-notification-lane-head .btn {
        justify-self: start !important;
    }
}


/* Pass 19 — Admin Interview Hub quick link. */
.ws-admin-interview-link {
    min-height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 14px;
    font-weight: 800;
    letter-spacing: .01em;
}
@media (max-width: 820px) {
    .ws-admin-interview-link {
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }
}
@media (max-width: 560px) {
    .ws-admin-interview-link {
        width: 100%;
    }
}

/* Project image enlargement — shared by Classic and Adaptive */
.track-project-image-trigger {
    position: relative;
    cursor: zoom-in;
    outline: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.track-project-image-trigger:hover,
.track-project-image-trigger:focus-visible {
    transform: translateY(-1px) scale(1.02);
    border-color: rgba(116, 180, 255, .56) !important;
    box-shadow: 0 0 0 3px rgba(67, 145, 255, .16), 0 14px 30px rgba(0, 0, 0, .24) !important;
}
.track-project-image-zoom {
    position: absolute;
    right: 3px;
    bottom: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(4, 16, 39, .88);
    border: 1px solid rgba(255, 255, 255, .24);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
    pointer-events: none;
}
.ws-project-avatar-nav .track-project-image-zoom,
.project-hub-avatar .track-project-image-zoom {
    display: none;
}
.track-project-image-lightbox[hidden] {
    display: none !important;
}
.track-project-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: clamp(14px, 3vw, 34px);
    opacity: 0;
    transition: opacity 160ms ease;
}
.track-project-image-lightbox.is-open {
    opacity: 1;
}
.track-project-image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 8, 22, .88);
    backdrop-filter: blur(12px);
    cursor: zoom-out;
}
.track-project-image-lightbox-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(92vw, 1180px);
    max-height: 92vh;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(153, 190, 255, .28);
    background: linear-gradient(180deg, rgba(16, 34, 70, .98), rgba(6, 16, 37, .98));
    box-shadow: 0 34px 90px rgba(0, 0, 0, .58), inset 0 0 0 1px rgba(255, 255, 255, .04);
    transform: translateY(10px) scale(.985);
    transition: transform 160ms ease;
}
.track-project-image-lightbox.is-open .track-project-image-lightbox-panel {
    transform: translateY(0) scale(1);
}
.track-project-image-lightbox-stage {
    min-height: 0;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 46px);
    overflow: auto;
    background:
        radial-gradient(circle at 50% 38%, rgba(41, 120, 255, .18), transparent 46%),
        rgba(5, 13, 31, .82);
}
.track-project-image-lightbox-stage img {
    display: block;
    max-width: 100%;
    max-height: min(74vh, 980px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, .42);
    background: #fff;
}
.track-project-image-lightbox-caption {
    padding: 15px 58px 17px 20px;
    border-top: 1px solid rgba(154, 187, 245, .14);
    color: rgba(239, 245, 255, .94);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
}
.track-project-image-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(4, 13, 31, .88);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}
.track-project-image-lightbox-close:hover,
.track-project-image-lightbox-close:focus-visible {
    background: rgba(31, 83, 165, .96);
    outline: 3px solid rgba(92, 164, 255, .28);
}
html.track-project-image-lightbox-open,
body.track-project-image-lightbox-open {
    overflow: hidden !important;
}
@media (max-width: 640px) {
    .track-project-image-lightbox {
        padding: 8px;
    }
    .track-project-image-lightbox-panel {
        width: 100%;
        max-height: 96vh;
        border-radius: 18px;
    }
    .track-project-image-lightbox-stage {
        padding: 12px;
    }
    .track-project-image-lightbox-caption {
        font-size: 13px;
    }
}

/* Import outcome visibility */
.alert-warning {
    background: rgba(251, 191, 36, 0.11);
    border: 1px solid rgba(251, 191, 36, 0.28);
    color: #fff0bf;
}
.alert-info {
    background: rgba(96, 165, 250, 0.11);
    border: 1px solid rgba(96, 165, 250, 0.28);
    color: #dbeafe;
}
.ws-flash-banner,
.phase-banner {
    line-height: 1.55;
    overflow-wrap: anywhere;
}

/* Pass 8J — governed milestone and checklist-title delivery presentation. */
.workspace-shell .ws-milestones-card .section-head,
.workspace-shell .ws-milestone-summary .section-head {
    align-items: flex-start;
}
.workspace-shell .ws-milestone-panel-actions {
    margin-top: 14px;
}
.workspace-shell .ws-milestone-summary {
    display: grid;
    gap: 12px;
}
.workspace-shell .ws-milestone-summary-head h3 {
    margin: 5px 0 0;
    font-size: 1rem;
    line-height: 1.25;
}
.workspace-shell .ws-milestone-description {
    margin: 0;
    line-height: 1.45;
    color: var(--text-muted, #92a5c0);
}
.workspace-shell .ws-milestone-target-line {
    color: var(--text-muted, #92a5c0);
    font-size: .78rem;
    line-height: 1.45;
}
.workspace-shell .ws-milestone-target-line strong {
    color: var(--text-main, #f5f8ff);
}
.workspace-shell .ws-milestone-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.workspace-shell .ws-milestone-metric-grid > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(139, 168, 215, .18);
    border-radius: 10px;
    background: rgba(7, 17, 34, .48);
}
.workspace-shell .ws-milestone-metric-grid strong,
.workspace-shell .ws-milestone-metric-grid span {
    display: block;
}
.workspace-shell .ws-milestone-metric-grid strong {
    color: var(--text-main, #f5f8ff);
    font-size: 1rem;
}
.workspace-shell .ws-milestone-metric-grid span {
    margin-top: 3px;
    color: var(--text-muted, #92a5c0);
    font-size: .7rem;
}
.workspace-shell .ws-milestone-governance-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.workspace-shell .ws-milestone-governance-grid > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(139, 168, 215, .15);
    border-radius: 10px;
    background: rgba(10, 22, 43, .5);
}
.workspace-shell .ws-milestone-governance-grid > div > span:first-child {
    color: var(--text-muted, #92a5c0);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.workspace-shell .ws-milestone-governance-grid .status-pill {
    justify-self: start;
}
.workspace-shell .ws-milestone-governance {
    position: relative;
}
.workspace-shell .ws-milestone-governance > summary {
    list-style: none;
    cursor: pointer;
}
.workspace-shell .ws-milestone-governance > summary::-webkit-details-marker {
    display: none;
}
.workspace-shell .ws-milestone-governance-body {
    display: grid;
    gap: 10px;
    margin-top: 9px;
    padding: 12px;
    border: 1px solid rgba(139, 168, 215, .2);
    border-radius: 11px;
    background: rgba(6, 14, 28, .96);
}
.workspace-shell .ws-milestone-governance-body form,
.workspace-shell .ws-milestone-governance-body label {
    display: grid;
    gap: 7px;
}
.workspace-shell .ws-milestone-governance-body input,
.workspace-shell .ws-milestone-governance-body select {
    width: 100%;
}
.workspace-shell .ws-delivery-unit-section {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(139, 168, 215, .16);
}
.workspace-shell .ws-delivery-unit-list {
    display: grid;
    gap: 8px;
}
.workspace-shell .ws-delivery-unit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 11px;
    border: 1px solid rgba(139, 168, 215, .16);
    border-radius: 11px;
    background: rgba(8, 18, 36, .48);
    color: inherit;
    text-decoration: none;
}
.workspace-shell .ws-delivery-unit:hover,
.workspace-shell .ws-delivery-unit:focus-visible {
    border-color: rgba(124, 165, 255, .64);
    background: rgba(14, 29, 56, .72);
    outline: none;
}
.workspace-shell .ws-delivery-unit-copy,
.workspace-shell .ws-delivery-unit-copy strong,
.workspace-shell .ws-delivery-unit-copy small,
.workspace-shell .ws-delivery-unit-values span,
.workspace-shell .ws-delivery-unit-values strong,
.workspace-shell .ws-delivery-unit-values small {
    display: block;
}
.workspace-shell .ws-delivery-unit-copy {
    min-width: 0;
}
.workspace-shell .ws-delivery-unit-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workspace-shell .ws-delivery-unit-copy small,
.workspace-shell .ws-delivery-unit-values small {
    margin-top: 3px;
    color: var(--text-muted, #92a5c0);
    font-size: .68rem;
}
.workspace-shell .ws-delivery-unit-values {
    display: flex;
    align-items: stretch;
    gap: 7px;
}
.workspace-shell .ws-delivery-unit-values > span {
    min-width: 72px;
    padding: 7px 8px;
    border: 1px solid rgba(139, 168, 215, .16);
    border-radius: 9px;
    text-align: right;
}
.workspace-shell .ws-delivery-unit-values > .status-pill {
    display: grid;
    align-content: center;
}
@media (max-width: 1180px) {
    .workspace-shell .ws-delivery-unit {
        grid-template-columns: 1fr;
    }
    .workspace-shell .ws-delivery-unit-values {
        justify-content: flex-start;
    }
}
@media (max-width: 720px) {
    .workspace-shell .ws-milestone-metric-grid,
    .workspace-shell .ws-milestone-governance-grid {
        grid-template-columns: 1fr;
    }
    .workspace-shell .ws-delivery-unit-values {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
