/* FileManager (FileBrowser 2.60) in the hub's look. Injected by nginx on files.nonvegan.dev (sub_filter before
   </head>); FileBrowser itself is unchanged. Only its CSS variables and a few shapes are overridden, so an update of
   FileBrowser at worst falls back to its own look. Source: France box /root/work/files-theme. */
@font-face { font-family: "Vazirmatn"; src: url("/_nv/Vazirmatn-arabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; src: url("/_nv/Vazirmatn-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; src: url("/_nv/PlusJakartaSans-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

/* the hub's palette (light) */
:root {
  --blue: #3d6fe0; --dark-blue: #2f5fcf; --brand-2: #a78bfa;
  --background: #f4f6fb; --surfacePrimary: #ffffff; --surfaceSecondary: #eef1f8;
  --textPrimary: #4c5876; --textSecondary: #121a2e;
  --divider: rgba(16, 24, 48, .07); --hover: rgba(61, 111, 224, .07);
  --borderPrimary: rgba(16, 24, 48, .09); --borderSecondary: rgba(16, 24, 48, .17);
  --action: #4c5876; --iconPrimary: #3d6fe0; --icon-blue: #5b8dee;
  --nv-grad: linear-gradient(135deg, #5b8dee, #a78bfa);
}
/* ... and dark, the hub's default */
:root.dark {
  --blue: #5b8dee; --dark-blue: #4a7be0;
  --background: #080b14; --surfacePrimary: #0f1421; --surfaceSecondary: #1a2134;
  --textPrimary: #a3aec8; --textSecondary: #e8ecf7;
  --divider: rgba(148, 163, 205, .12); --hover: rgba(91, 141, 238, .1);
  --borderPrimary: rgba(148, 163, 205, .12); --borderSecondary: rgba(148, 163, 205, .22);
  --action: #e8ecf7; --iconPrimary: #5b8dee; --iconSecondary: #ffffff; --iconTertiary: #a3aec8; --icon-blue: #6f9cf2;
  --dividerPrimary: rgba(8, 11, 20, .5); --dividerSecondary: rgba(8, 11, 20, .7);
}

html, body, input, button, select, textarea { font-family: "Jakarta", "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif; }
:root[dir="rtl"] body, [dir="rtl"] input, [dir="rtl"] button { font-family: "Vazirmatn", "Jakarta", system-ui, sans-serif; }
::selection { background: color-mix(in srgb, var(--blue) 30%, transparent); }

/* ---------------------------------------------------------------- sign-in */
#login {
  background: radial-gradient(900px 420px at 85% -10%, rgba(91, 141, 238, .18), transparent 70%),
              radial-gradient(700px 380px at 0% 0%, rgba(167, 139, 250, .14), transparent 70%), var(--background);
}
#login form {
  max-width: 21em; padding: 28px 26px 22px; border-radius: 20px; background: var(--surfacePrimary);
  border: 1px solid var(--borderPrimary); box-shadow: 0 24px 60px -24px rgba(8, 11, 20, .45);
}
#login img { width: 3.4em; height: 3.4em; border-radius: 14px; box-shadow: 0 8px 24px rgba(91, 141, 238, .35); }
#login h1 { font-size: 1.7em; font-weight: 800; letter-spacing: -.02em; margin: .55em 0 .8em; color: var(--textSecondary); }
#login .input, .input { border-radius: 11px; border: 1px solid var(--borderSecondary); background: var(--surfaceSecondary); color: var(--textSecondary);
  transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); outline: none; }
#login .button, .button { border-radius: 11px; font-weight: 700; }
#login input[type="submit"], .button--blue:not(.button--flat) { background: var(--nv-grad); border: 0; color: #fff;
  box-shadow: 0 8px 20px -6px rgba(91, 141, 238, .55); }
#login .wrong { border-radius: 10px; }

/* ------------------------------------------------------------------ app */
header { background: color-mix(in srgb, var(--surfacePrimary) 88%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--borderPrimary); box-shadow: none; }
header img { border-radius: 9px; }
#search #input { border-radius: 11px; }
nav .action { border-radius: 10px; }
nav .action:hover, nav .action.active { background: var(--hover); }
#listing .item { border-radius: 12px; transition: background .15s, border-color .15s, box-shadow .15s; }
#listing.mosaic .item { border: 1px solid var(--borderPrimary); box-shadow: none; }
#listing .item:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue) 35%, transparent); }
#listing .item[aria-selected="true"] { background: color-mix(in srgb, var(--blue) 22%, var(--surfacePrimary)) !important; color: var(--textSecondary) !important; }
.card { border-radius: 16px; }
.card, .dashboard .card, #previewer .bar, .shell { border: 1px solid var(--borderPrimary); }
.prompt, .floating, .card.floating { border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(8, 11, 20, .55); }
.credits, .credits a { color: var(--textPrimary); }
/* the storage bar in the sidebar (vue-simple-progress, colours set inline) */
.vue-simple-progress { background: var(--surfaceSecondary) !important; border-radius: 99px; overflow: hidden; }
.vue-simple-progress-bar { background: var(--nv-grad) !important; height: 6px !important; border-radius: 99px; }
/* native progress bars elsewhere */
progress { appearance: none; -webkit-appearance: none; height: 6px; border: 0; border-radius: 99px; background: var(--surfaceSecondary); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--surfaceSecondary); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--nv-grad); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--nv-grad); border-radius: 99px; }

/* "back to the control center" (added by theme.js) */
.nv-hub { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; text-decoration: none !important;
  color: var(--textSecondary) !important; border: 1px solid var(--borderSecondary); border-radius: 10px; padding: 6px 11px; white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s; }
.nv-hub:hover { border-color: var(--blue); color: var(--blue) !important; background: var(--hover); }
.nv-hub svg { width: 15px; height: 15px; flex: none; }
.nv-hub-header { margin-inline-end: 10px; }
.nv-hub-login { display: flex; justify-content: center; margin-top: 16px; }
[dir="rtl"] .nv-hub svg { transform: scaleX(-1); }
@media (max-width: 736px) { .nv-hub-header span { display: none; } .nv-hub-header { padding: 6px 8px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
