/* Universal Encoding Toolkit */
.en-hero {
  padding: 48px 0 20px;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}
.en-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.en-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #10172f;
  letter-spacing: -0.02em;
}
.en-hero p {
  margin: 0 auto;
  max-width: 720px;
  color: #5c6478;
  font-size: 17px;
  line-height: 1.7;
}
.en-wrap { padding: 24px 0 64px; background: #f7f8fc; }
.en-card {
  background: #fff;
  border: 1px solid #e8ebf5;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(17, 24, 47, 0.06);
  box-sizing: border-box;
}
.en-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #1b5e20;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}
.en-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
}
.en-layout-solo { grid-template-columns: 1fr; }
.en-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #10172f;
  margin-bottom: 8px;
}
.en-textarea {
  display: block;
  width: 100%;
  min-height: 160px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #18213a;
  border: 2px solid #d8deea;
  border-radius: 12px;
  outline: none;
  background: #fafbff;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}
.en-textarea:focus {
  border-color: #E53935;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.12);
  background: #fff;
}
.en-sidebar {
  border: 1px solid #e8ebf5;
  border-radius: 14px;
  background: #f7f8fc;
  padding: 14px;
  position: sticky;
  top: 16px;
}
.en-sidebar h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #10172f;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.en-score-label {
  font-size: 13px;
  font-weight: 800;
  color: #10172f;
  margin-bottom: 10px;
}
.en-side-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #e8ebf5;
  font-size: 13px;
}
.en-side-row span { color: #5c6478; font-weight: 600; }
.en-side-row b { color: #E53935; font-weight: 800; word-break: break-all; text-align: right; }
.en-warnings {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
  color: #ef6c00;
}
.en-warnings .ok { color: #2e7d32; }
.en-badges {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: #2e7d32;
  line-height: 1.8;
}
.en-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.en-btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 16px;
  color: #fff !important;
  line-height: 1.2;
  text-decoration: none !important;
  display: inline-block;
}
.en-btn:hover { opacity: .92; }
.en-btn-primary { background: linear-gradient(135deg, #ef5350, #c62828); }
.en-btn-blue { background: #1565c0; }
.en-btn-gray { background: #455a64; }
.en-btn-dark { background: #10172f; }
.en-btn-outline {
  background: #fff;
  color: #10172f !important;
  border: 1.5px solid #cfd5e6;
}
.en-section { margin-top: 18px; }
.en-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #10172f;
}
.en-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.en-field { margin-bottom: 12px; }
.en-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #384057;
  margin-bottom: 6px;
}
.en-field select,
.en-field input[type="text"],
.en-field input[type="number"],
.en-field input[type="file"] {
  width: 100%;
  border: 1.5px solid #d8deea;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #18213a;
  background: #fff;
  box-sizing: border-box;
}
.en-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 8px;
}
.en-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #18213a;
  cursor: pointer;
}
.en-results {
  border: 1px solid #e8ebf5;
  border-radius: 12px;
  background: #fafbff;
  max-height: 560px;
  overflow: auto;
}
.en-result-text {
  margin: 0;
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: #18213a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.en-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.en-table th, .en-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #eef1f8;
  vertical-align: top;
}
.en-table th { background: #fff; color: #5c6478; font-weight: 700; position: sticky; top: 0; }
.en-ok { color: #2e7d32; font-weight: 800; }
.en-bad { color: #c62828; font-weight: 800; }
.en-warn { color: #ef6c00; font-weight: 800; }
.en-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #10172f;
  min-height: 22px;
}
.en-drop-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #5c6478;
  font-weight: 600;
}
.en-cta {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #ffe0b2;
  background: linear-gradient(135deg, #fff8e1, #fff);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.en-cta strong { display: block; color: #10172f; font-size: 15px; margin-bottom: 4px; }
.en-cta span { color: #5c6478; font-size: 13px; font-weight: 600; }
.en-panels { display: grid; gap: 12px; }
.en-panel {
  border: 1px solid #e8ebf5;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.en-panel-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f7f8fc;
  font-size: 12px;
  font-weight: 800;
  color: #10172f;
}
.en-panel pre {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  max-height: 140px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.en-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.en-tab {
  border: 1.5px solid #cfd5e6;
  background: #fff;
  color: #10172f;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.en-tab.active {
  background: #E53935;
  border-color: #E53935;
  color: #fff;
}
.en-flash {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #10172f;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}
.en-flash.on { background: #ffeb3b; }
.en-preview-img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
  border: 1px solid #e8ebf5;
}
@media (max-width: 991px) {
  .en-layout { grid-template-columns: 1fr; }
  .en-sidebar { position: static; }
  .en-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .en-options-grid { grid-template-columns: 1fr; }
  .en-btn { width: 100%; text-align: center; }
}
