@page {
  size: A4;
  margin: 12mm;
}

.work-asset-print-tools {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  color: #0f172a;
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.work-asset-print-tools button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.work-asset-print-tools button:hover {
  border-color: rgba(37, 99, 235, 0.5);
  background: #eff6ff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.work-asset-print-tools button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.work-asset-print-tools__primary {
  background: #0f172a !important;
  color: #ffffff !important;
}

.work-asset-print-tools__icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 640px) {
  .work-asset-print-tools {
    top: 10px;
    right: 10px;
    gap: 6px;
    padding: 6px;
  }

  .work-asset-print-tools button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
}

@media print {
  html,
  body {
    background: #ffffff !important;
    color: #111827 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.work-asset-a4-print-ready {
    width: auto !important;
    max-width: 186mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .work-asset-print-tools,
  [data-work-asset-print-exclude] {
    display: none !important;
  }

  img,
  svg,
  canvas,
  video,
  iframe {
    max-width: 100% !important;
  }

  table {
    width: 100% !important;
    border-collapse: collapse;
  }

  tr,
  img,
  figure,
  blockquote,
  pre,
  table,
  .card,
  .panel,
  .callout,
  .timeline-card,
  .metric-card,
  .summary-card,
  .content-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4 {
    break-after: avoid;
    page-break-after: avoid;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
