/*
 * KenEasy PDF Converter — Apple-inspired interface system.
 * Layered tokens keep appearance data-driven; components consume semantic colors only.
 */

:root {
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --canvas: #f5f5f7;
  --canvas-deep: #ececf0;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --surface-muted: rgba(118, 118, 128, 0.075);
  --surface-hover: rgba(118, 118, 128, 0.11);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --line: rgba(0, 0, 0, 0.085);
  --line-strong: rgba(0, 0, 0, 0.14);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-soft: rgba(0, 113, 227, 0.1);
  --pink: #ff375f;
  --pink-soft: rgba(255, 55, 95, 0.11);
  --cyan: #32ade6;
  --cyan-soft: rgba(50, 173, 230, 0.12);
  --green: #248a3d;
  --green-soft: rgba(52, 199, 89, 0.12);
  --orange: #ff9f0a;
  --danger: #ff3b30;
  --control: rgba(118, 118, 128, 0.09);
  --shadow-small: 0 1px 2px rgba(0, 0, 0, 0.04), 0 5px 18px rgba(0, 0, 0, 0.05);
  --shadow-panel: 0 2px 3px rgba(0, 0, 0, 0.025), 0 18px 60px rgba(0, 0, 0, 0.075);
  --shadow-float: 0 16px 45px rgba(0, 0, 0, 0.14);
  --radius-small: 12px;
  --radius-control: 14px;
  --radius-card: 24px;
  --radius-hero: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #09090b;
  --canvas-deep: #000000;
  --surface: rgba(30, 30, 33, 0.72);
  --surface-strong: rgba(35, 35, 38, 0.94);
  --surface-solid: #1c1c1e;
  --surface-muted: rgba(235, 235, 245, 0.07);
  --surface-hover: rgba(235, 235, 245, 0.11);
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #8e8e93;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --blue: #0a84ff;
  --blue-hover: #409cff;
  --blue-soft: rgba(10, 132, 255, 0.16);
  --pink: #ff6482;
  --pink-soft: rgba(255, 55, 95, 0.16);
  --cyan: #64d2ff;
  --cyan-soft: rgba(100, 210, 255, 0.14);
  --green: #30d158;
  --green-soft: rgba(48, 209, 88, 0.14);
  --control: rgba(235, 235, 245, 0.08);
  --shadow-small: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 25px rgba(0, 0, 0, 0.2);
  --shadow-panel: 0 2px 4px rgba(0, 0, 0, 0.2), 0 22px 70px rgba(0, 0, 0, 0.32);
  --shadow-float: 0 20px 55px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --canvas: #09090b;
    --canvas-deep: #000000;
    --surface: rgba(30, 30, 33, 0.72);
    --surface-strong: rgba(35, 35, 38, 0.94);
    --surface-solid: #1c1c1e;
    --surface-muted: rgba(235, 235, 245, 0.07);
    --surface-hover: rgba(235, 235, 245, 0.11);
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #8e8e93;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.17);
    --blue: #0a84ff;
    --blue-hover: #409cff;
    --blue-soft: rgba(10, 132, 255, 0.16);
    --pink: #ff6482;
    --pink-soft: rgba(255, 55, 95, 0.16);
    --cyan: #64d2ff;
    --cyan-soft: rgba(100, 210, 255, 0.14);
    --green: #30d158;
    --green-soft: rgba(48, 209, 88, 0.14);
    --control: rgba(235, 235, 245, 0.08);
    --shadow-small: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 25px rgba(0, 0, 0, 0.2);
    --shadow-panel: 0 2px 4px rgba(0, 0, 0, 0.2), 0 22px 70px rgba(0, 0, 0, 0.32);
    --shadow-float: 0 20px 55px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input,
summary,
.dropzone {
  -webkit-tap-highlight-color: transparent;
}

button,
select,
summary,
.dropzone {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled {
  cursor: not-allowed;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(0, 113, 227, 0.2);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--blue);
  box-shadow: var(--shadow-float);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.wallpaper {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 42%),
    var(--canvas);
}

:root[data-theme="dark"] .wallpaper {
  background: radial-gradient(circle at 50% -20%, rgba(52, 86, 150, 0.17), transparent 42%), var(--canvas);
}

.glow {
  position: absolute;
  border-radius: 999px;
  opacity: 0.46;
  filter: blur(2px);
}

.glow-one {
  width: 620px;
  height: 620px;
  top: -410px;
  left: -140px;
  background: radial-gradient(circle, rgba(255, 105, 150, 0.26), rgba(255, 105, 150, 0) 68%);
}

.glow-two {
  width: 720px;
  height: 720px;
  top: -390px;
  right: -170px;
  background: radial-gradient(circle, rgba(62, 174, 255, 0.27), rgba(62, 174, 255, 0) 68%);
}

.glow-three {
  width: 440px;
  height: 440px;
  top: 600px;
  left: 42%;
  background: radial-gradient(circle, rgba(150, 120, 255, 0.1), rgba(150, 120, 255, 0) 70%);
}

.app {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0 max(28px, env(safe-area-inset-bottom));
}

.header {
  position: sticky;
  z-index: 50;
  top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 9px 10px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  filter: drop-shadow(0 7px 13px rgba(106, 103, 255, 0.22));
}

.logo svg {
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.brand-copy span {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
}

.version-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-indicator,
.github-link,
.icon-control,
.lang-switch {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
}

.privacy-indicator {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.privacy-indicator svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.lang-switch {
  display: inline-flex;
  height: 38px;
  align-items: center;
  padding: 3px;
  border-radius: 12px;
}

.lang-btn {
  min-width: 40px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.lang-btn[aria-pressed="true"] {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.icon-control {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border-radius: 12px;
  color: var(--text-secondary);
  transition: transform 180ms var(--ease), color 180ms ease, background 180ms ease;
}

.icon-control:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.theme-icon {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 220ms ease, transform 300ms var(--ease);
}

.theme-icon-moon {
  opacity: 0;
  transform: rotate(-25deg) scale(0.7);
}

:root[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(35deg) scale(0.7);
}

:root[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.github-link {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms ease;
}

.github-link:hover {
  transform: translateY(-1px);
  background: var(--surface-solid);
}

.github-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.main {
  display: block;
}

.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 20px 52px;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.spark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  box-shadow: 0 0 0 5px var(--pink-soft);
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.tagline {
  max-width: 670px;
  margin: 24px auto 0;
  color: var(--text-secondary);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.55;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.hero-badge-dot.blue { background: var(--blue); }
.hero-badge-dot.green { background: var(--green); }
.hero-badge-dot.pink { background: var(--pink); }

.workflow-steps {
  display: grid;
  max-width: 620px;
  margin: 0 auto 22px;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.workflow-steps li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.workflow-steps li:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -12%;
  width: 24%;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.workflow-steps li span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  font-size: 11px;
  font-weight: 750;
}

.workflow-steps li strong {
  font-weight: 650;
}

.workflow-steps li.active {
  color: var(--blue);
}

.workflow-steps li.active span {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 113, 227, 0.24);
}

.dropzone {
  position: relative;
  display: grid;
  min-height: 330px;
  align-items: center;
  padding: 46px clamp(34px, 7vw, 80px);
  grid-template-columns: minmax(190px, 0.7fr) minmax(360px, 1.3fr);
  gap: clamp(28px, 6vw, 80px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-hero);
  outline: none;
  background:
    radial-gradient(circle at 12% 5%, var(--pink-soft), transparent 36%),
    radial-gradient(circle at 93% 16%, var(--cyan-soft), transparent 34%),
    var(--surface-strong);
  box-shadow: var(--shadow-panel);
  transition: border-color 220ms ease, box-shadow 300ms var(--ease), transform 300ms var(--ease), background 300ms ease;
  -webkit-backdrop-filter: saturate(150%) blur(28px);
  backdrop-filter: saturate(150%) blur(28px);
}

.dropzone::after {
  position: absolute;
  inset: 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 23px;
  pointer-events: none;
  content: "";
  transition: border-color 220ms ease, inset 300ms var(--ease);
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: rgba(0, 113, 227, 0.32);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03), 0 28px 80px rgba(0, 87, 180, 0.12);
  transform: translateY(-2px);
}

.dropzone:hover::after,
.dropzone:focus-visible::after {
  border-color: rgba(0, 113, 227, 0.28);
  inset: 9px;
}

.dropzone.dragover {
  border-color: var(--blue);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 55, 95, 0.18), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(0, 113, 227, 0.18), transparent 42%),
    var(--surface-strong);
  box-shadow: 0 0 0 5px var(--blue-soft), 0 30px 85px rgba(0, 113, 227, 0.18);
  transform: translateY(-3px) scale(1.003);
}

.dropzone[aria-disabled="true"] {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.dropzone-visual {
  position: relative;
  width: 196px;
  height: 170px;
  justify-self: center;
}

.photo-sheet {
  position: absolute;
  top: 16px;
  left: 28px;
  width: 140px;
  height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(55, 67, 106, 0.14);
}

.sheet-back {
  background: linear-gradient(145deg, #ff8eb4, #d985d5);
  transform: rotate(-12deg) translate(-8px, 2px);
  opacity: 0.56;
}

.sheet-middle {
  background: linear-gradient(145deg, #8c8af7, #65b6f4);
  transform: rotate(9deg) translate(10px, -2px);
  opacity: 0.72;
}

.sheet-front {
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9));
  color: #578bd7;
  transform: rotate(-1deg);
}

:root[data-theme="dark"] .sheet-front {
  background: linear-gradient(155deg, #34343a, #202b3b);
  color: #8cc8ff;
}

.sheet-front svg {
  width: 76px;
  height: 76px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drop-plus {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 4px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 9px 24px rgba(0, 113, 227, 0.3);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

.dropzone-content {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.step-label {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dropzone h2,
.panel h2 {
  margin: 0;
  font-weight: 720;
  letter-spacing: -0.035em;
}

.dropzone h2 {
  font-size: clamp(27px, 4vw, 38px);
}

.drop-hint {
  margin: 10px 0 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

.drop-action {
  display: inline-flex;
  height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.22);
  font-weight: 700;
  transition: background 180ms ease, transform 180ms var(--ease), box-shadow 180ms ease;
}

.dropzone:hover .drop-action {
  background: var(--blue-hover);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.28);
  transform: translateY(-1px);
}

.drop-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.format-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.format-row span {
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--text-tertiary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.formats {
  margin: 7px 0 0;
  color: var(--text-tertiary);
  font-size: 11px;
}

.local-promise {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.local-promise svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-grid {
  display: grid;
  align-items: start;
  margin-top: 22px;
  grid-template-columns: minmax(340px, 0.74fr) minmax(0, 1.26fr);
  gap: 22px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
  -webkit-backdrop-filter: saturate(150%) blur(28px);
  backdrop-filter: saturate(150%) blur(28px);
}

.options-panel,
.list-panel {
  padding: clamp(22px, 3vw, 30px);
}

.panel-heading,
.list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading h2,
.list-head h2 {
  font-size: 27px;
}

.panel-heading p {
  margin: 7px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.panel-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--blue);
}

.panel-symbol svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.preset-section {
  margin-top: 26px;
}

.field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.preset-btn {
  position: relative;
  min-height: 72px;
  padding: 13px 14px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: var(--surface-muted);
  color: var(--text);
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms var(--ease), box-shadow 180ms ease;
}

.preset-btn::after {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  content: "";
  box-shadow: inset 0 0 0 5px var(--blue), inset 0 0 0 7px rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 180ms ease, transform 220ms var(--ease);
}

.preset-btn:hover:not(:disabled) {
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.preset-btn.active {
  border-color: rgba(0, 113, 227, 0.34);
  background: var(--blue-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.05);
}

.preset-btn.active::after {
  opacity: 1;
  transform: scale(1);
}

.preset-btn strong,
.preset-btn small {
  display: block;
}

.preset-btn strong {
  padding-right: 22px;
  font-size: 14px;
  font-weight: 700;
}

.preset-btn small {
  margin-top: 4px;
  color: var(--text-tertiary);
  font-size: 11px;
}

.options-stack {
  display: grid;
  margin-top: 22px;
  gap: 20px;
}

.field {
  display: block;
  min-width: 0;
}

select,
input[type="number"],
input[type="text"] {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  outline: none;
  background: var(--control);
  color: var(--text);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

select {
  padding-right: 38px;
}

select:hover:not(:disabled),
input[type="number"]:hover:not(:disabled),
input[type="text"]:hover:not(:disabled) {
  background: var(--surface-hover);
}

select:focus-visible,
input[type="number"]:focus-visible,
input[type="text"]:focus-visible {
  border-color: var(--blue);
  background: var(--surface-solid);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

input::placeholder {
  color: var(--text-tertiary);
}

.field-help {
  display: block;
  min-height: 17px;
  margin-top: 7px;
  color: var(--text-tertiary);
  font-size: 11px;
  line-height: 1.45;
}

.field-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.range-value {
  min-width: 46px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 3px 0 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: none;
  background: transparent;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0 var(--range-progress, 70%), var(--control) var(--range-progress, 70%) 100%);
}

input[type="range"]::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: var(--control);
}

input[type="range"]::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--blue);
}

input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -8.5px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: transform 160ms var(--ease), box-shadow 160ms ease;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

input[type="range"]:hover:not(:disabled)::-webkit-slider-thumb {
  transform: scale(1.08);
  box-shadow: 0 3px 11px rgba(0, 0, 0, 0.26);
}

input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 5px var(--blue-soft), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.is-disabled {
  opacity: 0.5;
}

.input-suffix-wrap {
  position: relative;
  display: block;
}

.input-suffix-wrap input {
  padding-right: 48px;
}

.input-suffix {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--text-tertiary);
  font-size: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.option-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 10px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.option-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.toggle-stack {
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-muted);
}

.toggle-row {
  position: relative;
  display: grid;
  min-height: 72px;
  align-items: center;
  padding: 12px 13px;
  grid-template-columns: 34px minmax(0, 1fr) 46px;
  gap: 11px;
}

.toggle-row + .toggle-row::before {
  position: absolute;
  top: 0;
  right: 13px;
  left: 58px;
  height: 1px;
  background: var(--line);
  content: "";
}

.toggle-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
}

.toggle-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zip-icon {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.name-icon {
  background: var(--pink-soft);
  color: var(--pink);
}

.toggle-copy {
  min-width: 0;
}

.toggle-copy strong,
.toggle-copy small {
  display: block;
}

.toggle-copy strong {
  font-size: 13px;
  font-weight: 680;
}

.toggle-copy small {
  margin-top: 3px;
  color: var(--text-tertiary);
  font-size: 10.5px;
  line-height: 1.35;
}

.toggle-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.25);
  transition: background 180ms ease, opacity 180ms ease;
}

.switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
  content: "";
  transition: transform 230ms var(--ease);
}

.toggle-row input:checked + .switch {
  background: var(--green);
}

.toggle-row input:checked + .switch::after {
  transform: translateX(18px);
}

.toggle-row input:focus-visible + .switch {
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.toggle-row input:disabled + .switch {
  opacity: 0.45;
}

.zip-name-field {
  margin-top: 18px;
}

.list-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-panel {
  display: flex;
  min-height: 665px;
  flex-direction: column;
}

.queue-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.count-pill {
  display: inline-flex;
  min-width: 28px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
}

.muted {
  color: var(--text-tertiary);
}

.queue-title-row .muted {
  font-size: 11px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  font-weight: 700;
  transition: transform 180ms var(--ease), background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.btn:disabled {
  opacity: 0.38;
}

.btn.ghost {
  min-height: 38px;
  padding: 0 13px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 12px;
}

.btn.ghost:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
}

.hint {
  margin: 11px 0 16px;
  color: var(--text-tertiary);
  font-size: 11px;
}

.file-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.file-item {
  display: grid;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  padding: 9px 10px 9px 8px;
  grid-template-columns: 30px 58px minmax(0, 1fr) auto 34px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--surface-muted);
  transition: opacity 240ms ease, transform 260ms var(--ease), border-color 180ms ease, background 180ms ease;
}

.file-item.new-item {
  animation: item-in 380ms var(--ease) both;
}

.file-item.removing {
  opacity: 0;
  transform: translateX(20px) scale(0.98);
}

.file-item.is-processing {
  border-color: rgba(0, 113, 227, 0.28);
  background: var(--blue-soft);
}

.file-item.is-done {
  border-color: rgba(52, 199, 89, 0.25);
}

.file-item.is-error {
  border-color: rgba(255, 59, 48, 0.3);
  background: rgba(255, 59, 48, 0.07);
}

.handle,
.icon-btn {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text-tertiary);
  transition: background 160ms ease, color 160ms ease, transform 160ms var(--ease);
}

.handle {
  width: 30px;
  height: 38px;
  border-radius: 9px;
  background: transparent;
  font-size: 18px;
  cursor: grab;
}

.handle:active {
  cursor: grabbing;
}

.handle:hover,
.handle:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
}

.thumb {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink-soft), var(--cyan-soft));
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meta {
  min-width: 0;
}

.name {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub {
  margin-top: 4px;
  overflow: hidden;
  color: var(--text-tertiary);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kind {
  max-width: 94px;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-processing .kind { color: var(--blue); }
.is-done .kind { color: var(--green); }
.is-error .kind { color: var(--danger); }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: transparent;
  font-size: 20px;
  font-weight: 300;
}

.icon-btn:hover:not(:disabled) {
  background: rgba(255, 59, 48, 0.1);
  color: var(--danger);
}

.empty-state {
  display: flex;
  min-height: 360px;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: rgba(118, 118, 128, 0.025);
  color: var(--text-secondary);
  text-align: center;
}

.empty-visual {
  position: relative;
  width: 90px;
  height: 70px;
  margin-bottom: 20px;
}

.empty-visual span {
  position: absolute;
  top: 7px;
  left: 18px;
  width: 55px;
  height: 55px;
  border: 1.5px solid var(--line-strong);
  border-radius: 15px;
  background: var(--surface);
}

.empty-visual span:nth-child(1) { transform: rotate(-12deg) translate(-9px, 5px); }
.empty-visual span:nth-child(2) { transform: rotate(10deg) translate(9px, 3px); }
.empty-visual span:nth-child(3) {
  border-color: rgba(0, 113, 227, 0.35);
  background: linear-gradient(145deg, var(--pink-soft), var(--cyan-soft));
  transform: rotate(0);
}

.empty-state strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.empty-state p {
  margin: 6px 0 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

.status-panel {
  margin-top: 14px;
  padding: 15px;
  border-radius: 16px;
  background: var(--blue-soft);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.status-text {
  font-size: 12px;
  font-weight: 700;
}

.status-pct {
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.progress {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(118, 118, 128, 0.16);
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 260ms var(--ease);
}

.status-detail {
  margin-top: 8px;
  font-size: 10.5px;
}

.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 20px;
}

.action-hint {
  color: var(--text-tertiary);
  font-size: 11px;
}

.btn.primary {
  min-width: 156px;
  min-height: 48px;
  padding: 0 19px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.24);
}

.btn.primary:hover:not(:disabled) {
  background: var(--blue-hover);
  box-shadow: 0 13px 30px rgba(0, 113, 227, 0.3);
}

.btn.primary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-count {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}

.trust-grid {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.trust-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
}

.trust-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-icon-blue { background: var(--blue-soft); color: var(--blue); }
.trust-icon-pink { background: var(--pink-soft); color: var(--pink); }
.trust-icon-green { background: var(--green-soft); color: var(--green); }

.trust-card strong,
.trust-card p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-card strong {
  font-size: 13px;
  font-weight: 700;
}

.trust-card p {
  margin: 3px 0 0;
  color: var(--text-tertiary);
  font-size: 11px;
}

.tips-panel {
  margin-top: 14px;
  overflow: hidden;
  box-shadow: none;
}

.tips-panel summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  list-style: none;
  font-size: 13px;
  font-weight: 680;
}

.tips-panel summary::-webkit-details-marker {
  display: none;
}

.summary-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.info-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.summary-chevron {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-tertiary);
  transition: transform 240ms var(--ease);
}

.summary-chevron svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tips-panel[open] .summary-chevron {
  transform: rotate(180deg);
}

.tips {
  margin: 0;
  padding: 4px 40px 22px 56px;
  color: var(--text-secondary);
  font-size: 12px;
}

.tips li + li {
  margin-top: 8px;
}

.tips code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 8px 8px;
  color: var(--text-tertiary);
  font-size: 11px;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  color: var(--text-secondary);
  font-weight: 700;
}

.footer-link {
  color: var(--text-secondary);
  font-weight: 650;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--blue);
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  max-width: min(440px, calc(100% - 32px));
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow-float);
  font-size: 12px;
  font-weight: 650;
  opacity: 0;
  transform: translate(-50%, 18px) scale(0.96);
  transition: opacity 220ms ease, transform 300ms var(--ease);
  pointer-events: none;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.toast.error {
  border-color: rgba(255, 59, 48, 0.3);
  color: var(--danger);
}

.noscript {
  position: fixed;
  z-index: 500;
  inset: auto 16px 16px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-solid);
  color: var(--danger);
  box-shadow: var(--shadow-float);
  text-align: center;
}

:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.35);
  outline-offset: 3px;
}

@keyframes item-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .app {
    width: min(760px, calc(100% - 32px));
  }

  .privacy-indicator {
    display: none;
  }

  .hero {
    padding-top: 80px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .list-panel {
    min-height: 590px;
  }
}

@media (max-width: 720px) {
  .app {
    width: min(100% - 24px, 620px);
    padding-top: 8px;
  }

  .header {
    top: 8px;
    min-height: 58px;
    padding: 8px;
    border-radius: 17px;
  }

  .logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-copy {
    display: block;
  }

  .brand-copy strong,
  .brand-copy span {
    display: block;
    line-height: 1.1;
  }

  .brand-copy strong { font-size: 14px; }
  .brand-copy span { margin-top: 2px; font-size: 10px; }
  .version-pill { display: none; }
  .github-link span { display: none; }
  .github-link { width: 38px; padding: 0; justify-content: center; }

  .hero {
    padding: 68px 10px 38px;
  }

  .hero-kicker {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(39px, 12.5vw, 58px);
  }

  .tagline {
    margin-top: 19px;
    font-size: 16px;
  }

  .workflow-steps {
    margin-bottom: 16px;
  }

  .workflow-steps li {
    gap: 5px;
  }

  .workflow-steps li strong {
    display: none;
  }

  .workflow-steps li:not(:last-child)::after {
    right: -30%;
    width: 60%;
  }

  .dropzone {
    min-height: 480px;
    padding: 42px 24px 64px;
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .dropzone-visual {
    width: 168px;
    height: 145px;
  }

  .photo-sheet {
    left: 27px;
    width: 115px;
    height: 112px;
    border-radius: 20px;
  }

  .drop-plus {
    right: 6px;
    width: 42px;
    height: 42px;
  }

  .format-row {
    justify-content: center;
  }

  .local-promise {
    right: 50%;
    bottom: 22px;
    transform: translateX(50%);
    white-space: nowrap;
  }

  .workspace-grid {
    margin-top: 14px;
    gap: 14px;
  }

  .options-panel,
  .list-panel {
    padding: 21px;
  }

  .panel-heading h2,
  .list-head h2 {
    font-size: 25px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-card strong,
  .trust-card p {
    white-space: normal;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .app {
    width: min(100% - 16px, 440px);
  }

  .header-actions {
    gap: 5px;
  }

  .lang-switch,
  .icon-control,
  .github-link {
    height: 36px;
  }

  .icon-control,
  .github-link {
    width: 36px;
  }

  .lang-btn {
    min-width: 33px;
    height: 28px;
    padding: 0 7px;
    font-size: 10px;
  }

  .hero-badges {
    gap: 6px;
  }

  .hero-badge {
    padding: 6px 9px;
    font-size: 10px;
  }

  .dropzone,
  .panel {
    border-radius: 21px;
  }

  .dropzone::after {
    border-radius: 15px;
  }

  .preset-grid {
    grid-template-columns: 1fr 1fr;
  }

  .preset-btn {
    min-height: 68px;
    padding: 11px;
  }

  .toggle-row {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .toggle-icon {
    display: none;
  }

  .toggle-row + .toggle-row::before {
    left: 13px;
  }

  .file-item {
    grid-template-columns: 24px 48px minmax(0, 1fr) 30px;
    gap: 8px;
  }

  .thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .kind {
    display: none;
  }

  .action-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .action-hint {
    text-align: center;
  }

  .btn.primary {
    width: 100%;
  }

  .tips-panel summary {
    padding: 0 15px;
  }

  .tips {
    padding: 0 22px 20px 37px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Final workflow polish: state is driven by app data, never by visual position alone. */
.workflow-steps li.complete {
  color: var(--green);
}

.workflow-steps li.complete span {
  background: var(--green-soft);
  color: var(--green);
}

.workflow-steps li.complete:not(:last-child)::after {
  background: color-mix(in srgb, var(--green) 34%, transparent);
}

.dropzone.has-files {
  min-height: 280px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.dropzone.has-files .dropzone-visual {
  transform: scale(0.88);
  transition: transform 360ms var(--ease);
}

.dropzone.has-files .drop-hint {
  margin-bottom: 15px;
}

.dropzone.has-files .format-row {
  margin-top: 16px;
}

.btn.primary.is-busy:disabled {
  opacity: 0.78;
}

.btn.primary.is-busy svg {
  animation: action-wait 900ms ease-in-out infinite;
}

@keyframes action-wait {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

@media (max-width: 720px) {
  .dropzone.has-files {
    min-height: 410px;
    padding-top: 34px;
    padding-bottom: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn.primary.is-busy svg {
    animation: none;
  }
}


/* Solid mobile base avoids transient backdrop-compositor dimming on some GPUs. */
@media (max-width: 720px) {
  .dropzone {
    background-color: var(--surface-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* PDF Converter domain visuals; product behavior remains independent from presentation. */
.pdf-stack {
  position: relative;
  width: min(300px, 30vw);
  height: 230px;
  margin-inline: auto;
  filter: drop-shadow(0 28px 36px rgba(40, 55, 95, .16));
}
.pdf-paper {
  position: absolute;
  width: 142px;
  height: 184px;
  padding: 20px 18px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,.96), rgba(238,244,255,.84));
  box-shadow: 0 20px 55px rgba(25, 40, 80, .16), inset 0 1px rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  transition: transform .45s var(--ease-spring);
}
.pdf-paper b,
.pdf-paper em {
  display: inline-flex;
  min-width: 48px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 10px;
  font-style: normal;
  letter-spacing: .06em;
}
.pdf-paper b { color: var(--blue); background: var(--blue-soft); }
.pdf-paper em { color: #fff; background: linear-gradient(135deg, var(--pink), var(--blue)); box-shadow: 0 8px 18px rgba(77, 126, 255, .25); }
.pdf-paper i { display: block; height: 7px; margin-top: 14px; border-radius: 9px; background: rgba(92,108,137,.13); }
.pdf-paper i:nth-of-type(2) { width: 76%; }
.pdf-paper i:nth-of-type(3) { width: 48%; }
.pdf-paper-back { left: 15px; top: 27px; transform: rotate(-10deg); }
.pdf-paper-mid { left: 78px; top: 8px; transform: rotate(4deg); }
.pdf-paper-front { right: 2px; top: 36px; transform: rotate(11deg); }
.pdf-stack:hover .pdf-paper-back { transform: rotate(-13deg) translateX(-5px); }
.pdf-stack:hover .pdf-paper-mid { transform: rotate(1deg) translateY(-5px); }
.pdf-stack:hover .pdf-paper-front { transform: rotate(14deg) translateX(5px); }
.pdf-merge-arrow {
  position: absolute;
  right: 41px;
  bottom: 2px;
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 12px 28px rgba(71, 120, 255, .3);
  font-size: 22px;
  font-weight: 800;
}
.pdf-drop-icon {
  position: relative;
  display: grid;
  width: 108px;
  height: 128px;
  place-items: center;
  border: 1px solid rgba(77,126,255,.18);
  border-radius: 22px;
  color: var(--blue);
  background: linear-gradient(150deg, rgba(255,255,255,.96), rgba(235,242,255,.84));
  box-shadow: 0 22px 48px rgba(48,70,115,.14), inset 0 1px rgba(255,255,255,.9);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: .04em;
  transform: rotate(-3deg);
}
.pdf-drop-icon::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 31px;
  height: 31px;
  border-bottom-left-radius: 12px;
  background: linear-gradient(225deg, var(--surface) 48%, rgba(77,126,255,.16) 50%, rgba(255,255,255,.9) 53%);
}
.pdf-drop-icon i {
  position: absolute;
  right: -15px;
  bottom: 10px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 4px solid var(--surface);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  box-shadow: 0 10px 24px rgba(77,126,255,.28);
  font-size: 22px;
  font-style: normal;
}
.file-item.is-error { border-color: color-mix(in srgb, var(--danger) 42%, transparent); }
.kind.image { color: var(--pink); }
.kind.pdf { color: var(--blue); }
.kind.docx { color: #7b73e9; }
.kind.text { color: var(--green); }

html[data-theme="dark"] .pdf-paper,
html[data-theme="dark"] .pdf-drop-icon {
  border-color: rgba(255,255,255,.1);
  background: linear-gradient(150deg, rgba(44,49,62,.96), rgba(26,30,39,.9));
  box-shadow: 0 24px 55px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.08);
}
html[data-theme="dark"] .pdf-paper i { background: rgba(220,230,255,.13); }
html[data-theme="dark"] .pdf-drop-icon::after { background: linear-gradient(225deg, var(--surface) 48%, rgba(94,143,255,.26) 50%, rgba(50,55,68,.95) 53%); }

@media (max-width: 760px) {
  .pdf-stack { width: 240px; height: 190px; transform: scale(.82); transform-origin: center; }
}

@media (max-width: 520px) {
  .pdf-stack { display: none; }
  .pdf-drop-icon { width: 82px; height: 98px; border-radius: 17px; }
}
