.fileget-email-metadata {
  --email-ink: #182238;
  --email-muted: #667085;
  --email-line: #e7eaf1;
  --email-surface: #ffffff;
  --email-soft: #f6f7fb;
  --email-brand: #5b5ce2;
  --email-brand-soft: #eef0ff;
  --email-success: #157347;
  --email-success-soft: #ecfdf3;
  --email-danger: #b42318;
  --email-danger-soft: #fef3f2;
  width: 100%;
  color: var(--email-ink);
}

.fileget-email-metadata [hidden] { display: none !important; }

.fileget-email-metadata__hero {
  display: grid;
  gap: 12px;
  margin: 6px 0 30px;
}

.fileget-email-metadata__eyebrow,
.fileget-email-metadata__kicker {
  color: var(--email-brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fileget-email-metadata__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fileget-email-metadata__eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--email-brand);
  box-shadow: 0 0 0 5px var(--email-brand-soft);
}

.fileget-email-metadata__hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.fileget-email-metadata__hero p {
  max-width: 790px;
  margin: 0;
  color: var(--email-muted);
  font-size: 17px;
  line-height: 1.8;
}

.fileget-email-metadata__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.fileget-email-metadata__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--email-line);
  border-radius: 999px;
  background: var(--email-surface);
  color: #4b5565;
  font-size: 12px;
  font-weight: 800;
}

.fileget-email-metadata__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .8fr);
  gap: 18px;
  align-items: start;
}

.fileget-email-metadata__main,
.fileget-email-metadata__inspector,
.fileget-email-metadata__privacy {
  border-radius: 24px;
}

.fileget-email-metadata__main {
  min-width: 0;
  overflow: hidden;
}

.fileget-email-metadata__toolbar,
.fileget-email-metadata__result-head,
.fileget-email-metadata__inspector-head,
.fileget-email-metadata__privacy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fileget-email-metadata__toolbar {
  margin-bottom: 24px;
}

.fileget-email-metadata__file-head {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.fileget-email-metadata__file-head > div:last-child {
  min-width: 0;
}

.fileget-email-metadata__file-head strong,
.fileget-email-metadata__file-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fileget-email-metadata__file-head small {
  margin-top: 3px;
  color: var(--email-muted);
  font-size: 12px;
}

.fileget-email-metadata__file-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #dcdfff;
  border-radius: 14px;
  background: var(--email-brand-soft);
  color: var(--email-brand);
  font-size: 21px;
  font-weight: 900;
}

.fileget-email-metadata__button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.fileget-email-metadata__button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.fileget-email-metadata__button:focus-visible,
.fileget-email-metadata__dropzone:focus-visible {
  outline: 3px solid rgba(91, 92, 226, .22);
  outline-offset: 3px;
}

.fileget-email-metadata__button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.fileget-email-metadata__button--primary {
  background: var(--email-brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(91, 92, 226, .18);
}

.fileget-email-metadata__button--soft {
  border-color: var(--email-line);
  background: #fff;
  color: var(--email-ink);
}

.fileget-email-metadata__dropzone {
  position: relative;
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 11px;
  padding: 36px 28px;
  border: 1.5px dashed #cfd4e4;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0, rgba(91,92,226,.07), transparent 45%),
    #fbfcff;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.fileget-email-metadata__dropzone:hover,
.fileget-email-metadata__dropzone.is-dragging {
  border-color: rgba(91, 92, 226, .72);
  background:
    radial-gradient(circle at 50% 0, rgba(91,92,226,.11), transparent 48%),
    #fafbff;
}

.fileget-email-metadata__dropzone.is-dragging {
  transform: translateY(-1px);
}

.fileget-email-metadata__native-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.fileget-email-metadata__upload-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: var(--email-brand-soft);
  color: var(--email-brand);
  font-size: 26px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px #dfe2ff;
}

.fileget-email-metadata__dropzone h2 {
  margin: 2px 0 0;
  font-size: 22px;
}

.fileget-email-metadata__dropzone p {
  max-width: 610px;
  margin: 0;
  color: var(--email-muted);
  line-height: 1.75;
  font-size: 14px;
}

.fileget-email-metadata__dropzone small {
  color: #8a93a3;
  font-size: 11px;
  font-weight: 800;
}

.fileget-email-metadata__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid var(--email-line);
  border-radius: 13px;
  background: #fafbfc;
  color: var(--email-muted);
  font-size: 12px;
  font-weight: 800;
}

.fileget-email-metadata__status.is-success {
  border-color: #bfe9cc;
  background: var(--email-success-soft);
  color: var(--email-success);
}

.fileget-email-metadata__status.is-error {
  border-color: #f4c5c0;
  background: var(--email-danger-soft);
  color: var(--email-danger);
}

.fileget-email-metadata__status.is-working .fileget-email-metadata__status-dot {
  animation: fileget-email-metadata-pulse 1s ease-in-out infinite;
}

.fileget-email-metadata__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

@keyframes fileget-email-metadata-pulse {
  0%, 100% { opacity: .35; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.fileget-email-metadata__result {
  margin-top: 24px;
}

.fileget-email-metadata__result-head {
  margin-bottom: 17px;
}

.fileget-email-metadata__result-head h2,
.fileget-email-metadata__inspector-head h2 {
  margin: 5px 0 0;
  font-size: 23px;
  line-height: 1.15;
}

.fileget-email-metadata__result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.fileget-email-metadata__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 13px;
}

.fileget-email-metadata__summary-card {
  padding: 14px;
  border: 1px solid var(--email-line);
  border-radius: 16px;
  background: var(--email-soft);
}

.fileget-email-metadata__summary-card span,
.fileget-email-metadata__summary-card strong {
  display: block;
}

.fileget-email-metadata__summary-card span {
  color: var(--email-muted);
  font-size: 11px;
  font-weight: 800;
}

.fileget-email-metadata__summary-card strong {
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.fileget-email-metadata__section {
  margin-top: 12px;
  border: 1px solid var(--email-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.fileget-email-metadata__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fafbfc;
  border-bottom: 1px solid var(--email-line);
}

.fileget-email-metadata__section-head strong {
  font-size: 13px;
}

.fileget-email-metadata__section-count {
  min-width: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--email-brand-soft);
  color: var(--email-brand);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.fileget-email-metadata__table {
  width: 100%;
  border-collapse: collapse;
}

.fileget-email-metadata__table th,
.fileget-email-metadata__table td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef0f4;
  vertical-align: top;
  text-align: start;
  font-size: 12px;
}

.fileget-email-metadata__table th {
  width: 34%;
  color: var(--email-muted);
  font-weight: 800;
}

.fileget-email-metadata__table td {
  color: var(--email-ink);
  line-height: 1.65;
  word-break: break-word;
}

.fileget-email-metadata__table tr:last-child th,
.fileget-email-metadata__table tr:last-child td {
  border-bottom: 0;
}

.fileget-email-metadata__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px !important;
}

.fileget-email-metadata__attachment-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.fileget-email-metadata__attachment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  background: #fbfcfe;
}

.fileget-email-metadata__attachment-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--email-brand-soft);
  color: var(--email-brand);
  font-weight: 900;
}

.fileget-email-metadata__attachment strong,
.fileget-email-metadata__attachment small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fileget-email-metadata__attachment strong { white-space: nowrap; }
.fileget-email-metadata__attachment small { margin-top: 3px; color: var(--email-muted); line-height: 1.55; }

.fileget-email-metadata__inspector {
  position: sticky;
  top: 18px;
}

.fileget-email-metadata__inspector-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.fileget-email-metadata__badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--email-brand-soft);
  color: var(--email-brand);
  font-size: 11px;
  font-weight: 900;
}

.fileget-email-metadata__info-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  border: 1px solid #dfe2ff;
  border-radius: 17px;
  background: #fafaff;
}

.fileget-email-metadata__info-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--email-brand-soft);
  color: var(--email-brand);
  font-size: 18px;
  font-weight: 900;
}

.fileget-email-metadata__info-card strong,
.fileget-email-metadata__info-card p {
  display: block;
}

.fileget-email-metadata__info-card strong { font-size: 13px; }
.fileget-email-metadata__info-card p { margin: 5px 0 0; color: var(--email-muted); font-size: 12px; line-height: 1.65; }

.fileget-email-metadata__checklist {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.fileget-email-metadata__checklist > div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--email-line);
}

.fileget-email-metadata__checklist > div:last-child { border-bottom: 0; }

.fileget-email-metadata__checklist span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--email-soft);
  color: var(--email-muted);
  font-size: 10px;
  font-weight: 900;
}

.fileget-email-metadata__checklist p {
  margin: 0;
  color: #465062;
  font-size: 12px;
  line-height: 1.5;
}

.fileget-email-metadata__empty {
  display: grid;
  place-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 24px 16px;
  border: 1px dashed #d9ddea;
  border-radius: 17px;
  background: #fbfcff;
  text-align: center;
}

.fileget-email-metadata__empty > div {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--email-soft);
  color: var(--email-brand);
}

.fileget-email-metadata__empty strong { font-size: 13px; }
.fileget-email-metadata__empty span { color: var(--email-muted); font-size: 12px; line-height: 1.6; }

.fileget-email-metadata__privacy {
  justify-content: flex-start;
  margin-top: 18px;
}

.fileget-email-metadata__privacy > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--email-success-soft);
  color: var(--email-success);
  font-weight: 900;
}

.fileget-email-metadata__privacy strong { font-size: 13px; }
.fileget-email-metadata__privacy p { margin: 3px 0 0; color: var(--email-muted); font-size: 12px; line-height: 1.6; }

@media (max-width: 980px) {
  .fileget-email-metadata__workspace { grid-template-columns: 1fr; }
  .fileget-email-metadata__inspector { position: static; }
}

@media (max-width: 720px) {
  .fileget-email-metadata__hero h1 { font-size: clamp(30px, 9vw, 43px); }
  .fileget-email-metadata__hero p { font-size: 15px; }
  .fileget-email-metadata__toolbar,
  .fileget-email-metadata__result-head { align-items: flex-start; flex-direction: column; }
  .fileget-email-metadata__result-actions { width: 100%; justify-content: stretch; }
  .fileget-email-metadata__result-actions .fileget-email-metadata__button { flex: 1; }
  .fileget-email-metadata__summary { grid-template-columns: 1fr; }
  .fileget-email-metadata__dropzone { min-height: 290px; padding: 28px 17px; }
  .fileget-email-metadata__dropzone h2 { font-size: 20px; }
}

@media (max-width: 500px) {
  .fileget-email-metadata__privacy { align-items: flex-start; }
  .fileget-email-metadata__file-head { width: 100%; }
  .fileget-email-metadata__toolbar > .fileget-email-metadata__button { width: 100%; }
  .fileget-email-metadata__table th,
  .fileget-email-metadata__table td { padding: 10px; }
}
