:root {
  --navy: #14253d;
  --navy-2: #233b59;
  --text: #1d2b3e;
  --muted: #657386;
  --soft: #f5f8f7;
  --line: #dce4e2;
  --green: #b8ed52;
  --green-dark: #476d16;
  --success: #1d7a4b;
  --blue: #3775d6;
  --danger: #b83a45;
  --action-bg: #14253d;
  --action-text: #fff;
  --accent-text: #101820;
  --focus: #205cb8;
  --alert-bg: #fff5f4;
  --alert-line: #f2c8c4;
  --shadow: 0 24px 70px rgba(26, 50, 75, .11);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #f6f9f8; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: linear-gradient(#fff 0 660px, #f6f9f8 660px); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button:focus-visible, label:focus-within, a:focus-visible, .mode-control input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }

.site-header { height: 78px; padding: 0 max(28px, calc((100vw - 1140px) / 2)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
.brand-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--navy); display: grid; place-items: center; box-shadow: 0 7px 15px rgba(20,37,61,.18); }
.brand-icon svg { width: 24px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; }
.brand > span:last-child { display: grid; gap: 1px; }.brand strong { font-size: 14px; letter-spacing: -.01em; }.brand small { color: var(--muted); font-size: 10px; }
.header-actions { display: flex; align-items: center; gap: 24px; }.privacy-status { appearance: none; border: 0; background: transparent; padding: 7px 0; font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 8px; }.privacy-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(184,237,82,.2); }
.privacy-status.needs-setup i { background: #f1b44c; box-shadow: 0 0 0 4px rgba(241,180,76,.18); }
.privacy-status.offline { color: var(--navy); cursor: pointer; font-weight: 700; }
.privacy-status.offline i { background: #f1b44c; box-shadow: 0 0 0 4px rgba(241,180,76,.18); }
.privacy-status.starting i { background: var(--blue); box-shadow: 0 0 0 4px rgba(55,117,214,.18); animation: status-pulse 1s ease-in-out infinite; }
.privacy-status:disabled { opacity: 1; }
@keyframes status-pulse { 50% { transform: scale(.55); opacity: .55; } }
.theme-toggle { width: 36px; height: 36px; margin-right: -10px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; }
.theme-toggle:hover { border-color: #a7b5c0; transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }
.text-button { background: transparent; border: 0; color: var(--navy); font-size: 11px; font-weight: 700; padding: 8px 0; border-bottom: 1px solid var(--navy); cursor: pointer; }

main { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }
.intro { padding: 84px 0 58px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: end; }
.kicker { color: var(--green-dark); font-size: 11px; letter-spacing: .18em; font-weight: 800; }
h1 { color: var(--navy); font-size: clamp(48px, 6.3vw, 78px); line-height: .99; letter-spacing: -.055em; margin: 18px 0 24px; font-weight: 750; max-width: 760px; }
h1 span { color: #6a7c92; font-weight: 550; }
.intro-copy > p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 680px; margin: 0; }
.trust-card { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 22px; display: flex; gap: 16px; box-shadow: 0 14px 38px rgba(36,62,89,.07); }
.shield { flex: 0 0 auto; width: 47px; height: 47px; border-radius: 13px; display: grid; place-items: center; background: #f0f8df; }.shield svg { width: 28px; fill: none; stroke: var(--green-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-card strong { color: var(--navy); font-size: 13px; }.trust-card p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 7px 0 0; }

.cleaner { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.cleaner-top { padding: 28px 30px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cleaner-top > div:first-child, .process-heading, .install-panel > div:first-child { display: flex; gap: 18px; align-items: flex-start; }
.section-number { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: 10px; font-weight: 800; }
h2 { color: var(--navy); font-size: 24px; line-height: 1.2; letter-spacing: -.025em; margin: 0; }.cleaner-top p, .process-heading p, .install-panel p { color: var(--muted); margin: 6px 0 0; font-size: 12px; }
.mode-control { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 4px; display: flex; }
.mode-control input { position: absolute; opacity: 0; pointer-events: none; }
.mode-control label { min-width: 150px; padding: 10px 14px; border-radius: 8px; cursor: pointer; display: grid; gap: 3px; color: var(--muted); transition: .18s ease; }
.mode-control label strong { font-size: 11px; color: var(--text); }.mode-control label span { font-size: 9px; }
.mode-control input:checked + label { background: white; box-shadow: 0 3px 12px rgba(29,43,62,.1); }.mode-control input:checked + label strong { color: var(--green-dark); }

.dependency-alert { margin: 22px 28px 0; padding: 14px 16px; background: #fff5f4; border: 1px solid #f2c8c4; border-radius: 10px; color: var(--danger); font-size: 11px; line-height: 1.65; }
.dropzone { margin: 28px; min-height: 260px; border: 2px dashed #cdd8d5; border-radius: 16px; background: #fbfcfc; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; transition: .2s ease; }
.dropzone:hover, .dropzone.dragging { border-color: #82ba26; background: #f8fcef; transform: translateY(-2px); }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--navy); display: grid; place-items: center; margin-bottom: 17px; box-shadow: 0 12px 24px rgba(20,37,61,.17); }.upload-icon svg { width: 30px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropzone > strong { color: var(--navy); font-size: 18px; margin-bottom: 7px; }.dropzone > span:not(.upload-icon) { font-size: 12px; color: var(--muted); }.dropzone u { color: var(--blue); text-underline-offset: 3px; }.dropzone small { color: #8995a4; font-size: 9px; font-weight: 700; letter-spacing: .1em; margin-top: 24px; }

.queue { border-top: 1px solid var(--line); }
.file-card { padding: 22px 28px; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); background: white; }
.thumb { width: 64px; height: 64px; border-radius: 11px; object-fit: cover; background: var(--soft); border: 1px solid var(--line); }
.file-copy { min-width: 0; }.file-name { color: var(--navy); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.file-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 7px; color: var(--muted); font-size: 10px; }.file-meta span + span::before { content: "·"; margin-right: 12px; color: #bcc4cc; }
.live-steps { margin-top: 14px; display: flex; gap: 7px; }.live-step { height: 5px; flex: 1; max-width: 78px; background: #e7eceb; border-radius: 8px; overflow: hidden; }.live-step.active::after { content: ""; display: block; height: 100%; width: 50%; background: var(--blue); animation: load 1s ease-in-out infinite; }.live-step.done { background: var(--green); }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(210%); } }
.status { min-width: 165px; text-align: right; color: var(--blue); font-size: 10px; font-weight: 750; }.status small { display: block; color: var(--muted); font-weight: 400; margin-top: 5px; }.status.success { color: var(--success); }.status.error { color: var(--danger); max-width: 245px; line-height: 1.45; }
.result-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 8px; }.tiny-button { color: var(--navy); background: transparent; border: 0; font-size: 10px; font-weight: 700; cursor: pointer; padding: 2px 0; text-decoration: underline; text-underline-offset: 3px; }.tiny-button.download { background: var(--navy); color: white; padding: 7px 10px; border-radius: 7px; text-decoration: none; }
.details { grid-column: 2 / -1; background: #f8faf9; border: 1px solid var(--line); border-radius: 10px; padding: 15px; max-height: 230px; overflow: auto; font-size: 10px; color: var(--muted); line-height: 1.55; }.details > strong { color: var(--navy); }.details table { margin-top: 10px; border-collapse: collapse; width: 100%; }.details td { border-top: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }.details td:first-child { color: var(--green-dark); white-space: nowrap; font-weight: 650; }
.bulk-actions { padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #f7fbeF; }.complete-summary { display: flex; align-items: center; gap: 12px; }.success-mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--navy); font-weight: 900; }.complete-summary div { display: grid; gap: 3px; }.complete-summary strong { color: var(--navy); font-size: 12px; }.complete-summary div span { color: var(--muted); font-size: 9px; }
.primary-button, .secondary-button { border: 0; border-radius: 9px; cursor: pointer; font-size: 11px; font-weight: 750; padding: 13px 17px; transition: transform .15s, box-shadow .15s; }.primary-button { background: var(--navy); color: white; box-shadow: 0 8px 18px rgba(20,37,61,.18); }.primary-button span { color: var(--green); margin-left: 10px; }.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }.primary-button:disabled { opacity: .55; cursor: wait; }

.process { padding: 100px 0 80px; }.process-heading { margin-bottom: 30px; }.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }.process-grid article { position: relative; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 25px; }.process-grid article > span { position: absolute; right: 20px; top: 18px; color: #cbd3d9; font-size: 12px; font-weight: 800; }.process-icon { width: 43px; height: 43px; border-radius: 11px; background: #f0f8df; display: grid; place-items: center; }.process-icon svg { width: 24px; fill: none; stroke: var(--green-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }.process-grid h3 { color: var(--navy); font-size: 15px; margin: 19px 0 8px; }.process-grid p { color: var(--muted); font-size: 11px; line-height: 1.65; margin: 0; }

.install-panel { border: 1px solid var(--line); border-radius: 18px; background: white; padding: 27px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }.install-options { display: flex; align-items: center; gap: 24px; }.install-options > div { display: grid; gap: 5px; text-align: right; }.install-options strong { color: var(--navy); font-size: 12px; }.install-options span { color: var(--muted); font-size: 10px; }.secondary-button { background: var(--green); color: var(--navy); white-space: nowrap; }
.privacy-note { margin: 30px 0 90px; display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; color: var(--muted); font-size: 10px; line-height: 1.65; }.privacy-note svg { flex: 0 0 19px; width: 19px; fill: none; stroke: var(--muted); stroke-width: 1.5; }.privacy-note p { margin: 0; }.privacy-note strong { color: var(--text); }
.privacy-note p + p { margin-top: 8px; }
.privacy-note a, .details a { color: var(--blue); text-underline-offset: 2px; }
#synthid-note { scroll-margin-top: 100px; }
footer { border-top: 1px solid var(--line); background: white; min-height: 74px; padding: 0 max(28px, calc((100vw - 1140px) / 2)); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; } footer span:first-child { color: var(--navy); font-weight: 800; }

dialog { width: min(450px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 35px 100px rgba(20,37,61,.25); color: var(--text); }.dialog-icon { width: 50px; height: 50px; border-radius: 13px; background: var(--green); display: grid; place-items: center; color: var(--navy); font-size: 24px; font-weight: 800; }.dialog-close { position: absolute; top: 13px; right: 16px; border: 0; background: transparent; color: var(--muted); font-size: 24px; cursor: pointer; }.dialog-close + .dialog-icon { margin-top: 4px; } dialog h2 { margin-top: 20px; } dialog p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 12px 0 22px; } dialog::backdrop { background: rgba(20,37,61,.35); backdrop-filter: blur(3px); }

[data-theme="dark"] {
  color-scheme: dark;
  --navy: #edf3fa;
  --navy-2: #cad6e3;
  --text: #dfe8f2;
  --muted: #97a9bc;
  --soft: #182431;
  --line: #2e3e4e;
  --green-dark: #b8ed52;
  --success: #75d9a5;
  --blue: #76a9f4;
  --danger: #ff8d98;
  --action-bg: #b8ed52;
  --action-text: #101820;
  --focus: #9ac6ff;
  --alert-bg: #2c1a24;
  --alert-line: #704453;
  --shadow: 0 25px 75px rgba(0,0,0,.28);
  background: #0b1118;
}
[data-theme="dark"] body { background: linear-gradient(#0b1118 0 660px, #0e161f 660px); }
[data-theme="dark"] .site-header { background: rgba(11,17,24,.9); }
[data-theme="dark"] .brand-icon,
[data-theme="dark"] .upload-icon { background: #1b2a3a; border: 1px solid #34475a; }
[data-theme="dark"] .trust-card,
[data-theme="dark"] .cleaner,
[data-theme="dark"] .file-card,
[data-theme="dark"] .process-grid article,
[data-theme="dark"] .install-panel,
[data-theme="dark"] footer,
[data-theme="dark"] dialog { background: #111b26; }
[data-theme="dark"] .shield,
[data-theme="dark"] .process-icon { background: rgba(184,237,82,.12); }
[data-theme="dark"] .mode-control { background: #0c151e; }
[data-theme="dark"] .mode-control input:checked + label { background: #1b2937; box-shadow: 0 3px 12px rgba(0,0,0,.28); }
[data-theme="dark"] .dropzone { background: #0e1822; border-color: #3b4c5c; }
[data-theme="dark"] .dropzone:hover,
[data-theme="dark"] .dropzone.dragging { background: #142019; border-color: #86bd30; }
[data-theme="dark"] .live-step { background: #2b3a48; }
[data-theme="dark"] .details { background: #0c151e; }
[data-theme="dark"] .bulk-actions { background: #142019; }
[data-theme="dark"] .section-number { background: var(--green); color: var(--accent-text); }
[data-theme="dark"] .success-mark,
[data-theme="dark"] .dialog-icon { color: #101820; }
[data-theme="dark"] dialog::backdrop { background: rgba(0,0,0,.58); }

.primary-button, .tiny-button.download { background: var(--action-bg); color: var(--action-text); }
.theme-toggle { transition: border-color .18s, transform .18s; }
.mode-control label { transition: box-shadow .18s; }
.secondary-button { color: var(--accent-text); }
.primary-button span { color: inherit; }
.primary-button:disabled { opacity: 1; }
.result-actions { flex-wrap: wrap; gap: 8px; }
.tiny-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
}
.tiny-button.download { padding: 6px 12px; border-color: transparent; }
.tiny-button:hover { text-decoration: underline; }
.dependency-alert { background: var(--alert-bg); border-color: var(--alert-line); font-size: 12px; }
.dropzone small { color: var(--muted); }
.details td { overflow-wrap: anywhere; }
.details td:first-child { white-space: normal; }
.live-step { max-width: 180px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-step.active::after, .privacy-status.starting i { animation: none; }
}

.web-guide { display: grid; gap: 18px; }
.guide-questions { display: grid; padding-left: 52px; }
.guide-questions details { border-top: 1px solid var(--line); padding: 12px 0; }
.guide-questions summary { color: var(--navy); cursor: pointer; font-size: 14px; font-weight: 700; }
.guide-questions p { max-width: 68ch; line-height: 1.55; margin-top: 8px; }
.guide-questions summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.text-button[href] { text-decoration: none; }
.thumb:not([src]) { visibility: hidden; }

@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; gap: 30px; padding-top: 58px; }.trust-card { max-width: 520px; }.cleaner-top, .install-panel { align-items: stretch; flex-direction: column; }.mode-control { width: 100%; }.mode-control label { flex: 1; min-width: 0; }.process-grid { grid-template-columns: 1fr; }.install-options { justify-content: space-between; }.install-options > div { text-align: left; }
}
@media (max-width: 560px) {
  .guide-questions { padding-left: 0; }
  body { background: linear-gradient(#fff 0 560px, #f6f9f8 560px); }.site-header { height: 68px; padding: 0 18px; }.privacy-status:not(.offline):not(.starting) { display: none; }.header-actions { gap: 14px; }.theme-toggle { margin-right: 0; } main { width: min(100% - 28px, 1140px); }.intro { padding: 45px 3px 38px; }.intro h1 { font-size: 43px; }.intro-copy > p { font-size: 14px; }.cleaner { border-radius: 16px; }.cleaner-top { padding: 22px 18px; }.cleaner-top > div:first-child, .process-heading, .install-panel > div:first-child { gap: 12px; }.dropzone { margin: 16px; min-height: 235px; }.file-card { padding: 18px; grid-template-columns: 52px 1fr; }.thumb { width: 52px; height: 52px; }.status { grid-column: 2; text-align: left; min-width: 0; }.result-actions { justify-content: flex-start; }.details { grid-column: 1 / -1; }.bulk-actions { align-items: stretch; flex-direction: column; padding: 18px; }.primary-button { width: 100%; }.process { padding: 74px 0 58px; }.install-panel { padding: 21px; }.install-options { flex-direction: column; align-items: stretch; }.install-options > div { text-align: left; }.privacy-note { margin-bottom: 58px; padding-inline: 5px; } footer { padding: 22px; gap: 8px; align-items: flex-start; flex-direction: column; }
  [data-theme="dark"] body { background: linear-gradient(#0b1118 0 560px, #0e161f 560px); }
}
