:root {
  --ypng-violet: #9b8cff;
  --ypng-cyan: #55d9e8;
  --ypng-mint: #56d6ad;
  --ypng-line: rgba(159, 169, 217, .18);
}

html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
#root { width: 100%; max-width: 100vw; overflow-x: clip; }
#root img, #root video, #root canvas { max-width: 100%; }
#root input, #root select, #root textarea { min-width: 0; max-width: 100%; }

.yula-pro-nav {
  position: relative;
  z-index: 60;
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px clamp(12px, 3vw, 28px) 8px;
  border-bottom: 1px solid rgba(139, 150, 205, .14);
  background: linear-gradient(180deg, rgba(10, 12, 25, .92), rgba(10, 12, 25, .58));
  color: #c9cde0;
  font: 600 12px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  scrollbar-width: none;
}
.yula-pro-nav::-webkit-scrollbar { display: none; }
.yula-pro-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.yula-pro-nav a:hover { color: #fff; border-color: var(--ypng-line); background: rgba(255,255,255,.06); transform: translateY(-1px); }
.yula-pro-nav a[href="/image-sharpener"] { color: #f4f2ff; border-color: rgba(155,140,255,.4); background: linear-gradient(120deg, rgba(122,103,242,.2), rgba(85,217,232,.12)); }
.yula-pro-nav a[aria-current="page"] { border-color: var(--ypng-line); background: rgba(255,255,255,.07); }
.yula-pro-nav a:focus-visible, #root :focus-visible { outline: 3px solid var(--ypng-cyan); outline-offset: 3px; }

@media (max-width: 760px) {
  html, body { width: 100%; }
  #root, #root > div { width: 100% !important; min-width: 0 !important; max-width: 100% !important; }
  #root main, #root section, #root header { min-width: 0; max-width: 100%; }
  #root [class*="max-w-"] { min-width: 0; max-width: 100% !important; }
  .yula-pro-nav { box-sizing: border-box; max-width: 100vw; flex-wrap: wrap; justify-content: center; overflow-x: visible; padding: 5px 8px 8px; gap: 3px; }
  .yula-pro-nav a { min-height: 32px; padding-inline: 8px; font-size: 11px; }
  #root h1 { max-width: 100%; font-size: clamp(2rem, 9.7vw, 3.6rem) !important; line-height: 1.08; text-wrap: balance; overflow-wrap: anywhere; }
  #root h2 { text-wrap: balance; }
  #root p { overflow-wrap: anywhere; }
  #root input[type="file"] { max-width: 100%; }
  #root [class*="grid"] { min-width: 0; }
  #root [class*="flex"] > * { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
