/* =========================================================
   CSS Minifier – Styles (Basis: assets/css/tool-ui.css)
   ========================================================= */
.cm-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; padding: 14px 18px; }
.cm-toolbar__end { margin-left: auto; }
.cm-mode span { min-width: 104px; text-align: center; }
.cm-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cm-opts code { font-family: var(--mono); font-size: .9em; color: var(--violet); }
.cm-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.cm.is-fmt .cm-opts--min, .cm:not(.is-fmt) .cm-opts--fmt { display: none; }
.cm-file { position: relative; cursor: pointer; }
.cm-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cm-file:focus-within { outline: 2px solid #8fa8ff; outline-offset: 2px; }

.cm-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cm-pane { display: flex; flex-direction: column; min-width: 0; }
.cm-pane + .cm-pane { margin-top: 0; }
.cm-meta { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cm-drop { position: relative; }
.cm-area {
  display: block; width: 100%; height: 480px; padding: 14px 16px; border-radius: 14px; resize: vertical; tab-size: 2;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--ink); white-space: pre; overflow: auto;
  background: #fff; border: 1.5px solid rgba(15,19,48,.12); outline: 0; transition: border-color .25s, box-shadow .25s;
}
.cm-area:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(91,140,255,.15); }
.cm-area--out { background: #f7f8fc; white-space: pre-wrap; word-break: break-all; }
.cm.is-fmt .cm-area--out { white-space: pre; word-break: normal; }
.cm-area::placeholder { color: #9aa0bd; font-family: Inter, sans-serif; }
.cm-dropnote { position: absolute; inset: 0; display: none; place-items: center; border-radius: 14px; pointer-events: none; font-weight: 700; color: var(--violet); background: rgba(155,123,255,.08); border: 2px dashed var(--violet); }
.cm-drop.is-drop .cm-dropnote { display: grid; }

.cm-status { margin-top: 14px; }
.cm-status:empty { display: none; }
.cm-ok { margin: 0; }
.cm-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #0f7a52; background: rgba(34,192,140,.14); }
.cm-link { font-size: 12.5px; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* Ergebnis */
.cm-result { display: grid; gap: 12px; margin-top: 14px; }
.cm-result[hidden] { display: none; }
.cm-bars { display: grid; gap: 8px; }
.cm-bar { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13px; }
.cm-bar span { color: var(--muted); font-weight: 600; }
.cm-bar div { height: 10px; border-radius: 99px; background: rgba(15,19,48,.06); overflow: hidden; }
.cm-bar i { display: block; height: 100%; border-radius: inherit; background: #b7bfd8; transition: width .5s var(--ease); }
.cm-bar--out i { background: var(--grad); }
.cm-bar b { min-width: 76px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.cm-save { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.cm-save strong { font-size: 15px; color: #0f7a52; }
.cm-save span { font-size: 12.5px; color: var(--muted); }
.cm-done { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; color: var(--text); }
.cm-done li::before { content: "✓"; margin-right: 8px; font-weight: 700; color: var(--ok); }
.cm-done:empty { display: none; }

@media (max-width: 1000px) {
  .cm-panes { grid-template-columns: minmax(0, 1fr); }
  .cm-area { height: 300px; }
  .cm-toolbar__end { margin-left: 0; }
}
