/* タイマー表示エリア - timer-patterns.htmlから */
.timer-display-area,
#timer-display-container {
    position: fixed;
    right: 20px;
    top: 20px;
    display: none; /* 初期状態で非表示 - タイマー開始時にJSでflex表示 */
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: grab;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: 0 12px;
    padding-left: 21px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 46px;
    user-select: none;
}

/* ドラッグハンドル - 2列×3行 */
.timer-drag-handle {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 16px;
    cursor: grab;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1px;
    padding: 0;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.timer-drag-handle:hover {
    opacity: 0.6;
}

.timer-drag-handle:active {
    cursor: grabbing;
}

.timer-drag-handle span {
    width: 3px;
    height: 3px;
    background: #666;
    border-radius: 50%;
    display: block;
}

.timer-display-area:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #fafafa;
}

.timer-hide-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    padding: 0;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.timer-hide-btn:hover {
    opacity: 0.7;
}

.timer-display-time {
    font-size: var(--font-size-xl);
    font-weight: 500;
    color: #333;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    justify-content: center;
    cursor: pointer;
}

.timer-display-time .clock-icon {
    font-family: 'Material Icons';
    font-size: 18px;
    cursor: pointer;
    color: var(--mm-text-muted, #999);
    transition: color 0.2s;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.timer-display-time .clock-icon:hover {
    color: var(--mm-text-primary, #333);
}

.timer-display-time .time-text {
    cursor: pointer;
    outline: none;
    padding: 4px var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.timer-display-time .time-text:focus {
    outline: none;
}

/* 編集モード時のスタイル */
.timer-display-time .time-text[contenteditable="true"] {
    background: rgba(66, 133, 244, 0.1);
    border: 2px solid rgba(66, 133, 244, 0.5);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
    cursor: text;
    position: relative;
    top: -1px;
}

