/* archive-converter.css - Pixlane local archive conversion card */
.ac-app {
  --ac-bg: #f3f5f7;
  --ac-surface: #ffffff;
  --ac-soft: #f8fafc;
  --ac-line: #d9e0e8;
  --ac-line-strong: #c4ceda;
  --ac-text: #121826;
  --ac-muted: #647083;
  --ac-primary: #2563eb;
  --ac-primary-strong: #1d4ed8;
  --ac-green: #15803d;
  --ac-green-bg: #e8f7ed;
  --ac-red: #b42318;
  --ac-red-bg: #fff1f0;
  --ac-shadow: 0 22px 60px rgba(15, 23, 42, .10);
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(243, 245, 247, .96)),
    var(--ac-bg);
  color: var(--ac-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] .ac-app {
  --ac-bg: #111316;
  --ac-surface: #181b20;
  --ac-soft: #20242a;
  --ac-line: #303640;
  --ac-line-strong: #444c58;
  --ac-text: #f4f6f8;
  --ac-muted: #a8b0bc;
  --ac-primary: #6aa3ff;
  --ac-primary-strong: #93bbff;
  --ac-green: #57d68d;
  --ac-green-bg: rgba(87, 214, 141, .12);
  --ac-red: #ff8c82;
  --ac-red-bg: rgba(255, 140, 130, .12);
  --ac-shadow: 0 26px 70px rgba(0, 0, 0, .38);
  background:
    linear-gradient(180deg, rgba(24, 27, 32, .96), rgba(17, 19, 22, 1)),
    var(--ac-bg);
}

.ac-app *,
.ac-app *::before,
.ac-app *::after {
  box-sizing: border-box;
}

.ac-app svg {
  display: block;
  width: 20px;
  height: 20px;
}

.ac-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

.ac-hero {
  max-width: 760px;
  margin-bottom: 26px;
}

.ac-kicker {
  margin-bottom: 10px;
  color: var(--ac-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ac-hero h1 {
  margin: 0 0 12px;
  color: var(--ac-text);
  font-size: clamp(34px, 7vw, 62px);
  line-height: .96;
  letter-spacing: 0;
}

.ac-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--ac-muted);
  font-size: 18px;
  line-height: 1.55;
}

.ac-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .72fr);
  gap: 18px;
  align-items: start;
}

.ac-panel {
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  background: var(--ac-surface);
  box-shadow: var(--ac-shadow);
}

.ac-panel--input {
  min-height: 430px;
}

.ac-panel--controls,
.ac-panel--result {
  padding: 18px;
}

.ac-panel--result {
  grid-column: 1 / -1;
  box-shadow: none;
}

.ac-drop {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  border: 2px dashed transparent;
  border-radius: 8px;
  transition: border-color .16s ease, background .16s ease;
}

.ac-drop.is-over {
  border-color: rgba(37, 99, 235, .45);
  background: var(--ac-soft);
}

.ac-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ac-drop-icon,
.ac-empty-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 8px;
  background: var(--ac-soft);
  color: var(--ac-primary);
}

.ac-drop-icon svg,
.ac-empty-icon svg {
  width: 30px;
  height: 30px;
}

.ac-drop h2,
.ac-empty h2,
.ac-ready h2,
.ac-result-head h2,
.ac-error h2 {
  margin: 0 0 8px;
  color: var(--ac-text);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.ac-drop p,
.ac-empty p,
.ac-ready p,
.ac-result-head p,
.ac-error p {
  max-width: 520px;
  margin: 0 auto 20px;
  color: var(--ac-muted);
  font-size: 15px;
  line-height: 1.55;
}

.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ac-line-strong);
  border-radius: 8px;
  background: var(--ac-surface);
  color: var(--ac-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.ac-btn:hover {
  border-color: rgba(37, 99, 235, .45);
  background: var(--ac-soft);
  color: var(--ac-primary);
}

.ac-btn:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.ac-btn--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--ac-primary), #12b4a8);
  color: #ffffff;
}

.ac-btn--primary:hover {
  background: linear-gradient(135deg, var(--ac-primary-strong), #0f948b);
  color: #ffffff;
  transform: translateY(-1px);
}

html[data-theme="dark"] .ac-btn--primary {
  color: #061016;
}

.ac-btn--wide {
  width: 100%;
  margin-top: 16px;
}

.ac-file-card {
  width: min(460px, 100%);
  margin: 22px auto 0;
  padding: 14px;
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  background: var(--ac-soft);
  text-align: left;
}

.ac-file-card span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--ac-green-bg);
  color: var(--ac-green);
  font-size: 12px;
  font-weight: 800;
}

.ac-file-card strong,
.ac-file-card small {
  display: block;
  overflow-wrap: anywhere;
}

.ac-file-card strong {
  color: var(--ac-text);
  font-size: 15px;
}

.ac-file-card small {
  margin-top: 4px;
  color: var(--ac-muted);
  font-size: 13px;
}

.ac-control {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.ac-control label {
  color: var(--ac-text);
  font-size: 13px;
  font-weight: 800;
}

.ac-control select,
.ac-control input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ac-line-strong);
  border-radius: 8px;
  background: var(--ac-surface);
  color: var(--ac-text);
  padding: 0 12px;
  font: 600 14px/1.2 inherit;
}

html[data-theme="dark"] .ac-control select,
html[data-theme="dark"] .ac-control input {
  color-scheme: dark;
}

.ac-control select:focus,
.ac-control input:focus {
  outline: 2px solid rgba(37, 99, 235, .18);
  border-color: var(--ac-primary);
}

.ac-format-note {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  background: var(--ac-soft);
  color: var(--ac-muted);
  font-size: 13px;
  line-height: 1.45;
}

.ac-format-note strong {
  color: var(--ac-text);
}

.ac-meter {
  position: relative;
  overflow: hidden;
  min-height: 40px;
  margin-top: 14px;
  border-radius: 8px;
  background: var(--ac-soft);
  color: var(--ac-primary);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.ac-meter::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ac-primary), #12b4a8, transparent);
  animation: ac-meter 1.4s ease-in-out infinite;
}

.ac-meter span {
  position: relative;
  z-index: 1;
}

@keyframes ac-meter {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.ac-empty,
.ac-ready,
.ac-error {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 28px;
  text-align: center;
}

.ac-result-head {
  display: grid;
  gap: 6px;
  padding: 4px 0 16px;
}

.ac-result-head p {
  margin: 0;
}

.ac-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ac-status--ok {
  background: var(--ac-green-bg);
  color: var(--ac-green);
}

.ac-status--error {
  background: var(--ac-red-bg);
  color: var(--ac-red);
}

.ac-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.ac-stats div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  background: var(--ac-soft);
}

.ac-stats span {
  color: var(--ac-muted);
  font-size: 12px;
  font-weight: 800;
}

.ac-stats strong {
  color: var(--ac-text);
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.ac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.ac-file-list {
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  background: var(--ac-soft);
  padding: 14px;
}

.ac-file-list h3 {
  margin: 0 0 10px;
  color: var(--ac-text);
  font-size: 15px;
  letter-spacing: 0;
}

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

.ac-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--ac-line);
  border-radius: 8px;
  background: var(--ac-surface);
}

.ac-file-list li span {
  color: var(--ac-text);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.ac-file-list li small,
.ac-file-list p {
  color: var(--ac-muted);
  font-size: 12px;
}

.ac-file-list p {
  margin: 12px 0 0;
}

@media (max-width: 860px) {
  .ac-shell {
    width: min(100% - 24px, 680px);
    padding: 44px 0;
  }

  .ac-grid,
  .ac-stats {
    grid-template-columns: 1fr;
  }

  .ac-panel--input,
  .ac-drop {
    min-height: 360px;
  }

  .ac-hero h1 {
    font-size: 38px;
    line-height: 1;
  }

  .ac-hero p {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .ac-shell {
    width: calc(100% - 18px);
    padding: 34px 0;
  }

  .ac-drop,
  .ac-panel--controls,
  .ac-panel--result {
    padding: 14px;
  }

  .ac-actions,
  .ac-file-list li {
    align-items: stretch;
    flex-direction: column;
  }

  .ac-actions .ac-btn {
    width: 100%;
  }
}
