:root {
  --bg: #f7f7f5; --panel: #ffffff; --ink: #1d2330; --muted: #5d6675; --line: #e3e5e8;
  --accent: #c2410c; --accent-ink: #ffffff; --add: #e6f4ea; --add-ink: #14532d; --del: #fdecea; --del-ink: #8a1c13;
  --mod: #fff7e6; --chip: #eef0f3; --focus: #2563eb;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b; --panel: #1a1f27; --ink: #e7e9ee; --muted: #a3abb9; --line: #2a313c;
    --accent: #f97316; --accent-ink: #1a1208; --add: #12301f; --add-ink: #a7f3c4; --del: #3a1714; --del-ink: #fecaca;
    --mod: #2e2512; --chip: #252c37; --focus: #60a5fa; --shadow: none;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.ui-en .l-es, .ui-es .l-en { display: none !important; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.top { border-bottom: 1px solid var(--line); background: var(--panel); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.logo { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--accent) 0 50%, #fb923c 50% 100%); }
.lang { display: flex; gap: 4px; }
.lang button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 14px; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }

.hero { padding: 40px 0 8px; }
.hero h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; }
.lead { font-size: 18px; margin: 0 0 8px; max-width: 760px; }
.note { color: var(--muted); font-size: 15px; margin: 0; }

.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 14px; }
.drop { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--panel); cursor: pointer; min-height: 116px; justify-content: center; }
.drop:hover, .drop.over { border-color: var(--accent); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-title { font-weight: 650; }
.drop-file { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
button, .button { font: inherit; border-radius: 10px; padding: 10px 18px; cursor: pointer; border: 1px solid transparent; text-decoration: none; display: inline-block; }
.primary { background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.small { padding: 6px 12px; font-size: 14px; }
.privacy { color: var(--muted); font-size: 14px; }
.status { min-height: 24px; color: var(--muted); margin: 14px 0; }

.results { margin: 8px 0 32px; }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.summary p { margin: 4px 0; }
.slides { font-weight: 650; }
.identical { color: var(--add-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--chip); border-radius: 999px; padding: 2px 10px; font-size: 14px; }
.chip-changed { background: var(--mod); } .chip-added { background: var(--add); } .chip-removed { background: var(--del); }
.muted { color: var(--muted); font-size: 14px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 10px; flex-wrap: wrap; }
.toggle { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 12px 16px; }
.card-body { border-top: 1px solid var(--line); padding: 10px 16px 14px; }
.card-body section + section { margin-top: 10px; }
.card-body h4 { margin: 4px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.badge { font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; text-transform: uppercase; letter-spacing: .04em; background: var(--chip); }
.badge-changed { background: var(--mod); } .badge-added { background: var(--add); color: var(--add-ink); } .badge-removed { background: var(--del); color: var(--del-ink); }
.where { color: var(--muted); font-size: 14px; }
.title { font-weight: 650; flex: 1 1 200px; overflow-wrap: anywhere; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

.diff .line { margin: 4px 0; padding: 4px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.line-mod { background: var(--mod); } .line-add { background: var(--add); } .line-del { background: var(--del); }
ins { background: var(--add); color: var(--add-ink); text-decoration: none; border-radius: 4px; padding: 0 2px; }
del { background: var(--del); color: var(--del-ink); border-radius: 4px; padding: 0 2px; }
.same-lines { margin: 4px 0; color: var(--muted); font-size: 13px; font-style: italic; }
.anim { margin: 0; padding-left: 18px; }
.anim > li { margin: 6px 0; overflow-wrap: anywhere; }
.order-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.order-cols ol { margin: 4px 0; padding-left: 20px; font-size: 14px; }
code { font-size: 13px; padding: 1px 4px; border-radius: 4px; overflow-wrap: anywhere; }
.del-code { background: var(--del); } .ins-code { background: var(--add); }

.pro { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; box-shadow: var(--shadow); }
.pro h2 { margin: 0 0 8px; font-size: 20px; }
.pro ul { margin: 0 0 12px; padding-left: 20px; }
.pro-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.faq { margin: 8px 0 32px; }
.faq h2 { font-size: 20px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.foot { color: var(--muted); font-size: 14px; padding-bottom: 32px; }

@media (max-width: 640px) {
  .picker, .order-cols { grid-template-columns: 1fr; }
  .hero { padding-top: 24px; }
}
@media print {
  .top, .picker, .actions, .status, .toolbar, .pro, .faq, .foot { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .summary { box-shadow: none; break-inside: avoid; }
}
