html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* ——— Страница «Главная» ——— */
.home-page {
    padding: 1.5rem;
}

.home-page h1 {
    margin: 0;
    font-size: 2rem;
}

/* ——— Страница «Панель» ——— */
.paint-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    overflow: hidden;
}

.paint-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px 10px;
    background: #2c2c2c;
    flex-shrink: 0;
}

.paint-canvas-area {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
}

.paint-status {
    padding: 4px 10px;
    background: #1e1e1e;
    font-size: 11px;
    color: #888;
    flex-shrink: 0;
}

.paint-label {
    font-size: 12px;
    color: #ccc;
}

.paint-sep {
    width: 1px;
    height: 24px;
    background: #555;
    margin: 0 4px;
}

.paint-select {
    height: 26px;
    font-size: 13px;
    border-radius: 3px;
    border: 1px solid #555;
    background: #3a3a3a;
    color: #eee;
    padding: 0 4px;
}

/* Кнопки-инструменты (нажатая подсвечивается классом paint-tool-active) */
.paint-tool-btn {
    background: #3a3a3a;
    color: #eee;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s;
}

.paint-tool-btn:hover {
    background: #505050;
}

.paint-tool-active {
    background: #1a73e8 !important;
    border-color: #1a73e8 !important;
    color: white !important;
}

/* Кнопки-команды справа на тулбаре */
.paint-cmd {
    font-size: 12px;
    padding: 3px 10px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    line-height: 1.5;
}

.paint-cmd-gray { background: #555; }
.paint-cmd-green { background: #27ae60; }
.paint-cmd-teal { background: #16a085; }
.paint-cmd-red { background: #c0392b; }
.paint-cmd-blue { background: #2980b9; }
.paint-cmd-violet { background: #8e44ad; }
