.enc-heading {
  text-align: center;
  margin: 32px auto;
}
.enc-heading h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 12px 0;
  letter-spacing: -1px;
}
.enc-heading p {
  color: #606a7d;
  font-size: 17px;
}
.enc-symbol,
.enc-local {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5068cb;
}
.enc-symbol {
  padding: 14px;
  border-radius: 16px;
  background: #e9edfc;
}
.enc-local {
  font-size: 13px;
}
.enc-empty {
  text-align: center;
  padding: 32px;
  border: 1px solid #dce1ed;
  border-radius: 16px;
  background: white;
  max-width: 850px;
  margin: 24px auto;
}
#enc-drop {
  padding: 24px 12px;
  border: 1px dashed #aebbdc;
  border-radius: 12px;
  margin-bottom: 20px;
}
.enc-upload {
  color: #5068cb;
}
.enc-upload .icon {
  width: 32px;
  height: 32px;
}
.enc-empty h2 {
  font-size: 20px;
  margin: 16px 0;
}
.enc-empty p,
.enc-muted,
.enc-note,
.enc-limit {
  color: #606a7d;
  font-size: 14px;
  line-height: 1.6;
}
#enc-workspace {
  max-width: 1360px;
  margin: auto;
}
.enc-filebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}
#enc-name {
  overflow-wrap: anywhere;
}
.enc-filebar div {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.enc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.enc-preview,
.enc-settings {
  min-width: 0;
  padding: 24px;
  border: 1px solid #dce1ed;
  border-radius: 14px;
  background: white;
}
.enc-grid h2 {
  font-size: 20px;
  margin: 0 0 20px;
}
.enc-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.enc-grid label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.enc-grid select {
  display: block;
  width: 100%;
  margin: 8px 0 16px;
  min-height: 44px;
  border: 1px solid #cbd3e4;
  border-radius: 8px;
  padding: 8px;
  background: white;
  color: #283043;
  font: inherit;
}
#enc-text {
  min-height: 320px;
  max-height: 520px;
  overflow: auto;
  white-space: pre;
  padding: 16px;
  background: #f7f8fb;
  border: 1px solid #e5e8f0;
  border-radius: 8px;
  font:
    14px/1.7 Consolas,
    monospace;
}
.enc-table-wrap {
  max-height: 520px;
  min-height: 320px;
  overflow: auto;
}
.enc-table-wrap table {
  border-collapse: collapse;
  font:
    14px/1.5 Consolas,
    monospace;
}
.enc-table-wrap td {
  border: 1px solid #dde3ee;
  padding: 10px 14px;
  white-space: pre-wrap;
  min-width: 110px;
  max-width: 300px;
  overflow-wrap: anywhere;
}
.enc-settings details {
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 20px;
}
.enc-settings button,
.enc-settings .button {
  width: 100%;
  margin-top: 12px;
  text-align: center;
  min-height: 44px;
}
#enc-result {
  font-size: 14px;
  line-height: 1.6;
  color: #345d49;
}
.enc-limit {
  max-width: 950px;
}
#enc-status {
  margin-top: 24px;
  font-size: 14px;
}
@media (max-width: 800px) {
  .enc-grid {
    grid-template-columns: 1fr;
  }
  .enc-empty,
  .enc-preview,
  .enc-settings {
    padding: 18px;
  }
  .enc-filebar {
    flex-wrap: wrap;
  }
  .enc-toolbar {
    flex-wrap: wrap;
  }
  .enc-heading {
    margin: 24px 0;
  }
  .enc-heading p {
    font-size: 16px;
  }
}
