.enc-app {
  color: var(--text-1, #111827);
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.enc-bar {
  display: block;
  padding: 10px 12px 2px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: var(--radius, 10px);
  background: var(--card, #ffffff);
  box-sizing: border-box;
}

.enc-modes {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 10px -10px 0;
}

.enc-mode {
  -ms-flex: 1 1 220px;
  flex: 1 1 220px;
  min-width: 190px;
  margin: 0 10px 10px 0;
  padding: 12px 14px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 10px;
  background: var(--card, #ffffff);
  color: var(--text-1, #111827);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
}

.enc-mode:hover {
  border-color: var(--primary, #2563eb);
}

.enc-mode-on {
  border-color: var(--primary, #2563eb);
  background: var(--blue-soft, #e8f0ff);
  color: var(--text-1, #111827);
}

.enc-mode-t {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.enc-mode-t svg {
  display: inline-block;
  margin: 0 8px 0 0;
  vertical-align: middle;
}

.enc-mode-s {
  display: block;
  margin: 2px 0 0;
  color: var(--text-3, #6b7280);
  font-size:14px;
  font-weight: 400;
  line-height: 1.6;
}

.enc-options {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 8px 0 0;
}

.enc-opt {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  margin: 0 14px 8px 0;
  color: var(--text-2, #4b5563);
  font-size:14px;
  line-height: 1.6;
}

.enc-opt label {
  margin: 0 6px 0 0;
  cursor: pointer;
}

.enc-optlabel {
  margin: 0 8px 0 0;
  color: var(--text-3, #6b7280);
  font-size:14px;
  white-space: nowrap;
}

.enc-fixedopt {
  -ms-flex: none;
  flex: none;
}

.enc-chip {
  display: inline-block;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 8px;
  background: var(--bg-2, #f7f8fa);
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 28px;
  white-space: nowrap;
  box-sizing: border-box;
}

.enc-select {
  height: 30px;
  max-width: 124px;
  padding: 3px 7px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 7px;
  background: var(--card, #ffffff);
  color: var(--text-1, #111827);
  font-family: inherit;
  font-size:14px;
  line-height: 1.4;
  outline: none;
}

.enc-select-dir {
  max-width: 150px;
}

.enc-select:focus {
  border-color: var(--primary, #2563eb);
}

.enc-reset {
  margin: 0 0 8px auto;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--text-3, #6b7280);
  font-size:14px;
  font-family: inherit;
  cursor: pointer;
}

.enc-reset:hover {
  color: var(--primary, #2563eb);
}

.enc-work {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -ms-flex-align: start;
  align-items: flex-start;
  margin: 12px 0 0;
}

.enc-panel {
  -ms-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: var(--radius, 10px);
  background: var(--card, #ffffff);
  overflow: hidden;
  box-sizing: border-box;
}

.enc-panel + .enc-panel {
  margin-left: 12px;
}

.enc-panelhead {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -ms-flex-align: center;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border, #dbe1ea);
  background: var(--bg-2, #f7f8fa);
  box-sizing: border-box;
}

.enc-dot {
  -ms-flex: none;
  flex: none;
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 0 0;
  border-radius: 50%;
  background: var(--primary, #2563eb);
}

.enc-dot-green {
  background: #22c55e;
}

.enc-paneltitle {
  -ms-flex: none;
  flex: none;
  color: var(--text-1, #111827);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.enc-count {
  -ms-flex: none;
  flex: none;
  margin: 0 0 0 10px;
  color: var(--text-3, #86909c);
  font-size:14px;
  line-height: 1.6;
}

.enc-badge {
  display: inline-block;
  -ms-flex: none;
  flex: none;
  margin: 0 8px 0 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue-soft, #e8f0ff);
  color: var(--primary, #2563eb);
  font-size:14px;
  line-height: 1.6;
}

.enc-badge-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.enc-tools {
  display: -ms-flexbox;
  display: flex;
  -ms-flex: none;
  flex: none;
  -ms-flex-align: center;
  align-items: center;
  margin: 0 0 0 auto;
}

.enc-btn {
  margin: 0 0 0 8px;
  padding: 5px 10px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 8px;
  background: var(--bg-2, #f3f5f9);
  color: var(--text-1, #111827);
  font-family: inherit;
  font-size:14px;
  line-height: 1.5;
  cursor: pointer;
}

.enc-btn:hover {
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
}

.enc-inputwrap {
  padding: 14px 16px 0;
  background: var(--bg-input, #ffffff);
  box-sizing: border-box;
}

.enc-parselabel {
  display: block;
  margin: 0 0 6px;
  color: var(--text-2, #4b5563);
  font-size:14px;
  font-weight: 600;
}

.enc-textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 8px;
  background: var(--card, #ffffff);
  color: var(--text-1, #111827);
  font-family: Consolas, "Courier New", Menlo, monospace;
  font-size:14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
}

.enc-textarea:focus {
  border-color: var(--primary, #2563eb);
  outline: 2px solid rgba(37, 99, 235, .18);
  outline-offset: 1px;
}

.enc-textarea.enc-input {
  height: 300px;
  min-height: 200px;
  max-height: none;
}

.enc-inline-tip {
  margin: 10px 0 0;
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 1.7;
  word-break: break-word;
}

.enc-samples {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--border, #e5e7eb);
}

.enc-sampletitle {
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  margin: 0 0 6px;
  color: var(--text-3, #86909c);
  font-size:14px;
  line-height: 1.6;
  letter-spacing: .06em;
}

.enc-sampletitle span {
  margin-left: 6px;
  color: var(--text-3, #86909c);
  font-weight: 400;
  letter-spacing: 0;
}

.enc-sample {
  display: block;
  width: calc(50% - 5px);
  margin: 0 0 6px;
  padding: 5px 8px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 7px;
  background: var(--card, #ffffff);
  color: var(--text-1, #111827);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.enc-sample:hover {
  border-color: var(--primary, #2563eb);
  background: var(--blue-soft, #f0f6ff);
}

.enc-sample-label {
  display: block;
  color: var(--text-1, #111827);
  font-size:14px;
  font-weight: 600;
  line-height: 1.6;
}

.enc-sample-code {
  display: block;
  margin: 1px 0 0;
  color: var(--text-2, #4b5563);
  font-family: Consolas, "Courier New", Menlo, monospace;
  font-size:14px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.enc-foot {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  min-height: 33px;
  padding: 6px 12px;
  border-top: 1px solid var(--border, #dbe1ea);
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 1.6;
  box-sizing: border-box;
}

.enc-foot span:last-child {
  margin-left: auto;
}

.enc-preview {
  height: 570px;
  padding: 14px 16px;
  background: var(--bg-input, #ffffff);
  overflow: auto;
  box-sizing: border-box;
}

.enc-resultcard {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 9px;
  background: var(--bg-2, #f7f8fa);
}

.enc-resultlabel {
  margin: 0 0 4px;
  color: var(--text-3, #86909c);
  font-size:14px;
  line-height: 1.5;
  letter-spacing: .08em;
}

.enc-output {
  min-height: 92px;
  max-height: 180px;
  padding: 10px 12px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 8px;
  background: var(--card, #ffffff);
  color: var(--text-1, #111827);
  font-family: Consolas, "Courier New", Menlo, monospace;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: .01em;
  white-space: pre-wrap;
  word-break: break-all;
  overflow: auto;
  box-sizing: border-box;
}

.enc-statgrid {
  margin: 12px 0 0;
}

.enc-stat {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: baseline;
  align-items: baseline;
  padding: 3px 0;
  border-top: 1px solid var(--border, #e5e7eb);
}

.enc-stat:first-child {
  border-top: 0;
}

.enc-stat-k {
  -ms-flex: none;
  flex: none;
  width: 46px;
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 1.7;
}

.enc-stat-v {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-2, #4b5563);
  font-size:14px;
  line-height: 1.7;
  word-break: break-word;
}

.enc-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid #fde68a;
  border-radius: 6px;
  background: #fffbeb;
  color: #92400e;
  font-size:14px;
  line-height: 1.7;
}

.enc-quickref {
  margin: 12px 0 0;
  padding: 2px 2px 0;
  border-top: 1px dashed var(--border, #e5e7eb);
}

.enc-quicktitle {
  margin: 0 0 3px;
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 1.6;
  letter-spacing: .06em;
}

.enc-quickrow {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
  color: var(--text-2, #4b5563);
  font-size:14px;
  line-height: 1.6;
}

.enc-quickrow:last-child {
  border-bottom: 0;
}

.enc-quickrow span:first-child {
  -ms-flex: none;
  flex: none;
  margin: 0 10px 0 0;
  color: var(--text-1, #111827);
  font-family: Consolas, "Courier New", Menlo, monospace;
}

.enc-quickrow span:last-child {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  text-align: right;
}

.enc-status {
  margin: 10px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 7px;
  background: var(--bg-2, #f7f8fa);
  color: var(--text-2, #4b5563);
  font-size:14px;
  line-height: 1.6;
  word-break: break-word;
}

.enc-status-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.enc-status-warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.enc-status-err {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.enc-help {
  margin: 10px 0 0;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 8px;
  background: var(--card, #ffffff);
}

.enc-help-sum {
  padding: 9px 12px;
  color: var(--text-2, #4b5563);
  font-size:14px;
  cursor: pointer;
  outline: none;
}

.enc-help-sum:hover {
  color: var(--primary, #2563eb);
}

.enc-help-body {
  padding: 2px 14px 12px;
  border-top: 1px solid var(--border, #e5e7eb);
  color: var(--text-2, #4b5563);
  font-size:14px;
  line-height: 1.8;
}

.enc-help-body p {
  margin: 8px 0;
}

.enc-help-body b {
  color: var(--text-1, #111827);
}

body.dark .enc-bar,
body.dark .enc-panel,
body.dark .enc-help {
  background: #111c2e;
  border-color: #334155;
}

body.dark .enc-mode {
  background: #17233a;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark .enc-mode-on {
  background: #1e3a5f;
  border-color: #60a5fa;
}

body.dark .enc-mode-s,
body.dark .enc-optlabel,
body.dark .enc-inline-tip,
body.dark .enc-count,
body.dark .enc-resultlabel,
body.dark .enc-stat-k,
body.dark .enc-quicktitle,
body.dark .enc-foot,
body.dark .enc-help-sum {
  color: #94a3b8;
}

body.dark .enc-opt,
body.dark .enc-parselabel,
body.dark .enc-status,
body.dark .enc-help-body,
body.dark .enc-stat-v {
  color: #cbd5e1;
}

body.dark .enc-select {
  background: #111c2e;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark .enc-chip {
  background: #17233a;
  border-color: #334155;
  color: #94a3b8;
}

body.dark .enc-panelhead,
body.dark .enc-foot {
  background: #0f1a2b;
  border-color: #334155;
}

body.dark .enc-paneltitle {
  color: #e2e8f0;
}

body.dark .enc-badge {
  background: #1e3a5f;
  color: #93c5fd;
}

body.dark .enc-badge-error {
  background: #3b1111;
  color: #fecaca;
  border-color: #7f1d1d;
}

body.dark .enc-btn {
  background: #17233a;
  border-color: #334155;
  color: #cbd5e1;
}

body.dark .enc-btn:hover {
  border-color: #60a5fa;
  color: #93c5fd;
}

body.dark .enc-inputwrap,
body.dark .enc-preview {
  background: #0b1220;
}

body.dark .enc-textarea {
  background: #111c2e;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark .enc-sample {
  background: #17233a;
  border-color: #334155;
}

body.dark .enc-sample:hover {
  background: #1e3a5f;
  border-color: #3b82f6;
}

body.dark .enc-sample-label {
  color: #e2e8f0;
}

body.dark .enc-sample-code {
  color: #cbd5e1;
}

body.dark .enc-resultcard {
  background: #17233a;
  border-color: #334155;
}

body.dark .enc-output {
  background: #111c2e;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark .enc-stat {
  border-color: #334155;
}

body.dark .enc-note {
  background: #3a2a08;
  border-color: #a16207;
  color: #fde68a;
}

body.dark .enc-quickrow {
  border-color: #334155;
  color: #cbd5e1;
}

body.dark .enc-quickrow span:first-child {
  color: #e2e8f0;
}

body.dark .enc-status {
  background: #17233a;
  border-color: #334155;
}

body.dark .enc-status-ok {
  background: #12261a;
  border-color: #166534;
  color: #86efac;
}

body.dark .enc-status-warn {
  background: #3a2a08;
  border-color: #a16207;
  color: #fde68a;
}

body.dark .enc-status-err {
  background: #3b1212;
  border-color: #b91c1c;
  color: #fca5a5;
}

body.dark .enc-help-body {
  border-color: #334155;
}

body.dark .enc-help-body b {
  color: #e2e8f0;
}

@media (max-width: 760px) {
  .enc-mode {
    -ms-flex: 1 1 200px;
    flex: 1 1 200px;
    min-width: 180px;
    padding: 10px 12px;
  }

  .enc-opt {
    width: 100%;
    margin: 0 0 7px;
  }

  .enc-select {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }

  .enc-reset {
    display: block;
    width: 100%;
    text-align: right;
  }

  .enc-work {
    display: block;
  }

  .enc-panel {
    width: 100%;
    margin: 0 0 10px;
  }

  .enc-panel + .enc-panel {
    margin-left: 0;
  }

  .enc-textarea.enc-input {
    height: 190px;
    min-height: 160px;
  }

  .enc-samples {
    display: none;
  }

  .enc-preview {
    height: auto;
    min-height: 460px;
    padding: 12px 14px;
  }

  .enc-panelhead {
    padding: 7px 12px;
  }
}

@media (max-width: 560px) {
  .enc-mode {
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    min-width: 0;
    margin: 0 0 8px;
  }

  .enc-modes {
    margin-right: 0;
  }

  .enc-textarea.enc-input {
    height: 210px;
    min-height: 150px;
    padding: 10px 11px;
  }

  .enc-inputwrap {
    padding: 10px 12px 0;
  }

  .enc-preview {
    height: auto;
    min-height: 360px;
    padding: 12px 12px;
  }

  .enc-output {
    max-height: 180px;
    padding: 9px 10px;
    font-size:14px;
  }

  .enc-panelhead,
  .enc-foot {
    padding: 8px 10px;
  }

  .enc-quicktitle {
    display: none;
  }

  .enc-stat-v {
    font-size:14px;
  }
}


/* 620 摩斯与栅栏密码专属 */
.enc-quickrow {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 4px;
  border: 0;
  border-bottom: 1px dashed var(--border, #dbe1ea);
  background: transparent;
  color: var(--text-1, #111827);
  font-family: inherit;
  font-size:14px;
  line-height: 1.55;
  text-align: left;
  cursor: pointer;
}
.enc-quickrow:last-child { border-bottom: 0; }
.enc-quickrow:hover { color: var(--primary, #2563eb); background: var(--blue-soft, #e8f0ff); }
.enc-quickrow .enc-quickfrom { color: var(--text-2, #4e5969); }
.enc-quickrow .enc-quickto { float: right; font-family: Consolas, Menlo, monospace; color: var(--text-1, #111827); }
body.dark .enc-quickrow { color: #e2e8f0; border-bottom-color: #334155; }
body.dark .enc-quickrow:hover { background: #1e3a5f; }
body.dark .enc-quickrow .enc-quickfrom { color: #94a3b8; }
body.dark .enc-quickrow .enc-quickto { color: #e2e8f0; }

.enc-prefixhint {
  margin: 6px 0 0;
  font-size:14px;
  line-height: 1.6;
  color: var(--text-3, #86909c);
}


/* 621 JWT additions */
.enc-textarea.enc-input {
  height: 238px;
  min-height: 190px;
}

.enc-chip-soft {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #dbeafe;
  border-radius: 5px;
  background: #f0f7ff;
  color: #1d4ed8;
  font-size:14px;
  line-height: 1.6;
  white-space: nowrap;
}

.enc-keywrap {
  margin: 12px 0 0;
}

.enc-keylabel {
  display: block;
  margin: 0 0 5px;
  color: var(--text-2, #4b5563);
  font-size:14px;
  font-weight: 600;
  line-height: 1.5;
}

.enc-keylabel span {
  margin-left: 6px;
  color: var(--text-3, #86909c);
  font-size:14px;
  font-weight: 400;
}

.enc-textarea.enc-key {
  height: 74px;
  min-height: 74px;
  padding: 8px 10px;
  font-size:14px;
  line-height: 1.6;
  resize: vertical;
}

.enc-keyhint {
  margin: 4px 0 0;
  color: var(--text-3, #86909c);
  font-size:14px;
  line-height: 1.6;
}

.enc-summary {
  margin: 0 0 8px;
  padding: 0 1px;
}

.enc-summary-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.enc-summary-title {
  margin: 0 8px 0 0;
  color: var(--text-1, #111827);
  font-size:14px;
  font-weight: 600;
  line-height: 1.6;
}

.enc-summary-sub {
  margin: 3px 0 0;
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 1.5;
  word-break: break-all;
}

.enc-sigbadge {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid #dbe1ea;
  border-radius: 4px;
  background: #f8fafc;
  color: #475569;
  font-size:14px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.enc-sigbadge-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.enc-sigbadge-bad {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.enc-sigbadge-warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.enc-codepair {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -4px;
}

.enc-codebox {
  flex: 1 1 240px;
  min-width: 0;
  margin: 4px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
}

.enc-codehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  background: #f8fafc;
  color: var(--text-2, #4b5563);
  font-size:14px;
  font-weight: 600;
  letter-spacing: .04em;
}

.enc-codehead span {
  color: var(--text-3, #86909c);
  font-weight: 400;
}

.enc-code {
  margin: 0;
  padding: 8px 9px;
  min-height: 96px;
  max-height: 160px;
  overflow: auto;
  color: var(--text-1, #111827);
  font-family: Consolas, "Courier New", Menlo, monospace;
  font-size:14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
  box-sizing: border-box;
}

.enc-statgrid .enc-stat {
  padding: 5px 0;
}

.enc-claims {
  display: flex;
  flex-wrap: wrap;
  margin: 8px 0 0;
}

.enc-claim {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  margin: 0 4px 4px 0;
  padding: 5px 7px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 6px;
  background: #f8fafc;
}

.enc-claim:last-child {
  margin-right: 0;
}

.enc-claim-k {
  display: block;
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 1.5;
  letter-spacing: .03em;
}

.enc-claim-v {
  display: block;
  margin: 1px 0 0;
  color: var(--text-1, #111827);
  font-size:14px;
  line-height: 1.5;
  word-break: break-all;
}

.enc-claim-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.enc-claim-warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.enc-claim-bad {
  border-color: #fecaca;
  background: #fef2f2;
}

.enc-algstate {
  margin: 0 0 0 8px;
  color: var(--text-3, #86909c);
  font-size:14px;
  line-height: 1.5;
}

body.dark .enc-chip-soft {
  border-color: #334155;
  background: #111c2e;
  color: #93c5fd;
}

body.dark .enc-keylabel,
body.dark .enc-keyhint,
body.dark .enc-summary-sub,
body.dark .enc-claim-k {
  color: #94a3b8;
}

body.dark .enc-key {
  background: #111c2e;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark .enc-codebox {
  background: #0b1220;
  border-color: #334155;
}

body.dark .enc-codehead {
  background: #111c2e;
  border-color: #334155;
  color: #cbd5e1;
}

body.dark .enc-code {
  color: #e2e8f0;
}

body.dark .enc-sigbadge {
  border-color: #334155;
  background: #111c2e;
  color: #cbd5e1;
}

body.dark .enc-sigbadge-ok {
  border-color: #14532d;
  background: #052e16;
  color: #86efac;
}

body.dark .enc-sigbadge-bad {
  border-color: #7f1d1d;
  background: #2a0f0f;
  color: #fca5a5;
}

body.dark .enc-sigbadge-warn {
  border-color: #78350f;
  background: #2a1906;
  color: #fcd34d;
}

body.dark .enc-claim {
  background: #111c2e;
  border-color: #334155;
  color: #e2e8f0;
}

body.dark .enc-claim-v {
  color: #e2e8f0;
}

body.dark .enc-claim-ok {
  border-color: #14532d;
  background: #052e16;
}

body.dark .enc-claim-warn {
  border-color: #78350f;
  background: #2a1906;
}

body.dark .enc-claim-bad {
  border-color: #7f1d1d;
  background: #2a0f0f;
}

@media (max-width: 760px) {
  .enc-textarea.enc-input {
    height: 200px;
    min-height: 170px;
  }

  .enc-codebox {
    flex: 1 1 100%;
    margin: 4px 0;
  }

  .enc-code {
    max-height: 180px;
  }

  .enc-claim {
    flex: 1 1 100%;
    margin-right: 0;
  }

  .enc-preview {
    height: auto;
    min-height: 460px;
  }
}

@media (max-width: 560px) {
  .enc-textarea.enc-input {
    height: 185px;
    min-height: 155px;
  }

  .enc-code {
    max-height: 170px;
    font-size:14px;
  }

  .enc-preview {
    height: auto;
    min-height: 380px;
    padding: 12px 12px;
  }

  .enc-key {
    height: 78px;
  }
}


/* 621 density tuning */
.enc-preview {
  height: 600px;
}

.enc-resultcard {
  padding: 10px 12px;
}

.enc-summary {
  margin: 0 0 4px;
}

.enc-code {
  min-height: 84px;
  max-height: 150px;
}

.enc-statgrid {
  margin: 8px 0 0;
}

.enc-statgrid .enc-stat {
  padding: 2px 0;
}

.enc-note {
  margin: 6px 0 0;
  padding: 6px 8px;
  font-size:14px;
  line-height: 1.6;
}

.enc-quickref {
  margin: 6px 0 0;
}

.enc-quickref .enc-quickrow {
  padding: 2px 4px;
  font-size:14px;
  line-height: 1.5;
}

.enc-quicktitle {
  margin: 0 0 2px;
}

.enc-claim {
  flex: 1 1 0;
  margin-right: 4px;
  padding: 4px 6px;
}

.enc-claim:last-child {
  margin-right: 0;
}

.enc-claims {
  margin: 4px 0 0;
}

@media (max-width: 760px) {
  .enc-preview {
    height: auto;
    min-height: 460px;
  }

  .enc-code {
    max-height: 180px;
  }

  .enc-claim {
    flex: 1 1 100%;
    margin-right: 0;
  }
}

@media (max-width: 560px) {
  .enc-preview {
    height: auto;
    min-height: 380px;
  }
}


/* 621 final density */
.enc-textarea.enc-input {
  height: 280px;
}

.enc-code {
  min-height: 80px;
  max-height: 136px;
}

.enc-statgrid .enc-stat {
  padding: 1px 0;
}

.enc-note {
  padding: 4px 8px;
  font-size:14px;
  line-height: 1.5;
}

.enc-claim {
  padding: 3px 6px;
}

@media (max-width: 760px) {
  .enc-textarea.enc-input {
    height: 220px;
  }

  .enc-code {
    max-height: 180px;
  }
}

@media (max-width: 560px) {
  .enc-textarea.enc-input {
    height: 190px;
  }
}


/* 621 native control dark scheme */
body.dark {
  color-scheme: dark;
}

body.dark .enc-select {
  color-scheme: dark;
}


/* 622 password-generator specific additions */

.enc-setgroup {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  vertical-align: middle;
}

.enc-set {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  margin: 0 4px 0 0;
  padding: 2px 7px 2px 4px;
  border: 1px solid #dbe1ea;
  border-radius: 6px;
  background: #fff;
  color: #4b5563;
  font-size:14px;
  line-height: 1.3;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.enc-set input {
  width: 13px;
  height: 13px;
  margin: 0 3px 0 0;
  vertical-align: middle;
}

.enc-set input:checked + span {
  color: #1d4ed8;
  font-weight: 600;
}

.enc-set:active {
  background: #f0f5ff;
}

.enc-exclude {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  color: #4b5563;
  font-size:14px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.enc-exclude input {
  width: 13px;
  height: 13px;
  margin: 0 4px 0 0;
}

.enc-pool {
  height: 220px;
  min-height: 180px;
  font-family: Consolas, "Courier New", monospace;
  font-size:14px;
  line-height: 1.7;
  word-break: break-all;
}

.enc-pool[readonly] {
  background: #f8fafc;
  color: #334155;
}

.enc-output {
  min-height: 100px;
  margin: 8px 0 10px;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.enc-pass {
  font-family: Consolas, "Courier New", monospace;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: .02em;
  color: #0f172a;
  word-break: break-all;
  cursor: pointer;
}

.enc-pass:active {
  color: #1d4ed8;
}

.enc-list {
  max-height: 144px;
  overflow: auto;
}

.enc-item {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px dashed #e5e7eb;
  color: #334155;
  font-family: Consolas, "Courier New", monospace;
  font-size:14px;
  line-height: 1.35;
  cursor: pointer;
  word-break: break-all;
}

.enc-item:last-child {
  border-bottom: 0;
}

.enc-idx {
  -ms-flex: 0 0 26px;
  flex: 0 0 26px;
  color: #9ca3af;
  font-size:14px;
  font-family: Arial, sans-serif;
  text-align: right;
  padding-right: 8px;
}

.enc-text {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
}

.enc-empty,
.enc-error {
  min-height: 78px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #6b7280;
  font-size:14px;
  text-align: center;
}

.enc-error {
  color: #b91c1c;
}

body.dark .enc-set {
  background: #17233a;
  border-color: #334155;
  color: #cbd5e1;
}

body.dark .enc-set:active {
  background: #1e3a5f;
}

body.dark .enc-set input:checked + span {
  color: #93c5fd;
}

body.dark .enc-exclude {
  color: #cbd5e1;
}

body.dark .enc-pool[readonly] {
  background: #0b1220;
  color: #cbd5e1;
}

body.dark .enc-output {
  background: #0b1220;
  border-color: #334155;
}

body.dark .enc-pass {
  color: #f1f5f9;
}

body.dark .enc-pass:active {
  color: #93c5fd;
}

body.dark .enc-item {
  border-color: #334155;
  color: #e2e8f0;
}

body.dark .enc-idx {
  color: #94a3b8;
}

body.dark .enc-empty {
  color: #94a3b8;
}

body.dark .enc-error {
  color: #fca5a5;
}

@media (max-width: 760px) {
  .enc-setgroup {
    display: -ms-flexbox;
    display: flex;
    width: 100%;
  }

  .enc-set {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-bottom: 3px;
  }

  .enc-pool {
    height: 220px;
  }

  .enc-output {
    min-height: 100px;
  }
}

@media (max-width: 560px) {
  .enc-pool {
    height: 190px;
    min-height: 160px;
  }

  .enc-pass {
    font-size: 19px;
  }

  .enc-list {
    max-height: 180px;
  }
}


/* standalone page width: 601 series baseline */
.enc-app {
  width: 84%;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .enc-app {
    width: 100%;
  }
}


/* 623 barcode additions */
.enc-data {
  height: 100px;
  min-height: 100px;
}

.enc-codebox {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-height: 134px;
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  overflow: auto;
}

.enc-codebox .enc-svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.enc-codebox-wide {
  -ms-flex-pack: start;
  justify-content: flex-start;
  overflow-x: auto;
  scrollenc-width: thin;
}

.enc-codebox-wide .enc-svg {
  max-width: none;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.enc-textline {
  margin: 4px 0 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 1px;
}

.enc-empty {
  padding: 12px;
  color: #6b7280;
  font-size:14px;
  text-align: center;
}

.enc-error {
  color: #b91c1c;
}

body.dark .enc-codebox {
  border-color: #94a3b8;
  background: #ffffff;
}

body.dark .enc-textline {
  color: #e2e8f0;
}

body.dark .enc-empty {
  color: #94a3b8;
}

body.dark .enc-error {
  color: #fca5a5;
}

@media (max-width: 760px) {
  .enc-data {
    height: 112px;
    min-height: 112px;
  }

  .enc-codebox {
    min-height: 132px;
  }
}

@media (max-width: 560px) {
  .enc-data {
    height: 92px;
    min-height: 92px;
  }

  .enc-tools {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .enc-btn {
    margin-left: 4px;
    margin-bottom: 2px;
  }
}

/* 624 QR generator / decoder additions */
.enc-app [hidden] {
  display: none !important;
}

.enc-preview {
  height: auto;
  min-height: 600px;
}

.enc-data {
  height: 108px;
  min-height: 108px;
}

.enc-codebox {
  min-height: 200px;
  overflow: hidden;
}

.enc-codebox .enc-svg {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.enc-textline {
  max-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enc-drop {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  min-height: 174px;
  margin: 0;
  padding: 18px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 9px;
  background: var(--bg-2, #f7f8fa);
  color: var(--text-1, #111827);
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.enc-drop:hover,
.enc-drop-on {
  border-color: var(--primary, #2563eb);
  background: var(--blue-soft, #eef4ff);
}

.enc-drop-icon {
  display: block;
  margin: 0 0 8px;
  color: var(--primary, #2563eb);
  line-height: 1;
}

.enc-drop-title {
  display: block;
  color: var(--text-1, #111827);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.enc-drop-sub {
  display: block;
  margin: 2px 0 0;
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 1.6;
}

.enc-tips {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 10px 0 0;
}

.enc-tip {
  -ms-flex: 1 1 0;
  flex: 1 1 0;
  min-width: 0;
  margin: 0 6px 6px 0;
  padding: 7px 8px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 7px;
  background: var(--card, #ffffff);
  box-sizing: border-box;
}

.enc-tip:last-child {
  margin-right: 0;
}

.enc-tip span {
  display: block;
  color: var(--text-1, #111827);
  font-size:14px;
  font-weight: 600;
  line-height: 1.5;
}

.enc-tip small {
  display: block;
  margin: 1px 0 0;
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 1.5;
}

.enc-imagewrap {
  margin: 8px 0 0;
  padding: 8px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  box-sizing: border-box;
}

.enc-imageframe {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.enc-image {
  display: block;
  max-width: 100%;
  max-height: 224px;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.enc-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.enc-imagemeta {
  margin: 5px 0 0;
  color: #4b5563;
  font-size:14px;
  line-height: 1.5;
  word-break: break-all;
}

.enc-decoded {
  min-height: 62px;
  max-height: 136px;
  margin: 8px 0 0;
  padding: 9px 10px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-1, #111827);
  font-family: Consolas, "Courier New", Menlo, monospace;
  font-size:14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  box-sizing: border-box;
}

.enc-decoded-empty {
  color: #6b7280;
}

.enc-decoded-error {
  color: #b91c1c;
}

.enc-decode-badge-ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.enc-decode-badge-bad {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

#qrDecodeView .enc-image {
  max-height: 180px;
}

#qrDecodeView .enc-imagewrap {
  padding: 6px;
}

#qrDecodeView .enc-statgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 6px;
}

#qrDecodeView .enc-stat {
  padding: 0;
  line-height: 1.55;
}

#qrDecodeView .enc-note {
  margin-top: 4px;
  font-size:14px;
  line-height: 1.5;
}

#qrDecodeView .enc-quickref {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 6px;
  margin-top: 4px;
}

#qrDecodeView .enc-quicktitle {
  grid-column: 1 / -1;
}

#qrDecodeView .enc-quickrow {
  min-width: 0;
  padding: 2px 4px;
  overflow: hidden;
}

body.dark .enc-codebox {
  border-color: #94a3b8;
  background: #ffffff;
}

body.dark .enc-textline {
  color: #e2e8f0;
}

body.dark .enc-drop {
  border-color: #475569;
  background: #0f172a;
  color: #e2e8f0;
}

body.dark .enc-drop:hover,
body.dark .enc-drop-on {
  border-color: #60a5fa;
  background: #172554;
}

body.dark .enc-drop-sub {
  color: #94a3b8;
}

body.dark .enc-tip {
  border-color: #334155;
  background: #0f172a;
}

body.dark .enc-tip span {
  color: #e2e8f0;
}

body.dark .enc-tip small {
  color: #94a3b8;
}

body.dark .enc-imagewrap {
  border-color: #94a3b8;
  background: #ffffff;
}

body.dark .enc-imagemeta {
  color: #475569;
}

body.dark .enc-decoded {
  border-color: #334155;
  background: #0f172a;
  color: #e2e8f0;
}

body.dark .enc-decoded-empty {
  color: #94a3b8;
}

body.dark .enc-decoded-error {
  color: #fca5a5;
}

@media (max-width: 760px) {
  .enc-data {
    height: 112px;
    min-height: 112px;
  }

  .enc-codebox {
    min-height: 190px;
  }

  .enc-tip {
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    margin-right: 0;
  }
}

@media (max-width: 560px) {
  .enc-data {
    height: 92px;
    min-height: 92px;
  }

  .enc-codebox {
    min-height: 180px;
  }

  .enc-image {
    max-height: 190px;
  }

  .enc-decoded {
    max-height: 120px;
    font-size:14px;
  }

  .enc-drop {
    min-height: 150px;
  }
}


/* 625 file encoding converter */
.enc-head {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: var(--radius, 10px);
  background: var(--card, #ffffff);
  box-sizing: border-box;
}

.enc-head-main {
  min-width: 0;
}

.enc-title {
  margin: 0;
  color: var(--text-1, #111827);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.enc-sub {
  margin: 2px 0 0;
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 1.7;
}

.enc-chips {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  margin: 0;
}

.enc-chip-tag {
  display: inline-block;
  margin: 0 0 0 6px;
  padding: 2px 8px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 999px;
  background: var(--bg-2, #f7f8fa);
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 1.5;
  white-space: nowrap;
}

.enc-bomopt .enc-exclude {
  white-space: nowrap;
}

.enc-filemeta {
  margin: 10px 0 0;
  padding: 10px 11px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 8px;
  background: var(--card, #ffffff);
  box-sizing: border-box;
}

.enc-filetop {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  min-width: 0;
  padding: 0 0 8px;
  border-bottom: 1px dashed var(--border, #e5e7eb);
}

.enc-fileicon {
  -ms-flex: none;
  flex: none;
  margin: 0 8px 0 0;
  font-size: 20px;
  line-height: 1;
}

.enc-filetext {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
}

.enc-filename {
  display: block;
  overflow: hidden;
  color: var(--text-1, #111827);
  font-size:14px;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enc-filesize {
  display: block;
  margin: 1px 0 0;
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 1.5;
}

.enc-filegrid {
  display: grid;
  display: -ms-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
  margin: 8px 0 0;
}

.enc-fileitem {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: baseline;
  align-items: baseline;
  min-width: 0;
  padding: 2px 0;
}

.enc-filek {
  -ms-flex: none;
  flex: none;
  width: 52px;
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 1.6;
}

.enc-filev {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text-2, #4b5563);
  font-size:14px;
  line-height: 1.6;
  word-break: break-word;
}

.enc-preview {
  height: auto;
  min-height: 600px;
  overflow: auto;
}

.enc-preview > .enc-empty {
  min-height: 520px;
}

.enc-textpreview {
  min-height: 180px;
  max-height: 248px;
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--border, #dbe1ea);
  border-radius: 8px;
  background: var(--card, #ffffff);
  color: var(--text-1, #111827);
  font-family: Consolas, "Courier New", Menlo, monospace;
  font-size:14px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  box-sizing: border-box;
}

.enc-outputlabel {
  margin: 12px 0 0;
  color: var(--text-3, #6b7280);
  font-size:14px;
  line-height: 1.5;
  letter-spacing: .06em;
}

.enc-statgrid {
  display: grid;
  display: -ms-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.enc-warning {
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fef2f2;
  color: #991b1b;
  font-size:14px;
  line-height: 1.7;
}

body.dark .enc-head,
body.dark .enc-filemeta {
  background: #111c2e;
  border-color: #334155;
}

body.dark .enc-title {
  color: #e2e8f0;
}

body.dark .enc-sub,
body.dark .enc-chip-tag,
body.dark .enc-filesize,
body.dark .enc-filek,
body.dark .enc-outputlabel {
  color: #94a3b8;
}

body.dark .enc-chip-tag {
  background: #17233a;
  border-color: #334155;
}

body.dark .enc-filename,
body.dark .enc-filev,
body.dark .enc-textpreview {
  color: #e2e8f0;
}

body.dark .enc-textpreview {
  background: #0b1220;
  border-color: #334155;
}

body.dark .enc-warning {
  background: #2a1111;
  border-color: #7f1d1d;
  color: #fca5a5;
}

@media (max-width: 760px) {
  .enc-head {
    padding: 10px 12px;
  }

  .enc-title {
    font-size: 16px;
  }

  .enc-chips {
    margin: 4px 0 0;
  }

  .enc-chip-tag {
    margin: 0 5px 0 0;
  }

  .enc-preview {
    min-height: 460px;
  }

  .enc-preview > .enc-empty {
    min-height: 380px;
  }

  .enc-textpreview {
    max-height: 220px;
  }
}

@media (max-width: 560px) {
  .enc-head {
    display: block;
  }

  .enc-chips {
    margin: 5px 0 0;
  }

  .enc-chip-tag {
    margin: 0 5px 3px 0;
  }

  .enc-preview {
    min-height: 360px;
  }

  .enc-preview > .enc-empty {
    min-height: 300px;
  }

  .enc-textpreview {
    min-height: 150px;
    max-height: 190px;
    padding: 9px 10px;
    font-size:14px;
  }
}
