:root {
  --bg: #f5f7fa;
  --surface: rgba(255, 255, 255, .94);
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --primary: #172b43;
  --primary-hover: #102237;
  --success: #15803d;
  --danger: #b91c1c;
  --danger-bg: #fff3f3;
  --warning: #92400e;
  --warning-bg: #fffbeb;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(15, 23, 42, .07);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(148, 163, 184, .14), transparent 30rem),
    linear-gradient(180deg, #fafcff 0, var(--bg) 40rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
label,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

.brand-icon svg,
.upload-icon svg,
.empty-icon svg,
.icon-button svg,
.copy-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-icon svg {
  width: 23px;
  stroke-width: 1.75;
}

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

.brand-copy strong {
  margin-bottom: 2px;
  font-size: 14px;
  letter-spacing: -.01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, .78);
  font-size: 11px;
  font-weight: 750;
}

.local-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .10);
}

.hero {
  max-width: 780px;
  padding: 72px 0 36px;
}

.eyebrow {
  margin-bottom: 14px;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .17em;
}

.hero h1 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero p {
  max-width: 710px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 18px;
  align-items: start;
}

.panel {
  min-width: 0;
  border: 1px solid rgba(203, 213, 225, .9);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.upload-panel,
.result-panel {
  padding: 24px;
}

.result-panel {
  display: flex;
  min-height: 585px;
  flex-direction: column;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.panel-title > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -.015em;
}

.step {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  color: #475569;
  background: #f1f5f9;
  font-size: 10px;
  font-weight: 850;
}

.muted-label {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 750;
}

.dropzone {
  display: flex;
  min-height: 240px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 30px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--surface-soft);
  text-align: center;
  transition:
    border-color .18s ease,
    background .18s ease,
    transform .18s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #64748b;
  background: #f1f5f9;
}

.dropzone.dragover {
  transform: translateY(-1px);
}

.upload-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.upload-icon svg {
  width: 24px;
  stroke-width: 1.7;
}

.dropzone strong {
  font-size: 14px;
}

.dropzone > span:last-child {
  max-width: 320px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.pdf-mark {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #a31525;
  background: #fff1f2;
  font-size: 10px;
  font-weight: 850;
}

.file-info {
  min-width: 0;
  flex: 1;
}

.file-info strong,
.file-info small {
  display: block;
}

.file-info strong {
  overflow: hidden;
  margin-bottom: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.file-info small {
  color: var(--muted);
  font-size: 11px;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  cursor: pointer;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #64748b;
  background: transparent;
}

.icon-button:hover {
  color: var(--text);
  background: #f1f5f9;
}

.icon-button svg {
  width: 17px;
  stroke-width: 1.8;
}

.primary-button {
  display: inline-flex;
  width: 100%;
  height: 50px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--primary);
  font-size: 13px;
  font-weight: 780;
  transition: transform .16s ease, background .16s ease, opacity .16s ease;
}

.primary-button:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: .44;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

.primary-button.loading .spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width .25s ease;
}

.progress-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-top: 11px;
}

.progress-row div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.progress-row strong {
  font-size: 11px;
}

.progress-row span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.progress-row b {
  color: #475569;
  font-size: 10px;
}

.error-box {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  color: var(--danger);
  background: var(--danger-bg);
  font-size: 11px;
  line-height: 1.55;
}

.details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.details summary {
  cursor: pointer;
  padding: 14px 2px 0;
  font-size: 10px;
  font-weight: 750;
  list-style-position: inside;
}

.details-body {
  padding: 4px 2px 0 15px;
  font-size: 10px;
  line-height: 1.6;
}

.details-body p {
  margin: 8px 0 0;
}

.copy-button {
  display: inline-flex;
  height: 36px;
  cursor: pointer;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #334155;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
}

.copy-button:hover:not(:disabled) {
  background: #f8fafc;
}

.copy-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.copy-button svg {
  width: 16px;
  stroke-width: 1.75;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -5px 0 14px;
}

.meta-row span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 700;
}

.empty-state {
  display: flex;
  min-height: 420px;
  flex: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 17px;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 15px;
  color: #94a3b8;
  background: #f1f5f9;
}

.empty-icon svg {
  width: 24px;
  stroke-width: 1.7;
}

.empty-state strong {
  margin-bottom: 5px;
  color: #334155;
  font-size: 12px;
}

.empty-state > span:last-child {
  max-width: 300px;
  font-size: 11px;
  line-height: 1.55;
}

.result-text {
  width: 100%;
  min-height: 450px;
  flex: 1;
  resize: vertical;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 16px;
  padding: 18px;
  color: #1e293b;
  background: #fbfdff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.68;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.result-text:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .12);
}

.warning-box {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid #fde68a;
  border-radius: 14px;
  color: var(--warning);
  background: var(--warning-bg);
  font-size: 10px;
  line-height: 1.55;
}

.warning-box strong {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
}

.warning-box ul {
  margin: 0;
  padding-left: 17px;
}

.warning-box li + li {
  margin-top: 3px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 25px 0 0;
  color: var(--muted-2);
  font-size: 10px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  color: #166534;
  background: rgba(240, 253, 244, .97);
  box-shadow: 0 16px 42px rgba(15, 23, 42, .13);
  font-size: 11px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 22px, 700px);
    padding-top: 15px;
  }

  .local-badge {
    padding: 8px 10px;
    font-size: 10px;
  }

  .hero {
    padding: 50px 2px 28px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

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

  .result-panel {
    min-height: 520px;
  }
}

@media (max-width: 520px) {
  .brand-copy small {
    display: none;
  }

  .local-badge {
    font-size: 0;
    gap: 0;
    padding: 10px;
  }

  .local-dot {
    width: 8px;
    height: 8px;
  }

  .hero p {
    font-size: 13px;
  }

  .upload-panel,
  .result-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .dropzone {
    min-height: 205px;
  }

  .result-text {
    min-height: 480px;
    font-size: 11.5px;
  }
}


/* v2.4 */
.topbar { justify-content: flex-start; }

.upload-tabs {
  display: inline-flex;
  width: 100%;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fafc;
}

.upload-tab {
  flex: 1;
  height: 38px;
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  color: #64748b;
  background: transparent;
  font-size: 11px;
  font-weight: 760;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.upload-tab.active {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .07);
}

.result-text {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-text:empty::before {
  content: "Hasil agenda akan muncul di sini…";
  color: #94a3b8;
}

.result-text .event-title {
  font-weight: 800;
  color: #0f172a;
}

.result-text .event-block + .event-block {
  margin-top: 1.05em;
}


/* =========================================================
   v2.5 — Opening splash
   ========================================================= */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(71, 85, 105, .22), transparent 33rem),
    #080d15;
  animation: splash-hide 2.8s cubic-bezier(.4, 0, .2, 1) forwards;
}

.splash-glow {
  position: absolute;
  width: min(78vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  filter: blur(70px);
  animation: splash-glow 2.4s ease-out both;
}

.splash-photo-wrap {
  position: relative;
  width: min(72vw, 330px);
  aspect-ratio: 9 / 14;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 32px;
  background: #111827;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(255, 255, 255, .04) inset;
  animation: splash-card 2.55s cubic-bezier(.16, 1, .3, 1) both;
}

.splash-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.08);
  filter: saturate(.92) contrast(1.03);
  animation: splash-photo 2.55s cubic-bezier(.16, 1, .3, 1) both;
}

.splash-shine {
  position: absolute;
  inset: -30% auto -30% -60%;
  width: 38%;
  transform: rotate(14deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, .18),
    transparent
  );
  filter: blur(3px);
  animation: splash-shine 1.35s .55s ease-out both;
}

.splash-brand {
  position: absolute;
  bottom: max(68px, 8vh);
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .08em;
  opacity: 0;
  animation: splash-brand 2.3s .25s ease both;
}

.splash-line {
  position: absolute;
  bottom: max(45px, 5.5vh);
  width: min(170px, 42vw);
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  opacity: 0;
  animation: splash-brand 2.3s .3s ease both;
}

.splash-line span {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  border-radius: inherit;
  background: rgba(255, 255, 255, .85);
  animation: splash-progress 1.8s .35s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes splash-card {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(.90);
    filter: blur(8px);
  }
  22% {
    opacity: 1;
    filter: blur(0);
  }
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px) scale(1.035);
  }
}

@keyframes splash-photo {
  0% { transform: scale(1.15); }
  72% { transform: scale(1.03); }
  100% { transform: scale(1.07); }
}

@keyframes splash-glow {
  0% { opacity: 0; transform: scale(.6); }
  45% { opacity: 1; }
  100% { opacity: .45; transform: scale(1.08); }
}

@keyframes splash-shine {
  0% { left: -65%; opacity: 0; }
  15% { opacity: 1; }
  100% { left: 135%; opacity: 0; }
}

@keyframes splash-brand {
  0%, 12% { opacity: 0; transform: translateY(7px); }
  28%, 76% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes splash-progress {
  to { transform: translateX(0); }
}

@keyframes splash-hide {
  0%, 78% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen {
    animation-duration: 1.15s;
  }

  .splash-photo-wrap,
  .splash-photo,
  .splash-glow,
  .splash-shine,
  .splash-brand,
  .splash-line span {
    animation-duration: .9s !important;
  }
}


/* v2.6 — PDF compressor */
.compressor-panel {
  margin-top: 18px;
  padding: 24px;
}

.compressor-title { margin-bottom: 18px; }

.compress-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 18px;
}

.compress-dropzone {
  display: flex;
  min-height: 205px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 26px 20px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 17px;
  background: var(--surface-soft);
  text-align: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.compress-dropzone:hover,
.compress-dropzone.dragover {
  border-color: #64748b;
  background: #f1f5f9;
}

.compress-dropzone.dragover { transform: translateY(-1px); }

.compress-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.compress-icon svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.compress-dropzone strong { font-size: 13px; }
.compress-dropzone > span:last-child { color: var(--muted); font-size: 11px; }

.compress-file-card {
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.compress-options {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfdff;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: #475569;
  font-size: 10px;
  font-weight: 780;
}

.select-control {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.select-control:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .11);
}

.compress-button { margin-top: 12px; }

.compress-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
}

.compress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.compress-stats > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(34, 197, 94, .18);
  border-radius: 11px;
  background: rgba(255, 255, 255, .72);
}

.compress-stats span,
.compress-stats strong { display: block; }

.compress-stats span {
  margin-bottom: 3px;
  color: #64748b;
  font-size: 9px;
}

.compress-stats strong {
  overflow: hidden;
  color: #14532d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-button {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  background: #166534;
  font-size: 11px;
  font-weight: 780;
  text-decoration: none;
}

.download-button:hover { background: #14532d; }

.compress-result small {
  display: block;
  margin-top: 9px;
  color: #64748b;
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .compress-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .compressor-panel { padding: 18px; border-radius: 18px; }
  .compress-stats { grid-template-columns: 1fr; }
}


/* =========================================================
   v2.6.1 — automatic generate + automatic PDF compression
   ========================================================= */
.auto-generate-fallback[hidden] {
  display: none !important;
}

.auto-compress-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8fafc;
}

.auto-compress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.auto-compress-head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.auto-compress-head strong {
  font-size: 11px;
}

.auto-compress-head span {
  color: var(--muted);
  font-size: 10px;
}

#autoCompressBadge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475569;
  background: #fff;
  font-size: 9px;
  font-weight: 760;
}

.auto-compress-progress {
  margin-top: 12px;
}

.auto-compress-ready {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
}

.auto-compress-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #166534;
  font-size: 10px;
}

.auto-compress-stats b {
  font-size: 11px;
}

.auto-compress-ready small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .auto-compress-head,
  .auto-compress-stats {
    align-items: stretch;
    flex-direction: column;
  }

  #autoCompressBadge {
    align-self: flex-start;
  }
}


/* v2.6.3 — compact PDF Compress + warning above result */
.result-panel > .warning-box {
  margin: 0 0 14px;
}

.auto-compress-head {
  align-items: center;
}

.auto-compress-head > div {
  gap: 2px;
}


/* =========================================================
   v2.6.7 — Telegram delivery
   ========================================================= */
.telegram-button {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 9px;
  cursor: pointer;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #229ED9;
  font-size: 11px;
  font-weight: 780;
  transition: opacity .16s ease, transform .16s ease, background .16s ease;
}

.telegram-button:hover:not(:disabled) {
  background: #1d8fc7;
}

.telegram-button:active:not(:disabled) {
  transform: translateY(1px);
}

.telegram-button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.telegram-button .spinner {
  display: none;
}

.telegram-button.loading .spinner {
  display: block;
}

.telegram-button.loading > span:first-child {
  opacity: .82;
}

.telegram-status {
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  color: #075985;
  background: #f0f9ff;
  font-size: 9px;
  line-height: 1.5;
}

.telegram-status.error {
  border-color: #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.telegram-status.success {
  border-color: #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}


/* v2.6.9 */
.result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.telegram-agenda-button {
  color: #fff;
  border-color: #229ED9;
  background: #229ED9;
}
.telegram-agenda-button:hover:not(:disabled) {
  color: #fff;
  border-color: #1d8fc7;
  background: #1d8fc7;
}
.telegram-agenda-button:disabled { opacity: .5; }
.result-panel > .telegram-status { margin-bottom: 12px; }

@media (max-width: 560px) {
  .result-title { align-items: flex-start; }
  .result-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}


/* =========================================================
   v2.6.15 — Telegram multi-user pairing
   ========================================================= */
.telegram-connect-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 13px;
  border: 1px solid #bae6fd;
  border-radius: 14px;
  background: #f0f9ff;
}

.telegram-connect-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.telegram-connect-copy strong {
  color: #0f172a;
  font-size: 11px;
}

.telegram-connect-copy span {
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.telegram-connect-card.paired {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.telegram-connect-card.error {
  border-color: #fecaca;
  background: #fef2f2;
}

.telegram-connect-button {
  display: inline-flex;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #229ED9;
  font-size: 10px;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.telegram-connect-button:hover {
  background: #1d8fc7;
}

@media (max-width: 560px) {
  .telegram-connect-card {
    align-items: stretch;
    flex-direction: column;
  }

  .telegram-connect-button {
    width: 100%;
  }
}


/* =========================================================
   v2.6.19 — Ganti foto loading
   ========================================================= */
.topbar {
  justify-content: space-between;
}

.loading-admin-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #64748b;
  background: rgba(255, 255, 255, .78);
  font-size: 10px;
  font-weight: 780;
  text-decoration: none;
  transition:
    color .16s ease,
    border-color .16s ease,
    background .16s ease;
}

.loading-admin-link:hover {
  color: #0f172a;
  border-color: #94a3b8;
  background: #fff;
}

@media (max-width: 560px) {
  .loading-admin-link {
    min-height: 32px;
    padding: 0 9px;
    font-size: 9px;
  }
}


/* =========================================================
   v2.6.20 — Splash video support
   ========================================================= */
.splash-video {
  background: #0b1220;
}

.splash-photo[hidden] {
  display: none !important;
}


/* =========================================================
   v2.6.22 — Splash video fix
   ========================================================= */
.topbar {
  justify-content: flex-start;
}

.splash-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border: 0;
  outline: 0;
  background: transparent;
}

.splash-video::-webkit-media-controls,
.splash-video::-webkit-media-controls-enclosure,
.splash-video::-webkit-media-controls-panel,
.splash-video::-webkit-media-controls-play-button,
.splash-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
}




/* SEKDEP refined UI v2.6.26 */
:root {
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
}

body {
  background:
    radial-gradient(circle at 12% -8%, rgba(99, 102, 241, .07), transparent 32rem),
    radial-gradient(circle at 92% 2%, rgba(14, 165, 233, .06), transparent 28rem),
    #f6f8fb !important;
}

.app-shell {
  max-width: 1240px !important;
  padding-left: clamp(18px, 4vw, 48px) !important;
  padding-right: clamp(18px, 4vw, 48px) !important;
}

.topbar {
  padding: 22px 0 8px !important;
}

.brand {
  gap: 12px !important;
}

.brand-photo {
  width: 42px !important;
  height: 42px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08) !important;
}

.brand-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-copy strong {
  font-size: 15px !important;
  letter-spacing: -.01em !important;
}

.brand-copy small {
  color: #7c8798 !important;
}

.hero {
  max-width: 780px !important;
  padding: 42px 0 28px !important;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px !important;
  margin: 0 !important;
  color: #0f172a !important;
  font-size: clamp(34px, 4.8vw, 58px) !important;
  font-weight: 800 !important;
  line-height: 1.02 !important;
  letter-spacing: -.05em !important;
}

.hero p {
  max-width: 640px !important;
  margin: 14px 0 0 !important;
  color: #64748b !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.workspace {
  gap: 22px !important;
  grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr) !important;
}

.panel {
  border: 1px solid rgba(226, 232, 240, .92) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow:
    0 1px 2px rgba(15,23,42,.03),
    0 18px 42px rgba(15,23,42,.055) !important;
  backdrop-filter: blur(14px) !important;
}

.upload-panel,
.result-panel {
  padding: 26px !important;
}

.result-panel {
  min-height: 600px !important;
}

.panel-title {
  margin-bottom: 18px !important;
}

.panel-title h2 {
  font-size: 17px !important;
  font-weight: 780 !important;
}

.step {
  width: 31px !important;
  height: 31px !important;
  border-radius: 10px !important;
  background: #eef2f7 !important;
  color: #475569 !important;
}

.upload-tabs {
  margin-bottom: 14px !important;
  padding: 4px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
}

.upload-tab {
  border-radius: 10px !important;
}

.upload-tab.active {
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.08) !important;
}

.dropzone {
  min-height: 220px !important;
  border: 1.5px dashed #cbd5e1 !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.96)) !important;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
  transform: translateY(-1px);
}

.upload-icon,
.compress-icon {
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.06) !important;
}

.file-card,
.progress-card,
.auto-compress-card,
.telegram-connect-card,
.warning-box,
.error-box {
  border-radius: 16px !important;
}

.primary-button,
.copy-button,
.telegram-agenda-button,
.telegram-button,
.download-button,
.telegram-connect-button,
.icon-button {
  border-radius: 12px !important;
}

.result-text {
  min-height: 390px !important;
  padding: 20px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  background: #fff !important;
  line-height: 1.72 !important;
}

.meta-row span {
  padding: 7px 11px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
}

footer {
  margin-top: 26px !important;
  opacity: .72 !important;
}



/* Two-open update popup */
.update-modal[hidden] {
  display: none !important;
}

.update-modal {
  position: fixed;
  inset: 0;
  z-index: 100500;
  display: grid;
  place-items: center;
  padding: 20px;
}

.update-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .26);
  backdrop-filter: blur(3px);
}

.update-modal-card {
  position: relative;
  width: min(92vw, 390px);
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 17px;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15,23,42,.20);
  animation: update-pop-in .22s ease-out both;
}

.update-modal-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 850;
  font-family: Georgia, serif;
}

.update-modal-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.update-modal-copy strong {
  font-size: 14px;
  color: #0f172a;
}

.update-modal-copy span {
  color: #64748b;
  font-size: 13px;
}

.update-modal-button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

body.update-modal-open {
  overflow: hidden;
}

@keyframes update-pop-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .hero {
    padding: 28px 0 20px !important;
  }

  .hero h1 {
    font-size: clamp(31px, 9vw, 44px) !important;
  }

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

  .upload-panel,
  .result-panel {
    padding: 20px !important;
  }

  .result-panel {
    min-height: 0 !important;
  }
}

@media (max-width: 480px) {
  .update-modal-card {
    grid-template-columns: 40px 1fr;
  }

  .update-modal-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}


/* SEKDEP refined UI v2.6.26 */
:root {
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
}

body {
  background:
    radial-gradient(circle at 12% -8%, rgba(99, 102, 241, .07), transparent 32rem),
    radial-gradient(circle at 92% 2%, rgba(14, 165, 233, .06), transparent 28rem),
    #f6f8fb !important;
}

.app-shell {
  max-width: 1240px !important;
  padding-left: clamp(18px, 4vw, 48px) !important;
  padding-right: clamp(18px, 4vw, 48px) !important;
}

.topbar {
  padding: 22px 0 8px !important;
}

.brand {
  gap: 12px !important;
}

.brand-photo {
  width: 42px !important;
  height: 42px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08) !important;
}

.brand-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-copy strong {
  font-size: 15px !important;
  letter-spacing: -.01em !important;
}

.brand-copy small {
  color: #7c8798 !important;
}

.hero {
  max-width: 780px !important;
  padding: 42px 0 28px !important;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px !important;
  margin: 0 !important;
  color: #0f172a !important;
  font-size: clamp(34px, 4.8vw, 58px) !important;
  font-weight: 800 !important;
  line-height: 1.02 !important;
  letter-spacing: -.05em !important;
}

.hero p {
  max-width: 640px !important;
  margin: 14px 0 0 !important;
  color: #64748b !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.workspace {
  gap: 22px !important;
  grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr) !important;
}

.panel {
  border: 1px solid rgba(226, 232, 240, .92) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow:
    0 1px 2px rgba(15,23,42,.03),
    0 18px 42px rgba(15,23,42,.055) !important;
  backdrop-filter: blur(14px) !important;
}

.upload-panel,
.result-panel {
  padding: 26px !important;
}

.result-panel {
  min-height: 600px !important;
}

.panel-title {
  margin-bottom: 18px !important;
}

.panel-title h2 {
  font-size: 17px !important;
  font-weight: 780 !important;
}

.step {
  width: 31px !important;
  height: 31px !important;
  border-radius: 10px !important;
  background: #eef2f7 !important;
  color: #475569 !important;
}

.upload-tabs {
  margin-bottom: 14px !important;
  padding: 4px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
}

.upload-tab {
  border-radius: 10px !important;
}

.upload-tab.active {
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.08) !important;
}

.dropzone {
  min-height: 220px !important;
  border: 1.5px dashed #cbd5e1 !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.96)) !important;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
  transform: translateY(-1px);
}

.upload-icon,
.compress-icon {
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.06) !important;
}

.file-card,
.progress-card,
.auto-compress-card,
.telegram-connect-card,
.warning-box,
.error-box {
  border-radius: 16px !important;
}

.primary-button,
.copy-button,
.telegram-agenda-button,
.telegram-button,
.download-button,
.telegram-connect-button,
.icon-button {
  border-radius: 12px !important;
}

.result-text {
  min-height: 390px !important;
  padding: 20px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  background: #fff !important;
  line-height: 1.72 !important;
}

.meta-row span {
  padding: 7px 11px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
}

footer {
  margin-top: 26px !important;
  opacity: .72 !important;
}



/* Two-open update popup */
.update-modal[hidden] {
  display: none !important;
}

.update-modal {
  position: fixed;
  inset: 0;
  z-index: 100500;
  display: grid;
  place-items: center;
  padding: 20px;
}

.update-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .26);
  backdrop-filter: blur(3px);
}

.update-modal-card {
  position: relative;
  width: min(92vw, 390px);
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 17px;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15,23,42,.20);
  animation: update-pop-in .22s ease-out both;
}

.update-modal-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 850;
  font-family: Georgia, serif;
}

.update-modal-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.update-modal-copy strong {
  font-size: 14px;
  color: #0f172a;
}

.update-modal-copy span {
  color: #64748b;
  font-size: 13px;
}

.update-modal-button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

body.update-modal-open {
  overflow: hidden;
}

@keyframes update-pop-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .hero {
    padding: 28px 0 20px !important;
  }

  .hero h1 {
    font-size: clamp(31px, 9vw, 44px) !important;
  }

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

  .upload-panel,
  .result-panel {
    padding: 20px !important;
  }

  .result-panel {
    min-height: 0 !important;
  }
}

@media (max-width: 480px) {
  .update-modal-card {
    grid-template-columns: 40px 1fr;
  }

  .update-modal-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}


/* SEKDEP splash fix v2.6.27 */
.splash-screen {
  opacity: 1;
  visibility: visible;
  transition:
    opacity .32s ease,
    visibility .32s ease;
  animation: none !important;
}

.splash-screen.splash-leaving {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.splash-screen[hidden] {
  display: none !important;
}

.splash-photo-wrap {
  width: min(58vw, 270px) !important;
  border-radius: 26px !important;
}

.splash-video {
  display: block;
  object-fit: cover !important;
  background: #080d15 !important;
}
