header {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 300px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: transparent;
    z-index: 100;
    pointer-events: none;
}

header>* {
    pointer-events: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.color-picker-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    background: rgba(22, 24, 30, 0.8);
    backdrop-filter: var(--glass-blur);
}

#controllerColor {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    cursor: pointer;
}

main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    /* Overridden by grid in user's latest edit or manual change? 
                       Actually, the user reverted the 'display: block' in step 32. 
                       Let's check the current style.css lines 145-146. */
    overflow: hidden;
}

/* Wait, I should double check lines 145-146 in style.css */
/* Lines 145-146 in style.css from step 129:
   145:     display: grid;
   146:     grid-template-columns: 1fr 300px;
*/

main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 300px;
    overflow: hidden;
}

.toolbar {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 340px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(22, 24, 30, 0.8);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    z-index: 90;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.title-group input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    outline: none;
    width: 250px;
    letter-spacing: 0.5px;
}

.title-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.workspace {
    position: relative;
    overflow: hidden;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

.controller-container {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#controllerSvgWrapper {
    width: 100%;
    height: auto;
}

#controllerSvgWrapper svg {
    width: auto;
    height: auto;
    max-width: min(600px, 90%);
    max-height: 75vh;
    display: block;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

#linesContainer,
#labelsLayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 10;
}

#labelsLayer>* {
    pointer-events: auto;
}

.side-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    margin: 20px;
    margin-right: 40px;
    margin-left: 0;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.side-panel-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.side-panel h3 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}