*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family, 'Helvetica, sans-serif');
  font-size: var(--font-size, 12px);
  line-height: var(--line-height, 1.4);
  color: var(--text-color, #202124);
  margin: 0;
  padding: 20px 24px;
  background-color: var(--bg-color, #ffffff);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.email-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.email-header {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color, #e8eaed);
  margin-bottom: 20px;
}

.email-header h1 {
  margin: 0 0 12px 0;
  font-size: var(--header-font-size, 18px);
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  word-break: break-word;
}

.email-meta {
  font-size: var(--meta-font-size, 12px);
  color: #5f6368;
}

.email-meta div {
  margin-bottom: 4px;
  line-height: 1.5;
}

.email-meta strong {
  color: #3c4043;
  font-weight: 600;
  min-width: 50px;
  display: inline-block;
}
.email-body {
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.6;
}

.email-body p {
  margin: 0 0 1em 0;
}

.email-body a {
  color: #1a73e8;
  text-decoration: underline;
}
.email-body table {
  border-collapse: collapse;
  width: auto;
  max-width: 100%;
  margin: 8px 0;
}

.email-body td,
.email-body th {
  padding: 8px 12px;
  vertical-align: top;
  border: 1px solid #e0e0e0;
}
.email-body ul,
.email-body ol {
  margin: 0.5em 0;
  padding-left: 2em;
}

.email-body li {
  margin-bottom: 0.25em;
}
.email-body blockquote {
  margin: 1em 0;
  padding: 0 0 0 16px;
  border-left: 3px solid #dadce0;
  color: #5f6368;
}
.email-body pre,
.email-body code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  background-color: #f8f9fa;
  border-radius: 3px;
}

.email-body pre {
  padding: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.email-body code {
  padding: 2px 6px;
}
.email-body hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 1.5em 0;
}
.attachment-section {
  margin-top: 24px;
  padding: 16px;
  background-color: var(--attachment-bg, #f9f9f9);
  border: 1px solid var(--attachment-border, #eeeeee);
  border-radius: 6px;
  page-break-inside: avoid;
}

.attachment-section h3 {
  margin: 0 0 12px 0;
  font-size: var(--attachment-header-size, 14px);
  font-weight: 600;
  color: #3c4043;
}

.attachment-item {
  padding: 8px 0;
  border-bottom: 1px solid #eeeeee;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.attachment-item:last-child {
  border-bottom: none;
}

.attachment-icon {
  margin-right: 8px;
  font-weight: bold;
  color: #5f6368;
}

.attachment-name {
  font-weight: 500;
  color: #1a1a1a;
  word-break: break-all;
}

.attachment-details,
.attachment-type {
  font-size: var(--attachment-detail-size, 11px);
  color: #5f6368;
  margin-left: 8px;
}

.attachment-info-note {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: var(--note-font-size, 11px);
  border-radius: 4px;
  background-color: #e8f0fe;
  border: 1px solid #d2e3fc;
  color: #1967d2;
}

.attachment-info-note p {
  margin: 0;
}
.no-content {
  padding: 32px 20px;
  text-align: center;
  color: #80868b;
  font-style: italic;
  background-color: #f8f9fa;
  border-radius: 6px;
}
.text-body {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: inherit;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0;
}
@media print {
  body {
    padding: 0;
    font-size: 11pt;
  }

  .email-header {
    page-break-after: avoid;
  }

  .attachment-section {
    page-break-inside: avoid;
  }

  a {
    text-decoration: none;
    color: inherit;
  }
}
.email-body div[class*="signature"],
.email-body table[class*="signature"] {
  margin-top: 1.5em;
  padding-top: 1em;
  border-top: 1px solid #e0e0e0;
  font-size: 0.95em;
  color: #5f6368;
}

