.aps2d { --aps2d-accent: #0b6bcb; --aps2d-accent-dark: #08549f; --aps2d-ink: #16202b; --aps2d-line: #e3e7ec; --aps2d-soft: #f4f6f8;
  max-width: 1100px; margin: 0 auto; font: inherit; box-sizing: border-box; }
.aps2d *, .aps2d *::before, .aps2d *::after { box-sizing: border-box; }
.aps2d [hidden] { display: none !important; }
.aps2d-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
  padding: 56px 20px; border: 2px dashed #c9d0d8; border-radius: 6px; background: var(--aps2d-soft); color: var(--aps2d-ink); transition: border-color .15s, background .15s; }
.aps2d-drop:hover, .aps2d-drop:focus, .aps2d-drop.is-over { border-color: var(--aps2d-accent); background: #eef4fb; outline: none; }
.aps2d-drop-icon { font-size: 34px; line-height: 1; color: var(--aps2d-accent); }
.aps2d-drop small { opacity: .65; }
.aps2d-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.aps2d-busy-box { display: flex; align-items: center; gap: 24px; padding: 28px; border: 1px solid var(--aps2d-line); border-radius: 6px; background: #fff; }
.aps2d-thumb { width: 160px; max-height: 120px; object-fit: contain; border: 1px solid var(--aps2d-line); border-radius: 4px; background: #fff; }
.aps2d-busy { margin: 0 0 4px; font-weight: 600; color: var(--aps2d-ink); }
.aps2d-busy::before { content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px;
  border: 2px solid var(--aps2d-accent); border-right-color: transparent; border-radius: 50%; animation: aps2d-spin .8s linear infinite; }
@keyframes aps2d-spin { to { transform: rotate(360deg); } }
.aps2d-timer { opacity: .65; }
.aps2d-msg:empty { display: none; }
.aps2d-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 4px; background: var(--aps2d-soft); }
.aps2d-msg.is-error { background: #fdecec; color: #8a1c1c; }
.aps2d-canvas { display: block; width: 100%; height: auto; border: 1px solid var(--aps2d-line); border-radius: 6px; background: #fff; }
.aps2d-actions { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.aps2d-btn { display: inline-block; padding: .8rem 1.5rem; border: 0; border-radius: 4px; background: var(--aps2d-accent);
  color: #fff !important; font-weight: 600; font-size: 1em; line-height: 1.2; white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: background .15s; }
.aps2d-btn:hover { background: var(--aps2d-accent-dark); }
.aps2d-btn-small { padding: .55rem 1rem; }
.aps2d-link { background: none; border: 0; padding: 0; color: var(--aps2d-accent); text-decoration: underline; cursor: pointer; font: inherit; }
.aps2d-tries:empty { display: none; }
.aps2d-tries { margin-top: 10px; font-size: .85em; opacity: .6; }
.aps2d-limit { padding: 20px; border-radius: 6px; background: #fff6e5; border: 1px solid #f0d49a; }
.aps2d-limit p { margin: 0 0 12px; }
.aps2d-key { margin-bottom: 16px; }
.aps2d-key label { display: block; font-weight: 600; margin-bottom: 4px; }
.aps2d-valuerow { display: flex; gap: 8px; max-width: 420px; }
.aps2d-value { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #c9d0d8; border-radius: 4px; font: inherit; }
@media (max-width: 560px) { .aps2d-busy-box { flex-direction: column; align-items: flex-start; } .aps2d-drop { padding: 40px 16px; } }
