.status-error .line-status-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--destructive);
  z-index: 1;
}

.status-error .line-status-icon {
  overflow: visible;
}

.status-error .line-status-icon::after {
  z-index: 0;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.8);
    opacity: 0.1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
:root {
  --background: #f6f7f9;
  --foreground: #1e1e1e;
  --border: #00000014;
  --input: #ffffff;
  --primary: #a50044;
  --primary-foreground: #ffffff;
  --secondary: #ffffff;
  --secondary-foreground: #1e1e1e;
  --muted: #f0f2f4;
  --muted-foreground: #8a8f97;
  --success: #2ecc71;
  --success-foreground: #ffffff;
  --accent: #a50044;
  --accent-foreground: #ffffff;
  --destructive: #e10600;
  --destructive-foreground: #ffffff;
  --warning: #f39c12;
  --warning-foreground: #1e1e1e;
  --card: #ffffff;
  --card-foreground: #1e1e1e;
  --sidebar: #f0f2f4;
  --sidebar-foreground: #1e1e1e;
  --sidebar-primary: #a50044;
  --sidebar-primary-foreground: #ffffff;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-family-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--background);
  color: var(--foreground);
}

.export-wrapper {
  min-height: 812px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--background);
  width: 100%;
}

.layout-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  margin-bottom: 60px;
}

.site-footer {
  width: 100%;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: auto;
}

.footer-content {
  width: 100%;
  max-width: 1280px;
  padding: 0 32px;
  text-align: center;
}

.footer-text {
  font-size: 14px;
  color: var(--muted-foreground);
  margin: 0 0 8px;
}

.footer-links {
  margin: 0;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-separator {
  margin: 0 8px;
  color: var(--border);
}

.container {
  width: 100%;
  max-width: 1280px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.navbar {
  width: 100%;
  height: 64px;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.nav-content {
  width: 100%;
  max-width: 1280px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-icon-wrapper {
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-timestamp {
  font-size: 13px;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--background);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted-foreground);
}

.nav-status-badge.is-active {
  border-color: rgba(225, 6, 0, 0.25);
  color: var(--destructive);
}

.nav-status-badge.is-normal {
  border-color: rgba(46, 204, 113, 0.3);
  color: var(--success);
}

.nav-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}

.nav-status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.2;
  animation: pulse 1.6s infinite ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.nav-status-check {
  display: flex;
  align-items: center;
  color: currentColor;
}

.nav-status-text {
  font-weight: 600;
}

.nav-metrics {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-metric {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 15px;
}

.nav-metric-value {
  font-weight: 700;
  font-size: 17px;
}

.nav-metric-label {
  color: var(--muted-foreground);
  font-size: 13px;
}

.metric-error {
  color: var(--destructive);
}

.metric-ok {
  color: var(--success);
}

.nav-metric-values {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

@media (max-width: 768px) {
  .nav-brand {
    font-size: 0;
    margin-left: -8px;
  }
  .nav-logo {
    width: 80px;
    height: 80px;
  }
  .nav-status-badge {
    gap: 0;
    margin-right: 8px;
  }
  .nav-status-text {
    display: none;
  }
  .nav-metric {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .nav-metric-values {
    flex-direction: row;
    gap: 2px;
  }
  .nav-metric-value {
    font-size: 16px;
  }
  .nav-metric-label {
    font-size: 10px;
  }
  .nav-metrics {
    gap: 6px;
  }
}

.nav-reliability {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--success);
  color: var(--success-foreground);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02), 0 0 12px rgba(46, 204, 113, 0.25);
  cursor: pointer;
}

.hero-section {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-header h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.hero-header p {
  font-size: 15px;
  color: var(--muted-foreground);
  margin-top: 8px;
}

.hero-meta-row {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.hero-meta-pill {
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  background-color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .lines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.line-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.line-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}

.line-card.status-ok::before {
  background-color: var(--success);
}

.line-card.status-error::before {
  background-color: var(--destructive);
}

.line-card.status-error {
  background-color: rgba(225, 6, 0, 0.015);
  border-color: rgba(225, 6, 0, 0.1);
}

.line-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.line-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.line-status-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.status-ok .line-status-icon {
  color: var(--success);
  background-color: rgba(46, 204, 113, 0.12);
  box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.3);
}

.status-error .line-status-icon {
  position: relative;
  color: var(--destructive);
  background-color: var(--destructive);
  box-shadow: none;
  border: none;
  width: 16px;
  height: 16px;
}

.status-error .line-status-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: rgba(225, 6, 0, 0.45);
  animation: pulse 1.4s infinite ease-out;
}

.status-error .line-status-icon .icon-16 {
  display: none;
}

.line-status-text {
  font-size: 13px;
  font-weight: 500;
}

.status-ok .line-status-text {
  color: var(--success);
}

.status-error .line-status-text {
  color: var(--destructive);
}

.line-secondary-meta {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 2px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title-meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-foreground);
  margin-left: auto;
}

.kpi-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  justify-items: stretch;
}

.kpi-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  min-height: 210px;
}

.kpi-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
}

.kpi-title {
  font-size: 13px;
  font-weight: 500;
}

.kpi-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: rgba(225, 6, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--destructive);
  box-shadow: 0 0 0 1px rgba(225, 6, 0, 0.2);
}

.kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: center;
}

.kpi-value {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--foreground);
}

.kpi-unit {
  font-size: 14px;
  color: var(--muted-foreground);
}

.kpi-trend {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-md);
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.kpi-trend.positive {
  background-color: rgba(46, 204, 113, 0.12);
  color: var(--success);
}

.kpi-trend.negative {
  background-color: rgba(225, 6, 0, 0.12);
  color: var(--destructive);
}

.two-column-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chart-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  height: 100%;
}

.chart-header {
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.chart-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
}

.chart-subtitle {
  font-size: 13px;
  color: var(--muted-foreground);
}

.bar-chart-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  width: 40px;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
}

.bar-track {
  flex: 1;
  height: 12px;
  background-color: var(--muted);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-xl);
}

.bar-fill-86 {
  width: 86%;
}

.bar-fill-74 {
  width: 74%;
}

.bar-fill-58 {
  width: 58%;
}

.bar-fill-42 {
  width: 42%;
}

.bar-fill-30 {
  width: 30%;
}

.bar-value {
  width: 40px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-align: right;
  white-space: nowrap;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 4px;
}

.analytics-subheader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted-foreground);
}

.line-chart-svg-container {
  width: 100%;
  height: 200px;
  position: relative;
  margin-top: 8px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top left, rgba(165, 0, 68, 0.06), transparent 55%);
  overflow: hidden;
}

.chart-container {
  width: 100%;
  height: 200px;
  position: relative;
  margin-top: 8px;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at top left, rgba(165, 0, 68, 0.06), transparent 55%);
}

.line-chart-grid {
  position: absolute;
  inset: 12px 12px 24px 40px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(0, 0, 0, 0.04);
}

.line-chart-x-axis {
  position: absolute;
  left: 40px;
  right: 12px;
  bottom: 4px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted-foreground);
}

.line-chart-y-axis-labels {
  position: absolute;
  top: 16px;
  bottom: 30px;
  left: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted-foreground);
}

.line-chart-svg {
  position: absolute;
  inset: 12px 12px 24px 40px;
}

.line-chart-grid-lines line {
  stroke: rgba(0, 0, 0, 0.04);
  stroke-width: 1;
}

.line-chart-polyline {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
}

.line-chart-area {
  fill: rgba(165, 0, 68, 0.1);
  stroke: none;
}

.line-chart-dot {
  fill: var(--card);
  stroke: var(--primary);
  stroke-width: 2;
}

.donut-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.donut-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0% 56%, var(--warning) 56% 78%, var(--destructive) 78% 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.donut-hole {
  width: 96px;
  height: 96px;
  background-color: var(--card);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-total {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.donut-label {
  font-size: 11px;
  color: var(--muted-foreground);
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot-primary {
  background-color: var(--primary);
}

.legend-dot-warning {
  background-color: var(--warning);
}

.legend-dot-destructive {
  background-color: var(--destructive);
}

.legend-value {
  margin-left: auto;
  color: var(--muted-foreground);
  font-weight: 400;
}

.icon-14,
.icon-16,
.icon-18,
.icon-20 {
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.icon-14 {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.icon-16 {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.icon-18 {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.icon-20 {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

/* Line detail page */
.line-detail-export {
  width: 100%;
  min-height: 100vh;
  background: var(--background);
}

.line-detail-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--background);
}

.line-detail-header {
  width: 100%;
  height: 64px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 5;
}

.line-detail-header > .line-detail-header-content {
  width: 100%;
  max-width: 1280px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.line-detail-header-content {
  width: 100%;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.line-detail-header-left,
.line-detail-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.line-detail-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.line-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.line-detail-header-right {
  gap: 24px;
}

.line-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.line-detail-header-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.line-detail-header-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
}

.line-detail-updated {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.line-detail-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--background);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted-foreground);
}

.line-detail-status-badge.is-active {
  border-color: rgba(225, 6, 0, 0.25);
  color: var(--destructive);
}

.line-detail-status-badge.is-normal {
  border-color: rgba(46, 204, 113, 0.3);
  color: var(--success);
}

.line-detail-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}

.line-detail-status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.2;
  animation: pulse 1.6s infinite ease-out;
}

.line-detail-status-check {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.line-detail-content {
  flex: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 32px 64px;
}

.line-detail-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 40px;
  border: 1px solid var(--border);
  margin-bottom: 48px;
  --hero-accent: var(--destructive);
}

.line-detail-hero.is-normal {
  --hero-accent: var(--success);
}

.line-detail-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-accent);
  opacity: 0.05;
}

.line-detail-hero-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
}

.line-detail-hero-icon {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  background: var(--hero-accent);
  color: var(--card);
  font-size: 42px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.line-detail-hero-line {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.line-detail-hero-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.line-detail-hero-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--hero-accent);
  position: relative;
}

.line-detail-hero-check {
  width: 20px;
  height: 20px;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.line-detail-hero-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--hero-accent);
  opacity: 0.2;
}

.line-detail-hero-subtitle {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 16px;
}

.line-detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  width: 100%;
}

.line-detail-section {
  margin-bottom: 48px;
}

.line-detail-section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.line-detail-incident-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.line-detail-incident-border {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--destructive);
}

.line-detail-incident-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.line-detail-incident-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 600;
}

.line-detail-badge-warning {
  background: var(--warning);
  color: var(--warning-foreground);
}

.line-detail-badge-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.line-detail-badge-destructive {
  background: var(--destructive);
  color: var(--destructive-foreground);
}

.line-detail-badge-info {
  background: var(--destructive);
  color: var(--destructive-foreground);
}

.line-detail-incident-date {
  font-size: 13px;
  color: var(--muted-foreground);
}

.line-detail-incident-title {
  font-size: 18px;
  margin: 0 0 8px;
}

.line-detail-incident-desc {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.line-detail-incident-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.line-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.line-detail-timeline {
  position: relative;
  padding-left: 24px;
}

.line-detail-timeline-line {
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.line-detail-timeline-item {
  margin-bottom: 28px;
}

.line-detail-timeline-item:last-child {
  margin-bottom: 0;
}

.line-detail-timeline-dot {
  position: absolute;
  transform: translate(-24px, 4px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: var(--background);
}

.line-detail-timeline-dot.is-active {
  border-color: var(--destructive);
}

.line-detail-timeline-time {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}

.line-detail-timeline-content {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
}

.line-detail-column-side {
  position: sticky;
  top: 120px;
  align-self: start;
}

.line-detail-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.line-detail-metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.line-detail-metric-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted-foreground);
}

.line-detail-metric-value {
  font-size: 30px;
  font-weight: 700;
}

.line-detail-metric-trend {
  margin-top: 6px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.line-detail-metric-trend-success {
  color: var(--success);
}

.line-detail-metric-trend-destructive {
  color: var(--destructive);
}

.line-detail-metric-trend-neutral {
  color: var(--muted-foreground);
}

.line-detail-chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.line-detail-chart-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.line-detail-chart-svg-wrapper {
  position: relative;
  overflow: visible;
}

.line-detail-chart-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
  gap: 4px;
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 12px;
}

.line-detail-donut {
  display: flex;
  gap: 24px;
  align-items: center;
}

.line-detail-donut-svg {
  position: relative;
  width: 140px;
  height: 140px;
}

.line-detail-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.line-detail-donut-value {
  font-size: 30px;
  font-weight: 700;
}

.line-detail-donut-label {
  font-size: 12px;
  color: var(--muted-foreground);
}

.line-detail-donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.line-detail-legend-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.line-detail-legend-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.line-detail-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.line-detail-legend-text,
.line-detail-legend-value {
  font-weight: 600;
}

.line-detail-empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--card);
  text-align: center;
  color: var(--muted-foreground);
}

.line-detail-empty-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--foreground);
}

@media (max-width: 1024px) {
  .line-detail-main-grid {
    grid-template-columns: 1fr;
  }

  .line-detail-column-side {
    position: static;
  }

  .line-detail-metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .line-detail-header {
    height: auto;
    padding: 12px 0;
  }

  .line-detail-header > .line-detail-header-content {
    padding: 0 16px 0 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .line-detail-header-left,
  .line-detail-header-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }

  .line-detail-header-right {
    padding-left: 20px;
  }

  .line-detail-header-divider {
    display: none;
  }

  .line-detail-updated-label {
    display: none;
  }

  .line-detail-status-badge {
    width: auto;
  }

  .line-detail-content {
    padding: 32px 16px 48px;
  }

  .line-detail-hero {
    padding: 24px;
  }

  .line-detail-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .line-detail-hero-icon {
    width: 72px;
    height: 72px;
    font-size: 32px;
  }

  .line-detail-hero-title {
    font-size: 26px;
    flex-wrap: wrap;
  }

  .line-detail-hero-subtitle {
    font-size: 14px;
  }

  .line-detail-main-grid {
    gap: 32px;
  }

  .line-detail-section {
    margin-bottom: 32px;
  }

  .line-detail-incident-card {
    padding: 20px;
  }

  .line-detail-incident-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .line-detail-incident-meta {
    flex-direction: column;
    gap: 12px;
  }

  .line-detail-timeline {
    padding-left: 16px;
  }

  .line-detail-timeline-dot {
    transform: translate(-18px, 4px);
  }

  .line-detail-metrics-grid {
    grid-template-columns: 1fr;
  }

  .line-detail-chart-card {
    padding: 20px;
  }

  .line-detail-donut {
    flex-direction: column;
    align-items: flex-start;
  }

  .line-detail-donut-svg {
    margin: 0 auto;
  }

  .line-detail-donut-legend {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .line-detail-header > .line-detail-header-content {
    padding: 0 12px;
  }

  .line-detail-back {
    font-size: 13px;
  }

  .line-detail-status-badge {
    width: 100%;
    justify-content: center;
  }

  .line-detail-hero {
    padding: 20px;
  }

  .line-detail-hero-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }

  .line-detail-hero-title {
    font-size: 24px;
  }

  .line-detail-incident-card {
    padding: 18px;
  }

  .line-detail-donut-svg {
    width: 120px;
    height: 120px;
  }
}

/* Cookies Consent Banner */
.cookies-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookies-banner-hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.cookies-banner-content {
  padding: 20px;
}

.cookies-banner-text {
  margin-bottom: 16px;
}

.cookies-banner-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 6px;
}

.cookies-banner-text p {
  font-size: 13px;
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.5;
}

.cookies-banner-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.cookies-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.cookies-btn:active {
  transform: scale(0.98);
}

.cookies-btn-accept,
.cookies-btn-reject {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
}

.cookies-btn-accept:hover,
.cookies-btn-reject:hover {
  opacity: 0.9;
}

.cookies-banner-link {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cookies-banner-link:hover {
  color: var(--primary);
}

/* Cookies Policy Page */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 32px;
}

.page-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--foreground);
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--foreground);
}

.policy-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--foreground);
}

.policy-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 12px;
}

.policy-section ul {
  margin: 16px 0;
  padding-left: 24px;
}

.policy-section li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}

.browser-links {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.browser-links li {
  margin-bottom: 8px;
}

.policy-section a {
  color: var(--primary);
  text-decoration: none;
}

.policy-section a:hover {
  text-decoration: underline;
}

.policy-actions {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: var(--primary) / 0.9;
}

.cookies-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.cookies-page-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.cookies-page-btn:active {
  transform: scale(0.98);
}

.cookies-page-btn-accept,
.cookies-page-btn-reject {
  background: var(--destructive);
  color: var(--destructive-foreground);
}

.cookies-page-btn-accept:hover,
.cookies-page-btn-reject:hover {
  opacity: 0.9;
}

@media (max-width: 480px) {
  .cookies-banner {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .cookies-banner-content {
    padding: 16px;
  }

  .cookies-banner-actions {
    flex-direction: column;
  }
}

/* PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  transform: translateY(0);
}

.pwa-install-banner-visible {
  transform: translateY(200px);
}

.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.pwa-install-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.pwa-install-icon img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.pwa-install-text {
  flex: 1;
}

.pwa-install-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--foreground);
  margin-bottom: 2px;
}

.pwa-install-description {
  font-size: 13px;
  color: var(--muted-foreground);
}

.pwa-install-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background 0.15s ease, color 0.15s ease;
}

.pwa-install-close:hover {
  background: var(--muted);
  color: var(--foreground);
}

.pwa-install-actions {
  display: flex;
  gap: 12px;
  padding: 0 20px 16px;
}

.pwa-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
  border: none;
}

.pwa-btn:active {
  transform: scale(0.98);
}

.pwa-btn-dismiss {
  background: var(--muted);
  color: var(--muted-foreground);
}

.pwa-btn-dismiss:hover {
  opacity: 0.8;
}

.pwa-btn-install {
  background: var(--primary);
  color: var(--primary-foreground);
}

.pwa-btn-install:hover {
  opacity: 0.9;
}

@media (max-width: 480px) {
  .pwa-install-content {
    padding: 12px 16px;
  }

  .pwa-install-icon {
    width: 40px;
    height: 40px;
  }

  .pwa-install-title {
    font-size: 14px;
  }

  .pwa-install-description {
    font-size: 12px;
  }

  .pwa-install-actions {
    padding: 0 16px 12px;
  }

  .pwa-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}
