.timetable { display: flex; flex-direction: column; flex: 1; min-width: 0; height: 100%; animation: fadeIn 0.2s ease-out; } .timetable-scroll { flex: 1; overflow-y: auto; padding: 8px 0 16px; } .timetable-days-header { display: flex; align-items: center; padding: 6px 0 4px; border-bottom: 1px solid var(--border); flex-shrink: 0; } .timetable-days-spacer { flex-shrink: 0; } .timetable-day-label { flex-shrink: 0; text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 500; white-space: nowrap; overflow: hidden; } .timetable-day-today { color: var(--text); font-weight: 600; } .timetable-day-sep { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); pointer-events: none; } .timetable-inner { position: relative; cursor: default; user-select: none; } .timetable-inner-dragging { cursor: ns-resize; } .timetable-inner-block-dragging { cursor: grabbing; } .timetable-hour { position: absolute; left: 0; right: 0; height: 0; pointer-events: none; } .timetable-hour-label { position: absolute; left: 0; width: 44px; padding-right: 6px; text-align: right; font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.04em; transform: translateY(-50%); } .timetable-hour-line { position: absolute; left: 44px; right: 0; top: 0; height: 1px; background: var(--border); } .timetable-now-line { position: absolute; left: 44px; right: 0; height: 1px; background: var(--accent); opacity: 0.5; pointer-events: none; z-index: 1; } .timetable-now-line::before { content: ''; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 1; } .timetable-block { position: absolute; cursor: pointer; background: var(--accent-dim); border-left: 3px solid var(--accent); /* bg-colored top/bottom borders keep back-to-back entries visually separate */ border-top: 1px solid var(--bg); border-bottom: 1px solid var(--bg); background-clip: padding-box; border-radius: 0 7px 7px 0; padding: 3px 7px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 1px; transition: background 0.1s; } .timetable-block:hover { background: var(--accent-hover); } .timetable-block-live { border-left-color: var(--success); background: rgba(74, 222, 128, 0.1); } [data-theme="light"] .timetable-block-live { background: rgba(22, 163, 74, 0.09); } .timetable-block-resume { position: absolute; right: 6px; bottom: 5px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text); background: var(--bg-elevated); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); opacity: 0; transition: opacity 0.12s, background 0.12s, color 0.12s; cursor: pointer; } .timetable-block:hover .timetable-block-resume { opacity: 1; } .timetable-block-resume:hover:not(:disabled) { color: var(--accent-text); background: var(--accent); } .timetable-block-dragging .timetable-block-resume { opacity: 0; } .timetable-block-live .timetable-block-name { animation: pulse 2.5s ease-in-out infinite; } .timetable-block-dragging { cursor: grabbing; z-index: 5; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); transition: none; } .timetable-block-resize-handle { position: absolute; bottom: 0; left: 0; right: 0; height: 8px; cursor: ns-resize; } .timetable-block:hover .timetable-block-resize-handle::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; border-radius: 1px; background: var(--accent); opacity: 0.5; } .timetable-block-name { font-size: 12px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .timetable-block-dur { font-size: 11px; color: var(--text-dim); font-family: var(--font-mono); } .timetable-state { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-display); font-style: italic; color: var(--text-dim); font-size: 14px; } .timetable-state small { font-size: 12px; color: var(--text-muted); } .timetable-drag-preview { position: absolute; background: var(--accent-dim); border-left: 3px solid var(--accent); border-radius: 0 7px 7px 0; pointer-events: none; z-index: 2; display: flex; align-items: flex-start; padding: 3px 6px; } .timetable-drag-label { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; } .timetable-draft-form { position: absolute; z-index: 10; background: var(--bg-elevated); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.06); cursor: default; } .draft-time { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; } .draft-dur { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); } .draft-input { background: var(--bg-hover); border: none; border-radius: var(--radius-sm); padding: 7px 10px; font-size: 13px; color: var(--text); width: 100%; user-select: text; cursor: text; } .draft-input:focus { box-shadow: 0 0 0 2px var(--accent-dim); } .draft-actions { display: flex; gap: 6px; justify-content: flex-end; } .timetable-block-cont { opacity: 0.7; border-top: 2px dashed var(--border-strong); cursor: default; } .timetable-block-cont-hint { color: var(--text-muted); } .timetable-drop-preview { border: 1px dashed var(--border-strong); pointer-events: none; } .timetable-block-hl { border-color: var(--border-strong); filter: brightness(1.15); } .edit-actions-left { display: flex; gap: 6px; margin-right: auto; } .edit-icon-btn { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--text-dim); cursor: pointer; transition: background 0.12s, color 0.12s, border-color 0.12s; } .edit-icon-btn:hover:not(:disabled) { color: var(--text); border-color: var(--text-muted); background: var(--bg-hover); } .edit-icon-btn:active:not(:disabled) { transform: translateY(1px); } .edit-icon-btn:disabled { opacity: 0.5; cursor: default; } .edit-icon-btn-danger:hover:not(:disabled) { color: var(--danger); border-color: var(--danger); background: rgba(248, 113, 113, 0.1); } .draft-cancel { padding: 5px 12px; font-size: 12px; color: var(--text-muted); border-radius: 999px; cursor: pointer; } .draft-cancel:hover { color: var(--text); background: var(--bg-hover); } .draft-save { padding: 5px 16px; font-size: 12px; font-weight: 600; background: var(--cta-bg); color: var(--cta-text); border-radius: 999px; cursor: pointer; transition: filter 0.1s; } .draft-save:hover:not(:disabled) { filter: brightness(1.1); } .draft-save:disabled { opacity: 0.5; cursor: default; } .timetable-edit-form { cursor: default; } .edit-times { display: flex; align-items: center; gap: 6px; } .edit-times-sep { color: var(--text-muted); font-size: 12px; } .edit-select { flex: 1; min-width: 0; appearance: none; cursor: pointer; font-variant-numeric: tabular-nums; } .draft-task-chip { display: flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; font-size: 12px; font-weight: 500; color: var(--text); background: var(--accent-dim); border-radius: 999px; padding: 4px 11px; } .draft-task-chip-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .draft-task-chip-x { color: var(--text-muted); flex-shrink: 0; } .draft-task-chip:hover .draft-task-chip-x { color: var(--danger); } .edit-task-results { display: flex; flex-direction: column; gap: 1px; max-height: 130px; overflow-y: auto; background: var(--bg-hover); border-radius: var(--radius-sm); padding: 3px; } .edit-task-result { display: flex; flex-direction: column; gap: 1px; align-items: flex-start; padding: 5px 8px; border-radius: 3px; text-align: left; transition: background 0.1s; } .edit-task-result:hover { background: var(--bg-hover); } .edit-task-result-name { font-size: 12.5px; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; } .edit-task-result-meta { font-size: 10.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; } .edit-task-empty { font-size: 12px; color: var(--text-muted); font-style: italic; padding: 5px 8px; } .edit-now { display: flex; align-items: center; color: var(--success); cursor: default; } .popup-close { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-muted); cursor: pointer; transition: background 0.12s, color 0.12s; } .popup-close:hover { color: var(--text); background: var(--bg-hover); } /* room for the close button next to the time row */ .timetable-edit-form .edit-times { padding-right: 22px; } .timetable-day-head { display: flex; align-items: baseline; justify-content: center; gap: 4px; padding: 2px 0 4px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 11px; cursor: pointer; overflow: hidden; white-space: nowrap; } .timetable-day-head:hover { color: var(--text); background: var(--bg-hover); } .timetable-day-head-num { font-family: var(--font-display); font-size: 14px; color: var(--text-dim); } .timetable-day-head-today, .timetable-day-head-today .timetable-day-head-num { color: var(--accent); } /* narrow week columns: tighter padding, smaller type */ .timetable-block-narrow { padding: 2px 5px; } .timetable-block-narrow .timetable-block-name { font-size: 11px; } .timetable-block-narrow .timetable-block-dur { font-size: 10px; } .timetable-day-head-off, .timetable-day-head-off .timetable-day-head-num { color: var(--text-muted); opacity: 0.6; } .timetable-day-off { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient( -45deg, transparent 0 6px, color-mix(in srgb, var(--text-muted) 18%, transparent) 6px 7px ); pointer-events: none; } [data-theme="light"] .timetable-day-off { background: repeating-linear-gradient( -45deg, transparent 0 6px, color-mix(in srgb, var(--text-muted) 22%, transparent) 6px 7px ); }