.workspace {
    position: relative;
    width: 100%;
    min-height: 0;
    flex: 1;
    display: flex;
    overflow: hidden;
}

.browser-panel {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 3;
    width: auto;
    min-width: 180px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    pointer-events: none;
    user-select: none;
}

.panel-heading {
    pointer-events: auto;
    height: 25px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #c9dbe6;
    border-radius: 4px;
    color: #314d60;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 4px;
    width: 210px;
    box-shadow: 0 2px 6px rgba(18, 42, 60, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.heading-dots {
    color: #728e9f;
    letter-spacing: 2px;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.12s ease;
}

.heading-dots:hover {
    color: #167db4;
}

.tree {
    flex: 1;
    overflow: visible;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.tree-row {
    pointer-events: auto;
    height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d3e2ec;
    border-radius: 4px;
    color: #385365;
    font-size: 11px;
    white-space: nowrap;
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 1px 3px rgba(18, 42, 60, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    transition: all 0.12s ease;
}

.tree-row:hover {
    background: #f0f7fb;
    border-color: #b5d5e7;
    color: #126b96;
    box-shadow: 0 2px 5px rgba(18, 42, 60, 0.1);
}

.tree-root {
    margin-left: 0;
}

.tree-root strong {
    color: #213c4e;
    font-weight: 700;
}

.tree-child {
    margin-left: 14px;
}

.tree-grandchild {
    margin-left: 32px;
}

.tree-chevron {
    width: 10px;
    color: #7b95a6;
    font-size: 11px;
    line-height: 1;
    display: inline-block;
    text-align: center;
}

.tree-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #5c7e94;
}

.project-icon,
.sketch-icon {
    color: #1a82b3;
}

.tree-count {
    margin-left: 6px;
    color: #688597;
    background: #eef5f9;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: Consolas, monospace;
    font-size: 10px;
    font-weight: 600;
}

.sketch-tree-row {
    background: #e8f5fb;
    color: #0f6894;
    border: 1px solid #b7ddf0;
    border-left: 3px solid #1c8ec7;
    padding-left: 6px;
}

.sketch-tree-row:hover {
    background: #dbeef7;
    border-color: #9cd0ea;
    color: #0b557a;
}

.sketch-rows,
.body-rows {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.sketch-rows[hidden],
.body-rows[hidden],
#bodiesFolderRow[hidden] {
    display: none !important;
}

.body-icon {
    color: #5a97b4;
}

.body-tree-row {
    cursor: pointer;
}

.body-tree-row.is-selected {
    background: #e1f1fa;
    color: #0b5f88;
    border-color: #9bc9e4;
    border-left: 3px solid #1480b5;
    padding-left: 6px;
    font-weight: 600;
}

.body-tree-row.is-selected .body-icon {
    color: #1279ad;
}

.body-tree-row .tree-eye {
    margin-right: 0;
}

.tree-eye {
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0 2px 0 0;
    background: transparent;
    border: none;
    color: #648296;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.12s ease;
    flex: none;
}

.tree-eye:hover {
    color: #1279ad;
    background: rgba(18, 121, 173, 0.1);
}

.tree-eye svg {
    width: 12px;
    height: 12px;
    display: block;
}

.tree-eye .eye-open {
    fill: currentColor;
}

.tree-eye .eye-closed {
    display: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.3;
}

.tree-eye.is-hidden {
    color: #9cb2c0;
    opacity: 0.55;
}

.tree-eye.is-hidden .eye-open {
    display: none;
}

.tree-eye.is-hidden .eye-closed {
    display: block;
}

.root-children {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    width: 100%;
}

.root-children[hidden] {
    display: none !important;
}

.origin-children {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.origin-children[hidden] {
    display: none !important;
}

.origin-item-row {
    margin-left: 26px;
    padding: 0 6px 0 4px;
    gap: 5px;
    height: 22px;
    font-size: 11px;
    font-weight: 600;
    color: #385365;
}

.origin-item-row:hover {
    background: #eef6fa;
    border-color: #bad8e8;
    color: #116a95;
}

.tree-item-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.tree-item-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.tree-item-label {
    font-size: 11px;
    font-family: Consolas, monospace;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #2c4758;
}

.tree-row.is-item-hidden {
    opacity: 0.45;
}

.browser-bottom {
    display: none;
}
