/* ========== 編集パネル関連 ========== */
/* 時間設定用の編集パネル（モーダル） */

/* 時間編集パネル */
.editor {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 20px;
    display: none;
    z-index: 3;
    width: min(92vw, 360px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.editor h4 {
    margin: 0 0 16px;
    font-size: 18px;
    color: var(--ring-fg);
}

.editor .label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 6px;
    font-weight: 600;
}

.editor .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.editor .field {
    display: grid;
    grid-template-rows: auto auto;
}

.editor .numrow {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    gap: 8px;
}

.step {
    border: 0;
    border-radius: 8px;
    background: #f8f9fa;
    color: var(--fg);
    font-weight: 700;
    font-size: 20px;
    height: 48px;
    cursor: pointer;
    transition: background 0.2s;
}

.step:hover {
    background: #e9ecef;
}

.editor input {
    width: 100%;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--panel-border);
    background: #fff;
    color: var(--fg);
    font-size: 20px;
    text-align: center;
    font-weight: 600;
    height: 48px;
    box-sizing: border-box;
}

.presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 8px 0 16px;
}

.preset {
    border: 0;
    border-radius: 8px;
    background: #f8f9fa;
    color: var(--fg);
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.preset:hover {
    background: #e9ecef;
}

.editor .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.editor .actions button {
    padding: 12px 16px;
    border-radius: 8px;
    border: 0;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.editor .ok {
    background: var(--btn);
    color: var(--btn-text);
}

.editor .cancel {
    background: var(--btn-muted);
    color: #fff;
}
