/* ============================================================================
   JS and CSS Minifier (rebuilt 2026-10-12)
   Everything is scoped to .mjc (the tool container) or a mjc- class.
   Light mode default, dark mode via [data-theme="dark"] on <html>. Accent #339966.
   ========================================================================== */
.mjc {
    --mjc-primary: #339966;
    --mjc-primary-dark: #25764e;
    --mjc-primary-soft: rgba(51, 153, 102, 0.12);
    --mjc-primary-mid: rgba(51, 153, 102, 0.28);
    --mjc-btn: #2b7f56;
    --mjc-btn-hover: #226a47;
    --mjc-success: #2f8f5f;
    --mjc-success-soft: rgba(51, 153, 102, 0.12);
    --mjc-danger: #d64545;
    --mjc-danger-soft: rgba(230, 78, 78, 0.10);
    --mjc-warning: #b7791f;
    --mjc-warning-soft: rgba(245, 158, 11, 0.12);
    --mjc-elevated: #ffffff;
    --mjc-bg-2: #f1f5f9;
    --mjc-text: #1e293b;
    --mjc-text-2: #475569;
    --mjc-muted: #64748b;
    --mjc-border: #e2e8f0;
    --mjc-border-strong: #cbd5e1;
    --mjc-code-bg: #f8fafc;
    --mjc-switch-off: #cbd5e1;
    --mjc-switch-off-border: #94a3b8;
    --mjc-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    --mjc-shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.18);
    --mjc-r-sm: 8px;
    --mjc-r-md: 12px;
    --mjc-r-lg: 16px;
    --tool-accent: #339966;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    color: var(--mjc-text);
    box-sizing: border-box;
}
[data-theme="dark"] .mjc {
    --mjc-primary: #4cc38a;
    --mjc-primary-dark: #7fd8ad;
    --mjc-primary-soft: rgba(76, 195, 138, 0.15);
    --mjc-primary-mid: rgba(76, 195, 138, 0.32);
    --mjc-success: #4ade80;
    --mjc-success-soft: rgba(74, 222, 128, 0.14);
    --mjc-danger: #f87171;
    --mjc-danger-soft: rgba(248, 113, 113, 0.14);
    --mjc-warning: #fbbf24;
    --mjc-warning-soft: rgba(251, 191, 36, 0.14);
    --mjc-elevated: #1e293b;
    --mjc-bg-2: #273449;
    --mjc-text: #f1f5f9;
    --mjc-text-2: #cbd5e1;
    --mjc-muted: #94a3b8;
    --mjc-border: #334155;
    --mjc-border-strong: #475569;
    --mjc-code-bg: #0f172a;
    --mjc-switch-off: #475569;
    --mjc-switch-off-border: #64748b;
    --mjc-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    --mjc-shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.mjc *, .mjc *::before, .mjc *::after { box-sizing: border-box; }
.mjc [hidden] { display: none !important; }
.mjc button { width: auto; }   /* custom_styles.css makes every button 100% wide under 768px */
.mjc a { color: var(--mjc-primary); }
.mjc a:hover { color: var(--mjc-primary-dark); }
.mjc i[data-lucide], .mjc svg.lucide { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- breadcrumb + header ---------- */
.mjc .mjc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 0.82rem; color: var(--mjc-muted); margin: 0 0 1.1rem; }
.mjc .mjc-crumbs a { color: var(--mjc-muted); text-decoration: none; }
.mjc .mjc-crumbs a:hover { color: var(--mjc-primary); text-decoration: underline; }
.mjc .mjc-crumbs svg { width: 13px; height: 13px; }
.mjc .mjc-header { text-align: center; margin-bottom: 1.75rem; }
.mjc .mjc-title-row { display: flex; align-items: center; justify-content: center; gap: 0.85rem; margin-bottom: 0.85rem; }
.mjc .mjc-title-icon { width: 56px; height: 56px; border-radius: var(--mjc-r-md); background: var(--mjc-primary); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-theme="dark"] .mjc .mjc-title-icon { background: #2b7f56; }
.mjc .mjc-title-icon svg, .mjc .mjc-title-icon i { width: 28px; height: 28px; display: block; }
.mjc .mjc-title { margin: 0; color: var(--mjc-primary); font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.mjc .mjc-desc { max-width: 900px; margin: 0 auto; color: var(--mjc-text-2); font-size: 1.05rem; line-height: 1.7; }

/* ---------- messages ---------- */
.mjc .mjc-error { display: flex; gap: 0.75rem; align-items: flex-start; background: var(--mjc-danger-soft); border: 1px solid var(--mjc-danger); color: var(--mjc-text); border-radius: var(--mjc-r-md); padding: 0.85rem 1rem; margin: 0 0 1rem; }
.mjc .mjc-error > svg { color: var(--mjc-danger); margin-top: 2px; }
.mjc .mjc-error p { margin: 0; line-height: 1.55; }
.mjc .mjc-error-body { flex: 1; min-width: 0; }
.mjc .mjc-x { background: none; border: 0; color: var(--mjc-muted); cursor: pointer; padding: 2px; border-radius: 6px; display: inline-flex; }
.mjc .mjc-x:hover { color: var(--mjc-text); background: var(--mjc-bg-2); }
.mjc .mjc-note { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.85rem; padding: 0.6rem 0.75rem 0.6rem 0.9rem; border: 1px solid rgba(51, 153, 102, 0.35); border-radius: var(--mjc-r-md); background: var(--mjc-success-soft); color: var(--mjc-text); font-size: 0.92rem; }
.mjc .mjc-note.is-hint { border-color: rgba(245, 158, 11, 0.4); background: var(--mjc-warning-soft); }
.mjc .mjc-note-icon { display: inline-flex; color: var(--mjc-success); flex-shrink: 0; }
.mjc .mjc-note.is-hint .mjc-note-icon { color: var(--mjc-warning); }
.mjc .mjc-note > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }

/* ---------- cards ---------- */
.mjc .mjc-card { background: var(--mjc-elevated); border: 1px solid var(--mjc-border); border-radius: var(--mjc-r-lg); padding: 1.25rem; box-shadow: var(--mjc-shadow); min-width: 0; }
.mjc .mjc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; min-width: 0; flex-wrap: wrap; }
.mjc .mjc-panel-head h2 { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 1rem; font-weight: 700; color: var(--mjc-text); white-space: nowrap; }
.mjc .mjc-panel-head h2 svg { color: var(--mjc-primary); }
.mjc .mjc-chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 700; min-width: 0; color: var(--mjc-primary); background: var(--mjc-primary-soft); border-radius: 6px; padding: 0.18rem 0.55rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mjc .mjc-chip.mjc-chip-warn { color: var(--mjc-warning); background: var(--mjc-warning-soft); }
.mjc .mjc-chip svg { width: 13px; height: 13px; }

/* ---------- upload ---------- */
.mjc .mjc-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem; min-height: 240px; padding: 2.25rem 1.25rem; text-align: center; cursor: pointer; border: 2px dashed var(--mjc-border-strong); border-radius: var(--mjc-r-lg); background: var(--mjc-elevated); transition: border-color 0.2s ease, background-color 0.2s ease; }
.mjc .mjc-drop:hover, .mjc .mjc-drop.mjc-over, .mjc .mjc-drop:focus-within { border-color: var(--mjc-primary); background: var(--mjc-primary-soft); }
.mjc .mjc-drop-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--mjc-primary-soft); color: var(--mjc-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 0.35rem; }
.mjc .mjc-drop-icon svg { width: 30px; height: 30px; }
.mjc .mjc-drop strong { font-size: 1.25rem; color: var(--mjc-text); }
.mjc .mjc-drop-link { color: var(--mjc-primary); text-decoration: underline; text-underline-offset: 3px; }
.mjc .mjc-drop-sub { color: var(--mjc-muted); font-size: 0.92rem; }
.mjc .mjc-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.6rem; }
.mjc .mjc-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--mjc-bg-2); color: var(--mjc-text-2); font-size: 0.8rem; font-weight: 600; }
.mjc .mjc-badge svg { width: 14px; height: 14px; color: var(--mjc-success); }
.mjc .mjc-under { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.85rem; }

/* ConvertICO ring loader */
.mjc .mjc-loader { display: block; width: 32px; height: 32px; overflow: visible; flex-shrink: 0; --cico-outer: #f2534e; --cico-outer-soft: #f8d3d1; --cico-mid: #31ae77; --cico-mid-soft: #d0e7dd; --cico-inner: #2b9edb; }
[data-theme="dark"] .mjc .mjc-loader { --cico-outer-soft: rgba(242, 83, 78, 0.22); --cico-mid-soft: rgba(49, 174, 119, 0.22); }
.mjc .mjc-loader circle { fill: none; stroke-width: 72; transform-box: fill-box; transform-origin: center; }
.mjc .mjc-loader .bp { stroke: var(--cico-outer-soft); }
.mjc .mjc-loader .gp { stroke: var(--cico-mid-soft); }
.mjc .mjc-loader .b { stroke: var(--cico-outer); stroke-linecap: round; stroke-dasharray: 35.3 100; animation: mjcSpinL 1.3s linear infinite; }
.mjc .mjc-loader .g { stroke: var(--cico-mid); stroke-linecap: round; stroke-dasharray: 75.8 100; animation: mjcSpinR 2.1s linear infinite; }
.mjc .mjc-loader .r { stroke: var(--cico-inner); animation: mjcBreathe 1.3s ease-in-out infinite; }
@keyframes mjcSpinL { from { transform: rotate(117deg); } to { transform: rotate(-243deg); } }
@keyframes mjcSpinR { from { transform: rotate(36deg); } to { transform: rotate(396deg); } }
@keyframes mjcBreathe { 50% { transform: scale(0.9); } }
@media (prefers-reduced-motion: reduce) { .mjc .mjc-loader .b { animation-duration: 4s; } .mjc .mjc-loader .g { animation-duration: 6s; } .mjc .mjc-loader .r { animation: none; } }
.mjc .mjc-reading { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.75rem; color: var(--mjc-muted); font-size: 0.92rem; }

/* ---------- buttons ---------- */
.mjc .mjc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 44px; padding: 0.6rem 1.15rem; border-radius: var(--mjc-r-md); font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; margin: 0; }
.mjc .mjc-btn:focus-visible { outline: 2px solid var(--mjc-primary); outline-offset: 2px; }
.mjc .mjc-btn-primary { background: var(--mjc-btn); color: #fff; }
.mjc .mjc-btn-primary:hover { background: var(--mjc-btn-hover); color: #fff; }
.mjc .mjc-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.mjc .mjc-btn-ghost { background: var(--mjc-elevated); color: var(--mjc-text); border-color: var(--mjc-border-strong); }
.mjc .mjc-btn-ghost:hover { border-color: var(--mjc-primary); color: var(--mjc-primary); }
.mjc .mjc-btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; }
.mjc .mjc-btn-sm { white-space: nowrap; flex-shrink: 0; min-height: 34px; padding: 0.35rem 0.75rem; font-size: 0.85rem; border-radius: var(--mjc-r-sm); }
.mjc .mjc-btn-sm svg { width: 15px; height: 15px; }
.mjc .mjc-link-btn { background: none; border: 0; padding: 0.25rem; font: inherit; font-size: 0.85rem; color: var(--mjc-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; margin: 0; }
.mjc .mjc-link-btn:hover { color: var(--mjc-primary); }
.mjc .mjc-link-btn.mjc-danger:hover { color: var(--mjc-danger); }
.mjc .mjc-link-btn svg { width: 15px; height: 15px; }
.mjc .mjc-icon-btn { width: 34px; height: 34px; padding: 0; margin: 0; border-radius: var(--mjc-r-sm); border: 1px solid var(--mjc-border); background: var(--mjc-elevated); color: var(--mjc-text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.mjc .mjc-icon-btn:hover { border-color: var(--mjc-primary); color: var(--mjc-primary); }
.mjc .mjc-icon-btn.mjc-danger:hover { border-color: var(--mjc-danger); color: var(--mjc-danger); }
.mjc .mjc-icon-btn svg { width: 16px; height: 16px; }
.mjc .mjc-icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.mjc .mjc-actions { display: flex; justify-content: flex-end; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; align-items: center; }
.mjc .mjc-kbd { font-size: 0.75rem; color: var(--mjc-muted); margin-right: auto; }
.mjc kbd { font: inherit; font-size: 0.72rem; border: 1px solid var(--mjc-border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 0.3rem; background: var(--mjc-elevated); color: var(--mjc-text-2); }

/* ---------- layout ---------- */
.mjc .mjc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.mjc .mjc-grid > * { min-width: 0; }
.mjc .mjc-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.mjc .mjc-block { background: var(--mjc-elevated); border: 1px solid var(--mjc-border); border-radius: var(--mjc-r-md); padding: 0.9rem 1rem; margin-bottom: 0.875rem; }
.mjc .mjc-caption { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mjc-muted); margin: 0 0 0.45rem; }
.mjc .mjc-hint { font-size: 0.8rem; color: var(--mjc-muted); margin: 0.45rem 0 0; line-height: 1.45; }

/* segmented choices */
.mjc .mjc-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
.mjc .mjc-seg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mjc .mjc-seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mjc .mjc-seg-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mjc .mjc-qcard { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; padding: 0.5rem 0.6rem; min-height: 50px; min-width: 0; margin: 0; border: 1px solid var(--mjc-border-strong); border-radius: var(--mjc-r-sm); background: var(--mjc-elevated); cursor: pointer; font: inherit; text-align: left; color: var(--mjc-text); }
.mjc .mjc-qcard b { font-size: 0.86rem; }
.mjc .mjc-qcard span { font-size: 0.72rem; color: var(--mjc-muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mjc .mjc-qcard:hover { border-color: var(--mjc-primary); }
.mjc .mjc-qcard.mjc-on { border-color: var(--mjc-primary); background: var(--mjc-primary-soft); box-shadow: inset 0 0 0 1px var(--mjc-primary); }
.mjc .mjc-qcard.mjc-on b { color: var(--mjc-primary); }
.mjc .mjc-qcard > svg { width: 18px; height: 18px; color: var(--mjc-primary); margin-bottom: 0.15rem; }
.mjc .mjc-q { min-height: 34px; padding: 0.3rem 0.5rem; margin: 0; border: 1px solid var(--mjc-border-strong); border-radius: var(--mjc-r-sm); background: var(--mjc-elevated); color: var(--mjc-text); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; line-height: 1.2; }
.mjc .mjc-q:hover { border-color: var(--mjc-primary); }
.mjc .mjc-q.mjc-on { background: var(--mjc-primary-soft); border-color: var(--mjc-primary); color: var(--mjc-primary); }

/* progressive disclosure rows */
.mjc .mjc-adv { background: var(--mjc-elevated); border: 1px solid var(--mjc-border); border-radius: var(--mjc-r-md); overflow: hidden; margin-bottom: 0.875rem; }
.mjc .mjc-adv-row + .mjc-adv-row { border-top: 1px solid var(--mjc-border); }
.mjc .mjc-adv-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 52px; padding: 0.6rem 0.9rem; margin: 0; background: none; border: 0; border-radius: 0; cursor: pointer; text-align: left; font: inherit; color: var(--mjc-text); }
.mjc .mjc-adv-head:hover { background: var(--mjc-bg-2); }
.mjc .mjc-adv-head:focus-visible { outline: 2px solid var(--mjc-primary); outline-offset: -2px; }
.mjc .mjc-adv-left, .mjc .mjc-adv-right { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 0; }
.mjc .mjc-adv-right { flex-shrink: 0; gap: 0.5rem; }
.mjc .mjc-adv-left > svg { width: 16px; height: 16px; color: var(--mjc-primary); }
.mjc .mjc-adv-text { display: flex; flex-direction: column; min-width: 0; }
.mjc .mjc-adv-title { font-size: 0.86rem; font-weight: 600; color: var(--mjc-text); white-space: nowrap; }
.mjc .mjc-adv-hint { font-size: 0.75rem; color: var(--mjc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mjc .mjc-adv-value { font-size: 0.76rem; font-weight: 700; color: var(--mjc-primary); background: var(--mjc-primary-soft); border-radius: 6px; padding: 0.15rem 0.5rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mjc .mjc-adv-chev { width: 16px; height: 16px; color: var(--mjc-muted); transition: transform 0.2s ease; }
.mjc .mjc-adv-row.mjc-open .mjc-adv-chev { transform: rotate(180deg); }
.mjc .mjc-adv-row.mjc-open .mjc-adv-head, .mjc .mjc-adv-row.mjc-open .mjc-adv-body { background: var(--mjc-bg-2); }
.mjc .mjc-adv-body { padding: 0.25rem 0.9rem 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; }
.mjc .mjc-subrow { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.2rem; }
.mjc .mjc-subrow-text { display: flex; flex-direction: column; min-width: 0; }
.mjc .mjc-subrow-text b { font-size: 0.84rem; color: var(--mjc-text); font-weight: 600; }
.mjc .mjc-subrow-text span { font-size: 0.74rem; color: var(--mjc-muted); line-height: 1.4; }
.mjc .mjc-switchwrap { display: inline-flex; align-items: center; gap: 0.45rem; flex-shrink: 0; }
.mjc .mjc-state { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; color: var(--mjc-muted); min-width: 26px; text-align: right; }
.mjc .mjc-state.mjc-on { color: var(--mjc-primary); }

/* form fields */
.mjc .mjc-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.mjc .mjc-field > span { font-size: 0.78rem; font-weight: 700; color: var(--mjc-text-2); }
.mjc .mjc-input, .mjc .mjc-select { width: 100%; min-width: 0; height: 38px; margin: 0; padding: 0 0.6rem; border: 1px solid var(--mjc-border-strong); border-radius: var(--mjc-r-sm); background: var(--mjc-elevated); color: var(--mjc-text); font: inherit; font-size: 0.9rem; }
.mjc .mjc-select { padding-right: 1.6rem; }
.mjc .mjc-input:focus, .mjc .mjc-select:focus { outline: none; border-color: var(--mjc-primary); box-shadow: 0 0 0 3px var(--mjc-primary-soft); }
.mjc .mjc-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.6rem; }
.mjc .mjc-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.mjc .mjc-stepper { display: flex; align-items: stretch; border: 1px solid var(--mjc-border-strong); border-radius: var(--mjc-r-sm); overflow: hidden; background: var(--mjc-elevated); min-width: 0; }
.mjc .mjc-stepper:focus-within { border-color: var(--mjc-primary); box-shadow: 0 0 0 3px var(--mjc-primary-soft); }
.mjc .mjc-stepper button { flex: 0 0 34px; border: 0; margin: 0; background: var(--mjc-bg-2); color: var(--mjc-text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 0; }
.mjc .mjc-stepper button:hover { color: var(--mjc-primary); }
.mjc .mjc-stepper button svg { width: 15px; height: 15px; }
.mjc .mjc-stepper input { flex: 1; min-width: 0; width: 100%; border: 0; margin: 0; background: transparent; color: var(--mjc-text); text-align: center; font: inherit; font-size: 0.95rem; font-weight: 600; padding: 0.45rem 0.2rem; -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
.mjc .mjc-stepper input::-webkit-outer-spin-button, .mjc .mjc-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mjc .mjc-stepper input:focus { outline: none; }
.mjc .mjc-unit { display: inline-flex; align-items: center; padding: 0 0.5rem; font-size: 0.78rem; color: var(--mjc-muted); font-weight: 700; background: var(--mjc-bg-2); }
.mjc .mjc-range { width: 100%; accent-color: var(--mjc-primary); margin: 0.2rem 0; }
.mjc .mjc-range-head { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--mjc-muted); }
.mjc .mjc-range-head b { color: var(--mjc-primary); }

/* switch - must out-specify the site-wide checkbox style in custom_styles.css */
.tool-container input[type="checkbox"].mjc-switch {
    -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
    box-sizing: border-box !important; position: relative !important; display: inline-block !important;
    width: 44px !important; min-width: 44px !important; max-width: 44px !important;
    height: 24px !important; min-height: 24px !important; padding: 0 !important; margin: 0 !important;
    border: 1px solid var(--mjc-switch-off-border) !important; border-radius: 999px !important;
    background: var(--mjc-switch-off) !important; background-color: var(--mjc-switch-off) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important; cursor: pointer !important; flex-shrink: 0 !important;
    outline: none !important; vertical-align: middle !important; transition: background-color 0.2s ease, border-color 0.2s ease !important;
}
.tool-container input[type="checkbox"].mjc-switch:hover { border-color: var(--mjc-primary) !important; }
.tool-container input[type="checkbox"].mjc-switch:checked { background: var(--mjc-primary) !important; background-color: var(--mjc-primary) !important; border-color: var(--mjc-primary) !important; box-shadow: none !important; }
.tool-container input[type="checkbox"].mjc-switch::after,
.tool-container input[type="checkbox"].mjc-switch:checked::after {
    content: '' !important; position: absolute !important; display: block !important; top: 2px !important; left: 2px !important; right: auto !important; bottom: auto !important;
    width: 18px !important; height: 18px !important; margin: 0 !important; padding: 0 !important; font-size: 0 !important; line-height: 0 !important;
    border-radius: 50% !important; border: 1px solid rgba(0, 0, 0, 0.12) !important; background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important; transform: none !important; transition: transform 0.2s ease !important;
}
.tool-container input[type="checkbox"].mjc-switch:checked::after { transform: translateX(20px) !important; }
.tool-container input[type="checkbox"].mjc-switch:focus-visible { outline: 2px solid var(--mjc-primary) !important; outline-offset: 2px !important; }

/* summary + guards */
.mjc .mjc-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; background: var(--mjc-primary-soft); border-radius: var(--mjc-r-md); padding: 0.75rem 0.9rem; }
.mjc .mjc-sum-item { display: flex; flex-direction: column; min-width: 0; }
.mjc .mjc-sum-item span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mjc-muted); font-weight: 700; white-space: nowrap; }
.mjc .mjc-sum-item b { font-size: 1.02rem; color: var(--mjc-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.mjc .mjc-guard { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.75rem; padding: 0.65rem 0.8rem; border-radius: var(--mjc-r-md); font-size: 0.84rem; line-height: 1.5; background: var(--mjc-primary-soft); color: var(--mjc-text); border: 1px solid transparent; }
.mjc .mjc-guard svg { width: 17px; height: 17px; color: var(--mjc-primary); margin-top: 1px; }
.mjc .mjc-guard.mjc-warn { background: var(--mjc-warning-soft); border-color: rgba(245, 158, 11, 0.35); }
.mjc .mjc-guard.mjc-warn svg { color: var(--mjc-warning); }
.mjc .mjc-guard p { margin: 0; }
.mjc .mjc-guard .mjc-link-btn { padding: 0; font-size: inherit; color: var(--mjc-primary); text-decoration: underline; }

/* code / text panes */
.mjc .mjc-tabs { display: flex; gap: 0.3rem; background: var(--mjc-bg-2); padding: 0.3rem; border-radius: var(--mjc-r-md); margin-bottom: 0.75rem; overflow-x: auto; }
.mjc .mjc-tab { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; min-height: 38px; padding: 0.35rem 0.8rem; margin: 0; border: 0; border-radius: 9px; background: transparent; color: var(--mjc-text-2); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; white-space: nowrap; flex: 1 0 auto; }
.mjc .mjc-tab svg { width: 15px; height: 15px; }
.mjc .mjc-tab.mjc-on { background: var(--mjc-elevated); color: var(--mjc-primary); box-shadow: var(--mjc-shadow); }
.mjc .mjc-tab:focus-visible { outline: 2px solid var(--mjc-primary); outline-offset: 1px; }
.mjc .mjc-code { display: block; width: 100%; min-height: 300px; max-height: 520px; margin: 0; padding: 0.85rem 0.95rem; border: 1px solid var(--mjc-border); border-radius: var(--mjc-r-md); background: var(--mjc-code-bg); color: var(--mjc-text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.84rem; line-height: 1.55; resize: vertical; white-space: pre; overflow: auto; tab-size: 4; }
.mjc .mjc-code:focus { outline: none; border-color: var(--mjc-primary); box-shadow: 0 0 0 3px var(--mjc-primary-soft); }
.mjc .mjc-code[readonly] { cursor: text; }
.mjc .mjc-stats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.7rem; }
.mjc .mjc-stat { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; padding: 0.22rem 0.6rem; border-radius: 999px; background: var(--mjc-bg-2); color: var(--mjc-text-2); white-space: nowrap; }
.mjc .mjc-stat b { color: var(--mjc-text); }
.mjc .mjc-stat svg { width: 13px; height: 13px; }
.mjc .mjc-stat.mjc-good { background: var(--mjc-success-soft); color: var(--mjc-success); }
.mjc .mjc-stat.mjc-good b { color: var(--mjc-success); }
.mjc .mjc-stat.mjc-bad { background: var(--mjc-warning-soft); color: var(--mjc-warning); }
.mjc .mjc-stat.mjc-bad b { color: var(--mjc-warning); }

/* file list */
.mjc .mjc-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 360px; overflow-y: auto; min-width: 0; }
.mjc .mjc-item { display: flex; align-items: center; gap: 0.5rem; min-width: 0; border: 1px solid var(--mjc-border); border-radius: var(--mjc-r-md); background: var(--mjc-elevated); padding: 0.45rem 0.45rem 0.45rem 0.6rem; }
.mjc .mjc-item.mjc-on { border-color: var(--mjc-primary); background: var(--mjc-primary-soft); }
.mjc .mjc-item-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.6rem; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.mjc .mjc-item-main:focus-visible { outline: 2px solid var(--mjc-primary); outline-offset: 2px; border-radius: 8px; }
.mjc .mjc-fmt { flex: 0 0 auto; min-width: 46px; height: 30px; padding: 0 0.4rem; border-radius: 7px; background: var(--mjc-primary-soft); color: var(--mjc-primary); font-size: 0.72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0.03em; }
.mjc .mjc-item-text { display: flex; flex-direction: column; min-width: 0; gap: 0.1rem; }
.mjc .mjc-item-name { font-size: 0.86rem; font-weight: 700; color: var(--mjc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mjc .mjc-item-meta { font-size: 0.74rem; color: var(--mjc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mjc .mjc-item-meta.mjc-warn-text { color: var(--mjc-warning); }

/* info sections */
.tool-container .mjc-info { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.mjc .mjc-info-card { background: var(--mjc-elevated); border: 1px solid var(--mjc-border); border-radius: var(--mjc-r-lg); padding: 1.4rem 1.5rem; }
.mjc .mjc-info-card h2 { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.85rem; font-size: 1.3rem; color: var(--mjc-text); }
.mjc .mjc-info-card h2 svg { width: 22px; height: 22px; color: var(--mjc-primary); }
.mjc .mjc-info-card h3 { margin: 0 0 0.35rem; font-size: 1rem; color: var(--mjc-text); }
.mjc .mjc-info-card p, .mjc .mjc-info-card li { color: var(--mjc-text-2); line-height: 1.7; font-size: 0.97rem; }
.mjc .mjc-info-card p { margin: 0 0 0.75rem; }
.mjc .mjc-info-card p:last-child { margin-bottom: 0; }
.mjc .mjc-ul { margin: 0 0 0.75rem; padding-left: 1.2rem; }
.mjc .mjc-ul li { margin-bottom: 0.35rem; }
.mjc .mjc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.mjc .mjc-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mjc .mjc-two > div { background: var(--mjc-bg-2); border-radius: var(--mjc-r-md); padding: 0.9rem 1rem; min-width: 0; }
.mjc .mjc-two p { font-size: 0.92rem; margin: 0 0 0.5rem; }
.mjc .mjc-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.15rem 0.5rem; border-radius: 6px; background: var(--mjc-primary-soft); color: var(--mjc-primary); margin-bottom: 0.4rem; }
.mjc .mjc-table-wrap { overflow-x: auto; border: 1px solid var(--mjc-border); border-radius: var(--mjc-r-md); margin-bottom: 0.75rem; }
.mjc .mjc-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 480px; }
.mjc .mjc-table th, .mjc .mjc-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--mjc-border); color: var(--mjc-text-2); vertical-align: top; }
.mjc .mjc-table th { background: var(--mjc-bg-2); color: var(--mjc-text); font-weight: 700; font-size: 0.82rem; }
.mjc .mjc-table tr:last-child td { border-bottom: 0; }
.mjc .mjc-table td:first-child { font-weight: 600; color: var(--mjc-text); white-space: nowrap; }
.mjc code.mjc-inline { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.86em; background: var(--mjc-bg-2); padding: 0.05rem 0.35rem; border-radius: 5px; color: var(--mjc-text); }

/* toast */
.mjc .mjc-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 9500; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 999px; background: #1e293b; color: #fff; font-size: 0.9rem; font-weight: 600; box-shadow: var(--mjc-shadow-lg); max-width: calc(100vw - 2rem); }
[data-theme="dark"] .mjc .mjc-toast { background: #f1f5f9; color: #0f172a; }
.mjc .mjc-toast svg { width: 16px; height: 16px; color: #4ade80; }
[data-theme="dark"] .mjc .mjc-toast svg { color: #2f8f5f; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .mjc .mjc-grid { grid-template-columns: minmax(0, 1fr); }
    .mjc .mjc-three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .mjc { padding: 1.25rem 0.75rem 2.5rem; }
    .mjc .mjc-title-icon { width: 46px; height: 46px; }
    .mjc .mjc-title-icon svg { width: 24px; height: 24px; }
    .mjc .mjc-card { padding: 0.9rem; }
    .mjc .mjc-block { padding: 0.8rem; }
    .mjc .mjc-pair { grid-template-columns: minmax(0, 1fr); }
    .mjc .mjc-seg-4, .mjc .mjc-seg-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mjc .mjc-two { grid-template-columns: minmax(0, 1fr); }
    .mjc .mjc-adv-hint { white-space: normal; }
    .mjc .mjc-info-card { padding: 1.1rem; }
    .mjc .mjc-kbd { display: none; }
    .mjc .mjc-actions .mjc-btn { flex: 1 1 auto; }
    .mjc .mjc-summary { padding: 0.65rem 0.7rem; }
    .mjc .mjc-sum-item b { font-size: 0.92rem; }
    .mjc .mjc-code { min-height: 240px; font-size: 0.8rem; }
}

/* ============================================================================
   JS and CSS Minifier - tool parts
   ========================================================================== */
.mjc .mjc-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.3fr); gap: 1rem; align-items: start; margin-bottom: 0.85rem; }
.mjc .mjc-ctl { min-width: 0; }
.mjc .mjc-qcard b { display: inline-flex; align-items: center; gap: 0.35rem; }
.mjc .mjc-qcard b svg { width: 15px; height: 15px; }
.mjc .mjc-opts .mjc-subrow { padding: 0.15rem 0 0.3rem; }
.mjc.mjc-beautify .mjc-min-only { display: none; }
.mjc:not(.mjc-beautify) .mjc-beau-only { display: none; }
.mjc .mjc-stats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.85rem; min-height: 28px; }
.mjc .mjc-stat.mjc-lang { background: var(--mjc-primary-soft); color: var(--mjc-primary); }
.mjc .mjc-stat.mjc-lang b { color: var(--mjc-primary); }
.mjc .mjc-files { margin-bottom: 0.85rem; }
.mjc .mjc-filelist { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.mjc .mjc-file { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.7rem; margin: 0; border: 1px solid var(--mjc-border-strong); border-radius: 999px; background: var(--mjc-elevated); color: var(--mjc-text); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; max-width: 100%; }
.mjc .mjc-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mjc .mjc-file small { color: var(--mjc-muted); font-weight: 500; }
.mjc .mjc-file svg { width: 14px; height: 14px; color: var(--mjc-primary); }
.mjc .mjc-file.mjc-on { border-color: var(--mjc-primary); background: var(--mjc-primary-soft); }
.mjc .mjc-panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.mjc .mjc-pane { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem; transition: border-color 0.2s ease, background-color 0.2s ease; }
.mjc .mjc-pane.mjc-over { border-color: var(--mjc-primary); background: var(--mjc-primary-soft); }
.mjc .mjc-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }
.mjc .mjc-pane-head h2 { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 1rem; color: var(--mjc-text); }
.mjc .mjc-pane-head h2 svg { color: var(--mjc-primary); }
.mjc .mjc-pane-tools { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.mjc .mjc-pane-tools label.mjc-btn { cursor: pointer; }
.mjc .mjc-pane .mjc-code { min-height: 380px; max-height: 620px; white-space: pre; }
.mjc .mjc-big { margin: 0; }
@media (max-width: 960px) {
    .mjc .mjc-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mjc .mjc-opts { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .mjc .mjc-panes, .mjc .mjc-controls { grid-template-columns: minmax(0, 1fr); }
    .mjc .mjc-pane .mjc-code { min-height: 240px; }
}
