/* ========== ボタン・操作部関連 ========== */
/* ユーザー操作に関わるボタン類とレイアウト */

/* 操作部 */
.controls {
    z-index: 2;
    width: min(92vw, 400px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
}

/* クイックプリセットボタン */
.quick-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 4px;
}

.quick-preset {
    appearance: none;
    border: 0;
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 600;
    background: #f8f9fa;
    color: var(--fg);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.quick-preset:hover {
    background: #e9ecef;
    border-color: var(--ring-fg);
}

.quick-preset:active {
    transform: scale(0.95);
}

.row {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 18px;
    font-weight: 700;
    background: var(--btn);
    color: var(--btn-text);
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

.btn.secondary {
    background: var(--btn-muted);
    color: #fff;
}

.btn.secondary:hover {
    background: #5a6268;
}

.sub {
    opacity: 0.7;
    font-size: 12px;
    text-align: center;
    margin-top: 4px;
    z-index: 1;
}

@media (max-width: 420px) {
    .btn {
        padding: 14px 14px;
        font-size: 16px;
    }
}
