/* Utilix — ZIP Tools (xmlt-) */
:root {
    --xmlt-accent: #2563eb;
    --xmlt-accent-light: #dbeafe;
    --xmlt-accent-dark: #1d4ed8;
    --xmlt-accent-border: #93c5fd;
}

.xmlt-hero { padding-bottom: 40px; }
.xmlt-hero__grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: center; }
.xmlt-hero__main { display: flex; gap: 20px; align-items: flex-start; }
.xmlt-hero__visual { display: flex; align-items: center; justify-content: center; min-height: 260px; }

.xmlt-main { padding: 0 0 48px; }
.xmlt-section-head { margin-bottom: 24px; }
.xmlt-section-head h2 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; color: var(--heading); }
.xmlt-section-head p { margin: 0; font-size: .875rem; color: #64748b; }
.xmlt-section-head--center { text-align: center; }
.xmlt-section-head--center p { margin: 0 auto; max-width: 560px; }
.xmlt-section-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .75rem; font-weight: 700; color: var(--xmlt-accent); background: var(--xmlt-accent-light); border-radius: 999px; margin-bottom: 12px; }
.xmlt-section-eyebrow i { width: 14px; height: 14px; }

.xmlt-mode-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 32px; }
.xmlt-mode-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 12px; background: #fff; border: 2px solid #e8ecf1; border-radius: 16px; cursor: pointer; text-align: center; transition: border-color .2s, box-shadow .2s, transform .15s; font-family: inherit; }
.xmlt-mode-btn:hover { border-color: var(--xmlt-accent-border); box-shadow: 0 6px 20px rgba(37,99,235,.12); transform: translateY(-2px); }
.xmlt-mode-btn.is-active { border-color: var(--xmlt-accent); background: linear-gradient(180deg, #dbeafe 0%, #fff 100%); box-shadow: 0 4px 20px rgba(37,99,235,.15); }
.xmlt-mode-btn.is-active::after { content: '✓'; position: absolute; top: 8px; right: 10px; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: .625rem; font-weight: 800; color: #fff; background: var(--xmlt-accent); border-radius: 50%; line-height: 1; }
.xmlt-mode-btn__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; margin-top: 4px; }
.xmlt-mode-btn__icon i { width: 22px; height: 22px; }
.xmlt-mode-btn strong { font-size: .6875rem; font-weight: 700; color: var(--heading); line-height: 1.3; }
.xmlt-mode-btn span:last-child { font-size: .5625rem; color: #94a3b8; line-height: 1.35; }
.xmlt-mode-btn--pink .xmlt-mode-btn__icon { background: #fce7f3; color: #db2777; }
.xmlt-mode-btn--blue .xmlt-mode-btn__icon { background: #dbeafe; color: #2563eb; }
.xmlt-mode-btn--green .xmlt-mode-btn__icon { background: #d1fae5; color: #059669; }
.xmlt-mode-btn--orange .xmlt-mode-btn__icon { background: #ffedd5; color: #ea580c; }
.xmlt-mode-btn--purple .xmlt-mode-btn__icon { background: #ede9fe; color: #7c3aed; }
.xmlt-mode-btn--teal .xmlt-mode-btn__icon { background: #dbeafe; color: #1d4ed8; }
.xmlt-mode-btn--yellow .xmlt-mode-btn__icon { background: #fef9c3; color: #ca8a04; }
.xmlt-mode-btn--cyan .xmlt-mode-btn__icon { background: #cffafe; color: #0891b2; }
.xmlt-mode-btn--pink .xmlt-mode-btn__icon { background: #fce7f3; color: #db2777; }
.xmlt-mode-btn--gray .xmlt-mode-btn__icon { background: #f1f5f9; color: #334155; }
.xmlt-mode-btn--red .xmlt-mode-btn__icon { background: #fee2e2; color: #dc2626; }

.xmlt-subsection { margin: 18px 0 10px; font-size: .875rem; font-weight: 700; color: var(--heading); }

.xmlt-output-hint { margin: 12px 0 0; font-size: .75rem; color: #64748b; }
.xmlt-output-hint em { font-style: normal; }

.xmlt-json-key { color: #f87171; }
.xmlt-json-str { color: #4ade80; }
.xmlt-json-num { color: #fbbf24; }
.xmlt-json-bool { color: #60a5fa; }
.xmlt-json-tag { color: #f472b6; }

.xmlt-field input[type="datetime-local"] {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
    font-size: .875rem; font-family: inherit; background: #fff; color: var(--text); box-sizing: border-box;
}

.xmlt-workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.xmlt-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: 0 4px 24px rgba(15,23,42,.05); }
.xmlt-card__head h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.xmlt-mode-badge { display: inline-block; margin-top: 8px; padding: 4px 10px; font-size: .6875rem; font-weight: 700; color: var(--xmlt-accent-dark); background: var(--xmlt-accent-light); border: 1px solid var(--xmlt-accent-border); border-radius: 999px; }
.xmlt-mode-desc { margin: 12px 0 16px; padding: 12px 14px; font-size: .8125rem; color: #0f766e; background: var(--xmlt-accent-light); border: 1px solid var(--xmlt-accent-border); border-radius: 12px; }

.xmlt-field { margin-bottom: 14px; }
.xmlt-field label { display: block; margin-bottom: 4px; font-size: .8125rem; font-weight: 700; color: var(--heading); }
.xmlt-field small { display: block; margin-bottom: 6px; font-size: .6875rem; color: #94a3b8; font-weight: 500; }
.xmlt-field input[type="text"], .xmlt-field input[type="url"], .xmlt-field input[type="color"], .xmlt-field select, .xmlt-field textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
    font-size: .875rem; font-family: inherit; background: #fff; color: var(--text); box-sizing: border-box;
}
.xmlt-field textarea { resize: vertical; min-height: 80px; font-family: ui-monospace, monospace; font-size: .8125rem; }
.xmlt-field input:focus, .xmlt-field select:focus, .xmlt-field textarea:focus, .xmlt-field input[type="datetime-local"]:focus { outline: none; border-color: var(--xmlt-accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.xmlt-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xmlt-field--counter { position: relative; }
.xmlt-char-counter { display: block; text-align: right; margin-top: 4px; font-size: .6875rem; font-weight: 600; color: #94a3b8; }
.xmlt-char-counter.is-good { color: #059669; }
.xmlt-char-counter.is-warn { color: #ca8a04; }
.xmlt-char-counter.is-bad { color: #dc2626; }

.xmlt-check-row { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 14px; }
.xmlt-check { display: flex; align-items: center; gap: 8px; font-size: .8125rem; cursor: pointer; }
.xmlt-check input { accent-color: var(--xmlt-accent); width: 16px; height: 16px; }

.xmlt-color-field { display: flex; gap: 10px; align-items: center; }
.xmlt-color-field input[type="color"] { width: 44px; height: 44px; padding: 2px; flex-shrink: 0; cursor: pointer; }
.xmlt-color-field input[type="text"] { flex: 1; font-family: ui-monospace, monospace; }

.xmlt-btn-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 8px; }
.xmlt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border: none; border-radius: 12px; font-size: .875rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.xmlt-btn i { width: 16px; height: 16px; }
.xmlt-btn--primary { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,.35); }
.xmlt-btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.45); }
.xmlt-btn--outline { background: #fff; border: 1px solid var(--xmlt-accent-border); color: var(--xmlt-accent-dark); }
.xmlt-btn--outline:hover { background: var(--xmlt-accent-light); }
.xmlt-btn--sm { padding: 8px 12px; font-size: .75rem; border-radius: 10px; }
.xmlt-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.xmlt-output-card { position: sticky; top: 90px; }
.xmlt-output-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.xmlt-output-head h2 { margin: 0 0 4px; font-size: 1.0625rem; font-weight: 700; }
.xmlt-output-head p { margin: 0; font-size: .8125rem; color: #64748b; }
.xmlt-output-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }

.xmlt-result-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 280px; padding: 24px; color: #94a3b8; text-align: center; border: 1px dashed var(--border); border-radius: 12px; background: #f8fafc; }
.xmlt-result-empty[hidden], #xmlt-result-content[hidden] { display: none !important; }
.xmlt-result-empty i { width: 48px; height: 48px; opacity: .4; }

.xmlt-code-block { margin: 0; padding: 16px 16px 16px 48px; background: #0f172a; color: #e2e8f0; border-radius: 12px; font-size: .75rem; font-family: ui-monospace, monospace; line-height: 1.7; overflow-x: auto; min-height: 280px; position: relative; counter-reset: line; white-space: pre-wrap; word-break: break-all; }
.xmlt-code-block .xmlt-line { display: block; position: relative; padding-left: 8px; }
.xmlt-code-block .xmlt-line::before { counter-increment: line; content: counter(line); position: absolute; left: -36px; width: 24px; text-align: right; color: #475569; font-size: .6875rem; }
.xmlt-code-block .xmlt-tag { color: #f87171; }
.xmlt-code-block .xmlt-attr { color: #60a5fa; }
.xmlt-code-block .xmlt-val { color: #4ade80; }

.xmlt-values-section { padding: 48px 0; background: #f8fafc; }
.xmlt-values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.xmlt-value-card { padding: 20px 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; text-align: center; }
.xmlt-value-card__icon { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin: 0 auto 12px; border-radius: 12px; }
.xmlt-value-card__icon i { width: 22px; height: 22px; }
.xmlt-value-card__icon--green { background: #d1fae5; color: #059669; }
.xmlt-value-card__icon--blue { background: #dbeafe; color: #2563eb; }
.xmlt-value-card__icon--orange { background: #ffedd5; color: #ea580c; }
.xmlt-value-card__icon--purple { background: #ede9fe; color: #7c3aed; }
.xmlt-value-card__icon--red { background: #fee2e2; color: #dc2626; }
.xmlt-value-card strong { display: block; margin-bottom: 6px; font-size: .875rem; }
.xmlt-value-card p { margin: 0; font-size: .75rem; color: #64748b; line-height: 1.45; }

.xmlt-about { padding: 48px 0; }
.xmlt-info__grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 48px 0; }
.xmlt-about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.xmlt-about-feature { display: flex; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.xmlt-about-feature__icon { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; flex-shrink: 0; }
.xmlt-about-feature__icon i { width: 18px; height: 18px; }
.xmlt-value-card__icon--pink { background: #fce7f3; color: #db2777; }
.xmlt-about-feature__icon--pink { background: #fce7f3; color: #db2777; }
.xmlt-about-feature__icon--blue { background: #dbeafe; color: #2563eb; }
.xmlt-about-feature__icon--green { background: #d1fae5; color: #059669; }
.xmlt-about-feature__icon--orange { background: #ffedd5; color: #ea580c; }
.xmlt-about-feature__icon--purple { background: #ede9fe; color: #7c3aed; }
.xmlt-about-feature__icon--cyan { background: #cffafe; color: #0891b2; }
.xmlt-about-feature__icon--teal { background: #dbeafe; color: #1d4ed8; }
.xmlt-about-feature strong { display: block; font-size: .8125rem; margin-bottom: 4px; }
.xmlt-about-feature p { margin: 0; font-size: .75rem; color: #64748b; line-height: 1.45; }

.xmlt-side-card { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 16px; }
.xmlt-side-card--tips { background: linear-gradient(180deg, #dbeafe 0%, #fff 100%); }
.xmlt-side-card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1rem; font-weight: 700; }
.xmlt-side-card__title i { width: 18px; height: 18px; color: var(--xmlt-accent); }
.xmlt-tips-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.xmlt-tips-head__icon { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; background: var(--xmlt-accent-light); color: var(--xmlt-accent); border-radius: 10px; }
.xmlt-tips-head h3 { margin: 0; font-size: .9375rem; }
.xmlt-tips-list { list-style: none; padding: 0; margin: 0; }
.xmlt-tips-list li { display: flex; gap: 10px; padding: 8px 0; font-size: .8125rem; color: #64748b; line-height: 1.5; border-bottom: 1px solid var(--border); }
.xmlt-tips-list li:last-child { border-bottom: none; }
.xmlt-tips-list__check { display: flex; width: 20px; height: 20px; align-items: center; justify-content: center; background: #d1fae5; color: #059669; border-radius: 50%; flex-shrink: 0; }
.xmlt-tips-list__check i { width: 12px; height: 12px; }
.xmlt-tools-list { list-style: none; padding: 0; margin: 0; }
.xmlt-tools-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: .8125rem; font-weight: 600; transition: background .15s; }
.xmlt-tools-link:hover { background: #f1f5f9; }
.xmlt-tools-link.is-current { background: var(--xmlt-accent-light); color: var(--xmlt-accent-dark); }
.xmlt-tools-link__icon { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; background: #f1f5f9; border-radius: 8px; }
.xmlt-tools-link__icon i { width: 16px; height: 16px; }
.xmlt-tools-link span:nth-child(2) { flex: 1; }
.xmlt-tools-link > i:last-child { width: 14px; height: 14px; color: #94a3b8; }
.xmlt-view-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .8125rem; font-weight: 700; color: var(--xmlt-accent); text-decoration: none; }

.xmlt-steps-section { padding: 48px 0; background: #f8fafc; }
.xmlt-how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.xmlt-how-step { padding: 20px 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; text-align: center; position: relative; }
.xmlt-how-step__num { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; margin: 0 auto 12px; background: var(--xmlt-accent); color: #fff; border-radius: 50%; font-weight: 800; font-size: .875rem; }
.xmlt-how-step strong { display: block; margin-bottom: 6px; font-size: .8125rem; }
.xmlt-how-step p { margin: 0; font-size: .75rem; color: #94a3b8; line-height: 1.45; }

.xmlt-toast { position: fixed; bottom: 24px; right: 24px; padding: 12px 20px; background: #1e293b; color: #fff; border-radius: 10px; font-size: .8125rem; font-weight: 600; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; pointer-events: none; z-index: 9999; }
.xmlt-toast.is-visible { opacity: 1; transform: translateY(0); }
.xmlt-animate-in { animation: xmlt-fade-up .5s ease both; }
.xmlt-animate-in--delay { animation-delay: .08s; }
@keyframes xmlt-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes xmlt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Hero */
.xmlt-hero__demo { position: relative; width: 100%; max-width: 380px; height: 260px; margin: 0 auto; }
.xmlt-hero__rich-result { position: absolute; top: 8px; right: 0; width: 220px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 28px rgba(15,23,42,.1); z-index: 2; }
.xmlt-hero__stars { color: #fbbf24; font-size: .75rem; letter-spacing: 1px; margin-bottom: 6px; }
.xmlt-hero__rich-result strong { display: block; font-size: .875rem; color: #1a0dab; margin-bottom: 4px; }
.xmlt-hero__rich-result > span { display: block; font-size: .625rem; color: #006621; margin-bottom: 6px; }
.xmlt-hero__rich-result p { margin: 0; font-size: .6875rem; color: #545454; line-height: 1.45; }
.xmlt-hero__json-arrow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--xmlt-accent); color: #fff; border-radius: 50%; z-index: 3; box-shadow: 0 4px 12px rgba(37,99,235,.35); }
.xmlt-hero__json-arrow i { width: 16px; height: 16px; }
.xmlt-hero__json-box { position: absolute; bottom: 10px; left: 0; width: 200px; padding: 14px; background: #0f172a; border-radius: 12px; box-shadow: 0 8px 24px rgba(15,23,42,.2); z-index: 2; }
.xmlt-hero__json-box code { font-family: ui-monospace, monospace; font-size: .5625rem; color: #94a3b8; line-height: 1.7; word-break: break-all; }
.xmlt-hero__window { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 280px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(15,23,42,.12); overflow: hidden; z-index: 2; }
.xmlt-hero__window-bar { display: flex; gap: 5px; padding: 8px 10px; background: #f1f5f9; }
.xmlt-hero__window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.xmlt-hero__window-body { padding: 14px; font-family: ui-monospace, monospace; font-size: .5625rem; line-height: 1.8; color: #64748b; }
.xmlt-hero__window-body em { color: #f87171; font-style: normal; }
.xmlt-hero__window-body b { color: #60a5fa; font-weight: 600; }
.xmlt-hero__window-body s { color: #4ade80; text-decoration: none; }
.xmlt-hero__float-icon { position: absolute; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; box-shadow: 0 4px 12px rgba(15,23,42,.1); animation: xmlt-float 4s ease-in-out infinite; }
.xmlt-hero__float-icon i { width: 18px; height: 18px; }
.xmlt-hero__float-icon--1 { top: 30px; left: 0; background: #d1fae5; color: #059669; animation-delay: 0s; }
.xmlt-hero__float-icon--2 { top: 60px; right: 0; background: #dbeafe; color: #2563eb; animation-delay: .5s; }
.xmlt-hero__float-icon--3 { bottom: 50px; left: 10px; background: #ffedd5; color: #ea580c; animation-delay: 1s; }
.xmlt-hero__float-icon--4 { bottom: 30px; right: 20px; background: #ede9fe; color: #7c3aed; animation-delay: 1.5s; }
.xmlt-hero__gear { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2563eb, #1d4ed8); border-radius: 14px; color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,.35); z-index: 3; }
.xmlt-hero__gear i { width: 24px; height: 24px; }

.xmlt-mode-panel[hidden] { display: none !important; }

@media (max-width: 1100px) {
    .xmlt-hero__grid, .xmlt-workspace, .xmlt-info__grid { grid-template-columns: 1fr; }
    .xmlt-hero__visual { display: none; }
    .xmlt-mode-grid { grid-template-columns: repeat(3, 1fr); }
    .xmlt-output-card { position: static; }
    .xmlt-values { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .xmlt-mode-grid { grid-template-columns: repeat(2, 1fr); }
    .xmlt-field-row, .xmlt-about-features, .xmlt-values, .xmlt-how-steps, .xmlt-btn-row { grid-template-columns: 1fr; }
}

[data-theme="dark"] .xmlt-card, [data-theme="dark"] .xmlt-mode-btn, [data-theme="dark"] .xmlt-side-card, [data-theme="dark"] .xmlt-about-feature, [data-theme="dark"] .xmlt-value-card, [data-theme="dark"] .xmlt-how-step { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .xmlt-mode-btn.is-active { background: linear-gradient(180deg, rgba(37,99,235,.12) 0%, var(--bg-section) 100%); }
[data-theme="dark"] .xmlt-mode-desc { background: rgba(37,99,235,.1); border-color: rgba(94,234,212,.3); color: #93c5fd; }
[data-theme="dark"] .xmlt-field input, [data-theme="dark"] .xmlt-field select, [data-theme="dark"] .xmlt-field textarea { background: #0f172a; border-color: var(--border); color: var(--text); }
[data-theme="dark"] .xmlt-btn--outline { background: #1a2332; border-color: rgba(94,234,212,.3); color: #93c5fd; }
[data-theme="dark"] .xmlt-result-empty { background: #0f172a; border-color: var(--border); }
[data-theme="dark"] .xmlt-code-block { background: #0f172a; border: 1px solid var(--border); }
[data-theme="dark"] .xmlt-side-card--tips { background: linear-gradient(180deg, rgba(37,99,235,.08) 0%, var(--bg-section) 100%); }
[data-theme="dark"] .xmlt-tools-link.is-current { background: rgba(37,99,235,.12); color: #93c5fd; }
[data-theme="dark"] .xmlt-steps-section { background: rgba(37,99,235,.04); }
[data-theme="dark"] .xmlt-values-section { background: rgba(37,99,235,.04); }
[data-theme="dark"] .xmlt-section-head p { color: #94a3b8; }
[data-theme="dark"] .xmlt-mode-btn { background: var(--bg-section); }
[data-theme="dark"] .xmlt-hero__window { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .xmlt-hero__window-bar { background: #0f172a; }
[data-theme="dark"] .xmlt-hero__rich-result { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .xmlt-hero__rich-result strong { color: #93c5fd; }
[data-theme="dark"] .xmlt-hero__rich-result > span { color: #4ade80; }
[data-theme="dark"] .xmlt-hero__rich-result p { color: #94a3b8; }
[data-theme="dark"] .xmlt-hero__json-box { background: #0f172a; border: 1px solid var(--border); }
[data-theme="dark"] .xmlt-field input[type="datetime-local"] { background: #0f172a; border-color: var(--border); color: var(--text); }

/* ZIP Tools specific */
.xmlt-hero__overview-scene { position: relative; width: 100%; max-width: 380px; height: 280px; margin: 0 auto; }
.xmlt-hero__overview-card { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 300px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 32px rgba(15,23,42,.1); z-index: 2; }
.xmlt-hero__donut { width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 12px; background: conic-gradient(var(--xmlt-accent) 0deg 88deg, #e2e8f0 88deg 360deg); display: flex; align-items: center; justify-content: center; position: relative; }
.xmlt-hero__donut::after { content: ''; position: absolute; width: 68px; height: 68px; background: #fff; border-radius: 50%; }
.xmlt-hero__donut-val { position: relative; z-index: 1; font-size: .875rem; font-weight: 800; color: var(--xmlt-accent-dark); text-align: center; line-height: 1.2; }
.xmlt-hero__donut-val small { display: block; font-size: .5625rem; font-weight: 600; color: #94a3b8; }
.xmlt-hero__overview-title { text-align: center; font-size: .8125rem; font-weight: 700; color: var(--heading); margin-bottom: 12px; }
.xmlt-hero__overview-stats { display: flex; flex-direction: column; gap: 6px; }
.xmlt-hero__overview-stat { display: flex; justify-content: space-between; font-size: .75rem; color: #64748b; }
.xmlt-hero__overview-stat strong { color: var(--heading); }
.xmlt-hero__overview-badge { display: inline-block; margin-top: 10px; padding: 4px 12px; font-size: .6875rem; font-weight: 700; background: #d1fae5; color: #059669; border-radius: 999px; }
.xmlt-hero__float { position: absolute; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; box-shadow: 0 4px 12px rgba(15,23,42,.1); animation: xmlt-float 4s ease-in-out infinite; }
.xmlt-hero__float i { width: 20px; height: 20px; }
.xmlt-hero__float--chart { top: 10px; left: 0; background: #dbeafe; color: #1d4ed8; }
.xmlt-hero__float--hash { top: 50px; right: -10px; background: #dbeafe; color: #2563eb; animation-delay: .5s; }
.xmlt-hero__float--type { bottom: 60px; left: 10px; background: #fef9c3; color: #ca8a04; animation-delay: 1s; }
.xmlt-hero__float--list { bottom: 20px; right: 20px; background: #ede9fe; color: #7c3aed; animation-delay: 1.5s; }

.xmlt-input-tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.xmlt-input-tab { padding: 10px 16px; background: none; border: none; border-bottom: 2px solid transparent; font-size: .8125rem; font-weight: 700; color: #64748b; cursor: pointer; font-family: inherit; }
.xmlt-input-tab.is-active { color: var(--xmlt-accent-dark); border-bottom-color: var(--xmlt-accent); }
.xmlt-input-panel[hidden] { display: none !important; }
.xmlt-content-area { position: relative; }
.xmlt-content-area textarea { min-height: 200px; line-height: 1.6; font-family: inherit; font-size: .875rem; }
.xmlt-content-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: .75rem; color: #94a3b8; }
.xmlt-clear-link { padding: 0; background: none; border: none; font-size: .75rem; font-weight: 600; color: var(--xmlt-accent-dark); cursor: pointer; font-family: inherit; }

.xmlt-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.xmlt-stat-card { padding: 14px 12px; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.xmlt-stat-card strong { display: block; font-size: 1.25rem; font-weight: 800; color: var(--heading); line-height: 1.2; }
.xmlt-stat-card span { display: block; margin-top: 4px; font-size: .625rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .03em; }

.xmlt-report-preview { display: block; margin: 0 0 16px; padding: 16px 18px; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .75rem; line-height: 1.75; color: #64748b; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.xmlt-report-preview:empty { display: none; }
.xmlt-mode-output { margin-top: 4px; }
.xmlt-mode-output.is-report-only { display: none; }

.xmlt-kw-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.xmlt-kw-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.xmlt-kw-table th { padding: 10px 12px; text-align: left; font-size: .6875rem; font-weight: 700; color: #64748b; text-transform: uppercase; background: #f8fafc; border-bottom: 1px solid var(--border); }
.xmlt-kw-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.xmlt-kw-table tr:last-child td { border-bottom: none; }
.xmlt-kw-table tr:hover td { background: #f8fafc; }
.xmlt-trend-bar { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; min-width: 80px; }
.xmlt-trend-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #059669); transition: width .3s; }

.xmlt-result-empty { padding: 40px 20px; text-align: center; color: #94a3b8; }
.xmlt-result-empty i { width: 40px; height: 40px; margin-bottom: 10px; color: var(--xmlt-accent); opacity: .5; }
.xmlt-view-all { display: block; width: 100%; margin-top: 12px; }

.xmlt-focus-card { margin-top: 16px; padding: 20px; background: #f8fafc; border: 1px solid var(--border); border-radius: 16px; }
.xmlt-focus-card[hidden] { display: none !important; }
.xmlt-focus-card h3 { margin: 0 0 4px; font-size: .9375rem; }
.xmlt-focus-keyword { font-size: 1.125rem; font-weight: 800; color: var(--xmlt-accent-dark); margin-bottom: 16px; }
.xmlt-gauge { margin-bottom: 16px; }
.xmlt-gauge__labels { display: flex; justify-content: space-between; font-size: .625rem; font-weight: 600; color: #94a3b8; margin-bottom: 6px; }
.xmlt-gauge__track { position: relative; height: 12px; border-radius: 999px; background: linear-gradient(90deg, #fee2e2 0%, #fee2e2 20%, #d1fae5 20%, #d1fae5 60%, #fef9c3 60%, #fef9c3 80%, #fecaca 80%); }
.xmlt-gauge__pointer { position: absolute; top: -4px; width: 4px; height: 20px; background: var(--xmlt-accent-dark); border-radius: 2px; transform: translateX(-50%); transition: left .4s ease; }
.xmlt-gauge__value { text-align: center; margin-top: 8px; font-size: 1.5rem; font-weight: 800; color: var(--xmlt-accent-dark); }
.xmlt-rec-box { padding: 12px 14px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; font-size: .8125rem; color: #065f46; margin-bottom: 14px; }
.xmlt-checklist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.xmlt-check-item { display: flex; justify-content: space-between; align-items: center; font-size: .8125rem; padding: 8px 0; border-bottom: 1px solid var(--border); }
.xmlt-check-item:last-child { border-bottom: none; }
.xmlt-check-yes { color: #059669; font-weight: 700; }
.xmlt-check-no { color: #dc2626; font-weight: 700; }
.xmlt-focus-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.xmlt-heading-list { display: flex; flex-direction: column; gap: 8px; }
.xmlt-heading-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #f8fafc; border-radius: 10px; font-size: .8125rem; }
.xmlt-heading-tag { flex-shrink: 0; padding: 2px 8px; font-size: .625rem; font-weight: 800; color: #fff; background: var(--xmlt-accent); border-radius: 6px; }
.xmlt-heading-tag--h1 { background: #1d4ed8; }
.xmlt-heading-tag--h2 { background: #2563eb; }
.xmlt-heading-tag--h3 { background: #2dd4bf; color: #0f766e; }
.xmlt-heading-tag--h4 { background: #93c5fd; color: #0f766e; }
.xmlt-heading-tag--h5 { background: #99f6e4; color: #0f766e; }
.xmlt-heading-tag--h6 { background: #dbeafe; color: #0f766e; }

.xmlt-word-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xmlt-word-stat { padding: 16px; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.xmlt-word-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--xmlt-accent-dark); }
.xmlt-word-stat span { font-size: .75rem; color: #64748b; }

.xmlt-mode-panel[hidden] { display: none !important; }
.xmlt-practices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; max-width: 720px; margin: 0 auto; }
.xmlt-practice { display: flex; gap: 10px; align-items: flex-start; font-size: .8125rem; color: #64748b; line-height: 1.5; }
.xmlt-practice__icon { display: flex; width: 22px; height: 22px; align-items: center; justify-content: center; background: #d1fae5; color: #059669; border-radius: 50%; flex-shrink: 0; }
.xmlt-practice__icon i { width: 12px; height: 12px; }

@media (max-width: 1100px) {
    .xmlt-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .xmlt-workspace { grid-template-columns: 1fr; }
    .xmlt-actions-bar { flex-direction: column; align-items: stretch; }
    .xmlt-actions-list { justify-content: stretch; }
    .xmlt-actions-list .xmlt-btn { flex: 1 1 calc(50% - 4px); min-width: 0; }
    .xmlt-practices { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .xmlt-stat-grid { grid-template-columns: 1fr 1fr; }
    .xmlt-mode-grid { grid-template-columns: repeat(2, 1fr); }
    .xmlt-sample-box__body { flex-direction: column; }
    .xmlt-sample-load { width: 100%; }
    .xmlt-actions-list .xmlt-btn { flex: 1 1 100%; }
}

[data-theme="dark"] .xmlt-hero__overview-card { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .xmlt-hero__donut::after { background: var(--bg-section); }
[data-theme="dark"] .xmlt-report-preview { background: #0f172a; border-color: var(--border); color: #94a3b8; }
[data-theme="dark"] .xmlt-stat-card { background: #0f172a; border-color: var(--border); }
[data-theme="dark"] .xmlt-kw-table th { background: #0f172a; }
[data-theme="dark"] .xmlt-kw-table tr:hover td { background: #0f172a; }
[data-theme="dark"] .xmlt-focus-card { background: #0f172a; border-color: var(--border); }
[data-theme="dark"] .xmlt-rec-box { background: rgba(37,99,235,.1); border-color: rgba(94,234,212,.3); color: #93c5fd; }
[data-theme="dark"] .xmlt-heading-item { background: #0f172a; }
[data-theme="dark"] .xmlt-word-stat { background: #0f172a; border-color: var(--border); }
[data-theme="dark"] .xmlt-input-tab { color: #94a3b8; }
[data-theme="dark"] .xmlt-input-tab.is-active { color: #93c5fd; }

/* ZIP Tools specific */
.xmlt-hero__scene { position: relative; width: 100%; max-width: 400px; height: 280px; margin: 0 auto; }
.xmlt-hero__csv-scene { position: relative; width: 100%; max-width: 400px; height: 280px; margin: 0 auto; }
.xmlt-hero__browser { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); width: 280px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.1); z-index: 2; overflow: hidden; }
.xmlt-hero__browser-bar { height: 28px; background: #f1f5f9; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.xmlt-hero__browser-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.xmlt-hero__mini-table { padding: 10px; font-size: .5625rem; }
.xmlt-hero__mini-row { display: grid; grid-template-columns: .5fr 1fr .9fr .7fr .6fr; gap: 4px; padding: 4px 0; border-bottom: 1px solid #f1f5f9; color: #64748b; font-size: .5rem; }
.xmlt-hero__mini-row--head { font-weight: 700; color: var(--xmlt-accent-dark); }
.xmlt-hero__float { position: absolute; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; box-shadow: 0 4px 12px rgba(15,23,42,.1); animation: xmlt-float 4s ease-in-out infinite; }
.xmlt-hero__float i { width: 20px; height: 20px; }
.xmlt-hero__float--xls { top: 10px; left: 0; background: #dbeafe; color: #2563eb; }
.xmlt-hero__float--file { top: 10px; left: 0; background: #dbeafe; color: #2563eb; }
.xmlt-hero__float--chart { bottom: 40px; right: 0; background: #ede9fe; color: #7c3aed; animation-delay: .6s; }

.xmlt-dropzone { border: 2px dashed #cbd5e1; border-radius: 16px; padding: 28px 16px; text-align: center; background: #f8fafc; transition: border-color .2s, background .2s; cursor: pointer; }
.xmlt-dropzone.is-dragover { border-color: var(--xmlt-accent); background: #dbeafe; }
.xmlt-dropzone__icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--xmlt-accent); }
.xmlt-dropzone__icon i { width: 48px; height: 48px; }
.xmlt-dropzone p { margin: 0 0 12px; font-size: .8125rem; color: #64748b; }
.xmlt-dropzone__hint { font-size: .6875rem; color: #94a3b8; margin-top: 10px; }
.xmlt-file-name { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%); border: 1px solid #bfdbfe; border-radius: 12px; font-size: .75rem; font-weight: 600; color: var(--xmlt-accent-dark); word-break: break-all; }
.xmlt-file-name::before { content: ''; flex-shrink: 0; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3C/svg%3E") center/contain no-repeat; }
.xmlt-file-name:empty { display: none; }

.xmlt-sample-box { margin-top: 14px; padding: 14px; background: linear-gradient(180deg, #f8fafc 0%, #fff 100%); border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.xmlt-sample-box__header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.xmlt-sample-box__icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: var(--xmlt-accent); flex-shrink: 0; }
.xmlt-sample-box__icon i { width: 18px; height: 18px; }
.xmlt-sample-box__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xmlt-sample-box__text strong { font-size: .8125rem; font-weight: 800; color: var(--heading); line-height: 1.2; }
.xmlt-sample-box__text span { font-size: .6875rem; color: #94a3b8; line-height: 1.35; }
.xmlt-sample-box__body { display: flex; gap: 8px; align-items: stretch; }
.xmlt-sample-select { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }
.xmlt-sample-select__lead { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--xmlt-accent); pointer-events: none; z-index: 1; }
.xmlt-sample-select__chev { position: absolute; right: 12px; width: 16px; height: 16px; color: #64748b; pointer-events: none; z-index: 1; }
.xmlt-sample-select select {
    width: 100%; padding: 11px 36px 11px 36px; border: 1px solid #cbd5e1; border-radius: 12px;
    font-size: .8125rem; font-weight: 600; font-family: inherit; color: var(--heading);
    background: #fff; cursor: pointer; appearance: none; -webkit-appearance: none;
    transition: border-color .2s, box-shadow .2s;
}
.xmlt-sample-select select:hover { border-color: var(--xmlt-accent-border); }
.xmlt-sample-select select:focus { outline: none; border-color: var(--xmlt-accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.xmlt-sample-load {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0;
    padding: 0 16px; min-height: 42px; border: none; border-radius: 12px; cursor: pointer; font-family: inherit;
    font-size: .8125rem; font-weight: 700; color: #fff; white-space: nowrap;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37,99,235,.3);
    transition: transform .15s, box-shadow .15s;
}
.xmlt-sample-load i { width: 16px; height: 16px; }
.xmlt-sample-load:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,.4); }
.xmlt-sample-load:active { transform: translateY(0); }

.xmlt-preview-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.xmlt-preview-head h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.xmlt-preview-head p { margin: 4px 0 0; font-size: .8125rem; color: #64748b; }
.xmlt-preview-head__controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.xmlt-field--inline { margin: 0; min-width: 160px; }
.xmlt-field--inline label { font-size: .6875rem; margin-bottom: 4px; }
.xmlt-field--inline select { padding: 8px 10px; font-size: .8125rem; border: 1px solid var(--border); border-radius: 10px; width: 100%; font-family: inherit; background: #fff; }
.xmlt-data-table code { font-size: .75rem; color: #7c3aed; background: #f5f3ff; padding: 2px 6px; border-radius: 4px; }
[data-theme="dark"] .xmlt-field--inline select { background: #0f172a; border-color: var(--border); color: var(--text); }
[data-theme="dark"] .xmlt-data-table code { background: rgba(124,58,237,.15); color: #c4b5fd; }
[data-theme="dark"] .xmlt-preview-head p { color: #94a3b8; }

.xmlt-preview-tabs { display: flex; gap: 4px; margin-bottom: 0; border-bottom: 1px solid var(--border); }
.xmlt-preview-tab { padding: 10px 14px; background: none; border: none; border-bottom: 2px solid transparent; font-size: .8125rem; font-weight: 700; color: #64748b; cursor: pointer; font-family: inherit; }
.xmlt-preview-tab.is-active { color: var(--xmlt-accent-dark); border-bottom-color: var(--xmlt-accent); }
.xmlt-preview-panel[hidden] { display: none !important; }
.xmlt-preview-empty { padding: 48px 20px; text-align: center; color: #94a3b8; font-size: .8125rem; }
.xmlt-data-table-wrap { overflow: auto; max-height: 420px; border: 1px solid var(--border); border-radius: 12px; }
.xmlt-data-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.xmlt-data-table th { position: sticky; top: 0; padding: 10px 12px; text-align: left; font-size: .6875rem; font-weight: 700; color: #64748b; text-transform: uppercase; background: #f8fafc; border-bottom: 1px solid var(--border); white-space: nowrap; }
.xmlt-data-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.xmlt-data-table tr:hover td { background: #f8fafc; }
.xmlt-data-table td.is-editable { padding: 0; }
.xmlt-data-table td.is-editable input { width: 100%; padding: 8px 12px; border: none; background: transparent; font: inherit; color: inherit; }
.xmlt-data-table td.is-editable input:focus { outline: 2px solid var(--xmlt-accent); background: #dbeafe; }
.xmlt-data-table tr.is-diff td { background: #fef9c3; }
.xmlt-data-table tr.is-diff-add td { background: #d1fae5; }
.xmlt-data-table tr.is-diff-del td { background: #fee2e2; }
.xmlt-raw-area { width: 100%; min-height: 360px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; font-family: ui-monospace, monospace; font-size: .75rem; line-height: 1.6; resize: vertical; box-sizing: border-box; }
.xmlt-preview-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: .75rem; color: #64748b; }
.xmlt-preview-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.xmlt-pagination { display: flex; align-items: center; gap: 6px; }
.xmlt-page-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; font-family: inherit; }
.xmlt-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.xmlt-page-btn.is-active { background: var(--xmlt-accent); color: #fff; border-color: var(--xmlt-accent); }
.xmlt-per-page { padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: .75rem; font-family: inherit; }

.xmlt-actions-card { grid-column: 1 / -1; position: static; }
.xmlt-actions-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.xmlt-actions-bar__head { flex: 1 1 220px; min-width: 0; }
.xmlt-actions-bar__head h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.xmlt-actions-bar__head p { margin: 4px 0 0; font-size: .8125rem; color: #64748b; }
.xmlt-actions-list { display: flex; flex-wrap: wrap; gap: 8px; flex: 2 1 420px; justify-content: flex-end; }
.xmlt-actions-list .xmlt-btn { width: auto; flex: 1 1 auto; min-width: 140px; justify-content: center; white-space: nowrap; }
.xmlt-btn--danger { border-color: #fecaca; color: #dc2626; }
.xmlt-btn--danger:hover { background: #fee2e2; }
.xmlt-validation { margin-top: 12px; padding: 12px; border-radius: 10px; font-size: .8125rem; }
.xmlt-validation--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.xmlt-validation--err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.xmlt-trust { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 32px 0; }
.xmlt-trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .75rem; font-weight: 600; color: #64748b; }
.xmlt-trust-item i { width: 24px; height: 24px; color: var(--xmlt-accent); }

.xmlt-related { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.xmlt-related-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.xmlt-related-card:hover { box-shadow: 0 6px 20px rgba(37,99,235,.1); transform: translateY(-2px); }
.xmlt-related-card__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.xmlt-related-card__icon i { width: 22px; height: 22px; }
.xmlt-related-card span { font-size: .6875rem; font-weight: 700; text-align: center; }

@media (max-width: 1100px) {
    .xmlt-trust { grid-template-columns: repeat(3, 1fr); }
    .xmlt-related { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .xmlt-trust { grid-template-columns: repeat(2, 1fr); }
    .xmlt-related { grid-template-columns: repeat(2, 1fr); }
}

[data-theme="dark"] .xmlt-dropzone { background: #0f172a; border-color: var(--border); }
[data-theme="dark"] .xmlt-dropzone.is-dragover { background: rgba(37,99,235,.12); }
[data-theme="dark"] .xmlt-file-name { background: linear-gradient(135deg, rgba(37,99,235,.15) 0%, rgba(37,99,235,.08) 100%); border-color: rgba(94,234,212,.25); color: #93c5fd; }
[data-theme="dark"] .xmlt-sample-box { background: linear-gradient(180deg, #0f172a 0%, var(--bg-section) 100%); border-color: var(--border); box-shadow: none; }
[data-theme="dark"] .xmlt-sample-box__icon { background: linear-gradient(135deg, rgba(37,99,235,.25) 0%, rgba(37,99,235,.12) 100%); color: #93c5fd; }
[data-theme="dark"] .xmlt-sample-select select { background: #0f172a; border-color: var(--border); color: var(--text); }
[data-theme="dark"] .xmlt-sample-select select:hover { border-color: rgba(94,234,212,.35); }
[data-theme="dark"] .xmlt-data-table tr.is-diff td { background: rgba(234,179,8,.15); }
[data-theme="dark"] .xmlt-data-table tr.is-diff-add td { background: rgba(34,197,94,.15); }
[data-theme="dark"] .xmlt-data-table tr.is-diff-del td { background: rgba(239,68,68,.15); }
[data-theme="dark"] .xmlt-hero__browser { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .xmlt-hero__browser-bar { background: #0f172a; }
[data-theme="dark"] .xmlt-data-table th { background: #0f172a; }
[data-theme="dark"] .xmlt-data-table tr:hover td { background: #0f172a; }
[data-theme="dark"] .xmlt-raw-area { background: var(--bg-section); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .xmlt-page-btn { background: var(--bg-section); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .xmlt-related-card { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .xmlt-validation--ok { background: rgba(16,185,129,.1); color: #6ee7b7; }
[data-theme="dark"] .xmlt-validation--err { background: rgba(239,68,68,.1); color: #fca5a5; }

/* ZIP Tools specific */
.xmlt-hero__scene { position: relative; width: 100%; max-width: 400px; height: 280px; margin: 0 auto; }
.xmlt-hero__float { position: absolute; display: flex; align-items: center; justify-content: center; border-radius: 12px; box-shadow: 0 4px 12px rgba(15,23,42,.1); animation: xmlt-float 4s ease-in-out infinite; }
.xmlt-hero__float--doc { top: 10px; left: 0; width: 40px; height: 40px; background: #dbeafe; color: #2563eb; }
.xmlt-hero__float--doc i { width: 20px; height: 20px; }
.xmlt-hero__float--tag { bottom: 50px; right: 0; padding: 6px 10px; background: #2563eb; color: #fff; font-size: .625rem; font-weight: 800; animation-delay: .5s; }
.xmlt-hero__editor { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); width: 280px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,23,42,.1); overflow: hidden; z-index: 2; }
.xmlt-hero__editor-bar { height: 28px; background: #f1f5f9; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.xmlt-hero__editor-bar span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.xmlt-hero__editor-toolbar { display: flex; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #f1f5f9; font-size: .6875rem; font-weight: 700; color: #64748b; }
.xmlt-hero__editor-body { padding: 12px; font-size: .5625rem; color: #64748b; line-height: 1.5; }
.xmlt-hero__editor-body strong { display: block; color: var(--heading); margin-bottom: 6px; font-size: .625rem; }
@keyframes xmlt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.xmlt-doc-preview { min-height: 360px; max-height: 420px; overflow: auto; padding: 16px 20px; border: 1px solid var(--border); border-radius: 12px; font-size: .875rem; line-height: 1.65; background: #fff; }
.xmlt-doc-preview p { margin: 0 0 10px; }
.xmlt-doc-preview h1, .xmlt-doc-preview h2, .xmlt-doc-preview h3 { margin: 16px 0 8px; color: var(--heading); }
.xmlt-doc-preview p.is-diff { background: #fef9c3; padding: 4px 8px; border-radius: 4px; }
.xmlt-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.xmlt-stat-card { padding: 16px; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.xmlt-stat-card strong { display: block; font-size: 1.375rem; font-weight: 800; color: var(--xmlt-accent-dark); }
.xmlt-stat-card span { font-size: .75rem; color: #64748b; }
.xmlt-meta-table th { width: 140px; text-align: left; font-weight: 700; color: #64748b; background: #f8fafc; }
.xmlt-preview-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.xmlt-preview-head h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.xmlt-preview-head p { margin: 4px 0 0; font-size: .8125rem; color: #64748b; }
.xmlt-preview-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0; border-bottom: 1px solid var(--border); }
[data-theme="dark"] .xmlt-doc-preview { background: var(--bg-section); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .xmlt-doc-preview p.is-diff { background: rgba(234,179,8,.15); }
[data-theme="dark"] .xmlt-stat-card { background: #0f172a; border-color: var(--border); }
[data-theme="dark"] .xmlt-hero__editor { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .xmlt-hero__editor-bar { background: #0f172a; }
[data-theme="dark"] .xmlt-preview-head p { color: #94a3b8; }
@media (max-width: 600px) { .xmlt-stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ZIP archive hero mockup */
.xmlt-hero__archive { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); width: 290px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 36px rgba(15,23,42,.12); overflow: hidden; z-index: 2; }
.xmlt-hero__archive-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #f1f5f9; border-bottom: 1px solid var(--border); }
.xmlt-hero__archive-bar span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.xmlt-hero__archive-bar em { margin-left: auto; font-style: normal; font-size: .625rem; font-weight: 700; color: #64748b; }
.xmlt-hero__archive-body { padding: 8px 12px; }
.xmlt-hero__archive-row { display: grid; grid-template-columns: 16px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; font-size: .5625rem; color: #64748b; border-bottom: 1px solid #f1f5f9; }
.xmlt-hero__archive-row:last-child { border-bottom: none; }
.xmlt-hero__archive-row i { width: 14px; height: 14px; color: var(--xmlt-accent); }
.xmlt-hero__archive-row b { font-size: .5rem; color: #94a3b8; font-weight: 600; }
.xmlt-hero__archive-foot { padding: 10px 12px; border-top: 1px solid var(--border); background: #f8fafc; }
.xmlt-hero__archive-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .5625rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2563eb, #1d4ed8); border-radius: 8px; }
.xmlt-hero__archive-btn i { width: 12px; height: 12px; }

.xmlt-recent { margin-top: 16px; }
.xmlt-recent__title { margin: 0 0 8px; font-size: .75rem; font-weight: 700; color: var(--heading); text-transform: uppercase; letter-spacing: .04em; }
.xmlt-recent-list { display: flex; flex-direction: column; gap: 6px; }
.xmlt-recent-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; font-size: .75rem; color: #64748b; }
.xmlt-recent-item i { width: 14px; height: 14px; color: var(--xmlt-accent); flex-shrink: 0; }
.xmlt-recent-item span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xmlt-recent-item__size { font-size: .6875rem; color: #94a3b8; flex-shrink: 0; }
.xmlt-trust-section { border-top: 1px solid var(--border); }

[data-theme="dark"] .xmlt-hero__archive { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .xmlt-hero__archive-bar { background: #0f172a; }
[data-theme="dark"] .xmlt-hero__archive-foot { background: #0f172a; }
[data-theme="dark"] .xmlt-hero__archive-row { border-color: var(--border); }
[data-theme="dark"] .xmlt-recent-item { background: #0f172a; border-color: var(--border); color: #94a3b8; }

/* XML Tools — editors, tree, hero */
.xmlt-hero__features { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.xmlt-hero__feat { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: #64748b; font-weight: 600; }
.xmlt-hero__feat i { width: 16px; height: 16px; color: #059669; flex-shrink: 0; }
.xmlt-hero__code-card { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 300px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 36px rgba(15,23,42,.12); overflow: hidden; z-index: 2; }
.xmlt-hero__code-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: #f1f5f9; border-bottom: 1px solid var(--border); font-size: .625rem; font-weight: 700; color: #64748b; }
.xmlt-hero__code-head span { display: flex; gap: 5px; }
.xmlt-hero__code-head span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; box-shadow: 12px 0 0 #cbd5e1, 24px 0 0 #cbd5e1; }
.xmlt-hero__code-pre { margin: 0; padding: 12px 14px; font-family: ui-monospace, monospace; font-size: .5625rem; line-height: 1.7; color: #64748b; background: #fff; }
.xmlt-hero__code-pre .tag { color: #2563eb; }
.xmlt-hero__code-pre .attr { color: #7c3aed; }
.xmlt-hero__code-pre .val { color: #059669; }
.xmlt-hero__float--xml { top: 8px; right: 0; padding: 6px 10px; background: #2563eb; color: #fff; font-size: .625rem; font-weight: 800; }

.xmlt-input-tabs, .xmlt-output-tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.xmlt-input-tab, .xmlt-output-tab { padding: 8px 14px; background: none; border: none; border-bottom: 2px solid transparent; font-size: .8125rem; font-weight: 700; color: #64748b; cursor: pointer; font-family: inherit; }
.xmlt-input-tab.is-active, .xmlt-output-tab.is-active { color: var(--xmlt-accent-dark); border-bottom-color: var(--xmlt-accent); }
.xmlt-input-panel[hidden], .xmlt-upload-panel[hidden] { display: none !important; }

.xmlt-editor-wrap { display: grid; grid-template-columns: 36px 1fr; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; min-height: 320px; }
.xmlt-line-nums { padding: 12px 6px; background: #f8fafc; border-right: 1px solid var(--border); font-family: ui-monospace, monospace; font-size: .75rem; line-height: 1.6; color: #94a3b8; text-align: right; overflow: hidden; user-select: none; white-space: pre; }
.xmlt-editor { width: 100%; min-height: 320px; max-height: 420px; padding: 12px 14px; border: none; resize: vertical; font-family: ui-monospace, monospace; font-size: .75rem; line-height: 1.6; background: #fff; color: var(--text); box-sizing: border-box; }
.xmlt-editor:focus { outline: none; }
.xmlt-editor--output { background: #f8fafc; }
.xmlt-editor--readonly { background: #f8fafc; }
.xmlt-input-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: .6875rem; color: #94a3b8; font-weight: 600; }
.xmlt-output-toolbar { display: flex; gap: 8px; margin-top: 10px; }
.xmlt-output-toolbar .xmlt-btn { flex: 1; }

.xmlt-tree-wrap { min-height: 320px; max-height: 420px; overflow: auto; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; font-family: ui-monospace, monospace; font-size: .75rem; }
.xmlt-tree-empty { padding: 40px 16px; text-align: center; color: #94a3b8; font-size: .8125rem; }
.xmlt-tree-node { margin: 2px 0; }
.xmlt-tree-row { display: flex; align-items: center; gap: 4px; padding: 2px 0; cursor: default; }
.xmlt-tree-toggle { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border: none; background: none; cursor: pointer; color: #64748b; padding: 0; font-family: inherit; font-size: .625rem; }
.xmlt-tree-tag { color: #2563eb; font-weight: 700; }
.xmlt-tree-attr { color: #7c3aed; }
.xmlt-tree-val { color: #059669; }
.xmlt-tree-text { color: #64748b; }
.xmlt-tree-children { margin-left: 16px; border-left: 1px dashed #e2e8f0; padding-left: 8px; }
.xmlt-tree-children[hidden] { display: none; }

.xmlt-syntax { margin: 0; padding: 12px 14px; min-height: 320px; max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: #0f172a; font-family: ui-monospace, monospace; font-size: .75rem; line-height: 1.6; color: #e2e8f0; white-space: pre-wrap; word-break: break-all; }
.xmlt-syntax .tag { color: #60a5fa; }
.xmlt-syntax .attr { color: #c4b5fd; }
.xmlt-syntax .val { color: #4ade80; }
.xmlt-syntax .cmt { color: #64748b; font-style: italic; }

.xmlt-mode-panel[hidden] { display: none !important; }
.xmlt-compare-area { margin-top: 12px; }
.xmlt-compare-area label { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 700; }

[data-theme="dark"] .xmlt-editor-wrap { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .xmlt-line-nums { background: #0f172a; border-color: var(--border); }
[data-theme="dark"] .xmlt-editor { background: var(--bg-section); color: var(--text); }
[data-theme="dark"] .xmlt-editor--output, [data-theme="dark"] .xmlt-editor--readonly { background: #0f172a; }
[data-theme="dark"] .xmlt-tree-wrap { background: #0f172a; border-color: var(--border); }
[data-theme="dark"] .xmlt-tree-children { border-color: var(--border); }
[data-theme="dark"] .xmlt-hero__code-card { background: var(--bg-section); border-color: var(--border); }
[data-theme="dark"] .xmlt-hero__code-head { background: #0f172a; }
[data-theme="dark"] .xmlt-hero__code-pre { background: var(--bg-section); color: #94a3b8; }
[data-theme="dark"] .xmlt-input-tab, [data-theme="dark"] .xmlt-output-tab { color: #94a3b8; }
[data-theme="dark"] .xmlt-input-tab.is-active, [data-theme="dark"] .xmlt-output-tab.is-active { color: #93c5fd; }

@media (max-width: 1100px) {
    .xmlt-workspace { grid-template-columns: 1fr; }
}
