/*! © 2026 INEASY (ineasy.site). Все права защищены / All rights reserved. */
/* Minimal patcher: fewer boxes, one accent colour, the partner credited in one quiet line.
   Loaded last, overrides only the patcher page (#patchSection) and the floating support button. */

/* ---- intro ---- */
#patchSection .patch-title { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); }
#patchSection .patch-quality-heading { margin-top: 12px; color: var(--text-3); font-size: var(--fs-md); }
#patchSection .patch-sub { display: none; }

/* ---- daily limit / video size: one quiet line of text over a thin bar, no card ---- */
#patchSection :is(.daily-limit-card, .video-size-meter) { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
#patchSection :is(.daily-limit-card, .video-size-meter)::before,
#patchSection :is(.daily-limit-card, .video-size-meter)::after { display: none; }
#patchSection .daily-limit-card { margin-top: 22px; }
#patchSection :is(.daily-limit-heading, .video-size-meter-heading) { display: none; }
#patchSection :is(.daily-limit-track, .video-size-meter-track) {
  height: auto; min-height: 0; overflow: visible; padding-bottom: 10px; border: 0; border-radius: 0;
  background: linear-gradient(rgba(143, 178, 255, 0.16), rgba(143, 178, 255, 0.16)) left bottom / 100% 3px no-repeat;
}
#patchSection :is(#dailyLimitFill, .video-size-meter-fill) { top: auto; bottom: 0; height: 3px; border-radius: 3px; box-shadow: none; }
#patchSection :is(.daily-limit-track-label, .video-size-meter-value) {
  position: static; display: block; padding: 0; text-align: left; white-space: normal;
  color: var(--text-3); font: 500 0.8rem / 1.4 var(--font-text); letter-spacing: 0; text-shadow: none;
}
#patchSection .video-size-meter[hidden] { display: none; }

/* ---- method picker: a small label instead of a numbered step ---- */
#patchSection .step-num { display: none; }
#patchSection .method-picker-title { color: var(--text-3); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- partner: one quiet line (small logo + "Processed on … servers" + channel) ---- */
#patchSection .partner-badge { gap: 8px; padding: 0 2px; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; animation: none; }
#patchSection .partner-badge::before, #patchSection .partner-badge::after { display: none; }
#patchSection .partner-badge-logos :is(.pb-ineasy, b) { display: none; }
#patchSection .partner-badge-logos img { width: 18px; height: 18px; border-radius: 5px; box-shadow: none; }
#patchSection .partner-badge-text { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
#patchSection .partner-badge-text strong { display: none; }
#patchSection .partner-badge-text small { color: var(--text-3); font-size: 0.8rem; opacity: 1; }
#patchSection .pb-handle { margin: 0; color: var(--text-2); font-size: 0.8rem; font-weight: 500; }

/* ---- dropzone: calm dashed frame, no glow, no corner marks ---- */
#patchSection .dropzone {
  min-height: 210px; padding: 28px 20px; border: 1px dashed rgba(143, 178, 255, 0.28); border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.02); background-image: none;
}
#patchSection .dropzone::before, #patchSection .dropzone::after, #patchSection .dropzone .dz-edge { display: none; }
#patchSection .dropzone:hover { border-color: rgba(143, 178, 255, 0.55); background-color: rgba(91, 140, 255, 0.05); }
#patchSection .dropzone.drag { border-color: var(--cyan-300); background-color: rgba(102, 217, 255, 0.07); }
#patchSection .dropzone.locked { border-style: solid; background-color: rgba(3, 6, 12, 0.6); }
#patchSection .dz-art { width: 48px; height: 48px; margin-bottom: 14px; border-color: rgba(143, 178, 255, 0.3); background: rgba(91, 140, 255, 0.1); box-shadow: none; animation: none; }
#patchSection .dz-art .ic { --ic-size: 22px; }
#patchSection .dz-title { font-size: 1.05rem; }
#patchSection .patch-format-note { margin-top: 10px; padding: 0; border: 0; font: 500 0.75rem / 1 var(--font-text); letter-spacing: 0.04em; }
@media (max-width: 640px) { #patchSection .dropzone { min-height: 170px; padding: 22px 16px; } }

/* ---- the "keeps quality" note: one muted line, no yellow box ---- */
#patchSection #patchQualityNote { margin: 2px 0 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text-3); font-size: 0.8rem; line-height: 1.45; text-align: center; }
#patchSection #patchQualityNote b { color: var(--text-2); font-weight: 600; }

/* ---- local archive: shown only when it has videos ---- */
.ia-panel[hidden] { display: none !important; }

/* ---- floating support button: small dark glass, no pulse ---- */
.support-fab {
  height: 46px; min-width: 46px; padding: 0 13px; color: var(--blue-200);
  background: rgba(14, 22, 40, 0.82); border: 1px solid rgba(143, 178, 255, 0.25);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.8);
}
.support-fab::before { animation: none; }
.support-fab .ic { --ic-size: 20px; }
.support-fab:hover, .support-fab:focus-visible { color: #fff; border-color: rgba(143, 178, 255, 0.5); box-shadow: 0 12px 30px -12px rgba(52, 111, 245, 0.7); }

/* ---- a video is chosen: the dropzone shrinks to one line above the preview (tap it to pick another) ---- */
#patchSection .dropzone:has(~ .preview-wrap.show) { min-height: 0; padding: 12px 16px; }
#patchSection .dropzone:has(~ .preview-wrap.show) :is(.dz-art, .dz-sub, .patch-format-note) { display: none; }
#patchSection .dropzone:has(~ .preview-wrap.show) .dz-title { color: var(--text-2); font-size: 0.9rem; }

/* ---- collaboration credit: "Ineasy × RTXFury" with both logos side by side (under the title and in the result) ---- */
#patchSection .powered-card {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 16px; padding: 6px 14px 6px 6px; border-radius: 999px;
  color: var(--text-2); text-decoration: none; font-size: 0.875rem;
  border: 1px solid rgba(143, 178, 255, 0.22);
  background: linear-gradient(90deg, rgba(91, 140, 255, 0.12), rgba(118, 185, 0, 0.1));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
#patchSection .powered-card[hidden], #patchSection .result-credit[hidden] { display: none; }
#patchSection .powered-card:hover { border-color: rgba(143, 178, 255, 0.45); transform: translateY(-1px); }
#patchSection .powered-logos { display: inline-flex; flex: none; }
#patchSection .powered-logos img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg, #05070d); }
#patchSection .powered-logos img:first-child { padding: 2px 3px; background: #f3efe6; object-fit: contain; box-sizing: border-box; }
#patchSection .powered-logos { gap: 4px; }
#patchSection .powered-text { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
#patchSection .powered-text b { color: #fff; font-weight: 700; }
#patchSection .powered-text i { color: var(--text-3); font-style: normal; }
#patchSection .rtx-powered-handle { color: #8fd61a; font-weight: 600; font-size: 0.8rem; white-space: nowrap; }

/* in the result card: the same credit, smaller */
#patchSection .result-credit { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--text-3); font-size: 0.8rem; text-decoration: none; }
#patchSection .result-credit .powered-logos img { width: 18px; height: 18px; }
#patchSection .result-credit .powered-text b { color: var(--text); font-weight: 600; }

/* ---- finished: the result card says it all ---- */
#patchSection .processing-state.completed { display: none; }                                  /* no "100%" box above it */
#patchSection .patch-work:has(.processed-result:not(.hidden)) .process-btn { display: none; } /* no greyed "Process" */
#patchSection #resultQualityNote { margin: 8px 0 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text-3); font-size: 0.8rem; line-height: 1.45; }
#patchSection #resultQualityNote b { color: var(--text-2); font-weight: 600; }

/* ---- result card: the video was saved on this device by itself ---- */
#patchSection .result-saved { display: block; margin-top: 6px; color: #4ade80; font-size: 0.8rem; font-weight: 600; }
#patchSection .result-saved.is-failed { color: var(--warn, #f2b84b); font-weight: 500; }
#patchSection .result-saved[hidden] { display: none; }

/* ---- processing mode switcher (Server / Local) ---- */
#patchSection .local-mode-picker { display: grid; gap: 6px; }
#patchSection .local-mode-picker .method-tabs { margin-bottom: 0; }
#patchSection .local-mode-note { margin: 2px 2px 0; padding: 9px 12px; border-radius: 10px; color: #f0b35e; background: rgba(240, 163, 60, .10); border: 1px solid rgba(240, 163, 60, .35); font-size: 0.8125rem; line-height: 1.45; text-align: center; }
#patchSection .local-mode-note[hidden] { display: none; }

/* Admin-only partner picker (RTX / Editing News) */
.admin-route-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 6px; }
.admin-route-tabs[hidden] { display: none; }
.admin-route-tabs .method-tab small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.admin-route-tabs .method-tab:disabled { opacity: .3; cursor: not-allowed; }
