@import url("/image-converter/styles.css?v=1");
/* word & character counter */
.wc-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 10px; }
.wc-strip > div { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 6px; text-align: center; min-width: 0; }
.wc-strip b { display: block; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-strip span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.wc-big b { font-size: clamp(26px, 5vw, 40px); color: #95d600; }
.wc-small b { font-size: clamp(16px, 3vw, 22px); }
.wc-text { width: 100%; min-height: 42vh; box-sizing: border-box; resize: vertical; padding: 14px; font: inherit; font-size: 16px; line-height: 1.5; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 12px; }
.wc-text:focus { outline: 2px solid #95d600; outline-offset: 1px; }
.wc-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.wc-bar .grow { flex: 1; }
.wc-check { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.wc-selnote { color: #95d600; margin: 0 0 6px; }
.wc-limitrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wc-limitrow select, .wc-bar select { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; min-height: 40px; max-width: 100%; }
.wc-meter { position: relative; height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; margin: 12px 0 8px; }
.wc-meter i { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: #95d600; transition: width .15s; }
.wc-meter i.warn { background: var(--warn); } .wc-meter i.over { background: var(--bad); }
.wc-meter #previewMark { width: 2px !important; background: var(--muted); opacity: .8; }
.wc-limit { font-size: 18px; margin: 0; font-variant-numeric: tabular-nums; }
.wc-limit.over { color: var(--bad); } .wc-limit.warn { color: var(--warn); }
.wc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px 10px; margin: 0; }
.wc-grid div { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; }
.wc-grid dt { font-size: 11px; color: var(--muted); margin: 0; }
.wc-grid dd { margin: 2px 0 0; font-size: 17px; font-variant-numeric: tabular-nums; }
.wc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.wc-table td, .wc-table th { padding: 6px 4px; border-top: 1px solid var(--border); text-align: left; }
.wc-table td:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wc-table tr.over td { color: var(--bad); } .wc-table tr.cur td { color: #95d600; }
.wc-table .bar { display: inline-block; height: 6px; background: #95d600; border-radius: 3px; vertical-align: middle; margin-left: 6px; }
.wc-details { margin-top: 10px; } .wc-details summary { cursor: pointer; color: var(--muted); }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) {
  .wc-strip { grid-template-columns: repeat(4, 1fr); position: sticky; top: 0; z-index: 2; background: var(--panel); padding: 6px 0; margin: -6px 0 8px; }
  .wc-big { grid-column: span 2; }
  .wc-text { min-height: 38vh; }
  .wc-bar .btn { flex: 1; min-width: 90px; }
}
/* what counts */
.wc-rulehead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wc-rulehead h2 { margin: 0; }
.wc-rulehead select { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; min-height: 40px; max-width: 100%; }
#ruleSummary { margin: 4px 0 0; min-height: 1.2em; }
.wc-rules fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px 10px; margin: 10px 0 0; }
.wc-rules legend { font-size: 12px; color: var(--muted); padding: 0 6px; }
.wc-togs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.wc-togs label { display: flex; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; }
.wc-togs label .d { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wc-togs label .d.plus { color: #95d600; } .wc-togs label .d.minus { color: var(--warn); }
.wc-custom { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.wc-custom .in { flex: 1; min-width: 180px; }
.wc-excluded { margin-top: 10px; padding: 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.5; max-height: 40vh; overflow: auto; }
.wc-excluded mark { background: rgba(255,120,120,.18); color: var(--muted); text-decoration: line-through; border-radius: 3px; padding: 0 1px; }
.wc-excluded mark.tok { background: rgba(242,201,76,.18); text-decoration: none; opacity: .8; }
.wc-excluded .lg { display: block; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
