.section {
      background: #fff;
      border: 1px solid #e5e7eb;
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 24px;
    }
    .section-title {
      font-size: 18px;
      font-weight: 600;
      color: #4f46e5;
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 2px solid #f3f4f6;
    }
    .nav-bar {
      display: flex;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }
    .button {
      padding: 10px 20px;
      border-radius: 8px;
      border: none;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
      display: inline-block;
    }
    .button.primary {
      background: #3b82f6;
      color: white;
    }
    .button.primary:hover {
      background: #2563eb;
    }
    .button.secondary {
      background: #f3f4f6;
      color: #374151;
      border: 1px solid #d1d5db;
    }
    .button.secondary:hover {
      background: #e5e7eb;
    }
    .date-picker-container {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .date-input {
      padding: 10px 16px;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      font-size: 14px;
      min-width: 180px;
    }
    .date-input:focus {
      outline: none;
      border-color: #3b82f6;
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 16px;
      margin-bottom: 24px;
    }
    .stat-card {
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      padding: 16px;
      text-align: center;
    }
    .stat-card.highlight {
      background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
      border-color: #93c5fd;
    }
    .stat-value {
      font-size: 28px;
      font-weight: 700;
      color: #111827;
    }
    .stat-value.success {
      color: #059669;
    }
    .stat-value.warning {
      color: #d97706;
    }
    .stat-value.error {
      color: #dc2626;
    }
    .stat-label {
      font-size: 13px;
      color: #6b7280;
      margin-top: 4px;
    }
    .stat-sub {
      font-size: 12px;
      color: #6b7280;
      margin-top: 6px;
      line-height: 1.4;
    }
    .validation-list {
      min-height: 300px;
      max-height: calc(100vh - 450px);
      overflow-x: auto;
      overflow-y: auto;
    }
    .validation-list table {
      width: 100%;
      min-width: 1500px;
      font-size: 14px;
    }
    .validation-list th {
      padding: 12px 10px;
      font-size: 13px;
      white-space: nowrap;
      position: sticky;
      top: 0;
      z-index: 10;
      background: #f9fafb !important;
    }
    .validation-list td {
      padding: 10px 8px;
      font-size: 13px;
      white-space: nowrap;
    }
    .validation-list tr:hover {
      background-color: #f9fafb !important;
    }
    .badge {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 500;
    }
    .badge.success {
      background: #dcfce7;
      color: #166534;
    }
    .badge.error {
      background: #fee2e2;
      color: #991b1b;
    }
    .badge.up {
      background: #fef2f2;
      color: #dc2626;
    }
    .badge.down {
      background: #ecfdf5;
      color: #059669;
    }
    .badge.neutral {
      background: #f3f4f6;
      color: #6b7280;
    }
    .trend-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .empty-state {
      text-align: center;
      padding: 48px;
      color: #6b7280;
    }
    .message {
      padding: 12px 16px;
      border-radius: 8px;
      margin-bottom: 16px;
    }
    .message.info {
      background: #dbeafe;
      color: #1e40af;
      border: 1px solid #93c5fd;
    }
    .message.error {
      background: #fee2e2;
      color: #991b1b;
      border: 1px solid #fca5a5;
    }
    .loading {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px;
      color: #6b7280;
    }
    .loading::before {
      content: '';
      width: 20px;
      height: 20px;
      border: 2px solid #e5e7eb;
      border-top-color: #3b82f6;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-right: 12px;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    .pct-change {
      font-weight: 600;
    }
    .pct-change.positive {
      color: #dc2626;
    }
    .pct-change.negative {
      color: #059669;
    }
    .pct-change.zero {
      color: #6b7280;
    }
    .header-with-help {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .help-icon-btn {
      border: none;
      background: transparent;
      color: #6b7280;
      cursor: pointer;
      font-size: 14px;
      padding: 0;
      line-height: 1;
    }
    .help-icon-btn:hover {
      color: #2563eb;
    }
    .rule-modal {
      position: fixed;
      inset: 0;
      background: rgba(17, 24, 39, 0.45);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 16px;
    }
    .rule-modal.show {
      display: flex;
    }
    .rule-modal-content {
      background: #fff;
      border-radius: 12px;
      width: min(560px, 100%);
      max-height: 80vh;
      overflow: auto;
      border: 1px solid #e5e7eb;
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
    .rule-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 18px;
      border-bottom: 1px solid #e5e7eb;
    }
    .rule-modal-title {
      font-size: 16px;
      font-weight: 600;
      color: #111827;
    }
    .rule-modal-close {
      border: none;
      background: transparent;
      font-size: 20px;
      cursor: pointer;
      color: #6b7280;
    }
    .rule-modal-body {
      padding: 16px 18px;
      color: #374151;
      font-size: 14px;
      line-height: 1.65;
      white-space: pre-line;
    }
    @media (max-width: 480px) {
      .section {
        padding: 12px;
        margin-bottom: 12px;
      }
      .section-title {
        font-size: 15px;
        margin-bottom: 12px;
      }
      .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
      }
      .stat-card {
        padding: 12px;
      }
      .stat-value {
        font-size: 22px;
      }
      .stat-label {
        font-size: 11px;
      }
      .nav-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
      }
      .date-picker-container {
        flex-direction: column;
        align-items: stretch;
      }
      .date-input {
        width: 100%;
      }
      .validation-list {
        max-height: calc(100vh - 380px);
      }
      .validation-list table {
        min-width: 100%;
        font-size: 13px;
      }
      .validation-list thead {
        display: none;
      }
      .validation-list tbody tr {
        display: block;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        margin-bottom: 8px;
        padding: 10px;
        background: #fff;
      }
      .validation-list tbody td {
        display: block;
        padding: 4px 0;
        border: none;
        font-size: 14px;
      }
      .validation-list tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6b7280;
        margin-right: 8px;
      }
    }

.tv-page { padding-bottom: 40px; }
.tv-kvs, .tv-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 8px;
}
.tv-kvs div, .tv-metrics div { display: flex; flex-direction: column; gap: 4px; }
.tv-kvs b, .tv-metrics b { font-size: 16px; color: #111827; word-break: break-word; }
.tv-kvs span, .tv-metrics span { font-size: 11px; color: #9ca3af; }
.tv-note { font-size: 13px; color: #6b7280; margin: 12px 0 0; line-height: 1.5; }
.tv-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tv-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}
.tv-name { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 10px; }
.tv-chart { width: 100%; height: 56px; margin: 10px 0 0; display: block; }
.tv-metrics { grid-template-columns: 1fr; }
.tv-prompt-wrap { margin-top: 12px; }
.tv-prompt-wrap summary { cursor: pointer; color: #4f46e5; font-size: 14px; font-weight: 600; }
.tv-prompt {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.55;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  max-height: 280px;
  overflow: auto;
  color: #374151;
}
.tv-accuracy { overflow-x: auto; }
.tv-accuracy table { min-width: 640px; }
.tv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tv-table th, .tv-table td { padding: 8px; border-bottom: 1px solid #f3f4f6; text-align: left; white-space: nowrap; }
.tv-table th { color: #6b7280; font-weight: 600; }
.tv-cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.tv-cal-run { margin-left: auto; }
.tv-cal-nav b { min-width: 88px; text-align: center; }
.tv-cal-week, .tv-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tv-cal-week { margin-bottom: 4px; color: #9ca3af; font-size: 12px; text-align: center; }
.tv-cal-cell {
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d1d5db;
  font-size: 13px;
}
button.tv-cal-cell { cursor: pointer; color: #111827; background: #f3f4f6; }
button.tv-cal-cell.is-up { background: #dcfce7; color: #166534; }
button.tv-cal-cell.is-down { background: #fee2e2; color: #991b1b; }
button.tv-cal-cell.is-wait { background: #f3f4f6; color: #6b7280; }
button.tv-cal-cell.is-selected { outline: 2px solid #4f46e5; }
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (max-width: 900px) {
  .tv-kvs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tv-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tv-kvs { grid-template-columns: 1fr 1fr; }
  .page-title { align-items: flex-start; flex-direction: column; }
}
