/* ==========================================================================
   File Studio — Design System
   ========================================================================== */

:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --surface-2: #F0ECE3;
  --border: #E7E2D6;
  --text: #1A1D23;
  --muted: #5B6472;
  --accent: #E8792F;
  --accent-2: #1FAA6D;
  --accent-3: #E85D75;
  --accent-4: #E0A054;
  --accent-soft: rgba(232, 121, 47, 0.12);
  --accent-2-soft: rgba(31, 170, 109, 0.12);
  --accent-3-soft: rgba(232, 93, 117, 0.12);
  --accent-4-soft: rgba(224, 160, 84, 0.14);
  --shadow-soft: 0 1px 2px rgba(26, 22, 15, 0.04), 0 8px 24px rgba(26, 22, 15, 0.06);
  --shadow-lift: 0 12px 32px rgba(26, 22, 15, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

html.dark {
  --bg: #0C0D10;
  --surface: #16181D;
  --surface-2: #1E2127;
  --border: #2A2E36;
  --text: #EDEEF0;
  --muted: #9BA1AC;
  --accent: #FF9448;
  --accent-2: #34D399;
  --accent-3: #FB7297;
  --accent-4: #F5C069;
  --accent-soft: rgba(255, 148, 72, 0.16);
  --accent-2-soft: rgba(52, 211, 153, 0.16);
  --accent-3-soft: rgba(251, 114, 151, 0.16);
  --accent-4-soft: rgba(245, 192, 105, 0.18);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lift: 0 20px 48px rgba(0,0,0,0.6);
}

/* Category accent utility classes */
.acc-pdf   { background: var(--accent-3-soft); color: var(--accent-3); }
.acc-image { background: var(--accent-2-soft); color: var(--accent-2); }
.acc-dev   { background: var(--accent-4-soft); color: var(--accent-4); }
.acc-calc  { background: var(--accent-3-soft); color: var(--accent-3); }

* { box-sizing: border-box; }

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

html {
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, .font-display { font-family: var(--font-display); }
code, pre, .font-mono { font-family: var(--font-mono); }

/* ---------------------------------------------------------------------- */
/* Header */
/* ---------------------------------------------------------------------- */
.vc-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.vc-header::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.35;
}

/* ---------------------------------------------------------------------- */
/* Buttons */
/* ---------------------------------------------------------------------- */
.vc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  will-change: transform;
}
.vc-btn:active { transform: translateY(1px) scale(0.99); }
.vc-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-soft);
}
.vc-btn-outline {
  background: transparent; color: var(--accent); border: 1.5px solid var(--accent);
}
.vc-btn-outline:hover { background: var(--accent-soft); transform: translateY(-2px); }
.vc-btn-primary:hover { box-shadow: 0 10px 28px var(--accent-soft); transform: translateY(-2px); }
.vc-btn-ghost {
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
}
.vc-btn-ghost:hover { border-color: var(--accent); }

/* ---------------------------------------------------------------------- */
/* Cards */
/* ---------------------------------------------------------------------- */
.vc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.vc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--accent);
}

.vc-glass {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

/* ---------------------------------------------------------------------- */
/* Reveal on scroll */
/* ---------------------------------------------------------------------- */
.vc-reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.vc-reveal.vc-in { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------- */
/* Skeleton loading */
/* ---------------------------------------------------------------------- */
.vc-skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: vc-shimmer 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes vc-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------------------------------------------------------------------- */
/* Ripple */
/* ---------------------------------------------------------------------- */
.vc-ripple { position: relative; overflow: hidden; }
.vc-ripple-dot {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transform: scale(0); animation: vc-ripple 0.6s ease-out;
  pointer-events: none;
}
@keyframes vc-ripple { to { transform: scale(3); opacity: 0; } }

/* ---------------------------------------------------------------------- */
/* Floating decorative elements */
/* ---------------------------------------------------------------------- */
.vc-float { animation: vc-float 6s ease-in-out infinite; }
.vc-float-slow { animation: vc-float 9s ease-in-out infinite; }
@keyframes vc-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

/* ---------------------------------------------------------------------- */
/* Focus visibility (accessibility) */
/* ---------------------------------------------------------------------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------- */
/* Search dropdown */
/* ---------------------------------------------------------------------- */
.vc-search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  max-height: 360px; overflow-y: auto; z-index: 60;
}
.vc-search-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1rem; cursor: pointer; border-bottom: 1px solid var(--border);
}
.vc-search-item:last-child { border-bottom: none; }
.vc-search-item:hover, .vc-search-item.vc-active { background: var(--surface-2); }

/* ---------------------------------------------------------------------- */
/* PDF page thumbnails */
/* ---------------------------------------------------------------------- */
.pdf-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}
.pdf-thumb {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  user-select: none;
}
.pdf-thumb:hover { border-color: var(--accent); }
.pdf-thumb.pdf-thumb-selected { border-color: var(--accent); background: var(--accent-soft); }
.pdf-thumb.pdf-thumb-marked { border-color: #E24C6B; opacity: 0.45; }
.pdf-thumb canvas { max-width: 100%; border-radius: 4px; box-shadow: var(--shadow-soft); pointer-events: none; }
.pdf-thumb-label { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.pdf-thumb-badge {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.pdf-thumb[draggable="true"] { cursor: grab; }
.pdf-thumb.pdf-thumb-dragging { opacity: 0.4; }
.pdf-thumb.pdf-thumb-drop-target { border-color: var(--accent-2); }

.pdf-file-row {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------------- */
/* Mega menu (pure CSS hover — no JS timers, no dead-zone flicker) */
/* ---------------------------------------------------------------------- */
.vc-mega-card {
  border-radius: 18px;
  overflow: hidden;
}
.vc-mega-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.vc-mega-link:hover {
  background: var(--surface-2);
  color: var(--accent);
  transform: translateX(2px);
}
.vc-mega-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: currentColor;
}
.vc-mega-viewall {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem;
  font-weight: 600; font-size: 0.875rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  transition: background 0.15s ease;
}
.vc-mega-viewall:hover { background: var(--accent-soft); }

/* ---------------------------------------------------------------------- */
/* Scrollbar (subtle) */
/* ---------------------------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* File Studio UI refinement: touch-friendly controls and safer narrow-screen layout */
@media (max-width: 640px) {
  button, a[role="button"], input[type="button"], input[type="submit"], input[type="reset"], select {
    min-height: 44px;
  }
  input, textarea, select { max-width: 100%; }
  img, canvas, video { max-width: 100%; height: auto; }
  pre, code { overflow-wrap: anywhere; }
}

@media (hover: none) and (pointer: coarse) {
  .hover\:scale-105:hover, .hover\:scale-110:hover { transform: none !important; }
}

textarea:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

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


/* ---------------------------------------------------------------------- */
/* Mobile-friendly crop editors */
/* ---------------------------------------------------------------------- */
.fs-crop-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 14px;
  border-radius: 0.85rem;
  touch-action: none;
}
.fs-crop-image-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: min(62vh, 620px);
  line-height: 0;
  touch-action: none;
}
.fs-crop-image-wrap > img {
  display: block;
  max-width: 100%;
  max-height: min(62vh, 620px);
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.fs-crop-box {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid var(--accent);
  background: rgba(245,130,13,.10);
  cursor: move;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 0 0 9999px rgba(15,23,42,.20);
  z-index: 10;
  pointer-events: auto;
}

.fs-crop-box::after {
  content: '';
  position: absolute;
  inset: 33.333% 0;
  border-top: 1px solid rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.55);
  pointer-events: none;
}
.fs-crop-box::before {
  content: '';
  position: absolute;
  inset: 0 33.333%;
  border-left: 1px solid rgba(255,255,255,.55);
  border-right: 1px solid rgba(255,255,255,.55);
  pointer-events: none;
}
.fs-crop-handle {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(0,0,0,.25);
  z-index: 3;
  touch-action: none;
  padding: 0;
  margin: 0;
  appearance: none;
  pointer-events: auto;
}

.fs-crop-handle.nw { left: -11px; top: -11px; cursor: nwse-resize; }
.fs-crop-handle.n { left: 50%; top: -11px; transform: translateX(-50%); cursor: ns-resize; }
.fs-crop-handle.ne { right: -11px; top: -11px; cursor: nesw-resize; }
.fs-crop-handle.e { right: -11px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.fs-crop-handle.se { right: -11px; bottom: -11px; cursor: nwse-resize; }
.fs-crop-handle.s { left: 50%; bottom: -11px; transform: translateX(-50%); cursor: ns-resize; }
.fs-crop-handle.sw { left: -11px; bottom: -11px; cursor: nesw-resize; }
.fs-crop-handle.w { left: -11px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.fs-crop-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.5rem; }
.fs-crop-action { min-height:44px; }
@media (max-width: 640px) {
  .fs-crop-stage { min-height: 240px; padding: .25rem; }
  .fs-crop-image-wrap > img { max-height: 52vh; }
  .fs-crop-image-wrap { max-height: 52vh; }
  .fs-crop-handle { width: 28px; height: 28px; border-width: 3px; }
  .fs-crop-handle.nw { left:-14px; top:-14px; }
  .fs-crop-handle.n { top:-14px; }
  .fs-crop-handle.ne { right:-14px; top:-14px; }
  .fs-crop-handle.e { right:-14px; }
  .fs-crop-handle.se { right:-14px; bottom:-14px; }
  .fs-crop-handle.s { bottom:-14px; }
  .fs-crop-handle.sw { left:-14px; bottom:-14px; }
  .fs-crop-handle.w { left:-14px; }
}



/* File Studio responsive navigation refresh */
.fs-nav{position:sticky;top:0;z-index:100;background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(18px) saturate(170%);-webkit-backdrop-filter:blur(18px) saturate(170%);border-bottom:1px solid var(--border);box-shadow:0 5px 24px rgba(20,30,60,.035)}
.fs-nav::after{content:"";position:absolute;bottom:-1px;left:8%;right:8%;height:1px;background:linear-gradient(90deg,transparent,var(--accent),transparent);opacity:.42}
.fs-nav-shell{width:min(1240px,100%);min-height:76px;margin:auto;padding:0 clamp(16px,3.2vw,38px);display:flex;align-items:center;justify-content:space-between;gap:clamp(12px,2vw,28px)}
.fs-brand{display:flex;align-items:center;gap:11px;flex-shrink:0;text-decoration:none;color:var(--text)}
.fs-brand-mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;color:#fff;background:linear-gradient(140deg,var(--accent),color-mix(in srgb,var(--accent) 60%,#7c5cff));box-shadow:0 5px 14px color-mix(in srgb,var(--accent) 24%,transparent)}
.fs-brand-mark svg{width:23px;height:23px}.fs-brand-copy{display:flex;flex-direction:column;line-height:1.15;gap:4px}.fs-brand-copy strong{font-size:1.05rem;font-weight:800;letter-spacing:-.035em}.fs-brand-copy small{font-size:.68rem;color:var(--muted);letter-spacing:.015em;white-space:nowrap}
.fs-desktop-nav{display:flex;align-items:center;gap:5px;margin-inline:auto}.fs-nav-link{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;background:transparent;color:var(--text);text-decoration:none;font:inherit;font-size:.88rem;font-weight:650;padding:11px 14px;border-radius:12px;white-space:nowrap;cursor:pointer;transition:background .18s,color .18s,transform .18s}.fs-nav-link:hover,.fs-nav-link:focus-visible{background:var(--surface-2);color:var(--accent);outline:none}.fs-tools-wrap{position:relative}.fs-chevron{width:15px;height:15px;transition:transform .2s}.fs-tools-wrap:hover .fs-chevron,.fs-tools-wrap:focus-within .fs-chevron{transform:rotate(180deg)}
.fs-grid-icon{display:grid;grid-template-columns:repeat(2,5px);gap:2px}.fs-grid-icon i{width:5px;height:5px;background:currentColor;border-radius:1.5px}
.fs-mega-menu{position:absolute;top:calc(100% + 13px);left:50%;width:min(510px,calc(100vw - 28px));padding:17px;background:var(--surface);border:1px solid var(--border);border-radius:20px;box-shadow:0 22px 65px rgba(12,20,40,.16);opacity:0;visibility:hidden;transform:translate(-50%,8px) scale(.985);transform-origin:top center;transition:opacity .18s,transform .18s,visibility .18s}
.fs-tools-wrap:hover .fs-mega-menu,.fs-tools-wrap:focus-within .fs-mega-menu,.fs-tools-wrap.fs-menu-open .fs-mega-menu{opacity:1;visibility:visible;transform:translate(-50%,0) scale(1)}
.fs-mega-heading{display:flex;flex-direction:column;gap:4px;padding:3px 5px 14px}.fs-mega-heading span{font-size:.95rem;font-weight:800;letter-spacing:-.02em}.fs-mega-heading small{font-size:.77rem;color:var(--muted)}.fs-mega-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.fs-category-card{min-width:0;display:flex;align-items:center;gap:10px;padding:12px 10px;border:1px solid var(--border);border-radius:13px;text-decoration:none;color:var(--text);transition:transform .18s,border-color .18s,background .18s}.fs-category-card:hover,.fs-category-card:focus-visible{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 50%,var(--border));background:var(--surface-2);outline:none}.fs-category-card>span:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.fs-category-card strong{font-size:.81rem;font-weight:750}.fs-category-card small{font-size:.69rem;line-height:1.3;color:var(--muted)}.fs-category-card>b{color:var(--muted);font-size:.85rem}.fs-category-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;flex-shrink:0;font-size:1rem;font-weight:800}.fs-pdf{background:#fff0ee;color:#e34b3e}.fs-image{background:#e8f8ef;color:#178c55}.fs-dev{background:#eeebff;color:#7054d8;font-size:.77rem}.fs-calc{background:#e8f3ff;color:#2478d1;font-size:1.2rem}.fs-mega-all{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding:12px 10px 2px;color:var(--accent);font-size:.82rem;font-weight:750;text-decoration:none}.fs-mega-all span{font-size:1.1rem;transition:transform .18s}.fs-mega-all:hover span{transform:translateX(3px)}
.fs-nav-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.fs-icon-btn{height:40px;min-width:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 11px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--text);cursor:pointer;transition:background .18s,border-color .18s}.fs-icon-btn:hover,.fs-icon-btn:focus-visible{background:var(--surface-2);border-color:var(--border);outline:none}.fs-icon-btn svg{width:19px;height:19px}.fs-search-btn span{font-size:.82rem;font-weight:650}.fs-theme-btn{font-size:1rem}.fs-menu-btn{display:none;width:42px;height:42px;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px solid var(--border);border-radius:13px;background:var(--surface);cursor:pointer}.fs-menu-btn>span:not(.sr-only){width:18px;height:2px;border-radius:3px;background:var(--text);transition:transform .2s,opacity .2s}.fs-menu-btn[aria-expanded=true]>span:first-child{transform:translateY(3.5px) rotate(45deg)}.fs-menu-btn[aria-expanded=true]>span:nth-child(2){transform:translateY(-3.5px) rotate(-45deg)}.fs-menu-btn .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.fs-search-panel{padding:0 20px 16px}.fs-search-inner{position:relative;max-width:680px;margin:auto}.fs-search-inner>svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:19px;height:19px;color:var(--muted)}.fs-search-inner input{width:100%;height:48px;padding:0 48px 0 44px;border:1px solid var(--border);border-radius:15px;background:var(--surface-2);color:var(--text);font:inherit;font-size:.9rem;outline:none}.fs-search-inner input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent)}.fs-search-close{position:absolute;right:9px;top:8px;width:32px;height:32px;border:0;border-radius:9px;background:transparent;color:var(--muted);cursor:pointer}.fs-mobile-menu{display:none}
@media(max-width:1000px){.fs-nav-shell{min-height:70px}.fs-desktop-nav{gap:0}.fs-nav-link{padding:10px 10px;font-size:.83rem}.fs-brand-copy small{display:none}.fs-brand-mark{width:39px;height:39px}.fs-search-btn span{display:none}.fs-search-btn{width:40px;padding:0}}
@media(max-width:780px){.fs-nav-shell{min-height:68px;padding-inline:16px;gap:10px}.fs-desktop-nav{display:none}.fs-brand{gap:9px}.fs-brand-mark{width:39px;height:39px;border-radius:13px}.fs-brand-copy strong{font-size:1rem}.fs-nav-actions{gap:5px}.fs-icon-btn{height:40px;min-width:39px;padding:0}.fs-menu-btn{display:flex}.fs-mobile-menu{display:block;padding:12px 16px 18px;background:var(--surface);border-top:1px solid var(--border);box-shadow:0 18px 35px rgba(20,30,50,.08)}.fs-mobile-menu.hidden{display:none}.fs-mobile-link{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:12px;color:var(--text);text-decoration:none;font-size:.91rem;font-weight:650}.fs-mobile-link:hover,.fs-mobile-link:focus-visible{background:var(--surface-2);outline:none}.fs-mobile-link>span:first-child:not(.fs-category-icon){width:35px;height:35px;display:grid;place-items:center;background:var(--surface-2);border-radius:11px;font-size:1.2rem}.fs-mobile-link .fs-category-icon{width:35px;height:35px}.fs-mobile-link b{margin-left:auto;color:var(--muted);font-size:.85rem}.fs-mobile-label{padding:16px 12px 7px;font-size:.67rem;letter-spacing:.12em;color:var(--muted);font-weight:800}.fs-mobile-all{display:flex;align-items:center;justify-content:space-between;margin-top:8px;padding:13px 14px;border-radius:12px;background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--accent);font-size:.88rem;font-weight:800;text-decoration:none}.fs-mobile-bottom{display:flex;gap:20px;margin-top:14px;padding:15px 12px 0;border-top:1px solid var(--border)}.fs-mobile-bottom a{color:var(--muted);font-size:.82rem;text-decoration:none;font-weight:650}.fs-search-panel{padding-inline:14px}}
@media(max-width:380px){.fs-nav-shell{padding-inline:11px}.fs-brand-copy small{display:none}.fs-brand-copy strong{font-size:.94rem}.fs-brand-mark{width:35px;height:35px}.fs-theme-btn{display:none}.fs-mobile-menu{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.fs-nav *, .fs-nav *::before,.fs-nav *::after{transition:none!important;scroll-behavior:auto!important}}


/* Category-specific navigation mega menus */
.fs-category-wrap{position:relative}
.fs-category-wrap .fs-tools-trigger{gap:7px}
.fs-category-wrap .fs-category-icon{flex:0 0 auto;width:25px;height:25px;font-size:.72rem;border-radius:8px}
.fs-category-mega{width:min(560px,calc(100vw - 30px));left:50%;padding:19px}
.fs-category-mega .fs-mega-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.fs-category-mega .fs-category-card{min-width:0;gap:10px;padding:12px}
.fs-category-mega .fs-category-card strong{font-size:.82rem}
.fs-category-mega .fs-category-card small{font-size:.7rem}
.fs-category-mega .fs-category-card b{margin-left:auto}
.fs-category-mega .fs-mega-heading{margin-bottom:13px}
.fs-mobile-category{border-bottom:1px solid var(--border)}
.fs-mobile-category summary{list-style:none;display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;cursor:pointer;color:var(--text);font-weight:750}
.fs-mobile-category summary::-webkit-details-marker{display:none}
.fs-mobile-category summary>span:nth-child(2){display:flex;flex-direction:column;gap:3px;font-size:.9rem}
.fs-mobile-category summary small{font-size:.72rem;color:var(--muted);font-weight:450}
.fs-mobile-category summary>b{margin-left:auto;color:var(--muted);transition:transform .2s}
.fs-mobile-category[open] summary>b{transform:rotate(180deg)}
.fs-mobile-subtools{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:0 8px 12px 48px}
.fs-mobile-subtools>a{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 10px;border-radius:9px;background:var(--surface-2);color:var(--text);text-decoration:none;font-size:.78rem}
.fs-mobile-subtools>a:hover,.fs-mobile-subtools>a:focus-visible{color:var(--accent);outline:1px solid var(--accent)}
.fs-mobile-subtools .fs-mobile-viewall{grid-column:1/-1;background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--accent);font-weight:800}
@media(max-width:1100px) and (min-width:781px){.fs-nav-shell{gap:8px}.fs-nav-link{padding-inline:8px;font-size:.78rem}.fs-category-wrap .fs-category-icon{display:none}.fs-category-mega{width:min(510px,calc(100vw - 24px))}}
@media(max-width:780px){.fs-mobile-category summary .fs-category-icon{width:35px;height:35px}.fs-mobile-category summary{padding:10px 8px}.fs-mobile-subtools{padding-left:43px}}
@media(max-width:380px){.fs-mobile-subtools{grid-template-columns:1fr}.fs-mobile-subtools .fs-mobile-viewall{grid-column:auto}}


/* Responsive File Studio footer */
.fs-footer{position:relative;isolation:isolate;overflow:hidden;margin-top:clamp(48px,7vw,88px);border-top:1px solid var(--border,rgba(148,163,184,.22));background:var(--surface, #f8fafc);color:var(--text,#0f172a)}
.fs-footer-glow{position:absolute;z-index:-1;pointer-events:none;width:520px;height:300px;right:-170px;top:-190px;border-radius:50%;background:radial-gradient(ellipse, color-mix(in srgb,var(--accent,#6366f1) 13%,transparent),transparent 68%);filter:blur(12px)}
.fs-footer-inner{width:min(1200px,100%);margin-inline:auto;padding:clamp(34px,5vw,62px) clamp(18px,4vw,36px) 22px}
.fs-footer-main{display:grid;grid-template-columns:minmax(230px,1.5fr) repeat(3,minmax(140px,1fr));gap:clamp(24px,4vw,54px);padding-bottom:36px}
.fs-footer-brand{max-width:340px}.fs-footer-logo{display:inline-flex;align-items:center;gap:12px;color:inherit;text-decoration:none;margin-bottom:17px}.fs-footer-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;color:#fff;background:var(--accent,#6366f1);box-shadow:0 8px 22px color-mix(in srgb,var(--accent,#6366f1) 25%,transparent)}.fs-footer-mark svg{width:23px;height:23px}.fs-footer-brand-copy{display:flex;flex-direction:column;gap:2px}.fs-footer-brand-copy strong{font-size:1.15rem;letter-spacing:-.035em;font-weight:850}.fs-footer-brand-copy small{font-size:.73rem;color:var(--muted,#64748b)}
.fs-footer-brand>p{font-size:.9rem;line-height:1.8;color:var(--muted,#64748b);margin:0 0 19px;max-width:330px}.fs-footer-cta{display:inline-flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid color-mix(in srgb,var(--accent,#6366f1) 30%,var(--border,#e2e8f0));border-radius:12px;color:var(--accent,#6366f1);font-size:.85rem;font-weight:750;text-decoration:none;transition:transform .2s ease,background .2s ease}.fs-footer-cta:hover{transform:translateY(-2px);background:color-mix(in srgb,var(--accent,#6366f1) 8%,transparent)}
.fs-footer-column{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.fs-footer-column h2{display:flex;align-items:center;gap:7px;font-size:.88rem;font-weight:800;letter-spacing:-.01em;margin:5px 0 5px;color:var(--text,#0f172a)}.fs-footer-mini-icon{display:inline-grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:9px;background:color-mix(in srgb,var(--accent,#6366f1) 10%,transparent);color:var(--accent,#6366f1);font-size:.78rem;font-weight:850}.fs-footer-column>a,.fs-footer-company>a,.fs-footer-legal>a{color:var(--muted,#64748b);font-size:.83rem;line-height:1.5;text-decoration:none;transition:color .18s ease,transform .18s ease}.fs-footer-column>a:hover,.fs-footer-company>a:hover,.fs-footer-legal>a:hover,.fs-footer-bottom p a:hover{color:var(--accent,#6366f1)}.fs-footer-column>a:hover,.fs-footer-company>a:hover,.fs-footer-legal>a:hover{transform:translateX(2px)}.fs-footer-column>a span{font-size:.72rem;opacity:.7;margin-left:3px}.fs-footer-column .fs-footer-subhead{display:flex;align-items:center;gap:8px;margin-top:8px;color:var(--text,#0f172a);font-weight:800}
.fs-footer-lower{display:flex;align-items:flex-start;flex-wrap:wrap;gap:30px 60px;padding:22px 0;border-top:1px solid var(--border,rgba(148,163,184,.22));border-bottom:1px solid var(--border,rgba(148,163,184,.22))}.fs-footer-company,.fs-footer-legal{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px}.fs-footer-label{font-size:.75rem;font-weight:850;color:var(--text,#0f172a);margin-right:2px}.fs-footer-company>a,.fs-footer-legal>a{font-size:.78rem}.fs-footer-bottom{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px;padding-top:20px;color:var(--muted,#64748b);font-size:.74rem;line-height:1.65}.fs-footer-bottom>span{white-space:nowrap}.fs-footer-bottom p{margin:0}.fs-footer-bottom p a{color:inherit;text-underline-offset:3px}.fs-footer-backtop{display:inline-flex;align-items:center;gap:7px;color:var(--muted,#64748b);text-decoration:none;white-space:nowrap}.fs-footer-backtop:hover{color:var(--accent,#6366f1)}
@media(max-width:900px){.fs-footer-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 26px}.fs-footer-brand{max-width:unset;grid-column:1/-1}.fs-footer-brand>p{max-width:560px}.fs-footer-bottom{grid-template-columns:1fr auto}.fs-footer-bottom p{grid-column:1/-1;grid-row:2}.fs-footer-backtop{grid-column:2;grid-row:1}}
@media(max-width:540px){.fs-footer-inner{padding-inline:18px}.fs-footer-main{grid-template-columns:1fr 1fr;gap:27px 18px;padding-bottom:28px}.fs-footer-brand{grid-column:1/-1}.fs-footer-column h2{font-size:.82rem;gap:7px}.fs-footer-mini-icon{width:26px;height:26px;flex-basis:26px}.fs-footer-column>a{font-size:.79rem}.fs-footer-lower{gap:20px;flex-direction:column}.fs-footer-company,.fs-footer-legal{gap:12px 18px}.fs-footer-label{width:100%}.fs-footer-bottom{grid-template-columns:1fr;gap:10px}.fs-footer-bottom>span{white-space:normal}.fs-footer-bottom p{grid-column:auto;grid-row:auto}.fs-footer-backtop{grid-column:auto;grid-row:auto;justify-self:start;margin-top:2px}}
@media(prefers-reduced-motion:reduce){.fs-footer *{transition:none!important;scroll-behavior:auto!important}}

/* Tools Studio brand assets */
.fs-brand-image{display:block;width:clamp(150px,17vw,205px);height:auto;max-height:58px;object-fit:contain;object-position:left center}.fs-brand{min-width:0}.fs-footer-logo-image{display:block;width:min(100%,260px);height:auto;max-height:78px;object-fit:contain;object-position:left center}.fs-footer-logo{max-width:100%}@media(max-width:780px){.fs-brand-image{width:clamp(125px,34vw,175px);max-height:48px}}@media(max-width:380px){.fs-brand-image{width:120px;max-height:40px}}
 @media (max-width: 767px) {
      .fs-nav,
      .fs-nav .fs-nav-shell,
      .fs-nav [data-mobile-menu],
      .fs-nav [data-search-panel] {
        background-color: var(--surface, #fff) !important;
        color: var(--text, #172033) !important;
      }

      .fs-nav [data-mobile-menu] a,
      .fs-nav [data-mobile-menu] summary,
      .fs-nav [data-mobile-menu] .fs-mobile-label,
      .fs-nav [data-search-panel] input {
        color: var(--text, #172033) !important;
      }

      .fs-nav [data-mobile-menu] .fs-mobile-category,
      .fs-nav [data-mobile-menu] .fs-mobile-subtools,
      .fs-nav [data-mobile-menu] .fs-mobile-bottom {
        background-color: var(--surface, #fff) !important;
        border-color: var(--border, #e5e7eb) !important;
      }
    }