body {
    background: #000000;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'PT Mono', monospace;
    color: #FFFFFF;
}

.app-shell {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-group {
    background: #000000;
    border: 2px solid #FFFFFF;
    border-radius: 1px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.palette-title {
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(2, 44px);
    gap: 10px;
    justify-content: start;
}

.color-swatch,
input[type="color"],
input[type="range"] {
    border: none;
    outline: none;
    border-radius: 1px;
}

.color-swatch {
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.color-swatch:hover,
.color-swatch.active {
    transform: translateY(-1px);
    outline: 2px solid #FFFFFF;
}

.canvas-wrapper {
    background: #000000;
    padding: 10px;
    border-radius: 1px;
    border: 2px solid #FFFFFF;
}

canvas {
    border: none;
    cursor: crosshair;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

label {
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 600;
}

.size-value {
    color: #FFFFFF;
    font-size: 0.92rem;
}

input[type="color"] {
    width: 100%;
    height: 42px;
    padding: 0;
    cursor: pointer;
    border: none;
    background: #000000;
    appearance: none;
    -webkit-appearance: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 1px;
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: #FFFFFF;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    margin-top: -6px;
    border-radius: 0;
}

input[type="range"]::-moz-range-track {
    height: 4px;
    background: #FFFFFF;
    border-radius: 2px;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border: 2px solid #000000;
    border-radius: 0;
}