/* Timeline styles */
.timeline {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    animation: fadeInUp 0.8s ease 0.4s both;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  
  .timelineScroll {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 12px;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .timelineScroll::-webkit-scrollbar {
    display: none;
  }
  
  .timelineInner {
    position: relative;
    min-width: 100%;
    width: max-content;
  }
  
  .refLine {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--highlight);
    box-shadow: 0 0 20px rgba(255,209,102,0.8);
    z-index: 10;
    cursor: ew-resize;
    animation: glow 2s ease-in-out infinite;
  }
  
  .refLineDragHandle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 44px;
    background: var(--highlight);
    border-radius: 8px;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #000;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s;
    touch-action: none;
  }
  
  .refLineDragHandle:hover {
    transform: translate(-50%, -50%) scale(1.1);
  }
  
  .refLabel {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--highlight);
    color: #000;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(255,209,102,0.5);
  }
  
  .zoneRow {
    display: flex;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid var(--grid);
    position: relative;
    animation: slideIn 0.5s ease both;
  }
  
  .zoneRow:nth-child(1) { animation-delay: 0.1s; }
  .zoneRow:nth-child(2) { animation-delay: 0.15s; }
  .zoneRow:nth-child(3) { animation-delay: 0.2s; }
  .zoneRow:nth-child(4) { animation-delay: 0.25s; }
  .zoneRow:nth-child(5) { animation-delay: 0.3s; }
  .zoneRow:nth-child(6) { animation-delay: 0.35s; }
  .zoneRow:last-child { border-bottom: none; }
  
  .zoneLabel {
    flex: 0 0 200px;
    padding-right: 16px;
    font-size: 14px;
    font-weight: 600;
    position: sticky;
    left: 0;
    background: var(--panel);
    z-index: 5;
    backdrop-filter: blur(10px);
  }
  
  .zoneMeta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
    font-family: var(--mono);
  }
  
  .hourStrip {
    display: flex;
    flex: 1;
    position: relative;
    min-width: 0;
  }
  
  .minCell {
    flex: 0 0 3px;
    height: 56px;
    border-left: 1px solid transparent;
    position: relative;
    transition: all 0.2s;
  }
  
  .minCell.min5 {
    border-left-color: rgba(255,255,255,0.05);
  }
  
  .minCell.min15 {
    border-left-color: rgba(255,255,255,0.1);
  }
  
  .minCell.hourMark {
    border-left: 2px solid rgba(255,255,255,0.25);
    flex: 0 0 4px;
  }
  
  .minCell:hover {
    background: rgba(255,255,255,0.1);
    transform: scaleY(1.05);
  }
  
  .minCell.work {
    background: var(--work);
  }
  
  .minCell.sleep {
    background: var(--sleep);
  }
  
  .minCell.current {
    background: rgba(255,209,102,0.3);
    animation: pulse 1.5s ease-in-out infinite;
  }
  
  .hourLabel {
    position: absolute;
    top: -22px;
    left: 2px;
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    font-family: var(--mono);
  }
  
  .timeMarker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--highlight);
    color: #000;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--mono);
    white-space: nowrap;
    pointer-events: none;
    z-index: 12;
    box-shadow: 0 4px 12px rgba(255,209,102,0.6);
  }
  