:root {
    --bg-main: #121212;
    --bg-sidebar: #1e1e1e;
    --bg-header: #252525;
    --bg-panel: #2a2a2a;
    --accent: #bb86fc;
    --accent-dark: #3700b3;
    --text-main: #e1e1e1;
    --text-dim: #a0a0a0;
    --border: #333;
    --hover: #444;
    --active: #555;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header */
#main-header {
    background-color: var(--bg-header);
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
}

.logo {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.2rem;
}

.menu-bar button {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 5px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.menu-bar button:hover {
    background-color: var(--hover);
}

.project-info {
    font-size: 0.85rem;
    color: var(--text-dim);
}

#project-name {
    margin-right: 15px;
    cursor: pointer;
}

/* Main Layout */
#editor-container {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebars */
aside {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

#tool-sidebar {
    width: 150px;
    padding: 10px 0;
}

#properties-sidebar {
    width: 250px;
    border-right: none;
    border-left: 1px solid var(--border);
}

.tool-group {
    display: grid;
    grid-template-columns: repeat(3, 40px);
    justify-content: center;
    gap: 10px;
}

.separator {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

#tool-info {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: var(--bg-panel);
}

.tool-info-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 6px;
}

.tool-info-text {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.3;
}

.tool-btn {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-main);
    font-size: 1.4rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-btn:hover {
    background: var(--hover);
}

.tool-btn.active {
    background: var(--accent-dark);
    border-color: var(--accent);
}

/* Canvas Area */
#canvas-wrapper {
    flex: 1;
    background-color: #1a1a1a;
    position: relative;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(45deg, #1f1f1f 25%, transparent 25%),
        linear-gradient(-45deg, #1f1f1f 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1f1f1f 75%),
        linear-gradient(-45deg, transparent 75%, #1f1f1f 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

#canvas-container {
    background-color: transparent;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    cursor: crosshair;
}

/* Panels */
.panel {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-header h3 {
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
}

.panel-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.panel.collapsed .panel-body {
    display: none;
}

.panel.collapsed .panel-toggle {
    color: var(--accent);
}

.color-preview {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.color-square {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    cursor: pointer;
}

#primary-color {
    background-color: #ffffff;
}

#secondary-color {
    background-color: #000000;
    z-index: 1;
    margin-left: -20px;
    margin-top: 10px;
}

#color-input {
    width: 100%;
    height: 30px;
    border: none;
    background: var(--bg-panel);
    cursor: pointer;
}

/* Layers */
#layer-list {
    list-style: none;
}

.layer-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 0.85rem;
    gap: 10px;
    flex-wrap: wrap;
}

.layer-item.active {
    border-color: var(--accent);
    background: var(--active);
}

/* Timeline */
#timeline-container {
    height: 160px;
    background-color: var(--bg-header);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.timeline-controls {
    padding: 6px 14px;
    background: linear-gradient(180deg, #2a2a2a, #1f1f1f);
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid #2b2b2b;
}

.timeline-controls button {
    background: #1f1f1f;
    border: 1px solid #333;
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s;
    min-width: 34px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.timeline-controls button:hover {
    background: #2a2a2a;
    border-color: var(--accent);
}

.timeline-controls button:active {
    background: #333;
}

.timeline-btn .icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-prev { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M19 5L9 12l10 7'/><path d='M5 5v14'/></svg>"); }
.icon-next { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 5l10 7-10 7'/><path d='M19 5v14'/></svg>"); }
.icon-plus { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5v14'/><path d='M5 12h14'/></svg>"); }
.icon-clone { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='7' y='7' width='10' height='10' rx='1'/><rect x='3' y='3' width='10' height='10' rx='1'/></svg>"); }


#frame-list {
    flex: 1;
    display: flex;
    padding: 8px 12px;
    gap: 8px;
    overflow-x: auto;
}

.frame-thumb {
    min-width: 88px;
    height: 88px;
    background: linear-gradient(180deg, #141414, #0f0f0f);
    border: 1px solid #2b2b2b;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
}

.frame-thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(187, 134, 252, 0.4);
}

/* Modals */
.hidden {
    display: none !important;
}

#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--bg-panel);
    width: 400px;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.transform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.transform-action {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.transform-action:hover {
    border-color: var(--accent);
    background: var(--active);
}

button.primary {
    background: var(--accent);
    color: #000;
    font-weight: bold;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
}

button.primary:hover {
    background: #d070ff;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dim);
}

.form-group input {
    padding: 5px;
    border-radius: 4px;
}

.form-group input[type="number"] {
    width: 100%;
    background: var(--bg-panel);
    color: var(--text-main);
    border: 1px solid var(--border);
}

/* Frame thumbnails */
.frame-thumb {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.frame-thumb.active {
    color: var(--accent);
    font-weight: bold;
}

.frame-canvas {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    border: 1px solid #1b1b1b;
    border-radius: 4px;
    background-image:
        linear-gradient(45deg, #1c1c1c 25%, transparent 25%),
        linear-gradient(-45deg, #1c1c1c 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1c1c1c 75%),
        linear-gradient(-45deg, transparent 75%, #1c1c1c 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

.timeline-btn .icon {
    width: 16px;
    height: 16px;
}

.icon-play { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polygon points='7,5 19,12 7,19'/></svg>"); }
.icon-pause { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round'><path d='M8 5v14'/><path d='M16 5v14'/></svg>"); }

/* Layer visibility icon */
.layer-item .visibility {
    cursor: pointer;
    user-select: none;
}

.layer-item .name {
    flex: 1;
}

.layer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.layer-actions button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.layer-actions button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.layer-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #232323;
    border: 1px dashed #333;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.layer-group .group-title {
    flex: 1;
    font-weight: 600;
    color: #c9b6ff;
}

.layer-group .group-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
}

.layer-group .group-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.layer-blend {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 0.75rem;
}

.layer-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 22px;
}

.layer-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.layer-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.layer-controls input[type="range"] {
    flex: 1;
}

.layer-btn .icon {
    width: 14px;
    height: 14px;
}

.icon-eye { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s4-6 10-6 10 6 10 6-4 6-10 6-10-6-10-6z'/><circle cx='12' cy='12' r='3'/></svg>"); }
.icon-eye-off { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12s4-6 9-6c2.5 0 4.7 1 6.5 2.5'/><path d='M21 12s-4 6-9 6c-2.5 0-4.7-1-6.5-2.5'/><path d='M3 3l18 18'/></svg>"); }
.icon-lock { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2'><rect x='5' y='10' width='14' height='10' rx='2'/><path d='M8 10V7a4 4 0 0 1 8 0v3'/></svg>"); }
.icon-unlock { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2'><rect x='5' y='10' width='14' height='10' rx='2'/><path d='M8 10V7a4 4 0 0 1 7-2'/></svg>"); }
.icon-up { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 5l-6 6h12z'/></svg>"); }
.icon-down { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 19l6-6H6z'/></svg>"); }

#add-layer {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
}

#add-layer:hover {
    background: var(--accent);
    color: #000;
}


/* Phase 2 UI additions */
.tool-btn.small {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

.tool-btn .icon {
    display: block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tool-btn.small .icon {
    width: 16px;
    height: 16px;
}

.icon-pencil { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20l4-1 10-10-3-3L5 16l-1 4z'/><path d='M13 7l3 3'/></svg>"); }
.icon-eraser { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 15l6-6 7 7-3 3H6z'/><path d='M14 6l4 4'/></svg>"); }
.icon-bucket { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 7h12l-2 12H8L6 7z'/><path d='M9 7l3-3 3 3'/></svg>"); }
.icon-picker { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='7' cy='17' r='3'/><path d='M10 14l7-7 2 2-7 7'/></svg>"); }
.icon-line { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round'><path d='M4 20L20 4'/></svg>"); }
.icon-rect { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2'><rect x='4' y='6' width='16' height='12' rx='1' ry='1'/></svg>"); }
.icon-ellipse { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2'><ellipse cx='12' cy='12' rx='7' ry='5'/></svg>"); }
.icon-spray { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e1e1e1'><circle cx='6' cy='8' r='1.5'/><circle cx='10' cy='6' r='1.2'/><circle cx='14' cy='8' r='1.3'/><circle cx='8' cy='12' r='1.2'/><circle cx='12' cy='12' r='1.5'/><circle cx='16' cy='12' r='1.1'/></svg>"); }
.icon-dither { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e1e1e1'><rect x='5' y='5' width='4' height='4'/><rect x='11' y='11' width='4' height='4'/><rect x='17' y='5' width='2' height='2'/><rect x='5' y='17' width='2' height='2'/></svg>"); }
.icon-shade { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2'><path d='M12 4a8 8 0 1 0 0 16V4z'/><circle cx='12' cy='12' r='8'/></svg>"); }
.icon-replace { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12a6 6 0 0 1 10-4'/><path d='M20 12a6 6 0 0 1-10 4'/><path d='M14 4h6v6'/><path d='M10 20H4v-6'/></svg>"); }
.icon-lasso { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 7c-3 2-3 8 2 10 5 2 10-2 8-7-2-5-7-4-10-3'/><path d='M9 18l-2 2'/></svg>"); }
.icon-wand { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20l8-8'/><path d='M15 5l1.5 3 3 1.5-3 1.5L15 14l-1.5-3-3-1.5 3-1.5z'/></svg>"); }
.icon-move { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3v18'/><path d='M3 12h18'/><path d='M12 3l-3 3'/><path d='M12 3l3 3'/><path d='M12 21l-3-3'/><path d='M12 21l3-3'/><path d='M3 12l3-3'/><path d='M3 12l3 3'/><path d='M21 12l-3-3'/><path d='M21 12l-3 3'/></svg>"); }
.icon-select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1e1e1' stroke-width='2' stroke-dasharray='3 2'><rect x='5' y='5' width='14' height='14'/></svg>"); }

.form-group.compact label {
    margin-bottom: 6px;
}

.toggle-line {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}

#brush-size {
    width: 100%;
}

#modal-container {
    background: radial-gradient(circle at 20% 20%, rgba(187, 134, 252, 0.12), rgba(0, 0, 0, 0.85) 60%);
}

.modal {
    background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%);
    width: 460px;
    border: 1px solid #3a3a3a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(187, 134, 252, 0.1) inset;
}

.modal-header {
    border-bottom: 1px solid #333;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.05rem;
    color: #e7d8ff;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.preset-card {
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    background: linear-gradient(135deg, #2b2b2b, #1f1f1f);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.preset-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(187, 134, 252, 0.2);
}

.preset-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(187, 134, 252, 0.4) inset;
}

.preset-size {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 6px;
}

.preset-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.custom-inputs {
    display: none;
    gap: 12px;
}

.custom-inputs.active {
    display: flex;
}
