/* Right Column: Title and details */
.structured-tl-content-col {
  flex: 1;
  min-width: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 4px;
  padding-bottom: 4px;
}

.structured-tl-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.structured-tl-range {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.3;
}

.structured-tl-repeat-icon,
.structured-tl-repeat,
.tl-repeat-icon,
[data-action="repeat-timelog"] {
  display: none !important;
  visibility: hidden !important;
}

.structured-tl-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  line-height: 1.25;
  margin: 1px 0 3px 0;
  letter-spacing: -0.015em;
  transition: color 0.15s ease;
  word-break: break-word;
}

.structured-tl-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 2px;
  line-height: 1.35;
  background: rgba(0, 0, 0, 0.03);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  max-width: fit-content;
}

.structured-tl-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.structured-tl-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  line-height: 1.2;
}

.structured-tl-badge.roi {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.structured-tl-badge.energy.pos {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.structured-tl-badge.energy.neg {
  background: rgba(239, 68, 68, 0.10);
  color: #dc2626;
}

.structured-tl-badge.active-live {
  background: rgba(16, 185, 129, 0.2);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.4);
  animation: pulseOpacity 1.5s infinite ease-in-out;
}

@keyframes pulseOpacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Empty State */
.structured-tl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.structured-tl-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.8;
}

.structured-tl-empty-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.structured-tl-empty-sub {
  font-size: 0.84rem;
  max-width: 360px;
  line-height: 1.45;
}

/* Mobile & Small Screen Adaptation */
@media (max-width: 640px) {
  .structured-tl-time-col {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    padding-right: 8px;
  }
  .structured-tl-time-mark,
  .structured-tl-inter-hour {
    font-size: 0.72rem;
  }
  .structured-tl-spine-col {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
  }
  .structured-tl-capsule {
    width: 42px;
  }
  .structured-tl-icon {
    font-size: 1.25rem;
  }
  .structured-tl-content-col {
    padding-left: 12px;
  }
  .structured-tl-title {
    font-size: 1.02rem;
  }
  .structured-tl-range {
    font-size: 0.78rem;
  }
  .structured-tl-gap-text {
    font-size: 0.76rem;
  }
}

/* Mode 4: Gemini API Insights */
.period-insights-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.period-insights-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.period-insights-content {
  background: linear-gradient(135deg, rgba(47, 158, 119, 0.07), rgba(108, 122, 224, 0.07));
  border: 1px solid rgba(108, 122, 224, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-primary);
}

/* PIXEL FOLD & MOBILE TOUCH RESPONSIVENESS (1 Bucket Per Row · 3 Categories Per Row) */
@media (min-width: 601px) and (max-width: 1080px) {
  /* Pixel Fold Unfolded Square View (~840px - 1080px) */
  .tl-category-grid.tl-buckets-board {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .tl-bucket-block {
    padding: 5px 6px 6px !important;
  }
  .tl-bucket-cats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  .tl-cat-btn {
    min-height: 44px !important;
    height: 44px !important;
    padding: 5px 5px !important;
    gap: 4px !important;
  }
  .tl-cat-icon {
    font-size: 1.15rem !important;
    width: 20px !important;
    height: 20px !important;
  }
  .tl-cat-label {
    font-size: 0.8rem !important;
  }
}

@media (min-width: 1081px) {
  /* Desktop Wide View */
  .tl-category-grid.tl-buckets-board {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .tl-bucket-block {
    padding: 6px 8px 8px !important;
  }
  .tl-bucket-cats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .tl-cat-btn {
    min-height: 44px !important;
    height: 44px !important;
    padding: 5px 7px !important;
    gap: 5px !important;
  }
  .tl-cat-icon {
    font-size: 1.18rem !important;
    width: 20px !important;
    height: 20px !important;
  }
  .tl-cat-label {
    font-size: 0.81rem !important;
  }
}

@media (max-width: 600px) {
  /* Pixel Fold Folded Cover Screen */
  .time-logger-card {
    padding: 6px 8px !important;
  }
  .tl-category-grid.tl-buckets-board {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
  }
  .tl-bucket-block {
    padding: 4px 4px 5px !important;
  }
  .tl-bucket-cats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  .tl-cat-btn {
    min-height: 40px !important;
    height: 40px !important;
    padding: 4px 5px !important;
    gap: 4px !important;
  }
  .tl-cat-icon {
    font-size: 1.1rem !important;
    width: 20px !important;
    height: 20px !important;
  }
  .tl-cat-label {
    font-size: 0.72rem !important;
  }
  .tl-live-timer-display {
    font-size: 1.45rem !important;
  }
  .tl-dock-controls {
    width: 100%;
    min-width: 100%;
  }
  .tl-btn-actions {
    width: auto;
    justify-content: flex-end;
    gap: 12px;
  }
  .btn-stop-timer,
  .btn-note-timer,
  .btn-discard-timer {
    width: 98px !important;
    min-width: 98px !important;
    max-width: 98px !important;
    height: 34px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  .btn-discard {
    flex: 1;
    height: 36px;
  }
  .tl-dock-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .tl-diy-saved-wrap {
    justify-content: space-between;
  }
}




